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
1226 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1227 if test -f $ac_dir/install-sh; then
1229 ac_install_sh="$ac_aux_dir/install-sh -c"
1231 elif test -f $ac_dir/install.sh; then
1233 ac_install_sh="$ac_aux_dir/install.sh -c"
1235 elif test -f $ac_dir/shtool; then
1237 ac_install_sh="$ac_aux_dir/shtool install -c"
1241 if test -z "$ac_aux_dir"; then
1242 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1243 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1244 { (exit 1); exit 1; }; }
1246 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1247 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1248 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1250 # Find a good install program. We prefer a C program (faster),
1251 # so one script is as good as another. But avoid the broken or
1252 # incompatible versions:
1253 # SysV /etc/install, /usr/sbin/install
1254 # SunOS /usr/etc/install
1255 # IRIX /sbin/install
1257 # AmigaOS /C/install, which installs bootblocks on floppy discs
1258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1261 # ./install, which can be erroneously created by make from ./install.sh.
1262 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1263 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1264 if test -z "$INSTALL"; then
1265 if test "${ac_cv_path_install+set}" = set; then
1266 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1272 test -z "$as_dir" && as_dir=.
1273 # Account for people who put trailing slashes in PATH elements.
1275 ./ | .// | /cC/* | \
1276 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1279 # OSF1 and SCO ODT 3.0 have their own names for install.
1280 # Don't use installbsd from OSF since it installs stuff as root
1282 for ac_prog in ginstall scoinst install; do
1283 for ac_exec_ext in '' $ac_executable_extensions; do
1284 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1285 if test $ac_prog = install &&
1286 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1287 # AIX install. It has an incompatible calling convention.
1289 elif test $ac_prog = install &&
1290 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1291 # program-specific install script used by HP pwplus--don't use.
1294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1306 if test "${ac_cv_path_install+set}" = set; then
1307 INSTALL=$ac_cv_path_install
1309 # As a last resort, use the slow shell script. We don't cache a
1310 # path for INSTALL within a source directory, because that will
1311 # break other packages using the cache if that directory is
1312 # removed, or if the path is relative.
1313 INSTALL=$ac_install_sh
1316 echo "$as_me:$LINENO: result: $INSTALL" >&5
1317 echo "${ECHO_T}$INSTALL" >&6
1319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1320 # It thinks the first close brace ends the variable substitution.
1321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1327 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1328 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1331 echo timestamp > conftestfile
1332 # Do `set' in a subshell so we don't clobber the current shell's
1333 # arguments. Must try -L first in case configure is actually a
1334 # symlink; some systems play weird games with the mod time of symlinks
1335 # (eg FreeBSD returns the mod time of the symlink's containing
1338 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1339 if test "$*" = "X"; then
1341 set X `ls -t $srcdir/configure conftestfile`
1343 if test "$*" != "X $srcdir/configure conftestfile" \
1344 && test "$*" != "X conftestfile $srcdir/configure"; then
1346 # If neither matched, then we have a broken ls. This can happen
1347 # if, for instance, CONFIG_SHELL is bash and it inherits a
1348 # broken ls alias from the environment. This has actually
1349 # happened. Such a system could not be considered "sane".
1350 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1351 alias in your environment" >&5
1352 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1353 alias in your environment" >&2;}
1354 { (exit 1); exit 1; }; }
1357 test "$2" = conftestfile
1363 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1364 Check your system clock" >&5
1365 echo "$as_me: error: newly created file is older than distributed files!
1366 Check your system clock" >&2;}
1367 { (exit 1); exit 1; }; }
1370 echo "$as_me:$LINENO: result: yes" >&5
1371 echo "${ECHO_T}yes" >&6
1372 test "$program_prefix" != NONE &&
1373 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1374 # Use a double $ so make ignores it.
1375 test "$program_suffix" != NONE &&
1376 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1377 # Double any \ or $. echo might interpret backslashes.
1378 # By default was `s,x,x', remove it if useless.
1379 cat <<\_ACEOF >conftest.sed
1380 s/[\\$]/&&/g;s/;s,x,x,$//
1382 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1385 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1386 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1387 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1388 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 cat >conftest.make <<\_ACEOF
1393 @echo 'ac_maketemp="${MAKE}"'
1395 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1396 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1397 if test -n "$ac_maketemp"; then
1398 eval ac_cv_prog_make_${ac_make}_set=yes
1400 eval ac_cv_prog_make_${ac_make}_set=no
1404 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1405 echo "$as_me:$LINENO: result: yes" >&5
1406 echo "${ECHO_T}yes" >&6
1409 echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 SET_MAKE="MAKE=${MAKE-make}"
1419 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1420 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1421 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1422 { (exit 1); exit 1; }; }
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE "$PACKAGE"
1430 cat >>confdefs.h <<_ACEOF
1431 #define VERSION "$VERSION"
1436 missing_dir=`cd $ac_aux_dir && pwd`
1437 echo "$as_me:$LINENO: checking for working aclocal" >&5
1438 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1439 # Run test in a subshell; some versions of sh will print an error if
1440 # an executable is not found, even if stderr is redirected.
1441 # Redirect stdin to placate older versions of autoconf. Sigh.
1442 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1444 echo "$as_me:$LINENO: result: found" >&5
1445 echo "${ECHO_T}found" >&6
1447 ACLOCAL="$missing_dir/missing aclocal"
1448 echo "$as_me:$LINENO: result: missing" >&5
1449 echo "${ECHO_T}missing" >&6
1452 echo "$as_me:$LINENO: checking for working autoconf" >&5
1453 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1454 # Run test in a subshell; some versions of sh will print an error if
1455 # an executable is not found, even if stderr is redirected.
1456 # Redirect stdin to placate older versions of autoconf. Sigh.
1457 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1459 echo "$as_me:$LINENO: result: found" >&5
1460 echo "${ECHO_T}found" >&6
1462 AUTOCONF="$missing_dir/missing autoconf"
1463 echo "$as_me:$LINENO: result: missing" >&5
1464 echo "${ECHO_T}missing" >&6
1467 echo "$as_me:$LINENO: checking for working automake" >&5
1468 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1469 # Run test in a subshell; some versions of sh will print an error if
1470 # an executable is not found, even if stderr is redirected.
1471 # Redirect stdin to placate older versions of autoconf. Sigh.
1472 if (automake --version) < /dev/null > /dev/null 2>&1; then
1474 echo "$as_me:$LINENO: result: found" >&5
1475 echo "${ECHO_T}found" >&6
1477 AUTOMAKE="$missing_dir/missing automake"
1478 echo "$as_me:$LINENO: result: missing" >&5
1479 echo "${ECHO_T}missing" >&6
1482 echo "$as_me:$LINENO: checking for working autoheader" >&5
1483 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1484 # Run test in a subshell; some versions of sh will print an error if
1485 # an executable is not found, even if stderr is redirected.
1486 # Redirect stdin to placate older versions of autoconf. Sigh.
1487 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1488 AUTOHEADER=autoheader
1489 echo "$as_me:$LINENO: result: found" >&5
1490 echo "${ECHO_T}found" >&6
1492 AUTOHEADER="$missing_dir/missing autoheader"
1493 echo "$as_me:$LINENO: result: missing" >&5
1494 echo "${ECHO_T}missing" >&6
1497 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1498 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1499 # Run test in a subshell; some versions of sh will print an error if
1500 # an executable is not found, even if stderr is redirected.
1501 # Redirect stdin to placate older versions of autoconf. Sigh.
1502 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1504 echo "$as_me:$LINENO: result: found" >&5
1505 echo "${ECHO_T}found" >&6
1507 MAKEINFO="$missing_dir/missing makeinfo"
1508 echo "$as_me:$LINENO: result: missing" >&5
1509 echo "${ECHO_T}missing" >&6
1514 ac_config_headers="$ac_config_headers config.h"
1516 ac_config_commands="$ac_config_commands default-1"
1519 for ac_prog in gawk mawk nawk awk
1521 # Extract the first word of "$ac_prog", so it can be a program name with args.
1522 set dummy $ac_prog; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_AWK+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$AWK"; then
1529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_AWK="$ac_prog"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548 if test -n "$AWK"; then
1549 echo "$as_me:$LINENO: result: $AWK" >&5
1550 echo "${ECHO_T}$AWK" >&6
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1556 test -n "$AWK" && break
1559 # Find a good install program. We prefer a C program (faster),
1560 # so one script is as good as another. But avoid the broken or
1561 # incompatible versions:
1562 # SysV /etc/install, /usr/sbin/install
1563 # SunOS /usr/etc/install
1564 # IRIX /sbin/install
1566 # AmigaOS /C/install, which installs bootblocks on floppy discs
1567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1570 # ./install, which can be erroneously created by make from ./install.sh.
1571 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1572 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1573 if test -z "$INSTALL"; then
1574 if test "${ac_cv_path_install+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 # Account for people who put trailing slashes in PATH elements.
1584 ./ | .// | /cC/* | \
1585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1588 # OSF1 and SCO ODT 3.0 have their own names for install.
1589 # Don't use installbsd from OSF since it installs stuff as root
1591 for ac_prog in ginstall scoinst install; do
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1594 if test $ac_prog = install &&
1595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1596 # AIX install. It has an incompatible calling convention.
1598 elif test $ac_prog = install &&
1599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1600 # program-specific install script used by HP pwplus--don't use.
1603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1615 if test "${ac_cv_path_install+set}" = set; then
1616 INSTALL=$ac_cv_path_install
1618 # As a last resort, use the slow shell script. We don't cache a
1619 # path for INSTALL within a source directory, because that will
1620 # break other packages using the cache if that directory is
1621 # removed, or if the path is relative.
1622 INSTALL=$ac_install_sh
1625 echo "$as_me:$LINENO: result: $INSTALL" >&5
1626 echo "${ECHO_T}$INSTALL" >&6
1628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1629 # It thinks the first close brace ends the variable substitution.
1630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1632 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1634 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1636 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1637 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1638 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1639 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 cat >conftest.make <<\_ACEOF
1644 @echo 'ac_maketemp="${MAKE}"'
1646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1647 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1648 if test -n "$ac_maketemp"; then
1649 eval ac_cv_prog_make_${ac_make}_set=yes
1651 eval ac_cv_prog_make_${ac_make}_set=no
1655 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1656 echo "$as_me:$LINENO: result: yes" >&5
1657 echo "${ECHO_T}yes" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1662 SET_MAKE="MAKE=${MAKE-make}"
1665 if test -n "$ac_tool_prefix"; then
1666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1667 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_RANLIB+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 if test -n "$RANLIB"; then
1674 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 RANLIB=$ac_cv_prog_RANLIB
1693 if test -n "$RANLIB"; then
1694 echo "$as_me:$LINENO: result: $RANLIB" >&5
1695 echo "${ECHO_T}$RANLIB" >&6
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1702 if test -z "$ac_cv_prog_RANLIB"; then
1703 ac_ct_RANLIB=$RANLIB
1704 # Extract the first word of "ranlib", so it can be a program name with args.
1705 set dummy ranlib; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 if test -n "$ac_ct_RANLIB"; then
1712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_ac_ct_RANLIB="ranlib"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1732 if test -n "$ac_ct_RANLIB"; then
1733 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1734 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 RANLIB=$ac_ct_RANLIB
1742 RANLIB="$ac_cv_prog_RANLIB"
1746 CPPFLAGS='$(CPPFLAGS) -DDATADIR="$(datadir)"'
1747 CFLAGS="$CFLAGS -I/usr/local/include"
1748 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1750 ac_cpp='$CPP $CPPFLAGS'
1751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1754 if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1756 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test.
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 if test -n "$CC"; then
1783 echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1791 if test -z "$ac_cv_prog_CC"; then
1793 # Extract the first word of "gcc", so it can be a program name with args.
1794 set dummy gcc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 if test -n "$ac_ct_CC"; then
1801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_ac_ct_CC="gcc"
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1820 if test -n "$ac_ct_CC"; then
1821 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1822 echo "${ECHO_T}$ac_ct_CC" >&6
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1833 if test -z "$CC"; then
1834 if test -n "$ac_tool_prefix"; then
1835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1836 set dummy ${ac_tool_prefix}cc; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852 ac_cv_prog_CC="${ac_tool_prefix}cc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 if test -n "$CC"; then
1863 echo "$as_me:$LINENO: result: $CC" >&5
1864 echo "${ECHO_T}$CC" >&6
1866 echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1871 if test -z "$ac_cv_prog_CC"; then
1873 # Extract the first word of "cc", so it can be a program name with args.
1874 set dummy cc; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_ac_ct_CC="cc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1914 if test -z "$CC"; then
1915 # Extract the first word of "cc", so it can be a program name with args.
1916 set dummy cc; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$CC"; then
1923 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1934 ac_prog_rejected=yes
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 if test $ac_prog_rejected = yes; then
1945 # We found a bogon in the path, so make sure we never use it.
1946 set dummy $ac_cv_prog_CC
1948 if test $# != 0; then
1949 # We chose a different compiler from the bogus one.
1950 # However, it has the same basename, so the bogon will be chosen
1951 # first if we set CC to just the basename; use the full file name.
1953 set dummy "$as_dir/$ac_word" ${1+"$@"}
1961 if test -n "$CC"; then
1962 echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1970 if test -z "$CC"; then
1971 if test -n "$ac_tool_prefix"; then
1974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 if test -n "$CC"; then
2002 echo "$as_me:$LINENO: result: $CC" >&5
2003 echo "${ECHO_T}$CC" >&6
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2009 test -n "$CC" && break
2012 if test -z "$CC"; then
2016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2017 set dummy $ac_prog; ac_word=$2
2018 echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$ac_ct_CC"; then
2024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033 ac_cv_prog_ac_ct_CC="$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2043 if test -n "$ac_ct_CC"; then
2044 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2045 echo "${ECHO_T}$ac_ct_CC" >&6
2047 echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6
2051 test -n "$ac_ct_CC" && break
2060 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2061 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2062 { (exit 1); exit 1; }; }
2064 # Provide some information about the compiler.
2065 echo "$as_me:$LINENO:" \
2066 "checking for C compiler version" >&5
2067 ac_compiler=`set X $ac_compile; echo $2`
2068 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2069 (eval $ac_compiler --version </dev/null >&5) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }
2073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2074 (eval $ac_compiler -v </dev/null >&5) 2>&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }
2078 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2079 (eval $ac_compiler -V </dev/null >&5) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2084 cat >conftest.$ac_ext <<_ACEOF
2085 #line $LINENO "configure"
2086 #include "confdefs.h"
2088 #ifdef F77_DUMMY_MAIN
2092 int F77_DUMMY_MAIN() { return 1; }
2102 ac_clean_files_save=$ac_clean_files
2103 ac_clean_files="$ac_clean_files a.out a.exe"
2104 # Try to create an executable without -o first, disregard a.out.
2105 # It will help us diagnose broken compilers, and finding out an intuition
2107 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2108 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2109 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2110 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2111 (eval $ac_link_default) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; then
2115 # Find the output, starting from the most likely. This scheme is
2116 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2119 # Be careful to initialize this variable, since it used to be cached.
2120 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2122 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2123 ls a.out conftest 2>/dev/null;
2124 ls a.* conftest.* 2>/dev/null`; do
2126 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2127 a.out ) # We found the default executable, but exeext='' is most
2130 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2131 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2138 echo "$as_me: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2140 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2141 echo "$as_me: error: C compiler cannot create executables" >&2;}
2142 { (exit 77); exit 77; }; }
2145 ac_exeext=$ac_cv_exeext
2146 echo "$as_me:$LINENO: result: $ac_file" >&5
2147 echo "${ECHO_T}$ac_file" >&6
2149 # Check the compiler produces executables we can run. If not, either
2150 # the compiler is broken, or we cross compile.
2151 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2152 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2153 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2154 # If not cross compiling, check that we can run a simple program.
2155 if test "$cross_compiling" != yes; then
2156 if { ac_try='./$ac_file'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2164 if test "$cross_compiling" = maybe; then
2167 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2168 If you meant to cross compile, use \`--host'." >&5
2169 echo "$as_me: error: cannot run C compiled programs.
2170 If you meant to cross compile, use \`--host'." >&2;}
2171 { (exit 1); exit 1; }; }
2175 echo "$as_me:$LINENO: result: yes" >&5
2176 echo "${ECHO_T}yes" >&6
2178 rm -f a.out a.exe conftest$ac_cv_exeext
2179 ac_clean_files=$ac_clean_files_save
2180 # Check the compiler produces executables we can run. If not, either
2181 # the compiler is broken, or we cross compile.
2182 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2183 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2184 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2185 echo "${ECHO_T}$cross_compiling" >&6
2187 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2188 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2190 (eval $ac_link) 2>&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; then
2194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2195 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2196 # work properly (i.e., refer to `conftest.exe'), while it won't with
2198 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2200 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2201 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2210 { (exit 1); exit 1; }; }
2213 rm -f conftest$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2215 echo "${ECHO_T}$ac_cv_exeext" >&6
2217 rm -f conftest.$ac_ext
2218 EXEEXT=$ac_cv_exeext
2220 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2221 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2222 if test "${ac_cv_objext+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 cat >conftest.$ac_ext <<_ACEOF
2226 #line $LINENO "configure"
2227 #include "confdefs.h"
2229 #ifdef F77_DUMMY_MAIN
2233 int F77_DUMMY_MAIN() { return 1; }
2243 rm -f conftest.o conftest.obj
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2252 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2257 echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2260 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2261 { (exit 1); exit 1; }; }
2264 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2266 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2267 echo "${ECHO_T}$ac_cv_objext" >&6
2268 OBJEXT=$ac_cv_objext
2270 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 cat >conftest.$ac_ext <<_ACEOF
2276 #line $LINENO "configure"
2277 #include "confdefs.h"
2279 #ifdef F77_DUMMY_MAIN
2283 int F77_DUMMY_MAIN() { return 1; }
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2314 rm -f conftest.$ac_objext conftest.$ac_ext
2315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2318 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2319 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2320 GCC=`test $ac_compiler_gnu = yes && echo yes`
2321 ac_test_CFLAGS=${CFLAGS+set}
2322 ac_save_CFLAGS=$CFLAGS
2324 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2325 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2326 if test "${ac_cv_prog_cc_g+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 cat >conftest.$ac_ext <<_ACEOF
2330 #line $LINENO "configure"
2331 #include "confdefs.h"
2333 #ifdef F77_DUMMY_MAIN
2337 int F77_DUMMY_MAIN() { return 1; }
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2361 echo "$as_me: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2369 if test "$ac_test_CFLAGS" = set; then
2370 CFLAGS=$ac_save_CFLAGS
2371 elif test $ac_cv_prog_cc_g = yes; then
2372 if test "$GCC" = yes; then
2378 if test "$GCC" = yes; then
2384 # Some people use a C++ compiler to compile C. Since we use `exit',
2385 # in C++ we need to declare it. In case someone uses the same compiler
2386 # for both compiling C and C++ we need to have the C++ compiler decide
2387 # the declaration of exit, since it's the most demanding environment.
2388 cat >conftest.$ac_ext <<_ACEOF
2393 rm -f conftest.$ac_objext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 for ac_declaration in \
2407 '#include <stdlib.h>' \
2408 'extern "C" void std::exit (int) throw (); using std::exit;' \
2409 'extern "C" void std::exit (int); using std::exit;' \
2410 'extern "C" void exit (int) throw ();' \
2411 'extern "C" void exit (int);' \
2414 cat >conftest.$ac_ext <<_ACEOF
2415 #line $LINENO "configure"
2416 #include "confdefs.h"
2419 #ifdef F77_DUMMY_MAIN
2423 int F77_DUMMY_MAIN() { return 1; }
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2447 echo "$as_me: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2451 rm -f conftest.$ac_objext conftest.$ac_ext
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2454 #include "confdefs.h"
2456 #ifdef F77_DUMMY_MAIN
2460 int F77_DUMMY_MAIN() { return 1; }
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2484 echo "$as_me: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 rm -f conftest.$ac_objext conftest.$ac_ext
2490 if test -n "$ac_declaration"; then
2491 echo '#ifdef __cplusplus' >>confdefs.h
2492 echo $ac_declaration >>confdefs.h
2493 echo '#endif' >>confdefs.h
2497 echo "$as_me: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 rm -f conftest.$ac_objext conftest.$ac_ext
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2508 ac_cpp='$CXXCPP $CPPFLAGS'
2509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2512 if test -n "$ac_tool_prefix"; then
2513 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2517 echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2519 if test "${ac_cv_prog_CXX+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -n "$CXX"; then
2523 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 if test -n "$CXX"; then
2543 echo "$as_me:$LINENO: result: $CXX" >&5
2544 echo "${ECHO_T}$CXX" >&6
2546 echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2550 test -n "$CXX" && break
2553 if test -z "$CXX"; then
2555 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2561 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 if test -n "$ac_ct_CXX"; then
2565 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574 ac_cv_prog_ac_ct_CXX="$ac_prog"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2584 if test -n "$ac_ct_CXX"; then
2585 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2586 echo "${ECHO_T}$ac_ct_CXX" >&6
2588 echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2592 test -n "$ac_ct_CXX" && break
2594 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2600 # Provide some information about the compiler.
2601 echo "$as_me:$LINENO:" \
2602 "checking for C++ compiler version" >&5
2603 ac_compiler=`set X $ac_compile; echo $2`
2604 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2605 (eval $ac_compiler --version </dev/null >&5) 2>&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2610 (eval $ac_compiler -v </dev/null >&5) 2>&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }
2614 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2615 (eval $ac_compiler -V </dev/null >&5) 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }
2620 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2621 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2622 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 cat >conftest.$ac_ext <<_ACEOF
2626 #line $LINENO "configure"
2627 #include "confdefs.h"
2629 #ifdef F77_DUMMY_MAIN
2633 int F77_DUMMY_MAIN() { return 1; }
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2660 echo "$as_me: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2664 rm -f conftest.$ac_objext conftest.$ac_ext
2665 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2668 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2669 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2670 GXX=`test $ac_compiler_gnu = yes && echo yes`
2671 ac_test_CXXFLAGS=${CXXFLAGS+set}
2672 ac_save_CXXFLAGS=$CXXFLAGS
2674 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2675 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2676 if test "${ac_cv_prog_cxx_g+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 cat >conftest.$ac_ext <<_ACEOF
2680 #line $LINENO "configure"
2681 #include "confdefs.h"
2683 #ifdef F77_DUMMY_MAIN
2687 int F77_DUMMY_MAIN() { return 1; }
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 ac_cv_prog_cxx_g=yes
2711 echo "$as_me: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2715 rm -f conftest.$ac_objext conftest.$ac_ext
2717 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2718 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2719 if test "$ac_test_CXXFLAGS" = set; then
2720 CXXFLAGS=$ac_save_CXXFLAGS
2721 elif test $ac_cv_prog_cxx_g = yes; then
2722 if test "$GXX" = yes; then
2728 if test "$GXX" = yes; then
2734 for ac_declaration in \
2736 '#include <stdlib.h>' \
2737 'extern "C" void std::exit (int) throw (); using std::exit;' \
2738 'extern "C" void std::exit (int); using std::exit;' \
2739 'extern "C" void exit (int) throw ();' \
2740 'extern "C" void exit (int);' \
2743 cat >conftest.$ac_ext <<_ACEOF
2744 #line $LINENO "configure"
2745 #include "confdefs.h"
2748 #ifdef F77_DUMMY_MAIN
2752 int F77_DUMMY_MAIN() { return 1; }
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; }; then
2776 echo "$as_me: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2780 rm -f conftest.$ac_objext conftest.$ac_ext
2781 cat >conftest.$ac_ext <<_ACEOF
2782 #line $LINENO "configure"
2783 #include "confdefs.h"
2785 #ifdef F77_DUMMY_MAIN
2789 int F77_DUMMY_MAIN() { return 1; }
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2813 echo "$as_me: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2816 rm -f conftest.$ac_objext conftest.$ac_ext
2819 if test -n "$ac_declaration"; then
2820 echo '#ifdef __cplusplus' >>confdefs.h
2821 echo $ac_declaration >>confdefs.h
2822 echo '#endif' >>confdefs.h
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2833 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2834 if test "${ac_cv_c_bigendian+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 # See if sys/param.h defines the BYTE_ORDER macro.
2838 cat >conftest.$ac_ext <<_ACEOF
2839 #line $LINENO "configure"
2840 #include "confdefs.h"
2841 #include <sys/types.h>
2842 #include <sys/param.h>
2844 #ifdef F77_DUMMY_MAIN
2848 int F77_DUMMY_MAIN() { return 1; }
2853 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2873 # It does; now see whether it defined to BIG_ENDIAN or not.
2874 cat >conftest.$ac_ext <<_ACEOF
2875 #line $LINENO "configure"
2876 #include "confdefs.h"
2877 #include <sys/types.h>
2878 #include <sys/param.h>
2880 #ifdef F77_DUMMY_MAIN
2884 int F77_DUMMY_MAIN() { return 1; }
2889 #if BYTE_ORDER != BIG_ENDIAN
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 ac_cv_c_bigendian=yes
2911 echo "$as_me: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2913 ac_cv_c_bigendian=no
2915 rm -f conftest.$ac_objext conftest.$ac_ext
2917 echo "$as_me: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2919 # It does not; compile a test program.
2920 if test "$cross_compiling" = yes; then
2921 # try to guess the endianess by grep'ing values into an object file
2922 ac_cv_c_bigendian=unknown
2923 cat >conftest.$ac_ext <<_ACEOF
2924 #line $LINENO "configure"
2925 #include "confdefs.h"
2926 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2927 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2928 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2929 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2930 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2931 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2932 #ifdef F77_DUMMY_MAIN
2936 int F77_DUMMY_MAIN() { return 1; }
2941 _ascii (); _ebcdic ();
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948 (eval $ac_compile) 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2959 ac_cv_c_bigendian=yes
2961 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2962 if test "$ac_cv_c_bigendian" = unknown; then
2963 ac_cv_c_bigendian=no
2965 # finding both strings is unlikely to happen, but who knows?
2966 ac_cv_c_bigendian=unknown
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2973 rm -f conftest.$ac_objext conftest.$ac_ext
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2977 #include "confdefs.h"
2981 /* Are we little or big endian? From Harbison&Steele. */
2985 char c[sizeof (long)];
2988 exit (u.c[sizeof (long) - 1] == 1);
2991 rm -f conftest$ac_exeext
2992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2993 (eval $ac_link) 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3002 ac_cv_c_bigendian=no
3004 echo "$as_me: program exited with status $ac_status" >&5
3005 echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3008 ac_cv_c_bigendian=yes
3010 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3013 rm -f conftest.$ac_objext conftest.$ac_ext
3015 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3016 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3017 case $ac_cv_c_bigendian in
3020 cat >>confdefs.h <<\_ACEOF
3021 #define WORDS_BIGENDIAN 1
3027 { { echo "$as_me:$LINENO: error: unknown endianess
3028 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3029 echo "$as_me: error: unknown endianess
3030 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3031 { (exit 1); exit 1; }; } ;;
3035 # Extract the first word of "wx-config", so it can be a program name with args.
3036 set dummy wx-config; ac_word=$2
3037 echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3039 if test "${ac_cv_path_wxconfig+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 wxconfig=$ac_cv_path_wxconfig
3066 if test -n "$wxconfig"; then
3067 echo "$as_me:$LINENO: result: $wxconfig" >&5
3068 echo "${ECHO_T}$wxconfig" >&6
3070 echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6
3076 # Make sure we can run config.sub.
3077 $ac_config_sub sun4 >/dev/null 2>&1 ||
3078 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3079 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3080 { (exit 1); exit 1; }; }
3082 echo "$as_me:$LINENO: checking build system type" >&5
3083 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3084 if test "${ac_cv_build+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 ac_cv_build_alias=$build_alias
3088 test -z "$ac_cv_build_alias" &&
3089 ac_cv_build_alias=`$ac_config_guess`
3090 test -z "$ac_cv_build_alias" &&
3091 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3092 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3093 { (exit 1); exit 1; }; }
3094 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3095 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3096 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3097 { (exit 1); exit 1; }; }
3100 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3101 echo "${ECHO_T}$ac_cv_build" >&6
3103 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3104 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3105 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3108 echo "$as_me:$LINENO: checking host system type" >&5
3109 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3110 if test "${ac_cv_host+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 ac_cv_host_alias=$host_alias
3114 test -z "$ac_cv_host_alias" &&
3115 ac_cv_host_alias=$ac_cv_build_alias
3116 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3117 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3118 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3119 { (exit 1); exit 1; }; }
3122 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3123 echo "${ECHO_T}$ac_cv_host" >&6
3125 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3126 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3127 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3130 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3131 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3132 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 ac_cv_prog_cc_stdc=no
3137 cat >conftest.$ac_ext <<_ACEOF
3138 #line $LINENO "configure"
3139 #include "confdefs.h"
3142 #include <sys/types.h>
3143 #include <sys/stat.h>
3144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3145 struct buf { int x; };
3146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3147 static char *e (p, i)
3153 static char *f (char * (*g) (char **, int), char **p, ...)
3158 s = g (p, va_arg (v,int));
3162 int test (int i, double x);
3163 struct s1 {int (*f) (int a);};
3164 struct s2 {int (*f) (double a);};
3165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168 #ifdef F77_DUMMY_MAIN
3172 int F77_DUMMY_MAIN() { return 1; }
3177 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3182 # Don't try gcc -ansi; that turns off useful extensions and
3183 # breaks some systems' header files.
3184 # AIX -qlanglvl=ansi
3185 # Ultrix and OSF/1 -std1
3186 # HP-UX 10.20 and later -Ae
3187 # HP-UX older versions -Aa -D_HPUX_SOURCE
3188 # SVR4 -Xc -D__EXTENSIONS__
3189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3191 CC="$ac_save_CC $ac_arg"
3192 rm -f conftest.$ac_objext
3193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3194 (eval $ac_compile) 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 ac_cv_prog_cc_stdc=$ac_arg
3207 echo "$as_me: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3210 rm -f conftest.$ac_objext
3212 rm -f conftest.$ac_ext conftest.$ac_objext
3217 case "x$ac_cv_prog_cc_stdc" in
3219 echo "$as_me:$LINENO: result: none needed" >&5
3220 echo "${ECHO_T}none needed" >&6 ;;
3222 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3223 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3224 CC="$CC $ac_cv_prog_cc_stdc" ;;
3227 echo "$as_me:$LINENO: checking for inline" >&5
3228 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3229 if test "${ac_cv_c_inline+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 for ac_kw in inline __inline__ __inline; do
3234 cat >conftest.$ac_ext <<_ACEOF
3235 #line $LINENO "configure"
3236 #include "confdefs.h"
3238 static $ac_kw int static_foo () {return 0; }
3239 $ac_kw int foo () {return 0; }
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_c_inline=$ac_kw; break
3257 echo "$as_me: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3260 rm -f conftest.$ac_objext conftest.$ac_ext
3264 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3265 echo "${ECHO_T}$ac_cv_c_inline" >&6
3266 case $ac_cv_c_inline in
3269 cat >>confdefs.h <<\_ACEOF
3273 *) cat >>confdefs.h <<_ACEOF
3274 #define inline $ac_cv_c_inline
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3285 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3286 # On Suns, sometimes $CPP names a directory.
3287 if test -n "$CPP" && test -d "$CPP"; then
3290 if test -z "$CPP"; then
3291 if test "${ac_cv_prog_CPP+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 # Double quotes because CPP needs to be expanded
3295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3298 for ac_c_preproc_warn_flag in '' yes
3300 # Use a header file that comes with gcc, so configuring glibc
3301 # with a fresh cross-compiler works.
3302 # On the NeXT, cc -E runs the code through the compiler's parser,
3303 # not just through cpp. "Syntax error" is here to catch this case.
3304 cat >conftest.$ac_ext <<_ACEOF
3305 #line $LINENO "configure"
3306 #include "confdefs.h"
3310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3313 egrep -v '^ *\+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } >/dev/null; then
3318 if test -s conftest.err; then
3319 ac_cpp_err=$ac_c_preproc_warn_flag
3326 if test -z "$ac_cpp_err"; then
3329 echo "$as_me: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 # Broken: fails on valid input.
3334 rm -f conftest.err conftest.$ac_ext
3336 # OK, works on sane cases. Now check whether non-existent headers
3337 # can be detected and how.
3338 cat >conftest.$ac_ext <<_ACEOF
3339 #line $LINENO "configure"
3340 #include "confdefs.h"
3341 #include <ac_nonexistent.h>
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3346 egrep -v '^ *\+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null; then
3351 if test -s conftest.err; then
3352 ac_cpp_err=$ac_c_preproc_warn_flag
3359 if test -z "$ac_cpp_err"; then
3360 # Broken: success on invalid input.
3363 echo "$as_me: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3365 # Passes both tests.
3369 rm -f conftest.err conftest.$ac_ext
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3386 echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6
3389 for ac_c_preproc_warn_flag in '' yes
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # On the NeXT, cc -E runs the code through the compiler's parser,
3394 # not just through cpp. "Syntax error" is here to catch this case.
3395 cat >conftest.$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3397 #include "confdefs.h"
3401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3404 egrep -v '^ *\+' conftest.er1 >conftest.err
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } >/dev/null; then
3409 if test -s conftest.err; then
3410 ac_cpp_err=$ac_c_preproc_warn_flag
3417 if test -z "$ac_cpp_err"; then
3420 echo "$as_me: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3422 # Broken: fails on valid input.
3425 rm -f conftest.err conftest.$ac_ext
3427 # OK, works on sane cases. Now check whether non-existent headers
3428 # can be detected and how.
3429 cat >conftest.$ac_ext <<_ACEOF
3430 #line $LINENO "configure"
3431 #include "confdefs.h"
3432 #include <ac_nonexistent.h>
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3437 egrep -v '^ *\+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3450 if test -z "$ac_cpp_err"; then
3451 # Broken: success on invalid input.
3454 echo "$as_me: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3456 # Passes both tests.
3460 rm -f conftest.err conftest.$ac_ext
3463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464 rm -f conftest.err conftest.$ac_ext
3465 if $ac_preproc_ok; then
3468 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3470 { (exit 1); exit 1; }; }
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3481 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3482 if test "${ac_cv_header_stdc+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3486 #line $LINENO "configure"
3487 #include "confdefs.h"
3494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3497 egrep -v '^ *\+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null; then
3502 if test -s conftest.err; then
3503 ac_cpp_err=$ac_c_preproc_warn_flag
3510 if test -z "$ac_cpp_err"; then
3511 ac_cv_header_stdc=yes
3513 echo "$as_me: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3515 ac_cv_header_stdc=no
3517 rm -f conftest.err conftest.$ac_ext
3519 if test $ac_cv_header_stdc = yes; then
3520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 #line $LINENO "configure"
3523 #include "confdefs.h"
3527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 egrep "memchr" >/dev/null 2>&1; then
3531 ac_cv_header_stdc=no
3537 if test $ac_cv_header_stdc = yes; then
3538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 #include "confdefs.h"
3545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546 egrep "free" >/dev/null 2>&1; then
3549 ac_cv_header_stdc=no
3555 if test $ac_cv_header_stdc = yes; then
3556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3557 if test "$cross_compiling" = yes; then
3560 cat >conftest.$ac_ext <<_ACEOF
3561 #line $LINENO "configure"
3562 #include "confdefs.h"
3564 #if ((' ' & 0x0FF) == 0x020)
3565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3568 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3569 || ('j' <= (c) && (c) <= 'r') \
3570 || ('s' <= (c) && (c) <= 'z'))
3571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3579 for (i = 0; i < 256; i++)
3580 if (XOR (islower (i), ISLOWER (i))
3581 || toupper (i) != TOUPPER (i))
3586 rm -f conftest$ac_exeext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3588 (eval $ac_link) 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3599 echo "$as_me: program exited with status $ac_status" >&5
3600 echo "$as_me: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3603 ac_cv_header_stdc=no
3605 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3609 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3610 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3611 if test $ac_cv_header_stdc = yes; then
3613 cat >>confdefs.h <<\_ACEOF
3614 #define STDC_HEADERS 1
3619 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3629 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3630 inttypes.h stdint.h unistd.h
3632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3633 echo "$as_me:$LINENO: checking for $ac_header" >&5
3634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 cat >conftest.$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3640 #include "confdefs.h"
3641 $ac_includes_default
3643 #include <$ac_header>
3645 rm -f conftest.$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 eval "$as_ac_Header=yes"
3659 echo "$as_me: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 eval "$as_ac_Header=no"
3663 rm -f conftest.$ac_objext conftest.$ac_ext
3665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3668 cat >>confdefs.h <<_ACEOF
3669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3677 echo "$as_me:$LINENO: checking for short" >&5
3678 echo $ECHO_N "checking for short... $ECHO_C" >&6
3679 if test "${ac_cv_type_short+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 cat >conftest.$ac_ext <<_ACEOF
3683 #line $LINENO "configure"
3684 #include "confdefs.h"
3685 $ac_includes_default
3686 #ifdef F77_DUMMY_MAIN
3690 int F77_DUMMY_MAIN() { return 1; }
3703 rm -f conftest.$ac_objext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest.$ac_objext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 ac_cv_type_short=yes
3717 echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3721 rm -f conftest.$ac_objext conftest.$ac_ext
3723 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3724 echo "${ECHO_T}$ac_cv_type_short" >&6
3726 echo "$as_me:$LINENO: checking size of short" >&5
3727 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3728 if test "${ac_cv_sizeof_short+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 if test "$ac_cv_type_short" = yes; then
3732 # The cast to unsigned long works around a bug in the HP C Compiler
3733 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3734 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3735 # This bug is HP SR number 8606223364.
3736 if test "$cross_compiling" = yes; then
3737 # Depending upon the size, compute the lo and hi bounds.
3738 cat >conftest.$ac_ext <<_ACEOF
3739 #line $LINENO "configure"
3740 #include "confdefs.h"
3741 $ac_includes_default
3742 #ifdef F77_DUMMY_MAIN
3746 int F77_DUMMY_MAIN() { return 1; }
3751 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3758 rm -f conftest.$ac_objext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3760 (eval $ac_compile) 2>&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -s conftest.$ac_objext'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; }; then
3772 cat >conftest.$ac_ext <<_ACEOF
3773 #line $LINENO "configure"
3774 #include "confdefs.h"
3775 $ac_includes_default
3776 #ifdef F77_DUMMY_MAIN
3780 int F77_DUMMY_MAIN() { return 1; }
3785 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3792 rm -f conftest.$ac_objext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_hi=$ac_mid; break
3806 echo "$as_me: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3808 ac_lo=`expr $ac_mid + 1`
3809 if test $ac_lo -le $ac_mid; then
3813 ac_mid=`expr 2 '*' $ac_mid + 1`
3815 rm -f conftest.$ac_objext conftest.$ac_ext
3818 echo "$as_me: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3820 cat >conftest.$ac_ext <<_ACEOF
3821 #line $LINENO "configure"
3822 #include "confdefs.h"
3823 $ac_includes_default
3824 #ifdef F77_DUMMY_MAIN
3828 int F77_DUMMY_MAIN() { return 1; }
3833 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3840 rm -f conftest.$ac_objext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3854 cat >conftest.$ac_ext <<_ACEOF
3855 #line $LINENO "configure"
3856 #include "confdefs.h"
3857 $ac_includes_default
3858 #ifdef F77_DUMMY_MAIN
3862 int F77_DUMMY_MAIN() { return 1; }
3867 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3874 rm -f conftest.$ac_objext
3875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3876 (eval $ac_compile) 2>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_lo=$ac_mid; break
3888 echo "$as_me: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 ac_hi=`expr '(' $ac_mid ')' - 1`
3891 if test $ac_mid -le $ac_hi; then
3895 ac_mid=`expr 2 '*' $ac_mid`
3897 rm -f conftest.$ac_objext conftest.$ac_ext
3900 echo "$as_me: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3904 rm -f conftest.$ac_objext conftest.$ac_ext
3906 rm -f conftest.$ac_objext conftest.$ac_ext
3907 # Binary search between lo and hi bounds.
3908 while test "x$ac_lo" != "x$ac_hi"; do
3909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3910 cat >conftest.$ac_ext <<_ACEOF
3911 #line $LINENO "configure"
3912 #include "confdefs.h"
3913 $ac_includes_default
3914 #ifdef F77_DUMMY_MAIN
3918 int F77_DUMMY_MAIN() { return 1; }
3923 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3930 rm -f conftest.$ac_objext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3932 (eval $ac_compile) 2>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -s conftest.$ac_objext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3944 echo "$as_me: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3946 ac_lo=`expr '(' $ac_mid ')' + 1`
3948 rm -f conftest.$ac_objext conftest.$ac_ext
3951 ?*) ac_cv_sizeof_short=$ac_lo;;
3952 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
3953 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
3954 { (exit 1); exit 1; }; } ;;
3957 if test "$cross_compiling" = yes; then
3958 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3959 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3960 { (exit 1); exit 1; }; }
3962 cat >conftest.$ac_ext <<_ACEOF
3963 #line $LINENO "configure"
3964 #include "confdefs.h"
3965 $ac_includes_default
3966 long longval () { return (long) (sizeof (short)); }
3967 unsigned long ulongval () { return (long) (sizeof (short)); }
3970 #ifdef F77_DUMMY_MAIN
3974 int F77_DUMMY_MAIN() { return 1; }
3980 FILE *f = fopen ("conftest.val", "w");
3983 if (((long) (sizeof (short))) < 0)
3985 long i = longval ();
3986 if (i != ((long) (sizeof (short))))
3988 fprintf (f, "%ld\n", i);
3992 unsigned long i = ulongval ();
3993 if (i != ((long) (sizeof (short))))
3995 fprintf (f, "%lu\n", i);
3997 exit (ferror (f) || fclose (f) != 0);
4003 rm -f conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005 (eval $ac_link) 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 ac_cv_sizeof_short=`cat conftest.val`
4016 echo "$as_me: program exited with status $ac_status" >&5
4017 echo "$as_me: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4021 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4022 { (exit 1); exit 1; }; }
4024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4029 ac_cv_sizeof_short=0
4032 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4033 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4034 cat >>confdefs.h <<_ACEOF
4035 #define SIZEOF_SHORT $ac_cv_sizeof_short
4039 echo "$as_me:$LINENO: checking for int" >&5
4040 echo $ECHO_N "checking for int... $ECHO_C" >&6
4041 if test "${ac_cv_type_int+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 cat >conftest.$ac_ext <<_ACEOF
4045 #line $LINENO "configure"
4046 #include "confdefs.h"
4047 $ac_includes_default
4048 #ifdef F77_DUMMY_MAIN
4052 int F77_DUMMY_MAIN() { return 1; }
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4079 echo "$as_me: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4083 rm -f conftest.$ac_objext conftest.$ac_ext
4085 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4086 echo "${ECHO_T}$ac_cv_type_int" >&6
4088 echo "$as_me:$LINENO: checking size of int" >&5
4089 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4090 if test "${ac_cv_sizeof_int+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 if test "$ac_cv_type_int" = yes; then
4094 # The cast to unsigned long works around a bug in the HP C Compiler
4095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4097 # This bug is HP SR number 8606223364.
4098 if test "$cross_compiling" = yes; then
4099 # Depending upon the size, compute the lo and hi bounds.
4100 cat >conftest.$ac_ext <<_ACEOF
4101 #line $LINENO "configure"
4102 #include "confdefs.h"
4103 $ac_includes_default
4104 #ifdef F77_DUMMY_MAIN
4108 int F77_DUMMY_MAIN() { return 1; }
4113 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4134 cat >conftest.$ac_ext <<_ACEOF
4135 #line $LINENO "configure"
4136 #include "confdefs.h"
4137 $ac_includes_default
4138 #ifdef F77_DUMMY_MAIN
4142 int F77_DUMMY_MAIN() { return 1; }
4147 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4154 rm -f conftest.$ac_objext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_hi=$ac_mid; break
4168 echo "$as_me: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4170 ac_lo=`expr $ac_mid + 1`
4171 if test $ac_lo -le $ac_mid; then
4175 ac_mid=`expr 2 '*' $ac_mid + 1`
4177 rm -f conftest.$ac_objext conftest.$ac_ext
4180 echo "$as_me: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4182 cat >conftest.$ac_ext <<_ACEOF
4183 #line $LINENO "configure"
4184 #include "confdefs.h"
4185 $ac_includes_default
4186 #ifdef F77_DUMMY_MAIN
4190 int F77_DUMMY_MAIN() { return 1; }
4195 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4202 rm -f conftest.$ac_objext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4216 cat >conftest.$ac_ext <<_ACEOF
4217 #line $LINENO "configure"
4218 #include "confdefs.h"
4219 $ac_includes_default
4220 #ifdef F77_DUMMY_MAIN
4224 int F77_DUMMY_MAIN() { return 1; }
4229 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4236 rm -f conftest.$ac_objext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_lo=$ac_mid; break
4250 echo "$as_me: failed program was:" >&5
4251 cat conftest.$ac_ext >&5
4252 ac_hi=`expr '(' $ac_mid ')' - 1`
4253 if test $ac_mid -le $ac_hi; then
4257 ac_mid=`expr 2 '*' $ac_mid`
4259 rm -f conftest.$ac_objext conftest.$ac_ext
4262 echo "$as_me: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4266 rm -f conftest.$ac_objext conftest.$ac_ext
4268 rm -f conftest.$ac_objext conftest.$ac_ext
4269 # Binary search between lo and hi bounds.
4270 while test "x$ac_lo" != "x$ac_hi"; do
4271 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4272 cat >conftest.$ac_ext <<_ACEOF
4273 #line $LINENO "configure"
4274 #include "confdefs.h"
4275 $ac_includes_default
4276 #ifdef F77_DUMMY_MAIN
4280 int F77_DUMMY_MAIN() { return 1; }
4285 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4292 rm -f conftest.$ac_objext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294 (eval $ac_compile) 2>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4306 echo "$as_me: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4308 ac_lo=`expr '(' $ac_mid ')' + 1`
4310 rm -f conftest.$ac_objext conftest.$ac_ext
4313 ?*) ac_cv_sizeof_int=$ac_lo;;
4314 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4315 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4316 { (exit 1); exit 1; }; } ;;
4319 if test "$cross_compiling" = yes; then
4320 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4321 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4322 { (exit 1); exit 1; }; }
4324 cat >conftest.$ac_ext <<_ACEOF
4325 #line $LINENO "configure"
4326 #include "confdefs.h"
4327 $ac_includes_default
4328 long longval () { return (long) (sizeof (int)); }
4329 unsigned long ulongval () { return (long) (sizeof (int)); }
4332 #ifdef F77_DUMMY_MAIN
4336 int F77_DUMMY_MAIN() { return 1; }
4342 FILE *f = fopen ("conftest.val", "w");
4345 if (((long) (sizeof (int))) < 0)
4347 long i = longval ();
4348 if (i != ((long) (sizeof (int))))
4350 fprintf (f, "%ld\n", i);
4354 unsigned long i = ulongval ();
4355 if (i != ((long) (sizeof (int))))
4357 fprintf (f, "%lu\n", i);
4359 exit (ferror (f) || fclose (f) != 0);
4365 rm -f conftest$ac_exeext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367 (eval $ac_link) 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_cv_sizeof_int=`cat conftest.val`
4378 echo "$as_me: program exited with status $ac_status" >&5
4379 echo "$as_me: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4382 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
4383 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
4384 { (exit 1); exit 1; }; }
4386 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4394 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4395 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4396 cat >>confdefs.h <<_ACEOF
4397 #define SIZEOF_INT $ac_cv_sizeof_int
4401 echo "$as_me:$LINENO: checking for long" >&5
4402 echo $ECHO_N "checking for long... $ECHO_C" >&6
4403 if test "${ac_cv_type_long+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4407 #line $LINENO "configure"
4408 #include "confdefs.h"
4409 $ac_includes_default
4410 #ifdef F77_DUMMY_MAIN
4414 int F77_DUMMY_MAIN() { return 1; }
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4441 echo "$as_me: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4445 rm -f conftest.$ac_objext conftest.$ac_ext
4447 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4448 echo "${ECHO_T}$ac_cv_type_long" >&6
4450 echo "$as_me:$LINENO: checking size of long" >&5
4451 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4452 if test "${ac_cv_sizeof_long+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 if test "$ac_cv_type_long" = yes; then
4456 # The cast to unsigned long works around a bug in the HP C Compiler
4457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4459 # This bug is HP SR number 8606223364.
4460 if test "$cross_compiling" = yes; then
4461 # Depending upon the size, compute the lo and hi bounds.
4462 cat >conftest.$ac_ext <<_ACEOF
4463 #line $LINENO "configure"
4464 #include "confdefs.h"
4465 $ac_includes_default
4466 #ifdef F77_DUMMY_MAIN
4470 int F77_DUMMY_MAIN() { return 1; }
4475 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4496 cat >conftest.$ac_ext <<_ACEOF
4497 #line $LINENO "configure"
4498 #include "confdefs.h"
4499 $ac_includes_default
4500 #ifdef F77_DUMMY_MAIN
4504 int F77_DUMMY_MAIN() { return 1; }
4509 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_hi=$ac_mid; break
4530 echo "$as_me: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 ac_lo=`expr $ac_mid + 1`
4533 if test $ac_lo -le $ac_mid; then
4537 ac_mid=`expr 2 '*' $ac_mid + 1`
4539 rm -f conftest.$ac_objext conftest.$ac_ext
4542 echo "$as_me: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 cat >conftest.$ac_ext <<_ACEOF
4545 #line $LINENO "configure"
4546 #include "confdefs.h"
4547 $ac_includes_default
4548 #ifdef F77_DUMMY_MAIN
4552 int F77_DUMMY_MAIN() { return 1; }
4557 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4564 rm -f conftest.$ac_objext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4578 cat >conftest.$ac_ext <<_ACEOF
4579 #line $LINENO "configure"
4580 #include "confdefs.h"
4581 $ac_includes_default
4582 #ifdef F77_DUMMY_MAIN
4586 int F77_DUMMY_MAIN() { return 1; }
4591 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4598 rm -f conftest.$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600 (eval $ac_compile) 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_lo=$ac_mid; break
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4614 ac_hi=`expr '(' $ac_mid ')' - 1`
4615 if test $ac_mid -le $ac_hi; then
4619 ac_mid=`expr 2 '*' $ac_mid`
4621 rm -f conftest.$ac_objext conftest.$ac_ext
4624 echo "$as_me: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4628 rm -f conftest.$ac_objext conftest.$ac_ext
4630 rm -f conftest.$ac_objext conftest.$ac_ext
4631 # Binary search between lo and hi bounds.
4632 while test "x$ac_lo" != "x$ac_hi"; do
4633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 #include "confdefs.h"
4637 $ac_includes_default
4638 #ifdef F77_DUMMY_MAIN
4642 int F77_DUMMY_MAIN() { return 1; }
4647 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -s conftest.$ac_objext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4668 echo "$as_me: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4670 ac_lo=`expr '(' $ac_mid ')' + 1`
4672 rm -f conftest.$ac_objext conftest.$ac_ext
4675 ?*) ac_cv_sizeof_long=$ac_lo;;
4676 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4677 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4678 { (exit 1); exit 1; }; } ;;
4681 if test "$cross_compiling" = yes; then
4682 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4683 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4684 { (exit 1); exit 1; }; }
4686 cat >conftest.$ac_ext <<_ACEOF
4687 #line $LINENO "configure"
4688 #include "confdefs.h"
4689 $ac_includes_default
4690 long longval () { return (long) (sizeof (long)); }
4691 unsigned long ulongval () { return (long) (sizeof (long)); }
4694 #ifdef F77_DUMMY_MAIN
4698 int F77_DUMMY_MAIN() { return 1; }
4704 FILE *f = fopen ("conftest.val", "w");
4707 if (((long) (sizeof (long))) < 0)
4709 long i = longval ();
4710 if (i != ((long) (sizeof (long))))
4712 fprintf (f, "%ld\n", i);
4716 unsigned long i = ulongval ();
4717 if (i != ((long) (sizeof (long))))
4719 fprintf (f, "%lu\n", i);
4721 exit (ferror (f) || fclose (f) != 0);
4727 rm -f conftest$ac_exeext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4729 (eval $ac_link) 2>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_sizeof_long=`cat conftest.val`
4740 echo "$as_me: program exited with status $ac_status" >&5
4741 echo "$as_me: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4745 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
4746 { (exit 1); exit 1; }; }
4748 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4756 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4757 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4758 cat >>confdefs.h <<_ACEOF
4759 #define SIZEOF_LONG $ac_cv_sizeof_long
4763 echo "$as_me:$LINENO: checking for float" >&5
4764 echo $ECHO_N "checking for float... $ECHO_C" >&6
4765 if test "${ac_cv_type_float+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 cat >conftest.$ac_ext <<_ACEOF
4769 #line $LINENO "configure"
4770 #include "confdefs.h"
4771 $ac_includes_default
4772 #ifdef F77_DUMMY_MAIN
4776 int F77_DUMMY_MAIN() { return 1; }
4789 rm -f conftest.$ac_objext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791 (eval $ac_compile) 2>&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -s conftest.$ac_objext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 ac_cv_type_float=yes
4803 echo "$as_me: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4807 rm -f conftest.$ac_objext conftest.$ac_ext
4809 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
4810 echo "${ECHO_T}$ac_cv_type_float" >&6
4812 echo "$as_me:$LINENO: checking size of float" >&5
4813 echo $ECHO_N "checking size of float... $ECHO_C" >&6
4814 if test "${ac_cv_sizeof_float+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 if test "$ac_cv_type_float" = yes; then
4818 # The cast to unsigned long works around a bug in the HP C Compiler
4819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4821 # This bug is HP SR number 8606223364.
4822 if test "$cross_compiling" = yes; then
4823 # Depending upon the size, compute the lo and hi bounds.
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 #include "confdefs.h"
4827 $ac_includes_default
4828 #ifdef F77_DUMMY_MAIN
4832 int F77_DUMMY_MAIN() { return 1; }
4837 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4858 cat >conftest.$ac_ext <<_ACEOF
4859 #line $LINENO "configure"
4860 #include "confdefs.h"
4861 $ac_includes_default
4862 #ifdef F77_DUMMY_MAIN
4866 int F77_DUMMY_MAIN() { return 1; }
4871 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_hi=$ac_mid; break
4892 echo "$as_me: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4894 ac_lo=`expr $ac_mid + 1`
4895 if test $ac_lo -le $ac_mid; then
4899 ac_mid=`expr 2 '*' $ac_mid + 1`
4901 rm -f conftest.$ac_objext conftest.$ac_ext
4904 echo "$as_me: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4906 cat >conftest.$ac_ext <<_ACEOF
4907 #line $LINENO "configure"
4908 #include "confdefs.h"
4909 $ac_includes_default
4910 #ifdef F77_DUMMY_MAIN
4914 int F77_DUMMY_MAIN() { return 1; }
4919 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
4926 rm -f conftest.$ac_objext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try='test -s conftest.$ac_objext'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4940 cat >conftest.$ac_ext <<_ACEOF
4941 #line $LINENO "configure"
4942 #include "confdefs.h"
4943 $ac_includes_default
4944 #ifdef F77_DUMMY_MAIN
4948 int F77_DUMMY_MAIN() { return 1; }
4953 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 ac_lo=$ac_mid; break
4974 echo "$as_me: failed program was:" >&5
4975 cat conftest.$ac_ext >&5
4976 ac_hi=`expr '(' $ac_mid ')' - 1`
4977 if test $ac_mid -le $ac_hi; then
4981 ac_mid=`expr 2 '*' $ac_mid`
4983 rm -f conftest.$ac_objext conftest.$ac_ext
4986 echo "$as_me: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4990 rm -f conftest.$ac_objext conftest.$ac_ext
4992 rm -f conftest.$ac_objext conftest.$ac_ext
4993 # Binary search between lo and hi bounds.
4994 while test "x$ac_lo" != "x$ac_hi"; do
4995 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4996 cat >conftest.$ac_ext <<_ACEOF
4997 #line $LINENO "configure"
4998 #include "confdefs.h"
4999 $ac_includes_default
5000 #ifdef F77_DUMMY_MAIN
5004 int F77_DUMMY_MAIN() { return 1; }
5009 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5030 echo "$as_me: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5032 ac_lo=`expr '(' $ac_mid ')' + 1`
5034 rm -f conftest.$ac_objext conftest.$ac_ext
5037 ?*) ac_cv_sizeof_float=$ac_lo;;
5038 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5039 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5043 if test "$cross_compiling" = yes; then
5044 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5045 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5046 { (exit 1); exit 1; }; }
5048 cat >conftest.$ac_ext <<_ACEOF
5049 #line $LINENO "configure"
5050 #include "confdefs.h"
5051 $ac_includes_default
5052 long longval () { return (long) (sizeof (float)); }
5053 unsigned long ulongval () { return (long) (sizeof (float)); }
5056 #ifdef F77_DUMMY_MAIN
5060 int F77_DUMMY_MAIN() { return 1; }
5066 FILE *f = fopen ("conftest.val", "w");
5069 if (((long) (sizeof (float))) < 0)
5071 long i = longval ();
5072 if (i != ((long) (sizeof (float))))
5074 fprintf (f, "%ld\n", i);
5078 unsigned long i = ulongval ();
5079 if (i != ((long) (sizeof (float))))
5081 fprintf (f, "%lu\n", i);
5083 exit (ferror (f) || fclose (f) != 0);
5089 rm -f conftest$ac_exeext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091 (eval $ac_link) 2>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_cv_sizeof_float=`cat conftest.val`
5102 echo "$as_me: program exited with status $ac_status" >&5
5103 echo "$as_me: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
5107 echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
5108 { (exit 1); exit 1; }; }
5110 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5115 ac_cv_sizeof_float=0
5118 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5119 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5120 cat >>confdefs.h <<_ACEOF
5121 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5125 echo "$as_me:$LINENO: checking for double" >&5
5126 echo $ECHO_N "checking for double... $ECHO_C" >&6
5127 if test "${ac_cv_type_double+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 cat >conftest.$ac_ext <<_ACEOF
5131 #line $LINENO "configure"
5132 #include "confdefs.h"
5133 $ac_includes_default
5134 #ifdef F77_DUMMY_MAIN
5138 int F77_DUMMY_MAIN() { return 1; }
5145 if (sizeof (double))
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153 (eval $ac_compile) 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_cv_type_double=yes
5165 echo "$as_me: failed program was:" >&5
5166 cat conftest.$ac_ext >&5
5167 ac_cv_type_double=no
5169 rm -f conftest.$ac_objext conftest.$ac_ext
5171 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5172 echo "${ECHO_T}$ac_cv_type_double" >&6
5174 echo "$as_me:$LINENO: checking size of double" >&5
5175 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5176 if test "${ac_cv_sizeof_double+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 if test "$ac_cv_type_double" = yes; then
5180 # The cast to unsigned long works around a bug in the HP C Compiler
5181 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5182 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5183 # This bug is HP SR number 8606223364.
5184 if test "$cross_compiling" = yes; then
5185 # Depending upon the size, compute the lo and hi bounds.
5186 cat >conftest.$ac_ext <<_ACEOF
5187 #line $LINENO "configure"
5188 #include "confdefs.h"
5189 $ac_includes_default
5190 #ifdef F77_DUMMY_MAIN
5194 int F77_DUMMY_MAIN() { return 1; }
5199 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208 (eval $ac_compile) 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line $LINENO "configure"
5222 #include "confdefs.h"
5223 $ac_includes_default
5224 #ifdef F77_DUMMY_MAIN
5228 int F77_DUMMY_MAIN() { return 1; }
5233 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5240 rm -f conftest.$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242 (eval $ac_compile) 2>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5246 { ac_try='test -s conftest.$ac_objext'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; }; then
5252 ac_hi=$ac_mid; break
5254 echo "$as_me: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5256 ac_lo=`expr $ac_mid + 1`
5257 if test $ac_lo -le $ac_mid; then
5261 ac_mid=`expr 2 '*' $ac_mid + 1`
5263 rm -f conftest.$ac_objext conftest.$ac_ext
5266 echo "$as_me: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5268 cat >conftest.$ac_ext <<_ACEOF
5269 #line $LINENO "configure"
5270 #include "confdefs.h"
5271 $ac_includes_default
5272 #ifdef F77_DUMMY_MAIN
5276 int F77_DUMMY_MAIN() { return 1; }
5281 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5288 rm -f conftest.$ac_objext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290 (eval $ac_compile) 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -s conftest.$ac_objext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5302 cat >conftest.$ac_ext <<_ACEOF
5303 #line $LINENO "configure"
5304 #include "confdefs.h"
5305 $ac_includes_default
5306 #ifdef F77_DUMMY_MAIN
5310 int F77_DUMMY_MAIN() { return 1; }
5315 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
5328 { ac_try='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_lo=$ac_mid; break
5336 echo "$as_me: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5338 ac_hi=`expr '(' $ac_mid ')' - 1`
5339 if test $ac_mid -le $ac_hi; then
5343 ac_mid=`expr 2 '*' $ac_mid`
5345 rm -f conftest.$ac_objext conftest.$ac_ext
5348 echo "$as_me: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5352 rm -f conftest.$ac_objext conftest.$ac_ext
5354 rm -f conftest.$ac_objext conftest.$ac_ext
5355 # Binary search between lo and hi bounds.
5356 while test "x$ac_lo" != "x$ac_hi"; do
5357 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 #include "confdefs.h"
5361 $ac_includes_default
5362 #ifdef F77_DUMMY_MAIN
5366 int F77_DUMMY_MAIN() { return 1; }
5371 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5392 echo "$as_me: failed program was:" >&5
5393 cat conftest.$ac_ext >&5
5394 ac_lo=`expr '(' $ac_mid ')' + 1`
5396 rm -f conftest.$ac_objext conftest.$ac_ext
5399 ?*) ac_cv_sizeof_double=$ac_lo;;
5400 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5401 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5402 { (exit 1); exit 1; }; } ;;
5405 if test "$cross_compiling" = yes; then
5406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5407 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5408 { (exit 1); exit 1; }; }
5410 cat >conftest.$ac_ext <<_ACEOF
5411 #line $LINENO "configure"
5412 #include "confdefs.h"
5413 $ac_includes_default
5414 long longval () { return (long) (sizeof (double)); }
5415 unsigned long ulongval () { return (long) (sizeof (double)); }
5418 #ifdef F77_DUMMY_MAIN
5422 int F77_DUMMY_MAIN() { return 1; }
5428 FILE *f = fopen ("conftest.val", "w");
5431 if (((long) (sizeof (double))) < 0)
5433 long i = longval ();
5434 if (i != ((long) (sizeof (double))))
5436 fprintf (f, "%ld\n", i);
5440 unsigned long i = ulongval ();
5441 if (i != ((long) (sizeof (double))))
5443 fprintf (f, "%lu\n", i);
5445 exit (ferror (f) || fclose (f) != 0);
5451 rm -f conftest$ac_exeext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_cv_sizeof_double=`cat conftest.val`
5464 echo "$as_me: program exited with status $ac_status" >&5
5465 echo "$as_me: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
5469 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
5470 { (exit 1); exit 1; }; }
5472 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5477 ac_cv_sizeof_double=0
5480 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5481 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5482 cat >>confdefs.h <<_ACEOF
5483 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5488 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5489 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5490 if test "${ac_cv_lib_z_deflate+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 ac_check_lib_save_LIBS=$LIBS
5495 cat >conftest.$ac_ext <<_ACEOF
5496 #line $LINENO "configure"
5497 #include "confdefs.h"
5499 /* Override any gcc2 internal prototype to avoid an error. */
5503 /* We use char because int might match the return type of a gcc2
5504 builtin and then its argument prototype would still apply. */
5506 #ifdef F77_DUMMY_MAIN
5510 int F77_DUMMY_MAIN() { return 1; }
5520 rm -f conftest.$ac_objext conftest$ac_exeext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522 (eval $ac_link) 2>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } &&
5526 { ac_try='test -s conftest$ac_exeext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_lib_z_deflate=yes
5534 echo "$as_me: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5536 ac_cv_lib_z_deflate=no
5538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5539 LIBS=$ac_check_lib_save_LIBS
5541 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5542 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5543 if test $ac_cv_lib_z_deflate = yes; then
5546 zlib="false" ; { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
5547 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5551 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5552 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5553 if test "${ac_cv_lib_m_sin+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_check_lib_save_LIBS=$LIBS
5558 cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5560 #include "confdefs.h"
5562 /* Override any gcc2 internal prototype to avoid an error. */
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5569 #ifdef F77_DUMMY_MAIN
5573 int F77_DUMMY_MAIN() { return 1; }
5583 rm -f conftest.$ac_objext conftest$ac_exeext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5585 (eval $ac_link) 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -s conftest$ac_exeext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5597 echo "$as_me: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5602 LIBS=$ac_check_lib_save_LIBS
5604 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5605 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5606 if test $ac_cv_lib_m_sin = yes; then
5607 cat >>confdefs.h <<_ACEOF
5615 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5616 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5617 if test "${ac_cv_lib_curses_main+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 ac_check_lib_save_LIBS=$LIBS
5621 LIBS="-lcurses $LIBS"
5622 cat >conftest.$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 #include "confdefs.h"
5627 #ifdef F77_DUMMY_MAIN
5631 int F77_DUMMY_MAIN() { return 1; }
5641 rm -f conftest.$ac_objext conftest$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -s conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_lib_curses_main=yes
5655 echo "$as_me: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5657 ac_cv_lib_curses_main=no
5659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5660 LIBS=$ac_check_lib_save_LIBS
5662 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5663 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5664 if test $ac_cv_lib_curses_main = yes; then
5670 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5671 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5672 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 ac_check_lib_save_LIBS=$LIBS
5676 LIBS="-lncurses $LIBS"
5677 cat >conftest.$ac_ext <<_ACEOF
5678 #line $LINENO "configure"
5679 #include "confdefs.h"
5682 #ifdef F77_DUMMY_MAIN
5686 int F77_DUMMY_MAIN() { return 1; }
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -s conftest$ac_exeext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_lib_ncurses_main=yes
5710 echo "$as_me: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 ac_cv_lib_ncurses_main=no
5714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5715 LIBS=$ac_check_lib_save_LIBS
5717 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5718 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5719 if test $ac_cv_lib_ncurses_main = yes; then
5725 echo "$as_me:$LINENO: checking for main in -lreadline" >&5
5726 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5727 if test "${ac_cv_lib_readline_main+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 ac_check_lib_save_LIBS=$LIBS
5731 LIBS="-lreadline -lcurses $LIBS"
5732 cat >conftest.$ac_ext <<_ACEOF
5733 #line $LINENO "configure"
5734 #include "confdefs.h"
5737 #ifdef F77_DUMMY_MAIN
5741 int F77_DUMMY_MAIN() { return 1; }
5751 rm -f conftest.$ac_objext conftest$ac_exeext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5753 (eval $ac_link) 2>&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -s conftest$ac_exeext'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5763 ac_cv_lib_readline_main=yes
5765 echo "$as_me: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5767 ac_cv_lib_readline_main=no
5769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5770 LIBS=$ac_check_lib_save_LIBS
5772 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
5773 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5774 if test $ac_cv_lib_readline_main = yes; then
5775 readline=true; cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_READLINE 1
5783 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
5784 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
5785 if test "${ac_cv_lib_ncurses_main+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 ac_check_lib_save_LIBS=$LIBS
5789 LIBS="-lncurses $LIBS"
5790 cat >conftest.$ac_ext <<_ACEOF
5791 #line $LINENO "configure"
5792 #include "confdefs.h"
5795 #ifdef F77_DUMMY_MAIN
5799 int F77_DUMMY_MAIN() { return 1; }
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -s conftest$ac_exeext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 ac_cv_lib_ncurses_main=yes
5823 echo "$as_me: failed program was:" >&5
5824 cat conftest.$ac_ext >&5
5825 ac_cv_lib_ncurses_main=no
5827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5828 LIBS=$ac_check_lib_save_LIBS
5830 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
5831 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
5832 if test $ac_cv_lib_ncurses_main = yes; then
5833 ncurses=true; cat >>confdefs.h <<\_ACEOF
5834 #define HAVE_NCURSES 1
5841 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
5842 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5843 if test "${ac_cv_lib_curses_main+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 ac_check_lib_save_LIBS=$LIBS
5847 LIBS="-lcurses $LIBS"
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 #include "confdefs.h"
5853 #ifdef F77_DUMMY_MAIN
5857 int F77_DUMMY_MAIN() { return 1; }
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5869 (eval $ac_link) 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -s conftest$ac_exeext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_lib_curses_main=yes
5881 echo "$as_me: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5883 ac_cv_lib_curses_main=no
5885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5886 LIBS=$ac_check_lib_save_LIBS
5888 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
5889 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5890 if test $ac_cv_lib_curses_main = yes; then
5891 curses=true; cat >>confdefs.h <<\_ACEOF
5892 #define HAVE_CURSES 1
5900 echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.2" >&5
5901 echo $ECHO_N "checking for main in -lwx_gtk-2.2... $ECHO_C" >&6
5902 if test "${ac_cv_lib_wx_gtk_2_2_main+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 ac_check_lib_save_LIBS=$LIBS
5906 LIBS="-lwx_gtk-2.2 $LIBS"
5907 cat >conftest.$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5909 #include "confdefs.h"
5912 #ifdef F77_DUMMY_MAIN
5916 int F77_DUMMY_MAIN() { return 1; }
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928 (eval $ac_link) 2>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -s conftest$ac_exeext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_cv_lib_wx_gtk_2_2_main=yes
5940 echo "$as_me: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5942 ac_cv_lib_wx_gtk_2_2_main=no
5944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5945 LIBS=$ac_check_lib_save_LIBS
5947 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_2_main" >&5
5948 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_2_main" >&6
5949 if test $ac_cv_lib_wx_gtk_2_2_main = yes; then
5950 wxwin=true; wx_gtk=true; cat >>confdefs.h <<\_ACEOF
5951 #define HAVE_WXWINDOWS 1
5956 echo "$as_me:$LINENO: checking for main in -lwx" >&5
5957 echo $ECHO_N "checking for main in -lwx... $ECHO_C" >&6
5958 if test "${ac_cv_lib_wx_main+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 ac_check_lib_save_LIBS=$LIBS
5963 cat >conftest.$ac_ext <<_ACEOF
5964 #line $LINENO "configure"
5965 #include "confdefs.h"
5968 #ifdef F77_DUMMY_MAIN
5972 int F77_DUMMY_MAIN() { return 1; }
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -s conftest$ac_exeext'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 ac_cv_lib_wx_main=yes
5996 echo "$as_me: failed program was:" >&5
5997 cat conftest.$ac_ext >&5
5998 ac_cv_lib_wx_main=no
6000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6001 LIBS=$ac_check_lib_save_LIBS
6003 echo "$as_me:$LINENO: result: $ac_cv_lib_wx_main" >&5
6004 echo "${ECHO_T}$ac_cv_lib_wx_main" >&6
6005 if test $ac_cv_lib_wx_main = yes; then
6006 wxwin=true; wx_msw=true; cat >>confdefs.h <<\_ACEOF
6007 #define HAVE_WXWINDOWS 1
6012 echo "$as_me:$LINENO: checking for main in -lhdf4" >&5
6013 echo $ECHO_N "checking for main in -lhdf4... $ECHO_C" >&6
6014 if test "${ac_cv_lib_hdf4_main+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 ac_check_lib_save_LIBS=$LIBS
6018 LIBS="-lhdf4 -lz $LIBS"
6019 cat >conftest.$ac_ext <<_ACEOF
6020 #line $LINENO "configure"
6021 #include "confdefs.h"
6024 #ifdef F77_DUMMY_MAIN
6028 int F77_DUMMY_MAIN() { return 1; }
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_lib_hdf4_main=yes
6052 echo "$as_me: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6054 ac_cv_lib_hdf4_main=no
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 LIBS=$ac_check_lib_save_LIBS
6059 echo "$as_me:$LINENO: result: $ac_cv_lib_hdf4_main" >&5
6060 echo "${ECHO_T}$ac_cv_lib_hdf4_main" >&6
6061 if test $ac_cv_lib_hdf4_main = yes; then
6067 echo "$as_me:$LINENO: checking for fftw_one in -lfftw" >&5
6068 echo $ECHO_N "checking for fftw_one in -lfftw... $ECHO_C" >&6
6069 if test "${ac_cv_lib_fftw_fftw_one+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 ac_check_lib_save_LIBS=$LIBS
6074 cat >conftest.$ac_ext <<_ACEOF
6075 #line $LINENO "configure"
6076 #include "confdefs.h"
6078 /* Override any gcc2 internal prototype to avoid an error. */
6082 /* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6085 #ifdef F77_DUMMY_MAIN
6089 int F77_DUMMY_MAIN() { return 1; }
6099 rm -f conftest.$ac_objext conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -s conftest$ac_exeext'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_cv_lib_fftw_fftw_one=yes
6113 echo "$as_me: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6115 ac_cv_lib_fftw_fftw_one=no
6117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6118 LIBS=$ac_check_lib_save_LIBS
6120 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_one" >&5
6121 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_one" >&6
6122 if test $ac_cv_lib_fftw_fftw_one = yes; then
6123 fftw=true; cat >>confdefs.h <<\_ACEOF
6131 echo "$as_me:$LINENO: checking for main in -lGL" >&5
6132 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6133 if test "${ac_cv_lib_GL_main+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_check_lib_save_LIBS=$LIBS
6137 LIBS="-lGL -L/usr/X11R6/lib -lXt -lXext $LIBS"
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6140 #include "confdefs.h"
6143 #ifdef F77_DUMMY_MAIN
6147 int F77_DUMMY_MAIN() { return 1; }
6157 rm -f conftest.$ac_objext conftest$ac_exeext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159 (eval $ac_link) 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -s conftest$ac_exeext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_lib_GL_main=yes
6171 echo "$as_me: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6173 ac_cv_lib_GL_main=no
6175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6176 LIBS=$ac_check_lib_save_LIBS
6178 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6179 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6180 if test $ac_cv_lib_GL_main = yes; then
6186 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
6187 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
6188 if test "${ac_cv_lib_pthread_main+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 ac_check_lib_save_LIBS=$LIBS
6192 LIBS="-lpthread $LIBS"
6193 cat >conftest.$ac_ext <<_ACEOF
6194 #line $LINENO "configure"
6195 #include "confdefs.h"
6198 #ifdef F77_DUMMY_MAIN
6202 int F77_DUMMY_MAIN() { return 1; }
6212 rm -f conftest.$ac_objext conftest$ac_exeext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6214 (eval $ac_link) 2>&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -s conftest$ac_exeext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 ac_cv_lib_pthread_main=yes
6226 echo "$as_me: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6228 ac_cv_lib_pthread_main=no
6230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6231 LIBS=$ac_check_lib_save_LIBS
6233 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6234 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6235 if test $ac_cv_lib_pthread_main = yes; then
6242 if test "$zlib" = "true" ; then
6243 echo "$as_me:$LINENO: checking for main in -lpng" >&5
6244 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6245 if test "${ac_cv_lib_png_main+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 ac_check_lib_save_LIBS=$LIBS
6250 cat >conftest.$ac_ext <<_ACEOF
6251 #line $LINENO "configure"
6252 #include "confdefs.h"
6255 #ifdef F77_DUMMY_MAIN
6259 int F77_DUMMY_MAIN() { return 1; }
6269 rm -f conftest.$ac_objext conftest$ac_exeext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271 (eval $ac_link) 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -s conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_lib_png_main=yes
6283 echo "$as_me: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6285 ac_cv_lib_png_main=no
6287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6288 LIBS=$ac_check_lib_save_LIBS
6290 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6291 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6292 if test $ac_cv_lib_png_main = yes; then
6293 png=true ; cat >>confdefs.h <<\_ACEOF
6303 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6305 if test "${ac_cv_header_stdc+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 cat >conftest.$ac_ext <<_ACEOF
6309 #line $LINENO "configure"
6310 #include "confdefs.h"
6317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6320 egrep -v '^ *\+' conftest.er1 >conftest.err
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } >/dev/null; then
6325 if test -s conftest.err; then
6326 ac_cpp_err=$ac_c_preproc_warn_flag
6333 if test -z "$ac_cpp_err"; then
6334 ac_cv_header_stdc=yes
6336 echo "$as_me: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6338 ac_cv_header_stdc=no
6340 rm -f conftest.err conftest.$ac_ext
6342 if test $ac_cv_header_stdc = yes; then
6343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6344 cat >conftest.$ac_ext <<_ACEOF
6345 #line $LINENO "configure"
6346 #include "confdefs.h"
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 egrep "memchr" >/dev/null 2>&1; then
6354 ac_cv_header_stdc=no
6360 if test $ac_cv_header_stdc = yes; then
6361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6362 cat >conftest.$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6364 #include "confdefs.h"
6368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369 egrep "free" >/dev/null 2>&1; then
6372 ac_cv_header_stdc=no
6378 if test $ac_cv_header_stdc = yes; then
6379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6380 if test "$cross_compiling" = yes; then
6383 cat >conftest.$ac_ext <<_ACEOF
6384 #line $LINENO "configure"
6385 #include "confdefs.h"
6387 #if ((' ' & 0x0FF) == 0x020)
6388 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6389 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6391 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6392 || ('j' <= (c) && (c) <= 'r') \
6393 || ('s' <= (c) && (c) <= 'z'))
6394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6402 for (i = 0; i < 256; i++)
6403 if (XOR (islower (i), ISLOWER (i))
6404 || toupper (i) != TOUPPER (i))
6409 rm -f conftest$ac_exeext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411 (eval $ac_link) 2>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6422 echo "$as_me: program exited with status $ac_status" >&5
6423 echo "$as_me: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6426 ac_cv_header_stdc=no
6428 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6434 if test $ac_cv_header_stdc = yes; then
6436 cat >>confdefs.h <<\_ACEOF
6437 #define STDC_HEADERS 1
6466 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
6468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6470 echo "$as_me:$LINENO: checking for $ac_header" >&5
6471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6478 # Is the header compilable?
6479 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6481 cat >conftest.$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6483 #include "confdefs.h"
6484 $ac_includes_default
6485 #include <$ac_header>
6487 rm -f conftest.$ac_objext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489 (eval $ac_compile) 2>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_header_compiler=yes
6501 echo "$as_me: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6503 ac_header_compiler=no
6505 rm -f conftest.$ac_objext conftest.$ac_ext
6506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6507 echo "${ECHO_T}$ac_header_compiler" >&6
6509 # Is the header present?
6510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6512 cat >conftest.$ac_ext <<_ACEOF
6513 #line $LINENO "configure"
6514 #include "confdefs.h"
6515 #include <$ac_header>
6517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6520 egrep -v '^ *\+' conftest.er1 >conftest.err
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } >/dev/null; then
6525 if test -s conftest.err; then
6526 ac_cpp_err=$ac_c_preproc_warn_flag
6533 if test -z "$ac_cpp_err"; then
6534 ac_header_preproc=yes
6536 echo "$as_me: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6538 ac_header_preproc=no
6540 rm -f conftest.err conftest.$ac_ext
6541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6542 echo "${ECHO_T}$ac_header_preproc" >&6
6544 # So? What about this header?
6545 case $ac_header_compiler:$ac_header_preproc in
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6559 echo "$as_me:$LINENO: checking for $ac_header" >&5
6560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 eval "$as_ac_Header=$ac_header_preproc"
6566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6571 cat >>confdefs.h <<_ACEOF
6572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6580 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6581 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6582 if test "${ac_cv_c_const+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 cat >conftest.$ac_ext <<_ACEOF
6586 #line $LINENO "configure"
6587 #include "confdefs.h"
6589 #ifdef F77_DUMMY_MAIN
6593 int F77_DUMMY_MAIN() { return 1; }
6598 /* FIXME: Include the comments suggested by Paul. */
6600 /* Ultrix mips cc rejects this. */
6601 typedef int charset[2];
6603 /* SunOS 4.1.1 cc rejects this. */
6604 char const *const *ccp;
6606 /* NEC SVR4.0.2 mips cc rejects this. */
6607 struct point {int x, y;};
6608 static struct point const zero = {0,0};
6609 /* AIX XL C 1.02.0.0 rejects this.
6610 It does not let you subtract one const X* pointer from another in
6611 an arm of an if-expression whose if-part is not a constant
6613 const char *g = "string";
6614 ccp = &g + (g ? g-g : 0);
6615 /* HPUX 7.0 cc rejects these. */
6618 ccp = (char const *const *) p;
6619 { /* SCO 3.2v4 cc rejects this. */
6621 char const *s = 0 ? (char *) 0 : (char const *) 0;
6625 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6627 const int *foo = &x[0];
6630 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6631 typedef const int *iptr;
6635 { /* AIX XL C 1.02.0.0 rejects this saying
6636 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6637 struct s { int j; const int *ap[3]; };
6638 struct s *b; b->j = 5;
6640 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -s conftest.$ac_objext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6663 echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6667 rm -f conftest.$ac_objext conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6670 echo "${ECHO_T}$ac_cv_c_const" >&6
6671 if test $ac_cv_c_const = no; then
6673 cat >>confdefs.h <<\_ACEOF
6679 echo "$as_me:$LINENO: checking for off_t" >&5
6680 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6681 if test "${ac_cv_type_off_t+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 #include "confdefs.h"
6687 $ac_includes_default
6688 #ifdef F77_DUMMY_MAIN
6692 int F77_DUMMY_MAIN() { return 1; }
6705 rm -f conftest.$ac_objext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6707 (eval $ac_compile) 2>&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -s conftest.$ac_objext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 ac_cv_type_off_t=yes
6719 echo "$as_me: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6723 rm -f conftest.$ac_objext conftest.$ac_ext
6725 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6726 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6727 if test $ac_cv_type_off_t = yes; then
6731 cat >>confdefs.h <<_ACEOF
6737 echo "$as_me:$LINENO: checking for size_t" >&5
6738 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6739 if test "${ac_cv_type_size_t+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF
6743 #line $LINENO "configure"
6744 #include "confdefs.h"
6745 $ac_includes_default
6746 #ifdef F77_DUMMY_MAIN
6750 int F77_DUMMY_MAIN() { return 1; }
6757 if (sizeof (size_t))
6763 rm -f conftest.$ac_objext
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765 (eval $ac_compile) 2>&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_type_size_t=yes
6777 echo "$as_me: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6779 ac_cv_type_size_t=no
6781 rm -f conftest.$ac_objext conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6784 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6785 if test $ac_cv_type_size_t = yes; then
6789 cat >>confdefs.h <<_ACEOF
6790 #define size_t unsigned
6795 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6796 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6797 if test "${ac_cv_struct_tm+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 #include "confdefs.h"
6803 #include <sys/types.h>
6806 #ifdef F77_DUMMY_MAIN
6810 int F77_DUMMY_MAIN() { return 1; }
6815 struct tm *tp; tp->tm_sec;
6820 rm -f conftest.$ac_objext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822 (eval $ac_compile) 2>&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_cv_struct_tm=time.h
6834 echo "$as_me: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6836 ac_cv_struct_tm=sys/time.h
6838 rm -f conftest.$ac_objext conftest.$ac_ext
6840 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6841 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6842 if test $ac_cv_struct_tm = sys/time.h; then
6844 cat >>confdefs.h <<\_ACEOF
6845 #define TM_IN_SYS_TIME 1
6852 for ac_func in vprintf
6854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6855 echo "$as_me:$LINENO: checking for $ac_func" >&5
6856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6857 if eval "test \"\${$as_ac_var+set}\" = set"; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 cat >conftest.$ac_ext <<_ACEOF
6861 #line $LINENO "configure"
6862 #include "confdefs.h"
6863 /* System header to define __stub macros and hopefully few prototypes,
6864 which can conflict with char $ac_func (); below. */
6866 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6875 #ifdef F77_DUMMY_MAIN
6879 int F77_DUMMY_MAIN() { return 1; }
6884 /* The GNU C library defines this for functions which it implements
6885 to always fail with ENOSYS. Some functions are actually named
6886 something starting with __ and the normal name is an alias. */
6887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899 (eval $ac_link) 2>&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 eval "$as_ac_var=yes"
6911 echo "$as_me: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6913 eval "$as_ac_var=no"
6915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6919 if test `eval echo '${'$as_ac_var'}'` = yes; then
6920 cat >>confdefs.h <<_ACEOF
6921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6924 echo "$as_me:$LINENO: checking for _doprnt" >&5
6925 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6926 if test "${ac_cv_func__doprnt+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 cat >conftest.$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 #include "confdefs.h"
6932 /* System header to define __stub macros and hopefully few prototypes,
6933 which can conflict with char _doprnt (); below. */
6935 /* Override any gcc2 internal prototype to avoid an error. */
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6944 #ifdef F77_DUMMY_MAIN
6948 int F77_DUMMY_MAIN() { return 1; }
6953 /* The GNU C library defines this for functions which it implements
6954 to always fail with ENOSYS. Some functions are actually named
6955 something starting with __ and the normal name is an alias. */
6956 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_cv_func__doprnt=yes
6980 echo "$as_me: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6982 ac_cv_func__doprnt=no
6984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6986 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6987 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6988 if test $ac_cv_func__doprnt = yes; then
6990 cat >>confdefs.h <<\_ACEOF
6991 #define HAVE_DOPRNT 1
7007 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf
7009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7010 echo "$as_me:$LINENO: checking for $ac_func" >&5
7011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7012 if eval "test \"\${$as_ac_var+set}\" = set"; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 cat >conftest.$ac_ext <<_ACEOF
7016 #line $LINENO "configure"
7017 #include "confdefs.h"
7018 /* System header to define __stub macros and hopefully few prototypes,
7019 which can conflict with char $ac_func (); below. */
7021 /* Override any gcc2 internal prototype to avoid an error. */
7025 /* We use char because int might match the return type of a gcc2
7026 builtin and then its argument prototype would still apply. */
7030 #ifdef F77_DUMMY_MAIN
7034 int F77_DUMMY_MAIN() { return 1; }
7039 /* The GNU C library defines this for functions which it implements
7040 to always fail with ENOSYS. Some functions are actually named
7041 something starting with __ and the normal name is an alias. */
7042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054 (eval $ac_link) 2>&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } &&
7058 { ac_try='test -s conftest$ac_exeext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 eval "$as_ac_var=yes"
7066 echo "$as_me: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7068 eval "$as_ac_var=no"
7070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7074 if test `eval echo '${'$as_ac_var'}'` = yes; then
7075 cat >>confdefs.h <<_ACEOF
7076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7082 echo "$as_me:$LINENO: checking for basename" >&5
7083 echo $ECHO_N "checking for basename... $ECHO_C" >&6
7084 if test "${ac_cv_func_basename+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 cat >conftest.$ac_ext <<_ACEOF
7088 #line $LINENO "configure"
7089 #include "confdefs.h"
7090 /* System header to define __stub macros and hopefully few prototypes,
7091 which can conflict with char basename (); below. */
7093 /* Override any gcc2 internal prototype to avoid an error. */
7097 /* We use char because int might match the return type of a gcc2
7098 builtin and then its argument prototype would still apply. */
7102 #ifdef F77_DUMMY_MAIN
7106 int F77_DUMMY_MAIN() { return 1; }
7111 /* The GNU C library defines this for functions which it implements
7112 to always fail with ENOSYS. Some functions are actually named
7113 something starting with __ and the normal name is an alias. */
7114 #if defined (__stub_basename) || defined (__stub___basename)
7124 rm -f conftest.$ac_objext conftest$ac_exeext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -s conftest$ac_exeext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_func_basename=yes
7138 echo "$as_me: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7140 ac_cv_func_basename=no
7142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7144 echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
7145 echo "${ECHO_T}$ac_cv_func_basename" >&6
7147 echo "$as_me:$LINENO: checking for setjmp" >&5
7148 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6
7149 if test "${ac_cv_func_setjmp+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line $LINENO "configure"
7154 #include "confdefs.h"
7155 /* System header to define __stub macros and hopefully few prototypes,
7156 which can conflict with char setjmp (); below. */
7158 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7167 #ifdef F77_DUMMY_MAIN
7171 int F77_DUMMY_MAIN() { return 1; }
7176 /* The GNU C library defines this for functions which it implements
7177 to always fail with ENOSYS. Some functions are actually named
7178 something starting with __ and the normal name is an alias. */
7179 #if defined (__stub_setjmp) || defined (__stub___setjmp)
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -s conftest$ac_exeext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 ac_cv_func_setjmp=yes
7203 echo "$as_me: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7205 ac_cv_func_setjmp=no
7207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7209 echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
7210 echo "${ECHO_T}$ac_cv_func_setjmp" >&6
7212 echo "$as_me:$LINENO: checking for setpriority" >&5
7213 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6
7214 if test "${ac_cv_func_setpriority+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 cat >conftest.$ac_ext <<_ACEOF
7218 #line $LINENO "configure"
7219 #include "confdefs.h"
7220 /* System header to define __stub macros and hopefully few prototypes,
7221 which can conflict with char setpriority (); below. */
7223 /* Override any gcc2 internal prototype to avoid an error. */
7227 /* We use char because int might match the return type of a gcc2
7228 builtin and then its argument prototype would still apply. */
7229 char setpriority ();
7232 #ifdef F77_DUMMY_MAIN
7236 int F77_DUMMY_MAIN() { return 1; }
7241 /* The GNU C library defines this for functions which it implements
7242 to always fail with ENOSYS. Some functions are actually named
7243 something starting with __ and the normal name is an alias. */
7244 #if defined (__stub_setpriority) || defined (__stub___setpriority)
7254 rm -f conftest.$ac_objext conftest$ac_exeext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7256 (eval $ac_link) 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -s conftest$ac_exeext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 ac_cv_func_setpriority=yes
7268 echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 ac_cv_func_setpriority=no
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7274 echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
7275 echo "${ECHO_T}$ac_cv_func_setpriority" >&6
7277 echo "$as_me:$LINENO: checking for time" >&5
7278 echo $ECHO_N "checking for time... $ECHO_C" >&6
7279 if test "${ac_cv_func_time+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 cat >conftest.$ac_ext <<_ACEOF
7283 #line $LINENO "configure"
7284 #include "confdefs.h"
7285 /* System header to define __stub macros and hopefully few prototypes,
7286 which can conflict with char time (); below. */
7288 /* Override any gcc2 internal prototype to avoid an error. */
7292 /* We use char because int might match the return type of a gcc2
7293 builtin and then its argument prototype would still apply. */
7297 #ifdef F77_DUMMY_MAIN
7301 int F77_DUMMY_MAIN() { return 1; }
7306 /* The GNU C library defines this for functions which it implements
7307 to always fail with ENOSYS. Some functions are actually named
7308 something starting with __ and the normal name is an alias. */
7309 #if defined (__stub_time) || defined (__stub___time)
7319 rm -f conftest.$ac_objext conftest$ac_exeext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7321 (eval $ac_link) 2>&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -s conftest$ac_exeext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7333 echo "$as_me: failed program was:" >&5
7334 cat conftest.$ac_ext >&5
7337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7339 echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
7340 echo "${ECHO_T}$ac_cv_func_time" >&6
7342 echo "$as_me:$LINENO: checking for gettimeofday" >&5
7343 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7344 if test "${ac_cv_func_gettimeofday+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 cat >conftest.$ac_ext <<_ACEOF
7348 #line $LINENO "configure"
7349 #include "confdefs.h"
7350 /* System header to define __stub macros and hopefully few prototypes,
7351 which can conflict with char gettimeofday (); below. */
7353 /* Override any gcc2 internal prototype to avoid an error. */
7357 /* We use char because int might match the return type of a gcc2
7358 builtin and then its argument prototype would still apply. */
7359 char gettimeofday ();
7362 #ifdef F77_DUMMY_MAIN
7366 int F77_DUMMY_MAIN() { return 1; }
7371 /* The GNU C library defines this for functions which it implements
7372 to always fail with ENOSYS. Some functions are actually named
7373 something starting with __ and the normal name is an alias. */
7374 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -s conftest$ac_exeext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 ac_cv_func_gettimeofday=yes
7398 echo "$as_me: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7400 ac_cv_func_gettimeofday=no
7402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7404 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
7405 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7408 if test "${OSTYPE}" = "cygwin" ; then
7411 echo "$as_me:$LINENO: checking for getopt_long" >&5
7412 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
7413 if test "${ac_cv_func_getopt_long+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7418 #include "confdefs.h"
7419 /* System header to define __stub macros and hopefully few prototypes,
7420 which can conflict with char getopt_long (); below. */
7422 /* Override any gcc2 internal prototype to avoid an error. */
7426 /* We use char because int might match the return type of a gcc2
7427 builtin and then its argument prototype would still apply. */
7428 char getopt_long ();
7431 #ifdef F77_DUMMY_MAIN
7435 int F77_DUMMY_MAIN() { return 1; }
7440 /* The GNU C library defines this for functions which it implements
7441 to always fail with ENOSYS. Some functions are actually named
7442 something starting with __ and the normal name is an alias. */
7443 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
7453 rm -f conftest.$ac_objext conftest$ac_exeext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7455 (eval $ac_link) 2>&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try='test -s conftest$ac_exeext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_func_getopt_long=yes
7467 echo "$as_me: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7469 ac_cv_func_getopt_long=no
7471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7473 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
7474 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
7475 if test $ac_cv_func_getopt_long = yes; then
7483 if test "${pthread}" = "true" ; then
7485 if test -n "$GCC"; then
7486 CFLAGS="$CFLAGS -pthread -D_REENTRANT"
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_WXTHREADS 1
7495 if test "${getopt_long}" = "false" ; then
7496 my_includes="$my_includes -I../getopt"
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_GETOPT_LONG 1
7501 ctlibs_base="$ctlibs_base -lgetopt"
7502 LDFLAGS="$LDFLAGS -L../getopt"
7506 INCLUDED_GETOPT_LONG_TRUE=
7507 INCLUDED_GETOPT_LONG_FALSE='#'
7509 INCLUDED_GETOPT_LONG_TRUE='#'
7510 INCLUDED_GETOPT_LONG_FALSE=
7514 if test "${readline}" = "true" ; then
7515 ctlibs_base="$ctlibs_base -lreadline"
7516 if test "${ncurses}" = "true"; then
7517 ctlibs_base="$ctlibs_base -lncurses"
7518 elif test "${curses}" = "true"; then
7519 ctlibs_base="$ctlibs_base -lcurses"
7523 echo "$as_me:$LINENO: checking debug" >&5
7524 echo $ECHO_N "checking debug... $ECHO_C" >&6
7525 # Check whether --enable-debug or --disable-debug was given.
7526 if test "${enable_debug+set}" = set; then
7527 enableval="$enable_debug"
7528 case "${enableval}" in
7530 echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7534 echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7537 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
7538 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6
7542 debug=false; echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6
7547 if test "$debug" = "true"; then
7555 if test "$debug" = "true" ; then
7557 cat >>confdefs.h <<\_ACEOF
7562 CFLAGS="-O3 -DNDEBUG -fomit-frame-pointer"
7563 cat >>confdefs.h <<\_ACEOF
7569 echo "$as_me:$LINENO: checking sstream" >&5
7570 echo $ECHO_N "checking sstream... $ECHO_C" >&6
7571 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7572 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ; then
7573 cat >>confdefs.h <<\_ACEOF
7574 #define HAVE_SSTREAM 1
7577 echo "$as_me:$LINENO: result: yes" >&5
7578 echo "${ECHO_T}yes" >&6
7580 echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6
7585 if test -n "$GCC"; then
7586 CFLAGS="$CFLAGS -Wall"
7589 echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
7590 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6
7591 # Check whether --enable-verbose-warnings or --disable-verbose-warnings was given.
7592 if test "${enable_verbose_warnings+set}" = set; then
7593 enableval="$enable_verbose_warnings"
7594 case "$enableval" in
7596 echo "$as_me:$LINENO: result: yes" >&5
7597 echo "${ECHO_T}yes" >&6
7599 if test -n "$GCC"; then
7604 if test -n "$GCC"; then
7605 CFLAGS="$CFLAGS -Wshadow -Wpointer-arith -Wbad-function-cast"
7609 if test -n "$GCC"; then
7610 CFLAGS="$CFLAGS -Wcast-align -Wwrite-strings -Waggregate-return"
7614 if test -n "$GCC"; then
7615 CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
7619 if test -n "$GCC"; then
7620 CFLAGS="$CFLAGS -pedantic"
7624 if test -n "$GCC"; then
7625 CFLAGS="$CFLAGS -Wredundant-decls"
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7636 echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6
7641 echo "$as_me:$LINENO: checking static executables" >&5
7642 echo $ECHO_N "checking static executables... $ECHO_C" >&6
7643 # Check whether --enable-static or --disable-static was given.
7644 if test "${enable_static+set}" = set; then
7645 enableval="$enable_static"
7646 case "$enableval" in
7648 echo "$as_me:$LINENO: result: yes" >&5
7649 echo "${ECHO_T}yes" >&6
7651 if test -n "$GCC"; then
7652 CFLAGS="$CFLAGS --static"
7657 echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6
7662 echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6
7668 # Check whether --with-lam or --without-lam was given.
7669 if test "${with_lam+set}" = set; then
7671 if test "$withval" != "no" ; then
7677 if test "$withval" != "no" ; then
7678 if test "$prefix" != "NONE" ; then
7679 trylamdir="$trylamdir $prefix"
7682 echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
7683 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6
7684 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7685 if test -x "$testlamdir/bin/hcp" ; then
7686 if test "$testlamdir" != "/usr"; then
7687 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7688 CFLAGS="$CFLAGS -I$testlamdir/include"
7690 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7691 lamdir="$testlamdir"
7698 echo "$as_me:$LINENO: result: $lamdir" >&5
7699 echo "${ECHO_T}$lamdir" >&6
7701 echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6
7707 # Check whether --with-ctn or --without-ctn was given.
7708 if test "${with_ctn+set}" = set; then
7710 if test "$withval" != "no" ; then
7716 if test "$withval" != "no" ; then
7717 if test "$prefix" != "NONE" ; then
7718 tryctndir="$tryctndir $prefix"
7721 echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
7722 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6
7723 for testctndir in "." $tryctndir /usr/local /usr/local/ctn /usr /usr/ctn /opt /opt/ctn ; do
7724 if test -f "$testctndir/lib/libctn.a" ; then
7725 if test "$testctndir" != "/usr"; then
7726 LDFLAGS="$LDFLAGS -L$testctndir/lib"
7727 CFLAGS="$CFLAGS -I$testctndir/include"
7729 ctndir="$testctndir"
7731 cat >>confdefs.h <<\_ACEOF
7732 #define HAVE_CTN_DICOM 1
7738 echo "$as_me:$LINENO: result: $ctndir" >&5
7739 echo "${ECHO_T}$ctndir" >&6
7741 echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6
7746 echo "$as_me:$LINENO: checking for web access" >&5
7747 echo $ECHO_N "checking for web access... $ECHO_C" >&6
7749 # Check whether --with-cgibin-dir or --without-cgibin-dir was given.
7750 if test "${with_cgibin_dir+set}" = set; then
7751 withval="$with_cgibin_dir"
7752 cgibindir=$withval ;
7756 # Check whether --with-cgibin-url or --without-cgibin-url was given.
7757 if test "${with_cgibin_url+set}" = set; then
7758 withval="$with_cgibin_url"
7759 cgibinurl=$withval ;
7763 # Check whether --with-webdata-dir or --without-webdata-dir was given.
7764 if test "${with_webdata_dir+set}" = set; then
7765 withval="$with_webdata_dir"
7766 webdatadir=$withval ;
7770 # Check whether --with-webdata-url or --without-webdata-url was given.
7771 if test "${with_webdata_url+set}" = set; then
7772 withval="$with_webdata_url"
7773 webdataurl=$withval ;
7777 # Check whether --with-html-dir or --without-html-dir was given.
7778 if test "${with_html_dir+set}" = set; then
7779 withval="$with_html_dir"
7783 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
7784 cgiprograms="ctsim.cgi ctsim.conf"
7788 if test -n "$htmldir" ; then
7789 htmldata=simulate.html
7794 if test -n "$htmldir"; then
7802 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$htmldir" ; then
7805 echo "$as_me:$LINENO: result: yes" >&5
7806 echo "${ECHO_T}yes" >&6
7807 if test -z "$cgibindir" ; then
7808 { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
7809 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
7810 { (exit 1); exit 1; }; }
7811 elif test -z "$cgibinurl" ; then
7812 { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
7813 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
7814 { (exit 1); exit 1; }; }
7815 elif test -z "$webdatadir" ; then
7816 { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
7817 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
7818 { (exit 1); exit 1; }; }
7819 elif test -z "$webdataurl" ; then
7820 { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
7821 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
7822 { (exit 1); exit 1; }; }
7823 elif test -z "$htmldir" ; then
7824 { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
7825 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
7826 { (exit 1); exit 1; }; }
7829 echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6
7835 if test -n "$lamdir"; then
7844 echo "$as_me:$LINENO: checking for X" >&5
7845 echo $ECHO_N "checking for X... $ECHO_C" >&6
7848 # Check whether --with-x or --without-x was given.
7849 if test "${with_x+set}" = set; then
7853 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7854 if test "x$with_x" = xno; then
7855 # The user explicitly disabled X.
7858 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7859 # Both variables are already set.
7862 if test "${ac_cv_have_x+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 # One or both of the vars are not set, and there is no cached value.
7866 ac_x_includes=no ac_x_libraries=no
7868 if mkdir conftest.dir; then
7870 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7871 cat >Imakefile <<'_ACEOF'
7873 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7875 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7877 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7878 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7879 for ac_extension in a so sl; do
7880 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7881 test -f $ac_im_libdir/libX11.$ac_extension; then
7882 ac_im_usrlibdir=$ac_im_libdir; break
7885 # Screen out bogus values from the imake configuration. They are
7886 # bogus both because they are the default anyway, and because
7887 # using them would break gcc on systems where it needs fixed includes.
7888 case $ac_im_incroot in
7890 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7892 case $ac_im_usrlibdir in
7894 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7901 # Standard set of common directories for X headers.
7902 # Check X11 before X11Rn because it is often a symlink to the current release.
7914 /usr/local/X11/include
7915 /usr/local/X11R6/include
7916 /usr/local/X11R5/include
7917 /usr/local/X11R4/include
7919 /usr/local/include/X11
7920 /usr/local/include/X11R6
7921 /usr/local/include/X11R5
7922 /usr/local/include/X11R4
7926 /usr/XFree86/include/X11
7930 /usr/unsupported/include
7932 /usr/local/x11r5/include
7933 /usr/lpp/Xamples/include
7935 /usr/openwin/include
7936 /usr/openwin/share/include'
7938 if test "$ac_x_includes" = no; then
7939 # Guess where to find include files, by looking for Intrinsic.h.
7940 # First, try using that file with no special directory specified.
7941 cat >conftest.$ac_ext <<_ACEOF
7942 #line $LINENO "configure"
7943 #include "confdefs.h"
7944 #include <X11/Intrinsic.h>
7946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7949 egrep -v '^ *\+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } >/dev/null; then
7954 if test -s conftest.err; then
7955 ac_cpp_err=$ac_c_preproc_warn_flag
7962 if test -z "$ac_cpp_err"; then
7963 # We can compile using X headers with no special include directory.
7966 echo "$as_me: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7968 for ac_dir in $ac_x_header_dirs; do
7969 if test -r "$ac_dir/X11/Intrinsic.h"; then
7970 ac_x_includes=$ac_dir
7975 rm -f conftest.err conftest.$ac_ext
7976 fi # $ac_x_includes = no
7978 if test "$ac_x_libraries" = no; then
7979 # Check for the libraries.
7980 # See if we find them without any special options.
7981 # Don't add to $LIBS permanently.
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7986 #include "confdefs.h"
7987 #include <X11/Intrinsic.h>
7988 #ifdef F77_DUMMY_MAIN
7992 int F77_DUMMY_MAIN() { return 1; }
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8004 (eval $ac_link) 2>&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest$ac_exeext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8015 # We can link X programs with no special library path.
8018 echo "$as_me: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8021 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8023 # Don't even attempt the hair of trying to link an X program!
8024 for ac_extension in a so sl; do
8025 if test -r $ac_dir/libXt.$ac_extension; then
8026 ac_x_libraries=$ac_dir
8032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8033 fi # $ac_x_libraries = no
8035 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8036 # Didn't find X anywhere. Cache the known absence of X.
8037 ac_cv_have_x="have_x=no"
8039 # Record where we found X for the cache.
8040 ac_cv_have_x="have_x=yes \
8041 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8046 eval "$ac_cv_have_x"
8049 if test "$have_x" != yes; then
8050 echo "$as_me:$LINENO: result: $have_x" >&5
8051 echo "${ECHO_T}$have_x" >&6
8054 # If each of the values was on the command line, it overrides each guess.
8055 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8056 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8057 # Update the cache value to reflect the command line values.
8058 ac_cv_have_x="have_x=yes \
8059 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8060 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8061 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8064 if test "$no_x" = yes; then
8065 # Not all programs may use this symbol, but it does not hurt to define it.
8067 cat >>confdefs.h <<\_ACEOF
8068 #define X_DISPLAY_MISSING 1
8071 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8073 if test -n "$x_includes"; then
8074 X_CFLAGS="$X_CFLAGS -I$x_includes"
8077 # It would also be nice to do this for all -L options, not just this one.
8078 if test -n "$x_libraries"; then
8079 X_LIBS="$X_LIBS -L$x_libraries"
8080 # For Solaris; some versions of Sun CC require a space after -R and
8081 # others require no space. Words are not sufficient . . . .
8082 case `(uname -sr) 2>/dev/null` in
8084 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8085 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8086 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8087 cat >conftest.$ac_ext <<_ACEOF
8088 #line $LINENO "configure"
8089 #include "confdefs.h"
8091 #ifdef F77_DUMMY_MAIN
8095 int F77_DUMMY_MAIN() { return 1; }
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8119 echo "$as_me: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8124 if test $ac_R_nospace = yes; then
8125 echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8127 X_LIBS="$X_LIBS -R$x_libraries"
8129 LIBS="$ac_xsave_LIBS -R $x_libraries"
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 #include "confdefs.h"
8134 #ifdef F77_DUMMY_MAIN
8138 int F77_DUMMY_MAIN() { return 1; }
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8150 (eval $ac_link) 2>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -s conftest$ac_exeext'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8162 echo "$as_me: failed program was:" >&5
8163 cat conftest.$ac_ext >&5
8166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8167 if test $ac_R_space = yes; then
8168 echo "$as_me:$LINENO: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8170 X_LIBS="$X_LIBS -R $x_libraries"
8172 echo "$as_me:$LINENO: result: neither works" >&5
8173 echo "${ECHO_T}neither works" >&6
8180 # Check for system-dependent libraries X programs must link with.
8181 # Do this before checking for the system-independent R6 libraries
8182 # (-lICE), since we may need -lsocket or whatever for X linking.
8184 if test "$ISC" = yes; then
8185 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8187 # Martyn Johnson says this is needed for Ultrix, if the X
8188 # libraries were built with DECnet support. And Karl Berry says
8189 # the Alpha needs dnet_stub (dnet does not exist).
8190 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8191 cat >conftest.$ac_ext <<_ACEOF
8192 #line $LINENO "configure"
8193 #include "confdefs.h"
8195 /* Override any gcc2 internal prototype to avoid an error. */
8199 /* We use char because int might match the return type of a gcc2
8200 builtin and then its argument prototype would still apply. */
8201 char XOpenDisplay ();
8202 #ifdef F77_DUMMY_MAIN
8206 int F77_DUMMY_MAIN() { return 1; }
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8218 (eval $ac_link) 2>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8230 echo "$as_me: failed program was:" >&5
8231 cat conftest.$ac_ext >&5
8232 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8233 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8234 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_check_lib_save_LIBS=$LIBS
8239 cat >conftest.$ac_ext <<_ACEOF
8240 #line $LINENO "configure"
8241 #include "confdefs.h"
8243 /* Override any gcc2 internal prototype to avoid an error. */
8247 /* We use char because int might match the return type of a gcc2
8248 builtin and then its argument prototype would still apply. */
8250 #ifdef F77_DUMMY_MAIN
8254 int F77_DUMMY_MAIN() { return 1; }
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -s conftest$ac_exeext'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 ac_cv_lib_dnet_dnet_ntoa=yes
8278 echo "$as_me: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8280 ac_cv_lib_dnet_dnet_ntoa=no
8282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8283 LIBS=$ac_check_lib_save_LIBS
8285 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8286 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8287 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8288 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8291 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8292 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8293 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8294 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 ac_check_lib_save_LIBS=$LIBS
8298 LIBS="-ldnet_stub $LIBS"
8299 cat >conftest.$ac_ext <<_ACEOF
8300 #line $LINENO "configure"
8301 #include "confdefs.h"
8303 /* Override any gcc2 internal prototype to avoid an error. */
8307 /* We use char because int might match the return type of a gcc2
8308 builtin and then its argument prototype would still apply. */
8310 #ifdef F77_DUMMY_MAIN
8314 int F77_DUMMY_MAIN() { return 1; }
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -s conftest$ac_exeext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8336 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8338 echo "$as_me: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 ac_cv_lib_dnet_stub_dnet_ntoa=no
8342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8345 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8346 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8347 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8348 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8354 LIBS="$ac_xsave_LIBS"
8356 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8357 # to get the SysV transport functions.
8358 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8360 # The nsl library prevents programs from opening the X display
8361 # on Irix 5.2, according to T.E. Dickey.
8362 # The functions gethostbyname, getservbyname, and inet_addr are
8363 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8364 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8365 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8366 if test "${ac_cv_func_gethostbyname+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 cat >conftest.$ac_ext <<_ACEOF
8370 #line $LINENO "configure"
8371 #include "confdefs.h"
8372 /* System header to define __stub macros and hopefully few prototypes,
8373 which can conflict with char gethostbyname (); below. */
8375 /* Override any gcc2 internal prototype to avoid an error. */
8379 /* We use char because int might match the return type of a gcc2
8380 builtin and then its argument prototype would still apply. */
8381 char gethostbyname ();
8384 #ifdef F77_DUMMY_MAIN
8388 int F77_DUMMY_MAIN() { return 1; }
8393 /* The GNU C library defines this for functions which it implements
8394 to always fail with ENOSYS. Some functions are actually named
8395 something starting with __ and the normal name is an alias. */
8396 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408 (eval $ac_link) 2>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -s conftest$ac_exeext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_cv_func_gethostbyname=yes
8420 echo "$as_me: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8422 ac_cv_func_gethostbyname=no
8424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8427 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8429 if test $ac_cv_func_gethostbyname = no; then
8430 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8431 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8432 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_check_lib_save_LIBS=$LIBS
8437 cat >conftest.$ac_ext <<_ACEOF
8438 #line $LINENO "configure"
8439 #include "confdefs.h"
8441 /* Override any gcc2 internal prototype to avoid an error. */
8445 /* We use char because int might match the return type of a gcc2
8446 builtin and then its argument prototype would still apply. */
8447 char gethostbyname ();
8448 #ifdef F77_DUMMY_MAIN
8452 int F77_DUMMY_MAIN() { return 1; }
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_lib_nsl_gethostbyname=yes
8476 echo "$as_me: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8478 ac_cv_lib_nsl_gethostbyname=no
8480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8481 LIBS=$ac_check_lib_save_LIBS
8483 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8484 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8485 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8489 if test $ac_cv_lib_nsl_gethostbyname = no; then
8490 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8491 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8492 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 ac_check_lib_save_LIBS=$LIBS
8497 cat >conftest.$ac_ext <<_ACEOF
8498 #line $LINENO "configure"
8499 #include "confdefs.h"
8501 /* Override any gcc2 internal prototype to avoid an error. */
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8507 char gethostbyname ();
8508 #ifdef F77_DUMMY_MAIN
8512 int F77_DUMMY_MAIN() { return 1; }
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_bsd_gethostbyname=yes
8536 echo "$as_me: failed program was:" >&5
8537 cat conftest.$ac_ext >&5
8538 ac_cv_lib_bsd_gethostbyname=no
8540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8541 LIBS=$ac_check_lib_save_LIBS
8543 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8544 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8545 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8546 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8552 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8553 # socket/setsockopt and other routines are undefined under SCO ODT
8554 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8555 # on later versions), says Simon Leinen: it contains gethostby*
8556 # variants that don't use the nameserver (or something). -lsocket
8557 # must be given before -lnsl if both are needed. We assume that
8558 # if connect needs -lnsl, so does gethostbyname.
8559 echo "$as_me:$LINENO: checking for connect" >&5
8560 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8561 if test "${ac_cv_func_connect+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 connect (); 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_connect) || defined (__stub___connect)
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_connect=yes
8615 echo "$as_me: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8617 ac_cv_func_connect=no
8619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8621 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8622 echo "${ECHO_T}$ac_cv_func_connect" >&6
8624 if test $ac_cv_func_connect = no; then
8625 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8626 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8627 if test "${ac_cv_lib_socket_connect+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 ac_check_lib_save_LIBS=$LIBS
8631 LIBS="-lsocket $X_EXTRA_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_socket_connect=yes
8671 echo "$as_me: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 ac_cv_lib_socket_connect=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_socket_connect" >&5
8679 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8680 if test $ac_cv_lib_socket_connect = yes; then
8681 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8686 # Guillermo Gomez says -lposix is necessary on A/UX.
8687 echo "$as_me:$LINENO: checking for remove" >&5
8688 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8689 if test "${ac_cv_func_remove+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8693 #line $LINENO "configure"
8694 #include "confdefs.h"
8695 /* System header to define __stub macros and hopefully few prototypes,
8696 which can conflict with char remove (); below. */
8698 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8707 #ifdef F77_DUMMY_MAIN
8711 int F77_DUMMY_MAIN() { return 1; }
8716 /* The GNU C library defines this for functions which it implements
8717 to always fail with ENOSYS. Some functions are actually named
8718 something starting with __ and the normal name is an alias. */
8719 #if defined (__stub_remove) || defined (__stub___remove)
8729 rm -f conftest.$ac_objext conftest$ac_exeext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8731 (eval $ac_link) 2>&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -s conftest$ac_exeext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 ac_cv_func_remove=yes
8743 echo "$as_me: failed program was:" >&5
8744 cat conftest.$ac_ext >&5
8745 ac_cv_func_remove=no
8747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8749 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8750 echo "${ECHO_T}$ac_cv_func_remove" >&6
8752 if test $ac_cv_func_remove = no; then
8753 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8754 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8755 if test "${ac_cv_lib_posix_remove+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 ac_check_lib_save_LIBS=$LIBS
8759 LIBS="-lposix $LIBS"
8760 cat >conftest.$ac_ext <<_ACEOF
8761 #line $LINENO "configure"
8762 #include "confdefs.h"
8764 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8771 #ifdef F77_DUMMY_MAIN
8775 int F77_DUMMY_MAIN() { return 1; }
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787 (eval $ac_link) 2>&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -s conftest$ac_exeext'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
8797 ac_cv_lib_posix_remove=yes
8799 echo "$as_me: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 ac_cv_lib_posix_remove=no
8803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8804 LIBS=$ac_check_lib_save_LIBS
8806 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8807 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8808 if test $ac_cv_lib_posix_remove = yes; then
8809 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8814 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8815 echo "$as_me:$LINENO: checking for shmat" >&5
8816 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8817 if test "${ac_cv_func_shmat+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 cat >conftest.$ac_ext <<_ACEOF
8821 #line $LINENO "configure"
8822 #include "confdefs.h"
8823 /* System header to define __stub macros and hopefully few prototypes,
8824 which can conflict with char shmat (); below. */
8826 /* Override any gcc2 internal prototype to avoid an error. */
8830 /* We use char because int might match the return type of a gcc2
8831 builtin and then its argument prototype would still apply. */
8835 #ifdef F77_DUMMY_MAIN
8839 int F77_DUMMY_MAIN() { return 1; }
8844 /* The GNU C library defines this for functions which it implements
8845 to always fail with ENOSYS. Some functions are actually named
8846 something starting with __ and the normal name is an alias. */
8847 #if defined (__stub_shmat) || defined (__stub___shmat)
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -s conftest$ac_exeext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 ac_cv_func_shmat=yes
8871 echo "$as_me: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8877 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8878 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8880 if test $ac_cv_func_shmat = no; then
8881 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8882 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8883 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_check_lib_save_LIBS=$LIBS
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 #include "confdefs.h"
8892 /* Override any gcc2 internal prototype to avoid an error. */
8896 /* We use char because int might match the return type of a gcc2
8897 builtin and then its argument prototype would still apply. */
8899 #ifdef F77_DUMMY_MAIN
8903 int F77_DUMMY_MAIN() { return 1; }
8913 rm -f conftest.$ac_objext conftest$ac_exeext
8914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8915 (eval $ac_link) 2>&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } &&
8919 { ac_try='test -s conftest$ac_exeext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 ac_cv_lib_ipc_shmat=yes
8927 echo "$as_me: failed program was:" >&5
8928 cat conftest.$ac_ext >&5
8929 ac_cv_lib_ipc_shmat=no
8931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8932 LIBS=$ac_check_lib_save_LIBS
8934 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8935 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8936 if test $ac_cv_lib_ipc_shmat = yes; then
8937 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8943 # Check for libraries that X11R6 Xt/Xaw programs need.
8944 ac_save_LDFLAGS=$LDFLAGS
8945 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8946 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8947 # check for ICE first), but we must link in the order -lSM -lICE or
8948 # we get undefined symbols. So assume we have SM if we have ICE.
8949 # These have to be linked with before -lX11, unlike the other
8950 # libraries we check for below, so use a different variable.
8951 # John Interrante, Karl Berry
8952 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8953 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8954 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 ac_check_lib_save_LIBS=$LIBS
8958 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8959 cat >conftest.$ac_ext <<_ACEOF
8960 #line $LINENO "configure"
8961 #include "confdefs.h"
8963 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8969 char IceConnectionNumber ();
8970 #ifdef F77_DUMMY_MAIN
8974 int F77_DUMMY_MAIN() { return 1; }
8979 IceConnectionNumber ();
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_lib_ICE_IceConnectionNumber=yes
8998 echo "$as_me: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9000 ac_cv_lib_ICE_IceConnectionNumber=no
9002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9005 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9006 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9007 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9008 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9011 LDFLAGS=$ac_save_LDFLAGS
9022 X_TOOLKIT_LIBS="-lXt"
9023 X_BASIC_LIBS="-lXext -lX11 -lXmu"
9025 our_saved_LDFLAGS="$LDFLAGS"
9026 LDFLAGS="$X_LIBS $LDFLAGS"
9027 echo "$as_me:$LINENO: checking for XtToolkitThreadInitialize in -lXt" >&5
9028 echo $ECHO_N "checking for XtToolkitThreadInitialize in -lXt... $ECHO_C" >&6
9029 if test "${ac_cv_lib_Xt_XtToolkitThreadInitialize+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 ac_check_lib_save_LIBS=$LIBS
9033 LIBS="-lXt $X_PRE_LIBS $X_BASIC_LIBS $X_EXTRA_LIBS $LIBS"
9034 cat >conftest.$ac_ext <<_ACEOF
9035 #line $LINENO "configure"
9036 #include "confdefs.h"
9038 /* Override any gcc2 internal prototype to avoid an error. */
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9044 char XtToolkitThreadInitialize ();
9045 #ifdef F77_DUMMY_MAIN
9049 int F77_DUMMY_MAIN() { return 1; }
9054 XtToolkitThreadInitialize ();
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try='test -s conftest$ac_exeext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_cv_lib_Xt_XtToolkitThreadInitialize=yes
9073 echo "$as_me: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9075 ac_cv_lib_Xt_XtToolkitThreadInitialize=no
9077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9078 LIBS=$ac_check_lib_save_LIBS
9080 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtToolkitThreadInitialize" >&5
9081 echo "${ECHO_T}$ac_cv_lib_Xt_XtToolkitThreadInitialize" >&6
9082 if test $ac_cv_lib_Xt_XtToolkitThreadInitialize = yes; then
9083 cat >>confdefs.h <<\_ACEOF
9084 #define X_THREAD_SUPPORT 1
9089 LDFLAGS="$our_saved_LDFLAGS"
9091 our_saved_LDFLAGS="$LDFLAGS"
9092 LDFLAGS="$X_LIBS $LDFLAGS"
9093 echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
9094 echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6
9095 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 ac_check_lib_save_LIBS=$LIBS
9099 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
9100 cat >conftest.$ac_ext <<_ACEOF
9101 #line $LINENO "configure"
9102 #include "confdefs.h"
9104 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9110 char XdbeQueryExtension ();
9111 #ifdef F77_DUMMY_MAIN
9115 int F77_DUMMY_MAIN() { return 1; }
9120 XdbeQueryExtension ();
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127 (eval $ac_link) 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_lib_Xext_XdbeQueryExtension=yes
9139 echo "$as_me: failed program was:" >&5
9140 cat conftest.$ac_ext >&5
9141 ac_cv_lib_Xext_XdbeQueryExtension=no
9143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9144 LIBS=$ac_check_lib_save_LIBS
9146 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
9147 echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6
9148 if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
9149 cat >>confdefs.h <<\_ACEOF
9150 #define HAVE_DBE_SUPPORT 1
9155 echo "$as_me:$LINENO: checking for XmbufQueryExtension in -lXext" >&5
9156 echo $ECHO_N "checking for XmbufQueryExtension in -lXext... $ECHO_C" >&6
9157 if test "${ac_cv_lib_Xext_XmbufQueryExtension+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 ac_check_lib_save_LIBS=$LIBS
9161 LIBS="-lXext -lX11 "$X_EXTRA_LIBS" $LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 #line $LINENO "configure"
9164 #include "confdefs.h"
9166 /* Override any gcc2 internal prototype to avoid an error. */
9170 /* We use char because int might match the return type of a gcc2
9171 builtin and then its argument prototype would still apply. */
9172 char XmbufQueryExtension ();
9173 #ifdef F77_DUMMY_MAIN
9177 int F77_DUMMY_MAIN() { return 1; }
9182 XmbufQueryExtension ();
9187 rm -f conftest.$ac_objext conftest$ac_exeext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_lib_Xext_XmbufQueryExtension=yes
9201 echo "$as_me: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9203 ac_cv_lib_Xext_XmbufQueryExtension=no
9205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9206 LIBS=$ac_check_lib_save_LIBS
9208 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XmbufQueryExtension" >&5
9209 echo "${ECHO_T}$ac_cv_lib_Xext_XmbufQueryExtension" >&6
9210 if test $ac_cv_lib_Xext_XmbufQueryExtension = yes; then
9211 cat >>confdefs.h <<\_ACEOF
9212 #define HAVE_MBX_SUPPORT 1
9217 LDFLAGS="$our_saved_LDFLAGS"
9218 our_saved_CPPFLAGS="$CPPFLAGS"
9219 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
9222 for ac_header in X11/extensions/Xdbe.h X11/extensions/multibuf.h
9224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9226 echo "$as_me:$LINENO: checking for $ac_header" >&5
9227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9234 # Is the header compilable?
9235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9237 cat >conftest.$ac_ext <<_ACEOF
9238 #line $LINENO "configure"
9239 #include "confdefs.h"
9240 $ac_includes_default
9241 #include <$ac_header>
9243 rm -f conftest.$ac_objext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9245 (eval $ac_compile) 2>&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -s conftest.$ac_objext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_header_compiler=yes
9257 echo "$as_me: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 ac_header_compiler=no
9261 rm -f conftest.$ac_objext conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9263 echo "${ECHO_T}$ac_header_compiler" >&6
9265 # Is the header present?
9266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9270 #include "confdefs.h"
9271 #include <$ac_header>
9273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9276 egrep -v '^ *\+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } >/dev/null; then
9281 if test -s conftest.err; then
9282 ac_cpp_err=$ac_c_preproc_warn_flag
9289 if test -z "$ac_cpp_err"; then
9290 ac_header_preproc=yes
9292 echo "$as_me: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9294 ac_header_preproc=no
9296 rm -f conftest.err conftest.$ac_ext
9297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9298 echo "${ECHO_T}$ac_header_preproc" >&6
9300 # So? What about this header?
9301 case $ac_header_compiler:$ac_header_preproc in
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9315 echo "$as_me:$LINENO: checking for $ac_header" >&5
9316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 eval "$as_ac_Header=$ac_header_preproc"
9322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9327 cat >>confdefs.h <<_ACEOF
9328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335 CPPFLAGS="$our_saved_CPPFLAGS"
9339 if test "x$no_x" = "xyes"; then
9347 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
9350 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9352 echo "$as_me:$LINENO: checking for X" >&5
9353 echo $ECHO_N "checking for X... $ECHO_C" >&6
9354 if test "$no_x" != "yes" ; then
9355 cat >>confdefs.h <<\_ACEOF
9359 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib"
9360 ctlib_graphics="$ctlibs_base -lctgraphics"
9361 echo "$as_me:$LINENO: result: yes" >&5
9362 echo "${ECHO_T}yes" >&6
9363 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
9364 if test "$libgl" = "true" ; then
9365 ctlib_graphics="$ctlib_graphics -lglut -lGL -lGLU"
9366 if test "$wxwin" = "true" ; then
9367 ctlib_graphics="$ctlib_graphics -lwx_gtk_gl-2.2"
9370 if test "$wxwin" = "true" ; then
9371 cat >>confdefs.h <<\_ACEOF
9386 echo "$as_me:$LINENO: result: no" >&5
9387 echo "${ECHO_T}no" >&6
9390 if test "$png" = "true" ; then
9391 ctlibs_tools="$ctlibs_tools -lpng"
9393 if test "$zlib" = "true" ; then
9394 ctlibs_tools="$ctlibs_tools -lz"
9396 if test "$fftw" = "true" ; then
9397 ctlibs_tools="$ctlibs_tools -lrfftw -lfftw"
9399 if test "$ctn" = "true"; then
9400 ctlibs_tools="$ctlibs_tools -lctn"
9403 echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
9404 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6
9405 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 ac_check_lib_save_LIBS=$LIBS
9409 LIBS="-ldmallocxx $LIBS"
9410 cat >conftest.$ac_ext <<_ACEOF
9411 #line $LINENO "configure"
9412 #include "confdefs.h"
9415 #ifdef F77_DUMMY_MAIN
9419 int F77_DUMMY_MAIN() { return 1; }
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } &&
9435 { ac_try='test -s conftest$ac_exeext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_cv_lib_dmallocxx_main=yes
9443 echo "$as_me: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9445 ac_cv_lib_dmallocxx_main=no
9447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9448 LIBS=$ac_check_lib_save_LIBS
9450 echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
9451 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6
9452 if test $ac_cv_lib_dmallocxx_main = yes; then
9458 echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
9459 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6
9460 # Check whether --enable-dmalloc or --disable-dmalloc was given.
9461 if test "${enable_dmalloc+set}" = set; then
9462 enableval="$enable_dmalloc"
9463 case "${enableval}" in
9464 yes) usedmalloc=true
9465 echo "$as_me:$LINENO: result: yes" >&5
9466 echo "${ECHO_T}yes" >&6
9468 no) usedmalloc=false
9469 echo "$as_me:$LINENO: result: no" >&5
9470 echo "${ECHO_T}no" >&6
9472 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
9473 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6
9477 usedmalloc=false; echo "$as_me:$LINENO: result: no" >&5
9478 echo "${ECHO_T}no" >&6
9481 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
9482 ctlibs_tools="$ctlibs_tools -ldmallocxx"
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_DMALLOC 1
9487 echo "$as_me:$LINENO: result: Using dmalloc" >&5
9488 echo "${ECHO_T}Using dmalloc" >&6
9491 echo "$as_me:$LINENO: checking for main in -lefence" >&5
9492 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9493 if test "${ac_cv_lib_efence_main+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 ac_check_lib_save_LIBS=$LIBS
9497 LIBS="-lefence $LIBS"
9498 cat >conftest.$ac_ext <<_ACEOF
9499 #line $LINENO "configure"
9500 #include "confdefs.h"
9503 #ifdef F77_DUMMY_MAIN
9507 int F77_DUMMY_MAIN() { return 1; }
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -s conftest$ac_exeext'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_cv_lib_efence_main=yes
9531 echo "$as_me: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9533 ac_cv_lib_efence_main=no
9535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9538 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9539 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9540 if test $ac_cv_lib_efence_main = yes; then
9546 echo "$as_me:$LINENO: checking for enable-efence" >&5
9547 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6
9548 # Check whether --enable-efence or --disable-efence was given.
9549 if test "${enable_efence+set}" = set; then
9550 enableval="$enable_efence"
9551 case "${enableval}" in
9553 echo "$as_me:$LINENO: result: yes" >&5
9554 echo "${ECHO_T}yes" >&6
9557 echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6
9560 *) echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
9561 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6
9565 useefence=false; echo "$as_me:$LINENO: result: no" >&5
9566 echo "${ECHO_T}no" >&6
9569 if test "$efence" = "true" -a "$useefence" = "true" ; then
9570 ctlibs_tools="$ctlibs_tools -lefence"
9571 cat >>confdefs.h <<\_ACEOF
9572 #define HAVE_EFENCE 1
9575 echo "$as_me:$LINENO: result: Using efence" >&5
9576 echo "${ECHO_T}Using efence" >&6
9579 if test "$wxwin" = "true" ; then
9580 if test "$wx_gtk" = "true" ; then
9581 wxcflags=`$wxconfig --cflags`
9582 wxlibs=`$wxconfig --libs`
9584 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
9585 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
9587 CFLAGS="$CFLAGS -I../include $wxcflags"
9588 ctlib_graphics="$ctlib_graphics $wxlibs"
9592 HAVE_WXWINDOWS_TRUE=
9593 HAVE_WXWINDOWS_FALSE='#'
9595 HAVE_WXWINDOWS_TRUE='#'
9596 HAVE_WXWINDOWS_FALSE=
9602 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
9603 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
9606 if test -n "$lamdir" ; then
9607 lamprograms="ctsimtext-lam"
9615 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"
9616 cat >confcache <<\_ACEOF
9617 # This file is a shell script that caches the results of configure
9618 # tests run on this system so they can be shared between configure
9619 # scripts and configure runs, see configure's option --config-cache.
9620 # It is not useful on other systems. If it contains results you don't
9621 # want to keep, you may remove or edit it.
9623 # config.status only pays attention to the cache file if you give it
9624 # the --recheck option to rerun configure.
9626 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9632 # The following way of writing the cache mishandles newlines in values,
9633 # but we know of no workaround that is simple, portable, and efficient.
9634 # So, don't put newlines in cache variables' values.
9635 # Ultrix sh set writes to stderr and can't be redirected directly,
9636 # and sets the high bit in the cache file unless we assign to the vars.
9639 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9641 # `set' does not quote correctly, so add quotes (double-quote
9642 # substitution turns \\\\ into \\, and sed turns \\ into \).
9645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9648 # `set' quotes correctly as required by POSIX, so do not add quotes.
9650 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9659 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9661 if cmp -s $cache_file confcache; then :; else
9662 if test -w $cache_file; then
9663 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9664 cat confcache >$cache_file
9666 echo "not updating unwritable cache $cache_file"
9671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9672 # Let make expand exec_prefix.
9673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9675 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9676 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9677 # trailing colons and then remove the whole line if VPATH becomes empty
9678 # (actually we leave an empty line to preserve line numbers).
9679 if test "x$srcdir" = x.; then
9680 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9681 s/:*\$(srcdir):*/:/;
9682 s/:*\${srcdir}:*/:/;
9684 s/^\([^=]*=[ ]*\):*/\1/;
9690 DEFS=-DHAVE_CONFIG_H
9693 : ${CONFIG_STATUS=./config.status}
9694 ac_clean_files_save=$ac_clean_files
9695 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9696 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9697 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9698 cat >$CONFIG_STATUS <<_ACEOF
9700 # Generated by $as_me.
9701 # Run this file to recreate the current configuration.
9702 # Compiler output produced by configure, useful for debugging
9703 # configure, is in config.log if it exists.
9706 SHELL=\${CONFIG_SHELL-$SHELL}
9709 cat >>$CONFIG_STATUS <<\_ACEOF
9711 ## --------------------- ##
9712 ## M4sh Initialization. ##
9713 ## --------------------- ##
9715 # Be Bourne compatible
9716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9719 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9724 # Support unset when possible.
9725 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9731 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9732 { $as_unset LANG || test "${LANG+set}" != set; } ||
9733 { LANG=C; export LANG; }
9734 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9735 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9736 { LC_ALL=C; export LC_ALL; }
9737 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9738 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9739 { LC_TIME=C; export LC_TIME; }
9740 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9741 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9742 { LC_CTYPE=C; export LC_CTYPE; }
9743 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9744 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9745 { LANGUAGE=C; export LANGUAGE; }
9746 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9747 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9748 { LC_COLLATE=C; export LC_COLLATE; }
9749 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9750 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9751 { LC_NUMERIC=C; export LC_NUMERIC; }
9752 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9753 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9754 { LC_MESSAGES=C; export LC_MESSAGES; }
9757 # Name of the executable.
9758 as_me=`(basename "$0") 2>/dev/null ||
9759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9760 X"$0" : 'X\(//\)$' \| \
9761 X"$0" : 'X\(/\)$' \| \
9762 . : '\(.\)' 2>/dev/null ||
9764 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9765 /^X\/\(\/\/\)$/{ s//\1/; q; }
9766 /^X\/\(\/\).*/{ s//\1/; q; }
9769 # PATH needs CR, and LINENO needs CR and PATH.
9770 # Avoid depending upon Character Ranges.
9771 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9772 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9773 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9774 as_cr_digits='0123456789'
9775 as_cr_alnum=$as_cr_Letters$as_cr_digits
9777 # The user is always right.
9778 if test "${PATH_SEPARATOR+set}" != set; then
9779 echo "#! /bin/sh" >conftest.sh
9780 echo "exit 0" >>conftest.sh
9781 chmod +x conftest.sh
9782 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9793 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9794 test "x$as_lineno_1" != "x$as_lineno_2" &&
9795 test "x$as_lineno_3" = "x$as_lineno_2" || {
9796 # Find who we are. Look in the path if we contain no path at all
9799 *[\\/]* ) as_myself=$0 ;;
9800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 test -z "$as_dir" && as_dir=.
9805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9810 # We did not find ourselves, most probably we were run as `sh COMMAND'
9811 # in which case we are not to be found in the path.
9812 if test "x$as_myself" = x; then
9815 if test ! -f "$as_myself"; then
9816 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9817 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9818 { (exit 1); exit 1; }; }
9820 case $CONFIG_SHELL in
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9826 test -z "$as_dir" && as_dir=.
9827 for as_base in sh bash ksh sh5; do
9830 if ("$as_dir/$as_base" -c '
9833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9834 test "x$as_lineno_1" != "x$as_lineno_2" &&
9835 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9836 CONFIG_SHELL=$as_dir/$as_base
9838 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9846 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9847 # uniformly replaced by the line number. The first 'sed' inserts a
9848 # line-number line before each line; the second 'sed' does the real
9849 # work. The second script uses 'N' to pair each line-number line
9850 # with the numbered line, and appends trailing '-' during
9851 # substitution so that $LINENO is not a special case at line end.
9852 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9853 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9854 sed '=' <$as_myself |
9859 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9862 s,^['$as_cr_digits']*\n,,
9864 chmod +x $as_me.lineno ||
9865 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9866 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9867 { (exit 1); exit 1; }; }
9869 # Don't try to exec as it changes $[0], causing all sort of problems
9870 # (the dirname of $[0] is not the place where we might find the
9871 # original and so on. Autoconf is especially sensible to this).
9873 # Exit status is that of the last command.
9878 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9879 *c*,-n*) ECHO_N= ECHO_C='
9881 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9882 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9885 if expr a : '\(a\)' >/dev/null 2>&1; then
9891 rm -f conf$$ conf$$.exe conf$$.file
9893 if ln -s conf$$.file conf$$ 2>/dev/null; then
9894 # We could just check for DJGPP; but this test a) works b) is more generic
9895 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9896 if test -f conf$$.exe; then
9897 # Don't use ln at all; we don't have any links
9902 elif ln conf$$.file conf$$ 2>/dev/null; then
9907 rm -f conf$$ conf$$.exe conf$$.file
9909 as_executable_p="test -f"
9911 # Sed expression to map a string onto a valid CPP name.
9912 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9914 # Sed expression to map a string onto a valid variable name.
9915 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9919 # We need space, tab and new line, in precisely that order.
9925 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9930 # report actual input values of CONFIG_FILES etc. instead of their
9931 # values after options handling. Logging --version etc. is OK.
9935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9936 ## Running $as_me. ##
9941 This file was extended by $as_me, which was
9942 generated by GNU Autoconf 2.53. Invocation command line was
9944 CONFIG_FILES = $CONFIG_FILES
9945 CONFIG_HEADERS = $CONFIG_HEADERS
9946 CONFIG_LINKS = $CONFIG_LINKS
9947 CONFIG_COMMANDS = $CONFIG_COMMANDS
9951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9955 # Files that config.status was made for.
9956 if test -n "$ac_config_files"; then
9957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9960 if test -n "$ac_config_headers"; then
9961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9964 if test -n "$ac_config_links"; then
9965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9968 if test -n "$ac_config_commands"; then
9969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9972 cat >>$CONFIG_STATUS <<\_ACEOF
9975 \`$as_me' instantiates files from templates according to the
9976 current configuration.
9978 Usage: $0 [OPTIONS] [FILE]...
9980 -h, --help print this help, then exit
9981 -V, --version print version number, then exit
9982 -d, --debug don't remove temporary files
9983 --recheck update $as_me by reconfiguring in the same conditions
9984 --file=FILE[:TEMPLATE]
9985 instantiate the configuration file FILE
9986 --header=FILE[:TEMPLATE]
9987 instantiate the configuration header FILE
9989 Configuration files:
9992 Configuration headers:
9995 Configuration commands:
9998 Report bugs to <bug-autoconf@gnu.org>."
10001 cat >>$CONFIG_STATUS <<_ACEOF
10004 configured by $0, generated by GNU Autoconf 2.53,
10005 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10007 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10008 Free Software Foundation, Inc.
10009 This config.status script is free software; the Free Software Foundation
10010 gives unlimited permission to copy, distribute and modify it."
10015 cat >>$CONFIG_STATUS <<\_ACEOF
10016 # If no file are specified by the user, then we need to provide default
10017 # value. By we need to know if files were specified by the user.
10023 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10024 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10026 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10030 *) # This is not an option, so the user has probably given explicit
10032 ac_need_defaults=false;;
10036 # Handling of the options.
10038 cat >>$CONFIG_STATUS <<_ACEOF
10039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10040 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10041 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10043 cat >>$CONFIG_STATUS <<\_ACEOF
10044 --version | --vers* | -V )
10045 echo "$ac_cs_version"; exit 0 ;;
10047 # Conflict between --help and --header
10048 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10049 Try \`$0 --help' for more information." >&5
10050 echo "$as_me: error: ambiguous option: $1
10051 Try \`$0 --help' for more information." >&2;}
10052 { (exit 1); exit 1; }; };;
10053 --help | --hel | -h )
10054 echo "$ac_cs_usage"; exit 0 ;;
10055 --debug | --d* | -d )
10057 --file | --fil | --fi | --f )
10059 CONFIG_FILES="$CONFIG_FILES $1"
10060 ac_need_defaults=false;;
10061 --header | --heade | --head | --hea )
10063 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10064 ac_need_defaults=false;;
10066 # This is an error.
10067 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10068 Try \`$0 --help' for more information." >&5
10069 echo "$as_me: error: unrecognized option: $1
10070 Try \`$0 --help' for more information." >&2;}
10071 { (exit 1); exit 1; }; } ;;
10073 *) ac_config_targets="$ac_config_targets $1" ;;
10081 cat >>$CONFIG_STATUS <<_ACEOF
10083 # INIT-COMMANDS section.
10092 cat >>$CONFIG_STATUS <<\_ACEOF
10093 for ac_config_target in $ac_config_targets
10095 case "$ac_config_target" in
10096 # Handling of arguments.
10097 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10098 "libctgraphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
10099 "libctsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
10100 "libctsim/Makefile" ) CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
10101 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10102 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10103 "cgi-bin/ctsim.cgi" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
10104 "cgi-bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
10105 "html/simulate.html" ) CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
10106 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
10107 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10108 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
10109 "tools/sample-ctsim.sh" ) CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
10110 "cgi-bin/ctsim.conf" ) CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
10111 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10112 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10113 "helical/Makefile" ) CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
10114 "helical/sample-helical.sh" ) CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
10115 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10116 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10117 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10118 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10119 { (exit 1); exit 1; }; };;
10123 # If the user did not use the arguments to specify the items to instantiate,
10124 # then the envvar interface is used. Set only those that are not.
10125 # We use the long form for the default assignment because of an extremely
10126 # bizarre bug on SunOS 4.1.3.
10127 if $ac_need_defaults; then
10128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10133 # Create a temporary directory, and hook for its removal unless debugging.
10136 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10137 trap '{ (exit 1); exit 1; }' 1 2 13 15
10140 # Create a (secure) tmp directory for tmp files.
10143 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10144 test -n "$tmp" && test -d "$tmp"
10147 tmp=$TMPDIR/cs$$-$RANDOM
10148 (umask 077 && mkdir $tmp)
10151 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10152 { (exit 1); exit 1; }
10157 cat >>$CONFIG_STATUS <<_ACEOF
10160 # CONFIG_FILES section.
10163 # No need to generate the scripts if there are no CONFIG_FILES.
10164 # This happens for instance when ./config.status config.h
10165 if test -n "\$CONFIG_FILES"; then
10166 # Protect against being on the right side of a sed subst in config.status.
10167 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10168 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10169 s,@SHELL@,$SHELL,;t t
10170 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10171 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10172 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10173 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10174 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10175 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10176 s,@exec_prefix@,$exec_prefix,;t t
10177 s,@prefix@,$prefix,;t t
10178 s,@program_transform_name@,$program_transform_name,;t t
10179 s,@bindir@,$bindir,;t t
10180 s,@sbindir@,$sbindir,;t t
10181 s,@libexecdir@,$libexecdir,;t t
10182 s,@datadir@,$datadir,;t t
10183 s,@sysconfdir@,$sysconfdir,;t t
10184 s,@sharedstatedir@,$sharedstatedir,;t t
10185 s,@localstatedir@,$localstatedir,;t t
10186 s,@libdir@,$libdir,;t t
10187 s,@includedir@,$includedir,;t t
10188 s,@oldincludedir@,$oldincludedir,;t t
10189 s,@infodir@,$infodir,;t t
10190 s,@mandir@,$mandir,;t t
10191 s,@build_alias@,$build_alias,;t t
10192 s,@host_alias@,$host_alias,;t t
10193 s,@target_alias@,$target_alias,;t t
10194 s,@DEFS@,$DEFS,;t t
10195 s,@ECHO_C@,$ECHO_C,;t t
10196 s,@ECHO_N@,$ECHO_N,;t t
10197 s,@ECHO_T@,$ECHO_T,;t t
10198 s,@LIBS@,$LIBS,;t t
10199 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10200 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10201 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10202 s,@PACKAGE@,$PACKAGE,;t t
10203 s,@VERSION@,$VERSION,;t t
10204 s,@ACLOCAL@,$ACLOCAL,;t t
10205 s,@AUTOCONF@,$AUTOCONF,;t t
10206 s,@AUTOMAKE@,$AUTOMAKE,;t t
10207 s,@AUTOHEADER@,$AUTOHEADER,;t t
10208 s,@MAKEINFO@,$MAKEINFO,;t t
10209 s,@SET_MAKE@,$SET_MAKE,;t t
10211 s,@RANLIB@,$RANLIB,;t t
10212 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10214 s,@CFLAGS@,$CFLAGS,;t t
10215 s,@LDFLAGS@,$LDFLAGS,;t t
10216 s,@CPPFLAGS@,$CPPFLAGS,;t t
10217 s,@ac_ct_CC@,$ac_ct_CC,;t t
10218 s,@EXEEXT@,$EXEEXT,;t t
10219 s,@OBJEXT@,$OBJEXT,;t t
10221 s,@CXXFLAGS@,$CXXFLAGS,;t t
10222 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10223 s,@wxconfig@,$wxconfig,;t t
10224 s,@build@,$build,;t t
10225 s,@build_cpu@,$build_cpu,;t t
10226 s,@build_vendor@,$build_vendor,;t t
10227 s,@build_os@,$build_os,;t t
10228 s,@host@,$host,;t t
10229 s,@host_cpu@,$host_cpu,;t t
10230 s,@host_vendor@,$host_vendor,;t t
10231 s,@host_os@,$host_os,;t t
10233 s,@INCLUDED_GETOPT_LONG_TRUE@,$INCLUDED_GETOPT_LONG_TRUE,;t t
10234 s,@INCLUDED_GETOPT_LONG_FALSE@,$INCLUDED_GETOPT_LONG_FALSE,;t t
10235 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
10236 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
10237 s,@lamdir@,$lamdir,;t t
10238 s,@mpienable@,$mpienable,;t t
10239 s,@cgibindir@,$cgibindir,;t t
10240 s,@cgibinurl@,$cgibinurl,;t t
10241 s,@webdatadir@,$webdatadir,;t t
10242 s,@webdataurl@,$webdataurl,;t t
10243 s,@htmldir@,$htmldir,;t t
10244 s,@cgiprograms@,$cgiprograms,;t t
10245 s,@htmldata@,$htmldata,;t t
10246 s,@USE_HTML_TRUE@,$USE_HTML_TRUE,;t t
10247 s,@USE_HTML_FALSE@,$USE_HTML_FALSE,;t t
10248 s,@webenabled@,$webenabled,;t t
10249 s,@USE_LAM_TRUE@,$USE_LAM_TRUE,;t t
10250 s,@USE_LAM_FALSE@,$USE_LAM_FALSE,;t t
10251 s,@X_CFLAGS@,$X_CFLAGS,;t t
10252 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10253 s,@X_LIBS@,$X_LIBS,;t t
10254 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10255 s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
10256 s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
10257 s,@NO_X_TRUE@,$NO_X_TRUE,;t t
10258 s,@NO_X_FALSE@,$NO_X_FALSE,;t t
10259 s,@my_includes@,$my_includes,;t t
10260 s,@HAVE_SGP_TRUE@,$HAVE_SGP_TRUE,;t t
10261 s,@HAVE_SGP_FALSE@,$HAVE_SGP_FALSE,;t t
10262 s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
10263 s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
10264 s,@wxcflags@,$wxcflags,;t t
10265 s,@wxlibs@,$wxlibs,;t t
10266 s,@ctlibs@,$ctlibs,;t t
10267 s,@lamprograms@,$lamprograms,;t t
10268 s,@lamdefs@,$lamdefs,;t t
10273 cat >>$CONFIG_STATUS <<\_ACEOF
10274 # Split the substitutions into bite-sized pieces for seds with
10275 # small command number limits, like on Digital OSF/1 and HP-UX.
10276 ac_max_sed_lines=48
10277 ac_sed_frag=1 # Number of current file.
10278 ac_beg=1 # First line for current file.
10279 ac_end=$ac_max_sed_lines # Line after last line for current file.
10282 while $ac_more_lines; do
10283 if test $ac_beg -gt 1; then
10284 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10286 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10288 if test ! -s $tmp/subs.frag; then
10289 ac_more_lines=false
10291 # The purpose of the label and of the branching condition is to
10292 # speed up the sed processing (if there are no `@' at all, there
10293 # is no need to browse any of the substitutions).
10294 # These are the two extra sed commands mentioned above.
10296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10297 if test -z "$ac_sed_cmds"; then
10298 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10300 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10302 ac_sed_frag=`expr $ac_sed_frag + 1`
10304 ac_end=`expr $ac_end + $ac_max_sed_lines`
10307 if test -z "$ac_sed_cmds"; then
10310 fi # test -n "$CONFIG_FILES"
10313 cat >>$CONFIG_STATUS <<\_ACEOF
10314 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10315 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10317 - | *:- | *:-:* ) # input from stdin
10319 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10321 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10322 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10323 * ) ac_file_in=$ac_file.in ;;
10326 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10327 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10329 X"$ac_file" : 'X\(//\)[^/]' \| \
10330 X"$ac_file" : 'X\(//\)$' \| \
10331 X"$ac_file" : 'X\(/\)' \| \
10332 . : '\(.\)' 2>/dev/null ||
10334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10336 /^X\(\/\/\)$/{ s//\1/; q; }
10337 /^X\(\/\).*/{ s//\1/; q; }
10339 { case "$ac_dir" in
10340 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10344 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10345 case $as_mkdir_dir in
10346 # Skip DOS drivespec
10347 ?:) as_incr_dir=$as_mkdir_dir ;;
10349 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10350 test -d "$as_incr_dir" ||
10351 mkdir "$as_incr_dir" ||
10352 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10353 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10354 { (exit 1); exit 1; }; }
10361 if test "$ac_dir" != .; then
10362 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10363 # A "../" for each directory in $ac_dir_suffix.
10364 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10366 ac_dir_suffix= ac_top_builddir=
10370 .) # No --srcdir option. We are building in place.
10372 if test -z "$ac_top_builddir"; then
10375 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10377 [\\/]* | ?:[\\/]* ) # Absolute path.
10378 ac_srcdir=$srcdir$ac_dir_suffix;
10379 ac_top_srcdir=$srcdir ;;
10380 *) # Relative path.
10381 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10382 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10384 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10386 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10387 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10388 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10389 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10393 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10394 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10397 if test x"$ac_file" != x-; then
10398 { echo "$as_me:$LINENO: creating $ac_file" >&5
10399 echo "$as_me: creating $ac_file" >&6;}
10402 # Let's still pretend it is `configure' which instantiates (i.e., don't
10403 # use $as_me), people would be surprised to read:
10404 # /* config.h. Generated by config.status. */
10405 if test x"$ac_file" = x-; then
10408 configure_input="$ac_file. "
10410 configure_input=$configure_input"Generated from `echo $ac_file_in |
10411 sed 's,.*/,,'` by configure."
10413 # First look for the input files in the build tree, otherwise in the
10415 ac_file_inputs=`IFS=:
10416 for f in $ac_file_in; do
10418 -) echo $tmp/stdin ;;
10420 # Absolute (can't be DOS-style, as IFS=:)
10421 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10422 echo "$as_me: error: cannot find input file: $f" >&2;}
10423 { (exit 1); exit 1; }; }
10426 if test -f "$f"; then
10429 elif test -f "$srcdir/$f"; then
10434 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10435 echo "$as_me: error: cannot find input file: $f" >&2;}
10436 { (exit 1); exit 1; }; }
10439 done` || { (exit 1); exit 1; }
10441 cat >>$CONFIG_STATUS <<_ACEOF
10445 cat >>$CONFIG_STATUS <<\_ACEOF
10447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10448 s,@configure_input@,$configure_input,;t t
10449 s,@srcdir@,$ac_srcdir,;t t
10450 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10451 s,@top_srcdir@,$ac_top_srcdir,;t t
10452 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10453 s,@builddir@,$ac_builddir,;t t
10454 s,@abs_builddir@,$ac_abs_builddir,;t t
10455 s,@top_builddir@,$ac_top_builddir,;t t
10456 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10457 s,@INSTALL@,$ac_INSTALL,;t t
10458 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10460 if test x"$ac_file" != x-; then
10461 mv $tmp/out $ac_file
10469 cat >>$CONFIG_STATUS <<\_ACEOF
10472 # CONFIG_HEADER section.
10475 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10476 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10478 # ac_d sets the value in "#define NAME VALUE" lines.
10479 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10480 ac_dB='[ ].*$,\1#\2'
10483 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10484 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10485 ac_uB='$,\1#\2define\3'
10489 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10490 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10492 - | *:- | *:-:* ) # input from stdin
10494 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10495 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10496 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10497 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10498 * ) ac_file_in=$ac_file.in ;;
10501 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10502 echo "$as_me: creating $ac_file" >&6;}
10504 # First look for the input files in the build tree, otherwise in the
10506 ac_file_inputs=`IFS=:
10507 for f in $ac_file_in; do
10509 -) echo $tmp/stdin ;;
10511 # Absolute (can't be DOS-style, as IFS=:)
10512 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10513 echo "$as_me: error: cannot find input file: $f" >&2;}
10514 { (exit 1); exit 1; }; }
10517 if test -f "$f"; then
10520 elif test -f "$srcdir/$f"; then
10525 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10526 echo "$as_me: error: cannot find input file: $f" >&2;}
10527 { (exit 1); exit 1; }; }
10530 done` || { (exit 1); exit 1; }
10531 # Remove the trailing spaces.
10532 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10536 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10537 # `conftest.undefs', that substitutes the proper values into
10538 # config.h.in to produce config.h. The first handles `#define'
10539 # templates, and the second `#undef' templates.
10540 # And first: Protect against being on the right side of a sed subst in
10541 # config.status. Protect against being in an unquoted here document
10542 # in config.status.
10543 rm -f conftest.defines conftest.undefs
10544 # Using a here document instead of a string reduces the quoting nightmare.
10545 # Putting comments in sed scripts is not portable.
10547 # `end' is used to avoid that the second main sed command (meant for
10548 # 0-ary CPP macros) applies to n-ary macro definitions.
10549 # See the Autoconf documentation for `clear'.
10550 cat >confdef2sed.sed <<\_ACEOF
10555 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10557 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10560 # If some macros were called several times there might be several times
10561 # the same #defines, which is useless. Nevertheless, we may not want to
10562 # sort them, since we want the *last* AC-DEFINE to be honored.
10563 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10564 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10565 rm -f confdef2sed.sed
10567 # This sed command replaces #undef with comments. This is necessary, for
10568 # example, in the case of _POSIX_SOURCE, which is predefined and required
10569 # on some systems where configure will not decide to define it.
10570 cat >>conftest.undefs <<\_ACEOF
10571 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10574 # Break up conftest.defines because some shells have a limit on the size
10575 # of here documents, and old seds have small limits too (100 cmds).
10576 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10577 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10578 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10579 echo ' :' >>$CONFIG_STATUS
10580 rm -f conftest.tail
10581 while grep . conftest.defines >/dev/null
10583 # Write a limited-size here document to $tmp/defines.sed.
10584 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10585 # Speed up: don't consider the non `#define' lines.
10586 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10587 # Work around the forget-to-reset-the-flag bug.
10588 echo 't clr' >>$CONFIG_STATUS
10589 echo ': clr' >>$CONFIG_STATUS
10590 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10592 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10594 mv $tmp/out $tmp/in
10596 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10597 rm -f conftest.defines
10598 mv conftest.tail conftest.defines
10600 rm -f conftest.defines
10601 echo ' fi # egrep' >>$CONFIG_STATUS
10602 echo >>$CONFIG_STATUS
10604 # Break up conftest.undefs because some shells have a limit on the size
10605 # of here documents, and old seds have small limits too (100 cmds).
10606 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10607 rm -f conftest.tail
10608 while grep . conftest.undefs >/dev/null
10610 # Write a limited-size here document to $tmp/undefs.sed.
10611 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10612 # Speed up: don't consider the non `#undef'
10613 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10614 # Work around the forget-to-reset-the-flag bug.
10615 echo 't clr' >>$CONFIG_STATUS
10616 echo ': clr' >>$CONFIG_STATUS
10617 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10619 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10621 mv $tmp/out $tmp/in
10623 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10624 rm -f conftest.undefs
10625 mv conftest.tail conftest.undefs
10627 rm -f conftest.undefs
10629 cat >>$CONFIG_STATUS <<\_ACEOF
10630 # Let's still pretend it is `configure' which instantiates (i.e., don't
10631 # use $as_me), people would be surprised to read:
10632 # /* config.h. Generated by config.status. */
10633 if test x"$ac_file" = x-; then
10634 echo "/* Generated by configure. */" >$tmp/config.h
10636 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10638 cat $tmp/in >>$tmp/config.h
10640 if test x"$ac_file" != x-; then
10641 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10642 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10643 echo "$as_me: $ac_file is unchanged" >&6;}
10645 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10646 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10647 X"$ac_file" : 'X\(//\)[^/]' \| \
10648 X"$ac_file" : 'X\(//\)$' \| \
10649 X"$ac_file" : 'X\(/\)' \| \
10650 . : '\(.\)' 2>/dev/null ||
10652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10654 /^X\(\/\/\)$/{ s//\1/; q; }
10655 /^X\(\/\).*/{ s//\1/; q; }
10657 { case "$ac_dir" in
10658 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10662 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10663 case $as_mkdir_dir in
10664 # Skip DOS drivespec
10665 ?:) as_incr_dir=$as_mkdir_dir ;;
10667 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10668 test -d "$as_incr_dir" ||
10669 mkdir "$as_incr_dir" ||
10670 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10671 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10672 { (exit 1); exit 1; }; }
10678 mv $tmp/config.h $ac_file
10682 rm -f $tmp/config.h
10686 cat >>$CONFIG_STATUS <<\_ACEOF
10689 # CONFIG_COMMANDS section.
10691 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10692 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10693 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10694 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10695 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10696 X"$ac_dest" : 'X\(//\)[^/]' \| \
10697 X"$ac_dest" : 'X\(//\)$' \| \
10698 X"$ac_dest" : 'X\(/\)' \| \
10699 . : '\(.\)' 2>/dev/null ||
10701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10703 /^X\(\/\/\)$/{ s//\1/; q; }
10704 /^X\(\/\).*/{ s//\1/; q; }
10708 if test "$ac_dir" != .; then
10709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10710 # A "../" for each directory in $ac_dir_suffix.
10711 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10713 ac_dir_suffix= ac_top_builddir=
10717 .) # No --srcdir option. We are building in place.
10719 if test -z "$ac_top_builddir"; then
10722 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10724 [\\/]* | ?:[\\/]* ) # Absolute path.
10725 ac_srcdir=$srcdir$ac_dir_suffix;
10726 ac_top_srcdir=$srcdir ;;
10727 *) # Relative path.
10728 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10729 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10731 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10733 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10734 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10735 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10736 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10739 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10740 echo "$as_me: executing $ac_dest commands" >&6;}
10742 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10747 cat >>$CONFIG_STATUS <<\_ACEOF
10749 { (exit 0); exit 0; }
10751 chmod +x $CONFIG_STATUS
10752 ac_clean_files=$ac_clean_files_save
10755 # configure is writing to config.log, and then calls config.status.
10756 # config.status does its own redirection, appending to config.log.
10757 # Unfortunately, on DOS this fails, as config.log is still kept open
10758 # by configure, so config.status won't be able to write to it; its
10759 # output is simply discarded. So we exec the FD to /dev/null,
10760 # effectively closing config.log, so it can be properly (re)opened and
10761 # appended to by config.status. When coming back to configure, we
10762 # need to make the FD available again.
10763 if test "$no_create" != yes; then
10766 $SHELL $CONFIG_STATUS || ac_cs_success=false
10768 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10769 # would make configure fail if this is the last instruction.
10770 $ac_cs_success || { (exit 1); exit 1; }