2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
exec 7<&0 </dev/null 6>&1
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556
# so uname gets run too.
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562
ac_default_prefix=/usr/local
564
ac_config_libobj_dir=.
570
SHELL=${CONFIG_SHELL-/bin/sh}
572
# Identity of this package.
579
ac_unique_file="src/main.c"
580
ac_default_prefix="/usr/local"
581
# Factoring default headers for most tests.
582
ac_includes_default="\
584
#ifdef HAVE_SYS_TYPES_H
585
# include <sys/types.h>
587
#ifdef HAVE_SYS_STAT_H
588
# include <sys/stat.h>
594
# ifdef HAVE_STDLIB_H
599
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604
#ifdef HAVE_STRINGS_H
605
# include <strings.h>
607
#ifdef HAVE_INTTYPES_H
608
# include <inttypes.h>
626
program_transform_name
719
ac_precious_vars='build_alias
733
# Initialize some variables set by options.
735
ac_init_version=false
736
# The variables have the same names as the options, with
737
# dashes changed to underlines.
745
program_transform_name=s,x,x,
753
# Installation directory options.
754
# These are left unexpanded so users can "make install exec_prefix=/foo"
755
# and all the variables that are supposed to be based on exec_prefix
756
# by default will actually change.
757
# Use braces instead of parens because sh, perl, etc. also accept them.
758
# (The list follows the same order as the GNU Coding Standards.)
759
bindir='${exec_prefix}/bin'
760
sbindir='${exec_prefix}/sbin'
761
libexecdir='${exec_prefix}/libexec'
762
datarootdir='${prefix}/share'
763
datadir='${datarootdir}'
764
sysconfdir='${prefix}/etc'
765
sharedstatedir='${prefix}/com'
766
localstatedir='${prefix}/var'
767
includedir='${prefix}/include'
768
oldincludedir='/usr/include'
769
docdir='${datarootdir}/doc/${PACKAGE}'
770
infodir='${datarootdir}/info'
775
libdir='${exec_prefix}/lib'
776
localedir='${datarootdir}/locale'
777
mandir='${datarootdir}/man'
783
# If the previous option needs an argument, assign it.
784
if test -n "$ac_prev"; then
785
eval $ac_prev=\$ac_option
791
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795
# Accept the important Cygnus configure options, so we can diagnose typos.
797
case $ac_dashdash$ac_option in
801
-bindir | --bindir | --bindi | --bind | --bin | --bi)
803
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806
-build | --build | --buil | --bui | --bu)
807
ac_prev=build_alias ;;
808
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
809
build_alias=$ac_optarg ;;
811
-cache-file | --cache-file | --cache-fil | --cache-fi \
812
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813
ac_prev=cache_file ;;
814
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816
cache_file=$ac_optarg ;;
819
cache_file=config.cache ;;
821
-datadir | --datadir | --datadi | --datad)
823
-datadir=* | --datadir=* | --datadi=* | --datad=*)
824
datadir=$ac_optarg ;;
826
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827
| --dataroo | --dataro | --datar)
828
ac_prev=datarootdir ;;
829
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831
datarootdir=$ac_optarg ;;
833
-disable-* | --disable-*)
834
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
835
# Reject names that are not valid shell variable names.
836
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
837
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
838
{ (exit 1); exit 1; }; }
839
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
840
eval enable_$ac_feature=no ;;
842
-docdir | --docdir | --docdi | --doc | --do)
844
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852
-enable-* | --enable-*)
853
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854
# Reject names that are not valid shell variable names.
855
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
857
{ (exit 1); exit 1; }; }
858
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859
eval enable_$ac_feature=\$ac_optarg ;;
861
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863
| --exec | --exe | --ex)
864
ac_prev=exec_prefix ;;
865
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867
| --exec=* | --exe=* | --ex=*)
868
exec_prefix=$ac_optarg ;;
870
-gas | --gas | --ga | --g)
871
# Obsolete; use --with-gas.
874
-help | --help | --hel | --he | -h)
876
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877
ac_init_help=recursive ;;
878
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879
ac_init_help=short ;;
881
-host | --host | --hos | --ho)
882
ac_prev=host_alias ;;
883
-host=* | --host=* | --hos=* | --ho=*)
884
host_alias=$ac_optarg ;;
886
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890
htmldir=$ac_optarg ;;
892
-includedir | --includedir | --includedi | --included | --include \
893
| --includ | --inclu | --incl | --inc)
894
ac_prev=includedir ;;
895
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896
| --includ=* | --inclu=* | --incl=* | --inc=*)
897
includedir=$ac_optarg ;;
899
-infodir | --infodir | --infodi | --infod | --info | --inf)
901
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902
infodir=$ac_optarg ;;
904
-libdir | --libdir | --libdi | --libd)
906
-libdir=* | --libdir=* | --libdi=* | --libd=*)
909
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910
| --libexe | --libex | --libe)
911
ac_prev=libexecdir ;;
912
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913
| --libexe=* | --libex=* | --libe=*)
914
libexecdir=$ac_optarg ;;
916
-localedir | --localedir | --localedi | --localed | --locale)
918
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919
localedir=$ac_optarg ;;
921
-localstatedir | --localstatedir | --localstatedi | --localstated \
922
| --localstate | --localstat | --localsta | --localst | --locals)
923
ac_prev=localstatedir ;;
924
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
925
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
926
localstatedir=$ac_optarg ;;
928
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934
# Obsolete; use --without-fp.
937
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
938
| --no-cr | --no-c | -n)
941
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
942
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947
| --oldin | --oldi | --old | --ol | --o)
948
ac_prev=oldincludedir ;;
949
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952
oldincludedir=$ac_optarg ;;
954
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959
-program-prefix | --program-prefix | --program-prefi | --program-pref \
960
| --program-pre | --program-pr | --program-p)
961
ac_prev=program_prefix ;;
962
-program-prefix=* | --program-prefix=* | --program-prefi=* \
963
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964
program_prefix=$ac_optarg ;;
966
-program-suffix | --program-suffix | --program-suffi | --program-suff \
967
| --program-suf | --program-su | --program-s)
968
ac_prev=program_suffix ;;
969
-program-suffix=* | --program-suffix=* | --program-suffi=* \
970
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971
program_suffix=$ac_optarg ;;
973
-program-transform-name | --program-transform-name \
974
| --program-transform-nam | --program-transform-na \
975
| --program-transform-n | --program-transform- \
976
| --program-transform | --program-transfor \
977
| --program-transfo | --program-transf \
978
| --program-trans | --program-tran \
979
| --progr-tra | --program-tr | --program-t)
980
ac_prev=program_transform_name ;;
981
-program-transform-name=* | --program-transform-name=* \
982
| --program-transform-nam=* | --program-transform-na=* \
983
| --program-transform-n=* | --program-transform-=* \
984
| --program-transform=* | --program-transfor=* \
985
| --program-transfo=* | --program-transf=* \
986
| --program-trans=* | --program-tran=* \
987
| --progr-tra=* | --program-tr=* | --program-t=*)
988
program_transform_name=$ac_optarg ;;
990
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995
-psdir | --psdir | --psdi | --psd | --ps)
997
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001
| -silent | --silent | --silen | --sile | --sil)
1004
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008
sbindir=$ac_optarg ;;
1010
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1011
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1012
| --sharedst | --shareds | --shared | --share | --shar \
1014
ac_prev=sharedstatedir ;;
1015
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1016
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1017
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019
sharedstatedir=$ac_optarg ;;
1021
-site | --site | --sit)
1023
-site=* | --site=* | --sit=*)
1026
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1029
srcdir=$ac_optarg ;;
1031
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1032
| --syscon | --sysco | --sysc | --sys | --sy)
1033
ac_prev=sysconfdir ;;
1034
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1035
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1036
sysconfdir=$ac_optarg ;;
1038
-target | --target | --targe | --targ | --tar | --ta | --t)
1039
ac_prev=target_alias ;;
1040
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1041
target_alias=$ac_optarg ;;
1043
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1046
-version | --version | --versio | --versi | --vers | -V)
1047
ac_init_version=: ;;
1050
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1051
# Reject names that are not valid shell variable names.
1052
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1054
{ (exit 1); exit 1; }; }
1055
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1056
eval with_$ac_package=\$ac_optarg ;;
1058
-without-* | --without-*)
1059
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1060
# Reject names that are not valid shell variable names.
1061
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1063
{ (exit 1); exit 1; }; }
1064
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1065
eval with_$ac_package=no ;;
1068
# Obsolete; use --with-x.
1071
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072
| --x-incl | --x-inc | --x-in | --x-i)
1073
ac_prev=x_includes ;;
1074
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076
x_includes=$ac_optarg ;;
1078
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1079
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080
ac_prev=x_libraries ;;
1081
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083
x_libraries=$ac_optarg ;;
1085
-*) { echo "$as_me: error: unrecognized option: $ac_option
1086
Try \`$0 --help' for more information." >&2
1087
{ (exit 1); exit 1; }; }
1091
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1092
# Reject names that are not valid shell variable names.
1093
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1094
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1095
{ (exit 1); exit 1; }; }
1096
eval $ac_envvar=\$ac_optarg
1097
export $ac_envvar ;;
1100
# FIXME: should be removed in autoconf 3.0.
1101
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1110
if test -n "$ac_prev"; then
1111
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112
{ echo "$as_me: error: missing argument to $ac_option" >&2
1113
{ (exit 1); exit 1; }; }
1116
# Be sure to have absolute directory names.
1117
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118
datadir sysconfdir sharedstatedir localstatedir includedir \
1119
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120
libdir localedir mandir
1122
eval ac_val=\$$ac_var
1124
[\\/$]* | ?:[\\/]* ) continue;;
1125
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1127
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1128
{ (exit 1); exit 1; }; }
1131
# There might be people who depend on the old broken behavior: `$host'
1132
# used to hold the argument of --host etc.
1133
# FIXME: To remove some day.
1136
target=$target_alias
1138
# FIXME: To remove some day.
1139
if test "x$host_alias" != x; then
1140
if test "x$build_alias" = x; then
1141
cross_compiling=maybe
1142
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1143
If a cross compiler is detected then cross compile mode will be used." >&2
1144
elif test "x$build_alias" != "x$host_alias"; then
1150
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1152
test "$silent" = yes && exec 6>/dev/null
1155
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1156
ac_ls_di=`ls -di .` &&
1157
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1158
{ echo "$as_me: error: Working directory cannot be determined" >&2
1159
{ (exit 1); exit 1; }; }
1160
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1161
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1162
{ (exit 1); exit 1; }; }
1165
# Find the source files, if location was not specified.
1166
if test -z "$srcdir"; then
1167
ac_srcdir_defaulted=yes
1168
# Try the directory containing this script, then the parent directory.
1169
ac_confdir=`$as_dirname -- "$0" ||
1170
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1171
X"$0" : 'X\(//\)[^/]' \| \
1172
X"$0" : 'X\(//\)$' \| \
1173
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1175
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193
if test ! -r "$srcdir/$ac_unique_file"; then
1197
ac_srcdir_defaulted=no
1199
if test ! -r "$srcdir/$ac_unique_file"; then
1200
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1201
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1202
{ (exit 1); exit 1; }; }
1204
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1207
{ (exit 1); exit 1; }; }
1209
# When building in place, set srcdir=.
1210
if test "$ac_abs_confdir" = "$ac_pwd"; then
1213
# Remove unnecessary trailing slashes from srcdir.
1214
# Double slashes in file names in object file debugging info
1215
# mess up M-x gdb in Emacs.
1217
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1219
for ac_var in $ac_precious_vars; do
1220
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1221
eval ac_env_${ac_var}_value=\$${ac_var}
1222
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1223
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227
# Report the --help message.
1229
if test "$ac_init_help" = "long"; then
1230
# Omit some internal or obsolete options to make the list less imposing.
1231
# This message is too long to be a string in the A/UX 3.1 sh.
1233
\`configure' configures this package to adapt to many kinds of systems.
1235
Usage: $0 [OPTION]... [VAR=VALUE]...
1237
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1238
VAR=VALUE. See below for descriptions of some of the useful variables.
1240
Defaults for the options are specified in brackets.
1243
-h, --help display this help and exit
1244
--help=short display options specific to this package
1245
--help=recursive display the short help of all the included packages
1246
-V, --version display version information and exit
1247
-q, --quiet, --silent do not print \`checking...' messages
1248
--cache-file=FILE cache test results in FILE [disabled]
1249
-C, --config-cache alias for \`--cache-file=config.cache'
1250
-n, --no-create do not create output files
1251
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1253
Installation directories:
1254
--prefix=PREFIX install architecture-independent files in PREFIX
1255
[$ac_default_prefix]
1256
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1259
By default, \`make install' will install all the files in
1260
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1261
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1262
for instance \`--prefix=\$HOME'.
1264
For better control, use the options below.
1266
Fine tuning of the installation directories:
1267
--bindir=DIR user executables [EPREFIX/bin]
1268
--sbindir=DIR system admin executables [EPREFIX/sbin]
1269
--libexecdir=DIR program executables [EPREFIX/libexec]
1270
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1271
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1272
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1273
--libdir=DIR object code libraries [EPREFIX/lib]
1274
--includedir=DIR C header files [PREFIX/include]
1275
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1276
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1277
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1278
--infodir=DIR info documentation [DATAROOTDIR/info]
1279
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1280
--mandir=DIR man documentation [DATAROOTDIR/man]
1281
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1282
--htmldir=DIR html documentation [DOCDIR]
1283
--dvidir=DIR dvi documentation [DOCDIR]
1284
--pdfdir=DIR pdf documentation [DOCDIR]
1285
--psdir=DIR ps documentation [DOCDIR]
1291
--x-includes=DIR X include files are in DIR
1292
--x-libraries=DIR X library files are in DIR
1295
--build=BUILD configure for building on BUILD [guessed]
1296
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1300
if test -n "$ac_init_help"; then
1305
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1306
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1307
--enable-grace-home=DIR define Grace home dir [PREFIX/grace]
1308
--enable-config=FILE define configuration FILE to override
1309
autodetection (not recommended!)
1310
--enable-netcdf enable support for netCDF [yes]
1311
--enable-jpegdrv build JPEG driver [yes]
1312
--enable-pngdrv build PNG driver [yes]
1313
--enable-pdfdrv build PDF driver [yes]
1314
--enable-f77-wrapper include Fortran wrapper for libgrace_np [yes]
1315
--enable-editres enable editres support [yes]
1316
--enable-libhelp use libhelp [no]
1317
--enable-xmhtml use XmHTML widget for on-line help [yes]
1318
--enable-debug turn on debugging [no]
1319
--enable-maintainer enable maintainer's mode [no]
1322
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1323
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1324
--with-cc=PROG use PROG as C compiler [${CC-gcc}]
1325
--with-f77=PROG use PROG as Fortran compiler [${FC-f77}]
1326
--with-extra-incpath=PATH define extra include path (dir1:dir2:...) [none]
1327
--with-extra-ldpath=PATH define extra ld path (dir1:dir2:...) [none]
1328
--with-bundled-t1lib use bundled T1lib [no]
1329
--with-bundled-xbae use bundled Xbae [yes]
1330
--with-fftw use FFTW library for Fourier transforms [yes]
1331
--with-editor=COMMAND define editor ["xterm -e vi"]
1332
--with-helpviewer=COMMAND define help viewer command ["mozilla %s"]
1333
--with-printcmd=PROG use PROG for printing
1334
--with-netcdf-libraries=OBJ use OBJ as netCDF libraries [-lnetcdf]
1335
--with-fftw-library=OBJ use OBJ as FFTW library [-lfftw]
1336
--with-zlib-library=OBJ use OBJ as ZLIB library [-lz]
1337
--with-jpeg-library=OBJ use OBJ as JPEG library [-ljpeg]
1338
--with-png-library=OBJ use OBJ as PNG library [-lpng]
1339
--with-pdf-library=OBJ use OBJ as PDFlib library [-lpdf]
1340
--with-x use the X Window System
1341
--with-motif-library=OBJ use OBJ as Motif library [-lXm]
1342
--with-xmhtml-library=OBJ use OBJ as XmHTML library [-lXmHTML]
1344
Some influential environment variables:
1345
CC C compiler command
1346
CFLAGS C compiler flags
1347
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1348
nonstandard directory <lib dir>
1349
LIBS libraries to pass to the linker, e.g. -l<library>
1350
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1351
you have headers in a nonstandard directory <include dir>
1353
YACC The `Yet Another C Compiler' implementation to use. Defaults to
1354
the first program found out of: `bison -y', `byacc', `yacc'.
1355
YFLAGS The list of arguments that will be passed by default to $YACC.
1356
This script will default YFLAGS to the empty string to avoid a
1357
default value of `-d' given by some make applications.
1358
XMKMF Path to xmkmf, Makefile generator for X Window System
1360
Use these variables to override the choices made by `configure' or to help
1361
it to find libraries and programs with nonstandard names/locations.
1367
if test "$ac_init_help" = "recursive"; then
1368
# If there are subdirs, report their specific --help.
1369
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370
test -d "$ac_dir" || continue
1374
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1377
# A ".." for each directory in $ac_dir_suffix.
1378
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1379
case $ac_top_builddir_sub in
1380
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384
ac_abs_top_builddir=$ac_pwd
1385
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1386
# for backward compatibility:
1387
ac_top_builddir=$ac_top_build_prefix
1390
.) # We are building in place.
1392
ac_top_srcdir=$ac_top_builddir_sub
1393
ac_abs_top_srcdir=$ac_pwd ;;
1394
[\\/]* | ?:[\\/]* ) # Absolute name.
1395
ac_srcdir=$srcdir$ac_dir_suffix;
1396
ac_top_srcdir=$srcdir
1397
ac_abs_top_srcdir=$srcdir ;;
1399
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1400
ac_top_srcdir=$ac_top_build_prefix$srcdir
1401
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1405
cd "$ac_dir" || { ac_status=$?; continue; }
1406
# Check for guested configure.
1407
if test -f "$ac_srcdir/configure.gnu"; then
1409
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1410
elif test -f "$ac_srcdir/configure"; then
1412
$SHELL "$ac_srcdir/configure" --help=recursive
1414
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416
cd "$ac_pwd" || { ac_status=$?; break; }
1420
test -n "$ac_init_help" && exit $ac_status
1421
if $ac_init_version; then
1424
generated by GNU Autoconf 2.61
1426
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1427
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1428
This configure script is free software; the Free Software Foundation
1429
gives unlimited permission to copy, distribute and modify it.
1433
cat >config.log <<_ACEOF
1434
This file contains any messages produced by compilers while
1435
running configure, to aid debugging if configure makes a mistake.
1437
It was created by $as_me, which was
1438
generated by GNU Autoconf 2.61. Invocation command line was
1450
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1451
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1452
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1453
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1454
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1456
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1457
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1459
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1460
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1461
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1462
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1463
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1464
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1465
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473
test -z "$as_dir" && as_dir=.
1474
echo "PATH: $as_dir"
1490
# Keep a trace of the command line.
1491
# Strip out --no-create and --no-recursion so they do not pile up.
1492
# Strip out --silent because we don't want to record it for future runs.
1493
# Also quote any args containing shell meta-characters.
1494
# Make two passes to allow for proper duplicate-argument suppression.
1498
ac_must_keep_next=false
1504
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1505
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1506
| -silent | --silent | --silen | --sile | --sil)
1509
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1514
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1515
if test $ac_must_keep_next = true; then
1516
ac_must_keep_next=false # Got value, back to normal.
1519
*=* | --config-cache | -C | -disable-* | --disable-* \
1520
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1521
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1522
| -with-* | --with-* | -without-* | --without-* | --x)
1523
case "$ac_configure_args0 " in
1524
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527
-* ) ac_must_keep_next=true ;;
1530
ac_configure_args="$ac_configure_args '$ac_arg'"
1535
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1536
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1538
# When interrupted or exit'd, cleanup temporary files, and complete
1539
# config.log. We remove comments because anyway the quotes in there
1540
# would cause problems or look ugly.
1541
# WARNING: Use '\'' to represent an apostrophe within the trap.
1542
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1543
trap 'exit_status=$?
1544
# Save into config.log some information that might help in debugging.
1549
## ---------------- ##
1550
## Cache variables. ##
1551
## ---------------- ##
1554
# The following way of writing the cache mishandles newlines in values,
1556
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1557
eval ac_val=\$$ac_var
1561
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1562
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565
_ | IFS | as_nl) ;; #(
1566
*) $as_unset $ac_var ;;
1571
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1572
*${as_nl}ac_space=\ *)
1574
"s/'\''/'\''\\\\'\'''\''/g;
1575
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1586
## ----------------- ##
1587
## Output variables. ##
1588
## ----------------- ##
1591
for ac_var in $ac_subst_vars
1593
eval ac_val=\$$ac_var
1595
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597
echo "$ac_var='\''$ac_val'\''"
1601
if test -n "$ac_subst_files"; then
1603
## ------------------- ##
1604
## File substitutions. ##
1605
## ------------------- ##
1608
for ac_var in $ac_subst_files
1610
eval ac_val=\$$ac_var
1612
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614
echo "$ac_var='\''$ac_val'\''"
1619
if test -s confdefs.h; then
1629
test "$ac_signal" != 0 &&
1630
echo "$as_me: caught signal $ac_signal"
1631
echo "$as_me: exit $exit_status"
1633
rm -f core *.core core.conftest.* &&
1634
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637
for ac_signal in 1 2 13 15; do
1638
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1643
rm -f -r conftest* confdefs.h
1645
# Predefined preprocessor variables.
1647
cat >>confdefs.h <<_ACEOF
1648
#define PACKAGE_NAME "$PACKAGE_NAME"
1652
cat >>confdefs.h <<_ACEOF
1653
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657
cat >>confdefs.h <<_ACEOF
1658
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1662
cat >>confdefs.h <<_ACEOF
1663
#define PACKAGE_STRING "$PACKAGE_STRING"
1667
cat >>confdefs.h <<_ACEOF
1668
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672
# Let the site file select an alternate cache file if it wants to.
1673
# Prefer explicitly selected file to automatically selected ones.
1674
if test -n "$CONFIG_SITE"; then
1675
set x "$CONFIG_SITE"
1676
elif test "x$prefix" != xNONE; then
1677
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1679
set x "$ac_default_prefix/share/config.site" \
1680
"$ac_default_prefix/etc/config.site"
1685
if test -r "$ac_site_file"; then
1686
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1687
echo "$as_me: loading site script $ac_site_file" >&6;}
1688
sed 's/^/| /' "$ac_site_file" >&5
1693
if test -r "$cache_file"; then
1694
# Some versions of bash will fail to source /dev/null (special
1695
# files actually), so we avoid doing that.
1696
if test -f "$cache_file"; then
1697
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1698
echo "$as_me: loading cache $cache_file" >&6;}
1700
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1701
*) . "./$cache_file";;
1705
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1706
echo "$as_me: creating cache $cache_file" >&6;}
1710
# Check that the precious variables saved in the cache have kept the same
1712
ac_cache_corrupted=false
1713
for ac_var in $ac_precious_vars; do
1714
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1715
eval ac_new_set=\$ac_env_${ac_var}_set
1716
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1717
eval ac_new_val=\$ac_env_${ac_var}_value
1718
case $ac_old_set,$ac_new_set in
1720
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1721
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1722
ac_cache_corrupted=: ;;
1724
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1725
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1726
ac_cache_corrupted=: ;;
1729
if test "x$ac_old_val" != "x$ac_new_val"; then
1730
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1731
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1732
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1733
echo "$as_me: former value: $ac_old_val" >&2;}
1734
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1735
echo "$as_me: current value: $ac_new_val" >&2;}
1736
ac_cache_corrupted=:
1739
# Pass precious variables to config.status.
1740
if test "$ac_new_set" = set; then
1742
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1743
*) ac_arg=$ac_var=$ac_new_val ;;
1745
case " $ac_configure_args " in
1746
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1747
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1751
if $ac_cache_corrupted; then
1752
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1753
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1754
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1755
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1756
{ (exit 1); exit 1; }; }
1776
ac_cpp='$CPP $CPPFLAGS'
1777
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1778
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1779
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1783
for ac_dir in ac-tools "$srcdir"/ac-tools; do
1784
if test -f "$ac_dir/install-sh"; then
1786
ac_install_sh="$ac_aux_dir/install-sh -c"
1788
elif test -f "$ac_dir/install.sh"; then
1790
ac_install_sh="$ac_aux_dir/install.sh -c"
1792
elif test -f "$ac_dir/shtool"; then
1794
ac_install_sh="$ac_aux_dir/shtool install -c"
1798
if test -z "$ac_aux_dir"; then
1799
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&5
1800
echo "$as_me: error: cannot find install-sh or install.sh in ac-tools \"$srcdir\"/ac-tools" >&2;}
1801
{ (exit 1); exit 1; }; }
1804
# These three variables are undocumented and unsupported,
1805
# and are intended to be withdrawn in a future Autoconf release.
1806
# They can cause serious problems if a builder's source tree is in a directory
1807
# whose full name contains unusual characters.
1808
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1809
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1810
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1814
ac_config_headers="$ac_config_headers config.h:ac-tools/config.h.in"
1891
if test "x${prefix}" = "xNONE"
1893
GRACE_HOME=${ac_default_prefix}/grace
1895
GRACE_HOME=${prefix}/grace
1897
# Check whether --enable-grace-home was given.
1898
if test "${enable_grace_home+set}" = set; then
1899
enableval=$enable_grace_home; GRACE_HOME="${enableval}"
1904
# Check whether --enable-config was given.
1905
if test "${enable_config+set}" = set; then
1906
enableval=$enable_config; CONF_FILE="${enableval}"
1912
# Check whether --with-cc was given.
1913
if test "${with_cc+set}" = set; then
1914
withval=$with_cc; CC="${withval}"
1920
# Check whether --with-f77 was given.
1921
if test "${with_f77+set}" = set; then
1922
withval=$with_f77; FC="${withval}"
1927
# Check whether --with-extra-incpath was given.
1928
if test "${with_extra_incpath+set}" = set; then
1929
withval=$with_extra_incpath; CPPFLAGS="${CPPFLAGS} -I`echo ${withval}|sed 's/:/\ -I/g'`"
1934
# Check whether --with-extra-ldpath was given.
1935
if test "${with_extra_ldpath+set}" = set; then
1936
withval=$with_extra_ldpath; LDFLAGS="-L`echo ${withval}|sed 's/:/\ -L/g'` ${LDFLAGS}";
1938
sparc-sun-solaris*) LDFLAGS="-R:${withval} ${LDFLAGS}";;
1945
# Check whether --with-bundled_t1lib was given.
1946
if test "${with_bundled_t1lib+set}" = set; then
1947
withval=$with_bundled_t1lib; case "${withval}" in
1948
yes) bundled_t1lib=true ;;
1949
no) bundled_t1lib=false;;
1950
*) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-bundled-t1lib" >&5
1951
echo "$as_me: error: bad value ${withval} for --with-bundled-t1lib" >&2;}
1952
{ (exit 1); exit 1; }; } ;;
1960
# Check whether --with-bundled_xbae was given.
1961
if test "${with_bundled_xbae+set}" = set; then
1962
withval=$with_bundled_xbae; case "${withval}" in
1963
yes) bundled_xbae=true ;;
1964
no) bundled_xbae=false;;
1965
*) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-bundled-xbae" >&5
1966
echo "$as_me: error: bad value ${withval} for --with-bundled-xbae" >&2;}
1967
{ (exit 1); exit 1; }; } ;;
1974
# Check whether --enable-netcdf was given.
1975
if test "${enable_netcdf+set}" = set; then
1976
enableval=$enable_netcdf; case "${enableval}" in
1979
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-netcdf" >&5
1980
echo "$as_me: error: bad value ${enableval} for --enable-netcdf" >&2;}
1981
{ (exit 1); exit 1; }; } ;;
1989
# Check whether --with-fftw was given.
1990
if test "${with_fftw+set}" = set; then
1991
withval=$with_fftw; case "${withval}" in
1994
*) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-fftw" >&5
1995
echo "$as_me: error: bad value ${withval} for --with-fftw" >&2;}
1996
{ (exit 1); exit 1; }; } ;;
2003
# Check whether --enable-jpegdrv was given.
2004
if test "${enable_jpegdrv+set}" = set; then
2005
enableval=$enable_jpegdrv; case "${enableval}" in
2006
yes) jpegdrv=true ;;
2008
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-jpegdrv" >&5
2009
echo "$as_me: error: bad value ${enableval} for --enable-jpegdrv" >&2;}
2010
{ (exit 1); exit 1; }; } ;;
2017
# Check whether --enable-pngdrv was given.
2018
if test "${enable_pngdrv+set}" = set; then
2019
enableval=$enable_pngdrv; case "${enableval}" in
2022
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pngdrv" >&5
2023
echo "$as_me: error: bad value ${enableval} for --enable-pngdrv" >&2;}
2024
{ (exit 1); exit 1; }; } ;;
2031
# Check whether --enable-pdfdrv was given.
2032
if test "${enable_pdfdrv+set}" = set; then
2033
enableval=$enable_pdfdrv; case "${enableval}" in
2036
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pdfdrv" >&5
2037
echo "$as_me: error: bad value ${enableval} for --enable-pdfdrv" >&2;}
2038
{ (exit 1); exit 1; }; } ;;
2045
# Check whether --enable-f77_wrapper was given.
2046
if test "${enable_f77_wrapper+set}" = set; then
2047
enableval=$enable_f77_wrapper; case "${enableval}" in
2048
yes) f77_wrapper=true ;;
2049
no) f77_wrapper=false;;
2050
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-f77-wrapper" >&5
2051
echo "$as_me: error: bad value ${enableval} for --enable-f77-wrapper" >&2;}
2052
{ (exit 1); exit 1; }; } ;;
2059
# Check whether --enable-editres was given.
2060
if test "${enable_editres+set}" = set; then
2061
enableval=$enable_editres; case "${enableval}" in
2062
yes) editres=true ;;
2064
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-editres" >&5
2065
echo "$as_me: error: bad value ${enableval} for --enable-editres" >&2;}
2066
{ (exit 1); exit 1; }; } ;;
2073
# Check whether --enable-libhelp was given.
2074
if test "${enable_libhelp+set}" = set; then
2075
enableval=$enable_libhelp; case "${enableval}" in
2076
yes) libhelp=true ;;
2078
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libhelp" >&5
2079
echo "$as_me: error: bad value ${enableval} for --enable-libhelp" >&2;}
2080
{ (exit 1); exit 1; }; } ;;
2087
# Check whether --enable-xmhtml was given.
2088
if test "${enable_xmhtml+set}" = set; then
2089
enableval=$enable_xmhtml; case "${enableval}" in
2092
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-xmhtml" >&5
2093
echo "$as_me: error: bad value ${enableval} for --enable-xmhtml" >&2;}
2094
{ (exit 1); exit 1; }; } ;;
2101
if test $xmhtml = true && test $libhelp = true
2103
{ { echo "$as_me:$LINENO: error: can't use both libhelp and XmHTML" >&5
2104
echo "$as_me: error: can't use both libhelp and XmHTML" >&2;}
2105
{ (exit 1); exit 1; }; }
2108
GRACE_EDITOR="'xterm -e vi'"
2110
# Check whether --with-editor was given.
2111
if test "${with_editor+set}" = set; then
2112
withval=$with_editor; GRACE_EDITOR="'${withval}'"
2116
GRACE_HELPVIEWER="'mozilla %s'"
2118
# Check whether --with-helpviewer was given.
2119
if test "${with_helpviewer+set}" = set; then
2120
withval=$with_helpviewer; GRACE_HELPVIEWER="'${withval}'"
2125
# Check whether --with-printcmd was given.
2126
if test "${with_printcmd+set}" = set; then
2127
withval=$with_printcmd; if test "x${withval}" != "x"; then
2128
PRINT_CMD="'${withval}'"
2138
# Check whether --enable-debug was given.
2139
if test "${enable_debug+set}" = set; then
2140
enableval=$enable_debug; case "${enableval}" in
2143
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
2144
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
2145
{ (exit 1); exit 1; }; } ;;
2152
# Check whether --enable-maintainer was given.
2153
if test "${enable_maintainer+set}" = set; then
2154
enableval=$enable_maintainer; case "${enableval}" in
2155
yes) maintainer=true; debug=true ;;
2156
no) maintainer=false ;;
2157
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-maintainer" >&5
2158
echo "$as_me: error: bad value ${enableval} for --enable-maintainer" >&2;}
2159
{ (exit 1); exit 1; }; } ;;
2166
if test $maintainer = true
2168
cat >>confdefs.h <<\_ACEOF
2169
#define WITH_DEBUG 1
2174
if test $f77_wrapper = true; then
2175
cat >>confdefs.h <<\_ACEOF
2176
#define WITH_F77_WRAPPER 1
2182
if test "x$CONF_FILE" != "x"
2184
if test -r $CONF_FILE
2186
{ echo "$as_me:$LINENO: result: --> using \`$CONF_FILE' as config file" >&5
2187
echo "${ECHO_T}--> using \`$CONF_FILE' as config file" >&6; }
2190
{ { echo "$as_me:$LINENO: error: --> Can't open file \`$CONF_FILE' for reading!" >&5
2191
echo "$as_me: error: --> Can't open file \`$CONF_FILE' for reading!" >&2;}
2192
{ (exit 1); exit 1; }; }
2198
LDFLAGS=${LDFLAGS-""}
2199
OPTIMIZE=${OPTIMIZE-""}
2203
# Make sure we can run config.sub.
2204
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2205
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2206
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2207
{ (exit 1); exit 1; }; }
2209
{ echo "$as_me:$LINENO: checking build system type" >&5
2210
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2211
if test "${ac_cv_build+set}" = set; then
2212
echo $ECHO_N "(cached) $ECHO_C" >&6
2214
ac_build_alias=$build_alias
2215
test "x$ac_build_alias" = x &&
2216
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2217
test "x$ac_build_alias" = x &&
2218
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2219
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2220
{ (exit 1); exit 1; }; }
2221
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2222
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2223
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2224
{ (exit 1); exit 1; }; }
2227
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2228
echo "${ECHO_T}$ac_cv_build" >&6; }
2229
case $ac_cv_build in
2231
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2232
echo "$as_me: error: invalid value of canonical build" >&2;}
2233
{ (exit 1); exit 1; }; };;
2236
ac_save_IFS=$IFS; IFS='-'
2242
# Remember, the first character of IFS is used to create $*,
2243
# except with old shells:
2246
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2249
{ echo "$as_me:$LINENO: checking host system type" >&5
2250
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2251
if test "${ac_cv_host+set}" = set; then
2252
echo $ECHO_N "(cached) $ECHO_C" >&6
2254
if test "x$host_alias" = x; then
2255
ac_cv_host=$ac_cv_build
2257
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2258
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2259
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2260
{ (exit 1); exit 1; }; }
2264
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2265
echo "${ECHO_T}$ac_cv_host" >&6; }
2268
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2269
echo "$as_me: error: invalid value of canonical host" >&2;}
2270
{ (exit 1); exit 1; }; };;
2273
ac_save_IFS=$IFS; IFS='-'
2279
# Remember, the first character of IFS is used to create $*,
2280
# except with old shells:
2283
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2288
ac_cpp='$CPP $CPPFLAGS'
2289
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
if test -n "$ac_tool_prefix"; then
2293
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2294
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2295
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2296
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297
if test "${ac_cv_prog_CC+set}" = set; then
2298
echo $ECHO_N "(cached) $ECHO_C" >&6
2300
if test -n "$CC"; then
2301
ac_cv_prog_CC="$CC" # Let the user override the test.
2303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307
test -z "$as_dir" && as_dir=.
2308
for ac_exec_ext in '' $ac_executable_extensions; do
2309
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2311
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321
if test -n "$CC"; then
2322
{ echo "$as_me:$LINENO: result: $CC" >&5
2323
echo "${ECHO_T}$CC" >&6; }
2325
{ echo "$as_me:$LINENO: result: no" >&5
2326
echo "${ECHO_T}no" >&6; }
2331
if test -z "$ac_cv_prog_CC"; then
2333
# Extract the first word of "gcc", so it can be a program name with args.
2334
set dummy gcc; ac_word=$2
2335
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2336
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2338
echo $ECHO_N "(cached) $ECHO_C" >&6
2340
if test -n "$ac_ct_CC"; then
2341
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347
test -z "$as_dir" && as_dir=.
2348
for ac_exec_ext in '' $ac_executable_extensions; do
2349
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350
ac_cv_prog_ac_ct_CC="gcc"
2351
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2361
if test -n "$ac_ct_CC"; then
2362
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2363
echo "${ECHO_T}$ac_ct_CC" >&6; }
2365
{ echo "$as_me:$LINENO: result: no" >&5
2366
echo "${ECHO_T}no" >&6; }
2369
if test "x$ac_ct_CC" = x; then
2372
case $cross_compiling:$ac_tool_warned in
2374
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375
whose name does not start with the host triplet. If you think this
2376
configuration is useful to you, please write to autoconf@gnu.org." >&5
2377
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378
whose name does not start with the host triplet. If you think this
2379
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380
ac_tool_warned=yes ;;
2388
if test -z "$CC"; then
2389
if test -n "$ac_tool_prefix"; then
2390
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2391
set dummy ${ac_tool_prefix}cc; ac_word=$2
2392
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2393
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394
if test "${ac_cv_prog_CC+set}" = set; then
2395
echo $ECHO_N "(cached) $ECHO_C" >&6
2397
if test -n "$CC"; then
2398
ac_cv_prog_CC="$CC" # Let the user override the test.
2400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404
test -z "$as_dir" && as_dir=.
2405
for ac_exec_ext in '' $ac_executable_extensions; do
2406
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407
ac_cv_prog_CC="${ac_tool_prefix}cc"
2408
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418
if test -n "$CC"; then
2419
{ echo "$as_me:$LINENO: result: $CC" >&5
2420
echo "${ECHO_T}$CC" >&6; }
2422
{ echo "$as_me:$LINENO: result: no" >&5
2423
echo "${ECHO_T}no" >&6; }
2429
if test -z "$CC"; then
2430
# Extract the first word of "cc", so it can be a program name with args.
2431
set dummy cc; ac_word=$2
2432
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2433
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434
if test "${ac_cv_prog_CC+set}" = set; then
2435
echo $ECHO_N "(cached) $ECHO_C" >&6
2437
if test -n "$CC"; then
2438
ac_cv_prog_CC="$CC" # Let the user override the test.
2441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445
test -z "$as_dir" && as_dir=.
2446
for ac_exec_ext in '' $ac_executable_extensions; do
2447
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2449
ac_prog_rejected=yes
2453
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460
if test $ac_prog_rejected = yes; then
2461
# We found a bogon in the path, so make sure we never use it.
2462
set dummy $ac_cv_prog_CC
2464
if test $# != 0; then
2465
# We chose a different compiler from the bogus one.
2466
# However, it has the same basename, so the bogon will be chosen
2467
# first if we set CC to just the basename; use the full file name.
2469
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2475
if test -n "$CC"; then
2476
{ echo "$as_me:$LINENO: result: $CC" >&5
2477
echo "${ECHO_T}$CC" >&6; }
2479
{ echo "$as_me:$LINENO: result: no" >&5
2480
echo "${ECHO_T}no" >&6; }
2485
if test -z "$CC"; then
2486
if test -n "$ac_tool_prefix"; then
2487
for ac_prog in cl.exe
2489
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2490
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2491
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2492
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493
if test "${ac_cv_prog_CC+set}" = set; then
2494
echo $ECHO_N "(cached) $ECHO_C" >&6
2496
if test -n "$CC"; then
2497
ac_cv_prog_CC="$CC" # Let the user override the test.
2499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503
test -z "$as_dir" && as_dir=.
2504
for ac_exec_ext in '' $ac_executable_extensions; do
2505
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2507
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517
if test -n "$CC"; then
2518
{ echo "$as_me:$LINENO: result: $CC" >&5
2519
echo "${ECHO_T}$CC" >&6; }
2521
{ echo "$as_me:$LINENO: result: no" >&5
2522
echo "${ECHO_T}no" >&6; }
2526
test -n "$CC" && break
2529
if test -z "$CC"; then
2531
for ac_prog in cl.exe
2533
# Extract the first word of "$ac_prog", so it can be a program name with args.
2534
set dummy $ac_prog; ac_word=$2
2535
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538
echo $ECHO_N "(cached) $ECHO_C" >&6
2540
if test -n "$ac_ct_CC"; then
2541
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547
test -z "$as_dir" && as_dir=.
2548
for ac_exec_ext in '' $ac_executable_extensions; do
2549
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550
ac_cv_prog_ac_ct_CC="$ac_prog"
2551
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561
if test -n "$ac_ct_CC"; then
2562
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2563
echo "${ECHO_T}$ac_ct_CC" >&6; }
2565
{ echo "$as_me:$LINENO: result: no" >&5
2566
echo "${ECHO_T}no" >&6; }
2570
test -n "$ac_ct_CC" && break
2573
if test "x$ac_ct_CC" = x; then
2576
case $cross_compiling:$ac_tool_warned in
2578
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2579
whose name does not start with the host triplet. If you think this
2580
configuration is useful to you, please write to autoconf@gnu.org." >&5
2581
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2582
whose name does not start with the host triplet. If you think this
2583
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2584
ac_tool_warned=yes ;;
2593
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2594
See \`config.log' for more details." >&5
2595
echo "$as_me: error: no acceptable C compiler found in \$PATH
2596
See \`config.log' for more details." >&2;}
2597
{ (exit 1); exit 1; }; }
2599
# Provide some information about the compiler.
2600
echo "$as_me:$LINENO: checking for C compiler version" >&5
2601
ac_compiler=`set X $ac_compile; echo $2`
2602
{ (ac_try="$ac_compiler --version >&5"
2604
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605
*) ac_try_echo=$ac_try;;
2607
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608
(eval "$ac_compiler --version >&5") 2>&5
2610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611
(exit $ac_status); }
2612
{ (ac_try="$ac_compiler -v >&5"
2614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615
*) ac_try_echo=$ac_try;;
2617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618
(eval "$ac_compiler -v >&5") 2>&5
2620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621
(exit $ac_status); }
2622
{ (ac_try="$ac_compiler -V >&5"
2624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625
*) ac_try_echo=$ac_try;;
2627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628
(eval "$ac_compiler -V >&5") 2>&5
2630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631
(exit $ac_status); }
2633
cat >conftest.$ac_ext <<_ACEOF
2636
cat confdefs.h >>conftest.$ac_ext
2637
cat >>conftest.$ac_ext <<_ACEOF
2638
/* end confdefs.h. */
2648
ac_clean_files_save=$ac_clean_files
2649
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2650
# Try to create an executable without -o first, disregard a.out.
2651
# It will help us diagnose broken compilers, and finding out an intuition
2653
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2654
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2655
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2657
# List of possible output files, starting from the most likely.
2658
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2659
# only as a last resort. b.out is created by i960 compilers.
2660
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2662
# The IRIX 6 linker writes into existing files which may not be
2663
# executable, retaining their permissions. Remove them first so a
2664
# subsequent execution test works.
2666
for ac_file in $ac_files
2669
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2670
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2675
if { (ac_try="$ac_link_default"
2677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678
*) ac_try_echo=$ac_try;;
2680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681
(eval "$ac_link_default") 2>&5
2683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684
(exit $ac_status); }; then
2685
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2686
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2687
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2688
# so that the user can short-circuit this test for compilers unknown to
2690
for ac_file in $ac_files ''
2692
test -f "$ac_file" || continue
2694
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2697
# We found the default executable, but exeext='' is most
2701
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2703
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705
# We set ac_cv_exeext here because the later test for it is not
2706
# safe: cross compilers may not add the suffix if given an `-o'
2707
# argument, so we may need to know it at that point already.
2708
# Even if this section looks crufty: it has the advantage of
2715
test "$ac_cv_exeext" = no && ac_cv_exeext=
2721
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2722
echo "${ECHO_T}$ac_file" >&6; }
2723
if test -z "$ac_file"; then
2724
echo "$as_me: failed program was:" >&5
2725
sed 's/^/| /' conftest.$ac_ext >&5
2727
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2728
See \`config.log' for more details." >&5
2729
echo "$as_me: error: C compiler cannot create executables
2730
See \`config.log' for more details." >&2;}
2731
{ (exit 77); exit 77; }; }
2734
ac_exeext=$ac_cv_exeext
2736
# Check that the compiler produces executables we can run. If not, either
2737
# the compiler is broken, or we cross compile.
2738
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2739
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2740
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2741
# If not cross compiling, check that we can run a simple program.
2742
if test "$cross_compiling" != yes; then
2743
if { ac_try='./$ac_file'
2744
{ (case "(($ac_try" in
2745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746
*) ac_try_echo=$ac_try;;
2748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749
(eval "$ac_try") 2>&5
2751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752
(exit $ac_status); }; }; then
2755
if test "$cross_compiling" = maybe; then
2758
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2759
If you meant to cross compile, use \`--host'.
2760
See \`config.log' for more details." >&5
2761
echo "$as_me: error: cannot run C compiled programs.
2762
If you meant to cross compile, use \`--host'.
2763
See \`config.log' for more details." >&2;}
2764
{ (exit 1); exit 1; }; }
2768
{ echo "$as_me:$LINENO: result: yes" >&5
2769
echo "${ECHO_T}yes" >&6; }
2771
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2772
ac_clean_files=$ac_clean_files_save
2773
# Check that the compiler produces executables we can run. If not, either
2774
# the compiler is broken, or we cross compile.
2775
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2776
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2777
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2778
echo "${ECHO_T}$cross_compiling" >&6; }
2780
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2781
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2782
if { (ac_try="$ac_link"
2784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785
*) ac_try_echo=$ac_try;;
2787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788
(eval "$ac_link") 2>&5
2790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
(exit $ac_status); }; then
2792
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2793
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2794
# work properly (i.e., refer to `conftest.exe'), while it won't with
2796
for ac_file in conftest.exe conftest conftest.*; do
2797
test -f "$ac_file" || continue
2799
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2807
See \`config.log' for more details." >&5
2808
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2809
See \`config.log' for more details." >&2;}
2810
{ (exit 1); exit 1; }; }
2813
rm -f conftest$ac_cv_exeext
2814
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2815
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2817
rm -f conftest.$ac_ext
2818
EXEEXT=$ac_cv_exeext
2820
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2821
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2822
if test "${ac_cv_objext+set}" = set; then
2823
echo $ECHO_N "(cached) $ECHO_C" >&6
2825
cat >conftest.$ac_ext <<_ACEOF
2828
cat confdefs.h >>conftest.$ac_ext
2829
cat >>conftest.$ac_ext <<_ACEOF
2830
/* end confdefs.h. */
2840
rm -f conftest.o conftest.obj
2841
if { (ac_try="$ac_compile"
2843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844
*) ac_try_echo=$ac_try;;
2846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847
(eval "$ac_compile") 2>&5
2849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850
(exit $ac_status); }; then
2851
for ac_file in conftest.o conftest.obj conftest.*; do
2852
test -f "$ac_file" || continue;
2854
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2855
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2860
echo "$as_me: failed program was:" >&5
2861
sed 's/^/| /' conftest.$ac_ext >&5
2863
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2864
See \`config.log' for more details." >&5
2865
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2866
See \`config.log' for more details." >&2;}
2867
{ (exit 1); exit 1; }; }
2870
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2872
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2873
echo "${ECHO_T}$ac_cv_objext" >&6; }
2874
OBJEXT=$ac_cv_objext
2876
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2877
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2878
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2879
echo $ECHO_N "(cached) $ECHO_C" >&6
2881
cat >conftest.$ac_ext <<_ACEOF
2884
cat confdefs.h >>conftest.$ac_ext
2885
cat >>conftest.$ac_ext <<_ACEOF
2886
/* end confdefs.h. */
2899
rm -f conftest.$ac_objext
2900
if { (ac_try="$ac_compile"
2902
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903
*) ac_try_echo=$ac_try;;
2905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906
(eval "$ac_compile") 2>conftest.er1
2908
grep -v '^ *+' conftest.er1 >conftest.err
2910
cat conftest.err >&5
2911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912
(exit $ac_status); } && {
2913
test -z "$ac_c_werror_flag" ||
2914
test ! -s conftest.err
2915
} && test -s conftest.$ac_objext; then
2918
echo "$as_me: failed program was:" >&5
2919
sed 's/^/| /' conftest.$ac_ext >&5
2924
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2928
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2929
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2930
GCC=`test $ac_compiler_gnu = yes && echo yes`
2931
ac_test_CFLAGS=${CFLAGS+set}
2932
ac_save_CFLAGS=$CFLAGS
2933
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2934
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2935
if test "${ac_cv_prog_cc_g+set}" = set; then
2936
echo $ECHO_N "(cached) $ECHO_C" >&6
2938
ac_save_c_werror_flag=$ac_c_werror_flag
2939
ac_c_werror_flag=yes
2942
cat >conftest.$ac_ext <<_ACEOF
2945
cat confdefs.h >>conftest.$ac_ext
2946
cat >>conftest.$ac_ext <<_ACEOF
2947
/* end confdefs.h. */
2957
rm -f conftest.$ac_objext
2958
if { (ac_try="$ac_compile"
2960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961
*) ac_try_echo=$ac_try;;
2963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964
(eval "$ac_compile") 2>conftest.er1
2966
grep -v '^ *+' conftest.er1 >conftest.err
2968
cat conftest.err >&5
2969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970
(exit $ac_status); } && {
2971
test -z "$ac_c_werror_flag" ||
2972
test ! -s conftest.err
2973
} && test -s conftest.$ac_objext; then
2976
echo "$as_me: failed program was:" >&5
2977
sed 's/^/| /' conftest.$ac_ext >&5
2980
cat >conftest.$ac_ext <<_ACEOF
2983
cat confdefs.h >>conftest.$ac_ext
2984
cat >>conftest.$ac_ext <<_ACEOF
2985
/* end confdefs.h. */
2995
rm -f conftest.$ac_objext
2996
if { (ac_try="$ac_compile"
2998
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999
*) ac_try_echo=$ac_try;;
3001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002
(eval "$ac_compile") 2>conftest.er1
3004
grep -v '^ *+' conftest.er1 >conftest.err
3006
cat conftest.err >&5
3007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008
(exit $ac_status); } && {
3009
test -z "$ac_c_werror_flag" ||
3010
test ! -s conftest.err
3011
} && test -s conftest.$ac_objext; then
3014
echo "$as_me: failed program was:" >&5
3015
sed 's/^/| /' conftest.$ac_ext >&5
3017
ac_c_werror_flag=$ac_save_c_werror_flag
3019
cat >conftest.$ac_ext <<_ACEOF
3022
cat confdefs.h >>conftest.$ac_ext
3023
cat >>conftest.$ac_ext <<_ACEOF
3024
/* end confdefs.h. */
3034
rm -f conftest.$ac_objext
3035
if { (ac_try="$ac_compile"
3037
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038
*) ac_try_echo=$ac_try;;
3040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041
(eval "$ac_compile") 2>conftest.er1
3043
grep -v '^ *+' conftest.er1 >conftest.err
3045
cat conftest.err >&5
3046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047
(exit $ac_status); } && {
3048
test -z "$ac_c_werror_flag" ||
3049
test ! -s conftest.err
3050
} && test -s conftest.$ac_objext; then
3053
echo "$as_me: failed program was:" >&5
3054
sed 's/^/| /' conftest.$ac_ext >&5
3059
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066
ac_c_werror_flag=$ac_save_c_werror_flag
3068
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3069
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3070
if test "$ac_test_CFLAGS" = set; then
3071
CFLAGS=$ac_save_CFLAGS
3072
elif test $ac_cv_prog_cc_g = yes; then
3073
if test "$GCC" = yes; then
3079
if test "$GCC" = yes; then
3085
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3086
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3087
if test "${ac_cv_prog_cc_c89+set}" = set; then
3088
echo $ECHO_N "(cached) $ECHO_C" >&6
3090
ac_cv_prog_cc_c89=no
3092
cat >conftest.$ac_ext <<_ACEOF
3095
cat confdefs.h >>conftest.$ac_ext
3096
cat >>conftest.$ac_ext <<_ACEOF
3097
/* end confdefs.h. */
3100
#include <sys/types.h>
3101
#include <sys/stat.h>
3102
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3103
struct buf { int x; };
3104
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3105
static char *e (p, i)
3111
static char *f (char * (*g) (char **, int), char **p, ...)
3116
s = g (p, va_arg (v,int));
3121
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3122
function prototypes and stuff, but not '\xHH' hex character constants.
3123
These don't provoke an error unfortunately, instead are silently treated
3124
as 'x'. The following induces an error, until -std is added to get
3125
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3126
array size at least. It's necessary to write '\x00'==0 to get something
3127
that's true only with -std. */
3128
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3130
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3131
inside strings and character constants. */
3133
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3135
int test (int i, double x);
3136
struct s1 {int (*f) (int a);};
3137
struct s2 {int (*f) (double a);};
3138
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3144
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3149
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3150
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3152
CC="$ac_save_CC $ac_arg"
3153
rm -f conftest.$ac_objext
3154
if { (ac_try="$ac_compile"
3156
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157
*) ac_try_echo=$ac_try;;
3159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160
(eval "$ac_compile") 2>conftest.er1
3162
grep -v '^ *+' conftest.er1 >conftest.err
3164
cat conftest.err >&5
3165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166
(exit $ac_status); } && {
3167
test -z "$ac_c_werror_flag" ||
3168
test ! -s conftest.err
3169
} && test -s conftest.$ac_objext; then
3170
ac_cv_prog_cc_c89=$ac_arg
3172
echo "$as_me: failed program was:" >&5
3173
sed 's/^/| /' conftest.$ac_ext >&5
3178
rm -f core conftest.err conftest.$ac_objext
3179
test "x$ac_cv_prog_cc_c89" != "xno" && break
3181
rm -f conftest.$ac_ext
3186
case "x$ac_cv_prog_cc_c89" in
3188
{ echo "$as_me:$LINENO: result: none needed" >&5
3189
echo "${ECHO_T}none needed" >&6; } ;;
3191
{ echo "$as_me:$LINENO: result: unsupported" >&5
3192
echo "${ECHO_T}unsupported" >&6; } ;;
3194
CC="$CC $ac_cv_prog_cc_c89"
3195
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3196
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3201
ac_cpp='$CPP $CPPFLAGS'
3202
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3209
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3210
if test "${ac_cv_search_strerror+set}" = set; then
3211
echo $ECHO_N "(cached) $ECHO_C" >&6
3213
ac_func_search_save_LIBS=$LIBS
3214
cat >conftest.$ac_ext <<_ACEOF
3217
cat confdefs.h >>conftest.$ac_ext
3218
cat >>conftest.$ac_ext <<_ACEOF
3219
/* end confdefs.h. */
3221
/* Override any GCC internal prototype to avoid an error.
3222
Use char because int might match the return type of a GCC
3223
builtin and then its argument prototype would still apply. */
3236
for ac_lib in '' cposix; do
3237
if test -z "$ac_lib"; then
3238
ac_res="none required"
3241
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3243
rm -f conftest.$ac_objext conftest$ac_exeext
3244
if { (ac_try="$ac_link"
3246
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247
*) ac_try_echo=$ac_try;;
3249
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250
(eval "$ac_link") 2>conftest.er1
3252
grep -v '^ *+' conftest.er1 >conftest.err
3254
cat conftest.err >&5
3255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256
(exit $ac_status); } && {
3257
test -z "$ac_c_werror_flag" ||
3258
test ! -s conftest.err
3259
} && test -s conftest$ac_exeext &&
3260
$as_test_x conftest$ac_exeext; then
3261
ac_cv_search_strerror=$ac_res
3263
echo "$as_me: failed program was:" >&5
3264
sed 's/^/| /' conftest.$ac_ext >&5
3269
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3271
if test "${ac_cv_search_strerror+set}" = set; then
3275
if test "${ac_cv_search_strerror+set}" = set; then
3278
ac_cv_search_strerror=no
3281
LIBS=$ac_func_search_save_LIBS
3283
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3284
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3285
ac_res=$ac_cv_search_strerror
3286
if test "$ac_res" != no; then
3287
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3292
ac_cpp='$CPP $CPPFLAGS'
3293
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3297
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3298
# On Suns, sometimes $CPP names a directory.
3299
if test -n "$CPP" && test -d "$CPP"; then
3302
if test -z "$CPP"; then
3303
if test "${ac_cv_prog_CPP+set}" = set; then
3304
echo $ECHO_N "(cached) $ECHO_C" >&6
3306
# Double quotes because CPP needs to be expanded
3307
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3310
for ac_c_preproc_warn_flag in '' yes
3312
# Use a header file that comes with gcc, so configuring glibc
3313
# with a fresh cross-compiler works.
3314
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3315
# <limits.h> exists even on freestanding compilers.
3316
# On the NeXT, cc -E runs the code through the compiler's parser,
3317
# not just through cpp. "Syntax error" is here to catch this case.
3318
cat >conftest.$ac_ext <<_ACEOF
3321
cat confdefs.h >>conftest.$ac_ext
3322
cat >>conftest.$ac_ext <<_ACEOF
3323
/* end confdefs.h. */
3325
# include <limits.h>
3327
# include <assert.h>
3331
if { (ac_try="$ac_cpp conftest.$ac_ext"
3333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334
*) ac_try_echo=$ac_try;;
3336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3339
grep -v '^ *+' conftest.er1 >conftest.err
3341
cat conftest.err >&5
3342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343
(exit $ac_status); } >/dev/null && {
3344
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3345
test ! -s conftest.err
3349
echo "$as_me: failed program was:" >&5
3350
sed 's/^/| /' conftest.$ac_ext >&5
3352
# Broken: fails on valid input.
3356
rm -f conftest.err conftest.$ac_ext
3358
# OK, works on sane cases. Now check whether nonexistent headers
3359
# can be detected and how.
3360
cat >conftest.$ac_ext <<_ACEOF
3363
cat confdefs.h >>conftest.$ac_ext
3364
cat >>conftest.$ac_ext <<_ACEOF
3365
/* end confdefs.h. */
3366
#include <ac_nonexistent.h>
3368
if { (ac_try="$ac_cpp conftest.$ac_ext"
3370
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371
*) ac_try_echo=$ac_try;;
3373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376
grep -v '^ *+' conftest.er1 >conftest.err
3378
cat conftest.err >&5
3379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380
(exit $ac_status); } >/dev/null && {
3381
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3382
test ! -s conftest.err
3384
# Broken: success on invalid input.
3387
echo "$as_me: failed program was:" >&5
3388
sed 's/^/| /' conftest.$ac_ext >&5
3390
# Passes both tests.
3395
rm -f conftest.err conftest.$ac_ext
3398
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399
rm -f conftest.err conftest.$ac_ext
3400
if $ac_preproc_ok; then
3412
{ echo "$as_me:$LINENO: result: $CPP" >&5
3413
echo "${ECHO_T}$CPP" >&6; }
3415
for ac_c_preproc_warn_flag in '' yes
3417
# Use a header file that comes with gcc, so configuring glibc
3418
# with a fresh cross-compiler works.
3419
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420
# <limits.h> exists even on freestanding compilers.
3421
# On the NeXT, cc -E runs the code through the compiler's parser,
3422
# not just through cpp. "Syntax error" is here to catch this case.
3423
cat >conftest.$ac_ext <<_ACEOF
3426
cat confdefs.h >>conftest.$ac_ext
3427
cat >>conftest.$ac_ext <<_ACEOF
3428
/* end confdefs.h. */
3430
# include <limits.h>
3432
# include <assert.h>
3436
if { (ac_try="$ac_cpp conftest.$ac_ext"
3438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439
*) ac_try_echo=$ac_try;;
3441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444
grep -v '^ *+' conftest.er1 >conftest.err
3446
cat conftest.err >&5
3447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448
(exit $ac_status); } >/dev/null && {
3449
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3450
test ! -s conftest.err
3454
echo "$as_me: failed program was:" >&5
3455
sed 's/^/| /' conftest.$ac_ext >&5
3457
# Broken: fails on valid input.
3461
rm -f conftest.err conftest.$ac_ext
3463
# OK, works on sane cases. Now check whether nonexistent headers
3464
# can be detected and how.
3465
cat >conftest.$ac_ext <<_ACEOF
3468
cat confdefs.h >>conftest.$ac_ext
3469
cat >>conftest.$ac_ext <<_ACEOF
3470
/* end confdefs.h. */
3471
#include <ac_nonexistent.h>
3473
if { (ac_try="$ac_cpp conftest.$ac_ext"
3475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476
*) ac_try_echo=$ac_try;;
3478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481
grep -v '^ *+' conftest.er1 >conftest.err
3483
cat conftest.err >&5
3484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485
(exit $ac_status); } >/dev/null && {
3486
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3487
test ! -s conftest.err
3489
# Broken: success on invalid input.
3492
echo "$as_me: failed program was:" >&5
3493
sed 's/^/| /' conftest.$ac_ext >&5
3495
# Passes both tests.
3500
rm -f conftest.err conftest.$ac_ext
3503
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504
rm -f conftest.err conftest.$ac_ext
3505
if $ac_preproc_ok; then
3508
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3509
See \`config.log' for more details." >&5
3510
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3511
See \`config.log' for more details." >&2;}
3512
{ (exit 1); exit 1; }; }
3516
ac_cpp='$CPP $CPPFLAGS'
3517
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3523
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3524
if test "${ac_cv_path_GREP+set}" = set; then
3525
echo $ECHO_N "(cached) $ECHO_C" >&6
3527
# Extract the first word of "grep ggrep" to use in msg output
3528
if test -z "$GREP"; then
3529
set dummy grep ggrep; ac_prog_name=$2
3530
if test "${ac_cv_path_GREP+set}" = set; then
3531
echo $ECHO_N "(cached) $ECHO_C" >&6
3533
ac_path_GREP_found=false
3534
# Loop through the user's path and test for each of PROGNAME-LIST
3535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3539
test -z "$as_dir" && as_dir=.
3540
for ac_prog in grep ggrep; do
3541
for ac_exec_ext in '' $ac_executable_extensions; do
3542
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3543
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3544
# Check for GNU ac_path_GREP and select it if it is found.
3545
# Check for GNU $ac_path_GREP
3546
case `"$ac_path_GREP" --version 2>&1` in
3548
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3551
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3554
cat "conftest.in" "conftest.in" >"conftest.tmp"
3555
mv "conftest.tmp" "conftest.in"
3556
cp "conftest.in" "conftest.nl"
3557
echo 'GREP' >> "conftest.nl"
3558
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3559
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3560
ac_count=`expr $ac_count + 1`
3561
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3562
# Best one so far, save it but keep looking for a better one
3563
ac_cv_path_GREP="$ac_path_GREP"
3564
ac_path_GREP_max=$ac_count
3566
# 10*(2^10) chars as input seems more than enough
3567
test $ac_count -gt 10 && break
3569
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3573
$ac_path_GREP_found && break 3
3583
GREP="$ac_cv_path_GREP"
3584
if test -z "$GREP"; then
3585
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3586
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3587
{ (exit 1); exit 1; }; }
3591
ac_cv_path_GREP=$GREP
3596
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3597
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3598
GREP="$ac_cv_path_GREP"
3601
{ echo "$as_me:$LINENO: checking for egrep" >&5
3602
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3603
if test "${ac_cv_path_EGREP+set}" = set; then
3604
echo $ECHO_N "(cached) $ECHO_C" >&6
3606
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3607
then ac_cv_path_EGREP="$GREP -E"
3609
# Extract the first word of "egrep" to use in msg output
3610
if test -z "$EGREP"; then
3611
set dummy egrep; ac_prog_name=$2
3612
if test "${ac_cv_path_EGREP+set}" = set; then
3613
echo $ECHO_N "(cached) $ECHO_C" >&6
3615
ac_path_EGREP_found=false
3616
# Loop through the user's path and test for each of PROGNAME-LIST
3617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621
test -z "$as_dir" && as_dir=.
3622
for ac_prog in egrep; do
3623
for ac_exec_ext in '' $ac_executable_extensions; do
3624
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3625
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3626
# Check for GNU ac_path_EGREP and select it if it is found.
3627
# Check for GNU $ac_path_EGREP
3628
case `"$ac_path_EGREP" --version 2>&1` in
3630
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3633
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3636
cat "conftest.in" "conftest.in" >"conftest.tmp"
3637
mv "conftest.tmp" "conftest.in"
3638
cp "conftest.in" "conftest.nl"
3639
echo 'EGREP' >> "conftest.nl"
3640
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3641
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3642
ac_count=`expr $ac_count + 1`
3643
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3644
# Best one so far, save it but keep looking for a better one
3645
ac_cv_path_EGREP="$ac_path_EGREP"
3646
ac_path_EGREP_max=$ac_count
3648
# 10*(2^10) chars as input seems more than enough
3649
test $ac_count -gt 10 && break
3651
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3655
$ac_path_EGREP_found && break 3
3665
EGREP="$ac_cv_path_EGREP"
3666
if test -z "$EGREP"; then
3667
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3668
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3669
{ (exit 1); exit 1; }; }
3673
ac_cv_path_EGREP=$EGREP
3679
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3680
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3681
EGREP="$ac_cv_path_EGREP"
3685
{ echo "$as_me:$LINENO: checking for AIX" >&5
3686
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3687
cat >conftest.$ac_ext <<_ACEOF
3690
cat confdefs.h >>conftest.$ac_ext
3691
cat >>conftest.$ac_ext <<_ACEOF
3692
/* end confdefs.h. */
3698
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699
$EGREP "yes" >/dev/null 2>&1; then
3700
{ echo "$as_me:$LINENO: result: yes" >&5
3701
echo "${ECHO_T}yes" >&6; }
3702
cat >>confdefs.h <<\_ACEOF
3703
#define _ALL_SOURCE 1
3707
{ echo "$as_me:$LINENO: result: no" >&5
3708
echo "${ECHO_T}no" >&6; }
3713
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3714
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3715
if test "${ac_cv_header_stdc+set}" = set; then
3716
echo $ECHO_N "(cached) $ECHO_C" >&6
3718
cat >conftest.$ac_ext <<_ACEOF
3721
cat confdefs.h >>conftest.$ac_ext
3722
cat >>conftest.$ac_ext <<_ACEOF
3723
/* end confdefs.h. */
3737
rm -f conftest.$ac_objext
3738
if { (ac_try="$ac_compile"
3740
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741
*) ac_try_echo=$ac_try;;
3743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744
(eval "$ac_compile") 2>conftest.er1
3746
grep -v '^ *+' conftest.er1 >conftest.err
3748
cat conftest.err >&5
3749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750
(exit $ac_status); } && {
3751
test -z "$ac_c_werror_flag" ||
3752
test ! -s conftest.err
3753
} && test -s conftest.$ac_objext; then
3754
ac_cv_header_stdc=yes
3756
echo "$as_me: failed program was:" >&5
3757
sed 's/^/| /' conftest.$ac_ext >&5
3759
ac_cv_header_stdc=no
3762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764
if test $ac_cv_header_stdc = yes; then
3765
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3766
cat >conftest.$ac_ext <<_ACEOF
3769
cat confdefs.h >>conftest.$ac_ext
3770
cat >>conftest.$ac_ext <<_ACEOF
3771
/* end confdefs.h. */
3775
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776
$EGREP "memchr" >/dev/null 2>&1; then
3779
ac_cv_header_stdc=no
3785
if test $ac_cv_header_stdc = yes; then
3786
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3787
cat >conftest.$ac_ext <<_ACEOF
3790
cat confdefs.h >>conftest.$ac_ext
3791
cat >>conftest.$ac_ext <<_ACEOF
3792
/* end confdefs.h. */
3796
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797
$EGREP "free" >/dev/null 2>&1; then
3800
ac_cv_header_stdc=no
3806
if test $ac_cv_header_stdc = yes; then
3807
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3808
if test "$cross_compiling" = yes; then
3811
cat >conftest.$ac_ext <<_ACEOF
3814
cat confdefs.h >>conftest.$ac_ext
3815
cat >>conftest.$ac_ext <<_ACEOF
3816
/* end confdefs.h. */
3819
#if ((' ' & 0x0FF) == 0x020)
3820
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3821
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3823
# define ISLOWER(c) \
3824
(('a' <= (c) && (c) <= 'i') \
3825
|| ('j' <= (c) && (c) <= 'r') \
3826
|| ('s' <= (c) && (c) <= 'z'))
3827
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3830
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3835
for (i = 0; i < 256; i++)
3836
if (XOR (islower (i), ISLOWER (i))
3837
|| toupper (i) != TOUPPER (i))
3842
rm -f conftest$ac_exeext
3843
if { (ac_try="$ac_link"
3845
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846
*) ac_try_echo=$ac_try;;
3848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849
(eval "$ac_link") 2>&5
3851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3853
{ (case "(($ac_try" in
3854
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855
*) ac_try_echo=$ac_try;;
3857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858
(eval "$ac_try") 2>&5
3860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861
(exit $ac_status); }; }; then
3864
echo "$as_me: program exited with status $ac_status" >&5
3865
echo "$as_me: failed program was:" >&5
3866
sed 's/^/| /' conftest.$ac_ext >&5
3869
ac_cv_header_stdc=no
3871
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3877
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3878
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3879
if test $ac_cv_header_stdc = yes; then
3881
cat >>confdefs.h <<\_ACEOF
3882
#define STDC_HEADERS 1
3887
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3897
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3898
inttypes.h stdint.h unistd.h
3900
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3901
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3902
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3903
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3904
echo $ECHO_N "(cached) $ECHO_C" >&6
3906
cat >conftest.$ac_ext <<_ACEOF
3909
cat confdefs.h >>conftest.$ac_ext
3910
cat >>conftest.$ac_ext <<_ACEOF
3911
/* end confdefs.h. */
3912
$ac_includes_default
3914
#include <$ac_header>
3916
rm -f conftest.$ac_objext
3917
if { (ac_try="$ac_compile"
3919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920
*) ac_try_echo=$ac_try;;
3922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3923
(eval "$ac_compile") 2>conftest.er1
3925
grep -v '^ *+' conftest.er1 >conftest.err
3927
cat conftest.err >&5
3928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929
(exit $ac_status); } && {
3930
test -z "$ac_c_werror_flag" ||
3931
test ! -s conftest.err
3932
} && test -s conftest.$ac_objext; then
3933
eval "$as_ac_Header=yes"
3935
echo "$as_me: failed program was:" >&5
3936
sed 's/^/| /' conftest.$ac_ext >&5
3938
eval "$as_ac_Header=no"
3941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943
ac_res=`eval echo '${'$as_ac_Header'}'`
3944
{ echo "$as_me:$LINENO: result: $ac_res" >&5
3945
echo "${ECHO_T}$ac_res" >&6; }
3946
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3947
cat >>confdefs.h <<_ACEOF
3948
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3956
if test "${ac_cv_header_minix_config_h+set}" = set; then
3957
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
3958
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3959
if test "${ac_cv_header_minix_config_h+set}" = set; then
3960
echo $ECHO_N "(cached) $ECHO_C" >&6
3962
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3963
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3965
# Is the header compilable?
3966
{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3967
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3968
cat >conftest.$ac_ext <<_ACEOF
3971
cat confdefs.h >>conftest.$ac_ext
3972
cat >>conftest.$ac_ext <<_ACEOF
3973
/* end confdefs.h. */
3974
$ac_includes_default
3975
#include <minix/config.h>
3977
rm -f conftest.$ac_objext
3978
if { (ac_try="$ac_compile"
3980
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981
*) ac_try_echo=$ac_try;;
3983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984
(eval "$ac_compile") 2>conftest.er1
3986
grep -v '^ *+' conftest.er1 >conftest.err
3988
cat conftest.err >&5
3989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990
(exit $ac_status); } && {
3991
test -z "$ac_c_werror_flag" ||
3992
test ! -s conftest.err
3993
} && test -s conftest.$ac_objext; then
3994
ac_header_compiler=yes
3996
echo "$as_me: failed program was:" >&5
3997
sed 's/^/| /' conftest.$ac_ext >&5
3999
ac_header_compiler=no
4002
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4004
echo "${ECHO_T}$ac_header_compiler" >&6; }
4006
# Is the header present?
4007
{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4008
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4009
cat >conftest.$ac_ext <<_ACEOF
4012
cat confdefs.h >>conftest.$ac_ext
4013
cat >>conftest.$ac_ext <<_ACEOF
4014
/* end confdefs.h. */
4015
#include <minix/config.h>
4017
if { (ac_try="$ac_cpp conftest.$ac_ext"
4019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020
*) ac_try_echo=$ac_try;;
4022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4025
grep -v '^ *+' conftest.er1 >conftest.err
4027
cat conftest.err >&5
4028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029
(exit $ac_status); } >/dev/null && {
4030
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4031
test ! -s conftest.err
4033
ac_header_preproc=yes
4035
echo "$as_me: failed program was:" >&5
4036
sed 's/^/| /' conftest.$ac_ext >&5
4038
ac_header_preproc=no
4041
rm -f conftest.err conftest.$ac_ext
4042
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4043
echo "${ECHO_T}$ac_header_preproc" >&6; }
4045
# So? What about this header?
4046
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4048
{ echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4049
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4050
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4051
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4052
ac_header_preproc=yes
4055
{ echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4056
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4057
{ echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4058
echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4059
{ echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4060
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4061
{ echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4062
echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4063
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4064
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4065
{ echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4066
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4070
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4071
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4072
if test "${ac_cv_header_minix_config_h+set}" = set; then
4073
echo $ECHO_N "(cached) $ECHO_C" >&6
4075
ac_cv_header_minix_config_h=$ac_header_preproc
4077
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4078
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4081
if test $ac_cv_header_minix_config_h = yes; then
4088
if test "$MINIX" = yes; then
4090
cat >>confdefs.h <<\_ACEOF
4091
#define _POSIX_SOURCE 1
4095
cat >>confdefs.h <<\_ACEOF
4096
#define _POSIX_1_SOURCE 2
4100
cat >>confdefs.h <<\_ACEOF
4107
if test "x${CFLAGS}" = "x"
4109
if test "x${GCC}" = "xyes"
4113
CFLAGS="-fno-common -Wall -Wpointer-arith -Wnested-externs"
4117
{ echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
4118
echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
4119
if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
4120
echo $ECHO_N "(cached) $ECHO_C" >&6
4122
if test "$cross_compiling" = yes; then
4123
ac_cv_c_gcc_strength_bug="yes"
4125
cat >conftest.$ac_ext <<_ACEOF
4128
cat confdefs.h >>conftest.$ac_ext
4129
cat >>conftest.$ac_ext <<_ACEOF
4130
/* end confdefs.h. */
4133
static int Array[3];
4136
for(i=0; i<B; i++) Array[i] = i - 3;
4137
exit( Array[1] != -2 );
4141
rm -f conftest$ac_exeext
4142
if { (ac_try="$ac_link"
4144
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145
*) ac_try_echo=$ac_try;;
4147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148
(eval "$ac_link") 2>&5
4150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4152
{ (case "(($ac_try" in
4153
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154
*) ac_try_echo=$ac_try;;
4156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157
(eval "$ac_try") 2>&5
4159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160
(exit $ac_status); }; }; then
4161
ac_cv_c_gcc_strength_bug="no"
4163
echo "$as_me: program exited with status $ac_status" >&5
4164
echo "$as_me: failed program was:" >&5
4165
sed 's/^/| /' conftest.$ac_ext >&5
4168
ac_cv_c_gcc_strength_bug="yes"
4170
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4176
{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
4177
echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
4179
if test "$ac_cv_c_gcc_strength_bug" = "yes"
4182
CFLAGS="$CFLAGS -fno-strength-reduce"
4190
i486-*) CPU_FLAGS="-m486";;
4193
{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4194
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6; }
4195
if test "${ac_cpu_pentium+set}" = set; then
4196
echo $ECHO_N "(cached) $ECHO_C" >&6
4198
echo 'void f(){}' > conftest.c
4199
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4207
{ echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4208
echo "${ECHO_T}$ac_cpu_pentium" >&6; }
4209
if test "$ac_cpu_pentium" = yes; then
4211
CPU_FLAGS=-mcpu=pentium
4216
{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4217
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6; }
4218
if test "${ac_pentium+set}" = set; then
4219
echo $ECHO_N "(cached) $ECHO_C" >&6
4221
echo 'void f(){}' > conftest.c
4222
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4230
{ echo "$as_me:$LINENO: result: $ac_pentium" >&5
4231
echo "${ECHO_T}$ac_pentium" >&6; }
4232
if test "$ac_pentium" = yes; then
4245
{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4246
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6; }
4247
if test "${ac_cpu_pentiumpro+set}" = set; then
4248
echo $ECHO_N "(cached) $ECHO_C" >&6
4250
echo 'void f(){}' > conftest.c
4251
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4252
ac_cpu_pentiumpro=yes
4254
ac_cpu_pentiumpro=no
4259
{ echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4260
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; }
4261
if test "$ac_cpu_pentiumpro" = yes; then
4263
CPU_FLAGS=-mcpu=pentiumpro
4268
{ echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4269
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6; }
4270
if test "${ac_pentiumpro+set}" = set; then
4271
echo $ECHO_N "(cached) $ECHO_C" >&6
4273
echo 'void f(){}' > conftest.c
4274
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4282
{ echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4283
echo "${ECHO_T}$ac_pentiumpro" >&6; }
4284
if test "$ac_pentiumpro" = yes; then
4286
CPU_FLAGS=-mpentiumpro
4297
CFLAGS="$CPU_FLAGS $CFLAGS"
4306
CFLAGS="-Aa -D_HPUX_SOURCE"
4310
mips-sgi-irix6.[4-9]*)
4312
OPTIMIZE="-O2 -OPT:Olimit=0"
4313
DEBUG="-g3 -O2 -OPT:Olimit=0"
4316
CFLAGS="-fullwarn -woff 835"
4317
OPTIMIZE="-O2 -Olimit 3500"
4320
CFLAGS="-D_ALL_SOURCE"
4334
true) CFLAGS="$DEBUG $CFLAGS";;
4335
*) CFLAGS="$OPTIMIZE $CFLAGS";;
4340
if test ! -x $FC; then
4344
*) # Extract the first word of "$FC", so it can be a program name with args.
4345
set dummy $FC; ac_word=$2
4346
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4348
if test "${ac_cv_prog_fc+set}" = set; then
4349
echo $ECHO_N "(cached) $ECHO_C" >&6
4351
if test -n "$fc"; then
4352
ac_cv_prog_fc="$fc" # Let the user override the test.
4354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358
test -z "$as_dir" && as_dir=.
4359
for ac_exec_ext in '' $ac_executable_extensions; do
4360
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369
test -z "$ac_cv_prog_fc" && ac_cv_prog_fc="no"
4373
if test -n "$fc"; then
4374
{ echo "$as_me:$LINENO: result: $fc" >&5
4375
echo "${ECHO_T}$fc" >&6; }
4377
{ echo "$as_me:$LINENO: result: no" >&5
4378
echo "${ECHO_T}no" >&6; }
4386
if test "${FC}" = "no"
4388
{ echo "$as_me:$LINENO: result: --> Fortran tests won't be compiled" >&5
4389
echo "${ECHO_T}--> Fortran tests won't be compiled" >&6; }
4394
{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
4395
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
4396
if test "${ac_cv_c_char_unsigned+set}" = set; then
4397
echo $ECHO_N "(cached) $ECHO_C" >&6
4399
cat >conftest.$ac_ext <<_ACEOF
4402
cat confdefs.h >>conftest.$ac_ext
4403
cat >>conftest.$ac_ext <<_ACEOF
4404
/* end confdefs.h. */
4405
$ac_includes_default
4409
static int test_array [1 - 2 * !(((char) -1) < 0)];
4416
rm -f conftest.$ac_objext
4417
if { (ac_try="$ac_compile"
4419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420
*) ac_try_echo=$ac_try;;
4422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423
(eval "$ac_compile") 2>conftest.er1
4425
grep -v '^ *+' conftest.er1 >conftest.err
4427
cat conftest.err >&5
4428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429
(exit $ac_status); } && {
4430
test -z "$ac_c_werror_flag" ||
4431
test ! -s conftest.err
4432
} && test -s conftest.$ac_objext; then
4433
ac_cv_c_char_unsigned=no
4435
echo "$as_me: failed program was:" >&5
4436
sed 's/^/| /' conftest.$ac_ext >&5
4438
ac_cv_c_char_unsigned=yes
4441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443
{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
4444
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
4445
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4446
cat >>confdefs.h <<\_ACEOF
4447
#define __CHAR_UNSIGNED__ 1
4452
{ echo "$as_me:$LINENO: checking for char" >&5
4453
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
4454
if test "${ac_cv_type_char+set}" = set; then
4455
echo $ECHO_N "(cached) $ECHO_C" >&6
4457
cat >conftest.$ac_ext <<_ACEOF
4460
cat confdefs.h >>conftest.$ac_ext
4461
cat >>conftest.$ac_ext <<_ACEOF
4462
/* end confdefs.h. */
4463
$ac_includes_default
4464
typedef char ac__type_new_;
4468
if ((ac__type_new_ *) 0)
4470
if (sizeof (ac__type_new_))
4476
rm -f conftest.$ac_objext
4477
if { (ac_try="$ac_compile"
4479
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480
*) ac_try_echo=$ac_try;;
4482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483
(eval "$ac_compile") 2>conftest.er1
4485
grep -v '^ *+' conftest.er1 >conftest.err
4487
cat conftest.err >&5
4488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489
(exit $ac_status); } && {
4490
test -z "$ac_c_werror_flag" ||
4491
test ! -s conftest.err
4492
} && test -s conftest.$ac_objext; then
4495
echo "$as_me: failed program was:" >&5
4496
sed 's/^/| /' conftest.$ac_ext >&5
4501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4504
echo "${ECHO_T}$ac_cv_type_char" >&6; }
4506
# The cast to long int works around a bug in the HP C Compiler
4507
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4508
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4509
# This bug is HP SR number 8606223364.
4510
{ echo "$as_me:$LINENO: checking size of char" >&5
4511
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
4512
if test "${ac_cv_sizeof_char+set}" = set; then
4513
echo $ECHO_N "(cached) $ECHO_C" >&6
4515
if test "$cross_compiling" = yes; then
4516
# Depending upon the size, compute the lo and hi bounds.
4517
cat >conftest.$ac_ext <<_ACEOF
4520
cat confdefs.h >>conftest.$ac_ext
4521
cat >>conftest.$ac_ext <<_ACEOF
4522
/* end confdefs.h. */
4523
$ac_includes_default
4524
typedef char ac__type_sizeof_;
4528
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4535
rm -f conftest.$ac_objext
4536
if { (ac_try="$ac_compile"
4538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539
*) ac_try_echo=$ac_try;;
4541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542
(eval "$ac_compile") 2>conftest.er1
4544
grep -v '^ *+' conftest.er1 >conftest.err
4546
cat conftest.err >&5
4547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548
(exit $ac_status); } && {
4549
test -z "$ac_c_werror_flag" ||
4550
test ! -s conftest.err
4551
} && test -s conftest.$ac_objext; then
4554
cat >conftest.$ac_ext <<_ACEOF
4557
cat confdefs.h >>conftest.$ac_ext
4558
cat >>conftest.$ac_ext <<_ACEOF
4559
/* end confdefs.h. */
4560
$ac_includes_default
4561
typedef char ac__type_sizeof_;
4565
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4572
rm -f conftest.$ac_objext
4573
if { (ac_try="$ac_compile"
4575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576
*) ac_try_echo=$ac_try;;
4578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579
(eval "$ac_compile") 2>conftest.er1
4581
grep -v '^ *+' conftest.er1 >conftest.err
4583
cat conftest.err >&5
4584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
(exit $ac_status); } && {
4586
test -z "$ac_c_werror_flag" ||
4587
test ! -s conftest.err
4588
} && test -s conftest.$ac_objext; then
4589
ac_hi=$ac_mid; break
4591
echo "$as_me: failed program was:" >&5
4592
sed 's/^/| /' conftest.$ac_ext >&5
4594
ac_lo=`expr $ac_mid + 1`
4595
if test $ac_lo -le $ac_mid; then
4599
ac_mid=`expr 2 '*' $ac_mid + 1`
4602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605
echo "$as_me: failed program was:" >&5
4606
sed 's/^/| /' conftest.$ac_ext >&5
4608
cat >conftest.$ac_ext <<_ACEOF
4611
cat confdefs.h >>conftest.$ac_ext
4612
cat >>conftest.$ac_ext <<_ACEOF
4613
/* end confdefs.h. */
4614
$ac_includes_default
4615
typedef char ac__type_sizeof_;
4619
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4626
rm -f conftest.$ac_objext
4627
if { (ac_try="$ac_compile"
4629
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630
*) ac_try_echo=$ac_try;;
4632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633
(eval "$ac_compile") 2>conftest.er1
4635
grep -v '^ *+' conftest.er1 >conftest.err
4637
cat conftest.err >&5
4638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639
(exit $ac_status); } && {
4640
test -z "$ac_c_werror_flag" ||
4641
test ! -s conftest.err
4642
} && test -s conftest.$ac_objext; then
4645
cat >conftest.$ac_ext <<_ACEOF
4648
cat confdefs.h >>conftest.$ac_ext
4649
cat >>conftest.$ac_ext <<_ACEOF
4650
/* end confdefs.h. */
4651
$ac_includes_default
4652
typedef char ac__type_sizeof_;
4656
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4663
rm -f conftest.$ac_objext
4664
if { (ac_try="$ac_compile"
4666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667
*) ac_try_echo=$ac_try;;
4669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670
(eval "$ac_compile") 2>conftest.er1
4672
grep -v '^ *+' conftest.er1 >conftest.err
4674
cat conftest.err >&5
4675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676
(exit $ac_status); } && {
4677
test -z "$ac_c_werror_flag" ||
4678
test ! -s conftest.err
4679
} && test -s conftest.$ac_objext; then
4680
ac_lo=$ac_mid; break
4682
echo "$as_me: failed program was:" >&5
4683
sed 's/^/| /' conftest.$ac_ext >&5
4685
ac_hi=`expr '(' $ac_mid ')' - 1`
4686
if test $ac_mid -le $ac_hi; then
4690
ac_mid=`expr 2 '*' $ac_mid`
4693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696
echo "$as_me: failed program was:" >&5
4697
sed 's/^/| /' conftest.$ac_ext >&5
4702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706
# Binary search between lo and hi bounds.
4707
while test "x$ac_lo" != "x$ac_hi"; do
4708
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4709
cat >conftest.$ac_ext <<_ACEOF
4712
cat confdefs.h >>conftest.$ac_ext
4713
cat >>conftest.$ac_ext <<_ACEOF
4714
/* end confdefs.h. */
4715
$ac_includes_default
4716
typedef char ac__type_sizeof_;
4720
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4727
rm -f conftest.$ac_objext
4728
if { (ac_try="$ac_compile"
4730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731
*) ac_try_echo=$ac_try;;
4733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734
(eval "$ac_compile") 2>conftest.er1
4736
grep -v '^ *+' conftest.er1 >conftest.err
4738
cat conftest.err >&5
4739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740
(exit $ac_status); } && {
4741
test -z "$ac_c_werror_flag" ||
4742
test ! -s conftest.err
4743
} && test -s conftest.$ac_objext; then
4746
echo "$as_me: failed program was:" >&5
4747
sed 's/^/| /' conftest.$ac_ext >&5
4749
ac_lo=`expr '(' $ac_mid ')' + 1`
4752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755
?*) ac_cv_sizeof_char=$ac_lo;;
4756
'') if test "$ac_cv_type_char" = yes; then
4757
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4758
See \`config.log' for more details." >&5
4759
echo "$as_me: error: cannot compute sizeof (char)
4760
See \`config.log' for more details." >&2;}
4761
{ (exit 77); exit 77; }; }
4767
cat >conftest.$ac_ext <<_ACEOF
4770
cat confdefs.h >>conftest.$ac_ext
4771
cat >>conftest.$ac_ext <<_ACEOF
4772
/* end confdefs.h. */
4773
$ac_includes_default
4774
typedef char ac__type_sizeof_;
4775
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4776
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4783
FILE *f = fopen ("conftest.val", "w");
4786
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4788
long int i = longval ();
4789
if (i != ((long int) (sizeof (ac__type_sizeof_))))
4791
fprintf (f, "%ld\n", i);
4795
unsigned long int i = ulongval ();
4796
if (i != ((long int) (sizeof (ac__type_sizeof_))))
4798
fprintf (f, "%lu\n", i);
4800
return ferror (f) || fclose (f) != 0;
4806
rm -f conftest$ac_exeext
4807
if { (ac_try="$ac_link"
4809
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810
*) ac_try_echo=$ac_try;;
4812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813
(eval "$ac_link") 2>&5
4815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4817
{ (case "(($ac_try" in
4818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819
*) ac_try_echo=$ac_try;;
4821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822
(eval "$ac_try") 2>&5
4824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825
(exit $ac_status); }; }; then
4826
ac_cv_sizeof_char=`cat conftest.val`
4828
echo "$as_me: program exited with status $ac_status" >&5
4829
echo "$as_me: failed program was:" >&5
4830
sed 's/^/| /' conftest.$ac_ext >&5
4833
if test "$ac_cv_type_char" = yes; then
4834
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
4835
See \`config.log' for more details." >&5
4836
echo "$as_me: error: cannot compute sizeof (char)
4837
See \`config.log' for more details." >&2;}
4838
{ (exit 77); exit 77; }; }
4843
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4847
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4848
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
4852
cat >>confdefs.h <<_ACEOF
4853
#define SIZEOF_CHAR $ac_cv_sizeof_char
4857
{ echo "$as_me:$LINENO: checking for short" >&5
4858
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4859
if test "${ac_cv_type_short+set}" = set; then
4860
echo $ECHO_N "(cached) $ECHO_C" >&6
4862
cat >conftest.$ac_ext <<_ACEOF
4865
cat confdefs.h >>conftest.$ac_ext
4866
cat >>conftest.$ac_ext <<_ACEOF
4867
/* end confdefs.h. */
4868
$ac_includes_default
4869
typedef short ac__type_new_;
4873
if ((ac__type_new_ *) 0)
4875
if (sizeof (ac__type_new_))
4881
rm -f conftest.$ac_objext
4882
if { (ac_try="$ac_compile"
4884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885
*) ac_try_echo=$ac_try;;
4887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888
(eval "$ac_compile") 2>conftest.er1
4890
grep -v '^ *+' conftest.er1 >conftest.err
4892
cat conftest.err >&5
4893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894
(exit $ac_status); } && {
4895
test -z "$ac_c_werror_flag" ||
4896
test ! -s conftest.err
4897
} && test -s conftest.$ac_objext; then
4898
ac_cv_type_short=yes
4900
echo "$as_me: failed program was:" >&5
4901
sed 's/^/| /' conftest.$ac_ext >&5
4906
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4909
echo "${ECHO_T}$ac_cv_type_short" >&6; }
4911
# The cast to long int works around a bug in the HP C Compiler
4912
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4913
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4914
# This bug is HP SR number 8606223364.
4915
{ echo "$as_me:$LINENO: checking size of short" >&5
4916
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4917
if test "${ac_cv_sizeof_short+set}" = set; then
4918
echo $ECHO_N "(cached) $ECHO_C" >&6
4920
if test "$cross_compiling" = yes; then
4921
# Depending upon the size, compute the lo and hi bounds.
4922
cat >conftest.$ac_ext <<_ACEOF
4925
cat confdefs.h >>conftest.$ac_ext
4926
cat >>conftest.$ac_ext <<_ACEOF
4927
/* end confdefs.h. */
4928
$ac_includes_default
4929
typedef short ac__type_sizeof_;
4933
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4940
rm -f conftest.$ac_objext
4941
if { (ac_try="$ac_compile"
4943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944
*) ac_try_echo=$ac_try;;
4946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947
(eval "$ac_compile") 2>conftest.er1
4949
grep -v '^ *+' conftest.er1 >conftest.err
4951
cat conftest.err >&5
4952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953
(exit $ac_status); } && {
4954
test -z "$ac_c_werror_flag" ||
4955
test ! -s conftest.err
4956
} && test -s conftest.$ac_objext; then
4959
cat >conftest.$ac_ext <<_ACEOF
4962
cat confdefs.h >>conftest.$ac_ext
4963
cat >>conftest.$ac_ext <<_ACEOF
4964
/* end confdefs.h. */
4965
$ac_includes_default
4966
typedef short ac__type_sizeof_;
4970
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4977
rm -f conftest.$ac_objext
4978
if { (ac_try="$ac_compile"
4980
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981
*) ac_try_echo=$ac_try;;
4983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984
(eval "$ac_compile") 2>conftest.er1
4986
grep -v '^ *+' conftest.er1 >conftest.err
4988
cat conftest.err >&5
4989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990
(exit $ac_status); } && {
4991
test -z "$ac_c_werror_flag" ||
4992
test ! -s conftest.err
4993
} && test -s conftest.$ac_objext; then
4994
ac_hi=$ac_mid; break
4996
echo "$as_me: failed program was:" >&5
4997
sed 's/^/| /' conftest.$ac_ext >&5
4999
ac_lo=`expr $ac_mid + 1`
5000
if test $ac_lo -le $ac_mid; then
5004
ac_mid=`expr 2 '*' $ac_mid + 1`
5007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010
echo "$as_me: failed program was:" >&5
5011
sed 's/^/| /' conftest.$ac_ext >&5
5013
cat >conftest.$ac_ext <<_ACEOF
5016
cat confdefs.h >>conftest.$ac_ext
5017
cat >>conftest.$ac_ext <<_ACEOF
5018
/* end confdefs.h. */
5019
$ac_includes_default
5020
typedef short ac__type_sizeof_;
5024
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5031
rm -f conftest.$ac_objext
5032
if { (ac_try="$ac_compile"
5034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035
*) ac_try_echo=$ac_try;;
5037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038
(eval "$ac_compile") 2>conftest.er1
5040
grep -v '^ *+' conftest.er1 >conftest.err
5042
cat conftest.err >&5
5043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044
(exit $ac_status); } && {
5045
test -z "$ac_c_werror_flag" ||
5046
test ! -s conftest.err
5047
} && test -s conftest.$ac_objext; then
5050
cat >conftest.$ac_ext <<_ACEOF
5053
cat confdefs.h >>conftest.$ac_ext
5054
cat >>conftest.$ac_ext <<_ACEOF
5055
/* end confdefs.h. */
5056
$ac_includes_default
5057
typedef short ac__type_sizeof_;
5061
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5068
rm -f conftest.$ac_objext
5069
if { (ac_try="$ac_compile"
5071
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072
*) ac_try_echo=$ac_try;;
5074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075
(eval "$ac_compile") 2>conftest.er1
5077
grep -v '^ *+' conftest.er1 >conftest.err
5079
cat conftest.err >&5
5080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081
(exit $ac_status); } && {
5082
test -z "$ac_c_werror_flag" ||
5083
test ! -s conftest.err
5084
} && test -s conftest.$ac_objext; then
5085
ac_lo=$ac_mid; break
5087
echo "$as_me: failed program was:" >&5
5088
sed 's/^/| /' conftest.$ac_ext >&5
5090
ac_hi=`expr '(' $ac_mid ')' - 1`
5091
if test $ac_mid -le $ac_hi; then
5095
ac_mid=`expr 2 '*' $ac_mid`
5098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101
echo "$as_me: failed program was:" >&5
5102
sed 's/^/| /' conftest.$ac_ext >&5
5107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111
# Binary search between lo and hi bounds.
5112
while test "x$ac_lo" != "x$ac_hi"; do
5113
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5114
cat >conftest.$ac_ext <<_ACEOF
5117
cat confdefs.h >>conftest.$ac_ext
5118
cat >>conftest.$ac_ext <<_ACEOF
5119
/* end confdefs.h. */
5120
$ac_includes_default
5121
typedef short ac__type_sizeof_;
5125
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5132
rm -f conftest.$ac_objext
5133
if { (ac_try="$ac_compile"
5135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136
*) ac_try_echo=$ac_try;;
5138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139
(eval "$ac_compile") 2>conftest.er1
5141
grep -v '^ *+' conftest.er1 >conftest.err
5143
cat conftest.err >&5
5144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145
(exit $ac_status); } && {
5146
test -z "$ac_c_werror_flag" ||
5147
test ! -s conftest.err
5148
} && test -s conftest.$ac_objext; then
5151
echo "$as_me: failed program was:" >&5
5152
sed 's/^/| /' conftest.$ac_ext >&5
5154
ac_lo=`expr '(' $ac_mid ')' + 1`
5157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160
?*) ac_cv_sizeof_short=$ac_lo;;
5161
'') if test "$ac_cv_type_short" = yes; then
5162
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5163
See \`config.log' for more details." >&5
5164
echo "$as_me: error: cannot compute sizeof (short)
5165
See \`config.log' for more details." >&2;}
5166
{ (exit 77); exit 77; }; }
5168
ac_cv_sizeof_short=0
5172
cat >conftest.$ac_ext <<_ACEOF
5175
cat confdefs.h >>conftest.$ac_ext
5176
cat >>conftest.$ac_ext <<_ACEOF
5177
/* end confdefs.h. */
5178
$ac_includes_default
5179
typedef short ac__type_sizeof_;
5180
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5181
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5188
FILE *f = fopen ("conftest.val", "w");
5191
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5193
long int i = longval ();
5194
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5196
fprintf (f, "%ld\n", i);
5200
unsigned long int i = ulongval ();
5201
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5203
fprintf (f, "%lu\n", i);
5205
return ferror (f) || fclose (f) != 0;
5211
rm -f conftest$ac_exeext
5212
if { (ac_try="$ac_link"
5214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215
*) ac_try_echo=$ac_try;;
5217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218
(eval "$ac_link") 2>&5
5220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5222
{ (case "(($ac_try" in
5223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224
*) ac_try_echo=$ac_try;;
5226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227
(eval "$ac_try") 2>&5
5229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230
(exit $ac_status); }; }; then
5231
ac_cv_sizeof_short=`cat conftest.val`
5233
echo "$as_me: program exited with status $ac_status" >&5
5234
echo "$as_me: failed program was:" >&5
5235
sed 's/^/| /' conftest.$ac_ext >&5
5238
if test "$ac_cv_type_short" = yes; then
5239
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5240
See \`config.log' for more details." >&5
5241
echo "$as_me: error: cannot compute sizeof (short)
5242
See \`config.log' for more details." >&2;}
5243
{ (exit 77); exit 77; }; }
5245
ac_cv_sizeof_short=0
5248
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5252
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5253
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5257
cat >>confdefs.h <<_ACEOF
5258
#define SIZEOF_SHORT $ac_cv_sizeof_short
5262
{ echo "$as_me:$LINENO: checking for int" >&5
5263
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5264
if test "${ac_cv_type_int+set}" = set; then
5265
echo $ECHO_N "(cached) $ECHO_C" >&6
5267
cat >conftest.$ac_ext <<_ACEOF
5270
cat confdefs.h >>conftest.$ac_ext
5271
cat >>conftest.$ac_ext <<_ACEOF
5272
/* end confdefs.h. */
5273
$ac_includes_default
5274
typedef int ac__type_new_;
5278
if ((ac__type_new_ *) 0)
5280
if (sizeof (ac__type_new_))
5286
rm -f conftest.$ac_objext
5287
if { (ac_try="$ac_compile"
5289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290
*) ac_try_echo=$ac_try;;
5292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293
(eval "$ac_compile") 2>conftest.er1
5295
grep -v '^ *+' conftest.er1 >conftest.err
5297
cat conftest.err >&5
5298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299
(exit $ac_status); } && {
5300
test -z "$ac_c_werror_flag" ||
5301
test ! -s conftest.err
5302
} && test -s conftest.$ac_objext; then
5305
echo "$as_me: failed program was:" >&5
5306
sed 's/^/| /' conftest.$ac_ext >&5
5311
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5314
echo "${ECHO_T}$ac_cv_type_int" >&6; }
5316
# The cast to long int works around a bug in the HP C Compiler
5317
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5318
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5319
# This bug is HP SR number 8606223364.
5320
{ echo "$as_me:$LINENO: checking size of int" >&5
5321
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5322
if test "${ac_cv_sizeof_int+set}" = set; then
5323
echo $ECHO_N "(cached) $ECHO_C" >&6
5325
if test "$cross_compiling" = yes; then
5326
# Depending upon the size, compute the lo and hi bounds.
5327
cat >conftest.$ac_ext <<_ACEOF
5330
cat confdefs.h >>conftest.$ac_ext
5331
cat >>conftest.$ac_ext <<_ACEOF
5332
/* end confdefs.h. */
5333
$ac_includes_default
5334
typedef int ac__type_sizeof_;
5338
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5345
rm -f conftest.$ac_objext
5346
if { (ac_try="$ac_compile"
5348
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349
*) ac_try_echo=$ac_try;;
5351
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5352
(eval "$ac_compile") 2>conftest.er1
5354
grep -v '^ *+' conftest.er1 >conftest.err
5356
cat conftest.err >&5
5357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358
(exit $ac_status); } && {
5359
test -z "$ac_c_werror_flag" ||
5360
test ! -s conftest.err
5361
} && test -s conftest.$ac_objext; then
5364
cat >conftest.$ac_ext <<_ACEOF
5367
cat confdefs.h >>conftest.$ac_ext
5368
cat >>conftest.$ac_ext <<_ACEOF
5369
/* end confdefs.h. */
5370
$ac_includes_default
5371
typedef int ac__type_sizeof_;
5375
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5382
rm -f conftest.$ac_objext
5383
if { (ac_try="$ac_compile"
5385
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386
*) ac_try_echo=$ac_try;;
5388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389
(eval "$ac_compile") 2>conftest.er1
5391
grep -v '^ *+' conftest.er1 >conftest.err
5393
cat conftest.err >&5
5394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395
(exit $ac_status); } && {
5396
test -z "$ac_c_werror_flag" ||
5397
test ! -s conftest.err
5398
} && test -s conftest.$ac_objext; then
5399
ac_hi=$ac_mid; break
5401
echo "$as_me: failed program was:" >&5
5402
sed 's/^/| /' conftest.$ac_ext >&5
5404
ac_lo=`expr $ac_mid + 1`
5405
if test $ac_lo -le $ac_mid; then
5409
ac_mid=`expr 2 '*' $ac_mid + 1`
5412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415
echo "$as_me: failed program was:" >&5
5416
sed 's/^/| /' conftest.$ac_ext >&5
5418
cat >conftest.$ac_ext <<_ACEOF
5421
cat confdefs.h >>conftest.$ac_ext
5422
cat >>conftest.$ac_ext <<_ACEOF
5423
/* end confdefs.h. */
5424
$ac_includes_default
5425
typedef int ac__type_sizeof_;
5429
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5436
rm -f conftest.$ac_objext
5437
if { (ac_try="$ac_compile"
5439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440
*) ac_try_echo=$ac_try;;
5442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443
(eval "$ac_compile") 2>conftest.er1
5445
grep -v '^ *+' conftest.er1 >conftest.err
5447
cat conftest.err >&5
5448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449
(exit $ac_status); } && {
5450
test -z "$ac_c_werror_flag" ||
5451
test ! -s conftest.err
5452
} && test -s conftest.$ac_objext; then
5455
cat >conftest.$ac_ext <<_ACEOF
5458
cat confdefs.h >>conftest.$ac_ext
5459
cat >>conftest.$ac_ext <<_ACEOF
5460
/* end confdefs.h. */
5461
$ac_includes_default
5462
typedef int ac__type_sizeof_;
5466
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5473
rm -f conftest.$ac_objext
5474
if { (ac_try="$ac_compile"
5476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477
*) ac_try_echo=$ac_try;;
5479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480
(eval "$ac_compile") 2>conftest.er1
5482
grep -v '^ *+' conftest.er1 >conftest.err
5484
cat conftest.err >&5
5485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486
(exit $ac_status); } && {
5487
test -z "$ac_c_werror_flag" ||
5488
test ! -s conftest.err
5489
} && test -s conftest.$ac_objext; then
5490
ac_lo=$ac_mid; break
5492
echo "$as_me: failed program was:" >&5
5493
sed 's/^/| /' conftest.$ac_ext >&5
5495
ac_hi=`expr '(' $ac_mid ')' - 1`
5496
if test $ac_mid -le $ac_hi; then
5500
ac_mid=`expr 2 '*' $ac_mid`
5503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506
echo "$as_me: failed program was:" >&5
5507
sed 's/^/| /' conftest.$ac_ext >&5
5512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516
# Binary search between lo and hi bounds.
5517
while test "x$ac_lo" != "x$ac_hi"; do
5518
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5519
cat >conftest.$ac_ext <<_ACEOF
5522
cat confdefs.h >>conftest.$ac_ext
5523
cat >>conftest.$ac_ext <<_ACEOF
5524
/* end confdefs.h. */
5525
$ac_includes_default
5526
typedef int ac__type_sizeof_;
5530
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5537
rm -f conftest.$ac_objext
5538
if { (ac_try="$ac_compile"
5540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541
*) ac_try_echo=$ac_try;;
5543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544
(eval "$ac_compile") 2>conftest.er1
5546
grep -v '^ *+' conftest.er1 >conftest.err
5548
cat conftest.err >&5
5549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550
(exit $ac_status); } && {
5551
test -z "$ac_c_werror_flag" ||
5552
test ! -s conftest.err
5553
} && test -s conftest.$ac_objext; then
5556
echo "$as_me: failed program was:" >&5
5557
sed 's/^/| /' conftest.$ac_ext >&5
5559
ac_lo=`expr '(' $ac_mid ')' + 1`
5562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565
?*) ac_cv_sizeof_int=$ac_lo;;
5566
'') if test "$ac_cv_type_int" = yes; then
5567
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5568
See \`config.log' for more details." >&5
5569
echo "$as_me: error: cannot compute sizeof (int)
5570
See \`config.log' for more details." >&2;}
5571
{ (exit 77); exit 77; }; }
5577
cat >conftest.$ac_ext <<_ACEOF
5580
cat confdefs.h >>conftest.$ac_ext
5581
cat >>conftest.$ac_ext <<_ACEOF
5582
/* end confdefs.h. */
5583
$ac_includes_default
5584
typedef int ac__type_sizeof_;
5585
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5586
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5593
FILE *f = fopen ("conftest.val", "w");
5596
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5598
long int i = longval ();
5599
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5601
fprintf (f, "%ld\n", i);
5605
unsigned long int i = ulongval ();
5606
if (i != ((long int) (sizeof (ac__type_sizeof_))))
5608
fprintf (f, "%lu\n", i);
5610
return ferror (f) || fclose (f) != 0;
5616
rm -f conftest$ac_exeext
5617
if { (ac_try="$ac_link"
5619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620
*) ac_try_echo=$ac_try;;
5622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623
(eval "$ac_link") 2>&5
5625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5627
{ (case "(($ac_try" in
5628
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629
*) ac_try_echo=$ac_try;;
5631
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632
(eval "$ac_try") 2>&5
5634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635
(exit $ac_status); }; }; then
5636
ac_cv_sizeof_int=`cat conftest.val`
5638
echo "$as_me: program exited with status $ac_status" >&5
5639
echo "$as_me: failed program was:" >&5
5640
sed 's/^/| /' conftest.$ac_ext >&5
5643
if test "$ac_cv_type_int" = yes; then
5644
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5645
See \`config.log' for more details." >&5
5646
echo "$as_me: error: cannot compute sizeof (int)
5647
See \`config.log' for more details." >&2;}
5648
{ (exit 77); exit 77; }; }
5653
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5657
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5658
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5662
cat >>confdefs.h <<_ACEOF
5663
#define SIZEOF_INT $ac_cv_sizeof_int
5667
{ echo "$as_me:$LINENO: checking for long" >&5
5668
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5669
if test "${ac_cv_type_long+set}" = set; then
5670
echo $ECHO_N "(cached) $ECHO_C" >&6
5672
cat >conftest.$ac_ext <<_ACEOF
5675
cat confdefs.h >>conftest.$ac_ext
5676
cat >>conftest.$ac_ext <<_ACEOF
5677
/* end confdefs.h. */
5678
$ac_includes_default
5679
typedef long ac__type_new_;
5683
if ((ac__type_new_ *) 0)
5685
if (sizeof (ac__type_new_))
5691
rm -f conftest.$ac_objext
5692
if { (ac_try="$ac_compile"
5694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695
*) ac_try_echo=$ac_try;;
5697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698
(eval "$ac_compile") 2>conftest.er1
5700
grep -v '^ *+' conftest.er1 >conftest.err
5702
cat conftest.err >&5
5703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704
(exit $ac_status); } && {
5705
test -z "$ac_c_werror_flag" ||
5706
test ! -s conftest.err
5707
} && test -s conftest.$ac_objext; then
5710
echo "$as_me: failed program was:" >&5
5711
sed 's/^/| /' conftest.$ac_ext >&5
5716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5719
echo "${ECHO_T}$ac_cv_type_long" >&6; }
5721
# The cast to long int works around a bug in the HP C Compiler
5722
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5723
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5724
# This bug is HP SR number 8606223364.
5725
{ echo "$as_me:$LINENO: checking size of long" >&5
5726
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5727
if test "${ac_cv_sizeof_long+set}" = set; then
5728
echo $ECHO_N "(cached) $ECHO_C" >&6
5730
if test "$cross_compiling" = yes; then
5731
# Depending upon the size, compute the lo and hi bounds.
5732
cat >conftest.$ac_ext <<_ACEOF
5735
cat confdefs.h >>conftest.$ac_ext
5736
cat >>conftest.$ac_ext <<_ACEOF
5737
/* end confdefs.h. */
5738
$ac_includes_default
5739
typedef long ac__type_sizeof_;
5743
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5750
rm -f conftest.$ac_objext
5751
if { (ac_try="$ac_compile"
5753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754
*) ac_try_echo=$ac_try;;
5756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757
(eval "$ac_compile") 2>conftest.er1
5759
grep -v '^ *+' conftest.er1 >conftest.err
5761
cat conftest.err >&5
5762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763
(exit $ac_status); } && {
5764
test -z "$ac_c_werror_flag" ||
5765
test ! -s conftest.err
5766
} && test -s conftest.$ac_objext; then
5769
cat >conftest.$ac_ext <<_ACEOF
5772
cat confdefs.h >>conftest.$ac_ext
5773
cat >>conftest.$ac_ext <<_ACEOF
5774
/* end confdefs.h. */
5775
$ac_includes_default
5776
typedef long ac__type_sizeof_;
5780
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5787
rm -f conftest.$ac_objext
5788
if { (ac_try="$ac_compile"
5790
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791
*) ac_try_echo=$ac_try;;
5793
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794
(eval "$ac_compile") 2>conftest.er1
5796
grep -v '^ *+' conftest.er1 >conftest.err
5798
cat conftest.err >&5
5799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800
(exit $ac_status); } && {
5801
test -z "$ac_c_werror_flag" ||
5802
test ! -s conftest.err
5803
} && test -s conftest.$ac_objext; then
5804
ac_hi=$ac_mid; break
5806
echo "$as_me: failed program was:" >&5
5807
sed 's/^/| /' conftest.$ac_ext >&5
5809
ac_lo=`expr $ac_mid + 1`
5810
if test $ac_lo -le $ac_mid; then
5814
ac_mid=`expr 2 '*' $ac_mid + 1`
5817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820
echo "$as_me: failed program was:" >&5
5821
sed 's/^/| /' conftest.$ac_ext >&5
5823
cat >conftest.$ac_ext <<_ACEOF
5826
cat confdefs.h >>conftest.$ac_ext
5827
cat >>conftest.$ac_ext <<_ACEOF
5828
/* end confdefs.h. */
5829
$ac_includes_default
5830
typedef long ac__type_sizeof_;
5834
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5841
rm -f conftest.$ac_objext
5842
if { (ac_try="$ac_compile"
5844
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845
*) ac_try_echo=$ac_try;;
5847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848
(eval "$ac_compile") 2>conftest.er1
5850
grep -v '^ *+' conftest.er1 >conftest.err
5852
cat conftest.err >&5
5853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854
(exit $ac_status); } && {
5855
test -z "$ac_c_werror_flag" ||
5856
test ! -s conftest.err
5857
} && test -s conftest.$ac_objext; then
5860
cat >conftest.$ac_ext <<_ACEOF
5863
cat confdefs.h >>conftest.$ac_ext
5864
cat >>conftest.$ac_ext <<_ACEOF
5865
/* end confdefs.h. */
5866
$ac_includes_default
5867
typedef long ac__type_sizeof_;
5871
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5878
rm -f conftest.$ac_objext
5879
if { (ac_try="$ac_compile"
5881
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882
*) ac_try_echo=$ac_try;;
5884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885
(eval "$ac_compile") 2>conftest.er1
5887
grep -v '^ *+' conftest.er1 >conftest.err
5889
cat conftest.err >&5
5890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891
(exit $ac_status); } && {
5892
test -z "$ac_c_werror_flag" ||
5893
test ! -s conftest.err
5894
} && test -s conftest.$ac_objext; then
5895
ac_lo=$ac_mid; break
5897
echo "$as_me: failed program was:" >&5
5898
sed 's/^/| /' conftest.$ac_ext >&5
5900
ac_hi=`expr '(' $ac_mid ')' - 1`
5901
if test $ac_mid -le $ac_hi; then
5905
ac_mid=`expr 2 '*' $ac_mid`
5908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911
echo "$as_me: failed program was:" >&5
5912
sed 's/^/| /' conftest.$ac_ext >&5
5917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921
# Binary search between lo and hi bounds.
5922
while test "x$ac_lo" != "x$ac_hi"; do
5923
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5924
cat >conftest.$ac_ext <<_ACEOF
5927
cat confdefs.h >>conftest.$ac_ext
5928
cat >>conftest.$ac_ext <<_ACEOF
5929
/* end confdefs.h. */
5930
$ac_includes_default
5931
typedef long ac__type_sizeof_;
5935
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5942
rm -f conftest.$ac_objext
5943
if { (ac_try="$ac_compile"
5945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946
*) ac_try_echo=$ac_try;;
5948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949
(eval "$ac_compile") 2>conftest.er1
5951
grep -v '^ *+' conftest.er1 >conftest.err
5953
cat conftest.err >&5
5954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955
(exit $ac_status); } && {
5956
test -z "$ac_c_werror_flag" ||
5957
test ! -s conftest.err
5958
} && test -s conftest.$ac_objext; then
5961
echo "$as_me: failed program was:" >&5
5962
sed 's/^/| /' conftest.$ac_ext >&5
5964
ac_lo=`expr '(' $ac_mid ')' + 1`
5967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970
?*) ac_cv_sizeof_long=$ac_lo;;
5971
'') if test "$ac_cv_type_long" = yes; then
5972
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5973
See \`config.log' for more details." >&5
5974
echo "$as_me: error: cannot compute sizeof (long)
5975
See \`config.log' for more details." >&2;}
5976
{ (exit 77); exit 77; }; }
5982
cat >conftest.$ac_ext <<_ACEOF
5985
cat confdefs.h >>conftest.$ac_ext
5986
cat >>conftest.$ac_ext <<_ACEOF
5987
/* end confdefs.h. */
5988
$ac_includes_default
5989
typedef long ac__type_sizeof_;
5990
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5991
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5998
FILE *f = fopen ("conftest.val", "w");
6001
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6003
long int i = longval ();
6004
if (i != ((long int) (sizeof (ac__type_sizeof_))))
6006
fprintf (f, "%ld\n", i);
6010
unsigned long int i = ulongval ();
6011
if (i != ((long int) (sizeof (ac__type_sizeof_))))
6013
fprintf (f, "%lu\n", i);
6015
return ferror (f) || fclose (f) != 0;
6021
rm -f conftest$ac_exeext
6022
if { (ac_try="$ac_link"
6024
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025
*) ac_try_echo=$ac_try;;
6027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028
(eval "$ac_link") 2>&5
6030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6032
{ (case "(($ac_try" in
6033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034
*) ac_try_echo=$ac_try;;
6036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037
(eval "$ac_try") 2>&5
6039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040
(exit $ac_status); }; }; then
6041
ac_cv_sizeof_long=`cat conftest.val`
6043
echo "$as_me: program exited with status $ac_status" >&5
6044
echo "$as_me: failed program was:" >&5
6045
sed 's/^/| /' conftest.$ac_ext >&5
6048
if test "$ac_cv_type_long" = yes; then
6049
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6050
See \`config.log' for more details." >&5
6051
echo "$as_me: error: cannot compute sizeof (long)
6052
See \`config.log' for more details." >&2;}
6053
{ (exit 77); exit 77; }; }
6058
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6062
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6063
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6067
cat >>confdefs.h <<_ACEOF
6068
#define SIZEOF_LONG $ac_cv_sizeof_long
6072
{ echo "$as_me:$LINENO: checking for long long" >&5
6073
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6074
if test "${ac_cv_type_long_long+set}" = set; then
6075
echo $ECHO_N "(cached) $ECHO_C" >&6
6077
cat >conftest.$ac_ext <<_ACEOF
6080
cat confdefs.h >>conftest.$ac_ext
6081
cat >>conftest.$ac_ext <<_ACEOF
6082
/* end confdefs.h. */
6083
$ac_includes_default
6084
typedef long long ac__type_new_;
6088
if ((ac__type_new_ *) 0)
6090
if (sizeof (ac__type_new_))
6096
rm -f conftest.$ac_objext
6097
if { (ac_try="$ac_compile"
6099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100
*) ac_try_echo=$ac_try;;
6102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103
(eval "$ac_compile") 2>conftest.er1
6105
grep -v '^ *+' conftest.er1 >conftest.err
6107
cat conftest.err >&5
6108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109
(exit $ac_status); } && {
6110
test -z "$ac_c_werror_flag" ||
6111
test ! -s conftest.err
6112
} && test -s conftest.$ac_objext; then
6113
ac_cv_type_long_long=yes
6115
echo "$as_me: failed program was:" >&5
6116
sed 's/^/| /' conftest.$ac_ext >&5
6118
ac_cv_type_long_long=no
6121
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6124
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6126
# The cast to long int works around a bug in the HP C Compiler
6127
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6128
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6129
# This bug is HP SR number 8606223364.
6130
{ echo "$as_me:$LINENO: checking size of long long" >&5
6131
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6132
if test "${ac_cv_sizeof_long_long+set}" = set; then
6133
echo $ECHO_N "(cached) $ECHO_C" >&6
6135
if test "$cross_compiling" = yes; then
6136
# Depending upon the size, compute the lo and hi bounds.
6137
cat >conftest.$ac_ext <<_ACEOF
6140
cat confdefs.h >>conftest.$ac_ext
6141
cat >>conftest.$ac_ext <<_ACEOF
6142
/* end confdefs.h. */
6143
$ac_includes_default
6144
typedef long long ac__type_sizeof_;
6148
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6155
rm -f conftest.$ac_objext
6156
if { (ac_try="$ac_compile"
6158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159
*) ac_try_echo=$ac_try;;
6161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162
(eval "$ac_compile") 2>conftest.er1
6164
grep -v '^ *+' conftest.er1 >conftest.err
6166
cat conftest.err >&5
6167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168
(exit $ac_status); } && {
6169
test -z "$ac_c_werror_flag" ||
6170
test ! -s conftest.err
6171
} && test -s conftest.$ac_objext; then
6174
cat >conftest.$ac_ext <<_ACEOF
6177
cat confdefs.h >>conftest.$ac_ext
6178
cat >>conftest.$ac_ext <<_ACEOF
6179
/* end confdefs.h. */
6180
$ac_includes_default
6181
typedef long long ac__type_sizeof_;
6185
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6192
rm -f conftest.$ac_objext
6193
if { (ac_try="$ac_compile"
6195
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196
*) ac_try_echo=$ac_try;;
6198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199
(eval "$ac_compile") 2>conftest.er1
6201
grep -v '^ *+' conftest.er1 >conftest.err
6203
cat conftest.err >&5
6204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205
(exit $ac_status); } && {
6206
test -z "$ac_c_werror_flag" ||
6207
test ! -s conftest.err
6208
} && test -s conftest.$ac_objext; then
6209
ac_hi=$ac_mid; break
6211
echo "$as_me: failed program was:" >&5
6212
sed 's/^/| /' conftest.$ac_ext >&5
6214
ac_lo=`expr $ac_mid + 1`
6215
if test $ac_lo -le $ac_mid; then
6219
ac_mid=`expr 2 '*' $ac_mid + 1`
6222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225
echo "$as_me: failed program was:" >&5
6226
sed 's/^/| /' conftest.$ac_ext >&5
6228
cat >conftest.$ac_ext <<_ACEOF
6231
cat confdefs.h >>conftest.$ac_ext
6232
cat >>conftest.$ac_ext <<_ACEOF
6233
/* end confdefs.h. */
6234
$ac_includes_default
6235
typedef long long ac__type_sizeof_;
6239
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6246
rm -f conftest.$ac_objext
6247
if { (ac_try="$ac_compile"
6249
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250
*) ac_try_echo=$ac_try;;
6252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253
(eval "$ac_compile") 2>conftest.er1
6255
grep -v '^ *+' conftest.er1 >conftest.err
6257
cat conftest.err >&5
6258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259
(exit $ac_status); } && {
6260
test -z "$ac_c_werror_flag" ||
6261
test ! -s conftest.err
6262
} && test -s conftest.$ac_objext; then
6265
cat >conftest.$ac_ext <<_ACEOF
6268
cat confdefs.h >>conftest.$ac_ext
6269
cat >>conftest.$ac_ext <<_ACEOF
6270
/* end confdefs.h. */
6271
$ac_includes_default
6272
typedef long long ac__type_sizeof_;
6276
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6283
rm -f conftest.$ac_objext
6284
if { (ac_try="$ac_compile"
6286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287
*) ac_try_echo=$ac_try;;
6289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290
(eval "$ac_compile") 2>conftest.er1
6292
grep -v '^ *+' conftest.er1 >conftest.err
6294
cat conftest.err >&5
6295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296
(exit $ac_status); } && {
6297
test -z "$ac_c_werror_flag" ||
6298
test ! -s conftest.err
6299
} && test -s conftest.$ac_objext; then
6300
ac_lo=$ac_mid; break
6302
echo "$as_me: failed program was:" >&5
6303
sed 's/^/| /' conftest.$ac_ext >&5
6305
ac_hi=`expr '(' $ac_mid ')' - 1`
6306
if test $ac_mid -le $ac_hi; then
6310
ac_mid=`expr 2 '*' $ac_mid`
6313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
echo "$as_me: failed program was:" >&5
6317
sed 's/^/| /' conftest.$ac_ext >&5
6322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326
# Binary search between lo and hi bounds.
6327
while test "x$ac_lo" != "x$ac_hi"; do
6328
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6329
cat >conftest.$ac_ext <<_ACEOF
6332
cat confdefs.h >>conftest.$ac_ext
6333
cat >>conftest.$ac_ext <<_ACEOF
6334
/* end confdefs.h. */
6335
$ac_includes_default
6336
typedef long long ac__type_sizeof_;
6340
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6347
rm -f conftest.$ac_objext
6348
if { (ac_try="$ac_compile"
6350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351
*) ac_try_echo=$ac_try;;
6353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354
(eval "$ac_compile") 2>conftest.er1
6356
grep -v '^ *+' conftest.er1 >conftest.err
6358
cat conftest.err >&5
6359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360
(exit $ac_status); } && {
6361
test -z "$ac_c_werror_flag" ||
6362
test ! -s conftest.err
6363
} && test -s conftest.$ac_objext; then
6366
echo "$as_me: failed program was:" >&5
6367
sed 's/^/| /' conftest.$ac_ext >&5
6369
ac_lo=`expr '(' $ac_mid ')' + 1`
6372
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375
?*) ac_cv_sizeof_long_long=$ac_lo;;
6376
'') if test "$ac_cv_type_long_long" = yes; then
6377
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6378
See \`config.log' for more details." >&5
6379
echo "$as_me: error: cannot compute sizeof (long long)
6380
See \`config.log' for more details." >&2;}
6381
{ (exit 77); exit 77; }; }
6383
ac_cv_sizeof_long_long=0
6387
cat >conftest.$ac_ext <<_ACEOF
6390
cat confdefs.h >>conftest.$ac_ext
6391
cat >>conftest.$ac_ext <<_ACEOF
6392
/* end confdefs.h. */
6393
$ac_includes_default
6394
typedef long long ac__type_sizeof_;
6395
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6396
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6403
FILE *f = fopen ("conftest.val", "w");
6406
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6408
long int i = longval ();
6409
if (i != ((long int) (sizeof (ac__type_sizeof_))))
6411
fprintf (f, "%ld\n", i);
6415
unsigned long int i = ulongval ();
6416
if (i != ((long int) (sizeof (ac__type_sizeof_))))
6418
fprintf (f, "%lu\n", i);
6420
return ferror (f) || fclose (f) != 0;
6426
rm -f conftest$ac_exeext
6427
if { (ac_try="$ac_link"
6429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430
*) ac_try_echo=$ac_try;;
6432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433
(eval "$ac_link") 2>&5
6435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6437
{ (case "(($ac_try" in
6438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439
*) ac_try_echo=$ac_try;;
6441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442
(eval "$ac_try") 2>&5
6444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445
(exit $ac_status); }; }; then
6446
ac_cv_sizeof_long_long=`cat conftest.val`
6448
echo "$as_me: program exited with status $ac_status" >&5
6449
echo "$as_me: failed program was:" >&5
6450
sed 's/^/| /' conftest.$ac_ext >&5
6453
if test "$ac_cv_type_long_long" = yes; then
6454
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6455
See \`config.log' for more details." >&5
6456
echo "$as_me: error: cannot compute sizeof (long long)
6457
See \`config.log' for more details." >&2;}
6458
{ (exit 77); exit 77; }; }
6460
ac_cv_sizeof_long_long=0
6463
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6467
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6468
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6472
cat >>confdefs.h <<_ACEOF
6473
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6477
{ echo "$as_me:$LINENO: checking for float" >&5
6478
echo $ECHO_N "checking for float... $ECHO_C" >&6; }
6479
if test "${ac_cv_type_float+set}" = set; then
6480
echo $ECHO_N "(cached) $ECHO_C" >&6
6482
cat >conftest.$ac_ext <<_ACEOF
6485
cat confdefs.h >>conftest.$ac_ext
6486
cat >>conftest.$ac_ext <<_ACEOF
6487
/* end confdefs.h. */
6488
$ac_includes_default
6489
typedef float ac__type_new_;
6493
if ((ac__type_new_ *) 0)
6495
if (sizeof (ac__type_new_))
6501
rm -f conftest.$ac_objext
6502
if { (ac_try="$ac_compile"
6504
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505
*) ac_try_echo=$ac_try;;
6507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508
(eval "$ac_compile") 2>conftest.er1
6510
grep -v '^ *+' conftest.er1 >conftest.err
6512
cat conftest.err >&5
6513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514
(exit $ac_status); } && {
6515
test -z "$ac_c_werror_flag" ||
6516
test ! -s conftest.err
6517
} && test -s conftest.$ac_objext; then
6518
ac_cv_type_float=yes
6520
echo "$as_me: failed program was:" >&5
6521
sed 's/^/| /' conftest.$ac_ext >&5
6526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528
{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
6529
echo "${ECHO_T}$ac_cv_type_float" >&6; }
6531
# The cast to long int works around a bug in the HP C Compiler
6532
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6533
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6534
# This bug is HP SR number 8606223364.
6535
{ echo "$as_me:$LINENO: checking size of float" >&5
6536
echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
6537
if test "${ac_cv_sizeof_float+set}" = set; then
6538
echo $ECHO_N "(cached) $ECHO_C" >&6
6540
if test "$cross_compiling" = yes; then
6541
# Depending upon the size, compute the lo and hi bounds.
6542
cat >conftest.$ac_ext <<_ACEOF
6545
cat confdefs.h >>conftest.$ac_ext
6546
cat >>conftest.$ac_ext <<_ACEOF
6547
/* end confdefs.h. */
6548
$ac_includes_default
6549
typedef float ac__type_sizeof_;
6553
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6560
rm -f conftest.$ac_objext
6561
if { (ac_try="$ac_compile"
6563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564
*) ac_try_echo=$ac_try;;
6566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567
(eval "$ac_compile") 2>conftest.er1
6569
grep -v '^ *+' conftest.er1 >conftest.err
6571
cat conftest.err >&5
6572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573
(exit $ac_status); } && {
6574
test -z "$ac_c_werror_flag" ||
6575
test ! -s conftest.err
6576
} && test -s conftest.$ac_objext; then
6579
cat >conftest.$ac_ext <<_ACEOF
6582
cat confdefs.h >>conftest.$ac_ext
6583
cat >>conftest.$ac_ext <<_ACEOF
6584
/* end confdefs.h. */
6585
$ac_includes_default
6586
typedef float ac__type_sizeof_;
6590
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6597
rm -f conftest.$ac_objext
6598
if { (ac_try="$ac_compile"
6600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601
*) ac_try_echo=$ac_try;;
6603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604
(eval "$ac_compile") 2>conftest.er1
6606
grep -v '^ *+' conftest.er1 >conftest.err
6608
cat conftest.err >&5
6609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610
(exit $ac_status); } && {
6611
test -z "$ac_c_werror_flag" ||
6612
test ! -s conftest.err
6613
} && test -s conftest.$ac_objext; then
6614
ac_hi=$ac_mid; break
6616
echo "$as_me: failed program was:" >&5
6617
sed 's/^/| /' conftest.$ac_ext >&5
6619
ac_lo=`expr $ac_mid + 1`
6620
if test $ac_lo -le $ac_mid; then
6624
ac_mid=`expr 2 '*' $ac_mid + 1`
6627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630
echo "$as_me: failed program was:" >&5
6631
sed 's/^/| /' conftest.$ac_ext >&5
6633
cat >conftest.$ac_ext <<_ACEOF
6636
cat confdefs.h >>conftest.$ac_ext
6637
cat >>conftest.$ac_ext <<_ACEOF
6638
/* end confdefs.h. */
6639
$ac_includes_default
6640
typedef float ac__type_sizeof_;
6644
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6651
rm -f conftest.$ac_objext
6652
if { (ac_try="$ac_compile"
6654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655
*) ac_try_echo=$ac_try;;
6657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658
(eval "$ac_compile") 2>conftest.er1
6660
grep -v '^ *+' conftest.er1 >conftest.err
6662
cat conftest.err >&5
6663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664
(exit $ac_status); } && {
6665
test -z "$ac_c_werror_flag" ||
6666
test ! -s conftest.err
6667
} && test -s conftest.$ac_objext; then
6670
cat >conftest.$ac_ext <<_ACEOF
6673
cat confdefs.h >>conftest.$ac_ext
6674
cat >>conftest.$ac_ext <<_ACEOF
6675
/* end confdefs.h. */
6676
$ac_includes_default
6677
typedef float ac__type_sizeof_;
6681
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6688
rm -f conftest.$ac_objext
6689
if { (ac_try="$ac_compile"
6691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692
*) ac_try_echo=$ac_try;;
6694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695
(eval "$ac_compile") 2>conftest.er1
6697
grep -v '^ *+' conftest.er1 >conftest.err
6699
cat conftest.err >&5
6700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701
(exit $ac_status); } && {
6702
test -z "$ac_c_werror_flag" ||
6703
test ! -s conftest.err
6704
} && test -s conftest.$ac_objext; then
6705
ac_lo=$ac_mid; break
6707
echo "$as_me: failed program was:" >&5
6708
sed 's/^/| /' conftest.$ac_ext >&5
6710
ac_hi=`expr '(' $ac_mid ')' - 1`
6711
if test $ac_mid -le $ac_hi; then
6715
ac_mid=`expr 2 '*' $ac_mid`
6718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721
echo "$as_me: failed program was:" >&5
6722
sed 's/^/| /' conftest.$ac_ext >&5
6727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731
# Binary search between lo and hi bounds.
6732
while test "x$ac_lo" != "x$ac_hi"; do
6733
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6734
cat >conftest.$ac_ext <<_ACEOF
6737
cat confdefs.h >>conftest.$ac_ext
6738
cat >>conftest.$ac_ext <<_ACEOF
6739
/* end confdefs.h. */
6740
$ac_includes_default
6741
typedef float ac__type_sizeof_;
6745
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6752
rm -f conftest.$ac_objext
6753
if { (ac_try="$ac_compile"
6755
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756
*) ac_try_echo=$ac_try;;
6758
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759
(eval "$ac_compile") 2>conftest.er1
6761
grep -v '^ *+' conftest.er1 >conftest.err
6763
cat conftest.err >&5
6764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765
(exit $ac_status); } && {
6766
test -z "$ac_c_werror_flag" ||
6767
test ! -s conftest.err
6768
} && test -s conftest.$ac_objext; then
6771
echo "$as_me: failed program was:" >&5
6772
sed 's/^/| /' conftest.$ac_ext >&5
6774
ac_lo=`expr '(' $ac_mid ')' + 1`
6777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780
?*) ac_cv_sizeof_float=$ac_lo;;
6781
'') if test "$ac_cv_type_float" = yes; then
6782
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
6783
See \`config.log' for more details." >&5
6784
echo "$as_me: error: cannot compute sizeof (float)
6785
See \`config.log' for more details." >&2;}
6786
{ (exit 77); exit 77; }; }
6788
ac_cv_sizeof_float=0
6792
cat >conftest.$ac_ext <<_ACEOF
6795
cat confdefs.h >>conftest.$ac_ext
6796
cat >>conftest.$ac_ext <<_ACEOF
6797
/* end confdefs.h. */
6798
$ac_includes_default
6799
typedef float ac__type_sizeof_;
6800
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6801
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6808
FILE *f = fopen ("conftest.val", "w");
6811
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6813
long int i = longval ();
6814
if (i != ((long int) (sizeof (ac__type_sizeof_))))
6816
fprintf (f, "%ld\n", i);
6820
unsigned long int i = ulongval ();
6821
if (i != ((long int) (sizeof (ac__type_sizeof_))))
6823
fprintf (f, "%lu\n", i);
6825
return ferror (f) || fclose (f) != 0;
6831
rm -f conftest$ac_exeext
6832
if { (ac_try="$ac_link"
6834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835
*) ac_try_echo=$ac_try;;
6837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838
(eval "$ac_link") 2>&5
6840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6842
{ (case "(($ac_try" in
6843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844
*) ac_try_echo=$ac_try;;
6846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847
(eval "$ac_try") 2>&5
6849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850
(exit $ac_status); }; }; then
6851
ac_cv_sizeof_float=`cat conftest.val`
6853
echo "$as_me: program exited with status $ac_status" >&5
6854
echo "$as_me: failed program was:" >&5
6855
sed 's/^/| /' conftest.$ac_ext >&5
6858
if test "$ac_cv_type_float" = yes; then
6859
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
6860
See \`config.log' for more details." >&5
6861
echo "$as_me: error: cannot compute sizeof (float)
6862
See \`config.log' for more details." >&2;}
6863
{ (exit 77); exit 77; }; }
6865
ac_cv_sizeof_float=0
6868
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6872
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6873
echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
6877
cat >>confdefs.h <<_ACEOF
6878
#define SIZEOF_FLOAT $ac_cv_sizeof_float
6882
{ echo "$as_me:$LINENO: checking for double" >&5
6883
echo $ECHO_N "checking for double... $ECHO_C" >&6; }
6884
if test "${ac_cv_type_double+set}" = set; then
6885
echo $ECHO_N "(cached) $ECHO_C" >&6
6887
cat >conftest.$ac_ext <<_ACEOF
6890
cat confdefs.h >>conftest.$ac_ext
6891
cat >>conftest.$ac_ext <<_ACEOF
6892
/* end confdefs.h. */
6893
$ac_includes_default
6894
typedef double ac__type_new_;
6898
if ((ac__type_new_ *) 0)
6900
if (sizeof (ac__type_new_))
6906
rm -f conftest.$ac_objext
6907
if { (ac_try="$ac_compile"
6909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910
*) ac_try_echo=$ac_try;;
6912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913
(eval "$ac_compile") 2>conftest.er1
6915
grep -v '^ *+' conftest.er1 >conftest.err
6917
cat conftest.err >&5
6918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919
(exit $ac_status); } && {
6920
test -z "$ac_c_werror_flag" ||
6921
test ! -s conftest.err
6922
} && test -s conftest.$ac_objext; then
6923
ac_cv_type_double=yes
6925
echo "$as_me: failed program was:" >&5
6926
sed 's/^/| /' conftest.$ac_ext >&5
6928
ac_cv_type_double=no
6931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933
{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6934
echo "${ECHO_T}$ac_cv_type_double" >&6; }
6936
# The cast to long int works around a bug in the HP C Compiler
6937
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6938
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6939
# This bug is HP SR number 8606223364.
6940
{ echo "$as_me:$LINENO: checking size of double" >&5
6941
echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
6942
if test "${ac_cv_sizeof_double+set}" = set; then
6943
echo $ECHO_N "(cached) $ECHO_C" >&6
6945
if test "$cross_compiling" = yes; then
6946
# Depending upon the size, compute the lo and hi bounds.
6947
cat >conftest.$ac_ext <<_ACEOF
6950
cat confdefs.h >>conftest.$ac_ext
6951
cat >>conftest.$ac_ext <<_ACEOF
6952
/* end confdefs.h. */
6953
$ac_includes_default
6954
typedef double ac__type_sizeof_;
6958
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6965
rm -f conftest.$ac_objext
6966
if { (ac_try="$ac_compile"
6968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6969
*) ac_try_echo=$ac_try;;
6971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6972
(eval "$ac_compile") 2>conftest.er1
6974
grep -v '^ *+' conftest.er1 >conftest.err
6976
cat conftest.err >&5
6977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978
(exit $ac_status); } && {
6979
test -z "$ac_c_werror_flag" ||
6980
test ! -s conftest.err
6981
} && test -s conftest.$ac_objext; then
6984
cat >conftest.$ac_ext <<_ACEOF
6987
cat confdefs.h >>conftest.$ac_ext
6988
cat >>conftest.$ac_ext <<_ACEOF
6989
/* end confdefs.h. */
6990
$ac_includes_default
6991
typedef double ac__type_sizeof_;
6995
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7002
rm -f conftest.$ac_objext
7003
if { (ac_try="$ac_compile"
7005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006
*) ac_try_echo=$ac_try;;
7008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009
(eval "$ac_compile") 2>conftest.er1
7011
grep -v '^ *+' conftest.er1 >conftest.err
7013
cat conftest.err >&5
7014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015
(exit $ac_status); } && {
7016
test -z "$ac_c_werror_flag" ||
7017
test ! -s conftest.err
7018
} && test -s conftest.$ac_objext; then
7019
ac_hi=$ac_mid; break
7021
echo "$as_me: failed program was:" >&5
7022
sed 's/^/| /' conftest.$ac_ext >&5
7024
ac_lo=`expr $ac_mid + 1`
7025
if test $ac_lo -le $ac_mid; then
7029
ac_mid=`expr 2 '*' $ac_mid + 1`
7032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035
echo "$as_me: failed program was:" >&5
7036
sed 's/^/| /' conftest.$ac_ext >&5
7038
cat >conftest.$ac_ext <<_ACEOF
7041
cat confdefs.h >>conftest.$ac_ext
7042
cat >>conftest.$ac_ext <<_ACEOF
7043
/* end confdefs.h. */
7044
$ac_includes_default
7045
typedef double ac__type_sizeof_;
7049
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7056
rm -f conftest.$ac_objext
7057
if { (ac_try="$ac_compile"
7059
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060
*) ac_try_echo=$ac_try;;
7062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063
(eval "$ac_compile") 2>conftest.er1
7065
grep -v '^ *+' conftest.er1 >conftest.err
7067
cat conftest.err >&5
7068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069
(exit $ac_status); } && {
7070
test -z "$ac_c_werror_flag" ||
7071
test ! -s conftest.err
7072
} && test -s conftest.$ac_objext; then
7075
cat >conftest.$ac_ext <<_ACEOF
7078
cat confdefs.h >>conftest.$ac_ext
7079
cat >>conftest.$ac_ext <<_ACEOF
7080
/* end confdefs.h. */
7081
$ac_includes_default
7082
typedef double ac__type_sizeof_;
7086
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7093
rm -f conftest.$ac_objext
7094
if { (ac_try="$ac_compile"
7096
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097
*) ac_try_echo=$ac_try;;
7099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100
(eval "$ac_compile") 2>conftest.er1
7102
grep -v '^ *+' conftest.er1 >conftest.err
7104
cat conftest.err >&5
7105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106
(exit $ac_status); } && {
7107
test -z "$ac_c_werror_flag" ||
7108
test ! -s conftest.err
7109
} && test -s conftest.$ac_objext; then
7110
ac_lo=$ac_mid; break
7112
echo "$as_me: failed program was:" >&5
7113
sed 's/^/| /' conftest.$ac_ext >&5
7115
ac_hi=`expr '(' $ac_mid ')' - 1`
7116
if test $ac_mid -le $ac_hi; then
7120
ac_mid=`expr 2 '*' $ac_mid`
7123
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126
echo "$as_me: failed program was:" >&5
7127
sed 's/^/| /' conftest.$ac_ext >&5
7132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136
# Binary search between lo and hi bounds.
7137
while test "x$ac_lo" != "x$ac_hi"; do
7138
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7139
cat >conftest.$ac_ext <<_ACEOF
7142
cat confdefs.h >>conftest.$ac_ext
7143
cat >>conftest.$ac_ext <<_ACEOF
7144
/* end confdefs.h. */
7145
$ac_includes_default
7146
typedef double ac__type_sizeof_;
7150
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7157
rm -f conftest.$ac_objext
7158
if { (ac_try="$ac_compile"
7160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161
*) ac_try_echo=$ac_try;;
7163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164
(eval "$ac_compile") 2>conftest.er1
7166
grep -v '^ *+' conftest.er1 >conftest.err
7168
cat conftest.err >&5
7169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170
(exit $ac_status); } && {
7171
test -z "$ac_c_werror_flag" ||
7172
test ! -s conftest.err
7173
} && test -s conftest.$ac_objext; then
7176
echo "$as_me: failed program was:" >&5
7177
sed 's/^/| /' conftest.$ac_ext >&5
7179
ac_lo=`expr '(' $ac_mid ')' + 1`
7182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185
?*) ac_cv_sizeof_double=$ac_lo;;
7186
'') if test "$ac_cv_type_double" = yes; then
7187
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7188
See \`config.log' for more details." >&5
7189
echo "$as_me: error: cannot compute sizeof (double)
7190
See \`config.log' for more details." >&2;}
7191
{ (exit 77); exit 77; }; }
7193
ac_cv_sizeof_double=0
7197
cat >conftest.$ac_ext <<_ACEOF
7200
cat confdefs.h >>conftest.$ac_ext
7201
cat >>conftest.$ac_ext <<_ACEOF
7202
/* end confdefs.h. */
7203
$ac_includes_default
7204
typedef double ac__type_sizeof_;
7205
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7206
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7213
FILE *f = fopen ("conftest.val", "w");
7216
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7218
long int i = longval ();
7219
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7221
fprintf (f, "%ld\n", i);
7225
unsigned long int i = ulongval ();
7226
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7228
fprintf (f, "%lu\n", i);
7230
return ferror (f) || fclose (f) != 0;
7236
rm -f conftest$ac_exeext
7237
if { (ac_try="$ac_link"
7239
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240
*) ac_try_echo=$ac_try;;
7242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243
(eval "$ac_link") 2>&5
7245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7247
{ (case "(($ac_try" in
7248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249
*) ac_try_echo=$ac_try;;
7251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252
(eval "$ac_try") 2>&5
7254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255
(exit $ac_status); }; }; then
7256
ac_cv_sizeof_double=`cat conftest.val`
7258
echo "$as_me: program exited with status $ac_status" >&5
7259
echo "$as_me: failed program was:" >&5
7260
sed 's/^/| /' conftest.$ac_ext >&5
7263
if test "$ac_cv_type_double" = yes; then
7264
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7265
See \`config.log' for more details." >&5
7266
echo "$as_me: error: cannot compute sizeof (double)
7267
See \`config.log' for more details." >&2;}
7268
{ (exit 77); exit 77; }; }
7270
ac_cv_sizeof_double=0
7273
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7277
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7278
echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
7282
cat >>confdefs.h <<_ACEOF
7283
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
7287
{ echo "$as_me:$LINENO: checking for long double" >&5
7288
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
7289
if test "${ac_cv_type_long_double+set}" = set; then
7290
echo $ECHO_N "(cached) $ECHO_C" >&6
7292
cat >conftest.$ac_ext <<_ACEOF
7295
cat confdefs.h >>conftest.$ac_ext
7296
cat >>conftest.$ac_ext <<_ACEOF
7297
/* end confdefs.h. */
7298
$ac_includes_default
7299
typedef long double ac__type_new_;
7303
if ((ac__type_new_ *) 0)
7305
if (sizeof (ac__type_new_))
7311
rm -f conftest.$ac_objext
7312
if { (ac_try="$ac_compile"
7314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315
*) ac_try_echo=$ac_try;;
7317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318
(eval "$ac_compile") 2>conftest.er1
7320
grep -v '^ *+' conftest.er1 >conftest.err
7322
cat conftest.err >&5
7323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324
(exit $ac_status); } && {
7325
test -z "$ac_c_werror_flag" ||
7326
test ! -s conftest.err
7327
} && test -s conftest.$ac_objext; then
7328
ac_cv_type_long_double=yes
7330
echo "$as_me: failed program was:" >&5
7331
sed 's/^/| /' conftest.$ac_ext >&5
7333
ac_cv_type_long_double=no
7336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7339
echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
7341
# The cast to long int works around a bug in the HP C Compiler
7342
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7343
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7344
# This bug is HP SR number 8606223364.
7345
{ echo "$as_me:$LINENO: checking size of long double" >&5
7346
echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
7347
if test "${ac_cv_sizeof_long_double+set}" = set; then
7348
echo $ECHO_N "(cached) $ECHO_C" >&6
7350
if test "$cross_compiling" = yes; then
7351
# Depending upon the size, compute the lo and hi bounds.
7352
cat >conftest.$ac_ext <<_ACEOF
7355
cat confdefs.h >>conftest.$ac_ext
7356
cat >>conftest.$ac_ext <<_ACEOF
7357
/* end confdefs.h. */
7358
$ac_includes_default
7359
typedef long double ac__type_sizeof_;
7363
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7370
rm -f conftest.$ac_objext
7371
if { (ac_try="$ac_compile"
7373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374
*) ac_try_echo=$ac_try;;
7376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377
(eval "$ac_compile") 2>conftest.er1
7379
grep -v '^ *+' conftest.er1 >conftest.err
7381
cat conftest.err >&5
7382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383
(exit $ac_status); } && {
7384
test -z "$ac_c_werror_flag" ||
7385
test ! -s conftest.err
7386
} && test -s conftest.$ac_objext; then
7389
cat >conftest.$ac_ext <<_ACEOF
7392
cat confdefs.h >>conftest.$ac_ext
7393
cat >>conftest.$ac_ext <<_ACEOF
7394
/* end confdefs.h. */
7395
$ac_includes_default
7396
typedef long double ac__type_sizeof_;
7400
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7407
rm -f conftest.$ac_objext
7408
if { (ac_try="$ac_compile"
7410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411
*) ac_try_echo=$ac_try;;
7413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414
(eval "$ac_compile") 2>conftest.er1
7416
grep -v '^ *+' conftest.er1 >conftest.err
7418
cat conftest.err >&5
7419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420
(exit $ac_status); } && {
7421
test -z "$ac_c_werror_flag" ||
7422
test ! -s conftest.err
7423
} && test -s conftest.$ac_objext; then
7424
ac_hi=$ac_mid; break
7426
echo "$as_me: failed program was:" >&5
7427
sed 's/^/| /' conftest.$ac_ext >&5
7429
ac_lo=`expr $ac_mid + 1`
7430
if test $ac_lo -le $ac_mid; then
7434
ac_mid=`expr 2 '*' $ac_mid + 1`
7437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440
echo "$as_me: failed program was:" >&5
7441
sed 's/^/| /' conftest.$ac_ext >&5
7443
cat >conftest.$ac_ext <<_ACEOF
7446
cat confdefs.h >>conftest.$ac_ext
7447
cat >>conftest.$ac_ext <<_ACEOF
7448
/* end confdefs.h. */
7449
$ac_includes_default
7450
typedef long double ac__type_sizeof_;
7454
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7461
rm -f conftest.$ac_objext
7462
if { (ac_try="$ac_compile"
7464
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465
*) ac_try_echo=$ac_try;;
7467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468
(eval "$ac_compile") 2>conftest.er1
7470
grep -v '^ *+' conftest.er1 >conftest.err
7472
cat conftest.err >&5
7473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474
(exit $ac_status); } && {
7475
test -z "$ac_c_werror_flag" ||
7476
test ! -s conftest.err
7477
} && test -s conftest.$ac_objext; then
7480
cat >conftest.$ac_ext <<_ACEOF
7483
cat confdefs.h >>conftest.$ac_ext
7484
cat >>conftest.$ac_ext <<_ACEOF
7485
/* end confdefs.h. */
7486
$ac_includes_default
7487
typedef long double ac__type_sizeof_;
7491
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7498
rm -f conftest.$ac_objext
7499
if { (ac_try="$ac_compile"
7501
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502
*) ac_try_echo=$ac_try;;
7504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505
(eval "$ac_compile") 2>conftest.er1
7507
grep -v '^ *+' conftest.er1 >conftest.err
7509
cat conftest.err >&5
7510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511
(exit $ac_status); } && {
7512
test -z "$ac_c_werror_flag" ||
7513
test ! -s conftest.err
7514
} && test -s conftest.$ac_objext; then
7515
ac_lo=$ac_mid; break
7517
echo "$as_me: failed program was:" >&5
7518
sed 's/^/| /' conftest.$ac_ext >&5
7520
ac_hi=`expr '(' $ac_mid ')' - 1`
7521
if test $ac_mid -le $ac_hi; then
7525
ac_mid=`expr 2 '*' $ac_mid`
7528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531
echo "$as_me: failed program was:" >&5
7532
sed 's/^/| /' conftest.$ac_ext >&5
7537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541
# Binary search between lo and hi bounds.
7542
while test "x$ac_lo" != "x$ac_hi"; do
7543
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7544
cat >conftest.$ac_ext <<_ACEOF
7547
cat confdefs.h >>conftest.$ac_ext
7548
cat >>conftest.$ac_ext <<_ACEOF
7549
/* end confdefs.h. */
7550
$ac_includes_default
7551
typedef long double ac__type_sizeof_;
7555
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7562
rm -f conftest.$ac_objext
7563
if { (ac_try="$ac_compile"
7565
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566
*) ac_try_echo=$ac_try;;
7568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569
(eval "$ac_compile") 2>conftest.er1
7571
grep -v '^ *+' conftest.er1 >conftest.err
7573
cat conftest.err >&5
7574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575
(exit $ac_status); } && {
7576
test -z "$ac_c_werror_flag" ||
7577
test ! -s conftest.err
7578
} && test -s conftest.$ac_objext; then
7581
echo "$as_me: failed program was:" >&5
7582
sed 's/^/| /' conftest.$ac_ext >&5
7584
ac_lo=`expr '(' $ac_mid ')' + 1`
7587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590
?*) ac_cv_sizeof_long_double=$ac_lo;;
7591
'') if test "$ac_cv_type_long_double" = yes; then
7592
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
7593
See \`config.log' for more details." >&5
7594
echo "$as_me: error: cannot compute sizeof (long double)
7595
See \`config.log' for more details." >&2;}
7596
{ (exit 77); exit 77; }; }
7598
ac_cv_sizeof_long_double=0
7602
cat >conftest.$ac_ext <<_ACEOF
7605
cat confdefs.h >>conftest.$ac_ext
7606
cat >>conftest.$ac_ext <<_ACEOF
7607
/* end confdefs.h. */
7608
$ac_includes_default
7609
typedef long double ac__type_sizeof_;
7610
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7611
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7618
FILE *f = fopen ("conftest.val", "w");
7621
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7623
long int i = longval ();
7624
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7626
fprintf (f, "%ld\n", i);
7630
unsigned long int i = ulongval ();
7631
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7633
fprintf (f, "%lu\n", i);
7635
return ferror (f) || fclose (f) != 0;
7641
rm -f conftest$ac_exeext
7642
if { (ac_try="$ac_link"
7644
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645
*) ac_try_echo=$ac_try;;
7647
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648
(eval "$ac_link") 2>&5
7650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7652
{ (case "(($ac_try" in
7653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654
*) ac_try_echo=$ac_try;;
7656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657
(eval "$ac_try") 2>&5
7659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660
(exit $ac_status); }; }; then
7661
ac_cv_sizeof_long_double=`cat conftest.val`
7663
echo "$as_me: program exited with status $ac_status" >&5
7664
echo "$as_me: failed program was:" >&5
7665
sed 's/^/| /' conftest.$ac_ext >&5
7668
if test "$ac_cv_type_long_double" = yes; then
7669
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
7670
See \`config.log' for more details." >&5
7671
echo "$as_me: error: cannot compute sizeof (long double)
7672
See \`config.log' for more details." >&2;}
7673
{ (exit 77); exit 77; }; }
7675
ac_cv_sizeof_long_double=0
7678
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7682
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7683
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
7687
cat >>confdefs.h <<_ACEOF
7688
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7692
{ echo "$as_me:$LINENO: checking for void *" >&5
7693
echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7694
if test "${ac_cv_type_void_p+set}" = set; then
7695
echo $ECHO_N "(cached) $ECHO_C" >&6
7697
cat >conftest.$ac_ext <<_ACEOF
7700
cat confdefs.h >>conftest.$ac_ext
7701
cat >>conftest.$ac_ext <<_ACEOF
7702
/* end confdefs.h. */
7703
$ac_includes_default
7704
typedef void * ac__type_new_;
7708
if ((ac__type_new_ *) 0)
7710
if (sizeof (ac__type_new_))
7716
rm -f conftest.$ac_objext
7717
if { (ac_try="$ac_compile"
7719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720
*) ac_try_echo=$ac_try;;
7722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723
(eval "$ac_compile") 2>conftest.er1
7725
grep -v '^ *+' conftest.er1 >conftest.err
7727
cat conftest.err >&5
7728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729
(exit $ac_status); } && {
7730
test -z "$ac_c_werror_flag" ||
7731
test ! -s conftest.err
7732
} && test -s conftest.$ac_objext; then
7733
ac_cv_type_void_p=yes
7735
echo "$as_me: failed program was:" >&5
7736
sed 's/^/| /' conftest.$ac_ext >&5
7738
ac_cv_type_void_p=no
7741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743
{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7744
echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7746
# The cast to long int works around a bug in the HP C Compiler
7747
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7748
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7749
# This bug is HP SR number 8606223364.
7750
{ echo "$as_me:$LINENO: checking size of void *" >&5
7751
echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7752
if test "${ac_cv_sizeof_void_p+set}" = set; then
7753
echo $ECHO_N "(cached) $ECHO_C" >&6
7755
if test "$cross_compiling" = yes; then
7756
# Depending upon the size, compute the lo and hi bounds.
7757
cat >conftest.$ac_ext <<_ACEOF
7760
cat confdefs.h >>conftest.$ac_ext
7761
cat >>conftest.$ac_ext <<_ACEOF
7762
/* end confdefs.h. */
7763
$ac_includes_default
7764
typedef void * ac__type_sizeof_;
7768
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7775
rm -f conftest.$ac_objext
7776
if { (ac_try="$ac_compile"
7778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779
*) ac_try_echo=$ac_try;;
7781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782
(eval "$ac_compile") 2>conftest.er1
7784
grep -v '^ *+' conftest.er1 >conftest.err
7786
cat conftest.err >&5
7787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788
(exit $ac_status); } && {
7789
test -z "$ac_c_werror_flag" ||
7790
test ! -s conftest.err
7791
} && test -s conftest.$ac_objext; then
7794
cat >conftest.$ac_ext <<_ACEOF
7797
cat confdefs.h >>conftest.$ac_ext
7798
cat >>conftest.$ac_ext <<_ACEOF
7799
/* end confdefs.h. */
7800
$ac_includes_default
7801
typedef void * ac__type_sizeof_;
7805
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7812
rm -f conftest.$ac_objext
7813
if { (ac_try="$ac_compile"
7815
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816
*) ac_try_echo=$ac_try;;
7818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819
(eval "$ac_compile") 2>conftest.er1
7821
grep -v '^ *+' conftest.er1 >conftest.err
7823
cat conftest.err >&5
7824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825
(exit $ac_status); } && {
7826
test -z "$ac_c_werror_flag" ||
7827
test ! -s conftest.err
7828
} && test -s conftest.$ac_objext; then
7829
ac_hi=$ac_mid; break
7831
echo "$as_me: failed program was:" >&5
7832
sed 's/^/| /' conftest.$ac_ext >&5
7834
ac_lo=`expr $ac_mid + 1`
7835
if test $ac_lo -le $ac_mid; then
7839
ac_mid=`expr 2 '*' $ac_mid + 1`
7842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845
echo "$as_me: failed program was:" >&5
7846
sed 's/^/| /' conftest.$ac_ext >&5
7848
cat >conftest.$ac_ext <<_ACEOF
7851
cat confdefs.h >>conftest.$ac_ext
7852
cat >>conftest.$ac_ext <<_ACEOF
7853
/* end confdefs.h. */
7854
$ac_includes_default
7855
typedef void * ac__type_sizeof_;
7859
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7866
rm -f conftest.$ac_objext
7867
if { (ac_try="$ac_compile"
7869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870
*) ac_try_echo=$ac_try;;
7872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873
(eval "$ac_compile") 2>conftest.er1
7875
grep -v '^ *+' conftest.er1 >conftest.err
7877
cat conftest.err >&5
7878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879
(exit $ac_status); } && {
7880
test -z "$ac_c_werror_flag" ||
7881
test ! -s conftest.err
7882
} && test -s conftest.$ac_objext; then
7885
cat >conftest.$ac_ext <<_ACEOF
7888
cat confdefs.h >>conftest.$ac_ext
7889
cat >>conftest.$ac_ext <<_ACEOF
7890
/* end confdefs.h. */
7891
$ac_includes_default
7892
typedef void * ac__type_sizeof_;
7896
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7903
rm -f conftest.$ac_objext
7904
if { (ac_try="$ac_compile"
7906
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907
*) ac_try_echo=$ac_try;;
7909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910
(eval "$ac_compile") 2>conftest.er1
7912
grep -v '^ *+' conftest.er1 >conftest.err
7914
cat conftest.err >&5
7915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916
(exit $ac_status); } && {
7917
test -z "$ac_c_werror_flag" ||
7918
test ! -s conftest.err
7919
} && test -s conftest.$ac_objext; then
7920
ac_lo=$ac_mid; break
7922
echo "$as_me: failed program was:" >&5
7923
sed 's/^/| /' conftest.$ac_ext >&5
7925
ac_hi=`expr '(' $ac_mid ')' - 1`
7926
if test $ac_mid -le $ac_hi; then
7930
ac_mid=`expr 2 '*' $ac_mid`
7933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936
echo "$as_me: failed program was:" >&5
7937
sed 's/^/| /' conftest.$ac_ext >&5
7942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946
# Binary search between lo and hi bounds.
7947
while test "x$ac_lo" != "x$ac_hi"; do
7948
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7949
cat >conftest.$ac_ext <<_ACEOF
7952
cat confdefs.h >>conftest.$ac_ext
7953
cat >>conftest.$ac_ext <<_ACEOF
7954
/* end confdefs.h. */
7955
$ac_includes_default
7956
typedef void * ac__type_sizeof_;
7960
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7967
rm -f conftest.$ac_objext
7968
if { (ac_try="$ac_compile"
7970
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971
*) ac_try_echo=$ac_try;;
7973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974
(eval "$ac_compile") 2>conftest.er1
7976
grep -v '^ *+' conftest.er1 >conftest.err
7978
cat conftest.err >&5
7979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980
(exit $ac_status); } && {
7981
test -z "$ac_c_werror_flag" ||
7982
test ! -s conftest.err
7983
} && test -s conftest.$ac_objext; then
7986
echo "$as_me: failed program was:" >&5
7987
sed 's/^/| /' conftest.$ac_ext >&5
7989
ac_lo=`expr '(' $ac_mid ')' + 1`
7992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995
?*) ac_cv_sizeof_void_p=$ac_lo;;
7996
'') if test "$ac_cv_type_void_p" = yes; then
7997
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7998
See \`config.log' for more details." >&5
7999
echo "$as_me: error: cannot compute sizeof (void *)
8000
See \`config.log' for more details." >&2;}
8001
{ (exit 77); exit 77; }; }
8003
ac_cv_sizeof_void_p=0
8007
cat >conftest.$ac_ext <<_ACEOF
8010
cat confdefs.h >>conftest.$ac_ext
8011
cat >>conftest.$ac_ext <<_ACEOF
8012
/* end confdefs.h. */
8013
$ac_includes_default
8014
typedef void * ac__type_sizeof_;
8015
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8016
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8023
FILE *f = fopen ("conftest.val", "w");
8026
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8028
long int i = longval ();
8029
if (i != ((long int) (sizeof (ac__type_sizeof_))))
8031
fprintf (f, "%ld\n", i);
8035
unsigned long int i = ulongval ();
8036
if (i != ((long int) (sizeof (ac__type_sizeof_))))
8038
fprintf (f, "%lu\n", i);
8040
return ferror (f) || fclose (f) != 0;
8046
rm -f conftest$ac_exeext
8047
if { (ac_try="$ac_link"
8049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8050
*) ac_try_echo=$ac_try;;
8052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8053
(eval "$ac_link") 2>&5
8055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8057
{ (case "(($ac_try" in
8058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059
*) ac_try_echo=$ac_try;;
8061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062
(eval "$ac_try") 2>&5
8064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065
(exit $ac_status); }; }; then
8066
ac_cv_sizeof_void_p=`cat conftest.val`
8068
echo "$as_me: program exited with status $ac_status" >&5
8069
echo "$as_me: failed program was:" >&5
8070
sed 's/^/| /' conftest.$ac_ext >&5
8073
if test "$ac_cv_type_void_p" = yes; then
8074
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8075
See \`config.log' for more details." >&5
8076
echo "$as_me: error: cannot compute sizeof (void *)
8077
See \`config.log' for more details." >&2;}
8078
{ (exit 77); exit 77; }; }
8080
ac_cv_sizeof_void_p=0
8083
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8087
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8088
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8092
cat >>confdefs.h <<_ACEOF
8093
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8098
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8099
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
8100
if test "${ac_cv_c_bigendian+set}" = set; then
8101
echo $ECHO_N "(cached) $ECHO_C" >&6
8103
# See if sys/param.h defines the BYTE_ORDER macro.
8104
cat >conftest.$ac_ext <<_ACEOF
8107
cat confdefs.h >>conftest.$ac_ext
8108
cat >>conftest.$ac_ext <<_ACEOF
8109
/* end confdefs.h. */
8110
#include <sys/types.h>
8111
#include <sys/param.h>
8116
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
8117
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
8125
rm -f conftest.$ac_objext
8126
if { (ac_try="$ac_compile"
8128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129
*) ac_try_echo=$ac_try;;
8131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132
(eval "$ac_compile") 2>conftest.er1
8134
grep -v '^ *+' conftest.er1 >conftest.err
8136
cat conftest.err >&5
8137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138
(exit $ac_status); } && {
8139
test -z "$ac_c_werror_flag" ||
8140
test ! -s conftest.err
8141
} && test -s conftest.$ac_objext; then
8142
# It does; now see whether it defined to BIG_ENDIAN or not.
8143
cat >conftest.$ac_ext <<_ACEOF
8146
cat confdefs.h >>conftest.$ac_ext
8147
cat >>conftest.$ac_ext <<_ACEOF
8148
/* end confdefs.h. */
8149
#include <sys/types.h>
8150
#include <sys/param.h>
8155
#if BYTE_ORDER != BIG_ENDIAN
8163
rm -f conftest.$ac_objext
8164
if { (ac_try="$ac_compile"
8166
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167
*) ac_try_echo=$ac_try;;
8169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170
(eval "$ac_compile") 2>conftest.er1
8172
grep -v '^ *+' conftest.er1 >conftest.err
8174
cat conftest.err >&5
8175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176
(exit $ac_status); } && {
8177
test -z "$ac_c_werror_flag" ||
8178
test ! -s conftest.err
8179
} && test -s conftest.$ac_objext; then
8180
ac_cv_c_bigendian=yes
8182
echo "$as_me: failed program was:" >&5
8183
sed 's/^/| /' conftest.$ac_ext >&5
8185
ac_cv_c_bigendian=no
8188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190
echo "$as_me: failed program was:" >&5
8191
sed 's/^/| /' conftest.$ac_ext >&5
8193
# It does not; compile a test program.
8194
if test "$cross_compiling" = yes; then
8195
# try to guess the endianness by grepping values into an object file
8196
ac_cv_c_bigendian=unknown
8197
cat >conftest.$ac_ext <<_ACEOF
8200
cat confdefs.h >>conftest.$ac_ext
8201
cat >>conftest.$ac_ext <<_ACEOF
8202
/* end confdefs.h. */
8203
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8204
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8205
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8206
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8207
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8208
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8212
_ascii (); _ebcdic ();
8217
rm -f conftest.$ac_objext
8218
if { (ac_try="$ac_compile"
8220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221
*) ac_try_echo=$ac_try;;
8223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224
(eval "$ac_compile") 2>conftest.er1
8226
grep -v '^ *+' conftest.er1 >conftest.err
8228
cat conftest.err >&5
8229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230
(exit $ac_status); } && {
8231
test -z "$ac_c_werror_flag" ||
8232
test ! -s conftest.err
8233
} && test -s conftest.$ac_objext; then
8234
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8235
ac_cv_c_bigendian=yes
8237
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8238
if test "$ac_cv_c_bigendian" = unknown; then
8239
ac_cv_c_bigendian=no
8241
# finding both strings is unlikely to happen, but who knows?
8242
ac_cv_c_bigendian=unknown
8246
echo "$as_me: failed program was:" >&5
8247
sed 's/^/| /' conftest.$ac_ext >&5
8252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254
cat >conftest.$ac_ext <<_ACEOF
8257
cat confdefs.h >>conftest.$ac_ext
8258
cat >>conftest.$ac_ext <<_ACEOF
8259
/* end confdefs.h. */
8260
$ac_includes_default
8265
/* Are we little or big endian? From Harbison&Steele. */
8269
char c[sizeof (long int)];
8272
return u.c[sizeof (long int) - 1] == 1;
8278
rm -f conftest$ac_exeext
8279
if { (ac_try="$ac_link"
8281
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282
*) ac_try_echo=$ac_try;;
8284
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285
(eval "$ac_link") 2>&5
8287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8289
{ (case "(($ac_try" in
8290
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291
*) ac_try_echo=$ac_try;;
8293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294
(eval "$ac_try") 2>&5
8296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297
(exit $ac_status); }; }; then
8298
ac_cv_c_bigendian=no
8300
echo "$as_me: program exited with status $ac_status" >&5
8301
echo "$as_me: failed program was:" >&5
8302
sed 's/^/| /' conftest.$ac_ext >&5
8305
ac_cv_c_bigendian=yes
8307
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8316
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
8317
case $ac_cv_c_bigendian in
8320
cat >>confdefs.h <<\_ACEOF
8321
#define WORDS_BIGENDIAN 1
8327
{ { echo "$as_me:$LINENO: error: unknown endianness
8328
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8329
echo "$as_me: error: unknown endianness
8330
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8331
{ (exit 1); exit 1; }; } ;;
8336
{ echo "$as_me:$LINENO: checking for FPU arithmetics type" >&5
8337
echo $ECHO_N "checking for FPU arithmetics type... $ECHO_C" >&6; }
8338
if test "${ac_cv_c_fpu_arithmetics_type+set}" = set; then
8339
echo $ECHO_N "(cached) $ECHO_C" >&6
8341
if test "$cross_compiling" = yes; then
8342
ac_cv_c_fpu_arithmetics_type="Unknown"
8344
cat >conftest.$ac_ext <<_ACEOF
8347
cat confdefs.h >>conftest.$ac_ext
8348
cat >>conftest.$ac_ext <<_ACEOF
8349
/* end confdefs.h. */
8354
#define LOG2EA 0.44269504088896340735992
8355
#define ACCURACY "%1.4f"
8357
typedef union {unsigned short s[4]; double d;} XTYPE;
8360
{{0,0,0,0}}, /* Unknown */
8361
{{0x3fdc,0x551d,0x94ae,0x0bf8}}, /* Big endian IEEE */
8362
{{0x0bf8,0x94ae,0x551d,0x3fdc}}, /* Littile endian IEEE */
8363
{{0037742,0124354,0122560,0057703}} /* DEC */
8368
int i; char TMPSTR[1024]; char LOG2EA_STR[80];
8371
sprintf(LOG2EA_STR, ACCURACY, LOG2EA);
8373
for (i=3; i >= 0; i--)
8375
sprintf(TMPSTR, ACCURACY, X[i].d);
8376
if (strcmp(TMPSTR, LOG2EA_STR) == 0) {
8384
rm -f conftest$ac_exeext
8385
if { (ac_try="$ac_link"
8387
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388
*) ac_try_echo=$ac_try;;
8390
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391
(eval "$ac_link") 2>&5
8393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8395
{ (case "(($ac_try" in
8396
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397
*) ac_try_echo=$ac_try;;
8399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400
(eval "$ac_try") 2>&5
8402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403
(exit $ac_status); }; }; then
8404
ac_cv_c_fpu_arithmetics_type="Unknown"
8406
echo "$as_me: program exited with status $ac_status" >&5
8407
echo "$as_me: failed program was:" >&5
8408
sed 's/^/| /' conftest.$ac_ext >&5
8412
"1") ac_cv_c_fpu_arithmetics_type="Big endian IEEE" ;;
8413
"2") ac_cv_c_fpu_arithmetics_type="Little endian IEEE" ;;
8414
"3") ac_cv_c_fpu_arithmetics_type="DEC" ;;
8417
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8422
{ echo "$as_me:$LINENO: result: $ac_cv_c_fpu_arithmetics_type" >&5
8423
echo "${ECHO_T}$ac_cv_c_fpu_arithmetics_type" >&6; }
8425
case "$ac_cv_c_fpu_arithmetics_type" in
8426
"DEC") cat >>confdefs.h <<\_ACEOF
8427
#define HAVE_DEC_FPU 1
8430
"Little endian IEEE") cat >>confdefs.h <<\_ACEOF
8431
#define HAVE_LIEEE_FPU 1
8434
"Big endian IEEE") cat >>confdefs.h <<\_ACEOF
8435
#define HAVE_BIEEE_FPU 1
8447
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8448
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8449
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8450
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8451
echo $ECHO_N "(cached) $ECHO_C" >&6
8453
cat >conftest.make <<\_ACEOF
8456
@echo '@@@%%%=$(MAKE)=@@@%%%'
8458
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8459
case `${MAKE-make} -f conftest.make 2>/dev/null` in
8461
eval ac_cv_prog_make_${ac_make}_set=yes;;
8463
eval ac_cv_prog_make_${ac_make}_set=no;;
8467
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8468
{ echo "$as_me:$LINENO: result: yes" >&5
8469
echo "${ECHO_T}yes" >&6; }
8472
{ echo "$as_me:$LINENO: result: no" >&5
8473
echo "${ECHO_T}no" >&6; }
8474
SET_MAKE="MAKE=${MAKE-make}"
8478
# Extract the first word of "ar", so it can be a program name with args.
8479
set dummy ar; ac_word=$2
8480
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8481
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8482
if test "${ac_cv_prog_AR+set}" = set; then
8483
echo $ECHO_N "(cached) $ECHO_C" >&6
8485
if test -n "$AR"; then
8486
ac_cv_prog_AR="$AR" # Let the user override the test.
8488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492
test -z "$as_dir" && as_dir=.
8493
for ac_exec_ext in '' $ac_executable_extensions; do
8494
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8503
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
8507
if test -n "$AR"; then
8508
{ echo "$as_me:$LINENO: result: $AR" >&5
8509
echo "${ECHO_T}$AR" >&6; }
8511
{ echo "$as_me:$LINENO: result: no" >&5
8512
echo "${ECHO_T}no" >&6; }
8516
if test "$AR" = "NONE"; then
8517
{ { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
8518
echo "$as_me: error: --> Can't find \`ar'!" >&2;}
8519
{ (exit 1); exit 1; }; }
8520
cat >confcache <<\_ACEOF
8521
# This file is a shell script that caches the results of configure
8522
# tests run on this system so they can be shared between configure
8523
# scripts and configure runs, see configure's option --config-cache.
8524
# It is not useful on other systems. If it contains results you don't
8525
# want to keep, you may remove or edit it.
8527
# config.status only pays attention to the cache file if you give it
8528
# the --recheck option to rerun configure.
8530
# `ac_cv_env_foo' variables (set or unset) will be overridden when
8531
# loading this file, other *unset* `ac_cv_foo' will be assigned the
8536
# The following way of writing the cache mishandles newlines in values,
8537
# but we know of no workaround that is simple, portable, and efficient.
8538
# So, we kill variables containing newlines.
8539
# Ultrix sh set writes to stderr and can't be redirected directly,
8540
# and sets the high bit in the cache file unless we assign to the vars.
8542
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8543
eval ac_val=\$$ac_var
8547
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8548
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8551
_ | IFS | as_nl) ;; #(
8552
*) $as_unset $ac_var ;;
8558
case $as_nl`(ac_space=' '; set) 2>&1` in #(
8559
*${as_nl}ac_space=\ *)
8560
# `set' does not quote correctly, so add quotes (double-quote
8561
# substitution turns \\\\ into \\, and sed turns \\ into \).
8564
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8567
# `set' quotes correctly as required by POSIX, so do not add quotes.
8568
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8577
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8579
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8581
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8582
if test -w "$cache_file"; then
8583
test "x$cache_file" != "x/dev/null" &&
8584
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
8585
echo "$as_me: updating cache $cache_file" >&6;}
8586
cat confcache >$cache_file
8588
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8589
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8596
if test -n "$ac_tool_prefix"; then
8597
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8598
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8599
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8601
if test "${ac_cv_prog_RANLIB+set}" = set; then
8602
echo $ECHO_N "(cached) $ECHO_C" >&6
8604
if test -n "$RANLIB"; then
8605
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8607
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611
test -z "$as_dir" && as_dir=.
8612
for ac_exec_ext in '' $ac_executable_extensions; do
8613
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8614
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8615
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8624
RANLIB=$ac_cv_prog_RANLIB
8625
if test -n "$RANLIB"; then
8626
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
8627
echo "${ECHO_T}$RANLIB" >&6; }
8629
{ echo "$as_me:$LINENO: result: no" >&5
8630
echo "${ECHO_T}no" >&6; }
8635
if test -z "$ac_cv_prog_RANLIB"; then
8636
ac_ct_RANLIB=$RANLIB
8637
# Extract the first word of "ranlib", so it can be a program name with args.
8638
set dummy ranlib; ac_word=$2
8639
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8640
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8641
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8642
echo $ECHO_N "(cached) $ECHO_C" >&6
8644
if test -n "$ac_ct_RANLIB"; then
8645
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8647
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651
test -z "$as_dir" && as_dir=.
8652
for ac_exec_ext in '' $ac_executable_extensions; do
8653
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654
ac_cv_prog_ac_ct_RANLIB="ranlib"
8655
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8665
if test -n "$ac_ct_RANLIB"; then
8666
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8667
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8669
{ echo "$as_me:$LINENO: result: no" >&5
8670
echo "${ECHO_T}no" >&6; }
8673
if test "x$ac_ct_RANLIB" = x; then
8676
case $cross_compiling:$ac_tool_warned in
8678
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8679
whose name does not start with the host triplet. If you think this
8680
configuration is useful to you, please write to autoconf@gnu.org." >&5
8681
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8682
whose name does not start with the host triplet. If you think this
8683
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8684
ac_tool_warned=yes ;;
8686
RANLIB=$ac_ct_RANLIB
8689
RANLIB="$ac_cv_prog_RANLIB"
8692
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
8693
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8695
if test "$LN_S" = "ln -s"; then
8696
{ echo "$as_me:$LINENO: result: yes" >&5
8697
echo "${ECHO_T}yes" >&6; }
8699
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8700
echo "${ECHO_T}no, using $LN_S" >&6; }
8703
for ac_prog in 'bison -y' byacc
8705
# Extract the first word of "$ac_prog", so it can be a program name with args.
8706
set dummy $ac_prog; ac_word=$2
8707
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8709
if test "${ac_cv_prog_YACC+set}" = set; then
8710
echo $ECHO_N "(cached) $ECHO_C" >&6
8712
if test -n "$YACC"; then
8713
ac_cv_prog_YACC="$YACC" # Let the user override the test.
8715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719
test -z "$as_dir" && as_dir=.
8720
for ac_exec_ext in '' $ac_executable_extensions; do
8721
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722
ac_cv_prog_YACC="$ac_prog"
8723
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8732
YACC=$ac_cv_prog_YACC
8733
if test -n "$YACC"; then
8734
{ echo "$as_me:$LINENO: result: $YACC" >&5
8735
echo "${ECHO_T}$YACC" >&6; }
8737
{ echo "$as_me:$LINENO: result: no" >&5
8738
echo "${ECHO_T}no" >&6; }
8742
test -n "$YACC" && break
8744
test -n "$YACC" || YACC="yacc"
8747
# Find a good install program. We prefer a C program (faster),
8748
# so one script is as good as another. But avoid the broken or
8749
# incompatible versions:
8750
# SysV /etc/install, /usr/sbin/install
8751
# SunOS /usr/etc/install
8752
# IRIX /sbin/install
8754
# AmigaOS /C/install, which installs bootblocks on floppy discs
8755
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8756
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8757
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8758
# OS/2's system install, which has a completely different semantic
8759
# ./install, which can be erroneously created by make from ./install.sh.
8760
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8761
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8762
if test -z "$INSTALL"; then
8763
if test "${ac_cv_path_install+set}" = set; then
8764
echo $ECHO_N "(cached) $ECHO_C" >&6
8766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770
test -z "$as_dir" && as_dir=.
8771
# Account for people who put trailing slashes in PATH elements.
8773
./ | .// | /cC/* | \
8774
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8775
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8778
# OSF1 and SCO ODT 3.0 have their own names for install.
8779
# Don't use installbsd from OSF since it installs stuff as root
8781
for ac_prog in ginstall scoinst install; do
8782
for ac_exec_ext in '' $ac_executable_extensions; do
8783
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8784
if test $ac_prog = install &&
8785
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8786
# AIX install. It has an incompatible calling convention.
8788
elif test $ac_prog = install &&
8789
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8790
# program-specific install script used by HP pwplus--don't use.
8793
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8806
if test "${ac_cv_path_install+set}" = set; then
8807
INSTALL=$ac_cv_path_install
8809
# As a last resort, use the slow shell script. Don't cache a
8810
# value for INSTALL within a source directory, because that will
8811
# break other packages using the cache if that directory is
8812
# removed, or if the value is a relative name.
8813
INSTALL=$ac_install_sh
8816
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8817
echo "${ECHO_T}$INSTALL" >&6; }
8819
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8820
# It thinks the first close brace ends the variable substitution.
8821
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8823
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8825
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8829
*) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
8832
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
8834
if test "x$PRINT_CMD" = "xNONE"; then
8835
# Extract the first word of "lp", so it can be a program name with args.
8836
set dummy lp; ac_word=$2
8837
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8838
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8839
if test "${ac_cv_prog_LP_CMD+set}" = set; then
8840
echo $ECHO_N "(cached) $ECHO_C" >&6
8842
if test -n "$LP_CMD"; then
8843
ac_cv_prog_LP_CMD="$LP_CMD" # Let the user override the test.
8845
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849
test -z "$as_dir" && as_dir=.
8850
for ac_exec_ext in '' $ac_executable_extensions; do
8851
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852
ac_cv_prog_LP_CMD="'lp -c'"
8853
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8860
test -z "$ac_cv_prog_LP_CMD" && ac_cv_prog_LP_CMD=""NONE""
8863
LP_CMD=$ac_cv_prog_LP_CMD
8864
if test -n "$LP_CMD"; then
8865
{ echo "$as_me:$LINENO: result: $LP_CMD" >&5
8866
echo "${ECHO_T}$LP_CMD" >&6; }
8868
{ echo "$as_me:$LINENO: result: no" >&5
8869
echo "${ECHO_T}no" >&6; }
8873
if test "${ac_cv_prog_LP_CMD}" = "NONE"; then
8874
# Extract the first word of "lpr", so it can be a program name with args.
8875
set dummy lpr; ac_word=$2
8876
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8878
if test "${ac_cv_prog_LPR_CMD+set}" = set; then
8879
echo $ECHO_N "(cached) $ECHO_C" >&6
8881
if test -n "$LPR_CMD"; then
8882
ac_cv_prog_LPR_CMD="$LPR_CMD" # Let the user override the test.
8884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888
test -z "$as_dir" && as_dir=.
8889
for ac_exec_ext in '' $ac_executable_extensions; do
8890
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891
ac_cv_prog_LPR_CMD="'lpr'"
8892
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8899
test -z "$ac_cv_prog_LPR_CMD" && ac_cv_prog_LPR_CMD=""NONE""
8902
LPR_CMD=$ac_cv_prog_LPR_CMD
8903
if test -n "$LPR_CMD"; then
8904
{ echo "$as_me:$LINENO: result: $LPR_CMD" >&5
8905
echo "${ECHO_T}$LPR_CMD" >&6; }
8907
{ echo "$as_me:$LINENO: result: no" >&5
8908
echo "${ECHO_T}no" >&6; }
8912
if test "${ac_cv_prog_LPR_CMD}" = "NONE"; then
8915
PRINT_CMD="${ac_cv_prog_LPR_CMD}"
8918
PRINT_CMD="${ac_cv_prog_LP_CMD}"
8922
{ echo "$as_me:$LINENO: result: --> Using \"$PRINT_CMD\" to print" >&5
8923
echo "${ECHO_T}--> Using \"$PRINT_CMD\" to print" >&6; }
8925
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8926
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8927
if test "${ac_cv_header_stdc+set}" = set; then
8928
echo $ECHO_N "(cached) $ECHO_C" >&6
8930
cat >conftest.$ac_ext <<_ACEOF
8933
cat confdefs.h >>conftest.$ac_ext
8934
cat >>conftest.$ac_ext <<_ACEOF
8935
/* end confdefs.h. */
8949
rm -f conftest.$ac_objext
8950
if { (ac_try="$ac_compile"
8952
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953
*) ac_try_echo=$ac_try;;
8955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956
(eval "$ac_compile") 2>conftest.er1
8958
grep -v '^ *+' conftest.er1 >conftest.err
8960
cat conftest.err >&5
8961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962
(exit $ac_status); } && {
8963
test -z "$ac_c_werror_flag" ||
8964
test ! -s conftest.err
8965
} && test -s conftest.$ac_objext; then
8966
ac_cv_header_stdc=yes
8968
echo "$as_me: failed program was:" >&5
8969
sed 's/^/| /' conftest.$ac_ext >&5
8971
ac_cv_header_stdc=no
8974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976
if test $ac_cv_header_stdc = yes; then
8977
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8978
cat >conftest.$ac_ext <<_ACEOF
8981
cat confdefs.h >>conftest.$ac_ext
8982
cat >>conftest.$ac_ext <<_ACEOF
8983
/* end confdefs.h. */
8987
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8988
$EGREP "memchr" >/dev/null 2>&1; then
8991
ac_cv_header_stdc=no
8997
if test $ac_cv_header_stdc = yes; then
8998
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8999
cat >conftest.$ac_ext <<_ACEOF
9002
cat confdefs.h >>conftest.$ac_ext
9003
cat >>conftest.$ac_ext <<_ACEOF
9004
/* end confdefs.h. */
9008
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9009
$EGREP "free" >/dev/null 2>&1; then
9012
ac_cv_header_stdc=no
9018
if test $ac_cv_header_stdc = yes; then
9019
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9020
if test "$cross_compiling" = yes; then
9023
cat >conftest.$ac_ext <<_ACEOF
9026
cat confdefs.h >>conftest.$ac_ext
9027
cat >>conftest.$ac_ext <<_ACEOF
9028
/* end confdefs.h. */
9031
#if ((' ' & 0x0FF) == 0x020)
9032
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9033
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9035
# define ISLOWER(c) \
9036
(('a' <= (c) && (c) <= 'i') \
9037
|| ('j' <= (c) && (c) <= 'r') \
9038
|| ('s' <= (c) && (c) <= 'z'))
9039
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9042
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9047
for (i = 0; i < 256; i++)
9048
if (XOR (islower (i), ISLOWER (i))
9049
|| toupper (i) != TOUPPER (i))
9054
rm -f conftest$ac_exeext
9055
if { (ac_try="$ac_link"
9057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058
*) ac_try_echo=$ac_try;;
9060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061
(eval "$ac_link") 2>&5
9063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9065
{ (case "(($ac_try" in
9066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067
*) ac_try_echo=$ac_try;;
9069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070
(eval "$ac_try") 2>&5
9072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073
(exit $ac_status); }; }; then
9076
echo "$as_me: program exited with status $ac_status" >&5
9077
echo "$as_me: failed program was:" >&5
9078
sed 's/^/| /' conftest.$ac_ext >&5
9081
ac_cv_header_stdc=no
9083
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9089
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9090
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9091
if test $ac_cv_header_stdc = yes; then
9093
cat >>confdefs.h <<\_ACEOF
9094
#define STDC_HEADERS 1
9099
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9100
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9101
if test "${ac_cv_header_sys_wait_h+set}" = set; then
9102
echo $ECHO_N "(cached) $ECHO_C" >&6
9104
cat >conftest.$ac_ext <<_ACEOF
9107
cat confdefs.h >>conftest.$ac_ext
9108
cat >>conftest.$ac_ext <<_ACEOF
9109
/* end confdefs.h. */
9110
#include <sys/types.h>
9111
#include <sys/wait.h>
9113
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9116
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9124
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9129
rm -f conftest.$ac_objext
9130
if { (ac_try="$ac_compile"
9132
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133
*) ac_try_echo=$ac_try;;
9135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136
(eval "$ac_compile") 2>conftest.er1
9138
grep -v '^ *+' conftest.er1 >conftest.err
9140
cat conftest.err >&5
9141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142
(exit $ac_status); } && {
9143
test -z "$ac_c_werror_flag" ||
9144
test ! -s conftest.err
9145
} && test -s conftest.$ac_objext; then
9146
ac_cv_header_sys_wait_h=yes
9148
echo "$as_me: failed program was:" >&5
9149
sed 's/^/| /' conftest.$ac_ext >&5
9151
ac_cv_header_sys_wait_h=no
9154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9157
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9158
if test $ac_cv_header_sys_wait_h = yes; then
9160
cat >>confdefs.h <<\_ACEOF
9161
#define HAVE_SYS_WAIT_H 1
9168
for ac_header in unistd.h fcntl.h
9170
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9171
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9172
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9173
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9174
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9175
echo $ECHO_N "(cached) $ECHO_C" >&6
9177
ac_res=`eval echo '${'$as_ac_Header'}'`
9178
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9179
echo "${ECHO_T}$ac_res" >&6; }
9181
# Is the header compilable?
9182
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9183
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9184
cat >conftest.$ac_ext <<_ACEOF
9187
cat confdefs.h >>conftest.$ac_ext
9188
cat >>conftest.$ac_ext <<_ACEOF
9189
/* end confdefs.h. */
9190
$ac_includes_default
9191
#include <$ac_header>
9193
rm -f conftest.$ac_objext
9194
if { (ac_try="$ac_compile"
9196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197
*) ac_try_echo=$ac_try;;
9199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200
(eval "$ac_compile") 2>conftest.er1
9202
grep -v '^ *+' conftest.er1 >conftest.err
9204
cat conftest.err >&5
9205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206
(exit $ac_status); } && {
9207
test -z "$ac_c_werror_flag" ||
9208
test ! -s conftest.err
9209
} && test -s conftest.$ac_objext; then
9210
ac_header_compiler=yes
9212
echo "$as_me: failed program was:" >&5
9213
sed 's/^/| /' conftest.$ac_ext >&5
9215
ac_header_compiler=no
9218
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9220
echo "${ECHO_T}$ac_header_compiler" >&6; }
9222
# Is the header present?
9223
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9224
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9225
cat >conftest.$ac_ext <<_ACEOF
9228
cat confdefs.h >>conftest.$ac_ext
9229
cat >>conftest.$ac_ext <<_ACEOF
9230
/* end confdefs.h. */
9231
#include <$ac_header>
9233
if { (ac_try="$ac_cpp conftest.$ac_ext"
9235
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236
*) ac_try_echo=$ac_try;;
9238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9241
grep -v '^ *+' conftest.er1 >conftest.err
9243
cat conftest.err >&5
9244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245
(exit $ac_status); } >/dev/null && {
9246
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9247
test ! -s conftest.err
9249
ac_header_preproc=yes
9251
echo "$as_me: failed program was:" >&5
9252
sed 's/^/| /' conftest.$ac_ext >&5
9254
ac_header_preproc=no
9257
rm -f conftest.err conftest.$ac_ext
9258
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9259
echo "${ECHO_T}$ac_header_preproc" >&6; }
9261
# So? What about this header?
9262
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9264
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9265
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9266
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9267
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9268
ac_header_preproc=yes
9271
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9272
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9273
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9274
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9275
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9276
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9277
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9278
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9279
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9280
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9281
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9282
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9286
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9287
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9288
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9289
echo $ECHO_N "(cached) $ECHO_C" >&6
9291
eval "$as_ac_Header=\$ac_header_preproc"
9293
ac_res=`eval echo '${'$as_ac_Header'}'`
9294
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9295
echo "${ECHO_T}$ac_res" >&6; }
9298
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9299
cat >>confdefs.h <<_ACEOF
9300
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310
for ac_header in sys/param.h sys/time.h sys/select.h
9312
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9313
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9314
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9315
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9316
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9317
echo $ECHO_N "(cached) $ECHO_C" >&6
9319
ac_res=`eval echo '${'$as_ac_Header'}'`
9320
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9321
echo "${ECHO_T}$ac_res" >&6; }
9323
# Is the header compilable?
9324
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9325
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9326
cat >conftest.$ac_ext <<_ACEOF
9329
cat confdefs.h >>conftest.$ac_ext
9330
cat >>conftest.$ac_ext <<_ACEOF
9331
/* end confdefs.h. */
9332
$ac_includes_default
9333
#include <$ac_header>
9335
rm -f conftest.$ac_objext
9336
if { (ac_try="$ac_compile"
9338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339
*) ac_try_echo=$ac_try;;
9341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342
(eval "$ac_compile") 2>conftest.er1
9344
grep -v '^ *+' conftest.er1 >conftest.err
9346
cat conftest.err >&5
9347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348
(exit $ac_status); } && {
9349
test -z "$ac_c_werror_flag" ||
9350
test ! -s conftest.err
9351
} && test -s conftest.$ac_objext; then
9352
ac_header_compiler=yes
9354
echo "$as_me: failed program was:" >&5
9355
sed 's/^/| /' conftest.$ac_ext >&5
9357
ac_header_compiler=no
9360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9362
echo "${ECHO_T}$ac_header_compiler" >&6; }
9364
# Is the header present?
9365
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9366
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9367
cat >conftest.$ac_ext <<_ACEOF
9370
cat confdefs.h >>conftest.$ac_ext
9371
cat >>conftest.$ac_ext <<_ACEOF
9372
/* end confdefs.h. */
9373
#include <$ac_header>
9375
if { (ac_try="$ac_cpp conftest.$ac_ext"
9377
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378
*) ac_try_echo=$ac_try;;
9380
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9383
grep -v '^ *+' conftest.er1 >conftest.err
9385
cat conftest.err >&5
9386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387
(exit $ac_status); } >/dev/null && {
9388
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9389
test ! -s conftest.err
9391
ac_header_preproc=yes
9393
echo "$as_me: failed program was:" >&5
9394
sed 's/^/| /' conftest.$ac_ext >&5
9396
ac_header_preproc=no
9399
rm -f conftest.err conftest.$ac_ext
9400
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9401
echo "${ECHO_T}$ac_header_preproc" >&6; }
9403
# So? What about this header?
9404
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9406
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9407
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9408
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9409
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9410
ac_header_preproc=yes
9413
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9414
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9415
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9416
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9417
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9418
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9419
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9420
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9421
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9422
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9423
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9424
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9428
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9429
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9430
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9431
echo $ECHO_N "(cached) $ECHO_C" >&6
9433
eval "$as_ac_Header=\$ac_header_preproc"
9435
ac_res=`eval echo '${'$as_ac_Header'}'`
9436
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9437
echo "${ECHO_T}$ac_res" >&6; }
9440
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9441
cat >>confdefs.h <<_ACEOF
9442
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9449
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9450
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9451
if test "${ac_cv_header_time+set}" = set; then
9452
echo $ECHO_N "(cached) $ECHO_C" >&6
9454
cat >conftest.$ac_ext <<_ACEOF
9457
cat confdefs.h >>conftest.$ac_ext
9458
cat >>conftest.$ac_ext <<_ACEOF
9459
/* end confdefs.h. */
9460
#include <sys/types.h>
9461
#include <sys/time.h>
9467
if ((struct tm *) 0)
9473
rm -f conftest.$ac_objext
9474
if { (ac_try="$ac_compile"
9476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477
*) ac_try_echo=$ac_try;;
9479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480
(eval "$ac_compile") 2>conftest.er1
9482
grep -v '^ *+' conftest.er1 >conftest.err
9484
cat conftest.err >&5
9485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486
(exit $ac_status); } && {
9487
test -z "$ac_c_werror_flag" ||
9488
test ! -s conftest.err
9489
} && test -s conftest.$ac_objext; then
9490
ac_cv_header_time=yes
9492
echo "$as_me: failed program was:" >&5
9493
sed 's/^/| /' conftest.$ac_ext >&5
9495
ac_cv_header_time=no
9498
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9500
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9501
echo "${ECHO_T}$ac_cv_header_time" >&6; }
9502
if test $ac_cv_header_time = yes; then
9504
cat >>confdefs.h <<\_ACEOF
9505
#define TIME_WITH_SYS_TIME 1
9513
for ac_header in math.h float.h ieeefp.h
9515
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9516
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9517
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9518
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9519
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9520
echo $ECHO_N "(cached) $ECHO_C" >&6
9522
ac_res=`eval echo '${'$as_ac_Header'}'`
9523
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9524
echo "${ECHO_T}$ac_res" >&6; }
9526
# Is the header compilable?
9527
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9528
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9529
cat >conftest.$ac_ext <<_ACEOF
9532
cat confdefs.h >>conftest.$ac_ext
9533
cat >>conftest.$ac_ext <<_ACEOF
9534
/* end confdefs.h. */
9535
$ac_includes_default
9536
#include <$ac_header>
9538
rm -f conftest.$ac_objext
9539
if { (ac_try="$ac_compile"
9541
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542
*) ac_try_echo=$ac_try;;
9544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545
(eval "$ac_compile") 2>conftest.er1
9547
grep -v '^ *+' conftest.er1 >conftest.err
9549
cat conftest.err >&5
9550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551
(exit $ac_status); } && {
9552
test -z "$ac_c_werror_flag" ||
9553
test ! -s conftest.err
9554
} && test -s conftest.$ac_objext; then
9555
ac_header_compiler=yes
9557
echo "$as_me: failed program was:" >&5
9558
sed 's/^/| /' conftest.$ac_ext >&5
9560
ac_header_compiler=no
9563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9565
echo "${ECHO_T}$ac_header_compiler" >&6; }
9567
# Is the header present?
9568
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9569
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9570
cat >conftest.$ac_ext <<_ACEOF
9573
cat confdefs.h >>conftest.$ac_ext
9574
cat >>conftest.$ac_ext <<_ACEOF
9575
/* end confdefs.h. */
9576
#include <$ac_header>
9578
if { (ac_try="$ac_cpp conftest.$ac_ext"
9580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581
*) ac_try_echo=$ac_try;;
9583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9586
grep -v '^ *+' conftest.er1 >conftest.err
9588
cat conftest.err >&5
9589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590
(exit $ac_status); } >/dev/null && {
9591
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9592
test ! -s conftest.err
9594
ac_header_preproc=yes
9596
echo "$as_me: failed program was:" >&5
9597
sed 's/^/| /' conftest.$ac_ext >&5
9599
ac_header_preproc=no
9602
rm -f conftest.err conftest.$ac_ext
9603
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604
echo "${ECHO_T}$ac_header_preproc" >&6; }
9606
# So? What about this header?
9607
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9609
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9610
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9612
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9613
ac_header_preproc=yes
9616
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9617
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9618
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9619
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9620
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9621
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9622
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9623
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9624
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9625
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9626
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9627
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9631
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9632
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9633
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9634
echo $ECHO_N "(cached) $ECHO_C" >&6
9636
eval "$as_ac_Header=\$ac_header_preproc"
9638
ac_res=`eval echo '${'$as_ac_Header'}'`
9639
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9640
echo "${ECHO_T}$ac_res" >&6; }
9643
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9644
cat >>confdefs.h <<_ACEOF
9645
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9653
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9654
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9655
if test "${ac_cv_c_const+set}" = set; then
9656
echo $ECHO_N "(cached) $ECHO_C" >&6
9658
cat >conftest.$ac_ext <<_ACEOF
9661
cat confdefs.h >>conftest.$ac_ext
9662
cat >>conftest.$ac_ext <<_ACEOF
9663
/* end confdefs.h. */
9668
/* FIXME: Include the comments suggested by Paul. */
9670
/* Ultrix mips cc rejects this. */
9671
typedef int charset[2];
9673
/* SunOS 4.1.1 cc rejects this. */
9674
char const *const *pcpcc;
9676
/* NEC SVR4.0.2 mips cc rejects this. */
9677
struct point {int x, y;};
9678
static struct point const zero = {0,0};
9679
/* AIX XL C 1.02.0.0 rejects this.
9680
It does not let you subtract one const X* pointer from another in
9681
an arm of an if-expression whose if-part is not a constant
9683
const char *g = "string";
9684
pcpcc = &g + (g ? g-g : 0);
9685
/* HPUX 7.0 cc rejects these. */
9687
ppc = (char**) pcpcc;
9688
pcpcc = (char const *const *) ppc;
9689
{ /* SCO 3.2v4 cc rejects this. */
9691
char const *s = 0 ? (char *) 0 : (char const *) 0;
9696
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9698
const int *foo = &x[0];
9701
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9702
typedef const int *iptr;
9706
{ /* AIX XL C 1.02.0.0 rejects this saying
9707
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9708
struct s { int j; const int *ap[3]; };
9709
struct s *b; b->j = 5;
9711
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9715
return !cs[0] && !zero.x;
9722
rm -f conftest.$ac_objext
9723
if { (ac_try="$ac_compile"
9725
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726
*) ac_try_echo=$ac_try;;
9728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729
(eval "$ac_compile") 2>conftest.er1
9731
grep -v '^ *+' conftest.er1 >conftest.err
9733
cat conftest.err >&5
9734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735
(exit $ac_status); } && {
9736
test -z "$ac_c_werror_flag" ||
9737
test ! -s conftest.err
9738
} && test -s conftest.$ac_objext; then
9741
echo "$as_me: failed program was:" >&5
9742
sed 's/^/| /' conftest.$ac_ext >&5
9747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9750
echo "${ECHO_T}$ac_cv_c_const" >&6; }
9751
if test $ac_cv_c_const = no; then
9753
cat >>confdefs.h <<\_ACEOF
9759
{ echo "$as_me:$LINENO: checking for pid_t" >&5
9760
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9761
if test "${ac_cv_type_pid_t+set}" = set; then
9762
echo $ECHO_N "(cached) $ECHO_C" >&6
9764
cat >conftest.$ac_ext <<_ACEOF
9767
cat confdefs.h >>conftest.$ac_ext
9768
cat >>conftest.$ac_ext <<_ACEOF
9769
/* end confdefs.h. */
9770
$ac_includes_default
9771
typedef pid_t ac__type_new_;
9775
if ((ac__type_new_ *) 0)
9777
if (sizeof (ac__type_new_))
9783
rm -f conftest.$ac_objext
9784
if { (ac_try="$ac_compile"
9786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787
*) ac_try_echo=$ac_try;;
9789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790
(eval "$ac_compile") 2>conftest.er1
9792
grep -v '^ *+' conftest.er1 >conftest.err
9794
cat conftest.err >&5
9795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796
(exit $ac_status); } && {
9797
test -z "$ac_c_werror_flag" ||
9798
test ! -s conftest.err
9799
} && test -s conftest.$ac_objext; then
9800
ac_cv_type_pid_t=yes
9802
echo "$as_me: failed program was:" >&5
9803
sed 's/^/| /' conftest.$ac_ext >&5
9808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9810
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9811
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9812
if test $ac_cv_type_pid_t = yes; then
9816
cat >>confdefs.h <<_ACEOF
9822
{ echo "$as_me:$LINENO: checking for size_t" >&5
9823
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9824
if test "${ac_cv_type_size_t+set}" = set; then
9825
echo $ECHO_N "(cached) $ECHO_C" >&6
9827
cat >conftest.$ac_ext <<_ACEOF
9830
cat confdefs.h >>conftest.$ac_ext
9831
cat >>conftest.$ac_ext <<_ACEOF
9832
/* end confdefs.h. */
9833
$ac_includes_default
9834
typedef size_t ac__type_new_;
9838
if ((ac__type_new_ *) 0)
9840
if (sizeof (ac__type_new_))
9846
rm -f conftest.$ac_objext
9847
if { (ac_try="$ac_compile"
9849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850
*) ac_try_echo=$ac_try;;
9852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853
(eval "$ac_compile") 2>conftest.er1
9855
grep -v '^ *+' conftest.er1 >conftest.err
9857
cat conftest.err >&5
9858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859
(exit $ac_status); } && {
9860
test -z "$ac_c_werror_flag" ||
9861
test ! -s conftest.err
9862
} && test -s conftest.$ac_objext; then
9863
ac_cv_type_size_t=yes
9865
echo "$as_me: failed program was:" >&5
9866
sed 's/^/| /' conftest.$ac_ext >&5
9868
ac_cv_type_size_t=no
9871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9874
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9875
if test $ac_cv_type_size_t = yes; then
9879
cat >>confdefs.h <<_ACEOF
9880
#define size_t unsigned int
9885
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9886
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9887
if test "${ac_cv_struct_tm+set}" = set; then
9888
echo $ECHO_N "(cached) $ECHO_C" >&6
9890
cat >conftest.$ac_ext <<_ACEOF
9893
cat confdefs.h >>conftest.$ac_ext
9894
cat >>conftest.$ac_ext <<_ACEOF
9895
/* end confdefs.h. */
9896
#include <sys/types.h>
9903
int *p = &tm.tm_sec;
9909
rm -f conftest.$ac_objext
9910
if { (ac_try="$ac_compile"
9912
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913
*) ac_try_echo=$ac_try;;
9915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916
(eval "$ac_compile") 2>conftest.er1
9918
grep -v '^ *+' conftest.er1 >conftest.err
9920
cat conftest.err >&5
9921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922
(exit $ac_status); } && {
9923
test -z "$ac_c_werror_flag" ||
9924
test ! -s conftest.err
9925
} && test -s conftest.$ac_objext; then
9926
ac_cv_struct_tm=time.h
9928
echo "$as_me: failed program was:" >&5
9929
sed 's/^/| /' conftest.$ac_ext >&5
9931
ac_cv_struct_tm=sys/time.h
9934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9937
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9938
if test $ac_cv_struct_tm = sys/time.h; then
9940
cat >>confdefs.h <<\_ACEOF
9941
#define TM_IN_SYS_TIME 1
9947
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9948
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9949
if test "${ac_cv_type_signal+set}" = set; then
9950
echo $ECHO_N "(cached) $ECHO_C" >&6
9952
cat >conftest.$ac_ext <<_ACEOF
9955
cat confdefs.h >>conftest.$ac_ext
9956
cat >>conftest.$ac_ext <<_ACEOF
9957
/* end confdefs.h. */
9958
#include <sys/types.h>
9964
return *(signal (0, 0)) (0) == 1;
9969
rm -f conftest.$ac_objext
9970
if { (ac_try="$ac_compile"
9972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973
*) ac_try_echo=$ac_try;;
9975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976
(eval "$ac_compile") 2>conftest.er1
9978
grep -v '^ *+' conftest.er1 >conftest.err
9980
cat conftest.err >&5
9981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
(exit $ac_status); } && {
9983
test -z "$ac_c_werror_flag" ||
9984
test ! -s conftest.err
9985
} && test -s conftest.$ac_objext; then
9986
ac_cv_type_signal=int
9988
echo "$as_me: failed program was:" >&5
9989
sed 's/^/| /' conftest.$ac_ext >&5
9991
ac_cv_type_signal=void
9994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9997
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9999
cat >>confdefs.h <<_ACEOF
10000
#define RETSIGTYPE $ac_cv_type_signal
10004
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10005
# for constant arguments. Useless!
10006
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
10007
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
10008
if test "${ac_cv_working_alloca_h+set}" = set; then
10009
echo $ECHO_N "(cached) $ECHO_C" >&6
10011
cat >conftest.$ac_ext <<_ACEOF
10014
cat confdefs.h >>conftest.$ac_ext
10015
cat >>conftest.$ac_ext <<_ACEOF
10016
/* end confdefs.h. */
10017
#include <alloca.h>
10021
char *p = (char *) alloca (2 * sizeof (int));
10027
rm -f conftest.$ac_objext conftest$ac_exeext
10028
if { (ac_try="$ac_link"
10029
case "(($ac_try" in
10030
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031
*) ac_try_echo=$ac_try;;
10033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034
(eval "$ac_link") 2>conftest.er1
10036
grep -v '^ *+' conftest.er1 >conftest.err
10038
cat conftest.err >&5
10039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040
(exit $ac_status); } && {
10041
test -z "$ac_c_werror_flag" ||
10042
test ! -s conftest.err
10043
} && test -s conftest$ac_exeext &&
10044
$as_test_x conftest$ac_exeext; then
10045
ac_cv_working_alloca_h=yes
10047
echo "$as_me: failed program was:" >&5
10048
sed 's/^/| /' conftest.$ac_ext >&5
10050
ac_cv_working_alloca_h=no
10053
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10054
conftest$ac_exeext conftest.$ac_ext
10056
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10057
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
10058
if test $ac_cv_working_alloca_h = yes; then
10060
cat >>confdefs.h <<\_ACEOF
10061
#define HAVE_ALLOCA_H 1
10066
{ echo "$as_me:$LINENO: checking for alloca" >&5
10067
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
10068
if test "${ac_cv_func_alloca_works+set}" = set; then
10069
echo $ECHO_N "(cached) $ECHO_C" >&6
10071
cat >conftest.$ac_ext <<_ACEOF
10074
cat confdefs.h >>conftest.$ac_ext
10075
cat >>conftest.$ac_ext <<_ACEOF
10076
/* end confdefs.h. */
10078
# define alloca __builtin_alloca
10081
# include <malloc.h>
10082
# define alloca _alloca
10084
# ifdef HAVE_ALLOCA_H
10085
# include <alloca.h>
10090
# ifndef alloca /* predefined by HP cc +Olibcalls */
10101
char *p = (char *) alloca (1);
10107
rm -f conftest.$ac_objext conftest$ac_exeext
10108
if { (ac_try="$ac_link"
10109
case "(($ac_try" in
10110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111
*) ac_try_echo=$ac_try;;
10113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114
(eval "$ac_link") 2>conftest.er1
10116
grep -v '^ *+' conftest.er1 >conftest.err
10118
cat conftest.err >&5
10119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120
(exit $ac_status); } && {
10121
test -z "$ac_c_werror_flag" ||
10122
test ! -s conftest.err
10123
} && test -s conftest$ac_exeext &&
10124
$as_test_x conftest$ac_exeext; then
10125
ac_cv_func_alloca_works=yes
10127
echo "$as_me: failed program was:" >&5
10128
sed 's/^/| /' conftest.$ac_ext >&5
10130
ac_cv_func_alloca_works=no
10133
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10134
conftest$ac_exeext conftest.$ac_ext
10136
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10137
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
10139
if test $ac_cv_func_alloca_works = yes; then
10141
cat >>confdefs.h <<\_ACEOF
10142
#define HAVE_ALLOCA 1
10146
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
10147
# that cause trouble. Some versions do not even contain alloca or
10148
# contain a buggy version. If you still want to use their alloca,
10149
# use ar to extract alloca.o from them instead of compiling alloca.c.
10151
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10153
cat >>confdefs.h <<\_ACEOF
10158
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10159
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
10160
if test "${ac_cv_os_cray+set}" = set; then
10161
echo $ECHO_N "(cached) $ECHO_C" >&6
10163
cat >conftest.$ac_ext <<_ACEOF
10166
cat confdefs.h >>conftest.$ac_ext
10167
cat >>conftest.$ac_ext <<_ACEOF
10168
/* end confdefs.h. */
10169
#if defined CRAY && ! defined CRAY2
10176
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10177
$EGREP "webecray" >/dev/null 2>&1; then
10185
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10186
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
10187
if test $ac_cv_os_cray = yes; then
10188
for ac_func in _getb67 GETB67 getb67; do
10189
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10190
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10191
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10192
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10193
echo $ECHO_N "(cached) $ECHO_C" >&6
10195
cat >conftest.$ac_ext <<_ACEOF
10198
cat confdefs.h >>conftest.$ac_ext
10199
cat >>conftest.$ac_ext <<_ACEOF
10200
/* end confdefs.h. */
10201
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10202
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10203
#define $ac_func innocuous_$ac_func
10205
/* System header to define __stub macros and hopefully few prototypes,
10206
which can conflict with char $ac_func (); below.
10207
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208
<limits.h> exists even on freestanding compilers. */
10211
# include <limits.h>
10213
# include <assert.h>
10218
/* Override any GCC internal prototype to avoid an error.
10219
Use char because int might match the return type of a GCC
10220
builtin and then its argument prototype would still apply. */
10225
/* The GNU C library defines this for functions which it implements
10226
to always fail with ENOSYS. Some functions are actually named
10227
something starting with __ and the normal name is an alias. */
10228
#if defined __stub_$ac_func || defined __stub___$ac_func
10235
return $ac_func ();
10240
rm -f conftest.$ac_objext conftest$ac_exeext
10241
if { (ac_try="$ac_link"
10242
case "(($ac_try" in
10243
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244
*) ac_try_echo=$ac_try;;
10246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247
(eval "$ac_link") 2>conftest.er1
10249
grep -v '^ *+' conftest.er1 >conftest.err
10251
cat conftest.err >&5
10252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253
(exit $ac_status); } && {
10254
test -z "$ac_c_werror_flag" ||
10255
test ! -s conftest.err
10256
} && test -s conftest$ac_exeext &&
10257
$as_test_x conftest$ac_exeext; then
10258
eval "$as_ac_var=yes"
10260
echo "$as_me: failed program was:" >&5
10261
sed 's/^/| /' conftest.$ac_ext >&5
10263
eval "$as_ac_var=no"
10266
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10267
conftest$ac_exeext conftest.$ac_ext
10269
ac_res=`eval echo '${'$as_ac_var'}'`
10270
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10271
echo "${ECHO_T}$ac_res" >&6; }
10272
if test `eval echo '${'$as_ac_var'}'` = yes; then
10274
cat >>confdefs.h <<_ACEOF
10275
#define CRAY_STACKSEG_END $ac_func
10284
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10285
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
10286
if test "${ac_cv_c_stack_direction+set}" = set; then
10287
echo $ECHO_N "(cached) $ECHO_C" >&6
10289
if test "$cross_compiling" = yes; then
10290
ac_cv_c_stack_direction=0
10292
cat >conftest.$ac_ext <<_ACEOF
10295
cat confdefs.h >>conftest.$ac_ext
10296
cat >>conftest.$ac_ext <<_ACEOF
10297
/* end confdefs.h. */
10298
$ac_includes_default
10300
find_stack_direction ()
10302
static char *addr = 0;
10307
return find_stack_direction ();
10310
return (&dummy > addr) ? 1 : -1;
10316
return find_stack_direction () < 0;
10319
rm -f conftest$ac_exeext
10320
if { (ac_try="$ac_link"
10321
case "(($ac_try" in
10322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323
*) ac_try_echo=$ac_try;;
10325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326
(eval "$ac_link") 2>&5
10328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10330
{ (case "(($ac_try" in
10331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332
*) ac_try_echo=$ac_try;;
10334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335
(eval "$ac_try") 2>&5
10337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338
(exit $ac_status); }; }; then
10339
ac_cv_c_stack_direction=1
10341
echo "$as_me: program exited with status $ac_status" >&5
10342
echo "$as_me: failed program was:" >&5
10343
sed 's/^/| /' conftest.$ac_ext >&5
10345
( exit $ac_status )
10346
ac_cv_c_stack_direction=-1
10348
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10353
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10354
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
10356
cat >>confdefs.h <<_ACEOF
10357
#define STACK_DIRECTION $ac_cv_c_stack_direction
10365
for ac_func in getcwd gethostname
10367
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10368
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10369
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10370
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10371
echo $ECHO_N "(cached) $ECHO_C" >&6
10373
cat >conftest.$ac_ext <<_ACEOF
10376
cat confdefs.h >>conftest.$ac_ext
10377
cat >>conftest.$ac_ext <<_ACEOF
10378
/* end confdefs.h. */
10379
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10380
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10381
#define $ac_func innocuous_$ac_func
10383
/* System header to define __stub macros and hopefully few prototypes,
10384
which can conflict with char $ac_func (); below.
10385
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386
<limits.h> exists even on freestanding compilers. */
10389
# include <limits.h>
10391
# include <assert.h>
10396
/* Override any GCC internal prototype to avoid an error.
10397
Use char because int might match the return type of a GCC
10398
builtin and then its argument prototype would still apply. */
10403
/* The GNU C library defines this for functions which it implements
10404
to always fail with ENOSYS. Some functions are actually named
10405
something starting with __ and the normal name is an alias. */
10406
#if defined __stub_$ac_func || defined __stub___$ac_func
10413
return $ac_func ();
10418
rm -f conftest.$ac_objext conftest$ac_exeext
10419
if { (ac_try="$ac_link"
10420
case "(($ac_try" in
10421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422
*) ac_try_echo=$ac_try;;
10424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425
(eval "$ac_link") 2>conftest.er1
10427
grep -v '^ *+' conftest.er1 >conftest.err
10429
cat conftest.err >&5
10430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431
(exit $ac_status); } && {
10432
test -z "$ac_c_werror_flag" ||
10433
test ! -s conftest.err
10434
} && test -s conftest$ac_exeext &&
10435
$as_test_x conftest$ac_exeext; then
10436
eval "$as_ac_var=yes"
10438
echo "$as_me: failed program was:" >&5
10439
sed 's/^/| /' conftest.$ac_ext >&5
10441
eval "$as_ac_var=no"
10444
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445
conftest$ac_exeext conftest.$ac_ext
10447
ac_res=`eval echo '${'$as_ac_var'}'`
10448
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10449
echo "${ECHO_T}$ac_res" >&6; }
10450
if test `eval echo '${'$as_ac_var'}'` = yes; then
10451
cat >>confdefs.h <<_ACEOF
10452
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10459
for ac_func in strstr
10461
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10462
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10463
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10464
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10465
echo $ECHO_N "(cached) $ECHO_C" >&6
10467
cat >conftest.$ac_ext <<_ACEOF
10470
cat confdefs.h >>conftest.$ac_ext
10471
cat >>conftest.$ac_ext <<_ACEOF
10472
/* end confdefs.h. */
10473
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10474
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10475
#define $ac_func innocuous_$ac_func
10477
/* System header to define __stub macros and hopefully few prototypes,
10478
which can conflict with char $ac_func (); below.
10479
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10480
<limits.h> exists even on freestanding compilers. */
10483
# include <limits.h>
10485
# include <assert.h>
10490
/* Override any GCC internal prototype to avoid an error.
10491
Use char because int might match the return type of a GCC
10492
builtin and then its argument prototype would still apply. */
10497
/* The GNU C library defines this for functions which it implements
10498
to always fail with ENOSYS. Some functions are actually named
10499
something starting with __ and the normal name is an alias. */
10500
#if defined __stub_$ac_func || defined __stub___$ac_func
10507
return $ac_func ();
10512
rm -f conftest.$ac_objext conftest$ac_exeext
10513
if { (ac_try="$ac_link"
10514
case "(($ac_try" in
10515
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516
*) ac_try_echo=$ac_try;;
10518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519
(eval "$ac_link") 2>conftest.er1
10521
grep -v '^ *+' conftest.er1 >conftest.err
10523
cat conftest.err >&5
10524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525
(exit $ac_status); } && {
10526
test -z "$ac_c_werror_flag" ||
10527
test ! -s conftest.err
10528
} && test -s conftest$ac_exeext &&
10529
$as_test_x conftest$ac_exeext; then
10530
eval "$as_ac_var=yes"
10532
echo "$as_me: failed program was:" >&5
10533
sed 's/^/| /' conftest.$ac_ext >&5
10535
eval "$as_ac_var=no"
10538
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10539
conftest$ac_exeext conftest.$ac_ext
10541
ac_res=`eval echo '${'$as_ac_var'}'`
10542
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10543
echo "${ECHO_T}$ac_res" >&6; }
10544
if test `eval echo '${'$as_ac_var'}'` = yes; then
10545
cat >>confdefs.h <<_ACEOF
10546
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10554
for ac_func in memcpy memmove
10556
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10557
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10558
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10559
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10560
echo $ECHO_N "(cached) $ECHO_C" >&6
10562
cat >conftest.$ac_ext <<_ACEOF
10565
cat confdefs.h >>conftest.$ac_ext
10566
cat >>conftest.$ac_ext <<_ACEOF
10567
/* end confdefs.h. */
10568
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10569
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10570
#define $ac_func innocuous_$ac_func
10572
/* System header to define __stub macros and hopefully few prototypes,
10573
which can conflict with char $ac_func (); below.
10574
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10575
<limits.h> exists even on freestanding compilers. */
10578
# include <limits.h>
10580
# include <assert.h>
10585
/* Override any GCC internal prototype to avoid an error.
10586
Use char because int might match the return type of a GCC
10587
builtin and then its argument prototype would still apply. */
10592
/* The GNU C library defines this for functions which it implements
10593
to always fail with ENOSYS. Some functions are actually named
10594
something starting with __ and the normal name is an alias. */
10595
#if defined __stub_$ac_func || defined __stub___$ac_func
10602
return $ac_func ();
10607
rm -f conftest.$ac_objext conftest$ac_exeext
10608
if { (ac_try="$ac_link"
10609
case "(($ac_try" in
10610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611
*) ac_try_echo=$ac_try;;
10613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614
(eval "$ac_link") 2>conftest.er1
10616
grep -v '^ *+' conftest.er1 >conftest.err
10618
cat conftest.err >&5
10619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620
(exit $ac_status); } && {
10621
test -z "$ac_c_werror_flag" ||
10622
test ! -s conftest.err
10623
} && test -s conftest$ac_exeext &&
10624
$as_test_x conftest$ac_exeext; then
10625
eval "$as_ac_var=yes"
10627
echo "$as_me: failed program was:" >&5
10628
sed 's/^/| /' conftest.$ac_ext >&5
10630
eval "$as_ac_var=no"
10633
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634
conftest$ac_exeext conftest.$ac_ext
10636
ac_res=`eval echo '${'$as_ac_var'}'`
10637
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10638
echo "${ECHO_T}$ac_res" >&6; }
10639
if test `eval echo '${'$as_ac_var'}'` = yes; then
10640
cat >>confdefs.h <<_ACEOF
10641
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10649
for ac_func in unlink fcntl
10651
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10652
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10653
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10654
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10655
echo $ECHO_N "(cached) $ECHO_C" >&6
10657
cat >conftest.$ac_ext <<_ACEOF
10660
cat confdefs.h >>conftest.$ac_ext
10661
cat >>conftest.$ac_ext <<_ACEOF
10662
/* end confdefs.h. */
10663
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10664
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10665
#define $ac_func innocuous_$ac_func
10667
/* System header to define __stub macros and hopefully few prototypes,
10668
which can conflict with char $ac_func (); below.
10669
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10670
<limits.h> exists even on freestanding compilers. */
10673
# include <limits.h>
10675
# include <assert.h>
10680
/* Override any GCC internal prototype to avoid an error.
10681
Use char because int might match the return type of a GCC
10682
builtin and then its argument prototype would still apply. */
10687
/* The GNU C library defines this for functions which it implements
10688
to always fail with ENOSYS. Some functions are actually named
10689
something starting with __ and the normal name is an alias. */
10690
#if defined __stub_$ac_func || defined __stub___$ac_func
10697
return $ac_func ();
10702
rm -f conftest.$ac_objext conftest$ac_exeext
10703
if { (ac_try="$ac_link"
10704
case "(($ac_try" in
10705
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706
*) ac_try_echo=$ac_try;;
10708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709
(eval "$ac_link") 2>conftest.er1
10711
grep -v '^ *+' conftest.er1 >conftest.err
10713
cat conftest.err >&5
10714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715
(exit $ac_status); } && {
10716
test -z "$ac_c_werror_flag" ||
10717
test ! -s conftest.err
10718
} && test -s conftest$ac_exeext &&
10719
$as_test_x conftest$ac_exeext; then
10720
eval "$as_ac_var=yes"
10722
echo "$as_me: failed program was:" >&5
10723
sed 's/^/| /' conftest.$ac_ext >&5
10725
eval "$as_ac_var=no"
10728
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10729
conftest$ac_exeext conftest.$ac_ext
10731
ac_res=`eval echo '${'$as_ac_var'}'`
10732
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10733
echo "${ECHO_T}$ac_res" >&6; }
10734
if test `eval echo '${'$as_ac_var'}'` = yes; then
10735
cat >>confdefs.h <<_ACEOF
10736
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10743
for ac_func in popen
10745
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10746
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10747
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10748
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10749
echo $ECHO_N "(cached) $ECHO_C" >&6
10751
cat >conftest.$ac_ext <<_ACEOF
10754
cat confdefs.h >>conftest.$ac_ext
10755
cat >>conftest.$ac_ext <<_ACEOF
10756
/* end confdefs.h. */
10757
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10758
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10759
#define $ac_func innocuous_$ac_func
10761
/* System header to define __stub macros and hopefully few prototypes,
10762
which can conflict with char $ac_func (); below.
10763
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764
<limits.h> exists even on freestanding compilers. */
10767
# include <limits.h>
10769
# include <assert.h>
10774
/* Override any GCC internal prototype to avoid an error.
10775
Use char because int might match the return type of a GCC
10776
builtin and then its argument prototype would still apply. */
10781
/* The GNU C library defines this for functions which it implements
10782
to always fail with ENOSYS. Some functions are actually named
10783
something starting with __ and the normal name is an alias. */
10784
#if defined __stub_$ac_func || defined __stub___$ac_func
10791
return $ac_func ();
10796
rm -f conftest.$ac_objext conftest$ac_exeext
10797
if { (ac_try="$ac_link"
10798
case "(($ac_try" in
10799
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800
*) ac_try_echo=$ac_try;;
10802
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803
(eval "$ac_link") 2>conftest.er1
10805
grep -v '^ *+' conftest.er1 >conftest.err
10807
cat conftest.err >&5
10808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809
(exit $ac_status); } && {
10810
test -z "$ac_c_werror_flag" ||
10811
test ! -s conftest.err
10812
} && test -s conftest$ac_exeext &&
10813
$as_test_x conftest$ac_exeext; then
10814
eval "$as_ac_var=yes"
10816
echo "$as_me: failed program was:" >&5
10817
sed 's/^/| /' conftest.$ac_ext >&5
10819
eval "$as_ac_var=no"
10822
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10823
conftest$ac_exeext conftest.$ac_ext
10825
ac_res=`eval echo '${'$as_ac_var'}'`
10826
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10827
echo "${ECHO_T}$ac_res" >&6; }
10828
if test `eval echo '${'$as_ac_var'}'` = yes; then
10829
cat >>confdefs.h <<_ACEOF
10830
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10837
for ac_func in gettimeofday
10839
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10840
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10841
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10842
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10843
echo $ECHO_N "(cached) $ECHO_C" >&6
10845
cat >conftest.$ac_ext <<_ACEOF
10848
cat confdefs.h >>conftest.$ac_ext
10849
cat >>conftest.$ac_ext <<_ACEOF
10850
/* end confdefs.h. */
10851
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10852
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10853
#define $ac_func innocuous_$ac_func
10855
/* System header to define __stub macros and hopefully few prototypes,
10856
which can conflict with char $ac_func (); below.
10857
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10858
<limits.h> exists even on freestanding compilers. */
10861
# include <limits.h>
10863
# include <assert.h>
10868
/* Override any GCC internal prototype to avoid an error.
10869
Use char because int might match the return type of a GCC
10870
builtin and then its argument prototype would still apply. */
10875
/* The GNU C library defines this for functions which it implements
10876
to always fail with ENOSYS. Some functions are actually named
10877
something starting with __ and the normal name is an alias. */
10878
#if defined __stub_$ac_func || defined __stub___$ac_func
10885
return $ac_func ();
10890
rm -f conftest.$ac_objext conftest$ac_exeext
10891
if { (ac_try="$ac_link"
10892
case "(($ac_try" in
10893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894
*) ac_try_echo=$ac_try;;
10896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897
(eval "$ac_link") 2>conftest.er1
10899
grep -v '^ *+' conftest.er1 >conftest.err
10901
cat conftest.err >&5
10902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903
(exit $ac_status); } && {
10904
test -z "$ac_c_werror_flag" ||
10905
test ! -s conftest.err
10906
} && test -s conftest$ac_exeext &&
10907
$as_test_x conftest$ac_exeext; then
10908
eval "$as_ac_var=yes"
10910
echo "$as_me: failed program was:" >&5
10911
sed 's/^/| /' conftest.$ac_ext >&5
10913
eval "$as_ac_var=no"
10916
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917
conftest$ac_exeext conftest.$ac_ext
10919
ac_res=`eval echo '${'$as_ac_var'}'`
10920
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10921
echo "${ECHO_T}$ac_res" >&6; }
10922
if test `eval echo '${'$as_ac_var'}'` = yes; then
10923
cat >>confdefs.h <<_ACEOF
10924
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10931
for ac_func in fnmatch
10933
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10934
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10935
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10936
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10937
echo $ECHO_N "(cached) $ECHO_C" >&6
10939
cat >conftest.$ac_ext <<_ACEOF
10942
cat confdefs.h >>conftest.$ac_ext
10943
cat >>conftest.$ac_ext <<_ACEOF
10944
/* end confdefs.h. */
10945
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10946
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10947
#define $ac_func innocuous_$ac_func
10949
/* System header to define __stub macros and hopefully few prototypes,
10950
which can conflict with char $ac_func (); below.
10951
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10952
<limits.h> exists even on freestanding compilers. */
10955
# include <limits.h>
10957
# include <assert.h>
10962
/* Override any GCC internal prototype to avoid an error.
10963
Use char because int might match the return type of a GCC
10964
builtin and then its argument prototype would still apply. */
10969
/* The GNU C library defines this for functions which it implements
10970
to always fail with ENOSYS. Some functions are actually named
10971
something starting with __ and the normal name is an alias. */
10972
#if defined __stub_$ac_func || defined __stub___$ac_func
10979
return $ac_func ();
10984
rm -f conftest.$ac_objext conftest$ac_exeext
10985
if { (ac_try="$ac_link"
10986
case "(($ac_try" in
10987
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988
*) ac_try_echo=$ac_try;;
10990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991
(eval "$ac_link") 2>conftest.er1
10993
grep -v '^ *+' conftest.er1 >conftest.err
10995
cat conftest.err >&5
10996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997
(exit $ac_status); } && {
10998
test -z "$ac_c_werror_flag" ||
10999
test ! -s conftest.err
11000
} && test -s conftest$ac_exeext &&
11001
$as_test_x conftest$ac_exeext; then
11002
eval "$as_ac_var=yes"
11004
echo "$as_me: failed program was:" >&5
11005
sed 's/^/| /' conftest.$ac_ext >&5
11007
eval "$as_ac_var=no"
11010
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011
conftest$ac_exeext conftest.$ac_ext
11013
ac_res=`eval echo '${'$as_ac_var'}'`
11014
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11015
echo "${ECHO_T}$ac_res" >&6; }
11016
if test `eval echo '${'$as_ac_var'}'` = yes; then
11017
cat >>confdefs.h <<_ACEOF
11018
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025
for ac_func in vsnprintf
11027
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11028
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11029
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11030
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11031
echo $ECHO_N "(cached) $ECHO_C" >&6
11033
cat >conftest.$ac_ext <<_ACEOF
11036
cat confdefs.h >>conftest.$ac_ext
11037
cat >>conftest.$ac_ext <<_ACEOF
11038
/* end confdefs.h. */
11039
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11040
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11041
#define $ac_func innocuous_$ac_func
11043
/* System header to define __stub macros and hopefully few prototypes,
11044
which can conflict with char $ac_func (); below.
11045
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11046
<limits.h> exists even on freestanding compilers. */
11049
# include <limits.h>
11051
# include <assert.h>
11056
/* Override any GCC internal prototype to avoid an error.
11057
Use char because int might match the return type of a GCC
11058
builtin and then its argument prototype would still apply. */
11063
/* The GNU C library defines this for functions which it implements
11064
to always fail with ENOSYS. Some functions are actually named
11065
something starting with __ and the normal name is an alias. */
11066
#if defined __stub_$ac_func || defined __stub___$ac_func
11073
return $ac_func ();
11078
rm -f conftest.$ac_objext conftest$ac_exeext
11079
if { (ac_try="$ac_link"
11080
case "(($ac_try" in
11081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082
*) ac_try_echo=$ac_try;;
11084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085
(eval "$ac_link") 2>conftest.er1
11087
grep -v '^ *+' conftest.er1 >conftest.err
11089
cat conftest.err >&5
11090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091
(exit $ac_status); } && {
11092
test -z "$ac_c_werror_flag" ||
11093
test ! -s conftest.err
11094
} && test -s conftest$ac_exeext &&
11095
$as_test_x conftest$ac_exeext; then
11096
eval "$as_ac_var=yes"
11098
echo "$as_me: failed program was:" >&5
11099
sed 's/^/| /' conftest.$ac_ext >&5
11101
eval "$as_ac_var=no"
11104
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11105
conftest$ac_exeext conftest.$ac_ext
11107
ac_res=`eval echo '${'$as_ac_var'}'`
11108
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11109
echo "${ECHO_T}$ac_res" >&6; }
11110
if test `eval echo '${'$as_ac_var'}'` = yes; then
11111
cat >>confdefs.h <<_ACEOF
11112
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11119
for ac_func in on_exit
11121
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11122
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11123
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11124
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11125
echo $ECHO_N "(cached) $ECHO_C" >&6
11127
cat >conftest.$ac_ext <<_ACEOF
11130
cat confdefs.h >>conftest.$ac_ext
11131
cat >>conftest.$ac_ext <<_ACEOF
11132
/* end confdefs.h. */
11133
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11134
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11135
#define $ac_func innocuous_$ac_func
11137
/* System header to define __stub macros and hopefully few prototypes,
11138
which can conflict with char $ac_func (); below.
11139
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11140
<limits.h> exists even on freestanding compilers. */
11143
# include <limits.h>
11145
# include <assert.h>
11150
/* Override any GCC internal prototype to avoid an error.
11151
Use char because int might match the return type of a GCC
11152
builtin and then its argument prototype would still apply. */
11157
/* The GNU C library defines this for functions which it implements
11158
to always fail with ENOSYS. Some functions are actually named
11159
something starting with __ and the normal name is an alias. */
11160
#if defined __stub_$ac_func || defined __stub___$ac_func
11167
return $ac_func ();
11172
rm -f conftest.$ac_objext conftest$ac_exeext
11173
if { (ac_try="$ac_link"
11174
case "(($ac_try" in
11175
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176
*) ac_try_echo=$ac_try;;
11178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179
(eval "$ac_link") 2>conftest.er1
11181
grep -v '^ *+' conftest.er1 >conftest.err
11183
cat conftest.err >&5
11184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185
(exit $ac_status); } && {
11186
test -z "$ac_c_werror_flag" ||
11187
test ! -s conftest.err
11188
} && test -s conftest$ac_exeext &&
11189
$as_test_x conftest$ac_exeext; then
11190
eval "$as_ac_var=yes"
11192
echo "$as_me: failed program was:" >&5
11193
sed 's/^/| /' conftest.$ac_ext >&5
11195
eval "$as_ac_var=no"
11198
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11199
conftest$ac_exeext conftest.$ac_ext
11201
ac_res=`eval echo '${'$as_ac_var'}'`
11202
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11203
echo "${ECHO_T}$ac_res" >&6; }
11204
if test `eval echo '${'$as_ac_var'}'` = yes; then
11205
cat >>confdefs.h <<_ACEOF
11206
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213
for ac_func in strerror
11215
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11216
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11217
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11218
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11219
echo $ECHO_N "(cached) $ECHO_C" >&6
11221
cat >conftest.$ac_ext <<_ACEOF
11224
cat confdefs.h >>conftest.$ac_ext
11225
cat >>conftest.$ac_ext <<_ACEOF
11226
/* end confdefs.h. */
11227
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11228
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11229
#define $ac_func innocuous_$ac_func
11231
/* System header to define __stub macros and hopefully few prototypes,
11232
which can conflict with char $ac_func (); below.
11233
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11234
<limits.h> exists even on freestanding compilers. */
11237
# include <limits.h>
11239
# include <assert.h>
11244
/* Override any GCC internal prototype to avoid an error.
11245
Use char because int might match the return type of a GCC
11246
builtin and then its argument prototype would still apply. */
11251
/* The GNU C library defines this for functions which it implements
11252
to always fail with ENOSYS. Some functions are actually named
11253
something starting with __ and the normal name is an alias. */
11254
#if defined __stub_$ac_func || defined __stub___$ac_func
11261
return $ac_func ();
11266
rm -f conftest.$ac_objext conftest$ac_exeext
11267
if { (ac_try="$ac_link"
11268
case "(($ac_try" in
11269
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270
*) ac_try_echo=$ac_try;;
11272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273
(eval "$ac_link") 2>conftest.er1
11275
grep -v '^ *+' conftest.er1 >conftest.err
11277
cat conftest.err >&5
11278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279
(exit $ac_status); } && {
11280
test -z "$ac_c_werror_flag" ||
11281
test ! -s conftest.err
11282
} && test -s conftest$ac_exeext &&
11283
$as_test_x conftest$ac_exeext; then
11284
eval "$as_ac_var=yes"
11286
echo "$as_me: failed program was:" >&5
11287
sed 's/^/| /' conftest.$ac_ext >&5
11289
eval "$as_ac_var=no"
11292
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11293
conftest$ac_exeext conftest.$ac_ext
11295
ac_res=`eval echo '${'$as_ac_var'}'`
11296
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11297
echo "${ECHO_T}$ac_res" >&6; }
11298
if test `eval echo '${'$as_ac_var'}'` = yes; then
11299
cat >>confdefs.h <<_ACEOF
11300
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11306
if test "$ac_cv_func_strerror" = no; then
11307
{ echo "$as_me:$LINENO: checking for sys_errlist declaration in stdio.h" >&5
11308
echo $ECHO_N "checking for sys_errlist declaration in stdio.h... $ECHO_C" >&6; }
11309
if test "${ac_cv_sys_errlist_decl+set}" = set; then
11310
echo $ECHO_N "(cached) $ECHO_C" >&6
11312
cat >conftest.$ac_ext <<_ACEOF
11315
cat confdefs.h >>conftest.$ac_ext
11316
cat >>conftest.$ac_ext <<_ACEOF
11317
/* end confdefs.h. */
11321
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11322
$EGREP "sys_errlist" >/dev/null 2>&1; then
11323
ac_cv_sys_errlist_decl="yes"
11325
ac_cv_sys_errlist_decl="no"
11330
{ echo "$as_me:$LINENO: result: $ac_cv_sys_errlist_decl" >&5
11331
echo "${ECHO_T}$ac_cv_sys_errlist_decl" >&6; }
11332
if test "$ac_cv_sys_errlist_decl" = yes; then
11333
cat >>confdefs.h <<\_ACEOF
11334
#define HAVE_SYS_ERRLIST_DECL 1
11341
ice_tr=`echo drand48 | tr '[a-z]' '[A-Z]'`
11342
ice_have_tr=HAVE_$ice_tr
11343
ice_have_decl_tr=${ice_have_tr}_DECL
11344
ice_have_drand48=no
11346
for ac_func in drand48
11348
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11349
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11350
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11351
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11352
echo $ECHO_N "(cached) $ECHO_C" >&6
11354
cat >conftest.$ac_ext <<_ACEOF
11357
cat confdefs.h >>conftest.$ac_ext
11358
cat >>conftest.$ac_ext <<_ACEOF
11359
/* end confdefs.h. */
11360
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11361
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11362
#define $ac_func innocuous_$ac_func
11364
/* System header to define __stub macros and hopefully few prototypes,
11365
which can conflict with char $ac_func (); below.
11366
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11367
<limits.h> exists even on freestanding compilers. */
11370
# include <limits.h>
11372
# include <assert.h>
11377
/* Override any GCC internal prototype to avoid an error.
11378
Use char because int might match the return type of a GCC
11379
builtin and then its argument prototype would still apply. */
11384
/* The GNU C library defines this for functions which it implements
11385
to always fail with ENOSYS. Some functions are actually named
11386
something starting with __ and the normal name is an alias. */
11387
#if defined __stub_$ac_func || defined __stub___$ac_func
11394
return $ac_func ();
11399
rm -f conftest.$ac_objext conftest$ac_exeext
11400
if { (ac_try="$ac_link"
11401
case "(($ac_try" in
11402
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403
*) ac_try_echo=$ac_try;;
11405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406
(eval "$ac_link") 2>conftest.er1
11408
grep -v '^ *+' conftest.er1 >conftest.err
11410
cat conftest.err >&5
11411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412
(exit $ac_status); } && {
11413
test -z "$ac_c_werror_flag" ||
11414
test ! -s conftest.err
11415
} && test -s conftest$ac_exeext &&
11416
$as_test_x conftest$ac_exeext; then
11417
eval "$as_ac_var=yes"
11419
echo "$as_me: failed program was:" >&5
11420
sed 's/^/| /' conftest.$ac_ext >&5
11422
eval "$as_ac_var=no"
11425
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11426
conftest$ac_exeext conftest.$ac_ext
11428
ac_res=`eval echo '${'$as_ac_var'}'`
11429
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11430
echo "${ECHO_T}$ac_res" >&6; }
11431
if test `eval echo '${'$as_ac_var'}'` = yes; then
11432
cat >>confdefs.h <<_ACEOF
11433
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11435
ice_have_drand48=yes
11439
if test "${ice_have_drand48}" = yes; then
11440
{ echo "$as_me:$LINENO: checking for drand48 declaration in stdlib.h" >&5
11441
echo $ECHO_N "checking for drand48 declaration in stdlib.h... $ECHO_C" >&6; }
11442
if test "${ice_cv_have_drand48_decl+set}" = set; then
11443
echo $ECHO_N "(cached) $ECHO_C" >&6
11446
ice_cv_have_drand48_decl=no
11447
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
11448
ice_re_word='(^|[^a-zA-Z_0-9_])'
11449
for header in stdlib.h; do
11450
# Check for ordinary declaration
11451
cat >conftest.$ac_ext <<_ACEOF
11454
cat confdefs.h >>conftest.$ac_ext
11455
cat >>conftest.$ac_ext <<_ACEOF
11456
/* end confdefs.h. */
11460
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11461
$EGREP "${ice_re_word}drand48 *\(" >/dev/null 2>&1; then
11462
ice_cv_have_drand48_decl=yes
11466
if test "$ice_cv_have_drand48_decl" = yes; then
11469
# Check for "fixed" declaration like "getpid _PARAMS((int))"
11470
cat >conftest.$ac_ext <<_ACEOF
11473
cat confdefs.h >>conftest.$ac_ext
11474
cat >>conftest.$ac_ext <<_ACEOF
11475
/* end confdefs.h. */
11479
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11480
$EGREP "${ice_re_word}drand48 *$ice_re_params\(\(" >/dev/null 2>&1; then
11481
ice_cv_have_drand48_decl=yes
11485
if test "$ice_cv_have_drand48_decl" = yes; then
11492
{ echo "$as_me:$LINENO: result: $ice_cv_have_drand48_decl" >&5
11493
echo "${ECHO_T}$ice_cv_have_drand48_decl" >&6; }
11494
if test "$ice_cv_have_drand48_decl" = yes; then
11495
cat >>confdefs.h <<_ACEOF
11496
#define ${ice_have_decl_tr} 1
11504
for ac_func in setlocale
11506
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11507
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11508
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11509
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11510
echo $ECHO_N "(cached) $ECHO_C" >&6
11512
cat >conftest.$ac_ext <<_ACEOF
11515
cat confdefs.h >>conftest.$ac_ext
11516
cat >>conftest.$ac_ext <<_ACEOF
11517
/* end confdefs.h. */
11518
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11519
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11520
#define $ac_func innocuous_$ac_func
11522
/* System header to define __stub macros and hopefully few prototypes,
11523
which can conflict with char $ac_func (); below.
11524
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11525
<limits.h> exists even on freestanding compilers. */
11528
# include <limits.h>
11530
# include <assert.h>
11535
/* Override any GCC internal prototype to avoid an error.
11536
Use char because int might match the return type of a GCC
11537
builtin and then its argument prototype would still apply. */
11542
/* The GNU C library defines this for functions which it implements
11543
to always fail with ENOSYS. Some functions are actually named
11544
something starting with __ and the normal name is an alias. */
11545
#if defined __stub_$ac_func || defined __stub___$ac_func
11552
return $ac_func ();
11557
rm -f conftest.$ac_objext conftest$ac_exeext
11558
if { (ac_try="$ac_link"
11559
case "(($ac_try" in
11560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561
*) ac_try_echo=$ac_try;;
11563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564
(eval "$ac_link") 2>conftest.er1
11566
grep -v '^ *+' conftest.er1 >conftest.err
11568
cat conftest.err >&5
11569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570
(exit $ac_status); } && {
11571
test -z "$ac_c_werror_flag" ||
11572
test ! -s conftest.err
11573
} && test -s conftest$ac_exeext &&
11574
$as_test_x conftest$ac_exeext; then
11575
eval "$as_ac_var=yes"
11577
echo "$as_me: failed program was:" >&5
11578
sed 's/^/| /' conftest.$ac_ext >&5
11580
eval "$as_ac_var=no"
11583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11584
conftest$ac_exeext conftest.$ac_ext
11586
ac_res=`eval echo '${'$as_ac_var'}'`
11587
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11588
echo "${ECHO_T}$ac_res" >&6; }
11589
if test `eval echo '${'$as_ac_var'}'` = yes; then
11590
cat >>confdefs.h <<_ACEOF
11591
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599
{ echo "$as_me:$LINENO: checking whether realloc is buggy" >&5
11600
echo $ECHO_N "checking whether realloc is buggy... $ECHO_C" >&6; }
11601
if test "${ac_cv_c_realloc_bug+set}" = set; then
11602
echo $ECHO_N "(cached) $ECHO_C" >&6
11604
if test "$cross_compiling" = yes; then
11605
ac_cv_c_realloc_bug="yes"
11607
cat >conftest.$ac_ext <<_ACEOF
11610
cat confdefs.h >>conftest.$ac_ext
11611
cat >>conftest.$ac_ext <<_ACEOF
11612
/* end confdefs.h. */
11615
#include <stdlib.h>
11619
ptr = realloc(ptr, 1);
11623
rm -f conftest$ac_exeext
11624
if { (ac_try="$ac_link"
11625
case "(($ac_try" in
11626
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627
*) ac_try_echo=$ac_try;;
11629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630
(eval "$ac_link") 2>&5
11632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11634
{ (case "(($ac_try" in
11635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636
*) ac_try_echo=$ac_try;;
11638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639
(eval "$ac_try") 2>&5
11641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642
(exit $ac_status); }; }; then
11643
ac_cv_c_realloc_bug="no"
11645
echo "$as_me: program exited with status $ac_status" >&5
11646
echo "$as_me: failed program was:" >&5
11647
sed 's/^/| /' conftest.$ac_ext >&5
11649
( exit $ac_status )
11650
ac_cv_c_realloc_bug="yes"
11652
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11657
{ echo "$as_me:$LINENO: result: $ac_cv_c_realloc_bug" >&5
11658
echo "${ECHO_T}$ac_cv_c_realloc_bug" >&6; }
11659
if test "$ac_cv_c_realloc_bug" = "yes"
11662
cat >>confdefs.h <<\_ACEOF
11663
#define REALLOC_IS_BUGGY 1
11673
{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
11674
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11675
if test "${ac_cv_lib_m_sin+set}" = set; then
11676
echo $ECHO_N "(cached) $ECHO_C" >&6
11678
ac_check_lib_save_LIBS=$LIBS
11680
cat >conftest.$ac_ext <<_ACEOF
11683
cat confdefs.h >>conftest.$ac_ext
11684
cat >>conftest.$ac_ext <<_ACEOF
11685
/* end confdefs.h. */
11687
/* Override any GCC internal prototype to avoid an error.
11688
Use char because int might match the return type of a GCC
11689
builtin and then its argument prototype would still apply. */
11702
rm -f conftest.$ac_objext conftest$ac_exeext
11703
if { (ac_try="$ac_link"
11704
case "(($ac_try" in
11705
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706
*) ac_try_echo=$ac_try;;
11708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709
(eval "$ac_link") 2>conftest.er1
11711
grep -v '^ *+' conftest.er1 >conftest.err
11713
cat conftest.err >&5
11714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715
(exit $ac_status); } && {
11716
test -z "$ac_c_werror_flag" ||
11717
test ! -s conftest.err
11718
} && test -s conftest$ac_exeext &&
11719
$as_test_x conftest$ac_exeext; then
11720
ac_cv_lib_m_sin=yes
11722
echo "$as_me: failed program was:" >&5
11723
sed 's/^/| /' conftest.$ac_ext >&5
11728
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11729
conftest$ac_exeext conftest.$ac_ext
11730
LIBS=$ac_check_lib_save_LIBS
11732
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11733
echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11734
if test $ac_cv_lib_m_sin = yes; then
11735
cat >>confdefs.h <<_ACEOF
11736
#define HAVE_LIBM 1
11745
ice_tr=`echo hypot | tr '[a-z]' '[A-Z]'`
11746
ice_have_tr=HAVE_$ice_tr
11747
ice_have_decl_tr=${ice_have_tr}_DECL
11750
for ac_func in hypot
11752
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11753
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11754
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11755
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11756
echo $ECHO_N "(cached) $ECHO_C" >&6
11758
cat >conftest.$ac_ext <<_ACEOF
11761
cat confdefs.h >>conftest.$ac_ext
11762
cat >>conftest.$ac_ext <<_ACEOF
11763
/* end confdefs.h. */
11764
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11765
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11766
#define $ac_func innocuous_$ac_func
11768
/* System header to define __stub macros and hopefully few prototypes,
11769
which can conflict with char $ac_func (); below.
11770
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771
<limits.h> exists even on freestanding compilers. */
11774
# include <limits.h>
11776
# include <assert.h>
11781
/* Override any GCC internal prototype to avoid an error.
11782
Use char because int might match the return type of a GCC
11783
builtin and then its argument prototype would still apply. */
11788
/* The GNU C library defines this for functions which it implements
11789
to always fail with ENOSYS. Some functions are actually named
11790
something starting with __ and the normal name is an alias. */
11791
#if defined __stub_$ac_func || defined __stub___$ac_func
11798
return $ac_func ();
11803
rm -f conftest.$ac_objext conftest$ac_exeext
11804
if { (ac_try="$ac_link"
11805
case "(($ac_try" in
11806
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807
*) ac_try_echo=$ac_try;;
11809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810
(eval "$ac_link") 2>conftest.er1
11812
grep -v '^ *+' conftest.er1 >conftest.err
11814
cat conftest.err >&5
11815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816
(exit $ac_status); } && {
11817
test -z "$ac_c_werror_flag" ||
11818
test ! -s conftest.err
11819
} && test -s conftest$ac_exeext &&
11820
$as_test_x conftest$ac_exeext; then
11821
eval "$as_ac_var=yes"
11823
echo "$as_me: failed program was:" >&5
11824
sed 's/^/| /' conftest.$ac_ext >&5
11826
eval "$as_ac_var=no"
11829
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11830
conftest$ac_exeext conftest.$ac_ext
11832
ac_res=`eval echo '${'$as_ac_var'}'`
11833
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11834
echo "${ECHO_T}$ac_res" >&6; }
11835
if test `eval echo '${'$as_ac_var'}'` = yes; then
11836
cat >>confdefs.h <<_ACEOF
11837
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11843
if test "${ice_have_hypot}" = yes; then
11844
{ echo "$as_me:$LINENO: checking for hypot declaration in math.h" >&5
11845
echo $ECHO_N "checking for hypot declaration in math.h... $ECHO_C" >&6; }
11846
if test "${ice_cv_have_hypot_decl+set}" = set; then
11847
echo $ECHO_N "(cached) $ECHO_C" >&6
11850
ice_cv_have_hypot_decl=no
11851
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
11852
ice_re_word='(^|[^a-zA-Z_0-9_])'
11853
for header in math.h; do
11854
# Check for ordinary declaration
11855
cat >conftest.$ac_ext <<_ACEOF
11858
cat confdefs.h >>conftest.$ac_ext
11859
cat >>conftest.$ac_ext <<_ACEOF
11860
/* end confdefs.h. */
11864
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11865
$EGREP "${ice_re_word}hypot *\(" >/dev/null 2>&1; then
11866
ice_cv_have_hypot_decl=yes
11870
if test "$ice_cv_have_hypot_decl" = yes; then
11873
# Check for "fixed" declaration like "getpid _PARAMS((int))"
11874
cat >conftest.$ac_ext <<_ACEOF
11877
cat confdefs.h >>conftest.$ac_ext
11878
cat >>conftest.$ac_ext <<_ACEOF
11879
/* end confdefs.h. */
11883
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11884
$EGREP "${ice_re_word}hypot *$ice_re_params\(\(" >/dev/null 2>&1; then
11885
ice_cv_have_hypot_decl=yes
11889
if test "$ice_cv_have_hypot_decl" = yes; then
11896
{ echo "$as_me:$LINENO: result: $ice_cv_have_hypot_decl" >&5
11897
echo "${ECHO_T}$ice_cv_have_hypot_decl" >&6; }
11898
if test "$ice_cv_have_hypot_decl" = yes; then
11899
cat >>confdefs.h <<_ACEOF
11900
#define ${ice_have_decl_tr} 1
11907
ice_tr=`echo rint | tr '[a-z]' '[A-Z]'`
11908
ice_have_tr=HAVE_$ice_tr
11909
ice_have_decl_tr=${ice_have_tr}_DECL
11912
for ac_func in rint
11914
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11915
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11916
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11917
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11918
echo $ECHO_N "(cached) $ECHO_C" >&6
11920
cat >conftest.$ac_ext <<_ACEOF
11923
cat confdefs.h >>conftest.$ac_ext
11924
cat >>conftest.$ac_ext <<_ACEOF
11925
/* end confdefs.h. */
11926
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11927
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11928
#define $ac_func innocuous_$ac_func
11930
/* System header to define __stub macros and hopefully few prototypes,
11931
which can conflict with char $ac_func (); below.
11932
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11933
<limits.h> exists even on freestanding compilers. */
11936
# include <limits.h>
11938
# include <assert.h>
11943
/* Override any GCC internal prototype to avoid an error.
11944
Use char because int might match the return type of a GCC
11945
builtin and then its argument prototype would still apply. */
11950
/* The GNU C library defines this for functions which it implements
11951
to always fail with ENOSYS. Some functions are actually named
11952
something starting with __ and the normal name is an alias. */
11953
#if defined __stub_$ac_func || defined __stub___$ac_func
11960
return $ac_func ();
11965
rm -f conftest.$ac_objext conftest$ac_exeext
11966
if { (ac_try="$ac_link"
11967
case "(($ac_try" in
11968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969
*) ac_try_echo=$ac_try;;
11971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972
(eval "$ac_link") 2>conftest.er1
11974
grep -v '^ *+' conftest.er1 >conftest.err
11976
cat conftest.err >&5
11977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978
(exit $ac_status); } && {
11979
test -z "$ac_c_werror_flag" ||
11980
test ! -s conftest.err
11981
} && test -s conftest$ac_exeext &&
11982
$as_test_x conftest$ac_exeext; then
11983
eval "$as_ac_var=yes"
11985
echo "$as_me: failed program was:" >&5
11986
sed 's/^/| /' conftest.$ac_ext >&5
11988
eval "$as_ac_var=no"
11991
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992
conftest$ac_exeext conftest.$ac_ext
11994
ac_res=`eval echo '${'$as_ac_var'}'`
11995
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11996
echo "${ECHO_T}$ac_res" >&6; }
11997
if test `eval echo '${'$as_ac_var'}'` = yes; then
11998
cat >>confdefs.h <<_ACEOF
11999
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12005
if test "${ice_have_rint}" = yes; then
12006
{ echo "$as_me:$LINENO: checking for rint declaration in math.h" >&5
12007
echo $ECHO_N "checking for rint declaration in math.h... $ECHO_C" >&6; }
12008
if test "${ice_cv_have_rint_decl+set}" = set; then
12009
echo $ECHO_N "(cached) $ECHO_C" >&6
12012
ice_cv_have_rint_decl=no
12013
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
12014
ice_re_word='(^|[^a-zA-Z_0-9_])'
12015
for header in math.h; do
12016
# Check for ordinary declaration
12017
cat >conftest.$ac_ext <<_ACEOF
12020
cat confdefs.h >>conftest.$ac_ext
12021
cat >>conftest.$ac_ext <<_ACEOF
12022
/* end confdefs.h. */
12026
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12027
$EGREP "${ice_re_word}rint *\(" >/dev/null 2>&1; then
12028
ice_cv_have_rint_decl=yes
12032
if test "$ice_cv_have_rint_decl" = yes; then
12035
# Check for "fixed" declaration like "getpid _PARAMS((int))"
12036
cat >conftest.$ac_ext <<_ACEOF
12039
cat confdefs.h >>conftest.$ac_ext
12040
cat >>conftest.$ac_ext <<_ACEOF
12041
/* end confdefs.h. */
12045
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12046
$EGREP "${ice_re_word}rint *$ice_re_params\(\(" >/dev/null 2>&1; then
12047
ice_cv_have_rint_decl=yes
12051
if test "$ice_cv_have_rint_decl" = yes; then
12058
{ echo "$as_me:$LINENO: result: $ice_cv_have_rint_decl" >&5
12059
echo "${ECHO_T}$ice_cv_have_rint_decl" >&6; }
12060
if test "$ice_cv_have_rint_decl" = yes; then
12061
cat >>confdefs.h <<_ACEOF
12062
#define ${ice_have_decl_tr} 1
12069
ice_tr=`echo cbrt | tr '[a-z]' '[A-Z]'`
12070
ice_have_tr=HAVE_$ice_tr
12071
ice_have_decl_tr=${ice_have_tr}_DECL
12074
for ac_func in cbrt
12076
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12077
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12078
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12079
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12080
echo $ECHO_N "(cached) $ECHO_C" >&6
12082
cat >conftest.$ac_ext <<_ACEOF
12085
cat confdefs.h >>conftest.$ac_ext
12086
cat >>conftest.$ac_ext <<_ACEOF
12087
/* end confdefs.h. */
12088
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12089
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12090
#define $ac_func innocuous_$ac_func
12092
/* System header to define __stub macros and hopefully few prototypes,
12093
which can conflict with char $ac_func (); below.
12094
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12095
<limits.h> exists even on freestanding compilers. */
12098
# include <limits.h>
12100
# include <assert.h>
12105
/* Override any GCC internal prototype to avoid an error.
12106
Use char because int might match the return type of a GCC
12107
builtin and then its argument prototype would still apply. */
12112
/* The GNU C library defines this for functions which it implements
12113
to always fail with ENOSYS. Some functions are actually named
12114
something starting with __ and the normal name is an alias. */
12115
#if defined __stub_$ac_func || defined __stub___$ac_func
12122
return $ac_func ();
12127
rm -f conftest.$ac_objext conftest$ac_exeext
12128
if { (ac_try="$ac_link"
12129
case "(($ac_try" in
12130
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131
*) ac_try_echo=$ac_try;;
12133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134
(eval "$ac_link") 2>conftest.er1
12136
grep -v '^ *+' conftest.er1 >conftest.err
12138
cat conftest.err >&5
12139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140
(exit $ac_status); } && {
12141
test -z "$ac_c_werror_flag" ||
12142
test ! -s conftest.err
12143
} && test -s conftest$ac_exeext &&
12144
$as_test_x conftest$ac_exeext; then
12145
eval "$as_ac_var=yes"
12147
echo "$as_me: failed program was:" >&5
12148
sed 's/^/| /' conftest.$ac_ext >&5
12150
eval "$as_ac_var=no"
12153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154
conftest$ac_exeext conftest.$ac_ext
12156
ac_res=`eval echo '${'$as_ac_var'}'`
12157
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12158
echo "${ECHO_T}$ac_res" >&6; }
12159
if test `eval echo '${'$as_ac_var'}'` = yes; then
12160
cat >>confdefs.h <<_ACEOF
12161
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12167
if test "${ice_have_cbrt}" = yes; then
12168
{ echo "$as_me:$LINENO: checking for cbrt declaration in math.h" >&5
12169
echo $ECHO_N "checking for cbrt declaration in math.h... $ECHO_C" >&6; }
12170
if test "${ice_cv_have_cbrt_decl+set}" = set; then
12171
echo $ECHO_N "(cached) $ECHO_C" >&6
12174
ice_cv_have_cbrt_decl=no
12175
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
12176
ice_re_word='(^|[^a-zA-Z_0-9_])'
12177
for header in math.h; do
12178
# Check for ordinary declaration
12179
cat >conftest.$ac_ext <<_ACEOF
12182
cat confdefs.h >>conftest.$ac_ext
12183
cat >>conftest.$ac_ext <<_ACEOF
12184
/* end confdefs.h. */
12188
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12189
$EGREP "${ice_re_word}cbrt *\(" >/dev/null 2>&1; then
12190
ice_cv_have_cbrt_decl=yes
12194
if test "$ice_cv_have_cbrt_decl" = yes; then
12197
# Check for "fixed" declaration like "getpid _PARAMS((int))"
12198
cat >conftest.$ac_ext <<_ACEOF
12201
cat confdefs.h >>conftest.$ac_ext
12202
cat >>conftest.$ac_ext <<_ACEOF
12203
/* end confdefs.h. */
12207
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12208
$EGREP "${ice_re_word}cbrt *$ice_re_params\(\(" >/dev/null 2>&1; then
12209
ice_cv_have_cbrt_decl=yes
12213
if test "$ice_cv_have_cbrt_decl" = yes; then
12220
{ echo "$as_me:$LINENO: result: $ice_cv_have_cbrt_decl" >&5
12221
echo "${ECHO_T}$ice_cv_have_cbrt_decl" >&6; }
12222
if test "$ice_cv_have_cbrt_decl" = yes; then
12223
cat >>confdefs.h <<_ACEOF
12224
#define ${ice_have_decl_tr} 1
12231
ice_tr=`echo log2 | tr '[a-z]' '[A-Z]'`
12232
ice_have_tr=HAVE_$ice_tr
12233
ice_have_decl_tr=${ice_have_tr}_DECL
12236
for ac_func in log2
12238
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12239
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12240
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12241
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12242
echo $ECHO_N "(cached) $ECHO_C" >&6
12244
cat >conftest.$ac_ext <<_ACEOF
12247
cat confdefs.h >>conftest.$ac_ext
12248
cat >>conftest.$ac_ext <<_ACEOF
12249
/* end confdefs.h. */
12250
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12251
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12252
#define $ac_func innocuous_$ac_func
12254
/* System header to define __stub macros and hopefully few prototypes,
12255
which can conflict with char $ac_func (); below.
12256
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257
<limits.h> exists even on freestanding compilers. */
12260
# include <limits.h>
12262
# include <assert.h>
12267
/* Override any GCC internal prototype to avoid an error.
12268
Use char because int might match the return type of a GCC
12269
builtin and then its argument prototype would still apply. */
12274
/* The GNU C library defines this for functions which it implements
12275
to always fail with ENOSYS. Some functions are actually named
12276
something starting with __ and the normal name is an alias. */
12277
#if defined __stub_$ac_func || defined __stub___$ac_func
12284
return $ac_func ();
12289
rm -f conftest.$ac_objext conftest$ac_exeext
12290
if { (ac_try="$ac_link"
12291
case "(($ac_try" in
12292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293
*) ac_try_echo=$ac_try;;
12295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296
(eval "$ac_link") 2>conftest.er1
12298
grep -v '^ *+' conftest.er1 >conftest.err
12300
cat conftest.err >&5
12301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302
(exit $ac_status); } && {
12303
test -z "$ac_c_werror_flag" ||
12304
test ! -s conftest.err
12305
} && test -s conftest$ac_exeext &&
12306
$as_test_x conftest$ac_exeext; then
12307
eval "$as_ac_var=yes"
12309
echo "$as_me: failed program was:" >&5
12310
sed 's/^/| /' conftest.$ac_ext >&5
12312
eval "$as_ac_var=no"
12315
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12316
conftest$ac_exeext conftest.$ac_ext
12318
ac_res=`eval echo '${'$as_ac_var'}'`
12319
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12320
echo "${ECHO_T}$ac_res" >&6; }
12321
if test `eval echo '${'$as_ac_var'}'` = yes; then
12322
cat >>confdefs.h <<_ACEOF
12323
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12329
if test "${ice_have_log2}" = yes; then
12330
{ echo "$as_me:$LINENO: checking for log2 declaration in math.h" >&5
12331
echo $ECHO_N "checking for log2 declaration in math.h... $ECHO_C" >&6; }
12332
if test "${ice_cv_have_log2_decl+set}" = set; then
12333
echo $ECHO_N "(cached) $ECHO_C" >&6
12336
ice_cv_have_log2_decl=no
12337
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
12338
ice_re_word='(^|[^a-zA-Z_0-9_])'
12339
for header in math.h; do
12340
# Check for ordinary declaration
12341
cat >conftest.$ac_ext <<_ACEOF
12344
cat confdefs.h >>conftest.$ac_ext
12345
cat >>conftest.$ac_ext <<_ACEOF
12346
/* end confdefs.h. */
12350
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12351
$EGREP "${ice_re_word}log2 *\(" >/dev/null 2>&1; then
12352
ice_cv_have_log2_decl=yes
12356
if test "$ice_cv_have_log2_decl" = yes; then
12359
# Check for "fixed" declaration like "getpid _PARAMS((int))"
12360
cat >conftest.$ac_ext <<_ACEOF
12363
cat confdefs.h >>conftest.$ac_ext
12364
cat >>conftest.$ac_ext <<_ACEOF
12365
/* end confdefs.h. */
12369
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12370
$EGREP "${ice_re_word}log2 *$ice_re_params\(\(" >/dev/null 2>&1; then
12371
ice_cv_have_log2_decl=yes
12375
if test "$ice_cv_have_log2_decl" = yes; then
12382
{ echo "$as_me:$LINENO: result: $ice_cv_have_log2_decl" >&5
12383
echo "${ECHO_T}$ice_cv_have_log2_decl" >&6; }
12384
if test "$ice_cv_have_log2_decl" = yes; then
12385
cat >>confdefs.h <<_ACEOF
12386
#define ${ice_have_decl_tr} 1
12393
ice_tr=`echo asinh | tr '[a-z]' '[A-Z]'`
12394
ice_have_tr=HAVE_$ice_tr
12395
ice_have_decl_tr=${ice_have_tr}_DECL
12398
for ac_func in asinh
12400
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12401
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12402
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12403
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12404
echo $ECHO_N "(cached) $ECHO_C" >&6
12406
cat >conftest.$ac_ext <<_ACEOF
12409
cat confdefs.h >>conftest.$ac_ext
12410
cat >>conftest.$ac_ext <<_ACEOF
12411
/* end confdefs.h. */
12412
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12413
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12414
#define $ac_func innocuous_$ac_func
12416
/* System header to define __stub macros and hopefully few prototypes,
12417
which can conflict with char $ac_func (); below.
12418
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12419
<limits.h> exists even on freestanding compilers. */
12422
# include <limits.h>
12424
# include <assert.h>
12429
/* Override any GCC internal prototype to avoid an error.
12430
Use char because int might match the return type of a GCC
12431
builtin and then its argument prototype would still apply. */
12436
/* The GNU C library defines this for functions which it implements
12437
to always fail with ENOSYS. Some functions are actually named
12438
something starting with __ and the normal name is an alias. */
12439
#if defined __stub_$ac_func || defined __stub___$ac_func
12446
return $ac_func ();
12451
rm -f conftest.$ac_objext conftest$ac_exeext
12452
if { (ac_try="$ac_link"
12453
case "(($ac_try" in
12454
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455
*) ac_try_echo=$ac_try;;
12457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458
(eval "$ac_link") 2>conftest.er1
12460
grep -v '^ *+' conftest.er1 >conftest.err
12462
cat conftest.err >&5
12463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464
(exit $ac_status); } && {
12465
test -z "$ac_c_werror_flag" ||
12466
test ! -s conftest.err
12467
} && test -s conftest$ac_exeext &&
12468
$as_test_x conftest$ac_exeext; then
12469
eval "$as_ac_var=yes"
12471
echo "$as_me: failed program was:" >&5
12472
sed 's/^/| /' conftest.$ac_ext >&5
12474
eval "$as_ac_var=no"
12477
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12478
conftest$ac_exeext conftest.$ac_ext
12480
ac_res=`eval echo '${'$as_ac_var'}'`
12481
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12482
echo "${ECHO_T}$ac_res" >&6; }
12483
if test `eval echo '${'$as_ac_var'}'` = yes; then
12484
cat >>confdefs.h <<_ACEOF
12485
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12491
if test "${ice_have_asinh}" = yes; then
12492
{ echo "$as_me:$LINENO: checking for asinh declaration in math.h" >&5
12493
echo $ECHO_N "checking for asinh declaration in math.h... $ECHO_C" >&6; }
12494
if test "${ice_cv_have_asinh_decl+set}" = set; then
12495
echo $ECHO_N "(cached) $ECHO_C" >&6
12498
ice_cv_have_asinh_decl=no
12499
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
12500
ice_re_word='(^|[^a-zA-Z_0-9_])'
12501
for header in math.h; do
12502
# Check for ordinary declaration
12503
cat >conftest.$ac_ext <<_ACEOF
12506
cat confdefs.h >>conftest.$ac_ext
12507
cat >>conftest.$ac_ext <<_ACEOF
12508
/* end confdefs.h. */
12512
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12513
$EGREP "${ice_re_word}asinh *\(" >/dev/null 2>&1; then
12514
ice_cv_have_asinh_decl=yes
12518
if test "$ice_cv_have_asinh_decl" = yes; then
12521
# Check for "fixed" declaration like "getpid _PARAMS((int))"
12522
cat >conftest.$ac_ext <<_ACEOF
12525
cat confdefs.h >>conftest.$ac_ext
12526
cat >>conftest.$ac_ext <<_ACEOF
12527
/* end confdefs.h. */
12531
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12532
$EGREP "${ice_re_word}asinh *$ice_re_params\(\(" >/dev/null 2>&1; then
12533
ice_cv_have_asinh_decl=yes
12537
if test "$ice_cv_have_asinh_decl" = yes; then
12544
{ echo "$as_me:$LINENO: result: $ice_cv_have_asinh_decl" >&5
12545
echo "${ECHO_T}$ice_cv_have_asinh_decl" >&6; }
12546
if test "$ice_cv_have_asinh_decl" = yes; then
12547
cat >>confdefs.h <<_ACEOF
12548
#define ${ice_have_decl_tr} 1
12555
ice_tr=`echo acosh | tr '[a-z]' '[A-Z]'`
12556
ice_have_tr=HAVE_$ice_tr
12557
ice_have_decl_tr=${ice_have_tr}_DECL
12560
for ac_func in acosh
12562
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12563
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12564
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12565
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12566
echo $ECHO_N "(cached) $ECHO_C" >&6
12568
cat >conftest.$ac_ext <<_ACEOF
12571
cat confdefs.h >>conftest.$ac_ext
12572
cat >>conftest.$ac_ext <<_ACEOF
12573
/* end confdefs.h. */
12574
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12575
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12576
#define $ac_func innocuous_$ac_func
12578
/* System header to define __stub macros and hopefully few prototypes,
12579
which can conflict with char $ac_func (); below.
12580
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12581
<limits.h> exists even on freestanding compilers. */
12584
# include <limits.h>
12586
# include <assert.h>
12591
/* Override any GCC internal prototype to avoid an error.
12592
Use char because int might match the return type of a GCC
12593
builtin and then its argument prototype would still apply. */
12598
/* The GNU C library defines this for functions which it implements
12599
to always fail with ENOSYS. Some functions are actually named
12600
something starting with __ and the normal name is an alias. */
12601
#if defined __stub_$ac_func || defined __stub___$ac_func
12608
return $ac_func ();
12613
rm -f conftest.$ac_objext conftest$ac_exeext
12614
if { (ac_try="$ac_link"
12615
case "(($ac_try" in
12616
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617
*) ac_try_echo=$ac_try;;
12619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620
(eval "$ac_link") 2>conftest.er1
12622
grep -v '^ *+' conftest.er1 >conftest.err
12624
cat conftest.err >&5
12625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626
(exit $ac_status); } && {
12627
test -z "$ac_c_werror_flag" ||
12628
test ! -s conftest.err
12629
} && test -s conftest$ac_exeext &&
12630
$as_test_x conftest$ac_exeext; then
12631
eval "$as_ac_var=yes"
12633
echo "$as_me: failed program was:" >&5
12634
sed 's/^/| /' conftest.$ac_ext >&5
12636
eval "$as_ac_var=no"
12639
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640
conftest$ac_exeext conftest.$ac_ext
12642
ac_res=`eval echo '${'$as_ac_var'}'`
12643
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12644
echo "${ECHO_T}$ac_res" >&6; }
12645
if test `eval echo '${'$as_ac_var'}'` = yes; then
12646
cat >>confdefs.h <<_ACEOF
12647
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12653
if test "${ice_have_acosh}" = yes; then
12654
{ echo "$as_me:$LINENO: checking for acosh declaration in math.h" >&5
12655
echo $ECHO_N "checking for acosh declaration in math.h... $ECHO_C" >&6; }
12656
if test "${ice_cv_have_acosh_decl+set}" = set; then
12657
echo $ECHO_N "(cached) $ECHO_C" >&6
12660
ice_cv_have_acosh_decl=no
12661
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
12662
ice_re_word='(^|[^a-zA-Z_0-9_])'
12663
for header in math.h; do
12664
# Check for ordinary declaration
12665
cat >conftest.$ac_ext <<_ACEOF
12668
cat confdefs.h >>conftest.$ac_ext
12669
cat >>conftest.$ac_ext <<_ACEOF
12670
/* end confdefs.h. */
12674
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12675
$EGREP "${ice_re_word}acosh *\(" >/dev/null 2>&1; then
12676
ice_cv_have_acosh_decl=yes
12680
if test "$ice_cv_have_acosh_decl" = yes; then
12683
# Check for "fixed" declaration like "getpid _PARAMS((int))"
12684
cat >conftest.$ac_ext <<_ACEOF
12687
cat confdefs.h >>conftest.$ac_ext
12688
cat >>conftest.$ac_ext <<_ACEOF
12689
/* end confdefs.h. */
12693
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12694
$EGREP "${ice_re_word}acosh *$ice_re_params\(\(" >/dev/null 2>&1; then
12695
ice_cv_have_acosh_decl=yes
12699
if test "$ice_cv_have_acosh_decl" = yes; then
12706
{ echo "$as_me:$LINENO: result: $ice_cv_have_acosh_decl" >&5
12707
echo "${ECHO_T}$ice_cv_have_acosh_decl" >&6; }
12708
if test "$ice_cv_have_acosh_decl" = yes; then
12709
cat >>confdefs.h <<_ACEOF
12710
#define ${ice_have_decl_tr} 1
12717
ice_tr=`echo atanh | tr '[a-z]' '[A-Z]'`
12718
ice_have_tr=HAVE_$ice_tr
12719
ice_have_decl_tr=${ice_have_tr}_DECL
12722
for ac_func in atanh
12724
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12725
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12726
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12727
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12728
echo $ECHO_N "(cached) $ECHO_C" >&6
12730
cat >conftest.$ac_ext <<_ACEOF
12733
cat confdefs.h >>conftest.$ac_ext
12734
cat >>conftest.$ac_ext <<_ACEOF
12735
/* end confdefs.h. */
12736
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12737
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12738
#define $ac_func innocuous_$ac_func
12740
/* System header to define __stub macros and hopefully few prototypes,
12741
which can conflict with char $ac_func (); below.
12742
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12743
<limits.h> exists even on freestanding compilers. */
12746
# include <limits.h>
12748
# include <assert.h>
12753
/* Override any GCC internal prototype to avoid an error.
12754
Use char because int might match the return type of a GCC
12755
builtin and then its argument prototype would still apply. */
12760
/* The GNU C library defines this for functions which it implements
12761
to always fail with ENOSYS. Some functions are actually named
12762
something starting with __ and the normal name is an alias. */
12763
#if defined __stub_$ac_func || defined __stub___$ac_func
12770
return $ac_func ();
12775
rm -f conftest.$ac_objext conftest$ac_exeext
12776
if { (ac_try="$ac_link"
12777
case "(($ac_try" in
12778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779
*) ac_try_echo=$ac_try;;
12781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782
(eval "$ac_link") 2>conftest.er1
12784
grep -v '^ *+' conftest.er1 >conftest.err
12786
cat conftest.err >&5
12787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788
(exit $ac_status); } && {
12789
test -z "$ac_c_werror_flag" ||
12790
test ! -s conftest.err
12791
} && test -s conftest$ac_exeext &&
12792
$as_test_x conftest$ac_exeext; then
12793
eval "$as_ac_var=yes"
12795
echo "$as_me: failed program was:" >&5
12796
sed 's/^/| /' conftest.$ac_ext >&5
12798
eval "$as_ac_var=no"
12801
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12802
conftest$ac_exeext conftest.$ac_ext
12804
ac_res=`eval echo '${'$as_ac_var'}'`
12805
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12806
echo "${ECHO_T}$ac_res" >&6; }
12807
if test `eval echo '${'$as_ac_var'}'` = yes; then
12808
cat >>confdefs.h <<_ACEOF
12809
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12815
if test "${ice_have_atanh}" = yes; then
12816
{ echo "$as_me:$LINENO: checking for atanh declaration in math.h" >&5
12817
echo $ECHO_N "checking for atanh declaration in math.h... $ECHO_C" >&6; }
12818
if test "${ice_cv_have_atanh_decl+set}" = set; then
12819
echo $ECHO_N "(cached) $ECHO_C" >&6
12822
ice_cv_have_atanh_decl=no
12823
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
12824
ice_re_word='(^|[^a-zA-Z_0-9_])'
12825
for header in math.h; do
12826
# Check for ordinary declaration
12827
cat >conftest.$ac_ext <<_ACEOF
12830
cat confdefs.h >>conftest.$ac_ext
12831
cat >>conftest.$ac_ext <<_ACEOF
12832
/* end confdefs.h. */
12836
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12837
$EGREP "${ice_re_word}atanh *\(" >/dev/null 2>&1; then
12838
ice_cv_have_atanh_decl=yes
12842
if test "$ice_cv_have_atanh_decl" = yes; then
12845
# Check for "fixed" declaration like "getpid _PARAMS((int))"
12846
cat >conftest.$ac_ext <<_ACEOF
12849
cat confdefs.h >>conftest.$ac_ext
12850
cat >>conftest.$ac_ext <<_ACEOF
12851
/* end confdefs.h. */
12855
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12856
$EGREP "${ice_re_word}atanh *$ice_re_params\(\(" >/dev/null 2>&1; then
12857
ice_cv_have_atanh_decl=yes
12861
if test "$ice_cv_have_atanh_decl" = yes; then
12868
{ echo "$as_me:$LINENO: result: $ice_cv_have_atanh_decl" >&5
12869
echo "${ECHO_T}$ice_cv_have_atanh_decl" >&6; }
12870
if test "$ice_cv_have_atanh_decl" = yes; then
12871
cat >>confdefs.h <<_ACEOF
12872
#define ${ice_have_decl_tr} 1
12879
ice_tr=`echo lgamma | tr '[a-z]' '[A-Z]'`
12880
ice_have_tr=HAVE_$ice_tr
12881
ice_have_decl_tr=${ice_have_tr}_DECL
12884
for ac_func in lgamma
12886
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12887
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12888
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12889
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12890
echo $ECHO_N "(cached) $ECHO_C" >&6
12892
cat >conftest.$ac_ext <<_ACEOF
12895
cat confdefs.h >>conftest.$ac_ext
12896
cat >>conftest.$ac_ext <<_ACEOF
12897
/* end confdefs.h. */
12898
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12899
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12900
#define $ac_func innocuous_$ac_func
12902
/* System header to define __stub macros and hopefully few prototypes,
12903
which can conflict with char $ac_func (); below.
12904
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12905
<limits.h> exists even on freestanding compilers. */
12908
# include <limits.h>
12910
# include <assert.h>
12915
/* Override any GCC internal prototype to avoid an error.
12916
Use char because int might match the return type of a GCC
12917
builtin and then its argument prototype would still apply. */
12922
/* The GNU C library defines this for functions which it implements
12923
to always fail with ENOSYS. Some functions are actually named
12924
something starting with __ and the normal name is an alias. */
12925
#if defined __stub_$ac_func || defined __stub___$ac_func
12932
return $ac_func ();
12937
rm -f conftest.$ac_objext conftest$ac_exeext
12938
if { (ac_try="$ac_link"
12939
case "(($ac_try" in
12940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941
*) ac_try_echo=$ac_try;;
12943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944
(eval "$ac_link") 2>conftest.er1
12946
grep -v '^ *+' conftest.er1 >conftest.err
12948
cat conftest.err >&5
12949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950
(exit $ac_status); } && {
12951
test -z "$ac_c_werror_flag" ||
12952
test ! -s conftest.err
12953
} && test -s conftest$ac_exeext &&
12954
$as_test_x conftest$ac_exeext; then
12955
eval "$as_ac_var=yes"
12957
echo "$as_me: failed program was:" >&5
12958
sed 's/^/| /' conftest.$ac_ext >&5
12960
eval "$as_ac_var=no"
12963
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12964
conftest$ac_exeext conftest.$ac_ext
12966
ac_res=`eval echo '${'$as_ac_var'}'`
12967
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12968
echo "${ECHO_T}$ac_res" >&6; }
12969
if test `eval echo '${'$as_ac_var'}'` = yes; then
12970
cat >>confdefs.h <<_ACEOF
12971
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12973
ice_have_lgamma=yes
12977
if test "${ice_have_lgamma}" = yes; then
12978
{ echo "$as_me:$LINENO: checking for lgamma declaration in math.h" >&5
12979
echo $ECHO_N "checking for lgamma declaration in math.h... $ECHO_C" >&6; }
12980
if test "${ice_cv_have_lgamma_decl+set}" = set; then
12981
echo $ECHO_N "(cached) $ECHO_C" >&6
12984
ice_cv_have_lgamma_decl=no
12985
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
12986
ice_re_word='(^|[^a-zA-Z_0-9_])'
12987
for header in math.h; do
12988
# Check for ordinary declaration
12989
cat >conftest.$ac_ext <<_ACEOF
12992
cat confdefs.h >>conftest.$ac_ext
12993
cat >>conftest.$ac_ext <<_ACEOF
12994
/* end confdefs.h. */
12998
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12999
$EGREP "${ice_re_word}lgamma *\(" >/dev/null 2>&1; then
13000
ice_cv_have_lgamma_decl=yes
13004
if test "$ice_cv_have_lgamma_decl" = yes; then
13007
# Check for "fixed" declaration like "getpid _PARAMS((int))"
13008
cat >conftest.$ac_ext <<_ACEOF
13011
cat confdefs.h >>conftest.$ac_ext
13012
cat >>conftest.$ac_ext <<_ACEOF
13013
/* end confdefs.h. */
13017
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13018
$EGREP "${ice_re_word}lgamma *$ice_re_params\(\(" >/dev/null 2>&1; then
13019
ice_cv_have_lgamma_decl=yes
13023
if test "$ice_cv_have_lgamma_decl" = yes; then
13030
{ echo "$as_me:$LINENO: result: $ice_cv_have_lgamma_decl" >&5
13031
echo "${ECHO_T}$ice_cv_have_lgamma_decl" >&6; }
13032
if test "$ice_cv_have_lgamma_decl" = yes; then
13033
cat >>confdefs.h <<_ACEOF
13034
#define ${ice_have_decl_tr} 1
13041
if test "$ac_cv_func_lgamma" = yes; then
13042
{ echo "$as_me:$LINENO: checking for signgam declaration in math.h" >&5
13043
echo $ECHO_N "checking for signgam declaration in math.h... $ECHO_C" >&6; }
13044
if test "${ac_cv_signgam_decl+set}" = set; then
13045
echo $ECHO_N "(cached) $ECHO_C" >&6
13047
cat >conftest.$ac_ext <<_ACEOF
13050
cat confdefs.h >>conftest.$ac_ext
13051
cat >>conftest.$ac_ext <<_ACEOF
13052
/* end confdefs.h. */
13056
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13057
$EGREP "signgam" >/dev/null 2>&1; then
13058
ac_cv_signgam_decl="yes"
13060
ac_cv_signgam_decl="no"
13065
{ echo "$as_me:$LINENO: result: $ac_cv_signgam_decl" >&5
13066
echo "${ECHO_T}$ac_cv_signgam_decl" >&6; }
13067
if test "$ac_cv_signgam_decl" = yes; then
13068
cat >>confdefs.h <<\_ACEOF
13069
#define HAVE_SIGNGAM_DECL 1
13076
ice_tr=`echo erf | tr '[a-z]' '[A-Z]'`
13077
ice_have_tr=HAVE_$ice_tr
13078
ice_have_decl_tr=${ice_have_tr}_DECL
13083
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13084
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13085
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13086
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13087
echo $ECHO_N "(cached) $ECHO_C" >&6
13089
cat >conftest.$ac_ext <<_ACEOF
13092
cat confdefs.h >>conftest.$ac_ext
13093
cat >>conftest.$ac_ext <<_ACEOF
13094
/* end confdefs.h. */
13095
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13096
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13097
#define $ac_func innocuous_$ac_func
13099
/* System header to define __stub macros and hopefully few prototypes,
13100
which can conflict with char $ac_func (); below.
13101
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13102
<limits.h> exists even on freestanding compilers. */
13105
# include <limits.h>
13107
# include <assert.h>
13112
/* Override any GCC internal prototype to avoid an error.
13113
Use char because int might match the return type of a GCC
13114
builtin and then its argument prototype would still apply. */
13119
/* The GNU C library defines this for functions which it implements
13120
to always fail with ENOSYS. Some functions are actually named
13121
something starting with __ and the normal name is an alias. */
13122
#if defined __stub_$ac_func || defined __stub___$ac_func
13129
return $ac_func ();
13134
rm -f conftest.$ac_objext conftest$ac_exeext
13135
if { (ac_try="$ac_link"
13136
case "(($ac_try" in
13137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138
*) ac_try_echo=$ac_try;;
13140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141
(eval "$ac_link") 2>conftest.er1
13143
grep -v '^ *+' conftest.er1 >conftest.err
13145
cat conftest.err >&5
13146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147
(exit $ac_status); } && {
13148
test -z "$ac_c_werror_flag" ||
13149
test ! -s conftest.err
13150
} && test -s conftest$ac_exeext &&
13151
$as_test_x conftest$ac_exeext; then
13152
eval "$as_ac_var=yes"
13154
echo "$as_me: failed program was:" >&5
13155
sed 's/^/| /' conftest.$ac_ext >&5
13157
eval "$as_ac_var=no"
13160
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13161
conftest$ac_exeext conftest.$ac_ext
13163
ac_res=`eval echo '${'$as_ac_var'}'`
13164
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13165
echo "${ECHO_T}$ac_res" >&6; }
13166
if test `eval echo '${'$as_ac_var'}'` = yes; then
13167
cat >>confdefs.h <<_ACEOF
13168
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13174
if test "${ice_have_erf}" = yes; then
13175
{ echo "$as_me:$LINENO: checking for erf declaration in math.h" >&5
13176
echo $ECHO_N "checking for erf declaration in math.h... $ECHO_C" >&6; }
13177
if test "${ice_cv_have_erf_decl+set}" = set; then
13178
echo $ECHO_N "(cached) $ECHO_C" >&6
13181
ice_cv_have_erf_decl=no
13182
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
13183
ice_re_word='(^|[^a-zA-Z_0-9_])'
13184
for header in math.h; do
13185
# Check for ordinary declaration
13186
cat >conftest.$ac_ext <<_ACEOF
13189
cat confdefs.h >>conftest.$ac_ext
13190
cat >>conftest.$ac_ext <<_ACEOF
13191
/* end confdefs.h. */
13195
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13196
$EGREP "${ice_re_word}erf *\(" >/dev/null 2>&1; then
13197
ice_cv_have_erf_decl=yes
13201
if test "$ice_cv_have_erf_decl" = yes; then
13204
# Check for "fixed" declaration like "getpid _PARAMS((int))"
13205
cat >conftest.$ac_ext <<_ACEOF
13208
cat confdefs.h >>conftest.$ac_ext
13209
cat >>conftest.$ac_ext <<_ACEOF
13210
/* end confdefs.h. */
13214
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13215
$EGREP "${ice_re_word}erf *$ice_re_params\(\(" >/dev/null 2>&1; then
13216
ice_cv_have_erf_decl=yes
13220
if test "$ice_cv_have_erf_decl" = yes; then
13227
{ echo "$as_me:$LINENO: result: $ice_cv_have_erf_decl" >&5
13228
echo "${ECHO_T}$ice_cv_have_erf_decl" >&6; }
13229
if test "$ice_cv_have_erf_decl" = yes; then
13230
cat >>confdefs.h <<_ACEOF
13231
#define ${ice_have_decl_tr} 1
13238
ice_tr=`echo erfc | tr '[a-z]' '[A-Z]'`
13239
ice_have_tr=HAVE_$ice_tr
13240
ice_have_decl_tr=${ice_have_tr}_DECL
13243
for ac_func in erfc
13245
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13246
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13247
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13248
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13249
echo $ECHO_N "(cached) $ECHO_C" >&6
13251
cat >conftest.$ac_ext <<_ACEOF
13254
cat confdefs.h >>conftest.$ac_ext
13255
cat >>conftest.$ac_ext <<_ACEOF
13256
/* end confdefs.h. */
13257
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13258
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13259
#define $ac_func innocuous_$ac_func
13261
/* System header to define __stub macros and hopefully few prototypes,
13262
which can conflict with char $ac_func (); below.
13263
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13264
<limits.h> exists even on freestanding compilers. */
13267
# include <limits.h>
13269
# include <assert.h>
13274
/* Override any GCC internal prototype to avoid an error.
13275
Use char because int might match the return type of a GCC
13276
builtin and then its argument prototype would still apply. */
13281
/* The GNU C library defines this for functions which it implements
13282
to always fail with ENOSYS. Some functions are actually named
13283
something starting with __ and the normal name is an alias. */
13284
#if defined __stub_$ac_func || defined __stub___$ac_func
13291
return $ac_func ();
13296
rm -f conftest.$ac_objext conftest$ac_exeext
13297
if { (ac_try="$ac_link"
13298
case "(($ac_try" in
13299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300
*) ac_try_echo=$ac_try;;
13302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303
(eval "$ac_link") 2>conftest.er1
13305
grep -v '^ *+' conftest.er1 >conftest.err
13307
cat conftest.err >&5
13308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309
(exit $ac_status); } && {
13310
test -z "$ac_c_werror_flag" ||
13311
test ! -s conftest.err
13312
} && test -s conftest$ac_exeext &&
13313
$as_test_x conftest$ac_exeext; then
13314
eval "$as_ac_var=yes"
13316
echo "$as_me: failed program was:" >&5
13317
sed 's/^/| /' conftest.$ac_ext >&5
13319
eval "$as_ac_var=no"
13322
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13323
conftest$ac_exeext conftest.$ac_ext
13325
ac_res=`eval echo '${'$as_ac_var'}'`
13326
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13327
echo "${ECHO_T}$ac_res" >&6; }
13328
if test `eval echo '${'$as_ac_var'}'` = yes; then
13329
cat >>confdefs.h <<_ACEOF
13330
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13336
if test "${ice_have_erfc}" = yes; then
13337
{ echo "$as_me:$LINENO: checking for erfc declaration in math.h" >&5
13338
echo $ECHO_N "checking for erfc declaration in math.h... $ECHO_C" >&6; }
13339
if test "${ice_cv_have_erfc_decl+set}" = set; then
13340
echo $ECHO_N "(cached) $ECHO_C" >&6
13343
ice_cv_have_erfc_decl=no
13344
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
13345
ice_re_word='(^|[^a-zA-Z_0-9_])'
13346
for header in math.h; do
13347
# Check for ordinary declaration
13348
cat >conftest.$ac_ext <<_ACEOF
13351
cat confdefs.h >>conftest.$ac_ext
13352
cat >>conftest.$ac_ext <<_ACEOF
13353
/* end confdefs.h. */
13357
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13358
$EGREP "${ice_re_word}erfc *\(" >/dev/null 2>&1; then
13359
ice_cv_have_erfc_decl=yes
13363
if test "$ice_cv_have_erfc_decl" = yes; then
13366
# Check for "fixed" declaration like "getpid _PARAMS((int))"
13367
cat >conftest.$ac_ext <<_ACEOF
13370
cat confdefs.h >>conftest.$ac_ext
13371
cat >>conftest.$ac_ext <<_ACEOF
13372
/* end confdefs.h. */
13376
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13377
$EGREP "${ice_re_word}erfc *$ice_re_params\(\(" >/dev/null 2>&1; then
13378
ice_cv_have_erfc_decl=yes
13382
if test "$ice_cv_have_erfc_decl" = yes; then
13389
{ echo "$as_me:$LINENO: result: $ice_cv_have_erfc_decl" >&5
13390
echo "${ECHO_T}$ice_cv_have_erfc_decl" >&6; }
13391
if test "$ice_cv_have_erfc_decl" = yes; then
13392
cat >>confdefs.h <<_ACEOF
13393
#define ${ice_have_decl_tr} 1
13400
ice_tr=`echo j0 | tr '[a-z]' '[A-Z]'`
13401
ice_have_tr=HAVE_$ice_tr
13402
ice_have_decl_tr=${ice_have_tr}_DECL
13407
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13408
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13409
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13410
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13411
echo $ECHO_N "(cached) $ECHO_C" >&6
13413
cat >conftest.$ac_ext <<_ACEOF
13416
cat confdefs.h >>conftest.$ac_ext
13417
cat >>conftest.$ac_ext <<_ACEOF
13418
/* end confdefs.h. */
13419
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13420
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13421
#define $ac_func innocuous_$ac_func
13423
/* System header to define __stub macros and hopefully few prototypes,
13424
which can conflict with char $ac_func (); below.
13425
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13426
<limits.h> exists even on freestanding compilers. */
13429
# include <limits.h>
13431
# include <assert.h>
13436
/* Override any GCC internal prototype to avoid an error.
13437
Use char because int might match the return type of a GCC
13438
builtin and then its argument prototype would still apply. */
13443
/* The GNU C library defines this for functions which it implements
13444
to always fail with ENOSYS. Some functions are actually named
13445
something starting with __ and the normal name is an alias. */
13446
#if defined __stub_$ac_func || defined __stub___$ac_func
13453
return $ac_func ();
13458
rm -f conftest.$ac_objext conftest$ac_exeext
13459
if { (ac_try="$ac_link"
13460
case "(($ac_try" in
13461
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462
*) ac_try_echo=$ac_try;;
13464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465
(eval "$ac_link") 2>conftest.er1
13467
grep -v '^ *+' conftest.er1 >conftest.err
13469
cat conftest.err >&5
13470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471
(exit $ac_status); } && {
13472
test -z "$ac_c_werror_flag" ||
13473
test ! -s conftest.err
13474
} && test -s conftest$ac_exeext &&
13475
$as_test_x conftest$ac_exeext; then
13476
eval "$as_ac_var=yes"
13478
echo "$as_me: failed program was:" >&5
13479
sed 's/^/| /' conftest.$ac_ext >&5
13481
eval "$as_ac_var=no"
13484
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13485
conftest$ac_exeext conftest.$ac_ext
13487
ac_res=`eval echo '${'$as_ac_var'}'`
13488
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13489
echo "${ECHO_T}$ac_res" >&6; }
13490
if test `eval echo '${'$as_ac_var'}'` = yes; then
13491
cat >>confdefs.h <<_ACEOF
13492
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13498
if test "${ice_have_j0}" = yes; then
13499
{ echo "$as_me:$LINENO: checking for j0 declaration in math.h" >&5
13500
echo $ECHO_N "checking for j0 declaration in math.h... $ECHO_C" >&6; }
13501
if test "${ice_cv_have_j0_decl+set}" = set; then
13502
echo $ECHO_N "(cached) $ECHO_C" >&6
13505
ice_cv_have_j0_decl=no
13506
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
13507
ice_re_word='(^|[^a-zA-Z_0-9_])'
13508
for header in math.h; do
13509
# Check for ordinary declaration
13510
cat >conftest.$ac_ext <<_ACEOF
13513
cat confdefs.h >>conftest.$ac_ext
13514
cat >>conftest.$ac_ext <<_ACEOF
13515
/* end confdefs.h. */
13519
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13520
$EGREP "${ice_re_word}j0 *\(" >/dev/null 2>&1; then
13521
ice_cv_have_j0_decl=yes
13525
if test "$ice_cv_have_j0_decl" = yes; then
13528
# Check for "fixed" declaration like "getpid _PARAMS((int))"
13529
cat >conftest.$ac_ext <<_ACEOF
13532
cat confdefs.h >>conftest.$ac_ext
13533
cat >>conftest.$ac_ext <<_ACEOF
13534
/* end confdefs.h. */
13538
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13539
$EGREP "${ice_re_word}j0 *$ice_re_params\(\(" >/dev/null 2>&1; then
13540
ice_cv_have_j0_decl=yes
13544
if test "$ice_cv_have_j0_decl" = yes; then
13551
{ echo "$as_me:$LINENO: result: $ice_cv_have_j0_decl" >&5
13552
echo "${ECHO_T}$ice_cv_have_j0_decl" >&6; }
13553
if test "$ice_cv_have_j0_decl" = yes; then
13554
cat >>confdefs.h <<_ACEOF
13555
#define ${ice_have_decl_tr} 1
13562
ice_tr=`echo j1 | tr '[a-z]' '[A-Z]'`
13563
ice_have_tr=HAVE_$ice_tr
13564
ice_have_decl_tr=${ice_have_tr}_DECL
13569
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13570
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13571
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13572
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13573
echo $ECHO_N "(cached) $ECHO_C" >&6
13575
cat >conftest.$ac_ext <<_ACEOF
13578
cat confdefs.h >>conftest.$ac_ext
13579
cat >>conftest.$ac_ext <<_ACEOF
13580
/* end confdefs.h. */
13581
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13582
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13583
#define $ac_func innocuous_$ac_func
13585
/* System header to define __stub macros and hopefully few prototypes,
13586
which can conflict with char $ac_func (); below.
13587
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13588
<limits.h> exists even on freestanding compilers. */
13591
# include <limits.h>
13593
# include <assert.h>
13598
/* Override any GCC internal prototype to avoid an error.
13599
Use char because int might match the return type of a GCC
13600
builtin and then its argument prototype would still apply. */
13605
/* The GNU C library defines this for functions which it implements
13606
to always fail with ENOSYS. Some functions are actually named
13607
something starting with __ and the normal name is an alias. */
13608
#if defined __stub_$ac_func || defined __stub___$ac_func
13615
return $ac_func ();
13620
rm -f conftest.$ac_objext conftest$ac_exeext
13621
if { (ac_try="$ac_link"
13622
case "(($ac_try" in
13623
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624
*) ac_try_echo=$ac_try;;
13626
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627
(eval "$ac_link") 2>conftest.er1
13629
grep -v '^ *+' conftest.er1 >conftest.err
13631
cat conftest.err >&5
13632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633
(exit $ac_status); } && {
13634
test -z "$ac_c_werror_flag" ||
13635
test ! -s conftest.err
13636
} && test -s conftest$ac_exeext &&
13637
$as_test_x conftest$ac_exeext; then
13638
eval "$as_ac_var=yes"
13640
echo "$as_me: failed program was:" >&5
13641
sed 's/^/| /' conftest.$ac_ext >&5
13643
eval "$as_ac_var=no"
13646
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13647
conftest$ac_exeext conftest.$ac_ext
13649
ac_res=`eval echo '${'$as_ac_var'}'`
13650
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13651
echo "${ECHO_T}$ac_res" >&6; }
13652
if test `eval echo '${'$as_ac_var'}'` = yes; then
13653
cat >>confdefs.h <<_ACEOF
13654
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13660
if test "${ice_have_j1}" = yes; then
13661
{ echo "$as_me:$LINENO: checking for j1 declaration in math.h" >&5
13662
echo $ECHO_N "checking for j1 declaration in math.h... $ECHO_C" >&6; }
13663
if test "${ice_cv_have_j1_decl+set}" = set; then
13664
echo $ECHO_N "(cached) $ECHO_C" >&6
13667
ice_cv_have_j1_decl=no
13668
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
13669
ice_re_word='(^|[^a-zA-Z_0-9_])'
13670
for header in math.h; do
13671
# Check for ordinary declaration
13672
cat >conftest.$ac_ext <<_ACEOF
13675
cat confdefs.h >>conftest.$ac_ext
13676
cat >>conftest.$ac_ext <<_ACEOF
13677
/* end confdefs.h. */
13681
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13682
$EGREP "${ice_re_word}j1 *\(" >/dev/null 2>&1; then
13683
ice_cv_have_j1_decl=yes
13687
if test "$ice_cv_have_j1_decl" = yes; then
13690
# Check for "fixed" declaration like "getpid _PARAMS((int))"
13691
cat >conftest.$ac_ext <<_ACEOF
13694
cat confdefs.h >>conftest.$ac_ext
13695
cat >>conftest.$ac_ext <<_ACEOF
13696
/* end confdefs.h. */
13700
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13701
$EGREP "${ice_re_word}j1 *$ice_re_params\(\(" >/dev/null 2>&1; then
13702
ice_cv_have_j1_decl=yes
13706
if test "$ice_cv_have_j1_decl" = yes; then
13713
{ echo "$as_me:$LINENO: result: $ice_cv_have_j1_decl" >&5
13714
echo "${ECHO_T}$ice_cv_have_j1_decl" >&6; }
13715
if test "$ice_cv_have_j1_decl" = yes; then
13716
cat >>confdefs.h <<_ACEOF
13717
#define ${ice_have_decl_tr} 1
13724
ice_tr=`echo jn | tr '[a-z]' '[A-Z]'`
13725
ice_have_tr=HAVE_$ice_tr
13726
ice_have_decl_tr=${ice_have_tr}_DECL
13731
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13732
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13733
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13734
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13735
echo $ECHO_N "(cached) $ECHO_C" >&6
13737
cat >conftest.$ac_ext <<_ACEOF
13740
cat confdefs.h >>conftest.$ac_ext
13741
cat >>conftest.$ac_ext <<_ACEOF
13742
/* end confdefs.h. */
13743
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13744
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13745
#define $ac_func innocuous_$ac_func
13747
/* System header to define __stub macros and hopefully few prototypes,
13748
which can conflict with char $ac_func (); below.
13749
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13750
<limits.h> exists even on freestanding compilers. */
13753
# include <limits.h>
13755
# include <assert.h>
13760
/* Override any GCC internal prototype to avoid an error.
13761
Use char because int might match the return type of a GCC
13762
builtin and then its argument prototype would still apply. */
13767
/* The GNU C library defines this for functions which it implements
13768
to always fail with ENOSYS. Some functions are actually named
13769
something starting with __ and the normal name is an alias. */
13770
#if defined __stub_$ac_func || defined __stub___$ac_func
13777
return $ac_func ();
13782
rm -f conftest.$ac_objext conftest$ac_exeext
13783
if { (ac_try="$ac_link"
13784
case "(($ac_try" in
13785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786
*) ac_try_echo=$ac_try;;
13788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789
(eval "$ac_link") 2>conftest.er1
13791
grep -v '^ *+' conftest.er1 >conftest.err
13793
cat conftest.err >&5
13794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795
(exit $ac_status); } && {
13796
test -z "$ac_c_werror_flag" ||
13797
test ! -s conftest.err
13798
} && test -s conftest$ac_exeext &&
13799
$as_test_x conftest$ac_exeext; then
13800
eval "$as_ac_var=yes"
13802
echo "$as_me: failed program was:" >&5
13803
sed 's/^/| /' conftest.$ac_ext >&5
13805
eval "$as_ac_var=no"
13808
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13809
conftest$ac_exeext conftest.$ac_ext
13811
ac_res=`eval echo '${'$as_ac_var'}'`
13812
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13813
echo "${ECHO_T}$ac_res" >&6; }
13814
if test `eval echo '${'$as_ac_var'}'` = yes; then
13815
cat >>confdefs.h <<_ACEOF
13816
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13822
if test "${ice_have_jn}" = yes; then
13823
{ echo "$as_me:$LINENO: checking for jn declaration in math.h" >&5
13824
echo $ECHO_N "checking for jn declaration in math.h... $ECHO_C" >&6; }
13825
if test "${ice_cv_have_jn_decl+set}" = set; then
13826
echo $ECHO_N "(cached) $ECHO_C" >&6
13829
ice_cv_have_jn_decl=no
13830
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
13831
ice_re_word='(^|[^a-zA-Z_0-9_])'
13832
for header in math.h; do
13833
# Check for ordinary declaration
13834
cat >conftest.$ac_ext <<_ACEOF
13837
cat confdefs.h >>conftest.$ac_ext
13838
cat >>conftest.$ac_ext <<_ACEOF
13839
/* end confdefs.h. */
13843
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13844
$EGREP "${ice_re_word}jn *\(" >/dev/null 2>&1; then
13845
ice_cv_have_jn_decl=yes
13849
if test "$ice_cv_have_jn_decl" = yes; then
13852
# Check for "fixed" declaration like "getpid _PARAMS((int))"
13853
cat >conftest.$ac_ext <<_ACEOF
13856
cat confdefs.h >>conftest.$ac_ext
13857
cat >>conftest.$ac_ext <<_ACEOF
13858
/* end confdefs.h. */
13862
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13863
$EGREP "${ice_re_word}jn *$ice_re_params\(\(" >/dev/null 2>&1; then
13864
ice_cv_have_jn_decl=yes
13868
if test "$ice_cv_have_jn_decl" = yes; then
13875
{ echo "$as_me:$LINENO: result: $ice_cv_have_jn_decl" >&5
13876
echo "${ECHO_T}$ice_cv_have_jn_decl" >&6; }
13877
if test "$ice_cv_have_jn_decl" = yes; then
13878
cat >>confdefs.h <<_ACEOF
13879
#define ${ice_have_decl_tr} 1
13886
ice_tr=`echo y0 | tr '[a-z]' '[A-Z]'`
13887
ice_have_tr=HAVE_$ice_tr
13888
ice_have_decl_tr=${ice_have_tr}_DECL
13893
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13894
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13895
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13896
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13897
echo $ECHO_N "(cached) $ECHO_C" >&6
13899
cat >conftest.$ac_ext <<_ACEOF
13902
cat confdefs.h >>conftest.$ac_ext
13903
cat >>conftest.$ac_ext <<_ACEOF
13904
/* end confdefs.h. */
13905
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13906
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13907
#define $ac_func innocuous_$ac_func
13909
/* System header to define __stub macros and hopefully few prototypes,
13910
which can conflict with char $ac_func (); below.
13911
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13912
<limits.h> exists even on freestanding compilers. */
13915
# include <limits.h>
13917
# include <assert.h>
13922
/* Override any GCC internal prototype to avoid an error.
13923
Use char because int might match the return type of a GCC
13924
builtin and then its argument prototype would still apply. */
13929
/* The GNU C library defines this for functions which it implements
13930
to always fail with ENOSYS. Some functions are actually named
13931
something starting with __ and the normal name is an alias. */
13932
#if defined __stub_$ac_func || defined __stub___$ac_func
13939
return $ac_func ();
13944
rm -f conftest.$ac_objext conftest$ac_exeext
13945
if { (ac_try="$ac_link"
13946
case "(($ac_try" in
13947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948
*) ac_try_echo=$ac_try;;
13950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951
(eval "$ac_link") 2>conftest.er1
13953
grep -v '^ *+' conftest.er1 >conftest.err
13955
cat conftest.err >&5
13956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957
(exit $ac_status); } && {
13958
test -z "$ac_c_werror_flag" ||
13959
test ! -s conftest.err
13960
} && test -s conftest$ac_exeext &&
13961
$as_test_x conftest$ac_exeext; then
13962
eval "$as_ac_var=yes"
13964
echo "$as_me: failed program was:" >&5
13965
sed 's/^/| /' conftest.$ac_ext >&5
13967
eval "$as_ac_var=no"
13970
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13971
conftest$ac_exeext conftest.$ac_ext
13973
ac_res=`eval echo '${'$as_ac_var'}'`
13974
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13975
echo "${ECHO_T}$ac_res" >&6; }
13976
if test `eval echo '${'$as_ac_var'}'` = yes; then
13977
cat >>confdefs.h <<_ACEOF
13978
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13984
if test "${ice_have_y0}" = yes; then
13985
{ echo "$as_me:$LINENO: checking for y0 declaration in math.h" >&5
13986
echo $ECHO_N "checking for y0 declaration in math.h... $ECHO_C" >&6; }
13987
if test "${ice_cv_have_y0_decl+set}" = set; then
13988
echo $ECHO_N "(cached) $ECHO_C" >&6
13991
ice_cv_have_y0_decl=no
13992
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
13993
ice_re_word='(^|[^a-zA-Z_0-9_])'
13994
for header in math.h; do
13995
# Check for ordinary declaration
13996
cat >conftest.$ac_ext <<_ACEOF
13999
cat confdefs.h >>conftest.$ac_ext
14000
cat >>conftest.$ac_ext <<_ACEOF
14001
/* end confdefs.h. */
14005
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14006
$EGREP "${ice_re_word}y0 *\(" >/dev/null 2>&1; then
14007
ice_cv_have_y0_decl=yes
14011
if test "$ice_cv_have_y0_decl" = yes; then
14014
# Check for "fixed" declaration like "getpid _PARAMS((int))"
14015
cat >conftest.$ac_ext <<_ACEOF
14018
cat confdefs.h >>conftest.$ac_ext
14019
cat >>conftest.$ac_ext <<_ACEOF
14020
/* end confdefs.h. */
14024
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14025
$EGREP "${ice_re_word}y0 *$ice_re_params\(\(" >/dev/null 2>&1; then
14026
ice_cv_have_y0_decl=yes
14030
if test "$ice_cv_have_y0_decl" = yes; then
14037
{ echo "$as_me:$LINENO: result: $ice_cv_have_y0_decl" >&5
14038
echo "${ECHO_T}$ice_cv_have_y0_decl" >&6; }
14039
if test "$ice_cv_have_y0_decl" = yes; then
14040
cat >>confdefs.h <<_ACEOF
14041
#define ${ice_have_decl_tr} 1
14048
ice_tr=`echo y1 | tr '[a-z]' '[A-Z]'`
14049
ice_have_tr=HAVE_$ice_tr
14050
ice_have_decl_tr=${ice_have_tr}_DECL
14055
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14056
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14057
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14058
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14059
echo $ECHO_N "(cached) $ECHO_C" >&6
14061
cat >conftest.$ac_ext <<_ACEOF
14064
cat confdefs.h >>conftest.$ac_ext
14065
cat >>conftest.$ac_ext <<_ACEOF
14066
/* end confdefs.h. */
14067
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14068
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14069
#define $ac_func innocuous_$ac_func
14071
/* System header to define __stub macros and hopefully few prototypes,
14072
which can conflict with char $ac_func (); below.
14073
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14074
<limits.h> exists even on freestanding compilers. */
14077
# include <limits.h>
14079
# include <assert.h>
14084
/* Override any GCC internal prototype to avoid an error.
14085
Use char because int might match the return type of a GCC
14086
builtin and then its argument prototype would still apply. */
14091
/* The GNU C library defines this for functions which it implements
14092
to always fail with ENOSYS. Some functions are actually named
14093
something starting with __ and the normal name is an alias. */
14094
#if defined __stub_$ac_func || defined __stub___$ac_func
14101
return $ac_func ();
14106
rm -f conftest.$ac_objext conftest$ac_exeext
14107
if { (ac_try="$ac_link"
14108
case "(($ac_try" in
14109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110
*) ac_try_echo=$ac_try;;
14112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113
(eval "$ac_link") 2>conftest.er1
14115
grep -v '^ *+' conftest.er1 >conftest.err
14117
cat conftest.err >&5
14118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119
(exit $ac_status); } && {
14120
test -z "$ac_c_werror_flag" ||
14121
test ! -s conftest.err
14122
} && test -s conftest$ac_exeext &&
14123
$as_test_x conftest$ac_exeext; then
14124
eval "$as_ac_var=yes"
14126
echo "$as_me: failed program was:" >&5
14127
sed 's/^/| /' conftest.$ac_ext >&5
14129
eval "$as_ac_var=no"
14132
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14133
conftest$ac_exeext conftest.$ac_ext
14135
ac_res=`eval echo '${'$as_ac_var'}'`
14136
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14137
echo "${ECHO_T}$ac_res" >&6; }
14138
if test `eval echo '${'$as_ac_var'}'` = yes; then
14139
cat >>confdefs.h <<_ACEOF
14140
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14146
if test "${ice_have_y1}" = yes; then
14147
{ echo "$as_me:$LINENO: checking for y1 declaration in math.h" >&5
14148
echo $ECHO_N "checking for y1 declaration in math.h... $ECHO_C" >&6; }
14149
if test "${ice_cv_have_y1_decl+set}" = set; then
14150
echo $ECHO_N "(cached) $ECHO_C" >&6
14153
ice_cv_have_y1_decl=no
14154
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
14155
ice_re_word='(^|[^a-zA-Z_0-9_])'
14156
for header in math.h; do
14157
# Check for ordinary declaration
14158
cat >conftest.$ac_ext <<_ACEOF
14161
cat confdefs.h >>conftest.$ac_ext
14162
cat >>conftest.$ac_ext <<_ACEOF
14163
/* end confdefs.h. */
14167
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14168
$EGREP "${ice_re_word}y1 *\(" >/dev/null 2>&1; then
14169
ice_cv_have_y1_decl=yes
14173
if test "$ice_cv_have_y1_decl" = yes; then
14176
# Check for "fixed" declaration like "getpid _PARAMS((int))"
14177
cat >conftest.$ac_ext <<_ACEOF
14180
cat confdefs.h >>conftest.$ac_ext
14181
cat >>conftest.$ac_ext <<_ACEOF
14182
/* end confdefs.h. */
14186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14187
$EGREP "${ice_re_word}y1 *$ice_re_params\(\(" >/dev/null 2>&1; then
14188
ice_cv_have_y1_decl=yes
14192
if test "$ice_cv_have_y1_decl" = yes; then
14199
{ echo "$as_me:$LINENO: result: $ice_cv_have_y1_decl" >&5
14200
echo "${ECHO_T}$ice_cv_have_y1_decl" >&6; }
14201
if test "$ice_cv_have_y1_decl" = yes; then
14202
cat >>confdefs.h <<_ACEOF
14203
#define ${ice_have_decl_tr} 1
14210
ice_tr=`echo yn | tr '[a-z]' '[A-Z]'`
14211
ice_have_tr=HAVE_$ice_tr
14212
ice_have_decl_tr=${ice_have_tr}_DECL
14217
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14219
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14220
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14221
echo $ECHO_N "(cached) $ECHO_C" >&6
14223
cat >conftest.$ac_ext <<_ACEOF
14226
cat confdefs.h >>conftest.$ac_ext
14227
cat >>conftest.$ac_ext <<_ACEOF
14228
/* end confdefs.h. */
14229
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14230
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14231
#define $ac_func innocuous_$ac_func
14233
/* System header to define __stub macros and hopefully few prototypes,
14234
which can conflict with char $ac_func (); below.
14235
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14236
<limits.h> exists even on freestanding compilers. */
14239
# include <limits.h>
14241
# include <assert.h>
14246
/* Override any GCC internal prototype to avoid an error.
14247
Use char because int might match the return type of a GCC
14248
builtin and then its argument prototype would still apply. */
14253
/* The GNU C library defines this for functions which it implements
14254
to always fail with ENOSYS. Some functions are actually named
14255
something starting with __ and the normal name is an alias. */
14256
#if defined __stub_$ac_func || defined __stub___$ac_func
14263
return $ac_func ();
14268
rm -f conftest.$ac_objext conftest$ac_exeext
14269
if { (ac_try="$ac_link"
14270
case "(($ac_try" in
14271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272
*) ac_try_echo=$ac_try;;
14274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275
(eval "$ac_link") 2>conftest.er1
14277
grep -v '^ *+' conftest.er1 >conftest.err
14279
cat conftest.err >&5
14280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281
(exit $ac_status); } && {
14282
test -z "$ac_c_werror_flag" ||
14283
test ! -s conftest.err
14284
} && test -s conftest$ac_exeext &&
14285
$as_test_x conftest$ac_exeext; then
14286
eval "$as_ac_var=yes"
14288
echo "$as_me: failed program was:" >&5
14289
sed 's/^/| /' conftest.$ac_ext >&5
14291
eval "$as_ac_var=no"
14294
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14295
conftest$ac_exeext conftest.$ac_ext
14297
ac_res=`eval echo '${'$as_ac_var'}'`
14298
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14299
echo "${ECHO_T}$ac_res" >&6; }
14300
if test `eval echo '${'$as_ac_var'}'` = yes; then
14301
cat >>confdefs.h <<_ACEOF
14302
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14308
if test "${ice_have_yn}" = yes; then
14309
{ echo "$as_me:$LINENO: checking for yn declaration in math.h" >&5
14310
echo $ECHO_N "checking for yn declaration in math.h... $ECHO_C" >&6; }
14311
if test "${ice_cv_have_yn_decl+set}" = set; then
14312
echo $ECHO_N "(cached) $ECHO_C" >&6
14315
ice_cv_have_yn_decl=no
14316
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
14317
ice_re_word='(^|[^a-zA-Z_0-9_])'
14318
for header in math.h; do
14319
# Check for ordinary declaration
14320
cat >conftest.$ac_ext <<_ACEOF
14323
cat confdefs.h >>conftest.$ac_ext
14324
cat >>conftest.$ac_ext <<_ACEOF
14325
/* end confdefs.h. */
14329
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14330
$EGREP "${ice_re_word}yn *\(" >/dev/null 2>&1; then
14331
ice_cv_have_yn_decl=yes
14335
if test "$ice_cv_have_yn_decl" = yes; then
14338
# Check for "fixed" declaration like "getpid _PARAMS((int))"
14339
cat >conftest.$ac_ext <<_ACEOF
14342
cat confdefs.h >>conftest.$ac_ext
14343
cat >>conftest.$ac_ext <<_ACEOF
14344
/* end confdefs.h. */
14348
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14349
$EGREP "${ice_re_word}yn *$ice_re_params\(\(" >/dev/null 2>&1; then
14350
ice_cv_have_yn_decl=yes
14354
if test "$ice_cv_have_yn_decl" = yes; then
14361
{ echo "$as_me:$LINENO: result: $ice_cv_have_yn_decl" >&5
14362
echo "${ECHO_T}$ice_cv_have_yn_decl" >&6; }
14363
if test "$ice_cv_have_yn_decl" = yes; then
14364
cat >>confdefs.h <<_ACEOF
14365
#define ${ice_have_decl_tr} 1
14372
ice_tr=`echo finite | tr '[a-z]' '[A-Z]'`
14373
ice_have_tr=HAVE_$ice_tr
14374
ice_have_decl_tr=${ice_have_tr}_DECL
14377
for ac_func in finite
14379
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14380
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14381
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14382
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14383
echo $ECHO_N "(cached) $ECHO_C" >&6
14385
cat >conftest.$ac_ext <<_ACEOF
14388
cat confdefs.h >>conftest.$ac_ext
14389
cat >>conftest.$ac_ext <<_ACEOF
14390
/* end confdefs.h. */
14391
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14392
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14393
#define $ac_func innocuous_$ac_func
14395
/* System header to define __stub macros and hopefully few prototypes,
14396
which can conflict with char $ac_func (); below.
14397
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14398
<limits.h> exists even on freestanding compilers. */
14401
# include <limits.h>
14403
# include <assert.h>
14408
/* Override any GCC internal prototype to avoid an error.
14409
Use char because int might match the return type of a GCC
14410
builtin and then its argument prototype would still apply. */
14415
/* The GNU C library defines this for functions which it implements
14416
to always fail with ENOSYS. Some functions are actually named
14417
something starting with __ and the normal name is an alias. */
14418
#if defined __stub_$ac_func || defined __stub___$ac_func
14425
return $ac_func ();
14430
rm -f conftest.$ac_objext conftest$ac_exeext
14431
if { (ac_try="$ac_link"
14432
case "(($ac_try" in
14433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434
*) ac_try_echo=$ac_try;;
14436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437
(eval "$ac_link") 2>conftest.er1
14439
grep -v '^ *+' conftest.er1 >conftest.err
14441
cat conftest.err >&5
14442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443
(exit $ac_status); } && {
14444
test -z "$ac_c_werror_flag" ||
14445
test ! -s conftest.err
14446
} && test -s conftest$ac_exeext &&
14447
$as_test_x conftest$ac_exeext; then
14448
eval "$as_ac_var=yes"
14450
echo "$as_me: failed program was:" >&5
14451
sed 's/^/| /' conftest.$ac_ext >&5
14453
eval "$as_ac_var=no"
14456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14457
conftest$ac_exeext conftest.$ac_ext
14459
ac_res=`eval echo '${'$as_ac_var'}'`
14460
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14461
echo "${ECHO_T}$ac_res" >&6; }
14462
if test `eval echo '${'$as_ac_var'}'` = yes; then
14463
cat >>confdefs.h <<_ACEOF
14464
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14466
ice_have_finite=yes
14470
if test "${ice_have_finite}" = yes; then
14471
{ echo "$as_me:$LINENO: checking for finite declaration in math.h" >&5
14472
echo $ECHO_N "checking for finite declaration in math.h... $ECHO_C" >&6; }
14473
if test "${ice_cv_have_finite_decl+set}" = set; then
14474
echo $ECHO_N "(cached) $ECHO_C" >&6
14477
ice_cv_have_finite_decl=no
14478
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
14479
ice_re_word='(^|[^a-zA-Z_0-9_])'
14480
for header in math.h; do
14481
# Check for ordinary declaration
14482
cat >conftest.$ac_ext <<_ACEOF
14485
cat confdefs.h >>conftest.$ac_ext
14486
cat >>conftest.$ac_ext <<_ACEOF
14487
/* end confdefs.h. */
14491
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14492
$EGREP "${ice_re_word}finite *\(" >/dev/null 2>&1; then
14493
ice_cv_have_finite_decl=yes
14497
if test "$ice_cv_have_finite_decl" = yes; then
14500
# Check for "fixed" declaration like "getpid _PARAMS((int))"
14501
cat >conftest.$ac_ext <<_ACEOF
14504
cat confdefs.h >>conftest.$ac_ext
14505
cat >>conftest.$ac_ext <<_ACEOF
14506
/* end confdefs.h. */
14510
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14511
$EGREP "${ice_re_word}finite *$ice_re_params\(\(" >/dev/null 2>&1; then
14512
ice_cv_have_finite_decl=yes
14516
if test "$ice_cv_have_finite_decl" = yes; then
14523
{ echo "$as_me:$LINENO: result: $ice_cv_have_finite_decl" >&5
14524
echo "${ECHO_T}$ice_cv_have_finite_decl" >&6; }
14525
if test "$ice_cv_have_finite_decl" = yes; then
14526
cat >>confdefs.h <<_ACEOF
14527
#define ${ice_have_decl_tr} 1
14533
if test "$ac_cv_lib_m_finite" != yes; then
14535
ice_tr=`echo isfinite | tr '[a-z]' '[A-Z]'`
14536
ice_have_tr=HAVE_$ice_tr
14537
ice_have_decl_tr=${ice_have_tr}_DECL
14538
ice_have_isfinite=no
14540
for ac_func in isfinite
14542
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14543
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14544
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14545
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14546
echo $ECHO_N "(cached) $ECHO_C" >&6
14548
cat >conftest.$ac_ext <<_ACEOF
14551
cat confdefs.h >>conftest.$ac_ext
14552
cat >>conftest.$ac_ext <<_ACEOF
14553
/* end confdefs.h. */
14554
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14555
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14556
#define $ac_func innocuous_$ac_func
14558
/* System header to define __stub macros and hopefully few prototypes,
14559
which can conflict with char $ac_func (); below.
14560
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14561
<limits.h> exists even on freestanding compilers. */
14564
# include <limits.h>
14566
# include <assert.h>
14571
/* Override any GCC internal prototype to avoid an error.
14572
Use char because int might match the return type of a GCC
14573
builtin and then its argument prototype would still apply. */
14578
/* The GNU C library defines this for functions which it implements
14579
to always fail with ENOSYS. Some functions are actually named
14580
something starting with __ and the normal name is an alias. */
14581
#if defined __stub_$ac_func || defined __stub___$ac_func
14588
return $ac_func ();
14593
rm -f conftest.$ac_objext conftest$ac_exeext
14594
if { (ac_try="$ac_link"
14595
case "(($ac_try" in
14596
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597
*) ac_try_echo=$ac_try;;
14599
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600
(eval "$ac_link") 2>conftest.er1
14602
grep -v '^ *+' conftest.er1 >conftest.err
14604
cat conftest.err >&5
14605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606
(exit $ac_status); } && {
14607
test -z "$ac_c_werror_flag" ||
14608
test ! -s conftest.err
14609
} && test -s conftest$ac_exeext &&
14610
$as_test_x conftest$ac_exeext; then
14611
eval "$as_ac_var=yes"
14613
echo "$as_me: failed program was:" >&5
14614
sed 's/^/| /' conftest.$ac_ext >&5
14616
eval "$as_ac_var=no"
14619
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14620
conftest$ac_exeext conftest.$ac_ext
14622
ac_res=`eval echo '${'$as_ac_var'}'`
14623
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14624
echo "${ECHO_T}$ac_res" >&6; }
14625
if test `eval echo '${'$as_ac_var'}'` = yes; then
14626
cat >>confdefs.h <<_ACEOF
14627
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14629
ice_have_isfinite=yes
14633
if test "${ice_have_isfinite}" = yes; then
14634
{ echo "$as_me:$LINENO: checking for isfinite declaration in math.h" >&5
14635
echo $ECHO_N "checking for isfinite declaration in math.h... $ECHO_C" >&6; }
14636
if test "${ice_cv_have_isfinite_decl+set}" = set; then
14637
echo $ECHO_N "(cached) $ECHO_C" >&6
14640
ice_cv_have_isfinite_decl=no
14641
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
14642
ice_re_word='(^|[^a-zA-Z_0-9_])'
14643
for header in math.h; do
14644
# Check for ordinary declaration
14645
cat >conftest.$ac_ext <<_ACEOF
14648
cat confdefs.h >>conftest.$ac_ext
14649
cat >>conftest.$ac_ext <<_ACEOF
14650
/* end confdefs.h. */
14654
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14655
$EGREP "${ice_re_word}isfinite *\(" >/dev/null 2>&1; then
14656
ice_cv_have_isfinite_decl=yes
14660
if test "$ice_cv_have_isfinite_decl" = yes; then
14663
# Check for "fixed" declaration like "getpid _PARAMS((int))"
14664
cat >conftest.$ac_ext <<_ACEOF
14667
cat confdefs.h >>conftest.$ac_ext
14668
cat >>conftest.$ac_ext <<_ACEOF
14669
/* end confdefs.h. */
14673
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14674
$EGREP "${ice_re_word}isfinite *$ice_re_params\(\(" >/dev/null 2>&1; then
14675
ice_cv_have_isfinite_decl=yes
14679
if test "$ice_cv_have_isfinite_decl" = yes; then
14686
{ echo "$as_me:$LINENO: result: $ice_cv_have_isfinite_decl" >&5
14687
echo "${ECHO_T}$ice_cv_have_isfinite_decl" >&6; }
14688
if test "$ice_cv_have_isfinite_decl" = yes; then
14689
cat >>confdefs.h <<_ACEOF
14690
#define ${ice_have_decl_tr} 1
14698
ice_tr=`echo isnan | tr '[a-z]' '[A-Z]'`
14699
ice_have_tr=HAVE_$ice_tr
14700
ice_have_decl_tr=${ice_have_tr}_DECL
14703
for ac_func in isnan
14705
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14706
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14707
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14708
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14709
echo $ECHO_N "(cached) $ECHO_C" >&6
14711
cat >conftest.$ac_ext <<_ACEOF
14714
cat confdefs.h >>conftest.$ac_ext
14715
cat >>conftest.$ac_ext <<_ACEOF
14716
/* end confdefs.h. */
14717
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14718
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14719
#define $ac_func innocuous_$ac_func
14721
/* System header to define __stub macros and hopefully few prototypes,
14722
which can conflict with char $ac_func (); below.
14723
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14724
<limits.h> exists even on freestanding compilers. */
14727
# include <limits.h>
14729
# include <assert.h>
14734
/* Override any GCC internal prototype to avoid an error.
14735
Use char because int might match the return type of a GCC
14736
builtin and then its argument prototype would still apply. */
14741
/* The GNU C library defines this for functions which it implements
14742
to always fail with ENOSYS. Some functions are actually named
14743
something starting with __ and the normal name is an alias. */
14744
#if defined __stub_$ac_func || defined __stub___$ac_func
14751
return $ac_func ();
14756
rm -f conftest.$ac_objext conftest$ac_exeext
14757
if { (ac_try="$ac_link"
14758
case "(($ac_try" in
14759
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760
*) ac_try_echo=$ac_try;;
14762
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763
(eval "$ac_link") 2>conftest.er1
14765
grep -v '^ *+' conftest.er1 >conftest.err
14767
cat conftest.err >&5
14768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769
(exit $ac_status); } && {
14770
test -z "$ac_c_werror_flag" ||
14771
test ! -s conftest.err
14772
} && test -s conftest$ac_exeext &&
14773
$as_test_x conftest$ac_exeext; then
14774
eval "$as_ac_var=yes"
14776
echo "$as_me: failed program was:" >&5
14777
sed 's/^/| /' conftest.$ac_ext >&5
14779
eval "$as_ac_var=no"
14782
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14783
conftest$ac_exeext conftest.$ac_ext
14785
ac_res=`eval echo '${'$as_ac_var'}'`
14786
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14787
echo "${ECHO_T}$ac_res" >&6; }
14788
if test `eval echo '${'$as_ac_var'}'` = yes; then
14789
cat >>confdefs.h <<_ACEOF
14790
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14796
if test "${ice_have_isnan}" = yes; then
14797
{ echo "$as_me:$LINENO: checking for isnan declaration in math.h" >&5
14798
echo $ECHO_N "checking for isnan declaration in math.h... $ECHO_C" >&6; }
14799
if test "${ice_cv_have_isnan_decl+set}" = set; then
14800
echo $ECHO_N "(cached) $ECHO_C" >&6
14803
ice_cv_have_isnan_decl=no
14804
ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
14805
ice_re_word='(^|[^a-zA-Z_0-9_])'
14806
for header in math.h; do
14807
# Check for ordinary declaration
14808
cat >conftest.$ac_ext <<_ACEOF
14811
cat confdefs.h >>conftest.$ac_ext
14812
cat >>conftest.$ac_ext <<_ACEOF
14813
/* end confdefs.h. */
14817
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14818
$EGREP "${ice_re_word}isnan *\(" >/dev/null 2>&1; then
14819
ice_cv_have_isnan_decl=yes
14823
if test "$ice_cv_have_isnan_decl" = yes; then
14826
# Check for "fixed" declaration like "getpid _PARAMS((int))"
14827
cat >conftest.$ac_ext <<_ACEOF
14830
cat confdefs.h >>conftest.$ac_ext
14831
cat >>conftest.$ac_ext <<_ACEOF
14832
/* end confdefs.h. */
14836
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837
$EGREP "${ice_re_word}isnan *$ice_re_params\(\(" >/dev/null 2>&1; then
14838
ice_cv_have_isnan_decl=yes
14842
if test "$ice_cv_have_isnan_decl" = yes; then
14849
{ echo "$as_me:$LINENO: result: $ice_cv_have_isnan_decl" >&5
14850
echo "${ECHO_T}$ice_cv_have_isnan_decl" >&6; }
14851
if test "$ice_cv_have_isnan_decl" = yes; then
14852
cat >>confdefs.h <<_ACEOF
14853
#define ${ice_have_decl_tr} 1
14860
if test $bundled_t1lib = false
14863
{ echo "$as_me:$LINENO: checking for T1lib >= 1.3.1" >&5
14864
echo $ECHO_N "checking for T1lib >= 1.3.1... $ECHO_C" >&6; }
14865
if test "${acx_cv_t1lib+set}" = set; then
14866
echo $ECHO_N "(cached) $ECHO_C" >&6
14869
save_CFLAGS=$CFLAGS
14870
save_CPPFLAGS=$CPPFLAGS
14871
save_LDFLAGS=$LDFLAGS
14874
LIBS="-lt1 -lm $LIBS"
14875
if test "$cross_compiling" = yes; then
14879
cat >conftest.$ac_ext <<_ACEOF
14882
cat confdefs.h >>conftest.$ac_ext
14883
cat >>conftest.$ac_ext <<_ACEOF
14884
/* end confdefs.h. */
14886
#include <string.h>
14890
vlib = T1_GetLibIdent();
14891
if (strcmp(vlib, "1.3.1") < 0) {
14898
rm -f conftest$ac_exeext
14899
if { (ac_try="$ac_link"
14900
case "(($ac_try" in
14901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902
*) ac_try_echo=$ac_try;;
14904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905
(eval "$ac_link") 2>&5
14907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14909
{ (case "(($ac_try" in
14910
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911
*) ac_try_echo=$ac_try;;
14913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914
(eval "$ac_try") 2>&5
14916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917
(exit $ac_status); }; }; then
14920
echo "$as_me: program exited with status $ac_status" >&5
14921
echo "$as_me: failed program was:" >&5
14922
sed 's/^/| /' conftest.$ac_ext >&5
14924
( exit $ac_status )
14927
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14932
CFLAGS=$save_CFLAGS
14933
CPPFLAGS=$save_CPPFLAGS
14934
LDFLAGS=$save_LDFLAGS
14939
{ echo "$as_me:$LINENO: result: $acx_cv_t1lib" >&5
14940
echo "${ECHO_T}$acx_cv_t1lib" >&6; }
14941
if test "$acx_cv_t1lib" = "yes"
14944
cat >>confdefs.h <<\_ACEOF
14945
#define HAVE_LIBT1 1
14955
if test $bundled_t1lib = true
14958
{ echo "$as_me:$LINENO: result: --> Bundled version of T1lib will be used" >&5
14959
echo "${ECHO_T}--> Bundled version of T1lib will be used" >&6; }
14961
T1_LIB='$(TOP)/T1lib/libt1.a'
14962
T1_INC='-I$(TOP)/T1lib/t1lib'
14966
{ echo "$as_me:$LINENO: checking \"which ANSI integer type is 16 bit\"" >&5
14967
echo $ECHO_N "checking \"which ANSI integer type is 16 bit\"... $ECHO_C" >&6; }
14968
if test "${ac_16bit_type+set}" = set; then
14969
echo $ECHO_N "(cached) $ECHO_C" >&6
14971
if test "$cross_compiling" = yes; then
14974
cat >conftest.$ac_ext <<_ACEOF
14977
cat confdefs.h >>conftest.$ac_ext
14978
cat >>conftest.$ac_ext <<_ACEOF
14979
/* end confdefs.h. */
14982
if (sizeof(short)==2)
14984
else if (sizeof(int)==2)
14990
rm -f conftest$ac_exeext
14991
if { (ac_try="$ac_link"
14992
case "(($ac_try" in
14993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994
*) ac_try_echo=$ac_try;;
14996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997
(eval "$ac_link") 2>&5
14999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15001
{ (case "(($ac_try" in
15002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003
*) ac_try_echo=$ac_try;;
15005
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006
(eval "$ac_try") 2>&5
15008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009
(exit $ac_status); }; }; then
15010
ac_16bit_type="short"
15012
echo "$as_me: program exited with status $ac_status" >&5
15013
echo "$as_me: failed program was:" >&5
15014
sed 's/^/| /' conftest.$ac_ext >&5
15016
( exit $ac_status )
15017
ac_16bit_type="int"
15019
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15024
{ echo "$as_me:$LINENO: result: $ac_16bit_type" >&5
15025
echo "${ECHO_T}$ac_16bit_type" >&6; }
15026
if test "$ac_16bit_type" = "short"
15028
T1_AA_TYPE16="short"
15033
{ echo "$as_me:$LINENO: checking \"which ANSI integer type is 32 bit\"" >&5
15034
echo $ECHO_N "checking \"which ANSI integer type is 32 bit\"... $ECHO_C" >&6; }
15035
if test "${ac_32bit_type+set}" = set; then
15036
echo $ECHO_N "(cached) $ECHO_C" >&6
15038
if test "$cross_compiling" = yes; then
15041
cat >conftest.$ac_ext <<_ACEOF
15044
cat confdefs.h >>conftest.$ac_ext
15045
cat >>conftest.$ac_ext <<_ACEOF
15046
/* end confdefs.h. */
15049
if (sizeof(int)==4)
15051
else if (sizeof(long)==4)
15057
rm -f conftest$ac_exeext
15058
if { (ac_try="$ac_link"
15059
case "(($ac_try" in
15060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061
*) ac_try_echo=$ac_try;;
15063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064
(eval "$ac_link") 2>&5
15066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15068
{ (case "(($ac_try" in
15069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070
*) ac_try_echo=$ac_try;;
15072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073
(eval "$ac_try") 2>&5
15075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076
(exit $ac_status); }; }; then
15077
ac_32bit_type="int"
15079
echo "$as_me: program exited with status $ac_status" >&5
15080
echo "$as_me: failed program was:" >&5
15081
sed 's/^/| /' conftest.$ac_ext >&5
15083
( exit $ac_status )
15084
ac_32bit_type="long"
15086
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15091
{ echo "$as_me:$LINENO: result: $ac_32bit_type" >&5
15092
echo "${ECHO_T}$ac_32bit_type" >&6; }
15093
if test "$ac_32bit_type" = "int"
15097
T1_AA_TYPE32="long"
15100
{ echo "$as_me:$LINENO: checking \"which ANSI integer type is 64 bit\"" >&5
15101
echo $ECHO_N "checking \"which ANSI integer type is 64 bit\"... $ECHO_C" >&6; }
15102
if test "${ac_64bit_type+set}" = set; then
15103
echo $ECHO_N "(cached) $ECHO_C" >&6
15105
if test "$cross_compiling" = yes; then
15108
cat >conftest.$ac_ext <<_ACEOF
15111
cat confdefs.h >>conftest.$ac_ext
15112
cat >>conftest.$ac_ext <<_ACEOF
15113
/* end confdefs.h. */
15116
if (sizeof(long)==8)
15122
rm -f conftest$ac_exeext
15123
if { (ac_try="$ac_link"
15124
case "(($ac_try" in
15125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126
*) ac_try_echo=$ac_try;;
15128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129
(eval "$ac_link") 2>&5
15131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15133
{ (case "(($ac_try" in
15134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135
*) ac_try_echo=$ac_try;;
15137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138
(eval "$ac_try") 2>&5
15140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141
(exit $ac_status); }; }; then
15142
ac_64bit_type="long"
15144
echo "$as_me: program exited with status $ac_status" >&5
15145
echo "$as_me: failed program was:" >&5
15146
sed 's/^/| /' conftest.$ac_ext >&5
15148
( exit $ac_status )
15149
ac_64bit_type="<none>"
15151
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15156
{ echo "$as_me:$LINENO: result: $ac_64bit_type" >&5
15157
echo "${ECHO_T}$ac_64bit_type" >&6; }
15158
if test "$ac_64bit_type" = "long"
15160
T1_AA_TYPE64="long"
15166
{ echo "$as_me:$LINENO: result: --> Good. Seems you have compatible version of T1lib installed" >&5
15167
echo "${ECHO_T}--> Good. Seems you have compatible version of T1lib installed" >&6; }
15170
{ echo "$as_me:$LINENO: checking for library containing xdrstdio_create" >&5
15171
echo $ECHO_N "checking for library containing xdrstdio_create... $ECHO_C" >&6; }
15172
if test "${mdw_cv_lib_xdrstdio_create+set}" = set; then
15173
echo $ECHO_N "(cached) $ECHO_C" >&6
15175
mdw_save_LIBS="$LIBS"
15176
mdw_cv_lib_xdrstdio_create="no"
15177
cat >conftest.$ac_ext <<_ACEOF
15180
cat confdefs.h >>conftest.$ac_ext
15181
cat >>conftest.$ac_ext <<_ACEOF
15182
/* end confdefs.h. */
15192
rm -f conftest.$ac_objext conftest$ac_exeext
15193
if { (ac_try="$ac_link"
15194
case "(($ac_try" in
15195
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196
*) ac_try_echo=$ac_try;;
15198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199
(eval "$ac_link") 2>conftest.er1
15201
grep -v '^ *+' conftest.er1 >conftest.err
15203
cat conftest.err >&5
15204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205
(exit $ac_status); } && {
15206
test -z "$ac_c_werror_flag" ||
15207
test ! -s conftest.err
15208
} && test -s conftest$ac_exeext &&
15209
$as_test_x conftest$ac_exeext; then
15210
mdw_cv_lib_xdrstdio_create="none required"
15212
echo "$as_me: failed program was:" >&5
15213
sed 's/^/| /' conftest.$ac_ext >&5
15218
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15219
conftest$ac_exeext conftest.$ac_ext
15220
test "$mdw_cv_lib_xdrstdio_create" = "no" && for i in nsl rpc xdr rpclib; do
15221
LIBS="-l$i $mdw_save_LIBS"
15222
cat >conftest.$ac_ext <<_ACEOF
15225
cat confdefs.h >>conftest.$ac_ext
15226
cat >>conftest.$ac_ext <<_ACEOF
15227
/* end confdefs.h. */
15237
rm -f conftest.$ac_objext conftest$ac_exeext
15238
if { (ac_try="$ac_link"
15239
case "(($ac_try" in
15240
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241
*) ac_try_echo=$ac_try;;
15243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244
(eval "$ac_link") 2>conftest.er1
15246
grep -v '^ *+' conftest.er1 >conftest.err
15248
cat conftest.err >&5
15249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250
(exit $ac_status); } && {
15251
test -z "$ac_c_werror_flag" ||
15252
test ! -s conftest.err
15253
} && test -s conftest$ac_exeext &&
15254
$as_test_x conftest$ac_exeext; then
15255
mdw_cv_lib_xdrstdio_create="-l$i"
15258
echo "$as_me: failed program was:" >&5
15259
sed 's/^/| /' conftest.$ac_ext >&5
15264
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15265
conftest$ac_exeext conftest.$ac_ext
15267
LIBS="$mdw_save_LIBS"
15269
{ echo "$as_me:$LINENO: result: $mdw_cv_lib_xdrstdio_create" >&5
15270
echo "${ECHO_T}$mdw_cv_lib_xdrstdio_create" >&6; }
15271
if test "$mdw_cv_lib_xdrstdio_create" != "no"; then
15272
if test "xXDR_LIB=$mdw_cv_lib_xdrstdio_create" != "x"; then
15273
test "$mdw_cv_lib_xdrstdio_create" = "none required" && mdw_cv_lib_xdrstdio_create=""
15274
XDR_LIB=$mdw_cv_lib_xdrstdio_create
15276
test "$mdw_cv_lib_xdrstdio_create" = "none required" || LIBS="$mdw_cv_lib_xdrstdio_create $LIBS"
15282
if test "${XDR_LIB}" = "NONE"; then
15284
{ echo "$as_me:$LINENO: result: --> No XDR library found; grconvert will not be built" >&5
15285
echo "${ECHO_T}--> No XDR library found; grconvert will not be built" >&6; }
15287
grconvert_dir="grconvert"
15290
{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15291
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
15292
if test "${mdw_cv_lib_dlopen+set}" = set; then
15293
echo $ECHO_N "(cached) $ECHO_C" >&6
15295
mdw_save_LIBS="$LIBS"
15296
mdw_cv_lib_dlopen="no"
15297
cat >conftest.$ac_ext <<_ACEOF
15300
cat confdefs.h >>conftest.$ac_ext
15301
cat >>conftest.$ac_ext <<_ACEOF
15302
/* end confdefs.h. */
15312
rm -f conftest.$ac_objext conftest$ac_exeext
15313
if { (ac_try="$ac_link"
15314
case "(($ac_try" in
15315
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316
*) ac_try_echo=$ac_try;;
15318
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319
(eval "$ac_link") 2>conftest.er1
15321
grep -v '^ *+' conftest.er1 >conftest.err
15323
cat conftest.err >&5
15324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325
(exit $ac_status); } && {
15326
test -z "$ac_c_werror_flag" ||
15327
test ! -s conftest.err
15328
} && test -s conftest$ac_exeext &&
15329
$as_test_x conftest$ac_exeext; then
15330
mdw_cv_lib_dlopen="none required"
15332
echo "$as_me: failed program was:" >&5
15333
sed 's/^/| /' conftest.$ac_ext >&5
15338
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15339
conftest$ac_exeext conftest.$ac_ext
15340
test "$mdw_cv_lib_dlopen" = "no" && for i in dl; do
15341
LIBS="-l$i $mdw_save_LIBS"
15342
cat >conftest.$ac_ext <<_ACEOF
15345
cat confdefs.h >>conftest.$ac_ext
15346
cat >>conftest.$ac_ext <<_ACEOF
15347
/* end confdefs.h. */
15357
rm -f conftest.$ac_objext conftest$ac_exeext
15358
if { (ac_try="$ac_link"
15359
case "(($ac_try" in
15360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361
*) ac_try_echo=$ac_try;;
15363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364
(eval "$ac_link") 2>conftest.er1
15366
grep -v '^ *+' conftest.er1 >conftest.err
15368
cat conftest.err >&5
15369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370
(exit $ac_status); } && {
15371
test -z "$ac_c_werror_flag" ||
15372
test ! -s conftest.err
15373
} && test -s conftest$ac_exeext &&
15374
$as_test_x conftest$ac_exeext; then
15375
mdw_cv_lib_dlopen="-l$i"
15378
echo "$as_me: failed program was:" >&5
15379
sed 's/^/| /' conftest.$ac_ext >&5
15384
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385
conftest$ac_exeext conftest.$ac_ext
15387
LIBS="$mdw_save_LIBS"
15389
{ echo "$as_me:$LINENO: result: $mdw_cv_lib_dlopen" >&5
15390
echo "${ECHO_T}$mdw_cv_lib_dlopen" >&6; }
15391
if test "$mdw_cv_lib_dlopen" != "no"; then
15392
if test "xDL_LIB=$mdw_cv_lib_dlopen; cat >>confdefs.h <<\_ACEOF
15393
#define HAVE_DLOPEN 1
15396
test "$mdw_cv_lib_dlopen" = "none required" && mdw_cv_lib_dlopen=""
15397
DL_LIB=$mdw_cv_lib_dlopen; cat >>confdefs.h <<\_ACEOF
15398
#define HAVE_DLOPEN 1
15402
test "$mdw_cv_lib_dlopen" = "none required" || LIBS="$mdw_cv_lib_dlopen $LIBS"
15408
if test "${DL_LIB}" != "NONE"; then
15409
{ echo "$as_me:$LINENO: checking whether RTLD_NOW is defined in dlfcn.h" >&5
15410
echo $ECHO_N "checking whether RTLD_NOW is defined in dlfcn.h... $ECHO_C" >&6; }
15411
if test "${ac_rtld_now_in_dlfcn_h+set}" = set; then
15412
echo $ECHO_N "(cached) $ECHO_C" >&6
15414
cat >conftest.$ac_ext <<_ACEOF
15417
cat confdefs.h >>conftest.$ac_ext
15418
cat >>conftest.$ac_ext <<_ACEOF
15419
/* end confdefs.h. */
15426
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15427
$EGREP "yes" >/dev/null 2>&1; then
15428
ac_rtld_now_in_dlfcn_h="yes"; cat >>confdefs.h <<\_ACEOF
15429
#define HAVE_RTLD_NOW 1
15433
ac_rtld_now_in_dlfcn_h="no"
15439
{ echo "$as_me:$LINENO: result: $ac_rtld_now_in_dlfcn_h" >&5
15440
echo "${ECHO_T}$ac_rtld_now_in_dlfcn_h" >&6; }
15442
{ echo "$as_me:$LINENO: checking for library containing shl_load" >&5
15443
echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
15444
if test "${mdw_cv_lib_shl_load+set}" = set; then
15445
echo $ECHO_N "(cached) $ECHO_C" >&6
15447
mdw_save_LIBS="$LIBS"
15448
mdw_cv_lib_shl_load="no"
15449
cat >conftest.$ac_ext <<_ACEOF
15452
cat confdefs.h >>conftest.$ac_ext
15453
cat >>conftest.$ac_ext <<_ACEOF
15454
/* end confdefs.h. */
15464
rm -f conftest.$ac_objext conftest$ac_exeext
15465
if { (ac_try="$ac_link"
15466
case "(($ac_try" in
15467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468
*) ac_try_echo=$ac_try;;
15470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471
(eval "$ac_link") 2>conftest.er1
15473
grep -v '^ *+' conftest.er1 >conftest.err
15475
cat conftest.err >&5
15476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477
(exit $ac_status); } && {
15478
test -z "$ac_c_werror_flag" ||
15479
test ! -s conftest.err
15480
} && test -s conftest$ac_exeext &&
15481
$as_test_x conftest$ac_exeext; then
15482
mdw_cv_lib_shl_load="none required"
15484
echo "$as_me: failed program was:" >&5
15485
sed 's/^/| /' conftest.$ac_ext >&5
15490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15491
conftest$ac_exeext conftest.$ac_ext
15492
test "$mdw_cv_lib_shl_load" = "no" && for i in dld; do
15493
LIBS="-l$i $mdw_save_LIBS"
15494
cat >conftest.$ac_ext <<_ACEOF
15497
cat confdefs.h >>conftest.$ac_ext
15498
cat >>conftest.$ac_ext <<_ACEOF
15499
/* end confdefs.h. */
15509
rm -f conftest.$ac_objext conftest$ac_exeext
15510
if { (ac_try="$ac_link"
15511
case "(($ac_try" in
15512
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513
*) ac_try_echo=$ac_try;;
15515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516
(eval "$ac_link") 2>conftest.er1
15518
grep -v '^ *+' conftest.er1 >conftest.err
15520
cat conftest.err >&5
15521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522
(exit $ac_status); } && {
15523
test -z "$ac_c_werror_flag" ||
15524
test ! -s conftest.err
15525
} && test -s conftest$ac_exeext &&
15526
$as_test_x conftest$ac_exeext; then
15527
mdw_cv_lib_shl_load="-l$i"
15530
echo "$as_me: failed program was:" >&5
15531
sed 's/^/| /' conftest.$ac_ext >&5
15536
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15537
conftest$ac_exeext conftest.$ac_ext
15539
LIBS="$mdw_save_LIBS"
15541
{ echo "$as_me:$LINENO: result: $mdw_cv_lib_shl_load" >&5
15542
echo "${ECHO_T}$mdw_cv_lib_shl_load" >&6; }
15543
if test "$mdw_cv_lib_shl_load" != "no"; then
15544
if test "xDL_LIB=$mdw_cv_lib_shl_load; cat >>confdefs.h <<\_ACEOF
15545
#define HAVE_SHL_LOAD 1
15548
test "$mdw_cv_lib_shl_load" = "none required" && mdw_cv_lib_shl_load=""
15549
DL_LIB=$mdw_cv_lib_shl_load; cat >>confdefs.h <<\_ACEOF
15550
#define HAVE_SHL_LOAD 1
15554
test "$mdw_cv_lib_shl_load" = "none required" || LIBS="$mdw_cv_lib_shl_load $LIBS"
15561
if test "${DL_LIB}" = "NONE"; then
15562
{ echo "$as_me:$LINENO: result: --> Support for dll modules will not be compiled" >&5
15563
echo "${ECHO_T}--> Support for dll modules will not be compiled" >&6; }
15567
if test $netcdf = true
15571
# Check whether --with-netcdf_libraries was given.
15572
if test "${with_netcdf_libraries+set}" = set; then
15573
withval=$with_netcdf_libraries; netcdf_libraries="$withval"
15576
if test "x$netcdf_libraries" = "x"
15578
netcdf_libraries=-lnetcdf
15581
{ echo "$as_me:$LINENO: checking for netCDF API version >= 3.0" >&5
15582
echo $ECHO_N "checking for netCDF API version >= 3.0... $ECHO_C" >&6; }
15583
if test "${acx_cv_netcdf+set}" = set; then
15584
echo $ECHO_N "(cached) $ECHO_C" >&6
15586
if test "${acx_cv_netcdf_libraries+set}" = set; then
15587
echo $ECHO_N "(cached) $ECHO_C" >&6
15589
acx_cv_netcdf_libraries=$netcdf_libraries
15593
save_CFLAGS=$CFLAGS
15594
save_CPPFLAGS=$CPPFLAGS
15595
save_LDFLAGS=$LDFLAGS
15598
LIBS="$acx_cv_netcdf_libraries $LIBS"
15601
if test "$cross_compiling" = yes; then
15605
cat >conftest.$ac_ext <<_ACEOF
15608
cat confdefs.h >>conftest.$ac_ext
15609
cat >>conftest.$ac_ext <<_ACEOF
15610
/* end confdefs.h. */
15613
#include <netcdf.h>
15616
vlib = nc_inq_libvers();
15617
if (strcmp(vlib, "3.0") < 0) {
15624
rm -f conftest$ac_exeext
15625
if { (ac_try="$ac_link"
15626
case "(($ac_try" in
15627
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628
*) ac_try_echo=$ac_try;;
15630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631
(eval "$ac_link") 2>&5
15633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15635
{ (case "(($ac_try" in
15636
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637
*) ac_try_echo=$ac_try;;
15639
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640
(eval "$ac_try") 2>&5
15642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643
(exit $ac_status); }; }; then
15644
acx_cv_netcdf="yes"
15646
echo "$as_me: program exited with status $ac_status" >&5
15647
echo "$as_me: failed program was:" >&5
15648
sed 's/^/| /' conftest.$ac_ext >&5
15650
( exit $ac_status )
15653
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15658
CFLAGS=$save_CFLAGS
15659
CPPFLAGS=$save_CPPFLAGS
15660
LDFLAGS=$save_LDFLAGS
15665
{ echo "$as_me:$LINENO: result: $acx_cv_netcdf" >&5
15666
echo "${ECHO_T}$acx_cv_netcdf" >&6; }
15667
if test "$acx_cv_netcdf" = "yes"
15669
NETCDF_LIBS="$acx_cv_netcdf_libraries"
15670
cat >>confdefs.h <<\_ACEOF
15671
#define HAVE_NETCDF 1
15676
{ echo "$as_me:$LINENO: result: --> support for netCDF is disabled" >&5
15677
echo "${ECHO_T}--> support for netCDF is disabled" >&6; }
15682
if test $fftw = true
15686
# Check whether --with-fftw_library was given.
15687
if test "${with_fftw_library+set}" = set; then
15688
withval=$with_fftw_library; fftw_library="$withval"
15691
if test "x$fftw_library" = "x"
15693
fftw_library=-lfftw
15696
{ echo "$as_me:$LINENO: checking for FFTW library >= 2.1.3" >&5
15697
echo $ECHO_N "checking for FFTW library >= 2.1.3... $ECHO_C" >&6; }
15698
if test "${acx_cv_fftw+set}" = set; then
15699
echo $ECHO_N "(cached) $ECHO_C" >&6
15701
if test "${acx_cv_fftw_library+set}" = set; then
15702
echo $ECHO_N "(cached) $ECHO_C" >&6
15704
acx_cv_fftw_library=$fftw_library
15708
save_CFLAGS=$CFLAGS
15709
save_CPPFLAGS=$CPPFLAGS
15710
save_LDFLAGS=$LDFLAGS
15713
LIBS="$acx_cv_fftw_library $LIBS"
15714
if test "$cross_compiling" = yes; then
15718
cat >conftest.$ac_ext <<_ACEOF
15721
cat confdefs.h >>conftest.$ac_ext
15722
cat >>conftest.$ac_ext <<_ACEOF
15723
/* end confdefs.h. */
15726
#include <string.h>
15728
char *vlib = (char *) fftw_version;
15729
if (strcmp(vlib, "2.1.3") < 0) {
15736
rm -f conftest$ac_exeext
15737
if { (ac_try="$ac_link"
15738
case "(($ac_try" in
15739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740
*) ac_try_echo=$ac_try;;
15742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743
(eval "$ac_link") 2>&5
15745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15747
{ (case "(($ac_try" in
15748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749
*) ac_try_echo=$ac_try;;
15751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752
(eval "$ac_try") 2>&5
15754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755
(exit $ac_status); }; }; then
15758
echo "$as_me: program exited with status $ac_status" >&5
15759
echo "$as_me: failed program was:" >&5
15760
sed 's/^/| /' conftest.$ac_ext >&5
15762
( exit $ac_status )
15765
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15771
CFLAGS=$save_CFLAGS
15772
CPPFLAGS=$save_CPPFLAGS
15773
LDFLAGS=$save_LDFLAGS
15778
{ echo "$as_me:$LINENO: result: $acx_cv_fftw" >&5
15779
echo "${ECHO_T}$acx_cv_fftw" >&6; }
15780
if test "$acx_cv_fftw" = "yes"
15782
FFTW_LIB="$acx_cv_fftw_library"
15783
cat >>confdefs.h <<\_ACEOF
15784
#define HAVE_FFTW 1
15789
{ echo "$as_me:$LINENO: result: --> using legacy unoptimized FFT code" >&5
15790
echo "${ECHO_T}--> using legacy unoptimized FFT code" >&6; }
15795
if test $pngdrv = true || test $pdfdrv = true || test $xmhtml = true
15799
# Check whether --with-zlib_library was given.
15800
if test "${with_zlib_library+set}" = set; then
15801
withval=$with_zlib_library; zlib_library="$withval"
15804
if test "x$zlib_library" = "x"
15809
{ echo "$as_me:$LINENO: checking for zlib >= 1.0.3" >&5
15810
echo $ECHO_N "checking for zlib >= 1.0.3... $ECHO_C" >&6; }
15811
if test "${acx_cv_zlib+set}" = set; then
15812
echo $ECHO_N "(cached) $ECHO_C" >&6
15814
if test "${acx_cv_zlib_library+set}" = set; then
15815
echo $ECHO_N "(cached) $ECHO_C" >&6
15817
acx_cv_zlib_library=$zlib_library
15821
save_CFLAGS=$CFLAGS
15822
save_CPPFLAGS=$CPPFLAGS
15823
save_LDFLAGS=$LDFLAGS
15826
LIBS="$acx_cv_zlib_library $LIBS"
15827
if test "$cross_compiling" = yes; then
15831
cat >conftest.$ac_ext <<_ACEOF
15834
cat confdefs.h >>conftest.$ac_ext
15835
cat >>conftest.$ac_ext <<_ACEOF
15836
/* end confdefs.h. */
15838
#include <string.h>
15842
vlib = zlibVersion();
15843
vinc = ZLIB_VERSION;
15844
if (strcmp(vinc, "1.0.3") < 0) {
15847
if (strcmp(vinc, vlib) != 0) {
15854
rm -f conftest$ac_exeext
15855
if { (ac_try="$ac_link"
15856
case "(($ac_try" in
15857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858
*) ac_try_echo=$ac_try;;
15860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861
(eval "$ac_link") 2>&5
15863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15865
{ (case "(($ac_try" in
15866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867
*) ac_try_echo=$ac_try;;
15869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870
(eval "$ac_try") 2>&5
15872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873
(exit $ac_status); }; }; then
15876
echo "$as_me: program exited with status $ac_status" >&5
15877
echo "$as_me: failed program was:" >&5
15878
sed 's/^/| /' conftest.$ac_ext >&5
15880
( exit $ac_status )
15883
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15888
CFLAGS=$save_CFLAGS
15889
CPPFLAGS=$save_CPPFLAGS
15890
LDFLAGS=$save_LDFLAGS
15895
{ echo "$as_me:$LINENO: result: $acx_cv_zlib" >&5
15896
echo "${ECHO_T}$acx_cv_zlib" >&6; }
15897
if test "$acx_cv_zlib" = "yes"
15899
Z_LIB="$acx_cv_zlib_library"
15908
if test $jpegdrv = true || test $pdfdrv = true || test $xmhtml = true
15912
# Check whether --with-jpeg_library was given.
15913
if test "${with_jpeg_library+set}" = set; then
15914
withval=$with_jpeg_library; jpeg_library="$withval"
15917
if test "x$jpeg_library" = "x"
15919
jpeg_library=-ljpeg
15922
{ echo "$as_me:$LINENO: checking for IJG JPEG software >= 61" >&5
15923
echo $ECHO_N "checking for IJG JPEG software >= 61... $ECHO_C" >&6; }
15924
if test "${acx_cv_jpeg+set}" = set; then
15925
echo $ECHO_N "(cached) $ECHO_C" >&6
15927
if test "${acx_cv_jpeg_library+set}" = set; then
15928
echo $ECHO_N "(cached) $ECHO_C" >&6
15930
acx_cv_jpeg_library=$jpeg_library
15934
save_CFLAGS=$CFLAGS
15935
save_CPPFLAGS=$CPPFLAGS
15936
save_LDFLAGS=$LDFLAGS
15939
LIBS="$acx_cv_jpeg_library $LIBS"
15940
if test "$cross_compiling" = yes; then
15944
cat >conftest.$ac_ext <<_ACEOF
15947
cat confdefs.h >>conftest.$ac_ext
15948
cat >>conftest.$ac_ext <<_ACEOF
15949
/* end confdefs.h. */
15952
#include <jpeglib.h>
15955
struct jpeg_compress_struct cinfo;
15956
jpeg_create_compress(&cinfo);
15957
vinc = JPEG_LIB_VERSION;
15965
rm -f conftest$ac_exeext
15966
if { (ac_try="$ac_link"
15967
case "(($ac_try" in
15968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969
*) ac_try_echo=$ac_try;;
15971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972
(eval "$ac_link") 2>&5
15974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15976
{ (case "(($ac_try" in
15977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978
*) ac_try_echo=$ac_try;;
15980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981
(eval "$ac_try") 2>&5
15983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984
(exit $ac_status); }; }; then
15987
echo "$as_me: program exited with status $ac_status" >&5
15988
echo "$as_me: failed program was:" >&5
15989
sed 's/^/| /' conftest.$ac_ext >&5
15991
( exit $ac_status )
15994
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15999
CFLAGS=$save_CFLAGS
16000
CPPFLAGS=$save_CPPFLAGS
16001
LDFLAGS=$save_LDFLAGS
16006
{ echo "$as_me:$LINENO: result: $acx_cv_jpeg" >&5
16007
echo "${ECHO_T}$acx_cv_jpeg" >&6; }
16008
if test "$acx_cv_jpeg" = "yes"
16010
JPEG_LIB=$acx_cv_jpeg_library
16011
cat >>confdefs.h <<\_ACEOF
16012
#define HAVE_LIBJPEG 1
16017
{ echo "$as_me:$LINENO: result: --> JPEG backend is disabled" >&5
16018
echo "${ECHO_T}--> JPEG backend is disabled" >&6; }
16023
if test $pngdrv = true || test $pdfdrv = true || test $xmhtml = true
16027
# Check whether --with-png_library was given.
16028
if test "${with_png_library+set}" = set; then
16029
withval=$with_png_library; png_library="$withval"
16032
if test "x$png_library" = "x"
16037
{ echo "$as_me:$LINENO: checking for libpng >= 0.9.6" >&5
16038
echo $ECHO_N "checking for libpng >= 0.9.6... $ECHO_C" >&6; }
16039
if test "${acx_cv_png+set}" = set; then
16040
echo $ECHO_N "(cached) $ECHO_C" >&6
16042
if test "${acx_cv_png_library+set}" = set; then
16043
echo $ECHO_N "(cached) $ECHO_C" >&6
16045
acx_cv_png_library=$png_library
16049
save_CFLAGS=$CFLAGS
16050
save_CPPFLAGS=$CPPFLAGS
16051
save_LDFLAGS=$LDFLAGS
16054
LIBS="$acx_cv_png_library $Z_LIB $LIBS"
16055
if test "$cross_compiling" = yes; then
16059
cat >conftest.$ac_ext <<_ACEOF
16062
cat confdefs.h >>conftest.$ac_ext
16063
cat >>conftest.$ac_ext <<_ACEOF
16064
/* end confdefs.h. */
16066
#include <string.h>
16070
vlib = png_libpng_ver;
16071
vinc = PNG_LIBPNG_VER_STRING;
16072
if (strcmp(vinc, "0.9.6") < 0) {
16075
if (strcmp(vinc, vlib) != 0) {
16082
rm -f conftest$ac_exeext
16083
if { (ac_try="$ac_link"
16084
case "(($ac_try" in
16085
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086
*) ac_try_echo=$ac_try;;
16088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089
(eval "$ac_link") 2>&5
16091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16093
{ (case "(($ac_try" in
16094
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095
*) ac_try_echo=$ac_try;;
16097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098
(eval "$ac_try") 2>&5
16100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101
(exit $ac_status); }; }; then
16104
echo "$as_me: program exited with status $ac_status" >&5
16105
echo "$as_me: failed program was:" >&5
16106
sed 's/^/| /' conftest.$ac_ext >&5
16108
( exit $ac_status )
16111
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16116
CFLAGS=$save_CFLAGS
16117
CPPFLAGS=$save_CPPFLAGS
16118
LDFLAGS=$save_LDFLAGS
16123
{ echo "$as_me:$LINENO: result: $acx_cv_png" >&5
16124
echo "${ECHO_T}$acx_cv_png" >&6; }
16125
if test "$acx_cv_png" = "yes"
16127
PNG_LIB="$acx_cv_png_library"
16128
cat >>confdefs.h <<\_ACEOF
16129
#define HAVE_LIBPNG 1
16134
{ echo "$as_me:$LINENO: result: --> PNG backend is disabled" >&5
16135
echo "${ECHO_T}--> PNG backend is disabled" >&6; }
16140
if test $pdfdrv = true
16144
# Check whether --with-pdf_library was given.
16145
if test "${with_pdf_library+set}" = set; then
16146
withval=$with_pdf_library; pdf_library="$withval"
16149
if test "x$pdf_library" = "x"
16154
{ echo "$as_me:$LINENO: checking for PDFlib >= 5.0.0" >&5
16155
echo $ECHO_N "checking for PDFlib >= 5.0.0... $ECHO_C" >&6; }
16156
if test "${acx_cv_pdflib+set}" = set; then
16157
echo $ECHO_N "(cached) $ECHO_C" >&6
16159
if test "${acx_cv_pdf_library+set}" = set; then
16160
echo $ECHO_N "(cached) $ECHO_C" >&6
16162
acx_cv_pdf_library=$pdf_library
16166
save_CFLAGS=$CFLAGS
16167
save_CPPFLAGS=$CPPFLAGS
16168
save_LDFLAGS=$LDFLAGS
16171
LIBS="$acx_cv_pdf_library $JPEG_LIB $PNG_LIB $Z_LIB $LIBS"
16172
if test "$cross_compiling" = yes; then
16176
cat >conftest.$ac_ext <<_ACEOF
16179
cat confdefs.h >>conftest.$ac_ext
16180
cat >>conftest.$ac_ext <<_ACEOF
16181
/* end confdefs.h. */
16183
#include <pdflib.h>
16187
vlibn = 100*PDF_get_majorversion() + PDF_get_minorversion();
16188
vincn = 100*PDFLIB_MAJORVERSION + PDFLIB_MINORVERSION;
16189
vinc = PDFLIB_VERSIONSTRING;
16190
if (strcmp(vinc, "5.0.0") < 0) {
16193
if (vincn != vlibn) {
16200
rm -f conftest$ac_exeext
16201
if { (ac_try="$ac_link"
16202
case "(($ac_try" in
16203
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204
*) ac_try_echo=$ac_try;;
16206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207
(eval "$ac_link") 2>&5
16209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16211
{ (case "(($ac_try" in
16212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213
*) ac_try_echo=$ac_try;;
16215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216
(eval "$ac_try") 2>&5
16218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219
(exit $ac_status); }; }; then
16220
acx_cv_pdflib="yes"
16222
echo "$as_me: program exited with status $ac_status" >&5
16223
echo "$as_me: failed program was:" >&5
16224
sed 's/^/| /' conftest.$ac_ext >&5
16226
( exit $ac_status )
16229
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16234
CFLAGS=$save_CFLAGS
16235
CPPFLAGS=$save_CPPFLAGS
16236
LDFLAGS=$save_LDFLAGS
16241
{ echo "$as_me:$LINENO: result: $acx_cv_pdflib" >&5
16242
echo "${ECHO_T}$acx_cv_pdflib" >&6; }
16243
if test "$acx_cv_pdflib" = "yes"
16245
PDF_LIB="$acx_cv_pdf_library"
16246
cat >>confdefs.h <<\_ACEOF
16247
#define HAVE_LIBPDF 1
16256
if test $pdfdrv != true; then
16257
{ echo "$as_me:$LINENO: result: --> PDF driver is disabled" >&5
16258
echo "${ECHO_T}--> PDF driver is disabled" >&6; }
16267
{ echo "$as_me:$LINENO: checking for X" >&5
16268
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
16271
# Check whether --with-x was given.
16272
if test "${with_x+set}" = set; then
16276
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16277
if test "x$with_x" = xno; then
16278
# The user explicitly disabled X.
16281
case $x_includes,$x_libraries in #(
16282
*\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
16283
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
16284
{ (exit 1); exit 1; }; };; #(
16285
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
16286
echo $ECHO_N "(cached) $ECHO_C" >&6
16288
# One or both of the vars are not set, and there is no cached value.
16289
ac_x_includes=no ac_x_libraries=no
16290
rm -f -r conftest.dir
16291
if mkdir conftest.dir; then
16293
cat >Imakefile <<'_ACEOF'
16295
@echo incroot='${INCROOT}'
16297
@echo usrlibdir='${USRLIBDIR}'
16299
@echo libdir='${LIBDIR}'
16301
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16302
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16303
for ac_var in incroot usrlibdir libdir; do
16304
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16306
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16307
for ac_extension in a so sl; do
16308
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16309
test -f "$ac_im_libdir/libX11.$ac_extension"; then
16310
ac_im_usrlibdir=$ac_im_libdir; break
16313
# Screen out bogus values from the imake configuration. They are
16314
# bogus both because they are the default anyway, and because
16315
# using them would break gcc on systems where it needs fixed includes.
16316
case $ac_im_incroot in
16317
/usr/include) ac_x_includes= ;;
16318
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16320
case $ac_im_usrlibdir in
16321
/usr/lib | /lib) ;;
16322
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16326
rm -f -r conftest.dir
16329
# Standard set of common directories for X headers.
16330
# Check X11 before X11Rn because it is often a symlink to the current release.
16342
/usr/local/X11/include
16343
/usr/local/X11R6/include
16344
/usr/local/X11R5/include
16345
/usr/local/X11R4/include
16347
/usr/local/include/X11
16348
/usr/local/include/X11R6
16349
/usr/local/include/X11R5
16350
/usr/local/include/X11R4
16354
/usr/XFree86/include/X11
16358
/usr/unsupported/include
16359
/usr/athena/include
16360
/usr/local/x11r5/include
16361
/usr/lpp/Xamples/include
16363
/usr/openwin/include
16364
/usr/openwin/share/include'
16366
if test "$ac_x_includes" = no; then
16367
# Guess where to find include files, by looking for Xlib.h.
16368
# First, try using that file with no special directory specified.
16369
cat >conftest.$ac_ext <<_ACEOF
16372
cat confdefs.h >>conftest.$ac_ext
16373
cat >>conftest.$ac_ext <<_ACEOF
16374
/* end confdefs.h. */
16375
#include <X11/Xlib.h>
16377
if { (ac_try="$ac_cpp conftest.$ac_ext"
16378
case "(($ac_try" in
16379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380
*) ac_try_echo=$ac_try;;
16382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16385
grep -v '^ *+' conftest.er1 >conftest.err
16387
cat conftest.err >&5
16388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389
(exit $ac_status); } >/dev/null && {
16390
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16391
test ! -s conftest.err
16393
# We can compile using X headers with no special include directory.
16396
echo "$as_me: failed program was:" >&5
16397
sed 's/^/| /' conftest.$ac_ext >&5
16399
for ac_dir in $ac_x_header_dirs; do
16400
if test -r "$ac_dir/X11/Xlib.h"; then
16401
ac_x_includes=$ac_dir
16407
rm -f conftest.err conftest.$ac_ext
16408
fi # $ac_x_includes = no
16410
if test "$ac_x_libraries" = no; then
16411
# Check for the libraries.
16412
# See if we find them without any special options.
16413
# Don't add to $LIBS permanently.
16416
cat >conftest.$ac_ext <<_ACEOF
16419
cat confdefs.h >>conftest.$ac_ext
16420
cat >>conftest.$ac_ext <<_ACEOF
16421
/* end confdefs.h. */
16422
#include <X11/Xlib.h>
16431
rm -f conftest.$ac_objext conftest$ac_exeext
16432
if { (ac_try="$ac_link"
16433
case "(($ac_try" in
16434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435
*) ac_try_echo=$ac_try;;
16437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438
(eval "$ac_link") 2>conftest.er1
16440
grep -v '^ *+' conftest.er1 >conftest.err
16442
cat conftest.err >&5
16443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444
(exit $ac_status); } && {
16445
test -z "$ac_c_werror_flag" ||
16446
test ! -s conftest.err
16447
} && test -s conftest$ac_exeext &&
16448
$as_test_x conftest$ac_exeext; then
16450
# We can link X programs with no special library path.
16453
echo "$as_me: failed program was:" >&5
16454
sed 's/^/| /' conftest.$ac_ext >&5
16457
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16459
# Don't even attempt the hair of trying to link an X program!
16460
for ac_extension in a so sl; do
16461
if test -r "$ac_dir/libX11.$ac_extension"; then
16462
ac_x_libraries=$ac_dir
16469
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16470
conftest$ac_exeext conftest.$ac_ext
16471
fi # $ac_x_libraries = no
16473
case $ac_x_includes,$ac_x_libraries in #(
16474
no,* | *,no | *\'*)
16475
# Didn't find X, or a directory has "'" in its name.
16476
ac_cv_have_x="have_x=no";; #(
16478
# Record where we found X for the cache.
16479
ac_cv_have_x="have_x=yes\
16480
ac_x_includes='$ac_x_includes'\
16481
ac_x_libraries='$ac_x_libraries'"
16487
eval "$ac_cv_have_x"
16490
if test "$have_x" != yes; then
16491
{ echo "$as_me:$LINENO: result: $have_x" >&5
16492
echo "${ECHO_T}$have_x" >&6; }
16495
# If each of the values was on the command line, it overrides each guess.
16496
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16497
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16498
# Update the cache value to reflect the command line values.
16499
ac_cv_have_x="have_x=yes\
16500
ac_x_includes='$x_includes'\
16501
ac_x_libraries='$x_libraries'"
16502
{ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
16503
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
16506
if test "$no_x" = yes; then
16507
# Not all programs may use this symbol, but it does not hurt to define it.
16509
cat >>confdefs.h <<\_ACEOF
16510
#define X_DISPLAY_MISSING 1
16513
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
16515
if test -n "$x_includes"; then
16516
X_CFLAGS="$X_CFLAGS -I$x_includes"
16519
# It would also be nice to do this for all -L options, not just this one.
16520
if test -n "$x_libraries"; then
16521
X_LIBS="$X_LIBS -L$x_libraries"
16522
# For Solaris; some versions of Sun CC require a space after -R and
16523
# others require no space. Words are not sufficient . . . .
16524
{ echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
16525
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
16526
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
16527
ac_xsave_c_werror_flag=$ac_c_werror_flag
16528
ac_c_werror_flag=yes
16529
cat >conftest.$ac_ext <<_ACEOF
16532
cat confdefs.h >>conftest.$ac_ext
16533
cat >>conftest.$ac_ext <<_ACEOF
16534
/* end confdefs.h. */
16544
rm -f conftest.$ac_objext conftest$ac_exeext
16545
if { (ac_try="$ac_link"
16546
case "(($ac_try" in
16547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548
*) ac_try_echo=$ac_try;;
16550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551
(eval "$ac_link") 2>conftest.er1
16553
grep -v '^ *+' conftest.er1 >conftest.err
16555
cat conftest.err >&5
16556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557
(exit $ac_status); } && {
16558
test -z "$ac_c_werror_flag" ||
16559
test ! -s conftest.err
16560
} && test -s conftest$ac_exeext &&
16561
$as_test_x conftest$ac_exeext; then
16562
{ echo "$as_me:$LINENO: result: no" >&5
16563
echo "${ECHO_T}no" >&6; }
16564
X_LIBS="$X_LIBS -R$x_libraries"
16566
echo "$as_me: failed program was:" >&5
16567
sed 's/^/| /' conftest.$ac_ext >&5
16569
LIBS="$ac_xsave_LIBS -R $x_libraries"
16570
cat >conftest.$ac_ext <<_ACEOF
16573
cat confdefs.h >>conftest.$ac_ext
16574
cat >>conftest.$ac_ext <<_ACEOF
16575
/* end confdefs.h. */
16585
rm -f conftest.$ac_objext conftest$ac_exeext
16586
if { (ac_try="$ac_link"
16587
case "(($ac_try" in
16588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589
*) ac_try_echo=$ac_try;;
16591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592
(eval "$ac_link") 2>conftest.er1
16594
grep -v '^ *+' conftest.er1 >conftest.err
16596
cat conftest.err >&5
16597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598
(exit $ac_status); } && {
16599
test -z "$ac_c_werror_flag" ||
16600
test ! -s conftest.err
16601
} && test -s conftest$ac_exeext &&
16602
$as_test_x conftest$ac_exeext; then
16603
{ echo "$as_me:$LINENO: result: yes" >&5
16604
echo "${ECHO_T}yes" >&6; }
16605
X_LIBS="$X_LIBS -R $x_libraries"
16607
echo "$as_me: failed program was:" >&5
16608
sed 's/^/| /' conftest.$ac_ext >&5
16610
{ echo "$as_me:$LINENO: result: neither works" >&5
16611
echo "${ECHO_T}neither works" >&6; }
16614
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16615
conftest$ac_exeext conftest.$ac_ext
16618
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16619
conftest$ac_exeext conftest.$ac_ext
16620
ac_c_werror_flag=$ac_xsave_c_werror_flag
16621
LIBS=$ac_xsave_LIBS
16624
# Check for system-dependent libraries X programs must link with.
16625
# Do this before checking for the system-independent R6 libraries
16626
# (-lICE), since we may need -lsocket or whatever for X linking.
16628
if test "$ISC" = yes; then
16629
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
16631
# Martyn Johnson says this is needed for Ultrix, if the X
16632
# libraries were built with DECnet support. And Karl Berry says
16633
# the Alpha needs dnet_stub (dnet does not exist).
16634
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
16635
cat >conftest.$ac_ext <<_ACEOF
16638
cat confdefs.h >>conftest.$ac_ext
16639
cat >>conftest.$ac_ext <<_ACEOF
16640
/* end confdefs.h. */
16642
/* Override any GCC internal prototype to avoid an error.
16643
Use char because int might match the return type of a GCC
16644
builtin and then its argument prototype would still apply. */
16648
char XOpenDisplay ();
16652
return XOpenDisplay ();
16657
rm -f conftest.$ac_objext conftest$ac_exeext
16658
if { (ac_try="$ac_link"
16659
case "(($ac_try" in
16660
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661
*) ac_try_echo=$ac_try;;
16663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664
(eval "$ac_link") 2>conftest.er1
16666
grep -v '^ *+' conftest.er1 >conftest.err
16668
cat conftest.err >&5
16669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670
(exit $ac_status); } && {
16671
test -z "$ac_c_werror_flag" ||
16672
test ! -s conftest.err
16673
} && test -s conftest$ac_exeext &&
16674
$as_test_x conftest$ac_exeext; then
16677
echo "$as_me: failed program was:" >&5
16678
sed 's/^/| /' conftest.$ac_ext >&5
16680
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
16681
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
16682
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
16683
echo $ECHO_N "(cached) $ECHO_C" >&6
16685
ac_check_lib_save_LIBS=$LIBS
16686
LIBS="-ldnet $LIBS"
16687
cat >conftest.$ac_ext <<_ACEOF
16690
cat confdefs.h >>conftest.$ac_ext
16691
cat >>conftest.$ac_ext <<_ACEOF
16692
/* end confdefs.h. */
16694
/* Override any GCC internal prototype to avoid an error.
16695
Use char because int might match the return type of a GCC
16696
builtin and then its argument prototype would still apply. */
16704
return dnet_ntoa ();
16709
rm -f conftest.$ac_objext conftest$ac_exeext
16710
if { (ac_try="$ac_link"
16711
case "(($ac_try" in
16712
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713
*) ac_try_echo=$ac_try;;
16715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716
(eval "$ac_link") 2>conftest.er1
16718
grep -v '^ *+' conftest.er1 >conftest.err
16720
cat conftest.err >&5
16721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722
(exit $ac_status); } && {
16723
test -z "$ac_c_werror_flag" ||
16724
test ! -s conftest.err
16725
} && test -s conftest$ac_exeext &&
16726
$as_test_x conftest$ac_exeext; then
16727
ac_cv_lib_dnet_dnet_ntoa=yes
16729
echo "$as_me: failed program was:" >&5
16730
sed 's/^/| /' conftest.$ac_ext >&5
16732
ac_cv_lib_dnet_dnet_ntoa=no
16735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16736
conftest$ac_exeext conftest.$ac_ext
16737
LIBS=$ac_check_lib_save_LIBS
16739
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16740
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
16741
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
16742
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
16745
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
16746
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
16747
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
16748
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
16749
echo $ECHO_N "(cached) $ECHO_C" >&6
16751
ac_check_lib_save_LIBS=$LIBS
16752
LIBS="-ldnet_stub $LIBS"
16753
cat >conftest.$ac_ext <<_ACEOF
16756
cat confdefs.h >>conftest.$ac_ext
16757
cat >>conftest.$ac_ext <<_ACEOF
16758
/* end confdefs.h. */
16760
/* Override any GCC internal prototype to avoid an error.
16761
Use char because int might match the return type of a GCC
16762
builtin and then its argument prototype would still apply. */
16770
return dnet_ntoa ();
16775
rm -f conftest.$ac_objext conftest$ac_exeext
16776
if { (ac_try="$ac_link"
16777
case "(($ac_try" in
16778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779
*) ac_try_echo=$ac_try;;
16781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782
(eval "$ac_link") 2>conftest.er1
16784
grep -v '^ *+' conftest.er1 >conftest.err
16786
cat conftest.err >&5
16787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788
(exit $ac_status); } && {
16789
test -z "$ac_c_werror_flag" ||
16790
test ! -s conftest.err
16791
} && test -s conftest$ac_exeext &&
16792
$as_test_x conftest$ac_exeext; then
16793
ac_cv_lib_dnet_stub_dnet_ntoa=yes
16795
echo "$as_me: failed program was:" >&5
16796
sed 's/^/| /' conftest.$ac_ext >&5
16798
ac_cv_lib_dnet_stub_dnet_ntoa=no
16801
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16802
conftest$ac_exeext conftest.$ac_ext
16803
LIBS=$ac_check_lib_save_LIBS
16805
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
16806
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
16807
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
16808
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
16814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16815
conftest$ac_exeext conftest.$ac_ext
16816
LIBS="$ac_xsave_LIBS"
16818
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
16819
# to get the SysV transport functions.
16820
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
16822
# The nsl library prevents programs from opening the X display
16823
# on Irix 5.2, according to T.E. Dickey.
16824
# The functions gethostbyname, getservbyname, and inet_addr are
16825
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
16826
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
16827
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
16828
if test "${ac_cv_func_gethostbyname+set}" = set; then
16829
echo $ECHO_N "(cached) $ECHO_C" >&6
16831
cat >conftest.$ac_ext <<_ACEOF
16834
cat confdefs.h >>conftest.$ac_ext
16835
cat >>conftest.$ac_ext <<_ACEOF
16836
/* end confdefs.h. */
16837
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
16838
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16839
#define gethostbyname innocuous_gethostbyname
16841
/* System header to define __stub macros and hopefully few prototypes,
16842
which can conflict with char gethostbyname (); below.
16843
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16844
<limits.h> exists even on freestanding compilers. */
16847
# include <limits.h>
16849
# include <assert.h>
16852
#undef gethostbyname
16854
/* Override any GCC internal prototype to avoid an error.
16855
Use char because int might match the return type of a GCC
16856
builtin and then its argument prototype would still apply. */
16860
char gethostbyname ();
16861
/* The GNU C library defines this for functions which it implements
16862
to always fail with ENOSYS. Some functions are actually named
16863
something starting with __ and the normal name is an alias. */
16864
#if defined __stub_gethostbyname || defined __stub___gethostbyname
16871
return gethostbyname ();
16876
rm -f conftest.$ac_objext conftest$ac_exeext
16877
if { (ac_try="$ac_link"
16878
case "(($ac_try" in
16879
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880
*) ac_try_echo=$ac_try;;
16882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883
(eval "$ac_link") 2>conftest.er1
16885
grep -v '^ *+' conftest.er1 >conftest.err
16887
cat conftest.err >&5
16888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889
(exit $ac_status); } && {
16890
test -z "$ac_c_werror_flag" ||
16891
test ! -s conftest.err
16892
} && test -s conftest$ac_exeext &&
16893
$as_test_x conftest$ac_exeext; then
16894
ac_cv_func_gethostbyname=yes
16896
echo "$as_me: failed program was:" >&5
16897
sed 's/^/| /' conftest.$ac_ext >&5
16899
ac_cv_func_gethostbyname=no
16902
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16903
conftest$ac_exeext conftest.$ac_ext
16905
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
16906
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
16908
if test $ac_cv_func_gethostbyname = no; then
16909
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16910
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
16911
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16912
echo $ECHO_N "(cached) $ECHO_C" >&6
16914
ac_check_lib_save_LIBS=$LIBS
16916
cat >conftest.$ac_ext <<_ACEOF
16919
cat confdefs.h >>conftest.$ac_ext
16920
cat >>conftest.$ac_ext <<_ACEOF
16921
/* end confdefs.h. */
16923
/* Override any GCC internal prototype to avoid an error.
16924
Use char because int might match the return type of a GCC
16925
builtin and then its argument prototype would still apply. */
16929
char gethostbyname ();
16933
return gethostbyname ();
16938
rm -f conftest.$ac_objext conftest$ac_exeext
16939
if { (ac_try="$ac_link"
16940
case "(($ac_try" in
16941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942
*) ac_try_echo=$ac_try;;
16944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945
(eval "$ac_link") 2>conftest.er1
16947
grep -v '^ *+' conftest.er1 >conftest.err
16949
cat conftest.err >&5
16950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951
(exit $ac_status); } && {
16952
test -z "$ac_c_werror_flag" ||
16953
test ! -s conftest.err
16954
} && test -s conftest$ac_exeext &&
16955
$as_test_x conftest$ac_exeext; then
16956
ac_cv_lib_nsl_gethostbyname=yes
16958
echo "$as_me: failed program was:" >&5
16959
sed 's/^/| /' conftest.$ac_ext >&5
16961
ac_cv_lib_nsl_gethostbyname=no
16964
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16965
conftest$ac_exeext conftest.$ac_ext
16966
LIBS=$ac_check_lib_save_LIBS
16968
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16969
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
16970
if test $ac_cv_lib_nsl_gethostbyname = yes; then
16971
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
16974
if test $ac_cv_lib_nsl_gethostbyname = no; then
16975
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
16976
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
16977
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
16978
echo $ECHO_N "(cached) $ECHO_C" >&6
16980
ac_check_lib_save_LIBS=$LIBS
16982
cat >conftest.$ac_ext <<_ACEOF
16985
cat confdefs.h >>conftest.$ac_ext
16986
cat >>conftest.$ac_ext <<_ACEOF
16987
/* end confdefs.h. */
16989
/* Override any GCC internal prototype to avoid an error.
16990
Use char because int might match the return type of a GCC
16991
builtin and then its argument prototype would still apply. */
16995
char gethostbyname ();
16999
return gethostbyname ();
17004
rm -f conftest.$ac_objext conftest$ac_exeext
17005
if { (ac_try="$ac_link"
17006
case "(($ac_try" in
17007
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008
*) ac_try_echo=$ac_try;;
17010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011
(eval "$ac_link") 2>conftest.er1
17013
grep -v '^ *+' conftest.er1 >conftest.err
17015
cat conftest.err >&5
17016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017
(exit $ac_status); } && {
17018
test -z "$ac_c_werror_flag" ||
17019
test ! -s conftest.err
17020
} && test -s conftest$ac_exeext &&
17021
$as_test_x conftest$ac_exeext; then
17022
ac_cv_lib_bsd_gethostbyname=yes
17024
echo "$as_me: failed program was:" >&5
17025
sed 's/^/| /' conftest.$ac_ext >&5
17027
ac_cv_lib_bsd_gethostbyname=no
17030
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17031
conftest$ac_exeext conftest.$ac_ext
17032
LIBS=$ac_check_lib_save_LIBS
17034
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
17035
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
17036
if test $ac_cv_lib_bsd_gethostbyname = yes; then
17037
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
17043
# lieder@skyler.mavd.honeywell.com says without -lsocket,
17044
# socket/setsockopt and other routines are undefined under SCO ODT
17045
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
17046
# on later versions), says Simon Leinen: it contains gethostby*
17047
# variants that don't use the name server (or something). -lsocket
17048
# must be given before -lnsl if both are needed. We assume that
17049
# if connect needs -lnsl, so does gethostbyname.
17050
{ echo "$as_me:$LINENO: checking for connect" >&5
17051
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
17052
if test "${ac_cv_func_connect+set}" = set; then
17053
echo $ECHO_N "(cached) $ECHO_C" >&6
17055
cat >conftest.$ac_ext <<_ACEOF
17058
cat confdefs.h >>conftest.$ac_ext
17059
cat >>conftest.$ac_ext <<_ACEOF
17060
/* end confdefs.h. */
17061
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
17062
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17063
#define connect innocuous_connect
17065
/* System header to define __stub macros and hopefully few prototypes,
17066
which can conflict with char connect (); below.
17067
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17068
<limits.h> exists even on freestanding compilers. */
17071
# include <limits.h>
17073
# include <assert.h>
17078
/* Override any GCC internal prototype to avoid an error.
17079
Use char because int might match the return type of a GCC
17080
builtin and then its argument prototype would still apply. */
17085
/* The GNU C library defines this for functions which it implements
17086
to always fail with ENOSYS. Some functions are actually named
17087
something starting with __ and the normal name is an alias. */
17088
#if defined __stub_connect || defined __stub___connect
17100
rm -f conftest.$ac_objext conftest$ac_exeext
17101
if { (ac_try="$ac_link"
17102
case "(($ac_try" in
17103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104
*) ac_try_echo=$ac_try;;
17106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107
(eval "$ac_link") 2>conftest.er1
17109
grep -v '^ *+' conftest.er1 >conftest.err
17111
cat conftest.err >&5
17112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113
(exit $ac_status); } && {
17114
test -z "$ac_c_werror_flag" ||
17115
test ! -s conftest.err
17116
} && test -s conftest$ac_exeext &&
17117
$as_test_x conftest$ac_exeext; then
17118
ac_cv_func_connect=yes
17120
echo "$as_me: failed program was:" >&5
17121
sed 's/^/| /' conftest.$ac_ext >&5
17123
ac_cv_func_connect=no
17126
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17127
conftest$ac_exeext conftest.$ac_ext
17129
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
17130
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
17132
if test $ac_cv_func_connect = no; then
17133
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
17134
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
17135
if test "${ac_cv_lib_socket_connect+set}" = set; then
17136
echo $ECHO_N "(cached) $ECHO_C" >&6
17138
ac_check_lib_save_LIBS=$LIBS
17139
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
17140
cat >conftest.$ac_ext <<_ACEOF
17143
cat confdefs.h >>conftest.$ac_ext
17144
cat >>conftest.$ac_ext <<_ACEOF
17145
/* end confdefs.h. */
17147
/* Override any GCC internal prototype to avoid an error.
17148
Use char because int might match the return type of a GCC
17149
builtin and then its argument prototype would still apply. */
17162
rm -f conftest.$ac_objext conftest$ac_exeext
17163
if { (ac_try="$ac_link"
17164
case "(($ac_try" in
17165
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166
*) ac_try_echo=$ac_try;;
17168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169
(eval "$ac_link") 2>conftest.er1
17171
grep -v '^ *+' conftest.er1 >conftest.err
17173
cat conftest.err >&5
17174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175
(exit $ac_status); } && {
17176
test -z "$ac_c_werror_flag" ||
17177
test ! -s conftest.err
17178
} && test -s conftest$ac_exeext &&
17179
$as_test_x conftest$ac_exeext; then
17180
ac_cv_lib_socket_connect=yes
17182
echo "$as_me: failed program was:" >&5
17183
sed 's/^/| /' conftest.$ac_ext >&5
17185
ac_cv_lib_socket_connect=no
17188
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17189
conftest$ac_exeext conftest.$ac_ext
17190
LIBS=$ac_check_lib_save_LIBS
17192
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
17193
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
17194
if test $ac_cv_lib_socket_connect = yes; then
17195
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
17200
# Guillermo Gomez says -lposix is necessary on A/UX.
17201
{ echo "$as_me:$LINENO: checking for remove" >&5
17202
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
17203
if test "${ac_cv_func_remove+set}" = set; then
17204
echo $ECHO_N "(cached) $ECHO_C" >&6
17206
cat >conftest.$ac_ext <<_ACEOF
17209
cat confdefs.h >>conftest.$ac_ext
17210
cat >>conftest.$ac_ext <<_ACEOF
17211
/* end confdefs.h. */
17212
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
17213
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17214
#define remove innocuous_remove
17216
/* System header to define __stub macros and hopefully few prototypes,
17217
which can conflict with char remove (); below.
17218
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17219
<limits.h> exists even on freestanding compilers. */
17222
# include <limits.h>
17224
# include <assert.h>
17229
/* Override any GCC internal prototype to avoid an error.
17230
Use char because int might match the return type of a GCC
17231
builtin and then its argument prototype would still apply. */
17236
/* The GNU C library defines this for functions which it implements
17237
to always fail with ENOSYS. Some functions are actually named
17238
something starting with __ and the normal name is an alias. */
17239
#if defined __stub_remove || defined __stub___remove
17251
rm -f conftest.$ac_objext conftest$ac_exeext
17252
if { (ac_try="$ac_link"
17253
case "(($ac_try" in
17254
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255
*) ac_try_echo=$ac_try;;
17257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258
(eval "$ac_link") 2>conftest.er1
17260
grep -v '^ *+' conftest.er1 >conftest.err
17262
cat conftest.err >&5
17263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264
(exit $ac_status); } && {
17265
test -z "$ac_c_werror_flag" ||
17266
test ! -s conftest.err
17267
} && test -s conftest$ac_exeext &&
17268
$as_test_x conftest$ac_exeext; then
17269
ac_cv_func_remove=yes
17271
echo "$as_me: failed program was:" >&5
17272
sed 's/^/| /' conftest.$ac_ext >&5
17274
ac_cv_func_remove=no
17277
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17278
conftest$ac_exeext conftest.$ac_ext
17280
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
17281
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
17283
if test $ac_cv_func_remove = no; then
17284
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
17285
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
17286
if test "${ac_cv_lib_posix_remove+set}" = set; then
17287
echo $ECHO_N "(cached) $ECHO_C" >&6
17289
ac_check_lib_save_LIBS=$LIBS
17290
LIBS="-lposix $LIBS"
17291
cat >conftest.$ac_ext <<_ACEOF
17294
cat confdefs.h >>conftest.$ac_ext
17295
cat >>conftest.$ac_ext <<_ACEOF
17296
/* end confdefs.h. */
17298
/* Override any GCC internal prototype to avoid an error.
17299
Use char because int might match the return type of a GCC
17300
builtin and then its argument prototype would still apply. */
17313
rm -f conftest.$ac_objext conftest$ac_exeext
17314
if { (ac_try="$ac_link"
17315
case "(($ac_try" in
17316
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317
*) ac_try_echo=$ac_try;;
17319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320
(eval "$ac_link") 2>conftest.er1
17322
grep -v '^ *+' conftest.er1 >conftest.err
17324
cat conftest.err >&5
17325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326
(exit $ac_status); } && {
17327
test -z "$ac_c_werror_flag" ||
17328
test ! -s conftest.err
17329
} && test -s conftest$ac_exeext &&
17330
$as_test_x conftest$ac_exeext; then
17331
ac_cv_lib_posix_remove=yes
17333
echo "$as_me: failed program was:" >&5
17334
sed 's/^/| /' conftest.$ac_ext >&5
17336
ac_cv_lib_posix_remove=no
17339
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17340
conftest$ac_exeext conftest.$ac_ext
17341
LIBS=$ac_check_lib_save_LIBS
17343
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
17344
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
17345
if test $ac_cv_lib_posix_remove = yes; then
17346
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
17351
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
17352
{ echo "$as_me:$LINENO: checking for shmat" >&5
17353
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
17354
if test "${ac_cv_func_shmat+set}" = set; then
17355
echo $ECHO_N "(cached) $ECHO_C" >&6
17357
cat >conftest.$ac_ext <<_ACEOF
17360
cat confdefs.h >>conftest.$ac_ext
17361
cat >>conftest.$ac_ext <<_ACEOF
17362
/* end confdefs.h. */
17363
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
17364
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17365
#define shmat innocuous_shmat
17367
/* System header to define __stub macros and hopefully few prototypes,
17368
which can conflict with char shmat (); below.
17369
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17370
<limits.h> exists even on freestanding compilers. */
17373
# include <limits.h>
17375
# include <assert.h>
17380
/* Override any GCC internal prototype to avoid an error.
17381
Use char because int might match the return type of a GCC
17382
builtin and then its argument prototype would still apply. */
17387
/* The GNU C library defines this for functions which it implements
17388
to always fail with ENOSYS. Some functions are actually named
17389
something starting with __ and the normal name is an alias. */
17390
#if defined __stub_shmat || defined __stub___shmat
17402
rm -f conftest.$ac_objext conftest$ac_exeext
17403
if { (ac_try="$ac_link"
17404
case "(($ac_try" in
17405
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406
*) ac_try_echo=$ac_try;;
17408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409
(eval "$ac_link") 2>conftest.er1
17411
grep -v '^ *+' conftest.er1 >conftest.err
17413
cat conftest.err >&5
17414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415
(exit $ac_status); } && {
17416
test -z "$ac_c_werror_flag" ||
17417
test ! -s conftest.err
17418
} && test -s conftest$ac_exeext &&
17419
$as_test_x conftest$ac_exeext; then
17420
ac_cv_func_shmat=yes
17422
echo "$as_me: failed program was:" >&5
17423
sed 's/^/| /' conftest.$ac_ext >&5
17425
ac_cv_func_shmat=no
17428
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17429
conftest$ac_exeext conftest.$ac_ext
17431
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
17432
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
17434
if test $ac_cv_func_shmat = no; then
17435
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
17436
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
17437
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
17438
echo $ECHO_N "(cached) $ECHO_C" >&6
17440
ac_check_lib_save_LIBS=$LIBS
17442
cat >conftest.$ac_ext <<_ACEOF
17445
cat confdefs.h >>conftest.$ac_ext
17446
cat >>conftest.$ac_ext <<_ACEOF
17447
/* end confdefs.h. */
17449
/* Override any GCC internal prototype to avoid an error.
17450
Use char because int might match the return type of a GCC
17451
builtin and then its argument prototype would still apply. */
17464
rm -f conftest.$ac_objext conftest$ac_exeext
17465
if { (ac_try="$ac_link"
17466
case "(($ac_try" in
17467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468
*) ac_try_echo=$ac_try;;
17470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471
(eval "$ac_link") 2>conftest.er1
17473
grep -v '^ *+' conftest.er1 >conftest.err
17475
cat conftest.err >&5
17476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477
(exit $ac_status); } && {
17478
test -z "$ac_c_werror_flag" ||
17479
test ! -s conftest.err
17480
} && test -s conftest$ac_exeext &&
17481
$as_test_x conftest$ac_exeext; then
17482
ac_cv_lib_ipc_shmat=yes
17484
echo "$as_me: failed program was:" >&5
17485
sed 's/^/| /' conftest.$ac_ext >&5
17487
ac_cv_lib_ipc_shmat=no
17490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17491
conftest$ac_exeext conftest.$ac_ext
17492
LIBS=$ac_check_lib_save_LIBS
17494
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
17495
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
17496
if test $ac_cv_lib_ipc_shmat = yes; then
17497
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
17503
# Check for libraries that X11R6 Xt/Xaw programs need.
17504
ac_save_LDFLAGS=$LDFLAGS
17505
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
17506
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
17507
# check for ICE first), but we must link in the order -lSM -lICE or
17508
# we get undefined symbols. So assume we have SM if we have ICE.
17509
# These have to be linked with before -lX11, unlike the other
17510
# libraries we check for below, so use a different variable.
17511
# John Interrante, Karl Berry
17512
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
17513
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
17514
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
17515
echo $ECHO_N "(cached) $ECHO_C" >&6
17517
ac_check_lib_save_LIBS=$LIBS
17518
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
17519
cat >conftest.$ac_ext <<_ACEOF
17522
cat confdefs.h >>conftest.$ac_ext
17523
cat >>conftest.$ac_ext <<_ACEOF
17524
/* end confdefs.h. */
17526
/* Override any GCC internal prototype to avoid an error.
17527
Use char because int might match the return type of a GCC
17528
builtin and then its argument prototype would still apply. */
17532
char IceConnectionNumber ();
17536
return IceConnectionNumber ();
17541
rm -f conftest.$ac_objext conftest$ac_exeext
17542
if { (ac_try="$ac_link"
17543
case "(($ac_try" in
17544
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545
*) ac_try_echo=$ac_try;;
17547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548
(eval "$ac_link") 2>conftest.er1
17550
grep -v '^ *+' conftest.er1 >conftest.err
17552
cat conftest.err >&5
17553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554
(exit $ac_status); } && {
17555
test -z "$ac_c_werror_flag" ||
17556
test ! -s conftest.err
17557
} && test -s conftest$ac_exeext &&
17558
$as_test_x conftest$ac_exeext; then
17559
ac_cv_lib_ICE_IceConnectionNumber=yes
17561
echo "$as_me: failed program was:" >&5
17562
sed 's/^/| /' conftest.$ac_ext >&5
17564
ac_cv_lib_ICE_IceConnectionNumber=no
17567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17568
conftest$ac_exeext conftest.$ac_ext
17569
LIBS=$ac_check_lib_save_LIBS
17571
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
17572
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
17573
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
17574
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
17577
LDFLAGS=$ac_save_LDFLAGS
17581
if test "$no_x" = yes; then
17584
GUI_LIBS="-lXt -lXext -lX11 $X_PRE_LIBS $X_EXTRA_LIBS"
17587
save_CFLAGS=$CFLAGS
17588
save_CPPFLAGS=$CPPFLAGS
17589
save_LDFLAGS=$LDFLAGS
17594
CFLAGS="$X_CFLAGS $CFLAGS"
17595
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
17596
LDFLAGS="$X_LIBS $LDFLAGS"
17599
true) { echo "$as_me:$LINENO: checking for _XEditResCheckMessages in -lXmu" >&5
17600
echo $ECHO_N "checking for _XEditResCheckMessages in -lXmu... $ECHO_C" >&6; }
17601
if test "${ac_cv_lib_Xmu__XEditResCheckMessages+set}" = set; then
17602
echo $ECHO_N "(cached) $ECHO_C" >&6
17604
ac_check_lib_save_LIBS=$LIBS
17606
cat >conftest.$ac_ext <<_ACEOF
17609
cat confdefs.h >>conftest.$ac_ext
17610
cat >>conftest.$ac_ext <<_ACEOF
17611
/* end confdefs.h. */
17613
/* Override any GCC internal prototype to avoid an error.
17614
Use char because int might match the return type of a GCC
17615
builtin and then its argument prototype would still apply. */
17619
char _XEditResCheckMessages ();
17623
return _XEditResCheckMessages ();
17628
rm -f conftest.$ac_objext conftest$ac_exeext
17629
if { (ac_try="$ac_link"
17630
case "(($ac_try" in
17631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632
*) ac_try_echo=$ac_try;;
17634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635
(eval "$ac_link") 2>conftest.er1
17637
grep -v '^ *+' conftest.er1 >conftest.err
17639
cat conftest.err >&5
17640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641
(exit $ac_status); } && {
17642
test -z "$ac_c_werror_flag" ||
17643
test ! -s conftest.err
17644
} && test -s conftest$ac_exeext &&
17645
$as_test_x conftest$ac_exeext; then
17646
ac_cv_lib_Xmu__XEditResCheckMessages=yes
17648
echo "$as_me: failed program was:" >&5
17649
sed 's/^/| /' conftest.$ac_ext >&5
17651
ac_cv_lib_Xmu__XEditResCheckMessages=no
17654
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17655
conftest$ac_exeext conftest.$ac_ext
17656
LIBS=$ac_check_lib_save_LIBS
17658
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu__XEditResCheckMessages" >&5
17659
echo "${ECHO_T}$ac_cv_lib_Xmu__XEditResCheckMessages" >&6; }
17660
if test $ac_cv_lib_Xmu__XEditResCheckMessages = yes; then
17661
GUI_LIBS="-lXmu $GUI_LIBS"; cat >>confdefs.h <<\_ACEOF
17662
#define WITH_EDITRES 1
17670
if test "$ac_cv_lib_Xmu__XEditResCheckMessages" != yes; then
17671
{ echo "$as_me:$LINENO: result: --> support for EditRes protocol is disabled" >&5
17672
echo "${ECHO_T}--> support for EditRes protocol is disabled" >&6; }
17675
{ echo "$as_me:$LINENO: checking for main in -lXp" >&5
17676
echo $ECHO_N "checking for main in -lXp... $ECHO_C" >&6; }
17677
if test "${ac_cv_lib_Xp_main+set}" = set; then
17678
echo $ECHO_N "(cached) $ECHO_C" >&6
17680
ac_check_lib_save_LIBS=$LIBS
17682
cat >conftest.$ac_ext <<_ACEOF
17685
cat confdefs.h >>conftest.$ac_ext
17686
cat >>conftest.$ac_ext <<_ACEOF
17687
/* end confdefs.h. */
17698
rm -f conftest.$ac_objext conftest$ac_exeext
17699
if { (ac_try="$ac_link"
17700
case "(($ac_try" in
17701
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702
*) ac_try_echo=$ac_try;;
17704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705
(eval "$ac_link") 2>conftest.er1
17707
grep -v '^ *+' conftest.er1 >conftest.err
17709
cat conftest.err >&5
17710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711
(exit $ac_status); } && {
17712
test -z "$ac_c_werror_flag" ||
17713
test ! -s conftest.err
17714
} && test -s conftest$ac_exeext &&
17715
$as_test_x conftest$ac_exeext; then
17716
ac_cv_lib_Xp_main=yes
17718
echo "$as_me: failed program was:" >&5
17719
sed 's/^/| /' conftest.$ac_ext >&5
17721
ac_cv_lib_Xp_main=no
17724
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17725
conftest$ac_exeext conftest.$ac_ext
17726
LIBS=$ac_check_lib_save_LIBS
17728
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_main" >&5
17729
echo "${ECHO_T}$ac_cv_lib_Xp_main" >&6; }
17730
if test $ac_cv_lib_Xp_main = yes; then
17731
GUI_LIBS="-lXp $GUI_LIBS"
17735
{ echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
17736
echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
17737
if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
17738
echo $ECHO_N "(cached) $ECHO_C" >&6
17740
ac_check_lib_save_LIBS=$LIBS
17742
cat >conftest.$ac_ext <<_ACEOF
17745
cat confdefs.h >>conftest.$ac_ext
17746
cat >>conftest.$ac_ext <<_ACEOF
17747
/* end confdefs.h. */
17749
/* Override any GCC internal prototype to avoid an error.
17750
Use char because int might match the return type of a GCC
17751
builtin and then its argument prototype would still apply. */
17755
char XpmCreatePixmapFromData ();
17759
return XpmCreatePixmapFromData ();
17764
rm -f conftest.$ac_objext conftest$ac_exeext
17765
if { (ac_try="$ac_link"
17766
case "(($ac_try" in
17767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768
*) ac_try_echo=$ac_try;;
17770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771
(eval "$ac_link") 2>conftest.er1
17773
grep -v '^ *+' conftest.er1 >conftest.err
17775
cat conftest.err >&5
17776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777
(exit $ac_status); } && {
17778
test -z "$ac_c_werror_flag" ||
17779
test ! -s conftest.err
17780
} && test -s conftest$ac_exeext &&
17781
$as_test_x conftest$ac_exeext; then
17782
ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
17784
echo "$as_me: failed program was:" >&5
17785
sed 's/^/| /' conftest.$ac_ext >&5
17787
ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
17790
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17791
conftest$ac_exeext conftest.$ac_ext
17792
LIBS=$ac_check_lib_save_LIBS
17794
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
17795
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
17796
if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
17797
GUI_LIBS="-lXpm $GUI_LIBS"; cat >>confdefs.h <<\_ACEOF
17804
if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then
17807
for ac_header in xpm.h X11/xpm.h
17809
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17810
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17811
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17812
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17813
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17814
echo $ECHO_N "(cached) $ECHO_C" >&6
17816
ac_res=`eval echo '${'$as_ac_Header'}'`
17817
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17818
echo "${ECHO_T}$ac_res" >&6; }
17820
# Is the header compilable?
17821
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17822
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17823
cat >conftest.$ac_ext <<_ACEOF
17826
cat confdefs.h >>conftest.$ac_ext
17827
cat >>conftest.$ac_ext <<_ACEOF
17828
/* end confdefs.h. */
17829
$ac_includes_default
17830
#include <$ac_header>
17832
rm -f conftest.$ac_objext
17833
if { (ac_try="$ac_compile"
17834
case "(($ac_try" in
17835
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836
*) ac_try_echo=$ac_try;;
17838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839
(eval "$ac_compile") 2>conftest.er1
17841
grep -v '^ *+' conftest.er1 >conftest.err
17843
cat conftest.err >&5
17844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845
(exit $ac_status); } && {
17846
test -z "$ac_c_werror_flag" ||
17847
test ! -s conftest.err
17848
} && test -s conftest.$ac_objext; then
17849
ac_header_compiler=yes
17851
echo "$as_me: failed program was:" >&5
17852
sed 's/^/| /' conftest.$ac_ext >&5
17854
ac_header_compiler=no
17857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17858
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17859
echo "${ECHO_T}$ac_header_compiler" >&6; }
17861
# Is the header present?
17862
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17863
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17864
cat >conftest.$ac_ext <<_ACEOF
17867
cat confdefs.h >>conftest.$ac_ext
17868
cat >>conftest.$ac_ext <<_ACEOF
17869
/* end confdefs.h. */
17870
#include <$ac_header>
17872
if { (ac_try="$ac_cpp conftest.$ac_ext"
17873
case "(($ac_try" in
17874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875
*) ac_try_echo=$ac_try;;
17877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17880
grep -v '^ *+' conftest.er1 >conftest.err
17882
cat conftest.err >&5
17883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884
(exit $ac_status); } >/dev/null && {
17885
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17886
test ! -s conftest.err
17888
ac_header_preproc=yes
17890
echo "$as_me: failed program was:" >&5
17891
sed 's/^/| /' conftest.$ac_ext >&5
17893
ac_header_preproc=no
17896
rm -f conftest.err conftest.$ac_ext
17897
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17898
echo "${ECHO_T}$ac_header_preproc" >&6; }
17900
# So? What about this header?
17901
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17903
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17904
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17905
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17906
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17907
ac_header_preproc=yes
17910
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17911
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17912
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17913
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17914
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17915
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17916
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17917
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17918
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17919
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17920
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17921
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17925
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17926
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17927
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17928
echo $ECHO_N "(cached) $ECHO_C" >&6
17930
eval "$as_ac_Header=\$ac_header_preproc"
17932
ac_res=`eval echo '${'$as_ac_Header'}'`
17933
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17934
echo "${ECHO_T}$ac_res" >&6; }
17937
if test `eval echo '${'$as_ac_Header'}'` = yes; then
17938
cat >>confdefs.h <<_ACEOF
17939
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17949
CFLAGS=$save_CFLAGS
17950
CPPFLAGS=$save_CPPFLAGS
17951
LDFLAGS=$save_LDFLAGS
17958
# Check whether --with-motif_library was given.
17959
if test "${with_motif_library+set}" = set; then
17960
withval=$with_motif_library; motif_library="$withval"
17963
if test "x$motif_library" = "x"
17969
save_CFLAGS=$CFLAGS
17970
save_CPPFLAGS=$CPPFLAGS
17971
save_LDFLAGS=$LDFLAGS
17975
{ echo "$as_me:$LINENO: checking for a Motif >= 1002 compatible API" >&5
17976
echo $ECHO_N "checking for a Motif >= 1002 compatible API... $ECHO_C" >&6; }
17977
if test "${acx_cv_motif+set}" = set; then
17978
echo $ECHO_N "(cached) $ECHO_C" >&6
17980
if test "${acx_cv_motif_library+set}" = set; then
17981
echo $ECHO_N "(cached) $ECHO_C" >&6
17983
acx_cv_motif_library=$motif_library
17986
LIBS="$acx_cv_motif_library $GUI_LIBS"
17987
CFLAGS="$X_CFLAGS $CFLAGS"
17988
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
17989
LDFLAGS="$X_LIBS $LDFLAGS"
17990
if test "$cross_compiling" = yes; then
17994
cat >conftest.$ac_ext <<_ACEOF
17997
cat confdefs.h >>conftest.$ac_ext
17998
cat >>conftest.$ac_ext <<_ACEOF
17999
/* end confdefs.h. */
18001
#include <Xm/XmAll.h>
18005
XmRegisterConverters();
18006
vlibn = xmUseVersion;
18007
if (vincn < 1002) {
18010
if (vincn != vlibn) {
18017
rm -f conftest$ac_exeext
18018
if { (ac_try="$ac_link"
18019
case "(($ac_try" in
18020
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021
*) ac_try_echo=$ac_try;;
18023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024
(eval "$ac_link") 2>&5
18026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18028
{ (case "(($ac_try" in
18029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030
*) ac_try_echo=$ac_try;;
18032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033
(eval "$ac_try") 2>&5
18035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036
(exit $ac_status); }; }; then
18039
echo "$as_me: program exited with status $ac_status" >&5
18040
echo "$as_me: failed program was:" >&5
18041
sed 's/^/| /' conftest.$ac_ext >&5
18043
( exit $ac_status )
18046
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18052
{ echo "$as_me:$LINENO: result: $acx_cv_motif" >&5
18053
echo "${ECHO_T}$acx_cv_motif" >&6; }
18054
if test "$acx_cv_motif" = "yes"
18056
cat >>confdefs.h <<\_ACEOF
18057
#define HAVE_MOTIF 1
18060
MOTIF_LIB="$acx_cv_motif_library"
18063
{ echo "$as_me:$LINENO: checking whether the Motif library is actually a LessTif library" >&5
18064
echo $ECHO_N "checking whether the Motif library is actually a LessTif library... $ECHO_C" >&6; }
18065
if test "${ice_cv_have_lesstif+set}" = set; then
18066
echo $ECHO_N "(cached) $ECHO_C" >&6
18068
cat >conftest.$ac_ext <<_ACEOF
18071
cat confdefs.h >>conftest.$ac_ext
18072
cat >>conftest.$ac_ext <<_ACEOF
18073
/* end confdefs.h. */
18075
#ifdef LesstifVersion
18080
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18081
$EGREP "yes" >/dev/null 2>&1; then
18082
ice_cv_have_lesstif=yes
18084
ice_cv_have_lesstif=no
18090
{ echo "$as_me:$LINENO: result: $ice_cv_have_lesstif" >&5
18091
echo "${ECHO_T}$ice_cv_have_lesstif" >&6; }
18092
if test "$ice_cv_have_lesstif" = yes; then
18093
cat >>confdefs.h <<\_ACEOF
18094
#define HAVE_LESSTIF 1
18100
{ echo "$as_me:$LINENO: checking whether _XmVersionString can be referred to" >&5
18101
echo $ECHO_N "checking whether _XmVersionString can be referred to... $ECHO_C" >&6; }
18102
if test "${acx_cv__xmversionstring+set}" = set; then
18103
echo $ECHO_N "(cached) $ECHO_C" >&6
18105
cat >conftest.$ac_ext <<_ACEOF
18108
cat confdefs.h >>conftest.$ac_ext
18109
cat >>conftest.$ac_ext <<_ACEOF
18110
/* end confdefs.h. */
18115
extern char _XmVersionString[]; printf("%s\n", _XmVersionString);
18120
rm -f conftest.$ac_objext conftest$ac_exeext
18121
if { (ac_try="$ac_link"
18122
case "(($ac_try" in
18123
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124
*) ac_try_echo=$ac_try;;
18126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127
(eval "$ac_link") 2>conftest.er1
18129
grep -v '^ *+' conftest.er1 >conftest.err
18131
cat conftest.err >&5
18132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133
(exit $ac_status); } && {
18134
test -z "$ac_c_werror_flag" ||
18135
test ! -s conftest.err
18136
} && test -s conftest$ac_exeext &&
18137
$as_test_x conftest$ac_exeext; then
18138
acx_cv__xmversionstring="yes"
18140
echo "$as_me: failed program was:" >&5
18141
sed 's/^/| /' conftest.$ac_ext >&5
18143
acx_cv__xmversionstring="no"
18147
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18148
conftest$ac_exeext conftest.$ac_ext
18151
{ echo "$as_me:$LINENO: result: $acx_cv__xmversionstring" >&5
18152
echo "${ECHO_T}$acx_cv__xmversionstring" >&6; }
18153
if test "$acx_cv__xmversionstring" = "yes"
18155
cat >>confdefs.h <<\_ACEOF
18156
#define HAVE__XMVERSIONSTRING 1
18171
CFLAGS=$save_CFLAGS
18172
CPPFLAGS=$save_CPPFLAGS
18173
LDFLAGS=$save_LDFLAGS
18177
if test "$acx_cv_motif" = "no"; then
18181
{ { echo "$as_me:$LINENO: error: M*tif has not been found" >&5
18182
echo "$as_me: error: M*tif has not been found" >&2;}
18183
{ (exit 1); exit 1; }; }
18185
GUI_LIBS="$MOTIF_LIB $GUI_LIBS"
18187
GUI_FLAGS="$X_CFLAGS"
18190
xsave_CPPFLAGS="$CPPFLAGS"
18192
CPPFLAGS="$CPPFLAGS $GUI_FLAGS"
18193
LIBS="$X_LIBS $GUI_LIBS $LIBS"
18195
if test $bundled_xbae = false
18197
{ echo "$as_me:$LINENO: checking for XbaeCreateMatrix in -lXbae" >&5
18198
echo $ECHO_N "checking for XbaeCreateMatrix in -lXbae... $ECHO_C" >&6; }
18199
if test "${ac_cv_lib_Xbae_XbaeCreateMatrix+set}" = set; then
18200
echo $ECHO_N "(cached) $ECHO_C" >&6
18202
ac_check_lib_save_LIBS=$LIBS
18203
LIBS="-lXbae $LIBS"
18204
cat >conftest.$ac_ext <<_ACEOF
18207
cat confdefs.h >>conftest.$ac_ext
18208
cat >>conftest.$ac_ext <<_ACEOF
18209
/* end confdefs.h. */
18211
/* Override any GCC internal prototype to avoid an error.
18212
Use char because int might match the return type of a GCC
18213
builtin and then its argument prototype would still apply. */
18217
char XbaeCreateMatrix ();
18221
return XbaeCreateMatrix ();
18226
rm -f conftest.$ac_objext conftest$ac_exeext
18227
if { (ac_try="$ac_link"
18228
case "(($ac_try" in
18229
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230
*) ac_try_echo=$ac_try;;
18232
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233
(eval "$ac_link") 2>conftest.er1
18235
grep -v '^ *+' conftest.er1 >conftest.err
18237
cat conftest.err >&5
18238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239
(exit $ac_status); } && {
18240
test -z "$ac_c_werror_flag" ||
18241
test ! -s conftest.err
18242
} && test -s conftest$ac_exeext &&
18243
$as_test_x conftest$ac_exeext; then
18244
ac_cv_lib_Xbae_XbaeCreateMatrix=yes
18246
echo "$as_me: failed program was:" >&5
18247
sed 's/^/| /' conftest.$ac_ext >&5
18249
ac_cv_lib_Xbae_XbaeCreateMatrix=no
18252
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18253
conftest$ac_exeext conftest.$ac_ext
18254
LIBS=$ac_check_lib_save_LIBS
18256
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xbae_XbaeCreateMatrix" >&5
18257
echo "${ECHO_T}$ac_cv_lib_Xbae_XbaeCreateMatrix" >&6; }
18258
if test $ac_cv_lib_Xbae_XbaeCreateMatrix = yes; then
18259
XBAE_LIB="-lXbae";cat >>confdefs.h <<\_ACEOF
18260
#define HAVE_LIBXBAE 1
18266
if test -z "$XBAE_LIB"
18268
{ echo "$as_me:$LINENO: result: --> Bundled version of Xbae library will be used" >&5
18269
echo "${ECHO_T}--> Bundled version of Xbae library will be used" >&6; }
18270
XBAE_LIB='$(TOP)/Xbae/Xbae/libXbae.a'
18271
XBAE_INC='-I$(TOP)/Xbae'
18272
xbae_dir="Xbae/Xbae"
18274
{ echo "$as_me:$LINENO: result: --> Good. Seems you have compatible version of Xbae installed" >&5
18275
echo "${ECHO_T}--> Good. Seems you have compatible version of Xbae installed" >&6; }
18279
true) { echo "$as_me:$LINENO: checking for get_help in -lhlpclient" >&5
18280
echo $ECHO_N "checking for get_help in -lhlpclient... $ECHO_C" >&6; }
18281
if test "${ac_cv_lib_hlpclient_get_help+set}" = set; then
18282
echo $ECHO_N "(cached) $ECHO_C" >&6
18284
ac_check_lib_save_LIBS=$LIBS
18285
LIBS="-lhlpclient $LIBS"
18286
cat >conftest.$ac_ext <<_ACEOF
18289
cat confdefs.h >>conftest.$ac_ext
18290
cat >>conftest.$ac_ext <<_ACEOF
18291
/* end confdefs.h. */
18293
/* Override any GCC internal prototype to avoid an error.
18294
Use char because int might match the return type of a GCC
18295
builtin and then its argument prototype would still apply. */
18303
return get_help ();
18308
rm -f conftest.$ac_objext conftest$ac_exeext
18309
if { (ac_try="$ac_link"
18310
case "(($ac_try" in
18311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312
*) ac_try_echo=$ac_try;;
18314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315
(eval "$ac_link") 2>conftest.er1
18317
grep -v '^ *+' conftest.er1 >conftest.err
18319
cat conftest.err >&5
18320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321
(exit $ac_status); } && {
18322
test -z "$ac_c_werror_flag" ||
18323
test ! -s conftest.err
18324
} && test -s conftest$ac_exeext &&
18325
$as_test_x conftest$ac_exeext; then
18326
ac_cv_lib_hlpclient_get_help=yes
18328
echo "$as_me: failed program was:" >&5
18329
sed 's/^/| /' conftest.$ac_ext >&5
18331
ac_cv_lib_hlpclient_get_help=no
18334
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18335
conftest$ac_exeext conftest.$ac_ext
18336
LIBS=$ac_check_lib_save_LIBS
18338
{ echo "$as_me:$LINENO: result: $ac_cv_lib_hlpclient_get_help" >&5
18339
echo "${ECHO_T}$ac_cv_lib_hlpclient_get_help" >&6; }
18340
if test $ac_cv_lib_hlpclient_get_help = yes; then
18341
LIBHELP_LIB="-lhlpclient"; cat >>confdefs.h <<\_ACEOF
18342
#define WITH_LIBHELP 1
18350
if test $xmhtml = true
18354
# Check whether --with-xmhtml_library was given.
18355
if test "${with_xmhtml_library+set}" = set; then
18356
withval=$with_xmhtml_library; xmhtml_library="$withval"
18359
if test "x$xmhtml_library" = "x"
18361
xmhtml_library=-lXmHTML
18364
{ echo "$as_me:$LINENO: checking for XmHTML widget >= 1105" >&5
18365
echo $ECHO_N "checking for XmHTML widget >= 1105... $ECHO_C" >&6; }
18366
if test "${acx_cv_xmhtml+set}" = set; then
18367
echo $ECHO_N "(cached) $ECHO_C" >&6
18369
if test "${acx_cv_xmhtml_library+set}" = set; then
18370
echo $ECHO_N "(cached) $ECHO_C" >&6
18372
acx_cv_xmhtml_library=$xmhtml_library
18376
save_CFLAGS=$CFLAGS
18377
save_CPPFLAGS=$CPPFLAGS
18378
save_LDFLAGS=$LDFLAGS
18381
LIBS="$acx_cv_xmhtml_library $JPEG_LIB $PNG_LIB $Z_LIB $LIBS"
18382
if test "$cross_compiling" = yes; then
18386
cat >conftest.$ac_ext <<_ACEOF
18389
cat confdefs.h >>conftest.$ac_ext
18390
cat >>conftest.$ac_ext <<_ACEOF
18391
/* end confdefs.h. */
18393
#include <XmHTML/XmHTML.h>
18396
vlib = XmHTMLGetVersion();
18397
vinc = XmHTMLVersion;
18401
if (vinc != vlib) {
18408
rm -f conftest$ac_exeext
18409
if { (ac_try="$ac_link"
18410
case "(($ac_try" in
18411
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412
*) ac_try_echo=$ac_try;;
18414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415
(eval "$ac_link") 2>&5
18417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18419
{ (case "(($ac_try" in
18420
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421
*) ac_try_echo=$ac_try;;
18423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424
(eval "$ac_try") 2>&5
18426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427
(exit $ac_status); }; }; then
18428
acx_cv_xmhtml="yes"
18430
echo "$as_me: program exited with status $ac_status" >&5
18431
echo "$as_me: failed program was:" >&5
18432
sed 's/^/| /' conftest.$ac_ext >&5
18434
( exit $ac_status )
18437
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18442
CFLAGS=$save_CFLAGS
18443
CPPFLAGS=$save_CPPFLAGS
18444
LDFLAGS=$save_LDFLAGS
18449
{ echo "$as_me:$LINENO: result: $acx_cv_xmhtml" >&5
18450
echo "${ECHO_T}$acx_cv_xmhtml" >&6; }
18451
if test "$acx_cv_xmhtml" = "yes"
18453
XMHTML_LIB="$acx_cv_xmhtml_library"
18454
cat >>confdefs.h <<\_ACEOF
18455
#define WITH_XMHTML 1
18465
GUI_LIBS="$LIBHELP_LIB $XMHTML_LIB $XBAE_LIB $GUI_LIBS"
18467
CPPFLAGS="$xsave_CPPFLAGS"
18473
SUBDIRS="cephes ${t1lib_dir} ${xbae_dir} src ${grconvert_dir} grace_np fonts templates doc examples auxiliary"
18475
ac_config_files="$ac_config_files Make.conf:ac-tools/Make.conf.in"
18477
cat >confcache <<\_ACEOF
18478
# This file is a shell script that caches the results of configure
18479
# tests run on this system so they can be shared between configure
18480
# scripts and configure runs, see configure's option --config-cache.
18481
# It is not useful on other systems. If it contains results you don't
18482
# want to keep, you may remove or edit it.
18484
# config.status only pays attention to the cache file if you give it
18485
# the --recheck option to rerun configure.
18487
# `ac_cv_env_foo' variables (set or unset) will be overridden when
18488
# loading this file, other *unset* `ac_cv_foo' will be assigned the
18489
# following values.
18493
# The following way of writing the cache mishandles newlines in values,
18494
# but we know of no workaround that is simple, portable, and efficient.
18495
# So, we kill variables containing newlines.
18496
# Ultrix sh set writes to stderr and can't be redirected directly,
18497
# and sets the high bit in the cache file unless we assign to the vars.
18499
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18500
eval ac_val=\$$ac_var
18504
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18505
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18508
_ | IFS | as_nl) ;; #(
18509
*) $as_unset $ac_var ;;
18515
case $as_nl`(ac_space=' '; set) 2>&1` in #(
18516
*${as_nl}ac_space=\ *)
18517
# `set' does not quote correctly, so add quotes (double-quote
18518
# substitution turns \\\\ into \\, and sed turns \\ into \).
18521
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18524
# `set' quotes correctly as required by POSIX, so do not add quotes.
18525
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18534
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18536
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18538
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18539
if test -w "$cache_file"; then
18540
test "x$cache_file" != "x/dev/null" &&
18541
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
18542
echo "$as_me: updating cache $cache_file" >&6;}
18543
cat confcache >$cache_file
18545
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18546
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18551
test "x$prefix" = xNONE && prefix=$ac_default_prefix
18552
# Let make expand exec_prefix.
18553
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18555
DEFS=-DHAVE_CONFIG_H
18559
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18560
# 1. Remove the extension, and $U if already installed.
18561
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18562
ac_i=`echo "$ac_i" | sed "$ac_script"`
18563
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18564
# will be set to the directory where LIBOBJS objects are built.
18565
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18566
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18568
LIBOBJS=$ac_libobjs
18570
LTLIBOBJS=$ac_ltlibobjs
18574
: ${CONFIG_STATUS=./config.status}
18575
ac_clean_files_save=$ac_clean_files
18576
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18577
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18578
echo "$as_me: creating $CONFIG_STATUS" >&6;}
18579
cat >$CONFIG_STATUS <<_ACEOF
18581
# Generated by $as_me.
18582
# Run this file to recreate the current configuration.
18583
# Compiler output produced by configure, useful for debugging
18584
# configure, is in config.log if it exists.
18587
ac_cs_recheck=false
18589
SHELL=\${CONFIG_SHELL-$SHELL}
18592
cat >>$CONFIG_STATUS <<\_ACEOF
18593
## --------------------- ##
18594
## M4sh Initialization. ##
18595
## --------------------- ##
18597
# Be more Bourne compatible
18598
DUALCASE=1; export DUALCASE # for MKS sh
18599
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18602
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18603
# is contrary to our usage. Disable this feature.
18604
alias -g '${1+"$@"}'='"$@"'
18605
setopt NO_GLOB_SUBST
18607
case `(set -o) 2>/dev/null` in
18608
*posix*) set -o posix ;;
18617
# Avoid depending upon Character Ranges.
18618
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18619
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18620
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18621
as_cr_digits='0123456789'
18622
as_cr_alnum=$as_cr_Letters$as_cr_digits
18624
# The user is always right.
18625
if test "${PATH_SEPARATOR+set}" != set; then
18626
echo "#! /bin/sh" >conf$$.sh
18627
echo "exit 0" >>conf$$.sh
18629
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18637
# Support unset when possible.
18638
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18646
# We need space, tab and new line, in precisely that order. Quoting is
18647
# there to prevent editors from complaining about space-tab.
18648
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18649
# splitting by setting IFS to empty value.)
18654
# Find who we are. Look in the path if we contain no directory separator.
18656
*[\\/]* ) as_myself=$0 ;;
18657
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18658
for as_dir in $PATH
18661
test -z "$as_dir" && as_dir=.
18662
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18668
# We did not find ourselves, most probably we were run as `sh COMMAND'
18669
# in which case we are not to be found in the path.
18670
if test "x$as_myself" = x; then
18673
if test ! -f "$as_myself"; then
18674
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18675
{ (exit 1); exit 1; }
18678
# Work around bugs in pre-3.0 UWIN ksh.
18679
for as_var in ENV MAIL MAILPATH
18680
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18688
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18689
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18690
LC_TELEPHONE LC_TIME
18692
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18693
eval $as_var=C; export $as_var
18695
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18699
# Required to use basename.
18700
if expr a : '\(a\)' >/dev/null 2>&1 &&
18701
test "X`expr 00001 : '.*\(...\)'`" = X001; then
18707
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18708
as_basename=basename
18714
# Name of the executable.
18715
as_me=`$as_basename -- "$0" ||
18716
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18717
X"$0" : 'X\(//\)$' \| \
18718
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18720
sed '/^.*\/\([^/][^/]*\)\/*$/{
18739
as_lineno_1=$LINENO
18740
as_lineno_2=$LINENO
18741
test "x$as_lineno_1" != "x$as_lineno_2" &&
18742
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18744
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18745
# uniformly replaced by the line number. The first 'sed' inserts a
18746
# line-number line after each line using $LINENO; the second 'sed'
18747
# does the real work. The second script uses 'N' to pair each
18748
# line-number line with the line containing $LINENO, and appends
18749
# trailing '-' during substitution so that $LINENO is not a special
18750
# case at line end.
18751
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18752
# scripts with optimization help from Paolo Bonzini. Blame Lee
18753
# E. McMahon (1931-1989) for sed's syntax. :-)
18765
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18768
' >$as_me.lineno &&
18769
chmod +x "$as_me.lineno" ||
18770
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18771
{ (exit 1); exit 1; }; }
18773
# Don't try to exec as it changes $[0], causing all sort of problems
18774
# (the dirname of $[0] is not the place where we might find the
18775
# original and so on. Autoconf is especially sensitive to this).
18776
. "./$as_me.lineno"
18777
# Exit status is that of the last command.
18782
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18788
ECHO_C= ECHO_N= ECHO_T=
18789
case `echo -n x` in
18791
case `echo 'x\c'` in
18792
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
18799
if expr a : '\(a\)' >/dev/null 2>&1 &&
18800
test "X`expr 00001 : '.*\(...\)'`" = X001; then
18806
rm -f conf$$ conf$$.exe conf$$.file
18807
if test -d conf$$.dir; then
18808
rm -f conf$$.dir/conf$$.file
18814
if ln -s conf$$.file conf$$ 2>/dev/null; then
18816
# ... but there are two gotchas:
18817
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18818
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18819
# In both cases, we have to default to `cp -p'.
18820
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18822
elif ln conf$$.file conf$$ 2>/dev/null; then
18827
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18828
rmdir conf$$.dir 2>/dev/null
18830
if mkdir -p . 2>/dev/null; then
18833
test -d ./-p && rmdir ./-p
18837
if test -x / >/dev/null 2>&1; then
18838
as_test_x='test -x'
18840
if ls -dL / >/dev/null 2>&1; then
18847
if test -d "$1"; then
18853
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18854
???[sx]*):;;*)false;;esac;fi
18858
as_executable_p=$as_test_x
18860
# Sed expression to map a string onto a valid CPP name.
18861
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18863
# Sed expression to map a string onto a valid variable name.
18864
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18869
# Save the log message, to keep $[0] and so on meaningful, and to
18870
# report actual input values of CONFIG_FILES etc. instead of their
18871
# values after options handling.
18873
This file was extended by $as_me, which was
18874
generated by GNU Autoconf 2.61. Invocation command line was
18876
CONFIG_FILES = $CONFIG_FILES
18877
CONFIG_HEADERS = $CONFIG_HEADERS
18878
CONFIG_LINKS = $CONFIG_LINKS
18879
CONFIG_COMMANDS = $CONFIG_COMMANDS
18882
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18887
cat >>$CONFIG_STATUS <<_ACEOF
18888
# Files that config.status was made for.
18889
config_files="$ac_config_files"
18890
config_headers="$ac_config_headers"
18894
cat >>$CONFIG_STATUS <<\_ACEOF
18896
\`$as_me' instantiates files from templates according to the
18897
current configuration.
18899
Usage: $0 [OPTIONS] [FILE]...
18901
-h, --help print this help, then exit
18902
-V, --version print version number and configuration settings, then exit
18903
-q, --quiet do not print progress messages
18904
-d, --debug don't remove temporary files
18905
--recheck update $as_me by reconfiguring in the same conditions
18906
--file=FILE[:TEMPLATE]
18907
instantiate the configuration file FILE
18908
--header=FILE[:TEMPLATE]
18909
instantiate the configuration header FILE
18911
Configuration files:
18914
Configuration headers:
18917
Report bugs to <bug-autoconf@gnu.org>."
18920
cat >>$CONFIG_STATUS <<_ACEOF
18923
configured by $0, generated by GNU Autoconf 2.61,
18924
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18926
Copyright (C) 2006 Free Software Foundation, Inc.
18927
This config.status script is free software; the Free Software Foundation
18928
gives unlimited permission to copy, distribute and modify it."
18935
cat >>$CONFIG_STATUS <<\_ACEOF
18936
# If no file are specified by the user, then we need to provide default
18937
# value. By we need to know if files were specified by the user.
18943
ac_option=`expr "X$1" : 'X\([^=]*\)='`
18944
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18955
# Handling of the options.
18956
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18958
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18959
echo "$ac_cs_version"; exit ;;
18960
--debug | --debu | --deb | --de | --d | -d )
18962
--file | --fil | --fi | --f )
18964
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18965
ac_need_defaults=false;;
18966
--header | --heade | --head | --hea )
18968
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18969
ac_need_defaults=false;;
18971
# Conflict between --help and --header
18972
{ echo "$as_me: error: ambiguous option: $1
18973
Try \`$0 --help' for more information." >&2
18974
{ (exit 1); exit 1; }; };;
18975
--help | --hel | -h )
18976
echo "$ac_cs_usage"; exit ;;
18977
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
18978
| -silent | --silent | --silen | --sile | --sil | --si | --s)
18981
# This is an error.
18982
-*) { echo "$as_me: error: unrecognized option: $1
18983
Try \`$0 --help' for more information." >&2
18984
{ (exit 1); exit 1; }; } ;;
18986
*) ac_config_targets="$ac_config_targets $1"
18987
ac_need_defaults=false ;;
18993
ac_configure_extra_args=
18995
if $ac_cs_silent; then
18997
ac_configure_extra_args="$ac_configure_extra_args --silent"
19001
cat >>$CONFIG_STATUS <<_ACEOF
19002
if \$ac_cs_recheck; then
19003
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19004
CONFIG_SHELL=$SHELL
19005
export CONFIG_SHELL
19006
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19010
cat >>$CONFIG_STATUS <<\_ACEOF
19014
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19015
## Running $as_me. ##
19021
cat >>$CONFIG_STATUS <<_ACEOF
19024
cat >>$CONFIG_STATUS <<\_ACEOF
19026
# Handling of arguments.
19027
for ac_config_target in $ac_config_targets
19029
case $ac_config_target in
19030
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:ac-tools/config.h.in" ;;
19031
"Make.conf") CONFIG_FILES="$CONFIG_FILES Make.conf:ac-tools/Make.conf.in" ;;
19033
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19034
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19035
{ (exit 1); exit 1; }; };;
19040
# If the user did not use the arguments to specify the items to instantiate,
19041
# then the envvar interface is used. Set only those that are not.
19042
# We use the long form for the default assignment because of an extremely
19043
# bizarre bug on SunOS 4.1.3.
19044
if $ac_need_defaults; then
19045
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19046
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19049
# Have a temporary directory for convenience. Make it in the build tree
19050
# simply because there is no reason against having it here, and in addition,
19051
# creating and moving files from /tmp can sometimes cause problems.
19052
# Hook for its removal unless debugging.
19053
# Note that there is a small window in which the directory will not be cleaned:
19054
# after its creation but before its name has been assigned to `$tmp'.
19058
trap 'exit_status=$?
19059
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19061
trap '{ (exit 1); exit 1; }' 1 2 13 15
19063
# Create a (secure) tmp directory for tmp files.
19066
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19067
test -n "$tmp" && test -d "$tmp"
19070
tmp=./conf$$-$RANDOM
19071
(umask 077 && mkdir "$tmp")
19074
echo "$me: cannot create a temporary directory in ." >&2
19075
{ (exit 1); exit 1; }
19079
# Set up the sed scripts for CONFIG_FILES section.
19082
# No need to generate the scripts if there are no CONFIG_FILES.
19083
# This happens for instance when ./config.status config.h
19084
if test -n "$CONFIG_FILES"; then
19091
for ac_last_try in false false false false false :; do
19092
cat >conf$$subs.sed <<_ACEOF
19093
SHELL!$SHELL$ac_delim
19094
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19095
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19096
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19097
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19098
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19099
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19100
exec_prefix!$exec_prefix$ac_delim
19101
prefix!$prefix$ac_delim
19102
program_transform_name!$program_transform_name$ac_delim
19103
bindir!$bindir$ac_delim
19104
sbindir!$sbindir$ac_delim
19105
libexecdir!$libexecdir$ac_delim
19106
datarootdir!$datarootdir$ac_delim
19107
datadir!$datadir$ac_delim
19108
sysconfdir!$sysconfdir$ac_delim
19109
sharedstatedir!$sharedstatedir$ac_delim
19110
localstatedir!$localstatedir$ac_delim
19111
includedir!$includedir$ac_delim
19112
oldincludedir!$oldincludedir$ac_delim
19113
docdir!$docdir$ac_delim
19114
infodir!$infodir$ac_delim
19115
htmldir!$htmldir$ac_delim
19116
dvidir!$dvidir$ac_delim
19117
pdfdir!$pdfdir$ac_delim
19118
psdir!$psdir$ac_delim
19119
libdir!$libdir$ac_delim
19120
localedir!$localedir$ac_delim
19121
mandir!$mandir$ac_delim
19122
DEFS!$DEFS$ac_delim
19123
ECHO_C!$ECHO_C$ac_delim
19124
ECHO_N!$ECHO_N$ac_delim
19125
ECHO_T!$ECHO_T$ac_delim
19126
LIBS!$LIBS$ac_delim
19127
build_alias!$build_alias$ac_delim
19128
host_alias!$host_alias$ac_delim
19129
target_alias!$target_alias$ac_delim
19130
EXEEXT!$EXEEXT$ac_delim
19131
OBJEXT!$OBJEXT$ac_delim
19132
BATEXT!$BATEXT$ac_delim
19133
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
19134
GRACE!$GRACE$ac_delim
19135
GRACE_HOME!$GRACE_HOME$ac_delim
19136
GUI_FLAGS!$GUI_FLAGS$ac_delim
19138
GUI_LIBS!$GUI_LIBS$ac_delim
19139
NOGUI_LIBS!$NOGUI_LIBS$ac_delim
19140
NETCDF_LIBS!$NETCDF_LIBS$ac_delim
19141
XDR_LIB!$XDR_LIB$ac_delim
19142
DL_LIB!$DL_LIB$ac_delim
19143
T1_LIB!$T1_LIB$ac_delim
19144
T1_INC!$T1_INC$ac_delim
19145
FFTW_LIB!$FFTW_LIB$ac_delim
19146
Z_LIB!$Z_LIB$ac_delim
19147
JPEG_LIB!$JPEG_LIB$ac_delim
19148
PNG_LIB!$PNG_LIB$ac_delim
19149
PDF_LIB!$PDF_LIB$ac_delim
19150
XBAE_INC!$XBAE_INC$ac_delim
19151
SUBDIRS!$SUBDIRS$ac_delim
19152
GRACE_EDITOR!$GRACE_EDITOR$ac_delim
19153
GRACE_HELPVIEWER!$GRACE_HELPVIEWER$ac_delim
19154
PRINT_CMD!$PRINT_CMD$ac_delim
19155
T1_AA_TYPE16!$T1_AA_TYPE16$ac_delim
19156
T1_AA_TYPE32!$T1_AA_TYPE32$ac_delim
19157
T1_AA_TYPE64!$T1_AA_TYPE64$ac_delim
19158
build!$build$ac_delim
19159
build_cpu!$build_cpu$ac_delim
19160
build_vendor!$build_vendor$ac_delim
19161
build_os!$build_os$ac_delim
19162
host!$host$ac_delim
19163
host_cpu!$host_cpu$ac_delim
19164
host_vendor!$host_vendor$ac_delim
19165
host_os!$host_os$ac_delim
19167
CFLAGS!$CFLAGS$ac_delim
19168
LDFLAGS!$LDFLAGS$ac_delim
19169
CPPFLAGS!$CPPFLAGS$ac_delim
19170
ac_ct_CC!$ac_ct_CC$ac_delim
19172
GREP!$GREP$ac_delim
19173
EGREP!$EGREP$ac_delim
19175
SET_MAKE!$SET_MAKE$ac_delim
19177
RANLIB!$RANLIB$ac_delim
19178
LN_S!$LN_S$ac_delim
19179
YACC!$YACC$ac_delim
19180
YFLAGS!$YFLAGS$ac_delim
19181
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19182
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19183
INSTALL_DATA!$INSTALL_DATA$ac_delim
19184
LP_CMD!$LP_CMD$ac_delim
19185
LPR_CMD!$LPR_CMD$ac_delim
19186
ALLOCA!$ALLOCA$ac_delim
19187
XMKMF!$XMKMF$ac_delim
19188
X_CFLAGS!$X_CFLAGS$ac_delim
19189
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
19192
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19194
elif $ac_last_try; then
19195
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19196
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19197
{ (exit 1); exit 1; }; }
19199
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19203
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19204
if test -n "$ac_eof"; then
19205
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19206
ac_eof=`expr $ac_eof + 1`
19209
cat >>$CONFIG_STATUS <<_ACEOF
19210
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19211
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19214
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19215
s/^/s,@/; s/!/@,|#_!!_#|/
19218
s/'"$ac_delim"'$/,g/; t
19220
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19221
' >>$CONFIG_STATUS <conf$$subs.sed
19222
rm -f conf$$subs.sed
19223
cat >>$CONFIG_STATUS <<_ACEOF
19229
for ac_last_try in false false false false false :; do
19230
cat >conf$$subs.sed <<_ACEOF
19231
X_LIBS!$X_LIBS$ac_delim
19232
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
19233
LIBOBJS!$LIBOBJS$ac_delim
19234
LTLIBOBJS!$LTLIBOBJS$ac_delim
19237
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
19239
elif $ac_last_try; then
19240
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19241
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19242
{ (exit 1); exit 1; }; }
19244
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19248
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19249
if test -n "$ac_eof"; then
19250
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19251
ac_eof=`expr $ac_eof + 1`
19254
cat >>$CONFIG_STATUS <<_ACEOF
19255
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19256
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19259
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19260
s/^/s,@/; s/!/@,|#_!!_#|/
19263
s/'"$ac_delim"'$/,g/; t
19265
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19266
' >>$CONFIG_STATUS <conf$$subs.sed
19267
rm -f conf$$subs.sed
19268
cat >>$CONFIG_STATUS <<_ACEOF
19275
# VPATH may cause trouble with some makes, so we remove $(srcdir),
19276
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19277
# trailing colons and then remove the whole line if VPATH becomes empty
19278
# (actually we leave an empty line to preserve line numbers).
19279
if test "x$srcdir" = x.; then
19280
ac_vpsub='/^[ ]*VPATH[ ]*=/{
19281
s/:*\$(srcdir):*/:/
19282
s/:*\${srcdir}:*/:/
19284
s/^\([^=]*=[ ]*\):*/\1/
19290
cat >>$CONFIG_STATUS <<\_ACEOF
19291
fi # test -n "$CONFIG_FILES"
19294
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
19297
:[FHLC]) ac_mode=$ac_tag; continue;;
19299
case $ac_mode$ac_tag in
19301
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19302
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19303
{ (exit 1); exit 1; }; };;
19304
:[FH]-) ac_tag=-:-;;
19305
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19322
-) ac_f="$tmp/stdin";;
19323
*) # Look for the file first in the build tree, then in the source tree
19324
# (if the path is not absolute). The absolute path cannot be DOS-style,
19325
# because $ac_f cannot contain `:'.
19329
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19331
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19332
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19333
{ (exit 1); exit 1; }; };;
19335
ac_file_inputs="$ac_file_inputs $ac_f"
19338
# Let's still pretend it is `configure' which instantiates (i.e., don't
19339
# use $as_me), people would be surprised to read:
19340
# /* config.h. Generated by config.status. */
19341
configure_input="Generated from "`IFS=:
19342
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19343
if test x"$ac_file" != x-; then
19344
configure_input="$ac_file. $configure_input"
19345
{ echo "$as_me:$LINENO: creating $ac_file" >&5
19346
echo "$as_me: creating $ac_file" >&6;}
19350
*:-:* | *:-) cat >"$tmp/stdin";;
19355
ac_dir=`$as_dirname -- "$ac_file" ||
19356
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19357
X"$ac_file" : 'X\(//\)[^/]' \| \
19358
X"$ac_file" : 'X\(//\)$' \| \
19359
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19361
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19365
/^X\(\/\/\)[^/].*/{
19380
-*) as_dir=./$as_dir;;
19382
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19386
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19387
*) as_qdir=$as_dir;;
19389
as_dirs="'$as_qdir' $as_dirs"
19390
as_dir=`$as_dirname -- "$as_dir" ||
19391
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19392
X"$as_dir" : 'X\(//\)[^/]' \| \
19393
X"$as_dir" : 'X\(//\)$' \| \
19394
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19396
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19400
/^X\(\/\/\)[^/].*/{
19413
test -d "$as_dir" && break
19415
test -z "$as_dirs" || eval "mkdir $as_dirs"
19416
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19417
echo "$as_me: error: cannot create directory $as_dir" >&2;}
19418
{ (exit 1); exit 1; }; }; }
19422
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19424
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19425
# A ".." for each directory in $ac_dir_suffix.
19426
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19427
case $ac_top_builddir_sub in
19428
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19429
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19432
ac_abs_top_builddir=$ac_pwd
19433
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19434
# for backward compatibility:
19435
ac_top_builddir=$ac_top_build_prefix
19438
.) # We are building in place.
19440
ac_top_srcdir=$ac_top_builddir_sub
19441
ac_abs_top_srcdir=$ac_pwd ;;
19442
[\\/]* | ?:[\\/]* ) # Absolute name.
19443
ac_srcdir=$srcdir$ac_dir_suffix;
19444
ac_top_srcdir=$srcdir
19445
ac_abs_top_srcdir=$srcdir ;;
19446
*) # Relative name.
19447
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19448
ac_top_srcdir=$ac_top_build_prefix$srcdir
19449
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19451
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19461
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19462
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19466
cat >>$CONFIG_STATUS <<\_ACEOF
19467
# If the template does not know about datarootdir, expand it.
19468
# FIXME: This hack should be removed a few years after 2.60.
19469
ac_datarootdir_hack=; ac_datarootdir_seen=
19471
case `sed -n '/datarootdir/ {
19480
' $ac_file_inputs` in
19481
*datarootdir*) ac_datarootdir_seen=yes;;
19482
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19483
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19484
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19486
cat >>$CONFIG_STATUS <<_ACEOF
19487
ac_datarootdir_hack='
19488
s&@datadir@&$datadir&g
19489
s&@docdir@&$docdir&g
19490
s&@infodir@&$infodir&g
19491
s&@localedir@&$localedir&g
19492
s&@mandir@&$mandir&g
19493
s&\\\${datarootdir}&$datarootdir&g' ;;
19497
# Neutralize VPATH when `$srcdir' = `.'.
19498
# Shell code in configure.ac might set extrasub.
19499
# FIXME: do we really want to maintain this feature?
19500
cat >>$CONFIG_STATUS <<_ACEOF
19504
cat >>$CONFIG_STATUS <<\_ACEOF
19506
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19507
s&@configure_input@&$configure_input&;t t
19508
s&@top_builddir@&$ac_top_builddir_sub&;t t
19509
s&@srcdir@&$ac_srcdir&;t t
19510
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19511
s&@top_srcdir@&$ac_top_srcdir&;t t
19512
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19513
s&@builddir@&$ac_builddir&;t t
19514
s&@abs_builddir@&$ac_abs_builddir&;t t
19515
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19516
s&@INSTALL@&$ac_INSTALL&;t t
19517
$ac_datarootdir_hack
19518
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
19520
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19521
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19522
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19523
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19524
which seems to be undefined. Please make sure it is defined." >&5
19525
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19526
which seems to be undefined. Please make sure it is defined." >&2;}
19530
-) cat "$tmp/out"; rm -f "$tmp/out";;
19531
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19540
# Transform confdefs.h into a sed script `conftest.defines', that
19541
# substitutes the proper values into config.h.in to produce config.h.
19542
rm -f conftest.defines conftest.tail
19543
# First, append a space to every undef/define line, to ease matching.
19544
echo 's/$/ /' >conftest.defines
19545
# Then, protect against being on the right side of a sed subst, or in
19546
# an unquoted here document, in config.status. If some macros were
19547
# called several times there might be several #defines for the same
19548
# symbol, which is useless. But do not sort them, since the last
19549
# AC_DEFINE must be honored.
19550
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19551
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19552
# NAME is the cpp macro being defined, VALUE is the value it is being given.
19553
# PARAMS is the parameter list in the macro definition--in most cases, it's
19554
# just an empty string.
19555
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19556
ac_dB='\\)[ (].*,\\1define\\2'
19564
s/^[ ]*#[ ]*define[ ][ ]*//
19569
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19570
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19571
' >>conftest.defines
19573
# Remove the space that was appended to ease matching.
19574
# Then replace #undef with comments. This is necessary, for
19575
# example, in the case of _POSIX_SOURCE, which is predefined and required
19576
# on some systems where configure will not decide to define it.
19577
# (The regexp can be short, since the line contains either #define or #undef.)
19579
s,^[ #]*u.*,/* & */,' >>conftest.defines
19581
# Break up conftest.defines:
19582
ac_max_sed_lines=50
19584
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19585
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19586
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19588
ac_in='$ac_file_inputs'
19589
ac_out='"$tmp/out1"'
19590
ac_nxt='"$tmp/out2"'
19594
# Write a here document:
19595
cat >>$CONFIG_STATUS <<_ACEOF
19596
# First, check the format of the line:
19597
cat >"\$tmp/defines.sed" <<\\CEOF
19598
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19599
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19603
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19605
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19606
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19607
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19608
grep . conftest.tail >/dev/null || break
19609
rm -f conftest.defines
19610
mv conftest.tail conftest.defines
19612
rm -f conftest.defines conftest.tail
19614
echo "ac_result=$ac_in" >>$CONFIG_STATUS
19615
cat >>$CONFIG_STATUS <<\_ACEOF
19616
if test x"$ac_file" != x-; then
19617
echo "/* $configure_input */" >"$tmp/config.h"
19618
cat "$ac_result" >>"$tmp/config.h"
19619
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19620
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19621
echo "$as_me: $ac_file is unchanged" >&6;}
19624
mv "$tmp/config.h" $ac_file
19627
echo "/* $configure_input */"
19639
{ (exit 0); exit 0; }
19641
chmod +x $CONFIG_STATUS
19642
ac_clean_files=$ac_clean_files_save
19645
# configure is writing to config.log, and then calls config.status.
19646
# config.status does its own redirection, appending to config.log.
19647
# Unfortunately, on DOS this fails, as config.log is still kept open
19648
# by configure, so config.status won't be able to write to it; its
19649
# output is simply discarded. So we exec the FD to /dev/null,
19650
# effectively closing config.log, so it can be properly (re)opened and
19651
# appended to by config.status. When coming back to configure, we
19652
# need to make the FD available again.
19653
if test "$no_create" != yes; then
19655
ac_config_status_args=
19656
test "$silent" = yes &&
19657
ac_config_status_args="$ac_config_status_args --quiet"
19659
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19661
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
19662
# would make configure fail if this is the last instruction.
19663
$ac_cs_success || { (exit 1); exit 1; }