| 1 |
|
#! /bin/sh |
| 2 |
< |
# From configure.ac Id: configure.ac 998 2009-08-23 12:43:17Z michael . |
| 2 |
> |
# From configure.ac Id: configure.ac 1015 2009-10-25 00:08:06Z michael . |
| 3 |
|
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
< |
# Generated by GNU Autoconf 2.64 for ircd-hybrid 7.2.4. |
| 4 |
> |
# Generated by GNU Autoconf 2.65 for ircd-hybrid 7.2.4. |
| 5 |
> |
# |
| 6 |
|
# |
| 7 |
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 |
< |
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
| 9 |
< |
# Foundation, Inc. |
| 8 |
> |
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 9 |
> |
# Inc. |
| 10 |
> |
# |
| 11 |
|
# |
| 12 |
|
# This configure script is free software; the Free Software Foundation |
| 13 |
|
# gives unlimited permission to copy, distribute and modify it. |
| 680 |
|
|
| 681 |
|
lt_dlopen_dir="$lt_ltdl_dir" |
| 682 |
|
|
| 683 |
< |
exec 7<&0 </dev/null 6>&1 |
| 683 |
> |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 684 |
> |
exec 6>&1 |
| 685 |
|
|
| 686 |
|
# Name of the host. |
| 687 |
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 1617 |
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1618 |
|
nonstandard directory <lib dir> |
| 1619 |
|
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1620 |
< |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1620 |
> |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1621 |
|
you have headers in a nonstandard directory <include dir> |
| 1622 |
|
YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1623 |
|
the first program found out of: `bison -y', `byacc', `yacc'. |
| 1693 |
|
if $ac_init_version; then |
| 1694 |
|
cat <<\_ACEOF |
| 1695 |
|
ircd-hybrid configure 7.2.4 |
| 1696 |
< |
generated by GNU Autoconf 2.64 |
| 1696 |
> |
generated by GNU Autoconf 2.65 |
| 1697 |
|
|
| 1698 |
|
Copyright (C) 2009 Free Software Foundation, Inc. |
| 1699 |
|
This configure script is free software; the Free Software Foundation |
| 1740 |
|
ac_retval=1 |
| 1741 |
|
fi |
| 1742 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1743 |
< |
return $ac_retval |
| 1743 |
> |
as_fn_set_status $ac_retval |
| 1744 |
|
|
| 1745 |
|
} # ac_fn_c_try_compile |
| 1746 |
|
|
| 1786 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
| 1787 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1788 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1789 |
< |
return $ac_retval |
| 1789 |
> |
as_fn_set_status $ac_retval |
| 1790 |
|
|
| 1791 |
|
} # ac_fn_c_try_link |
| 1792 |
|
|
| 1854 |
|
ac_retval=1 |
| 1855 |
|
fi |
| 1856 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1857 |
< |
return $ac_retval |
| 1857 |
> |
as_fn_set_status $ac_retval |
| 1858 |
|
|
| 1859 |
|
} # ac_fn_c_try_cpp |
| 1860 |
|
|
| 1896 |
|
fi |
| 1897 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1898 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1899 |
< |
return $ac_retval |
| 1899 |
> |
as_fn_set_status $ac_retval |
| 1900 |
|
|
| 1901 |
|
} # ac_fn_c_try_run |
| 1902 |
|
|
| 2117 |
|
|
| 2118 |
|
} # ac_fn_c_check_member |
| 2119 |
|
|
| 2117 |
– |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2118 |
– |
# -------------------------------------------- |
| 2119 |
– |
# Tries to find the compile-time value of EXPR in a program that includes |
| 2120 |
– |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2121 |
– |
# computed |
| 2122 |
– |
ac_fn_c_compute_int () |
| 2123 |
– |
{ |
| 2124 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2125 |
– |
if test "$cross_compiling" = yes; then |
| 2126 |
– |
# Depending upon the size, compute the lo and hi bounds. |
| 2127 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2128 |
– |
/* end confdefs.h. */ |
| 2129 |
– |
$4 |
| 2130 |
– |
int |
| 2131 |
– |
main () |
| 2132 |
– |
{ |
| 2133 |
– |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2134 |
– |
test_array [0] = 0 |
| 2135 |
– |
|
| 2136 |
– |
; |
| 2137 |
– |
return 0; |
| 2138 |
– |
} |
| 2139 |
– |
_ACEOF |
| 2140 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2141 |
– |
ac_lo=0 ac_mid=0 |
| 2142 |
– |
while :; do |
| 2143 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2144 |
– |
/* end confdefs.h. */ |
| 2145 |
– |
$4 |
| 2146 |
– |
int |
| 2147 |
– |
main () |
| 2148 |
– |
{ |
| 2149 |
– |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2150 |
– |
test_array [0] = 0 |
| 2151 |
– |
|
| 2152 |
– |
; |
| 2153 |
– |
return 0; |
| 2154 |
– |
} |
| 2155 |
– |
_ACEOF |
| 2156 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2157 |
– |
ac_hi=$ac_mid; break |
| 2158 |
– |
else |
| 2159 |
– |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2160 |
– |
if test $ac_lo -le $ac_mid; then |
| 2161 |
– |
ac_lo= ac_hi= |
| 2162 |
– |
break |
| 2163 |
– |
fi |
| 2164 |
– |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2165 |
– |
fi |
| 2166 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2167 |
– |
done |
| 2168 |
– |
else |
| 2169 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2170 |
– |
/* end confdefs.h. */ |
| 2171 |
– |
$4 |
| 2172 |
– |
int |
| 2173 |
– |
main () |
| 2174 |
– |
{ |
| 2175 |
– |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2176 |
– |
test_array [0] = 0 |
| 2177 |
– |
|
| 2178 |
– |
; |
| 2179 |
– |
return 0; |
| 2180 |
– |
} |
| 2181 |
– |
_ACEOF |
| 2182 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2183 |
– |
ac_hi=-1 ac_mid=-1 |
| 2184 |
– |
while :; do |
| 2185 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2186 |
– |
/* end confdefs.h. */ |
| 2187 |
– |
$4 |
| 2188 |
– |
int |
| 2189 |
– |
main () |
| 2190 |
– |
{ |
| 2191 |
– |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2192 |
– |
test_array [0] = 0 |
| 2193 |
– |
|
| 2194 |
– |
; |
| 2195 |
– |
return 0; |
| 2196 |
– |
} |
| 2197 |
– |
_ACEOF |
| 2198 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2199 |
– |
ac_lo=$ac_mid; break |
| 2200 |
– |
else |
| 2201 |
– |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2202 |
– |
if test $ac_mid -le $ac_hi; then |
| 2203 |
– |
ac_lo= ac_hi= |
| 2204 |
– |
break |
| 2205 |
– |
fi |
| 2206 |
– |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2207 |
– |
fi |
| 2208 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2209 |
– |
done |
| 2210 |
– |
else |
| 2211 |
– |
ac_lo= ac_hi= |
| 2212 |
– |
fi |
| 2213 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2214 |
– |
fi |
| 2215 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2216 |
– |
# Binary search between lo and hi bounds. |
| 2217 |
– |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2218 |
– |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2219 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2220 |
– |
/* end confdefs.h. */ |
| 2221 |
– |
$4 |
| 2222 |
– |
int |
| 2223 |
– |
main () |
| 2224 |
– |
{ |
| 2225 |
– |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2226 |
– |
test_array [0] = 0 |
| 2227 |
– |
|
| 2228 |
– |
; |
| 2229 |
– |
return 0; |
| 2230 |
– |
} |
| 2231 |
– |
_ACEOF |
| 2232 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2233 |
– |
ac_hi=$ac_mid |
| 2234 |
– |
else |
| 2235 |
– |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2236 |
– |
fi |
| 2237 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2238 |
– |
done |
| 2239 |
– |
case $ac_lo in #(( |
| 2240 |
– |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2241 |
– |
'') ac_retval=1 ;; |
| 2242 |
– |
esac |
| 2243 |
– |
else |
| 2244 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2245 |
– |
/* end confdefs.h. */ |
| 2246 |
– |
$4 |
| 2247 |
– |
static long int longval () { return $2; } |
| 2248 |
– |
static unsigned long int ulongval () { return $2; } |
| 2249 |
– |
#include <stdio.h> |
| 2250 |
– |
#include <stdlib.h> |
| 2251 |
– |
int |
| 2252 |
– |
main () |
| 2253 |
– |
{ |
| 2254 |
– |
|
| 2255 |
– |
FILE *f = fopen ("conftest.val", "w"); |
| 2256 |
– |
if (! f) |
| 2257 |
– |
return 1; |
| 2258 |
– |
if (($2) < 0) |
| 2259 |
– |
{ |
| 2260 |
– |
long int i = longval (); |
| 2261 |
– |
if (i != ($2)) |
| 2262 |
– |
return 1; |
| 2263 |
– |
fprintf (f, "%ld", i); |
| 2264 |
– |
} |
| 2265 |
– |
else |
| 2266 |
– |
{ |
| 2267 |
– |
unsigned long int i = ulongval (); |
| 2268 |
– |
if (i != ($2)) |
| 2269 |
– |
return 1; |
| 2270 |
– |
fprintf (f, "%lu", i); |
| 2271 |
– |
} |
| 2272 |
– |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2273 |
– |
on some platforms. */ |
| 2274 |
– |
return ferror (f) || fclose (f) != 0; |
| 2275 |
– |
|
| 2276 |
– |
; |
| 2277 |
– |
return 0; |
| 2278 |
– |
} |
| 2279 |
– |
_ACEOF |
| 2280 |
– |
if ac_fn_c_try_run "$LINENO"; then : |
| 2281 |
– |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2282 |
– |
else |
| 2283 |
– |
ac_retval=1 |
| 2284 |
– |
fi |
| 2285 |
– |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2286 |
– |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2287 |
– |
rm -f conftest.val |
| 2288 |
– |
|
| 2289 |
– |
fi |
| 2290 |
– |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2291 |
– |
return $ac_retval |
| 2292 |
– |
|
| 2293 |
– |
} # ac_fn_c_compute_int |
| 2294 |
– |
|
| 2120 |
|
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2121 |
|
# ------------------------------------------------------- |
| 2122 |
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2208 |
|
running configure, to aid debugging if configure makes a mistake. |
| 2209 |
|
|
| 2210 |
|
It was created by ircd-hybrid $as_me 7.2.4, which was |
| 2211 |
< |
generated by GNU Autoconf 2.64. Invocation command line was |
| 2211 |
> |
generated by GNU Autoconf 2.65. Invocation command line was |
| 2212 |
|
|
| 2213 |
|
$ $0 $@ |
| 2214 |
|
|
| 2461 |
|
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2462 |
|
do |
| 2463 |
|
test "x$ac_site_file" = xNONE && continue |
| 2464 |
< |
if test -r "$ac_site_file"; then |
| 2464 |
> |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2465 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2466 |
|
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2467 |
|
sed 's/^/| /' "$ac_site_file" >&5 |
| 2470 |
|
done |
| 2471 |
|
|
| 2472 |
|
if test -r "$cache_file"; then |
| 2473 |
< |
# Some versions of bash will fail to source /dev/null (special |
| 2474 |
< |
# files actually), so we avoid doing that. |
| 2475 |
< |
if test -f "$cache_file"; then |
| 2473 |
> |
# Some versions of bash will fail to source /dev/null (special files |
| 2474 |
> |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2475 |
> |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2476 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2477 |
|
$as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2478 |
|
case $cache_file in |
| 2486 |
|
>$cache_file |
| 2487 |
|
fi |
| 2488 |
|
|
| 2664 |
– |
as_fn_append ac_func_list " snprintf" |
| 2665 |
– |
as_fn_append ac_func_list " vsnprintf" |
| 2489 |
|
as_fn_append ac_func_list " mmap" |
| 2490 |
|
as_fn_append ac_func_list " strtok_r" |
| 2491 |
|
as_fn_append ac_func_list " usleep" |
| 2498 |
|
as_fn_append ac_header_list " sys/param.h" |
| 2499 |
|
as_fn_append ac_header_list " errno.h" |
| 2500 |
|
as_fn_append ac_header_list " sys/syslog.h" |
| 2678 |
– |
as_fn_append ac_header_list " stddef.h" |
| 2679 |
– |
as_fn_append ac_header_list " libgen.h" |
| 2501 |
|
as_fn_append ac_header_list " types.h" |
| 2502 |
|
as_fn_append ac_header_list " socket.h" |
| 2503 |
|
as_fn_append ac_header_list " sys/wait.h" |
| 2908 |
|
|
| 2909 |
|
fi |
| 2910 |
|
|
| 2911 |
+ |
test -d ./--version && rmdir ./--version |
| 2912 |
|
if test "${ac_cv_path_mkdir+set}" = set; then |
| 2913 |
|
MKDIR_P="$ac_cv_path_mkdir -p" |
| 2914 |
|
else |
| 2916 |
|
# value for MKDIR_P within a source directory, because that will |
| 2917 |
|
# break other packages using the cache if that directory is |
| 2918 |
|
# removed, or if the value is a relative name. |
| 3097 |
– |
test -d ./--version && rmdir ./--version |
| 2919 |
|
MKDIR_P="$ac_install_sh -d" |
| 2920 |
|
fi |
| 2921 |
|
fi |
| 3099 |
|
|
| 3100 |
|
|
| 3101 |
|
|
| 3281 |
– |
|
| 3102 |
|
# Checks for programs. |
| 3103 |
+ |
DEPDIR="${am__leading_dot}deps" |
| 3104 |
+ |
|
| 3105 |
+ |
ac_config_commands="$ac_config_commands depfiles" |
| 3106 |
+ |
|
| 3107 |
+ |
|
| 3108 |
+ |
am_make=${MAKE-make} |
| 3109 |
+ |
cat > confinc << 'END' |
| 3110 |
+ |
am__doit: |
| 3111 |
+ |
@echo this is the am__doit target |
| 3112 |
+ |
.PHONY: am__doit |
| 3113 |
+ |
END |
| 3114 |
+ |
# If we don't find an include directive, just comment out the code. |
| 3115 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3116 |
+ |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3117 |
+ |
am__include="#" |
| 3118 |
+ |
am__quote= |
| 3119 |
+ |
_am_result=none |
| 3120 |
+ |
# First try GNU make style include. |
| 3121 |
+ |
echo "include confinc" > confmf |
| 3122 |
+ |
# Ignore all kinds of additional output from `make'. |
| 3123 |
+ |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3124 |
+ |
*the\ am__doit\ target*) |
| 3125 |
+ |
am__include=include |
| 3126 |
+ |
am__quote= |
| 3127 |
+ |
_am_result=GNU |
| 3128 |
+ |
;; |
| 3129 |
+ |
esac |
| 3130 |
+ |
# Now try BSD make style include. |
| 3131 |
+ |
if test "$am__include" = "#"; then |
| 3132 |
+ |
echo '.include "confinc"' > confmf |
| 3133 |
+ |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3134 |
+ |
*the\ am__doit\ target*) |
| 3135 |
+ |
am__include=.include |
| 3136 |
+ |
am__quote="\"" |
| 3137 |
+ |
_am_result=BSD |
| 3138 |
+ |
;; |
| 3139 |
+ |
esac |
| 3140 |
+ |
fi |
| 3141 |
+ |
|
| 3142 |
+ |
|
| 3143 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3144 |
+ |
$as_echo "$_am_result" >&6; } |
| 3145 |
+ |
rm -f confinc confmf |
| 3146 |
+ |
|
| 3147 |
+ |
# Check whether --enable-dependency-tracking was given. |
| 3148 |
+ |
if test "${enable_dependency_tracking+set}" = set; then : |
| 3149 |
+ |
enableval=$enable_dependency_tracking; |
| 3150 |
+ |
fi |
| 3151 |
+ |
|
| 3152 |
+ |
if test "x$enable_dependency_tracking" != xno; then |
| 3153 |
+ |
am_depcomp="$ac_aux_dir/depcomp" |
| 3154 |
+ |
AMDEPBACKSLASH='\' |
| 3155 |
+ |
fi |
| 3156 |
+ |
if test "x$enable_dependency_tracking" != xno; then |
| 3157 |
+ |
AMDEP_TRUE= |
| 3158 |
+ |
AMDEP_FALSE='#' |
| 3159 |
+ |
else |
| 3160 |
+ |
AMDEP_TRUE='#' |
| 3161 |
+ |
AMDEP_FALSE= |
| 3162 |
+ |
fi |
| 3163 |
+ |
|
| 3164 |
+ |
|
| 3165 |
|
ac_ext=c |
| 3166 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 3167 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3484 |
|
... rest of stderr output deleted ... |
| 3485 |
|
10q' conftest.err >conftest.er1 |
| 3486 |
|
cat conftest.er1 >&5 |
| 3605 |
– |
rm -f conftest.er1 conftest.err |
| 3487 |
|
fi |
| 3488 |
+ |
rm -f conftest.er1 conftest.err |
| 3489 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3490 |
|
test $ac_status = 0; } |
| 3491 |
|
done |
| 3492 |
|
|
| 3493 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3494 |
|
/* end confdefs.h. */ |
| 3495 |
< |
#include <stdio.h> |
| 3495 |
> |
|
| 3496 |
|
int |
| 3497 |
|
main () |
| 3498 |
|
{ |
| 3617 |
– |
FILE *f = fopen ("conftest.out", "w"); |
| 3618 |
– |
return ferror (f) || fclose (f) != 0; |
| 3499 |
|
|
| 3500 |
|
; |
| 3501 |
|
return 0; |
| 3502 |
|
} |
| 3503 |
|
_ACEOF |
| 3504 |
|
ac_clean_files_save=$ac_clean_files |
| 3505 |
< |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
| 3505 |
> |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3506 |
|
# Try to create an executable without -o first, disregard a.out. |
| 3507 |
|
# It will help us diagnose broken compilers, and finding out an intuition |
| 3508 |
|
# of exeext. |
| 3509 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3510 |
< |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3509 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3510 |
> |
$as_echo_n "checking whether the C compiler works... " >&6; } |
| 3511 |
|
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3512 |
|
|
| 3513 |
|
# The possible output files: |
| 3569 |
|
else |
| 3570 |
|
ac_file='' |
| 3571 |
|
fi |
| 3692 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3693 |
– |
$as_echo "$ac_file" >&6; } |
| 3572 |
|
if test -z "$ac_file"; then : |
| 3573 |
< |
$as_echo "$as_me: failed program was:" >&5 |
| 3573 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3574 |
> |
$as_echo "no" >&6; } |
| 3575 |
> |
$as_echo "$as_me: failed program was:" >&5 |
| 3576 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3577 |
|
|
| 3578 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3580 |
|
{ as_fn_set_status 77 |
| 3581 |
|
as_fn_error "C compiler cannot create executables |
| 3582 |
|
See \`config.log' for more details." "$LINENO" 5; }; } |
| 3583 |
+ |
else |
| 3584 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3585 |
+ |
$as_echo "yes" >&6; } |
| 3586 |
|
fi |
| 3587 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3588 |
+ |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3589 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3590 |
+ |
$as_echo "$ac_file" >&6; } |
| 3591 |
|
ac_exeext=$ac_cv_exeext |
| 3592 |
|
|
| 3593 |
< |
# Check that the compiler produces executables we can run. If not, either |
| 3707 |
< |
# the compiler is broken, or we cross compile. |
| 3708 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3709 |
< |
$as_echo_n "checking whether the C compiler works... " >&6; } |
| 3710 |
< |
# If not cross compiling, check that we can run a simple program. |
| 3711 |
< |
if test "$cross_compiling" != yes; then |
| 3712 |
< |
if { ac_try='./$ac_file' |
| 3713 |
< |
{ { case "(($ac_try" in |
| 3714 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3715 |
< |
*) ac_try_echo=$ac_try;; |
| 3716 |
< |
esac |
| 3717 |
< |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3718 |
< |
$as_echo "$ac_try_echo"; } >&5 |
| 3719 |
< |
(eval "$ac_try") 2>&5 |
| 3720 |
< |
ac_status=$? |
| 3721 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3722 |
< |
test $ac_status = 0; }; }; then |
| 3723 |
< |
cross_compiling=no |
| 3724 |
< |
else |
| 3725 |
< |
if test "$cross_compiling" = maybe; then |
| 3726 |
< |
cross_compiling=yes |
| 3727 |
< |
else |
| 3728 |
< |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3729 |
< |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3730 |
< |
as_fn_error "cannot run C compiled programs. |
| 3731 |
< |
If you meant to cross compile, use \`--host'. |
| 3732 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
| 3733 |
< |
fi |
| 3734 |
< |
fi |
| 3735 |
< |
fi |
| 3736 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3737 |
< |
$as_echo "yes" >&6; } |
| 3738 |
< |
|
| 3739 |
< |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
| 3593 |
> |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3594 |
|
ac_clean_files=$ac_clean_files_save |
| 3741 |
– |
# Check that the compiler produces executables we can run. If not, either |
| 3742 |
– |
# the compiler is broken, or we cross compile. |
| 3743 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3744 |
– |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3745 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3746 |
– |
$as_echo "$cross_compiling" >&6; } |
| 3747 |
– |
|
| 3595 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3596 |
|
$as_echo_n "checking for suffix of executables... " >&6; } |
| 3597 |
|
if { { ac_try="$ac_link" |
| 3624 |
|
as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3625 |
|
See \`config.log' for more details." "$LINENO" 5; } |
| 3626 |
|
fi |
| 3627 |
< |
rm -f conftest$ac_cv_exeext |
| 3627 |
> |
rm -f conftest conftest$ac_cv_exeext |
| 3628 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3629 |
|
$as_echo "$ac_cv_exeext" >&6; } |
| 3630 |
|
|
| 3631 |
|
rm -f conftest.$ac_ext |
| 3632 |
|
EXEEXT=$ac_cv_exeext |
| 3633 |
|
ac_exeext=$EXEEXT |
| 3634 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3635 |
+ |
/* end confdefs.h. */ |
| 3636 |
+ |
#include <stdio.h> |
| 3637 |
+ |
int |
| 3638 |
+ |
main () |
| 3639 |
+ |
{ |
| 3640 |
+ |
FILE *f = fopen ("conftest.out", "w"); |
| 3641 |
+ |
return ferror (f) || fclose (f) != 0; |
| 3642 |
+ |
|
| 3643 |
+ |
; |
| 3644 |
+ |
return 0; |
| 3645 |
+ |
} |
| 3646 |
+ |
_ACEOF |
| 3647 |
+ |
ac_clean_files="$ac_clean_files conftest.out" |
| 3648 |
+ |
# Check that the compiler produces executables we can run. If not, either |
| 3649 |
+ |
# the compiler is broken, or we cross compile. |
| 3650 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3651 |
+ |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3652 |
+ |
if test "$cross_compiling" != yes; then |
| 3653 |
+ |
{ { ac_try="$ac_link" |
| 3654 |
+ |
case "(($ac_try" in |
| 3655 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3656 |
+ |
*) ac_try_echo=$ac_try;; |
| 3657 |
+ |
esac |
| 3658 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3659 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
| 3660 |
+ |
(eval "$ac_link") 2>&5 |
| 3661 |
+ |
ac_status=$? |
| 3662 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3663 |
+ |
test $ac_status = 0; } |
| 3664 |
+ |
if { ac_try='./conftest$ac_cv_exeext' |
| 3665 |
+ |
{ { case "(($ac_try" in |
| 3666 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3667 |
+ |
*) ac_try_echo=$ac_try;; |
| 3668 |
+ |
esac |
| 3669 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3670 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
| 3671 |
+ |
(eval "$ac_try") 2>&5 |
| 3672 |
+ |
ac_status=$? |
| 3673 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3674 |
+ |
test $ac_status = 0; }; }; then |
| 3675 |
+ |
cross_compiling=no |
| 3676 |
+ |
else |
| 3677 |
+ |
if test "$cross_compiling" = maybe; then |
| 3678 |
+ |
cross_compiling=yes |
| 3679 |
+ |
else |
| 3680 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3681 |
+ |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3682 |
+ |
as_fn_error "cannot run C compiled programs. |
| 3683 |
+ |
If you meant to cross compile, use \`--host'. |
| 3684 |
+ |
See \`config.log' for more details." "$LINENO" 5; } |
| 3685 |
+ |
fi |
| 3686 |
+ |
fi |
| 3687 |
+ |
fi |
| 3688 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3689 |
+ |
$as_echo "$cross_compiling" >&6; } |
| 3690 |
+ |
|
| 3691 |
+ |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3692 |
+ |
ac_clean_files=$ac_clean_files_save |
| 3693 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3694 |
|
$as_echo_n "checking for suffix of object files... " >&6; } |
| 3695 |
|
if test "${ac_cv_objext+set}" = set; then : |
| 3952 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3953 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3954 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4049 |
– |
DEPDIR="${am__leading_dot}deps" |
| 4050 |
– |
|
| 4051 |
– |
ac_config_commands="$ac_config_commands depfiles" |
| 4052 |
– |
|
| 4053 |
– |
|
| 4054 |
– |
am_make=${MAKE-make} |
| 4055 |
– |
cat > confinc << 'END' |
| 4056 |
– |
am__doit: |
| 4057 |
– |
@echo this is the am__doit target |
| 4058 |
– |
.PHONY: am__doit |
| 4059 |
– |
END |
| 4060 |
– |
# If we don't find an include directive, just comment out the code. |
| 4061 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 4062 |
– |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4063 |
– |
am__include="#" |
| 4064 |
– |
am__quote= |
| 4065 |
– |
_am_result=none |
| 4066 |
– |
# First try GNU make style include. |
| 4067 |
– |
echo "include confinc" > confmf |
| 4068 |
– |
# Ignore all kinds of additional output from `make'. |
| 4069 |
– |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4070 |
– |
*the\ am__doit\ target*) |
| 4071 |
– |
am__include=include |
| 4072 |
– |
am__quote= |
| 4073 |
– |
_am_result=GNU |
| 4074 |
– |
;; |
| 4075 |
– |
esac |
| 4076 |
– |
# Now try BSD make style include. |
| 4077 |
– |
if test "$am__include" = "#"; then |
| 4078 |
– |
echo '.include "confinc"' > confmf |
| 4079 |
– |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4080 |
– |
*the\ am__doit\ target*) |
| 4081 |
– |
am__include=.include |
| 4082 |
– |
am__quote="\"" |
| 4083 |
– |
_am_result=BSD |
| 4084 |
– |
;; |
| 4085 |
– |
esac |
| 4086 |
– |
fi |
| 4087 |
– |
|
| 4088 |
– |
|
| 4089 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 4090 |
– |
$as_echo "$_am_result" >&6; } |
| 4091 |
– |
rm -f confinc confmf |
| 4092 |
– |
|
| 4093 |
– |
# Check whether --enable-dependency-tracking was given. |
| 4094 |
– |
if test "${enable_dependency_tracking+set}" = set; then : |
| 4095 |
– |
enableval=$enable_dependency_tracking; |
| 4096 |
– |
fi |
| 4097 |
– |
|
| 4098 |
– |
if test "x$enable_dependency_tracking" != xno; then |
| 4099 |
– |
am_depcomp="$ac_aux_dir/depcomp" |
| 4100 |
– |
AMDEPBACKSLASH='\' |
| 4101 |
– |
fi |
| 4102 |
– |
if test "x$enable_dependency_tracking" != xno; then |
| 4103 |
– |
AMDEP_TRUE= |
| 4104 |
– |
AMDEP_FALSE='#' |
| 4105 |
– |
else |
| 4106 |
– |
AMDEP_TRUE='#' |
| 4107 |
– |
AMDEP_FALSE= |
| 4108 |
– |
fi |
| 4109 |
– |
|
| 4110 |
– |
|
| 3955 |
|
|
| 3956 |
|
depcc="$CC" am_compiler_list= |
| 3957 |
|
|
| 4080 |
|
fi |
| 4081 |
|
|
| 4082 |
|
|
| 4083 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| 4084 |
+ |
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| 4085 |
+ |
if test "${ac_cv_prog_cc_c99+set}" = set; then : |
| 4086 |
+ |
$as_echo_n "(cached) " >&6 |
| 4087 |
+ |
else |
| 4088 |
+ |
ac_cv_prog_cc_c99=no |
| 4089 |
+ |
ac_save_CC=$CC |
| 4090 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4091 |
+ |
/* end confdefs.h. */ |
| 4092 |
+ |
#include <stdarg.h> |
| 4093 |
+ |
#include <stdbool.h> |
| 4094 |
+ |
#include <stdlib.h> |
| 4095 |
+ |
#include <wchar.h> |
| 4096 |
+ |
#include <stdio.h> |
| 4097 |
+ |
|
| 4098 |
+ |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 4099 |
+ |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
| 4100 |
+ |
#define showlist(...) puts (#__VA_ARGS__) |
| 4101 |
+ |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 4102 |
+ |
static void |
| 4103 |
+ |
test_varargs_macros (void) |
| 4104 |
+ |
{ |
| 4105 |
+ |
int x = 1234; |
| 4106 |
+ |
int y = 5678; |
| 4107 |
+ |
debug ("Flag"); |
| 4108 |
+ |
debug ("X = %d\n", x); |
| 4109 |
+ |
showlist (The first, second, and third items.); |
| 4110 |
+ |
report (x>y, "x is %d but y is %d", x, y); |
| 4111 |
+ |
} |
| 4112 |
+ |
|
| 4113 |
+ |
// Check long long types. |
| 4114 |
+ |
#define BIG64 18446744073709551615ull |
| 4115 |
+ |
#define BIG32 4294967295ul |
| 4116 |
+ |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 4117 |
+ |
#if !BIG_OK |
| 4118 |
+ |
your preprocessor is broken; |
| 4119 |
+ |
#endif |
| 4120 |
+ |
#if BIG_OK |
| 4121 |
+ |
#else |
| 4122 |
+ |
your preprocessor is broken; |
| 4123 |
+ |
#endif |
| 4124 |
+ |
static long long int bignum = -9223372036854775807LL; |
| 4125 |
+ |
static unsigned long long int ubignum = BIG64; |
| 4126 |
+ |
|
| 4127 |
+ |
struct incomplete_array |
| 4128 |
+ |
{ |
| 4129 |
+ |
int datasize; |
| 4130 |
+ |
double data[]; |
| 4131 |
+ |
}; |
| 4132 |
+ |
|
| 4133 |
+ |
struct named_init { |
| 4134 |
+ |
int number; |
| 4135 |
+ |
const wchar_t *name; |
| 4136 |
+ |
double average; |
| 4137 |
+ |
}; |
| 4138 |
+ |
|
| 4139 |
+ |
typedef const char *ccp; |
| 4140 |
+ |
|
| 4141 |
+ |
static inline int |
| 4142 |
+ |
test_restrict (ccp restrict text) |
| 4143 |
+ |
{ |
| 4144 |
+ |
// See if C++-style comments work. |
| 4145 |
+ |
// Iterate through items via the restricted pointer. |
| 4146 |
+ |
// Also check for declarations in for loops. |
| 4147 |
+ |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 4148 |
+ |
continue; |
| 4149 |
+ |
return 0; |
| 4150 |
+ |
} |
| 4151 |
+ |
|
| 4152 |
+ |
// Check varargs and va_copy. |
| 4153 |
+ |
static void |
| 4154 |
+ |
test_varargs (const char *format, ...) |
| 4155 |
+ |
{ |
| 4156 |
+ |
va_list args; |
| 4157 |
+ |
va_start (args, format); |
| 4158 |
+ |
va_list args_copy; |
| 4159 |
+ |
va_copy (args_copy, args); |
| 4160 |
+ |
|
| 4161 |
+ |
const char *str; |
| 4162 |
+ |
int number; |
| 4163 |
+ |
float fnumber; |
| 4164 |
+ |
|
| 4165 |
+ |
while (*format) |
| 4166 |
+ |
{ |
| 4167 |
+ |
switch (*format++) |
| 4168 |
+ |
{ |
| 4169 |
+ |
case 's': // string |
| 4170 |
+ |
str = va_arg (args_copy, const char *); |
| 4171 |
+ |
break; |
| 4172 |
+ |
case 'd': // int |
| 4173 |
+ |
number = va_arg (args_copy, int); |
| 4174 |
+ |
break; |
| 4175 |
+ |
case 'f': // float |
| 4176 |
+ |
fnumber = va_arg (args_copy, double); |
| 4177 |
+ |
break; |
| 4178 |
+ |
default: |
| 4179 |
+ |
break; |
| 4180 |
+ |
} |
| 4181 |
+ |
} |
| 4182 |
+ |
va_end (args_copy); |
| 4183 |
+ |
va_end (args); |
| 4184 |
+ |
} |
| 4185 |
+ |
|
| 4186 |
+ |
int |
| 4187 |
+ |
main () |
| 4188 |
+ |
{ |
| 4189 |
+ |
|
| 4190 |
+ |
// Check bool. |
| 4191 |
+ |
_Bool success = false; |
| 4192 |
+ |
|
| 4193 |
+ |
// Check restrict. |
| 4194 |
+ |
if (test_restrict ("String literal") == 0) |
| 4195 |
+ |
success = true; |
| 4196 |
+ |
char *restrict newvar = "Another string"; |
| 4197 |
+ |
|
| 4198 |
+ |
// Check varargs. |
| 4199 |
+ |
test_varargs ("s, d' f .", "string", 65, 34.234); |
| 4200 |
+ |
test_varargs_macros (); |
| 4201 |
+ |
|
| 4202 |
+ |
// Check flexible array members. |
| 4203 |
+ |
struct incomplete_array *ia = |
| 4204 |
+ |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 4205 |
+ |
ia->datasize = 10; |
| 4206 |
+ |
for (int i = 0; i < ia->datasize; ++i) |
| 4207 |
+ |
ia->data[i] = i * 1.234; |
| 4208 |
+ |
|
| 4209 |
+ |
// Check named initializers. |
| 4210 |
+ |
struct named_init ni = { |
| 4211 |
+ |
.number = 34, |
| 4212 |
+ |
.name = L"Test wide string", |
| 4213 |
+ |
.average = 543.34343, |
| 4214 |
+ |
}; |
| 4215 |
+ |
|
| 4216 |
+ |
ni.number = 58; |
| 4217 |
+ |
|
| 4218 |
+ |
int dynamic_array[ni.number]; |
| 4219 |
+ |
dynamic_array[ni.number - 1] = 543; |
| 4220 |
+ |
|
| 4221 |
+ |
// work around unused variable warnings |
| 4222 |
+ |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 4223 |
+ |
|| dynamic_array[ni.number - 1] != 543); |
| 4224 |
+ |
|
| 4225 |
+ |
; |
| 4226 |
+ |
return 0; |
| 4227 |
+ |
} |
| 4228 |
+ |
_ACEOF |
| 4229 |
+ |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 4230 |
+ |
do |
| 4231 |
+ |
CC="$ac_save_CC $ac_arg" |
| 4232 |
+ |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4233 |
+ |
ac_cv_prog_cc_c99=$ac_arg |
| 4234 |
+ |
fi |
| 4235 |
+ |
rm -f core conftest.err conftest.$ac_objext |
| 4236 |
+ |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4237 |
+ |
done |
| 4238 |
+ |
rm -f conftest.$ac_ext |
| 4239 |
+ |
CC=$ac_save_CC |
| 4240 |
+ |
|
| 4241 |
+ |
fi |
| 4242 |
+ |
# AC_CACHE_VAL |
| 4243 |
+ |
case "x$ac_cv_prog_cc_c99" in |
| 4244 |
+ |
x) |
| 4245 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4246 |
+ |
$as_echo "none needed" >&6; } ;; |
| 4247 |
+ |
xno) |
| 4248 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4249 |
+ |
$as_echo "unsupported" >&6; } ;; |
| 4250 |
+ |
*) |
| 4251 |
+ |
CC="$CC $ac_cv_prog_cc_c99" |
| 4252 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4253 |
+ |
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 4254 |
+ |
esac |
| 4255 |
+ |
if test "x$ac_cv_prog_cc_c99" != xno; then : |
| 4256 |
+ |
|
| 4257 |
+ |
fi |
| 4258 |
+ |
|
| 4259 |
+ |
|
| 4260 |
+ |
if test "$ac_cv_prog_cc_c99" = "no"; then : |
| 4261 |
+ |
as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5 |
| 4262 |
+ |
fi |
| 4263 |
|
for ac_prog in 'bison -y' byacc |
| 4264 |
|
do |
| 4265 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4466 |
|
fi |
| 4467 |
|
|
| 4468 |
|
|
| 4469 |
< |
|
| 4446 |
< |
#ltdl stuff |
| 4469 |
> |
# Initializing libtool. |
| 4470 |
|
case `pwd` in |
| 4471 |
|
*\ * | *\ *) |
| 4472 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 5147 |
|
else |
| 5148 |
|
lt_cv_nm_interface="BSD nm" |
| 5149 |
|
echo "int some_variable = 0;" > conftest.$ac_ext |
| 5150 |
< |
(eval echo "\"\$as_me:5127: $ac_compile\"" >&5) |
| 5150 |
> |
(eval echo "\"\$as_me:5150: $ac_compile\"" >&5) |
| 5151 |
|
(eval "$ac_compile" 2>conftest.err) |
| 5152 |
|
cat conftest.err >&5 |
| 5153 |
< |
(eval echo "\"\$as_me:5130: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5153 |
> |
(eval echo "\"\$as_me:5153: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5154 |
|
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5155 |
|
cat conftest.err >&5 |
| 5156 |
< |
(eval echo "\"\$as_me:5133: output\"" >&5) |
| 5156 |
> |
(eval echo "\"\$as_me:5156: output\"" >&5) |
| 5157 |
|
cat conftest.out >&5 |
| 5158 |
|
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5159 |
|
lt_cv_nm_interface="MS dumpbin" |
| 6358 |
|
;; |
| 6359 |
|
*-*-irix6*) |
| 6360 |
|
# Find out which ABI we are using. |
| 6361 |
< |
echo '#line 6338 "configure"' > conftest.$ac_ext |
| 6361 |
> |
echo '#line 6361 "configure"' > conftest.$ac_ext |
| 6362 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6363 |
|
(eval $ac_compile) 2>&5 |
| 6364 |
|
ac_status=$? |
| 7882 |
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7883 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7884 |
|
-e 's:$: $lt_compiler_flag:'` |
| 7885 |
< |
(eval echo "\"\$as_me:7862: $lt_compile\"" >&5) |
| 7885 |
> |
(eval echo "\"\$as_me:7885: $lt_compile\"" >&5) |
| 7886 |
|
(eval "$lt_compile" 2>conftest.err) |
| 7887 |
|
ac_status=$? |
| 7888 |
|
cat conftest.err >&5 |
| 7889 |
< |
echo "$as_me:7866: \$? = $ac_status" >&5 |
| 7889 |
> |
echo "$as_me:7889: \$? = $ac_status" >&5 |
| 7890 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7891 |
|
# The compiler can only warn and ignore the option if not recognized |
| 7892 |
|
# So say no if there are warnings other than the usual output. |
| 8221 |
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8222 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8223 |
|
-e 's:$: $lt_compiler_flag:'` |
| 8224 |
< |
(eval echo "\"\$as_me:8201: $lt_compile\"" >&5) |
| 8224 |
> |
(eval echo "\"\$as_me:8224: $lt_compile\"" >&5) |
| 8225 |
|
(eval "$lt_compile" 2>conftest.err) |
| 8226 |
|
ac_status=$? |
| 8227 |
|
cat conftest.err >&5 |
| 8228 |
< |
echo "$as_me:8205: \$? = $ac_status" >&5 |
| 8228 |
> |
echo "$as_me:8228: \$? = $ac_status" >&5 |
| 8229 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8230 |
|
# The compiler can only warn and ignore the option if not recognized |
| 8231 |
|
# So say no if there are warnings other than the usual output. |
| 8326 |
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8327 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8328 |
|
-e 's:$: $lt_compiler_flag:'` |
| 8329 |
< |
(eval echo "\"\$as_me:8306: $lt_compile\"" >&5) |
| 8329 |
> |
(eval echo "\"\$as_me:8329: $lt_compile\"" >&5) |
| 8330 |
|
(eval "$lt_compile" 2>out/conftest.err) |
| 8331 |
|
ac_status=$? |
| 8332 |
|
cat out/conftest.err >&5 |
| 8333 |
< |
echo "$as_me:8310: \$? = $ac_status" >&5 |
| 8333 |
> |
echo "$as_me:8333: \$? = $ac_status" >&5 |
| 8334 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8335 |
|
then |
| 8336 |
|
# The compiler can only warn and ignore the option if not recognized |
| 8381 |
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8382 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8383 |
|
-e 's:$: $lt_compiler_flag:'` |
| 8384 |
< |
(eval echo "\"\$as_me:8361: $lt_compile\"" >&5) |
| 8384 |
> |
(eval echo "\"\$as_me:8384: $lt_compile\"" >&5) |
| 8385 |
|
(eval "$lt_compile" 2>out/conftest.err) |
| 8386 |
|
ac_status=$? |
| 8387 |
|
cat out/conftest.err >&5 |
| 8388 |
< |
echo "$as_me:8365: \$? = $ac_status" >&5 |
| 8388 |
> |
echo "$as_me:8388: \$? = $ac_status" >&5 |
| 8389 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8390 |
|
then |
| 8391 |
|
# The compiler can only warn and ignore the option if not recognized |
| 10118 |
|
libsuff= |
| 10119 |
|
case "$host_cpu" in |
| 10120 |
|
x86_64*|s390x*|powerpc64*) |
| 10121 |
< |
echo '#line 10098 "configure"' > conftest.$ac_ext |
| 10121 |
> |
echo '#line 10121 "configure"' > conftest.$ac_ext |
| 10122 |
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10123 |
|
(eval $ac_compile) 2>&5 |
| 10124 |
|
ac_status=$? |
| 10771 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10772 |
|
lt_status=$lt_dlunknown |
| 10773 |
|
cat > conftest.$ac_ext <<_LT_EOF |
| 10774 |
< |
#line 10751 "configure" |
| 10774 |
> |
#line 10774 "configure" |
| 10775 |
|
#include "confdefs.h" |
| 10776 |
|
|
| 10777 |
|
#if HAVE_DLFCN_H |
| 10867 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10868 |
|
lt_status=$lt_dlunknown |
| 10869 |
|
cat > conftest.$ac_ext <<_LT_EOF |
| 10870 |
< |
#line 10847 "configure" |
| 10870 |
> |
#line 10870 "configure" |
| 10871 |
|
#include "confdefs.h" |
| 10872 |
|
|
| 10873 |
|
#if HAVE_DLFCN_H |
| 11539 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11540 |
|
lt_status=$lt_dlunknown |
| 11541 |
|
cat > conftest.$ac_ext <<_LT_EOF |
| 11542 |
< |
#line 11519 "configure" |
| 11542 |
> |
#line 11542 "configure" |
| 11543 |
|
#include "confdefs.h" |
| 11544 |
|
|
| 11545 |
|
#if HAVE_DLFCN_H |
| 12152 |
|
# Only expand once: |
| 12153 |
|
|
| 12154 |
|
|
| 12132 |
– |
LIBTOOL="$LIBTOOL --silent" |
| 12133 |
– |
|
| 12155 |
|
|
| 12156 |
|
# Checks for libraries. |
| 12157 |
|
|
| 12296 |
|
|
| 12297 |
|
|
| 12298 |
|
|
| 12278 |
– |
|
| 12299 |
|
# Checks for typedefs, structures, and compiler characteristics. |
| 12280 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 12281 |
– |
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 12282 |
– |
if test "${ac_cv_c_const+set}" = set; then : |
| 12283 |
– |
$as_echo_n "(cached) " >&6 |
| 12284 |
– |
else |
| 12285 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12286 |
– |
/* end confdefs.h. */ |
| 12287 |
– |
|
| 12288 |
– |
int |
| 12289 |
– |
main () |
| 12290 |
– |
{ |
| 12291 |
– |
/* FIXME: Include the comments suggested by Paul. */ |
| 12292 |
– |
#ifndef __cplusplus |
| 12293 |
– |
/* Ultrix mips cc rejects this. */ |
| 12294 |
– |
typedef int charset[2]; |
| 12295 |
– |
const charset cs; |
| 12296 |
– |
/* SunOS 4.1.1 cc rejects this. */ |
| 12297 |
– |
char const *const *pcpcc; |
| 12298 |
– |
char **ppc; |
| 12299 |
– |
/* NEC SVR4.0.2 mips cc rejects this. */ |
| 12300 |
– |
struct point {int x, y;}; |
| 12301 |
– |
static struct point const zero = {0,0}; |
| 12302 |
– |
/* AIX XL C 1.02.0.0 rejects this. |
| 12303 |
– |
It does not let you subtract one const X* pointer from another in |
| 12304 |
– |
an arm of an if-expression whose if-part is not a constant |
| 12305 |
– |
expression */ |
| 12306 |
– |
const char *g = "string"; |
| 12307 |
– |
pcpcc = &g + (g ? g-g : 0); |
| 12308 |
– |
/* HPUX 7.0 cc rejects these. */ |
| 12309 |
– |
++pcpcc; |
| 12310 |
– |
ppc = (char**) pcpcc; |
| 12311 |
– |
pcpcc = (char const *const *) ppc; |
| 12312 |
– |
{ /* SCO 3.2v4 cc rejects this. */ |
| 12313 |
– |
char *t; |
| 12314 |
– |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 12315 |
– |
|
| 12316 |
– |
*t++ = 0; |
| 12317 |
– |
if (s) return 0; |
| 12318 |
– |
} |
| 12319 |
– |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 12320 |
– |
int x[] = {25, 17}; |
| 12321 |
– |
const int *foo = &x[0]; |
| 12322 |
– |
++foo; |
| 12323 |
– |
} |
| 12324 |
– |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 12325 |
– |
typedef const int *iptr; |
| 12326 |
– |
iptr p = 0; |
| 12327 |
– |
++p; |
| 12328 |
– |
} |
| 12329 |
– |
{ /* AIX XL C 1.02.0.0 rejects this saying |
| 12330 |
– |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 12331 |
– |
struct s { int j; const int *ap[3]; }; |
| 12332 |
– |
struct s *b; b->j = 5; |
| 12333 |
– |
} |
| 12334 |
– |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 12335 |
– |
const int foo = 10; |
| 12336 |
– |
if (!foo) return 0; |
| 12337 |
– |
} |
| 12338 |
– |
return !cs[0] && !zero.x; |
| 12339 |
– |
#endif |
| 12340 |
– |
|
| 12341 |
– |
; |
| 12342 |
– |
return 0; |
| 12343 |
– |
} |
| 12344 |
– |
_ACEOF |
| 12345 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12346 |
– |
ac_cv_c_const=yes |
| 12347 |
– |
else |
| 12348 |
– |
ac_cv_c_const=no |
| 12349 |
– |
fi |
| 12350 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12351 |
– |
fi |
| 12352 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 12353 |
– |
$as_echo "$ac_cv_c_const" >&6; } |
| 12354 |
– |
if test $ac_cv_c_const = no; then |
| 12355 |
– |
|
| 12356 |
– |
$as_echo "#define const /**/" >>confdefs.h |
| 12357 |
– |
|
| 12358 |
– |
fi |
| 12359 |
– |
|
| 12360 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 12361 |
– |
$as_echo_n "checking for inline... " >&6; } |
| 12362 |
– |
if test "${ac_cv_c_inline+set}" = set; then : |
| 12363 |
– |
$as_echo_n "(cached) " >&6 |
| 12364 |
– |
else |
| 12365 |
– |
ac_cv_c_inline=no |
| 12366 |
– |
for ac_kw in inline __inline__ __inline; do |
| 12367 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12368 |
– |
/* end confdefs.h. */ |
| 12369 |
– |
#ifndef __cplusplus |
| 12370 |
– |
typedef int foo_t; |
| 12371 |
– |
static $ac_kw foo_t static_foo () {return 0; } |
| 12372 |
– |
$ac_kw foo_t foo () {return 0; } |
| 12373 |
– |
#endif |
| 12374 |
– |
|
| 12375 |
– |
_ACEOF |
| 12376 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12377 |
– |
ac_cv_c_inline=$ac_kw |
| 12378 |
– |
fi |
| 12379 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12380 |
– |
test "$ac_cv_c_inline" != no && break |
| 12381 |
– |
done |
| 12382 |
– |
|
| 12383 |
– |
fi |
| 12384 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 12385 |
– |
$as_echo "$ac_cv_c_inline" >&6; } |
| 12386 |
– |
|
| 12387 |
– |
case $ac_cv_c_inline in |
| 12388 |
– |
inline | yes) ;; |
| 12389 |
– |
*) |
| 12390 |
– |
case $ac_cv_c_inline in |
| 12391 |
– |
no) ac_val=;; |
| 12392 |
– |
*) ac_val=$ac_cv_c_inline;; |
| 12393 |
– |
esac |
| 12394 |
– |
cat >>confdefs.h <<_ACEOF |
| 12395 |
– |
#ifndef __cplusplus |
| 12396 |
– |
#define inline $ac_val |
| 12397 |
– |
#endif |
| 12398 |
– |
_ACEOF |
| 12399 |
– |
;; |
| 12400 |
– |
esac |
| 12401 |
– |
|
| 12300 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 12301 |
|
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 12302 |
|
if test "${ac_cv_c_bigendian+set}" = set; then : |
| 12522 |
|
esac |
| 12523 |
|
|
| 12524 |
|
|
| 12627 |
– |
# The cast to long int works around a bug in the HP C Compiler |
| 12628 |
– |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12629 |
– |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12630 |
– |
# This bug is HP SR number 8606223364. |
| 12631 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5 |
| 12632 |
– |
$as_echo_n "checking size of int64_t... " >&6; } |
| 12633 |
– |
if test "${ac_cv_sizeof_int64_t+set}" = set; then : |
| 12634 |
– |
$as_echo_n "(cached) " >&6 |
| 12635 |
– |
else |
| 12636 |
– |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then : |
| 12637 |
– |
|
| 12638 |
– |
else |
| 12639 |
– |
if test "$ac_cv_type_int64_t" = yes; then |
| 12640 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12641 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12642 |
– |
{ as_fn_set_status 77 |
| 12643 |
– |
as_fn_error "cannot compute sizeof (int64_t) |
| 12644 |
– |
See \`config.log' for more details." "$LINENO" 5; }; } |
| 12645 |
– |
else |
| 12646 |
– |
ac_cv_sizeof_int64_t=0 |
| 12647 |
– |
fi |
| 12648 |
– |
fi |
| 12649 |
– |
|
| 12650 |
– |
fi |
| 12651 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5 |
| 12652 |
– |
$as_echo "$ac_cv_sizeof_int64_t" >&6; } |
| 12653 |
– |
|
| 12654 |
– |
|
| 12655 |
– |
|
| 12656 |
– |
cat >>confdefs.h <<_ACEOF |
| 12657 |
– |
#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t |
| 12658 |
– |
_ACEOF |
| 12659 |
– |
|
| 12660 |
– |
|
| 12661 |
– |
# The cast to long int works around a bug in the HP C Compiler |
| 12662 |
– |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12663 |
– |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12664 |
– |
# This bug is HP SR number 8606223364. |
| 12665 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 12666 |
– |
$as_echo_n "checking size of long long... " >&6; } |
| 12667 |
– |
if test "${ac_cv_sizeof_long_long+set}" = set; then : |
| 12668 |
– |
$as_echo_n "(cached) " >&6 |
| 12669 |
– |
else |
| 12670 |
– |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
| 12671 |
– |
|
| 12672 |
– |
else |
| 12673 |
– |
if test "$ac_cv_type_long_long" = yes; then |
| 12674 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12675 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12676 |
– |
{ as_fn_set_status 77 |
| 12677 |
– |
as_fn_error "cannot compute sizeof (long long) |
| 12678 |
– |
See \`config.log' for more details." "$LINENO" 5; }; } |
| 12679 |
– |
else |
| 12680 |
– |
ac_cv_sizeof_long_long=0 |
| 12681 |
– |
fi |
| 12682 |
– |
fi |
| 12683 |
– |
|
| 12684 |
– |
fi |
| 12685 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 12686 |
– |
$as_echo "$ac_cv_sizeof_long_long" >&6; } |
| 12687 |
– |
|
| 12688 |
– |
|
| 12689 |
– |
|
| 12690 |
– |
cat >>confdefs.h <<_ACEOF |
| 12691 |
– |
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 12692 |
– |
_ACEOF |
| 12693 |
– |
|
| 12694 |
– |
|
| 12695 |
– |
|
| 12696 |
– |
if test "$ac_cv_sizeof_int64_t" = 8; then |
| 12697 |
– |
ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 12698 |
– |
if test "x$ac_cv_type_uint64_t" = x""yes; then : |
| 12699 |
– |
|
| 12700 |
– |
fi |
| 12701 |
– |
|
| 12702 |
– |
ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
| 12703 |
– |
if test "x$ac_cv_type_int64_t" = x""yes; then : |
| 12704 |
– |
|
| 12705 |
– |
fi |
| 12706 |
– |
|
| 12707 |
– |
elif test "$ac_cv_sizeof_long_long" = 8; then |
| 12708 |
– |
ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 12709 |
– |
if test "x$ac_cv_type_uint64_t" = x""yes; then : |
| 12710 |
– |
|
| 12711 |
– |
else |
| 12712 |
– |
|
| 12713 |
– |
cat >>confdefs.h <<_ACEOF |
| 12714 |
– |
#define uint64_t unsigned long long |
| 12715 |
– |
_ACEOF |
| 12716 |
– |
|
| 12717 |
– |
fi |
| 12718 |
– |
|
| 12719 |
– |
ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
| 12720 |
– |
if test "x$ac_cv_type_int64_t" = x""yes; then : |
| 12721 |
– |
|
| 12722 |
– |
else |
| 12723 |
– |
|
| 12724 |
– |
cat >>confdefs.h <<_ACEOF |
| 12725 |
– |
#define int64_t long long |
| 12726 |
– |
_ACEOF |
| 12727 |
– |
|
| 12728 |
– |
fi |
| 12729 |
– |
|
| 12730 |
– |
else |
| 12731 |
– |
as_fn_error "Your system doesn't appear to have 64 bit integers. Aborting." "$LINENO" 5 |
| 12732 |
– |
fi |
| 12733 |
– |
|
| 12734 |
– |
|
| 12525 |
|
# Checks for library functions. |
| 12526 |
|
|
| 12527 |
|
|
| 12551 |
|
|
| 12552 |
|
|
| 12553 |
|
|
| 12764 |
– |
|
| 12765 |
– |
|
| 12766 |
– |
|
| 12767 |
– |
|
| 12554 |
|
# Checks for header files. |
| 12555 |
|
|
| 12556 |
|
|
| 12596 |
|
|
| 12597 |
|
|
| 12598 |
|
|
| 12599 |
< |
|
| 12814 |
< |
|
| 12815 |
< |
|
| 12816 |
< |
|
| 12599 |
> |
# check for /dev/null so we can use it to hold evil fd's |
| 12600 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 |
| 12601 |
|
$as_echo_n "checking for /dev/null... " >&6; } |
| 12602 |
< |
if test -c /dev/null ; then |
| 12602 |
> |
if test -c /dev/null; then : |
| 12603 |
> |
|
| 12604 |
|
|
| 12605 |
|
$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h |
| 12606 |
|
|
| 12608 |
|
$as_echo "yes" >&6; } |
| 12609 |
|
else |
| 12610 |
|
|
| 12611 |
+ |
|
| 12612 |
|
$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
| 12613 |
|
|
| 12614 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 |
| 12689 |
|
fi |
| 12690 |
|
|
| 12691 |
|
|
| 12692 |
< |
if test "$zlib" = yes; then |
| 12692 |
> |
if test "$zlib" = "yes"; then : |
| 12693 |
> |
|
| 12694 |
|
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 12695 |
|
if test "x$ac_cv_header_zlib_h" = x""yes; then : |
| 12696 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 |
| 12746 |
|
fi |
| 12747 |
|
|
| 12748 |
|
|
| 12749 |
+ |
|
| 12750 |
|
fi |
| 12751 |
|
|
| 12752 |
|
|
| 12764 |
|
fi |
| 12765 |
|
|
| 12766 |
|
|
| 12767 |
< |
if test "$libpcre" = yes; then |
| 12767 |
> |
if test "$libpcre" = "yes"; then : |
| 12768 |
> |
|
| 12769 |
|
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
| 12770 |
|
if test "x$ac_cv_header_pcre_h" = x""yes; then : |
| 12771 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5 |
| 12821 |
|
fi |
| 12822 |
|
|
| 12823 |
|
|
| 12824 |
+ |
|
| 12825 |
|
fi |
| 12826 |
|
if test "$libpcre" = yes; then |
| 12827 |
|
ENABLE_PCRE_TRUE= |
| 12880 |
|
$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h |
| 12881 |
|
|
| 12882 |
|
else |
| 12883 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 12884 |
< |
$as_echo "not found. Please check your path." >&6; } |
| 12883 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 12884 |
> |
$as_echo "not found. Please check your path." >&6; } |
| 12885 |
|
cf_enable_openssl="no" |
| 12886 |
|
fi |
| 12887 |
|
unset cf_openssl_basedir |
| 12889 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 12890 |
|
$as_echo "disabled" >&6; } |
| 12891 |
|
fi |
| 12892 |
+ |
|
| 12893 |
+ |
if test "$cf_enable_openssl" != "no"; then : |
| 12894 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5 |
| 12895 |
+ |
$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; } |
| 12896 |
+ |
if test "$cross_compiling" = yes; then : |
| 12897 |
+ |
cf_openssl_version_ok=no |
| 12898 |
+ |
else |
| 12899 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12900 |
+ |
/* end confdefs.h. */ |
| 12901 |
+ |
|
| 12902 |
+ |
#include <openssl/opensslv.h> |
| 12903 |
+ |
#include <stdlib.h> |
| 12904 |
+ |
int |
| 12905 |
+ |
main () |
| 12906 |
+ |
{ |
| 12907 |
+ |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000)); |
| 12908 |
+ |
; |
| 12909 |
+ |
return 0; |
| 12910 |
+ |
} |
| 12911 |
+ |
_ACEOF |
| 12912 |
+ |
if ac_fn_c_try_run "$LINENO"; then : |
| 12913 |
+ |
cf_openssl_version_ok=yes |
| 12914 |
+ |
else |
| 12915 |
+ |
cf_openssl_version_ok=no |
| 12916 |
+ |
fi |
| 12917 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12918 |
+ |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12919 |
+ |
fi |
| 12920 |
+ |
|
| 12921 |
+ |
|
| 12922 |
+ |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 12923 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 12924 |
+ |
$as_echo "found" >&6; } |
| 12925 |
+ |
|
| 12926 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 12927 |
+ |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 12928 |
+ |
if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then : |
| 12929 |
+ |
$as_echo_n "(cached) " >&6 |
| 12930 |
+ |
else |
| 12931 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 12932 |
+ |
LIBS="-lcrypto $LIBS" |
| 12933 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12934 |
+ |
/* end confdefs.h. */ |
| 12935 |
+ |
|
| 12936 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 12937 |
+ |
Use char because int might match the return type of a GCC |
| 12938 |
+ |
builtin and then its argument prototype would still apply. */ |
| 12939 |
+ |
#ifdef __cplusplus |
| 12940 |
+ |
extern "C" |
| 12941 |
+ |
#endif |
| 12942 |
+ |
char RSA_free (); |
| 12943 |
+ |
int |
| 12944 |
+ |
main () |
| 12945 |
+ |
{ |
| 12946 |
+ |
return RSA_free (); |
| 12947 |
+ |
; |
| 12948 |
+ |
return 0; |
| 12949 |
+ |
} |
| 12950 |
+ |
_ACEOF |
| 12951 |
+ |
if ac_fn_c_try_link "$LINENO"; then : |
| 12952 |
+ |
ac_cv_lib_crypto_RSA_free=yes |
| 12953 |
+ |
else |
| 12954 |
+ |
ac_cv_lib_crypto_RSA_free=no |
| 12955 |
+ |
fi |
| 12956 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 12957 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 12958 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 12959 |
+ |
fi |
| 12960 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 12961 |
+ |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 12962 |
+ |
if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then : |
| 12963 |
+ |
cat >>confdefs.h <<_ACEOF |
| 12964 |
+ |
#define HAVE_LIBCRYPTO 1 |
| 12965 |
+ |
_ACEOF |
| 12966 |
+ |
|
| 12967 |
+ |
LIBS="-lcrypto $LIBS" |
| 12968 |
+ |
|
| 12969 |
+ |
fi |
| 12970 |
+ |
|
| 12971 |
+ |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 12972 |
+ |
for ac_func in EVP_bf_cfb \ |
| 12973 |
+ |
EVP_cast5_cfb \ |
| 12974 |
+ |
EVP_idea_cfb \ |
| 12975 |
+ |
EVP_rc5_32_12_16_cfb \ |
| 12976 |
+ |
EVP_des_ede3_cfb \ |
| 12977 |
+ |
EVP_des_cfb |
| 12978 |
+ |
do : |
| 12979 |
+ |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12980 |
+ |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12981 |
+ |
eval as_val=\$$as_ac_var |
| 12982 |
+ |
if test "x$as_val" = x""yes; then : |
| 12983 |
+ |
cat >>confdefs.h <<_ACEOF |
| 12984 |
+ |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12985 |
+ |
_ACEOF |
| 12986 |
+ |
|
| 12987 |
+ |
fi |
| 12988 |
+ |
done |
| 12989 |
+ |
|
| 12990 |
+ |
fi |
| 12991 |
+ |
|
| 12992 |
+ |
else |
| 12993 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
| 12994 |
+ |
$as_echo "no - OpenSSL support disabled" >&6; } |
| 12995 |
+ |
cf_enable_openssl="no" |
| 12996 |
+ |
fi |
| 12997 |
+ |
fi |
| 12998 |
+ |
|
| 12999 |
|
if test "$cf_enable_openssl" = yes; then |
| 13000 |
|
ENABLE_SSL_TRUE= |
| 13001 |
|
ENABLE_SSL_FALSE='#' |
| 13013 |
|
assert=no |
| 13014 |
|
fi |
| 13015 |
|
|
| 13016 |
< |
if test "$assert" = no; then |
| 13016 |
> |
|
| 13017 |
> |
if test "$assert" = "no"; then : |
| 13018 |
|
|
| 13019 |
|
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 13020 |
|
|
| 13029 |
|
fi |
| 13030 |
|
|
| 13031 |
|
|
| 13032 |
< |
if test "$small_net" = yes; then |
| 13032 |
> |
if test "$small_net" = "yes"; then : |
| 13033 |
> |
|
| 13034 |
|
|
| 13035 |
|
$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
| 13036 |
|
|
| 13063 |
|
|
| 13064 |
|
else |
| 13065 |
|
|
| 13066 |
+ |
|
| 13067 |
+ |
|
| 13068 |
|
$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
| 13069 |
|
|
| 13070 |
|
|
| 13507 |
|
|
| 13508 |
|
|
| 13509 |
|
cat >>confdefs.h <<_ACEOF |
| 13510 |
< |
#define TOPICLEN ($topiclen+1) |
| 13510 |
> |
#define TOPICLEN ($topiclen) |
| 13511 |
|
_ACEOF |
| 13512 |
|
|
| 13513 |
|
|
| 13543 |
|
$as_echo "#define TS5_ONLY 1" >>confdefs.h |
| 13544 |
|
|
| 13545 |
|
else |
| 13646 |
– |
|
| 13647 |
– |
$as_echo "#define INVARIANTS 1" >>confdefs.h |
| 13648 |
– |
|
| 13546 |
|
use_efnet="no" |
| 13547 |
|
fi |
| 13548 |
|
if test "$use_efnet" = "yes"; then |
| 13580 |
|
|
| 13581 |
|
$as_echo "#define DEBUG 1" >>confdefs.h |
| 13582 |
|
|
| 13583 |
< |
CFLAGS="$CFLAGS -Wall -Werror -g -O0" |
| 13583 |
> |
CFLAGS="-Wall -g -O0" |
| 13584 |
|
else |
| 13585 |
|
|
| 13586 |
|
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 13596 |
|
fi |
| 13597 |
|
|
| 13598 |
|
if test "$warnings" = "yes" ; then |
| 13599 |
< |
CFLAGS="-Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused -Wundef" |
| 13599 |
> |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
| 13600 |
|
fi |
| 13601 |
|
|
| 13602 |
|
|
| 14293 |
|
# values after options handling. |
| 14294 |
|
ac_log=" |
| 14295 |
|
This file was extended by ircd-hybrid $as_me 7.2.4, which was |
| 14296 |
< |
generated by GNU Autoconf 2.64. Invocation command line was |
| 14296 |
> |
generated by GNU Autoconf 2.65. Invocation command line was |
| 14297 |
|
|
| 14298 |
|
CONFIG_FILES = $CONFIG_FILES |
| 14299 |
|
CONFIG_HEADERS = $CONFIG_HEADERS |
| 14333 |
|
|
| 14334 |
|
-h, --help print this help, then exit |
| 14335 |
|
-V, --version print version number and configuration settings, then exit |
| 14336 |
+ |
--config print configuration, then exit |
| 14337 |
|
-q, --quiet, --silent |
| 14338 |
|
do not print progress messages |
| 14339 |
|
-d, --debug don't remove temporary files |
| 14356 |
|
|
| 14357 |
|
_ACEOF |
| 14358 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14359 |
+ |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 14360 |
|
ac_cs_version="\\ |
| 14361 |
|
ircd-hybrid config.status 7.2.4 |
| 14362 |
< |
configured by $0, generated by GNU Autoconf 2.64, |
| 14363 |
< |
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 14362 |
> |
configured by $0, generated by GNU Autoconf 2.65, |
| 14363 |
> |
with options \\"\$ac_cs_config\\" |
| 14364 |
|
|
| 14365 |
|
Copyright (C) 2009 Free Software Foundation, Inc. |
| 14366 |
|
This config.status script is free software; the Free Software Foundation |
| 14398 |
|
ac_cs_recheck=: ;; |
| 14399 |
|
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 14400 |
|
$as_echo "$ac_cs_version"; exit ;; |
| 14401 |
+ |
--config | --confi | --conf | --con | --co | --c ) |
| 14402 |
+ |
$as_echo "$ac_cs_config"; exit ;; |
| 14403 |
|
--debug | --debu | --deb | --de | --d | -d ) |
| 14404 |
|
debug=: ;; |
| 14405 |
|
--file | --fil | --fi | --f ) |
| 14859 |
|
t delim |
| 14860 |
|
:nl |
| 14861 |
|
h |
| 14862 |
< |
s/\(.\{148\}\).*/\1/ |
| 14862 |
> |
s/\(.\{148\}\)..*/\1/ |
| 14863 |
|
t more1 |
| 14864 |
|
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14865 |
|
p |
| 14873 |
|
t nl |
| 14874 |
|
:delim |
| 14875 |
|
h |
| 14876 |
< |
s/\(.\{148\}\).*/\1/ |
| 14876 |
> |
s/\(.\{148\}\)..*/\1/ |
| 14877 |
|
t more2 |
| 14878 |
|
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14879 |
|
p |