| 1926 |
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1927 |
|
|
| 1928 |
|
} # ac_fn_c_check_type |
| 1929 |
– |
|
| 1930 |
– |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1931 |
– |
# -------------------------------------------- |
| 1932 |
– |
# Tries to find the compile-time value of EXPR in a program that includes |
| 1933 |
– |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1934 |
– |
# computed |
| 1935 |
– |
ac_fn_c_compute_int () |
| 1936 |
– |
{ |
| 1937 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1938 |
– |
if test "$cross_compiling" = yes; then |
| 1939 |
– |
# Depending upon the size, compute the lo and hi bounds. |
| 1940 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1941 |
– |
/* end confdefs.h. */ |
| 1942 |
– |
$4 |
| 1943 |
– |
int |
| 1944 |
– |
main () |
| 1945 |
– |
{ |
| 1946 |
– |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1947 |
– |
test_array [0] = 0; |
| 1948 |
– |
return test_array [0]; |
| 1949 |
– |
|
| 1950 |
– |
; |
| 1951 |
– |
return 0; |
| 1952 |
– |
} |
| 1953 |
– |
_ACEOF |
| 1954 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1955 |
– |
ac_lo=0 ac_mid=0 |
| 1956 |
– |
while :; do |
| 1957 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1958 |
– |
/* end confdefs.h. */ |
| 1959 |
– |
$4 |
| 1960 |
– |
int |
| 1961 |
– |
main () |
| 1962 |
– |
{ |
| 1963 |
– |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 1964 |
– |
test_array [0] = 0; |
| 1965 |
– |
return test_array [0]; |
| 1966 |
– |
|
| 1967 |
– |
; |
| 1968 |
– |
return 0; |
| 1969 |
– |
} |
| 1970 |
– |
_ACEOF |
| 1971 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1972 |
– |
ac_hi=$ac_mid; break |
| 1973 |
– |
else |
| 1974 |
– |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 1975 |
– |
if test $ac_lo -le $ac_mid; then |
| 1976 |
– |
ac_lo= ac_hi= |
| 1977 |
– |
break |
| 1978 |
– |
fi |
| 1979 |
– |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 1980 |
– |
fi |
| 1981 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1982 |
– |
done |
| 1983 |
– |
else |
| 1984 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1985 |
– |
/* end confdefs.h. */ |
| 1986 |
– |
$4 |
| 1987 |
– |
int |
| 1988 |
– |
main () |
| 1989 |
– |
{ |
| 1990 |
– |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 1991 |
– |
test_array [0] = 0; |
| 1992 |
– |
return test_array [0]; |
| 1993 |
– |
|
| 1994 |
– |
; |
| 1995 |
– |
return 0; |
| 1996 |
– |
} |
| 1997 |
– |
_ACEOF |
| 1998 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1999 |
– |
ac_hi=-1 ac_mid=-1 |
| 2000 |
– |
while :; do |
| 2001 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2002 |
– |
/* end confdefs.h. */ |
| 2003 |
– |
$4 |
| 2004 |
– |
int |
| 2005 |
– |
main () |
| 2006 |
– |
{ |
| 2007 |
– |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2008 |
– |
test_array [0] = 0; |
| 2009 |
– |
return test_array [0]; |
| 2010 |
– |
|
| 2011 |
– |
; |
| 2012 |
– |
return 0; |
| 2013 |
– |
} |
| 2014 |
– |
_ACEOF |
| 2015 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2016 |
– |
ac_lo=$ac_mid; break |
| 2017 |
– |
else |
| 2018 |
– |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2019 |
– |
if test $ac_mid -le $ac_hi; then |
| 2020 |
– |
ac_lo= ac_hi= |
| 2021 |
– |
break |
| 2022 |
– |
fi |
| 2023 |
– |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2024 |
– |
fi |
| 2025 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2026 |
– |
done |
| 2027 |
– |
else |
| 2028 |
– |
ac_lo= ac_hi= |
| 2029 |
– |
fi |
| 2030 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2031 |
– |
fi |
| 2032 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2033 |
– |
# Binary search between lo and hi bounds. |
| 2034 |
– |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2035 |
– |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2036 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2037 |
– |
/* end confdefs.h. */ |
| 2038 |
– |
$4 |
| 2039 |
– |
int |
| 2040 |
– |
main () |
| 2041 |
– |
{ |
| 2042 |
– |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2043 |
– |
test_array [0] = 0; |
| 2044 |
– |
return test_array [0]; |
| 2045 |
– |
|
| 2046 |
– |
; |
| 2047 |
– |
return 0; |
| 2048 |
– |
} |
| 2049 |
– |
_ACEOF |
| 2050 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2051 |
– |
ac_hi=$ac_mid |
| 2052 |
– |
else |
| 2053 |
– |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2054 |
– |
fi |
| 2055 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2056 |
– |
done |
| 2057 |
– |
case $ac_lo in #(( |
| 2058 |
– |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2059 |
– |
'') ac_retval=1 ;; |
| 2060 |
– |
esac |
| 2061 |
– |
else |
| 2062 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2063 |
– |
/* end confdefs.h. */ |
| 2064 |
– |
$4 |
| 2065 |
– |
static long int longval () { return $2; } |
| 2066 |
– |
static unsigned long int ulongval () { return $2; } |
| 2067 |
– |
#include <stdio.h> |
| 2068 |
– |
#include <stdlib.h> |
| 2069 |
– |
int |
| 2070 |
– |
main () |
| 2071 |
– |
{ |
| 2072 |
– |
|
| 2073 |
– |
FILE *f = fopen ("conftest.val", "w"); |
| 2074 |
– |
if (! f) |
| 2075 |
– |
return 1; |
| 2076 |
– |
if (($2) < 0) |
| 2077 |
– |
{ |
| 2078 |
– |
long int i = longval (); |
| 2079 |
– |
if (i != ($2)) |
| 2080 |
– |
return 1; |
| 2081 |
– |
fprintf (f, "%ld", i); |
| 2082 |
– |
} |
| 2083 |
– |
else |
| 2084 |
– |
{ |
| 2085 |
– |
unsigned long int i = ulongval (); |
| 2086 |
– |
if (i != ($2)) |
| 2087 |
– |
return 1; |
| 2088 |
– |
fprintf (f, "%lu", i); |
| 2089 |
– |
} |
| 2090 |
– |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2091 |
– |
on some platforms. */ |
| 2092 |
– |
return ferror (f) || fclose (f) != 0; |
| 2093 |
– |
|
| 2094 |
– |
; |
| 2095 |
– |
return 0; |
| 2096 |
– |
} |
| 2097 |
– |
_ACEOF |
| 2098 |
– |
if ac_fn_c_try_run "$LINENO"; then : |
| 2099 |
– |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2100 |
– |
else |
| 2101 |
– |
ac_retval=1 |
| 2102 |
– |
fi |
| 2103 |
– |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2104 |
– |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2105 |
– |
rm -f conftest.val |
| 2106 |
– |
|
| 2107 |
– |
fi |
| 2108 |
– |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2109 |
– |
as_fn_set_status $ac_retval |
| 2110 |
– |
|
| 2111 |
– |
} # ac_fn_c_compute_int |
| 1929 |
|
cat >config.log <<_ACEOF |
| 1930 |
|
This file contains any messages produced by compilers while |
| 1931 |
|
running configure, to aid debugging if configure makes a mistake. |
| 13007 |
|
esac |
| 13008 |
|
|
| 13009 |
|
|
| 13193 |
– |
# The cast to long int works around a bug in the HP C Compiler |
| 13194 |
– |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13195 |
– |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13196 |
– |
# This bug is HP SR number 8606223364. |
| 13197 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 13198 |
– |
$as_echo_n "checking size of int... " >&6; } |
| 13199 |
– |
if ${ac_cv_sizeof_int+:} false; then : |
| 13200 |
– |
$as_echo_n "(cached) " >&6 |
| 13201 |
– |
else |
| 13202 |
– |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
| 13203 |
– |
|
| 13204 |
– |
else |
| 13205 |
– |
if test "$ac_cv_type_int" = yes; then |
| 13206 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13207 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13208 |
– |
as_fn_error 77 "cannot compute sizeof (int) |
| 13209 |
– |
See \`config.log' for more details" "$LINENO" 5; } |
| 13210 |
– |
else |
| 13211 |
– |
ac_cv_sizeof_int=0 |
| 13212 |
– |
fi |
| 13213 |
– |
fi |
| 13214 |
– |
|
| 13215 |
– |
fi |
| 13216 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 13217 |
– |
$as_echo "$ac_cv_sizeof_int" >&6; } |
| 13218 |
– |
|
| 13219 |
– |
|
| 13220 |
– |
|
| 13221 |
– |
cat >>confdefs.h <<_ACEOF |
| 13222 |
– |
#define SIZEOF_INT $ac_cv_sizeof_int |
| 13223 |
– |
_ACEOF |
| 13224 |
– |
|
| 13225 |
– |
|
| 13226 |
– |
# The cast to long int works around a bug in the HP C Compiler |
| 13227 |
– |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13228 |
– |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13229 |
– |
# This bug is HP SR number 8606223364. |
| 13230 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 13231 |
– |
$as_echo_n "checking size of short... " >&6; } |
| 13232 |
– |
if ${ac_cv_sizeof_short+:} false; then : |
| 13233 |
– |
$as_echo_n "(cached) " >&6 |
| 13234 |
– |
else |
| 13235 |
– |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
| 13236 |
– |
|
| 13237 |
– |
else |
| 13238 |
– |
if test "$ac_cv_type_short" = yes; then |
| 13239 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13240 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13241 |
– |
as_fn_error 77 "cannot compute sizeof (short) |
| 13242 |
– |
See \`config.log' for more details" "$LINENO" 5; } |
| 13243 |
– |
else |
| 13244 |
– |
ac_cv_sizeof_short=0 |
| 13245 |
– |
fi |
| 13246 |
– |
fi |
| 13247 |
– |
|
| 13248 |
– |
fi |
| 13249 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 13250 |
– |
$as_echo "$ac_cv_sizeof_short" >&6; } |
| 13251 |
– |
|
| 13252 |
– |
|
| 13253 |
– |
|
| 13254 |
– |
cat >>confdefs.h <<_ACEOF |
| 13255 |
– |
#define SIZEOF_SHORT $ac_cv_sizeof_short |
| 13256 |
– |
_ACEOF |
| 13257 |
– |
|
| 13258 |
– |
|
| 13259 |
– |
# The cast to long int works around a bug in the HP C Compiler |
| 13260 |
– |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13261 |
– |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13262 |
– |
# This bug is HP SR number 8606223364. |
| 13263 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 13264 |
– |
$as_echo_n "checking size of long... " >&6; } |
| 13265 |
– |
if ${ac_cv_sizeof_long+:} false; then : |
| 13266 |
– |
$as_echo_n "(cached) " >&6 |
| 13267 |
– |
else |
| 13268 |
– |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
| 13269 |
– |
|
| 13270 |
– |
else |
| 13271 |
– |
if test "$ac_cv_type_long" = yes; then |
| 13272 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13273 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13274 |
– |
as_fn_error 77 "cannot compute sizeof (long) |
| 13275 |
– |
See \`config.log' for more details" "$LINENO" 5; } |
| 13276 |
– |
else |
| 13277 |
– |
ac_cv_sizeof_long=0 |
| 13278 |
– |
fi |
| 13279 |
– |
fi |
| 13280 |
– |
|
| 13281 |
– |
fi |
| 13282 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 13283 |
– |
$as_echo "$ac_cv_sizeof_long" >&6; } |
| 13284 |
– |
|
| 13285 |
– |
|
| 13286 |
– |
|
| 13287 |
– |
cat >>confdefs.h <<_ACEOF |
| 13288 |
– |
#define SIZEOF_LONG $ac_cv_sizeof_long |
| 13289 |
– |
_ACEOF |
| 13290 |
– |
|
| 13291 |
– |
|
| 13292 |
– |
|
| 13293 |
– |
|
| 13294 |
– |
|
| 13010 |
|
|
| 13011 |
|
|
| 13012 |
|
|