2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="src/ctsim.cpp"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CXX_set=${CXX+set}
752 ac_env_CXX_value=$CXX
753 ac_cv_env_CXX_set=${CXX+set}
754 ac_cv_env_CXX_value=$CXX
755 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756 ac_env_CXXFLAGS_value=$CXXFLAGS
757 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759 ac_env_CPP_set=${CPP+set}
760 ac_env_CPP_value=$CPP
761 ac_cv_env_CPP_set=${CPP+set}
762 ac_cv_env_CPP_value=$CPP
765 # Report the --help message.
767 if test "$ac_init_help" = "long"; then
768 # Omit some internal or obsolete options to make the list less imposing.
769 # This message is too long to be a string in the A/UX 3.1 sh.
771 \`configure' configures this package to adapt to many kinds of systems.
773 Usage: $0 [OPTION]... [VAR=VALUE]...
775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
776 VAR=VALUE. See below for descriptions of some of the useful variables.
778 Defaults for the options are specified in brackets.
781 -h, --help display this help and exit
782 --help=short display options specific to this package
783 --help=recursive display the short help of all the included packages
784 -V, --version display version information and exit
785 -q, --quiet, --silent do not print \`checking...' messages
786 --cache-file=FILE cache test results in FILE [disabled]
787 -C, --config-cache alias for \`--cache-file=config.cache'
788 -n, --no-create do not create output files
789 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 Installation directories:
795 --prefix=PREFIX install architecture-independent files in PREFIX
797 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 By default, \`make install' will install all the files in
801 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
802 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
803 for instance \`--prefix=\$HOME'.
805 For better control, use the options below.
807 Fine tuning of the installation directories:
808 --bindir=DIR user executables [EPREFIX/bin]
809 --sbindir=DIR system admin executables [EPREFIX/sbin]
810 --libexecdir=DIR program executables [EPREFIX/libexec]
811 --datadir=DIR read-only architecture-independent data [PREFIX/share]
812 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
813 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
814 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
815 --libdir=DIR object code libraries [EPREFIX/lib]
816 --includedir=DIR C header files [PREFIX/include]
817 --oldincludedir=DIR C header files for non-gcc [/usr/include]
818 --infodir=DIR info documentation [PREFIX/info]
819 --mandir=DIR man documentation [PREFIX/man]
825 --program-prefix=PREFIX prepend PREFIX to installed program names
826 --program-suffix=SUFFIX append SUFFIX to installed program names
827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
830 --x-includes=DIR X include files are in DIR
831 --x-libraries=DIR X library files are in DIR
834 --build=BUILD configure for building on BUILD [guessed]
835 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 if test -n "$ac_init_help"; then
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
846 --enable-debug Turn on debugging
847 --enable-verbose-warnings
848 Enable verbose compiler warnings.
850 Enable static executables.
851 --enable-dmalloc Use dmalloc memory allocation
852 --enable-efence Use ElectricFence memory allocation
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-lam=PATH Set path of LAM MPI
858 --with-ctn=PATH Set path of CTN DICOM library
859 --with-cgibin-dir=PATH Set path of CGI binaries directory
860 --with-cgibin-url=PATH Set URL path of CGI binaries
861 --with-webdata-dir=PATH Set path of webdata
862 --with-webdata-url=PATH Set URL path of webdata
863 --with-html-dir=PATH Set directory of html files
864 --with-x use the X Window System
866 Some influential environment variables:
867 CC C compiler command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
873 CXX C++ compiler command
874 CXXFLAGS C++ compiler flags
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 ac_dir_suffix= ac_top_builddir=
899 .) # No --srcdir option. We are building in place.
901 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
915 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
916 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
917 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
918 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
921 # Check for guested configure; otherwise get Cygnus style configure.
922 if test -f $ac_srcdir/configure.gnu; then
924 $SHELL $ac_srcdir/configure.gnu --help=recursive
925 elif test -f $ac_srcdir/configure; then
927 $SHELL $ac_srcdir/configure --help=recursive
928 elif test -f $ac_srcdir/configure.ac ||
929 test -f $ac_srcdir/configure.in; then
933 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939 test -n "$ac_init_help" && exit 0
940 if $ac_init_version; then
943 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
944 Free Software Foundation, Inc.
945 This configure script is free software; the Free Software Foundation
946 gives unlimited permission to copy, distribute and modify it.
952 This file contains any messages produced by compilers while
953 running configure, to aid debugging if configure makes a mistake.
955 It was created by $as_me, which was
956 generated by GNU Autoconf 2.53. Invocation command line was
967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
979 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
990 test -z "$as_dir" && as_dir=.
1006 # Keep a trace of the command line.
1007 # Strip out --no-create and --no-recursion so they do not pile up.
1008 # Also quote any args containing shell meta-characters.
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n ) continue ;;
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1022 case " $ac_configure_args " in
1023 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1024 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1027 # Get rid of the leading space.
1030 # When interrupted or exit'd, cleanup temporary files, and complete
1031 # config.log. We remove comments because anyway the quotes in there
1032 # would cause problems or look ugly.
1033 # WARNING: Be sure not to use single quotes in there, as some shells,
1034 # such as our DU 5.0 friend, will then `close' the trap.
1035 trap 'exit_status=$?
1036 # Save into config.log some information that might help in debugging.
1040 ## ---------------- ##
1041 ## Cache variables. ##
1042 ## ---------------- ##
1045 # The following way of writing the cache mishandles newlines in values,
1048 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1051 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1061 if test -s confdefs.h; then
1068 sed "/^$/d" confdefs.h
1071 test "$ac_signal" != 0 &&
1072 echo "$as_me: caught signal $ac_signal"
1073 echo "$as_me: exit $exit_status"
1075 rm -f core core.* *.core &&
1076 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1079 for ac_signal in 1 2 13 15; do
1080 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1085 rm -rf conftest* confdefs.h
1086 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1089 # Predefined preprocessor variables.
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_NAME "$PACKAGE_NAME"
1096 cat >>confdefs.h <<_ACEOF
1097 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_STRING "$PACKAGE_STRING"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1116 # Let the site file select an alternate cache file if it wants to.
1117 # Prefer explicitly selected file to automatically selected ones.
1118 if test -z "$CONFIG_SITE"; then
1119 if test "x$prefix" != xNONE; then
1120 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1122 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1125 for ac_site_file in $CONFIG_SITE; do
1126 if test -r "$ac_site_file"; then
1127 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1128 echo "$as_me: loading site script $ac_site_file" >&6;}
1129 sed 's/^/| /' "$ac_site_file" >&5
1134 if test -r "$cache_file"; then
1135 # Some versions of bash will fail to source /dev/null (special
1136 # files actually), so we avoid doing that.
1137 if test -f "$cache_file"; then
1138 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1139 echo "$as_me: loading cache $cache_file" >&6;}
1141 [\\/]* | ?:[\\/]* ) . $cache_file;;
1142 *) . ./$cache_file;;
1146 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1147 echo "$as_me: creating cache $cache_file" >&6;}
1151 # Check that the precious variables saved in the cache have kept the same
1153 ac_cache_corrupted=false
1154 for ac_var in `(set) 2>&1 |
1155 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1156 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1157 eval ac_new_set=\$ac_env_${ac_var}_set
1158 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1159 eval ac_new_val="\$ac_env_${ac_var}_value"
1160 case $ac_old_set,$ac_new_set in
1162 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1163 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1164 ac_cache_corrupted=: ;;
1166 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1167 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1168 ac_cache_corrupted=: ;;
1171 if test "x$ac_old_val" != "x$ac_new_val"; then
1172 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1173 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1174 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1175 echo "$as_me: former value: $ac_old_val" >&2;}
1176 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1177 echo "$as_me: current value: $ac_new_val" >&2;}
1178 ac_cache_corrupted=:
1181 # Pass precious variables to config.status.
1182 if test "$ac_new_set" = set; then
1184 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1185 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1186 *) ac_arg=$ac_var=$ac_new_val ;;
1188 case " $ac_configure_args " in
1189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1190 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1194 if $ac_cache_corrupted; then
1195 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1196 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1197 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1198 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1199 { (exit 1); exit 1; }; }
1203 ac_cpp='$CPP $CPPFLAGS'
1204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1227 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1228 if test -f $ac_dir/install-sh; then
1230 ac_install_sh="$ac_aux_dir/install-sh -c"
1232 elif test -f $ac_dir/install.sh; then
1234 ac_install_sh="$ac_aux_dir/install.sh -c"
1236 elif test -f $ac_dir/shtool; then
1238 ac_install_sh="$ac_aux_dir/shtool install -c"
1242 if test -z "$ac_aux_dir"; then
1243 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1244 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1245 { (exit 1); exit 1; }; }
1247 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1248 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1249 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1251 # Find a good install program. We prefer a C program (faster),
1252 # so one script is as good as another. But avoid the broken or
1253 # incompatible versions:
1254 # SysV /etc/install, /usr/sbin/install
1255 # SunOS /usr/etc/install
1256 # IRIX /sbin/install
1258 # AmigaOS /C/install, which installs bootblocks on floppy discs
1259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1262 # ./install, which can be erroneously created by make from ./install.sh.
1263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1265 if test -z "$INSTALL"; then
1266 if test "${ac_cv_path_install+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273 test -z "$as_dir" && as_dir=.
1274 # Account for people who put trailing slashes in PATH elements.
1276 ./ | .// | /cC/* | \
1277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1280 # OSF1 and SCO ODT 3.0 have their own names for install.
1281 # Don't use installbsd from OSF since it installs stuff as root
1283 for ac_prog in ginstall scoinst install; do
1284 for ac_exec_ext in '' $ac_executable_extensions; do
1285 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1286 if test $ac_prog = install &&
1287 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1288 # AIX install. It has an incompatible calling convention.
1290 elif test $ac_prog = install &&
1291 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1292 # program-specific install script used by HP pwplus--don't use.
1295 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1307 if test "${ac_cv_path_install+set}" = set; then
1308 INSTALL=$ac_cv_path_install
1310 # As a last resort, use the slow shell script. We don't cache a
1311 # path for INSTALL within a source directory, because that will
1312 # break other packages using the cache if that directory is
1313 # removed, or if the path is relative.
1314 INSTALL=$ac_install_sh
1317 echo "$as_me:$LINENO: result: $INSTALL" >&5
1318 echo "${ECHO_T}$INSTALL" >&6
1320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1321 # It thinks the first close brace ends the variable substitution.
1322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1328 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1329 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1332 echo timestamp > conftestfile
1333 # Do `set' in a subshell so we don't clobber the current shell's
1334 # arguments. Must try -L first in case configure is actually a
1335 # symlink; some systems play weird games with the mod time of symlinks
1336 # (eg FreeBSD returns the mod time of the symlink's containing
1339 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1340 if test "$*" = "X"; then
1342 set X `ls -t $srcdir/configure conftestfile`
1344 if test "$*" != "X $srcdir/configure conftestfile" \
1345 && test "$*" != "X conftestfile $srcdir/configure"; then
1347 # If neither matched, then we have a broken ls. This can happen
1348 # if, for instance, CONFIG_SHELL is bash and it inherits a
1349 # broken ls alias from the environment. This has actually
1350 # happened. Such a system could not be considered "sane".
1351 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1352 alias in your environment" >&5
1353 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1354 alias in your environment" >&2;}
1355 { (exit 1); exit 1; }; }
1358 test "$2" = conftestfile
1364 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1365 Check your system clock" >&5
1366 echo "$as_me: error: newly created file is older than distributed files!
1367 Check your system clock" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: yes" >&5
1372 echo "${ECHO_T}yes" >&6
1373 test "$program_prefix" != NONE &&
1374 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1375 # Use a double $ so make ignores it.
1376 test "$program_suffix" != NONE &&
1377 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1378 # Double any \ or $. echo might interpret backslashes.
1379 # By default was `s,x,x', remove it if useless.
1380 cat <<\_ACEOF >conftest.sed
1381 s/[\\$]/&&/g;s/;s,x,x,$//
1383 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1386 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1387 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1388 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1389 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 cat >conftest.make <<\_ACEOF
1394 @echo 'ac_maketemp="${MAKE}"'
1396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1397 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1398 if test -n "$ac_maketemp"; then
1399 eval ac_cv_prog_make_${ac_make}_set=yes
1401 eval ac_cv_prog_make_${ac_make}_set=no
1405 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1406 echo "$as_me:$LINENO: result: yes" >&5
1407 echo "${ECHO_T}yes" >&6
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 SET_MAKE="MAKE=${MAKE-make}"
1420 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1421 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1422 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1423 { (exit 1); exit 1; }; }
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE "$PACKAGE"
1431 cat >>confdefs.h <<_ACEOF
1432 #define VERSION "$VERSION"
1437 missing_dir=`cd $ac_aux_dir && pwd`
1438 echo "$as_me:$LINENO: checking for working aclocal" >&5
1439 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1440 # Run test in a subshell; some versions of sh will print an error if
1441 # an executable is not found, even if stderr is redirected.
1442 # Redirect stdin to placate older versions of autoconf. Sigh.
1443 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1445 echo "$as_me:$LINENO: result: found" >&5
1446 echo "${ECHO_T}found" >&6
1448 ACLOCAL="$missing_dir/missing aclocal"
1449 echo "$as_me:$LINENO: result: missing" >&5
1450 echo "${ECHO_T}missing" >&6
1453 echo "$as_me:$LINENO: checking for working autoconf" >&5
1454 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1455 # Run test in a subshell; some versions of sh will print an error if
1456 # an executable is not found, even if stderr is redirected.
1457 # Redirect stdin to placate older versions of autoconf. Sigh.
1458 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1460 echo "$as_me:$LINENO: result: found" >&5
1461 echo "${ECHO_T}found" >&6
1463 AUTOCONF="$missing_dir/missing autoconf"
1464 echo "$as_me:$LINENO: result: missing" >&5
1465 echo "${ECHO_T}missing" >&6
1468 echo "$as_me:$LINENO: checking for working automake" >&5
1469 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1470 # Run test in a subshell; some versions of sh will print an error if
1471 # an executable is not found, even if stderr is redirected.
1472 # Redirect stdin to placate older versions of autoconf. Sigh.
1473 if (automake --version) < /dev/null > /dev/null 2>&1; then
1475 echo "$as_me:$LINENO: result: found" >&5
1476 echo "${ECHO_T}found" >&6
1478 AUTOMAKE="$missing_dir/missing automake"
1479 echo "$as_me:$LINENO: result: missing" >&5
1480 echo "${ECHO_T}missing" >&6
1483 echo "$as_me:$LINENO: checking for working autoheader" >&5
1484 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1485 # Run test in a subshell; some versions of sh will print an error if
1486 # an executable is not found, even if stderr is redirected.
1487 # Redirect stdin to placate older versions of autoconf. Sigh.
1488 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1489 AUTOHEADER=autoheader
1490 echo "$as_me:$LINENO: result: found" >&5
1491 echo "${ECHO_T}found" >&6
1493 AUTOHEADER="$missing_dir/missing autoheader"
1494 echo "$as_me:$LINENO: result: missing" >&5
1495 echo "${ECHO_T}missing" >&6
1498 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1499 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1500 # Run test in a subshell; some versions of sh will print an error if
1501 # an executable is not found, even if stderr is redirected.
1502 # Redirect stdin to placate older versions of autoconf. Sigh.
1503 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1505 echo "$as_me:$LINENO: result: found" >&5
1506 echo "${ECHO_T}found" >&6
1508 MAKEINFO="$missing_dir/missing makeinfo"
1509 echo "$as_me:$LINENO: result: missing" >&5
1510 echo "${ECHO_T}missing" >&6
1515 ac_config_headers="$ac_config_headers config.h"
1517 ac_config_commands="$ac_config_commands default-1"
1520 for ac_prog in gawk mawk nawk awk
1522 # Extract the first word of "$ac_prog", so it can be a program name with args.
1523 set dummy $ac_prog; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_AWK+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 if test -n "$AWK"; then
1530 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_AWK="$ac_prog"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 if test -n "$AWK"; then
1550 echo "$as_me:$LINENO: result: $AWK" >&5
1551 echo "${ECHO_T}$AWK" >&6
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1557 test -n "$AWK" && break
1560 # Find a good install program. We prefer a C program (faster),
1561 # so one script is as good as another. But avoid the broken or
1562 # incompatible versions:
1563 # SysV /etc/install, /usr/sbin/install
1564 # SunOS /usr/etc/install
1565 # IRIX /sbin/install
1567 # AmigaOS /C/install, which installs bootblocks on floppy discs
1568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571 # ./install, which can be erroneously created by make from ./install.sh.
1572 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1573 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1574 if test -z "$INSTALL"; then
1575 if test "${ac_cv_path_install+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 # Account for people who put trailing slashes in PATH elements.
1585 ./ | .// | /cC/* | \
1586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1589 # OSF1 and SCO ODT 3.0 have their own names for install.
1590 # Don't use installbsd from OSF since it installs stuff as root
1592 for ac_prog in ginstall scoinst install; do
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1595 if test $ac_prog = install &&
1596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1597 # AIX install. It has an incompatible calling convention.
1599 elif test $ac_prog = install &&
1600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601 # program-specific install script used by HP pwplus--don't use.
1604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1616 if test "${ac_cv_path_install+set}" = set; then
1617 INSTALL=$ac_cv_path_install
1619 # As a last resort, use the slow shell script. We don't cache a
1620 # path for INSTALL within a source directory, because that will
1621 # break other packages using the cache if that directory is
1622 # removed, or if the path is relative.
1623 INSTALL=$ac_install_sh
1626 echo "$as_me:$LINENO: result: $INSTALL" >&5
1627 echo "${ECHO_T}$INSTALL" >&6
1629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1630 # It thinks the first close brace ends the variable substitution.
1631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1637 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1638 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1639 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1640 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 cat >conftest.make <<\_ACEOF
1645 @echo 'ac_maketemp="${MAKE}"'
1647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1648 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1649 if test -n "$ac_maketemp"; then
1650 eval ac_cv_prog_make_${ac_make}_set=yes
1652 eval ac_cv_prog_make_${ac_make}_set=no
1656 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1657 echo "$as_me:$LINENO: result: yes" >&5
1658 echo "${ECHO_T}yes" >&6
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1663 SET_MAKE="MAKE=${MAKE-make}"
1666 if test -n "$ac_tool_prefix"; then
1667 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1668 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_RANLIB+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$RANLIB"; then
1675 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 RANLIB=$ac_cv_prog_RANLIB
1694 if test -n "$RANLIB"; then
1695 echo "$as_me:$LINENO: result: $RANLIB" >&5
1696 echo "${ECHO_T}$RANLIB" >&6
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1703 if test -z "$ac_cv_prog_RANLIB"; then
1704 ac_ct_RANLIB=$RANLIB
1705 # Extract the first word of "ranlib", so it can be a program name with args.
1706 set dummy ranlib; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$ac_ct_RANLIB"; then
1713 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_ac_ct_RANLIB="ranlib"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1732 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1733 if test -n "$ac_ct_RANLIB"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1735 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1741 RANLIB=$ac_ct_RANLIB
1743 RANLIB="$ac_cv_prog_RANLIB"
1748 ac_cpp='$CPP $CPPFLAGS'
1749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1752 if test -n "$ac_tool_prefix"; then
1753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1754 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$CC"; then
1761 ac_cv_prog_CC="$CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 if test -n "$CC"; then
1781 echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1789 if test -z "$ac_cv_prog_CC"; then
1791 # Extract the first word of "gcc", so it can be a program name with args.
1792 set dummy gcc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 if test -n "$ac_ct_CC"; then
1799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 test -z "$as_dir" && as_dir=.
1806 for ac_exec_ext in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 ac_cv_prog_ac_ct_CC="gcc"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1818 if test -n "$ac_ct_CC"; then
1819 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1820 echo "${ECHO_T}$ac_ct_CC" >&6
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1831 if test -z "$CC"; then
1832 if test -n "$ac_tool_prefix"; then
1833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}cc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_CC="${ac_tool_prefix}cc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 if test -n "$CC"; then
1861 echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1869 if test -z "$ac_cv_prog_CC"; then
1871 # Extract the first word of "cc", so it can be a program name with args.
1872 set dummy cc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$ac_ct_CC"; then
1879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_ac_ct_CC="cc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1898 if test -n "$ac_ct_CC"; then
1899 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1900 echo "${ECHO_T}$ac_ct_CC" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1912 if test -z "$CC"; then
1913 # Extract the first word of "cc", so it can be a program name with args.
1914 set dummy cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1932 ac_prog_rejected=yes
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 if test $ac_prog_rejected = yes; then
1943 # We found a bogon in the path, so make sure we never use it.
1944 set dummy $ac_cv_prog_CC
1946 if test $# != 0; then
1947 # We chose a different compiler from the bogus one.
1948 # However, it has the same basename, so the bogon will be chosen
1949 # first if we set CC to just the basename; use the full file name.
1951 set dummy "$as_dir/$ac_word" ${1+"$@"}
1959 if test -n "$CC"; then
1960 echo "$as_me:$LINENO: result: $CC" >&5
1961 echo "${ECHO_T}$CC" >&6
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1968 if test -z "$CC"; then
1969 if test -n "$ac_tool_prefix"; then
1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CC"; then
2000 echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2007 test -n "$CC" && break
2010 if test -z "$CC"; then
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_ac_ct_CC="$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041 if test -n "$ac_ct_CC"; then
2042 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043 echo "${ECHO_T}$ac_ct_CC" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2049 test -n "$ac_ct_CC" && break
2058 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2059 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2060 { (exit 1); exit 1; }; }
2062 # Provide some information about the compiler.
2063 echo "$as_me:$LINENO:" \
2064 "checking for C compiler version" >&5
2065 ac_compiler=`set X $ac_compile; echo $2`
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2067 (eval $ac_compiler --version </dev/null >&5) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2072 (eval $ac_compiler -v </dev/null >&5) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2077 (eval $ac_compiler -V </dev/null >&5) 2>&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 #include "confdefs.h"
2086 #ifdef F77_DUMMY_MAIN
2090 int F77_DUMMY_MAIN() { return 1; }
2100 ac_clean_files_save=$ac_clean_files
2101 ac_clean_files="$ac_clean_files a.out a.exe"
2102 # Try to create an executable without -o first, disregard a.out.
2103 # It will help us diagnose broken compilers, and finding out an intuition
2105 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2106 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2107 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2108 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2109 (eval $ac_link_default) 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; then
2113 # Find the output, starting from the most likely. This scheme is
2114 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2117 # Be careful to initialize this variable, since it used to be cached.
2118 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2120 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2121 ls a.out conftest 2>/dev/null;
2122 ls a.* conftest.* 2>/dev/null`; do
2124 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2125 a.out ) # We found the default executable, but exeext='' is most
2128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2136 echo "$as_me: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2139 echo "$as_me: error: C compiler cannot create executables" >&2;}
2140 { (exit 77); exit 77; }; }
2143 ac_exeext=$ac_cv_exeext
2144 echo "$as_me:$LINENO: result: $ac_file" >&5
2145 echo "${ECHO_T}$ac_file" >&6
2147 # Check the compiler produces executables we can run. If not, either
2148 # the compiler is broken, or we cross compile.
2149 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2150 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2151 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2152 # If not cross compiling, check that we can run a simple program.
2153 if test "$cross_compiling" != yes; then
2154 if { ac_try='./$ac_file'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2162 if test "$cross_compiling" = maybe; then
2165 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2166 If you meant to cross compile, use \`--host'." >&5
2167 echo "$as_me: error: cannot run C compiled programs.
2168 If you meant to cross compile, use \`--host'." >&2;}
2169 { (exit 1); exit 1; }; }
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2176 rm -f a.out a.exe conftest$ac_cv_exeext
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run. If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188 (eval $ac_link) 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2196 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2198 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2207 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2208 { (exit 1); exit 1; }; }
2211 rm -f conftest$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213 echo "${ECHO_T}$ac_cv_exeext" >&6
2215 rm -f conftest.$ac_ext
2216 EXEEXT=$ac_cv_exeext
2218 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220 if test "${ac_cv_objext+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 cat >conftest.$ac_ext <<_ACEOF
2224 #line $LINENO "configure"
2225 #include "confdefs.h"
2227 #ifdef F77_DUMMY_MAIN
2231 int F77_DUMMY_MAIN() { return 1; }
2241 rm -f conftest.o conftest.obj
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; then
2247 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2255 echo "$as_me: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2258 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2259 { (exit 1); exit 1; }; }
2262 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2264 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2265 echo "${ECHO_T}$ac_cv_objext" >&6
2266 OBJEXT=$ac_cv_objext
2268 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2269 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2270 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 #include "confdefs.h"
2277 #ifdef F77_DUMMY_MAIN
2281 int F77_DUMMY_MAIN() { return 1; }
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2308 echo "$as_me: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318 GCC=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CFLAGS=${CFLAGS+set}
2320 ac_save_CFLAGS=$CFLAGS
2322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_g+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2329 #include "confdefs.h"
2331 #ifdef F77_DUMMY_MAIN
2335 int F77_DUMMY_MAIN() { return 1; }
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2359 echo "$as_me: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2363 rm -f conftest.$ac_objext conftest.$ac_ext
2365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2366 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2367 if test "$ac_test_CFLAGS" = set; then
2368 CFLAGS=$ac_save_CFLAGS
2369 elif test $ac_cv_prog_cc_g = yes; then
2370 if test "$GCC" = yes; then
2376 if test "$GCC" = yes; then
2382 # Some people use a C++ compiler to compile C. Since we use `exit',
2383 # in C++ we need to declare it. In case someone uses the same compiler
2384 # for both compiling C and C++ we need to have the C++ compiler decide
2385 # the declaration of exit, since it's the most demanding environment.
2386 cat >conftest.$ac_ext <<_ACEOF
2391 rm -f conftest.$ac_objext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393 (eval $ac_compile) 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 for ac_declaration in \
2405 '#include <stdlib.h>' \
2406 'extern "C" void std::exit (int) throw (); using std::exit;' \
2407 'extern "C" void std::exit (int); using std::exit;' \
2408 'extern "C" void exit (int) throw ();' \
2409 'extern "C" void exit (int);' \
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line $LINENO "configure"
2414 #include "confdefs.h"
2417 #ifdef F77_DUMMY_MAIN
2421 int F77_DUMMY_MAIN() { return 1; }
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line $LINENO "configure"
2452 #include "confdefs.h"
2454 #ifdef F77_DUMMY_MAIN
2458 int F77_DUMMY_MAIN() { return 1; }
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2482 echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 rm -f conftest.$ac_objext conftest.$ac_ext
2488 if test -n "$ac_declaration"; then
2489 echo '#ifdef __cplusplus' >>confdefs.h
2490 echo $ac_declaration >>confdefs.h
2491 echo '#endif' >>confdefs.h
2495 echo "$as_me: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 rm -f conftest.$ac_objext conftest.$ac_ext
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 ac_cpp='$CXXCPP $CPPFLAGS'
2507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2510 if test -n "$ac_tool_prefix"; then
2511 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_CXX+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$CXX"; then
2521 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 if test -n "$CXX"; then
2541 echo "$as_me:$LINENO: result: $CXX" >&5
2542 echo "${ECHO_T}$CXX" >&6
2544 echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2548 test -n "$CXX" && break
2551 if test -z "$CXX"; then
2553 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$ac_ct_CXX"; then
2563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572 ac_cv_prog_ac_ct_CXX="$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2582 if test -n "$ac_ct_CXX"; then
2583 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2584 echo "${ECHO_T}$ac_ct_CXX" >&6
2586 echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6
2590 test -n "$ac_ct_CXX" && break
2592 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2598 # Provide some information about the compiler.
2599 echo "$as_me:$LINENO:" \
2600 "checking for C++ compiler version" >&5
2601 ac_compiler=`set X $ac_compile; echo $2`
2602 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2603 (eval $ac_compiler --version </dev/null >&5) 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2608 (eval $ac_compiler -v </dev/null >&5) 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2613 (eval $ac_compiler -V </dev/null >&5) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2618 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2620 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2625 #include "confdefs.h"
2627 #ifdef F77_DUMMY_MAIN
2631 int F77_DUMMY_MAIN() { return 1; }
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2658 echo "$as_me: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2662 rm -f conftest.$ac_objext conftest.$ac_ext
2663 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2666 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2667 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2668 GXX=`test $ac_compiler_gnu = yes && echo yes`
2669 ac_test_CXXFLAGS=${CXXFLAGS+set}
2670 ac_save_CXXFLAGS=$CXXFLAGS
2672 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2673 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2674 if test "${ac_cv_prog_cxx_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 #include "confdefs.h"
2681 #ifdef F77_DUMMY_MAIN
2685 int F77_DUMMY_MAIN() { return 1; }
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_cv_prog_cxx_g=yes
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2713 rm -f conftest.$ac_objext conftest.$ac_ext
2715 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2716 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2717 if test "$ac_test_CXXFLAGS" = set; then
2718 CXXFLAGS=$ac_save_CXXFLAGS
2719 elif test $ac_cv_prog_cxx_g = yes; then
2720 if test "$GXX" = yes; then
2726 if test "$GXX" = yes; then
2732 for ac_declaration in \
2734 '#include <stdlib.h>' \
2735 'extern "C" void std::exit (int) throw (); using std::exit;' \
2736 'extern "C" void std::exit (int); using std::exit;' \
2737 'extern "C" void exit (int) throw ();' \
2738 'extern "C" void exit (int);' \
2741 cat >conftest.$ac_ext <<_ACEOF
2742 #line $LINENO "configure"
2743 #include "confdefs.h"
2746 #ifdef F77_DUMMY_MAIN
2750 int F77_DUMMY_MAIN() { return 1; }
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2774 echo "$as_me: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2778 rm -f conftest.$ac_objext conftest.$ac_ext
2779 cat >conftest.$ac_ext <<_ACEOF
2780 #line $LINENO "configure"
2781 #include "confdefs.h"
2783 #ifdef F77_DUMMY_MAIN
2787 int F77_DUMMY_MAIN() { return 1; }
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2811 echo "$as_me: failed program was:" >&5
2812 cat conftest.$ac_ext >&5
2814 rm -f conftest.$ac_objext conftest.$ac_ext
2817 if test -n "$ac_declaration"; then
2818 echo '#ifdef __cplusplus' >>confdefs.h
2819 echo $ac_declaration >>confdefs.h
2820 echo '#endif' >>confdefs.h
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2831 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2832 if test "${ac_cv_c_bigendian+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 # See if sys/param.h defines the BYTE_ORDER macro.
2836 cat >conftest.$ac_ext <<_ACEOF
2837 #line $LINENO "configure"
2838 #include "confdefs.h"
2839 #include <sys/types.h>
2840 #include <sys/param.h>
2842 #ifdef F77_DUMMY_MAIN
2846 int F77_DUMMY_MAIN() { return 1; }
2851 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -s conftest.$ac_objext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 # It does; now see whether it defined to BIG_ENDIAN or not.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line $LINENO "configure"
2874 #include "confdefs.h"
2875 #include <sys/types.h>
2876 #include <sys/param.h>
2878 #ifdef F77_DUMMY_MAIN
2882 int F77_DUMMY_MAIN() { return 1; }
2887 #if BYTE_ORDER != BIG_ENDIAN
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -s conftest.$ac_objext'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 ac_cv_c_bigendian=yes
2909 echo "$as_me: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2911 ac_cv_c_bigendian=no
2913 rm -f conftest.$ac_objext conftest.$ac_ext
2915 echo "$as_me: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2917 # It does not; compile a test program.
2918 if test "$cross_compiling" = yes; then
2919 # try to guess the endianess by grep'ing values into an object file
2920 ac_cv_c_bigendian=unknown
2921 cat >conftest.$ac_ext <<_ACEOF
2922 #line $LINENO "configure"
2923 #include "confdefs.h"
2924 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2925 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2926 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2927 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2928 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2929 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2930 #ifdef F77_DUMMY_MAIN
2934 int F77_DUMMY_MAIN() { return 1; }
2939 _ascii (); _ebcdic ();
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2957 ac_cv_c_bigendian=yes
2959 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2960 if test "$ac_cv_c_bigendian" = unknown; then
2961 ac_cv_c_bigendian=no
2963 # finding both strings is unlikely to happen, but who knows?
2964 ac_cv_c_bigendian=unknown
2968 echo "$as_me: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2971 rm -f conftest.$ac_objext conftest.$ac_ext
2973 cat >conftest.$ac_ext <<_ACEOF
2974 #line $LINENO "configure"
2975 #include "confdefs.h"
2979 /* Are we little or big endian? From Harbison&Steele. */
2983 char c[sizeof (long)];
2986 exit (u.c[sizeof (long) - 1] == 1);
2989 rm -f conftest$ac_exeext
2990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2991 (eval $ac_link) 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_cv_c_bigendian=no
3002 echo "$as_me: program exited with status $ac_status" >&5
3003 echo "$as_me: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 ac_cv_c_bigendian=yes
3008 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3011 rm -f conftest.$ac_objext conftest.$ac_ext
3013 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3014 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3015 case $ac_cv_c_bigendian in
3018 cat >>confdefs.h <<\_ACEOF
3019 #define WORDS_BIGENDIAN 1
3025 { { echo "$as_me:$LINENO: error: unknown endianess
3026 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3027 echo "$as_me: error: unknown endianess
3028 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3029 { (exit 1); exit 1; }; } ;;
3033 # Extract the first word of "wx-config", so it can be a program name with args.
3034 set dummy wx-config; ac_word=$2
3035 echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037 if test "${ac_cv_path_wxconfig+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 wxconfig=$ac_cv_path_wxconfig
3064 if test -n "$wxconfig"; then
3065 echo "$as_me:$LINENO: result: $wxconfig" >&5
3066 echo "${ECHO_T}$wxconfig" >&6
3068 echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6
3073 # Make sure we can run config.sub.
3074 $ac_config_sub sun4 >/dev/null 2>&1 ||
3075 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3076 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3077 { (exit 1); exit 1; }; }
3079 echo "$as_me:$LINENO: checking build system type" >&5
3080 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3081 if test "${ac_cv_build+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 ac_cv_build_alias=$build_alias
3085 test -z "$ac_cv_build_alias" &&
3086 ac_cv_build_alias=`$ac_config_guess`
3087 test -z "$ac_cv_build_alias" &&
3088 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3089 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3090 { (exit 1); exit 1; }; }
3091 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3092 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3093 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3094 { (exit 1); exit 1; }; }
3097 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3098 echo "${ECHO_T}$ac_cv_build" >&6
3100 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3101 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3102 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3105 echo "$as_me:$LINENO: checking host system type" >&5
3106 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3107 if test "${ac_cv_host+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 ac_cv_host_alias=$host_alias
3111 test -z "$ac_cv_host_alias" &&
3112 ac_cv_host_alias=$ac_cv_build_alias
3113 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3114 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3115 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3116 { (exit 1); exit 1; }; }
3119 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3120 echo "${ECHO_T}$ac_cv_host" >&6
3122 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3123 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3124 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3127 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3128 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3129 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 ac_cv_prog_cc_stdc=no
3134 cat >conftest.$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 #include "confdefs.h"
3139 #include <sys/types.h>
3140 #include <sys/stat.h>
3141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3142 struct buf { int x; };
3143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3144 static char *e (p, i)
3150 static char *f (char * (*g) (char **, int), char **p, ...)
3155 s = g (p, va_arg (v,int));
3159 int test (int i, double x);
3160 struct s1 {int (*f) (int a);};
3161 struct s2 {int (*f) (double a);};
3162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3165 #ifdef F77_DUMMY_MAIN
3169 int F77_DUMMY_MAIN() { return 1; }
3174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3179 # Don't try gcc -ansi; that turns off useful extensions and
3180 # breaks some systems' header files.
3181 # AIX -qlanglvl=ansi
3182 # Ultrix and OSF/1 -std1
3183 # HP-UX 10.20 and later -Ae
3184 # HP-UX older versions -Aa -D_HPUX_SOURCE
3185 # SVR4 -Xc -D__EXTENSIONS__
3186 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3188 CC="$ac_save_CC $ac_arg"
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_cv_prog_cc_stdc=$ac_arg
3204 echo "$as_me: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 rm -f conftest.$ac_objext
3209 rm -f conftest.$ac_ext conftest.$ac_objext
3214 case "x$ac_cv_prog_cc_stdc" in
3216 echo "$as_me:$LINENO: result: none needed" >&5
3217 echo "${ECHO_T}none needed" >&6 ;;
3219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3221 CC="$CC $ac_cv_prog_cc_stdc" ;;
3224 echo "$as_me:$LINENO: checking for inline" >&5
3225 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3226 if test "${ac_cv_c_inline+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 for ac_kw in inline __inline__ __inline; do
3231 cat >conftest.$ac_ext <<_ACEOF
3232 #line $LINENO "configure"
3233 #include "confdefs.h"
3235 static $ac_kw int static_foo () {return 0; }
3236 $ac_kw int foo () {return 0; }
3240 rm -f conftest.$ac_objext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3242 (eval $ac_compile) 2>&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -s conftest.$ac_objext'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; }; then
3252 ac_cv_c_inline=$ac_kw; break
3254 echo "$as_me: failed program was:" >&5
3255 cat conftest.$ac_ext >&5
3257 rm -f conftest.$ac_objext conftest.$ac_ext
3261 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3262 echo "${ECHO_T}$ac_cv_c_inline" >&6
3263 case $ac_cv_c_inline in
3266 cat >>confdefs.h <<\_ACEOF
3270 *) cat >>confdefs.h <<_ACEOF
3271 #define inline $ac_cv_c_inline
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3282 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3283 # On Suns, sometimes $CPP names a directory.
3284 if test -n "$CPP" && test -d "$CPP"; then
3287 if test -z "$CPP"; then
3288 if test "${ac_cv_prog_CPP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 # Double quotes because CPP needs to be expanded
3292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3295 for ac_c_preproc_warn_flag in '' yes
3297 # Use a header file that comes with gcc, so configuring glibc
3298 # with a fresh cross-compiler works.
3299 # On the NeXT, cc -E runs the code through the compiler's parser,
3300 # not just through cpp. "Syntax error" is here to catch this case.
3301 cat >conftest.$ac_ext <<_ACEOF
3302 #line $LINENO "configure"
3303 #include "confdefs.h"
3307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310 egrep -v '^ *\+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3323 if test -z "$ac_cpp_err"; then
3326 echo "$as_me: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 # Broken: fails on valid input.
3331 rm -f conftest.err conftest.$ac_ext
3333 # OK, works on sane cases. Now check whether non-existent headers
3334 # can be detected and how.
3335 cat >conftest.$ac_ext <<_ACEOF
3336 #line $LINENO "configure"
3337 #include "confdefs.h"
3338 #include <ac_nonexistent.h>
3340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343 egrep -v '^ *\+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3356 if test -z "$ac_cpp_err"; then
3357 # Broken: success on invalid input.
3360 echo "$as_me: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 # Passes both tests.
3366 rm -f conftest.err conftest.$ac_ext
3369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3370 rm -f conftest.err conftest.$ac_ext
3371 if $ac_preproc_ok; then
3383 echo "$as_me:$LINENO: result: $CPP" >&5
3384 echo "${ECHO_T}$CPP" >&6
3386 for ac_c_preproc_warn_flag in '' yes
3388 # Use a header file that comes with gcc, so configuring glibc
3389 # with a fresh cross-compiler works.
3390 # On the NeXT, cc -E runs the code through the compiler's parser,
3391 # not just through cpp. "Syntax error" is here to catch this case.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 #line $LINENO "configure"
3394 #include "confdefs.h"
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401 egrep -v '^ *\+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3414 if test -z "$ac_cpp_err"; then
3417 echo "$as_me: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3419 # Broken: fails on valid input.
3422 rm -f conftest.err conftest.$ac_ext
3424 # OK, works on sane cases. Now check whether non-existent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 #line $LINENO "configure"
3428 #include "confdefs.h"
3429 #include <ac_nonexistent.h>
3431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3434 egrep -v '^ *\+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3447 if test -z "$ac_cpp_err"; then
3448 # Broken: success on invalid input.
3451 echo "$as_me: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3453 # Passes both tests.
3457 rm -f conftest.err conftest.$ac_ext
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then
3465 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3467 { (exit 1); exit 1; }; }
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 #include "confdefs.h"
3491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3494 egrep -v '^ *\+' conftest.er1 >conftest.err
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } >/dev/null; then
3499 if test -s conftest.err; then
3500 ac_cpp_err=$ac_c_preproc_warn_flag
3507 if test -z "$ac_cpp_err"; then
3508 ac_cv_header_stdc=yes
3510 echo "$as_me: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3512 ac_cv_header_stdc=no
3514 rm -f conftest.err conftest.$ac_ext
3516 if test $ac_cv_header_stdc = yes; then
3517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 #line $LINENO "configure"
3520 #include "confdefs.h"
3524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3525 egrep "memchr" >/dev/null 2>&1; then
3528 ac_cv_header_stdc=no
3534 if test $ac_cv_header_stdc = yes; then
3535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3536 cat >conftest.$ac_ext <<_ACEOF
3537 #line $LINENO "configure"
3538 #include "confdefs.h"
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 egrep "free" >/dev/null 2>&1; then
3546 ac_cv_header_stdc=no
3552 if test $ac_cv_header_stdc = yes; then
3553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3554 if test "$cross_compiling" = yes; then
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #line $LINENO "configure"
3559 #include "confdefs.h"
3561 #if ((' ' & 0x0FF) == 0x020)
3562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3565 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3566 || ('j' <= (c) && (c) <= 'r') \
3567 || ('s' <= (c) && (c) <= 'z'))
3568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3576 for (i = 0; i < 256; i++)
3577 if (XOR (islower (i), ISLOWER (i))
3578 || toupper (i) != TOUPPER (i))
3583 rm -f conftest$ac_exeext
3584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3585 (eval $ac_link) 2>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3596 echo "$as_me: program exited with status $ac_status" >&5
3597 echo "$as_me: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 ac_cv_header_stdc=no
3602 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3606 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3607 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3608 if test $ac_cv_header_stdc = yes; then
3610 cat >>confdefs.h <<\_ACEOF
3611 #define STDC_HEADERS 1
3616 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3627 inttypes.h stdint.h unistd.h
3629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3630 echo "$as_me:$LINENO: checking for $ac_header" >&5
3631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 cat >conftest.$ac_ext <<_ACEOF
3636 #line $LINENO "configure"
3637 #include "confdefs.h"
3638 $ac_includes_default
3640 #include <$ac_header>
3642 rm -f conftest.$ac_objext
3643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644 (eval $ac_compile) 2>&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 eval "$as_ac_Header=yes"
3656 echo "$as_me: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 eval "$as_ac_Header=no"
3660 rm -f conftest.$ac_objext conftest.$ac_ext
3662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3665 cat >>confdefs.h <<_ACEOF
3666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3674 echo "$as_me:$LINENO: checking for short" >&5
3675 echo $ECHO_N "checking for short... $ECHO_C" >&6
3676 if test "${ac_cv_type_short+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 #include "confdefs.h"
3682 $ac_includes_default
3683 #ifdef F77_DUMMY_MAIN
3687 int F77_DUMMY_MAIN() { return 1; }
3700 rm -f conftest.$ac_objext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_type_short=yes
3714 echo "$as_me: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3718 rm -f conftest.$ac_objext conftest.$ac_ext
3720 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3721 echo "${ECHO_T}$ac_cv_type_short" >&6
3723 echo "$as_me:$LINENO: checking size of short" >&5
3724 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3725 if test "${ac_cv_sizeof_short+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 if test "$ac_cv_type_short" = yes; then
3729 # The cast to unsigned long works around a bug in the HP C Compiler
3730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3732 # This bug is HP SR number 8606223364.
3733 if test "$cross_compiling" = yes; then
3734 # Depending upon the size, compute the lo and hi bounds.
3735 cat >conftest.$ac_ext <<_ACEOF
3736 #line $LINENO "configure"
3737 #include "confdefs.h"
3738 $ac_includes_default
3739 #ifdef F77_DUMMY_MAIN
3743 int F77_DUMMY_MAIN() { return 1; }
3748 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3755 rm -f conftest.$ac_objext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757 (eval $ac_compile) 2>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -s conftest.$ac_objext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3769 cat >conftest.$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3771 #include "confdefs.h"
3772 $ac_includes_default
3773 #ifdef F77_DUMMY_MAIN
3777 int F77_DUMMY_MAIN() { return 1; }
3782 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3789 rm -f conftest.$ac_objext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791 (eval $ac_compile) 2>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest.$ac_objext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_hi=$ac_mid; break
3803 echo "$as_me: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 ac_lo=`expr $ac_mid + 1`
3806 if test $ac_lo -le $ac_mid; then
3810 ac_mid=`expr 2 '*' $ac_mid + 1`
3812 rm -f conftest.$ac_objext conftest.$ac_ext
3815 echo "$as_me: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3817 cat >conftest.$ac_ext <<_ACEOF
3818 #line $LINENO "configure"
3819 #include "confdefs.h"
3820 $ac_includes_default
3821 #ifdef F77_DUMMY_MAIN
3825 int F77_DUMMY_MAIN() { return 1; }
3830 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3837 rm -f conftest.$ac_objext
3838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3851 cat >conftest.$ac_ext <<_ACEOF
3852 #line $LINENO "configure"
3853 #include "confdefs.h"
3854 $ac_includes_default
3855 #ifdef F77_DUMMY_MAIN
3859 int F77_DUMMY_MAIN() { return 1; }
3864 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3871 rm -f conftest.$ac_objext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_lo=$ac_mid; break
3885 echo "$as_me: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 ac_hi=`expr '(' $ac_mid ')' - 1`
3888 if test $ac_mid -le $ac_hi; then
3892 ac_mid=`expr 2 '*' $ac_mid`
3894 rm -f conftest.$ac_objext conftest.$ac_ext
3897 echo "$as_me: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3901 rm -f conftest.$ac_objext conftest.$ac_ext
3903 rm -f conftest.$ac_objext conftest.$ac_ext
3904 # Binary search between lo and hi bounds.
3905 while test "x$ac_lo" != "x$ac_hi"; do
3906 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3907 cat >conftest.$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 #include "confdefs.h"
3910 $ac_includes_default
3911 #ifdef F77_DUMMY_MAIN
3915 int F77_DUMMY_MAIN() { return 1; }
3920 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3941 echo "$as_me: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 ac_lo=`expr '(' $ac_mid ')' + 1`
3945 rm -f conftest.$ac_objext conftest.$ac_ext
3948 ?*) ac_cv_sizeof_short=$ac_lo;;
3949 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
3950 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
3951 { (exit 1); exit 1; }; } ;;
3954 if test "$cross_compiling" = yes; then
3955 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3956 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3957 { (exit 1); exit 1; }; }
3959 cat >conftest.$ac_ext <<_ACEOF
3960 #line $LINENO "configure"
3961 #include "confdefs.h"
3962 $ac_includes_default
3963 long longval () { return (long) (sizeof (short)); }
3964 unsigned long ulongval () { return (long) (sizeof (short)); }
3967 #ifdef F77_DUMMY_MAIN
3971 int F77_DUMMY_MAIN() { return 1; }
3977 FILE *f = fopen ("conftest.val", "w");
3980 if (((long) (sizeof (short))) < 0)
3982 long i = longval ();
3983 if (i != ((long) (sizeof (short))))
3985 fprintf (f, "%ld\n", i);
3989 unsigned long i = ulongval ();
3990 if (i != ((long) (sizeof (short))))
3992 fprintf (f, "%lu\n", i);
3994 exit (ferror (f) || fclose (f) != 0);
4000 rm -f conftest$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_sizeof_short=`cat conftest.val`
4013 echo "$as_me: program exited with status $ac_status" >&5
4014 echo "$as_me: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4018 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4019 { (exit 1); exit 1; }; }
4021 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_sizeof_short=0
4029 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4030 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4031 cat >>confdefs.h <<_ACEOF
4032 #define SIZEOF_SHORT $ac_cv_sizeof_short
4036 echo "$as_me:$LINENO: checking for int" >&5
4037 echo $ECHO_N "checking for int... $ECHO_C" >&6
4038 if test "${ac_cv_type_int+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 cat >conftest.$ac_ext <<_ACEOF
4042 #line $LINENO "configure"
4043 #include "confdefs.h"
4044 $ac_includes_default
4045 #ifdef F77_DUMMY_MAIN
4049 int F77_DUMMY_MAIN() { return 1; }
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4076 echo "$as_me: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4080 rm -f conftest.$ac_objext conftest.$ac_ext
4082 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4083 echo "${ECHO_T}$ac_cv_type_int" >&6
4085 echo "$as_me:$LINENO: checking size of int" >&5
4086 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4087 if test "${ac_cv_sizeof_int+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test "$ac_cv_type_int" = yes; then
4091 # The cast to unsigned long works around a bug in the HP C Compiler
4092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4094 # This bug is HP SR number 8606223364.
4095 if test "$cross_compiling" = yes; then
4096 # Depending upon the size, compute the lo and hi bounds.
4097 cat >conftest.$ac_ext <<_ACEOF
4098 #line $LINENO "configure"
4099 #include "confdefs.h"
4100 $ac_includes_default
4101 #ifdef F77_DUMMY_MAIN
4105 int F77_DUMMY_MAIN() { return 1; }
4110 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4117 rm -f conftest.$ac_objext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4133 #include "confdefs.h"
4134 $ac_includes_default
4135 #ifdef F77_DUMMY_MAIN
4139 int F77_DUMMY_MAIN() { return 1; }
4144 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4151 rm -f conftest.$ac_objext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 ac_hi=$ac_mid; break
4165 echo "$as_me: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4167 ac_lo=`expr $ac_mid + 1`
4168 if test $ac_lo -le $ac_mid; then
4172 ac_mid=`expr 2 '*' $ac_mid + 1`
4174 rm -f conftest.$ac_objext conftest.$ac_ext
4177 echo "$as_me: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 cat >conftest.$ac_ext <<_ACEOF
4180 #line $LINENO "configure"
4181 #include "confdefs.h"
4182 $ac_includes_default
4183 #ifdef F77_DUMMY_MAIN
4187 int F77_DUMMY_MAIN() { return 1; }
4192 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4213 cat >conftest.$ac_ext <<_ACEOF
4214 #line $LINENO "configure"
4215 #include "confdefs.h"
4216 $ac_includes_default
4217 #ifdef F77_DUMMY_MAIN
4221 int F77_DUMMY_MAIN() { return 1; }
4226 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4233 rm -f conftest.$ac_objext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_lo=$ac_mid; break
4247 echo "$as_me: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 ac_hi=`expr '(' $ac_mid ')' - 1`
4250 if test $ac_mid -le $ac_hi; then
4254 ac_mid=`expr 2 '*' $ac_mid`
4256 rm -f conftest.$ac_objext conftest.$ac_ext
4259 echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4263 rm -f conftest.$ac_objext conftest.$ac_ext
4265 rm -f conftest.$ac_objext conftest.$ac_ext
4266 # Binary search between lo and hi bounds.
4267 while test "x$ac_lo" != "x$ac_hi"; do
4268 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4269 cat >conftest.$ac_ext <<_ACEOF
4270 #line $LINENO "configure"
4271 #include "confdefs.h"
4272 $ac_includes_default
4273 #ifdef F77_DUMMY_MAIN
4277 int F77_DUMMY_MAIN() { return 1; }
4282 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4303 echo "$as_me: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 ac_lo=`expr '(' $ac_mid ')' + 1`
4307 rm -f conftest.$ac_objext conftest.$ac_ext
4310 ?*) ac_cv_sizeof_int=$ac_lo;;
4311 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4312 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4313 { (exit 1); exit 1; }; } ;;
4316 if test "$cross_compiling" = yes; then
4317 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4318 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4319 { (exit 1); exit 1; }; }
4321 cat >conftest.$ac_ext <<_ACEOF
4322 #line $LINENO "configure"
4323 #include "confdefs.h"
4324 $ac_includes_default
4325 long longval () { return (long) (sizeof (int)); }
4326 unsigned long ulongval () { return (long) (sizeof (int)); }
4329 #ifdef F77_DUMMY_MAIN
4333 int F77_DUMMY_MAIN() { return 1; }
4339 FILE *f = fopen ("conftest.val", "w");
4342 if (((long) (sizeof (int))) < 0)
4344 long i = longval ();
4345 if (i != ((long) (sizeof (int))))
4347 fprintf (f, "%ld\n", i);
4351 unsigned long i = ulongval ();
4352 if (i != ((long) (sizeof (int))))
4354 fprintf (f, "%lu\n", i);
4356 exit (ferror (f) || fclose (f) != 0);
4362 rm -f conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364 (eval $ac_link) 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 ac_cv_sizeof_int=`cat conftest.val`
4375 echo "$as_me: program exited with status $ac_status" >&5
4376 echo "$as_me: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4379 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4380 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4381 { (exit 1); exit 1; }; }
4383 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4392 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4393 cat >>confdefs.h <<_ACEOF
4394 #define SIZEOF_INT $ac_cv_sizeof_int
4398 echo "$as_me:$LINENO: checking for long" >&5
4399 echo $ECHO_N "checking for long... $ECHO_C" >&6
4400 if test "${ac_cv_type_long+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 cat >conftest.$ac_ext <<_ACEOF
4404 #line $LINENO "configure"
4405 #include "confdefs.h"
4406 $ac_includes_default
4407 #ifdef F77_DUMMY_MAIN
4411 int F77_DUMMY_MAIN() { return 1; }
4424 rm -f conftest.$ac_objext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426 (eval $ac_compile) 2>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -s conftest.$ac_objext'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4438 echo "$as_me: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4442 rm -f conftest.$ac_objext conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4445 echo "${ECHO_T}$ac_cv_type_long" >&6
4447 echo "$as_me:$LINENO: checking size of long" >&5
4448 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4449 if test "${ac_cv_sizeof_long+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 if test "$ac_cv_type_long" = yes; then
4453 # The cast to unsigned long works around a bug in the HP C Compiler
4454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4456 # This bug is HP SR number 8606223364.
4457 if test "$cross_compiling" = yes; then
4458 # Depending upon the size, compute the lo and hi bounds.
4459 cat >conftest.$ac_ext <<_ACEOF
4460 #line $LINENO "configure"
4461 #include "confdefs.h"
4462 $ac_includes_default
4463 #ifdef F77_DUMMY_MAIN
4467 int F77_DUMMY_MAIN() { return 1; }
4472 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4479 rm -f conftest.$ac_objext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4493 cat >conftest.$ac_ext <<_ACEOF
4494 #line $LINENO "configure"
4495 #include "confdefs.h"
4496 $ac_includes_default
4497 #ifdef F77_DUMMY_MAIN
4501 int F77_DUMMY_MAIN() { return 1; }
4506 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>&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
4525 ac_hi=$ac_mid; break
4527 echo "$as_me: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4529 ac_lo=`expr $ac_mid + 1`
4530 if test $ac_lo -le $ac_mid; then
4534 ac_mid=`expr 2 '*' $ac_mid + 1`
4536 rm -f conftest.$ac_objext conftest.$ac_ext
4539 echo "$as_me: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4541 cat >conftest.$ac_ext <<_ACEOF
4542 #line $LINENO "configure"
4543 #include "confdefs.h"
4544 $ac_includes_default
4545 #ifdef F77_DUMMY_MAIN
4549 int F77_DUMMY_MAIN() { return 1; }
4554 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4575 cat >conftest.$ac_ext <<_ACEOF
4576 #line $LINENO "configure"
4577 #include "confdefs.h"
4578 $ac_includes_default
4579 #ifdef F77_DUMMY_MAIN
4583 int F77_DUMMY_MAIN() { return 1; }
4588 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_lo=$ac_mid; break
4609 echo "$as_me: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 ac_hi=`expr '(' $ac_mid ')' - 1`
4612 if test $ac_mid -le $ac_hi; then
4616 ac_mid=`expr 2 '*' $ac_mid`
4618 rm -f conftest.$ac_objext conftest.$ac_ext
4621 echo "$as_me: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4625 rm -f conftest.$ac_objext conftest.$ac_ext
4627 rm -f conftest.$ac_objext conftest.$ac_ext
4628 # Binary search between lo and hi bounds.
4629 while test "x$ac_lo" != "x$ac_hi"; do
4630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4631 cat >conftest.$ac_ext <<_ACEOF
4632 #line $LINENO "configure"
4633 #include "confdefs.h"
4634 $ac_includes_default
4635 #ifdef F77_DUMMY_MAIN
4639 int F77_DUMMY_MAIN() { return 1; }
4644 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4665 echo "$as_me: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4667 ac_lo=`expr '(' $ac_mid ')' + 1`
4669 rm -f conftest.$ac_objext conftest.$ac_ext
4672 ?*) ac_cv_sizeof_long=$ac_lo;;
4673 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4674 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4675 { (exit 1); exit 1; }; } ;;
4678 if test "$cross_compiling" = yes; then
4679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4680 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4681 { (exit 1); exit 1; }; }
4683 cat >conftest.$ac_ext <<_ACEOF
4684 #line $LINENO "configure"
4685 #include "confdefs.h"
4686 $ac_includes_default
4687 long longval () { return (long) (sizeof (long)); }
4688 unsigned long ulongval () { return (long) (sizeof (long)); }
4691 #ifdef F77_DUMMY_MAIN
4695 int F77_DUMMY_MAIN() { return 1; }
4701 FILE *f = fopen ("conftest.val", "w");
4704 if (((long) (sizeof (long))) < 0)
4706 long i = longval ();
4707 if (i != ((long) (sizeof (long))))
4709 fprintf (f, "%ld\n", i);
4713 unsigned long i = ulongval ();
4714 if (i != ((long) (sizeof (long))))
4716 fprintf (f, "%lu\n", i);
4718 exit (ferror (f) || fclose (f) != 0);
4724 rm -f conftest$ac_exeext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726 (eval $ac_link) 2>&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 ac_cv_sizeof_long=`cat conftest.val`
4737 echo "$as_me: program exited with status $ac_status" >&5
4738 echo "$as_me: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4742 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4743 { (exit 1); exit 1; }; }
4745 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4754 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4755 cat >>confdefs.h <<_ACEOF
4756 #define SIZEOF_LONG $ac_cv_sizeof_long
4760 echo "$as_me:$LINENO: checking for float" >&5
4761 echo $ECHO_N "checking for float... $ECHO_C" >&6
4762 if test "${ac_cv_type_float+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 #include "confdefs.h"
4768 $ac_includes_default
4769 #ifdef F77_DUMMY_MAIN
4773 int F77_DUMMY_MAIN() { return 1; }
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 ac_cv_type_float=yes
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4804 rm -f conftest.$ac_objext conftest.$ac_ext
4806 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4807 echo "${ECHO_T}$ac_cv_type_float" >&6
4809 echo "$as_me:$LINENO: checking size of float" >&5
4810 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4811 if test "${ac_cv_sizeof_float+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 if test "$ac_cv_type_float" = yes; then
4815 # The cast to unsigned long works around a bug in the HP C Compiler
4816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4818 # This bug is HP SR number 8606223364.
4819 if test "$cross_compiling" = yes; then
4820 # Depending upon the size, compute the lo and hi bounds.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 #include "confdefs.h"
4824 $ac_includes_default
4825 #ifdef F77_DUMMY_MAIN
4829 int F77_DUMMY_MAIN() { return 1; }
4834 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4855 cat >conftest.$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4857 #include "confdefs.h"
4858 $ac_includes_default
4859 #ifdef F77_DUMMY_MAIN
4863 int F77_DUMMY_MAIN() { return 1; }
4868 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_hi=$ac_mid; break
4889 echo "$as_me: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4891 ac_lo=`expr $ac_mid + 1`
4892 if test $ac_lo -le $ac_mid; then
4896 ac_mid=`expr 2 '*' $ac_mid + 1`
4898 rm -f conftest.$ac_objext conftest.$ac_ext
4901 echo "$as_me: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4903 cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4905 #include "confdefs.h"
4906 $ac_includes_default
4907 #ifdef F77_DUMMY_MAIN
4911 int F77_DUMMY_MAIN() { return 1; }
4916 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4937 cat >conftest.$ac_ext <<_ACEOF
4938 #line $LINENO "configure"
4939 #include "confdefs.h"
4940 $ac_includes_default
4941 #ifdef F77_DUMMY_MAIN
4945 int F77_DUMMY_MAIN() { return 1; }
4950 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -s conftest.$ac_objext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 ac_lo=$ac_mid; break
4971 echo "$as_me: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 ac_hi=`expr '(' $ac_mid ')' - 1`
4974 if test $ac_mid -le $ac_hi; then
4978 ac_mid=`expr 2 '*' $ac_mid`
4980 rm -f conftest.$ac_objext conftest.$ac_ext
4983 echo "$as_me: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4987 rm -f conftest.$ac_objext conftest.$ac_ext
4989 rm -f conftest.$ac_objext conftest.$ac_ext
4990 # Binary search between lo and hi bounds.
4991 while test "x$ac_lo" != "x$ac_hi"; do
4992 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4993 cat >conftest.$ac_ext <<_ACEOF
4994 #line $LINENO "configure"
4995 #include "confdefs.h"
4996 $ac_includes_default
4997 #ifdef F77_DUMMY_MAIN
5001 int F77_DUMMY_MAIN() { return 1; }
5006 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5027 echo "$as_me: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5029 ac_lo=`expr '(' $ac_mid ')' + 1`
5031 rm -f conftest.$ac_objext conftest.$ac_ext
5034 ?*) ac_cv_sizeof_float=$ac_lo;;
5035 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5036 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5040 if test "$cross_compiling" = yes; then
5041 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5042 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5043 { (exit 1); exit 1; }; }
5045 cat >conftest.$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5047 #include "confdefs.h"
5048 $ac_includes_default
5049 long longval () { return (long) (sizeof (float)); }
5050 unsigned long ulongval () { return (long) (sizeof (float)); }
5053 #ifdef F77_DUMMY_MAIN
5057 int F77_DUMMY_MAIN() { return 1; }
5063 FILE *f = fopen ("conftest.val", "w");
5066 if (((long) (sizeof (float))) < 0)
5068 long i = longval ();
5069 if (i != ((long) (sizeof (float))))
5071 fprintf (f, "%ld\n", i);
5075 unsigned long i = ulongval ();
5076 if (i != ((long) (sizeof (float))))
5078 fprintf (f, "%lu\n", i);
5080 exit (ferror (f) || fclose (f) != 0);
5086 rm -f conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_cv_sizeof_float=`cat conftest.val`
5099 echo "$as_me: program exited with status $ac_status" >&5
5100 echo "$as_me: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5104 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5105 { (exit 1); exit 1; }; }
5107 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5112 ac_cv_sizeof_float=0
5115 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5116 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5117 cat >>confdefs.h <<_ACEOF
5118 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5122 echo "$as_me:$LINENO: checking for double" >&5
5123 echo $ECHO_N "checking for double... $ECHO_C" >&6
5124 if test "${ac_cv_type_double+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 cat >conftest.$ac_ext <<_ACEOF
5128 #line $LINENO "configure"
5129 #include "confdefs.h"
5130 $ac_includes_default
5131 #ifdef F77_DUMMY_MAIN
5135 int F77_DUMMY_MAIN() { return 1; }
5142 if (sizeof (double))
5148 rm -f conftest.$ac_objext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150 (eval $ac_compile) 2>&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
5154 { ac_try='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 ac_cv_type_double=yes
5162 echo "$as_me: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5164 ac_cv_type_double=no
5166 rm -f conftest.$ac_objext conftest.$ac_ext
5168 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5169 echo "${ECHO_T}$ac_cv_type_double" >&6
5171 echo "$as_me:$LINENO: checking size of double" >&5
5172 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5173 if test "${ac_cv_sizeof_double+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if test "$ac_cv_type_double" = yes; then
5177 # The cast to unsigned long works around a bug in the HP C Compiler
5178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5180 # This bug is HP SR number 8606223364.
5181 if test "$cross_compiling" = yes; then
5182 # Depending upon the size, compute the lo and hi bounds.
5183 cat >conftest.$ac_ext <<_ACEOF
5184 #line $LINENO "configure"
5185 #include "confdefs.h"
5186 $ac_includes_default
5187 #ifdef F77_DUMMY_MAIN
5191 int F77_DUMMY_MAIN() { return 1; }
5196 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5203 rm -f conftest.$ac_objext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205 (eval $ac_compile) 2>&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -s conftest.$ac_objext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 #include "confdefs.h"
5220 $ac_includes_default
5221 #ifdef F77_DUMMY_MAIN
5225 int F77_DUMMY_MAIN() { return 1; }
5230 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5237 rm -f conftest.$ac_objext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239 (eval $ac_compile) 2>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_hi=$ac_mid; break
5251 echo "$as_me: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 ac_lo=`expr $ac_mid + 1`
5254 if test $ac_lo -le $ac_mid; then
5258 ac_mid=`expr 2 '*' $ac_mid + 1`
5260 rm -f conftest.$ac_objext conftest.$ac_ext
5263 echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 cat >conftest.$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5267 #include "confdefs.h"
5268 $ac_includes_default
5269 #ifdef F77_DUMMY_MAIN
5273 int F77_DUMMY_MAIN() { return 1; }
5278 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5285 rm -f conftest.$ac_objext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287 (eval $ac_compile) 2>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } &&
5291 { ac_try='test -s conftest.$ac_objext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line $LINENO "configure"
5301 #include "confdefs.h"
5302 $ac_includes_default
5303 #ifdef F77_DUMMY_MAIN
5307 int F77_DUMMY_MAIN() { return 1; }
5312 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5319 rm -f conftest.$ac_objext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321 (eval $ac_compile) 2>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -s conftest.$ac_objext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 ac_lo=$ac_mid; break
5333 echo "$as_me: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5335 ac_hi=`expr '(' $ac_mid ')' - 1`
5336 if test $ac_mid -le $ac_hi; then
5340 ac_mid=`expr 2 '*' $ac_mid`
5342 rm -f conftest.$ac_objext conftest.$ac_ext
5345 echo "$as_me: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5349 rm -f conftest.$ac_objext conftest.$ac_ext
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352 # Binary search between lo and hi bounds.
5353 while test "x$ac_lo" != "x$ac_hi"; do
5354 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5355 cat >conftest.$ac_ext <<_ACEOF
5356 #line $LINENO "configure"
5357 #include "confdefs.h"
5358 $ac_includes_default
5359 #ifdef F77_DUMMY_MAIN
5363 int F77_DUMMY_MAIN() { return 1; }
5368 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5375 rm -f conftest.$ac_objext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377 (eval $ac_compile) 2>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5389 echo "$as_me: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5391 ac_lo=`expr '(' $ac_mid ')' + 1`
5393 rm -f conftest.$ac_objext conftest.$ac_ext
5396 ?*) ac_cv_sizeof_double=$ac_lo;;
5397 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5398 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5399 { (exit 1); exit 1; }; } ;;
5402 if test "$cross_compiling" = yes; then
5403 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5404 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5405 { (exit 1); exit 1; }; }
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5410 $ac_includes_default
5411 long longval () { return (long) (sizeof (double)); }
5412 unsigned long ulongval () { return (long) (sizeof (double)); }
5415 #ifdef F77_DUMMY_MAIN
5419 int F77_DUMMY_MAIN() { return 1; }
5425 FILE *f = fopen ("conftest.val", "w");
5428 if (((long) (sizeof (double))) < 0)
5430 long i = longval ();
5431 if (i != ((long) (sizeof (double))))
5433 fprintf (f, "%ld\n", i);
5437 unsigned long i = ulongval ();
5438 if (i != ((long) (sizeof (double))))
5440 fprintf (f, "%lu\n", i);
5442 exit (ferror (f) || fclose (f) != 0);
5448 rm -f conftest$ac_exeext
5449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5450 (eval $ac_link) 2>&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_cv_sizeof_double=`cat conftest.val`
5461 echo "$as_me: program exited with status $ac_status" >&5
5462 echo "$as_me: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5466 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5467 { (exit 1); exit 1; }; }
5469 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5474 ac_cv_sizeof_double=0
5477 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5478 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5479 cat >>confdefs.h <<_ACEOF
5480 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5486 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5487 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5488 if test "${ac_cv_lib_z_deflate+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 ac_check_lib_save_LIBS=$LIBS
5493 cat >conftest.$ac_ext <<_ACEOF
5494 #line $LINENO "configure"
5495 #include "confdefs.h"
5497 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */
5504 #ifdef F77_DUMMY_MAIN
5508 int F77_DUMMY_MAIN() { return 1; }
5518 rm -f conftest.$ac_objext conftest$ac_exeext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -s conftest$ac_exeext'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 ac_cv_lib_z_deflate=yes
5532 echo "$as_me: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5534 ac_cv_lib_z_deflate=no
5536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5537 LIBS=$ac_check_lib_save_LIBS
5539 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5540 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5541 if test $ac_cv_lib_z_deflate = yes; then
5544 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5545 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5549 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5550 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5551 if test "${ac_cv_lib_m_sin+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_check_lib_save_LIBS=$LIBS
5556 cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5558 #include "confdefs.h"
5560 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5567 #ifdef F77_DUMMY_MAIN
5571 int F77_DUMMY_MAIN() { return 1; }
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5595 echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600 LIBS=$ac_check_lib_save_LIBS
5602 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5603 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5604 if test $ac_cv_lib_m_sin = yes; then
5605 cat >>confdefs.h <<_ACEOF
5613 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5614 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5615 if test "${ac_cv_lib_curses_main+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 ac_check_lib_save_LIBS=$LIBS
5619 LIBS="-lcurses $LIBS"
5620 cat >conftest.$ac_ext <<_ACEOF
5621 #line $LINENO "configure"
5622 #include "confdefs.h"
5625 #ifdef F77_DUMMY_MAIN
5629 int F77_DUMMY_MAIN() { return 1; }
5639 rm -f conftest.$ac_objext conftest$ac_exeext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641 (eval $ac_link) 2>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -s conftest$ac_exeext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 ac_cv_lib_curses_main=yes
5653 echo "$as_me: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5655 ac_cv_lib_curses_main=no
5657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5658 LIBS=$ac_check_lib_save_LIBS
5660 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5661 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5662 if test $ac_cv_lib_curses_main = yes; then
5668 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5669 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5670 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_check_lib_save_LIBS=$LIBS
5674 LIBS="-lncurses $LIBS"
5675 cat >conftest.$ac_ext <<_ACEOF
5676 #line $LINENO "configure"
5677 #include "confdefs.h"
5680 #ifdef F77_DUMMY_MAIN
5684 int F77_DUMMY_MAIN() { return 1; }
5694 rm -f conftest.$ac_objext conftest$ac_exeext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5696 (eval $ac_link) 2>&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -s conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_lib_ncurses_main=yes
5708 echo "$as_me: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5710 ac_cv_lib_ncurses_main=no
5712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5713 LIBS=$ac_check_lib_save_LIBS
5715 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5716 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5717 if test $ac_cv_lib_ncurses_main = yes; then
5723 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5724 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5725 if test "${ac_cv_lib_readline_main+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 ac_check_lib_save_LIBS=$LIBS
5729 LIBS="-lreadline -lcurses $LIBS"
5730 cat >conftest.$ac_ext <<_ACEOF
5731 #line $LINENO "configure"
5732 #include "confdefs.h"
5735 #ifdef F77_DUMMY_MAIN
5739 int F77_DUMMY_MAIN() { return 1; }
5749 rm -f conftest.$ac_objext conftest$ac_exeext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5751 (eval $ac_link) 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -s conftest$ac_exeext'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_cv_lib_readline_main=yes
5763 echo "$as_me: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5765 ac_cv_lib_readline_main=no
5767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5768 LIBS=$ac_check_lib_save_LIBS
5770 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5771 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5772 if test $ac_cv_lib_readline_main = yes; then
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_READLINE 1
5784 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.2" >&5
5785 echo $ECHO_N "checking for main in -lwx_gtk-2.2... $ECHO_C" >&6
5786 if test "${ac_cv_lib_wx_gtk_2_2_main+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 ac_check_lib_save_LIBS=$LIBS
5790 LIBS="-lwx_gtk-2.2 $LIBS"
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 #include "confdefs.h"
5796 #ifdef F77_DUMMY_MAIN
5800 int F77_DUMMY_MAIN() { return 1; }
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5812 (eval $ac_link) 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -s conftest$ac_exeext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_lib_wx_gtk_2_2_main=yes
5824 echo "$as_me: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5826 ac_cv_lib_wx_gtk_2_2_main=no
5828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5829 LIBS=$ac_check_lib_save_LIBS
5831 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_2_main" >&5
5832 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_2_main" >&6
5833 if test $ac_cv_lib_wx_gtk_2_2_main = yes; then
5834 wxwin=true; wx_gtk=true;
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_WXWINDOWS 1
5841 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
5842 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
5843 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 ac_check_lib_save_LIBS=$LIBS
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 #include "confdefs.h"
5852 /* Override any gcc2 internal prototype to avoid an error. */
5856 /* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5859 #ifdef F77_DUMMY_MAIN
5863 int F77_DUMMY_MAIN() { return 1; }
5873 rm -f conftest.$ac_objext conftest$ac_exeext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875 (eval $ac_link) 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -s conftest$ac_exeext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_cv_lib_fftw_fftw_one=yes
5887 echo "$as_me: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5889 ac_cv_lib_fftw_fftw_one=no
5891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5892 LIBS=$ac_check_lib_save_LIBS
5894 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
5895 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
5896 if test $ac_cv_lib_fftw_fftw_one = yes; then
5898 cat >>confdefs.h <<\_ACEOF
5906 echo "$as_me:$LINENO: checking for main in -lGL" >&5
5907 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5908 if test "${ac_cv_lib_GL_main+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_check_lib_save_LIBS=$LIBS
5912 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
5913 cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5915 #include "confdefs.h"
5918 #ifdef F77_DUMMY_MAIN
5922 int F77_DUMMY_MAIN() { return 1; }
5932 rm -f conftest.$ac_objext conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -s conftest$ac_exeext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 ac_cv_lib_GL_main=yes
5946 echo "$as_me: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5948 ac_cv_lib_GL_main=no
5950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5953 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
5954 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
5955 if test $ac_cv_lib_GL_main = yes; then
5961 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
5962 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
5963 if test "${ac_cv_lib_pthread_main+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 ac_check_lib_save_LIBS=$LIBS
5967 LIBS="-lpthread $LIBS"
5968 cat >conftest.$ac_ext <<_ACEOF
5969 #line $LINENO "configure"
5970 #include "confdefs.h"
5973 #ifdef F77_DUMMY_MAIN
5977 int F77_DUMMY_MAIN() { return 1; }
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989 (eval $ac_link) 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -s conftest$ac_exeext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 ac_cv_lib_pthread_main=yes
6001 echo "$as_me: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6003 ac_cv_lib_pthread_main=no
6005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6006 LIBS=$ac_check_lib_save_LIBS
6008 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6009 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6010 if test $ac_cv_lib_pthread_main = yes; then
6017 if test "$zlib" = "true" ; then
6018 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6019 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6020 if test "${ac_cv_lib_png_main+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 ac_check_lib_save_LIBS=$LIBS
6025 cat >conftest.$ac_ext <<_ACEOF
6026 #line $LINENO "configure"
6027 #include "confdefs.h"
6030 #ifdef F77_DUMMY_MAIN
6034 int F77_DUMMY_MAIN() { return 1; }
6044 rm -f conftest.$ac_objext conftest$ac_exeext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6046 (eval $ac_link) 2>&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -s conftest$ac_exeext'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6056 ac_cv_lib_png_main=yes
6058 echo "$as_me: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6060 ac_cv_lib_png_main=no
6062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6063 LIBS=$ac_check_lib_save_LIBS
6065 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6066 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6067 if test $ac_cv_lib_png_main = yes; then
6069 cat >>confdefs.h <<\_ACEOF
6079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6081 if test "${ac_cv_header_stdc+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 cat >conftest.$ac_ext <<_ACEOF
6085 #line $LINENO "configure"
6086 #include "confdefs.h"
6093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6096 egrep -v '^ *\+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null; then
6101 if test -s conftest.err; then
6102 ac_cpp_err=$ac_c_preproc_warn_flag
6109 if test -z "$ac_cpp_err"; then
6110 ac_cv_header_stdc=yes
6112 echo "$as_me: failed program was:" >&5
6113 cat conftest.$ac_ext >&5
6114 ac_cv_header_stdc=no
6116 rm -f conftest.err conftest.$ac_ext
6118 if test $ac_cv_header_stdc = yes; then
6119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line $LINENO "configure"
6122 #include "confdefs.h"
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 egrep "memchr" >/dev/null 2>&1; then
6130 ac_cv_header_stdc=no
6136 if test $ac_cv_header_stdc = yes; then
6137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6140 #include "confdefs.h"
6144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6145 egrep "free" >/dev/null 2>&1; then
6148 ac_cv_header_stdc=no
6154 if test $ac_cv_header_stdc = yes; then
6155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6156 if test "$cross_compiling" = yes; then
6159 cat >conftest.$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6161 #include "confdefs.h"
6163 #if ((' ' & 0x0FF) == 0x020)
6164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6167 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6168 || ('j' <= (c) && (c) <= 'r') \
6169 || ('s' <= (c) && (c) <= 'z'))
6170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6178 for (i = 0; i < 256; i++)
6179 if (XOR (islower (i), ISLOWER (i))
6180 || toupper (i) != TOUPPER (i))
6185 rm -f conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187 (eval $ac_link) 2>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6198 echo "$as_me: program exited with status $ac_status" >&5
6199 echo "$as_me: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6202 ac_cv_header_stdc=no
6204 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6208 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6209 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6210 if test $ac_cv_header_stdc = yes; then
6212 cat >>confdefs.h <<\_ACEOF
6213 #define STDC_HEADERS 1
6242 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
6244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6246 echo "$as_me:$LINENO: checking for $ac_header" >&5
6247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6254 # Is the header compilable?
6255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6258 #line $LINENO "configure"
6259 #include "confdefs.h"
6260 $ac_includes_default
6261 #include <$ac_header>
6263 rm -f conftest.$ac_objext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_header_compiler=yes
6277 echo "$as_me: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6279 ac_header_compiler=no
6281 rm -f conftest.$ac_objext conftest.$ac_ext
6282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6283 echo "${ECHO_T}$ac_header_compiler" >&6
6285 # Is the header present?
6286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6288 cat >conftest.$ac_ext <<_ACEOF
6289 #line $LINENO "configure"
6290 #include "confdefs.h"
6291 #include <$ac_header>
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296 egrep -v '^ *\+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null; then
6301 if test -s conftest.err; then
6302 ac_cpp_err=$ac_c_preproc_warn_flag
6309 if test -z "$ac_cpp_err"; then
6310 ac_header_preproc=yes
6312 echo "$as_me: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 ac_header_preproc=no
6316 rm -f conftest.err conftest.$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318 echo "${ECHO_T}$ac_header_preproc" >&6
6320 # So? What about this header?
6321 case $ac_header_compiler:$ac_header_preproc in
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6335 echo "$as_me:$LINENO: checking for $ac_header" >&5
6336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 eval "$as_ac_Header=$ac_header_preproc"
6342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6347 cat >>confdefs.h <<_ACEOF
6348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6356 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6357 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6358 if test "${ac_cv_c_const+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6362 #line $LINENO "configure"
6363 #include "confdefs.h"
6365 #ifdef F77_DUMMY_MAIN
6369 int F77_DUMMY_MAIN() { return 1; }
6374 /* FIXME: Include the comments suggested by Paul. */
6376 /* Ultrix mips cc rejects this. */
6377 typedef int charset[2];
6379 /* SunOS 4.1.1 cc rejects this. */
6380 char const *const *ccp;
6382 /* NEC SVR4.0.2 mips cc rejects this. */
6383 struct point {int x, y;};
6384 static struct point const zero = {0,0};
6385 /* AIX XL C 1.02.0.0 rejects this.
6386 It does not let you subtract one const X* pointer from another in
6387 an arm of an if-expression whose if-part is not a constant
6389 const char *g = "string";
6390 ccp = &g + (g ? g-g : 0);
6391 /* HPUX 7.0 cc rejects these. */
6394 ccp = (char const *const *) p;
6395 { /* SCO 3.2v4 cc rejects this. */
6397 char const *s = 0 ? (char *) 0 : (char const *) 0;
6401 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6403 const int *foo = &x[0];
6406 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6407 typedef const int *iptr;
6411 { /* AIX XL C 1.02.0.0 rejects this saying
6412 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6413 struct s { int j; const int *ap[3]; };
6414 struct s *b; b->j = 5;
6416 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6439 echo "$as_me: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6443 rm -f conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6446 echo "${ECHO_T}$ac_cv_c_const" >&6
6447 if test $ac_cv_c_const = no; then
6449 cat >>confdefs.h <<\_ACEOF
6455 echo "$as_me:$LINENO: checking for off_t" >&5
6456 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6457 if test "${ac_cv_type_off_t+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6461 #line $LINENO "configure"
6462 #include "confdefs.h"
6463 $ac_includes_default
6464 #ifdef F77_DUMMY_MAIN
6468 int F77_DUMMY_MAIN() { return 1; }
6481 rm -f conftest.$ac_objext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 ac_cv_type_off_t=yes
6495 echo "$as_me: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6499 rm -f conftest.$ac_objext conftest.$ac_ext
6501 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6502 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6503 if test $ac_cv_type_off_t = yes; then
6507 cat >>confdefs.h <<_ACEOF
6513 echo "$as_me:$LINENO: checking for size_t" >&5
6514 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6515 if test "${ac_cv_type_size_t+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 cat >conftest.$ac_ext <<_ACEOF
6519 #line $LINENO "configure"
6520 #include "confdefs.h"
6521 $ac_includes_default
6522 #ifdef F77_DUMMY_MAIN
6526 int F77_DUMMY_MAIN() { return 1; }
6533 if (sizeof (size_t))
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_cv_type_size_t=yes
6553 echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 ac_cv_type_size_t=no
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6559 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6560 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6561 if test $ac_cv_type_size_t = yes; then
6565 cat >>confdefs.h <<_ACEOF
6566 #define size_t unsigned
6571 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6572 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6573 if test "${ac_cv_struct_tm+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6578 #include "confdefs.h"
6579 #include <sys/types.h>
6582 #ifdef F77_DUMMY_MAIN
6586 int F77_DUMMY_MAIN() { return 1; }
6591 struct tm *tp; tp->tm_sec;
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_struct_tm=time.h
6610 echo "$as_me: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6612 ac_cv_struct_tm=sys/time.h
6614 rm -f conftest.$ac_objext conftest.$ac_ext
6616 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6617 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6618 if test $ac_cv_struct_tm = sys/time.h; then
6620 cat >>confdefs.h <<\_ACEOF
6621 #define TM_IN_SYS_TIME 1
6628 for ac_func in vprintf
6630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6631 echo "$as_me:$LINENO: checking for $ac_func" >&5
6632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6633 if eval "test \"\${$as_ac_var+set}\" = set"; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 cat >conftest.$ac_ext <<_ACEOF
6637 #line $LINENO "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func (); below. */
6642 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6651 #ifdef F77_DUMMY_MAIN
6655 int F77_DUMMY_MAIN() { return 1; }
6660 /* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
6663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 (eval $ac_link) 2>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -s conftest$ac_exeext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 eval "$as_ac_var=yes"
6687 echo "$as_me: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6689 eval "$as_ac_var=no"
6691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6695 if test `eval echo '${'$as_ac_var'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6700 echo "$as_me:$LINENO: checking for _doprnt" >&5
6701 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6702 if test "${ac_cv_func__doprnt+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 #include "confdefs.h"
6708 /* System header to define __stub macros and hopefully few prototypes,
6709 which can conflict with char _doprnt (); below. */
6711 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6720 #ifdef F77_DUMMY_MAIN
6724 int F77_DUMMY_MAIN() { return 1; }
6729 /* The GNU C library defines this for functions which it implements
6730 to always fail with ENOSYS. Some functions are actually named
6731 something starting with __ and the normal name is an alias. */
6732 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } &&
6748 { ac_try='test -s conftest$ac_exeext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6754 ac_cv_func__doprnt=yes
6756 echo "$as_me: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6758 ac_cv_func__doprnt=no
6760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6762 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6763 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6764 if test $ac_cv_func__doprnt = yes; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_DOPRNT 1
6783 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
6785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6786 echo "$as_me:$LINENO: checking for $ac_func" >&5
6787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6788 if eval "test \"\${$as_ac_var+set}\" = set"; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 cat >conftest.$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6793 #include "confdefs.h"
6794 /* System header to define __stub macros and hopefully few prototypes,
6795 which can conflict with char $ac_func (); below. */
6797 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6806 #ifdef F77_DUMMY_MAIN
6810 int F77_DUMMY_MAIN() { return 1; }
6815 /* The GNU C library defines this for functions which it implements
6816 to always fail with ENOSYS. Some functions are actually named
6817 something starting with __ and the normal name is an alias. */
6818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } &&
6834 { ac_try='test -s conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 eval "$as_ac_var=yes"
6842 echo "$as_me: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6844 eval "$as_ac_var=no"
6846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6850 if test `eval echo '${'$as_ac_var'}'` = yes; then
6851 cat >>confdefs.h <<_ACEOF
6852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6858 echo "$as_me:$LINENO: checking for basename" >&5
6859 echo $ECHO_N "checking for basename... $ECHO_C" >&6
6860 if test "${ac_cv_func_basename+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 cat >conftest.$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 #include "confdefs.h"
6866 /* System header to define __stub macros and hopefully few prototypes,
6867 which can conflict with char basename (); below. */
6869 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6878 #ifdef F77_DUMMY_MAIN
6882 int F77_DUMMY_MAIN() { return 1; }
6887 /* The GNU C library defines this for functions which it implements
6888 to always fail with ENOSYS. Some functions are actually named
6889 something starting with __ and the normal name is an alias. */
6890 #if defined (__stub_basename) || defined (__stub___basename)
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6902 (eval $ac_link) 2>&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_cv_func_basename=yes
6914 echo "$as_me: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6916 ac_cv_func_basename=no
6918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
6921 echo "${ECHO_T}$ac_cv_func_basename" >&6
6923 echo "$as_me:$LINENO: checking for setjmp" >&5
6924 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
6925 if test "${ac_cv_func_setjmp+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line $LINENO "configure"
6930 #include "confdefs.h"
6931 /* System header to define __stub macros and hopefully few prototypes,
6932 which can conflict with char setjmp (); below. */
6934 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6943 #ifdef F77_DUMMY_MAIN
6947 int F77_DUMMY_MAIN() { return 1; }
6952 /* The GNU C library defines this for functions which it implements
6953 to always fail with ENOSYS. Some functions are actually named
6954 something starting with __ and the normal name is an alias. */
6955 #if defined (__stub_setjmp) || defined (__stub___setjmp)
6965 rm -f conftest.$ac_objext conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967 (eval $ac_link) 2>&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try='test -s conftest$ac_exeext'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; }; then
6977 ac_cv_func_setjmp=yes
6979 echo "$as_me: failed program was:" >&5
6980 cat conftest.$ac_ext >&5
6981 ac_cv_func_setjmp=no
6983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6985 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
6986 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
6988 echo "$as_me:$LINENO: checking for setpriority" >&5
6989 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
6990 if test "${ac_cv_func_setpriority+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6994 #line $LINENO "configure"
6995 #include "confdefs.h"
6996 /* System header to define __stub macros and hopefully few prototypes,
6997 which can conflict with char setpriority (); below. */
6999 /* Override any gcc2 internal prototype to avoid an error. */
7003 /* We use char because int might match the return type of a gcc2
7004 builtin and then its argument prototype would still apply. */
7005 char setpriority ();
7008 #ifdef F77_DUMMY_MAIN
7012 int F77_DUMMY_MAIN() { return 1; }
7017 /* The GNU C library defines this for functions which it implements
7018 to always fail with ENOSYS. Some functions are actually named
7019 something starting with __ and the normal name is an alias. */
7020 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032 (eval $ac_link) 2>&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try='test -s conftest$ac_exeext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_cv_func_setpriority=yes
7044 echo "$as_me: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7046 ac_cv_func_setpriority=no
7048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7050 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7051 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7053 echo "$as_me:$LINENO: checking for time" >&5
7054 echo $ECHO_N "checking for time... $ECHO_C" >&6
7055 if test "${ac_cv_func_time+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7060 #include "confdefs.h"
7061 /* System header to define __stub macros and hopefully few prototypes,
7062 which can conflict with char time (); below. */
7064 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7073 #ifdef F77_DUMMY_MAIN
7077 int F77_DUMMY_MAIN() { return 1; }
7082 /* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085 #if defined (__stub_time) || defined (__stub___time)
7095 rm -f conftest.$ac_objext conftest$ac_exeext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097 (eval $ac_link) 2>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7109 echo "$as_me: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7115 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7116 echo "${ECHO_T}$ac_cv_func_time" >&6
7118 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7119 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7120 if test "${ac_cv_func_gettimeofday+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 cat >conftest.$ac_ext <<_ACEOF
7124 #line $LINENO "configure"
7125 #include "confdefs.h"
7126 /* System header to define __stub macros and hopefully few prototypes,
7127 which can conflict with char gettimeofday (); below. */
7129 /* Override any gcc2 internal prototype to avoid an error. */
7133 /* We use char because int might match the return type of a gcc2
7134 builtin and then its argument prototype would still apply. */
7135 char gettimeofday ();
7138 #ifdef F77_DUMMY_MAIN
7142 int F77_DUMMY_MAIN() { return 1; }
7147 /* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
7150 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7160 rm -f conftest.$ac_objext conftest$ac_exeext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7162 (eval $ac_link) 2>&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -s conftest$ac_exeext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 ac_cv_func_gettimeofday=yes
7174 echo "$as_me: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7176 ac_cv_func_gettimeofday=no
7178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7180 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7181 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7184 if test "${OSTYPE}" = "cygwin" ; then
7187 echo "$as_me:$LINENO: checking for getopt_long" >&5
7188 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7189 if test "${ac_cv_func_getopt_long+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.$ac_ext <<_ACEOF
7193 #line $LINENO "configure"
7194 #include "confdefs.h"
7195 /* System header to define __stub macros and hopefully few prototypes,
7196 which can conflict with char getopt_long (); below. */
7198 /* Override any gcc2 internal prototype to avoid an error. */
7202 /* We use char because int might match the return type of a gcc2
7203 builtin and then its argument prototype would still apply. */
7204 char getopt_long ();
7207 #ifdef F77_DUMMY_MAIN
7211 int F77_DUMMY_MAIN() { return 1; }
7216 /* The GNU C library defines this for functions which it implements
7217 to always fail with ENOSYS. Some functions are actually named
7218 something starting with __ and the normal name is an alias. */
7219 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7229 rm -f conftest.$ac_objext conftest$ac_exeext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7231 (eval $ac_link) 2>&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -s conftest$ac_exeext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
7241 ac_cv_func_getopt_long=yes
7243 echo "$as_me: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7245 ac_cv_func_getopt_long=no
7247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7249 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7250 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7251 if test $ac_cv_func_getopt_long = yes; then
7259 if test "${getopt_long}" = "false" ; then
7260 my_includes="$my_includes -I../getopt"
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_GETOPT_LONG 1
7266 ctlibs_base="$ctlibs_base -lgetopt"
7267 LDFLAGS="$LDFLAGS -L../getopt"
7271 INCLUDED_GETOPT_LONG_TRUE=
7272 INCLUDED_GETOPT_LONG_FALSE='#'
7274 INCLUDED_GETOPT_LONG_TRUE='#'
7275 INCLUDED_GETOPT_LONG_FALSE=
7279 if test "${readline}" = "true" ; then
7280 ctlibs_base="$ctlibs_base -lreadline"
7281 if test "${ncurses}" = "true"; then
7282 ctlibs_base="$ctlibs_base -lncurses"
7283 elif test "${curses}" = "true"; then
7284 ctlibs_base="$ctlibs_base -lcurses"
7288 echo "$as_me:$LINENO: checking debug" >&5
7289 echo $ECHO_N "checking debug... $ECHO_C" >&6
7290 # Check whether --enable-debug or --disable-debug was given.
7291 if test "${enable_debug+set}" = set; then
7292 enableval="$enable_debug"
7293 case "${enableval}" in
7295 echo "$as_me:$LINENO: result: yes" >&5
7296 echo "${ECHO_T}yes" >&6
7299 echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6
7302 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7303 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7307 debug=false; echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6
7312 if test "$debug" = "true"; then
7320 if test "$datadir" != "" ; then
7321 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7324 if test "$debug" = "true" ; then
7325 CFLAGS="$CFLAGS -g -DDEBUG"
7327 cat >>confdefs.h <<\_ACEOF
7332 CFLAGS="$CFLAGS -O3 -DNDEBUG -fomit-frame-pointer"
7334 cat >>confdefs.h <<\_ACEOF
7340 if test "${pthread}" = "true" ; then
7341 CFLAGS="$FLAGS -pthread -D_REENTRANT"
7343 cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_WXTHREADS 1
7349 echo "$as_me:$LINENO: checking sstream" >&5
7350 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7351 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7352 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
7354 cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_SSTREAM 1
7358 echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7361 echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6
7365 CFLAGS="$CFLAGS -Wall"
7366 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7367 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7368 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7369 if test "${enable_verbose_warnings+set}" = set; then
7370 enableval="$enable_verbose_warnings"
7371 case "$enableval" in
7373 echo "$as_me:$LINENO: result: yes" >&5
7374 echo "${ECHO_T}yes" >&6
7375 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7378 echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7383 echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6
7388 echo "$as_me:$LINENO: checking static executables" >&5
7389 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7390 # Check whether --enable-static or --disable-static was given.
7391 if test "${enable_static+set}" = set; then
7392 enableval="$enable_static"
7393 case "$enableval" in
7395 echo "$as_me:$LINENO: result: yes" >&5
7396 echo "${ECHO_T}yes" >&6
7397 CFLAGS="$CFLAGS --static"
7400 echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6
7405 echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6
7411 # Check whether --with-lam or --without-lam was given.
7412 if test "${with_lam+set}" = set; then
7414 if test "$withval" != "no" ; then
7420 if test "$withval" != "no" ; then
7421 if test "$prefix" != "NONE" ; then
7422 trylamdir="$trylamdir $prefix"
7425 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7426 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7427 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7428 if test -x "$testlamdir/bin/hcp" ; then
7429 if test "$testlamdir" != "/usr"; then
7430 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7431 CFLAGS="$CFLAGS -I$testlamdir/include"
7433 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7434 lamdir="$testlamdir"
7441 echo "$as_me:$LINENO: result: $lamdir" >&5
7442 echo "${ECHO_T}$lamdir" >&6
7444 echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6
7450 # Check whether --with-ctn or --without-ctn was given.
7451 if test "${with_ctn+set}" = set; then
7453 if test "$withval" != "no" ; then
7459 if test "$withval" != "no" ; then
7460 if test "$prefix" != "NONE" ; then
7461 tryctndir="$tryctndir $prefix"
7464 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7465 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7466 for testctndir in "." $tryctndir /usr/local /usr/local/ctn /usr /usr/ctn /opt /opt/ctn ; do
7467 if test -f "$testctndir/lib/libctn.a" ; then
7468 if test "$testctndir" != "/usr"; then
7469 LDFLAGS="$LDFLAGS -L$testctndir/lib"
7470 CFLAGS="$CFLAGS -I$testctndir/include"
7472 ctndir="$testctndir"
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_CTN_DICOM 1
7482 echo "$as_me:$LINENO: result: $ctndir" >&5
7483 echo "${ECHO_T}$ctndir" >&6
7485 echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6
7490 echo "$as_me:$LINENO: checking for web access" >&5
7491 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7493 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7494 if test "${with_cgibin_dir+set}" = set; then
7495 withval="$with_cgibin_dir"
7496 cgibindir=$withval ;
7500 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7501 if test "${with_cgibin_url+set}" = set; then
7502 withval="$with_cgibin_url"
7503 cgibinurl=$withval ;
7507 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7508 if test "${with_webdata_dir+set}" = set; then
7509 withval="$with_webdata_dir"
7510 webdatadir=$withval ;
7514 # Check whether --with-webdata-url or --without-webdata-url was given.
7515 if test "${with_webdata_url+set}" = set; then
7516 withval="$with_webdata_url"
7517 webdataurl=$withval ;
7521 # Check whether --with-html-dir or --without-html-dir was given.
7522 if test "${with_html_dir+set}" = set; then
7523 withval="$with_html_dir"
7527 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7528 cgiprograms="ctsim.cgi ctsim.conf"
7532 if test -n "$htmldir" ; then
7533 htmldata=simulate.html
7538 if test -n "$htmldir"; then
7546 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7549 echo "$as_me:$LINENO: result: yes" >&5
7550 echo "${ECHO_T}yes" >&6
7551 if test -z "$cgibindir" ; then
7552 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7553 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7554 { (exit 1); exit 1; }; }
7555 elif test -z "$cgibinurl" ; then
7556 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7557 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7558 { (exit 1); exit 1; }; }
7559 elif test -z "$webdatadir" ; then
7560 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7561 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7562 { (exit 1); exit 1; }; }
7563 elif test -z "$webdataurl" ; then
7564 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7565 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7566 { (exit 1); exit 1; }; }
7567 elif test -z "$htmldir" ; then
7568 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7569 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7570 { (exit 1); exit 1; }; }
7573 echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6
7579 if test -n "$lamdir"; then
7588 echo "$as_me:$LINENO: checking for X" >&5
7589 echo $ECHO_N "checking for X... $ECHO_C" >&6
7592 # Check whether --with-x or --without-x was given.
7593 if test "${with_x+set}" = set; then
7597 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7598 if test "x$with_x" = xno; then
7599 # The user explicitly disabled X.
7602 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7603 # Both variables are already set.
7606 if test "${ac_cv_have_x+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 # One or both of the vars are not set, and there is no cached value.
7610 ac_x_includes=no ac_x_libraries=no
7612 if mkdir conftest.dir; then
7614 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7615 cat >Imakefile <<'_ACEOF'
7617 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7619 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7620 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7621 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7622 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7623 for ac_extension in a so sl; do
7624 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7625 test -f $ac_im_libdir/libX11.$ac_extension; then
7626 ac_im_usrlibdir=$ac_im_libdir; break
7629 # Screen out bogus values from the imake configuration. They are
7630 # bogus both because they are the default anyway, and because
7631 # using them would break gcc on systems where it needs fixed includes.
7632 case $ac_im_incroot in
7634 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7636 case $ac_im_usrlibdir in
7638 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7645 # Standard set of common directories for X headers.
7646 # Check X11 before X11Rn because it is often a symlink to the current release.
7658 /usr/local/X11/include
7659 /usr/local/X11R6/include
7660 /usr/local/X11R5/include
7661 /usr/local/X11R4/include
7663 /usr/local/include/X11
7664 /usr/local/include/X11R6
7665 /usr/local/include/X11R5
7666 /usr/local/include/X11R4
7670 /usr/XFree86/include/X11
7674 /usr/unsupported/include
7676 /usr/local/x11r5/include
7677 /usr/lpp/Xamples/include
7679 /usr/openwin/include
7680 /usr/openwin/share/include'
7682 if test "$ac_x_includes" = no; then
7683 # Guess where to find include files, by looking for Intrinsic.h.
7684 # First, try using that file with no special directory specified.
7685 cat >conftest.$ac_ext <<_ACEOF
7686 #line $LINENO "configure"
7687 #include "confdefs.h"
7688 #include <X11/Intrinsic.h>
7690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7693 egrep -v '^ *\+' conftest.er1 >conftest.err
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } >/dev/null; then
7698 if test -s conftest.err; then
7699 ac_cpp_err=$ac_c_preproc_warn_flag
7706 if test -z "$ac_cpp_err"; then
7707 # We can compile using X headers with no special include directory.
7710 echo "$as_me: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7712 for ac_dir in $ac_x_header_dirs; do
7713 if test -r "$ac_dir/X11/Intrinsic.h"; then
7714 ac_x_includes=$ac_dir
7719 rm -f conftest.err conftest.$ac_ext
7720 fi # $ac_x_includes = no
7722 if test "$ac_x_libraries" = no; then
7723 # Check for the libraries.
7724 # See if we find them without any special options.
7725 # Don't add to $LIBS permanently.
7728 cat >conftest.$ac_ext <<_ACEOF
7729 #line $LINENO "configure"
7730 #include "confdefs.h"
7731 #include <X11/Intrinsic.h>
7732 #ifdef F77_DUMMY_MAIN
7736 int F77_DUMMY_MAIN() { return 1; }
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -s conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7759 # We can link X programs with no special library path.
7762 echo "$as_me: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7765 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7767 # Don't even attempt the hair of trying to link an X program!
7768 for ac_extension in a so sl; do
7769 if test -r $ac_dir/libXt.$ac_extension; then
7770 ac_x_libraries=$ac_dir
7776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7777 fi # $ac_x_libraries = no
7779 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7780 # Didn't find X anywhere. Cache the known absence of X.
7781 ac_cv_have_x="have_x=no"
7783 # Record where we found X for the cache.
7784 ac_cv_have_x="have_x=yes \
7785 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7790 eval "$ac_cv_have_x"
7793 if test "$have_x" != yes; then
7794 echo "$as_me:$LINENO: result: $have_x" >&5
7795 echo "${ECHO_T}$have_x" >&6
7798 # If each of the values was on the command line, it overrides each guess.
7799 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7800 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7801 # Update the cache value to reflect the command line values.
7802 ac_cv_have_x="have_x=yes \
7803 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7804 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7805 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7808 if test "$no_x" = yes; then
7809 # Not all programs may use this symbol, but it does not hurt to define it.
7811 cat >>confdefs.h <<\_ACEOF
7812 #define X_DISPLAY_MISSING 1
7815 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7817 if test -n "$x_includes"; then
7818 X_CFLAGS="$X_CFLAGS -I$x_includes"
7821 # It would also be nice to do this for all -L options, not just this one.
7822 if test -n "$x_libraries"; then
7823 X_LIBS="$X_LIBS -L$x_libraries"
7824 # For Solaris; some versions of Sun CC require a space after -R and
7825 # others require no space. Words are not sufficient . . . .
7826 case `(uname -sr) 2>/dev/null` in
7828 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7829 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7830 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7831 cat >conftest.$ac_ext <<_ACEOF
7832 #line $LINENO "configure"
7833 #include "confdefs.h"
7835 #ifdef F77_DUMMY_MAIN
7839 int F77_DUMMY_MAIN() { return 1; }
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851 (eval $ac_link) 2>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -s conftest$ac_exeext'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7863 echo "$as_me: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7868 if test $ac_R_nospace = yes; then
7869 echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6
7871 X_LIBS="$X_LIBS -R$x_libraries"
7873 LIBS="$ac_xsave_LIBS -R $x_libraries"
7874 cat >conftest.$ac_ext <<_ACEOF
7875 #line $LINENO "configure"
7876 #include "confdefs.h"
7878 #ifdef F77_DUMMY_MAIN
7882 int F77_DUMMY_MAIN() { return 1; }
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -s conftest$ac_exeext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7906 echo "$as_me: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7911 if test $ac_R_space = yes; then
7912 echo "$as_me:$LINENO: result: yes" >&5
7913 echo "${ECHO_T}yes" >&6
7914 X_LIBS="$X_LIBS -R $x_libraries"
7916 echo "$as_me:$LINENO: result: neither works" >&5
7917 echo "${ECHO_T}neither works" >&6
7924 # Check for system-dependent libraries X programs must link with.
7925 # Do this before checking for the system-independent R6 libraries
7926 # (-lICE), since we may need -lsocket or whatever for X linking.
7928 if test "$ISC" = yes; then
7929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7931 # Martyn Johnson says this is needed for Ultrix, if the X
7932 # libraries were built with DECnet support. And Karl Berry says
7933 # the Alpha needs dnet_stub (dnet does not exist).
7934 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7935 cat >conftest.$ac_ext <<_ACEOF
7936 #line $LINENO "configure"
7937 #include "confdefs.h"
7939 /* Override any gcc2 internal prototype to avoid an error. */
7943 /* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */
7945 char XOpenDisplay ();
7946 #ifdef F77_DUMMY_MAIN
7950 int F77_DUMMY_MAIN() { return 1; }
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7974 echo "$as_me: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7976 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7977 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7978 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 ac_check_lib_save_LIBS=$LIBS
7983 cat >conftest.$ac_ext <<_ACEOF
7984 #line $LINENO "configure"
7985 #include "confdefs.h"
7987 /* Override any gcc2 internal prototype to avoid an error. */
7991 /* We use char because int might match the return type of a gcc2
7992 builtin and then its argument prototype would still apply. */
7994 #ifdef F77_DUMMY_MAIN
7998 int F77_DUMMY_MAIN() { return 1; }
8008 rm -f conftest.$ac_objext conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_cv_lib_dnet_dnet_ntoa=yes
8022 echo "$as_me: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8024 ac_cv_lib_dnet_dnet_ntoa=no
8026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8027 LIBS=$ac_check_lib_save_LIBS
8029 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8030 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8031 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8032 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8035 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8036 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8037 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8038 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 ac_check_lib_save_LIBS=$LIBS
8042 LIBS="-ldnet_stub $LIBS"
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line $LINENO "configure"
8045 #include "confdefs.h"
8047 /* Override any gcc2 internal prototype to avoid an error. */
8051 /* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8054 #ifdef F77_DUMMY_MAIN
8058 int F77_DUMMY_MAIN() { return 1; }
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8070 (eval $ac_link) 2>&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -s conftest$ac_exeext'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; }; then
8080 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8082 echo "$as_me: failed program was:" >&5
8083 cat conftest.$ac_ext >&5
8084 ac_cv_lib_dnet_stub_dnet_ntoa=no
8086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8089 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8090 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8091 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8092 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8098 LIBS="$ac_xsave_LIBS"
8100 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8101 # to get the SysV transport functions.
8102 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8104 # The nsl library prevents programs from opening the X display
8105 # on Irix 5.2, according to T.E. Dickey.
8106 # The functions gethostbyname, getservbyname, and inet_addr are
8107 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8108 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8109 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8110 if test "${ac_cv_func_gethostbyname+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 cat >conftest.$ac_ext <<_ACEOF
8114 #line $LINENO "configure"
8115 #include "confdefs.h"
8116 /* System header to define __stub macros and hopefully few prototypes,
8117 which can conflict with char gethostbyname (); below. */
8119 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8125 char gethostbyname ();
8128 #ifdef F77_DUMMY_MAIN
8132 int F77_DUMMY_MAIN() { return 1; }
8137 /* The GNU C library defines this for functions which it implements
8138 to always fail with ENOSYS. Some functions are actually named
8139 something starting with __ and the normal name is an alias. */
8140 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8150 rm -f conftest.$ac_objext conftest$ac_exeext
8151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8152 (eval $ac_link) 2>&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } &&
8156 { ac_try='test -s conftest$ac_exeext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_cv_func_gethostbyname=yes
8164 echo "$as_me: failed program was:" >&5
8165 cat conftest.$ac_ext >&5
8166 ac_cv_func_gethostbyname=no
8168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8170 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8171 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8173 if test $ac_cv_func_gethostbyname = no; then
8174 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8175 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8176 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 ac_check_lib_save_LIBS=$LIBS
8181 cat >conftest.$ac_ext <<_ACEOF
8182 #line $LINENO "configure"
8183 #include "confdefs.h"
8185 /* Override any gcc2 internal prototype to avoid an error. */
8189 /* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8191 char gethostbyname ();
8192 #ifdef F77_DUMMY_MAIN
8196 int F77_DUMMY_MAIN() { return 1; }
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208 (eval $ac_link) 2>&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
8212 { ac_try='test -s conftest$ac_exeext'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; }; then
8218 ac_cv_lib_nsl_gethostbyname=yes
8220 echo "$as_me: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8222 ac_cv_lib_nsl_gethostbyname=no
8224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8225 LIBS=$ac_check_lib_save_LIBS
8227 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8228 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8229 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8233 if test $ac_cv_lib_nsl_gethostbyname = no; then
8234 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8235 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8236 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 ac_check_lib_save_LIBS=$LIBS
8241 cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8243 #include "confdefs.h"
8245 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8251 char gethostbyname ();
8252 #ifdef F77_DUMMY_MAIN
8256 int F77_DUMMY_MAIN() { return 1; }
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -s conftest$ac_exeext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_lib_bsd_gethostbyname=yes
8280 echo "$as_me: failed program was:" >&5
8281 cat conftest.$ac_ext >&5
8282 ac_cv_lib_bsd_gethostbyname=no
8284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8285 LIBS=$ac_check_lib_save_LIBS
8287 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8288 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8289 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8290 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8296 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8297 # socket/setsockopt and other routines are undefined under SCO ODT
8298 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8299 # on later versions), says Simon Leinen: it contains gethostby*
8300 # variants that don't use the nameserver (or something). -lsocket
8301 # must be given before -lnsl if both are needed. We assume that
8302 # if connect needs -lnsl, so does gethostbyname.
8303 echo "$as_me:$LINENO: checking for connect" >&5
8304 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8305 if test "${ac_cv_func_connect+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.$ac_ext <<_ACEOF
8309 #line $LINENO "configure"
8310 #include "confdefs.h"
8311 /* System header to define __stub macros and hopefully few prototypes,
8312 which can conflict with char connect (); below. */
8314 /* Override any gcc2 internal prototype to avoid an error. */
8318 /* We use char because int might match the return type of a gcc2
8319 builtin and then its argument prototype would still apply. */
8323 #ifdef F77_DUMMY_MAIN
8327 int F77_DUMMY_MAIN() { return 1; }
8332 /* The GNU C library defines this for functions which it implements
8333 to always fail with ENOSYS. Some functions are actually named
8334 something starting with __ and the normal name is an alias. */
8335 #if defined (__stub_connect) || defined (__stub___connect)
8345 rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8347 (eval $ac_link) 2>&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -s conftest$ac_exeext'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8357 ac_cv_func_connect=yes
8359 echo "$as_me: failed program was:" >&5
8360 cat conftest.$ac_ext >&5
8361 ac_cv_func_connect=no
8363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8365 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8366 echo "${ECHO_T}$ac_cv_func_connect" >&6
8368 if test $ac_cv_func_connect = no; then
8369 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8370 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8371 if test "${ac_cv_lib_socket_connect+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 #include "confdefs.h"
8380 /* Override any gcc2 internal prototype to avoid an error. */
8384 /* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8387 #ifdef F77_DUMMY_MAIN
8391 int F77_DUMMY_MAIN() { return 1; }
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403 (eval $ac_link) 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 ac_cv_lib_socket_connect=yes
8415 echo "$as_me: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8417 ac_cv_lib_socket_connect=no
8419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8420 LIBS=$ac_check_lib_save_LIBS
8422 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8423 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8424 if test $ac_cv_lib_socket_connect = yes; then
8425 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8430 # Guillermo Gomez says -lposix is necessary on A/UX.
8431 echo "$as_me:$LINENO: checking for remove" >&5
8432 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8433 if test "${ac_cv_func_remove+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 cat >conftest.$ac_ext <<_ACEOF
8437 #line $LINENO "configure"
8438 #include "confdefs.h"
8439 /* System header to define __stub macros and hopefully few prototypes,
8440 which can conflict with char remove (); below. */
8442 /* Override any gcc2 internal prototype to avoid an error. */
8446 /* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8451 #ifdef F77_DUMMY_MAIN
8455 int F77_DUMMY_MAIN() { return 1; }
8460 /* The GNU C library defines this for functions which it implements
8461 to always fail with ENOSYS. Some functions are actually named
8462 something starting with __ and the normal name is an alias. */
8463 #if defined (__stub_remove) || defined (__stub___remove)
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475 (eval $ac_link) 2>&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
8485 ac_cv_func_remove=yes
8487 echo "$as_me: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8489 ac_cv_func_remove=no
8491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8494 echo "${ECHO_T}$ac_cv_func_remove" >&6
8496 if test $ac_cv_func_remove = no; then
8497 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8498 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8499 if test "${ac_cv_lib_posix_remove+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 ac_check_lib_save_LIBS=$LIBS
8503 LIBS="-lposix $LIBS"
8504 cat >conftest.$ac_ext <<_ACEOF
8505 #line $LINENO "configure"
8506 #include "confdefs.h"
8508 /* Override any gcc2 internal prototype to avoid an error. */
8512 /* We use char because int might match the return type of a gcc2
8513 builtin and then its argument prototype would still apply. */
8515 #ifdef F77_DUMMY_MAIN
8519 int F77_DUMMY_MAIN() { return 1; }
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531 (eval $ac_link) 2>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_cv_lib_posix_remove=yes
8543 echo "$as_me: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8545 ac_cv_lib_posix_remove=no
8547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8548 LIBS=$ac_check_lib_save_LIBS
8550 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8551 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8552 if test $ac_cv_lib_posix_remove = yes; then
8553 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8558 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8559 echo "$as_me:$LINENO: checking for shmat" >&5
8560 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8561 if test "${ac_cv_func_shmat+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 cat >conftest.$ac_ext <<_ACEOF
8565 #line $LINENO "configure"
8566 #include "confdefs.h"
8567 /* System header to define __stub macros and hopefully few prototypes,
8568 which can conflict with char shmat (); below. */
8570 /* Override any gcc2 internal prototype to avoid an error. */
8574 /* We use char because int might match the return type of a gcc2
8575 builtin and then its argument prototype would still apply. */
8579 #ifdef F77_DUMMY_MAIN
8583 int F77_DUMMY_MAIN() { return 1; }
8588 /* The GNU C library defines this for functions which it implements
8589 to always fail with ENOSYS. Some functions are actually named
8590 something starting with __ and the normal name is an alias. */
8591 #if defined (__stub_shmat) || defined (__stub___shmat)
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_func_shmat=yes
8615 echo "$as_me: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8621 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8622 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8624 if test $ac_cv_func_shmat = no; then
8625 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8626 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8627 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 ac_check_lib_save_LIBS=$LIBS
8632 cat >conftest.$ac_ext <<_ACEOF
8633 #line $LINENO "configure"
8634 #include "confdefs.h"
8636 /* Override any gcc2 internal prototype to avoid an error. */
8640 /* We use char because int might match the return type of a gcc2
8641 builtin and then its argument prototype would still apply. */
8643 #ifdef F77_DUMMY_MAIN
8647 int F77_DUMMY_MAIN() { return 1; }
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_ipc_shmat=yes
8671 echo "$as_me: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 ac_cv_lib_ipc_shmat=no
8675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8679 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8680 if test $ac_cv_lib_ipc_shmat = yes; then
8681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8687 # Check for libraries that X11R6 Xt/Xaw programs need.
8688 ac_save_LDFLAGS=$LDFLAGS
8689 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8690 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8691 # check for ICE first), but we must link in the order -lSM -lICE or
8692 # we get undefined symbols. So assume we have SM if we have ICE.
8693 # These have to be linked with before -lX11, unlike the other
8694 # libraries we check for below, so use a different variable.
8695 # John Interrante, Karl Berry
8696 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8697 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8698 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 ac_check_lib_save_LIBS=$LIBS
8702 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8703 cat >conftest.$ac_ext <<_ACEOF
8704 #line $LINENO "configure"
8705 #include "confdefs.h"
8707 /* Override any gcc2 internal prototype to avoid an error. */
8711 /* We use char because int might match the return type of a gcc2
8712 builtin and then its argument prototype would still apply. */
8713 char IceConnectionNumber ();
8714 #ifdef F77_DUMMY_MAIN
8718 int F77_DUMMY_MAIN() { return 1; }
8723 IceConnectionNumber ();
8728 rm -f conftest.$ac_objext conftest$ac_exeext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730 (eval $ac_link) 2>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_lib_ICE_IceConnectionNumber=yes
8742 echo "$as_me: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8744 ac_cv_lib_ICE_IceConnectionNumber=no
8746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8747 LIBS=$ac_check_lib_save_LIBS
8749 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8750 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8751 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8752 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8755 LDFLAGS=$ac_save_LDFLAGS
8766 X_TOOLKIT_LIBS="-lXt"
8767 X_BASIC_LIBS="-lXext -lX11 -lXmu"
8769 our_saved_LDFLAGS="$LDFLAGS"
8770 LDFLAGS="$X_LIBS $LDFLAGS"
8771 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
8772 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
8773 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 ac_check_lib_save_LIBS=$LIBS
8777 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
8778 cat >conftest.$ac_ext <<_ACEOF
8779 #line $LINENO "configure"
8780 #include "confdefs.h"
8782 /* Override any gcc2 internal prototype to avoid an error. */
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8788 char XtToolkitThreadInitialize ();
8789 #ifdef F77_DUMMY_MAIN
8793 int F77_DUMMY_MAIN() { return 1; }
8798 XtToolkitThreadInitialize ();
8803 rm -f conftest.$ac_objext conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
8817 echo "$as_me: failed program was:" >&5
8818 cat conftest.$ac_ext >&5
8819 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
8821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8822 LIBS=$ac_check_lib_save_LIBS
8824 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
8825 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
8826 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
8828 cat >>confdefs.h <<\_ACEOF
8829 #define X_THREAD_SUPPORT 1
8834 LDFLAGS="$our_saved_LDFLAGS"
8838 if test "x$no_x" = "xyes"; then
8846 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
8849 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8851 echo "$as_me:$LINENO: checking for X" >&5
8852 echo $ECHO_N "checking for X... $ECHO_C" >&6
8853 if test "$no_x" != "yes" ; then
8855 cat >>confdefs.h <<\_ACEOF
8859 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
8860 ctlib_graphics="$ctlibs_base -lctgraphics"
8861 echo "$as_me:$LINENO: result: yes" >&5
8862 echo "${ECHO_T}yes" >&6
8863 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
8864 if test "$libgl" = "true" ; then
8865 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
8866 if test "$wxwin" = "true" ; then
8867 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.2"
8870 if test "$wxwin" = "true" ; then
8872 cat >>confdefs.h <<\_ACEOF
8887 echo "$as_me:$LINENO: result: no" >&5
8888 echo "${ECHO_T}no" >&6
8891 if test "$png" = "true" ; then
8892 ctlibs_tools="$ctlibs_tools -lpng"
8894 if test "$zlib" = "true" ; then
8895 ctlibs_tools="$ctlibs_tools -lz"
8897 if test "$fftw" = "true" ; then
8898 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
8900 if test "$ctn" = "true"; then
8901 ctlibs_tools="$ctlibs_tools -lctn"
8904 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
8905 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
8906 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 ac_check_lib_save_LIBS=$LIBS
8910 LIBS="-ldmallocxx $LIBS"
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line $LINENO "configure"
8913 #include "confdefs.h"
8916 #ifdef F77_DUMMY_MAIN
8920 int F77_DUMMY_MAIN() { return 1; }
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932 (eval $ac_link) 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_lib_dmallocxx_main=yes
8944 echo "$as_me: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8946 ac_cv_lib_dmallocxx_main=no
8948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8949 LIBS=$ac_check_lib_save_LIBS
8951 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
8952 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
8953 if test $ac_cv_lib_dmallocxx_main = yes; then
8959 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
8960 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
8961 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8962 if test "${enable_dmalloc+set}" = set; then
8963 enableval="$enable_dmalloc"
8964 case "${enableval}" in
8965 yes) usedmalloc=true
8966 echo "$as_me:$LINENO: result: yes" >&5
8967 echo "${ECHO_T}yes" >&6
8969 no) usedmalloc=false
8970 echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6
8973 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
8974 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
8978 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
8979 echo "${ECHO_T}no" >&6
8982 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
8983 ctlibs_tools="$ctlibs_tools -ldmallocxx"
8985 cat >>confdefs.h <<\_ACEOF
8986 #define HAVE_DMALLOC 1
8989 echo "$as_me:$LINENO: result: Using dmalloc" >&5
8990 echo "${ECHO_T}Using dmalloc" >&6
8993 echo "$as_me:$LINENO: checking for main in -lefence" >&5
8994 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
8995 if test "${ac_cv_lib_efence_main+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 ac_check_lib_save_LIBS=$LIBS
8999 LIBS="-lefence $LIBS"
9000 cat >conftest.$ac_ext <<_ACEOF
9001 #line $LINENO "configure"
9002 #include "confdefs.h"
9005 #ifdef F77_DUMMY_MAIN
9009 int F77_DUMMY_MAIN() { return 1; }
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9021 (eval $ac_link) 2>&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -s conftest$ac_exeext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 ac_cv_lib_efence_main=yes
9033 echo "$as_me: failed program was:" >&5
9034 cat conftest.$ac_ext >&5
9035 ac_cv_lib_efence_main=no
9037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9038 LIBS=$ac_check_lib_save_LIBS
9040 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9041 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9042 if test $ac_cv_lib_efence_main = yes; then
9048 echo "$as_me:$LINENO: checking for enable-efence" >&5
9049 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9050 # Check whether --enable-efence or --disable-efence was given.
9051 if test "${enable_efence+set}" = set; then
9052 enableval="$enable_efence"
9053 case "${enableval}" in
9055 echo "$as_me:$LINENO: result: yes" >&5
9056 echo "${ECHO_T}yes" >&6
9059 echo "$as_me:$LINENO: result: no" >&5
9060 echo "${ECHO_T}no" >&6
9062 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9063 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9067 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9068 echo "${ECHO_T}no" >&6
9071 if test "$efence" = "true" -a "$useefence" = "true" ; then
9072 ctlibs_tools="$ctlibs_tools -lefence"
9074 cat >>confdefs.h <<\_ACEOF
9075 #define HAVE_EFENCE 1
9078 echo "$as_me:$LINENO: result: Using efence" >&5
9079 echo "${ECHO_T}Using efence" >&6
9082 if test "$wxwin" = "true" ; then
9083 if test "$wx_gtk" = "true" ; then
9084 wxcflags=`$wxconfig --cflags`
9085 wxlibs=`$wxconfig --libs`
9087 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9088 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9090 CFLAGS="$CFLAGS -I../include $wxcflags"
9091 ctlib_graphics="$ctlib_graphics $wxlibs"
9095 HAVE_WXWINDOWS_TRUE=
9096 HAVE_WXWINDOWS_FALSE='#'
9098 HAVE_WXWINDOWS_TRUE='#'
9099 HAVE_WXWINDOWS_FALSE=
9105 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9106 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9109 if test -n "$lamdir" ; then
9110 lamprograms="ctsimtext-lam"
9118 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile 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"
9120 cat >confcache <<\_ACEOF
9121 # This file is a shell script that caches the results of configure
9122 # tests run on this system so they can be shared between configure
9123 # scripts and configure runs, see configure's option --config-cache.
9124 # It is not useful on other systems. If it contains results you don't
9125 # want to keep, you may remove or edit it.
9127 # config.status only pays attention to the cache file if you give it
9128 # the --recheck option to rerun configure.
9130 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9131 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9136 # The following way of writing the cache mishandles newlines in values,
9137 # but we know of no workaround that is simple, portable, and efficient.
9138 # So, don't put newlines in cache variables' values.
9139 # Ultrix sh set writes to stderr and can't be redirected directly,
9140 # and sets the high bit in the cache file unless we assign to the vars.
9143 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9145 # `set' does not quote correctly, so add quotes (double-quote
9146 # substitution turns \\\\ into \\, and sed turns \\ into \).
9149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9152 # `set' quotes correctly as required by POSIX, so do not add quotes.
9154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9163 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9165 if cmp -s $cache_file confcache; then :; else
9166 if test -w $cache_file; then
9167 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9168 cat confcache >$cache_file
9170 echo "not updating unwritable cache $cache_file"
9175 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9176 # Let make expand exec_prefix.
9177 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9179 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9180 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9181 # trailing colons and then remove the whole line if VPATH becomes empty
9182 # (actually we leave an empty line to preserve line numbers).
9183 if test "x$srcdir" = x.; then
9184 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9185 s/:*\$(srcdir):*/:/;
9186 s/:*\${srcdir}:*/:/;
9188 s/^\([^=]*=[ ]*\):*/\1/;
9194 DEFS=-DHAVE_CONFIG_H
9197 : ${CONFIG_STATUS=./config.status}
9198 ac_clean_files_save=$ac_clean_files
9199 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9200 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9201 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9202 cat >$CONFIG_STATUS <<_ACEOF
9204 # Generated by $as_me.
9205 # Run this file to recreate the current configuration.
9206 # Compiler output produced by configure, useful for debugging
9207 # configure, is in config.log if it exists.
9210 SHELL=\${CONFIG_SHELL-$SHELL}
9213 cat >>$CONFIG_STATUS <<\_ACEOF
9215 ## --------------------- ##
9216 ## M4sh Initialization. ##
9217 ## --------------------- ##
9219 # Be Bourne compatible
9220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9223 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9228 # Support unset when possible.
9229 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9235 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9236 { $as_unset LANG || test "${LANG+set}" != set; } ||
9237 { LANG=C; export LANG; }
9238 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9239 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9240 { LC_ALL=C; export LC_ALL; }
9241 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9242 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9243 { LC_TIME=C; export LC_TIME; }
9244 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9245 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9246 { LC_CTYPE=C; export LC_CTYPE; }
9247 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9248 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9249 { LANGUAGE=C; export LANGUAGE; }
9250 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9251 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9252 { LC_COLLATE=C; export LC_COLLATE; }
9253 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9254 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9255 { LC_NUMERIC=C; export LC_NUMERIC; }
9256 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9257 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9258 { LC_MESSAGES=C; export LC_MESSAGES; }
9261 # Name of the executable.
9262 as_me=`(basename "$0") 2>/dev/null ||
9263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9264 X"$0" : 'X\(//\)$' \| \
9265 X"$0" : 'X\(/\)$' \| \
9266 . : '\(.\)' 2>/dev/null ||
9268 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9269 /^X\/\(\/\/\)$/{ s//\1/; q; }
9270 /^X\/\(\/\).*/{ s//\1/; q; }
9273 # PATH needs CR, and LINENO needs CR and PATH.
9274 # Avoid depending upon Character Ranges.
9275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9278 as_cr_digits='0123456789'
9279 as_cr_alnum=$as_cr_Letters$as_cr_digits
9281 # The user is always right.
9282 if test "${PATH_SEPARATOR+set}" != set; then
9283 echo "#! /bin/sh" >conftest.sh
9284 echo "exit 0" >>conftest.sh
9285 chmod +x conftest.sh
9286 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9298 test "x$as_lineno_1" != "x$as_lineno_2" &&
9299 test "x$as_lineno_3" = "x$as_lineno_2" || {
9300 # Find who we are. Look in the path if we contain no path at all
9303 *[\\/]* ) as_myself=$0 ;;
9304 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308 test -z "$as_dir" && as_dir=.
9309 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9314 # We did not find ourselves, most probably we were run as `sh COMMAND'
9315 # in which case we are not to be found in the path.
9316 if test "x$as_myself" = x; then
9319 if test ! -f "$as_myself"; then
9320 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9321 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9322 { (exit 1); exit 1; }; }
9324 case $CONFIG_SHELL in
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9330 test -z "$as_dir" && as_dir=.
9331 for as_base in sh bash ksh sh5; do
9334 if ("$as_dir/$as_base" -c '
9337 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9338 test "x$as_lineno_1" != "x$as_lineno_2" &&
9339 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9340 CONFIG_SHELL=$as_dir/$as_base
9342 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9350 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9351 # uniformly replaced by the line number. The first 'sed' inserts a
9352 # line-number line before each line; the second 'sed' does the real
9353 # work. The second script uses 'N' to pair each line-number line
9354 # with the numbered line, and appends trailing '-' during
9355 # substitution so that $LINENO is not a special case at line end.
9356 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9357 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9358 sed '=' <$as_myself |
9363 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9366 s,^['$as_cr_digits']*\n,,
9368 chmod +x $as_me.lineno ||
9369 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9370 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9371 { (exit 1); exit 1; }; }
9373 # Don't try to exec as it changes $[0], causing all sort of problems
9374 # (the dirname of $[0] is not the place where we might find the
9375 # original and so on. Autoconf is especially sensible to this).
9377 # Exit status is that of the last command.
9382 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9383 *c*,-n*) ECHO_N= ECHO_C='
9385 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9386 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9389 if expr a : '\(a\)' >/dev/null 2>&1; then
9395 rm -f conf$$ conf$$.exe conf$$.file
9397 if ln -s conf$$.file conf$$ 2>/dev/null; then
9398 # We could just check for DJGPP; but this test a) works b) is more generic
9399 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9400 if test -f conf$$.exe; then
9401 # Don't use ln at all; we don't have any links
9406 elif ln conf$$.file conf$$ 2>/dev/null; then
9411 rm -f conf$$ conf$$.exe conf$$.file
9413 as_executable_p="test -f"
9415 # Sed expression to map a string onto a valid CPP name.
9416 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9418 # Sed expression to map a string onto a valid variable name.
9419 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9423 # We need space, tab and new line, in precisely that order.
9429 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9433 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9434 # report actual input values of CONFIG_FILES etc. instead of their
9435 # values after options handling. Logging --version etc. is OK.
9439 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9440 ## Running $as_me. ##
9445 This file was extended by $as_me, which was
9446 generated by GNU Autoconf 2.53. Invocation command line was
9448 CONFIG_FILES = $CONFIG_FILES
9449 CONFIG_HEADERS = $CONFIG_HEADERS
9450 CONFIG_LINKS = $CONFIG_LINKS
9451 CONFIG_COMMANDS = $CONFIG_COMMANDS
9455 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9459 # Files that config.status was made for.
9460 if test -n "$ac_config_files"; then
9461 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9464 if test -n "$ac_config_headers"; then
9465 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9468 if test -n "$ac_config_links"; then
9469 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9472 if test -n "$ac_config_commands"; then
9473 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9476 cat >>$CONFIG_STATUS <<\_ACEOF
9479 \`$as_me' instantiates files from templates according to the
9480 current configuration.
9482 Usage: $0 [OPTIONS] [FILE]...
9484 -h, --help print this help, then exit
9485 -V, --version print version number, then exit
9486 -d, --debug don't remove temporary files
9487 --recheck update $as_me by reconfiguring in the same conditions
9488 --file=FILE[:TEMPLATE]
9489 instantiate the configuration file FILE
9490 --header=FILE[:TEMPLATE]
9491 instantiate the configuration header FILE
9493 Configuration files:
9496 Configuration headers:
9499 Configuration commands:
9502 Report bugs to <bug-autoconf@gnu.org>."
9505 cat >>$CONFIG_STATUS <<_ACEOF
9508 configured by $0, generated by GNU Autoconf 2.53,
9509 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9511 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9512 Free Software Foundation, Inc.
9513 This config.status script is free software; the Free Software Foundation
9514 gives unlimited permission to copy, distribute and modify it."
9519 cat >>$CONFIG_STATUS <<\_ACEOF
9520 # If no file are specified by the user, then we need to provide default
9521 # value. By we need to know if files were specified by the user.
9527 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9528 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9530 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9534 *) # This is not an option, so the user has probably given explicit
9536 ac_need_defaults=false;;
9540 # Handling of the options.
9542 cat >>$CONFIG_STATUS <<_ACEOF
9543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9544 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9545 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9547 cat >>$CONFIG_STATUS <<\_ACEOF
9548 --version | --vers* | -V )
9549 echo "$ac_cs_version"; exit 0 ;;
9551 # Conflict between --help and --header
9552 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9553 Try \`$0 --help' for more information." >&5
9554 echo "$as_me: error: ambiguous option: $1
9555 Try \`$0 --help' for more information." >&2;}
9556 { (exit 1); exit 1; }; };;
9557 --help | --hel | -h )
9558 echo "$ac_cs_usage"; exit 0 ;;
9559 --debug | --d* | -d )
9561 --file | --fil | --fi | --f )
9563 CONFIG_FILES="$CONFIG_FILES $1"
9564 ac_need_defaults=false;;
9565 --header | --heade | --head | --hea )
9567 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9568 ac_need_defaults=false;;
9571 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9572 Try \`$0 --help' for more information." >&5
9573 echo "$as_me: error: unrecognized option: $1
9574 Try \`$0 --help' for more information." >&2;}
9575 { (exit 1); exit 1; }; } ;;
9577 *) ac_config_targets="$ac_config_targets $1" ;;
9585 cat >>$CONFIG_STATUS <<_ACEOF
9587 # INIT-COMMANDS section.
9596 cat >>$CONFIG_STATUS <<\_ACEOF
9597 for ac_config_target in $ac_config_targets
9599 case "$ac_config_target" in
9600 # Handling of arguments.
9601 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9602 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9603 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9604 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9605 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9606 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9607 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9608 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9609 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9610 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9611 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9612 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9613 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9614 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9615 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9616 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9617 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9618 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9619 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9620 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9621 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9622 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9623 { (exit 1); exit 1; }; };;
9627 # If the user did not use the arguments to specify the items to instantiate,
9628 # then the envvar interface is used. Set only those that are not.
9629 # We use the long form for the default assignment because of an extremely
9630 # bizarre bug on SunOS 4.1.3.
9631 if $ac_need_defaults; then
9632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9634 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9637 # Create a temporary directory, and hook for its removal unless debugging.
9640 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9641 trap '{ (exit 1); exit 1; }' 1 2 13 15
9644 # Create a (secure) tmp directory for tmp files.
9647 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9648 test -n "$tmp" && test -d "$tmp"
9651 tmp=$TMPDIR/cs$$-$RANDOM
9652 (umask 077 && mkdir $tmp)
9655 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9656 { (exit 1); exit 1; }
9661 cat >>$CONFIG_STATUS <<_ACEOF
9664 # CONFIG_FILES section.
9667 # No need to generate the scripts if there are no CONFIG_FILES.
9668 # This happens for instance when ./config.status config.h
9669 if test -n "\$CONFIG_FILES"; then
9670 # Protect against being on the right side of a sed subst in config.status.
9671 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9672 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9673 s,@SHELL@,$SHELL,;t t
9674 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9675 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9676 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9677 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9678 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9679 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9680 s,@exec_prefix@,$exec_prefix,;t t
9681 s,@prefix@,$prefix,;t t
9682 s,@program_transform_name@,$program_transform_name,;t t
9683 s,@bindir@,$bindir,;t t
9684 s,@sbindir@,$sbindir,;t t
9685 s,@libexecdir@,$libexecdir,;t t
9686 s,@datadir@,$datadir,;t t
9687 s,@sysconfdir@,$sysconfdir,;t t
9688 s,@sharedstatedir@,$sharedstatedir,;t t
9689 s,@localstatedir@,$localstatedir,;t t
9690 s,@libdir@,$libdir,;t t
9691 s,@includedir@,$includedir,;t t
9692 s,@oldincludedir@,$oldincludedir,;t t
9693 s,@infodir@,$infodir,;t t
9694 s,@mandir@,$mandir,;t t
9695 s,@build_alias@,$build_alias,;t t
9696 s,@host_alias@,$host_alias,;t t
9697 s,@target_alias@,$target_alias,;t t
9699 s,@ECHO_C@,$ECHO_C,;t t
9700 s,@ECHO_N@,$ECHO_N,;t t
9701 s,@ECHO_T@,$ECHO_T,;t t
9703 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9704 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9705 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9706 s,@PACKAGE@,$PACKAGE,;t t
9707 s,@VERSION@,$VERSION,;t t
9708 s,@ACLOCAL@,$ACLOCAL,;t t
9709 s,@AUTOCONF@,$AUTOCONF,;t t
9710 s,@AUTOMAKE@,$AUTOMAKE,;t t
9711 s,@AUTOHEADER@,$AUTOHEADER,;t t
9712 s,@MAKEINFO@,$MAKEINFO,;t t
9713 s,@SET_MAKE@,$SET_MAKE,;t t
9715 s,@RANLIB@,$RANLIB,;t t
9716 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9718 s,@CFLAGS@,$CFLAGS,;t t
9719 s,@LDFLAGS@,$LDFLAGS,;t t
9720 s,@CPPFLAGS@,$CPPFLAGS,;t t
9721 s,@ac_ct_CC@,$ac_ct_CC,;t t
9722 s,@EXEEXT@,$EXEEXT,;t t
9723 s,@OBJEXT@,$OBJEXT,;t t
9725 s,@CXXFLAGS@,$CXXFLAGS,;t t
9726 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9727 s,@wxconfig@,$wxconfig,;t t
9728 s,@build@,$build,;t t
9729 s,@build_cpu@,$build_cpu,;t t
9730 s,@build_vendor@,$build_vendor,;t t
9731 s,@build_os@,$build_os,;t t
9733 s,@host_cpu@,$host_cpu,;t t
9734 s,@host_vendor@,$host_vendor,;t t
9735 s,@host_os@,$host_os,;t t
9737 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
9738 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
9739 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
9740 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
9741 s,@lamdir@,$lamdir,;t t
9742 s,@mpienable@,$mpienable,;t t
9743 s,@cgibindir@,$cgibindir,;t t
9744 s,@cgibinurl@,$cgibinurl,;t t
9745 s,@webdatadir@,$webdatadir,;t t
9746 s,@webdataurl@,$webdataurl,;t t
9747 s,@htmldir@,$htmldir,;t t
9748 s,@cgiprograms@,$cgiprograms,;t t
9749 s,@htmldata@,$htmldata,;t t
9750 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
9751 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
9752 s,@webenabled@,$webenabled,;t t
9753 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
9754 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
9755 s,@X_CFLAGS@,$X_CFLAGS,;t t
9756 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9757 s,@X_LIBS@,$X_LIBS,;t t
9758 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9759 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
9760 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
9761 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
9762 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
9763 s,@my_includes@,$my_includes,;t t
9764 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
9765 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
9766 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
9767 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
9768 s,@wxcflags@,$wxcflags,;t t
9769 s,@wxlibs@,$wxlibs,;t t
9770 s,@ctlibs@,$ctlibs,;t t
9771 s,@lamprograms@,$lamprograms,;t t
9772 s,@lamdefs@,$lamdefs,;t t
9777 cat >>$CONFIG_STATUS <<\_ACEOF
9778 # Split the substitutions into bite-sized pieces for seds with
9779 # small command number limits, like on Digital OSF/1 and HP-UX.
9781 ac_sed_frag=1 # Number of current file.
9782 ac_beg=1 # First line for current file.
9783 ac_end=$ac_max_sed_lines # Line after last line for current file.
9786 while $ac_more_lines; do
9787 if test $ac_beg -gt 1; then
9788 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9790 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9792 if test ! -s $tmp/subs.frag; then
9795 # The purpose of the label and of the branching condition is to
9796 # speed up the sed processing (if there are no `@' at all, there
9797 # is no need to browse any of the substitutions).
9798 # These are the two extra sed commands mentioned above.
9800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9801 if test -z "$ac_sed_cmds"; then
9802 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9804 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9806 ac_sed_frag=`expr $ac_sed_frag + 1`
9808 ac_end=`expr $ac_end + $ac_max_sed_lines`
9811 if test -z "$ac_sed_cmds"; then
9814 fi # test -n "$CONFIG_FILES"
9817 cat >>$CONFIG_STATUS <<\_ACEOF
9818 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9821 - | *:- | *:-:* ) # input from stdin
9823 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9824 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9825 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9827 * ) ac_file_in=$ac_file.in ;;
9830 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9831 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9833 X"$ac_file" : 'X\(//\)[^/]' \| \
9834 X"$ac_file" : 'X\(//\)$' \| \
9835 X"$ac_file" : 'X\(/\)' \| \
9836 . : '\(.\)' 2>/dev/null ||
9838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9840 /^X\(\/\/\)$/{ s//\1/; q; }
9841 /^X\(\/\).*/{ s//\1/; q; }
9844 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9848 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9849 case $as_mkdir_dir in
9850 # Skip DOS drivespec
9851 ?:) as_incr_dir=$as_mkdir_dir ;;
9853 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9854 test -d "$as_incr_dir" ||
9855 mkdir "$as_incr_dir" ||
9856 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9857 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9858 { (exit 1); exit 1; }; }
9865 if test "$ac_dir" != .; then
9866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9867 # A "../" for each directory in $ac_dir_suffix.
9868 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9870 ac_dir_suffix= ac_top_builddir=
9874 .) # No --srcdir option. We are building in place.
9876 if test -z "$ac_top_builddir"; then
9879 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9881 [\\/]* | ?:[\\/]* ) # Absolute path.
9882 ac_srcdir=$srcdir$ac_dir_suffix;
9883 ac_top_srcdir=$srcdir ;;
9885 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9886 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9888 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9890 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9891 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9892 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9893 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9898 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9901 if test x"$ac_file" != x-; then
9902 { echo "$as_me:$LINENO: creating $ac_file" >&5
9903 echo "$as_me: creating $ac_file" >&6;}
9906 # Let's still pretend it is `configure' which instantiates (i.e., don't
9907 # use $as_me), people would be surprised to read:
9908 # /* config.h. Generated by config.status. */
9909 if test x"$ac_file" = x-; then
9912 configure_input="$ac_file. "
9914 configure_input=$configure_input"Generated from `echo $ac_file_in |
9915 sed 's,.*/,,'` by configure."
9917 # First look for the input files in the build tree, otherwise in the
9919 ac_file_inputs=`IFS=:
9920 for f in $ac_file_in; do
9922 -) echo $tmp/stdin ;;
9924 # Absolute (can't be DOS-style, as IFS=:)
9925 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9926 echo "$as_me: error: cannot find input file: $f" >&2;}
9927 { (exit 1); exit 1; }; }
9930 if test -f "$f"; then
9933 elif test -f "$srcdir/$f"; then
9938 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9939 echo "$as_me: error: cannot find input file: $f" >&2;}
9940 { (exit 1); exit 1; }; }
9943 done` || { (exit 1); exit 1; }
9945 cat >>$CONFIG_STATUS <<_ACEOF
9949 cat >>$CONFIG_STATUS <<\_ACEOF
9951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9952 s,@configure_input@,$configure_input,;t t
9953 s,@srcdir@,$ac_srcdir,;t t
9954 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9955 s,@top_srcdir@,$ac_top_srcdir,;t t
9956 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9957 s,@builddir@,$ac_builddir,;t t
9958 s,@abs_builddir@,$ac_abs_builddir,;t t
9959 s,@top_builddir@,$ac_top_builddir,;t t
9960 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9961 s,@INSTALL@,$ac_INSTALL,;t t
9962 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9964 if test x"$ac_file" != x-; then
9965 mv $tmp/out $ac_file
9973 cat >>$CONFIG_STATUS <<\_ACEOF
9976 # CONFIG_HEADER section.
9979 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9980 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9982 # ac_d sets the value in "#define NAME VALUE" lines.
9983 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9984 ac_dB='[ ].*$,\1#\2'
9987 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9988 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9989 ac_uB='$,\1#\2define\3'
9993 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9996 - | *:- | *:-:* ) # input from stdin
9998 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9999 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10000 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10002 * ) ac_file_in=$ac_file.in ;;
10005 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10006 echo "$as_me: creating $ac_file" >&6;}
10008 # First look for the input files in the build tree, otherwise in the
10010 ac_file_inputs=`IFS=:
10011 for f in $ac_file_in; do
10013 -) echo $tmp/stdin ;;
10015 # Absolute (can't be DOS-style, as IFS=:)
10016 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10017 echo "$as_me: error: cannot find input file: $f" >&2;}
10018 { (exit 1); exit 1; }; }
10021 if test -f "$f"; then
10024 elif test -f "$srcdir/$f"; then
10029 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10030 echo "$as_me: error: cannot find input file: $f" >&2;}
10031 { (exit 1); exit 1; }; }
10034 done` || { (exit 1); exit 1; }
10035 # Remove the trailing spaces.
10036 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10040 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10041 # `conftest.undefs', that substitutes the proper values into
10042 # config.h.in to produce config.h. The first handles `#define'
10043 # templates, and the second `#undef' templates.
10044 # And first: Protect against being on the right side of a sed subst in
10045 # config.status. Protect against being in an unquoted here document
10046 # in config.status.
10047 rm -f conftest.defines conftest.undefs
10048 # Using a here document instead of a string reduces the quoting nightmare.
10049 # Putting comments in sed scripts is not portable.
10051 # `end' is used to avoid that the second main sed command (meant for
10052 # 0-ary CPP macros) applies to n-ary macro definitions.
10053 # See the Autoconf documentation for `clear'.
10054 cat >confdef2sed.sed <<\_ACEOF
10059 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10061 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10064 # If some macros were called several times there might be several times
10065 # the same #defines, which is useless. Nevertheless, we may not want to
10066 # sort them, since we want the *last* AC-DEFINE to be honored.
10067 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10068 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10069 rm -f confdef2sed.sed
10071 # This sed command replaces #undef with comments. This is necessary, for
10072 # example, in the case of _POSIX_SOURCE, which is predefined and required
10073 # on some systems where configure will not decide to define it.
10074 cat >>conftest.undefs <<\_ACEOF
10075 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10078 # Break up conftest.defines because some shells have a limit on the size
10079 # of here documents, and old seds have small limits too (100 cmds).
10080 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10081 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10082 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10083 echo ' :' >>$CONFIG_STATUS
10084 rm -f conftest.tail
10085 while grep . conftest.defines >/dev/null
10087 # Write a limited-size here document to $tmp/defines.sed.
10088 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10089 # Speed up: don't consider the non `#define' lines.
10090 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10091 # Work around the forget-to-reset-the-flag bug.
10092 echo 't clr' >>$CONFIG_STATUS
10093 echo ': clr' >>$CONFIG_STATUS
10094 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10096 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10098 mv $tmp/out $tmp/in
10100 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10101 rm -f conftest.defines
10102 mv conftest.tail conftest.defines
10104 rm -f conftest.defines
10105 echo ' fi # egrep' >>$CONFIG_STATUS
10106 echo >>$CONFIG_STATUS
10108 # Break up conftest.undefs because some shells have a limit on the size
10109 # of here documents, and old seds have small limits too (100 cmds).
10110 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10111 rm -f conftest.tail
10112 while grep . conftest.undefs >/dev/null
10114 # Write a limited-size here document to $tmp/undefs.sed.
10115 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10116 # Speed up: don't consider the non `#undef'
10117 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10118 # Work around the forget-to-reset-the-flag bug.
10119 echo 't clr' >>$CONFIG_STATUS
10120 echo ': clr' >>$CONFIG_STATUS
10121 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10123 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10125 mv $tmp/out $tmp/in
10127 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10128 rm -f conftest.undefs
10129 mv conftest.tail conftest.undefs
10131 rm -f conftest.undefs
10133 cat >>$CONFIG_STATUS <<\_ACEOF
10134 # Let's still pretend it is `configure' which instantiates (i.e., don't
10135 # use $as_me), people would be surprised to read:
10136 # /* config.h. Generated by config.status. */
10137 if test x"$ac_file" = x-; then
10138 echo "/* Generated by configure. */" >$tmp/config.h
10140 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10142 cat $tmp/in >>$tmp/config.h
10144 if test x"$ac_file" != x-; then
10145 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10146 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10147 echo "$as_me: $ac_file is unchanged" >&6;}
10149 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10151 X"$ac_file" : 'X\(//\)[^/]' \| \
10152 X"$ac_file" : 'X\(//\)$' \| \
10153 X"$ac_file" : 'X\(/\)' \| \
10154 . : '\(.\)' 2>/dev/null ||
10156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10158 /^X\(\/\/\)$/{ s//\1/; q; }
10159 /^X\(\/\).*/{ s//\1/; q; }
10161 { case "$ac_dir" in
10162 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10166 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10167 case $as_mkdir_dir in
10168 # Skip DOS drivespec
10169 ?:) as_incr_dir=$as_mkdir_dir ;;
10171 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10172 test -d "$as_incr_dir" ||
10173 mkdir "$as_incr_dir" ||
10174 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10175 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10176 { (exit 1); exit 1; }; }
10182 mv $tmp/config.h $ac_file
10186 rm -f $tmp/config.h
10190 cat >>$CONFIG_STATUS <<\_ACEOF
10193 # CONFIG_COMMANDS section.
10195 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10196 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10197 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10198 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10199 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10200 X"$ac_dest" : 'X\(//\)[^/]' \| \
10201 X"$ac_dest" : 'X\(//\)$' \| \
10202 X"$ac_dest" : 'X\(/\)' \| \
10203 . : '\(.\)' 2>/dev/null ||
10205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10207 /^X\(\/\/\)$/{ s//\1/; q; }
10208 /^X\(\/\).*/{ s//\1/; q; }
10212 if test "$ac_dir" != .; then
10213 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10214 # A "../" for each directory in $ac_dir_suffix.
10215 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10217 ac_dir_suffix= ac_top_builddir=
10221 .) # No --srcdir option. We are building in place.
10223 if test -z "$ac_top_builddir"; then
10226 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10228 [\\/]* | ?:[\\/]* ) # Absolute path.
10229 ac_srcdir=$srcdir$ac_dir_suffix;
10230 ac_top_srcdir=$srcdir ;;
10231 *) # Relative path.
10232 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10233 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10235 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10237 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10238 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10239 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10240 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10243 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10244 echo "$as_me: executing $ac_dest commands" >&6;}
10246 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10251 cat >>$CONFIG_STATUS <<\_ACEOF
10253 { (exit 0); exit 0; }
10255 chmod +x $CONFIG_STATUS
10256 ac_clean_files=$ac_clean_files_save
10259 # configure is writing to config.log, and then calls config.status.
10260 # config.status does its own redirection, appending to config.log.
10261 # Unfortunately, on DOS this fails, as config.log is still kept open
10262 # by configure, so config.status won't be able to write to it; its
10263 # output is simply discarded. So we exec the FD to /dev/null,
10264 # effectively closing config.log, so it can be properly (re)opened and
10265 # appended to by config.status. When coming back to configure, we
10266 # need to make the FD available again.
10267 if test "$no_create" != yes; then
10270 $SHELL $CONFIG_STATUS || ac_cs_success=false
10272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10273 # would make configure fail if this is the last instruction.
10274 $ac_cs_success || { (exit 1); exit 1; }