2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/ctsim.cpp"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE wxconfig build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP INCLUDED_GETOPT_LONG_TRUE INCLUDED_GETOPT_LONG_FALSE DEBUG_TRUE DEBUG_FALSE lamdir mpienable cgibindir cgibinurl webdatadir webdataurl htmldir cgiprograms htmldata USE_HTML_TRUE USE_HTML_FALSE webenabled USE_LAM_TRUE USE_LAM_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_TOOLKIT_LIBS X_BASIC_LIBS NO_X_TRUE NO_X_FALSE my_includes HAVE_SGP_TRUE HAVE_SGP_FALSE wxcflags wxlibs HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE ctlibs lamprograms lamdefs LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
848 --x-includes=DIR X include files are in DIR
849 --x-libraries=DIR X library files are in DIR
852 --build=BUILD configure for building on BUILD [guessed]
853 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 if test -n "$ac_init_help"; then
862 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
863 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866 --disable-dependency-tracking Speeds up one-time builds
867 --enable-dependency-tracking Do not reject slow dependency extractors
868 --enable-debug Turn on debugging
869 --enable-verbose-warnings
870 Enable verbose compiler warnings.
872 Enable static executables.
873 --enable-dmalloc Use dmalloc memory allocation
874 --enable-efence Use ElectricFence memory allocation
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-lam=PATH Set path of LAM MPI
880 --with-ctn=PATH Set path of CTN DICOM library
881 --with-mcpu=CPU Set name of CPU for gcc -mcpu
882 --with-cgibin-dir=PATH Set path of CGI binaries directory
883 --with-cgibin-url=PATH Set URL path of CGI binaries
884 --with-webdata-dir=PATH Set path of webdata
885 --with-webdata-url=PATH Set URL path of webdata
886 --with-html-dir=PATH Set directory of html files
887 --with-x use the X Window System
889 Some influential environment variables:
890 CC C compiler command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
893 nonstandard directory <lib dir>
894 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
895 headers in a nonstandard directory <include dir>
896 CXX C++ compiler command
897 CXXFLAGS C++ compiler flags
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h; then
1180 sed "/^$/d" confdefs.h | sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1340 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1341 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1342 if test "${enable_maintainer_mode+set}" = set; then
1343 enableval="$enable_maintainer_mode"
1344 USE_MAINTAINER_MODE=$enableval
1346 USE_MAINTAINER_MODE=no
1348 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1349 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1352 if test $USE_MAINTAINER_MODE = yes; then
1353 MAINTAINER_MODE_TRUE=
1354 MAINTAINER_MODE_FALSE='#'
1356 MAINTAINER_MODE_TRUE='#'
1357 MAINTAINER_MODE_FALSE=
1360 MAINT=$MAINTAINER_MODE_TRUE
1363 am__api_version="1.7"
1365 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1366 if test -f $ac_dir/install-sh; then
1368 ac_install_sh="$ac_aux_dir/install-sh -c"
1370 elif test -f $ac_dir/install.sh; then
1372 ac_install_sh="$ac_aux_dir/install.sh -c"
1374 elif test -f $ac_dir/shtool; then
1376 ac_install_sh="$ac_aux_dir/shtool install -c"
1380 if test -z "$ac_aux_dir"; then
1381 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383 { (exit 1); exit 1; }; }
1385 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389 # Find a good install program. We prefer a C program (faster),
1390 # so one script is as good as another. But avoid the broken or
1391 # incompatible versions:
1392 # SysV /etc/install, /usr/sbin/install
1393 # SunOS /usr/etc/install
1394 # IRIX /sbin/install
1396 # AmigaOS /C/install, which installs bootblocks on floppy discs
1397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1400 # OS/2's system install, which has a completely different semantic
1401 # ./install, which can be erroneously created by make from ./install.sh.
1402 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1403 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1404 if test -z "$INSTALL"; then
1405 if test "${ac_cv_path_install+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 test -z "$as_dir" && as_dir=.
1413 # Account for people who put trailing slashes in PATH elements.
1415 ./ | .// | /cC/* | \
1416 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1417 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1420 # OSF1 and SCO ODT 3.0 have their own names for install.
1421 # Don't use installbsd from OSF since it installs stuff as root
1423 for ac_prog in ginstall scoinst install; do
1424 for ac_exec_ext in '' $ac_executable_extensions; do
1425 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1426 if test $ac_prog = install &&
1427 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428 # AIX install. It has an incompatible calling convention.
1430 elif test $ac_prog = install &&
1431 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1432 # program-specific install script used by HP pwplus--don't use.
1435 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1447 if test "${ac_cv_path_install+set}" = set; then
1448 INSTALL=$ac_cv_path_install
1450 # As a last resort, use the slow shell script. We don't cache a
1451 # path for INSTALL within a source directory, because that will
1452 # break other packages using the cache if that directory is
1453 # removed, or if the path is relative.
1454 INSTALL=$ac_install_sh
1457 echo "$as_me:$LINENO: result: $INSTALL" >&5
1458 echo "${ECHO_T}$INSTALL" >&6
1460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1461 # It thinks the first close brace ends the variable substitution.
1462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1468 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1469 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1472 echo timestamp > conftest.file
1473 # Do `set' in a subshell so we don't clobber the current shell's
1474 # arguments. Must try -L first in case configure is actually a
1475 # symlink; some systems play weird games with the mod time of symlinks
1476 # (eg FreeBSD returns the mod time of the symlink's containing
1479 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1480 if test "$*" = "X"; then
1482 set X `ls -t $srcdir/configure conftest.file`
1485 if test "$*" != "X $srcdir/configure conftest.file" \
1486 && test "$*" != "X conftest.file $srcdir/configure"; then
1488 # If neither matched, then we have a broken ls. This can happen
1489 # if, for instance, CONFIG_SHELL is bash and it inherits a
1490 # broken ls alias from the environment. This has actually
1491 # happened. Such a system could not be considered "sane".
1492 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1493 alias in your environment" >&5
1494 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1495 alias in your environment" >&2;}
1496 { (exit 1); exit 1; }; }
1499 test "$2" = conftest.file
1505 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1506 Check your system clock" >&5
1507 echo "$as_me: error: newly created file is older than distributed files!
1508 Check your system clock" >&2;}
1509 { (exit 1); exit 1; }; }
1511 echo "$as_me:$LINENO: result: yes" >&5
1512 echo "${ECHO_T}yes" >&6
1513 test "$program_prefix" != NONE &&
1514 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1515 # Use a double $ so make ignores it.
1516 test "$program_suffix" != NONE &&
1517 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1518 # Double any \ or $. echo might interpret backslashes.
1519 # By default was `s,x,x', remove it if useless.
1520 cat <<\_ACEOF >conftest.sed
1521 s/[\\$]/&&/g;s/;s,x,x,$//
1523 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1527 # expand $ac_aux_dir to an absolute path
1528 am_aux_dir=`cd $ac_aux_dir && pwd`
1530 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1531 # Use eval to expand $SHELL
1532 if eval "$MISSING --run true"; then
1533 am_missing_run="$MISSING --run "
1536 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1537 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1540 for ac_prog in gawk mawk nawk awk
1542 # Extract the first word of "$ac_prog", so it can be a program name with args.
1543 set dummy $ac_prog; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_AWK+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 if test -n "$AWK"; then
1550 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_AWK="$ac_prog"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 if test -n "$AWK"; then
1570 echo "$as_me:$LINENO: result: $AWK" >&5
1571 echo "${ECHO_T}$AWK" >&6
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1577 test -n "$AWK" && break
1580 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1581 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1582 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1583 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 cat >conftest.make <<\_ACEOF
1588 @echo 'ac_maketemp="$(MAKE)"'
1590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1592 if test -n "$ac_maketemp"; then
1593 eval ac_cv_prog_make_${ac_make}_set=yes
1595 eval ac_cv_prog_make_${ac_make}_set=no
1599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600 echo "$as_me:$LINENO: result: yes" >&5
1601 echo "${ECHO_T}yes" >&6
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1606 SET_MAKE="MAKE=${MAKE-make}"
1609 rm -rf .tst 2>/dev/null
1610 mkdir .tst 2>/dev/null
1611 if test -d .tst; then
1616 rmdir .tst 2>/dev/null
1618 # test to see if srcdir already configured
1619 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1620 test -f $srcdir/config.status; then
1621 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1622 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1623 { (exit 1); exit 1; }; }
1626 # test whether we have cygpath
1627 if test -z "$CYGPATH_W"; then
1628 if (cygpath --version) >/dev/null 2>/dev/null; then
1629 CYGPATH_W='cygpath -w'
1636 # Define the identity of the package.
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE "$PACKAGE"
1646 cat >>confdefs.h <<_ACEOF
1647 #define VERSION "$VERSION"
1650 # Some tools Automake needs.
1652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1667 AMTAR=${AMTAR-"${am_missing_run}tar"}
1669 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1671 # Installed binaries are usually stripped using `strip' when the user
1672 # run `make install-strip'. However `strip' might not be the right
1673 # tool to use in cross-compilation environments, therefore Automake
1674 # will honor the `STRIP' environment variable to overrule this program.
1675 if test "$cross_compiling" != no; then
1676 if test -n "$ac_tool_prefix"; then
1677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1678 set dummy ${ac_tool_prefix}strip; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_STRIP+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 if test -n "$STRIP"; then
1685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 STRIP=$ac_cv_prog_STRIP
1704 if test -n "$STRIP"; then
1705 echo "$as_me:$LINENO: result: $STRIP" >&5
1706 echo "${ECHO_T}$STRIP" >&6
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1713 if test -z "$ac_cv_prog_STRIP"; then
1715 # Extract the first word of "strip", so it can be a program name with args.
1716 set dummy strip; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$ac_ct_STRIP"; then
1723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_ac_ct_STRIP="strip"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1743 if test -n "$ac_ct_STRIP"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1745 echo "${ECHO_T}$ac_ct_STRIP" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1753 STRIP="$ac_cv_prog_STRIP"
1757 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1759 # We need awk for the "check" target. The system "awk" is bad on
1764 ac_config_headers="$ac_config_headers config.h"
1767 for ac_prog in gawk mawk nawk awk
1769 # Extract the first word of "$ac_prog", so it can be a program name with args.
1770 set dummy $ac_prog; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_AWK+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$AWK"; then
1777 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_AWK="$ac_prog"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 if test -n "$AWK"; then
1797 echo "$as_me:$LINENO: result: $AWK" >&5
1798 echo "${ECHO_T}$AWK" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1804 test -n "$AWK" && break
1807 # Find a good install program. We prefer a C program (faster),
1808 # so one script is as good as another. But avoid the broken or
1809 # incompatible versions:
1810 # SysV /etc/install, /usr/sbin/install
1811 # SunOS /usr/etc/install
1812 # IRIX /sbin/install
1814 # AmigaOS /C/install, which installs bootblocks on floppy discs
1815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1818 # OS/2's system install, which has a completely different semantic
1819 # ./install, which can be erroneously created by make from ./install.sh.
1820 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1821 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1822 if test -z "$INSTALL"; then
1823 if test "${ac_cv_path_install+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 # Account for people who put trailing slashes in PATH elements.
1833 ./ | .// | /cC/* | \
1834 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1835 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1838 # OSF1 and SCO ODT 3.0 have their own names for install.
1839 # Don't use installbsd from OSF since it installs stuff as root
1841 for ac_prog in ginstall scoinst install; do
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1844 if test $ac_prog = install &&
1845 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1846 # AIX install. It has an incompatible calling convention.
1848 elif test $ac_prog = install &&
1849 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1850 # program-specific install script used by HP pwplus--don't use.
1853 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1865 if test "${ac_cv_path_install+set}" = set; then
1866 INSTALL=$ac_cv_path_install
1868 # As a last resort, use the slow shell script. We don't cache a
1869 # path for INSTALL within a source directory, because that will
1870 # break other packages using the cache if that directory is
1871 # removed, or if the path is relative.
1872 INSTALL=$ac_install_sh
1875 echo "$as_me:$LINENO: result: $INSTALL" >&5
1876 echo "${ECHO_T}$INSTALL" >&6
1878 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1879 # It thinks the first close brace ends the variable substitution.
1880 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1882 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1884 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1886 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1887 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1889 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 cat >conftest.make <<\_ACEOF
1894 @echo 'ac_maketemp="$(MAKE)"'
1896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1897 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1898 if test -n "$ac_maketemp"; then
1899 eval ac_cv_prog_make_${ac_make}_set=yes
1901 eval ac_cv_prog_make_${ac_make}_set=no
1905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1906 echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 SET_MAKE="MAKE=${MAKE-make}"
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_RANLIB+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$RANLIB"; then
1924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 RANLIB=$ac_cv_prog_RANLIB
1943 if test -n "$RANLIB"; then
1944 echo "$as_me:$LINENO: result: $RANLIB" >&5
1945 echo "${ECHO_T}$RANLIB" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1952 if test -z "$ac_cv_prog_RANLIB"; then
1953 ac_ct_RANLIB=$RANLIB
1954 # Extract the first word of "ranlib", so it can be a program name with args.
1955 set dummy ranlib; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_RANLIB"; then
1962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_RANLIB="ranlib"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1982 if test -n "$ac_ct_RANLIB"; then
1983 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1984 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1986 echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1990 RANLIB=$ac_ct_RANLIB
1992 RANLIB="$ac_cv_prog_RANLIB"
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test -n "$CC"; then
2030 echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$ac_cv_prog_CC"; then
2040 # Extract the first word of "gcc", so it can be a program name with args.
2041 set dummy gcc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$ac_ct_CC"; then
2048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_ac_ct_CC="gcc"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067 if test -n "$ac_ct_CC"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069 echo "${ECHO_T}$ac_ct_CC" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2080 if test -z "$CC"; then
2081 if test -n "$ac_tool_prefix"; then
2082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2083 set dummy ${ac_tool_prefix}cc; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 if test -n "$CC"; then
2090 ac_cv_prog_CC="$CC" # Let the user override the test.
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_CC="${ac_tool_prefix}cc"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 if test -n "$CC"; then
2110 echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2118 if test -z "$ac_cv_prog_CC"; then
2120 # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 if test -n "$ac_ct_CC"; then
2128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2137 ac_cv_prog_ac_ct_CC="cc"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2147 if test -n "$ac_ct_CC"; then
2148 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2149 echo "${ECHO_T}$ac_ct_CC" >&6
2151 echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2161 if test -z "$CC"; then
2162 # Extract the first word of "cc", so it can be a program name with args.
2163 set dummy cc; ac_word=$2
2164 echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 if test -n "$CC"; then
2170 ac_cv_prog_CC="$CC" # Let the user override the test.
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2181 ac_prog_rejected=yes
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 if test $ac_prog_rejected = yes; then
2192 # We found a bogon in the path, so make sure we never use it.
2193 set dummy $ac_cv_prog_CC
2195 if test $# != 0; then
2196 # We chose a different compiler from the bogus one.
2197 # However, it has the same basename, so the bogon will be chosen
2198 # first if we set CC to just the basename; use the full file name.
2200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2206 if test -n "$CC"; then
2207 echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2215 if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 if test -n "$CC"; then
2247 echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6
2250 echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2254 test -n "$CC" && break
2257 if test -z "$CC"; then
2261 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy $ac_prog; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 if test -n "$ac_ct_CC"; then
2269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_prog_ac_ct_CC="$ac_prog"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2288 if test -n "$ac_ct_CC"; then
2289 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2290 echo "${ECHO_T}$ac_ct_CC" >&6
2292 echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2296 test -n "$ac_ct_CC" && break
2305 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: no acceptable C compiler found in \$PATH
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2311 # Provide some information about the compiler.
2312 echo "$as_me:$LINENO:" \
2313 "checking for C compiler version" >&5
2314 ac_compiler=`set X $ac_compile; echo $2`
2315 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2316 (eval $ac_compiler --version </dev/null >&5) 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }
2320 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2321 (eval $ac_compiler -v </dev/null >&5) 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }
2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2326 (eval $ac_compiler -V </dev/null >&5) 2>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 ac_clean_files_save=$ac_clean_files
2347 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2348 # Try to create an executable without -o first, disregard a.out.
2349 # It will help us diagnose broken compilers, and finding out an intuition
2351 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2352 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2353 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2354 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2355 (eval $ac_link_default) 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 # Find the output, starting from the most likely. This scheme is
2360 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2363 # Be careful to initialize this variable, since it used to be cached.
2364 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2366 # b.out is created by i960 compilers.
2367 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2369 test -f "$ac_file" || continue
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2374 # This is the source file.
2377 # We found the default executable, but exeext='' is most
2381 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382 # FIXME: I believe we export ac_cv_exeext for Libtool,
2383 # but it would be cool to find out if it's true. Does anybody
2384 # maintain Libtool? --akim.
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2395 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: C compiler cannot create executables
2398 See \`config.log' for more details." >&2;}
2399 { (exit 77); exit 77; }; }
2402 ac_exeext=$ac_cv_exeext
2403 echo "$as_me:$LINENO: result: $ac_file" >&5
2404 echo "${ECHO_T}$ac_file" >&6
2406 # Check the compiler produces executables we can run. If not, either
2407 # the compiler is broken, or we cross compile.
2408 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2409 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2410 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2411 # If not cross compiling, check that we can run a simple program.
2412 if test "$cross_compiling" != yes; then
2413 if { ac_try='./$ac_file'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2421 if test "$cross_compiling" = maybe; then
2424 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: cannot run C compiled programs.
2428 If you meant to cross compile, use \`--host'.
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2434 echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6
2437 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2438 ac_clean_files=$ac_clean_files_save
2439 # Check the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2442 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2443 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2444 echo "${ECHO_T}$cross_compiling" >&6
2446 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2447 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 for ac_file in conftest.exe conftest conftest.*; do
2458 test -f "$ac_file" || continue
2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472 { (exit 1); exit 1; }; }
2475 rm -f conftest$ac_cv_exeext
2476 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2482 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2484 if test "${ac_cv_objext+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2502 rm -f conftest.o conftest.obj
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; then
2508 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2522 See \`config.log' for more details." >&2;}
2523 { (exit 1); exit 1; }; }
2526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2529 echo "${ECHO_T}$ac_cv_objext" >&6
2530 OBJEXT=$ac_cv_objext
2532 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2593 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>conftest.er1
2617 grep -v '^ *+' conftest.er1 >conftest.err
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2654 if test "$GCC" = yes; then
2660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 ac_cv_prog_cc_stdc=no
2667 cat >conftest.$ac_ext <<_ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2691 s = g (p, va_arg (v,int));
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std1 is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std1. */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705 int test (int i, double x);
2706 struct s1 {int (*f) (int a);};
2707 struct s2 {int (*f) (double a);};
2708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2719 # Don't try gcc -ansi; that turns off useful extensions and
2720 # breaks some systems' header files.
2721 # AIX -qlanglvl=ansi
2722 # Ultrix and OSF/1 -std1
2723 # HP-UX 10.20 and later -Ae
2724 # HP-UX older versions -Aa -D_HPUX_SOURCE
2725 # SVR4 -Xc -D__EXTENSIONS__
2726 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 CC="$ac_save_CC $ac_arg"
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 ac_cv_prog_cc_stdc=$ac_arg
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2757 rm -f conftest.err conftest.$ac_objext
2759 rm -f conftest.$ac_ext conftest.$ac_objext
2764 case "x$ac_cv_prog_cc_stdc" in
2766 echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6 ;;
2769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2771 CC="$CC $ac_cv_prog_cc_stdc" ;;
2774 # Some people use a C++ compiler to compile C. Since we use `exit',
2775 # in C++ we need to declare it. In case someone uses the same compiler
2776 # for both compiling C and C++ we need to have the C++ compiler decide
2777 # the declaration of exit, since it's the most demanding environment.
2778 cat >conftest.$ac_ext <<_ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 for ac_declaration in \
2806 'extern "C" void std::exit (int) throw (); using std::exit;' \
2807 'extern "C" void std::exit (int); using std::exit;' \
2808 'extern "C" void exit (int) throw ();' \
2809 'extern "C" void exit (int);' \
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2832 grep -v '^ *+' conftest.er1 >conftest.err
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 if test -n "$ac_declaration"; then
2903 echo '#ifdef __cplusplus' >>confdefs.h
2904 echo $ac_declaration >>confdefs.h
2905 echo '#endif' >>confdefs.h
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 DEPDIR="${am__leading_dot}deps"
2921 ac_config_commands="$ac_config_commands depfiles"
2924 am_make=${MAKE-make}
2925 cat > confinc << 'END'
2930 # If we don't find an include directive, just comment out the code.
2931 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2932 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2936 # First try GNU make style include.
2937 echo "include confinc" > confmf
2938 # We grep out `Entering directory' and `Leaving directory'
2939 # messages which can occur if `w' ends up in MAKEFLAGS.
2940 # In particular we don't look at `^make:' because GNU make might
2941 # be invoked under some other name (usually "gmake"), in which
2942 # case it prints its new name instead of `make'.
2943 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2948 # Now try BSD make style include.
2949 if test "$am__include" = "#"; then
2950 echo '.include "confinc"' > confmf
2951 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2952 am__include=.include
2959 echo "$as_me:$LINENO: result: $_am_result" >&5
2960 echo "${ECHO_T}$_am_result" >&6
2961 rm -f confinc confmf
2963 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2964 if test "${enable_dependency_tracking+set}" = set; then
2965 enableval="$enable_dependency_tracking"
2968 if test "x$enable_dependency_tracking" != xno; then
2969 am_depcomp="$ac_aux_dir/depcomp"
2974 if test "x$enable_dependency_tracking" != xno; then
2985 depcc="$CC" am_compiler_list=
2987 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2988 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2989 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2993 # We make a subdir and do the tests there. Otherwise we can end up
2994 # making bogus files that we don't know about and never remove. For
2995 # instance it was reported that on HP-UX the gcc test will end up
2996 # making a dummy file named `D' -- because `-MD' means `put the output
2999 # Copy depcomp to subdir because otherwise we won't find it if we're
3000 # using a relative directory.
3001 cp "$am_depcomp" conftest.dir
3003 # We will build objects and dependencies in a subdirectory because
3004 # it helps to detect inapplicable dependency modes. For instance
3005 # both Tru64's cc and ICC support -MD to output dependencies as a
3006 # side effect of compilation, but ICC will put the dependencies in
3007 # the current directory while Tru64 will put them in the object
3011 am_cv_CC_dependencies_compiler_type=none
3012 if test "$am_compiler_list" = ""; then
3013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3015 for depmode in $am_compiler_list; do
3016 # Setup a source with many dependencies, because some compilers
3017 # like to wrap large dependency lists on column 80 (with \), and
3018 # we should not choose a depcomp mode which is confused by this.
3020 # We need to recreate these files for each test, as the compiler may
3021 # overwrite some of them when testing with obscure command lines.
3022 # This happens at least with the AIX C compiler.
3024 for i in 1 2 3 4 5 6; do
3025 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3028 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3032 # after this tag, mechanisms are not by side-effect, so they'll
3033 # only be used when explicitly requested
3034 if test "x$enable_dependency_tracking" = xyes; then
3042 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3043 # mode. It turns out that the SunPro C++ compiler does not properly
3044 # handle `-M -o', and we need to detect this.
3045 if depmode=$depmode \
3046 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3047 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3048 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3049 >/dev/null 2>conftest.err &&
3050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3051 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3053 # icc doesn't choke on unknown options, it will just issue warnings
3054 # (even with -Werror). So we grep stderr for any message
3055 # that says an option was ignored.
3056 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3057 am_cv_CC_dependencies_compiler_type=$depmode
3066 am_cv_CC_dependencies_compiler_type=none
3070 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3071 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3077 test "x$enable_dependency_tracking" != xno \
3078 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3080 am__fastdepCC_FALSE='#'
3082 am__fastdepCC_TRUE='#'
3083 am__fastdepCC_FALSE=
3088 ac_cpp='$CXXCPP $CPPFLAGS'
3089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099 if test "${ac_cv_prog_CXX+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 if test -n "$CXX"; then
3103 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 if test -n "$CXX"; then
3123 echo "$as_me:$LINENO: result: $CXX" >&5
3124 echo "${ECHO_T}$CXX" >&6
3126 echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3130 test -n "$CXX" && break
3133 if test -z "$CXX"; then
3135 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3141 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 if test -n "$ac_ct_CXX"; then
3145 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_ac_ct_CXX="$ac_prog"
3155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3164 if test -n "$ac_ct_CXX"; then
3165 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3166 echo "${ECHO_T}$ac_ct_CXX" >&6
3168 echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3172 test -n "$ac_ct_CXX" && break
3174 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3180 # Provide some information about the compiler.
3181 echo "$as_me:$LINENO:" \
3182 "checking for C++ compiler version" >&5
3183 ac_compiler=`set X $ac_compile; echo $2`
3184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3185 (eval $ac_compiler --version </dev/null >&5) 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }
3189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3190 (eval $ac_compiler -v </dev/null >&5) 2>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3195 (eval $ac_compiler -V </dev/null >&5) 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }
3200 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3201 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3202 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 cat >conftest.$ac_ext <<_ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>conftest.er1
3227 grep -v '^ *+' conftest.er1 >conftest.err
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3255 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3256 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3257 GXX=`test $ac_compiler_gnu = yes && echo yes`
3258 ac_test_CXXFLAGS=${CXXFLAGS+set}
3259 ac_save_CXXFLAGS=$CXXFLAGS
3261 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3262 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3263 if test "${ac_cv_prog_cxx_g+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; } &&
3296 { ac_try='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 ac_cv_prog_cxx_g=yes
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3311 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3312 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3313 if test "$ac_test_CXXFLAGS" = set; then
3314 CXXFLAGS=$ac_save_CXXFLAGS
3315 elif test $ac_cv_prog_cxx_g = yes; then
3316 if test "$GXX" = yes; then
3322 if test "$GXX" = yes; then
3328 for ac_declaration in \
3330 'extern "C" void std::exit (int) throw (); using std::exit;' \
3331 'extern "C" void std::exit (int); using std::exit;' \
3332 'extern "C" void exit (int) throw ();' \
3333 'extern "C" void exit (int);' \
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426 if test -n "$ac_declaration"; then
3427 echo '#ifdef __cplusplus' >>confdefs.h
3428 echo $ac_declaration >>confdefs.h
3429 echo '#endif' >>confdefs.h
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 depcc="$CXX" am_compiler_list=
3440 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3442 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446 # We make a subdir and do the tests there. Otherwise we can end up
3447 # making bogus files that we don't know about and never remove. For
3448 # instance it was reported that on HP-UX the gcc test will end up
3449 # making a dummy file named `D' -- because `-MD' means `put the output
3452 # Copy depcomp to subdir because otherwise we won't find it if we're
3453 # using a relative directory.
3454 cp "$am_depcomp" conftest.dir
3456 # We will build objects and dependencies in a subdirectory because
3457 # it helps to detect inapplicable dependency modes. For instance
3458 # both Tru64's cc and ICC support -MD to output dependencies as a
3459 # side effect of compilation, but ICC will put the dependencies in
3460 # the current directory while Tru64 will put them in the object
3464 am_cv_CXX_dependencies_compiler_type=none
3465 if test "$am_compiler_list" = ""; then
3466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3468 for depmode in $am_compiler_list; do
3469 # Setup a source with many dependencies, because some compilers
3470 # like to wrap large dependency lists on column 80 (with \), and
3471 # we should not choose a depcomp mode which is confused by this.
3473 # We need to recreate these files for each test, as the compiler may
3474 # overwrite some of them when testing with obscure command lines.
3475 # This happens at least with the AIX C compiler.
3477 for i in 1 2 3 4 5 6; do
3478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3485 # after this tag, mechanisms are not by side-effect, so they'll
3486 # only be used when explicitly requested
3487 if test "x$enable_dependency_tracking" = xyes; then
3495 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496 # mode. It turns out that the SunPro C++ compiler does not properly
3497 # handle `-M -o', and we need to detect this.
3498 if depmode=$depmode \
3499 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502 >/dev/null 2>conftest.err &&
3503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506 # icc doesn't choke on unknown options, it will just issue warnings
3507 # (even with -Werror). So we grep stderr for any message
3508 # that says an option was ignored.
3509 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3510 am_cv_CXX_dependencies_compiler_type=$depmode
3519 am_cv_CXX_dependencies_compiler_type=none
3523 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3524 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3525 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3530 test "x$enable_dependency_tracking" != xno \
3531 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3532 am__fastdepCXX_TRUE=
3533 am__fastdepCXX_FALSE='#'
3535 am__fastdepCXX_TRUE='#'
3536 am__fastdepCXX_FALSE=
3541 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3542 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3543 if test "${ac_cv_c_bigendian+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 # See if sys/param.h defines the BYTE_ORDER macro.
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 #include <sys/types.h>
3554 #include <sys/param.h>
3559 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 # It does; now see whether it defined to BIG_ENDIAN or not.
3589 cat >conftest.$ac_ext <<_ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include <sys/types.h>
3596 #include <sys/param.h>
3601 #if BYTE_ORDER != BIG_ENDIAN
3609 rm -f conftest.$ac_objext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611 (eval $ac_compile) 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_cv_c_bigendian=yes
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_c_bigendian=no
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 # It does not; compile a test program.
3643 if test "$cross_compiling" = yes; then
3644 # try to guess the endianness by grepping values into an object file
3645 ac_cv_c_bigendian=unknown
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3653 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3654 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3655 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3656 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3657 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3661 _ascii (); _ebcdic ();
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3688 ac_cv_c_bigendian=yes
3690 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3691 if test "$ac_cv_c_bigendian" = unknown; then
3692 ac_cv_c_bigendian=no
3694 # finding both strings is unlikely to happen, but who knows?
3695 ac_cv_c_bigendian=unknown
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3714 /* Are we little or big endian? From Harbison&Steele. */
3718 char c[sizeof (long)];
3721 exit (u.c[sizeof (long) - 1] == 1);
3724 rm -f conftest$ac_exeext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726 (eval $ac_link) 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 ac_cv_c_bigendian=no
3737 echo "$as_me: program exited with status $ac_status" >&5
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_cv_c_bigendian=yes
3744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3750 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3751 case $ac_cv_c_bigendian in
3754 cat >>confdefs.h <<\_ACEOF
3755 #define WORDS_BIGENDIAN 1
3761 { { echo "$as_me:$LINENO: error: unknown endianness
3762 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3763 echo "$as_me: error: unknown endianness
3764 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3765 { (exit 1); exit 1; }; } ;;
3769 # Extract the first word of "wx-config", so it can be a program name with args.
3770 set dummy wx-config; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_wxconfig+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 wxconfig=$ac_cv_path_wxconfig
3800 if test -n "$wxconfig"; then
3801 echo "$as_me:$LINENO: result: $wxconfig" >&5
3802 echo "${ECHO_T}$wxconfig" >&6
3804 echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3809 # Make sure we can run config.sub.
3810 $ac_config_sub sun4 >/dev/null 2>&1 ||
3811 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3812 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3813 { (exit 1); exit 1; }; }
3815 echo "$as_me:$LINENO: checking build system type" >&5
3816 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3817 if test "${ac_cv_build+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 ac_cv_build_alias=$build_alias
3821 test -z "$ac_cv_build_alias" &&
3822 ac_cv_build_alias=`$ac_config_guess`
3823 test -z "$ac_cv_build_alias" &&
3824 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3825 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3826 { (exit 1); exit 1; }; }
3827 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3828 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3829 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3830 { (exit 1); exit 1; }; }
3833 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3834 echo "${ECHO_T}$ac_cv_build" >&6
3836 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3837 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3838 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3841 echo "$as_me:$LINENO: checking host system type" >&5
3842 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3843 if test "${ac_cv_host+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 ac_cv_host_alias=$host_alias
3847 test -z "$ac_cv_host_alias" &&
3848 ac_cv_host_alias=$ac_cv_build_alias
3849 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3850 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3851 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3852 { (exit 1); exit 1; }; }
3855 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3856 echo "${ECHO_T}$ac_cv_host" >&6
3858 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3859 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3860 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3863 echo "$as_me:$LINENO: checking for inline" >&5
3864 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3865 if test "${ac_cv_c_inline+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 for ac_kw in inline __inline__ __inline; do
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3878 static $ac_kw foo_t static_foo () {return 0; }
3879 $ac_kw foo_t foo () {return 0; }
3883 rm -f conftest.$ac_objext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885 (eval $ac_compile) 2>conftest.er1
3887 grep -v '^ *+' conftest.er1 >conftest.err
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; } &&
3898 { ac_try='test -s conftest.$ac_objext'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; }; then
3904 ac_cv_c_inline=$ac_kw; break
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3914 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3915 echo "${ECHO_T}$ac_cv_c_inline" >&6
3918 case $ac_cv_c_inline in
3921 case $ac_cv_c_inline in
3923 *) ac_val=$ac_cv_c_inline;;
3925 cat >>confdefs.h <<_ACEOF
3927 #define inline $ac_val
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3940 # On Suns, sometimes $CPP names a directory.
3941 if test -n "$CPP" && test -d "$CPP"; then
3944 if test -z "$CPP"; then
3945 if test "${ac_cv_prog_CPP+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 # Double quotes because CPP needs to be expanded
3949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3952 for ac_c_preproc_warn_flag in '' yes
3954 # Use a header file that comes with gcc, so configuring glibc
3955 # with a fresh cross-compiler works.
3956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3957 # <limits.h> exists even on freestanding compilers.
3958 # On the NeXT, cc -E runs the code through the compiler's parser,
3959 # not just through cpp. "Syntax error" is here to catch this case.
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3967 # include <limits.h>
3969 # include <assert.h>
3973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976 grep -v '^ *+' conftest.er1 >conftest.err
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } >/dev/null; then
3981 if test -s conftest.err; then
3982 ac_cpp_err=$ac_c_preproc_warn_flag
3983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990 if test -z "$ac_cpp_err"; then
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3996 # Broken: fails on valid input.
3999 rm -f conftest.err conftest.$ac_ext
4001 # OK, works on sane cases. Now check whether non-existent headers
4002 # can be detected and how.
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 #include <ac_nonexistent.h>
4011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } >/dev/null; then
4019 if test -s conftest.err; then
4020 ac_cpp_err=$ac_c_preproc_warn_flag
4021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4028 if test -z "$ac_cpp_err"; then
4029 # Broken: success on invalid input.
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 # Passes both tests.
4039 rm -f conftest.err conftest.$ac_ext
4042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043 rm -f conftest.err conftest.$ac_ext
4044 if $ac_preproc_ok; then
4056 echo "$as_me:$LINENO: result: $CPP" >&5
4057 echo "${ECHO_T}$CPP" >&6
4059 for ac_c_preproc_warn_flag in '' yes
4061 # Use a header file that comes with gcc, so configuring glibc
4062 # with a fresh cross-compiler works.
4063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064 # <limits.h> exists even on freestanding compilers.
4065 # On the NeXT, cc -E runs the code through the compiler's parser,
4066 # not just through cpp. "Syntax error" is here to catch this case.
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4074 # include <limits.h>
4076 # include <assert.h>
4080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
4090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097 if test -z "$ac_cpp_err"; then
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 # Broken: fails on valid input.
4106 rm -f conftest.err conftest.$ac_ext
4108 # OK, works on sane cases. Now check whether non-existent headers
4109 # can be detected and how.
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4121 grep -v '^ *+' conftest.er1 >conftest.err
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev/null; then
4126 if test -s conftest.err; then
4127 ac_cpp_err=$ac_c_preproc_warn_flag
4128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4135 if test -z "$ac_cpp_err"; then
4136 # Broken: success on invalid input.
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 # Passes both tests.
4146 rm -f conftest.err conftest.$ac_ext
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.err conftest.$ac_ext
4151 if $ac_preproc_ok; then
4154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4155 See \`config.log' for more details." >&5
4156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4157 See \`config.log' for more details." >&2;}
4158 { (exit 1); exit 1; }; }
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168 echo "$as_me:$LINENO: checking for egrep" >&5
4169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4170 if test "${ac_cv_prog_egrep+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4174 then ac_cv_prog_egrep='grep -E'
4175 else ac_cv_prog_egrep='egrep'
4178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4180 EGREP=$ac_cv_prog_egrep
4183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4185 if test "${ac_cv_header_stdc+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4207 rm -f conftest.$ac_objext
4208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4209 (eval $ac_compile) 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_header_stdc=yes
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 ac_cv_header_stdc=no
4235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4237 if test $ac_cv_header_stdc = yes; then
4238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4249 $EGREP "memchr" >/dev/null 2>&1; then
4252 ac_cv_header_stdc=no
4258 if test $ac_cv_header_stdc = yes; then
4259 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270 $EGREP "free" >/dev/null 2>&1; then
4273 ac_cv_header_stdc=no
4279 if test $ac_cv_header_stdc = yes; then
4280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4281 if test "$cross_compiling" = yes; then
4284 cat >conftest.$ac_ext <<_ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4291 #if ((' ' & 0x0FF) == 0x020)
4292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4295 # define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4314 rm -f conftest$ac_exeext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4316 (eval $ac_link) 2>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4327 echo "$as_me: program exited with status $ac_status" >&5
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4332 ac_cv_header_stdc=no
4334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4339 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4340 if test $ac_cv_header_stdc = yes; then
4342 cat >>confdefs.h <<\_ACEOF
4343 #define STDC_HEADERS 1
4348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4358 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4359 inttypes.h stdint.h unistd.h
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 echo "$as_me:$LINENO: checking for $ac_header" >&5
4363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 $ac_includes_default
4375 #include <$ac_header>
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 eval "$as_ac_Header=yes"
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 eval "$as_ac_Header=no"
4405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4410 cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4419 echo "$as_me:$LINENO: checking for short" >&5
4420 echo $ECHO_N "checking for short... $ECHO_C" >&6
4421 if test "${ac_cv_type_short+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4442 rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4446 grep -v '^ *+' conftest.er1 >conftest.err
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_cv_type_short=yes
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4472 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4473 echo "${ECHO_T}$ac_cv_type_short" >&6
4475 echo "$as_me:$LINENO: checking size of short" >&5
4476 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4477 if test "${ac_cv_sizeof_short+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 if test "$ac_cv_type_short" = yes; then
4481 # The cast to unsigned long works around a bug in the HP C Compiler
4482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4484 # This bug is HP SR number 8606223364.
4485 if test "$cross_compiling" = yes; then
4486 # Depending upon the size, compute the lo and hi bounds.
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4497 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 $ac_includes_default
4537 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_hi=$ac_mid; break
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 ac_lo=`expr $ac_mid + 1`
4571 if test $ac_lo -le $ac_mid; then
4575 ac_mid=`expr 2 '*' $ac_mid + 1`
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4593 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4623 cat >conftest.$ac_ext <<_ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 $ac_includes_default
4633 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>conftest.er1
4644 grep -v '^ *+' conftest.er1 >conftest.err
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_lo=$ac_mid; break
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 ac_hi=`expr '(' $ac_mid ')' - 1`
4667 if test $ac_mid -le $ac_hi; then
4671 ac_mid=`expr 2 '*' $ac_mid`
4673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 # Binary search between lo and hi bounds.
4685 while test "x$ac_lo" != "x$ac_hi"; do
4686 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 $ac_includes_default
4697 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4704 rm -f conftest.$ac_objext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>conftest.er1
4708 grep -v '^ *+' conftest.er1 >conftest.err
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 ac_lo=`expr '(' $ac_mid ')' + 1`
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ?*) ac_cv_sizeof_short=$ac_lo;;
4736 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: cannot compute sizeof (short), 77
4739 See \`config.log' for more details." >&2;}
4740 { (exit 1); exit 1; }; } ;;
4743 if test "$cross_compiling" = yes; then
4744 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4745 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4746 { (exit 1); exit 1; }; }
4748 cat >conftest.$ac_ext <<_ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 $ac_includes_default
4755 long longval () { return (long) (sizeof (short)); }
4756 unsigned long ulongval () { return (long) (sizeof (short)); }
4763 FILE *f = fopen ("conftest.val", "w");
4766 if (((long) (sizeof (short))) < 0)
4768 long i = longval ();
4769 if (i != ((long) (sizeof (short))))
4771 fprintf (f, "%ld\n", i);
4775 unsigned long i = ulongval ();
4776 if (i != ((long) (sizeof (short))))
4778 fprintf (f, "%lu\n", i);
4780 exit (ferror (f) || fclose (f) != 0);
4786 rm -f conftest$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_sizeof_short=`cat conftest.val`
4799 echo "$as_me: program exited with status $ac_status" >&5
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4805 See \`config.log' for more details." >&5
4806 echo "$as_me: error: cannot compute sizeof (short), 77
4807 See \`config.log' for more details." >&2;}
4808 { (exit 1); exit 1; }; }
4810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4815 ac_cv_sizeof_short=0
4818 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4819 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4820 cat >>confdefs.h <<_ACEOF
4821 #define SIZEOF_SHORT $ac_cv_sizeof_short
4825 echo "$as_me:$LINENO: checking for int" >&5
4826 echo $ECHO_N "checking for int... $ECHO_C" >&6
4827 if test "${ac_cv_type_int+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 cat >conftest.$ac_ext <<_ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 $ac_includes_default
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4852 grep -v '^ *+' conftest.er1 >conftest.err
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4879 echo "${ECHO_T}$ac_cv_type_int" >&6
4881 echo "$as_me:$LINENO: checking size of int" >&5
4882 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4883 if test "${ac_cv_sizeof_int+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 if test "$ac_cv_type_int" = yes; then
4887 # The cast to unsigned long works around a bug in the HP C Compiler
4888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4890 # This bug is HP SR number 8606223364.
4891 if test "$cross_compiling" = yes; then
4892 # Depending upon the size, compute the lo and hi bounds.
4893 cat >conftest.$ac_ext <<_ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 $ac_includes_default
4903 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4910 rm -f conftest.$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4943 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>conftest.er1
4954 grep -v '^ *+' conftest.er1 >conftest.err
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_hi=$ac_mid; break
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_lo=`expr $ac_mid + 1`
4977 if test $ac_lo -le $ac_mid; then
4981 ac_mid=`expr 2 '*' $ac_mid + 1`
4983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4999 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 $ac_includes_default
5039 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5046 rm -f conftest.$ac_objext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048 (eval $ac_compile) 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; } &&
5061 { ac_try='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_lo=$ac_mid; break
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 ac_hi=`expr '(' $ac_mid ')' - 1`
5073 if test $ac_mid -le $ac_hi; then
5077 ac_mid=`expr 2 '*' $ac_mid`
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5090 # Binary search between lo and hi bounds.
5091 while test "x$ac_lo" != "x$ac_hi"; do
5092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 $ac_includes_default
5103 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try='test -s conftest.$ac_objext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 ac_lo=`expr '(' $ac_mid ')' + 1`
5138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5141 ?*) ac_cv_sizeof_int=$ac_lo;;
5142 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot compute sizeof (int), 77
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; } ;;
5149 if test "$cross_compiling" = yes; then
5150 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5151 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5152 { (exit 1); exit 1; }; }
5154 cat >conftest.$ac_ext <<_ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 $ac_includes_default
5161 long longval () { return (long) (sizeof (int)); }
5162 unsigned long ulongval () { return (long) (sizeof (int)); }
5169 FILE *f = fopen ("conftest.val", "w");
5172 if (((long) (sizeof (int))) < 0)
5174 long i = longval ();
5175 if (i != ((long) (sizeof (int))))
5177 fprintf (f, "%ld\n", i);
5181 unsigned long i = ulongval ();
5182 if (i != ((long) (sizeof (int))))
5184 fprintf (f, "%lu\n", i);
5186 exit (ferror (f) || fclose (f) != 0);
5192 rm -f conftest$ac_exeext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194 (eval $ac_link) 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_sizeof_int=`cat conftest.val`
5205 echo "$as_me: program exited with status $ac_status" >&5
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5210 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5211 See \`config.log' for more details." >&5
5212 echo "$as_me: error: cannot compute sizeof (int), 77
5213 See \`config.log' for more details." >&2;}
5214 { (exit 1); exit 1; }; }
5216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5224 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5225 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5226 cat >>confdefs.h <<_ACEOF
5227 #define SIZEOF_INT $ac_cv_sizeof_int
5231 echo "$as_me:$LINENO: checking for long" >&5
5232 echo $ECHO_N "checking for long... $ECHO_C" >&6
5233 if test "${ac_cv_type_long+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 cat >conftest.$ac_ext <<_ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5254 rm -f conftest.$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256 (eval $ac_compile) 2>conftest.er1
5258 grep -v '^ *+' conftest.er1 >conftest.err
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } &&
5263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; } &&
5269 { ac_try='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5284 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5285 echo "${ECHO_T}$ac_cv_type_long" >&6
5287 echo "$as_me:$LINENO: checking size of long" >&5
5288 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5289 if test "${ac_cv_sizeof_long+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 if test "$ac_cv_type_long" = yes; then
5293 # The cast to unsigned long works around a bug in the HP C Compiler
5294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5296 # This bug is HP SR number 8606223364.
5297 if test "$cross_compiling" = yes; then
5298 # Depending upon the size, compute the lo and hi bounds.
5299 cat >conftest.$ac_ext <<_ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 $ac_includes_default
5309 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 $ac_includes_default
5349 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; } &&
5371 { ac_try='test -s conftest.$ac_objext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5377 ac_hi=$ac_mid; break
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5382 ac_lo=`expr $ac_mid + 1`
5383 if test $ac_lo -le $ac_mid; then
5387 ac_mid=`expr 2 '*' $ac_mid + 1`
5389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 cat >conftest.$ac_ext <<_ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 $ac_includes_default
5405 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5412 rm -f conftest.$ac_objext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5414 (eval $ac_compile) 2>conftest.er1
5416 grep -v '^ *+' conftest.er1 >conftest.err
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } &&
5421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; } &&
5427 { ac_try='test -s conftest.$ac_objext'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; }; then
5435 cat >conftest.$ac_ext <<_ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5445 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5456 grep -v '^ *+' conftest.er1 >conftest.err
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_lo=$ac_mid; break
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_hi=`expr '(' $ac_mid ')' - 1`
5479 if test $ac_mid -le $ac_hi; then
5483 ac_mid=`expr 2 '*' $ac_mid`
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 # Binary search between lo and hi bounds.
5497 while test "x$ac_lo" != "x$ac_hi"; do
5498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5499 cat >conftest.$ac_ext <<_ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5509 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; } &&
5531 { ac_try='test -s conftest.$ac_objext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 ac_lo=`expr '(' $ac_mid ')' + 1`
5544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5547 ?*) ac_cv_sizeof_long=$ac_lo;;
5548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5549 See \`config.log' for more details." >&5
5550 echo "$as_me: error: cannot compute sizeof (long), 77
5551 See \`config.log' for more details." >&2;}
5552 { (exit 1); exit 1; }; } ;;
5555 if test "$cross_compiling" = yes; then
5556 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5557 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5558 { (exit 1); exit 1; }; }
5560 cat >conftest.$ac_ext <<_ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 $ac_includes_default
5567 long longval () { return (long) (sizeof (long)); }
5568 unsigned long ulongval () { return (long) (sizeof (long)); }
5575 FILE *f = fopen ("conftest.val", "w");
5578 if (((long) (sizeof (long))) < 0)
5580 long i = longval ();
5581 if (i != ((long) (sizeof (long))))
5583 fprintf (f, "%ld\n", i);
5587 unsigned long i = ulongval ();
5588 if (i != ((long) (sizeof (long))))
5590 fprintf (f, "%lu\n", i);
5592 exit (ferror (f) || fclose (f) != 0);
5598 rm -f conftest$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_sizeof_long=`cat conftest.val`
5611 echo "$as_me: program exited with status $ac_status" >&5
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5617 See \`config.log' for more details." >&5
5618 echo "$as_me: error: cannot compute sizeof (long), 77
5619 See \`config.log' for more details." >&2;}
5620 { (exit 1); exit 1; }; }
5622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5631 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5632 cat >>confdefs.h <<_ACEOF
5633 #define SIZEOF_LONG $ac_cv_sizeof_long
5637 echo "$as_me:$LINENO: checking for float" >&5
5638 echo $ECHO_N "checking for float... $ECHO_C" >&6
5639 if test "${ac_cv_type_float+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 ac_cv_type_float=yes
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5691 echo "${ECHO_T}$ac_cv_type_float" >&6
5693 echo "$as_me:$LINENO: checking size of float" >&5
5694 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5695 if test "${ac_cv_sizeof_float+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 if test "$ac_cv_type_float" = yes; then
5699 # The cast to unsigned long works around a bug in the HP C Compiler
5700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5702 # This bug is HP SR number 8606223364.
5703 if test "$cross_compiling" = yes; then
5704 # Depending upon the size, compute the lo and hi bounds.
5705 cat >conftest.$ac_ext <<_ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5715 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5722 rm -f conftest.$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 $ac_includes_default
5755 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 ac_hi=$ac_mid; break
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 ac_lo=`expr $ac_mid + 1`
5789 if test $ac_lo -le $ac_mid; then
5793 ac_mid=`expr 2 '*' $ac_mid + 1`
5795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 cat >conftest.$ac_ext <<_ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 $ac_includes_default
5811 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5841 cat >conftest.$ac_ext <<_ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_includes_default
5851 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_lo=$ac_mid; break
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_hi=`expr '(' $ac_mid ')' - 1`
5885 if test $ac_mid -le $ac_hi; then
5889 ac_mid=`expr 2 '*' $ac_mid`
5891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902 # Binary search between lo and hi bounds.
5903 while test "x$ac_lo" != "x$ac_hi"; do
5904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 $ac_includes_default
5915 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5922 rm -f conftest.$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_lo=`expr '(' $ac_mid ')' + 1`
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953 ?*) ac_cv_sizeof_float=$ac_lo;;
5954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5955 See \`config.log' for more details." >&5
5956 echo "$as_me: error: cannot compute sizeof (float), 77
5957 See \`config.log' for more details." >&2;}
5958 { (exit 1); exit 1; }; } ;;
5961 if test "$cross_compiling" = yes; then
5962 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5963 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5964 { (exit 1); exit 1; }; }
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5973 long longval () { return (long) (sizeof (float)); }
5974 unsigned long ulongval () { return (long) (sizeof (float)); }
5981 FILE *f = fopen ("conftest.val", "w");
5984 if (((long) (sizeof (float))) < 0)
5986 long i = longval ();
5987 if (i != ((long) (sizeof (float))))
5989 fprintf (f, "%ld\n", i);
5993 unsigned long i = ulongval ();
5994 if (i != ((long) (sizeof (float))))
5996 fprintf (f, "%lu\n", i);
5998 exit (ferror (f) || fclose (f) != 0);
6004 rm -f conftest$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 ac_cv_sizeof_float=`cat conftest.val`
6017 echo "$as_me: program exited with status $ac_status" >&5
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot compute sizeof (float), 77
6025 See \`config.log' for more details." >&2;}
6026 { (exit 1); exit 1; }; }
6028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6033 ac_cv_sizeof_float=0
6036 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6037 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
6038 cat >>confdefs.h <<_ACEOF
6039 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6043 echo "$as_me:$LINENO: checking for double" >&5
6044 echo $ECHO_N "checking for double... $ECHO_C" >&6
6045 if test "${ac_cv_type_double+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 cat >conftest.$ac_ext <<_ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6060 if (sizeof (double))
6066 rm -f conftest.$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>conftest.er1
6070 grep -v '^ *+' conftest.er1 >conftest.err
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_type_double=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_type_double=no
6094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6097 echo "${ECHO_T}$ac_cv_type_double" >&6
6099 echo "$as_me:$LINENO: checking size of double" >&5
6100 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6101 if test "${ac_cv_sizeof_double+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 if test "$ac_cv_type_double" = yes; then
6105 # The cast to unsigned long works around a bug in the HP C Compiler
6106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6108 # This bug is HP SR number 8606223364.
6109 if test "$cross_compiling" = yes; then
6110 # Depending upon the size, compute the lo and hi bounds.
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 $ac_includes_default
6121 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6128 rm -f conftest.$ac_objext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>conftest.er1
6132 grep -v '^ *+' conftest.er1 >conftest.err
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6151 cat >conftest.$ac_ext <<_ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 $ac_includes_default
6161 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6168 rm -f conftest.$ac_objext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170 (eval $ac_compile) 2>conftest.er1
6172 grep -v '^ *+' conftest.er1 >conftest.err
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; } &&
6183 { ac_try='test -s conftest.$ac_objext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_hi=$ac_mid; break
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 ac_lo=`expr $ac_mid + 1`
6195 if test $ac_lo -le $ac_mid; then
6199 ac_mid=`expr 2 '*' $ac_mid + 1`
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6217 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
6228 grep -v '^ *+' conftest.er1 >conftest.err
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; } &&
6239 { ac_try='test -s conftest.$ac_objext'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6257 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6264 rm -f conftest.$ac_objext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6266 (eval $ac_compile) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try='test -s conftest.$ac_objext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 ac_lo=$ac_mid; break
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 ac_hi=`expr '(' $ac_mid ')' - 1`
6291 if test $ac_mid -le $ac_hi; then
6295 ac_mid=`expr 2 '*' $ac_mid`
6297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308 # Binary search between lo and hi bounds.
6309 while test "x$ac_lo" != "x$ac_hi"; do
6310 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 $ac_includes_default
6321 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6328 rm -f conftest.$ac_objext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6330 (eval $ac_compile) 2>conftest.er1
6332 grep -v '^ *+' conftest.er1 >conftest.err
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest.$ac_objext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6354 ac_lo=`expr '(' $ac_mid ')' + 1`
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6359 ?*) ac_cv_sizeof_double=$ac_lo;;
6360 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6361 See \`config.log' for more details." >&5
6362 echo "$as_me: error: cannot compute sizeof (double), 77
6363 See \`config.log' for more details." >&2;}
6364 { (exit 1); exit 1; }; } ;;
6367 if test "$cross_compiling" = yes; then
6368 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6369 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6370 { (exit 1); exit 1; }; }
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 $ac_includes_default
6379 long longval () { return (long) (sizeof (double)); }
6380 unsigned long ulongval () { return (long) (sizeof (double)); }
6387 FILE *f = fopen ("conftest.val", "w");
6390 if (((long) (sizeof (double))) < 0)
6392 long i = longval ();
6393 if (i != ((long) (sizeof (double))))
6395 fprintf (f, "%ld\n", i);
6399 unsigned long i = ulongval ();
6400 if (i != ((long) (sizeof (double))))
6402 fprintf (f, "%lu\n", i);
6404 exit (ferror (f) || fclose (f) != 0);
6410 rm -f conftest$ac_exeext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412 (eval $ac_link) 2>&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_cv_sizeof_double=`cat conftest.val`
6423 echo "$as_me: program exited with status $ac_status" >&5
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6429 See \`config.log' for more details." >&5
6430 echo "$as_me: error: cannot compute sizeof (double), 77
6431 See \`config.log' for more details." >&2;}
6432 { (exit 1); exit 1; }; }
6434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6439 ac_cv_sizeof_double=0
6442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6443 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6444 cat >>confdefs.h <<_ACEOF
6445 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6451 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
6452 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
6453 if test "${ac_cv_lib_z_deflate+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 ac_check_lib_save_LIBS=$LIBS
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6465 /* Override any gcc2 internal prototype to avoid an error. */
6469 /* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */
6480 rm -f conftest.$ac_objext conftest$ac_exeext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482 (eval $ac_link) 2>conftest.er1
6484 grep -v '^ *+' conftest.er1 >conftest.err
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_lib_z_deflate=yes
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 ac_cv_lib_z_deflate=no
6508 rm -f conftest.err conftest.$ac_objext \
6509 conftest$ac_exeext conftest.$ac_ext
6510 LIBS=$ac_check_lib_save_LIBS
6512 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
6513 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
6514 if test $ac_cv_lib_z_deflate = yes; then
6517 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
6518 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
6522 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6523 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6524 if test "${ac_cv_lib_m_sin+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 ac_check_lib_save_LIBS=$LIBS
6529 cat >conftest.$ac_ext <<_ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6536 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1 >conftest.err
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest$ac_exeext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6579 rm -f conftest.err conftest.$ac_objext \
6580 conftest$ac_exeext conftest.$ac_ext
6581 LIBS=$ac_check_lib_save_LIBS
6583 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6584 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6585 if test $ac_cv_lib_m_sin = yes; then
6586 cat >>confdefs.h <<_ACEOF
6594 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
6595 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
6596 if test "${ac_cv_lib_curses_main+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 ac_check_lib_save_LIBS=$LIBS
6600 LIBS="-lcurses $LIBS"
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6617 rm -f conftest.$ac_objext conftest$ac_exeext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619 (eval $ac_link) 2>conftest.er1
6621 grep -v '^ *+' conftest.er1 >conftest.err
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
6626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try='test -s conftest$ac_exeext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_cv_lib_curses_main=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_lib_curses_main=no
6645 rm -f conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 LIBS=$ac_check_lib_save_LIBS
6649 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
6650 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
6651 if test $ac_cv_lib_curses_main = yes; then
6657 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
6658 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
6659 if test "${ac_cv_lib_ncurses_main+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-lncurses $LIBS"
6664 cat >conftest.$ac_ext <<_ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682 (eval $ac_link) 2>conftest.er1
6684 grep -v '^ *+' conftest.er1 >conftest.err
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest$ac_exeext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_lib_ncurses_main=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 ac_cv_lib_ncurses_main=no
6708 rm -f conftest.err conftest.$ac_objext \
6709 conftest$ac_exeext conftest.$ac_ext
6710 LIBS=$ac_check_lib_save_LIBS
6712 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
6713 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
6714 if test $ac_cv_lib_ncurses_main = yes; then
6720 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
6721 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
6722 if test "${ac_cv_lib_readline_main+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 ac_check_lib_save_LIBS=$LIBS
6726 LIBS="-lreadline -lcurses $LIBS"
6727 cat >conftest.$ac_ext <<_ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6743 rm -f conftest.$ac_objext conftest$ac_exeext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6745 (eval $ac_link) 2>conftest.er1
6747 grep -v '^ *+' conftest.er1 >conftest.err
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest$ac_exeext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_lib_readline_main=yes
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 ac_cv_lib_readline_main=no
6771 rm -f conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773 LIBS=$ac_check_lib_save_LIBS
6775 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
6776 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
6777 if test $ac_cv_lib_readline_main = yes; then
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_READLINE 1
6789 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
6790 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6
6791 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 ac_check_lib_save_LIBS=$LIBS
6795 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread` $LIBS"
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6812 rm -f conftest.$ac_objext conftest$ac_exeext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6814 (eval $ac_link) 2>conftest.er1
6816 grep -v '^ *+' conftest.er1 >conftest.err
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } &&
6821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest$ac_exeext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_lib_wx_gtk_2_4_main=yes
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 ac_cv_lib_wx_gtk_2_4_main=no
6840 rm -f conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6842 LIBS=$ac_check_lib_save_LIBS
6844 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
6845 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6
6846 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
6847 wxwin=true; wx_gtk=true;
6848 cat >>confdefs.h <<\_ACEOF
6849 #define HAVE_WXWINDOWS 1
6854 echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
6855 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6
6856 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 ac_check_lib_save_LIBS=$LIBS
6860 LIBS="-lwx_mac-2.4 $LIBS"
6861 cat >conftest.$ac_ext <<_ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6877 rm -f conftest.$ac_objext conftest$ac_exeext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6879 (eval $ac_link) 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; } &&
6892 { ac_try='test -s conftest$ac_exeext'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 ac_cv_lib_wx_mac_2_4_main=yes
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_lib_wx_mac_2_4_main=no
6905 rm -f conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 LIBS=$ac_check_lib_save_LIBS
6909 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
6910 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6
6911 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
6912 wxwin=true; wx_mac=true;
6913 cat >>confdefs.h <<\_ACEOF
6914 #define HAVE_WXWINDOWS 1
6919 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
6920 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6
6921 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 ac_check_lib_save_LIBS=$LIBS
6925 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
6926 cat >conftest.$ac_ext <<_ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6933 /* Override any gcc2 internal prototype to avoid an error. */
6937 /* We use char because int might match the return type of a gcc2
6938 builtin and then its argument prototype would still apply. */
6939 char fftw_malloc ();
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950 (eval $ac_link) 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_lib_fftw3_fftw_malloc=yes
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 ac_cv_lib_fftw3_fftw_malloc=no
6976 rm -f conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
6978 LIBS=$ac_check_lib_save_LIBS
6980 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
6981 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6
6982 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
6984 cat >>confdefs.h <<\_ACEOF
6992 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6993 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6994 if test "${ac_cv_lib_GL_main+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 ac_check_lib_save_LIBS=$LIBS
6998 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
6999 cat >conftest.$ac_ext <<_ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>conftest.er1
7019 grep -v '^ *+' conftest.er1 >conftest.err
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } &&
7024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest$ac_exeext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7036 ac_cv_lib_GL_main=yes
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7041 ac_cv_lib_GL_main=no
7043 rm -f conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7045 LIBS=$ac_check_lib_save_LIBS
7047 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
7048 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
7049 if test $ac_cv_lib_GL_main = yes; then
7055 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7056 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7057 if test "${ac_cv_lib_pthread_main+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 ac_check_lib_save_LIBS=$LIBS
7061 LIBS="-lpthread $LIBS"
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080 (eval $ac_link) 2>conftest.er1
7082 grep -v '^ *+' conftest.er1 >conftest.err
7084 cat conftest.err >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } &&
7087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; } &&
7093 { ac_try='test -s conftest$ac_exeext'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 ac_cv_lib_pthread_main=yes
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ac_cv_lib_pthread_main=no
7106 rm -f conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7108 LIBS=$ac_check_lib_save_LIBS
7110 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7111 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7112 if test $ac_cv_lib_pthread_main = yes; then
7119 if test "$zlib" = "true" ; then
7120 echo "$as_me:$LINENO: checking for main in -lpng" >&5
7121 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
7122 if test "${ac_cv_lib_png_main+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 ac_check_lib_save_LIBS=$LIBS
7126 LIBS="-lpng -lz -lm $LIBS"
7127 cat >conftest.$ac_ext <<_ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7143 rm -f conftest.$ac_objext conftest$ac_exeext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145 (eval $ac_link) 2>conftest.er1
7147 grep -v '^ *+' conftest.er1 >conftest.err
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; } &&
7158 { ac_try='test -s conftest$ac_exeext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_cv_lib_png_main=yes
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 ac_cv_lib_png_main=no
7171 rm -f conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7173 LIBS=$ac_check_lib_save_LIBS
7175 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
7176 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
7177 if test $ac_cv_lib_png_main = yes; then
7179 cat >>confdefs.h <<\_ACEOF
7189 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7190 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7191 if test "${ac_cv_header_stdc+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.$ac_ext <<_ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7217 grep -v '^ *+' conftest.er1 >conftest.err
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; } &&
7228 { ac_try='test -s conftest.$ac_objext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 ac_cv_header_stdc=yes
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_header_stdc=no
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 if test $ac_cv_header_stdc = yes; then
7244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 $EGREP "memchr" >/dev/null 2>&1; then
7258 ac_cv_header_stdc=no
7264 if test $ac_cv_header_stdc = yes; then
7265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276 $EGREP "free" >/dev/null 2>&1; then
7279 ac_cv_header_stdc=no
7285 if test $ac_cv_header_stdc = yes; then
7286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7287 if test "$cross_compiling" = yes; then
7290 cat >conftest.$ac_ext <<_ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7297 #if ((' ' & 0x0FF) == 0x020)
7298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7301 # define ISLOWER(c) \
7302 (('a' <= (c) && (c) <= 'i') \
7303 || ('j' <= (c) && (c) <= 'r') \
7304 || ('s' <= (c) && (c) <= 'z'))
7305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7313 for (i = 0; i < 256; i++)
7314 if (XOR (islower (i), ISLOWER (i))
7315 || toupper (i) != TOUPPER (i))
7320 rm -f conftest$ac_exeext
7321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7322 (eval $ac_link) 2>&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7333 echo "$as_me: program exited with status $ac_status" >&5
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_header_stdc=no
7340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7344 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7345 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7346 if test $ac_cv_header_stdc = yes; then
7348 cat >>confdefs.h <<\_ACEOF
7349 #define STDC_HEADERS 1
7378 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
7380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7382 echo "$as_me:$LINENO: checking for $ac_header" >&5
7383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390 # Is the header compilable?
7391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 #include <$ac_header>
7402 rm -f conftest.$ac_objext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>conftest.er1
7406 grep -v '^ *+' conftest.er1 >conftest.err
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; } &&
7417 { ac_try='test -s conftest.$ac_objext'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; }; then
7423 ac_header_compiler=yes
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 ac_header_compiler=no
7430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432 echo "${ECHO_T}$ac_header_compiler" >&6
7434 # Is the header present?
7435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 #include <$ac_header>
7445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7448 grep -v '^ *+' conftest.er1 >conftest.err
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } >/dev/null; then
7453 if test -s conftest.err; then
7454 ac_cpp_err=$ac_c_preproc_warn_flag
7455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7462 if test -z "$ac_cpp_err"; then
7463 ac_header_preproc=yes
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_header_preproc=no
7470 rm -f conftest.err conftest.$ac_ext
7471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7472 echo "${ECHO_T}$ac_header_preproc" >&6
7474 # So? What about this header?
7475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7481 ac_header_preproc=yes
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7498 ## ------------------------------------------ ##
7499 ## Report this to the AC_PACKAGE_NAME lists. ##
7500 ## ------------------------------------------ ##
7503 sed "s/^/$as_me: WARNING: /" >&2
7506 echo "$as_me:$LINENO: checking for $ac_header" >&5
7507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 eval "$as_ac_Header=\$ac_header_preproc"
7513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7528 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7529 if test "${ac_cv_c_const+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 cat >conftest.$ac_ext <<_ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7542 /* FIXME: Include the comments suggested by Paul. */
7544 /* Ultrix mips cc rejects this. */
7545 typedef int charset[2];
7547 /* SunOS 4.1.1 cc rejects this. */
7548 char const *const *ccp;
7550 /* NEC SVR4.0.2 mips cc rejects this. */
7551 struct point {int x, y;};
7552 static struct point const zero = {0,0};
7553 /* AIX XL C 1.02.0.0 rejects this.
7554 It does not let you subtract one const X* pointer from another in
7555 an arm of an if-expression whose if-part is not a constant
7557 const char *g = "string";
7558 ccp = &g + (g ? g-g : 0);
7559 /* HPUX 7.0 cc rejects these. */
7562 ccp = (char const *const *) p;
7563 { /* SCO 3.2v4 cc rejects this. */
7565 char const *s = 0 ? (char *) 0 : (char const *) 0;
7569 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7571 const int *foo = &x[0];
7574 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7575 typedef const int *iptr;
7579 { /* AIX XL C 1.02.0.0 rejects this saying
7580 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7581 struct s { int j; const int *ap[3]; };
7582 struct s *b; b->j = 5;
7584 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>conftest.er1
7597 grep -v '^ *+' conftest.er1 >conftest.err
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; } &&
7608 { ac_try='test -s conftest.$ac_objext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7623 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7624 echo "${ECHO_T}$ac_cv_c_const" >&6
7625 if test $ac_cv_c_const = no; then
7627 cat >>confdefs.h <<\_ACEOF
7633 echo "$as_me:$LINENO: checking for off_t" >&5
7634 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7635 if test "${ac_cv_type_off_t+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7656 rm -f conftest.$ac_objext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7658 (eval $ac_compile) 2>conftest.er1
7660 grep -v '^ *+' conftest.er1 >conftest.err
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_type_off_t=yes
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7686 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7687 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7688 if test $ac_cv_type_off_t = yes; then
7692 cat >>confdefs.h <<_ACEOF
7698 echo "$as_me:$LINENO: checking for size_t" >&5
7699 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7700 if test "${ac_cv_type_size_t+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 $ac_includes_default
7715 if (sizeof (size_t))
7721 rm -f conftest.$ac_objext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7723 (eval $ac_compile) 2>conftest.er1
7725 grep -v '^ *+' conftest.er1 >conftest.err
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 ac_cv_type_size_t=yes
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7747 ac_cv_type_size_t=no
7749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7751 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7752 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7753 if test $ac_cv_type_size_t = yes; then
7757 cat >>confdefs.h <<_ACEOF
7758 #define size_t unsigned
7763 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7764 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7765 if test "${ac_cv_struct_tm+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <sys/types.h>
7780 struct tm *tp; tp->tm_sec;
7785 rm -f conftest.$ac_objext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787 (eval $ac_compile) 2>conftest.er1
7789 grep -v '^ *+' conftest.er1 >conftest.err
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; } &&
7800 { ac_try='test -s conftest.$ac_objext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 ac_cv_struct_tm=time.h
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7811 ac_cv_struct_tm=sys/time.h
7813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7815 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7816 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7817 if test $ac_cv_struct_tm = sys/time.h; then
7819 cat >>confdefs.h <<\_ACEOF
7820 #define TM_IN_SYS_TIME 1
7827 for ac_func in vprintf
7829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7830 echo "$as_me:$LINENO: checking for $ac_func" >&5
7831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7832 if eval "test \"\${$as_ac_var+set}\" = set"; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7843 #define $ac_func innocuous_$ac_func
7845 /* System header to define __stub macros and hopefully few prototypes,
7846 which can conflict with char $ac_func (); below.
7847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7848 <limits.h> exists even on freestanding compilers. */
7851 # include <limits.h>
7853 # include <assert.h>
7858 /* Override any gcc2 internal prototype to avoid an error. */
7863 /* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7866 /* The GNU C library defines this for functions which it implements
7867 to always fail with ENOSYS. Some functions are actually named
7868 something starting with __ and the normal name is an alias. */
7869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7872 char (*f) () = $ac_func;
7881 return f != $ac_func;
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7888 (eval $ac_link) 2>conftest.er1
7890 grep -v '^ *+' conftest.er1 >conftest.err
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; } &&
7901 { ac_try='test -s conftest$ac_exeext'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7907 eval "$as_ac_var=yes"
7909 echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7912 eval "$as_ac_var=no"
7914 rm -f conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7919 if test `eval echo '${'$as_ac_var'}'` = yes; then
7920 cat >>confdefs.h <<_ACEOF
7921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7924 echo "$as_me:$LINENO: checking for _doprnt" >&5
7925 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7926 if test "${ac_cv_func__doprnt+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7937 #define _doprnt innocuous__doprnt
7939 /* System header to define __stub macros and hopefully few prototypes,
7940 which can conflict with char _doprnt (); below.
7941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7942 <limits.h> exists even on freestanding compilers. */
7945 # include <limits.h>
7947 # include <assert.h>
7952 /* Override any gcc2 internal prototype to avoid an error. */
7957 /* We use char because int might match the return type of a gcc2
7958 builtin and then its argument prototype would still apply. */
7960 /* The GNU C library defines this for functions which it implements
7961 to always fail with ENOSYS. Some functions are actually named
7962 something starting with __ and the normal name is an alias. */
7963 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7966 char (*f) () = _doprnt;
7975 return f != _doprnt;
7980 rm -f conftest.$ac_objext conftest$ac_exeext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7982 (eval $ac_link) 2>conftest.er1
7984 grep -v '^ *+' conftest.er1 >conftest.err
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 ac_cv_func__doprnt=yes
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8006 ac_cv_func__doprnt=no
8008 rm -f conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8011 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8012 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
8013 if test $ac_cv_func__doprnt = yes; then
8015 cat >>confdefs.h <<\_ACEOF
8016 #define HAVE_DOPRNT 1
8038 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
8040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8041 echo "$as_me:$LINENO: checking for $ac_func" >&5
8042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8043 if eval "test \"\${$as_ac_var+set}\" = set"; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8054 #define $ac_func innocuous_$ac_func
8056 /* System header to define __stub macros and hopefully few prototypes,
8057 which can conflict with char $ac_func (); below.
8058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8059 <limits.h> exists even on freestanding compilers. */
8062 # include <limits.h>
8064 # include <assert.h>
8069 /* Override any gcc2 internal prototype to avoid an error. */
8074 /* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8077 /* The GNU C library defines this for functions which it implements
8078 to always fail with ENOSYS. Some functions are actually named
8079 something starting with __ and the normal name is an alias. */
8080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8083 char (*f) () = $ac_func;
8092 return f != $ac_func;
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099 (eval $ac_link) 2>conftest.er1
8101 grep -v '^ *+' conftest.er1 >conftest.err
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest$ac_exeext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 eval "$as_ac_var=yes"
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 eval "$as_ac_var=no"
8125 rm -f conftest.err conftest.$ac_objext \
8126 conftest$ac_exeext conftest.$ac_ext
8128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8130 if test `eval echo '${'$as_ac_var'}'` = yes; then
8131 cat >>confdefs.h <<_ACEOF
8132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8138 echo "$as_me:$LINENO: checking for basename" >&5
8139 echo $ECHO_N "checking for basename... $ECHO_C" >&6
8140 if test "${ac_cv_func_basename+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 /* Define basename to an innocuous variant, in case <limits.h> declares basename.
8150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8151 #define basename innocuous_basename
8153 /* System header to define __stub macros and hopefully few prototypes,
8154 which can conflict with char basename (); below.
8155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8156 <limits.h> exists even on freestanding compilers. */
8159 # include <limits.h>
8161 # include <assert.h>
8166 /* Override any gcc2 internal prototype to avoid an error. */
8171 /* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8174 /* The GNU C library defines this for functions which it implements
8175 to always fail with ENOSYS. Some functions are actually named
8176 something starting with __ and the normal name is an alias. */
8177 #if defined (__stub_basename) || defined (__stub___basename)
8180 char (*f) () = basename;
8189 return f != basename;
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8196 (eval $ac_link) 2>conftest.er1
8198 grep -v '^ *+' conftest.er1 >conftest.err
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try='test -s conftest$ac_exeext'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_func_basename=yes
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8220 ac_cv_func_basename=no
8222 rm -f conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8225 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
8226 echo "${ECHO_T}$ac_cv_func_basename" >&6
8228 echo "$as_me:$LINENO: checking for setjmp" >&5
8229 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
8230 if test "${ac_cv_func_setjmp+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 cat >conftest.$ac_ext <<_ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 /* Define setjmp to an innocuous variant, in case <limits.h> declares setjmp.
8240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8241 #define setjmp innocuous_setjmp
8243 /* System header to define __stub macros and hopefully few prototypes,
8244 which can conflict with char setjmp (); below.
8245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8246 <limits.h> exists even on freestanding compilers. */
8249 # include <limits.h>
8251 # include <assert.h>
8256 /* Override any gcc2 internal prototype to avoid an error. */
8261 /* We use char because int might match the return type of a gcc2
8262 builtin and then its argument prototype would still apply. */
8264 /* The GNU C library defines this for functions which it implements
8265 to always fail with ENOSYS. Some functions are actually named
8266 something starting with __ and the normal name is an alias. */
8267 #if defined (__stub_setjmp) || defined (__stub___setjmp)
8270 char (*f) () = setjmp;
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286 (eval $ac_link) 2>conftest.er1
8288 grep -v '^ *+' conftest.er1 >conftest.err
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_cv_func_setjmp=yes
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_cv_func_setjmp=no
8312 rm -f conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8315 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
8316 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
8318 echo "$as_me:$LINENO: checking for setpriority" >&5
8319 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
8320 if test "${ac_cv_func_setpriority+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 /* Define setpriority to an innocuous variant, in case <limits.h> declares setpriority.
8330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8331 #define setpriority innocuous_setpriority
8333 /* System header to define __stub macros and hopefully few prototypes,
8334 which can conflict with char setpriority (); below.
8335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8336 <limits.h> exists even on freestanding compilers. */
8339 # include <limits.h>
8341 # include <assert.h>
8346 /* Override any gcc2 internal prototype to avoid an error. */
8351 /* We use char because int might match the return type of a gcc2
8352 builtin and then its argument prototype would still apply. */
8353 char setpriority ();
8354 /* The GNU C library defines this for functions which it implements
8355 to always fail with ENOSYS. Some functions are actually named
8356 something starting with __ and the normal name is an alias. */
8357 #if defined (__stub_setpriority) || defined (__stub___setpriority)
8360 char (*f) () = setpriority;
8369 return f != setpriority;
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376 (eval $ac_link) 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_func_setpriority=yes
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 ac_cv_func_setpriority=no
8402 rm -f conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8405 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
8406 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
8408 echo "$as_me:$LINENO: checking for time" >&5
8409 echo $ECHO_N "checking for time... $ECHO_C" >&6
8410 if test "${ac_cv_func_time+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 cat >conftest.$ac_ext <<_ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 /* Define time to an innocuous variant, in case <limits.h> declares time.
8420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8421 #define time innocuous_time
8423 /* System header to define __stub macros and hopefully few prototypes,
8424 which can conflict with char time (); below.
8425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8426 <limits.h> exists even on freestanding compilers. */
8429 # include <limits.h>
8431 # include <assert.h>
8436 /* Override any gcc2 internal prototype to avoid an error. */
8441 /* We use char because int might match the return type of a gcc2
8442 builtin and then its argument prototype would still apply. */
8444 /* The GNU C library defines this for functions which it implements
8445 to always fail with ENOSYS. Some functions are actually named
8446 something starting with __ and the normal name is an alias. */
8447 #if defined (__stub_time) || defined (__stub___time)
8450 char (*f) () = time;
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8468 grep -v '^ *+' conftest.er1 >conftest.err
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8492 rm -f conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8495 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
8496 echo "${ECHO_T}$ac_cv_func_time" >&6
8498 echo "$as_me:$LINENO: checking for gettimeofday" >&5
8499 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
8500 if test "${ac_cv_func_gettimeofday+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 cat >conftest.$ac_ext <<_ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
8510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8511 #define gettimeofday innocuous_gettimeofday
8513 /* System header to define __stub macros and hopefully few prototypes,
8514 which can conflict with char gettimeofday (); below.
8515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8516 <limits.h> exists even on freestanding compilers. */
8519 # include <limits.h>
8521 # include <assert.h>
8526 /* Override any gcc2 internal prototype to avoid an error. */
8531 /* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8533 char gettimeofday ();
8534 /* The GNU C library defines this for functions which it implements
8535 to always fail with ENOSYS. Some functions are actually named
8536 something starting with __ and the normal name is an alias. */
8537 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
8540 char (*f) () = gettimeofday;
8549 return f != gettimeofday;
8554 rm -f conftest.$ac_objext conftest$ac_exeext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556 (eval $ac_link) 2>conftest.er1
8558 grep -v '^ *+' conftest.er1 >conftest.err
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } &&
8563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; } &&
8569 { ac_try='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_cv_func_gettimeofday=yes
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 ac_cv_func_gettimeofday=no
8582 rm -f conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8585 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8586 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
8588 echo "$as_me:$LINENO: checking for getopt" >&5
8589 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8590 if test "${ac_cv_func_getopt+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 cat >conftest.$ac_ext <<_ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
8600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8601 #define getopt innocuous_getopt
8603 /* System header to define __stub macros and hopefully few prototypes,
8604 which can conflict with char getopt (); below.
8605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8606 <limits.h> exists even on freestanding compilers. */
8609 # include <limits.h>
8611 # include <assert.h>
8616 /* Override any gcc2 internal prototype to avoid an error. */
8621 /* We use char because int might match the return type of a gcc2
8622 builtin and then its argument prototype would still apply. */
8624 /* The GNU C library defines this for functions which it implements
8625 to always fail with ENOSYS. Some functions are actually named
8626 something starting with __ and the normal name is an alias. */
8627 #if defined (__stub_getopt) || defined (__stub___getopt)
8630 char (*f) () = getopt;
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_func_getopt=yes
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_cv_func_getopt=no
8672 rm -f conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8676 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8677 if test $ac_cv_func_getopt = yes; then
8684 if test "${OSTYPE}" = "cygwin" ; then
8687 echo "$as_me:$LINENO: checking for getopt_long" >&5
8688 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
8689 if test "${ac_cv_func_getopt_long+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
8699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8700 #define getopt_long innocuous_getopt_long
8702 /* System header to define __stub macros and hopefully few prototypes,
8703 which can conflict with char getopt_long (); below.
8704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8705 <limits.h> exists even on freestanding compilers. */
8708 # include <limits.h>
8710 # include <assert.h>
8715 /* Override any gcc2 internal prototype to avoid an error. */
8720 /* We use char because int might match the return type of a gcc2
8721 builtin and then its argument prototype would still apply. */
8722 char getopt_long ();
8723 /* The GNU C library defines this for functions which it implements
8724 to always fail with ENOSYS. Some functions are actually named
8725 something starting with __ and the normal name is an alias. */
8726 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
8729 char (*f) () = getopt_long;
8738 return f != getopt_long;
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745 (eval $ac_link) 2>conftest.er1
8747 grep -v '^ *+' conftest.er1 >conftest.err
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_func_getopt_long=yes
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 ac_cv_func_getopt_long=no
8771 rm -f conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8775 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
8776 if test $ac_cv_func_getopt_long = yes; then
8784 if test "${getopt_long}" = "false" ; then
8785 my_includes="$my_includes -I../getopt"
8787 cat >>confdefs.h <<\_ACEOF
8788 #define HAVE_GETOPT_LONG 1
8791 ctlibs_base="$ctlibs_base -lgetopt"
8792 LDFLAGS="$LDFLAGS -L../getopt"
8797 if test "$GETOPTLONG"="1"; then
8798 INCLUDED_GETOPT_LONG_TRUE=
8799 INCLUDED_GETOPT_LONG_FALSE='#'
8801 INCLUDED_GETOPT_LONG_TRUE='#'
8802 INCLUDED_GETOPT_LONG_FALSE=
8806 if test "${readline}" = "true" ; then
8807 ctlibs_base="$ctlibs_base -lreadline"
8808 if test "${ncurses}" = "true"; then
8809 ctlibs_base="$ctlibs_base -lncurses"
8810 elif test "${curses}" = "true"; then
8811 ctlibs_base="$ctlibs_base -lcurses"
8815 echo "$as_me:$LINENO: checking debug" >&5
8816 echo $ECHO_N "checking debug... $ECHO_C" >&6
8817 # Check whether --enable-debug or --disable-debug was given.
8818 if test "${enable_debug+set}" = set; then
8819 enableval="$enable_debug"
8820 case "${enableval}" in
8822 echo "$as_me:$LINENO: result: yes" >&5
8823 echo "${ECHO_T}yes" >&6
8826 echo "$as_me:$LINENO: result: no" >&5
8827 echo "${ECHO_T}no" >&6
8829 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
8830 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
8834 debug=false; echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6
8839 if test "$debug" = "true"; then
8848 if test "$datadir" != "" ; then
8849 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
8852 if test "$debug" = "true" ; then
8853 CFLAGS="$CFLAGS -g -DDEBUG"
8855 cat >>confdefs.h <<\_ACEOF
8860 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
8862 cat >>confdefs.h <<\_ACEOF
8868 if test "${pthread}" = "true" ; then
8870 cat >>confdefs.h <<\_ACEOF
8871 #define HAVE_WXTHREADS 1
8876 echo "$as_me:$LINENO: checking sstream" >&5
8877 echo $ECHO_N "checking sstream... $ECHO_C" >&6
8878 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
8879 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
8880 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
8882 cat >>confdefs.h <<\_ACEOF
8883 #define HAVE_SSTREAM 1
8886 echo "$as_me:$LINENO: result: yes" >&5
8887 echo "${ECHO_T}yes" >&6
8889 echo "$as_me:$LINENO: result: no" >&5
8890 echo "${ECHO_T}no" >&6
8894 CFLAGS="$CFLAGS -Wall"
8895 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
8896 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
8897 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
8898 if test "${enable_verbose_warnings+set}" = set; then
8899 enableval="$enable_verbose_warnings"
8900 case "$enableval" in
8902 echo "$as_me:$LINENO: result: yes" >&5
8903 echo "${ECHO_T}yes" >&6
8904 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
8907 echo "$as_me:$LINENO: result: no" >&5
8908 echo "${ECHO_T}no" >&6
8912 echo "$as_me:$LINENO: result: no" >&5
8913 echo "${ECHO_T}no" >&6
8917 echo "$as_me:$LINENO: checking static executables" >&5
8918 echo $ECHO_N "checking static executables... $ECHO_C" >&6
8919 # Check whether --enable-static or --disable-static was given.
8920 if test "${enable_static+set}" = set; then
8921 enableval="$enable_static"
8922 case "$enableval" in
8924 echo "$as_me:$LINENO: result: yes" >&5
8925 echo "${ECHO_T}yes" >&6
8926 CFLAGS="$CFLAGS --static"
8929 echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6
8934 echo "$as_me:$LINENO: result: no" >&5
8935 echo "${ECHO_T}no" >&6
8940 # Check whether --with-lam or --without-lam was given.
8941 if test "${with_lam+set}" = set; then
8943 if test "$withval" != "no" ; then
8949 if test "$withval" != "no" ; then
8950 if test "$prefix" != "NONE" ; then
8951 trylamdir="$trylamdir $prefix"
8954 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
8955 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
8956 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
8957 if test -x "$testlamdir/bin/hcp" ; then
8958 if test "$testlamdir" != "/usr"; then
8959 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
8960 CFLAGS="$CFLAGS -I$testlamdir/include"
8962 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
8963 lamdir="$testlamdir"
8970 echo "$as_me:$LINENO: result: $lamdir" >&5
8971 echo "${ECHO_T}$lamdir" >&6
8973 echo "$as_me:$LINENO: result: no" >&5
8974 echo "${ECHO_T}no" >&6
8979 # Check whether --with-ctn or --without-ctn was given.
8980 if test "${with_ctn+set}" = set; then
8982 if test "$withval" != "no" ; then
8988 if test "$withval" == "no" -o "$withval" == "NONE" ; then
8989 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8990 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8991 echo "$as_me:$LINENO: result: disabled" >&5
8992 echo "${ECHO_T}disabled" >&6
8994 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
8995 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
8996 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
8997 if test -f "$testctndir/libctn.a" ; then
8998 LDFLAGS="$LDFLAGS -L$testctndir"
9003 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
9004 if test -f "$testctndir/ctn_os.h" ; then
9005 CFLAGS="$CFLAGS -I$testctndir"
9010 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
9013 cat >>confdefs.h <<\_ACEOF
9014 #define HAVE_CTN_DICOM 1
9017 echo "$as_me:$LINENO: result: yes" >&5
9018 echo "${ECHO_T}yes" >&6
9020 echo "$as_me:$LINENO: result: no" >&5
9021 echo "${ECHO_T}no" >&6
9025 echo "$as_me:$LINENO: checking for CPU specification" >&5
9026 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6
9028 # Check whether --with-mcpu or --without-mcpu was given.
9029 if test "${with_mcpu+set}" = set; then
9030 withval="$with_mcpu"
9034 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
9035 echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6
9038 echo "$as_me:$LINENO: result: $withval" >&5
9039 echo "${ECHO_T}$withval" >&6
9040 CFLAGS="$CFLAGS -mcpu=$withval"
9043 echo "$as_me:$LINENO: checking for web access" >&5
9044 echo $ECHO_N "checking for web access... $ECHO_C" >&6
9046 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
9047 if test "${with_cgibin_dir+set}" = set; then
9048 withval="$with_cgibin_dir"
9049 cgibindir=$withval ;
9053 # Check whether --with-cgibin-url or --without-cgibin-url was given.
9054 if test "${with_cgibin_url+set}" = set; then
9055 withval="$with_cgibin_url"
9056 cgibinurl=$withval ;
9060 # Check whether --with-webdata-dir or --without-webdata-dir was given.
9061 if test "${with_webdata_dir+set}" = set; then
9062 withval="$with_webdata_dir"
9063 webdatadir=$withval ;
9067 # Check whether --with-webdata-url or --without-webdata-url was given.
9068 if test "${with_webdata_url+set}" = set; then
9069 withval="$with_webdata_url"
9070 webdataurl=$withval ;
9074 # Check whether --with-html-dir or --without-html-dir was given.
9075 if test "${with_html_dir+set}" = set; then
9076 withval="$with_html_dir"
9080 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
9081 cgiprograms="ctsim.cgi ctsim.conf"
9085 if test -n "$htmldir" ; then
9086 htmldata=simulate.html
9091 if test -n "$htmldir"; then
9100 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
9103 echo "$as_me:$LINENO: result: yes" >&5
9104 echo "${ECHO_T}yes" >&6
9105 if test -z "$cgibindir" ; then
9106 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
9107 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
9108 { (exit 1); exit 1; }; }
9109 elif test -z "$cgibinurl" ; then
9110 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
9111 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
9112 { (exit 1); exit 1; }; }
9113 elif test -z "$webdatadir" ; then
9114 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
9115 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
9116 { (exit 1); exit 1; }; }
9117 elif test -z "$webdataurl" ; then
9118 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
9119 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
9120 { (exit 1); exit 1; }; }
9121 elif test -z "$htmldir" ; then
9122 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
9123 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
9124 { (exit 1); exit 1; }; }
9127 echo "$as_me:$LINENO: result: no" >&5
9128 echo "${ECHO_T}no" >&6
9133 if test -n "$lamdir"; then
9143 if test "x$ac_path_x_has_been_run" != xyes; then
9144 echo "$as_me:$LINENO: checking for X" >&5
9145 echo $ECHO_N "checking for X... $ECHO_C" >&6
9147 ac_path_x_has_been_run=yes
9149 # Check whether --with-x or --without-x was given.
9150 if test "${with_x+set}" = set; then
9154 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9155 if test "x$with_x" = xno; then
9156 # The user explicitly disabled X.
9159 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9160 # Both variables are already set.
9163 if test "${ac_cv_have_x+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 # One or both of the vars are not set, and there is no cached value.
9167 ac_x_includes=no ac_x_libraries=no
9169 if mkdir conftest.dir; then
9171 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9172 cat >Imakefile <<'_ACEOF'
9174 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9176 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9178 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9179 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9180 for ac_extension in a so sl; do
9181 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9182 test -f $ac_im_libdir/libX11.$ac_extension; then
9183 ac_im_usrlibdir=$ac_im_libdir; break
9186 # Screen out bogus values from the imake configuration. They are
9187 # bogus both because they are the default anyway, and because
9188 # using them would break gcc on systems where it needs fixed includes.
9189 case $ac_im_incroot in
9191 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9193 case $ac_im_usrlibdir in
9195 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9202 # Standard set of common directories for X headers.
9203 # Check X11 before X11Rn because it is often a symlink to the current release.
9215 /usr/local/X11/include
9216 /usr/local/X11R6/include
9217 /usr/local/X11R5/include
9218 /usr/local/X11R4/include
9220 /usr/local/include/X11
9221 /usr/local/include/X11R6
9222 /usr/local/include/X11R5
9223 /usr/local/include/X11R4
9227 /usr/XFree86/include/X11
9231 /usr/unsupported/include
9233 /usr/local/x11r5/include
9234 /usr/lpp/Xamples/include
9236 /usr/openwin/include
9237 /usr/openwin/share/include'
9239 if test "$ac_x_includes" = no; then
9240 # Guess where to find include files, by looking for a specified header file.
9241 # First, try using that file with no special directory specified.
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 #include <X11/Intrinsic.h>
9250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } >/dev/null; then
9258 if test -s conftest.err; then
9259 ac_cpp_err=$ac_c_preproc_warn_flag
9260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9267 if test -z "$ac_cpp_err"; then
9268 # We can compile using X headers with no special include directory.
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 for ac_dir in $ac_x_header_dirs; do
9275 if test -r "$ac_dir/X11/Intrinsic.h"; then
9276 ac_x_includes=$ac_dir
9281 rm -f conftest.err conftest.$ac_ext
9282 fi # $ac_x_includes = no
9284 if test "$ac_x_libraries" = no; then
9285 # Check for the libraries.
9286 # See if we find them without any special options.
9287 # Don't add to $LIBS permanently.
9290 cat >conftest.$ac_ext <<_ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 #include <X11/Intrinsic.h>
9305 rm -f conftest.$ac_objext conftest$ac_exeext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307 (eval $ac_link) 2>conftest.er1
9309 grep -v '^ *+' conftest.er1 >conftest.err
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9327 # We can link X programs with no special library path.
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9334 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9336 # Don't even attempt the hair of trying to link an X program!
9337 for ac_extension in a so sl; do
9338 if test -r $ac_dir/libXt.$ac_extension; then
9339 ac_x_libraries=$ac_dir
9345 rm -f conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 fi # $ac_x_libraries = no
9349 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9350 # Didn't find X anywhere. Cache the known absence of X.
9351 ac_cv_have_x="have_x=no"
9353 # Record where we found X for the cache.
9354 ac_cv_have_x="have_x=yes \
9355 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9360 eval "$ac_cv_have_x"
9363 if test "$have_x" != yes; then
9364 echo "$as_me:$LINENO: result: $have_x" >&5
9365 echo "${ECHO_T}$have_x" >&6
9368 # If each of the values was on the command line, it overrides each guess.
9369 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9370 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9371 # Update the cache value to reflect the command line values.
9372 ac_cv_have_x="have_x=yes \
9373 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9374 # It might be that x_includes is empty (headers are found in the
9375 # standard search path. Then output the corresponding message
9376 ac_out_x_includes=$x_includes
9377 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9378 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9379 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9383 if test "$no_x" = yes; then
9384 # Not all programs may use this symbol, but it does not hurt to define it.
9386 cat >>confdefs.h <<\_ACEOF
9387 #define X_DISPLAY_MISSING 1
9390 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9392 if test -n "$x_includes"; then
9393 X_CFLAGS="$X_CFLAGS -I$x_includes"
9396 # It would also be nice to do this for all -L options, not just this one.
9397 if test -n "$x_libraries"; then
9398 X_LIBS="$X_LIBS -L$x_libraries"
9399 # For Solaris; some versions of Sun CC require a space after -R and
9400 # others require no space. Words are not sufficient . . . .
9401 case `(uname -sr) 2>/dev/null` in
9403 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9404 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9405 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9406 cat >conftest.$ac_ext <<_ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>conftest.er1
9425 grep -v '^ *+' conftest.er1 >conftest.err
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } &&
9430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; } &&
9436 { ac_try='test -s conftest$ac_exeext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9449 rm -f conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 if test $ac_R_nospace = yes; then
9452 echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6
9454 X_LIBS="$X_LIBS -R$x_libraries"
9456 LIBS="$ac_xsave_LIBS -R $x_libraries"
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>conftest.er1
9476 grep -v '^ *+' conftest.er1 >conftest.err
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
9481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; } &&
9487 { ac_try='test -s conftest$ac_exeext'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9500 rm -f conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9502 if test $ac_R_space = yes; then
9503 echo "$as_me:$LINENO: result: yes" >&5
9504 echo "${ECHO_T}yes" >&6
9505 X_LIBS="$X_LIBS -R $x_libraries"
9507 echo "$as_me:$LINENO: result: neither works" >&5
9508 echo "${ECHO_T}neither works" >&6
9515 # Check for system-dependent libraries X programs must link with.
9516 # Do this before checking for the system-independent R6 libraries
9517 # (-lICE), since we may need -lsocket or whatever for X linking.
9519 if test "$ISC" = yes; then
9520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9522 # Martyn Johnson says this is needed for Ultrix, if the X
9523 # libraries were built with DECnet support. And Karl Berry says
9524 # the Alpha needs dnet_stub (dnet does not exist).
9525 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9526 cat >conftest.$ac_ext <<_ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9533 /* Override any gcc2 internal prototype to avoid an error. */
9537 /* We use char because int might match the return type of a gcc2
9538 builtin and then its argument prototype would still apply. */
9539 char XOpenDisplay ();
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; } &&
9563 { ac_try='test -s conftest$ac_exeext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9575 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9576 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 ac_check_lib_save_LIBS=$LIBS
9581 cat >conftest.$ac_ext <<_ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9588 /* Override any gcc2 internal prototype to avoid an error. */
9592 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; } &&
9618 { ac_try='test -s conftest$ac_exeext'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 ac_cv_lib_dnet_dnet_ntoa=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_lib_dnet_dnet_ntoa=no
9631 rm -f conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_lib_save_LIBS
9635 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9636 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9637 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9638 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9641 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9642 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9643 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9644 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 ac_check_lib_save_LIBS=$LIBS
9648 LIBS="-ldnet_stub $LIBS"
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 /* Override any gcc2 internal prototype to avoid an error. */
9660 /* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_lib_dnet_stub_dnet_ntoa=no
9699 rm -f conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9703 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9704 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9705 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9706 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9711 rm -f conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
9713 LIBS="$ac_xsave_LIBS"
9715 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9716 # to get the SysV transport functions.
9717 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9719 # The nsl library prevents programs from opening the X display
9720 # on Irix 5.2, according to T.E. Dickey.
9721 # The functions gethostbyname, getservbyname, and inet_addr are
9722 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9723 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9724 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9725 if test "${ac_cv_func_gethostbyname+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9736 #define gethostbyname innocuous_gethostbyname
9738 /* System header to define __stub macros and hopefully few prototypes,
9739 which can conflict with char gethostbyname (); below.
9740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9741 <limits.h> exists even on freestanding compilers. */
9744 # include <limits.h>
9746 # include <assert.h>
9749 #undef gethostbyname
9751 /* Override any gcc2 internal prototype to avoid an error. */
9756 /* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758 char gethostbyname ();
9759 /* The GNU C library defines this for functions which it implements
9760 to always fail with ENOSYS. Some functions are actually named
9761 something starting with __ and the normal name is an alias. */
9762 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9765 char (*f) () = gethostbyname;
9774 return f != gethostbyname;
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; } &&
9794 { ac_try='test -s conftest$ac_exeext'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
9800 ac_cv_func_gethostbyname=yes
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9805 ac_cv_func_gethostbyname=no
9807 rm -f conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9810 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9811 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9813 if test $ac_cv_func_gethostbyname = no; then
9814 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9815 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9816 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 ac_check_lib_save_LIBS=$LIBS
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9828 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9834 char gethostbyname ();
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; } &&
9858 { ac_try='test -s conftest$ac_exeext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_lib_nsl_gethostbyname=yes
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_cv_lib_nsl_gethostbyname=no
9871 rm -f conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9873 LIBS=$ac_check_lib_save_LIBS
9875 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9876 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9877 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9878 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9881 if test $ac_cv_lib_nsl_gethostbyname = no; then
9882 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9883 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9884 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 ac_check_lib_save_LIBS=$LIBS
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9896 /* Override any gcc2 internal prototype to avoid an error. */
9900 /* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9902 char gethostbyname ();
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>conftest.er1
9915 grep -v '^ *+' conftest.er1 >conftest.err
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_lib_bsd_gethostbyname=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 ac_cv_lib_bsd_gethostbyname=no
9939 rm -f conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 LIBS=$ac_check_lib_save_LIBS
9943 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9944 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9945 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9946 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9952 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9953 # socket/setsockopt and other routines are undefined under SCO ODT
9954 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9955 # on later versions), says Simon Leinen: it contains gethostby*
9956 # variants that don't use the name server (or something). -lsocket
9957 # must be given before -lnsl if both are needed. We assume that
9958 # if connect needs -lnsl, so does gethostbyname.
9959 echo "$as_me:$LINENO: checking for connect" >&5
9960 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9961 if test "${ac_cv_func_connect+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9972 #define connect innocuous_connect
9974 /* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char connect (); below.
9976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977 <limits.h> exists even on freestanding compilers. */
9980 # include <limits.h>
9982 # include <assert.h>
9987 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9995 /* The GNU C library defines this for functions which it implements
9996 to always fail with ENOSYS. Some functions are actually named
9997 something starting with __ and the normal name is an alias. */
9998 #if defined (__stub_connect) || defined (__stub___connect)
10001 char (*f) () = connect;
10010 return f != connect;
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017 (eval $ac_link) 2>conftest.er1
10019 grep -v '^ *+' conftest.er1 >conftest.err
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_func_connect=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_cv_func_connect=no
10043 rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10046 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10047 echo "${ECHO_T}$ac_cv_func_connect" >&6
10049 if test $ac_cv_func_connect = no; then
10050 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10051 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10052 if test "${ac_cv_lib_socket_connect+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 ac_check_lib_save_LIBS=$LIBS
10056 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10064 /* Override any gcc2 internal prototype to avoid an error. */
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10083 grep -v '^ *+' conftest.er1 >conftest.err
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; } &&
10094 { ac_try='test -s conftest$ac_exeext'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 ac_cv_lib_socket_connect=yes
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105 ac_cv_lib_socket_connect=no
10107 rm -f conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 LIBS=$ac_check_lib_save_LIBS
10111 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10112 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10113 if test $ac_cv_lib_socket_connect = yes; then
10114 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10119 # Guillermo Gomez says -lposix is necessary on A/UX.
10120 echo "$as_me:$LINENO: checking for remove" >&5
10121 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10122 if test "${ac_cv_func_remove+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10133 #define remove innocuous_remove
10135 /* System header to define __stub macros and hopefully few prototypes,
10136 which can conflict with char remove (); below.
10137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10138 <limits.h> exists even on freestanding compilers. */
10141 # include <limits.h>
10143 # include <assert.h>
10148 /* Override any gcc2 internal prototype to avoid an error. */
10153 /* We use char because int might match the return type of a gcc2
10154 builtin and then its argument prototype would still apply. */
10156 /* The GNU C library defines this for functions which it implements
10157 to always fail with ENOSYS. Some functions are actually named
10158 something starting with __ and the normal name is an alias. */
10159 #if defined (__stub_remove) || defined (__stub___remove)
10162 char (*f) () = remove;
10171 return f != remove;
10176 rm -f conftest.$ac_objext conftest$ac_exeext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10178 (eval $ac_link) 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_func_remove=yes
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_cv_func_remove=no
10204 rm -f conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10207 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10208 echo "${ECHO_T}$ac_cv_func_remove" >&6
10210 if test $ac_cv_func_remove = no; then
10211 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10212 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10213 if test "${ac_cv_lib_posix_remove+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lposix $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10225 /* Override any gcc2 internal prototype to avoid an error. */
10229 /* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_lib_posix_remove=yes
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_lib_posix_remove=no
10268 rm -f conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10272 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10273 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10274 if test $ac_cv_lib_posix_remove = yes; then
10275 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10280 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10281 echo "$as_me:$LINENO: checking for shmat" >&5
10282 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10283 if test "${ac_cv_func_shmat+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10294 #define shmat innocuous_shmat
10296 /* System header to define __stub macros and hopefully few prototypes,
10297 which can conflict with char shmat (); below.
10298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10299 <limits.h> exists even on freestanding compilers. */
10302 # include <limits.h>
10304 # include <assert.h>
10309 /* Override any gcc2 internal prototype to avoid an error. */
10314 /* We use char because int might match the return type of a gcc2
10315 builtin and then its argument prototype would still apply. */
10317 /* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320 #if defined (__stub_shmat) || defined (__stub___shmat)
10323 char (*f) () = shmat;
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339 (eval $ac_link) 2>conftest.er1
10341 grep -v '^ *+' conftest.er1 >conftest.err
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_func_shmat=yes
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_cv_func_shmat=no
10365 rm -f conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10368 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10369 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10371 if test $ac_cv_func_shmat = no; then
10372 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10373 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10374 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_check_lib_save_LIBS=$LIBS
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10386 /* Override any gcc2 internal prototype to avoid an error. */
10390 /* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10401 rm -f conftest.$ac_objext conftest$ac_exeext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403 (eval $ac_link) 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
10410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try='test -s conftest$ac_exeext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_cv_lib_ipc_shmat=yes
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 ac_cv_lib_ipc_shmat=no
10429 rm -f conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
10431 LIBS=$ac_check_lib_save_LIBS
10433 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10434 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10435 if test $ac_cv_lib_ipc_shmat = yes; then
10436 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10442 # Check for libraries that X11R6 Xt/Xaw programs need.
10443 ac_save_LDFLAGS=$LDFLAGS
10444 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10445 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10446 # check for ICE first), but we must link in the order -lSM -lICE or
10447 # we get undefined symbols. So assume we have SM if we have ICE.
10448 # These have to be linked with before -lX11, unlike the other
10449 # libraries we check for below, so use a different variable.
10450 # John Interrante, Karl Berry
10451 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10452 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10453 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 ac_check_lib_save_LIBS=$LIBS
10457 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10465 /* Override any gcc2 internal prototype to avoid an error. */
10469 /* We use char because int might match the return type of a gcc2
10470 builtin and then its argument prototype would still apply. */
10471 char IceConnectionNumber ();
10475 IceConnectionNumber ();
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482 (eval $ac_link) 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } &&
10489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest$ac_exeext'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10501 ac_cv_lib_ICE_IceConnectionNumber=yes
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 ac_cv_lib_ICE_IceConnectionNumber=no
10508 rm -f conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LIBS=$ac_check_lib_save_LIBS
10512 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10513 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10514 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10515 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10518 LDFLAGS=$ac_save_LDFLAGS
10531 if test "x$with_x" = "xno"; then
10540 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
10543 LDFLAGS="$LDFLAGS -L/usr/local/lib"
10545 echo "$as_me:$LINENO: checking for X" >&5
10546 echo $ECHO_N "checking for X... $ECHO_C" >&6
10547 if test "$with_x" != "no" && test "$wxwin" = "true"; then
10549 cat >>confdefs.h <<\_ACEOF
10553 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
10554 my_includes="$my_includes -I/usr/X11R6/include"
10555 ctlib_graphics="$ctlibs_base -lctgraphics"
10556 echo "$as_me:$LINENO: result: yes" >&5
10557 echo "${ECHO_T}yes" >&6
10558 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
10559 if test "$libgl" = "true" ; then
10560 # Removed "-lglut" for Mac OS X compilation
10561 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
10562 if test "$wxwin" = "true" ; then
10563 if "$wx_gtk" ; then
10564 ctlib_graphics="$ctlib_graphics `wx-config --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
10565 elif "$wx_mac" ; then
10566 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
10570 if test "$wxwin" = "true" ; then
10572 cat >>confdefs.h <<\_ACEOF
10578 echo "$as_me:$LINENO: result: no" >&5
10579 echo "${ECHO_T}no" >&6
10584 if test "$wxwin" = "true"; then
10593 if test "$png" = "true" ; then
10594 ctlibs_tools="$ctlibs_tools -lpng"
10596 if test "$zlib" = "true" ; then
10597 ctlibs_tools="$ctlibs_tools -lz"
10599 if test "$fftw" = "true" ; then
10600 ctlibs_tools="$ctlibs_tools -lfftw3"
10602 if test "$ctn" = "true"; then
10603 ctlibs_tools="$ctlibs_tools -lctn"
10606 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
10607 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
10608 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 ac_check_lib_save_LIBS=$LIBS
10612 LIBS="-ldmallocxx $LIBS"
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_lib_dmallocxx_main=yes
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_cv_lib_dmallocxx_main=no
10657 rm -f conftest.err conftest.$ac_objext \
10658 conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10661 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
10662 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
10663 if test $ac_cv_lib_dmallocxx_main = yes; then
10669 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
10670 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
10671 # Check whether --enable-dmalloc or --disable-dmalloc was given.
10672 if test "${enable_dmalloc+set}" = set; then
10673 enableval="$enable_dmalloc"
10674 case "${enableval}" in
10675 yes) usedmalloc=true
10676 echo "$as_me:$LINENO: result: yes" >&5
10677 echo "${ECHO_T}yes" >&6
10679 no) usedmalloc=false
10680 echo "$as_me:$LINENO: result: no" >&5
10681 echo "${ECHO_T}no" >&6
10683 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
10684 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
10688 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
10689 echo "${ECHO_T}no" >&6
10692 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
10693 ctlibs_tools="$ctlibs_tools -ldmallocxx"
10695 cat >>confdefs.h <<\_ACEOF
10696 #define HAVE_DMALLOC 1
10699 echo "$as_me:$LINENO: result: Using dmalloc" >&5
10700 echo "${ECHO_T}Using dmalloc" >&6
10703 echo "$as_me:$LINENO: checking for main in -lefence" >&5
10704 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
10705 if test "${ac_cv_lib_efence_main+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-lefence $LIBS"
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest$ac_exeext'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 ac_cv_lib_efence_main=yes
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10752 ac_cv_lib_efence_main=no
10754 rm -f conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10758 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
10759 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
10760 if test $ac_cv_lib_efence_main = yes; then
10766 echo "$as_me:$LINENO: checking for enable-efence" >&5
10767 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
10768 # Check whether --enable-efence or --disable-efence was given.
10769 if test "${enable_efence+set}" = set; then
10770 enableval="$enable_efence"
10771 case "${enableval}" in
10772 yes) useefence=true
10773 echo "$as_me:$LINENO: result: yes" >&5
10774 echo "${ECHO_T}yes" >&6
10776 no) useefence=false
10777 echo "$as_me:$LINENO: result: no" >&5
10778 echo "${ECHO_T}no" >&6
10780 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
10781 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
10785 useefence=false; echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10789 if test "$efence" = "true" -a "$useefence" = "true" ; then
10790 ctlibs_tools="$ctlibs_tools -lefence"
10792 cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_EFENCE 1
10796 echo "$as_me:$LINENO: result: Using efence" >&5
10797 echo "${ECHO_T}Using efence" >&6
10800 if test "$wxwin" = "true" ; then
10801 if "$wx_gtk" = "true" || "$wx_mac" == "true" ; then
10802 wxcflags=`$wxconfig --cflags`
10803 wxlibs=`$wxconfig --libs`
10805 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
10806 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
10808 CFLAGS="$CFLAGS -I../include $wxcflags"
10809 ctlib_graphics="$ctlib_graphics $wxlibs"
10815 if test "$wxwin"="true"; then
10816 HAVE_WXWINDOWS_TRUE=
10817 HAVE_WXWINDOWS_FALSE='#'
10819 HAVE_WXWINDOWS_TRUE='#'
10820 HAVE_WXWINDOWS_FALSE=
10824 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
10825 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
10828 if test -n "$lamdir" ; then
10829 lamprograms="ctsimtext-lam"
10837 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"
10840 cat >confcache <<\_ACEOF
10841 # This file is a shell script that caches the results of configure
10842 # tests run on this system so they can be shared between configure
10843 # scripts and configure runs, see configure's option --config-cache.
10844 # It is not useful on other systems. If it contains results you don't
10845 # want to keep, you may remove or edit it.
10847 # config.status only pays attention to the cache file if you give it
10848 # the --recheck option to rerun configure.
10850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10852 # following values.
10856 # The following way of writing the cache mishandles newlines in values,
10857 # but we know of no workaround that is simple, portable, and efficient.
10858 # So, don't put newlines in cache variables' values.
10859 # Ultrix sh set writes to stderr and can't be redirected directly,
10860 # and sets the high bit in the cache file unless we assign to the vars.
10863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10865 # `set' does not quote correctly, so add quotes (double-quote
10866 # substitution turns \\\\ into \\, and sed turns \\ into \).
10869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10872 # `set' quotes correctly as required by POSIX, so do not add quotes.
10874 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10883 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10885 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10886 if test -w $cache_file; then
10887 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10888 cat confcache >$cache_file
10890 echo "not updating unwritable cache $cache_file"
10895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10896 # Let make expand exec_prefix.
10897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10901 # trailing colons and then remove the whole line if VPATH becomes empty
10902 # (actually we leave an empty line to preserve line numbers).
10903 if test "x$srcdir" = x.; then
10904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10905 s/:*\$(srcdir):*/:/;
10906 s/:*\${srcdir}:*/:/;
10908 s/^\([^=]*=[ ]*\):*/\1/;
10914 DEFS=-DHAVE_CONFIG_H
10918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10919 # 1. Remove the extension, and $U if already installed.
10920 ac_i=`echo "$ac_i" |
10921 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10923 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10924 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10926 LIBOBJS=$ac_libobjs
10928 LTLIBOBJS=$ac_ltlibobjs
10931 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10932 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10933 Usually this means the macro was only invoked conditionally." >&5
10934 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10935 Usually this means the macro was only invoked conditionally." >&2;}
10936 { (exit 1); exit 1; }; }
10938 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10939 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10940 Usually this means the macro was only invoked conditionally." >&5
10941 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10942 Usually this means the macro was only invoked conditionally." >&2;}
10943 { (exit 1); exit 1; }; }
10945 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10946 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10947 Usually this means the macro was only invoked conditionally." >&5
10948 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10949 Usually this means the macro was only invoked conditionally." >&2;}
10950 { (exit 1); exit 1; }; }
10952 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10953 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10954 Usually this means the macro was only invoked conditionally." >&5
10955 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10956 Usually this means the macro was only invoked conditionally." >&2;}
10957 { (exit 1); exit 1; }; }
10959 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
10960 { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10961 Usually this means the macro was only invoked conditionally." >&5
10962 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
10963 Usually this means the macro was only invoked conditionally." >&2;}
10964 { (exit 1); exit 1; }; }
10966 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
10967 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
10968 Usually this means the macro was only invoked conditionally." >&5
10969 echo "$as_me: error: conditional \"DEBUG\" was never defined.
10970 Usually this means the macro was only invoked conditionally." >&2;}
10971 { (exit 1); exit 1; }; }
10973 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
10974 { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
10975 Usually this means the macro was only invoked conditionally." >&5
10976 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
10977 Usually this means the macro was only invoked conditionally." >&2;}
10978 { (exit 1); exit 1; }; }
10980 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
10981 { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
10982 Usually this means the macro was only invoked conditionally." >&5
10983 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
10984 Usually this means the macro was only invoked conditionally." >&2;}
10985 { (exit 1); exit 1; }; }
10987 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
10988 { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
10989 Usually this means the macro was only invoked conditionally." >&5
10990 echo "$as_me: error: conditional \"NO_X\" was never defined.
10991 Usually this means the macro was only invoked conditionally." >&2;}
10992 { (exit 1); exit 1; }; }
10994 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
10995 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
10996 Usually this means the macro was only invoked conditionally." >&5
10997 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
10998 Usually this means the macro was only invoked conditionally." >&2;}
10999 { (exit 1); exit 1; }; }
11001 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
11002 { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11003 Usually this means the macro was only invoked conditionally." >&5
11004 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11005 Usually this means the macro was only invoked conditionally." >&2;}
11006 { (exit 1); exit 1; }; }
11009 : ${CONFIG_STATUS=./config.status}
11010 ac_clean_files_save=$ac_clean_files
11011 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11012 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11013 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11014 cat >$CONFIG_STATUS <<_ACEOF
11016 # Generated by $as_me.
11017 # Run this file to recreate the current configuration.
11018 # Compiler output produced by configure, useful for debugging
11019 # configure, is in config.log if it exists.
11022 ac_cs_recheck=false
11024 SHELL=\${CONFIG_SHELL-$SHELL}
11027 cat >>$CONFIG_STATUS <<\_ACEOF
11028 ## --------------------- ##
11029 ## M4sh Initialization. ##
11030 ## --------------------- ##
11032 # Be Bourne compatible
11033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11036 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11037 # is contrary to our usage. Disable this feature.
11038 alias -g '${1+"$@"}'='"$@"'
11039 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11042 DUALCASE=1; export DUALCASE # for MKS sh
11044 # Support unset when possible.
11045 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11052 # Work around bugs in pre-3.0 UWIN ksh.
11053 $as_unset ENV MAIL MAILPATH
11060 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11061 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11062 LC_TELEPHONE LC_TIME
11064 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11065 eval $as_var=C; export $as_var
11071 # Required to use basename.
11072 if expr a : '\(a\)' >/dev/null 2>&1; then
11078 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11079 as_basename=basename
11085 # Name of the executable.
11086 as_me=`$as_basename "$0" ||
11087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11088 X"$0" : 'X\(//\)$' \| \
11089 X"$0" : 'X\(/\)$' \| \
11090 . : '\(.\)' 2>/dev/null ||
11092 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11093 /^X\/\(\/\/\)$/{ s//\1/; q; }
11094 /^X\/\(\/\).*/{ s//\1/; q; }
11098 # PATH needs CR, and LINENO needs CR and PATH.
11099 # Avoid depending upon Character Ranges.
11100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11103 as_cr_digits='0123456789'
11104 as_cr_alnum=$as_cr_Letters$as_cr_digits
11106 # The user is always right.
11107 if test "${PATH_SEPARATOR+set}" != set; then
11108 echo "#! /bin/sh" >conf$$.sh
11109 echo "exit 0" >>conf$$.sh
11111 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11120 as_lineno_1=$LINENO
11121 as_lineno_2=$LINENO
11122 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11123 test "x$as_lineno_1" != "x$as_lineno_2" &&
11124 test "x$as_lineno_3" = "x$as_lineno_2" || {
11125 # Find who we are. Look in the path if we contain no path at all
11128 *[\\/]* ) as_myself=$0 ;;
11129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11133 test -z "$as_dir" && as_dir=.
11134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11139 # We did not find ourselves, most probably we were run as `sh COMMAND'
11140 # in which case we are not to be found in the path.
11141 if test "x$as_myself" = x; then
11144 if test ! -f "$as_myself"; then
11145 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11146 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11147 { (exit 1); exit 1; }; }
11149 case $CONFIG_SHELL in
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11155 test -z "$as_dir" && as_dir=.
11156 for as_base in sh bash ksh sh5; do
11159 if ("$as_dir/$as_base" -c '
11160 as_lineno_1=$LINENO
11161 as_lineno_2=$LINENO
11162 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11163 test "x$as_lineno_1" != "x$as_lineno_2" &&
11164 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11165 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11166 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11167 CONFIG_SHELL=$as_dir/$as_base
11168 export CONFIG_SHELL
11169 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11178 # uniformly replaced by the line number. The first 'sed' inserts a
11179 # line-number line before each line; the second 'sed' does the real
11180 # work. The second script uses 'N' to pair each line-number line
11181 # with the numbered line, and appends trailing '-' during
11182 # substitution so that $LINENO is not a special case at line end.
11183 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11184 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11185 sed '=' <$as_myself |
11190 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11193 s,^['$as_cr_digits']*\n,,
11194 ' >$as_me.lineno &&
11195 chmod +x $as_me.lineno ||
11196 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11197 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11198 { (exit 1); exit 1; }; }
11200 # Don't try to exec as it changes $[0], causing all sort of problems
11201 # (the dirname of $[0] is not the place where we might find the
11202 # original and so on. Autoconf is especially sensible to this).
11204 # Exit status is that of the last command.
11209 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11210 *c*,-n*) ECHO_N= ECHO_C='
11212 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11213 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11216 if expr a : '\(a\)' >/dev/null 2>&1; then
11222 rm -f conf$$ conf$$.exe conf$$.file
11224 if ln -s conf$$.file conf$$ 2>/dev/null; then
11225 # We could just check for DJGPP; but this test a) works b) is more generic
11226 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11227 if test -f conf$$.exe; then
11228 # Don't use ln at all; we don't have any links
11233 elif ln conf$$.file conf$$ 2>/dev/null; then
11238 rm -f conf$$ conf$$.exe conf$$.file
11240 if mkdir -p . 2>/dev/null; then
11243 test -d ./-p && rmdir ./-p
11247 as_executable_p="test -f"
11249 # Sed expression to map a string onto a valid CPP name.
11250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11252 # Sed expression to map a string onto a valid variable name.
11253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11257 # We need space, tab and new line, in precisely that order.
11267 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11268 # report actual input values of CONFIG_FILES etc. instead of their
11269 # values after options handling. Logging --version etc. is OK.
11273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11274 ## Running $as_me. ##
11279 This file was extended by $as_me, which was
11280 generated by GNU Autoconf 2.59. Invocation command line was
11282 CONFIG_FILES = $CONFIG_FILES
11283 CONFIG_HEADERS = $CONFIG_HEADERS
11284 CONFIG_LINKS = $CONFIG_LINKS
11285 CONFIG_COMMANDS = $CONFIG_COMMANDS
11289 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11293 # Files that config.status was made for.
11294 if test -n "$ac_config_files"; then
11295 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11298 if test -n "$ac_config_headers"; then
11299 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11302 if test -n "$ac_config_links"; then
11303 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11306 if test -n "$ac_config_commands"; then
11307 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11310 cat >>$CONFIG_STATUS <<\_ACEOF
11313 \`$as_me' instantiates files from templates according to the
11314 current configuration.
11316 Usage: $0 [OPTIONS] [FILE]...
11318 -h, --help print this help, then exit
11319 -V, --version print version number, then exit
11320 -q, --quiet do not print progress messages
11321 -d, --debug don't remove temporary files
11322 --recheck update $as_me by reconfiguring in the same conditions
11323 --file=FILE[:TEMPLATE]
11324 instantiate the configuration file FILE
11325 --header=FILE[:TEMPLATE]
11326 instantiate the configuration header FILE
11328 Configuration files:
11331 Configuration headers:
11334 Configuration commands:
11337 Report bugs to <bug-autoconf@gnu.org>."
11340 cat >>$CONFIG_STATUS <<_ACEOF
11343 configured by $0, generated by GNU Autoconf 2.59,
11344 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11346 Copyright (C) 2003 Free Software Foundation, Inc.
11347 This config.status script is free software; the Free Software Foundation
11348 gives unlimited permission to copy, distribute and modify it."
11353 cat >>$CONFIG_STATUS <<\_ACEOF
11354 # If no file are specified by the user, then we need to provide default
11355 # value. By we need to know if files were specified by the user.
11361 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11362 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11370 *) # This is not an option, so the user has probably given explicit
11373 ac_need_defaults=false;;
11377 # Handling of the options.
11379 cat >>$CONFIG_STATUS <<\_ACEOF
11380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11382 --version | --vers* | -V )
11383 echo "$ac_cs_version"; exit 0 ;;
11385 # Conflict between --help and --header
11386 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11387 Try \`$0 --help' for more information." >&5
11388 echo "$as_me: error: ambiguous option: $1
11389 Try \`$0 --help' for more information." >&2;}
11390 { (exit 1); exit 1; }; };;
11391 --help | --hel | -h )
11392 echo "$ac_cs_usage"; exit 0 ;;
11393 --debug | --d* | -d )
11395 --file | --fil | --fi | --f )
11397 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11398 ac_need_defaults=false;;
11399 --header | --heade | --head | --hea )
11401 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11402 ac_need_defaults=false;;
11403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11407 # This is an error.
11408 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11409 Try \`$0 --help' for more information." >&5
11410 echo "$as_me: error: unrecognized option: $1
11411 Try \`$0 --help' for more information." >&2;}
11412 { (exit 1); exit 1; }; } ;;
11414 *) ac_config_targets="$ac_config_targets $1" ;;
11420 ac_configure_extra_args=
11422 if $ac_cs_silent; then
11424 ac_configure_extra_args="$ac_configure_extra_args --silent"
11428 cat >>$CONFIG_STATUS <<_ACEOF
11429 if \$ac_cs_recheck; then
11430 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11431 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11436 cat >>$CONFIG_STATUS <<_ACEOF
11438 # INIT-COMMANDS section.
11441 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11447 cat >>$CONFIG_STATUS <<\_ACEOF
11448 for ac_config_target in $ac_config_targets
11450 case "$ac_config_target" in
11451 # Handling of arguments.
11452 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11453 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
11454 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
11455 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
11456 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11457 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
11458 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
11459 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
11460 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
11461 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11462 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
11463 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
11464 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
11465 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11466 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11467 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
11468 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
11469 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11470 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11473 { (exit 1); exit 1; }; };;
11477 # If the user did not use the arguments to specify the items to instantiate,
11478 # then the envvar interface is used. Set only those that are not.
11479 # We use the long form for the default assignment because of an extremely
11480 # bizarre bug on SunOS 4.1.3.
11481 if $ac_need_defaults; then
11482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11484 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11487 # Have a temporary directory for convenience. Make it in the build tree
11488 # simply because there is no reason to put it here, and in addition,
11489 # creating and moving files from /tmp can sometimes cause problems.
11490 # Create a temporary directory, and hook for its removal unless debugging.
11493 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11494 trap '{ (exit 1); exit 1; }' 1 2 13 15
11497 # Create a (secure) tmp directory for tmp files.
11500 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11501 test -n "$tmp" && test -d "$tmp"
11504 tmp=./confstat$$-$RANDOM
11505 (umask 077 && mkdir $tmp)
11508 echo "$me: cannot create a temporary directory in ." >&2
11509 { (exit 1); exit 1; }
11514 cat >>$CONFIG_STATUS <<_ACEOF
11517 # CONFIG_FILES section.
11520 # No need to generate the scripts if there are no CONFIG_FILES.
11521 # This happens for instance when ./config.status config.h
11522 if test -n "\$CONFIG_FILES"; then
11523 # Protect against being on the right side of a sed subst in config.status.
11524 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11525 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11526 s,@SHELL@,$SHELL,;t t
11527 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11528 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11529 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11530 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11531 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11532 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11533 s,@exec_prefix@,$exec_prefix,;t t
11534 s,@prefix@,$prefix,;t t
11535 s,@program_transform_name@,$program_transform_name,;t t
11536 s,@bindir@,$bindir,;t t
11537 s,@sbindir@,$sbindir,;t t
11538 s,@libexecdir@,$libexecdir,;t t
11539 s,@datadir@,$datadir,;t t
11540 s,@sysconfdir@,$sysconfdir,;t t
11541 s,@sharedstatedir@,$sharedstatedir,;t t
11542 s,@localstatedir@,$localstatedir,;t t
11543 s,@libdir@,$libdir,;t t
11544 s,@includedir@,$includedir,;t t
11545 s,@oldincludedir@,$oldincludedir,;t t
11546 s,@infodir@,$infodir,;t t
11547 s,@mandir@,$mandir,;t t
11548 s,@build_alias@,$build_alias,;t t
11549 s,@host_alias@,$host_alias,;t t
11550 s,@target_alias@,$target_alias,;t t
11551 s,@DEFS@,$DEFS,;t t
11552 s,@ECHO_C@,$ECHO_C,;t t
11553 s,@ECHO_N@,$ECHO_N,;t t
11554 s,@ECHO_T@,$ECHO_T,;t t
11555 s,@LIBS@,$LIBS,;t t
11556 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11557 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11558 s,@MAINT@,$MAINT,;t t
11559 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11560 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11561 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11562 s,@CYGPATH_W@,$CYGPATH_W,;t t
11563 s,@PACKAGE@,$PACKAGE,;t t
11564 s,@VERSION@,$VERSION,;t t
11565 s,@ACLOCAL@,$ACLOCAL,;t t
11566 s,@AUTOCONF@,$AUTOCONF,;t t
11567 s,@AUTOMAKE@,$AUTOMAKE,;t t
11568 s,@AUTOHEADER@,$AUTOHEADER,;t t
11569 s,@MAKEINFO@,$MAKEINFO,;t t
11570 s,@AMTAR@,$AMTAR,;t t
11571 s,@install_sh@,$install_sh,;t t
11572 s,@STRIP@,$STRIP,;t t
11573 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11574 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11576 s,@SET_MAKE@,$SET_MAKE,;t t
11577 s,@am__leading_dot@,$am__leading_dot,;t t
11578 s,@RANLIB@,$RANLIB,;t t
11579 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11581 s,@CFLAGS@,$CFLAGS,;t t
11582 s,@LDFLAGS@,$LDFLAGS,;t t
11583 s,@CPPFLAGS@,$CPPFLAGS,;t t
11584 s,@ac_ct_CC@,$ac_ct_CC,;t t
11585 s,@EXEEXT@,$EXEEXT,;t t
11586 s,@OBJEXT@,$OBJEXT,;t t
11587 s,@DEPDIR@,$DEPDIR,;t t
11588 s,@am__include@,$am__include,;t t
11589 s,@am__quote@,$am__quote,;t t
11590 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11591 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11592 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11593 s,@CCDEPMODE@,$CCDEPMODE,;t t
11594 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11595 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11597 s,@CXXFLAGS@,$CXXFLAGS,;t t
11598 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11599 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11600 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11601 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
11602 s,@wxconfig@,$wxconfig,;t t
11603 s,@build@,$build,;t t
11604 s,@build_cpu@,$build_cpu,;t t
11605 s,@build_vendor@,$build_vendor,;t t
11606 s,@build_os@,$build_os,;t t
11607 s,@host@,$host,;t t
11608 s,@host_cpu@,$host_cpu,;t t
11609 s,@host_vendor@,$host_vendor,;t t
11610 s,@host_os@,$host_os,;t t
11612 s,@EGREP@,$EGREP,;t t
11613 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
11614 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
11615 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
11616 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
11617 s,@lamdir@,$lamdir,;t t
11618 s,@mpienable@,$mpienable,;t t
11619 s,@cgibindir@,$cgibindir,;t t
11620 s,@cgibinurl@,$cgibinurl,;t t
11621 s,@webdatadir@,$webdatadir,;t t
11622 s,@webdataurl@,$webdataurl,;t t
11623 s,@htmldir@,$htmldir,;t t
11624 s,@cgiprograms@,$cgiprograms,;t t
11625 s,@htmldata@,$htmldata,;t t
11626 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
11627 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
11628 s,@webenabled@,$webenabled,;t t
11629 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
11630 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
11631 s,@X_CFLAGS@,$X_CFLAGS,;t t
11632 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11633 s,@X_LIBS@,$X_LIBS,;t t
11634 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11635 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
11636 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
11637 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
11638 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
11639 s,@my_includes@,$my_includes,;t t
11640 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
11641 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
11642 s,@wxcflags@,$wxcflags,;t t
11643 s,@wxlibs@,$wxlibs,;t t
11644 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
11645 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
11646 s,@ctlibs@,$ctlibs,;t t
11647 s,@lamprograms@,$lamprograms,;t t
11648 s,@lamdefs@,$lamdefs,;t t
11649 s,@LIBOBJS@,$LIBOBJS,;t t
11650 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11655 cat >>$CONFIG_STATUS <<\_ACEOF
11656 # Split the substitutions into bite-sized pieces for seds with
11657 # small command number limits, like on Digital OSF/1 and HP-UX.
11658 ac_max_sed_lines=48
11659 ac_sed_frag=1 # Number of current file.
11660 ac_beg=1 # First line for current file.
11661 ac_end=$ac_max_sed_lines # Line after last line for current file.
11664 while $ac_more_lines; do
11665 if test $ac_beg -gt 1; then
11666 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11668 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11670 if test ! -s $tmp/subs.frag; then
11671 ac_more_lines=false
11673 # The purpose of the label and of the branching condition is to
11674 # speed up the sed processing (if there are no `@' at all, there
11675 # is no need to browse any of the substitutions).
11676 # These are the two extra sed commands mentioned above.
11678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11679 if test -z "$ac_sed_cmds"; then
11680 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11682 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11684 ac_sed_frag=`expr $ac_sed_frag + 1`
11686 ac_end=`expr $ac_end + $ac_max_sed_lines`
11689 if test -z "$ac_sed_cmds"; then
11692 fi # test -n "$CONFIG_FILES"
11695 cat >>$CONFIG_STATUS <<\_ACEOF
11696 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11697 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11699 - | *:- | *:-:* ) # input from stdin
11701 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11702 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11703 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11704 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11705 * ) ac_file_in=$ac_file.in ;;
11708 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11709 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11711 X"$ac_file" : 'X\(//\)[^/]' \| \
11712 X"$ac_file" : 'X\(//\)$' \| \
11713 X"$ac_file" : 'X\(/\)' \| \
11714 . : '\(.\)' 2>/dev/null ||
11716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11718 /^X\(\/\/\)$/{ s//\1/; q; }
11719 /^X\(\/\).*/{ s//\1/; q; }
11721 { if $as_mkdir_p; then
11726 while test ! -d "$as_dir"; do
11727 as_dirs="$as_dir $as_dirs"
11728 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11730 X"$as_dir" : 'X\(//\)[^/]' \| \
11731 X"$as_dir" : 'X\(//\)$' \| \
11732 X"$as_dir" : 'X\(/\)' \| \
11733 . : '\(.\)' 2>/dev/null ||
11735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11737 /^X\(\/\/\)$/{ s//\1/; q; }
11738 /^X\(\/\).*/{ s//\1/; q; }
11741 test ! -n "$as_dirs" || mkdir $as_dirs
11742 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11743 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11744 { (exit 1); exit 1; }; }; }
11748 if test "$ac_dir" != .; then
11749 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11750 # A "../" for each directory in $ac_dir_suffix.
11751 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11753 ac_dir_suffix= ac_top_builddir=
11757 .) # No --srcdir option. We are building in place.
11759 if test -z "$ac_top_builddir"; then
11762 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11764 [\\/]* | ?:[\\/]* ) # Absolute path.
11765 ac_srcdir=$srcdir$ac_dir_suffix;
11766 ac_top_srcdir=$srcdir ;;
11767 *) # Relative path.
11768 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11769 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11772 # Do not use `cd foo && pwd` to compute absolute paths, because
11773 # the directories may not exist.
11775 .) ac_abs_builddir="$ac_dir";;
11778 .) ac_abs_builddir=`pwd`;;
11779 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11780 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11783 case $ac_abs_builddir in
11784 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11786 case ${ac_top_builddir}. in
11787 .) ac_abs_top_builddir=$ac_abs_builddir;;
11788 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11789 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11792 case $ac_abs_builddir in
11793 .) ac_abs_srcdir=$ac_srcdir;;
11796 .) ac_abs_srcdir=$ac_abs_builddir;;
11797 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11798 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11801 case $ac_abs_builddir in
11802 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11804 case $ac_top_srcdir in
11805 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11806 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11807 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11813 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11814 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11817 # Let's still pretend it is `configure' which instantiates (i.e., don't
11818 # use $as_me), people would be surprised to read:
11819 # /* config.h. Generated by config.status. */
11820 if test x"$ac_file" = x-; then
11823 configure_input="$ac_file. "
11825 configure_input=$configure_input"Generated from `echo $ac_file_in |
11826 sed 's,.*/,,'` by configure."
11828 # First look for the input files in the build tree, otherwise in the
11830 ac_file_inputs=`IFS=:
11831 for f in $ac_file_in; do
11833 -) echo $tmp/stdin ;;
11835 # Absolute (can't be DOS-style, as IFS=:)
11836 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11837 echo "$as_me: error: cannot find input file: $f" >&2;}
11838 { (exit 1); exit 1; }; }
11841 if test -f "$f"; then
11844 elif test -f "$srcdir/$f"; then
11849 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11850 echo "$as_me: error: cannot find input file: $f" >&2;}
11851 { (exit 1); exit 1; }; }
11854 done` || { (exit 1); exit 1; }
11856 if test x"$ac_file" != x-; then
11857 { echo "$as_me:$LINENO: creating $ac_file" >&5
11858 echo "$as_me: creating $ac_file" >&6;}
11862 cat >>$CONFIG_STATUS <<_ACEOF
11866 cat >>$CONFIG_STATUS <<\_ACEOF
11868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11869 s,@configure_input@,$configure_input,;t t
11870 s,@srcdir@,$ac_srcdir,;t t
11871 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11872 s,@top_srcdir@,$ac_top_srcdir,;t t
11873 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11874 s,@builddir@,$ac_builddir,;t t
11875 s,@abs_builddir@,$ac_abs_builddir,;t t
11876 s,@top_builddir@,$ac_top_builddir,;t t
11877 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11878 s,@INSTALL@,$ac_INSTALL,;t t
11879 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11881 if test x"$ac_file" != x-; then
11882 mv $tmp/out $ac_file
11890 cat >>$CONFIG_STATUS <<\_ACEOF
11893 # CONFIG_HEADER section.
11896 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11897 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11899 # ac_d sets the value in "#define NAME VALUE" lines.
11900 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11901 ac_dB='[ ].*$,\1#\2'
11904 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11905 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11906 ac_uB='$,\1#\2define\3'
11910 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11913 - | *:- | *:-:* ) # input from stdin
11915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11919 * ) ac_file_in=$ac_file.in ;;
11922 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11923 echo "$as_me: creating $ac_file" >&6;}
11925 # First look for the input files in the build tree, otherwise in the
11927 ac_file_inputs=`IFS=:
11928 for f in $ac_file_in; do
11930 -) echo $tmp/stdin ;;
11932 # Absolute (can't be DOS-style, as IFS=:)
11933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11934 echo "$as_me: error: cannot find input file: $f" >&2;}
11935 { (exit 1); exit 1; }; }
11936 # Do quote $f, to prevent DOS paths from being IFS'd.
11939 if test -f "$f"; then
11942 elif test -f "$srcdir/$f"; then
11947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11948 echo "$as_me: error: cannot find input file: $f" >&2;}
11949 { (exit 1); exit 1; }; }
11952 done` || { (exit 1); exit 1; }
11953 # Remove the trailing spaces.
11954 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11958 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11959 # `conftest.undefs', that substitutes the proper values into
11960 # config.h.in to produce config.h. The first handles `#define'
11961 # templates, and the second `#undef' templates.
11962 # And first: Protect against being on the right side of a sed subst in
11963 # config.status. Protect against being in an unquoted here document
11964 # in config.status.
11965 rm -f conftest.defines conftest.undefs
11966 # Using a here document instead of a string reduces the quoting nightmare.
11967 # Putting comments in sed scripts is not portable.
11969 # `end' is used to avoid that the second main sed command (meant for
11970 # 0-ary CPP macros) applies to n-ary macro definitions.
11971 # See the Autoconf documentation for `clear'.
11972 cat >confdef2sed.sed <<\_ACEOF
11977 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11979 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11982 # If some macros were called several times there might be several times
11983 # the same #defines, which is useless. Nevertheless, we may not want to
11984 # sort them, since we want the *last* AC-DEFINE to be honored.
11985 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11986 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11987 rm -f confdef2sed.sed
11989 # This sed command replaces #undef with comments. This is necessary, for
11990 # example, in the case of _POSIX_SOURCE, which is predefined and required
11991 # on some systems where configure will not decide to define it.
11992 cat >>conftest.undefs <<\_ACEOF
11993 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11996 # Break up conftest.defines because some shells have a limit on the size
11997 # of here documents, and old seds have small limits too (100 cmds).
11998 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11999 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12000 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12001 echo ' :' >>$CONFIG_STATUS
12002 rm -f conftest.tail
12003 while grep . conftest.defines >/dev/null
12005 # Write a limited-size here document to $tmp/defines.sed.
12006 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12007 # Speed up: don't consider the non `#define' lines.
12008 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12009 # Work around the forget-to-reset-the-flag bug.
12010 echo 't clr' >>$CONFIG_STATUS
12011 echo ': clr' >>$CONFIG_STATUS
12012 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12014 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12016 mv $tmp/out $tmp/in
12018 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12019 rm -f conftest.defines
12020 mv conftest.tail conftest.defines
12022 rm -f conftest.defines
12023 echo ' fi # grep' >>$CONFIG_STATUS
12024 echo >>$CONFIG_STATUS
12026 # Break up conftest.undefs because some shells have a limit on the size
12027 # of here documents, and old seds have small limits too (100 cmds).
12028 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12029 rm -f conftest.tail
12030 while grep . conftest.undefs >/dev/null
12032 # Write a limited-size here document to $tmp/undefs.sed.
12033 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12034 # Speed up: don't consider the non `#undef'
12035 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12036 # Work around the forget-to-reset-the-flag bug.
12037 echo 't clr' >>$CONFIG_STATUS
12038 echo ': clr' >>$CONFIG_STATUS
12039 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12041 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12043 mv $tmp/out $tmp/in
12045 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12046 rm -f conftest.undefs
12047 mv conftest.tail conftest.undefs
12049 rm -f conftest.undefs
12051 cat >>$CONFIG_STATUS <<\_ACEOF
12052 # Let's still pretend it is `configure' which instantiates (i.e., don't
12053 # use $as_me), people would be surprised to read:
12054 # /* config.h. Generated by config.status. */
12055 if test x"$ac_file" = x-; then
12056 echo "/* Generated by configure. */" >$tmp/config.h
12058 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12060 cat $tmp/in >>$tmp/config.h
12062 if test x"$ac_file" != x-; then
12063 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12065 echo "$as_me: $ac_file is unchanged" >&6;}
12067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12069 X"$ac_file" : 'X\(//\)[^/]' \| \
12070 X"$ac_file" : 'X\(//\)$' \| \
12071 X"$ac_file" : 'X\(/\)' \| \
12072 . : '\(.\)' 2>/dev/null ||
12074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12076 /^X\(\/\/\)$/{ s//\1/; q; }
12077 /^X\(\/\).*/{ s//\1/; q; }
12079 { if $as_mkdir_p; then
12084 while test ! -d "$as_dir"; do
12085 as_dirs="$as_dir $as_dirs"
12086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088 X"$as_dir" : 'X\(//\)[^/]' \| \
12089 X"$as_dir" : 'X\(//\)$' \| \
12090 X"$as_dir" : 'X\(/\)' \| \
12091 . : '\(.\)' 2>/dev/null ||
12093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12095 /^X\(\/\/\)$/{ s//\1/; q; }
12096 /^X\(\/\).*/{ s//\1/; q; }
12099 test ! -n "$as_dirs" || mkdir $as_dirs
12100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12102 { (exit 1); exit 1; }; }; }
12105 mv $tmp/config.h $ac_file
12109 rm -f $tmp/config.h
12111 # Compute $ac_file's index in $config_headers.
12113 for _am_header in $config_headers :; do
12114 case $_am_header in
12115 $ac_file | $ac_file:* )
12118 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12121 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12122 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12123 X$ac_file : 'X\(//\)[^/]' \| \
12124 X$ac_file : 'X\(//\)$' \| \
12125 X$ac_file : 'X\(/\)' \| \
12126 . : '\(.\)' 2>/dev/null ||
12128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12130 /^X\(\/\/\)$/{ s//\1/; q; }
12131 /^X\(\/\).*/{ s//\1/; q; }
12132 s/.*/./; q'`/stamp-h$_am_stamp_count
12135 cat >>$CONFIG_STATUS <<\_ACEOF
12138 # CONFIG_COMMANDS section.
12140 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12141 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12142 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12143 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12144 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12145 X"$ac_dest" : 'X\(//\)[^/]' \| \
12146 X"$ac_dest" : 'X\(//\)$' \| \
12147 X"$ac_dest" : 'X\(/\)' \| \
12148 . : '\(.\)' 2>/dev/null ||
12150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12152 /^X\(\/\/\)$/{ s//\1/; q; }
12153 /^X\(\/\).*/{ s//\1/; q; }
12155 { if $as_mkdir_p; then
12160 while test ! -d "$as_dir"; do
12161 as_dirs="$as_dir $as_dirs"
12162 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12164 X"$as_dir" : 'X\(//\)[^/]' \| \
12165 X"$as_dir" : 'X\(//\)$' \| \
12166 X"$as_dir" : 'X\(/\)' \| \
12167 . : '\(.\)' 2>/dev/null ||
12169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12171 /^X\(\/\/\)$/{ s//\1/; q; }
12172 /^X\(\/\).*/{ s//\1/; q; }
12175 test ! -n "$as_dirs" || mkdir $as_dirs
12176 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12177 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12178 { (exit 1); exit 1; }; }; }
12182 if test "$ac_dir" != .; then
12183 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12184 # A "../" for each directory in $ac_dir_suffix.
12185 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12187 ac_dir_suffix= ac_top_builddir=
12191 .) # No --srcdir option. We are building in place.
12193 if test -z "$ac_top_builddir"; then
12196 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12198 [\\/]* | ?:[\\/]* ) # Absolute path.
12199 ac_srcdir=$srcdir$ac_dir_suffix;
12200 ac_top_srcdir=$srcdir ;;
12201 *) # Relative path.
12202 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12203 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12206 # Do not use `cd foo && pwd` to compute absolute paths, because
12207 # the directories may not exist.
12209 .) ac_abs_builddir="$ac_dir";;
12212 .) ac_abs_builddir=`pwd`;;
12213 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12214 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12217 case $ac_abs_builddir in
12218 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12220 case ${ac_top_builddir}. in
12221 .) ac_abs_top_builddir=$ac_abs_builddir;;
12222 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12223 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12226 case $ac_abs_builddir in
12227 .) ac_abs_srcdir=$ac_srcdir;;
12230 .) ac_abs_srcdir=$ac_abs_builddir;;
12231 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12232 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12235 case $ac_abs_builddir in
12236 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12238 case $ac_top_srcdir in
12239 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12240 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12241 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12246 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12247 echo "$as_me: executing $ac_dest commands" >&6;}
12249 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12250 # Strip MF so we end up with the name of the file.
12251 mf=`echo "$mf" | sed -e 's/:.*$//'`
12252 # Check whether this is an Automake generated Makefile or not.
12253 # We used to match only the files named `Makefile.in', but
12254 # some people rename them; so instead we look at the file content.
12255 # Grep'ing the first line is not enough: some people post-process
12256 # each Makefile.in and add a new line on top of each file to say so.
12257 # So let's grep whole file.
12258 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12259 dirpart=`(dirname "$mf") 2>/dev/null ||
12260 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12261 X"$mf" : 'X\(//\)[^/]' \| \
12262 X"$mf" : 'X\(//\)$' \| \
12263 X"$mf" : 'X\(/\)' \| \
12264 . : '\(.\)' 2>/dev/null ||
12266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12268 /^X\(\/\/\)$/{ s//\1/; q; }
12269 /^X\(\/\).*/{ s//\1/; q; }
12274 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12275 # Extract the definition of DEP_FILES from the Makefile without
12277 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12278 test -z "$DEPDIR" && continue
12279 # When using ansi2knr, U may be empty or an underscore; expand it
12280 U=`sed -n -e '/^U = / s///p' < "$mf"`
12281 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12282 # We invoke sed twice because it is the simplest approach to
12283 # changing $(DEPDIR) to its actual value in the expansion.
12284 for file in `sed -n -e '
12285 /^DEP_FILES = .*\\\\$/ {
12294 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12295 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12296 # Make sure the directory exists.
12297 test -f "$dirpart/$file" && continue
12298 fdir=`(dirname "$file") 2>/dev/null ||
12299 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12300 X"$file" : 'X\(//\)[^/]' \| \
12301 X"$file" : 'X\(//\)$' \| \
12302 X"$file" : 'X\(/\)' \| \
12303 . : '\(.\)' 2>/dev/null ||
12305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12307 /^X\(\/\/\)$/{ s//\1/; q; }
12308 /^X\(\/\).*/{ s//\1/; q; }
12310 { if $as_mkdir_p; then
12311 mkdir -p $dirpart/$fdir
12313 as_dir=$dirpart/$fdir
12315 while test ! -d "$as_dir"; do
12316 as_dirs="$as_dir $as_dirs"
12317 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12319 X"$as_dir" : 'X\(//\)[^/]' \| \
12320 X"$as_dir" : 'X\(//\)$' \| \
12321 X"$as_dir" : 'X\(/\)' \| \
12322 . : '\(.\)' 2>/dev/null ||
12324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12326 /^X\(\/\/\)$/{ s//\1/; q; }
12327 /^X\(\/\).*/{ s//\1/; q; }
12330 test ! -n "$as_dirs" || mkdir $as_dirs
12331 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12332 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12333 { (exit 1); exit 1; }; }; }
12335 # echo "creating $dirpart/$file"
12336 echo '# dummy' > "$dirpart/$file"
12344 cat >>$CONFIG_STATUS <<\_ACEOF
12346 { (exit 0); exit 0; }
12348 chmod +x $CONFIG_STATUS
12349 ac_clean_files=$ac_clean_files_save
12352 # configure is writing to config.log, and then calls config.status.
12353 # config.status does its own redirection, appending to config.log.
12354 # Unfortunately, on DOS this fails, as config.log is still kept open
12355 # by configure, so config.status won't be able to write to it; its
12356 # output is simply discarded. So we exec the FD to /dev/null,
12357 # effectively closing config.log, so it can be properly (re)opened and
12358 # appended to by config.status. When coming back to configure, we
12359 # need to make the FD available again.
12360 if test "$no_create" != yes; then
12362 ac_config_status_args=
12363 test "$silent" = yes &&
12364 ac_config_status_args="$ac_config_status_args --quiet"
12366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12369 # would make configure fail if this is the last instruction.
12370 $ac_cs_success || { (exit 1); exit 1; }