]>
Commit | Line | Data |
---|---|---|
6de9cd9a DN |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
0dce3ca1 | 3 | # Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.3. |
6de9cd9a DN |
4 | # |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
254 | ac_default_prefix=/usr/local | |
255 | ac_config_libobj_dir=. | |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
269 | PACKAGE_TARNAME='libgfortran' | |
0dce3ca1 FXC |
270 | PACKAGE_VERSION='0.3' |
271 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
6de9cd9a DN |
272 | PACKAGE_BUGREPORT='' |
273 | ||
274 | # Factoring default headers for most tests. | |
275 | ac_includes_default="\ | |
276 | #include <stdio.h> | |
277 | #if HAVE_SYS_TYPES_H | |
278 | # include <sys/types.h> | |
279 | #endif | |
280 | #if HAVE_SYS_STAT_H | |
281 | # include <sys/stat.h> | |
282 | #endif | |
283 | #if STDC_HEADERS | |
284 | # include <stdlib.h> | |
285 | # include <stddef.h> | |
286 | #else | |
287 | # if HAVE_STDLIB_H | |
288 | # include <stdlib.h> | |
289 | # endif | |
290 | #endif | |
291 | #if HAVE_STRING_H | |
292 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
293 | # include <memory.h> | |
294 | # endif | |
295 | # include <string.h> | |
296 | #endif | |
297 | #if HAVE_STRINGS_H | |
298 | # include <strings.h> | |
299 | #endif | |
300 | #if HAVE_INTTYPES_H | |
301 | # include <inttypes.h> | |
302 | #else | |
303 | # if HAVE_STDINT_H | |
304 | # include <stdint.h> | |
305 | # endif | |
306 | #endif | |
307 | #if HAVE_UNISTD_H | |
308 | # include <unistd.h> | |
309 | #endif" | |
310 | ||
679c0f9a | 311 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AM_FCFLAGS AM_CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran CPP CPPFLAGS EGREP FPU_HOST_HEADER LIBOBJS LTLIBOBJS' |
6de9cd9a DN |
312 | ac_subst_files='' |
313 | ||
314 | # Initialize some variables set by options. | |
315 | ac_init_help= | |
316 | ac_init_version=false | |
317 | # The variables have the same names as the options, with | |
318 | # dashes changed to underlines. | |
319 | cache_file=/dev/null | |
320 | exec_prefix=NONE | |
321 | no_create= | |
322 | no_recursion= | |
323 | prefix=NONE | |
324 | program_prefix=NONE | |
325 | program_suffix=NONE | |
326 | program_transform_name=s,x,x, | |
327 | silent= | |
328 | site= | |
329 | srcdir= | |
330 | verbose= | |
331 | x_includes=NONE | |
332 | x_libraries=NONE | |
333 | ||
334 | # Installation directory options. | |
335 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
336 | # and all the variables that are supposed to be based on exec_prefix | |
337 | # by default will actually change. | |
338 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
339 | bindir='${exec_prefix}/bin' | |
340 | sbindir='${exec_prefix}/sbin' | |
341 | libexecdir='${exec_prefix}/libexec' | |
342 | datadir='${prefix}/share' | |
343 | sysconfdir='${prefix}/etc' | |
344 | sharedstatedir='${prefix}/com' | |
345 | localstatedir='${prefix}/var' | |
346 | libdir='${exec_prefix}/lib' | |
347 | includedir='${prefix}/include' | |
348 | oldincludedir='/usr/include' | |
349 | infodir='${prefix}/info' | |
350 | mandir='${prefix}/man' | |
351 | ||
352 | ac_prev= | |
353 | for ac_option | |
354 | do | |
355 | # If the previous option needs an argument, assign it. | |
356 | if test -n "$ac_prev"; then | |
357 | eval "$ac_prev=\$ac_option" | |
358 | ac_prev= | |
359 | continue | |
360 | fi | |
361 | ||
362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
363 | ||
364 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
365 | ||
366 | case $ac_option in | |
367 | ||
368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
369 | ac_prev=bindir ;; | |
370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
371 | bindir=$ac_optarg ;; | |
372 | ||
373 | -build | --build | --buil | --bui | --bu) | |
374 | ac_prev=build_alias ;; | |
375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
376 | build_alias=$ac_optarg ;; | |
377 | ||
378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
380 | ac_prev=cache_file ;; | |
381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
383 | cache_file=$ac_optarg ;; | |
384 | ||
385 | --config-cache | -C) | |
386 | cache_file=config.cache ;; | |
387 | ||
388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
389 | ac_prev=datadir ;; | |
390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
391 | | --da=*) | |
392 | datadir=$ac_optarg ;; | |
393 | ||
394 | -disable-* | --disable-*) | |
395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
396 | # Reject names that are not valid shell variable names. | |
397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
399 | { (exit 1); exit 1; }; } | |
400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
401 | eval "enable_$ac_feature=no" ;; | |
402 | ||
403 | -enable-* | --enable-*) | |
404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
405 | # Reject names that are not valid shell variable names. | |
406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
408 | { (exit 1); exit 1; }; } | |
409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
410 | case $ac_option in | |
411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
412 | *) ac_optarg=yes ;; | |
413 | esac | |
414 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
415 | ||
416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
418 | | --exec | --exe | --ex) | |
419 | ac_prev=exec_prefix ;; | |
420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
422 | | --exec=* | --exe=* | --ex=*) | |
423 | exec_prefix=$ac_optarg ;; | |
424 | ||
425 | -gas | --gas | --ga | --g) | |
426 | # Obsolete; use --with-gas. | |
427 | with_gas=yes ;; | |
428 | ||
429 | -help | --help | --hel | --he | -h) | |
430 | ac_init_help=long ;; | |
431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
432 | ac_init_help=recursive ;; | |
433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
434 | ac_init_help=short ;; | |
435 | ||
436 | -host | --host | --hos | --ho) | |
437 | ac_prev=host_alias ;; | |
438 | -host=* | --host=* | --hos=* | --ho=*) | |
439 | host_alias=$ac_optarg ;; | |
440 | ||
441 | -includedir | --includedir | --includedi | --included | --include \ | |
442 | | --includ | --inclu | --incl | --inc) | |
443 | ac_prev=includedir ;; | |
444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
445 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
446 | includedir=$ac_optarg ;; | |
447 | ||
448 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
449 | ac_prev=infodir ;; | |
450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
451 | infodir=$ac_optarg ;; | |
452 | ||
453 | -libdir | --libdir | --libdi | --libd) | |
454 | ac_prev=libdir ;; | |
455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
456 | libdir=$ac_optarg ;; | |
457 | ||
458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
459 | | --libexe | --libex | --libe) | |
460 | ac_prev=libexecdir ;; | |
461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
462 | | --libexe=* | --libex=* | --libe=*) | |
463 | libexecdir=$ac_optarg ;; | |
464 | ||
465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
466 | | --localstate | --localstat | --localsta | --localst \ | |
467 | | --locals | --local | --loca | --loc | --lo) | |
468 | ac_prev=localstatedir ;; | |
469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
472 | localstatedir=$ac_optarg ;; | |
473 | ||
474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
475 | ac_prev=mandir ;; | |
476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
477 | mandir=$ac_optarg ;; | |
478 | ||
479 | -nfp | --nfp | --nf) | |
480 | # Obsolete; use --without-fp. | |
481 | with_fp=no ;; | |
482 | ||
483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
484 | | --no-cr | --no-c | -n) | |
485 | no_create=yes ;; | |
486 | ||
487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
489 | no_recursion=yes ;; | |
490 | ||
491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
493 | | --oldin | --oldi | --old | --ol | --o) | |
494 | ac_prev=oldincludedir ;; | |
495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
498 | oldincludedir=$ac_optarg ;; | |
499 | ||
500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
501 | ac_prev=prefix ;; | |
502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503 | prefix=$ac_optarg ;; | |
504 | ||
505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
506 | | --program-pre | --program-pr | --program-p) | |
507 | ac_prev=program_prefix ;; | |
508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
510 | program_prefix=$ac_optarg ;; | |
511 | ||
512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
513 | | --program-suf | --program-su | --program-s) | |
514 | ac_prev=program_suffix ;; | |
515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
517 | program_suffix=$ac_optarg ;; | |
518 | ||
519 | -program-transform-name | --program-transform-name \ | |
520 | | --program-transform-nam | --program-transform-na \ | |
521 | | --program-transform-n | --program-transform- \ | |
522 | | --program-transform | --program-transfor \ | |
523 | | --program-transfo | --program-transf \ | |
524 | | --program-trans | --program-tran \ | |
525 | | --progr-tra | --program-tr | --program-t) | |
526 | ac_prev=program_transform_name ;; | |
527 | -program-transform-name=* | --program-transform-name=* \ | |
528 | | --program-transform-nam=* | --program-transform-na=* \ | |
529 | | --program-transform-n=* | --program-transform-=* \ | |
530 | | --program-transform=* | --program-transfor=* \ | |
531 | | --program-transfo=* | --program-transf=* \ | |
532 | | --program-trans=* | --program-tran=* \ | |
533 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
534 | program_transform_name=$ac_optarg ;; | |
535 | ||
536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
537 | | -silent | --silent | --silen | --sile | --sil) | |
538 | silent=yes ;; | |
539 | ||
540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
541 | ac_prev=sbindir ;; | |
542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
543 | | --sbi=* | --sb=*) | |
544 | sbindir=$ac_optarg ;; | |
545 | ||
546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
548 | | --sharedst | --shareds | --shared | --share | --shar \ | |
549 | | --sha | --sh) | |
550 | ac_prev=sharedstatedir ;; | |
551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
554 | | --sha=* | --sh=*) | |
555 | sharedstatedir=$ac_optarg ;; | |
556 | ||
557 | -site | --site | --sit) | |
558 | ac_prev=site ;; | |
559 | -site=* | --site=* | --sit=*) | |
560 | site=$ac_optarg ;; | |
561 | ||
562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
563 | ac_prev=srcdir ;; | |
564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
565 | srcdir=$ac_optarg ;; | |
566 | ||
567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
568 | | --syscon | --sysco | --sysc | --sys | --sy) | |
569 | ac_prev=sysconfdir ;; | |
570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
572 | sysconfdir=$ac_optarg ;; | |
573 | ||
574 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
575 | ac_prev=target_alias ;; | |
576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
577 | target_alias=$ac_optarg ;; | |
578 | ||
579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
580 | verbose=yes ;; | |
581 | ||
582 | -version | --version | --versio | --versi | --vers | -V) | |
583 | ac_init_version=: ;; | |
584 | ||
585 | -with-* | --with-*) | |
586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
587 | # Reject names that are not valid shell variable names. | |
588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
590 | { (exit 1); exit 1; }; } | |
591 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
592 | case $ac_option in | |
593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
594 | *) ac_optarg=yes ;; | |
595 | esac | |
596 | eval "with_$ac_package='$ac_optarg'" ;; | |
597 | ||
598 | -without-* | --without-*) | |
599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
600 | # Reject names that are not valid shell variable names. | |
601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
603 | { (exit 1); exit 1; }; } | |
604 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
605 | eval "with_$ac_package=no" ;; | |
606 | ||
607 | --x) | |
608 | # Obsolete; use --with-x. | |
609 | with_x=yes ;; | |
610 | ||
611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
612 | | --x-incl | --x-inc | --x-in | --x-i) | |
613 | ac_prev=x_includes ;; | |
614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
616 | x_includes=$ac_optarg ;; | |
617 | ||
618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
620 | ac_prev=x_libraries ;; | |
621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
623 | x_libraries=$ac_optarg ;; | |
624 | ||
625 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
626 | Try \`$0 --help' for more information." >&2 | |
627 | { (exit 1); exit 1; }; } | |
628 | ;; | |
629 | ||
630 | *=*) | |
631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
632 | # Reject names that are not valid shell variable names. | |
633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
635 | { (exit 1); exit 1; }; } | |
636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
637 | eval "$ac_envvar='$ac_optarg'" | |
638 | export $ac_envvar ;; | |
639 | ||
640 | *) | |
641 | # FIXME: should be removed in autoconf 3.0. | |
642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
646 | ;; | |
647 | ||
648 | esac | |
649 | done | |
650 | ||
651 | if test -n "$ac_prev"; then | |
652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
653 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
654 | { (exit 1); exit 1; }; } | |
655 | fi | |
656 | ||
657 | # Be sure to have absolute paths. | |
658 | for ac_var in exec_prefix prefix | |
659 | do | |
660 | eval ac_val=$`echo $ac_var` | |
661 | case $ac_val in | |
662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
664 | { (exit 1); exit 1; }; };; | |
665 | esac | |
666 | done | |
667 | ||
668 | # Be sure to have absolute paths. | |
669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
670 | localstatedir libdir includedir oldincludedir infodir mandir | |
671 | do | |
672 | eval ac_val=$`echo $ac_var` | |
673 | case $ac_val in | |
674 | [\\/$]* | ?:[\\/]* ) ;; | |
675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
676 | { (exit 1); exit 1; }; };; | |
677 | esac | |
678 | done | |
679 | ||
680 | # There might be people who depend on the old broken behavior: `$host' | |
681 | # used to hold the argument of --host etc. | |
682 | # FIXME: To remove some day. | |
683 | build=$build_alias | |
684 | host=$host_alias | |
685 | target=$target_alias | |
686 | ||
687 | # FIXME: To remove some day. | |
688 | if test "x$host_alias" != x; then | |
689 | if test "x$build_alias" = x; then | |
690 | cross_compiling=maybe | |
691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
692 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
693 | elif test "x$build_alias" != "x$host_alias"; then | |
694 | cross_compiling=yes | |
695 | fi | |
696 | fi | |
697 | ||
698 | ac_tool_prefix= | |
699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
700 | ||
701 | test "$silent" = yes && exec 6>/dev/null | |
702 | ||
703 | ||
704 | # Find the source files, if location was not specified. | |
705 | if test -z "$srcdir"; then | |
706 | ac_srcdir_defaulted=yes | |
707 | # Try the directory containing this script, then its parent. | |
708 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
710 | X"$0" : 'X\(//\)[^/]' \| \ | |
711 | X"$0" : 'X\(//\)$' \| \ | |
712 | X"$0" : 'X\(/\)' \| \ | |
713 | . : '\(.\)' 2>/dev/null || | |
714 | echo X"$0" | | |
715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
717 | /^X\(\/\/\)$/{ s//\1/; q; } | |
718 | /^X\(\/\).*/{ s//\1/; q; } | |
719 | s/.*/./; q'` | |
720 | srcdir=$ac_confdir | |
721 | if test ! -r $srcdir/$ac_unique_file; then | |
722 | srcdir=.. | |
723 | fi | |
724 | else | |
725 | ac_srcdir_defaulted=no | |
726 | fi | |
727 | if test ! -r $srcdir/$ac_unique_file; then | |
728 | if test "$ac_srcdir_defaulted" = yes; then | |
729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
730 | { (exit 1); exit 1; }; } | |
731 | else | |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
733 | { (exit 1); exit 1; }; } | |
734 | fi | |
735 | fi | |
736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
740 | ac_env_build_alias_set=${build_alias+set} | |
741 | ac_env_build_alias_value=$build_alias | |
742 | ac_cv_env_build_alias_set=${build_alias+set} | |
743 | ac_cv_env_build_alias_value=$build_alias | |
744 | ac_env_host_alias_set=${host_alias+set} | |
745 | ac_env_host_alias_value=$host_alias | |
746 | ac_cv_env_host_alias_set=${host_alias+set} | |
747 | ac_cv_env_host_alias_value=$host_alias | |
748 | ac_env_target_alias_set=${target_alias+set} | |
749 | ac_env_target_alias_value=$target_alias | |
750 | ac_cv_env_target_alias_set=${target_alias+set} | |
751 | ac_cv_env_target_alias_value=$target_alias | |
c7a35fe9 AS |
752 | ac_env_FC_set=${FC+set} |
753 | ac_env_FC_value=$FC | |
754 | ac_cv_env_FC_set=${FC+set} | |
755 | ac_cv_env_FC_value=$FC | |
756 | ac_env_FCFLAGS_set=${FCFLAGS+set} | |
757 | ac_env_FCFLAGS_value=$FCFLAGS | |
758 | ac_cv_env_FCFLAGS_set=${FCFLAGS+set} | |
759 | ac_cv_env_FCFLAGS_value=$FCFLAGS | |
96b8a615 AJ |
760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
761 | ac_env_LDFLAGS_value=$LDFLAGS | |
762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
6de9cd9a DN |
764 | ac_env_CPP_set=${CPP+set} |
765 | ac_env_CPP_value=$CPP | |
766 | ac_cv_env_CPP_set=${CPP+set} | |
767 | ac_cv_env_CPP_value=$CPP | |
96b8a615 AJ |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
6de9cd9a DN |
772 | |
773 | # | |
774 | # Report the --help message. | |
775 | # | |
776 | if test "$ac_init_help" = "long"; then | |
777 | # Omit some internal or obsolete options to make the list less imposing. | |
778 | # This message is too long to be a string in the A/UX 3.1 sh. | |
779 | cat <<_ACEOF | |
0dce3ca1 | 780 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
6de9cd9a DN |
781 | |
782 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
783 | ||
784 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
785 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
786 | ||
787 | Defaults for the options are specified in brackets. | |
788 | ||
789 | Configuration: | |
790 | -h, --help display this help and exit | |
791 | --help=short display options specific to this package | |
792 | --help=recursive display the short help of all the included packages | |
793 | -V, --version display version information and exit | |
794 | -q, --quiet, --silent do not print \`checking...' messages | |
795 | --cache-file=FILE cache test results in FILE [disabled] | |
796 | -C, --config-cache alias for \`--cache-file=config.cache' | |
797 | -n, --no-create do not create output files | |
798 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
799 | ||
800 | _ACEOF | |
801 | ||
802 | cat <<_ACEOF | |
803 | Installation directories: | |
804 | --prefix=PREFIX install architecture-independent files in PREFIX | |
805 | [$ac_default_prefix] | |
806 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
807 | [PREFIX] | |
808 | ||
809 | By default, \`make install' will install all the files in | |
810 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
811 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
812 | for instance \`--prefix=\$HOME'. | |
813 | ||
814 | For better control, use the options below. | |
815 | ||
816 | Fine tuning of the installation directories: | |
817 | --bindir=DIR user executables [EPREFIX/bin] | |
818 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
819 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
820 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
821 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
822 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
823 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
824 | --libdir=DIR object code libraries [EPREFIX/lib] | |
825 | --includedir=DIR C header files [PREFIX/include] | |
826 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
827 | --infodir=DIR info documentation [PREFIX/info] | |
828 | --mandir=DIR man documentation [PREFIX/man] | |
829 | _ACEOF | |
830 | ||
831 | cat <<\_ACEOF | |
832 | ||
833 | Program names: | |
834 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
835 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
836 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
837 | ||
838 | System types: | |
839 | --build=BUILD configure for building on BUILD [guessed] | |
840 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
96b8a615 | 841 | --target=TARGET configure for building compilers for TARGET [HOST] |
6de9cd9a DN |
842 | _ACEOF |
843 | fi | |
844 | ||
845 | if test -n "$ac_init_help"; then | |
846 | case $ac_init_help in | |
0dce3ca1 | 847 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
6de9cd9a DN |
848 | esac |
849 | cat <<\_ACEOF | |
850 | ||
851 | Optional Features: | |
852 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
853 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
96b8a615 | 854 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
6de9cd9a DN |
855 | --enable-maintainer-mode enable make rules and dependencies not useful |
856 | (and sometimes confusing) to the casual installer | |
96b8a615 | 857 | --enable-multilib build many library versions (default) |
679c0f9a TT |
858 | --disable-dependency-tracking speeds up one-time build |
859 | --enable-dependency-tracking do not reject slow dependency extractors | |
6de9cd9a DN |
860 | --enable-shared=PKGS build shared libraries default=yes |
861 | --enable-static=PKGS build static libraries default=yes | |
862 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
863 | --disable-libtool-lock avoid locking (might break parallel builds) | |
9cdc381b | 864 | --disable-largefile omit support for large files |
6de9cd9a DN |
865 | |
866 | Optional Packages: | |
867 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
868 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
57255173 | 869 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
6de9cd9a DN |
870 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
871 | --with-pic try to use only PIC/non-PIC objects default=use both | |
872 | ||
873 | Some influential environment variables: | |
874 | CC C compiler command | |
875 | CFLAGS C compiler flags | |
876 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
877 | nonstandard directory <lib dir> | |
878 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
879 | headers in a nonstandard directory <include dir> | |
c7a35fe9 AS |
880 | FC Fortran compiler command |
881 | FCFLAGS Fortran compiler flags | |
6de9cd9a DN |
882 | CPP C preprocessor |
883 | ||
884 | Use these variables to override the choices made by `configure' or to help | |
885 | it to find libraries and programs with nonstandard names/locations. | |
886 | ||
887 | _ACEOF | |
888 | fi | |
889 | ||
890 | if test "$ac_init_help" = "recursive"; then | |
891 | # If there are subdirs, report their specific --help. | |
892 | ac_popdir=`pwd` | |
893 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
894 | test -d $ac_dir || continue | |
895 | ac_builddir=. | |
896 | ||
897 | if test "$ac_dir" != .; then | |
898 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
899 | # A "../" for each directory in $ac_dir_suffix. | |
900 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
901 | else | |
902 | ac_dir_suffix= ac_top_builddir= | |
903 | fi | |
904 | ||
905 | case $srcdir in | |
906 | .) # No --srcdir option. We are building in place. | |
907 | ac_srcdir=. | |
908 | if test -z "$ac_top_builddir"; then | |
909 | ac_top_srcdir=. | |
910 | else | |
911 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
912 | fi ;; | |
913 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
914 | ac_srcdir=$srcdir$ac_dir_suffix; | |
915 | ac_top_srcdir=$srcdir ;; | |
916 | *) # Relative path. | |
917 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
918 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
919 | esac | |
920 | ||
921 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
922 | # the directories may not exist. | |
923 | case `pwd` in | |
924 | .) ac_abs_builddir="$ac_dir";; | |
925 | *) | |
926 | case "$ac_dir" in | |
927 | .) ac_abs_builddir=`pwd`;; | |
928 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
929 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
930 | esac;; | |
931 | esac | |
932 | case $ac_abs_builddir in | |
933 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
934 | *) | |
935 | case ${ac_top_builddir}. in | |
936 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
937 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
938 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
939 | esac;; | |
940 | esac | |
941 | case $ac_abs_builddir in | |
942 | .) ac_abs_srcdir=$ac_srcdir;; | |
943 | *) | |
944 | case $ac_srcdir in | |
945 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
946 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
947 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
948 | esac;; | |
949 | esac | |
950 | case $ac_abs_builddir in | |
951 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
952 | *) | |
953 | case $ac_top_srcdir in | |
954 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
955 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
956 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
957 | esac;; | |
958 | esac | |
959 | ||
960 | cd $ac_dir | |
961 | # Check for guested configure; otherwise get Cygnus style configure. | |
962 | if test -f $ac_srcdir/configure.gnu; then | |
963 | echo | |
964 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
965 | elif test -f $ac_srcdir/configure; then | |
966 | echo | |
967 | $SHELL $ac_srcdir/configure --help=recursive | |
968 | elif test -f $ac_srcdir/configure.ac || | |
969 | test -f $ac_srcdir/configure.in; then | |
970 | echo | |
971 | $ac_configure --help | |
972 | else | |
973 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
974 | fi | |
57255173 | 975 | cd $ac_popdir |
6de9cd9a DN |
976 | done |
977 | fi | |
978 | ||
979 | test -n "$ac_init_help" && exit 0 | |
980 | if $ac_init_version; then | |
981 | cat <<\_ACEOF | |
0dce3ca1 | 982 | GNU Fortran Runtime Library configure 0.3 |
6de9cd9a DN |
983 | generated by GNU Autoconf 2.59 |
984 | ||
985 | Copyright (C) 2003 Free Software Foundation, Inc. | |
986 | This configure script is free software; the Free Software Foundation | |
987 | gives unlimited permission to copy, distribute and modify it. | |
988 | _ACEOF | |
989 | exit 0 | |
990 | fi | |
991 | exec 5>config.log | |
992 | cat >&5 <<_ACEOF | |
993 | This file contains any messages produced by compilers while | |
994 | running configure, to aid debugging if configure makes a mistake. | |
995 | ||
0dce3ca1 | 996 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
6de9cd9a DN |
997 | generated by GNU Autoconf 2.59. Invocation command line was |
998 | ||
999 | $ $0 $@ | |
1000 | ||
1001 | _ACEOF | |
1002 | { | |
1003 | cat <<_ASUNAME | |
1004 | ## --------- ## | |
1005 | ## Platform. ## | |
1006 | ## --------- ## | |
1007 | ||
1008 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1009 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1010 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1011 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1012 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1015 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1016 | ||
1017 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1018 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1019 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1020 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1021 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1022 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1023 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1024 | ||
1025 | _ASUNAME | |
1026 | ||
1027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1028 | for as_dir in $PATH | |
1029 | do | |
1030 | IFS=$as_save_IFS | |
1031 | test -z "$as_dir" && as_dir=. | |
1032 | echo "PATH: $as_dir" | |
1033 | done | |
1034 | ||
1035 | } >&5 | |
1036 | ||
1037 | cat >&5 <<_ACEOF | |
1038 | ||
1039 | ||
1040 | ## ----------- ## | |
1041 | ## Core tests. ## | |
1042 | ## ----------- ## | |
1043 | ||
1044 | _ACEOF | |
1045 | ||
1046 | ||
1047 | # Keep a trace of the command line. | |
1048 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1049 | # Strip out --silent because we don't want to record it for future runs. | |
1050 | # Also quote any args containing shell meta-characters. | |
1051 | # Make two passes to allow for proper duplicate-argument suppression. | |
1052 | ac_configure_args= | |
1053 | ac_configure_args0= | |
1054 | ac_configure_args1= | |
1055 | ac_sep= | |
1056 | ac_must_keep_next=false | |
1057 | for ac_pass in 1 2 | |
1058 | do | |
1059 | for ac_arg | |
1060 | do | |
1061 | case $ac_arg in | |
1062 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1064 | | -silent | --silent | --silen | --sile | --sil) | |
1065 | continue ;; | |
1066 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1067 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1068 | esac | |
1069 | case $ac_pass in | |
1070 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1071 | 2) | |
1072 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1073 | if test $ac_must_keep_next = true; then | |
1074 | ac_must_keep_next=false # Got value, back to normal. | |
1075 | else | |
1076 | case $ac_arg in | |
1077 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1078 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1079 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1080 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1081 | case "$ac_configure_args0 " in | |
1082 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1083 | esac | |
1084 | ;; | |
1085 | -* ) ac_must_keep_next=true ;; | |
1086 | esac | |
1087 | fi | |
1088 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1089 | # Get rid of the leading space. | |
1090 | ac_sep=" " | |
1091 | ;; | |
1092 | esac | |
1093 | done | |
1094 | done | |
1095 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1096 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1097 | ||
1098 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1099 | # config.log. We remove comments because anyway the quotes in there | |
1100 | # would cause problems or look ugly. | |
1101 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1102 | # such as our DU 5.0 friend, will then `close' the trap. | |
1103 | trap 'exit_status=$? | |
1104 | # Save into config.log some information that might help in debugging. | |
1105 | { | |
1106 | echo | |
1107 | ||
1108 | cat <<\_ASBOX | |
1109 | ## ---------------- ## | |
1110 | ## Cache variables. ## | |
1111 | ## ---------------- ## | |
1112 | _ASBOX | |
1113 | echo | |
1114 | # The following way of writing the cache mishandles newlines in values, | |
1115 | { | |
1116 | (set) 2>&1 | | |
1117 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1118 | *ac_space=\ *) | |
1119 | sed -n \ | |
1120 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1122 | ;; | |
1123 | *) | |
1124 | sed -n \ | |
1125 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1126 | ;; | |
1127 | esac; | |
1128 | } | |
1129 | echo | |
1130 | ||
1131 | cat <<\_ASBOX | |
1132 | ## ----------------- ## | |
1133 | ## Output variables. ## | |
1134 | ## ----------------- ## | |
1135 | _ASBOX | |
1136 | echo | |
1137 | for ac_var in $ac_subst_vars | |
1138 | do | |
1139 | eval ac_val=$`echo $ac_var` | |
1140 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1141 | done | sort | |
1142 | echo | |
1143 | ||
1144 | if test -n "$ac_subst_files"; then | |
1145 | cat <<\_ASBOX | |
1146 | ## ------------- ## | |
1147 | ## Output files. ## | |
1148 | ## ------------- ## | |
1149 | _ASBOX | |
1150 | echo | |
1151 | for ac_var in $ac_subst_files | |
1152 | do | |
1153 | eval ac_val=$`echo $ac_var` | |
1154 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1155 | done | sort | |
1156 | echo | |
1157 | fi | |
1158 | ||
1159 | if test -s confdefs.h; then | |
1160 | cat <<\_ASBOX | |
1161 | ## ----------- ## | |
1162 | ## confdefs.h. ## | |
1163 | ## ----------- ## | |
1164 | _ASBOX | |
1165 | echo | |
1166 | sed "/^$/d" confdefs.h | sort | |
1167 | echo | |
1168 | fi | |
1169 | test "$ac_signal" != 0 && | |
1170 | echo "$as_me: caught signal $ac_signal" | |
1171 | echo "$as_me: exit $exit_status" | |
1172 | } >&5 | |
1173 | rm -f core *.core && | |
1174 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1175 | exit $exit_status | |
1176 | ' 0 | |
1177 | for ac_signal in 1 2 13 15; do | |
1178 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1179 | done | |
1180 | ac_signal=0 | |
1181 | ||
1182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1183 | rm -rf conftest* confdefs.h | |
1184 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1185 | echo >confdefs.h | |
1186 | ||
1187 | # Predefined preprocessor variables. | |
1188 | ||
1189 | cat >>confdefs.h <<_ACEOF | |
1190 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | # Let the site file select an alternate cache file if it wants to. | |
1215 | # Prefer explicitly selected file to automatically selected ones. | |
1216 | if test -z "$CONFIG_SITE"; then | |
1217 | if test "x$prefix" != xNONE; then | |
1218 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1219 | else | |
1220 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1221 | fi | |
1222 | fi | |
1223 | for ac_site_file in $CONFIG_SITE; do | |
1224 | if test -r "$ac_site_file"; then | |
1225 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1226 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1227 | sed 's/^/| /' "$ac_site_file" >&5 | |
1228 | . "$ac_site_file" | |
1229 | fi | |
1230 | done | |
1231 | ||
1232 | if test -r "$cache_file"; then | |
1233 | # Some versions of bash will fail to source /dev/null (special | |
1234 | # files actually), so we avoid doing that. | |
1235 | if test -f "$cache_file"; then | |
1236 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1237 | echo "$as_me: loading cache $cache_file" >&6;} | |
1238 | case $cache_file in | |
1239 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1240 | *) . ./$cache_file;; | |
1241 | esac | |
1242 | fi | |
1243 | else | |
1244 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1245 | echo "$as_me: creating cache $cache_file" >&6;} | |
1246 | >$cache_file | |
1247 | fi | |
1248 | ||
1249 | # Check that the precious variables saved in the cache have kept the same | |
1250 | # value. | |
1251 | ac_cache_corrupted=false | |
1252 | for ac_var in `(set) 2>&1 | | |
1253 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1254 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1255 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1256 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1257 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1258 | case $ac_old_set,$ac_new_set in | |
1259 | set,) | |
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1261 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1262 | ac_cache_corrupted=: ;; | |
1263 | ,set) | |
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1265 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1266 | ac_cache_corrupted=: ;; | |
1267 | ,);; | |
1268 | *) | |
1269 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1270 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1271 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1272 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1273 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1274 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1275 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1276 | ac_cache_corrupted=: | |
1277 | fi;; | |
1278 | esac | |
1279 | # Pass precious variables to config.status. | |
1280 | if test "$ac_new_set" = set; then | |
1281 | case $ac_new_val in | |
1282 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1283 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1284 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1285 | esac | |
1286 | case " $ac_configure_args " in | |
1287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1288 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1289 | esac | |
1290 | fi | |
1291 | done | |
1292 | if $ac_cache_corrupted; then | |
1293 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1294 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1295 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1296 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1297 | { (exit 1); exit 1; }; } | |
1298 | fi | |
1299 | ||
1300 | ac_ext=c | |
1301 | ac_cpp='$CPP $CPPFLAGS' | |
1302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
96b8a615 AJ |
1332 | ac_config_headers="$ac_config_headers config.h" |
1333 | ||
6de9cd9a DN |
1334 | ac_aux_dir= |
1335 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1336 | if test -f $ac_dir/install-sh; then | |
1337 | ac_aux_dir=$ac_dir | |
1338 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1339 | break | |
1340 | elif test -f $ac_dir/install.sh; then | |
1341 | ac_aux_dir=$ac_dir | |
1342 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1343 | break | |
1344 | elif test -f $ac_dir/shtool; then | |
1345 | ac_aux_dir=$ac_dir | |
1346 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1347 | break | |
1348 | fi | |
1349 | done | |
1350 | if test -z "$ac_aux_dir"; then | |
1351 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1352 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1353 | { (exit 1); exit 1; }; } | |
1354 | fi | |
1355 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1356 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1357 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1358 | ||
96b8a615 AJ |
1359 | # Make sure we can run config.sub. |
1360 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1361 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1362 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1363 | { (exit 1); exit 1; }; } | |
1364 | ||
1365 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1366 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1367 | if test "${ac_cv_build+set}" = set; then | |
1368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1369 | else | |
1370 | ac_cv_build_alias=$build_alias | |
1371 | test -z "$ac_cv_build_alias" && | |
1372 | ac_cv_build_alias=`$ac_config_guess` | |
1373 | test -z "$ac_cv_build_alias" && | |
1374 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1375 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1376 | { (exit 1); exit 1; }; } | |
1377 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1378 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1379 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1380 | { (exit 1); exit 1; }; } | |
1381 | ||
1382 | fi | |
1383 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1384 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1385 | build=$ac_cv_build | |
1386 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1387 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1388 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1389 | ||
1390 | ||
891c05b1 JJ |
1391 | case ${build_alias} in |
1392 | "") build_noncanonical=${build} ;; | |
1393 | *) build_noncanonical=${build_alias} ;; | |
1394 | esac | |
1395 | ||
1396 | case ${host_alias} in | |
1397 | "") host_noncanonical=${build_noncanonical} ;; | |
1398 | *) host_noncanonical=${host_alias} ;; | |
1399 | esac | |
1400 | ||
1401 | case ${target_alias} in | |
1402 | "") target_noncanonical=${host_noncanonical} ;; | |
1403 | *) target_noncanonical=${target_alias} ;; | |
1404 | esac | |
1405 | ||
57255173 PB |
1406 | |
1407 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
1408 | # have matching libraries, they should use host libraries: Makefile.tpl | |
1409 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
1410 | # However, they still use the build modules, because the corresponding | |
1411 | # host modules (e.g. bison) are only built for the host when bootstrap | |
1412 | # finishes. So: | |
1413 | # - build_subdir is where we find build modules, and never changes. | |
1414 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
1415 | ||
1416 | # Prefix 'build-' so this never conflicts with target_subdir. | |
891c05b1 | 1417 | build_subdir="build-${build_noncanonical}" |
57255173 PB |
1418 | |
1419 | # Check whether --with-build-libsubdir or --without-build-libsubdir was given. | |
1420 | if test "${with_build_libsubdir+set}" = set; then | |
1421 | withval="$with_build_libsubdir" | |
1422 | build_libsubdir="$withval" | |
1423 | else | |
1424 | build_libsubdir="$build_subdir" | |
1425 | fi; | |
891c05b1 JJ |
1426 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
1427 | if ( test $srcdir = . && test -d gcc ) \ | |
1428 | || test -d $srcdir/../host-${host_noncanonical}; then | |
1429 | host_subdir="host-${host_noncanonical}" | |
1430 | else | |
1431 | host_subdir=. | |
1432 | fi | |
1433 | # No prefix. | |
1434 | target_subdir=${target_noncanonical} | |
1435 | ||
1436 | ||
1437 | # ------- | |
1438 | # Options | |
1439 | # ------- | |
1440 | ||
1441 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 | |
1442 | echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 | |
1443 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. | |
1444 | if test "${enable_version_specific_runtime_libs+set}" = set; then | |
1445 | enableval="$enable_version_specific_runtime_libs" | |
1446 | case "$enableval" in | |
1447 | yes) version_specific_libs=yes ;; | |
1448 | no) version_specific_libs=no ;; | |
1449 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5 | |
1450 | echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;} | |
1451 | { (exit 1); exit 1; }; };; | |
1452 | esac | |
1453 | else | |
1454 | version_specific_libs=no | |
1455 | fi; | |
1456 | echo "$as_me:$LINENO: result: $version_specific_libs" >&5 | |
1457 | echo "${ECHO_T}$version_specific_libs" >&6 | |
1458 | ||
1459 | ||
1460 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1461 | # | |
1462 | # You will slowly go insane if you do not grok the following fact: when | |
1463 | # building this library, the top-level /target/ becomes the library's /host/. | |
1464 | # | |
1465 | # configure then causes --target to default to --host, exactly like any | |
1466 | # other package using autoconf. Therefore, 'target' and 'host' will | |
1467 | # always be the same. This makes sense both for native and cross compilers | |
1468 | # just think about it for a little while. :-) | |
1469 | # | |
1470 | # Also, if this library is being configured as part of a cross compiler, the | |
1471 | # top-level configure script will pass the "real" host as $with_cross_host. | |
1472 | # | |
1473 | # Do not delete or change the following two lines. For why, see | |
1474 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
96b8a615 AJ |
1475 | echo "$as_me:$LINENO: checking host system type" >&5 |
1476 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1477 | if test "${ac_cv_host+set}" = set; then | |
1478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1479 | else | |
1480 | ac_cv_host_alias=$host_alias | |
1481 | test -z "$ac_cv_host_alias" && | |
1482 | ac_cv_host_alias=$ac_cv_build_alias | |
1483 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1484 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1485 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1486 | { (exit 1); exit 1; }; } | |
1487 | ||
1488 | fi | |
1489 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1490 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1491 | host=$ac_cv_host | |
1492 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1493 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1494 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1495 | ||
1496 | ||
1497 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1498 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1499 | if test "${ac_cv_target+set}" = set; then | |
1500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1501 | else | |
1502 | ac_cv_target_alias=$target_alias | |
1503 | test "x$ac_cv_target_alias" = "x" && | |
1504 | ac_cv_target_alias=$ac_cv_host_alias | |
1505 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1506 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1507 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1508 | { (exit 1); exit 1; }; } | |
1509 | ||
1510 | fi | |
1511 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1512 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1513 | target=$ac_cv_target | |
1514 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1515 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1516 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1517 | ||
1518 | ||
1519 | # The aliases save the names the user supplied, while $host etc. | |
1520 | # will get canonicalized. | |
1521 | test -n "$target_alias" && | |
1522 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1523 | NONENONEs,x,x, && | |
1524 | program_prefix=${target_alias}- | |
1525 | target_alias=${target_alias-$host_alias} | |
1526 | ||
1527 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1528 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
679c0f9a | 1529 | # 1.9.6: minimum required version |
96b8a615 AJ |
1530 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
1531 | # of other PACKAGE_* variables will, however, and there's nothing | |
1532 | # we can do about that; they come from AC_INIT). | |
1533 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1534 | # file in the top srcdir, etc, etc), so stop complaining. | |
96b8a615 AJ |
1535 | # -Wall: turns on all automake warnings... |
1536 | # -Wno-portability: ...except this one, since GNU make is required. | |
d49ec2d1 | 1537 | am__api_version="1.9" |
6de9cd9a DN |
1538 | # Find a good install program. We prefer a C program (faster), |
1539 | # so one script is as good as another. But avoid the broken or | |
1540 | # incompatible versions: | |
1541 | # SysV /etc/install, /usr/sbin/install | |
1542 | # SunOS /usr/etc/install | |
1543 | # IRIX /sbin/install | |
1544 | # AIX /bin/install | |
1545 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1546 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1547 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1548 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1549 | # OS/2's system install, which has a completely different semantic | |
1550 | # ./install, which can be erroneously created by make from ./install.sh. | |
1551 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1552 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1553 | if test -z "$INSTALL"; then | |
1554 | if test "${ac_cv_path_install+set}" = set; then | |
1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1556 | else | |
1557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1558 | for as_dir in $PATH | |
1559 | do | |
1560 | IFS=$as_save_IFS | |
1561 | test -z "$as_dir" && as_dir=. | |
1562 | # Account for people who put trailing slashes in PATH elements. | |
1563 | case $as_dir/ in | |
1564 | ./ | .// | /cC/* | \ | |
1565 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1566 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1567 | /usr/ucb/* ) ;; | |
1568 | *) | |
1569 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1570 | # Don't use installbsd from OSF since it installs stuff as root | |
1571 | # by default. | |
1572 | for ac_prog in ginstall scoinst install; do | |
1573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1574 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1575 | if test $ac_prog = install && | |
1576 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1577 | # AIX install. It has an incompatible calling convention. | |
1578 | : | |
1579 | elif test $ac_prog = install && | |
1580 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1581 | # program-specific install script used by HP pwplus--don't use. | |
1582 | : | |
1583 | else | |
1584 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1585 | break 3 | |
1586 | fi | |
1587 | fi | |
1588 | done | |
1589 | done | |
1590 | ;; | |
1591 | esac | |
1592 | done | |
1593 | ||
1594 | ||
1595 | fi | |
1596 | if test "${ac_cv_path_install+set}" = set; then | |
1597 | INSTALL=$ac_cv_path_install | |
1598 | else | |
1599 | # As a last resort, use the slow shell script. We don't cache a | |
1600 | # path for INSTALL within a source directory, because that will | |
1601 | # break other packages using the cache if that directory is | |
1602 | # removed, or if the path is relative. | |
1603 | INSTALL=$ac_install_sh | |
1604 | fi | |
1605 | fi | |
1606 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1607 | echo "${ECHO_T}$INSTALL" >&6 | |
1608 | ||
1609 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1610 | # It thinks the first close brace ends the variable substitution. | |
1611 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1612 | ||
1613 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1614 | ||
1615 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1616 | ||
1617 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1618 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1619 | # Just in case | |
1620 | sleep 1 | |
1621 | echo timestamp > conftest.file | |
1622 | # Do `set' in a subshell so we don't clobber the current shell's | |
1623 | # arguments. Must try -L first in case configure is actually a | |
1624 | # symlink; some systems play weird games with the mod time of symlinks | |
1625 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1626 | # directory). | |
1627 | if ( | |
1628 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1629 | if test "$*" = "X"; then | |
1630 | # -L didn't work. | |
1631 | set X `ls -t $srcdir/configure conftest.file` | |
1632 | fi | |
1633 | rm -f conftest.file | |
1634 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1635 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1636 | ||
1637 | # If neither matched, then we have a broken ls. This can happen | |
1638 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1639 | # broken ls alias from the environment. This has actually | |
1640 | # happened. Such a system could not be considered "sane". | |
1641 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1642 | alias in your environment" >&5 | |
1643 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1644 | alias in your environment" >&2;} | |
1645 | { (exit 1); exit 1; }; } | |
1646 | fi | |
1647 | ||
1648 | test "$2" = conftest.file | |
1649 | ) | |
1650 | then | |
1651 | # Ok. | |
1652 | : | |
1653 | else | |
1654 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1655 | Check your system clock" >&5 | |
1656 | echo "$as_me: error: newly created file is older than distributed files! | |
1657 | Check your system clock" >&2;} | |
1658 | { (exit 1); exit 1; }; } | |
1659 | fi | |
1660 | echo "$as_me:$LINENO: result: yes" >&5 | |
1661 | echo "${ECHO_T}yes" >&6 | |
1662 | test "$program_prefix" != NONE && | |
1663 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1664 | # Use a double $ so make ignores it. | |
1665 | test "$program_suffix" != NONE && | |
1666 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1667 | # Double any \ or $. echo might interpret backslashes. | |
1668 | # By default was `s,x,x', remove it if useless. | |
1669 | cat <<\_ACEOF >conftest.sed | |
1670 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1671 | _ACEOF | |
1672 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1673 | rm conftest.sed | |
1674 | ||
1675 | # expand $ac_aux_dir to an absolute path | |
1676 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1677 | ||
1678 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1679 | # Use eval to expand $SHELL | |
1680 | if eval "$MISSING --run true"; then | |
1681 | am_missing_run="$MISSING --run " | |
1682 | else | |
1683 | am_missing_run= | |
1684 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1685 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1686 | fi | |
1687 | ||
c9e66eda | 1688 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
d49ec2d1 KC |
1689 | # We used to keeping the `.' as first argument, in order to |
1690 | # allow $(mkdir_p) to be used without argument. As in | |
6de9cd9a | 1691 | # $(mkdir_p) $(somedir) |
d49ec2d1 KC |
1692 | # where $(somedir) is conditionally defined. However this is wrong |
1693 | # for two reasons: | |
1694 | # 1. if the package is installed by a user who cannot write `.' | |
1695 | # make install will fail, | |
1696 | # 2. the above comment should most certainly read | |
1697 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1698 | # so it does not work when $(somedir) is undefined and | |
1699 | # $(DESTDIR) is not. | |
1700 | # To support the latter case, we have to write | |
1701 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1702 | # so the `.' trick is pointless. | |
1703 | mkdir_p='mkdir -p --' | |
6de9cd9a DN |
1704 | else |
1705 | # On NextStep and OpenStep, the `mkdir' command does not | |
1706 | # recognize any option. It will interpret all options as | |
1707 | # directories to create, and then abort because `.' already | |
1708 | # exists. | |
c9e66eda | 1709 | for d in ./-p ./--version; |
6de9cd9a DN |
1710 | do |
1711 | test -d $d && rmdir $d | |
1712 | done | |
1713 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1714 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1715 | mkdir_p='$(mkinstalldirs)' | |
1716 | else | |
1717 | mkdir_p='$(install_sh) -d' | |
1718 | fi | |
1719 | fi | |
1720 | ||
1721 | for ac_prog in gawk mawk nawk awk | |
1722 | do | |
1723 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1724 | set dummy $ac_prog; ac_word=$2 | |
1725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1727 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1729 | else | |
1730 | if test -n "$AWK"; then | |
1731 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1732 | else | |
1733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1734 | for as_dir in $PATH | |
1735 | do | |
1736 | IFS=$as_save_IFS | |
1737 | test -z "$as_dir" && as_dir=. | |
1738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1740 | ac_cv_prog_AWK="$ac_prog" | |
1741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1742 | break 2 | |
1743 | fi | |
1744 | done | |
1745 | done | |
1746 | ||
1747 | fi | |
1748 | fi | |
1749 | AWK=$ac_cv_prog_AWK | |
1750 | if test -n "$AWK"; then | |
1751 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1752 | echo "${ECHO_T}$AWK" >&6 | |
1753 | else | |
1754 | echo "$as_me:$LINENO: result: no" >&5 | |
1755 | echo "${ECHO_T}no" >&6 | |
1756 | fi | |
1757 | ||
1758 | test -n "$AWK" && break | |
1759 | done | |
1760 | ||
1761 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1762 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1763 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1764 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1766 | else | |
1767 | cat >conftest.make <<\_ACEOF | |
1768 | all: | |
1769 | @echo 'ac_maketemp="$(MAKE)"' | |
1770 | _ACEOF | |
1771 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1772 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1773 | if test -n "$ac_maketemp"; then | |
1774 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1775 | else | |
1776 | eval ac_cv_prog_make_${ac_make}_set=no | |
1777 | fi | |
1778 | rm -f conftest.make | |
1779 | fi | |
1780 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1781 | echo "$as_me:$LINENO: result: yes" >&5 | |
1782 | echo "${ECHO_T}yes" >&6 | |
1783 | SET_MAKE= | |
1784 | else | |
1785 | echo "$as_me:$LINENO: result: no" >&5 | |
1786 | echo "${ECHO_T}no" >&6 | |
1787 | SET_MAKE="MAKE=${MAKE-make}" | |
1788 | fi | |
1789 | ||
1790 | rm -rf .tst 2>/dev/null | |
1791 | mkdir .tst 2>/dev/null | |
1792 | if test -d .tst; then | |
1793 | am__leading_dot=. | |
1794 | else | |
1795 | am__leading_dot=_ | |
1796 | fi | |
1797 | rmdir .tst 2>/dev/null | |
1798 | ||
1799 | # test to see if srcdir already configured | |
1800 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1801 | test -f $srcdir/config.status; then | |
1802 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1803 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1804 | { (exit 1); exit 1; }; } | |
1805 | fi | |
1806 | ||
1807 | # test whether we have cygpath | |
1808 | if test -z "$CYGPATH_W"; then | |
1809 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1810 | CYGPATH_W='cygpath -w' | |
1811 | else | |
1812 | CYGPATH_W=echo | |
1813 | fi | |
1814 | fi | |
1815 | ||
1816 | ||
1817 | # Define the identity of the package. | |
1818 | PACKAGE='libgfortran' | |
0dce3ca1 | 1819 | VERSION='0.3' |
6de9cd9a DN |
1820 | |
1821 | ||
6de9cd9a DN |
1822 | # Some tools Automake needs. |
1823 | ||
1824 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1825 | ||
1826 | ||
1827 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1828 | ||
1829 | ||
1830 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1831 | ||
1832 | ||
1833 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1834 | ||
1835 | ||
1836 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1837 | ||
6de9cd9a DN |
1838 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1839 | ||
1840 | # Installed binaries are usually stripped using `strip' when the user | |
1841 | # run `make install-strip'. However `strip' might not be the right | |
1842 | # tool to use in cross-compilation environments, therefore Automake | |
1843 | # will honor the `STRIP' environment variable to overrule this program. | |
1844 | if test "$cross_compiling" != no; then | |
1845 | if test -n "$ac_tool_prefix"; then | |
1846 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1847 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1850 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1852 | else | |
1853 | if test -n "$STRIP"; then | |
1854 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1855 | else | |
1856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1857 | for as_dir in $PATH | |
1858 | do | |
1859 | IFS=$as_save_IFS | |
1860 | test -z "$as_dir" && as_dir=. | |
1861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1863 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1865 | break 2 | |
1866 | fi | |
1867 | done | |
1868 | done | |
1869 | ||
1870 | fi | |
1871 | fi | |
1872 | STRIP=$ac_cv_prog_STRIP | |
1873 | if test -n "$STRIP"; then | |
1874 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1875 | echo "${ECHO_T}$STRIP" >&6 | |
1876 | else | |
1877 | echo "$as_me:$LINENO: result: no" >&5 | |
1878 | echo "${ECHO_T}no" >&6 | |
1879 | fi | |
1880 | ||
1881 | fi | |
1882 | if test -z "$ac_cv_prog_STRIP"; then | |
1883 | ac_ct_STRIP=$STRIP | |
1884 | # Extract the first word of "strip", so it can be a program name with args. | |
1885 | set dummy strip; ac_word=$2 | |
1886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1888 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1890 | else | |
1891 | if test -n "$ac_ct_STRIP"; then | |
1892 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1893 | else | |
1894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1895 | for as_dir in $PATH | |
1896 | do | |
1897 | IFS=$as_save_IFS | |
1898 | test -z "$as_dir" && as_dir=. | |
1899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1901 | ac_cv_prog_ac_ct_STRIP="strip" | |
1902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1903 | break 2 | |
1904 | fi | |
1905 | done | |
1906 | done | |
1907 | ||
1908 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1909 | fi | |
1910 | fi | |
1911 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1912 | if test -n "$ac_ct_STRIP"; then | |
1913 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1914 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1915 | else | |
1916 | echo "$as_me:$LINENO: result: no" >&5 | |
1917 | echo "${ECHO_T}no" >&6 | |
1918 | fi | |
1919 | ||
1920 | STRIP=$ac_ct_STRIP | |
1921 | else | |
1922 | STRIP="$ac_cv_prog_STRIP" | |
1923 | fi | |
1924 | ||
1925 | fi | |
1926 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1927 | ||
1928 | # We need awk for the "check" target. The system "awk" is bad on | |
1929 | # some platforms. | |
d49ec2d1 KC |
1930 | # Always define AMTAR for backward compatibility. |
1931 | ||
1932 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1933 | ||
1934 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1935 | ||
1936 | ||
6de9cd9a DN |
1937 | |
1938 | ||
1939 | ||
6de9cd9a DN |
1940 | |
1941 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1942 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1943 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1944 | if test "${enable_maintainer_mode+set}" = set; then | |
1945 | enableval="$enable_maintainer_mode" | |
1946 | USE_MAINTAINER_MODE=$enableval | |
1947 | else | |
1948 | USE_MAINTAINER_MODE=no | |
1949 | fi; | |
1950 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1951 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1952 | ||
1953 | ||
1954 | if test $USE_MAINTAINER_MODE = yes; then | |
1955 | MAINTAINER_MODE_TRUE= | |
1956 | MAINTAINER_MODE_FALSE='#' | |
1957 | else | |
1958 | MAINTAINER_MODE_TRUE='#' | |
1959 | MAINTAINER_MODE_FALSE= | |
1960 | fi | |
1961 | ||
1962 | MAINT=$MAINTAINER_MODE_TRUE | |
1963 | ||
1964 | ||
96b8a615 AJ |
1965 | # Default to --enable-multilib |
1966 | # Check whether --enable-multilib or --disable-multilib was given. | |
1967 | if test "${enable_multilib+set}" = set; then | |
1968 | enableval="$enable_multilib" | |
1969 | case "$enableval" in | |
1970 | yes) multilib=yes ;; | |
1971 | no) multilib=no ;; | |
1972 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1973 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1974 | { (exit 1); exit 1; }; } ;; | |
1975 | esac | |
1976 | else | |
1977 | multilib=yes | |
1978 | fi; | |
1979 | ||
1980 | # We may get other options which we leave undocumented: | |
1981 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1982 | # See config-ml.in if you want the gory details. | |
1983 | ||
1984 | if test "$srcdir" = "."; then | |
1985 | if test "$with_target_subdir" != "."; then | |
1986 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1987 | else | |
1988 | multi_basedir="$srcdir/$with_multisrctop.." | |
1989 | fi | |
1990 | else | |
1991 | multi_basedir="$srcdir/.." | |
1992 | fi | |
1993 | ||
1994 | ||
9f9ef303 FXC |
1995 | # Even if the default multilib is not a cross compilation, |
1996 | # it may be that some of the other multilibs are. | |
1997 | if test $cross_compiling = no && test $multilib = yes \ | |
1998 | && test "x${with_multisubdir}" != x ; then | |
1999 | cross_compiling=maybe | |
2000 | fi | |
2001 | ||
96b8a615 AJ |
2002 | ac_config_commands="$ac_config_commands default-1" |
2003 | ||
2004 | ||
2005 | # Handy for debugging: | |
2006 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
2007 | ||
2008 | # Are we being configured with some form of cross compiler? | |
2009 | # NB: We don't actually need to know this just now, but when, say, a test | |
2010 | # suite is included, we'll have to know. | |
2011 | if test "$build" != "$host"; then | |
2012 | LIBGFOR_IS_NATIVE=false | |
f02d008e | 2013 | |
96b8a615 AJ |
2014 | else |
2015 | LIBGFOR_IS_NATIVE=true | |
2016 | fi | |
2017 | ||
96b8a615 AJ |
2018 | # Calculate toolexeclibdir |
2019 | # Also toolexecdir, though it's only used in toolexeclibdir | |
2020 | case ${version_specific_libs} in | |
2021 | yes) | |
2022 | # Need the gcc compiler version to know where to install libraries | |
2023 | # and header files if --enable-version-specific-runtime-libs option | |
2024 | # is selected. | |
2025 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
140e859c | 2026 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' |
96b8a615 AJ |
2027 | ;; |
2028 | no) | |
2029 | if test -n "$with_cross_host" && | |
2030 | test x"$with_cross_host" != x"no"; then | |
2031 | # Install a library built with a cross compiler in tooldir, not libdir. | |
2032 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
2033 | toolexeclibdir='$(toolexecdir)/lib' | |
2034 | else | |
2035 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
2036 | toolexeclibdir='$(libdir)' | |
2037 | fi | |
2038 | multi_os_directory=`$CC -print-multi-os-directory` | |
2039 | case $multi_os_directory in | |
2040 | .) ;; # Avoid trailing /. | |
2041 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
2042 | esac | |
2043 | ;; | |
2044 | esac | |
2045 | ||
2046 | ||
6de9cd9a | 2047 | |
96b8a615 AJ |
2048 | # Check the compiler. |
2049 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
2050 | # We must force CC to /not/ be precious variables; otherwise | |
2051 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
2052 | # As a side effect, we have to subst CFLAGS ourselves. | |
6de9cd9a DN |
2053 | |
2054 | ||
2055 | ||
6de9cd9a DN |
2056 | ac_ext=c |
2057 | ac_cpp='$CPP $CPPFLAGS' | |
2058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2061 | if test -n "$ac_tool_prefix"; then | |
2062 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2063 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2066 | if test "${ac_cv_prog_CC+set}" = set; then | |
2067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2068 | else | |
2069 | if test -n "$CC"; then | |
2070 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2071 | else | |
2072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2073 | for as_dir in $PATH | |
2074 | do | |
2075 | IFS=$as_save_IFS | |
2076 | test -z "$as_dir" && as_dir=. | |
2077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2079 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2081 | break 2 | |
2082 | fi | |
2083 | done | |
2084 | done | |
2085 | ||
2086 | fi | |
2087 | fi | |
2088 | CC=$ac_cv_prog_CC | |
2089 | if test -n "$CC"; then | |
2090 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2091 | echo "${ECHO_T}$CC" >&6 | |
2092 | else | |
2093 | echo "$as_me:$LINENO: result: no" >&5 | |
2094 | echo "${ECHO_T}no" >&6 | |
2095 | fi | |
2096 | ||
2097 | fi | |
2098 | if test -z "$ac_cv_prog_CC"; then | |
2099 | ac_ct_CC=$CC | |
2100 | # Extract the first word of "gcc", so it can be a program name with args. | |
2101 | set dummy gcc; ac_word=$2 | |
2102 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2104 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2106 | else | |
2107 | if test -n "$ac_ct_CC"; then | |
2108 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2109 | else | |
2110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2111 | for as_dir in $PATH | |
2112 | do | |
2113 | IFS=$as_save_IFS | |
2114 | test -z "$as_dir" && as_dir=. | |
2115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2116 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2117 | ac_cv_prog_ac_ct_CC="gcc" | |
2118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2119 | break 2 | |
2120 | fi | |
2121 | done | |
2122 | done | |
2123 | ||
2124 | fi | |
2125 | fi | |
2126 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2127 | if test -n "$ac_ct_CC"; then | |
2128 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2129 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2130 | else | |
2131 | echo "$as_me:$LINENO: result: no" >&5 | |
2132 | echo "${ECHO_T}no" >&6 | |
2133 | fi | |
2134 | ||
2135 | CC=$ac_ct_CC | |
2136 | else | |
2137 | CC="$ac_cv_prog_CC" | |
2138 | fi | |
2139 | ||
2140 | if test -z "$CC"; then | |
2141 | if test -n "$ac_tool_prefix"; then | |
2142 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2143 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2144 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2146 | if test "${ac_cv_prog_CC+set}" = set; then | |
2147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2148 | else | |
2149 | if test -n "$CC"; then | |
2150 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2151 | else | |
2152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2153 | for as_dir in $PATH | |
2154 | do | |
2155 | IFS=$as_save_IFS | |
2156 | test -z "$as_dir" && as_dir=. | |
2157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2158 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2159 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2161 | break 2 | |
2162 | fi | |
2163 | done | |
2164 | done | |
2165 | ||
2166 | fi | |
2167 | fi | |
2168 | CC=$ac_cv_prog_CC | |
2169 | if test -n "$CC"; then | |
2170 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2171 | echo "${ECHO_T}$CC" >&6 | |
2172 | else | |
2173 | echo "$as_me:$LINENO: result: no" >&5 | |
2174 | echo "${ECHO_T}no" >&6 | |
2175 | fi | |
2176 | ||
2177 | fi | |
2178 | if test -z "$ac_cv_prog_CC"; then | |
2179 | ac_ct_CC=$CC | |
2180 | # Extract the first word of "cc", so it can be a program name with args. | |
2181 | set dummy cc; ac_word=$2 | |
2182 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2183 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2184 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2186 | else | |
2187 | if test -n "$ac_ct_CC"; then | |
2188 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2189 | else | |
2190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2191 | for as_dir in $PATH | |
2192 | do | |
2193 | IFS=$as_save_IFS | |
2194 | test -z "$as_dir" && as_dir=. | |
2195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2196 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2197 | ac_cv_prog_ac_ct_CC="cc" | |
2198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2199 | break 2 | |
2200 | fi | |
2201 | done | |
2202 | done | |
2203 | ||
2204 | fi | |
2205 | fi | |
2206 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2207 | if test -n "$ac_ct_CC"; then | |
2208 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2209 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2210 | else | |
2211 | echo "$as_me:$LINENO: result: no" >&5 | |
2212 | echo "${ECHO_T}no" >&6 | |
2213 | fi | |
2214 | ||
2215 | CC=$ac_ct_CC | |
2216 | else | |
2217 | CC="$ac_cv_prog_CC" | |
2218 | fi | |
2219 | ||
2220 | fi | |
2221 | if test -z "$CC"; then | |
2222 | # Extract the first word of "cc", so it can be a program name with args. | |
2223 | set dummy cc; ac_word=$2 | |
2224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2226 | if test "${ac_cv_prog_CC+set}" = set; then | |
2227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2228 | else | |
2229 | if test -n "$CC"; then | |
2230 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2231 | else | |
2232 | ac_prog_rejected=no | |
2233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2234 | for as_dir in $PATH | |
2235 | do | |
2236 | IFS=$as_save_IFS | |
2237 | test -z "$as_dir" && as_dir=. | |
2238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2240 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2241 | ac_prog_rejected=yes | |
2242 | continue | |
2243 | fi | |
2244 | ac_cv_prog_CC="cc" | |
2245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2246 | break 2 | |
2247 | fi | |
2248 | done | |
2249 | done | |
2250 | ||
2251 | if test $ac_prog_rejected = yes; then | |
2252 | # We found a bogon in the path, so make sure we never use it. | |
2253 | set dummy $ac_cv_prog_CC | |
2254 | shift | |
2255 | if test $# != 0; then | |
2256 | # We chose a different compiler from the bogus one. | |
2257 | # However, it has the same basename, so the bogon will be chosen | |
2258 | # first if we set CC to just the basename; use the full file name. | |
2259 | shift | |
2260 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2261 | fi | |
2262 | fi | |
2263 | fi | |
2264 | fi | |
2265 | CC=$ac_cv_prog_CC | |
2266 | if test -n "$CC"; then | |
2267 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2268 | echo "${ECHO_T}$CC" >&6 | |
2269 | else | |
2270 | echo "$as_me:$LINENO: result: no" >&5 | |
2271 | echo "${ECHO_T}no" >&6 | |
2272 | fi | |
2273 | ||
2274 | fi | |
2275 | if test -z "$CC"; then | |
2276 | if test -n "$ac_tool_prefix"; then | |
2277 | for ac_prog in cl | |
2278 | do | |
2279 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2280 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2283 | if test "${ac_cv_prog_CC+set}" = set; then | |
2284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2285 | else | |
2286 | if test -n "$CC"; then | |
2287 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2288 | else | |
2289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2290 | for as_dir in $PATH | |
2291 | do | |
2292 | IFS=$as_save_IFS | |
2293 | test -z "$as_dir" && as_dir=. | |
2294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2296 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2298 | break 2 | |
2299 | fi | |
2300 | done | |
2301 | done | |
2302 | ||
2303 | fi | |
2304 | fi | |
2305 | CC=$ac_cv_prog_CC | |
2306 | if test -n "$CC"; then | |
2307 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2308 | echo "${ECHO_T}$CC" >&6 | |
2309 | else | |
2310 | echo "$as_me:$LINENO: result: no" >&5 | |
2311 | echo "${ECHO_T}no" >&6 | |
2312 | fi | |
2313 | ||
2314 | test -n "$CC" && break | |
2315 | done | |
2316 | fi | |
2317 | if test -z "$CC"; then | |
2318 | ac_ct_CC=$CC | |
2319 | for ac_prog in cl | |
2320 | do | |
2321 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2322 | set dummy $ac_prog; ac_word=$2 | |
2323 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2325 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2327 | else | |
2328 | if test -n "$ac_ct_CC"; then | |
2329 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2330 | else | |
2331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2332 | for as_dir in $PATH | |
2333 | do | |
2334 | IFS=$as_save_IFS | |
2335 | test -z "$as_dir" && as_dir=. | |
2336 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2337 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2338 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2340 | break 2 | |
2341 | fi | |
2342 | done | |
2343 | done | |
2344 | ||
2345 | fi | |
2346 | fi | |
2347 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2348 | if test -n "$ac_ct_CC"; then | |
2349 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2350 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2351 | else | |
2352 | echo "$as_me:$LINENO: result: no" >&5 | |
2353 | echo "${ECHO_T}no" >&6 | |
2354 | fi | |
2355 | ||
2356 | test -n "$ac_ct_CC" && break | |
2357 | done | |
2358 | ||
2359 | CC=$ac_ct_CC | |
2360 | fi | |
2361 | ||
2362 | fi | |
2363 | ||
2364 | ||
2365 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2366 | See \`config.log' for more details." >&5 | |
2367 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2368 | See \`config.log' for more details." >&2;} | |
2369 | { (exit 1); exit 1; }; } | |
2370 | ||
2371 | # Provide some information about the compiler. | |
2372 | echo "$as_me:$LINENO:" \ | |
2373 | "checking for C compiler version" >&5 | |
2374 | ac_compiler=`set X $ac_compile; echo $2` | |
2375 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2376 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2377 | ac_status=$? | |
2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2379 | (exit $ac_status); } | |
2380 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2381 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2382 | ac_status=$? | |
2383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2384 | (exit $ac_status); } | |
2385 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2386 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2387 | ac_status=$? | |
2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2389 | (exit $ac_status); } | |
2390 | ||
2391 | cat >conftest.$ac_ext <<_ACEOF | |
2392 | /* confdefs.h. */ | |
2393 | _ACEOF | |
2394 | cat confdefs.h >>conftest.$ac_ext | |
2395 | cat >>conftest.$ac_ext <<_ACEOF | |
2396 | /* end confdefs.h. */ | |
2397 | ||
f02d008e JD |
2398 | int |
2399 | main () | |
2400 | { | |
2401 | ||
2402 | ; | |
2403 | return 0; | |
2404 | } | |
2405 | _ACEOF | |
2406 | # FIXME: Cleanup? | |
2407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2408 | (eval $ac_link) 2>&5 | |
2409 | ac_status=$? | |
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2411 | (exit $ac_status); }; then | |
2412 | gcc_no_link=no | |
2413 | else | |
2414 | gcc_no_link=yes | |
2415 | fi | |
2416 | ||
2417 | if test x$gcc_no_link = xyes; then | |
2418 | # Setting cross_compile will disable run tests; it will | |
2419 | # also disable AC_CHECK_FILE but that's generally | |
2420 | # correct if we can't link. | |
2421 | cross_compiling=yes | |
2422 | EXEEXT= | |
2423 | else | |
2424 | cat >conftest.$ac_ext <<_ACEOF | |
2425 | /* confdefs.h. */ | |
2426 | _ACEOF | |
2427 | cat confdefs.h >>conftest.$ac_ext | |
2428 | cat >>conftest.$ac_ext <<_ACEOF | |
2429 | /* end confdefs.h. */ | |
2430 | ||
6de9cd9a DN |
2431 | int |
2432 | main () | |
2433 | { | |
2434 | ||
2435 | ; | |
2436 | return 0; | |
2437 | } | |
2438 | _ACEOF | |
2439 | ac_clean_files_save=$ac_clean_files | |
2440 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2441 | # Try to create an executable without -o first, disregard a.out. | |
2442 | # It will help us diagnose broken compilers, and finding out an intuition | |
2443 | # of exeext. | |
2444 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2445 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2446 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2447 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2448 | (eval $ac_link_default) 2>&5 | |
2449 | ac_status=$? | |
2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2451 | (exit $ac_status); }; then | |
2452 | # Find the output, starting from the most likely. This scheme is | |
2453 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2454 | # resort. | |
2455 | ||
2456 | # Be careful to initialize this variable, since it used to be cached. | |
2457 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2458 | ac_cv_exeext= | |
2459 | # b.out is created by i960 compilers. | |
2460 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2461 | do | |
2462 | test -f "$ac_file" || continue | |
2463 | case $ac_file in | |
2464 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2465 | ;; | |
2466 | conftest.$ac_ext ) | |
2467 | # This is the source file. | |
2468 | ;; | |
2469 | [ab].out ) | |
2470 | # We found the default executable, but exeext='' is most | |
2471 | # certainly right. | |
2472 | break;; | |
2473 | *.* ) | |
2474 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2475 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2476 | # but it would be cool to find out if it's true. Does anybody | |
2477 | # maintain Libtool? --akim. | |
2478 | export ac_cv_exeext | |
2479 | break;; | |
2480 | * ) | |
2481 | break;; | |
2482 | esac | |
2483 | done | |
2484 | else | |
2485 | echo "$as_me: failed program was:" >&5 | |
2486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2487 | ||
2488 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2489 | See \`config.log' for more details." >&5 | |
2490 | echo "$as_me: error: C compiler cannot create executables | |
2491 | See \`config.log' for more details." >&2;} | |
2492 | { (exit 77); exit 77; }; } | |
2493 | fi | |
2494 | ||
2495 | ac_exeext=$ac_cv_exeext | |
2496 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2497 | echo "${ECHO_T}$ac_file" >&6 | |
2498 | ||
2499 | # Check the compiler produces executables we can run. If not, either | |
2500 | # the compiler is broken, or we cross compile. | |
2501 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2502 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2503 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2504 | # If not cross compiling, check that we can run a simple program. | |
2505 | if test "$cross_compiling" != yes; then | |
2506 | if { ac_try='./$ac_file' | |
2507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2508 | (eval $ac_try) 2>&5 | |
2509 | ac_status=$? | |
2510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2511 | (exit $ac_status); }; }; then | |
2512 | cross_compiling=no | |
2513 | else | |
2514 | if test "$cross_compiling" = maybe; then | |
2515 | cross_compiling=yes | |
2516 | else | |
2517 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2518 | If you meant to cross compile, use \`--host'. | |
2519 | See \`config.log' for more details." >&5 | |
2520 | echo "$as_me: error: cannot run C compiled programs. | |
2521 | If you meant to cross compile, use \`--host'. | |
2522 | See \`config.log' for more details." >&2;} | |
2523 | { (exit 1); exit 1; }; } | |
2524 | fi | |
2525 | fi | |
2526 | fi | |
2527 | echo "$as_me:$LINENO: result: yes" >&5 | |
2528 | echo "${ECHO_T}yes" >&6 | |
2529 | ||
2530 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2531 | ac_clean_files=$ac_clean_files_save | |
2532 | # Check the compiler produces executables we can run. If not, either | |
2533 | # the compiler is broken, or we cross compile. | |
2534 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2535 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2536 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2537 | echo "${ECHO_T}$cross_compiling" >&6 | |
2538 | ||
2539 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2540 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2542 | (eval $ac_link) 2>&5 | |
2543 | ac_status=$? | |
2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2545 | (exit $ac_status); }; then | |
2546 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2547 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2548 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2549 | # `rm'. | |
2550 | for ac_file in conftest.exe conftest conftest.*; do | |
2551 | test -f "$ac_file" || continue | |
2552 | case $ac_file in | |
2553 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2554 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2555 | export ac_cv_exeext | |
2556 | break;; | |
2557 | * ) break;; | |
2558 | esac | |
2559 | done | |
2560 | else | |
2561 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2562 | See \`config.log' for more details." >&5 | |
2563 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2564 | See \`config.log' for more details." >&2;} | |
2565 | { (exit 1); exit 1; }; } | |
2566 | fi | |
2567 | ||
2568 | rm -f conftest$ac_cv_exeext | |
2569 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2570 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2571 | ||
2572 | rm -f conftest.$ac_ext | |
2573 | EXEEXT=$ac_cv_exeext | |
2574 | ac_exeext=$EXEEXT | |
f02d008e | 2575 | fi |
6de9cd9a DN |
2576 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2577 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2578 | if test "${ac_cv_objext+set}" = set; then | |
2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2580 | else | |
2581 | cat >conftest.$ac_ext <<_ACEOF | |
2582 | /* confdefs.h. */ | |
2583 | _ACEOF | |
2584 | cat confdefs.h >>conftest.$ac_ext | |
2585 | cat >>conftest.$ac_ext <<_ACEOF | |
2586 | /* end confdefs.h. */ | |
2587 | ||
2588 | int | |
2589 | main () | |
2590 | { | |
2591 | ||
2592 | ; | |
2593 | return 0; | |
2594 | } | |
2595 | _ACEOF | |
2596 | rm -f conftest.o conftest.obj | |
2597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2598 | (eval $ac_compile) 2>&5 | |
2599 | ac_status=$? | |
2600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2601 | (exit $ac_status); }; then | |
2602 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2603 | case $ac_file in | |
2604 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2605 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2606 | break;; | |
2607 | esac | |
2608 | done | |
2609 | else | |
2610 | echo "$as_me: failed program was:" >&5 | |
2611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2612 | ||
2613 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2614 | See \`config.log' for more details." >&5 | |
2615 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2616 | See \`config.log' for more details." >&2;} | |
2617 | { (exit 1); exit 1; }; } | |
2618 | fi | |
2619 | ||
2620 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2621 | fi | |
2622 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2623 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2624 | OBJEXT=$ac_cv_objext | |
2625 | ac_objext=$OBJEXT | |
2626 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2627 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2628 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2630 | else | |
2631 | cat >conftest.$ac_ext <<_ACEOF | |
2632 | /* confdefs.h. */ | |
2633 | _ACEOF | |
2634 | cat confdefs.h >>conftest.$ac_ext | |
2635 | cat >>conftest.$ac_ext <<_ACEOF | |
2636 | /* end confdefs.h. */ | |
2637 | ||
2638 | int | |
2639 | main () | |
2640 | { | |
2641 | #ifndef __GNUC__ | |
2642 | choke me | |
2643 | #endif | |
2644 | ||
2645 | ; | |
2646 | return 0; | |
2647 | } | |
2648 | _ACEOF | |
2649 | rm -f conftest.$ac_objext | |
2650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2651 | (eval $ac_compile) 2>conftest.er1 | |
2652 | ac_status=$? | |
2653 | grep -v '^ *+' conftest.er1 >conftest.err | |
2654 | rm -f conftest.er1 | |
2655 | cat conftest.err >&5 | |
2656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2657 | (exit $ac_status); } && | |
57255173 PB |
2658 | { ac_try='test -z "$ac_c_werror_flag" |
2659 | || test ! -s conftest.err' | |
6de9cd9a DN |
2660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2661 | (eval $ac_try) 2>&5 | |
2662 | ac_status=$? | |
2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2664 | (exit $ac_status); }; } && | |
2665 | { ac_try='test -s conftest.$ac_objext' | |
2666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2667 | (eval $ac_try) 2>&5 | |
2668 | ac_status=$? | |
2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2670 | (exit $ac_status); }; }; then | |
2671 | ac_compiler_gnu=yes | |
2672 | else | |
2673 | echo "$as_me: failed program was:" >&5 | |
2674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2675 | ||
2676 | ac_compiler_gnu=no | |
2677 | fi | |
2678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2679 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2680 | ||
2681 | fi | |
2682 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2683 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2684 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2685 | ac_test_CFLAGS=${CFLAGS+set} | |
2686 | ac_save_CFLAGS=$CFLAGS | |
2687 | CFLAGS="-g" | |
2688 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2689 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2690 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2692 | else | |
2693 | cat >conftest.$ac_ext <<_ACEOF | |
2694 | /* confdefs.h. */ | |
2695 | _ACEOF | |
2696 | cat confdefs.h >>conftest.$ac_ext | |
2697 | cat >>conftest.$ac_ext <<_ACEOF | |
2698 | /* end confdefs.h. */ | |
2699 | ||
2700 | int | |
2701 | main () | |
2702 | { | |
2703 | ||
2704 | ; | |
2705 | return 0; | |
2706 | } | |
2707 | _ACEOF | |
2708 | rm -f conftest.$ac_objext | |
2709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2710 | (eval $ac_compile) 2>conftest.er1 | |
2711 | ac_status=$? | |
2712 | grep -v '^ *+' conftest.er1 >conftest.err | |
2713 | rm -f conftest.er1 | |
2714 | cat conftest.err >&5 | |
2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2716 | (exit $ac_status); } && | |
57255173 PB |
2717 | { ac_try='test -z "$ac_c_werror_flag" |
2718 | || test ! -s conftest.err' | |
6de9cd9a DN |
2719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2720 | (eval $ac_try) 2>&5 | |
2721 | ac_status=$? | |
2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2723 | (exit $ac_status); }; } && | |
2724 | { ac_try='test -s conftest.$ac_objext' | |
2725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2726 | (eval $ac_try) 2>&5 | |
2727 | ac_status=$? | |
2728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2729 | (exit $ac_status); }; }; then | |
2730 | ac_cv_prog_cc_g=yes | |
2731 | else | |
2732 | echo "$as_me: failed program was:" >&5 | |
2733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2734 | ||
2735 | ac_cv_prog_cc_g=no | |
2736 | fi | |
2737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2738 | fi | |
2739 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2740 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2741 | if test "$ac_test_CFLAGS" = set; then | |
2742 | CFLAGS=$ac_save_CFLAGS | |
2743 | elif test $ac_cv_prog_cc_g = yes; then | |
2744 | if test "$GCC" = yes; then | |
2745 | CFLAGS="-g -O2" | |
2746 | else | |
2747 | CFLAGS="-g" | |
2748 | fi | |
2749 | else | |
2750 | if test "$GCC" = yes; then | |
2751 | CFLAGS="-O2" | |
2752 | else | |
2753 | CFLAGS= | |
2754 | fi | |
2755 | fi | |
2756 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2757 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2758 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2760 | else | |
2761 | ac_cv_prog_cc_stdc=no | |
2762 | ac_save_CC=$CC | |
2763 | cat >conftest.$ac_ext <<_ACEOF | |
2764 | /* confdefs.h. */ | |
2765 | _ACEOF | |
2766 | cat confdefs.h >>conftest.$ac_ext | |
2767 | cat >>conftest.$ac_ext <<_ACEOF | |
2768 | /* end confdefs.h. */ | |
2769 | #include <stdarg.h> | |
2770 | #include <stdio.h> | |
2771 | #include <sys/types.h> | |
2772 | #include <sys/stat.h> | |
2773 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2774 | struct buf { int x; }; | |
2775 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2776 | static char *e (p, i) | |
2777 | char **p; | |
2778 | int i; | |
2779 | { | |
2780 | return p[i]; | |
2781 | } | |
2782 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2783 | { | |
2784 | char *s; | |
2785 | va_list v; | |
2786 | va_start (v,p); | |
2787 | s = g (p, va_arg (v,int)); | |
2788 | va_end (v); | |
2789 | return s; | |
2790 | } | |
2791 | ||
2792 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2793 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2794 | These don't provoke an error unfortunately, instead are silently treated | |
2795 | as 'x'. The following induces an error, until -std1 is added to get | |
2796 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2797 | array size at least. It's necessary to write '\x00'==0 to get something | |
2798 | that's true only with -std1. */ | |
2799 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2800 | ||
2801 | int test (int i, double x); | |
2802 | struct s1 {int (*f) (int a);}; | |
2803 | struct s2 {int (*f) (double a);}; | |
2804 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2805 | int argc; | |
2806 | char **argv; | |
2807 | int | |
2808 | main () | |
2809 | { | |
2810 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2811 | ; | |
2812 | return 0; | |
2813 | } | |
2814 | _ACEOF | |
2815 | # Don't try gcc -ansi; that turns off useful extensions and | |
2816 | # breaks some systems' header files. | |
2817 | # AIX -qlanglvl=ansi | |
2818 | # Ultrix and OSF/1 -std1 | |
2819 | # HP-UX 10.20 and later -Ae | |
2820 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2821 | # SVR4 -Xc -D__EXTENSIONS__ | |
2822 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2823 | do | |
2824 | CC="$ac_save_CC $ac_arg" | |
2825 | rm -f conftest.$ac_objext | |
2826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2827 | (eval $ac_compile) 2>conftest.er1 | |
2828 | ac_status=$? | |
2829 | grep -v '^ *+' conftest.er1 >conftest.err | |
2830 | rm -f conftest.er1 | |
2831 | cat conftest.err >&5 | |
2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2833 | (exit $ac_status); } && | |
57255173 PB |
2834 | { ac_try='test -z "$ac_c_werror_flag" |
2835 | || test ! -s conftest.err' | |
6de9cd9a DN |
2836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2837 | (eval $ac_try) 2>&5 | |
2838 | ac_status=$? | |
2839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2840 | (exit $ac_status); }; } && | |
2841 | { ac_try='test -s conftest.$ac_objext' | |
2842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2843 | (eval $ac_try) 2>&5 | |
2844 | ac_status=$? | |
2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2846 | (exit $ac_status); }; }; then | |
2847 | ac_cv_prog_cc_stdc=$ac_arg | |
2848 | break | |
2849 | else | |
2850 | echo "$as_me: failed program was:" >&5 | |
2851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2852 | ||
2853 | fi | |
2854 | rm -f conftest.err conftest.$ac_objext | |
2855 | done | |
2856 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2857 | CC=$ac_save_CC | |
2858 | ||
2859 | fi | |
2860 | ||
2861 | case "x$ac_cv_prog_cc_stdc" in | |
2862 | x|xno) | |
2863 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2864 | echo "${ECHO_T}none needed" >&6 ;; | |
2865 | *) | |
2866 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2867 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2868 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2869 | esac | |
2870 | ||
2871 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2872 | # in C++ we need to declare it. In case someone uses the same compiler | |
2873 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2874 | # the declaration of exit, since it's the most demanding environment. | |
2875 | cat >conftest.$ac_ext <<_ACEOF | |
2876 | #ifndef __cplusplus | |
2877 | choke me | |
2878 | #endif | |
2879 | _ACEOF | |
2880 | rm -f conftest.$ac_objext | |
2881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2882 | (eval $ac_compile) 2>conftest.er1 | |
2883 | ac_status=$? | |
2884 | grep -v '^ *+' conftest.er1 >conftest.err | |
2885 | rm -f conftest.er1 | |
2886 | cat conftest.err >&5 | |
2887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2888 | (exit $ac_status); } && | |
57255173 PB |
2889 | { ac_try='test -z "$ac_c_werror_flag" |
2890 | || test ! -s conftest.err' | |
6de9cd9a DN |
2891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2892 | (eval $ac_try) 2>&5 | |
2893 | ac_status=$? | |
2894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2895 | (exit $ac_status); }; } && | |
2896 | { ac_try='test -s conftest.$ac_objext' | |
2897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2898 | (eval $ac_try) 2>&5 | |
2899 | ac_status=$? | |
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2901 | (exit $ac_status); }; }; then | |
2902 | for ac_declaration in \ | |
2903 | '' \ | |
2904 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2905 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2906 | 'extern "C" void exit (int) throw ();' \ | |
2907 | 'extern "C" void exit (int);' \ | |
2908 | 'void exit (int);' | |
2909 | do | |
2910 | cat >conftest.$ac_ext <<_ACEOF | |
2911 | /* confdefs.h. */ | |
2912 | _ACEOF | |
2913 | cat confdefs.h >>conftest.$ac_ext | |
2914 | cat >>conftest.$ac_ext <<_ACEOF | |
2915 | /* end confdefs.h. */ | |
2916 | $ac_declaration | |
2917 | #include <stdlib.h> | |
2918 | int | |
2919 | main () | |
2920 | { | |
2921 | exit (42); | |
2922 | ; | |
2923 | return 0; | |
2924 | } | |
2925 | _ACEOF | |
2926 | rm -f conftest.$ac_objext | |
2927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2928 | (eval $ac_compile) 2>conftest.er1 | |
2929 | ac_status=$? | |
2930 | grep -v '^ *+' conftest.er1 >conftest.err | |
2931 | rm -f conftest.er1 | |
2932 | cat conftest.err >&5 | |
2933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2934 | (exit $ac_status); } && | |
57255173 PB |
2935 | { ac_try='test -z "$ac_c_werror_flag" |
2936 | || test ! -s conftest.err' | |
6de9cd9a DN |
2937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2938 | (eval $ac_try) 2>&5 | |
2939 | ac_status=$? | |
2940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2941 | (exit $ac_status); }; } && | |
2942 | { ac_try='test -s conftest.$ac_objext' | |
2943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2944 | (eval $ac_try) 2>&5 | |
2945 | ac_status=$? | |
2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2947 | (exit $ac_status); }; }; then | |
2948 | : | |
2949 | else | |
2950 | echo "$as_me: failed program was:" >&5 | |
2951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2952 | ||
2953 | continue | |
2954 | fi | |
2955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2956 | cat >conftest.$ac_ext <<_ACEOF | |
2957 | /* confdefs.h. */ | |
2958 | _ACEOF | |
2959 | cat confdefs.h >>conftest.$ac_ext | |
2960 | cat >>conftest.$ac_ext <<_ACEOF | |
2961 | /* end confdefs.h. */ | |
2962 | $ac_declaration | |
2963 | int | |
2964 | main () | |
2965 | { | |
2966 | exit (42); | |
2967 | ; | |
2968 | return 0; | |
2969 | } | |
2970 | _ACEOF | |
2971 | rm -f conftest.$ac_objext | |
2972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2973 | (eval $ac_compile) 2>conftest.er1 | |
2974 | ac_status=$? | |
2975 | grep -v '^ *+' conftest.er1 >conftest.err | |
2976 | rm -f conftest.er1 | |
2977 | cat conftest.err >&5 | |
2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2979 | (exit $ac_status); } && | |
57255173 PB |
2980 | { ac_try='test -z "$ac_c_werror_flag" |
2981 | || test ! -s conftest.err' | |
6de9cd9a DN |
2982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2983 | (eval $ac_try) 2>&5 | |
2984 | ac_status=$? | |
2985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2986 | (exit $ac_status); }; } && | |
2987 | { ac_try='test -s conftest.$ac_objext' | |
2988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2989 | (eval $ac_try) 2>&5 | |
2990 | ac_status=$? | |
2991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2992 | (exit $ac_status); }; }; then | |
2993 | break | |
2994 | else | |
2995 | echo "$as_me: failed program was:" >&5 | |
2996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2997 | ||
2998 | fi | |
2999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3000 | done | |
3001 | rm -f conftest* | |
3002 | if test -n "$ac_declaration"; then | |
3003 | echo '#ifdef __cplusplus' >>confdefs.h | |
3004 | echo $ac_declaration >>confdefs.h | |
3005 | echo '#endif' >>confdefs.h | |
3006 | fi | |
3007 | ||
3008 | else | |
3009 | echo "$as_me: failed program was:" >&5 | |
3010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3011 | ||
3012 | fi | |
3013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3014 | ac_ext=c | |
3015 | ac_cpp='$CPP $CPPFLAGS' | |
3016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
679c0f9a TT |
3019 | DEPDIR="${am__leading_dot}deps" |
3020 | ||
3021 | ac_config_commands="$ac_config_commands depfiles" | |
3022 | ||
3023 | ||
3024 | am_make=${MAKE-make} | |
3025 | cat > confinc << 'END' | |
3026 | am__doit: | |
3027 | @echo done | |
3028 | .PHONY: am__doit | |
3029 | END | |
3030 | # If we don't find an include directive, just comment out the code. | |
3031 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3032 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
3033 | am__include="#" | |
3034 | am__quote= | |
3035 | _am_result=none | |
3036 | # First try GNU make style include. | |
3037 | echo "include confinc" > confmf | |
3038 | # We grep out `Entering directory' and `Leaving directory' | |
3039 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3040 | # In particular we don't look at `^make:' because GNU make might | |
3041 | # be invoked under some other name (usually "gmake"), in which | |
3042 | # case it prints its new name instead of `make'. | |
3043 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3044 | am__include=include | |
3045 | am__quote= | |
3046 | _am_result=GNU | |
3047 | fi | |
3048 | # Now try BSD make style include. | |
3049 | if test "$am__include" = "#"; then | |
3050 | echo '.include "confinc"' > confmf | |
3051 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3052 | am__include=.include | |
3053 | am__quote="\"" | |
3054 | _am_result=BSD | |
3055 | fi | |
3056 | fi | |
3057 | ||
3058 | ||
3059 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3060 | echo "${ECHO_T}$_am_result" >&6 | |
3061 | rm -f confinc confmf | |
3062 | ||
3063 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
3064 | if test "${enable_dependency_tracking+set}" = set; then | |
3065 | enableval="$enable_dependency_tracking" | |
3066 | ||
3067 | fi; | |
3068 | if test "x$enable_dependency_tracking" != xno; then | |
3069 | am_depcomp="$ac_aux_dir/depcomp" | |
3070 | AMDEPBACKSLASH='\' | |
3071 | fi | |
3072 | ||
3073 | ||
3074 | if test "x$enable_dependency_tracking" != xno; then | |
3075 | AMDEP_TRUE= | |
3076 | AMDEP_FALSE='#' | |
3077 | else | |
3078 | AMDEP_TRUE='#' | |
3079 | AMDEP_FALSE= | |
3080 | fi | |
3081 | ||
3082 | ||
3083 | ||
3084 | ||
3085 | depcc="$CC" am_compiler_list= | |
3086 | ||
3087 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3088 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3089 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3091 | else | |
3092 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3093 | # We make a subdir and do the tests there. Otherwise we can end up | |
3094 | # making bogus files that we don't know about and never remove. For | |
3095 | # instance it was reported that on HP-UX the gcc test will end up | |
3096 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3097 | # in D'. | |
3098 | mkdir conftest.dir | |
3099 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3100 | # using a relative directory. | |
3101 | cp "$am_depcomp" conftest.dir | |
3102 | cd conftest.dir | |
3103 | # We will build objects and dependencies in a subdirectory because | |
3104 | # it helps to detect inapplicable dependency modes. For instance | |
3105 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3106 | # side effect of compilation, but ICC will put the dependencies in | |
3107 | # the current directory while Tru64 will put them in the object | |
3108 | # directory. | |
3109 | mkdir sub | |
3110 | ||
3111 | am_cv_CC_dependencies_compiler_type=none | |
3112 | if test "$am_compiler_list" = ""; then | |
3113 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3114 | fi | |
3115 | for depmode in $am_compiler_list; do | |
3116 | # Setup a source with many dependencies, because some compilers | |
3117 | # like to wrap large dependency lists on column 80 (with \), and | |
3118 | # we should not choose a depcomp mode which is confused by this. | |
3119 | # | |
3120 | # We need to recreate these files for each test, as the compiler may | |
3121 | # overwrite some of them when testing with obscure command lines. | |
3122 | # This happens at least with the AIX C compiler. | |
3123 | : > sub/conftest.c | |
3124 | for i in 1 2 3 4 5 6; do | |
3125 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3126 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3127 | # Solaris 8's {/usr,}/bin/sh. | |
3128 | touch sub/conftst$i.h | |
3129 | done | |
3130 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3131 | ||
3132 | case $depmode in | |
3133 | nosideeffect) | |
3134 | # after this tag, mechanisms are not by side-effect, so they'll | |
3135 | # only be used when explicitly requested | |
3136 | if test "x$enable_dependency_tracking" = xyes; then | |
3137 | continue | |
3138 | else | |
3139 | break | |
3140 | fi | |
3141 | ;; | |
3142 | none) break ;; | |
3143 | esac | |
3144 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3145 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3146 | # handle `-M -o', and we need to detect this. | |
3147 | if depmode=$depmode \ | |
3148 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3149 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3150 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3151 | >/dev/null 2>conftest.err && | |
3152 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3153 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3154 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3155 | # icc doesn't choke on unknown options, it will just issue warnings | |
3156 | # or remarks (even with -Werror). So we grep stderr for any message | |
3157 | # that says an option was ignored or not supported. | |
3158 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3159 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3160 | # The diagnosis changed in icc 8.0: | |
3161 | # icc: Command line remark: option '-MP' not supported | |
3162 | if (grep 'ignoring option' conftest.err || | |
3163 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3164 | am_cv_CC_dependencies_compiler_type=$depmode | |
3165 | break | |
3166 | fi | |
3167 | fi | |
3168 | done | |
3169 | ||
3170 | cd .. | |
3171 | rm -rf conftest.dir | |
3172 | else | |
3173 | am_cv_CC_dependencies_compiler_type=none | |
3174 | fi | |
3175 | ||
3176 | fi | |
3177 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3178 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3179 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3180 | ||
3181 | ||
3182 | ||
3183 | if | |
3184 | test "x$enable_dependency_tracking" != xno \ | |
3185 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3186 | am__fastdepCC_TRUE= | |
3187 | am__fastdepCC_FALSE='#' | |
3188 | else | |
3189 | am__fastdepCC_TRUE='#' | |
3190 | am__fastdepCC_FALSE= | |
3191 | fi | |
3192 | ||
6de9cd9a | 3193 | |
6de9cd9a | 3194 | |
6de9cd9a | 3195 | |
17109ecb | 3196 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
96b8a615 | 3197 | if test "x$GCC" = "xyes"; then |
eda4ed47 | 3198 | AM_FCFLAGS="-I . -Wall -fno-repack-arrays -fno-underscoring" |
e606fb39 AJ |
3199 | ## We like to use C99 routines when available. This makes sure that |
3200 | ## __STDC_VERSION__ is set such that libc includes make them available. | |
69a2d125 | 3201 | AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings" |
d1f37bc6 RS |
3202 | ## Compile the following tests with the same system header contents |
3203 | ## that we'll encounter when compiling our own source files. | |
3204 | CFLAGS="-std=gnu99 $CFLAGS" | |
6de9cd9a DN |
3205 | fi |
3206 | ||
e606fb39 AJ |
3207 | |
3208 | ||
96b8a615 AJ |
3209 | # Find other programs we need. |
3210 | if test -n "$ac_tool_prefix"; then | |
3211 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3212 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3215 | if test "${ac_cv_prog_AS+set}" = set; then | |
6de9cd9a DN |
3216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3217 | else | |
96b8a615 AJ |
3218 | if test -n "$AS"; then |
3219 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3220 | else | |
3221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3222 | for as_dir in $PATH | |
3223 | do | |
3224 | IFS=$as_save_IFS | |
3225 | test -z "$as_dir" && as_dir=. | |
3226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3228 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
3229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3230 | break 2 | |
6de9cd9a | 3231 | fi |
96b8a615 AJ |
3232 | done |
3233 | done | |
6de9cd9a | 3234 | |
96b8a615 AJ |
3235 | fi |
3236 | fi | |
3237 | AS=$ac_cv_prog_AS | |
3238 | if test -n "$AS"; then | |
3239 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3240 | echo "${ECHO_T}$AS" >&6 | |
6de9cd9a | 3241 | else |
96b8a615 AJ |
3242 | echo "$as_me:$LINENO: result: no" >&5 |
3243 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3244 | fi |
3245 | ||
3246 | fi | |
96b8a615 AJ |
3247 | if test -z "$ac_cv_prog_AS"; then |
3248 | ac_ct_AS=$AS | |
3249 | # Extract the first word of "as", so it can be a program name with args. | |
3250 | set dummy as; ac_word=$2 | |
3251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3253 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
3254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3255 | else | |
3256 | if test -n "$ac_ct_AS"; then | |
3257 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3258 | else | |
3259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3260 | for as_dir in $PATH | |
3261 | do | |
3262 | IFS=$as_save_IFS | |
3263 | test -z "$as_dir" && as_dir=. | |
3264 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3265 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3266 | ac_cv_prog_ac_ct_AS="as" | |
3267 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3268 | break 2 | |
3269 | fi | |
3270 | done | |
3271 | done | |
6de9cd9a | 3272 | |
96b8a615 AJ |
3273 | fi |
3274 | fi | |
3275 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3276 | if test -n "$ac_ct_AS"; then | |
3277 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3278 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
6de9cd9a | 3279 | else |
96b8a615 AJ |
3280 | echo "$as_me:$LINENO: result: no" >&5 |
3281 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3282 | fi |
3283 | ||
96b8a615 AJ |
3284 | AS=$ac_ct_AS |
3285 | else | |
3286 | AS="$ac_cv_prog_AS" | |
6de9cd9a DN |
3287 | fi |
3288 | ||
6de9cd9a | 3289 | if test -n "$ac_tool_prefix"; then |
96b8a615 AJ |
3290 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
3291 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6de9cd9a DN |
3292 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
96b8a615 | 3294 | if test "${ac_cv_prog_AR+set}" = set; then |
6de9cd9a DN |
3295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3296 | else | |
96b8a615 AJ |
3297 | if test -n "$AR"; then |
3298 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6de9cd9a DN |
3299 | else |
3300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3301 | for as_dir in $PATH | |
3302 | do | |
3303 | IFS=$as_save_IFS | |
3304 | test -z "$as_dir" && as_dir=. | |
3305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3306 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
96b8a615 | 3307 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6de9cd9a DN |
3308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3309 | break 2 | |
3310 | fi | |
3311 | done | |
3312 | done | |
3313 | ||
3314 | fi | |
3315 | fi | |
96b8a615 AJ |
3316 | AR=$ac_cv_prog_AR |
3317 | if test -n "$AR"; then | |
3318 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3319 | echo "${ECHO_T}$AR" >&6 | |
6de9cd9a DN |
3320 | else |
3321 | echo "$as_me:$LINENO: result: no" >&5 | |
3322 | echo "${ECHO_T}no" >&6 | |
3323 | fi | |
3324 | ||
6de9cd9a | 3325 | fi |
96b8a615 AJ |
3326 | if test -z "$ac_cv_prog_AR"; then |
3327 | ac_ct_AR=$AR | |
3328 | # Extract the first word of "ar", so it can be a program name with args. | |
3329 | set dummy ar; ac_word=$2 | |
6de9cd9a DN |
3330 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3331 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
96b8a615 | 3332 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6de9cd9a DN |
3333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3334 | else | |
96b8a615 AJ |
3335 | if test -n "$ac_ct_AR"; then |
3336 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6de9cd9a DN |
3337 | else |
3338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3339 | for as_dir in $PATH | |
3340 | do | |
3341 | IFS=$as_save_IFS | |
3342 | test -z "$as_dir" && as_dir=. | |
3343 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3344 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
96b8a615 | 3345 | ac_cv_prog_ac_ct_AR="ar" |
6de9cd9a DN |
3346 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3347 | break 2 | |
3348 | fi | |
3349 | done | |
3350 | done | |
3351 | ||
3352 | fi | |
3353 | fi | |
96b8a615 AJ |
3354 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
3355 | if test -n "$ac_ct_AR"; then | |
3356 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3357 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
6de9cd9a DN |
3358 | else |
3359 | echo "$as_me:$LINENO: result: no" >&5 | |
3360 | echo "${ECHO_T}no" >&6 | |
3361 | fi | |
3362 | ||
96b8a615 AJ |
3363 | AR=$ac_ct_AR |
3364 | else | |
3365 | AR="$ac_cv_prog_AR" | |
6de9cd9a DN |
3366 | fi |
3367 | ||
96b8a615 AJ |
3368 | if test -n "$ac_tool_prefix"; then |
3369 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3370 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3371 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3373 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6de9cd9a DN |
3374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3375 | else | |
96b8a615 AJ |
3376 | if test -n "$RANLIB"; then |
3377 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6de9cd9a | 3378 | else |
96b8a615 AJ |
3379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3380 | for as_dir in $PATH | |
3381 | do | |
3382 | IFS=$as_save_IFS | |
3383 | test -z "$as_dir" && as_dir=. | |
3384 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3385 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3386 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3388 | break 2 | |
3389 | fi | |
3390 | done | |
3391 | done | |
6de9cd9a | 3392 | |
6de9cd9a | 3393 | fi |
96b8a615 AJ |
3394 | fi |
3395 | RANLIB=$ac_cv_prog_RANLIB | |
3396 | if test -n "$RANLIB"; then | |
3397 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3398 | echo "${ECHO_T}$RANLIB" >&6 | |
3399 | else | |
3400 | echo "$as_me:$LINENO: result: no" >&5 | |
3401 | echo "${ECHO_T}no" >&6 | |
3402 | fi | |
6de9cd9a DN |
3403 | |
3404 | fi | |
96b8a615 AJ |
3405 | if test -z "$ac_cv_prog_RANLIB"; then |
3406 | ac_ct_RANLIB=$RANLIB | |
3407 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3408 | set dummy ranlib; ac_word=$2 | |
3409 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3411 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6de9cd9a DN |
3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3413 | else | |
96b8a615 AJ |
3414 | if test -n "$ac_ct_RANLIB"; then |
3415 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6de9cd9a | 3416 | else |
96b8a615 AJ |
3417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3418 | for as_dir in $PATH | |
3419 | do | |
3420 | IFS=$as_save_IFS | |
3421 | test -z "$as_dir" && as_dir=. | |
3422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3423 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3424 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3425 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3426 | break 2 | |
3427 | fi | |
3428 | done | |
3429 | done | |
6de9cd9a | 3430 | |
96b8a615 | 3431 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" |
6de9cd9a | 3432 | fi |
6de9cd9a | 3433 | fi |
96b8a615 AJ |
3434 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3435 | if test -n "$ac_ct_RANLIB"; then | |
3436 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3437 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6de9cd9a | 3438 | else |
96b8a615 AJ |
3439 | echo "$as_me:$LINENO: result: no" >&5 |
3440 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3441 | fi |
3442 | ||
96b8a615 AJ |
3443 | RANLIB=$ac_ct_RANLIB |
3444 | else | |
3445 | RANLIB="$ac_cv_prog_RANLIB" | |
6de9cd9a | 3446 | fi |
96b8a615 AJ |
3447 | |
3448 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3449 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3450 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3451 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
6de9cd9a DN |
3452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3453 | else | |
96b8a615 AJ |
3454 | cat >conftest.make <<\_ACEOF |
3455 | all: | |
3456 | @echo 'ac_maketemp="$(MAKE)"' | |
6de9cd9a | 3457 | _ACEOF |
96b8a615 AJ |
3458 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3459 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3460 | if test -n "$ac_maketemp"; then | |
3461 | eval ac_cv_prog_make_${ac_make}_set=yes | |
6de9cd9a | 3462 | else |
96b8a615 | 3463 | eval ac_cv_prog_make_${ac_make}_set=no |
6de9cd9a | 3464 | fi |
96b8a615 AJ |
3465 | rm -f conftest.make |
3466 | fi | |
3467 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3468 | echo "$as_me:$LINENO: result: yes" >&5 | |
3469 | echo "${ECHO_T}yes" >&6 | |
3470 | SET_MAKE= | |
6de9cd9a | 3471 | else |
96b8a615 AJ |
3472 | echo "$as_me:$LINENO: result: no" >&5 |
3473 | echo "${ECHO_T}no" >&6 | |
3474 | SET_MAKE="MAKE=${MAKE-make}" | |
6de9cd9a | 3475 | fi |
6de9cd9a | 3476 | |
96b8a615 AJ |
3477 | # Find a good install program. We prefer a C program (faster), |
3478 | # so one script is as good as another. But avoid the broken or | |
3479 | # incompatible versions: | |
3480 | # SysV /etc/install, /usr/sbin/install | |
3481 | # SunOS /usr/etc/install | |
3482 | # IRIX /sbin/install | |
3483 | # AIX /bin/install | |
3484 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3485 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3486 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3487 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3488 | # OS/2's system install, which has a completely different semantic | |
3489 | # ./install, which can be erroneously created by make from ./install.sh. | |
3490 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3491 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3492 | if test -z "$INSTALL"; then | |
3493 | if test "${ac_cv_path_install+set}" = set; then | |
3494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 3495 | else |
96b8a615 AJ |
3496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3497 | for as_dir in $PATH | |
3498 | do | |
3499 | IFS=$as_save_IFS | |
3500 | test -z "$as_dir" && as_dir=. | |
3501 | # Account for people who put trailing slashes in PATH elements. | |
3502 | case $as_dir/ in | |
3503 | ./ | .// | /cC/* | \ | |
3504 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3505 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3506 | /usr/ucb/* ) ;; | |
3507 | *) | |
3508 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3509 | # Don't use installbsd from OSF since it installs stuff as root | |
3510 | # by default. | |
3511 | for ac_prog in ginstall scoinst install; do | |
3512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3513 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3514 | if test $ac_prog = install && | |
3515 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3516 | # AIX install. It has an incompatible calling convention. | |
3517 | : | |
3518 | elif test $ac_prog = install && | |
3519 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3520 | # program-specific install script used by HP pwplus--don't use. | |
3521 | : | |
3522 | else | |
3523 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3524 | break 3 | |
3525 | fi | |
3526 | fi | |
3527 | done | |
3528 | done | |
3529 | ;; | |
3530 | esac | |
6de9cd9a | 3531 | done |
6de9cd9a | 3532 | |
6de9cd9a DN |
3533 | |
3534 | fi | |
96b8a615 AJ |
3535 | if test "${ac_cv_path_install+set}" = set; then |
3536 | INSTALL=$ac_cv_path_install | |
6de9cd9a | 3537 | else |
96b8a615 AJ |
3538 | # As a last resort, use the slow shell script. We don't cache a |
3539 | # path for INSTALL within a source directory, because that will | |
3540 | # break other packages using the cache if that directory is | |
3541 | # removed, or if the path is relative. | |
3542 | INSTALL=$ac_install_sh | |
6de9cd9a | 3543 | fi |
6de9cd9a | 3544 | fi |
96b8a615 AJ |
3545 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3546 | echo "${ECHO_T}$INSTALL" >&6 | |
6de9cd9a | 3547 | |
96b8a615 AJ |
3548 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3549 | # It thinks the first close brace ends the variable substitution. | |
3550 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6de9cd9a | 3551 | |
96b8a615 | 3552 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
6de9cd9a | 3553 | |
96b8a615 | 3554 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
6de9cd9a | 3555 | |
6de9cd9a | 3556 | |
96b8a615 AJ |
3557 | # Configure libtool |
3558 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6de9cd9a | 3559 | |
96b8a615 AJ |
3560 | # Check whether --enable-shared or --disable-shared was given. |
3561 | if test "${enable_shared+set}" = set; then | |
3562 | enableval="$enable_shared" | |
3563 | p=${PACKAGE-default} | |
3564 | case $enableval in | |
3565 | yes) enable_shared=yes ;; | |
3566 | no) enable_shared=no ;; | |
3567 | *) | |
3568 | enable_shared=no | |
3569 | # Look at the argument we got. We use all the common list separators. | |
3570 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3571 | for pkg in $enableval; do | |
3572 | if test "X$pkg" = "X$p"; then | |
3573 | enable_shared=yes | |
6de9cd9a | 3574 | fi |
96b8a615 AJ |
3575 | done |
3576 | IFS="$ac_save_ifs" | |
3577 | ;; | |
3578 | esac | |
6de9cd9a | 3579 | else |
96b8a615 AJ |
3580 | enable_shared=yes |
3581 | fi; | |
3582 | # Check whether --enable-static or --disable-static was given. | |
3583 | if test "${enable_static+set}" = set; then | |
3584 | enableval="$enable_static" | |
3585 | p=${PACKAGE-default} | |
3586 | case $enableval in | |
3587 | yes) enable_static=yes ;; | |
3588 | no) enable_static=no ;; | |
3589 | *) | |
3590 | enable_static=no | |
3591 | # Look at the argument we got. We use all the common list separators. | |
3592 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3593 | for pkg in $enableval; do | |
3594 | if test "X$pkg" = "X$p"; then | |
3595 | enable_static=yes | |
3596 | fi | |
3597 | done | |
3598 | IFS="$ac_save_ifs" | |
3599 | ;; | |
3600 | esac | |
3601 | else | |
3602 | enable_static=yes | |
3603 | fi; | |
3604 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3605 | if test "${enable_fast_install+set}" = set; then | |
3606 | enableval="$enable_fast_install" | |
3607 | p=${PACKAGE-default} | |
3608 | case $enableval in | |
3609 | yes) enable_fast_install=yes ;; | |
3610 | no) enable_fast_install=no ;; | |
3611 | *) | |
3612 | enable_fast_install=no | |
3613 | # Look at the argument we got. We use all the common list separators. | |
3614 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3615 | for pkg in $enableval; do | |
3616 | if test "X$pkg" = "X$p"; then | |
3617 | enable_fast_install=yes | |
3618 | fi | |
3619 | done | |
3620 | IFS="$ac_save_ifs" | |
3621 | ;; | |
3622 | esac | |
3623 | else | |
3624 | enable_fast_install=yes | |
3625 | fi; | |
6de9cd9a | 3626 | |
96b8a615 AJ |
3627 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3628 | if test "${with_gnu_ld+set}" = set; then | |
3629 | withval="$with_gnu_ld" | |
3630 | test "$withval" = no || with_gnu_ld=yes | |
3631 | else | |
3632 | with_gnu_ld=no | |
3633 | fi; | |
3634 | ac_prog=ld | |
3635 | if test "$GCC" = yes; then | |
3636 | # Check if gcc -print-prog-name=ld gives a path. | |
3637 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3638 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3639 | case $host in | |
3640 | *-*-mingw*) | |
3641 | # gcc leaves a trailing carriage return which upsets mingw | |
3642 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3643 | *) | |
3644 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3645 | esac | |
3646 | case $ac_prog in | |
3647 | # Accept absolute paths. | |
3648 | [\\/]* | [A-Za-z]:[\\/]*) | |
3649 | re_direlt='/[^/][^/]*/\.\./' | |
3650 | # Canonicalize the path of ld | |
3651 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3652 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3653 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3654 | done | |
3655 | test -z "$LD" && LD="$ac_prog" | |
3656 | ;; | |
3657 | "") | |
3658 | # If it fails, then pretend we aren't using GCC. | |
3659 | ac_prog=ld | |
3660 | ;; | |
3661 | *) | |
3662 | # If it is relative, then search for the first ld in PATH. | |
3663 | with_gnu_ld=unknown | |
3664 | ;; | |
3665 | esac | |
3666 | elif test "$with_gnu_ld" = yes; then | |
3667 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3668 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3669 | else | |
3670 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3671 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3672 | fi | |
3673 | if test "${lt_cv_path_LD+set}" = set; then | |
3674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3675 | else | |
3676 | if test -z "$LD"; then | |
3677 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3678 | for ac_dir in $PATH; do | |
3679 | test -z "$ac_dir" && ac_dir=. | |
3680 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3681 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3682 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3683 | # but apparently some GNU ld's only accept -v. | |
3684 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3685 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3686 | test "$with_gnu_ld" != no && break | |
3687 | else | |
3688 | test "$with_gnu_ld" != yes && break | |
3689 | fi | |
3690 | fi | |
3691 | done | |
3692 | IFS="$ac_save_ifs" | |
3693 | else | |
3694 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3695 | fi | |
3696 | fi | |
3697 | ||
3698 | LD="$lt_cv_path_LD" | |
3699 | if test -n "$LD"; then | |
3700 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3701 | echo "${ECHO_T}$LD" >&6 | |
3702 | else | |
3703 | echo "$as_me:$LINENO: result: no" >&5 | |
3704 | echo "${ECHO_T}no" >&6 | |
3705 | fi | |
3706 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3707 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3708 | { (exit 1); exit 1; }; } | |
3709 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3710 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3711 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3713 | else | |
3714 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3715 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3716 | lt_cv_prog_gnu_ld=yes | |
3717 | else | |
3718 | lt_cv_prog_gnu_ld=no | |
3719 | fi | |
3720 | fi | |
3721 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3722 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3723 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3724 | ||
3725 | ||
3726 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3727 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3728 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3730 | else | |
3731 | lt_cv_ld_reload_flag='-r' | |
3732 | fi | |
3733 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3734 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3735 | reload_flag=$lt_cv_ld_reload_flag | |
3736 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3737 | ||
3738 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3739 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3740 | if test "${lt_cv_path_NM+set}" = set; then | |
3741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3742 | else | |
3743 | if test -n "$NM"; then | |
3744 | # Let the user override the test. | |
3745 | lt_cv_path_NM="$NM" | |
3746 | else | |
3747 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3748 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3749 | test -z "$ac_dir" && ac_dir=. | |
3750 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
3751 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
3752 | # Check to see if the nm accepts a BSD-compat flag. | |
3753 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3754 | # nm: unknown option "B" ignored | |
3755 | # Tru64's nm complains that /dev/null is an invalid object file | |
3756 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3757 | lt_cv_path_NM="$tmp_nm -B" | |
3758 | break | |
3759 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3760 | lt_cv_path_NM="$tmp_nm -p" | |
3761 | break | |
3762 | else | |
3763 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3764 | continue # so that we can try to find one that supports BSD flags | |
3765 | fi | |
3766 | fi | |
3767 | done | |
3768 | IFS="$ac_save_ifs" | |
3769 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3770 | fi | |
3771 | fi | |
3772 | ||
3773 | NM="$lt_cv_path_NM" | |
3774 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3775 | echo "${ECHO_T}$NM" >&6 | |
3776 | ||
3777 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3778 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3779 | LN_S=$as_ln_s | |
3780 | if test "$LN_S" = "ln -s"; then | |
3781 | echo "$as_me:$LINENO: result: yes" >&5 | |
3782 | echo "${ECHO_T}yes" >&6 | |
3783 | else | |
3784 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3785 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3786 | fi | |
3787 | ||
3788 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
3789 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3790 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3792 | else | |
3793 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3794 | lt_cv_file_magic_test_file= | |
3795 | lt_cv_deplibs_check_method='unknown' | |
3796 | # Need to set the preceding variable on all platforms that support | |
3797 | # interlibrary dependencies. | |
3798 | # 'none' -- dependencies not supported. | |
3799 | # `unknown' -- same as none, but documents that we really don't know. | |
3800 | # 'pass_all' -- all dependencies passed with no checks. | |
3801 | # 'test_compile' -- check by making test program. | |
3802 | # 'file_magic [regex]' -- check by looking for files in library path | |
3803 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3804 | # If you have `file' or equivalent on your system and you're not sure | |
3805 | # whether `pass_all' will *always* work, you probably want this one. | |
3806 | ||
3807 | case $host_os in | |
3808 | aix*) | |
3809 | lt_cv_deplibs_check_method=pass_all | |
3810 | ;; | |
3811 | ||
3812 | beos*) | |
3813 | lt_cv_deplibs_check_method=pass_all | |
3814 | ;; | |
3815 | ||
3816 | bsdi4*) | |
3817 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3818 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3819 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3820 | ;; | |
3821 | ||
3822 | cygwin* | mingw* |pw32*) | |
3823 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3824 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3825 | ;; | |
3826 | ||
3827 | darwin* | rhapsody*) | |
3828 | # this will be overwritten by pass_all, but leave it in just in case | |
3829 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3830 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3831 | case "$host_os" in | |
3832 | rhapsody* | darwin1.012) | |
3833 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3834 | ;; | |
3835 | *) # Darwin 1.3 on | |
3836 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3837 | ;; | |
3838 | esac | |
3839 | lt_cv_deplibs_check_method=pass_all | |
3840 | ;; | |
3841 | ||
3842 | freebsd* | kfreebsd*-gnu) | |
3843 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3844 | case $host_cpu in | |
3845 | i*86 ) | |
3846 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3847 | # Let's accept both of them until this is cleared up. | |
3848 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3849 | lt_cv_file_magic_cmd=/usr/bin/file | |
3850 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3851 | ;; | |
3852 | esac | |
3853 | else | |
3854 | lt_cv_deplibs_check_method=pass_all | |
3855 | fi | |
3856 | ;; | |
3857 | ||
3858 | gnu*) | |
3859 | lt_cv_deplibs_check_method=pass_all | |
3860 | ;; | |
3861 | ||
3862 | hpux10.20*|hpux11*) | |
3863 | case $host_cpu in | |
3864 | hppa*) | |
3865 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3866 | lt_cv_file_magic_cmd=/usr/bin/file | |
3867 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3868 | ;; | |
3869 | ia64*) | |
3870 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3871 | lt_cv_file_magic_cmd=/usr/bin/file | |
3872 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3873 | ;; | |
3874 | esac | |
3875 | ;; | |
3876 | ||
3877 | irix5* | irix6*) | |
3878 | case $host_os in | |
3879 | irix5*) | |
3880 | # this will be overridden with pass_all, but let us keep it just in case | |
3881 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3882 | ;; | |
3883 | *) | |
3884 | case $LD in | |
3885 | *-32|*"-32 ") libmagic=32-bit;; | |
3886 | *-n32|*"-n32 ") libmagic=N32;; | |
3887 | *-64|*"-64 ") libmagic=64-bit;; | |
3888 | *) libmagic=never-match;; | |
3889 | esac | |
3890 | # this will be overridden with pass_all, but let us keep it just in case | |
3891 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3892 | ;; | |
3893 | esac | |
3894 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3895 | lt_cv_deplibs_check_method=pass_all | |
3896 | ;; | |
3897 | ||
3898 | # This must be Linux ELF. | |
3899 | linux-gnu*) | |
2c92e90f | 3900 | lt_cv_deplibs_check_method=pass_all |
96b8a615 AJ |
3901 | ;; |
3902 | ||
3903 | netbsd* | knetbsd*-gnu) | |
3904 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3905 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3906 | else | |
3907 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3908 | fi | |
3909 | ;; | |
3910 | ||
3911 | newsos6) | |
3912 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3913 | lt_cv_file_magic_cmd=/usr/bin/file | |
3914 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3915 | ;; | |
3916 | ||
3917 | osf3* | osf4* | osf5*) | |
3918 | # this will be overridden with pass_all, but let us keep it just in case | |
3919 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3920 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3921 | lt_cv_deplibs_check_method=pass_all | |
3922 | ;; | |
3923 | ||
3924 | sco3.2v5*) | |
3925 | lt_cv_deplibs_check_method=pass_all | |
3926 | ;; | |
3927 | ||
3928 | solaris*) | |
3929 | lt_cv_deplibs_check_method=pass_all | |
3930 | lt_cv_file_magic_test_file=/lib/libc.so | |
3931 | ;; | |
3932 | ||
3933 | sysv5uw[78]* | sysv4*uw2*) | |
3934 | lt_cv_deplibs_check_method=pass_all | |
3935 | ;; | |
3936 | ||
3937 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3938 | case $host_vendor in | |
3939 | ncr) | |
3940 | lt_cv_deplibs_check_method=pass_all | |
3941 | ;; | |
3942 | motorola) | |
3943 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
3944 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3945 | ;; | |
3946 | esac | |
3947 | ;; | |
3948 | esac | |
3949 | ||
3950 | fi | |
3951 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3952 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3953 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3954 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3955 | ||
3956 | ||
3957 | ||
3958 | ||
3959 | ||
3960 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3961 | ||
6dab073b MS |
3962 | # find the maximum length of command line arguments |
3963 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3964 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3965 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3967 | else | |
3968 | i=0 | |
3969 | teststring="ABCD" | |
3970 | ||
3971 | case $build_os in | |
3972 | msdosdjgpp*) | |
3973 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3974 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3975 | # during glob expansion). Even if it were fixed, the result of this | |
3976 | # check would be larger than it should be. | |
3977 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3978 | ;; | |
3979 | ||
3980 | cygwin* | mingw*) | |
3981 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3982 | # about 5 minutes as the teststring grows exponentially. | |
3983 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3984 | # you end up with a "frozen" computer, even though with patience | |
3985 | # the test eventually succeeds (with a max line length of 256k). | |
3986 | # Instead, let's just punt: use the minimum linelength reported by | |
3987 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3988 | lt_cv_sys_max_cmd_len=8192; | |
3989 | ;; | |
3990 | ||
3991 | amigaos*) | |
3992 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3993 | # So we just punt and use a minimum line length of 8192. | |
3994 | lt_cv_sys_max_cmd_len=8192; | |
3995 | ;; | |
3996 | ||
3997 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3998 | # This has been around since 386BSD, at least. Likely further. | |
3999 | if test -x /sbin/sysctl; then | |
4000 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4001 | elif test -x /usr/sbin/sysctl; then | |
4002 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4003 | else | |
4004 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
4005 | fi | |
4006 | # And add a safety zone | |
4007 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4008 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4009 | ;; | |
4010 | esac | |
4011 | ||
4012 | fi | |
4013 | ||
f4c767fd | 4014 | if test -n "$lt_cv_sys_max_cmd_len" ; then |
6dab073b MS |
4015 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
4016 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
4017 | else | |
4018 | echo "$as_me:$LINENO: result: none" >&5 | |
4019 | echo "${ECHO_T}none" >&6 | |
4020 | fi | |
4021 | ||
4022 | ||
96b8a615 AJ |
4023 | # Only perform the check for file, if the check method requires it |
4024 | case $deplibs_check_method in | |
4025 | file_magic*) | |
4026 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
4027 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
4028 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
4029 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4031 | else | |
4032 | case $MAGIC_CMD in | |
4033 | /*) | |
4034 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
4035 | ;; | |
4036 | ?:/*) | |
4037 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
4038 | ;; | |
4039 | *) | |
4040 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
4041 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4042 | ac_dummy="/usr/bin:$PATH" | |
4043 | for ac_dir in $ac_dummy; do | |
4044 | test -z "$ac_dir" && ac_dir=. | |
4045 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
4046 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
4047 | if test -n "$file_magic_test_file"; then | |
4048 | case $deplibs_check_method in | |
4049 | "file_magic "*) | |
4050 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
4051 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4052 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
4053 | egrep "$file_magic_regex" > /dev/null; then | |
4054 | : | |
4055 | else | |
4056 | cat <<EOF 1>&2 | |
4057 | ||
4058 | *** Warning: the command libtool uses to detect shared libraries, | |
4059 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4060 | *** The result is that libtool may fail to recognize shared libraries | |
4061 | *** as such. This will affect the creation of libtool libraries that | |
4062 | *** depend on shared libraries, but programs linked with such libtool | |
4063 | *** libraries will work regardless of this problem. Nevertheless, you | |
4064 | *** may want to report the problem to your system manager and/or to | |
4065 | *** bug-libtool@gnu.org | |
4066 | ||
4067 | EOF | |
4068 | fi ;; | |
4069 | esac | |
4070 | fi | |
4071 | break | |
4072 | fi | |
4073 | done | |
4074 | IFS="$ac_save_ifs" | |
4075 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
4076 | ;; | |
4077 | esac | |
4078 | fi | |
4079 | ||
4080 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4081 | if test -n "$MAGIC_CMD"; then | |
4082 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
4083 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
4084 | else | |
4085 | echo "$as_me:$LINENO: result: no" >&5 | |
4086 | echo "${ECHO_T}no" >&6 | |
4087 | fi | |
4088 | ||
4089 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
4090 | if test -n "$ac_tool_prefix"; then | |
4091 | echo "$as_me:$LINENO: checking for file" >&5 | |
4092 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
4093 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4095 | else | |
4096 | case $MAGIC_CMD in | |
4097 | /*) | |
4098 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
4099 | ;; | |
4100 | ?:/*) | |
4101 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
4102 | ;; | |
4103 | *) | |
4104 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
4105 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4106 | ac_dummy="/usr/bin:$PATH" | |
4107 | for ac_dir in $ac_dummy; do | |
4108 | test -z "$ac_dir" && ac_dir=. | |
4109 | if test -f $ac_dir/file; then | |
4110 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
4111 | if test -n "$file_magic_test_file"; then | |
4112 | case $deplibs_check_method in | |
4113 | "file_magic "*) | |
4114 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
4115 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4116 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
4117 | egrep "$file_magic_regex" > /dev/null; then | |
4118 | : | |
4119 | else | |
4120 | cat <<EOF 1>&2 | |
4121 | ||
4122 | *** Warning: the command libtool uses to detect shared libraries, | |
4123 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4124 | *** The result is that libtool may fail to recognize shared libraries | |
4125 | *** as such. This will affect the creation of libtool libraries that | |
4126 | *** depend on shared libraries, but programs linked with such libtool | |
4127 | *** libraries will work regardless of this problem. Nevertheless, you | |
4128 | *** may want to report the problem to your system manager and/or to | |
4129 | *** bug-libtool@gnu.org | |
4130 | ||
4131 | EOF | |
4132 | fi ;; | |
4133 | esac | |
4134 | fi | |
4135 | break | |
4136 | fi | |
4137 | done | |
4138 | IFS="$ac_save_ifs" | |
4139 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
4140 | ;; | |
4141 | esac | |
4142 | fi | |
6de9cd9a | 4143 | |
96b8a615 AJ |
4144 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4145 | if test -n "$MAGIC_CMD"; then | |
4146 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
4147 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6de9cd9a | 4148 | else |
96b8a615 AJ |
4149 | echo "$as_me:$LINENO: result: no" >&5 |
4150 | echo "${ECHO_T}no" >&6 | |
4151 | fi | |
6de9cd9a | 4152 | |
96b8a615 AJ |
4153 | else |
4154 | MAGIC_CMD=: | |
4155 | fi | |
6de9cd9a | 4156 | fi |
6de9cd9a | 4157 | |
96b8a615 AJ |
4158 | fi |
4159 | ;; | |
4160 | esac | |
6de9cd9a | 4161 | |
96b8a615 AJ |
4162 | if test -n "$ac_tool_prefix"; then |
4163 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4164 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4165 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4167 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 4169 | else |
96b8a615 AJ |
4170 | if test -n "$RANLIB"; then |
4171 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4172 | else | |
4173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4174 | for as_dir in $PATH | |
4175 | do | |
4176 | IFS=$as_save_IFS | |
4177 | test -z "$as_dir" && as_dir=. | |
4178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4179 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4180 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4182 | break 2 | |
4183 | fi | |
4184 | done | |
4185 | done | |
6de9cd9a | 4186 | |
96b8a615 AJ |
4187 | fi |
4188 | fi | |
4189 | RANLIB=$ac_cv_prog_RANLIB | |
4190 | if test -n "$RANLIB"; then | |
4191 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4192 | echo "${ECHO_T}$RANLIB" >&6 | |
4193 | else | |
4194 | echo "$as_me:$LINENO: result: no" >&5 | |
4195 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
4196 | fi |
4197 | ||
96b8a615 AJ |
4198 | fi |
4199 | if test -z "$ac_cv_prog_RANLIB"; then | |
4200 | ac_ct_RANLIB=$RANLIB | |
4201 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4202 | set dummy ranlib; ac_word=$2 | |
4203 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4204 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4205 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4207 | else | |
4208 | if test -n "$ac_ct_RANLIB"; then | |
4209 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4210 | else | |
4211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4212 | for as_dir in $PATH | |
4213 | do | |
4214 | IFS=$as_save_IFS | |
4215 | test -z "$as_dir" && as_dir=. | |
4216 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4217 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4218 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4219 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4220 | break 2 | |
4221 | fi | |
4222 | done | |
4223 | done | |
6de9cd9a | 4224 | |
96b8a615 AJ |
4225 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
4226 | fi | |
4227 | fi | |
4228 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4229 | if test -n "$ac_ct_RANLIB"; then | |
4230 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4231 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6de9cd9a | 4232 | else |
96b8a615 AJ |
4233 | echo "$as_me:$LINENO: result: no" >&5 |
4234 | echo "${ECHO_T}no" >&6 | |
6de9cd9a | 4235 | fi |
6de9cd9a | 4236 | |
96b8a615 AJ |
4237 | RANLIB=$ac_ct_RANLIB |
4238 | else | |
4239 | RANLIB="$ac_cv_prog_RANLIB" | |
6de9cd9a DN |
4240 | fi |
4241 | ||
96b8a615 AJ |
4242 | if test -n "$ac_tool_prefix"; then |
4243 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4244 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4245 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4247 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 4249 | else |
96b8a615 AJ |
4250 | if test -n "$STRIP"; then |
4251 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4252 | else | |
4253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4254 | for as_dir in $PATH | |
4255 | do | |
4256 | IFS=$as_save_IFS | |
4257 | test -z "$as_dir" && as_dir=. | |
4258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4259 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4260 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4262 | break 2 | |
4263 | fi | |
4264 | done | |
4265 | done | |
6de9cd9a | 4266 | |
96b8a615 AJ |
4267 | fi |
4268 | fi | |
4269 | STRIP=$ac_cv_prog_STRIP | |
4270 | if test -n "$STRIP"; then | |
4271 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4272 | echo "${ECHO_T}$STRIP" >&6 | |
6de9cd9a | 4273 | else |
96b8a615 AJ |
4274 | echo "$as_me:$LINENO: result: no" >&5 |
4275 | echo "${ECHO_T}no" >&6 | |
4276 | fi | |
6de9cd9a | 4277 | |
6de9cd9a | 4278 | fi |
96b8a615 AJ |
4279 | if test -z "$ac_cv_prog_STRIP"; then |
4280 | ac_ct_STRIP=$STRIP | |
4281 | # Extract the first word of "strip", so it can be a program name with args. | |
4282 | set dummy strip; ac_word=$2 | |
4283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4285 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4287 | else | |
4288 | if test -n "$ac_ct_STRIP"; then | |
4289 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4290 | else | |
4291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4292 | for as_dir in $PATH | |
4293 | do | |
4294 | IFS=$as_save_IFS | |
4295 | test -z "$as_dir" && as_dir=. | |
4296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4298 | ac_cv_prog_ac_ct_STRIP="strip" | |
4299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4300 | break 2 | |
4301 | fi | |
4302 | done | |
4303 | done | |
4304 | ||
4305 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6de9cd9a DN |
4306 | fi |
4307 | fi | |
96b8a615 AJ |
4308 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4309 | if test -n "$ac_ct_STRIP"; then | |
4310 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4311 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4312 | else | |
4313 | echo "$as_me:$LINENO: result: no" >&5 | |
4314 | echo "${ECHO_T}no" >&6 | |
6de9cd9a | 4315 | fi |
6de9cd9a | 4316 | |
96b8a615 AJ |
4317 | STRIP=$ac_ct_STRIP |
4318 | else | |
4319 | STRIP="$ac_cv_prog_STRIP" | |
6de9cd9a DN |
4320 | fi |
4321 | ||
6de9cd9a | 4322 | |
96b8a615 AJ |
4323 | # Check for any special flags to pass to ltconfig. |
4324 | libtool_flags="--cache-file=$cache_file" | |
4325 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4326 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4327 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
4328 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
4329 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
6de9cd9a DN |
4330 | |
4331 | ||
96b8a615 AJ |
4332 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4333 | if test "${enable_libtool_lock+set}" = set; then | |
4334 | enableval="$enable_libtool_lock" | |
6de9cd9a | 4335 | |
96b8a615 AJ |
4336 | fi; |
4337 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
4338 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
6de9cd9a DN |
4339 | |
4340 | ||
96b8a615 AJ |
4341 | # Check whether --with-pic or --without-pic was given. |
4342 | if test "${with_pic+set}" = set; then | |
4343 | withval="$with_pic" | |
4344 | pic_mode="$withval" | |
6de9cd9a | 4345 | else |
96b8a615 AJ |
4346 | pic_mode=default |
4347 | fi; | |
4348 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
4349 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
6de9cd9a | 4350 | |
96b8a615 AJ |
4351 | # Some flags need to be propagated to the compiler or linker for good |
4352 | # libtool support. | |
4353 | case $host in | |
4354 | *-*-irix6*) | |
4355 | # Find out which ABI we are using. | |
679c0f9a | 4356 | echo '#line 4356 "configure"' > conftest.$ac_ext |
96b8a615 AJ |
4357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4358 | (eval $ac_compile) 2>&5 | |
6de9cd9a DN |
4359 | ac_status=$? |
4360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
4361 | (exit $ac_status); }; then |
4362 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4363 | case `/usr/bin/file conftest.$ac_objext` in | |
4364 | *32-bit*) | |
4365 | LD="${LD-ld} -melf32bsmip" | |
4366 | ;; | |
4367 | *N32*) | |
4368 | LD="${LD-ld} -melf32bmipn32" | |
4369 | ;; | |
4370 | *64-bit*) | |
4371 | LD="${LD-ld} -melf64bmip" | |
4372 | ;; | |
4373 | esac | |
4374 | else | |
4375 | case `/usr/bin/file conftest.$ac_objext` in | |
4376 | *32-bit*) | |
4377 | LD="${LD-ld} -32" | |
4378 | ;; | |
4379 | *N32*) | |
4380 | LD="${LD-ld} -n32" | |
4381 | ;; | |
4382 | *64-bit*) | |
4383 | LD="${LD-ld} -64" | |
4384 | ;; | |
4385 | esac | |
4386 | fi | |
4387 | fi | |
4388 | rm -rf conftest* | |
4389 | ;; | |
6de9cd9a | 4390 | |
96b8a615 AJ |
4391 | ia64-*-hpux*) |
4392 | # Find out which ABI we are using. | |
4393 | echo 'int i;' > conftest.$ac_ext | |
4394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4395 | (eval $ac_compile) 2>&5 | |
6de9cd9a DN |
4396 | ac_status=$? |
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
4398 | (exit $ac_status); }; then |
4399 | case "`/usr/bin/file conftest.o`" in | |
4400 | *ELF-32*) | |
4401 | HPUX_IA64_MODE="32" | |
4402 | ;; | |
4403 | *ELF-64*) | |
4404 | HPUX_IA64_MODE="64" | |
4405 | ;; | |
4406 | esac | |
4407 | fi | |
4408 | rm -rf conftest* | |
4409 | ;; | |
6de9cd9a | 4410 | |
96b8a615 AJ |
4411 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4412 | # Find out which ABI we are using. | |
4413 | echo 'int i;' > conftest.$ac_ext | |
4414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4415 | (eval $ac_compile) 2>&5 | |
6de9cd9a | 4416 | ac_status=$? |
6de9cd9a | 4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96b8a615 AJ |
4418 | (exit $ac_status); }; then |
4419 | case "`/usr/bin/file conftest.o`" in | |
4420 | *32-bit*) | |
4421 | case $host in | |
4422 | x86_64-*linux*) | |
4423 | LD="${LD-ld} -m elf_i386" | |
4424 | ;; | |
4425 | ppc64-*linux*|powerpc64-*linux*) | |
4426 | LD="${LD-ld} -m elf32ppclinux" | |
4427 | ;; | |
4428 | s390x-*linux*) | |
4429 | LD="${LD-ld} -m elf_s390" | |
4430 | ;; | |
4431 | sparc64-*linux*) | |
4432 | LD="${LD-ld} -m elf32_sparc" | |
4433 | ;; | |
4434 | esac | |
4435 | ;; | |
4436 | *64-bit*) | |
4437 | case $host in | |
4438 | x86_64-*linux*) | |
4439 | LD="${LD-ld} -m elf_x86_64" | |
4440 | ;; | |
4441 | ppc*-*linux*|powerpc*-*linux*) | |
4442 | LD="${LD-ld} -m elf64ppc" | |
4443 | ;; | |
4444 | s390*-*linux*) | |
4445 | LD="${LD-ld} -m elf64_s390" | |
4446 | ;; | |
4447 | sparc*-*linux*) | |
4448 | LD="${LD-ld} -m elf64_sparc" | |
4449 | ;; | |
4450 | esac | |
4451 | ;; | |
4452 | esac | |
6de9cd9a | 4453 | fi |
96b8a615 AJ |
4454 | rm -rf conftest* |
4455 | ;; | |
6de9cd9a | 4456 | |
96b8a615 AJ |
4457 | *-*-sco3.2v5*) |
4458 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4459 | SAVE_CFLAGS="$CFLAGS" | |
4460 | CFLAGS="$CFLAGS -belf" | |
4461 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4462 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4463 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6de9cd9a DN |
4464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4465 | else | |
6de9cd9a | 4466 | |
6de9cd9a | 4467 | |
96b8a615 AJ |
4468 | ac_ext=c |
4469 | ac_cpp='$CPP $CPPFLAGS' | |
4470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 4473 | |
f02d008e JD |
4474 | if test x$gcc_no_link = xyes; then |
4475 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
4476 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
4477 | { (exit 1); exit 1; }; } | |
4478 | fi | |
4479 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
4480 | /* confdefs.h. */ |
4481 | _ACEOF | |
4482 | cat confdefs.h >>conftest.$ac_ext | |
4483 | cat >>conftest.$ac_ext <<_ACEOF | |
4484 | /* end confdefs.h. */ | |
6de9cd9a DN |
4485 | |
4486 | int | |
4487 | main () | |
4488 | { | |
96b8a615 | 4489 | |
6de9cd9a DN |
4490 | ; |
4491 | return 0; | |
4492 | } | |
4493 | _ACEOF | |
4494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4496 | (eval $ac_link) 2>conftest.er1 | |
4497 | ac_status=$? | |
4498 | grep -v '^ *+' conftest.er1 >conftest.err | |
4499 | rm -f conftest.er1 | |
4500 | cat conftest.err >&5 | |
4501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4502 | (exit $ac_status); } && | |
57255173 PB |
4503 | { ac_try='test -z "$ac_c_werror_flag" |
4504 | || test ! -s conftest.err' | |
6de9cd9a DN |
4505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4506 | (eval $ac_try) 2>&5 | |
4507 | ac_status=$? | |
4508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4509 | (exit $ac_status); }; } && | |
4510 | { ac_try='test -s conftest$ac_exeext' | |
4511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4512 | (eval $ac_try) 2>&5 | |
4513 | ac_status=$? | |
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4515 | (exit $ac_status); }; }; then | |
96b8a615 | 4516 | lt_cv_cc_needs_belf=yes |
6de9cd9a DN |
4517 | else |
4518 | echo "$as_me: failed program was:" >&5 | |
4519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4520 | ||
96b8a615 | 4521 | lt_cv_cc_needs_belf=no |
6de9cd9a DN |
4522 | fi |
4523 | rm -f conftest.err conftest.$ac_objext \ | |
4524 | conftest$ac_exeext conftest.$ac_ext | |
96b8a615 AJ |
4525 | ac_ext=c |
4526 | ac_cpp='$CPP $CPPFLAGS' | |
4527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4530 | ||
6de9cd9a | 4531 | fi |
96b8a615 AJ |
4532 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4533 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4534 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4535 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4536 | CFLAGS="$SAVE_CFLAGS" | |
4537 | fi | |
4538 | ;; | |
4539 | ||
4540 | ||
4541 | esac | |
4542 | ||
4543 | ||
4544 | # Save cache, so that ltconfig can load it | |
4545 | cat >confcache <<\_ACEOF | |
4546 | # This file is a shell script that caches the results of configure | |
4547 | # tests run on this system so they can be shared between configure | |
4548 | # scripts and configure runs, see configure's option --config-cache. | |
4549 | # It is not useful on other systems. If it contains results you don't | |
4550 | # want to keep, you may remove or edit it. | |
4551 | # | |
4552 | # config.status only pays attention to the cache file if you give it | |
4553 | # the --recheck option to rerun configure. | |
4554 | # | |
4555 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4556 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4557 | # following values. | |
4558 | ||
6de9cd9a DN |
4559 | _ACEOF |
4560 | ||
96b8a615 AJ |
4561 | # The following way of writing the cache mishandles newlines in values, |
4562 | # but we know of no workaround that is simple, portable, and efficient. | |
4563 | # So, don't put newlines in cache variables' values. | |
4564 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4565 | # and sets the high bit in the cache file unless we assign to the vars. | |
4566 | { | |
4567 | (set) 2>&1 | | |
4568 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4569 | *ac_space=\ *) | |
4570 | # `set' does not quote correctly, so add quotes (double-quote | |
4571 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4572 | sed -n \ | |
4573 | "s/'/'\\\\''/g; | |
4574 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4575 | ;; | |
4576 | *) | |
4577 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4578 | sed -n \ | |
4579 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4580 | ;; | |
4581 | esac; | |
4582 | } | | |
4583 | sed ' | |
4584 | t clear | |
4585 | : clear | |
4586 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4587 | t end | |
4588 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4589 | : end' >>confcache | |
4590 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4591 | if test -w $cache_file; then | |
4592 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4593 | cat confcache >$cache_file | |
4594 | else | |
4595 | echo "not updating unwritable cache $cache_file" | |
4596 | fi | |
6de9cd9a | 4597 | fi |
96b8a615 | 4598 | rm -f confcache |
6de9cd9a | 4599 | |
96b8a615 AJ |
4600 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
4601 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
4602 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4603 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4604 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4605 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4606 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
4607 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
4608 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
4609 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 | |
4610 | echo "$as_me: error: libtool configure failed" >&2;} | |
4611 | { (exit 1); exit 1; }; } | |
4612 | ||
4613 | # Reload cache, that may have been modified by ltconfig | |
4614 | if test -r "$cache_file"; then | |
4615 | # Some versions of bash will fail to source /dev/null (special | |
4616 | # files actually), so we avoid doing that. | |
4617 | if test -f "$cache_file"; then | |
4618 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4619 | echo "$as_me: loading cache $cache_file" >&6;} | |
4620 | case $cache_file in | |
4621 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4622 | *) . ./$cache_file;; | |
4623 | esac | |
4624 | fi | |
4625 | else | |
4626 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
4627 | echo "$as_me: creating cache $cache_file" >&6;} | |
4628 | >$cache_file | |
4629 | fi | |
6de9cd9a | 4630 | |
6de9cd9a | 4631 | |
96b8a615 AJ |
4632 | # This can be used to rebuild libtool when needed |
4633 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
6de9cd9a | 4634 | |
96b8a615 AJ |
4635 | # Always use our own libtool. |
4636 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6de9cd9a | 4637 | |
96b8a615 AJ |
4638 | # Redirect the config.log output again, so that the ltconfig log is not |
4639 | # clobbered by the next message. | |
4640 | exec 5>>./config.log | |
6de9cd9a | 4641 | |
6de9cd9a | 4642 | |
6de9cd9a | 4643 | |
6de9cd9a | 4644 | |
6de9cd9a | 4645 | |
6de9cd9a | 4646 | |
6de9cd9a | 4647 | |
6de9cd9a | 4648 | |
96b8a615 AJ |
4649 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
4650 | ||
4651 | # We need gfortran to compile parts of the library | |
c7a35fe9 AS |
4652 | #AC_PROG_FC(gfortran) |
4653 | FC="$GFORTRAN" | |
4654 | ac_ext=${FC_SRCEXT-f} | |
4655 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
4656 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
4657 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
96b8a615 AJ |
4658 | if test -n "$ac_tool_prefix"; then |
4659 | for ac_prog in gfortran | |
4660 | do | |
4661 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4662 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
c7a35fe9 | 4665 | if test "${ac_cv_prog_FC+set}" = set; then |
96b8a615 | 4666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6de9cd9a | 4667 | else |
c7a35fe9 AS |
4668 | if test -n "$FC"; then |
4669 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
96b8a615 AJ |
4670 | else |
4671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4672 | for as_dir in $PATH | |
4673 | do | |
4674 | IFS=$as_save_IFS | |
4675 | test -z "$as_dir" && as_dir=. | |
4676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c7a35fe9 | 4678 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
96b8a615 AJ |
4679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4680 | break 2 | |
4681 | fi | |
4682 | done | |
4683 | done | |
6de9cd9a | 4684 | |
6de9cd9a | 4685 | fi |
6de9cd9a | 4686 | fi |
c7a35fe9 AS |
4687 | FC=$ac_cv_prog_FC |
4688 | if test -n "$FC"; then | |
4689 | echo "$as_me:$LINENO: result: $FC" >&5 | |
4690 | echo "${ECHO_T}$FC" >&6 | |
96b8a615 AJ |
4691 | else |
4692 | echo "$as_me:$LINENO: result: no" >&5 | |
4693 | echo "${ECHO_T}no" >&6 | |
6de9cd9a | 4694 | fi |
6de9cd9a | 4695 | |
c7a35fe9 | 4696 | test -n "$FC" && break |
96b8a615 AJ |
4697 | done |
4698 | fi | |
c7a35fe9 AS |
4699 | if test -z "$FC"; then |
4700 | ac_ct_FC=$FC | |
96b8a615 AJ |
4701 | for ac_prog in gfortran |
4702 | do | |
4703 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4704 | set dummy $ac_prog; ac_word=$2 | |
4705 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
c7a35fe9 | 4707 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
96b8a615 AJ |
4708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4709 | else | |
c7a35fe9 AS |
4710 | if test -n "$ac_ct_FC"; then |
4711 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
96b8a615 AJ |
4712 | else |
4713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4714 | for as_dir in $PATH | |
4715 | do | |
4716 | IFS=$as_save_IFS | |
4717 | test -z "$as_dir" && as_dir=. | |
4718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4719 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c7a35fe9 | 4720 | ac_cv_prog_ac_ct_FC="$ac_prog" |
96b8a615 AJ |
4721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4722 | break 2 | |
4723 | fi | |
4724 | done | |
4725 | done | |
6de9cd9a DN |
4726 | |
4727 | fi | |
96b8a615 | 4728 | fi |
c7a35fe9 AS |
4729 | ac_ct_FC=$ac_cv_prog_ac_ct_FC |
4730 | if test -n "$ac_ct_FC"; then | |
4731 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
4732 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
96b8a615 AJ |
4733 | else |
4734 | echo "$as_me:$LINENO: result: no" >&5 | |
4735 | echo "${ECHO_T}no" >&6 | |
4736 | fi | |
4737 | ||
c7a35fe9 | 4738 | test -n "$ac_ct_FC" && break |
96b8a615 AJ |
4739 | done |
4740 | ||
c7a35fe9 | 4741 | FC=$ac_ct_FC |
96b8a615 AJ |
4742 | fi |
4743 | ||
4744 | ||
4745 | # Provide some information about the compiler. | |
679c0f9a | 4746 | echo "$as_me:4746:" \ |
c7a35fe9 | 4747 | "checking for Fortran compiler version" >&5 |
96b8a615 AJ |
4748 | ac_compiler=`set X $ac_compile; echo $2` |
4749 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4750 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4751 | ac_status=$? | |
4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4753 | (exit $ac_status); } | |
4754 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4755 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4756 | ac_status=$? | |
4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4758 | (exit $ac_status); } | |
4759 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4760 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4761 | ac_status=$? | |
4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4763 | (exit $ac_status); } | |
4764 | rm -f a.out | |
6de9cd9a | 4765 | |
96b8a615 AJ |
4766 | # If we don't use `.F' as extension, the preprocessor is not run on the |
4767 | # input file. (Note that this only needs to work for GNU compilers.) | |
4768 | ac_save_ext=$ac_ext | |
4769 | ac_ext=F | |
c7a35fe9 AS |
4770 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
4771 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
4772 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
6de9cd9a DN |
4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4774 | else | |
4775 | cat >conftest.$ac_ext <<_ACEOF | |
96b8a615 AJ |
4776 | program main |
4777 | #ifndef __GNUC__ | |
4778 | choke me | |
4779 | #endif | |
4780 | ||
4781 | end | |
6de9cd9a DN |
4782 | _ACEOF |
4783 | rm -f conftest.$ac_objext | |
4784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4785 | (eval $ac_compile) 2>conftest.er1 | |
4786 | ac_status=$? | |
4787 | grep -v '^ *+' conftest.er1 >conftest.err | |
4788 | rm -f conftest.er1 | |
4789 | cat conftest.err >&5 | |
4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4791 | (exit $ac_status); } && | |
57255173 PB |
4792 | { ac_try='test -z "$ac_fc_werror_flag" |
4793 | || test ! -s conftest.err' | |
6de9cd9a DN |
4794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4795 | (eval $ac_try) 2>&5 | |
4796 | ac_status=$? | |
4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4798 | (exit $ac_status); }; } && | |
4799 | { ac_try='test -s conftest.$ac_objext' | |
4800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4801 | (eval $ac_try) 2>&5 | |
4802 | ac_status=$? | |
4803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4804 | (exit $ac_status); }; }; then | |
96b8a615 | 4805 | ac_compiler_gnu=yes |
6de9cd9a DN |
4806 | else |
4807 | echo "$as_me: failed program was:" >&5 | |
4808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4809 | ||
96b8a615 | 4810 | ac_compiler_gnu=no |
6de9cd9a DN |
4811 | fi |
4812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c7a35fe9 | 4813 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
6de9cd9a DN |
4814 | |
4815 | fi | |
c7a35fe9 AS |
4816 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
4817 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
96b8a615 | 4818 | ac_ext=$ac_save_ext |
c7a35fe9 AS |
4819 | ac_test_FFLAGS=${FCFLAGS+set} |
4820 | ac_save_FFLAGS=$FCFLAGS | |
4821 | FCFLAGS= | |
4822 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
4823 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
4824 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
6de9cd9a DN |
4825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4826 | else | |
c7a35fe9 | 4827 | FCFLAGS=-g |
96b8a615 AJ |
4828 | cat >conftest.$ac_ext <<_ACEOF |
4829 | program main | |
6de9cd9a | 4830 | |
96b8a615 | 4831 | end |
6de9cd9a DN |
4832 | _ACEOF |
4833 | rm -f conftest.$ac_objext | |
4834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4835 | (eval $ac_compile) 2>conftest.er1 | |
4836 | ac_status=$? | |
4837 | grep -v '^ *+' conftest.er1 >conftest.err | |
4838 | rm -f conftest.er1 | |
4839 | cat conftest.err >&5 | |
4840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4841 | (exit $ac_status); } && | |
57255173 PB |
4842 | { ac_try='test -z "$ac_fc_werror_flag" |
4843 | || test ! -s conftest.err' | |
6de9cd9a DN |
4844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4845 | (eval $ac_try) 2>&5 | |
4846 | ac_status=$? | |
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4848 | (exit $ac_status); }; } && | |
4849 | { ac_try='test -s conftest.$ac_objext' | |
4850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4851 | (eval $ac_try) 2>&5 | |
4852 | ac_status=$? | |
4853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4854 | (exit $ac_status); }; }; then | |
c7a35fe9 | 4855 | ac_cv_prog_fc_g=yes |
6de9cd9a DN |
4856 | else |
4857 | echo "$as_me: failed program was:" >&5 | |
4858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4859 | ||
c7a35fe9 | 4860 | ac_cv_prog_fc_g=no |
6de9cd9a DN |
4861 | fi |
4862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4863 | ||
6de9cd9a | 4864 | fi |
c7a35fe9 AS |
4865 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
4866 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
96b8a615 | 4867 | if test "$ac_test_FFLAGS" = set; then |
c7a35fe9 AS |
4868 | FCFLAGS=$ac_save_FFLAGS |
4869 | elif test $ac_cv_prog_fc_g = yes; then | |
4870 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
4871 | FCFLAGS="-g -O2" | |
96b8a615 | 4872 | else |
c7a35fe9 | 4873 | FCFLAGS="-g" |
96b8a615 AJ |
4874 | fi |
4875 | else | |
c7a35fe9 AS |
4876 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4877 | FCFLAGS="-O2" | |
96b8a615 | 4878 | else |
c7a35fe9 | 4879 | FCFLAGS= |
96b8a615 | 4880 | fi |
6de9cd9a DN |
4881 | fi |
4882 | ||
96b8a615 AJ |
4883 | ac_ext=c |
4884 | ac_cpp='$CPP $CPPFLAGS' | |
4885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 4888 | |
6de9cd9a | 4889 | |
e87045f3 AP |
4890 | # extra LD Flags which are required for targets |
4891 | case "${host}" in | |
4892 | *-darwin*) | |
4893 | # Darwin needs -single_module when linking libgfortran | |
4894 | extra_ldflags_libgfortran=-Wl,-single_module | |
4895 | ;; | |
4896 | esac | |
4897 | ||
4898 | ||
9cdc381b BD |
4899 | # Check whether --enable-largefile or --disable-largefile was given. |
4900 | if test "${enable_largefile+set}" = set; then | |
4901 | enableval="$enable_largefile" | |
4902 | ||
4903 | fi; | |
4904 | if test "$enable_largefile" != no; then | |
4905 | ||
4906 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
4907 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
4908 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4910 | else | |
4911 | ac_cv_sys_largefile_CC=no | |
4912 | if test "$GCC" != yes; then | |
4913 | ac_save_CC=$CC | |
4914 | while :; do | |
4915 | # IRIX 6.2 and later do not support large files by default, | |
4916 | # so use the C compiler's -n32 option if that helps. | |
4917 | cat >conftest.$ac_ext <<_ACEOF | |
4918 | /* confdefs.h. */ | |
4919 | _ACEOF | |
4920 | cat confdefs.h >>conftest.$ac_ext | |
4921 | cat >>conftest.$ac_ext <<_ACEOF | |
4922 | /* end confdefs.h. */ | |
4923 | #include <sys/types.h> | |
4924 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4925 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4926 | since some C++ compilers masquerading as C compilers | |
4927 | incorrectly reject 9223372036854775807. */ | |
4928 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4929 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4930 | && LARGE_OFF_T % 2147483647 == 1) | |
4931 | ? 1 : -1]; | |
4932 | int | |
4933 | main () | |
4934 | { | |
4935 | ||
4936 | ; | |
4937 | return 0; | |
4938 | } | |
4939 | _ACEOF | |
4940 | rm -f conftest.$ac_objext | |
4941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4942 | (eval $ac_compile) 2>conftest.er1 | |
4943 | ac_status=$? | |
4944 | grep -v '^ *+' conftest.er1 >conftest.err | |
4945 | rm -f conftest.er1 | |
4946 | cat conftest.err >&5 | |
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 | (exit $ac_status); } && | |
57255173 PB |
4949 | { ac_try='test -z "$ac_c_werror_flag" |
4950 | || test ! -s conftest.err' | |
9cdc381b BD |
4951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4952 | (eval $ac_try) 2>&5 | |
4953 | ac_status=$? | |
4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4955 | (exit $ac_status); }; } && | |
4956 | { ac_try='test -s conftest.$ac_objext' | |
4957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4958 | (eval $ac_try) 2>&5 | |
4959 | ac_status=$? | |
4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4961 | (exit $ac_status); }; }; then | |
4962 | break | |
4963 | else | |
4964 | echo "$as_me: failed program was:" >&5 | |
4965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4966 | ||
4967 | fi | |
4968 | rm -f conftest.err conftest.$ac_objext | |
4969 | CC="$CC -n32" | |
4970 | rm -f conftest.$ac_objext | |
4971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4972 | (eval $ac_compile) 2>conftest.er1 | |
4973 | ac_status=$? | |
4974 | grep -v '^ *+' conftest.er1 >conftest.err | |
4975 | rm -f conftest.er1 | |
4976 | cat conftest.err >&5 | |
4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4978 | (exit $ac_status); } && | |
57255173 PB |
4979 | { ac_try='test -z "$ac_c_werror_flag" |
4980 | || test ! -s conftest.err' | |
9cdc381b BD |
4981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4982 | (eval $ac_try) 2>&5 | |
4983 | ac_status=$? | |
4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4985 | (exit $ac_status); }; } && | |
4986 | { ac_try='test -s conftest.$ac_objext' | |
4987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4988 | (eval $ac_try) 2>&5 | |
4989 | ac_status=$? | |
4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4991 | (exit $ac_status); }; }; then | |
4992 | ac_cv_sys_largefile_CC=' -n32'; break | |
4993 | else | |
4994 | echo "$as_me: failed program was:" >&5 | |
4995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4996 | ||
4997 | fi | |
4998 | rm -f conftest.err conftest.$ac_objext | |
4999 | break | |
5000 | done | |
5001 | CC=$ac_save_CC | |
5002 | rm -f conftest.$ac_ext | |
5003 | fi | |
5004 | fi | |
5005 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
5006 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
5007 | if test "$ac_cv_sys_largefile_CC" != no; then | |
5008 | CC=$CC$ac_cv_sys_largefile_CC | |
5009 | fi | |
5010 | ||
5011 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
5012 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
5013 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
5014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5015 | else | |
5016 | while :; do | |
5017 | ac_cv_sys_file_offset_bits=no | |
5018 | cat >conftest.$ac_ext <<_ACEOF | |
5019 | /* confdefs.h. */ | |
5020 | _ACEOF | |
5021 | cat confdefs.h >>conftest.$ac_ext | |
5022 | cat >>conftest.$ac_ext <<_ACEOF | |
5023 | /* end confdefs.h. */ | |
5024 | #include <sys/types.h> | |
5025 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5026 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5027 | since some C++ compilers masquerading as C compilers | |
5028 | incorrectly reject 9223372036854775807. */ | |
5029 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5030 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5031 | && LARGE_OFF_T % 2147483647 == 1) | |
5032 | ? 1 : -1]; | |
5033 | int | |
5034 | main () | |
5035 | { | |
5036 | ||
5037 | ; | |
5038 | return 0; | |
5039 | } | |
5040 | _ACEOF | |
5041 | rm -f conftest.$ac_objext | |
5042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5043 | (eval $ac_compile) 2>conftest.er1 | |
5044 | ac_status=$? | |
5045 | grep -v '^ *+' conftest.er1 >conftest.err | |
5046 | rm -f conftest.er1 | |
5047 | cat conftest.err >&5 | |
5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5049 | (exit $ac_status); } && | |
57255173 PB |
5050 | { ac_try='test -z "$ac_c_werror_flag" |
5051 | || test ! -s conftest.err' | |
9cdc381b BD |
5052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5053 | (eval $ac_try) 2>&5 | |
5054 | ac_status=$? | |
5055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5056 | (exit $ac_status); }; } && | |
5057 | { ac_try='test -s conftest.$ac_objext' | |
5058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5059 | (eval $ac_try) 2>&5 | |
5060 | ac_status=$? | |
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5062 | (exit $ac_status); }; }; then | |
5063 | break | |
5064 | else | |
5065 | echo "$as_me: failed program was:" >&5 | |
5066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5067 | ||
5068 | fi | |
5069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5070 | cat >conftest.$ac_ext <<_ACEOF | |
5071 | /* confdefs.h. */ | |
5072 | _ACEOF | |
5073 | cat confdefs.h >>conftest.$ac_ext | |
5074 | cat >>conftest.$ac_ext <<_ACEOF | |
5075 | /* end confdefs.h. */ | |
5076 | #define _FILE_OFFSET_BITS 64 | |
5077 | #include <sys/types.h> | |
5078 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5079 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5080 | since some C++ compilers masquerading as C compilers | |
5081 | incorrectly reject 9223372036854775807. */ | |
5082 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5083 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5084 | && LARGE_OFF_T % 2147483647 == 1) | |
5085 | ? 1 : -1]; | |
5086 | int | |
5087 | main () | |
5088 | { | |
5089 | ||
5090 | ; | |
5091 | return 0; | |
5092 | } | |
5093 | _ACEOF | |
5094 | rm -f conftest.$ac_objext | |
5095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5096 | (eval $ac_compile) 2>conftest.er1 | |
5097 | ac_status=$? | |
5098 | grep -v '^ *+' conftest.er1 >conftest.err | |
5099 | rm -f conftest.er1 | |
5100 | cat conftest.err >&5 | |
5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5102 | (exit $ac_status); } && | |
57255173 PB |
5103 | { ac_try='test -z "$ac_c_werror_flag" |
5104 | || test ! -s conftest.err' | |
9cdc381b BD |
5105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5106 | (eval $ac_try) 2>&5 | |
5107 | ac_status=$? | |
5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5109 | (exit $ac_status); }; } && | |
5110 | { ac_try='test -s conftest.$ac_objext' | |
5111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5112 | (eval $ac_try) 2>&5 | |
5113 | ac_status=$? | |
5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5115 | (exit $ac_status); }; }; then | |
5116 | ac_cv_sys_file_offset_bits=64; break | |
5117 | else | |
5118 | echo "$as_me: failed program was:" >&5 | |
5119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5120 | ||
5121 | fi | |
5122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5123 | break | |
5124 | done | |
5125 | fi | |
5126 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
5127 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
5128 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
5129 | ||
5130 | cat >>confdefs.h <<_ACEOF | |
5131 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5132 | _ACEOF | |
5133 | ||
5134 | fi | |
5135 | rm -f conftest* | |
5136 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
5137 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
5138 | if test "${ac_cv_sys_large_files+set}" = set; then | |
5139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5140 | else | |
5141 | while :; do | |
5142 | ac_cv_sys_large_files=no | |
5143 | cat >conftest.$ac_ext <<_ACEOF | |
5144 | /* confdefs.h. */ | |
5145 | _ACEOF | |
5146 | cat confdefs.h >>conftest.$ac_ext | |
5147 | cat >>conftest.$ac_ext <<_ACEOF | |
5148 | /* end confdefs.h. */ | |
5149 | #include <sys/types.h> | |
5150 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5151 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5152 | since some C++ compilers masquerading as C compilers | |
5153 | incorrectly reject 9223372036854775807. */ | |
5154 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5155 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5156 | && LARGE_OFF_T % 2147483647 == 1) | |
5157 | ? 1 : -1]; | |
5158 | int | |
5159 | main () | |
5160 | { | |
5161 | ||
5162 | ; | |
5163 | return 0; | |
5164 | } | |
5165 | _ACEOF | |
5166 | rm -f conftest.$ac_objext | |
5167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5168 | (eval $ac_compile) 2>conftest.er1 | |
5169 | ac_status=$? | |
5170 | grep -v '^ *+' conftest.er1 >conftest.err | |
5171 | rm -f conftest.er1 | |
5172 | cat conftest.err >&5 | |
5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5174 | (exit $ac_status); } && | |
57255173 PB |
5175 | { ac_try='test -z "$ac_c_werror_flag" |
5176 | || test ! -s conftest.err' | |
9cdc381b BD |
5177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5178 | (eval $ac_try) 2>&5 | |
5179 | ac_status=$? | |
5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5181 | (exit $ac_status); }; } && | |
5182 | { ac_try='test -s conftest.$ac_objext' | |
5183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5184 | (eval $ac_try) 2>&5 | |
5185 | ac_status=$? | |
5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5187 | (exit $ac_status); }; }; then | |
5188 | break | |
5189 | else | |
5190 | echo "$as_me: failed program was:" >&5 | |
5191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5192 | ||
5193 | fi | |
5194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5195 | cat >conftest.$ac_ext <<_ACEOF | |
5196 | /* confdefs.h. */ | |
5197 | _ACEOF | |
5198 | cat confdefs.h >>conftest.$ac_ext | |
5199 | cat >>conftest.$ac_ext <<_ACEOF | |
5200 | /* end confdefs.h. */ | |
5201 | #define _LARGE_FILES 1 | |
5202 | #include <sys/types.h> | |
5203 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5204 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5205 | since some C++ compilers masquerading as C compilers | |
5206 | incorrectly reject 9223372036854775807. */ | |
5207 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5208 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5209 | && LARGE_OFF_T % 2147483647 == 1) | |
5210 | ? 1 : -1]; | |
5211 | int | |
5212 | main () | |
5213 | { | |
5214 | ||
5215 | ; | |
5216 | return 0; | |
5217 | } | |
5218 | _ACEOF | |
5219 | rm -f conftest.$ac_objext | |
5220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5221 | (eval $ac_compile) 2>conftest.er1 | |
5222 | ac_status=$? | |
5223 | grep -v '^ *+' conftest.er1 >conftest.err | |
5224 | rm -f conftest.er1 | |
5225 | cat conftest.err >&5 | |
5226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5227 | (exit $ac_status); } && | |
57255173 PB |
5228 | { ac_try='test -z "$ac_c_werror_flag" |
5229 | || test ! -s conftest.err' | |
9cdc381b BD |
5230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5231 | (eval $ac_try) 2>&5 | |
5232 | ac_status=$? | |
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5234 | (exit $ac_status); }; } && | |
5235 | { ac_try='test -s conftest.$ac_objext' | |
5236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5237 | (eval $ac_try) 2>&5 | |
5238 | ac_status=$? | |
5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5240 | (exit $ac_status); }; }; then | |
5241 | ac_cv_sys_large_files=1; break | |
5242 | else | |
5243 | echo "$as_me: failed program was:" >&5 | |
5244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5245 | ||
5246 | fi | |
5247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5248 | break | |
5249 | done | |
5250 | fi | |
5251 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
5252 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
5253 | if test "$ac_cv_sys_large_files" != no; then | |
5254 | ||
5255 | cat >>confdefs.h <<_ACEOF | |
5256 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5257 | _ACEOF | |
5258 | ||
5259 | fi | |
5260 | rm -f conftest* | |
5261 | fi | |
5262 | ||
dd46a4de | 5263 | ac_ext=c |
96b8a615 AJ |
5264 | ac_cpp='$CPP $CPPFLAGS' |
5265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5268 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5269 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5270 | # On Suns, sometimes $CPP names a directory. | |
5271 | if test -n "$CPP" && test -d "$CPP"; then | |
5272 | CPP= | |
6de9cd9a | 5273 | fi |
96b8a615 AJ |
5274 | if test -z "$CPP"; then |
5275 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 5277 | else |
96b8a615 AJ |
5278 | # Double quotes because CPP needs to be expanded |
5279 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5280 | do | |
5281 | ac_preproc_ok=false | |
5282 | for ac_c_preproc_warn_flag in '' yes | |
5283 | do | |
5284 | # Use a header file that comes with gcc, so configuring glibc | |
5285 | # with a fresh cross-compiler works. | |
5286 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5287 | # <limits.h> exists even on freestanding compilers. | |
5288 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5289 | # not just through cpp. "Syntax error" is here to catch this case. | |
6de9cd9a DN |
5290 | cat >conftest.$ac_ext <<_ACEOF |
5291 | /* confdefs.h. */ | |
5292 | _ACEOF | |
5293 | cat confdefs.h >>conftest.$ac_ext | |
5294 | cat >>conftest.$ac_ext <<_ACEOF | |
5295 | /* end confdefs.h. */ | |
96b8a615 AJ |
5296 | #ifdef __STDC__ |
5297 | # include <limits.h> | |
6de9cd9a | 5298 | #else |
96b8a615 | 5299 | # include <assert.h> |
6de9cd9a | 5300 | #endif |
96b8a615 | 5301 | Syntax error |
6de9cd9a | 5302 | _ACEOF |
96b8a615 AJ |
5303 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5304 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6de9cd9a | 5305 | ac_status=$? |
96b8a615 AJ |
5306 | grep -v '^ *+' conftest.er1 >conftest.err |
5307 | rm -f conftest.er1 | |
5308 | cat conftest.err >&5 | |
6de9cd9a | 5309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96b8a615 AJ |
5310 | (exit $ac_status); } >/dev/null; then |
5311 | if test -s conftest.err; then | |
5312 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5313 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5314 | else | |
5315 | ac_cpp_err= | |
5316 | fi | |
5317 | else | |
5318 | ac_cpp_err=yes | |
5319 | fi | |
5320 | if test -z "$ac_cpp_err"; then | |
6de9cd9a DN |
5321 | : |
5322 | else | |
96b8a615 | 5323 | echo "$as_me: failed program was:" >&5 |
6de9cd9a DN |
5324 | sed 's/^/| /' conftest.$ac_ext >&5 |
5325 | ||
96b8a615 AJ |
5326 | # Broken: fails on valid input. |
5327 | continue | |
6de9cd9a | 5328 | fi |
96b8a615 | 5329 | rm -f conftest.err conftest.$ac_ext |
6de9cd9a | 5330 | |
96b8a615 AJ |
5331 | # OK, works on sane cases. Now check whether non-existent headers |
5332 | # can be detected and how. | |
5333 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5334 | /* confdefs.h. */ |
5335 | _ACEOF | |
5336 | cat confdefs.h >>conftest.$ac_ext | |
5337 | cat >>conftest.$ac_ext <<_ACEOF | |
5338 | /* end confdefs.h. */ | |
96b8a615 | 5339 | #include <ac_nonexistent.h> |
6de9cd9a | 5340 | _ACEOF |
96b8a615 AJ |
5341 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5342 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6de9cd9a DN |
5343 | ac_status=$? |
5344 | grep -v '^ *+' conftest.er1 >conftest.err | |
5345 | rm -f conftest.er1 | |
5346 | cat conftest.err >&5 | |
5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
5348 | (exit $ac_status); } >/dev/null; then |
5349 | if test -s conftest.err; then | |
5350 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5351 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5352 | else | |
5353 | ac_cpp_err= | |
5354 | fi | |
5355 | else | |
5356 | ac_cpp_err=yes | |
5357 | fi | |
5358 | if test -z "$ac_cpp_err"; then | |
5359 | # Broken: success on invalid input. | |
5360 | continue | |
6de9cd9a DN |
5361 | else |
5362 | echo "$as_me: failed program was:" >&5 | |
5363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5364 | ||
96b8a615 AJ |
5365 | # Passes both tests. |
5366 | ac_preproc_ok=: | |
5367 | break | |
6de9cd9a | 5368 | fi |
96b8a615 | 5369 | rm -f conftest.err conftest.$ac_ext |
6de9cd9a | 5370 | |
96b8a615 AJ |
5371 | done |
5372 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5373 | rm -f conftest.err conftest.$ac_ext | |
5374 | if $ac_preproc_ok; then | |
5375 | break | |
5376 | fi | |
5377 | ||
5378 | done | |
5379 | ac_cv_prog_CPP=$CPP | |
5380 | ||
5381 | fi | |
5382 | CPP=$ac_cv_prog_CPP | |
5383 | else | |
5384 | ac_cv_prog_CPP=$CPP | |
5385 | fi | |
5386 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5387 | echo "${ECHO_T}$CPP" >&6 | |
5388 | ac_preproc_ok=false | |
5389 | for ac_c_preproc_warn_flag in '' yes | |
5390 | do | |
5391 | # Use a header file that comes with gcc, so configuring glibc | |
5392 | # with a fresh cross-compiler works. | |
5393 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5394 | # <limits.h> exists even on freestanding compilers. | |
5395 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5396 | # not just through cpp. "Syntax error" is here to catch this case. | |
5397 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5398 | /* confdefs.h. */ |
5399 | _ACEOF | |
5400 | cat confdefs.h >>conftest.$ac_ext | |
5401 | cat >>conftest.$ac_ext <<_ACEOF | |
5402 | /* end confdefs.h. */ | |
96b8a615 AJ |
5403 | #ifdef __STDC__ |
5404 | # include <limits.h> | |
5405 | #else | |
5406 | # include <assert.h> | |
5407 | #endif | |
5408 | Syntax error | |
6de9cd9a DN |
5409 | _ACEOF |
5410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5412 | ac_status=$? | |
5413 | grep -v '^ *+' conftest.er1 >conftest.err | |
5414 | rm -f conftest.er1 | |
5415 | cat conftest.err >&5 | |
5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5417 | (exit $ac_status); } >/dev/null; then | |
5418 | if test -s conftest.err; then | |
5419 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5420 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5421 | else | |
5422 | ac_cpp_err= | |
5423 | fi | |
5424 | else | |
5425 | ac_cpp_err=yes | |
5426 | fi | |
5427 | if test -z "$ac_cpp_err"; then | |
96b8a615 | 5428 | : |
6de9cd9a DN |
5429 | else |
5430 | echo "$as_me: failed program was:" >&5 | |
5431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5432 | ||
96b8a615 AJ |
5433 | # Broken: fails on valid input. |
5434 | continue | |
6de9cd9a DN |
5435 | fi |
5436 | rm -f conftest.err conftest.$ac_ext | |
6de9cd9a | 5437 | |
96b8a615 AJ |
5438 | # OK, works on sane cases. Now check whether non-existent headers |
5439 | # can be detected and how. | |
5440 | cat >conftest.$ac_ext <<_ACEOF | |
5441 | /* confdefs.h. */ | |
5442 | _ACEOF | |
5443 | cat confdefs.h >>conftest.$ac_ext | |
5444 | cat >>conftest.$ac_ext <<_ACEOF | |
5445 | /* end confdefs.h. */ | |
5446 | #include <ac_nonexistent.h> | |
6de9cd9a | 5447 | _ACEOF |
96b8a615 AJ |
5448 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5449 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5450 | ac_status=$? | |
5451 | grep -v '^ *+' conftest.er1 >conftest.err | |
5452 | rm -f conftest.er1 | |
5453 | cat conftest.err >&5 | |
5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5455 | (exit $ac_status); } >/dev/null; then | |
5456 | if test -s conftest.err; then | |
5457 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5458 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5459 | else | |
5460 | ac_cpp_err= | |
5461 | fi | |
5462 | else | |
5463 | ac_cpp_err=yes | |
5464 | fi | |
5465 | if test -z "$ac_cpp_err"; then | |
5466 | # Broken: success on invalid input. | |
5467 | continue | |
5468 | else | |
5469 | echo "$as_me: failed program was:" >&5 | |
5470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 5471 | |
96b8a615 AJ |
5472 | # Passes both tests. |
5473 | ac_preproc_ok=: | |
5474 | break | |
6de9cd9a | 5475 | fi |
96b8a615 | 5476 | rm -f conftest.err conftest.$ac_ext |
6de9cd9a DN |
5477 | |
5478 | done | |
96b8a615 AJ |
5479 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5480 | rm -f conftest.err conftest.$ac_ext | |
5481 | if $ac_preproc_ok; then | |
5482 | : | |
5483 | else | |
5484 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5485 | See \`config.log' for more details." >&5 | |
5486 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5487 | See \`config.log' for more details." >&2;} | |
5488 | { (exit 1); exit 1; }; } | |
5489 | fi | |
6de9cd9a | 5490 | |
96b8a615 AJ |
5491 | ac_ext=c |
5492 | ac_cpp='$CPP $CPPFLAGS' | |
5493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a DN |
5496 | |
5497 | ||
96b8a615 AJ |
5498 | echo "$as_me:$LINENO: checking for egrep" >&5 |
5499 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5500 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5502 | else | |
5503 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5504 | then ac_cv_prog_egrep='grep -E' | |
5505 | else ac_cv_prog_egrep='egrep' | |
5506 | fi | |
5507 | fi | |
5508 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5509 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5510 | EGREP=$ac_cv_prog_egrep | |
6de9cd9a DN |
5511 | |
5512 | ||
96b8a615 AJ |
5513 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5514 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5515 | if test "${ac_cv_header_stdc+set}" = set; then | |
6de9cd9a | 5516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6de9cd9a | 5517 | else |
96b8a615 | 5518 | cat >conftest.$ac_ext <<_ACEOF |
6de9cd9a DN |
5519 | /* confdefs.h. */ |
5520 | _ACEOF | |
5521 | cat confdefs.h >>conftest.$ac_ext | |
5522 | cat >>conftest.$ac_ext <<_ACEOF | |
5523 | /* end confdefs.h. */ | |
96b8a615 AJ |
5524 | #include <stdlib.h> |
5525 | #include <stdarg.h> | |
5526 | #include <string.h> | |
5527 | #include <float.h> | |
5528 | ||
5529 | int | |
5530 | main () | |
5531 | { | |
5532 | ||
5533 | ; | |
5534 | return 0; | |
5535 | } | |
6de9cd9a DN |
5536 | _ACEOF |
5537 | rm -f conftest.$ac_objext | |
5538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5539 | (eval $ac_compile) 2>conftest.er1 | |
5540 | ac_status=$? | |
5541 | grep -v '^ *+' conftest.er1 >conftest.err | |
5542 | rm -f conftest.er1 | |
5543 | cat conftest.err >&5 | |
5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5545 | (exit $ac_status); } && | |
57255173 PB |
5546 | { ac_try='test -z "$ac_c_werror_flag" |
5547 | || test ! -s conftest.err' | |
6de9cd9a DN |
5548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5549 | (eval $ac_try) 2>&5 | |
5550 | ac_status=$? | |
5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5552 | (exit $ac_status); }; } && | |
5553 | { ac_try='test -s conftest.$ac_objext' | |
5554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5555 | (eval $ac_try) 2>&5 | |
5556 | ac_status=$? | |
5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5558 | (exit $ac_status); }; }; then | |
96b8a615 | 5559 | ac_cv_header_stdc=yes |
6de9cd9a DN |
5560 | else |
5561 | echo "$as_me: failed program was:" >&5 | |
5562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5563 | ||
96b8a615 | 5564 | ac_cv_header_stdc=no |
6de9cd9a DN |
5565 | fi |
5566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a | 5567 | |
96b8a615 AJ |
5568 | if test $ac_cv_header_stdc = yes; then |
5569 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5570 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5571 | /* confdefs.h. */ |
5572 | _ACEOF | |
5573 | cat confdefs.h >>conftest.$ac_ext | |
5574 | cat >>conftest.$ac_ext <<_ACEOF | |
5575 | /* end confdefs.h. */ | |
96b8a615 AJ |
5576 | #include <string.h> |
5577 | ||
6de9cd9a | 5578 | _ACEOF |
96b8a615 AJ |
5579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5580 | $EGREP "memchr" >/dev/null 2>&1; then | |
5581 | : | |
6de9cd9a | 5582 | else |
96b8a615 | 5583 | ac_cv_header_stdc=no |
6de9cd9a | 5584 | fi |
96b8a615 AJ |
5585 | rm -f conftest* |
5586 | ||
5587 | fi | |
5588 | ||
5589 | if test $ac_cv_header_stdc = yes; then | |
5590 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5591 | cat >conftest.$ac_ext <<_ACEOF | |
5592 | /* confdefs.h. */ | |
5593 | _ACEOF | |
5594 | cat confdefs.h >>conftest.$ac_ext | |
5595 | cat >>conftest.$ac_ext <<_ACEOF | |
5596 | /* end confdefs.h. */ | |
5597 | #include <stdlib.h> | |
5598 | ||
5599 | _ACEOF | |
5600 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5601 | $EGREP "free" >/dev/null 2>&1; then | |
5602 | : | |
6de9cd9a | 5603 | else |
96b8a615 AJ |
5604 | ac_cv_header_stdc=no |
5605 | fi | |
5606 | rm -f conftest* | |
5607 | ||
5608 | fi | |
5609 | ||
5610 | if test $ac_cv_header_stdc = yes; then | |
5611 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5612 | if test "$cross_compiling" = yes; then | |
5613 | : | |
5614 | else | |
5615 | cat >conftest.$ac_ext <<_ACEOF | |
5616 | /* confdefs.h. */ | |
5617 | _ACEOF | |
5618 | cat confdefs.h >>conftest.$ac_ext | |
5619 | cat >>conftest.$ac_ext <<_ACEOF | |
5620 | /* end confdefs.h. */ | |
5621 | #include <ctype.h> | |
5622 | #if ((' ' & 0x0FF) == 0x020) | |
5623 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5624 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5625 | #else | |
5626 | # define ISLOWER(c) \ | |
5627 | (('a' <= (c) && (c) <= 'i') \ | |
5628 | || ('j' <= (c) && (c) <= 'r') \ | |
5629 | || ('s' <= (c) && (c) <= 'z')) | |
5630 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5631 | #endif | |
5632 | ||
5633 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5634 | int | |
5635 | main () | |
5636 | { | |
5637 | int i; | |
5638 | for (i = 0; i < 256; i++) | |
5639 | if (XOR (islower (i), ISLOWER (i)) | |
5640 | || toupper (i) != TOUPPER (i)) | |
5641 | exit(2); | |
5642 | exit (0); | |
5643 | } | |
5644 | _ACEOF | |
5645 | rm -f conftest$ac_exeext | |
5646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5647 | (eval $ac_link) 2>&5 | |
5648 | ac_status=$? | |
5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5650 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5652 | (eval $ac_try) 2>&5 | |
5653 | ac_status=$? | |
5654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5655 | (exit $ac_status); }; }; then | |
5656 | : | |
5657 | else | |
5658 | echo "$as_me: program exited with status $ac_status" >&5 | |
5659 | echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
5660 | sed 's/^/| /' conftest.$ac_ext >&5 |
5661 | ||
96b8a615 AJ |
5662 | ( exit $ac_status ) |
5663 | ac_cv_header_stdc=no | |
6de9cd9a | 5664 | fi |
96b8a615 AJ |
5665 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5666 | fi | |
5667 | fi | |
5668 | fi | |
5669 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5670 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5671 | if test $ac_cv_header_stdc = yes; then | |
6de9cd9a | 5672 | |
96b8a615 AJ |
5673 | cat >>confdefs.h <<\_ACEOF |
5674 | #define STDC_HEADERS 1 | |
5675 | _ACEOF | |
5676 | ||
5677 | fi | |
5678 | ||
5679 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5680 | ||
5681 | ||
5682 | ||
5683 | ||
5684 | ||
5685 | ||
5686 | ||
5687 | ||
5688 | ||
5689 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5690 | inttypes.h stdint.h unistd.h | |
5691 | do | |
5692 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6de9cd9a DN |
5693 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5694 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5697 | else | |
96b8a615 AJ |
5698 | cat >conftest.$ac_ext <<_ACEOF |
5699 | /* confdefs.h. */ | |
5700 | _ACEOF | |
5701 | cat confdefs.h >>conftest.$ac_ext | |
5702 | cat >>conftest.$ac_ext <<_ACEOF | |
5703 | /* end confdefs.h. */ | |
5704 | $ac_includes_default | |
5705 | ||
5706 | #include <$ac_header> | |
5707 | _ACEOF | |
5708 | rm -f conftest.$ac_objext | |
5709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5710 | (eval $ac_compile) 2>conftest.er1 | |
5711 | ac_status=$? | |
5712 | grep -v '^ *+' conftest.er1 >conftest.err | |
5713 | rm -f conftest.er1 | |
5714 | cat conftest.err >&5 | |
5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5716 | (exit $ac_status); } && | |
57255173 PB |
5717 | { ac_try='test -z "$ac_c_werror_flag" |
5718 | || test ! -s conftest.err' | |
96b8a615 AJ |
5719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5720 | (eval $ac_try) 2>&5 | |
5721 | ac_status=$? | |
5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5723 | (exit $ac_status); }; } && | |
5724 | { ac_try='test -s conftest.$ac_objext' | |
5725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5726 | (eval $ac_try) 2>&5 | |
5727 | ac_status=$? | |
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5729 | (exit $ac_status); }; }; then | |
5730 | eval "$as_ac_Header=yes" | |
5731 | else | |
5732 | echo "$as_me: failed program was:" >&5 | |
5733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5734 | ||
5735 | eval "$as_ac_Header=no" | |
5736 | fi | |
5737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a DN |
5738 | fi |
5739 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5740 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a DN |
5741 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5742 | cat >>confdefs.h <<_ACEOF | |
5743 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5744 | _ACEOF | |
5745 | ||
5746 | fi | |
5747 | ||
5748 | done | |
5749 | ||
96b8a615 | 5750 | |
96b8a615 AJ |
5751 | echo "$as_me:$LINENO: checking for off_t" >&5 |
5752 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5753 | if test "${ac_cv_type_off_t+set}" = set; then | |
6de9cd9a DN |
5754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5755 | else | |
96b8a615 AJ |
5756 | cat >conftest.$ac_ext <<_ACEOF |
5757 | /* confdefs.h. */ | |
5758 | _ACEOF | |
5759 | cat confdefs.h >>conftest.$ac_ext | |
5760 | cat >>conftest.$ac_ext <<_ACEOF | |
5761 | /* end confdefs.h. */ | |
5762 | $ac_includes_default | |
6de9cd9a DN |
5763 | int |
5764 | main () | |
5765 | { | |
96b8a615 AJ |
5766 | if ((off_t *) 0) |
5767 | return 0; | |
5768 | if (sizeof (off_t)) | |
5769 | return 0; | |
6de9cd9a DN |
5770 | ; |
5771 | return 0; | |
5772 | } | |
5773 | _ACEOF | |
96b8a615 AJ |
5774 | rm -f conftest.$ac_objext |
5775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5776 | (eval $ac_compile) 2>conftest.er1 | |
6de9cd9a DN |
5777 | ac_status=$? |
5778 | grep -v '^ *+' conftest.er1 >conftest.err | |
5779 | rm -f conftest.er1 | |
5780 | cat conftest.err >&5 | |
5781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5782 | (exit $ac_status); } && | |
57255173 PB |
5783 | { ac_try='test -z "$ac_c_werror_flag" |
5784 | || test ! -s conftest.err' | |
6de9cd9a DN |
5785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5786 | (eval $ac_try) 2>&5 | |
5787 | ac_status=$? | |
5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5789 | (exit $ac_status); }; } && | |
96b8a615 | 5790 | { ac_try='test -s conftest.$ac_objext' |
6de9cd9a DN |
5791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5792 | (eval $ac_try) 2>&5 | |
5793 | ac_status=$? | |
5794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5795 | (exit $ac_status); }; }; then | |
96b8a615 | 5796 | ac_cv_type_off_t=yes |
6de9cd9a DN |
5797 | else |
5798 | echo "$as_me: failed program was:" >&5 | |
5799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5800 | ||
96b8a615 | 5801 | ac_cv_type_off_t=no |
6de9cd9a | 5802 | fi |
96b8a615 | 5803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5804 | fi |
96b8a615 AJ |
5805 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5806 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5807 | if test $ac_cv_type_off_t = yes; then | |
5808 | : | |
5809 | else | |
5810 | ||
5811 | cat >>confdefs.h <<_ACEOF | |
5812 | #define off_t long | |
6de9cd9a DN |
5813 | _ACEOF |
5814 | ||
5815 | fi | |
6de9cd9a | 5816 | |
96b8a615 AJ |
5817 | |
5818 | # check header files | |
5819 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5820 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5821 | if test "${ac_cv_header_stdc+set}" = set; then | |
6de9cd9a DN |
5822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5823 | else | |
5824 | cat >conftest.$ac_ext <<_ACEOF | |
5825 | /* confdefs.h. */ | |
5826 | _ACEOF | |
5827 | cat confdefs.h >>conftest.$ac_ext | |
5828 | cat >>conftest.$ac_ext <<_ACEOF | |
5829 | /* end confdefs.h. */ | |
96b8a615 AJ |
5830 | #include <stdlib.h> |
5831 | #include <stdarg.h> | |
5832 | #include <string.h> | |
5833 | #include <float.h> | |
5834 | ||
6de9cd9a DN |
5835 | int |
5836 | main () | |
5837 | { | |
96b8a615 | 5838 | |
6de9cd9a DN |
5839 | ; |
5840 | return 0; | |
5841 | } | |
5842 | _ACEOF | |
5843 | rm -f conftest.$ac_objext | |
5844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5845 | (eval $ac_compile) 2>conftest.er1 | |
5846 | ac_status=$? | |
5847 | grep -v '^ *+' conftest.er1 >conftest.err | |
5848 | rm -f conftest.er1 | |
5849 | cat conftest.err >&5 | |
5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5851 | (exit $ac_status); } && | |
57255173 PB |
5852 | { ac_try='test -z "$ac_c_werror_flag" |
5853 | || test ! -s conftest.err' | |
6de9cd9a DN |
5854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5855 | (eval $ac_try) 2>&5 | |
5856 | ac_status=$? | |
5857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5858 | (exit $ac_status); }; } && | |
5859 | { ac_try='test -s conftest.$ac_objext' | |
5860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5861 | (eval $ac_try) 2>&5 | |
5862 | ac_status=$? | |
5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5864 | (exit $ac_status); }; }; then | |
96b8a615 | 5865 | ac_cv_header_stdc=yes |
6de9cd9a DN |
5866 | else |
5867 | echo "$as_me: failed program was:" >&5 | |
5868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5869 | ||
96b8a615 | 5870 | ac_cv_header_stdc=no |
6de9cd9a DN |
5871 | fi |
5872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
96b8a615 AJ |
5873 | |
5874 | if test $ac_cv_header_stdc = yes; then | |
5875 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6de9cd9a DN |
5876 | cat >conftest.$ac_ext <<_ACEOF |
5877 | /* confdefs.h. */ | |
5878 | _ACEOF | |
5879 | cat confdefs.h >>conftest.$ac_ext | |
5880 | cat >>conftest.$ac_ext <<_ACEOF | |
5881 | /* end confdefs.h. */ | |
96b8a615 | 5882 | #include <string.h> |
6de9cd9a | 5883 | |
6de9cd9a | 5884 | _ACEOF |
96b8a615 AJ |
5885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5886 | $EGREP "memchr" >/dev/null 2>&1; then | |
5887 | : | |
6de9cd9a | 5888 | else |
96b8a615 | 5889 | ac_cv_header_stdc=no |
6de9cd9a | 5890 | fi |
96b8a615 AJ |
5891 | rm -f conftest* |
5892 | ||
6de9cd9a | 5893 | fi |
6de9cd9a | 5894 | |
96b8a615 AJ |
5895 | if test $ac_cv_header_stdc = yes; then |
5896 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5897 | cat >conftest.$ac_ext <<_ACEOF | |
5898 | /* confdefs.h. */ | |
5899 | _ACEOF | |
5900 | cat confdefs.h >>conftest.$ac_ext | |
5901 | cat >>conftest.$ac_ext <<_ACEOF | |
5902 | /* end confdefs.h. */ | |
5903 | #include <stdlib.h> | |
5904 | ||
6de9cd9a | 5905 | _ACEOF |
96b8a615 AJ |
5906 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5907 | $EGREP "free" >/dev/null 2>&1; then | |
5908 | : | |
5909 | else | |
5910 | ac_cv_header_stdc=no | |
5911 | fi | |
5912 | rm -f conftest* | |
6de9cd9a | 5913 | |
96b8a615 | 5914 | fi |
6de9cd9a | 5915 | |
96b8a615 AJ |
5916 | if test $ac_cv_header_stdc = yes; then |
5917 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5918 | if test "$cross_compiling" = yes; then | |
5919 | : | |
6de9cd9a DN |
5920 | else |
5921 | cat >conftest.$ac_ext <<_ACEOF | |
5922 | /* confdefs.h. */ | |
5923 | _ACEOF | |
5924 | cat confdefs.h >>conftest.$ac_ext | |
5925 | cat >>conftest.$ac_ext <<_ACEOF | |
5926 | /* end confdefs.h. */ | |
96b8a615 AJ |
5927 | #include <ctype.h> |
5928 | #if ((' ' & 0x0FF) == 0x020) | |
5929 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5930 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6de9cd9a | 5931 | #else |
96b8a615 AJ |
5932 | # define ISLOWER(c) \ |
5933 | (('a' <= (c) && (c) <= 'i') \ | |
5934 | || ('j' <= (c) && (c) <= 'r') \ | |
5935 | || ('s' <= (c) && (c) <= 'z')) | |
5936 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6de9cd9a DN |
5937 | #endif |
5938 | ||
96b8a615 | 5939 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6de9cd9a DN |
5940 | int |
5941 | main () | |
5942 | { | |
96b8a615 AJ |
5943 | int i; |
5944 | for (i = 0; i < 256; i++) | |
5945 | if (XOR (islower (i), ISLOWER (i)) | |
5946 | || toupper (i) != TOUPPER (i)) | |
5947 | exit(2); | |
5948 | exit (0); | |
6de9cd9a DN |
5949 | } |
5950 | _ACEOF | |
96b8a615 | 5951 | rm -f conftest$ac_exeext |
6de9cd9a | 5952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
96b8a615 | 5953 | (eval $ac_link) 2>&5 |
6de9cd9a DN |
5954 | ac_status=$? |
5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 | 5956 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6de9cd9a DN |
5957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5958 | (eval $ac_try) 2>&5 | |
5959 | ac_status=$? | |
96b8a615 AJ |
5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5961 | (exit $ac_status); }; }; then | |
5962 | : | |
6de9cd9a | 5963 | else |
96b8a615 AJ |
5964 | echo "$as_me: program exited with status $ac_status" >&5 |
5965 | echo "$as_me: failed program was:" >&5 | |
5966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 5967 | |
96b8a615 AJ |
5968 | ( exit $ac_status ) |
5969 | ac_cv_header_stdc=no | |
6de9cd9a | 5970 | fi |
96b8a615 | 5971 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6de9cd9a DN |
5972 | fi |
5973 | fi | |
6de9cd9a | 5974 | fi |
96b8a615 AJ |
5975 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5976 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5977 | if test $ac_cv_header_stdc = yes; then | |
6de9cd9a | 5978 | |
96b8a615 AJ |
5979 | cat >>confdefs.h <<\_ACEOF |
5980 | #define STDC_HEADERS 1 | |
5981 | _ACEOF | |
6de9cd9a DN |
5982 | |
5983 | fi | |
5984 | ||
6de9cd9a DN |
5985 | |
5986 | ||
6de9cd9a | 5987 | |
6de9cd9a DN |
5988 | |
5989 | ||
5990 | ||
f77b6ca3 FXC |
5991 | |
5992 | for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h | |
96b8a615 AJ |
5993 | do |
5994 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6000 | fi | |
6001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6003 | else |
96b8a615 AJ |
6004 | # Is the header compilable? |
6005 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6006 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6007 | cat >conftest.$ac_ext <<_ACEOF | |
6008 | /* confdefs.h. */ | |
6009 | _ACEOF | |
6010 | cat confdefs.h >>conftest.$ac_ext | |
6011 | cat >>conftest.$ac_ext <<_ACEOF | |
6012 | /* end confdefs.h. */ | |
6013 | $ac_includes_default | |
6014 | #include <$ac_header> | |
6015 | _ACEOF | |
6016 | rm -f conftest.$ac_objext | |
6017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6018 | (eval $ac_compile) 2>conftest.er1 | |
6019 | ac_status=$? | |
6020 | grep -v '^ *+' conftest.er1 >conftest.err | |
6021 | rm -f conftest.er1 | |
6022 | cat conftest.err >&5 | |
6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6024 | (exit $ac_status); } && | |
57255173 PB |
6025 | { ac_try='test -z "$ac_c_werror_flag" |
6026 | || test ! -s conftest.err' | |
96b8a615 AJ |
6027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6028 | (eval $ac_try) 2>&5 | |
6029 | ac_status=$? | |
6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6031 | (exit $ac_status); }; } && | |
6032 | { ac_try='test -s conftest.$ac_objext' | |
6033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6034 | (eval $ac_try) 2>&5 | |
6035 | ac_status=$? | |
6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6037 | (exit $ac_status); }; }; then | |
6038 | ac_header_compiler=yes | |
6de9cd9a | 6039 | else |
96b8a615 AJ |
6040 | echo "$as_me: failed program was:" >&5 |
6041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6042 | ||
6043 | ac_header_compiler=no | |
6de9cd9a | 6044 | fi |
96b8a615 AJ |
6045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6046 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6047 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6048 | ||
6049 | # Is the header present? | |
6050 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6051 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6052 | cat >conftest.$ac_ext <<_ACEOF | |
6053 | /* confdefs.h. */ | |
6054 | _ACEOF | |
6055 | cat confdefs.h >>conftest.$ac_ext | |
6056 | cat >>conftest.$ac_ext <<_ACEOF | |
6057 | /* end confdefs.h. */ | |
6058 | #include <$ac_header> | |
6059 | _ACEOF | |
6060 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6061 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6062 | ac_status=$? | |
6063 | grep -v '^ *+' conftest.er1 >conftest.err | |
6064 | rm -f conftest.er1 | |
6065 | cat conftest.err >&5 | |
6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6067 | (exit $ac_status); } >/dev/null; then | |
6068 | if test -s conftest.err; then | |
6069 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6070 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6071 | else | |
6072 | ac_cpp_err= | |
6073 | fi | |
6de9cd9a | 6074 | else |
96b8a615 | 6075 | ac_cpp_err=yes |
6de9cd9a | 6076 | fi |
96b8a615 AJ |
6077 | if test -z "$ac_cpp_err"; then |
6078 | ac_header_preproc=yes | |
6de9cd9a | 6079 | else |
96b8a615 AJ |
6080 | echo "$as_me: failed program was:" >&5 |
6081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6082 | ||
6083 | ac_header_preproc=no | |
6de9cd9a | 6084 | fi |
96b8a615 AJ |
6085 | rm -f conftest.err conftest.$ac_ext |
6086 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6087 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6088 | ||
6089 | # So? What about this header? | |
6090 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6091 | yes:no: ) | |
6092 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6093 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6094 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6095 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6096 | ac_header_preproc=yes | |
6097 | ;; | |
6098 | no:yes:* ) | |
6099 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6100 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6101 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6102 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6103 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6104 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6105 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6106 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6107 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6108 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6109 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6110 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6111 | ( | |
6112 | cat <<\_ASBOX | |
6113 | ## ------------------------------------------------------ ## | |
6114 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6115 | ## ------------------------------------------------------ ## | |
6116 | _ASBOX | |
6117 | ) | | |
6118 | sed "s/^/$as_me: WARNING: /" >&2 | |
6119 | ;; | |
6120 | esac | |
6121 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a DN |
6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6125 | else | |
96b8a615 | 6126 | eval "$as_ac_Header=\$ac_header_preproc" |
6de9cd9a | 6127 | fi |
96b8a615 AJ |
6128 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6129 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6130 | |
96b8a615 AJ |
6131 | fi |
6132 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6133 | cat >>confdefs.h <<_ACEOF | |
6134 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6135 | _ACEOF | |
6de9cd9a | 6136 | |
6de9cd9a | 6137 | fi |
6de9cd9a | 6138 | |
96b8a615 AJ |
6139 | done |
6140 | ||
6141 | ||
6142 | ||
6143 | ||
6144 | ||
6145 | ||
6146 | for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h | |
6147 | do | |
6148 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6150 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f596fc98 AL |
6151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6154 | fi | |
6155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6156 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6157 | else | |
6158 | # Is the header compilable? | |
6159 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6160 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6161 | cat >conftest.$ac_ext <<_ACEOF | |
6162 | /* confdefs.h. */ | |
6163 | _ACEOF | |
6164 | cat confdefs.h >>conftest.$ac_ext | |
6165 | cat >>conftest.$ac_ext <<_ACEOF | |
6166 | /* end confdefs.h. */ | |
6167 | $ac_includes_default | |
6168 | #include <$ac_header> | |
6169 | _ACEOF | |
6170 | rm -f conftest.$ac_objext | |
6171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6172 | (eval $ac_compile) 2>conftest.er1 | |
6173 | ac_status=$? | |
6174 | grep -v '^ *+' conftest.er1 >conftest.err | |
6175 | rm -f conftest.er1 | |
6176 | cat conftest.err >&5 | |
6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6178 | (exit $ac_status); } && | |
57255173 PB |
6179 | { ac_try='test -z "$ac_c_werror_flag" |
6180 | || test ! -s conftest.err' | |
f596fc98 AL |
6181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6182 | (eval $ac_try) 2>&5 | |
6183 | ac_status=$? | |
6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6185 | (exit $ac_status); }; } && | |
6186 | { ac_try='test -s conftest.$ac_objext' | |
6187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6188 | (eval $ac_try) 2>&5 | |
6189 | ac_status=$? | |
6190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6191 | (exit $ac_status); }; }; then | |
6192 | ac_header_compiler=yes | |
6193 | else | |
6194 | echo "$as_me: failed program was:" >&5 | |
6195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6196 | ||
6197 | ac_header_compiler=no | |
6198 | fi | |
6199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6200 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6201 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6202 | ||
6203 | # Is the header present? | |
6204 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6205 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6206 | cat >conftest.$ac_ext <<_ACEOF | |
6207 | /* confdefs.h. */ | |
6208 | _ACEOF | |
6209 | cat confdefs.h >>conftest.$ac_ext | |
6210 | cat >>conftest.$ac_ext <<_ACEOF | |
6211 | /* end confdefs.h. */ | |
6212 | #include <$ac_header> | |
6213 | _ACEOF | |
6214 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6215 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6216 | ac_status=$? | |
6217 | grep -v '^ *+' conftest.er1 >conftest.err | |
6218 | rm -f conftest.er1 | |
6219 | cat conftest.err >&5 | |
6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6221 | (exit $ac_status); } >/dev/null; then | |
6222 | if test -s conftest.err; then | |
6223 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6224 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6225 | else | |
6226 | ac_cpp_err= | |
6227 | fi | |
6228 | else | |
6229 | ac_cpp_err=yes | |
6230 | fi | |
6231 | if test -z "$ac_cpp_err"; then | |
6232 | ac_header_preproc=yes | |
6233 | else | |
6234 | echo "$as_me: failed program was:" >&5 | |
6235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6236 | ||
6237 | ac_header_preproc=no | |
6238 | fi | |
6239 | rm -f conftest.err conftest.$ac_ext | |
6240 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6241 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6242 | ||
6243 | # So? What about this header? | |
6244 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6245 | yes:no: ) | |
6246 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6247 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6248 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6249 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6250 | ac_header_preproc=yes | |
6251 | ;; | |
6252 | no:yes:* ) | |
6253 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6254 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6255 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6256 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6257 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6258 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6259 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6260 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6262 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6263 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6264 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6265 | ( | |
6266 | cat <<\_ASBOX | |
6267 | ## ------------------------------------------------------ ## | |
6268 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6269 | ## ------------------------------------------------------ ## | |
6270 | _ASBOX | |
6271 | ) | | |
6272 | sed "s/^/$as_me: WARNING: /" >&2 | |
6273 | ;; | |
6274 | esac | |
6275 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6277 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6279 | else | |
6280 | eval "$as_ac_Header=\$ac_header_preproc" | |
6281 | fi | |
6282 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6283 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6284 | ||
6285 | fi | |
6286 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6287 | cat >>confdefs.h <<_ACEOF | |
6288 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6289 | _ACEOF | |
6290 | ||
6291 | fi | |
6292 | ||
6293 | done | |
6294 | ||
6295 | ||
df65f093 SK |
6296 | |
6297 | ||
6e4d9244 | 6298 | |
a119fc1c FXC |
6299 | |
6300 | for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h | |
3b14f664 FXC |
6301 | do |
6302 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6308 | fi | |
6309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6311 | else | |
6312 | # Is the header compilable? | |
6313 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6314 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6315 | cat >conftest.$ac_ext <<_ACEOF | |
6316 | /* confdefs.h. */ | |
6317 | _ACEOF | |
6318 | cat confdefs.h >>conftest.$ac_ext | |
6319 | cat >>conftest.$ac_ext <<_ACEOF | |
6320 | /* end confdefs.h. */ | |
6321 | $ac_includes_default | |
6322 | #include <$ac_header> | |
6323 | _ACEOF | |
6324 | rm -f conftest.$ac_objext | |
6325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6326 | (eval $ac_compile) 2>conftest.er1 | |
6327 | ac_status=$? | |
6328 | grep -v '^ *+' conftest.er1 >conftest.err | |
6329 | rm -f conftest.er1 | |
6330 | cat conftest.err >&5 | |
6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6332 | (exit $ac_status); } && | |
57255173 PB |
6333 | { ac_try='test -z "$ac_c_werror_flag" |
6334 | || test ! -s conftest.err' | |
3b14f664 FXC |
6335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6336 | (eval $ac_try) 2>&5 | |
6337 | ac_status=$? | |
6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6339 | (exit $ac_status); }; } && | |
6340 | { ac_try='test -s conftest.$ac_objext' | |
6341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6342 | (eval $ac_try) 2>&5 | |
6343 | ac_status=$? | |
6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6345 | (exit $ac_status); }; }; then | |
6346 | ac_header_compiler=yes | |
6347 | else | |
6348 | echo "$as_me: failed program was:" >&5 | |
6349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6350 | ||
6351 | ac_header_compiler=no | |
6352 | fi | |
6353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6354 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6355 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6356 | ||
6357 | # Is the header present? | |
6358 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6359 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6360 | cat >conftest.$ac_ext <<_ACEOF | |
6361 | /* confdefs.h. */ | |
6362 | _ACEOF | |
6363 | cat confdefs.h >>conftest.$ac_ext | |
6364 | cat >>conftest.$ac_ext <<_ACEOF | |
6365 | /* end confdefs.h. */ | |
6366 | #include <$ac_header> | |
6367 | _ACEOF | |
6368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6370 | ac_status=$? | |
6371 | grep -v '^ *+' conftest.er1 >conftest.err | |
6372 | rm -f conftest.er1 | |
6373 | cat conftest.err >&5 | |
6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6375 | (exit $ac_status); } >/dev/null; then | |
6376 | if test -s conftest.err; then | |
6377 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6378 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6379 | else | |
6380 | ac_cpp_err= | |
6381 | fi | |
6382 | else | |
6383 | ac_cpp_err=yes | |
6384 | fi | |
6385 | if test -z "$ac_cpp_err"; then | |
6386 | ac_header_preproc=yes | |
6387 | else | |
6388 | echo "$as_me: failed program was:" >&5 | |
6389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6390 | ||
6391 | ac_header_preproc=no | |
6392 | fi | |
6393 | rm -f conftest.err conftest.$ac_ext | |
6394 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6395 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6396 | ||
6397 | # So? What about this header? | |
6398 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6399 | yes:no: ) | |
6400 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6401 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6403 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6404 | ac_header_preproc=yes | |
6405 | ;; | |
6406 | no:yes:* ) | |
6407 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6408 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6409 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6410 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6411 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6412 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6413 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6414 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6416 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6417 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6418 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6419 | ( | |
6420 | cat <<\_ASBOX | |
6421 | ## ------------------------------------------------------ ## | |
6422 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6423 | ## ------------------------------------------------------ ## | |
6424 | _ASBOX | |
6425 | ) | | |
6426 | sed "s/^/$as_me: WARNING: /" >&2 | |
6427 | ;; | |
6428 | esac | |
6429 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6433 | else | |
6434 | eval "$as_ac_Header=\$ac_header_preproc" | |
6435 | fi | |
6436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6437 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6438 | ||
6439 | fi | |
6440 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6441 | cat >>confdefs.h <<_ACEOF | |
6442 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6443 | _ACEOF | |
6444 | ||
6445 | fi | |
6446 | ||
6447 | done | |
6448 | ||
6449 | ||
6450 | ||
6451 | ||
6452 | for ac_header in fenv.h fptrap.h float.h | |
f596fc98 AL |
6453 | do |
6454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6456 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
96b8a615 AJ |
6457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a | 6459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
96b8a615 AJ |
6460 | fi |
6461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6462 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6463 | else |
96b8a615 AJ |
6464 | # Is the header compilable? |
6465 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6466 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6467 | cat >conftest.$ac_ext <<_ACEOF | |
6468 | /* confdefs.h. */ | |
6469 | _ACEOF | |
6470 | cat confdefs.h >>conftest.$ac_ext | |
6471 | cat >>conftest.$ac_ext <<_ACEOF | |
6472 | /* end confdefs.h. */ | |
6473 | $ac_includes_default | |
6474 | #include <$ac_header> | |
6475 | _ACEOF | |
6476 | rm -f conftest.$ac_objext | |
6477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6478 | (eval $ac_compile) 2>conftest.er1 | |
6479 | ac_status=$? | |
6480 | grep -v '^ *+' conftest.er1 >conftest.err | |
6481 | rm -f conftest.er1 | |
6482 | cat conftest.err >&5 | |
6483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6484 | (exit $ac_status); } && | |
57255173 PB |
6485 | { ac_try='test -z "$ac_c_werror_flag" |
6486 | || test ! -s conftest.err' | |
96b8a615 AJ |
6487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6488 | (eval $ac_try) 2>&5 | |
6489 | ac_status=$? | |
6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6491 | (exit $ac_status); }; } && | |
6492 | { ac_try='test -s conftest.$ac_objext' | |
6493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6494 | (eval $ac_try) 2>&5 | |
6495 | ac_status=$? | |
6496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6497 | (exit $ac_status); }; }; then | |
6498 | ac_header_compiler=yes | |
6de9cd9a | 6499 | else |
96b8a615 AJ |
6500 | echo "$as_me: failed program was:" >&5 |
6501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6502 | |
96b8a615 AJ |
6503 | ac_header_compiler=no |
6504 | fi | |
6505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6506 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6507 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6de9cd9a | 6508 | |
96b8a615 AJ |
6509 | # Is the header present? |
6510 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6511 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6512 | cat >conftest.$ac_ext <<_ACEOF | |
6513 | /* confdefs.h. */ | |
6514 | _ACEOF | |
6515 | cat confdefs.h >>conftest.$ac_ext | |
6516 | cat >>conftest.$ac_ext <<_ACEOF | |
6517 | /* end confdefs.h. */ | |
6518 | #include <$ac_header> | |
6519 | _ACEOF | |
6520 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6521 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6522 | ac_status=$? | |
6523 | grep -v '^ *+' conftest.er1 >conftest.err | |
6524 | rm -f conftest.er1 | |
6525 | cat conftest.err >&5 | |
6526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6527 | (exit $ac_status); } >/dev/null; then | |
6528 | if test -s conftest.err; then | |
6529 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6530 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6531 | else | |
6532 | ac_cpp_err= | |
6533 | fi | |
6de9cd9a | 6534 | else |
96b8a615 | 6535 | ac_cpp_err=yes |
6de9cd9a | 6536 | fi |
96b8a615 AJ |
6537 | if test -z "$ac_cpp_err"; then |
6538 | ac_header_preproc=yes | |
6de9cd9a | 6539 | else |
96b8a615 AJ |
6540 | echo "$as_me: failed program was:" >&5 |
6541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6542 | |
96b8a615 AJ |
6543 | ac_header_preproc=no |
6544 | fi | |
6545 | rm -f conftest.err conftest.$ac_ext | |
6546 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6547 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6de9cd9a | 6548 | |
96b8a615 AJ |
6549 | # So? What about this header? |
6550 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6551 | yes:no: ) | |
6552 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6553 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6554 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6555 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6556 | ac_header_preproc=yes | |
6de9cd9a | 6557 | ;; |
96b8a615 AJ |
6558 | no:yes:* ) |
6559 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6560 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6561 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6562 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6563 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6564 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6565 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6566 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6568 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6569 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6570 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6571 | ( | |
6572 | cat <<\_ASBOX | |
6573 | ## ------------------------------------------------------ ## | |
6574 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6575 | ## ------------------------------------------------------ ## | |
6576 | _ASBOX | |
6577 | ) | | |
6578 | sed "s/^/$as_me: WARNING: /" >&2 | |
6de9cd9a | 6579 | ;; |
96b8a615 AJ |
6580 | esac |
6581 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6585 | else | |
6586 | eval "$as_ac_Header=\$ac_header_preproc" | |
6587 | fi | |
6588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6590 | |
96b8a615 AJ |
6591 | fi |
6592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6593 | cat >>confdefs.h <<_ACEOF | |
6594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6595 | _ACEOF | |
6de9cd9a | 6596 | |
96b8a615 | 6597 | fi |
6de9cd9a | 6598 | |
96b8a615 | 6599 | done |
6de9cd9a | 6600 | |
96b8a615 AJ |
6601 | if test "${ac_cv_header_complex_h+set}" = set; then |
6602 | echo "$as_me:$LINENO: checking for complex.h" >&5 | |
6603 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6604 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6606 | fi | |
6607 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6608 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
6609 | else | |
6610 | # Is the header compilable? | |
6611 | echo "$as_me:$LINENO: checking complex.h usability" >&5 | |
6612 | echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6 | |
6613 | cat >conftest.$ac_ext <<_ACEOF | |
6614 | /* confdefs.h. */ | |
6615 | _ACEOF | |
6616 | cat confdefs.h >>conftest.$ac_ext | |
6617 | cat >>conftest.$ac_ext <<_ACEOF | |
6618 | /* end confdefs.h. */ | |
6619 | $ac_includes_default | |
6620 | #include <complex.h> | |
6621 | _ACEOF | |
6622 | rm -f conftest.$ac_objext | |
6623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6624 | (eval $ac_compile) 2>conftest.er1 | |
6625 | ac_status=$? | |
6626 | grep -v '^ *+' conftest.er1 >conftest.err | |
6627 | rm -f conftest.er1 | |
6628 | cat conftest.err >&5 | |
6629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6630 | (exit $ac_status); } && | |
57255173 PB |
6631 | { ac_try='test -z "$ac_c_werror_flag" |
6632 | || test ! -s conftest.err' | |
96b8a615 AJ |
6633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6634 | (eval $ac_try) 2>&5 | |
6635 | ac_status=$? | |
6636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6637 | (exit $ac_status); }; } && | |
6638 | { ac_try='test -s conftest.$ac_objext' | |
6639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6640 | (eval $ac_try) 2>&5 | |
6641 | ac_status=$? | |
6642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6643 | (exit $ac_status); }; }; then | |
6644 | ac_header_compiler=yes | |
6645 | else | |
6646 | echo "$as_me: failed program was:" >&5 | |
6647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6648 | |
96b8a615 AJ |
6649 | ac_header_compiler=no |
6650 | fi | |
6651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6652 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6653 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6de9cd9a | 6654 | |
96b8a615 AJ |
6655 | # Is the header present? |
6656 | echo "$as_me:$LINENO: checking complex.h presence" >&5 | |
6657 | echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6 | |
6658 | cat >conftest.$ac_ext <<_ACEOF | |
6659 | /* confdefs.h. */ | |
6660 | _ACEOF | |
6661 | cat confdefs.h >>conftest.$ac_ext | |
6662 | cat >>conftest.$ac_ext <<_ACEOF | |
6663 | /* end confdefs.h. */ | |
6664 | #include <complex.h> | |
6665 | _ACEOF | |
6666 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6667 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6668 | ac_status=$? | |
6669 | grep -v '^ *+' conftest.er1 >conftest.err | |
6670 | rm -f conftest.er1 | |
6671 | cat conftest.err >&5 | |
6672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6673 | (exit $ac_status); } >/dev/null; then | |
6674 | if test -s conftest.err; then | |
6675 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6676 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6de9cd9a | 6677 | else |
96b8a615 | 6678 | ac_cpp_err= |
6de9cd9a | 6679 | fi |
96b8a615 AJ |
6680 | else |
6681 | ac_cpp_err=yes | |
6682 | fi | |
6683 | if test -z "$ac_cpp_err"; then | |
6684 | ac_header_preproc=yes | |
6685 | else | |
6686 | echo "$as_me: failed program was:" >&5 | |
6687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6688 | |
96b8a615 AJ |
6689 | ac_header_preproc=no |
6690 | fi | |
6691 | rm -f conftest.err conftest.$ac_ext | |
6692 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6693 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6de9cd9a | 6694 | |
96b8a615 AJ |
6695 | # So? What about this header? |
6696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6697 | yes:no: ) | |
6698 | { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6699 | echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6700 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5 | |
6701 | echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;} | |
6702 | ac_header_preproc=yes | |
6de9cd9a | 6703 | ;; |
96b8a615 AJ |
6704 | no:yes:* ) |
6705 | { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5 | |
6706 | echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;} | |
6707 | { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5 | |
6708 | echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;} | |
6709 | { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5 | |
6710 | echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;} | |
6711 | { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
6712 | echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
6713 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5 | |
6714 | echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;} | |
6715 | { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5 | |
6716 | echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;} | |
6717 | ( | |
6718 | cat <<\_ASBOX | |
6719 | ## ------------------------------------------------------ ## | |
6720 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6721 | ## ------------------------------------------------------ ## | |
6722 | _ASBOX | |
6723 | ) | | |
6724 | sed "s/^/$as_me: WARNING: /" >&2 | |
6de9cd9a | 6725 | ;; |
6de9cd9a | 6726 | esac |
96b8a615 AJ |
6727 | echo "$as_me:$LINENO: checking for complex.h" >&5 |
6728 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6729 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6731 | else | |
6732 | ac_cv_header_complex_h=$ac_header_preproc | |
6733 | fi | |
6734 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6735 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
6de9cd9a DN |
6736 | |
6737 | fi | |
96b8a615 | 6738 | if test $ac_cv_header_complex_h = yes; then |
6de9cd9a | 6739 | |
96b8a615 AJ |
6740 | cat >>confdefs.h <<\_ACEOF |
6741 | #define HAVE_COMPLEX_H 1 | |
6742 | _ACEOF | |
6de9cd9a | 6743 | |
96b8a615 | 6744 | fi |
6de9cd9a DN |
6745 | |
6746 | ||
6de9cd9a | 6747 | |
4c4b3eb0 PB |
6748 | |
6749 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
6750 | ||
6751 | acx_cv_header_stdint=stddef.h | |
6752 | acx_cv_header_stdint_kind="(already complete)" | |
6753 | for i in stdint.h $inttype_headers; do | |
6754 | unset ac_cv_type_uintptr_t | |
6755 | unset ac_cv_type_uintmax_t | |
6756 | unset ac_cv_type_int_least32_t | |
6757 | unset ac_cv_type_int_fast32_t | |
6758 | unset ac_cv_type_uint64_t | |
6759 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
6760 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 | |
6761 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
6762 | if test "${ac_cv_type_uintmax_t+set}" = set; then | |
6763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6764 | else | |
6765 | cat >conftest.$ac_ext <<_ACEOF | |
6766 | /* confdefs.h. */ | |
6767 | _ACEOF | |
6768 | cat confdefs.h >>conftest.$ac_ext | |
6769 | cat >>conftest.$ac_ext <<_ACEOF | |
6770 | /* end confdefs.h. */ | |
6771 | #include <sys/types.h> | |
6772 | #include <$i> | |
6773 | ||
6774 | int | |
6775 | main () | |
6776 | { | |
6777 | if ((uintmax_t *) 0) | |
6778 | return 0; | |
6779 | if (sizeof (uintmax_t)) | |
6780 | return 0; | |
6781 | ; | |
6782 | return 0; | |
6783 | } | |
6784 | _ACEOF | |
6785 | rm -f conftest.$ac_objext | |
6786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6787 | (eval $ac_compile) 2>conftest.er1 | |
6788 | ac_status=$? | |
6789 | grep -v '^ *+' conftest.er1 >conftest.err | |
6790 | rm -f conftest.er1 | |
6791 | cat conftest.err >&5 | |
6792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6793 | (exit $ac_status); } && | |
57255173 PB |
6794 | { ac_try='test -z "$ac_c_werror_flag" |
6795 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
6796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6797 | (eval $ac_try) 2>&5 | |
6798 | ac_status=$? | |
6799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6800 | (exit $ac_status); }; } && | |
6801 | { ac_try='test -s conftest.$ac_objext' | |
6802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6803 | (eval $ac_try) 2>&5 | |
6804 | ac_status=$? | |
6805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6806 | (exit $ac_status); }; }; then | |
6807 | ac_cv_type_uintmax_t=yes | |
6808 | else | |
6809 | echo "$as_me: failed program was:" >&5 | |
6810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6811 | ||
6812 | ac_cv_type_uintmax_t=no | |
6813 | fi | |
6814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6815 | fi | |
6816 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | |
6817 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
6818 | if test $ac_cv_type_uintmax_t = yes; then | |
6819 | acx_cv_header_stdint=$i | |
6820 | else | |
6821 | continue | |
6822 | fi | |
6823 | ||
6824 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
6825 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
6826 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
6827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6828 | else | |
6829 | cat >conftest.$ac_ext <<_ACEOF | |
6830 | /* confdefs.h. */ | |
6831 | _ACEOF | |
6832 | cat confdefs.h >>conftest.$ac_ext | |
6833 | cat >>conftest.$ac_ext <<_ACEOF | |
6834 | /* end confdefs.h. */ | |
6835 | #include <sys/types.h> | |
6836 | #include <$i> | |
6837 | ||
6838 | int | |
6839 | main () | |
6840 | { | |
6841 | if ((uintptr_t *) 0) | |
6842 | return 0; | |
6843 | if (sizeof (uintptr_t)) | |
6844 | return 0; | |
6845 | ; | |
6846 | return 0; | |
6847 | } | |
6848 | _ACEOF | |
6849 | rm -f conftest.$ac_objext | |
6850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6851 | (eval $ac_compile) 2>conftest.er1 | |
6852 | ac_status=$? | |
6853 | grep -v '^ *+' conftest.er1 >conftest.err | |
6854 | rm -f conftest.er1 | |
6855 | cat conftest.err >&5 | |
6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6857 | (exit $ac_status); } && | |
57255173 PB |
6858 | { ac_try='test -z "$ac_c_werror_flag" |
6859 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
6860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6861 | (eval $ac_try) 2>&5 | |
6862 | ac_status=$? | |
6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6864 | (exit $ac_status); }; } && | |
6865 | { ac_try='test -s conftest.$ac_objext' | |
6866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6867 | (eval $ac_try) 2>&5 | |
6868 | ac_status=$? | |
6869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6870 | (exit $ac_status); }; }; then | |
6871 | ac_cv_type_uintptr_t=yes | |
6872 | else | |
6873 | echo "$as_me: failed program was:" >&5 | |
6874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6875 | ||
6876 | ac_cv_type_uintptr_t=no | |
6877 | fi | |
6878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6879 | fi | |
6880 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
6881 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
6882 | if test $ac_cv_type_uintptr_t = yes; then | |
6883 | : | |
6884 | else | |
6885 | acx_cv_header_stdint_kind="(mostly complete)" | |
6886 | fi | |
6887 | ||
6888 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 | |
6889 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
6890 | if test "${ac_cv_type_int_least32_t+set}" = set; then | |
6891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6892 | else | |
6893 | cat >conftest.$ac_ext <<_ACEOF | |
6894 | /* confdefs.h. */ | |
6895 | _ACEOF | |
6896 | cat confdefs.h >>conftest.$ac_ext | |
6897 | cat >>conftest.$ac_ext <<_ACEOF | |
6898 | /* end confdefs.h. */ | |
6899 | #include <sys/types.h> | |
6900 | #include <$i> | |
6901 | ||
6902 | int | |
6903 | main () | |
6904 | { | |
6905 | if ((int_least32_t *) 0) | |
6906 | return 0; | |
6907 | if (sizeof (int_least32_t)) | |
6908 | return 0; | |
6909 | ; | |
6910 | return 0; | |
6911 | } | |
6912 | _ACEOF | |
6913 | rm -f conftest.$ac_objext | |
6914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6915 | (eval $ac_compile) 2>conftest.er1 | |
6916 | ac_status=$? | |
6917 | grep -v '^ *+' conftest.er1 >conftest.err | |
6918 | rm -f conftest.er1 | |
6919 | cat conftest.err >&5 | |
6920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6921 | (exit $ac_status); } && | |
57255173 PB |
6922 | { ac_try='test -z "$ac_c_werror_flag" |
6923 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
6924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6925 | (eval $ac_try) 2>&5 | |
6926 | ac_status=$? | |
6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6928 | (exit $ac_status); }; } && | |
6929 | { ac_try='test -s conftest.$ac_objext' | |
6930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6931 | (eval $ac_try) 2>&5 | |
6932 | ac_status=$? | |
6933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6934 | (exit $ac_status); }; }; then | |
6935 | ac_cv_type_int_least32_t=yes | |
6936 | else | |
6937 | echo "$as_me: failed program was:" >&5 | |
6938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6939 | ||
6940 | ac_cv_type_int_least32_t=no | |
6941 | fi | |
6942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6943 | fi | |
6944 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 | |
6945 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
6946 | if test $ac_cv_type_int_least32_t = yes; then | |
6947 | : | |
6948 | else | |
6949 | acx_cv_header_stdint_kind="(mostly complete)" | |
6950 | fi | |
6951 | ||
6952 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 | |
6953 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
6954 | if test "${ac_cv_type_int_fast32_t+set}" = set; then | |
6955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6956 | else | |
6957 | cat >conftest.$ac_ext <<_ACEOF | |
6958 | /* confdefs.h. */ | |
6959 | _ACEOF | |
6960 | cat confdefs.h >>conftest.$ac_ext | |
6961 | cat >>conftest.$ac_ext <<_ACEOF | |
6962 | /* end confdefs.h. */ | |
6963 | #include <sys/types.h> | |
6964 | #include <$i> | |
6965 | ||
6966 | int | |
6967 | main () | |
6968 | { | |
6969 | if ((int_fast32_t *) 0) | |
6970 | return 0; | |
6971 | if (sizeof (int_fast32_t)) | |
6972 | return 0; | |
6973 | ; | |
6974 | return 0; | |
6975 | } | |
6976 | _ACEOF | |
6977 | rm -f conftest.$ac_objext | |
6978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6979 | (eval $ac_compile) 2>conftest.er1 | |
6980 | ac_status=$? | |
6981 | grep -v '^ *+' conftest.er1 >conftest.err | |
6982 | rm -f conftest.er1 | |
6983 | cat conftest.err >&5 | |
6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6985 | (exit $ac_status); } && | |
57255173 PB |
6986 | { ac_try='test -z "$ac_c_werror_flag" |
6987 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
6988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6989 | (eval $ac_try) 2>&5 | |
6990 | ac_status=$? | |
6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6992 | (exit $ac_status); }; } && | |
6993 | { ac_try='test -s conftest.$ac_objext' | |
6994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6995 | (eval $ac_try) 2>&5 | |
6996 | ac_status=$? | |
6997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6998 | (exit $ac_status); }; }; then | |
6999 | ac_cv_type_int_fast32_t=yes | |
7000 | else | |
7001 | echo "$as_me: failed program was:" >&5 | |
7002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7003 | ||
7004 | ac_cv_type_int_fast32_t=no | |
7005 | fi | |
7006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7007 | fi | |
7008 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 | |
7009 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
7010 | if test $ac_cv_type_int_fast32_t = yes; then | |
7011 | : | |
7012 | else | |
7013 | acx_cv_header_stdint_kind="(mostly complete)" | |
7014 | fi | |
7015 | ||
7016 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7017 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
7018 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
7019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7020 | else | |
7021 | cat >conftest.$ac_ext <<_ACEOF | |
7022 | /* confdefs.h. */ | |
7023 | _ACEOF | |
7024 | cat confdefs.h >>conftest.$ac_ext | |
7025 | cat >>conftest.$ac_ext <<_ACEOF | |
7026 | /* end confdefs.h. */ | |
7027 | #include <sys/types.h> | |
7028 | #include <$i> | |
7029 | ||
7030 | int | |
7031 | main () | |
7032 | { | |
7033 | if ((uint64_t *) 0) | |
7034 | return 0; | |
7035 | if (sizeof (uint64_t)) | |
7036 | return 0; | |
7037 | ; | |
7038 | return 0; | |
7039 | } | |
7040 | _ACEOF | |
7041 | rm -f conftest.$ac_objext | |
7042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7043 | (eval $ac_compile) 2>conftest.er1 | |
7044 | ac_status=$? | |
7045 | grep -v '^ *+' conftest.er1 >conftest.err | |
7046 | rm -f conftest.er1 | |
7047 | cat conftest.err >&5 | |
7048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7049 | (exit $ac_status); } && | |
57255173 PB |
7050 | { ac_try='test -z "$ac_c_werror_flag" |
7051 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7053 | (eval $ac_try) 2>&5 | |
7054 | ac_status=$? | |
7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7056 | (exit $ac_status); }; } && | |
7057 | { ac_try='test -s conftest.$ac_objext' | |
7058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7059 | (eval $ac_try) 2>&5 | |
7060 | ac_status=$? | |
7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7062 | (exit $ac_status); }; }; then | |
7063 | ac_cv_type_uint64_t=yes | |
7064 | else | |
7065 | echo "$as_me: failed program was:" >&5 | |
7066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7067 | ||
7068 | ac_cv_type_uint64_t=no | |
7069 | fi | |
7070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7071 | fi | |
7072 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
7073 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
7074 | if test $ac_cv_type_uint64_t = yes; then | |
7075 | : | |
7076 | else | |
7077 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
7078 | fi | |
7079 | ||
7080 | break | |
7081 | done | |
7082 | if test "$acx_cv_header_stdint" = stddef.h; then | |
28f8c9e9 | 7083 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
4c4b3eb0 | 7084 | for i in stdint.h $inttype_headers; do |
28f8c9e9 | 7085 | unset ac_cv_type_uintptr_t |
4c4b3eb0 PB |
7086 | unset ac_cv_type_uint32_t |
7087 | unset ac_cv_type_uint64_t | |
7088 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
7089 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
7090 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
7091 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
7092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7093 | else | |
7094 | cat >conftest.$ac_ext <<_ACEOF | |
7095 | /* confdefs.h. */ | |
7096 | _ACEOF | |
7097 | cat confdefs.h >>conftest.$ac_ext | |
7098 | cat >>conftest.$ac_ext <<_ACEOF | |
7099 | /* end confdefs.h. */ | |
7100 | #include <sys/types.h> | |
7101 | #include <$i> | |
7102 | ||
7103 | int | |
7104 | main () | |
7105 | { | |
7106 | if ((uint32_t *) 0) | |
7107 | return 0; | |
7108 | if (sizeof (uint32_t)) | |
7109 | return 0; | |
7110 | ; | |
7111 | return 0; | |
7112 | } | |
7113 | _ACEOF | |
7114 | rm -f conftest.$ac_objext | |
7115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7116 | (eval $ac_compile) 2>conftest.er1 | |
7117 | ac_status=$? | |
7118 | grep -v '^ *+' conftest.er1 >conftest.err | |
7119 | rm -f conftest.er1 | |
7120 | cat conftest.err >&5 | |
7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7122 | (exit $ac_status); } && | |
57255173 PB |
7123 | { ac_try='test -z "$ac_c_werror_flag" |
7124 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7126 | (eval $ac_try) 2>&5 | |
7127 | ac_status=$? | |
7128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7129 | (exit $ac_status); }; } && | |
7130 | { ac_try='test -s conftest.$ac_objext' | |
7131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7132 | (eval $ac_try) 2>&5 | |
7133 | ac_status=$? | |
7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7135 | (exit $ac_status); }; }; then | |
7136 | ac_cv_type_uint32_t=yes | |
7137 | else | |
7138 | echo "$as_me: failed program was:" >&5 | |
7139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7140 | ||
7141 | ac_cv_type_uint32_t=no | |
7142 | fi | |
7143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7144 | fi | |
7145 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
7146 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
7147 | if test $ac_cv_type_uint32_t = yes; then | |
7148 | acx_cv_header_stdint=$i | |
7149 | else | |
7150 | continue | |
7151 | fi | |
7152 | ||
7153 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7154 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
7155 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
7156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7157 | else | |
7158 | cat >conftest.$ac_ext <<_ACEOF | |
7159 | /* confdefs.h. */ | |
7160 | _ACEOF | |
7161 | cat confdefs.h >>conftest.$ac_ext | |
7162 | cat >>conftest.$ac_ext <<_ACEOF | |
7163 | /* end confdefs.h. */ | |
7164 | #include <sys/types.h> | |
7165 | #include <$i> | |
7166 | ||
7167 | int | |
7168 | main () | |
7169 | { | |
7170 | if ((uint64_t *) 0) | |
7171 | return 0; | |
7172 | if (sizeof (uint64_t)) | |
7173 | return 0; | |
7174 | ; | |
7175 | return 0; | |
7176 | } | |
7177 | _ACEOF | |
7178 | rm -f conftest.$ac_objext | |
7179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7180 | (eval $ac_compile) 2>conftest.er1 | |
7181 | ac_status=$? | |
7182 | grep -v '^ *+' conftest.er1 >conftest.err | |
7183 | rm -f conftest.er1 | |
7184 | cat conftest.err >&5 | |
7185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7186 | (exit $ac_status); } && | |
57255173 PB |
7187 | { ac_try='test -z "$ac_c_werror_flag" |
7188 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7190 | (eval $ac_try) 2>&5 | |
7191 | ac_status=$? | |
7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7193 | (exit $ac_status); }; } && | |
7194 | { ac_try='test -s conftest.$ac_objext' | |
7195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7196 | (eval $ac_try) 2>&5 | |
7197 | ac_status=$? | |
7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7199 | (exit $ac_status); }; }; then | |
7200 | ac_cv_type_uint64_t=yes | |
7201 | else | |
7202 | echo "$as_me: failed program was:" >&5 | |
7203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7204 | ||
7205 | ac_cv_type_uint64_t=no | |
7206 | fi | |
7207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7208 | fi | |
7209 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
7210 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
28f8c9e9 FXC |
7211 | |
7212 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
7213 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
7214 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
7215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
695cd757 | 7216 | else |
28f8c9e9 FXC |
7217 | cat >conftest.$ac_ext <<_ACEOF |
7218 | /* confdefs.h. */ | |
7219 | _ACEOF | |
7220 | cat confdefs.h >>conftest.$ac_ext | |
7221 | cat >>conftest.$ac_ext <<_ACEOF | |
7222 | /* end confdefs.h. */ | |
7223 | #include <sys/types.h> | |
7224 | #include <$i> | |
7225 | ||
7226 | int | |
7227 | main () | |
7228 | { | |
7229 | if ((uintptr_t *) 0) | |
7230 | return 0; | |
7231 | if (sizeof (uintptr_t)) | |
7232 | return 0; | |
7233 | ; | |
7234 | return 0; | |
7235 | } | |
7236 | _ACEOF | |
7237 | rm -f conftest.$ac_objext | |
7238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7239 | (eval $ac_compile) 2>conftest.er1 | |
7240 | ac_status=$? | |
7241 | grep -v '^ *+' conftest.er1 >conftest.err | |
7242 | rm -f conftest.er1 | |
7243 | cat conftest.err >&5 | |
7244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7245 | (exit $ac_status); } && | |
7246 | { ac_try='test -z "$ac_c_werror_flag" | |
7247 | || test ! -s conftest.err' | |
7248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7249 | (eval $ac_try) 2>&5 | |
7250 | ac_status=$? | |
7251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7252 | (exit $ac_status); }; } && | |
7253 | { ac_try='test -s conftest.$ac_objext' | |
7254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7255 | (eval $ac_try) 2>&5 | |
7256 | ac_status=$? | |
7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7258 | (exit $ac_status); }; }; then | |
7259 | ac_cv_type_uintptr_t=yes | |
7260 | else | |
7261 | echo "$as_me: failed program was:" >&5 | |
7262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7263 | ||
7264 | ac_cv_type_uintptr_t=no | |
7265 | fi | |
7266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
695cd757 | 7267 | fi |
28f8c9e9 FXC |
7268 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
7269 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4c4b3eb0 PB |
7270 | |
7271 | break | |
7272 | done | |
7273 | fi | |
7274 | if test "$acx_cv_header_stdint" = stddef.h; then | |
7275 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
7276 | for i in sys/types.h $inttype_headers; do | |
7277 | unset ac_cv_type_u_int32_t | |
7278 | unset ac_cv_type_u_int64_t | |
7279 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
7280 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
7281 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
7282 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
7283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7284 | else | |
7285 | cat >conftest.$ac_ext <<_ACEOF | |
7286 | /* confdefs.h. */ | |
7287 | _ACEOF | |
7288 | cat confdefs.h >>conftest.$ac_ext | |
7289 | cat >>conftest.$ac_ext <<_ACEOF | |
7290 | /* end confdefs.h. */ | |
7291 | #include <sys/types.h> | |
7292 | #include <$i> | |
7293 | ||
7294 | int | |
7295 | main () | |
7296 | { | |
7297 | if ((u_int32_t *) 0) | |
7298 | return 0; | |
7299 | if (sizeof (u_int32_t)) | |
7300 | return 0; | |
7301 | ; | |
7302 | return 0; | |
7303 | } | |
7304 | _ACEOF | |
7305 | rm -f conftest.$ac_objext | |
7306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7307 | (eval $ac_compile) 2>conftest.er1 | |
7308 | ac_status=$? | |
7309 | grep -v '^ *+' conftest.er1 >conftest.err | |
7310 | rm -f conftest.er1 | |
7311 | cat conftest.err >&5 | |
7312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7313 | (exit $ac_status); } && | |
57255173 PB |
7314 | { ac_try='test -z "$ac_c_werror_flag" |
7315 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7317 | (eval $ac_try) 2>&5 | |
7318 | ac_status=$? | |
7319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7320 | (exit $ac_status); }; } && | |
7321 | { ac_try='test -s conftest.$ac_objext' | |
7322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7323 | (eval $ac_try) 2>&5 | |
7324 | ac_status=$? | |
7325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7326 | (exit $ac_status); }; }; then | |
7327 | ac_cv_type_u_int32_t=yes | |
7328 | else | |
7329 | echo "$as_me: failed program was:" >&5 | |
7330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7331 | ||
7332 | ac_cv_type_u_int32_t=no | |
7333 | fi | |
7334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7335 | fi | |
7336 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
7337 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
7338 | if test $ac_cv_type_u_int32_t = yes; then | |
7339 | acx_cv_header_stdint=$i | |
7340 | else | |
7341 | continue | |
7342 | fi | |
7343 | ||
7344 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | |
7345 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
7346 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
7347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7348 | else | |
7349 | cat >conftest.$ac_ext <<_ACEOF | |
7350 | /* confdefs.h. */ | |
7351 | _ACEOF | |
7352 | cat confdefs.h >>conftest.$ac_ext | |
7353 | cat >>conftest.$ac_ext <<_ACEOF | |
7354 | /* end confdefs.h. */ | |
7355 | #include <sys/types.h> | |
7356 | #include <$i> | |
7357 | ||
7358 | int | |
7359 | main () | |
7360 | { | |
7361 | if ((u_int64_t *) 0) | |
7362 | return 0; | |
7363 | if (sizeof (u_int64_t)) | |
7364 | return 0; | |
7365 | ; | |
7366 | return 0; | |
7367 | } | |
7368 | _ACEOF | |
7369 | rm -f conftest.$ac_objext | |
7370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7371 | (eval $ac_compile) 2>conftest.er1 | |
7372 | ac_status=$? | |
7373 | grep -v '^ *+' conftest.er1 >conftest.err | |
7374 | rm -f conftest.er1 | |
7375 | cat conftest.err >&5 | |
7376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7377 | (exit $ac_status); } && | |
57255173 PB |
7378 | { ac_try='test -z "$ac_c_werror_flag" |
7379 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7381 | (eval $ac_try) 2>&5 | |
7382 | ac_status=$? | |
7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7384 | (exit $ac_status); }; } && | |
7385 | { ac_try='test -s conftest.$ac_objext' | |
7386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7387 | (eval $ac_try) 2>&5 | |
7388 | ac_status=$? | |
7389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7390 | (exit $ac_status); }; }; then | |
7391 | ac_cv_type_u_int64_t=yes | |
7392 | else | |
7393 | echo "$as_me: failed program was:" >&5 | |
7394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7395 | ||
7396 | ac_cv_type_u_int64_t=no | |
7397 | fi | |
7398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7399 | fi | |
7400 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
7401 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
4c4b3eb0 PB |
7402 | |
7403 | break | |
7404 | done | |
7405 | fi | |
7406 | if test "$acx_cv_header_stdint" = stddef.h; then | |
7407 | acx_cv_header_stdint_kind="(using manual detection)" | |
7408 | fi | |
7409 | ||
7410 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
7411 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
7412 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
7413 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
7414 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
7415 | ||
7416 | # ----------------- Summarize what we found so far | |
7417 | ||
7418 | echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5 | |
7419 | echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6 | |
7420 | ||
7421 | case `$as_basename gstdint.h || | |
7422 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
7423 | Xgstdint.h : 'X\(//\)$' \| \ | |
7424 | Xgstdint.h : 'X\(/\)$' \| \ | |
7425 | . : '\(.\)' 2>/dev/null || | |
7426 | echo X/gstdint.h | | |
7427 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7428 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7429 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7430 | s/.*/./; q'` in | |
7431 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
7432 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
7433 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
7434 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
7435 | *) ;; | |
7436 | esac | |
7437 | ||
7438 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
7439 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
7440 | ||
7441 | # ----------------- done included file, check C basic types -------- | |
7442 | ||
7443 | # Lacking an uintptr_t? Test size of void * | |
7444 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
7445 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 | |
7446 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
7447 | if test "${ac_cv_type_void_p+set}" = set; then | |
7448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7449 | else | |
7450 | cat >conftest.$ac_ext <<_ACEOF | |
7451 | /* confdefs.h. */ | |
7452 | _ACEOF | |
7453 | cat confdefs.h >>conftest.$ac_ext | |
7454 | cat >>conftest.$ac_ext <<_ACEOF | |
7455 | /* end confdefs.h. */ | |
7456 | $ac_includes_default | |
7457 | int | |
7458 | main () | |
7459 | { | |
7460 | if ((void * *) 0) | |
7461 | return 0; | |
7462 | if (sizeof (void *)) | |
7463 | return 0; | |
7464 | ; | |
7465 | return 0; | |
7466 | } | |
7467 | _ACEOF | |
7468 | rm -f conftest.$ac_objext | |
7469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7470 | (eval $ac_compile) 2>conftest.er1 | |
7471 | ac_status=$? | |
7472 | grep -v '^ *+' conftest.er1 >conftest.err | |
7473 | rm -f conftest.er1 | |
7474 | cat conftest.err >&5 | |
7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7476 | (exit $ac_status); } && | |
57255173 PB |
7477 | { ac_try='test -z "$ac_c_werror_flag" |
7478 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7480 | (eval $ac_try) 2>&5 | |
7481 | ac_status=$? | |
7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7483 | (exit $ac_status); }; } && | |
7484 | { ac_try='test -s conftest.$ac_objext' | |
7485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7486 | (eval $ac_try) 2>&5 | |
7487 | ac_status=$? | |
7488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7489 | (exit $ac_status); }; }; then | |
7490 | ac_cv_type_void_p=yes | |
7491 | else | |
7492 | echo "$as_me: failed program was:" >&5 | |
7493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7494 | ||
7495 | ac_cv_type_void_p=no | |
7496 | fi | |
7497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7498 | fi | |
7499 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
7500 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
7501 | ||
7502 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
7503 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
7504 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
7505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7506 | else | |
7507 | if test "$ac_cv_type_void_p" = yes; then | |
7508 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7509 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7510 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7511 | # This bug is HP SR number 8606223364. | |
7512 | if test "$cross_compiling" = yes; then | |
7513 | # Depending upon the size, compute the lo and hi bounds. | |
7514 | cat >conftest.$ac_ext <<_ACEOF | |
7515 | /* confdefs.h. */ | |
7516 | _ACEOF | |
7517 | cat confdefs.h >>conftest.$ac_ext | |
7518 | cat >>conftest.$ac_ext <<_ACEOF | |
7519 | /* end confdefs.h. */ | |
7520 | $ac_includes_default | |
7521 | int | |
7522 | main () | |
7523 | { | |
7524 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
7525 | test_array [0] = 0 | |
7526 | ||
7527 | ; | |
7528 | return 0; | |
7529 | } | |
7530 | _ACEOF | |
7531 | rm -f conftest.$ac_objext | |
7532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7533 | (eval $ac_compile) 2>conftest.er1 | |
7534 | ac_status=$? | |
7535 | grep -v '^ *+' conftest.er1 >conftest.err | |
7536 | rm -f conftest.er1 | |
7537 | cat conftest.err >&5 | |
7538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7539 | (exit $ac_status); } && | |
57255173 PB |
7540 | { ac_try='test -z "$ac_c_werror_flag" |
7541 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7543 | (eval $ac_try) 2>&5 | |
7544 | ac_status=$? | |
7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7546 | (exit $ac_status); }; } && | |
7547 | { ac_try='test -s conftest.$ac_objext' | |
7548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7549 | (eval $ac_try) 2>&5 | |
7550 | ac_status=$? | |
7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7552 | (exit $ac_status); }; }; then | |
7553 | ac_lo=0 ac_mid=0 | |
7554 | while :; do | |
7555 | cat >conftest.$ac_ext <<_ACEOF | |
7556 | /* confdefs.h. */ | |
7557 | _ACEOF | |
7558 | cat confdefs.h >>conftest.$ac_ext | |
7559 | cat >>conftest.$ac_ext <<_ACEOF | |
7560 | /* end confdefs.h. */ | |
7561 | $ac_includes_default | |
7562 | int | |
7563 | main () | |
7564 | { | |
7565 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
7566 | test_array [0] = 0 | |
7567 | ||
7568 | ; | |
7569 | return 0; | |
7570 | } | |
7571 | _ACEOF | |
7572 | rm -f conftest.$ac_objext | |
7573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7574 | (eval $ac_compile) 2>conftest.er1 | |
7575 | ac_status=$? | |
7576 | grep -v '^ *+' conftest.er1 >conftest.err | |
7577 | rm -f conftest.er1 | |
7578 | cat conftest.err >&5 | |
7579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7580 | (exit $ac_status); } && | |
57255173 PB |
7581 | { ac_try='test -z "$ac_c_werror_flag" |
7582 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7584 | (eval $ac_try) 2>&5 | |
7585 | ac_status=$? | |
7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7587 | (exit $ac_status); }; } && | |
7588 | { ac_try='test -s conftest.$ac_objext' | |
7589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7590 | (eval $ac_try) 2>&5 | |
7591 | ac_status=$? | |
7592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7593 | (exit $ac_status); }; }; then | |
7594 | ac_hi=$ac_mid; break | |
7595 | else | |
7596 | echo "$as_me: failed program was:" >&5 | |
7597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7598 | ||
7599 | ac_lo=`expr $ac_mid + 1` | |
7600 | if test $ac_lo -le $ac_mid; then | |
7601 | ac_lo= ac_hi= | |
7602 | break | |
7603 | fi | |
7604 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7605 | fi | |
7606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7607 | done | |
7608 | else | |
7609 | echo "$as_me: failed program was:" >&5 | |
7610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7611 | ||
7612 | cat >conftest.$ac_ext <<_ACEOF | |
7613 | /* confdefs.h. */ | |
7614 | _ACEOF | |
7615 | cat confdefs.h >>conftest.$ac_ext | |
7616 | cat >>conftest.$ac_ext <<_ACEOF | |
7617 | /* end confdefs.h. */ | |
7618 | $ac_includes_default | |
7619 | int | |
7620 | main () | |
7621 | { | |
7622 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
7623 | test_array [0] = 0 | |
7624 | ||
7625 | ; | |
7626 | return 0; | |
7627 | } | |
7628 | _ACEOF | |
7629 | rm -f conftest.$ac_objext | |
7630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7631 | (eval $ac_compile) 2>conftest.er1 | |
7632 | ac_status=$? | |
7633 | grep -v '^ *+' conftest.er1 >conftest.err | |
7634 | rm -f conftest.er1 | |
7635 | cat conftest.err >&5 | |
7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7637 | (exit $ac_status); } && | |
57255173 PB |
7638 | { ac_try='test -z "$ac_c_werror_flag" |
7639 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7641 | (eval $ac_try) 2>&5 | |
7642 | ac_status=$? | |
7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7644 | (exit $ac_status); }; } && | |
7645 | { ac_try='test -s conftest.$ac_objext' | |
7646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7647 | (eval $ac_try) 2>&5 | |
7648 | ac_status=$? | |
7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7650 | (exit $ac_status); }; }; then | |
7651 | ac_hi=-1 ac_mid=-1 | |
7652 | while :; do | |
7653 | cat >conftest.$ac_ext <<_ACEOF | |
7654 | /* confdefs.h. */ | |
7655 | _ACEOF | |
7656 | cat confdefs.h >>conftest.$ac_ext | |
7657 | cat >>conftest.$ac_ext <<_ACEOF | |
7658 | /* end confdefs.h. */ | |
7659 | $ac_includes_default | |
7660 | int | |
7661 | main () | |
7662 | { | |
7663 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
7664 | test_array [0] = 0 | |
7665 | ||
7666 | ; | |
7667 | return 0; | |
7668 | } | |
7669 | _ACEOF | |
7670 | rm -f conftest.$ac_objext | |
7671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7672 | (eval $ac_compile) 2>conftest.er1 | |
7673 | ac_status=$? | |
7674 | grep -v '^ *+' conftest.er1 >conftest.err | |
7675 | rm -f conftest.er1 | |
7676 | cat conftest.err >&5 | |
7677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7678 | (exit $ac_status); } && | |
57255173 PB |
7679 | { ac_try='test -z "$ac_c_werror_flag" |
7680 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7682 | (eval $ac_try) 2>&5 | |
7683 | ac_status=$? | |
7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7685 | (exit $ac_status); }; } && | |
7686 | { ac_try='test -s conftest.$ac_objext' | |
7687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7688 | (eval $ac_try) 2>&5 | |
7689 | ac_status=$? | |
7690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7691 | (exit $ac_status); }; }; then | |
7692 | ac_lo=$ac_mid; break | |
7693 | else | |
7694 | echo "$as_me: failed program was:" >&5 | |
7695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7696 | ||
7697 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7698 | if test $ac_mid -le $ac_hi; then | |
7699 | ac_lo= ac_hi= | |
7700 | break | |
7701 | fi | |
7702 | ac_mid=`expr 2 '*' $ac_mid` | |
7703 | fi | |
7704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7705 | done | |
7706 | else | |
7707 | echo "$as_me: failed program was:" >&5 | |
7708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7709 | ||
7710 | ac_lo= ac_hi= | |
7711 | fi | |
7712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7713 | fi | |
7714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7715 | # Binary search between lo and hi bounds. | |
7716 | while test "x$ac_lo" != "x$ac_hi"; do | |
7717 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7718 | cat >conftest.$ac_ext <<_ACEOF | |
7719 | /* confdefs.h. */ | |
7720 | _ACEOF | |
7721 | cat confdefs.h >>conftest.$ac_ext | |
7722 | cat >>conftest.$ac_ext <<_ACEOF | |
7723 | /* end confdefs.h. */ | |
7724 | $ac_includes_default | |
7725 | int | |
7726 | main () | |
7727 | { | |
7728 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
7729 | test_array [0] = 0 | |
7730 | ||
7731 | ; | |
7732 | return 0; | |
7733 | } | |
7734 | _ACEOF | |
7735 | rm -f conftest.$ac_objext | |
7736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7737 | (eval $ac_compile) 2>conftest.er1 | |
7738 | ac_status=$? | |
7739 | grep -v '^ *+' conftest.er1 >conftest.err | |
7740 | rm -f conftest.er1 | |
7741 | cat conftest.err >&5 | |
7742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7743 | (exit $ac_status); } && | |
57255173 PB |
7744 | { ac_try='test -z "$ac_c_werror_flag" |
7745 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7747 | (eval $ac_try) 2>&5 | |
7748 | ac_status=$? | |
7749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7750 | (exit $ac_status); }; } && | |
7751 | { ac_try='test -s conftest.$ac_objext' | |
7752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7753 | (eval $ac_try) 2>&5 | |
7754 | ac_status=$? | |
7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7756 | (exit $ac_status); }; }; then | |
7757 | ac_hi=$ac_mid | |
7758 | else | |
7759 | echo "$as_me: failed program was:" >&5 | |
7760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7761 | ||
7762 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7763 | fi | |
7764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7765 | done | |
7766 | case $ac_lo in | |
7767 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
7768 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
7769 | See \`config.log' for more details." >&5 | |
7770 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
7771 | See \`config.log' for more details." >&2;} | |
7772 | { (exit 1); exit 1; }; } ;; | |
7773 | esac | |
7774 | else | |
7775 | if test "$cross_compiling" = yes; then | |
57255173 PB |
7776 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
7777 | See \`config.log' for more details." >&5 | |
7778 | echo "$as_me: error: cannot run test program while cross compiling | |
7779 | See \`config.log' for more details." >&2;} | |
4c4b3eb0 PB |
7780 | { (exit 1); exit 1; }; } |
7781 | else | |
7782 | cat >conftest.$ac_ext <<_ACEOF | |
7783 | /* confdefs.h. */ | |
7784 | _ACEOF | |
7785 | cat confdefs.h >>conftest.$ac_ext | |
7786 | cat >>conftest.$ac_ext <<_ACEOF | |
7787 | /* end confdefs.h. */ | |
7788 | $ac_includes_default | |
7789 | long longval () { return (long) (sizeof (void *)); } | |
7790 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
7791 | #include <stdio.h> | |
7792 | #include <stdlib.h> | |
7793 | int | |
7794 | main () | |
7795 | { | |
7796 | ||
7797 | FILE *f = fopen ("conftest.val", "w"); | |
7798 | if (! f) | |
7799 | exit (1); | |
7800 | if (((long) (sizeof (void *))) < 0) | |
7801 | { | |
7802 | long i = longval (); | |
7803 | if (i != ((long) (sizeof (void *)))) | |
7804 | exit (1); | |
7805 | fprintf (f, "%ld\n", i); | |
7806 | } | |
7807 | else | |
7808 | { | |
7809 | unsigned long i = ulongval (); | |
7810 | if (i != ((long) (sizeof (void *)))) | |
7811 | exit (1); | |
7812 | fprintf (f, "%lu\n", i); | |
7813 | } | |
7814 | exit (ferror (f) || fclose (f) != 0); | |
7815 | ||
7816 | ; | |
7817 | return 0; | |
7818 | } | |
7819 | _ACEOF | |
7820 | rm -f conftest$ac_exeext | |
7821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7822 | (eval $ac_link) 2>&5 | |
7823 | ac_status=$? | |
7824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7825 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7827 | (eval $ac_try) 2>&5 | |
7828 | ac_status=$? | |
7829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7830 | (exit $ac_status); }; }; then | |
7831 | ac_cv_sizeof_void_p=`cat conftest.val` | |
7832 | else | |
7833 | echo "$as_me: program exited with status $ac_status" >&5 | |
7834 | echo "$as_me: failed program was:" >&5 | |
7835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7836 | ||
7837 | ( exit $ac_status ) | |
7838 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
7839 | See \`config.log' for more details." >&5 | |
7840 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
7841 | See \`config.log' for more details." >&2;} | |
7842 | { (exit 1); exit 1; }; } | |
7843 | fi | |
7844 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7845 | fi | |
7846 | fi | |
7847 | rm -f conftest.val | |
7848 | else | |
7849 | ac_cv_sizeof_void_p=0 | |
7850 | fi | |
7851 | fi | |
7852 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
7853 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
7854 | cat >>confdefs.h <<_ACEOF | |
7855 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
7856 | _ACEOF | |
7857 | ||
7858 | ;; | |
7859 | esac | |
7860 | ||
7861 | # Lacking an uint64_t? Test size of long | |
7862 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
7863 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 | |
7864 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
7865 | if test "${ac_cv_type_long+set}" = set; then | |
7866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7867 | else | |
7868 | cat >conftest.$ac_ext <<_ACEOF | |
7869 | /* confdefs.h. */ | |
7870 | _ACEOF | |
7871 | cat confdefs.h >>conftest.$ac_ext | |
7872 | cat >>conftest.$ac_ext <<_ACEOF | |
7873 | /* end confdefs.h. */ | |
7874 | $ac_includes_default | |
7875 | int | |
7876 | main () | |
7877 | { | |
7878 | if ((long *) 0) | |
7879 | return 0; | |
7880 | if (sizeof (long)) | |
7881 | return 0; | |
7882 | ; | |
7883 | return 0; | |
7884 | } | |
7885 | _ACEOF | |
7886 | rm -f conftest.$ac_objext | |
7887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7888 | (eval $ac_compile) 2>conftest.er1 | |
7889 | ac_status=$? | |
7890 | grep -v '^ *+' conftest.er1 >conftest.err | |
7891 | rm -f conftest.er1 | |
7892 | cat conftest.err >&5 | |
7893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7894 | (exit $ac_status); } && | |
57255173 PB |
7895 | { ac_try='test -z "$ac_c_werror_flag" |
7896 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7898 | (eval $ac_try) 2>&5 | |
7899 | ac_status=$? | |
7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7901 | (exit $ac_status); }; } && | |
7902 | { ac_try='test -s conftest.$ac_objext' | |
7903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7904 | (eval $ac_try) 2>&5 | |
7905 | ac_status=$? | |
7906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7907 | (exit $ac_status); }; }; then | |
7908 | ac_cv_type_long=yes | |
7909 | else | |
7910 | echo "$as_me: failed program was:" >&5 | |
7911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7912 | ||
7913 | ac_cv_type_long=no | |
7914 | fi | |
7915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7916 | fi | |
7917 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
7918 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
7919 | ||
7920 | echo "$as_me:$LINENO: checking size of long" >&5 | |
7921 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
7922 | if test "${ac_cv_sizeof_long+set}" = set; then | |
7923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7924 | else | |
7925 | if test "$ac_cv_type_long" = yes; then | |
7926 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7927 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7928 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7929 | # This bug is HP SR number 8606223364. | |
7930 | if test "$cross_compiling" = yes; then | |
7931 | # Depending upon the size, compute the lo and hi bounds. | |
7932 | cat >conftest.$ac_ext <<_ACEOF | |
7933 | /* confdefs.h. */ | |
7934 | _ACEOF | |
7935 | cat confdefs.h >>conftest.$ac_ext | |
7936 | cat >>conftest.$ac_ext <<_ACEOF | |
7937 | /* end confdefs.h. */ | |
7938 | $ac_includes_default | |
7939 | int | |
7940 | main () | |
7941 | { | |
7942 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
7943 | test_array [0] = 0 | |
7944 | ||
7945 | ; | |
7946 | return 0; | |
7947 | } | |
7948 | _ACEOF | |
7949 | rm -f conftest.$ac_objext | |
7950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7951 | (eval $ac_compile) 2>conftest.er1 | |
7952 | ac_status=$? | |
7953 | grep -v '^ *+' conftest.er1 >conftest.err | |
7954 | rm -f conftest.er1 | |
7955 | cat conftest.err >&5 | |
7956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7957 | (exit $ac_status); } && | |
57255173 PB |
7958 | { ac_try='test -z "$ac_c_werror_flag" |
7959 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
7960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7961 | (eval $ac_try) 2>&5 | |
7962 | ac_status=$? | |
7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7964 | (exit $ac_status); }; } && | |
7965 | { ac_try='test -s conftest.$ac_objext' | |
7966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7967 | (eval $ac_try) 2>&5 | |
7968 | ac_status=$? | |
7969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7970 | (exit $ac_status); }; }; then | |
7971 | ac_lo=0 ac_mid=0 | |
7972 | while :; do | |
7973 | cat >conftest.$ac_ext <<_ACEOF | |
7974 | /* confdefs.h. */ | |
7975 | _ACEOF | |
7976 | cat confdefs.h >>conftest.$ac_ext | |
7977 | cat >>conftest.$ac_ext <<_ACEOF | |
7978 | /* end confdefs.h. */ | |
7979 | $ac_includes_default | |
7980 | int | |
7981 | main () | |
7982 | { | |
7983 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7984 | test_array [0] = 0 | |
7985 | ||
7986 | ; | |
7987 | return 0; | |
7988 | } | |
7989 | _ACEOF | |
7990 | rm -f conftest.$ac_objext | |
7991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7992 | (eval $ac_compile) 2>conftest.er1 | |
7993 | ac_status=$? | |
7994 | grep -v '^ *+' conftest.er1 >conftest.err | |
7995 | rm -f conftest.er1 | |
7996 | cat conftest.err >&5 | |
7997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7998 | (exit $ac_status); } && | |
57255173 PB |
7999 | { ac_try='test -z "$ac_c_werror_flag" |
8000 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8002 | (eval $ac_try) 2>&5 | |
8003 | ac_status=$? | |
8004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8005 | (exit $ac_status); }; } && | |
8006 | { ac_try='test -s conftest.$ac_objext' | |
8007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8008 | (eval $ac_try) 2>&5 | |
8009 | ac_status=$? | |
8010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8011 | (exit $ac_status); }; }; then | |
8012 | ac_hi=$ac_mid; break | |
8013 | else | |
8014 | echo "$as_me: failed program was:" >&5 | |
8015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8016 | ||
8017 | ac_lo=`expr $ac_mid + 1` | |
8018 | if test $ac_lo -le $ac_mid; then | |
8019 | ac_lo= ac_hi= | |
8020 | break | |
8021 | fi | |
8022 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
8023 | fi | |
8024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8025 | done | |
8026 | else | |
8027 | echo "$as_me: failed program was:" >&5 | |
8028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8029 | ||
8030 | cat >conftest.$ac_ext <<_ACEOF | |
8031 | /* confdefs.h. */ | |
8032 | _ACEOF | |
8033 | cat confdefs.h >>conftest.$ac_ext | |
8034 | cat >>conftest.$ac_ext <<_ACEOF | |
8035 | /* end confdefs.h. */ | |
8036 | $ac_includes_default | |
8037 | int | |
8038 | main () | |
8039 | { | |
8040 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
8041 | test_array [0] = 0 | |
8042 | ||
8043 | ; | |
8044 | return 0; | |
8045 | } | |
8046 | _ACEOF | |
8047 | rm -f conftest.$ac_objext | |
8048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8049 | (eval $ac_compile) 2>conftest.er1 | |
8050 | ac_status=$? | |
8051 | grep -v '^ *+' conftest.er1 >conftest.err | |
8052 | rm -f conftest.er1 | |
8053 | cat conftest.err >&5 | |
8054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8055 | (exit $ac_status); } && | |
57255173 PB |
8056 | { ac_try='test -z "$ac_c_werror_flag" |
8057 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8059 | (eval $ac_try) 2>&5 | |
8060 | ac_status=$? | |
8061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8062 | (exit $ac_status); }; } && | |
8063 | { ac_try='test -s conftest.$ac_objext' | |
8064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8065 | (eval $ac_try) 2>&5 | |
8066 | ac_status=$? | |
8067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8068 | (exit $ac_status); }; }; then | |
8069 | ac_hi=-1 ac_mid=-1 | |
8070 | while :; do | |
8071 | cat >conftest.$ac_ext <<_ACEOF | |
8072 | /* confdefs.h. */ | |
8073 | _ACEOF | |
8074 | cat confdefs.h >>conftest.$ac_ext | |
8075 | cat >>conftest.$ac_ext <<_ACEOF | |
8076 | /* end confdefs.h. */ | |
8077 | $ac_includes_default | |
8078 | int | |
8079 | main () | |
8080 | { | |
8081 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
8082 | test_array [0] = 0 | |
8083 | ||
8084 | ; | |
8085 | return 0; | |
8086 | } | |
8087 | _ACEOF | |
8088 | rm -f conftest.$ac_objext | |
8089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8090 | (eval $ac_compile) 2>conftest.er1 | |
8091 | ac_status=$? | |
8092 | grep -v '^ *+' conftest.er1 >conftest.err | |
8093 | rm -f conftest.er1 | |
8094 | cat conftest.err >&5 | |
8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8096 | (exit $ac_status); } && | |
57255173 PB |
8097 | { ac_try='test -z "$ac_c_werror_flag" |
8098 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8100 | (eval $ac_try) 2>&5 | |
8101 | ac_status=$? | |
8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8103 | (exit $ac_status); }; } && | |
8104 | { ac_try='test -s conftest.$ac_objext' | |
8105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8106 | (eval $ac_try) 2>&5 | |
8107 | ac_status=$? | |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8109 | (exit $ac_status); }; }; then | |
8110 | ac_lo=$ac_mid; break | |
8111 | else | |
8112 | echo "$as_me: failed program was:" >&5 | |
8113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8114 | ||
8115 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8116 | if test $ac_mid -le $ac_hi; then | |
8117 | ac_lo= ac_hi= | |
8118 | break | |
8119 | fi | |
8120 | ac_mid=`expr 2 '*' $ac_mid` | |
8121 | fi | |
8122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8123 | done | |
8124 | else | |
8125 | echo "$as_me: failed program was:" >&5 | |
8126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8127 | ||
8128 | ac_lo= ac_hi= | |
8129 | fi | |
8130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8131 | fi | |
8132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8133 | # Binary search between lo and hi bounds. | |
8134 | while test "x$ac_lo" != "x$ac_hi"; do | |
8135 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8136 | cat >conftest.$ac_ext <<_ACEOF | |
8137 | /* confdefs.h. */ | |
8138 | _ACEOF | |
8139 | cat confdefs.h >>conftest.$ac_ext | |
8140 | cat >>conftest.$ac_ext <<_ACEOF | |
8141 | /* end confdefs.h. */ | |
8142 | $ac_includes_default | |
8143 | int | |
8144 | main () | |
8145 | { | |
8146 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
8147 | test_array [0] = 0 | |
8148 | ||
8149 | ; | |
8150 | return 0; | |
8151 | } | |
8152 | _ACEOF | |
8153 | rm -f conftest.$ac_objext | |
8154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8155 | (eval $ac_compile) 2>conftest.er1 | |
8156 | ac_status=$? | |
8157 | grep -v '^ *+' conftest.er1 >conftest.err | |
8158 | rm -f conftest.er1 | |
8159 | cat conftest.err >&5 | |
8160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8161 | (exit $ac_status); } && | |
57255173 PB |
8162 | { ac_try='test -z "$ac_c_werror_flag" |
8163 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8165 | (eval $ac_try) 2>&5 | |
8166 | ac_status=$? | |
8167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8168 | (exit $ac_status); }; } && | |
8169 | { ac_try='test -s conftest.$ac_objext' | |
8170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8171 | (eval $ac_try) 2>&5 | |
8172 | ac_status=$? | |
8173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8174 | (exit $ac_status); }; }; then | |
8175 | ac_hi=$ac_mid | |
8176 | else | |
8177 | echo "$as_me: failed program was:" >&5 | |
8178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8179 | ||
8180 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
8181 | fi | |
8182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8183 | done | |
8184 | case $ac_lo in | |
8185 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
8186 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
8187 | See \`config.log' for more details." >&5 | |
8188 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
8189 | See \`config.log' for more details." >&2;} | |
8190 | { (exit 1); exit 1; }; } ;; | |
8191 | esac | |
8192 | else | |
8193 | if test "$cross_compiling" = yes; then | |
57255173 PB |
8194 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
8195 | See \`config.log' for more details." >&5 | |
8196 | echo "$as_me: error: cannot run test program while cross compiling | |
8197 | See \`config.log' for more details." >&2;} | |
4c4b3eb0 PB |
8198 | { (exit 1); exit 1; }; } |
8199 | else | |
8200 | cat >conftest.$ac_ext <<_ACEOF | |
8201 | /* confdefs.h. */ | |
8202 | _ACEOF | |
8203 | cat confdefs.h >>conftest.$ac_ext | |
8204 | cat >>conftest.$ac_ext <<_ACEOF | |
8205 | /* end confdefs.h. */ | |
8206 | $ac_includes_default | |
8207 | long longval () { return (long) (sizeof (long)); } | |
8208 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
8209 | #include <stdio.h> | |
8210 | #include <stdlib.h> | |
8211 | int | |
8212 | main () | |
8213 | { | |
8214 | ||
8215 | FILE *f = fopen ("conftest.val", "w"); | |
8216 | if (! f) | |
8217 | exit (1); | |
8218 | if (((long) (sizeof (long))) < 0) | |
8219 | { | |
8220 | long i = longval (); | |
8221 | if (i != ((long) (sizeof (long)))) | |
8222 | exit (1); | |
8223 | fprintf (f, "%ld\n", i); | |
8224 | } | |
8225 | else | |
8226 | { | |
8227 | unsigned long i = ulongval (); | |
8228 | if (i != ((long) (sizeof (long)))) | |
8229 | exit (1); | |
8230 | fprintf (f, "%lu\n", i); | |
8231 | } | |
8232 | exit (ferror (f) || fclose (f) != 0); | |
8233 | ||
8234 | ; | |
8235 | return 0; | |
8236 | } | |
8237 | _ACEOF | |
8238 | rm -f conftest$ac_exeext | |
8239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8240 | (eval $ac_link) 2>&5 | |
8241 | ac_status=$? | |
8242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8243 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8245 | (eval $ac_try) 2>&5 | |
8246 | ac_status=$? | |
8247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8248 | (exit $ac_status); }; }; then | |
8249 | ac_cv_sizeof_long=`cat conftest.val` | |
8250 | else | |
8251 | echo "$as_me: program exited with status $ac_status" >&5 | |
8252 | echo "$as_me: failed program was:" >&5 | |
8253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8254 | ||
8255 | ( exit $ac_status ) | |
8256 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
8257 | See \`config.log' for more details." >&5 | |
8258 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
8259 | See \`config.log' for more details." >&2;} | |
8260 | { (exit 1); exit 1; }; } | |
8261 | fi | |
8262 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8263 | fi | |
8264 | fi | |
8265 | rm -f conftest.val | |
8266 | else | |
8267 | ac_cv_sizeof_long=0 | |
8268 | fi | |
8269 | fi | |
8270 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
8271 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
8272 | cat >>confdefs.h <<_ACEOF | |
8273 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
8274 | _ACEOF | |
8275 | ||
8276 | ;; | |
8277 | esac | |
8278 | ||
8279 | if test $acx_cv_header_stdint = stddef.h; then | |
8280 | # Lacking a good header? Test size of everything and deduce all types. | |
8281 | echo "$as_me:$LINENO: checking for int" >&5 | |
8282 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
8283 | if test "${ac_cv_type_int+set}" = set; then | |
8284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8285 | else | |
8286 | cat >conftest.$ac_ext <<_ACEOF | |
8287 | /* confdefs.h. */ | |
8288 | _ACEOF | |
8289 | cat confdefs.h >>conftest.$ac_ext | |
8290 | cat >>conftest.$ac_ext <<_ACEOF | |
8291 | /* end confdefs.h. */ | |
8292 | $ac_includes_default | |
8293 | int | |
8294 | main () | |
8295 | { | |
8296 | if ((int *) 0) | |
8297 | return 0; | |
8298 | if (sizeof (int)) | |
8299 | return 0; | |
8300 | ; | |
8301 | return 0; | |
8302 | } | |
8303 | _ACEOF | |
8304 | rm -f conftest.$ac_objext | |
8305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8306 | (eval $ac_compile) 2>conftest.er1 | |
8307 | ac_status=$? | |
8308 | grep -v '^ *+' conftest.er1 >conftest.err | |
8309 | rm -f conftest.er1 | |
8310 | cat conftest.err >&5 | |
8311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8312 | (exit $ac_status); } && | |
57255173 PB |
8313 | { ac_try='test -z "$ac_c_werror_flag" |
8314 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8316 | (eval $ac_try) 2>&5 | |
8317 | ac_status=$? | |
8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8319 | (exit $ac_status); }; } && | |
8320 | { ac_try='test -s conftest.$ac_objext' | |
8321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8322 | (eval $ac_try) 2>&5 | |
8323 | ac_status=$? | |
8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8325 | (exit $ac_status); }; }; then | |
8326 | ac_cv_type_int=yes | |
8327 | else | |
8328 | echo "$as_me: failed program was:" >&5 | |
8329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8330 | ||
8331 | ac_cv_type_int=no | |
8332 | fi | |
8333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8334 | fi | |
8335 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
8336 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
8337 | ||
8338 | echo "$as_me:$LINENO: checking size of int" >&5 | |
8339 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
8340 | if test "${ac_cv_sizeof_int+set}" = set; then | |
8341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8342 | else | |
8343 | if test "$ac_cv_type_int" = yes; then | |
8344 | # The cast to unsigned long works around a bug in the HP C Compiler | |
8345 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8346 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8347 | # This bug is HP SR number 8606223364. | |
8348 | if test "$cross_compiling" = yes; then | |
8349 | # Depending upon the size, compute the lo and hi bounds. | |
8350 | cat >conftest.$ac_ext <<_ACEOF | |
8351 | /* confdefs.h. */ | |
8352 | _ACEOF | |
8353 | cat confdefs.h >>conftest.$ac_ext | |
8354 | cat >>conftest.$ac_ext <<_ACEOF | |
8355 | /* end confdefs.h. */ | |
8356 | $ac_includes_default | |
8357 | int | |
8358 | main () | |
8359 | { | |
8360 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
8361 | test_array [0] = 0 | |
8362 | ||
8363 | ; | |
8364 | return 0; | |
8365 | } | |
8366 | _ACEOF | |
8367 | rm -f conftest.$ac_objext | |
8368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8369 | (eval $ac_compile) 2>conftest.er1 | |
8370 | ac_status=$? | |
8371 | grep -v '^ *+' conftest.er1 >conftest.err | |
8372 | rm -f conftest.er1 | |
8373 | cat conftest.err >&5 | |
8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8375 | (exit $ac_status); } && | |
57255173 PB |
8376 | { ac_try='test -z "$ac_c_werror_flag" |
8377 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8379 | (eval $ac_try) 2>&5 | |
8380 | ac_status=$? | |
8381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8382 | (exit $ac_status); }; } && | |
8383 | { ac_try='test -s conftest.$ac_objext' | |
8384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8385 | (eval $ac_try) 2>&5 | |
8386 | ac_status=$? | |
8387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8388 | (exit $ac_status); }; }; then | |
8389 | ac_lo=0 ac_mid=0 | |
8390 | while :; do | |
8391 | cat >conftest.$ac_ext <<_ACEOF | |
8392 | /* confdefs.h. */ | |
8393 | _ACEOF | |
8394 | cat confdefs.h >>conftest.$ac_ext | |
8395 | cat >>conftest.$ac_ext <<_ACEOF | |
8396 | /* end confdefs.h. */ | |
8397 | $ac_includes_default | |
8398 | int | |
8399 | main () | |
8400 | { | |
8401 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
8402 | test_array [0] = 0 | |
8403 | ||
8404 | ; | |
8405 | return 0; | |
8406 | } | |
8407 | _ACEOF | |
8408 | rm -f conftest.$ac_objext | |
8409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8410 | (eval $ac_compile) 2>conftest.er1 | |
8411 | ac_status=$? | |
8412 | grep -v '^ *+' conftest.er1 >conftest.err | |
8413 | rm -f conftest.er1 | |
8414 | cat conftest.err >&5 | |
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8416 | (exit $ac_status); } && | |
57255173 PB |
8417 | { ac_try='test -z "$ac_c_werror_flag" |
8418 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8420 | (eval $ac_try) 2>&5 | |
8421 | ac_status=$? | |
8422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8423 | (exit $ac_status); }; } && | |
8424 | { ac_try='test -s conftest.$ac_objext' | |
8425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8426 | (eval $ac_try) 2>&5 | |
8427 | ac_status=$? | |
8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8429 | (exit $ac_status); }; }; then | |
8430 | ac_hi=$ac_mid; break | |
8431 | else | |
8432 | echo "$as_me: failed program was:" >&5 | |
8433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8434 | ||
8435 | ac_lo=`expr $ac_mid + 1` | |
8436 | if test $ac_lo -le $ac_mid; then | |
8437 | ac_lo= ac_hi= | |
8438 | break | |
8439 | fi | |
8440 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
8441 | fi | |
8442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8443 | done | |
8444 | else | |
8445 | echo "$as_me: failed program was:" >&5 | |
8446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8447 | ||
8448 | cat >conftest.$ac_ext <<_ACEOF | |
8449 | /* confdefs.h. */ | |
8450 | _ACEOF | |
8451 | cat confdefs.h >>conftest.$ac_ext | |
8452 | cat >>conftest.$ac_ext <<_ACEOF | |
8453 | /* end confdefs.h. */ | |
8454 | $ac_includes_default | |
8455 | int | |
8456 | main () | |
8457 | { | |
8458 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
8459 | test_array [0] = 0 | |
8460 | ||
8461 | ; | |
8462 | return 0; | |
8463 | } | |
8464 | _ACEOF | |
8465 | rm -f conftest.$ac_objext | |
8466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8467 | (eval $ac_compile) 2>conftest.er1 | |
8468 | ac_status=$? | |
8469 | grep -v '^ *+' conftest.er1 >conftest.err | |
8470 | rm -f conftest.er1 | |
8471 | cat conftest.err >&5 | |
8472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8473 | (exit $ac_status); } && | |
57255173 PB |
8474 | { ac_try='test -z "$ac_c_werror_flag" |
8475 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8477 | (eval $ac_try) 2>&5 | |
8478 | ac_status=$? | |
8479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8480 | (exit $ac_status); }; } && | |
8481 | { ac_try='test -s conftest.$ac_objext' | |
8482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8483 | (eval $ac_try) 2>&5 | |
8484 | ac_status=$? | |
8485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8486 | (exit $ac_status); }; }; then | |
8487 | ac_hi=-1 ac_mid=-1 | |
8488 | while :; do | |
8489 | cat >conftest.$ac_ext <<_ACEOF | |
8490 | /* confdefs.h. */ | |
8491 | _ACEOF | |
8492 | cat confdefs.h >>conftest.$ac_ext | |
8493 | cat >>conftest.$ac_ext <<_ACEOF | |
8494 | /* end confdefs.h. */ | |
8495 | $ac_includes_default | |
8496 | int | |
8497 | main () | |
8498 | { | |
8499 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
8500 | test_array [0] = 0 | |
8501 | ||
8502 | ; | |
8503 | return 0; | |
8504 | } | |
8505 | _ACEOF | |
8506 | rm -f conftest.$ac_objext | |
8507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8508 | (eval $ac_compile) 2>conftest.er1 | |
8509 | ac_status=$? | |
8510 | grep -v '^ *+' conftest.er1 >conftest.err | |
8511 | rm -f conftest.er1 | |
8512 | cat conftest.err >&5 | |
8513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8514 | (exit $ac_status); } && | |
57255173 PB |
8515 | { ac_try='test -z "$ac_c_werror_flag" |
8516 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8518 | (eval $ac_try) 2>&5 | |
8519 | ac_status=$? | |
8520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8521 | (exit $ac_status); }; } && | |
8522 | { ac_try='test -s conftest.$ac_objext' | |
8523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8524 | (eval $ac_try) 2>&5 | |
8525 | ac_status=$? | |
8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8527 | (exit $ac_status); }; }; then | |
8528 | ac_lo=$ac_mid; break | |
8529 | else | |
8530 | echo "$as_me: failed program was:" >&5 | |
8531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8532 | ||
8533 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8534 | if test $ac_mid -le $ac_hi; then | |
8535 | ac_lo= ac_hi= | |
8536 | break | |
8537 | fi | |
8538 | ac_mid=`expr 2 '*' $ac_mid` | |
8539 | fi | |
8540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8541 | done | |
8542 | else | |
8543 | echo "$as_me: failed program was:" >&5 | |
8544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8545 | ||
8546 | ac_lo= ac_hi= | |
8547 | fi | |
8548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8549 | fi | |
8550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8551 | # Binary search between lo and hi bounds. | |
8552 | while test "x$ac_lo" != "x$ac_hi"; do | |
8553 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8554 | cat >conftest.$ac_ext <<_ACEOF | |
8555 | /* confdefs.h. */ | |
8556 | _ACEOF | |
8557 | cat confdefs.h >>conftest.$ac_ext | |
8558 | cat >>conftest.$ac_ext <<_ACEOF | |
8559 | /* end confdefs.h. */ | |
8560 | $ac_includes_default | |
8561 | int | |
8562 | main () | |
8563 | { | |
8564 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
8565 | test_array [0] = 0 | |
8566 | ||
8567 | ; | |
8568 | return 0; | |
8569 | } | |
8570 | _ACEOF | |
8571 | rm -f conftest.$ac_objext | |
8572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8573 | (eval $ac_compile) 2>conftest.er1 | |
8574 | ac_status=$? | |
8575 | grep -v '^ *+' conftest.er1 >conftest.err | |
8576 | rm -f conftest.er1 | |
8577 | cat conftest.err >&5 | |
8578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8579 | (exit $ac_status); } && | |
57255173 PB |
8580 | { ac_try='test -z "$ac_c_werror_flag" |
8581 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8583 | (eval $ac_try) 2>&5 | |
8584 | ac_status=$? | |
8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8586 | (exit $ac_status); }; } && | |
8587 | { ac_try='test -s conftest.$ac_objext' | |
8588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8589 | (eval $ac_try) 2>&5 | |
8590 | ac_status=$? | |
8591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8592 | (exit $ac_status); }; }; then | |
8593 | ac_hi=$ac_mid | |
8594 | else | |
8595 | echo "$as_me: failed program was:" >&5 | |
8596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8597 | ||
8598 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
8599 | fi | |
8600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8601 | done | |
8602 | case $ac_lo in | |
8603 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
8604 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
8605 | See \`config.log' for more details." >&5 | |
8606 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
8607 | See \`config.log' for more details." >&2;} | |
8608 | { (exit 1); exit 1; }; } ;; | |
8609 | esac | |
8610 | else | |
8611 | if test "$cross_compiling" = yes; then | |
57255173 PB |
8612 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
8613 | See \`config.log' for more details." >&5 | |
8614 | echo "$as_me: error: cannot run test program while cross compiling | |
8615 | See \`config.log' for more details." >&2;} | |
4c4b3eb0 PB |
8616 | { (exit 1); exit 1; }; } |
8617 | else | |
8618 | cat >conftest.$ac_ext <<_ACEOF | |
8619 | /* confdefs.h. */ | |
8620 | _ACEOF | |
8621 | cat confdefs.h >>conftest.$ac_ext | |
8622 | cat >>conftest.$ac_ext <<_ACEOF | |
8623 | /* end confdefs.h. */ | |
8624 | $ac_includes_default | |
8625 | long longval () { return (long) (sizeof (int)); } | |
8626 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
8627 | #include <stdio.h> | |
8628 | #include <stdlib.h> | |
8629 | int | |
8630 | main () | |
8631 | { | |
8632 | ||
8633 | FILE *f = fopen ("conftest.val", "w"); | |
8634 | if (! f) | |
8635 | exit (1); | |
8636 | if (((long) (sizeof (int))) < 0) | |
8637 | { | |
8638 | long i = longval (); | |
8639 | if (i != ((long) (sizeof (int)))) | |
8640 | exit (1); | |
8641 | fprintf (f, "%ld\n", i); | |
8642 | } | |
8643 | else | |
8644 | { | |
8645 | unsigned long i = ulongval (); | |
8646 | if (i != ((long) (sizeof (int)))) | |
8647 | exit (1); | |
8648 | fprintf (f, "%lu\n", i); | |
8649 | } | |
8650 | exit (ferror (f) || fclose (f) != 0); | |
8651 | ||
8652 | ; | |
8653 | return 0; | |
8654 | } | |
8655 | _ACEOF | |
8656 | rm -f conftest$ac_exeext | |
8657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8658 | (eval $ac_link) 2>&5 | |
8659 | ac_status=$? | |
8660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8663 | (eval $ac_try) 2>&5 | |
8664 | ac_status=$? | |
8665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8666 | (exit $ac_status); }; }; then | |
8667 | ac_cv_sizeof_int=`cat conftest.val` | |
8668 | else | |
8669 | echo "$as_me: program exited with status $ac_status" >&5 | |
8670 | echo "$as_me: failed program was:" >&5 | |
8671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8672 | ||
8673 | ( exit $ac_status ) | |
8674 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
8675 | See \`config.log' for more details." >&5 | |
8676 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
8677 | See \`config.log' for more details." >&2;} | |
8678 | { (exit 1); exit 1; }; } | |
8679 | fi | |
8680 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8681 | fi | |
8682 | fi | |
8683 | rm -f conftest.val | |
8684 | else | |
8685 | ac_cv_sizeof_int=0 | |
8686 | fi | |
8687 | fi | |
8688 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
8689 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
8690 | cat >>confdefs.h <<_ACEOF | |
8691 | #define SIZEOF_INT $ac_cv_sizeof_int | |
8692 | _ACEOF | |
8693 | ||
8694 | ||
8695 | echo "$as_me:$LINENO: checking for short" >&5 | |
8696 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
8697 | if test "${ac_cv_type_short+set}" = set; then | |
8698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8699 | else | |
8700 | cat >conftest.$ac_ext <<_ACEOF | |
8701 | /* confdefs.h. */ | |
8702 | _ACEOF | |
8703 | cat confdefs.h >>conftest.$ac_ext | |
8704 | cat >>conftest.$ac_ext <<_ACEOF | |
8705 | /* end confdefs.h. */ | |
8706 | $ac_includes_default | |
8707 | int | |
8708 | main () | |
8709 | { | |
8710 | if ((short *) 0) | |
8711 | return 0; | |
8712 | if (sizeof (short)) | |
8713 | return 0; | |
8714 | ; | |
8715 | return 0; | |
8716 | } | |
8717 | _ACEOF | |
8718 | rm -f conftest.$ac_objext | |
8719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8720 | (eval $ac_compile) 2>conftest.er1 | |
8721 | ac_status=$? | |
8722 | grep -v '^ *+' conftest.er1 >conftest.err | |
8723 | rm -f conftest.er1 | |
8724 | cat conftest.err >&5 | |
8725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8726 | (exit $ac_status); } && | |
57255173 PB |
8727 | { ac_try='test -z "$ac_c_werror_flag" |
8728 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8730 | (eval $ac_try) 2>&5 | |
8731 | ac_status=$? | |
8732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8733 | (exit $ac_status); }; } && | |
8734 | { ac_try='test -s conftest.$ac_objext' | |
8735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8736 | (eval $ac_try) 2>&5 | |
8737 | ac_status=$? | |
8738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8739 | (exit $ac_status); }; }; then | |
8740 | ac_cv_type_short=yes | |
8741 | else | |
8742 | echo "$as_me: failed program was:" >&5 | |
8743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8744 | ||
8745 | ac_cv_type_short=no | |
8746 | fi | |
8747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8748 | fi | |
8749 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
8750 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
8751 | ||
8752 | echo "$as_me:$LINENO: checking size of short" >&5 | |
8753 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
8754 | if test "${ac_cv_sizeof_short+set}" = set; then | |
8755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8756 | else | |
8757 | if test "$ac_cv_type_short" = yes; then | |
8758 | # The cast to unsigned long works around a bug in the HP C Compiler | |
8759 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8760 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8761 | # This bug is HP SR number 8606223364. | |
8762 | if test "$cross_compiling" = yes; then | |
8763 | # Depending upon the size, compute the lo and hi bounds. | |
8764 | cat >conftest.$ac_ext <<_ACEOF | |
8765 | /* confdefs.h. */ | |
8766 | _ACEOF | |
8767 | cat confdefs.h >>conftest.$ac_ext | |
8768 | cat >>conftest.$ac_ext <<_ACEOF | |
8769 | /* end confdefs.h. */ | |
8770 | $ac_includes_default | |
8771 | int | |
8772 | main () | |
8773 | { | |
8774 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
8775 | test_array [0] = 0 | |
8776 | ||
8777 | ; | |
8778 | return 0; | |
8779 | } | |
8780 | _ACEOF | |
8781 | rm -f conftest.$ac_objext | |
8782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8783 | (eval $ac_compile) 2>conftest.er1 | |
8784 | ac_status=$? | |
8785 | grep -v '^ *+' conftest.er1 >conftest.err | |
8786 | rm -f conftest.er1 | |
8787 | cat conftest.err >&5 | |
8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8789 | (exit $ac_status); } && | |
57255173 PB |
8790 | { ac_try='test -z "$ac_c_werror_flag" |
8791 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8793 | (eval $ac_try) 2>&5 | |
8794 | ac_status=$? | |
8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8796 | (exit $ac_status); }; } && | |
8797 | { ac_try='test -s conftest.$ac_objext' | |
8798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8799 | (eval $ac_try) 2>&5 | |
8800 | ac_status=$? | |
8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8802 | (exit $ac_status); }; }; then | |
8803 | ac_lo=0 ac_mid=0 | |
8804 | while :; do | |
8805 | cat >conftest.$ac_ext <<_ACEOF | |
8806 | /* confdefs.h. */ | |
8807 | _ACEOF | |
8808 | cat confdefs.h >>conftest.$ac_ext | |
8809 | cat >>conftest.$ac_ext <<_ACEOF | |
8810 | /* end confdefs.h. */ | |
8811 | $ac_includes_default | |
8812 | int | |
8813 | main () | |
8814 | { | |
8815 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
8816 | test_array [0] = 0 | |
8817 | ||
8818 | ; | |
8819 | return 0; | |
8820 | } | |
8821 | _ACEOF | |
8822 | rm -f conftest.$ac_objext | |
8823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8824 | (eval $ac_compile) 2>conftest.er1 | |
8825 | ac_status=$? | |
8826 | grep -v '^ *+' conftest.er1 >conftest.err | |
8827 | rm -f conftest.er1 | |
8828 | cat conftest.err >&5 | |
8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8830 | (exit $ac_status); } && | |
57255173 PB |
8831 | { ac_try='test -z "$ac_c_werror_flag" |
8832 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8834 | (eval $ac_try) 2>&5 | |
8835 | ac_status=$? | |
8836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8837 | (exit $ac_status); }; } && | |
8838 | { ac_try='test -s conftest.$ac_objext' | |
8839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8840 | (eval $ac_try) 2>&5 | |
8841 | ac_status=$? | |
8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8843 | (exit $ac_status); }; }; then | |
8844 | ac_hi=$ac_mid; break | |
8845 | else | |
8846 | echo "$as_me: failed program was:" >&5 | |
8847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8848 | ||
8849 | ac_lo=`expr $ac_mid + 1` | |
8850 | if test $ac_lo -le $ac_mid; then | |
8851 | ac_lo= ac_hi= | |
8852 | break | |
8853 | fi | |
8854 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
8855 | fi | |
8856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8857 | done | |
8858 | else | |
8859 | echo "$as_me: failed program was:" >&5 | |
8860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8861 | ||
8862 | cat >conftest.$ac_ext <<_ACEOF | |
8863 | /* confdefs.h. */ | |
8864 | _ACEOF | |
8865 | cat confdefs.h >>conftest.$ac_ext | |
8866 | cat >>conftest.$ac_ext <<_ACEOF | |
8867 | /* end confdefs.h. */ | |
8868 | $ac_includes_default | |
8869 | int | |
8870 | main () | |
8871 | { | |
8872 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
8873 | test_array [0] = 0 | |
8874 | ||
8875 | ; | |
8876 | return 0; | |
8877 | } | |
8878 | _ACEOF | |
8879 | rm -f conftest.$ac_objext | |
8880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8881 | (eval $ac_compile) 2>conftest.er1 | |
8882 | ac_status=$? | |
8883 | grep -v '^ *+' conftest.er1 >conftest.err | |
8884 | rm -f conftest.er1 | |
8885 | cat conftest.err >&5 | |
8886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8887 | (exit $ac_status); } && | |
57255173 PB |
8888 | { ac_try='test -z "$ac_c_werror_flag" |
8889 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8891 | (eval $ac_try) 2>&5 | |
8892 | ac_status=$? | |
8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8894 | (exit $ac_status); }; } && | |
8895 | { ac_try='test -s conftest.$ac_objext' | |
8896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8897 | (eval $ac_try) 2>&5 | |
8898 | ac_status=$? | |
8899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8900 | (exit $ac_status); }; }; then | |
8901 | ac_hi=-1 ac_mid=-1 | |
8902 | while :; do | |
8903 | cat >conftest.$ac_ext <<_ACEOF | |
8904 | /* confdefs.h. */ | |
8905 | _ACEOF | |
8906 | cat confdefs.h >>conftest.$ac_ext | |
8907 | cat >>conftest.$ac_ext <<_ACEOF | |
8908 | /* end confdefs.h. */ | |
8909 | $ac_includes_default | |
8910 | int | |
8911 | main () | |
8912 | { | |
8913 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
8914 | test_array [0] = 0 | |
8915 | ||
8916 | ; | |
8917 | return 0; | |
8918 | } | |
8919 | _ACEOF | |
8920 | rm -f conftest.$ac_objext | |
8921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8922 | (eval $ac_compile) 2>conftest.er1 | |
8923 | ac_status=$? | |
8924 | grep -v '^ *+' conftest.er1 >conftest.err | |
8925 | rm -f conftest.er1 | |
8926 | cat conftest.err >&5 | |
8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8928 | (exit $ac_status); } && | |
57255173 PB |
8929 | { ac_try='test -z "$ac_c_werror_flag" |
8930 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8932 | (eval $ac_try) 2>&5 | |
8933 | ac_status=$? | |
8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8935 | (exit $ac_status); }; } && | |
8936 | { ac_try='test -s conftest.$ac_objext' | |
8937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8938 | (eval $ac_try) 2>&5 | |
8939 | ac_status=$? | |
8940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8941 | (exit $ac_status); }; }; then | |
8942 | ac_lo=$ac_mid; break | |
8943 | else | |
8944 | echo "$as_me: failed program was:" >&5 | |
8945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8946 | ||
8947 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8948 | if test $ac_mid -le $ac_hi; then | |
8949 | ac_lo= ac_hi= | |
8950 | break | |
8951 | fi | |
8952 | ac_mid=`expr 2 '*' $ac_mid` | |
8953 | fi | |
8954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8955 | done | |
8956 | else | |
8957 | echo "$as_me: failed program was:" >&5 | |
8958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8959 | ||
8960 | ac_lo= ac_hi= | |
8961 | fi | |
8962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8963 | fi | |
8964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8965 | # Binary search between lo and hi bounds. | |
8966 | while test "x$ac_lo" != "x$ac_hi"; do | |
8967 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8968 | cat >conftest.$ac_ext <<_ACEOF | |
8969 | /* confdefs.h. */ | |
8970 | _ACEOF | |
8971 | cat confdefs.h >>conftest.$ac_ext | |
8972 | cat >>conftest.$ac_ext <<_ACEOF | |
8973 | /* end confdefs.h. */ | |
8974 | $ac_includes_default | |
8975 | int | |
8976 | main () | |
8977 | { | |
8978 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
8979 | test_array [0] = 0 | |
8980 | ||
8981 | ; | |
8982 | return 0; | |
8983 | } | |
8984 | _ACEOF | |
8985 | rm -f conftest.$ac_objext | |
8986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8987 | (eval $ac_compile) 2>conftest.er1 | |
8988 | ac_status=$? | |
8989 | grep -v '^ *+' conftest.er1 >conftest.err | |
8990 | rm -f conftest.er1 | |
8991 | cat conftest.err >&5 | |
8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8993 | (exit $ac_status); } && | |
57255173 PB |
8994 | { ac_try='test -z "$ac_c_werror_flag" |
8995 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
8996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8997 | (eval $ac_try) 2>&5 | |
8998 | ac_status=$? | |
8999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9000 | (exit $ac_status); }; } && | |
9001 | { ac_try='test -s conftest.$ac_objext' | |
9002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9003 | (eval $ac_try) 2>&5 | |
9004 | ac_status=$? | |
9005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9006 | (exit $ac_status); }; }; then | |
9007 | ac_hi=$ac_mid | |
9008 | else | |
9009 | echo "$as_me: failed program was:" >&5 | |
9010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9011 | ||
9012 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
9013 | fi | |
9014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9015 | done | |
9016 | case $ac_lo in | |
9017 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
9018 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
9019 | See \`config.log' for more details." >&5 | |
9020 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
9021 | See \`config.log' for more details." >&2;} | |
9022 | { (exit 1); exit 1; }; } ;; | |
9023 | esac | |
9024 | else | |
9025 | if test "$cross_compiling" = yes; then | |
57255173 PB |
9026 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
9027 | See \`config.log' for more details." >&5 | |
9028 | echo "$as_me: error: cannot run test program while cross compiling | |
9029 | See \`config.log' for more details." >&2;} | |
4c4b3eb0 PB |
9030 | { (exit 1); exit 1; }; } |
9031 | else | |
9032 | cat >conftest.$ac_ext <<_ACEOF | |
9033 | /* confdefs.h. */ | |
9034 | _ACEOF | |
9035 | cat confdefs.h >>conftest.$ac_ext | |
9036 | cat >>conftest.$ac_ext <<_ACEOF | |
9037 | /* end confdefs.h. */ | |
9038 | $ac_includes_default | |
9039 | long longval () { return (long) (sizeof (short)); } | |
9040 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
9041 | #include <stdio.h> | |
9042 | #include <stdlib.h> | |
9043 | int | |
9044 | main () | |
9045 | { | |
9046 | ||
9047 | FILE *f = fopen ("conftest.val", "w"); | |
9048 | if (! f) | |
9049 | exit (1); | |
9050 | if (((long) (sizeof (short))) < 0) | |
9051 | { | |
9052 | long i = longval (); | |
9053 | if (i != ((long) (sizeof (short)))) | |
9054 | exit (1); | |
9055 | fprintf (f, "%ld\n", i); | |
9056 | } | |
9057 | else | |
9058 | { | |
9059 | unsigned long i = ulongval (); | |
9060 | if (i != ((long) (sizeof (short)))) | |
9061 | exit (1); | |
9062 | fprintf (f, "%lu\n", i); | |
9063 | } | |
9064 | exit (ferror (f) || fclose (f) != 0); | |
9065 | ||
9066 | ; | |
9067 | return 0; | |
9068 | } | |
9069 | _ACEOF | |
9070 | rm -f conftest$ac_exeext | |
9071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9072 | (eval $ac_link) 2>&5 | |
9073 | ac_status=$? | |
9074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9075 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9077 | (eval $ac_try) 2>&5 | |
9078 | ac_status=$? | |
9079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9080 | (exit $ac_status); }; }; then | |
9081 | ac_cv_sizeof_short=`cat conftest.val` | |
9082 | else | |
9083 | echo "$as_me: program exited with status $ac_status" >&5 | |
9084 | echo "$as_me: failed program was:" >&5 | |
9085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9086 | ||
9087 | ( exit $ac_status ) | |
9088 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
9089 | See \`config.log' for more details." >&5 | |
9090 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
9091 | See \`config.log' for more details." >&2;} | |
9092 | { (exit 1); exit 1; }; } | |
9093 | fi | |
9094 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9095 | fi | |
9096 | fi | |
9097 | rm -f conftest.val | |
9098 | else | |
9099 | ac_cv_sizeof_short=0 | |
9100 | fi | |
9101 | fi | |
9102 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
9103 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
9104 | cat >>confdefs.h <<_ACEOF | |
9105 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
9106 | _ACEOF | |
9107 | ||
9108 | ||
9109 | echo "$as_me:$LINENO: checking for char" >&5 | |
9110 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
9111 | if test "${ac_cv_type_char+set}" = set; then | |
9112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9113 | else | |
9114 | cat >conftest.$ac_ext <<_ACEOF | |
9115 | /* confdefs.h. */ | |
9116 | _ACEOF | |
9117 | cat confdefs.h >>conftest.$ac_ext | |
9118 | cat >>conftest.$ac_ext <<_ACEOF | |
9119 | /* end confdefs.h. */ | |
9120 | $ac_includes_default | |
9121 | int | |
9122 | main () | |
9123 | { | |
9124 | if ((char *) 0) | |
9125 | return 0; | |
9126 | if (sizeof (char)) | |
9127 | return 0; | |
9128 | ; | |
9129 | return 0; | |
9130 | } | |
9131 | _ACEOF | |
9132 | rm -f conftest.$ac_objext | |
9133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9134 | (eval $ac_compile) 2>conftest.er1 | |
9135 | ac_status=$? | |
9136 | grep -v '^ *+' conftest.er1 >conftest.err | |
9137 | rm -f conftest.er1 | |
9138 | cat conftest.err >&5 | |
9139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9140 | (exit $ac_status); } && | |
57255173 PB |
9141 | { ac_try='test -z "$ac_c_werror_flag" |
9142 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
9143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9144 | (eval $ac_try) 2>&5 | |
9145 | ac_status=$? | |
9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9147 | (exit $ac_status); }; } && | |
9148 | { ac_try='test -s conftest.$ac_objext' | |
9149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9150 | (eval $ac_try) 2>&5 | |
9151 | ac_status=$? | |
9152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9153 | (exit $ac_status); }; }; then | |
9154 | ac_cv_type_char=yes | |
9155 | else | |
9156 | echo "$as_me: failed program was:" >&5 | |
9157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9158 | ||
9159 | ac_cv_type_char=no | |
9160 | fi | |
9161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9162 | fi | |
9163 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
9164 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
9165 | ||
9166 | echo "$as_me:$LINENO: checking size of char" >&5 | |
9167 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
9168 | if test "${ac_cv_sizeof_char+set}" = set; then | |
9169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9170 | else | |
9171 | if test "$ac_cv_type_char" = yes; then | |
9172 | # The cast to unsigned long works around a bug in the HP C Compiler | |
9173 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
9174 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
9175 | # This bug is HP SR number 8606223364. | |
9176 | if test "$cross_compiling" = yes; then | |
9177 | # Depending upon the size, compute the lo and hi bounds. | |
9178 | cat >conftest.$ac_ext <<_ACEOF | |
9179 | /* confdefs.h. */ | |
9180 | _ACEOF | |
9181 | cat confdefs.h >>conftest.$ac_ext | |
9182 | cat >>conftest.$ac_ext <<_ACEOF | |
9183 | /* end confdefs.h. */ | |
9184 | $ac_includes_default | |
9185 | int | |
9186 | main () | |
9187 | { | |
9188 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
9189 | test_array [0] = 0 | |
9190 | ||
9191 | ; | |
9192 | return 0; | |
9193 | } | |
9194 | _ACEOF | |
9195 | rm -f conftest.$ac_objext | |
9196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9197 | (eval $ac_compile) 2>conftest.er1 | |
9198 | ac_status=$? | |
9199 | grep -v '^ *+' conftest.er1 >conftest.err | |
9200 | rm -f conftest.er1 | |
9201 | cat conftest.err >&5 | |
9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9203 | (exit $ac_status); } && | |
57255173 PB |
9204 | { ac_try='test -z "$ac_c_werror_flag" |
9205 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
9206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9207 | (eval $ac_try) 2>&5 | |
9208 | ac_status=$? | |
9209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9210 | (exit $ac_status); }; } && | |
9211 | { ac_try='test -s conftest.$ac_objext' | |
9212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9213 | (eval $ac_try) 2>&5 | |
9214 | ac_status=$? | |
9215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9216 | (exit $ac_status); }; }; then | |
9217 | ac_lo=0 ac_mid=0 | |
9218 | while :; do | |
9219 | cat >conftest.$ac_ext <<_ACEOF | |
9220 | /* confdefs.h. */ | |
9221 | _ACEOF | |
9222 | cat confdefs.h >>conftest.$ac_ext | |
9223 | cat >>conftest.$ac_ext <<_ACEOF | |
9224 | /* end confdefs.h. */ | |
9225 | $ac_includes_default | |
9226 | int | |
9227 | main () | |
9228 | { | |
9229 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
9230 | test_array [0] = 0 | |
9231 | ||
9232 | ; | |
9233 | return 0; | |
9234 | } | |
9235 | _ACEOF | |
9236 | rm -f conftest.$ac_objext | |
9237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9238 | (eval $ac_compile) 2>conftest.er1 | |
9239 | ac_status=$? | |
9240 | grep -v '^ *+' conftest.er1 >conftest.err | |
9241 | rm -f conftest.er1 | |
9242 | cat conftest.err >&5 | |
9243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9244 | (exit $ac_status); } && | |
57255173 PB |
9245 | { ac_try='test -z "$ac_c_werror_flag" |
9246 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
9247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9248 | (eval $ac_try) 2>&5 | |
9249 | ac_status=$? | |
9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9251 | (exit $ac_status); }; } && | |
9252 | { ac_try='test -s conftest.$ac_objext' | |
9253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9254 | (eval $ac_try) 2>&5 | |
9255 | ac_status=$? | |
9256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9257 | (exit $ac_status); }; }; then | |
9258 | ac_hi=$ac_mid; break | |
9259 | else | |
9260 | echo "$as_me: failed program was:" >&5 | |
9261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9262 | ||
9263 | ac_lo=`expr $ac_mid + 1` | |
9264 | if test $ac_lo -le $ac_mid; then | |
9265 | ac_lo= ac_hi= | |
9266 | break | |
9267 | fi | |
9268 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
9269 | fi | |
9270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9271 | done | |
9272 | else | |
9273 | echo "$as_me: failed program was:" >&5 | |
9274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9275 | ||
9276 | cat >conftest.$ac_ext <<_ACEOF | |
9277 | /* confdefs.h. */ | |
9278 | _ACEOF | |
9279 | cat confdefs.h >>conftest.$ac_ext | |
9280 | cat >>conftest.$ac_ext <<_ACEOF | |
9281 | /* end confdefs.h. */ | |
9282 | $ac_includes_default | |
9283 | int | |
9284 | main () | |
9285 | { | |
9286 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
9287 | test_array [0] = 0 | |
9288 | ||
9289 | ; | |
9290 | return 0; | |
9291 | } | |
9292 | _ACEOF | |
9293 | rm -f conftest.$ac_objext | |
9294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9295 | (eval $ac_compile) 2>conftest.er1 | |
9296 | ac_status=$? | |
9297 | grep -v '^ *+' conftest.er1 >conftest.err | |
9298 | rm -f conftest.er1 | |
9299 | cat conftest.err >&5 | |
9300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9301 | (exit $ac_status); } && | |
57255173 PB |
9302 | { ac_try='test -z "$ac_c_werror_flag" |
9303 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
9304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9305 | (eval $ac_try) 2>&5 | |
9306 | ac_status=$? | |
9307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9308 | (exit $ac_status); }; } && | |
9309 | { ac_try='test -s conftest.$ac_objext' | |
9310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9311 | (eval $ac_try) 2>&5 | |
9312 | ac_status=$? | |
9313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9314 | (exit $ac_status); }; }; then | |
9315 | ac_hi=-1 ac_mid=-1 | |
9316 | while :; do | |
9317 | cat >conftest.$ac_ext <<_ACEOF | |
9318 | /* confdefs.h. */ | |
9319 | _ACEOF | |
9320 | cat confdefs.h >>conftest.$ac_ext | |
9321 | cat >>conftest.$ac_ext <<_ACEOF | |
9322 | /* end confdefs.h. */ | |
9323 | $ac_includes_default | |
9324 | int | |
9325 | main () | |
9326 | { | |
9327 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
9328 | test_array [0] = 0 | |
9329 | ||
9330 | ; | |
9331 | return 0; | |
9332 | } | |
9333 | _ACEOF | |
9334 | rm -f conftest.$ac_objext | |
9335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9336 | (eval $ac_compile) 2>conftest.er1 | |
9337 | ac_status=$? | |
9338 | grep -v '^ *+' conftest.er1 >conftest.err | |
9339 | rm -f conftest.er1 | |
9340 | cat conftest.err >&5 | |
9341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9342 | (exit $ac_status); } && | |
57255173 PB |
9343 | { ac_try='test -z "$ac_c_werror_flag" |
9344 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
9345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9346 | (eval $ac_try) 2>&5 | |
9347 | ac_status=$? | |
9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9349 | (exit $ac_status); }; } && | |
9350 | { ac_try='test -s conftest.$ac_objext' | |
9351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9352 | (eval $ac_try) 2>&5 | |
9353 | ac_status=$? | |
9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9355 | (exit $ac_status); }; }; then | |
9356 | ac_lo=$ac_mid; break | |
9357 | else | |
9358 | echo "$as_me: failed program was:" >&5 | |
9359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9360 | ||
9361 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
9362 | if test $ac_mid -le $ac_hi; then | |
9363 | ac_lo= ac_hi= | |
9364 | break | |
9365 | fi | |
9366 | ac_mid=`expr 2 '*' $ac_mid` | |
9367 | fi | |
9368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9369 | done | |
9370 | else | |
9371 | echo "$as_me: failed program was:" >&5 | |
9372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9373 | ||
9374 | ac_lo= ac_hi= | |
9375 | fi | |
9376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9377 | fi | |
9378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9379 | # Binary search between lo and hi bounds. | |
9380 | while test "x$ac_lo" != "x$ac_hi"; do | |
9381 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
9382 | cat >conftest.$ac_ext <<_ACEOF | |
9383 | /* confdefs.h. */ | |
9384 | _ACEOF | |
9385 | cat confdefs.h >>conftest.$ac_ext | |
9386 | cat >>conftest.$ac_ext <<_ACEOF | |
9387 | /* end confdefs.h. */ | |
9388 | $ac_includes_default | |
9389 | int | |
9390 | main () | |
9391 | { | |
9392 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
9393 | test_array [0] = 0 | |
9394 | ||
9395 | ; | |
9396 | return 0; | |
9397 | } | |
9398 | _ACEOF | |
9399 | rm -f conftest.$ac_objext | |
9400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9401 | (eval $ac_compile) 2>conftest.er1 | |
9402 | ac_status=$? | |
9403 | grep -v '^ *+' conftest.er1 >conftest.err | |
9404 | rm -f conftest.er1 | |
9405 | cat conftest.err >&5 | |
9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9407 | (exit $ac_status); } && | |
57255173 PB |
9408 | { ac_try='test -z "$ac_c_werror_flag" |
9409 | || test ! -s conftest.err' | |
4c4b3eb0 PB |
9410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9411 | (eval $ac_try) 2>&5 | |
9412 | ac_status=$? | |
9413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9414 | (exit $ac_status); }; } && | |
9415 | { ac_try='test -s conftest.$ac_objext' | |
9416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9417 | (eval $ac_try) 2>&5 | |
9418 | ac_status=$? | |
9419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9420 | (exit $ac_status); }; }; then | |
9421 | ac_hi=$ac_mid | |
9422 | else | |
9423 | echo "$as_me: failed program was:" >&5 | |
9424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9425 | ||
9426 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
9427 | fi | |
9428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9429 | done | |
9430 | case $ac_lo in | |
9431 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
9432 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
9433 | See \`config.log' for more details." >&5 | |
9434 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
9435 | See \`config.log' for more details." >&2;} | |
9436 | { (exit 1); exit 1; }; } ;; | |
9437 | esac | |
9438 | else | |
9439 | if test "$cross_compiling" = yes; then | |
57255173 PB |
9440 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
9441 | See \`config.log' for more details." >&5 | |
9442 | echo "$as_me: error: cannot run test program while cross compiling | |
9443 | See \`config.log' for more details." >&2;} | |
4c4b3eb0 PB |
9444 | { (exit 1); exit 1; }; } |
9445 | else | |
9446 | cat >conftest.$ac_ext <<_ACEOF | |
9447 | /* confdefs.h. */ | |
9448 | _ACEOF | |
9449 | cat confdefs.h >>conftest.$ac_ext | |
9450 | cat >>conftest.$ac_ext <<_ACEOF | |
9451 | /* end confdefs.h. */ | |
9452 | $ac_includes_default | |
9453 | long longval () { return (long) (sizeof (char)); } | |
9454 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
9455 | #include <stdio.h> | |
9456 | #include <stdlib.h> | |
9457 | int | |
9458 | main () | |
9459 | { | |
9460 | ||
9461 | FILE *f = fopen ("conftest.val", "w"); | |
9462 | if (! f) | |
9463 | exit (1); | |
9464 | if (((long) (sizeof (char))) < 0) | |
9465 | { | |
9466 | long i = longval (); | |
9467 | if (i != ((long) (sizeof (char)))) | |
9468 | exit (1); | |
9469 | fprintf (f, "%ld\n", i); | |
9470 | } | |
9471 | else | |
9472 | { | |
9473 | unsigned long i = ulongval (); | |
9474 | if (i != ((long) (sizeof (char)))) | |
9475 | exit (1); | |
9476 | fprintf (f, "%lu\n", i); | |
9477 | } | |
9478 | exit (ferror (f) || fclose (f) != 0); | |
9479 | ||
9480 | ; | |
9481 | return 0; | |
9482 | } | |
9483 | _ACEOF | |
9484 | rm -f conftest$ac_exeext | |
9485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9486 | (eval $ac_link) 2>&5 | |
9487 | ac_status=$? | |
9488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9489 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9491 | (eval $ac_try) 2>&5 | |
9492 | ac_status=$? | |
9493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9494 | (exit $ac_status); }; }; then | |
9495 | ac_cv_sizeof_char=`cat conftest.val` | |
9496 | else | |
9497 | echo "$as_me: program exited with status $ac_status" >&5 | |
9498 | echo "$as_me: failed program was:" >&5 | |
9499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9500 | ||
9501 | ( exit $ac_status ) | |
9502 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
9503 | See \`config.log' for more details." >&5 | |
9504 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
9505 | See \`config.log' for more details." >&2;} | |
9506 | { (exit 1); exit 1; }; } | |
9507 | fi | |
9508 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9509 | fi | |
9510 | fi | |
9511 | rm -f conftest.val | |
9512 | else | |
9513 | ac_cv_sizeof_char=0 | |
9514 | fi | |
9515 | fi | |
9516 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
9517 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
9518 | cat >>confdefs.h <<_ACEOF | |
9519 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
9520 | _ACEOF | |
9521 | ||
9522 | ||
9523 | ||
9524 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 | |
9525 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
9526 | case "$ac_cv_sizeof_char" in | |
9527 | 1) acx_cv_type_int8_t=char ;; | |
9528 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
9529 | echo "$as_me: error: no 8-bit type" >&2;} | |
9530 | { (exit please report a bug); exit please report a bug; }; } | |
9531 | esac | |
9532 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 | |
9533 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
9534 | ||
9535 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 | |
9536 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
9537 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
9538 | 2:*) acx_cv_type_int16_t=int ;; | |
9539 | *:2) acx_cv_type_int16_t=short ;; | |
9540 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
9541 | echo "$as_me: error: no 16-bit type" >&2;} | |
9542 | { (exit please report a bug); exit please report a bug; }; } | |
9543 | esac | |
9544 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 | |
9545 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
9546 | ||
9547 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 | |
9548 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
9549 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
9550 | 4:*) acx_cv_type_int32_t=int ;; | |
9551 | *:4) acx_cv_type_int32_t=long ;; | |
9552 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
9553 | echo "$as_me: error: no 32-bit type" >&2;} | |
9554 | { (exit please report a bug); exit please report a bug; }; } | |
9555 | esac | |
9556 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 | |
9557 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
9558 | fi | |
9559 | ||
9560 | # These tests are here to make the output prettier | |
9561 | ||
9562 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
9563 | case "$ac_cv_sizeof_long" in | |
9564 | 8) acx_cv_type_int64_t=long ;; | |
9565 | esac | |
9566 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 | |
9567 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
9568 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
9569 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
9570 | fi | |
9571 | ||
9572 | # Now we can use the above types | |
9573 | ||
9574 | if test "$ac_cv_type_uintptr_t" != yes; then | |
9575 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 | |
9576 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
9577 | case $ac_cv_sizeof_void_p in | |
9578 | 2) acx_cv_type_intptr_t=int16_t ;; | |
9579 | 4) acx_cv_type_intptr_t=int32_t ;; | |
9580 | 8) acx_cv_type_intptr_t=int64_t ;; | |
9581 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
9582 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
9583 | { (exit please report a bug); exit please report a bug; }; } | |
9584 | esac | |
9585 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 | |
9586 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
9587 | fi | |
9588 | ||
9589 | # ----------------- done all checks, emit header ------------- | |
9590 | ac_config_commands="$ac_config_commands gstdint.h" | |
9591 | ||
9592 | ||
9593 | ||
9594 | ||
df65f093 SK |
9595 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
9596 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
9597 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
9598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9599 | else | |
9600 | cat >conftest.$ac_ext <<_ACEOF | |
9601 | /* confdefs.h. */ | |
9602 | _ACEOF | |
9603 | cat confdefs.h >>conftest.$ac_ext | |
9604 | cat >>conftest.$ac_ext <<_ACEOF | |
9605 | /* end confdefs.h. */ | |
9606 | $ac_includes_default | |
9607 | int | |
9608 | main () | |
9609 | { | |
9610 | static struct stat ac_aggr; | |
9611 | if (ac_aggr.st_blksize) | |
9612 | return 0; | |
9613 | ; | |
9614 | return 0; | |
9615 | } | |
9616 | _ACEOF | |
9617 | rm -f conftest.$ac_objext | |
9618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9619 | (eval $ac_compile) 2>conftest.er1 | |
9620 | ac_status=$? | |
9621 | grep -v '^ *+' conftest.er1 >conftest.err | |
9622 | rm -f conftest.er1 | |
9623 | cat conftest.err >&5 | |
9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9625 | (exit $ac_status); } && | |
57255173 PB |
9626 | { ac_try='test -z "$ac_c_werror_flag" |
9627 | || test ! -s conftest.err' | |
df65f093 SK |
9628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9629 | (eval $ac_try) 2>&5 | |
9630 | ac_status=$? | |
9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9632 | (exit $ac_status); }; } && | |
9633 | { ac_try='test -s conftest.$ac_objext' | |
9634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9635 | (eval $ac_try) 2>&5 | |
9636 | ac_status=$? | |
9637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9638 | (exit $ac_status); }; }; then | |
9639 | ac_cv_member_struct_stat_st_blksize=yes | |
9640 | else | |
9641 | echo "$as_me: failed program was:" >&5 | |
9642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9643 | ||
9644 | cat >conftest.$ac_ext <<_ACEOF | |
9645 | /* confdefs.h. */ | |
9646 | _ACEOF | |
9647 | cat confdefs.h >>conftest.$ac_ext | |
9648 | cat >>conftest.$ac_ext <<_ACEOF | |
9649 | /* end confdefs.h. */ | |
9650 | $ac_includes_default | |
9651 | int | |
9652 | main () | |
9653 | { | |
9654 | static struct stat ac_aggr; | |
9655 | if (sizeof ac_aggr.st_blksize) | |
9656 | return 0; | |
9657 | ; | |
9658 | return 0; | |
9659 | } | |
9660 | _ACEOF | |
9661 | rm -f conftest.$ac_objext | |
9662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9663 | (eval $ac_compile) 2>conftest.er1 | |
9664 | ac_status=$? | |
9665 | grep -v '^ *+' conftest.er1 >conftest.err | |
9666 | rm -f conftest.er1 | |
9667 | cat conftest.err >&5 | |
9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9669 | (exit $ac_status); } && | |
57255173 PB |
9670 | { ac_try='test -z "$ac_c_werror_flag" |
9671 | || test ! -s conftest.err' | |
df65f093 SK |
9672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9673 | (eval $ac_try) 2>&5 | |
9674 | ac_status=$? | |
9675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9676 | (exit $ac_status); }; } && | |
9677 | { ac_try='test -s conftest.$ac_objext' | |
9678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9679 | (eval $ac_try) 2>&5 | |
9680 | ac_status=$? | |
9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9682 | (exit $ac_status); }; }; then | |
9683 | ac_cv_member_struct_stat_st_blksize=yes | |
9684 | else | |
9685 | echo "$as_me: failed program was:" >&5 | |
9686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9687 | ||
9688 | ac_cv_member_struct_stat_st_blksize=no | |
9689 | fi | |
9690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9691 | fi | |
9692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9693 | fi | |
9694 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | |
9695 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
9696 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
9697 | ||
9698 | cat >>confdefs.h <<_ACEOF | |
9699 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
9700 | _ACEOF | |
9701 | ||
9702 | ||
9703 | fi | |
9704 | ||
9705 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 | |
9706 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
9707 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
9708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9709 | else | |
9710 | cat >conftest.$ac_ext <<_ACEOF | |
9711 | /* confdefs.h. */ | |
9712 | _ACEOF | |
9713 | cat confdefs.h >>conftest.$ac_ext | |
9714 | cat >>conftest.$ac_ext <<_ACEOF | |
9715 | /* end confdefs.h. */ | |
9716 | $ac_includes_default | |
9717 | int | |
9718 | main () | |
9719 | { | |
9720 | static struct stat ac_aggr; | |
9721 | if (ac_aggr.st_blocks) | |
9722 | return 0; | |
9723 | ; | |
9724 | return 0; | |
9725 | } | |
9726 | _ACEOF | |
9727 | rm -f conftest.$ac_objext | |
9728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9729 | (eval $ac_compile) 2>conftest.er1 | |
9730 | ac_status=$? | |
9731 | grep -v '^ *+' conftest.er1 >conftest.err | |
9732 | rm -f conftest.er1 | |
9733 | cat conftest.err >&5 | |
9734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9735 | (exit $ac_status); } && | |
57255173 PB |
9736 | { ac_try='test -z "$ac_c_werror_flag" |
9737 | || test ! -s conftest.err' | |
df65f093 SK |
9738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9739 | (eval $ac_try) 2>&5 | |
9740 | ac_status=$? | |
9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9742 | (exit $ac_status); }; } && | |
9743 | { ac_try='test -s conftest.$ac_objext' | |
9744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9745 | (eval $ac_try) 2>&5 | |
9746 | ac_status=$? | |
9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9748 | (exit $ac_status); }; }; then | |
9749 | ac_cv_member_struct_stat_st_blocks=yes | |
9750 | else | |
9751 | echo "$as_me: failed program was:" >&5 | |
9752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9753 | ||
9754 | cat >conftest.$ac_ext <<_ACEOF | |
9755 | /* confdefs.h. */ | |
9756 | _ACEOF | |
9757 | cat confdefs.h >>conftest.$ac_ext | |
9758 | cat >>conftest.$ac_ext <<_ACEOF | |
9759 | /* end confdefs.h. */ | |
9760 | $ac_includes_default | |
9761 | int | |
9762 | main () | |
9763 | { | |
9764 | static struct stat ac_aggr; | |
9765 | if (sizeof ac_aggr.st_blocks) | |
9766 | return 0; | |
9767 | ; | |
9768 | return 0; | |
9769 | } | |
9770 | _ACEOF | |
9771 | rm -f conftest.$ac_objext | |
9772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9773 | (eval $ac_compile) 2>conftest.er1 | |
9774 | ac_status=$? | |
9775 | grep -v '^ *+' conftest.er1 >conftest.err | |
9776 | rm -f conftest.er1 | |
9777 | cat conftest.err >&5 | |
9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9779 | (exit $ac_status); } && | |
57255173 PB |
9780 | { ac_try='test -z "$ac_c_werror_flag" |
9781 | || test ! -s conftest.err' | |
df65f093 SK |
9782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9783 | (eval $ac_try) 2>&5 | |
9784 | ac_status=$? | |
9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9786 | (exit $ac_status); }; } && | |
9787 | { ac_try='test -s conftest.$ac_objext' | |
9788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9789 | (eval $ac_try) 2>&5 | |
9790 | ac_status=$? | |
9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9792 | (exit $ac_status); }; }; then | |
9793 | ac_cv_member_struct_stat_st_blocks=yes | |
9794 | else | |
9795 | echo "$as_me: failed program was:" >&5 | |
9796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9797 | ||
9798 | ac_cv_member_struct_stat_st_blocks=no | |
9799 | fi | |
9800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9801 | fi | |
9802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9803 | fi | |
9804 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 | |
9805 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
9806 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
9807 | ||
9808 | cat >>confdefs.h <<_ACEOF | |
9809 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
9810 | _ACEOF | |
9811 | ||
9812 | ||
9813 | fi | |
9814 | ||
9815 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
9816 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
9817 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
9818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9819 | else | |
9820 | cat >conftest.$ac_ext <<_ACEOF | |
9821 | /* confdefs.h. */ | |
9822 | _ACEOF | |
9823 | cat confdefs.h >>conftest.$ac_ext | |
9824 | cat >>conftest.$ac_ext <<_ACEOF | |
9825 | /* end confdefs.h. */ | |
9826 | $ac_includes_default | |
9827 | int | |
9828 | main () | |
9829 | { | |
9830 | static struct stat ac_aggr; | |
9831 | if (ac_aggr.st_rdev) | |
9832 | return 0; | |
9833 | ; | |
9834 | return 0; | |
9835 | } | |
9836 | _ACEOF | |
9837 | rm -f conftest.$ac_objext | |
9838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9839 | (eval $ac_compile) 2>conftest.er1 | |
9840 | ac_status=$? | |
9841 | grep -v '^ *+' conftest.er1 >conftest.err | |
9842 | rm -f conftest.er1 | |
9843 | cat conftest.err >&5 | |
9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9845 | (exit $ac_status); } && | |
57255173 PB |
9846 | { ac_try='test -z "$ac_c_werror_flag" |
9847 | || test ! -s conftest.err' | |
df65f093 SK |
9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9849 | (eval $ac_try) 2>&5 | |
9850 | ac_status=$? | |
9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9852 | (exit $ac_status); }; } && | |
9853 | { ac_try='test -s conftest.$ac_objext' | |
9854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9855 | (eval $ac_try) 2>&5 | |
9856 | ac_status=$? | |
9857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9858 | (exit $ac_status); }; }; then | |
9859 | ac_cv_member_struct_stat_st_rdev=yes | |
9860 | else | |
9861 | echo "$as_me: failed program was:" >&5 | |
9862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9863 | ||
9864 | cat >conftest.$ac_ext <<_ACEOF | |
9865 | /* confdefs.h. */ | |
9866 | _ACEOF | |
9867 | cat confdefs.h >>conftest.$ac_ext | |
9868 | cat >>conftest.$ac_ext <<_ACEOF | |
9869 | /* end confdefs.h. */ | |
9870 | $ac_includes_default | |
9871 | int | |
9872 | main () | |
9873 | { | |
9874 | static struct stat ac_aggr; | |
9875 | if (sizeof ac_aggr.st_rdev) | |
9876 | return 0; | |
9877 | ; | |
9878 | return 0; | |
9879 | } | |
9880 | _ACEOF | |
9881 | rm -f conftest.$ac_objext | |
9882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9883 | (eval $ac_compile) 2>conftest.er1 | |
9884 | ac_status=$? | |
9885 | grep -v '^ *+' conftest.er1 >conftest.err | |
9886 | rm -f conftest.er1 | |
9887 | cat conftest.err >&5 | |
9888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9889 | (exit $ac_status); } && | |
57255173 PB |
9890 | { ac_try='test -z "$ac_c_werror_flag" |
9891 | || test ! -s conftest.err' | |
df65f093 SK |
9892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9893 | (eval $ac_try) 2>&5 | |
9894 | ac_status=$? | |
9895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9896 | (exit $ac_status); }; } && | |
9897 | { ac_try='test -s conftest.$ac_objext' | |
9898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9899 | (eval $ac_try) 2>&5 | |
9900 | ac_status=$? | |
9901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9902 | (exit $ac_status); }; }; then | |
9903 | ac_cv_member_struct_stat_st_rdev=yes | |
9904 | else | |
9905 | echo "$as_me: failed program was:" >&5 | |
9906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9907 | ||
9908 | ac_cv_member_struct_stat_st_rdev=no | |
9909 | fi | |
9910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9911 | fi | |
9912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9913 | fi | |
9914 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
9915 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
9916 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
9917 | ||
9918 | cat >>confdefs.h <<_ACEOF | |
9919 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
9920 | _ACEOF | |
9921 | ||
9922 | ||
9923 | fi | |
9924 | ||
9925 | ||
96b8a615 AJ |
9926 | # Check for library functions. |
9927 | ||
9928 | ||
41724e6a | 9929 | |
2cbcdeba | 9930 | |
3969c39f | 9931 | |
1fb2002d FXC |
9932 | |
9933 | ||
32aa3bff FXC |
9934 | |
9935 | for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize | |
96b8a615 AJ |
9936 | do |
9937 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9938 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9939 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9940 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6de9cd9a DN |
9941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9942 | else | |
f02d008e JD |
9943 | if test x$gcc_no_link = xyes; then |
9944 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9945 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9946 | { (exit 1); exit 1; }; } | |
9947 | fi | |
9948 | cat >conftest.$ac_ext <<_ACEOF | |
f77b6ca3 FXC |
9949 | /* confdefs.h. */ |
9950 | _ACEOF | |
9951 | cat confdefs.h >>conftest.$ac_ext | |
9952 | cat >>conftest.$ac_ext <<_ACEOF | |
9953 | /* end confdefs.h. */ | |
9954 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9955 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9956 | #define $ac_func innocuous_$ac_func | |
9957 | ||
9958 | /* System header to define __stub macros and hopefully few prototypes, | |
9959 | which can conflict with char $ac_func (); below. | |
9960 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9961 | <limits.h> exists even on freestanding compilers. */ | |
9962 | ||
9963 | #ifdef __STDC__ | |
9964 | # include <limits.h> | |
9965 | #else | |
9966 | # include <assert.h> | |
9967 | #endif | |
9968 | ||
9969 | #undef $ac_func | |
9970 | ||
9971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9972 | #ifdef __cplusplus | |
9973 | extern "C" | |
9974 | { | |
9975 | #endif | |
9976 | /* We use char because int might match the return type of a gcc2 | |
9977 | builtin and then its argument prototype would still apply. */ | |
9978 | char $ac_func (); | |
9979 | /* The GNU C library defines this for functions which it implements | |
9980 | to always fail with ENOSYS. Some functions are actually named | |
9981 | something starting with __ and the normal name is an alias. */ | |
9982 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9983 | choke me | |
9984 | #else | |
9985 | char (*f) () = $ac_func; | |
9986 | #endif | |
9987 | #ifdef __cplusplus | |
9988 | } | |
9989 | #endif | |
9990 | ||
9991 | int | |
9992 | main () | |
9993 | { | |
9994 | return f != $ac_func; | |
9995 | ; | |
9996 | return 0; | |
9997 | } | |
9998 | _ACEOF | |
9999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10001 | (eval $ac_link) 2>conftest.er1 | |
10002 | ac_status=$? | |
10003 | grep -v '^ *+' conftest.er1 >conftest.err | |
10004 | rm -f conftest.er1 | |
10005 | cat conftest.err >&5 | |
10006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10007 | (exit $ac_status); } && | |
57255173 PB |
10008 | { ac_try='test -z "$ac_c_werror_flag" |
10009 | || test ! -s conftest.err' | |
f77b6ca3 FXC |
10010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10011 | (eval $ac_try) 2>&5 | |
10012 | ac_status=$? | |
10013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10014 | (exit $ac_status); }; } && | |
10015 | { ac_try='test -s conftest$ac_exeext' | |
10016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10017 | (eval $ac_try) 2>&5 | |
10018 | ac_status=$? | |
10019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10020 | (exit $ac_status); }; }; then | |
10021 | eval "$as_ac_var=yes" | |
10022 | else | |
10023 | echo "$as_me: failed program was:" >&5 | |
10024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10025 | ||
10026 | eval "$as_ac_var=no" | |
d49ec2d1 | 10027 | fi |
f77b6ca3 FXC |
10028 | rm -f conftest.err conftest.$ac_objext \ |
10029 | conftest$ac_exeext conftest.$ac_ext | |
10030 | fi | |
10031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10032 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10033 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10034 | cat >>confdefs.h <<_ACEOF | |
10035 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10036 | _ACEOF | |
10037 | ||
10038 | fi | |
10039 | done | |
10040 | ||
10041 | ||
10042 | ||
10043 | ||
10044 | ||
10045 | ||
10046 | ||
10047 | ||
10048 | ||
10049 | for ac_func in chdir strerror getlogin gethostname kill link symlink perror | |
10050 | do | |
10051 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10052 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10053 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10054 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10056 | else | |
f02d008e JD |
10057 | if test x$gcc_no_link = xyes; then |
10058 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10059 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10060 | { (exit 1); exit 1; }; } | |
10061 | fi | |
10062 | cat >conftest.$ac_ext <<_ACEOF | |
96b8a615 AJ |
10063 | /* confdefs.h. */ |
10064 | _ACEOF | |
10065 | cat confdefs.h >>conftest.$ac_ext | |
10066 | cat >>conftest.$ac_ext <<_ACEOF | |
10067 | /* end confdefs.h. */ | |
10068 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10070 | #define $ac_func innocuous_$ac_func | |
6de9cd9a | 10071 | |
96b8a615 AJ |
10072 | /* System header to define __stub macros and hopefully few prototypes, |
10073 | which can conflict with char $ac_func (); below. | |
10074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10075 | <limits.h> exists even on freestanding compilers. */ | |
6de9cd9a | 10076 | |
96b8a615 AJ |
10077 | #ifdef __STDC__ |
10078 | # include <limits.h> | |
10079 | #else | |
10080 | # include <assert.h> | |
10081 | #endif | |
6de9cd9a | 10082 | |
96b8a615 AJ |
10083 | #undef $ac_func |
10084 | ||
10085 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10086 | #ifdef __cplusplus | |
10087 | extern "C" | |
10088 | { | |
10089 | #endif | |
10090 | /* We use char because int might match the return type of a gcc2 | |
10091 | builtin and then its argument prototype would still apply. */ | |
10092 | char $ac_func (); | |
10093 | /* The GNU C library defines this for functions which it implements | |
10094 | to always fail with ENOSYS. Some functions are actually named | |
10095 | something starting with __ and the normal name is an alias. */ | |
10096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10097 | choke me | |
10098 | #else | |
10099 | char (*f) () = $ac_func; | |
10100 | #endif | |
10101 | #ifdef __cplusplus | |
10102 | } | |
10103 | #endif | |
10104 | ||
10105 | int | |
10106 | main () | |
10107 | { | |
10108 | return f != $ac_func; | |
10109 | ; | |
10110 | return 0; | |
10111 | } | |
10112 | _ACEOF | |
10113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10115 | (eval $ac_link) 2>conftest.er1 | |
10116 | ac_status=$? | |
10117 | grep -v '^ *+' conftest.er1 >conftest.err | |
10118 | rm -f conftest.er1 | |
10119 | cat conftest.err >&5 | |
10120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10121 | (exit $ac_status); } && | |
57255173 PB |
10122 | { ac_try='test -z "$ac_c_werror_flag" |
10123 | || test ! -s conftest.err' | |
f77b6ca3 FXC |
10124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10125 | (eval $ac_try) 2>&5 | |
10126 | ac_status=$? | |
10127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10128 | (exit $ac_status); }; } && | |
10129 | { ac_try='test -s conftest$ac_exeext' | |
10130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10131 | (eval $ac_try) 2>&5 | |
10132 | ac_status=$? | |
10133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10134 | (exit $ac_status); }; }; then | |
10135 | eval "$as_ac_var=yes" | |
10136 | else | |
10137 | echo "$as_me: failed program was:" >&5 | |
10138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10139 | ||
10140 | eval "$as_ac_var=no" | |
10141 | fi | |
10142 | rm -f conftest.err conftest.$ac_objext \ | |
10143 | conftest$ac_exeext conftest.$ac_ext | |
10144 | fi | |
10145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10146 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10147 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10148 | cat >>confdefs.h <<_ACEOF | |
10149 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10150 | _ACEOF | |
10151 | ||
10152 | fi | |
10153 | done | |
10154 | ||
10155 | ||
10156 | ||
8845001b | 10157 | |
185d7d97 FXC |
10158 | |
10159 | ||
35059811 | 10160 | |
bf3fb7e4 | 10161 | |
a119fc1c FXC |
10162 | |
10163 | ||
10164 | ||
10165 | for ac_func in sleep time ttyname signal alarm ctime clock access fork execl | |
10166 | do | |
10167 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10168 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10169 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10170 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10172 | else | |
10173 | if test x$gcc_no_link = xyes; then | |
10174 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10175 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10176 | { (exit 1); exit 1; }; } | |
10177 | fi | |
10178 | cat >conftest.$ac_ext <<_ACEOF | |
10179 | /* confdefs.h. */ | |
10180 | _ACEOF | |
10181 | cat confdefs.h >>conftest.$ac_ext | |
10182 | cat >>conftest.$ac_ext <<_ACEOF | |
10183 | /* end confdefs.h. */ | |
10184 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10185 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10186 | #define $ac_func innocuous_$ac_func | |
10187 | ||
10188 | /* System header to define __stub macros and hopefully few prototypes, | |
10189 | which can conflict with char $ac_func (); below. | |
10190 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10191 | <limits.h> exists even on freestanding compilers. */ | |
10192 | ||
10193 | #ifdef __STDC__ | |
10194 | # include <limits.h> | |
10195 | #else | |
10196 | # include <assert.h> | |
10197 | #endif | |
10198 | ||
10199 | #undef $ac_func | |
10200 | ||
10201 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10202 | #ifdef __cplusplus | |
10203 | extern "C" | |
10204 | { | |
10205 | #endif | |
10206 | /* We use char because int might match the return type of a gcc2 | |
10207 | builtin and then its argument prototype would still apply. */ | |
10208 | char $ac_func (); | |
10209 | /* The GNU C library defines this for functions which it implements | |
10210 | to always fail with ENOSYS. Some functions are actually named | |
10211 | something starting with __ and the normal name is an alias. */ | |
10212 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10213 | choke me | |
10214 | #else | |
10215 | char (*f) () = $ac_func; | |
10216 | #endif | |
10217 | #ifdef __cplusplus | |
10218 | } | |
10219 | #endif | |
10220 | ||
10221 | int | |
10222 | main () | |
10223 | { | |
10224 | return f != $ac_func; | |
10225 | ; | |
10226 | return 0; | |
10227 | } | |
10228 | _ACEOF | |
10229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10231 | (eval $ac_link) 2>conftest.er1 | |
10232 | ac_status=$? | |
10233 | grep -v '^ *+' conftest.er1 >conftest.err | |
10234 | rm -f conftest.er1 | |
10235 | cat conftest.err >&5 | |
10236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10237 | (exit $ac_status); } && | |
10238 | { ac_try='test -z "$ac_c_werror_flag" | |
10239 | || test ! -s conftest.err' | |
10240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10241 | (eval $ac_try) 2>&5 | |
10242 | ac_status=$? | |
10243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10244 | (exit $ac_status); }; } && | |
10245 | { ac_try='test -s conftest$ac_exeext' | |
10246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10247 | (eval $ac_try) 2>&5 | |
10248 | ac_status=$? | |
10249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10250 | (exit $ac_status); }; }; then | |
10251 | eval "$as_ac_var=yes" | |
10252 | else | |
10253 | echo "$as_me: failed program was:" >&5 | |
10254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10255 | ||
10256 | eval "$as_ac_var=no" | |
10257 | fi | |
10258 | rm -f conftest.err conftest.$ac_objext \ | |
10259 | conftest$ac_exeext conftest.$ac_ext | |
10260 | fi | |
10261 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10262 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10263 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10264 | cat >>confdefs.h <<_ACEOF | |
10265 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10266 | _ACEOF | |
10267 | ||
10268 | fi | |
10269 | done | |
10270 | ||
10271 | ||
28f8c9e9 | 10272 | |
eedeea04 FXC |
10273 | |
10274 | for ac_func in wait setmode getrlimit | |
f77b6ca3 FXC |
10275 | do |
10276 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10277 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10278 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10279 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10281 | else | |
f02d008e JD |
10282 | if test x$gcc_no_link = xyes; then |
10283 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10284 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10285 | { (exit 1); exit 1; }; } | |
10286 | fi | |
10287 | cat >conftest.$ac_ext <<_ACEOF | |
f77b6ca3 FXC |
10288 | /* confdefs.h. */ |
10289 | _ACEOF | |
10290 | cat confdefs.h >>conftest.$ac_ext | |
10291 | cat >>conftest.$ac_ext <<_ACEOF | |
10292 | /* end confdefs.h. */ | |
10293 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10294 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10295 | #define $ac_func innocuous_$ac_func | |
10296 | ||
10297 | /* System header to define __stub macros and hopefully few prototypes, | |
10298 | which can conflict with char $ac_func (); below. | |
10299 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10300 | <limits.h> exists even on freestanding compilers. */ | |
10301 | ||
10302 | #ifdef __STDC__ | |
10303 | # include <limits.h> | |
10304 | #else | |
10305 | # include <assert.h> | |
10306 | #endif | |
10307 | ||
10308 | #undef $ac_func | |
10309 | ||
10310 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10311 | #ifdef __cplusplus | |
10312 | extern "C" | |
10313 | { | |
10314 | #endif | |
10315 | /* We use char because int might match the return type of a gcc2 | |
10316 | builtin and then its argument prototype would still apply. */ | |
10317 | char $ac_func (); | |
10318 | /* The GNU C library defines this for functions which it implements | |
10319 | to always fail with ENOSYS. Some functions are actually named | |
10320 | something starting with __ and the normal name is an alias. */ | |
10321 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10322 | choke me | |
10323 | #else | |
10324 | char (*f) () = $ac_func; | |
10325 | #endif | |
10326 | #ifdef __cplusplus | |
10327 | } | |
10328 | #endif | |
10329 | ||
10330 | int | |
10331 | main () | |
10332 | { | |
10333 | return f != $ac_func; | |
10334 | ; | |
10335 | return 0; | |
10336 | } | |
10337 | _ACEOF | |
10338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10340 | (eval $ac_link) 2>conftest.er1 | |
10341 | ac_status=$? | |
10342 | grep -v '^ *+' conftest.er1 >conftest.err | |
10343 | rm -f conftest.er1 | |
10344 | cat conftest.err >&5 | |
10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10346 | (exit $ac_status); } && | |
57255173 PB |
10347 | { ac_try='test -z "$ac_c_werror_flag" |
10348 | || test ! -s conftest.err' | |
96b8a615 AJ |
10349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10350 | (eval $ac_try) 2>&5 | |
10351 | ac_status=$? | |
10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10353 | (exit $ac_status); }; } && | |
10354 | { ac_try='test -s conftest$ac_exeext' | |
10355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10356 | (eval $ac_try) 2>&5 | |
10357 | ac_status=$? | |
10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10359 | (exit $ac_status); }; }; then | |
10360 | eval "$as_ac_var=yes" | |
6de9cd9a | 10361 | else |
96b8a615 AJ |
10362 | echo "$as_me: failed program was:" >&5 |
10363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10364 | ||
10365 | eval "$as_ac_var=no" | |
10366 | fi | |
10367 | rm -f conftest.err conftest.$ac_objext \ | |
10368 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a | 10369 | fi |
96b8a615 AJ |
10370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10371 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10372 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10373 | cat >>confdefs.h <<_ACEOF | |
10374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10375 | _ACEOF | |
6de9cd9a | 10376 | |
6de9cd9a | 10377 | fi |
96b8a615 | 10378 | done |
6de9cd9a | 10379 | |
6de9cd9a | 10380 | |
28f8c9e9 FXC |
10381 | # Check for types |
10382 | echo "$as_me:$LINENO: checking for intptr_t" >&5 | |
10383 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 | |
10384 | if test "${ac_cv_type_intptr_t+set}" = set; then | |
10385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10386 | else | |
10387 | cat >conftest.$ac_ext <<_ACEOF | |
10388 | /* confdefs.h. */ | |
10389 | _ACEOF | |
10390 | cat confdefs.h >>conftest.$ac_ext | |
10391 | cat >>conftest.$ac_ext <<_ACEOF | |
10392 | /* end confdefs.h. */ | |
10393 | $ac_includes_default | |
10394 | int | |
10395 | main () | |
10396 | { | |
10397 | if ((intptr_t *) 0) | |
10398 | return 0; | |
10399 | if (sizeof (intptr_t)) | |
10400 | return 0; | |
10401 | ; | |
10402 | return 0; | |
10403 | } | |
10404 | _ACEOF | |
10405 | rm -f conftest.$ac_objext | |
10406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10407 | (eval $ac_compile) 2>conftest.er1 | |
10408 | ac_status=$? | |
10409 | grep -v '^ *+' conftest.er1 >conftest.err | |
10410 | rm -f conftest.er1 | |
10411 | cat conftest.err >&5 | |
10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10413 | (exit $ac_status); } && | |
10414 | { ac_try='test -z "$ac_c_werror_flag" | |
10415 | || test ! -s conftest.err' | |
10416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10417 | (eval $ac_try) 2>&5 | |
10418 | ac_status=$? | |
10419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10420 | (exit $ac_status); }; } && | |
10421 | { ac_try='test -s conftest.$ac_objext' | |
10422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10423 | (eval $ac_try) 2>&5 | |
10424 | ac_status=$? | |
10425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10426 | (exit $ac_status); }; }; then | |
10427 | ac_cv_type_intptr_t=yes | |
10428 | else | |
10429 | echo "$as_me: failed program was:" >&5 | |
10430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10431 | ||
10432 | ac_cv_type_intptr_t=no | |
10433 | fi | |
10434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10435 | fi | |
10436 | echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 | |
10437 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 | |
10438 | if test $ac_cv_type_intptr_t = yes; then | |
10439 | ||
10440 | cat >>confdefs.h <<_ACEOF | |
10441 | #define HAVE_INTPTR_T 1 | |
10442 | _ACEOF | |
10443 | ||
10444 | ||
10445 | fi | |
10446 | ||
10447 | ||
4c0c6b9f SK |
10448 | # Check libc for getgid, getpid, getuid |
10449 | echo "$as_me:$LINENO: checking for getgid in -lc" >&5 | |
10450 | echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6 | |
10451 | if test "${ac_cv_lib_c_getgid+set}" = set; then | |
10452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10453 | else | |
10454 | ac_check_lib_save_LIBS=$LIBS | |
10455 | LIBS="-lc $LIBS" | |
f02d008e JD |
10456 | if test x$gcc_no_link = xyes; then |
10457 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10458 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10459 | { (exit 1); exit 1; }; } | |
10460 | fi | |
4c0c6b9f SK |
10461 | cat >conftest.$ac_ext <<_ACEOF |
10462 | /* confdefs.h. */ | |
10463 | _ACEOF | |
10464 | cat confdefs.h >>conftest.$ac_ext | |
10465 | cat >>conftest.$ac_ext <<_ACEOF | |
10466 | /* end confdefs.h. */ | |
10467 | ||
10468 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10469 | #ifdef __cplusplus | |
10470 | extern "C" | |
10471 | #endif | |
10472 | /* We use char because int might match the return type of a gcc2 | |
10473 | builtin and then its argument prototype would still apply. */ | |
10474 | char getgid (); | |
10475 | int | |
10476 | main () | |
10477 | { | |
10478 | getgid (); | |
10479 | ; | |
10480 | return 0; | |
10481 | } | |
10482 | _ACEOF | |
10483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10485 | (eval $ac_link) 2>conftest.er1 | |
10486 | ac_status=$? | |
10487 | grep -v '^ *+' conftest.er1 >conftest.err | |
10488 | rm -f conftest.er1 | |
10489 | cat conftest.err >&5 | |
10490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10491 | (exit $ac_status); } && | |
57255173 PB |
10492 | { ac_try='test -z "$ac_c_werror_flag" |
10493 | || test ! -s conftest.err' | |
4c0c6b9f SK |
10494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10495 | (eval $ac_try) 2>&5 | |
10496 | ac_status=$? | |
10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10498 | (exit $ac_status); }; } && | |
10499 | { ac_try='test -s conftest$ac_exeext' | |
10500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10501 | (eval $ac_try) 2>&5 | |
10502 | ac_status=$? | |
10503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10504 | (exit $ac_status); }; }; then | |
10505 | ac_cv_lib_c_getgid=yes | |
10506 | else | |
10507 | echo "$as_me: failed program was:" >&5 | |
10508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10509 | ||
10510 | ac_cv_lib_c_getgid=no | |
10511 | fi | |
10512 | rm -f conftest.err conftest.$ac_objext \ | |
10513 | conftest$ac_exeext conftest.$ac_ext | |
10514 | LIBS=$ac_check_lib_save_LIBS | |
10515 | fi | |
10516 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5 | |
10517 | echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6 | |
10518 | if test $ac_cv_lib_c_getgid = yes; then | |
10519 | ||
10520 | cat >>confdefs.h <<\_ACEOF | |
10521 | #define HAVE_GETGID 1 | |
10522 | _ACEOF | |
10523 | ||
10524 | fi | |
10525 | ||
10526 | echo "$as_me:$LINENO: checking for getpid in -lc" >&5 | |
10527 | echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6 | |
10528 | if test "${ac_cv_lib_c_getpid+set}" = set; then | |
10529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10530 | else | |
10531 | ac_check_lib_save_LIBS=$LIBS | |
10532 | LIBS="-lc $LIBS" | |
f02d008e JD |
10533 | if test x$gcc_no_link = xyes; then |
10534 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10535 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10536 | { (exit 1); exit 1; }; } | |
10537 | fi | |
4c0c6b9f SK |
10538 | cat >conftest.$ac_ext <<_ACEOF |
10539 | /* confdefs.h. */ | |
10540 | _ACEOF | |
10541 | cat confdefs.h >>conftest.$ac_ext | |
10542 | cat >>conftest.$ac_ext <<_ACEOF | |
10543 | /* end confdefs.h. */ | |
10544 | ||
10545 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10546 | #ifdef __cplusplus | |
10547 | extern "C" | |
10548 | #endif | |
10549 | /* We use char because int might match the return type of a gcc2 | |
10550 | builtin and then its argument prototype would still apply. */ | |
10551 | char getpid (); | |
10552 | int | |
10553 | main () | |
10554 | { | |
10555 | getpid (); | |
10556 | ; | |
10557 | return 0; | |
10558 | } | |
10559 | _ACEOF | |
10560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10562 | (eval $ac_link) 2>conftest.er1 | |
10563 | ac_status=$? | |
10564 | grep -v '^ *+' conftest.er1 >conftest.err | |
10565 | rm -f conftest.er1 | |
10566 | cat conftest.err >&5 | |
10567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10568 | (exit $ac_status); } && | |
57255173 PB |
10569 | { ac_try='test -z "$ac_c_werror_flag" |
10570 | || test ! -s conftest.err' | |
4c0c6b9f SK |
10571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10572 | (eval $ac_try) 2>&5 | |
10573 | ac_status=$? | |
10574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10575 | (exit $ac_status); }; } && | |
10576 | { ac_try='test -s conftest$ac_exeext' | |
10577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10578 | (eval $ac_try) 2>&5 | |
10579 | ac_status=$? | |
10580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10581 | (exit $ac_status); }; }; then | |
10582 | ac_cv_lib_c_getpid=yes | |
10583 | else | |
10584 | echo "$as_me: failed program was:" >&5 | |
10585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10586 | ||
10587 | ac_cv_lib_c_getpid=no | |
10588 | fi | |
10589 | rm -f conftest.err conftest.$ac_objext \ | |
10590 | conftest$ac_exeext conftest.$ac_ext | |
10591 | LIBS=$ac_check_lib_save_LIBS | |
10592 | fi | |
10593 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5 | |
10594 | echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6 | |
10595 | if test $ac_cv_lib_c_getpid = yes; then | |
10596 | ||
10597 | cat >>confdefs.h <<\_ACEOF | |
10598 | #define HAVE_GETPID 1 | |
10599 | _ACEOF | |
10600 | ||
10601 | fi | |
10602 | ||
10603 | echo "$as_me:$LINENO: checking for getuid in -lc" >&5 | |
10604 | echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6 | |
10605 | if test "${ac_cv_lib_c_getuid+set}" = set; then | |
10606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10607 | else | |
10608 | ac_check_lib_save_LIBS=$LIBS | |
10609 | LIBS="-lc $LIBS" | |
f02d008e JD |
10610 | if test x$gcc_no_link = xyes; then |
10611 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10612 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10613 | { (exit 1); exit 1; }; } | |
10614 | fi | |
4c0c6b9f SK |
10615 | cat >conftest.$ac_ext <<_ACEOF |
10616 | /* confdefs.h. */ | |
10617 | _ACEOF | |
10618 | cat confdefs.h >>conftest.$ac_ext | |
10619 | cat >>conftest.$ac_ext <<_ACEOF | |
10620 | /* end confdefs.h. */ | |
10621 | ||
10622 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10623 | #ifdef __cplusplus | |
10624 | extern "C" | |
10625 | #endif | |
10626 | /* We use char because int might match the return type of a gcc2 | |
10627 | builtin and then its argument prototype would still apply. */ | |
10628 | char getuid (); | |
10629 | int | |
10630 | main () | |
10631 | { | |
10632 | getuid (); | |
10633 | ; | |
10634 | return 0; | |
10635 | } | |
10636 | _ACEOF | |
10637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10639 | (eval $ac_link) 2>conftest.er1 | |
10640 | ac_status=$? | |
10641 | grep -v '^ *+' conftest.er1 >conftest.err | |
10642 | rm -f conftest.er1 | |
10643 | cat conftest.err >&5 | |
10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10645 | (exit $ac_status); } && | |
57255173 PB |
10646 | { ac_try='test -z "$ac_c_werror_flag" |
10647 | || test ! -s conftest.err' | |
4c0c6b9f SK |
10648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10649 | (eval $ac_try) 2>&5 | |
10650 | ac_status=$? | |
10651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10652 | (exit $ac_status); }; } && | |
10653 | { ac_try='test -s conftest$ac_exeext' | |
10654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10655 | (eval $ac_try) 2>&5 | |
10656 | ac_status=$? | |
10657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10658 | (exit $ac_status); }; }; then | |
10659 | ac_cv_lib_c_getuid=yes | |
10660 | else | |
10661 | echo "$as_me: failed program was:" >&5 | |
10662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10663 | ||
10664 | ac_cv_lib_c_getuid=no | |
10665 | fi | |
10666 | rm -f conftest.err conftest.$ac_objext \ | |
10667 | conftest$ac_exeext conftest.$ac_ext | |
10668 | LIBS=$ac_check_lib_save_LIBS | |
10669 | fi | |
10670 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5 | |
10671 | echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6 | |
10672 | if test $ac_cv_lib_c_getuid = yes; then | |
10673 | ||
10674 | cat >>confdefs.h <<\_ACEOF | |
10675 | #define HAVE_GETUID 1 | |
10676 | _ACEOF | |
10677 | ||
10678 | fi | |
10679 | ||
10680 | ||
453310d8 | 10681 | # Check for C99 (and other IEEE) math functions |
e8525382 | 10682 | # ??? This list seems awful long. Is there a better way to test for these? |
453310d8 RS |
10683 | echo "$as_me:$LINENO: checking for acosf in -lm" >&5 |
10684 | echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6 | |
10685 | if test "${ac_cv_lib_m_acosf+set}" = set; then | |
10686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10687 | else | |
10688 | ac_check_lib_save_LIBS=$LIBS | |
10689 | LIBS="-lm $LIBS" | |
f02d008e JD |
10690 | if test x$gcc_no_link = xyes; then |
10691 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10692 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10693 | { (exit 1); exit 1; }; } | |
10694 | fi | |
453310d8 RS |
10695 | cat >conftest.$ac_ext <<_ACEOF |
10696 | /* confdefs.h. */ | |
10697 | _ACEOF | |
10698 | cat confdefs.h >>conftest.$ac_ext | |
10699 | cat >>conftest.$ac_ext <<_ACEOF | |
10700 | /* end confdefs.h. */ | |
10701 | ||
10702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10703 | #ifdef __cplusplus | |
10704 | extern "C" | |
10705 | #endif | |
10706 | /* We use char because int might match the return type of a gcc2 | |
10707 | builtin and then its argument prototype would still apply. */ | |
10708 | char acosf (); | |
10709 | int | |
10710 | main () | |
10711 | { | |
10712 | acosf (); | |
10713 | ; | |
10714 | return 0; | |
10715 | } | |
10716 | _ACEOF | |
10717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10719 | (eval $ac_link) 2>conftest.er1 | |
10720 | ac_status=$? | |
10721 | grep -v '^ *+' conftest.er1 >conftest.err | |
10722 | rm -f conftest.er1 | |
10723 | cat conftest.err >&5 | |
10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10725 | (exit $ac_status); } && | |
57255173 PB |
10726 | { ac_try='test -z "$ac_c_werror_flag" |
10727 | || test ! -s conftest.err' | |
453310d8 RS |
10728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10729 | (eval $ac_try) 2>&5 | |
10730 | ac_status=$? | |
10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10732 | (exit $ac_status); }; } && | |
10733 | { ac_try='test -s conftest$ac_exeext' | |
10734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10735 | (eval $ac_try) 2>&5 | |
10736 | ac_status=$? | |
10737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10738 | (exit $ac_status); }; }; then | |
10739 | ac_cv_lib_m_acosf=yes | |
10740 | else | |
10741 | echo "$as_me: failed program was:" >&5 | |
10742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10743 | ||
10744 | ac_cv_lib_m_acosf=no | |
10745 | fi | |
10746 | rm -f conftest.err conftest.$ac_objext \ | |
10747 | conftest$ac_exeext conftest.$ac_ext | |
10748 | LIBS=$ac_check_lib_save_LIBS | |
10749 | fi | |
10750 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5 | |
10751 | echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6 | |
10752 | if test $ac_cv_lib_m_acosf = yes; then | |
10753 | ||
10754 | cat >>confdefs.h <<\_ACEOF | |
10755 | #define HAVE_ACOSF 1 | |
10756 | _ACEOF | |
10757 | ||
10758 | fi | |
10759 | ||
1409cd0b FXC |
10760 | echo "$as_me:$LINENO: checking for acos in -lm" >&5 |
10761 | echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6 | |
10762 | if test "${ac_cv_lib_m_acos+set}" = set; then | |
f02d008e JD |
10763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10764 | else | |
10765 | ac_check_lib_save_LIBS=$LIBS | |
10766 | LIBS="-lm $LIBS" | |
10767 | if test x$gcc_no_link = xyes; then | |
10768 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10769 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10770 | { (exit 1); exit 1; }; } | |
10771 | fi | |
10772 | cat >conftest.$ac_ext <<_ACEOF | |
10773 | /* confdefs.h. */ | |
10774 | _ACEOF | |
10775 | cat confdefs.h >>conftest.$ac_ext | |
10776 | cat >>conftest.$ac_ext <<_ACEOF | |
10777 | /* end confdefs.h. */ | |
10778 | ||
10779 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10780 | #ifdef __cplusplus | |
10781 | extern "C" | |
10782 | #endif | |
10783 | /* We use char because int might match the return type of a gcc2 | |
10784 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 10785 | char acos (); |
f02d008e JD |
10786 | int |
10787 | main () | |
10788 | { | |
1409cd0b | 10789 | acos (); |
f02d008e JD |
10790 | ; |
10791 | return 0; | |
10792 | } | |
10793 | _ACEOF | |
10794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10796 | (eval $ac_link) 2>conftest.er1 | |
10797 | ac_status=$? | |
10798 | grep -v '^ *+' conftest.er1 >conftest.err | |
10799 | rm -f conftest.er1 | |
10800 | cat conftest.err >&5 | |
10801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10802 | (exit $ac_status); } && | |
57255173 PB |
10803 | { ac_try='test -z "$ac_c_werror_flag" |
10804 | || test ! -s conftest.err' | |
f02d008e JD |
10805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10806 | (eval $ac_try) 2>&5 | |
10807 | ac_status=$? | |
10808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10809 | (exit $ac_status); }; } && | |
10810 | { ac_try='test -s conftest$ac_exeext' | |
10811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10812 | (eval $ac_try) 2>&5 | |
10813 | ac_status=$? | |
10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10815 | (exit $ac_status); }; }; then | |
1409cd0b | 10816 | ac_cv_lib_m_acos=yes |
f02d008e JD |
10817 | else |
10818 | echo "$as_me: failed program was:" >&5 | |
10819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10820 | ||
1409cd0b | 10821 | ac_cv_lib_m_acos=no |
f02d008e JD |
10822 | fi |
10823 | rm -f conftest.err conftest.$ac_objext \ | |
10824 | conftest$ac_exeext conftest.$ac_ext | |
10825 | LIBS=$ac_check_lib_save_LIBS | |
10826 | fi | |
1409cd0b FXC |
10827 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5 |
10828 | echo "${ECHO_T}$ac_cv_lib_m_acos" >&6 | |
10829 | if test $ac_cv_lib_m_acos = yes; then | |
f02d008e JD |
10830 | |
10831 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 10832 | #define HAVE_ACOS 1 |
f02d008e JD |
10833 | _ACEOF |
10834 | ||
10835 | fi | |
10836 | ||
1409cd0b FXC |
10837 | echo "$as_me:$LINENO: checking for acosl in -lm" >&5 |
10838 | echo $ECHO_N "checking for acosl in -lm... $ECHO_C" >&6 | |
10839 | if test "${ac_cv_lib_m_acosl+set}" = set; then | |
453310d8 RS |
10840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10841 | else | |
10842 | ac_check_lib_save_LIBS=$LIBS | |
10843 | LIBS="-lm $LIBS" | |
f02d008e JD |
10844 | if test x$gcc_no_link = xyes; then |
10845 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10846 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10847 | { (exit 1); exit 1; }; } | |
10848 | fi | |
453310d8 RS |
10849 | cat >conftest.$ac_ext <<_ACEOF |
10850 | /* confdefs.h. */ | |
10851 | _ACEOF | |
10852 | cat confdefs.h >>conftest.$ac_ext | |
10853 | cat >>conftest.$ac_ext <<_ACEOF | |
10854 | /* end confdefs.h. */ | |
10855 | ||
10856 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10857 | #ifdef __cplusplus | |
10858 | extern "C" | |
10859 | #endif | |
10860 | /* We use char because int might match the return type of a gcc2 | |
10861 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 10862 | char acosl (); |
453310d8 RS |
10863 | int |
10864 | main () | |
10865 | { | |
1409cd0b | 10866 | acosl (); |
453310d8 RS |
10867 | ; |
10868 | return 0; | |
10869 | } | |
10870 | _ACEOF | |
10871 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10873 | (eval $ac_link) 2>conftest.er1 | |
10874 | ac_status=$? | |
10875 | grep -v '^ *+' conftest.er1 >conftest.err | |
10876 | rm -f conftest.er1 | |
10877 | cat conftest.err >&5 | |
10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10879 | (exit $ac_status); } && | |
57255173 PB |
10880 | { ac_try='test -z "$ac_c_werror_flag" |
10881 | || test ! -s conftest.err' | |
453310d8 RS |
10882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10883 | (eval $ac_try) 2>&5 | |
10884 | ac_status=$? | |
10885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10886 | (exit $ac_status); }; } && | |
10887 | { ac_try='test -s conftest$ac_exeext' | |
10888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10889 | (eval $ac_try) 2>&5 | |
10890 | ac_status=$? | |
10891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10892 | (exit $ac_status); }; }; then | |
1409cd0b | 10893 | ac_cv_lib_m_acosl=yes |
453310d8 RS |
10894 | else |
10895 | echo "$as_me: failed program was:" >&5 | |
10896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10897 | ||
1409cd0b | 10898 | ac_cv_lib_m_acosl=no |
453310d8 RS |
10899 | fi |
10900 | rm -f conftest.err conftest.$ac_objext \ | |
10901 | conftest$ac_exeext conftest.$ac_ext | |
10902 | LIBS=$ac_check_lib_save_LIBS | |
10903 | fi | |
1409cd0b FXC |
10904 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosl" >&5 |
10905 | echo "${ECHO_T}$ac_cv_lib_m_acosl" >&6 | |
10906 | if test $ac_cv_lib_m_acosl = yes; then | |
453310d8 RS |
10907 | |
10908 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 10909 | #define HAVE_ACOSL 1 |
453310d8 RS |
10910 | _ACEOF |
10911 | ||
10912 | fi | |
10913 | ||
1409cd0b FXC |
10914 | echo "$as_me:$LINENO: checking for acoshf in -lm" >&5 |
10915 | echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6 | |
10916 | if test "${ac_cv_lib_m_acoshf+set}" = set; then | |
f02d008e JD |
10917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10918 | else | |
10919 | ac_check_lib_save_LIBS=$LIBS | |
10920 | LIBS="-lm $LIBS" | |
10921 | if test x$gcc_no_link = xyes; then | |
10922 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10923 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10924 | { (exit 1); exit 1; }; } | |
10925 | fi | |
10926 | cat >conftest.$ac_ext <<_ACEOF | |
10927 | /* confdefs.h. */ | |
10928 | _ACEOF | |
10929 | cat confdefs.h >>conftest.$ac_ext | |
10930 | cat >>conftest.$ac_ext <<_ACEOF | |
10931 | /* end confdefs.h. */ | |
10932 | ||
10933 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10934 | #ifdef __cplusplus | |
10935 | extern "C" | |
10936 | #endif | |
10937 | /* We use char because int might match the return type of a gcc2 | |
10938 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 10939 | char acoshf (); |
f02d008e JD |
10940 | int |
10941 | main () | |
10942 | { | |
1409cd0b | 10943 | acoshf (); |
f02d008e JD |
10944 | ; |
10945 | return 0; | |
10946 | } | |
10947 | _ACEOF | |
10948 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10950 | (eval $ac_link) 2>conftest.er1 | |
10951 | ac_status=$? | |
10952 | grep -v '^ *+' conftest.er1 >conftest.err | |
10953 | rm -f conftest.er1 | |
10954 | cat conftest.err >&5 | |
10955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10956 | (exit $ac_status); } && | |
57255173 PB |
10957 | { ac_try='test -z "$ac_c_werror_flag" |
10958 | || test ! -s conftest.err' | |
f02d008e JD |
10959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10960 | (eval $ac_try) 2>&5 | |
10961 | ac_status=$? | |
10962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10963 | (exit $ac_status); }; } && | |
10964 | { ac_try='test -s conftest$ac_exeext' | |
10965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10966 | (eval $ac_try) 2>&5 | |
10967 | ac_status=$? | |
10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10969 | (exit $ac_status); }; }; then | |
1409cd0b | 10970 | ac_cv_lib_m_acoshf=yes |
f02d008e JD |
10971 | else |
10972 | echo "$as_me: failed program was:" >&5 | |
10973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10974 | ||
1409cd0b | 10975 | ac_cv_lib_m_acoshf=no |
f02d008e JD |
10976 | fi |
10977 | rm -f conftest.err conftest.$ac_objext \ | |
10978 | conftest$ac_exeext conftest.$ac_ext | |
10979 | LIBS=$ac_check_lib_save_LIBS | |
10980 | fi | |
1409cd0b FXC |
10981 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5 |
10982 | echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6 | |
10983 | if test $ac_cv_lib_m_acoshf = yes; then | |
f02d008e JD |
10984 | |
10985 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 10986 | #define HAVE_ACOSHF 1 |
f02d008e JD |
10987 | _ACEOF |
10988 | ||
10989 | fi | |
10990 | ||
1409cd0b FXC |
10991 | echo "$as_me:$LINENO: checking for acosh in -lm" >&5 |
10992 | echo $ECHO_N "checking for acosh in -lm... $ECHO_C" >&6 | |
10993 | if test "${ac_cv_lib_m_acosh+set}" = set; then | |
453310d8 RS |
10994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10995 | else | |
10996 | ac_check_lib_save_LIBS=$LIBS | |
10997 | LIBS="-lm $LIBS" | |
f02d008e JD |
10998 | if test x$gcc_no_link = xyes; then |
10999 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11000 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11001 | { (exit 1); exit 1; }; } | |
11002 | fi | |
453310d8 RS |
11003 | cat >conftest.$ac_ext <<_ACEOF |
11004 | /* confdefs.h. */ | |
11005 | _ACEOF | |
11006 | cat confdefs.h >>conftest.$ac_ext | |
11007 | cat >>conftest.$ac_ext <<_ACEOF | |
11008 | /* end confdefs.h. */ | |
11009 | ||
11010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11011 | #ifdef __cplusplus | |
11012 | extern "C" | |
11013 | #endif | |
11014 | /* We use char because int might match the return type of a gcc2 | |
11015 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11016 | char acosh (); |
453310d8 RS |
11017 | int |
11018 | main () | |
11019 | { | |
1409cd0b | 11020 | acosh (); |
453310d8 RS |
11021 | ; |
11022 | return 0; | |
11023 | } | |
11024 | _ACEOF | |
11025 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11027 | (eval $ac_link) 2>conftest.er1 | |
11028 | ac_status=$? | |
11029 | grep -v '^ *+' conftest.er1 >conftest.err | |
11030 | rm -f conftest.er1 | |
11031 | cat conftest.err >&5 | |
11032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11033 | (exit $ac_status); } && | |
57255173 PB |
11034 | { ac_try='test -z "$ac_c_werror_flag" |
11035 | || test ! -s conftest.err' | |
453310d8 RS |
11036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11037 | (eval $ac_try) 2>&5 | |
11038 | ac_status=$? | |
11039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11040 | (exit $ac_status); }; } && | |
11041 | { ac_try='test -s conftest$ac_exeext' | |
11042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11043 | (eval $ac_try) 2>&5 | |
11044 | ac_status=$? | |
11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11046 | (exit $ac_status); }; }; then | |
1409cd0b | 11047 | ac_cv_lib_m_acosh=yes |
453310d8 RS |
11048 | else |
11049 | echo "$as_me: failed program was:" >&5 | |
11050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11051 | ||
1409cd0b | 11052 | ac_cv_lib_m_acosh=no |
453310d8 RS |
11053 | fi |
11054 | rm -f conftest.err conftest.$ac_objext \ | |
11055 | conftest$ac_exeext conftest.$ac_ext | |
11056 | LIBS=$ac_check_lib_save_LIBS | |
11057 | fi | |
1409cd0b FXC |
11058 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosh" >&5 |
11059 | echo "${ECHO_T}$ac_cv_lib_m_acosh" >&6 | |
11060 | if test $ac_cv_lib_m_acosh = yes; then | |
453310d8 RS |
11061 | |
11062 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11063 | #define HAVE_ACOSH 1 |
453310d8 RS |
11064 | _ACEOF |
11065 | ||
11066 | fi | |
11067 | ||
1409cd0b FXC |
11068 | echo "$as_me:$LINENO: checking for acoshl in -lm" >&5 |
11069 | echo $ECHO_N "checking for acoshl in -lm... $ECHO_C" >&6 | |
11070 | if test "${ac_cv_lib_m_acoshl+set}" = set; then | |
453310d8 RS |
11071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11072 | else | |
11073 | ac_check_lib_save_LIBS=$LIBS | |
11074 | LIBS="-lm $LIBS" | |
f02d008e JD |
11075 | if test x$gcc_no_link = xyes; then |
11076 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11077 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11078 | { (exit 1); exit 1; }; } | |
11079 | fi | |
453310d8 RS |
11080 | cat >conftest.$ac_ext <<_ACEOF |
11081 | /* confdefs.h. */ | |
11082 | _ACEOF | |
11083 | cat confdefs.h >>conftest.$ac_ext | |
11084 | cat >>conftest.$ac_ext <<_ACEOF | |
11085 | /* end confdefs.h. */ | |
11086 | ||
11087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11088 | #ifdef __cplusplus | |
11089 | extern "C" | |
11090 | #endif | |
11091 | /* We use char because int might match the return type of a gcc2 | |
11092 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11093 | char acoshl (); |
453310d8 RS |
11094 | int |
11095 | main () | |
11096 | { | |
1409cd0b | 11097 | acoshl (); |
453310d8 RS |
11098 | ; |
11099 | return 0; | |
11100 | } | |
11101 | _ACEOF | |
11102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11104 | (eval $ac_link) 2>conftest.er1 | |
11105 | ac_status=$? | |
11106 | grep -v '^ *+' conftest.er1 >conftest.err | |
11107 | rm -f conftest.er1 | |
11108 | cat conftest.err >&5 | |
11109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11110 | (exit $ac_status); } && | |
57255173 PB |
11111 | { ac_try='test -z "$ac_c_werror_flag" |
11112 | || test ! -s conftest.err' | |
453310d8 RS |
11113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11114 | (eval $ac_try) 2>&5 | |
11115 | ac_status=$? | |
11116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11117 | (exit $ac_status); }; } && | |
11118 | { ac_try='test -s conftest$ac_exeext' | |
11119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11120 | (eval $ac_try) 2>&5 | |
11121 | ac_status=$? | |
11122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11123 | (exit $ac_status); }; }; then | |
1409cd0b | 11124 | ac_cv_lib_m_acoshl=yes |
453310d8 RS |
11125 | else |
11126 | echo "$as_me: failed program was:" >&5 | |
11127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11128 | ||
1409cd0b | 11129 | ac_cv_lib_m_acoshl=no |
453310d8 RS |
11130 | fi |
11131 | rm -f conftest.err conftest.$ac_objext \ | |
11132 | conftest$ac_exeext conftest.$ac_ext | |
11133 | LIBS=$ac_check_lib_save_LIBS | |
11134 | fi | |
1409cd0b FXC |
11135 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshl" >&5 |
11136 | echo "${ECHO_T}$ac_cv_lib_m_acoshl" >&6 | |
11137 | if test $ac_cv_lib_m_acoshl = yes; then | |
453310d8 RS |
11138 | |
11139 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11140 | #define HAVE_ACOSHL 1 |
453310d8 RS |
11141 | _ACEOF |
11142 | ||
11143 | fi | |
11144 | ||
1409cd0b FXC |
11145 | echo "$as_me:$LINENO: checking for asinf in -lm" >&5 |
11146 | echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6 | |
11147 | if test "${ac_cv_lib_m_asinf+set}" = set; then | |
f02d008e JD |
11148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11149 | else | |
11150 | ac_check_lib_save_LIBS=$LIBS | |
11151 | LIBS="-lm $LIBS" | |
11152 | if test x$gcc_no_link = xyes; then | |
11153 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11154 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11155 | { (exit 1); exit 1; }; } | |
11156 | fi | |
11157 | cat >conftest.$ac_ext <<_ACEOF | |
11158 | /* confdefs.h. */ | |
11159 | _ACEOF | |
11160 | cat confdefs.h >>conftest.$ac_ext | |
11161 | cat >>conftest.$ac_ext <<_ACEOF | |
11162 | /* end confdefs.h. */ | |
11163 | ||
11164 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11165 | #ifdef __cplusplus | |
11166 | extern "C" | |
11167 | #endif | |
11168 | /* We use char because int might match the return type of a gcc2 | |
11169 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11170 | char asinf (); |
f02d008e JD |
11171 | int |
11172 | main () | |
11173 | { | |
1409cd0b | 11174 | asinf (); |
f02d008e JD |
11175 | ; |
11176 | return 0; | |
11177 | } | |
11178 | _ACEOF | |
11179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11181 | (eval $ac_link) 2>conftest.er1 | |
11182 | ac_status=$? | |
11183 | grep -v '^ *+' conftest.er1 >conftest.err | |
11184 | rm -f conftest.er1 | |
11185 | cat conftest.err >&5 | |
11186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11187 | (exit $ac_status); } && | |
57255173 PB |
11188 | { ac_try='test -z "$ac_c_werror_flag" |
11189 | || test ! -s conftest.err' | |
f02d008e JD |
11190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11191 | (eval $ac_try) 2>&5 | |
11192 | ac_status=$? | |
11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11194 | (exit $ac_status); }; } && | |
11195 | { ac_try='test -s conftest$ac_exeext' | |
11196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11197 | (eval $ac_try) 2>&5 | |
11198 | ac_status=$? | |
11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11200 | (exit $ac_status); }; }; then | |
1409cd0b | 11201 | ac_cv_lib_m_asinf=yes |
f02d008e JD |
11202 | else |
11203 | echo "$as_me: failed program was:" >&5 | |
11204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11205 | ||
1409cd0b | 11206 | ac_cv_lib_m_asinf=no |
f02d008e JD |
11207 | fi |
11208 | rm -f conftest.err conftest.$ac_objext \ | |
11209 | conftest$ac_exeext conftest.$ac_ext | |
11210 | LIBS=$ac_check_lib_save_LIBS | |
11211 | fi | |
1409cd0b FXC |
11212 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5 |
11213 | echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6 | |
11214 | if test $ac_cv_lib_m_asinf = yes; then | |
f02d008e JD |
11215 | |
11216 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11217 | #define HAVE_ASINF 1 |
f02d008e JD |
11218 | _ACEOF |
11219 | ||
11220 | fi | |
11221 | ||
1409cd0b FXC |
11222 | echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
11223 | echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6 | |
11224 | if test "${ac_cv_lib_m_asin+set}" = set; then | |
453310d8 RS |
11225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11226 | else | |
11227 | ac_check_lib_save_LIBS=$LIBS | |
11228 | LIBS="-lm $LIBS" | |
f02d008e JD |
11229 | if test x$gcc_no_link = xyes; then |
11230 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11231 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11232 | { (exit 1); exit 1; }; } | |
11233 | fi | |
453310d8 RS |
11234 | cat >conftest.$ac_ext <<_ACEOF |
11235 | /* confdefs.h. */ | |
11236 | _ACEOF | |
11237 | cat confdefs.h >>conftest.$ac_ext | |
11238 | cat >>conftest.$ac_ext <<_ACEOF | |
11239 | /* end confdefs.h. */ | |
11240 | ||
11241 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11242 | #ifdef __cplusplus | |
11243 | extern "C" | |
11244 | #endif | |
11245 | /* We use char because int might match the return type of a gcc2 | |
11246 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11247 | char asin (); |
453310d8 RS |
11248 | int |
11249 | main () | |
11250 | { | |
1409cd0b | 11251 | asin (); |
453310d8 RS |
11252 | ; |
11253 | return 0; | |
11254 | } | |
11255 | _ACEOF | |
11256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11258 | (eval $ac_link) 2>conftest.er1 | |
11259 | ac_status=$? | |
11260 | grep -v '^ *+' conftest.er1 >conftest.err | |
11261 | rm -f conftest.er1 | |
11262 | cat conftest.err >&5 | |
11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11264 | (exit $ac_status); } && | |
57255173 PB |
11265 | { ac_try='test -z "$ac_c_werror_flag" |
11266 | || test ! -s conftest.err' | |
453310d8 RS |
11267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11268 | (eval $ac_try) 2>&5 | |
11269 | ac_status=$? | |
11270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11271 | (exit $ac_status); }; } && | |
11272 | { ac_try='test -s conftest$ac_exeext' | |
11273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11274 | (eval $ac_try) 2>&5 | |
11275 | ac_status=$? | |
11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11277 | (exit $ac_status); }; }; then | |
1409cd0b | 11278 | ac_cv_lib_m_asin=yes |
453310d8 RS |
11279 | else |
11280 | echo "$as_me: failed program was:" >&5 | |
11281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11282 | ||
1409cd0b | 11283 | ac_cv_lib_m_asin=no |
453310d8 RS |
11284 | fi |
11285 | rm -f conftest.err conftest.$ac_objext \ | |
11286 | conftest$ac_exeext conftest.$ac_ext | |
11287 | LIBS=$ac_check_lib_save_LIBS | |
11288 | fi | |
1409cd0b FXC |
11289 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
11290 | echo "${ECHO_T}$ac_cv_lib_m_asin" >&6 | |
11291 | if test $ac_cv_lib_m_asin = yes; then | |
453310d8 RS |
11292 | |
11293 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11294 | #define HAVE_ASIN 1 |
453310d8 RS |
11295 | _ACEOF |
11296 | ||
11297 | fi | |
11298 | ||
1409cd0b FXC |
11299 | echo "$as_me:$LINENO: checking for asinl in -lm" >&5 |
11300 | echo $ECHO_N "checking for asinl in -lm... $ECHO_C" >&6 | |
11301 | if test "${ac_cv_lib_m_asinl+set}" = set; then | |
453310d8 RS |
11302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11303 | else | |
11304 | ac_check_lib_save_LIBS=$LIBS | |
11305 | LIBS="-lm $LIBS" | |
f02d008e JD |
11306 | if test x$gcc_no_link = xyes; then |
11307 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11308 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11309 | { (exit 1); exit 1; }; } | |
11310 | fi | |
453310d8 RS |
11311 | cat >conftest.$ac_ext <<_ACEOF |
11312 | /* confdefs.h. */ | |
11313 | _ACEOF | |
11314 | cat confdefs.h >>conftest.$ac_ext | |
11315 | cat >>conftest.$ac_ext <<_ACEOF | |
11316 | /* end confdefs.h. */ | |
11317 | ||
11318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11319 | #ifdef __cplusplus | |
11320 | extern "C" | |
11321 | #endif | |
11322 | /* We use char because int might match the return type of a gcc2 | |
11323 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11324 | char asinl (); |
453310d8 RS |
11325 | int |
11326 | main () | |
11327 | { | |
1409cd0b | 11328 | asinl (); |
453310d8 RS |
11329 | ; |
11330 | return 0; | |
11331 | } | |
11332 | _ACEOF | |
11333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11335 | (eval $ac_link) 2>conftest.er1 | |
11336 | ac_status=$? | |
11337 | grep -v '^ *+' conftest.er1 >conftest.err | |
11338 | rm -f conftest.er1 | |
11339 | cat conftest.err >&5 | |
11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11341 | (exit $ac_status); } && | |
57255173 PB |
11342 | { ac_try='test -z "$ac_c_werror_flag" |
11343 | || test ! -s conftest.err' | |
453310d8 RS |
11344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11345 | (eval $ac_try) 2>&5 | |
11346 | ac_status=$? | |
11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11348 | (exit $ac_status); }; } && | |
11349 | { ac_try='test -s conftest$ac_exeext' | |
11350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11351 | (eval $ac_try) 2>&5 | |
11352 | ac_status=$? | |
11353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11354 | (exit $ac_status); }; }; then | |
1409cd0b | 11355 | ac_cv_lib_m_asinl=yes |
453310d8 RS |
11356 | else |
11357 | echo "$as_me: failed program was:" >&5 | |
11358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11359 | ||
1409cd0b | 11360 | ac_cv_lib_m_asinl=no |
453310d8 RS |
11361 | fi |
11362 | rm -f conftest.err conftest.$ac_objext \ | |
11363 | conftest$ac_exeext conftest.$ac_ext | |
11364 | LIBS=$ac_check_lib_save_LIBS | |
11365 | fi | |
1409cd0b FXC |
11366 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinl" >&5 |
11367 | echo "${ECHO_T}$ac_cv_lib_m_asinl" >&6 | |
11368 | if test $ac_cv_lib_m_asinl = yes; then | |
453310d8 RS |
11369 | |
11370 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11371 | #define HAVE_ASINL 1 |
453310d8 RS |
11372 | _ACEOF |
11373 | ||
11374 | fi | |
11375 | ||
1409cd0b FXC |
11376 | echo "$as_me:$LINENO: checking for asinhf in -lm" >&5 |
11377 | echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6 | |
11378 | if test "${ac_cv_lib_m_asinhf+set}" = set; then | |
453310d8 RS |
11379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11380 | else | |
11381 | ac_check_lib_save_LIBS=$LIBS | |
11382 | LIBS="-lm $LIBS" | |
f02d008e JD |
11383 | if test x$gcc_no_link = xyes; then |
11384 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11385 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11386 | { (exit 1); exit 1; }; } | |
11387 | fi | |
453310d8 RS |
11388 | cat >conftest.$ac_ext <<_ACEOF |
11389 | /* confdefs.h. */ | |
11390 | _ACEOF | |
11391 | cat confdefs.h >>conftest.$ac_ext | |
11392 | cat >>conftest.$ac_ext <<_ACEOF | |
11393 | /* end confdefs.h. */ | |
11394 | ||
11395 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11396 | #ifdef __cplusplus | |
11397 | extern "C" | |
11398 | #endif | |
11399 | /* We use char because int might match the return type of a gcc2 | |
11400 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11401 | char asinhf (); |
453310d8 RS |
11402 | int |
11403 | main () | |
11404 | { | |
1409cd0b | 11405 | asinhf (); |
453310d8 RS |
11406 | ; |
11407 | return 0; | |
11408 | } | |
11409 | _ACEOF | |
11410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11412 | (eval $ac_link) 2>conftest.er1 | |
11413 | ac_status=$? | |
11414 | grep -v '^ *+' conftest.er1 >conftest.err | |
11415 | rm -f conftest.er1 | |
11416 | cat conftest.err >&5 | |
11417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11418 | (exit $ac_status); } && | |
57255173 PB |
11419 | { ac_try='test -z "$ac_c_werror_flag" |
11420 | || test ! -s conftest.err' | |
453310d8 RS |
11421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11422 | (eval $ac_try) 2>&5 | |
11423 | ac_status=$? | |
11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11425 | (exit $ac_status); }; } && | |
11426 | { ac_try='test -s conftest$ac_exeext' | |
11427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11428 | (eval $ac_try) 2>&5 | |
11429 | ac_status=$? | |
11430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11431 | (exit $ac_status); }; }; then | |
1409cd0b | 11432 | ac_cv_lib_m_asinhf=yes |
453310d8 RS |
11433 | else |
11434 | echo "$as_me: failed program was:" >&5 | |
11435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11436 | ||
1409cd0b | 11437 | ac_cv_lib_m_asinhf=no |
453310d8 RS |
11438 | fi |
11439 | rm -f conftest.err conftest.$ac_objext \ | |
11440 | conftest$ac_exeext conftest.$ac_ext | |
11441 | LIBS=$ac_check_lib_save_LIBS | |
11442 | fi | |
1409cd0b FXC |
11443 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5 |
11444 | echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6 | |
11445 | if test $ac_cv_lib_m_asinhf = yes; then | |
453310d8 RS |
11446 | |
11447 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11448 | #define HAVE_ASINHF 1 |
453310d8 RS |
11449 | _ACEOF |
11450 | ||
11451 | fi | |
11452 | ||
1409cd0b FXC |
11453 | echo "$as_me:$LINENO: checking for asinh in -lm" >&5 |
11454 | echo $ECHO_N "checking for asinh in -lm... $ECHO_C" >&6 | |
11455 | if test "${ac_cv_lib_m_asinh+set}" = set; then | |
453310d8 RS |
11456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11457 | else | |
11458 | ac_check_lib_save_LIBS=$LIBS | |
11459 | LIBS="-lm $LIBS" | |
f02d008e JD |
11460 | if test x$gcc_no_link = xyes; then |
11461 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11462 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11463 | { (exit 1); exit 1; }; } | |
11464 | fi | |
453310d8 RS |
11465 | cat >conftest.$ac_ext <<_ACEOF |
11466 | /* confdefs.h. */ | |
11467 | _ACEOF | |
11468 | cat confdefs.h >>conftest.$ac_ext | |
11469 | cat >>conftest.$ac_ext <<_ACEOF | |
11470 | /* end confdefs.h. */ | |
11471 | ||
11472 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11473 | #ifdef __cplusplus | |
11474 | extern "C" | |
11475 | #endif | |
11476 | /* We use char because int might match the return type of a gcc2 | |
11477 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11478 | char asinh (); |
453310d8 RS |
11479 | int |
11480 | main () | |
11481 | { | |
1409cd0b | 11482 | asinh (); |
453310d8 RS |
11483 | ; |
11484 | return 0; | |
11485 | } | |
11486 | _ACEOF | |
11487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11489 | (eval $ac_link) 2>conftest.er1 | |
11490 | ac_status=$? | |
11491 | grep -v '^ *+' conftest.er1 >conftest.err | |
11492 | rm -f conftest.er1 | |
11493 | cat conftest.err >&5 | |
11494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11495 | (exit $ac_status); } && | |
57255173 PB |
11496 | { ac_try='test -z "$ac_c_werror_flag" |
11497 | || test ! -s conftest.err' | |
453310d8 RS |
11498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11499 | (eval $ac_try) 2>&5 | |
11500 | ac_status=$? | |
11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11502 | (exit $ac_status); }; } && | |
11503 | { ac_try='test -s conftest$ac_exeext' | |
11504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11505 | (eval $ac_try) 2>&5 | |
11506 | ac_status=$? | |
11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11508 | (exit $ac_status); }; }; then | |
1409cd0b | 11509 | ac_cv_lib_m_asinh=yes |
453310d8 RS |
11510 | else |
11511 | echo "$as_me: failed program was:" >&5 | |
11512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11513 | ||
1409cd0b | 11514 | ac_cv_lib_m_asinh=no |
453310d8 RS |
11515 | fi |
11516 | rm -f conftest.err conftest.$ac_objext \ | |
11517 | conftest$ac_exeext conftest.$ac_ext | |
11518 | LIBS=$ac_check_lib_save_LIBS | |
11519 | fi | |
1409cd0b FXC |
11520 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinh" >&5 |
11521 | echo "${ECHO_T}$ac_cv_lib_m_asinh" >&6 | |
11522 | if test $ac_cv_lib_m_asinh = yes; then | |
453310d8 RS |
11523 | |
11524 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11525 | #define HAVE_ASINH 1 |
453310d8 RS |
11526 | _ACEOF |
11527 | ||
11528 | fi | |
11529 | ||
1409cd0b FXC |
11530 | echo "$as_me:$LINENO: checking for asinhl in -lm" >&5 |
11531 | echo $ECHO_N "checking for asinhl in -lm... $ECHO_C" >&6 | |
11532 | if test "${ac_cv_lib_m_asinhl+set}" = set; then | |
453310d8 RS |
11533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11534 | else | |
11535 | ac_check_lib_save_LIBS=$LIBS | |
11536 | LIBS="-lm $LIBS" | |
f02d008e JD |
11537 | if test x$gcc_no_link = xyes; then |
11538 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11539 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11540 | { (exit 1); exit 1; }; } | |
11541 | fi | |
453310d8 RS |
11542 | cat >conftest.$ac_ext <<_ACEOF |
11543 | /* confdefs.h. */ | |
11544 | _ACEOF | |
11545 | cat confdefs.h >>conftest.$ac_ext | |
11546 | cat >>conftest.$ac_ext <<_ACEOF | |
11547 | /* end confdefs.h. */ | |
11548 | ||
11549 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11550 | #ifdef __cplusplus | |
11551 | extern "C" | |
11552 | #endif | |
11553 | /* We use char because int might match the return type of a gcc2 | |
11554 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11555 | char asinhl (); |
453310d8 RS |
11556 | int |
11557 | main () | |
11558 | { | |
1409cd0b | 11559 | asinhl (); |
453310d8 RS |
11560 | ; |
11561 | return 0; | |
11562 | } | |
11563 | _ACEOF | |
11564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11566 | (eval $ac_link) 2>conftest.er1 | |
11567 | ac_status=$? | |
11568 | grep -v '^ *+' conftest.er1 >conftest.err | |
11569 | rm -f conftest.er1 | |
11570 | cat conftest.err >&5 | |
11571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11572 | (exit $ac_status); } && | |
57255173 PB |
11573 | { ac_try='test -z "$ac_c_werror_flag" |
11574 | || test ! -s conftest.err' | |
453310d8 RS |
11575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11576 | (eval $ac_try) 2>&5 | |
11577 | ac_status=$? | |
11578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11579 | (exit $ac_status); }; } && | |
11580 | { ac_try='test -s conftest$ac_exeext' | |
11581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11582 | (eval $ac_try) 2>&5 | |
11583 | ac_status=$? | |
11584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11585 | (exit $ac_status); }; }; then | |
1409cd0b | 11586 | ac_cv_lib_m_asinhl=yes |
453310d8 RS |
11587 | else |
11588 | echo "$as_me: failed program was:" >&5 | |
11589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11590 | ||
1409cd0b | 11591 | ac_cv_lib_m_asinhl=no |
453310d8 RS |
11592 | fi |
11593 | rm -f conftest.err conftest.$ac_objext \ | |
11594 | conftest$ac_exeext conftest.$ac_ext | |
11595 | LIBS=$ac_check_lib_save_LIBS | |
11596 | fi | |
1409cd0b FXC |
11597 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhl" >&5 |
11598 | echo "${ECHO_T}$ac_cv_lib_m_asinhl" >&6 | |
11599 | if test $ac_cv_lib_m_asinhl = yes; then | |
453310d8 RS |
11600 | |
11601 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11602 | #define HAVE_ASINHL 1 |
453310d8 RS |
11603 | _ACEOF |
11604 | ||
11605 | fi | |
11606 | ||
1409cd0b FXC |
11607 | echo "$as_me:$LINENO: checking for atan2f in -lm" >&5 |
11608 | echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6 | |
11609 | if test "${ac_cv_lib_m_atan2f+set}" = set; then | |
6e4d9244 EB |
11610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11611 | else | |
11612 | ac_check_lib_save_LIBS=$LIBS | |
11613 | LIBS="-lm $LIBS" | |
f02d008e JD |
11614 | if test x$gcc_no_link = xyes; then |
11615 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11616 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11617 | { (exit 1); exit 1; }; } | |
11618 | fi | |
6e4d9244 EB |
11619 | cat >conftest.$ac_ext <<_ACEOF |
11620 | /* confdefs.h. */ | |
11621 | _ACEOF | |
11622 | cat confdefs.h >>conftest.$ac_ext | |
11623 | cat >>conftest.$ac_ext <<_ACEOF | |
11624 | /* end confdefs.h. */ | |
11625 | ||
11626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11627 | #ifdef __cplusplus | |
11628 | extern "C" | |
11629 | #endif | |
11630 | /* We use char because int might match the return type of a gcc2 | |
11631 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11632 | char atan2f (); |
6e4d9244 EB |
11633 | int |
11634 | main () | |
11635 | { | |
1409cd0b | 11636 | atan2f (); |
6e4d9244 EB |
11637 | ; |
11638 | return 0; | |
11639 | } | |
11640 | _ACEOF | |
11641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11643 | (eval $ac_link) 2>conftest.er1 | |
11644 | ac_status=$? | |
11645 | grep -v '^ *+' conftest.er1 >conftest.err | |
11646 | rm -f conftest.er1 | |
11647 | cat conftest.err >&5 | |
11648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11649 | (exit $ac_status); } && | |
57255173 PB |
11650 | { ac_try='test -z "$ac_c_werror_flag" |
11651 | || test ! -s conftest.err' | |
6e4d9244 EB |
11652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11653 | (eval $ac_try) 2>&5 | |
11654 | ac_status=$? | |
11655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11656 | (exit $ac_status); }; } && | |
11657 | { ac_try='test -s conftest$ac_exeext' | |
11658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11659 | (eval $ac_try) 2>&5 | |
11660 | ac_status=$? | |
11661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11662 | (exit $ac_status); }; }; then | |
1409cd0b | 11663 | ac_cv_lib_m_atan2f=yes |
6e4d9244 EB |
11664 | else |
11665 | echo "$as_me: failed program was:" >&5 | |
11666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11667 | ||
1409cd0b | 11668 | ac_cv_lib_m_atan2f=no |
6e4d9244 EB |
11669 | fi |
11670 | rm -f conftest.err conftest.$ac_objext \ | |
11671 | conftest$ac_exeext conftest.$ac_ext | |
11672 | LIBS=$ac_check_lib_save_LIBS | |
11673 | fi | |
1409cd0b FXC |
11674 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5 |
11675 | echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6 | |
11676 | if test $ac_cv_lib_m_atan2f = yes; then | |
6e4d9244 EB |
11677 | |
11678 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11679 | #define HAVE_ATAN2F 1 |
6e4d9244 EB |
11680 | _ACEOF |
11681 | ||
11682 | fi | |
11683 | ||
1409cd0b FXC |
11684 | echo "$as_me:$LINENO: checking for atan2 in -lm" >&5 |
11685 | echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6 | |
11686 | if test "${ac_cv_lib_m_atan2+set}" = set; then | |
453310d8 RS |
11687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11688 | else | |
11689 | ac_check_lib_save_LIBS=$LIBS | |
11690 | LIBS="-lm $LIBS" | |
f02d008e JD |
11691 | if test x$gcc_no_link = xyes; then |
11692 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11693 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11694 | { (exit 1); exit 1; }; } | |
11695 | fi | |
453310d8 RS |
11696 | cat >conftest.$ac_ext <<_ACEOF |
11697 | /* confdefs.h. */ | |
11698 | _ACEOF | |
11699 | cat confdefs.h >>conftest.$ac_ext | |
11700 | cat >>conftest.$ac_ext <<_ACEOF | |
11701 | /* end confdefs.h. */ | |
11702 | ||
11703 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11704 | #ifdef __cplusplus | |
11705 | extern "C" | |
11706 | #endif | |
11707 | /* We use char because int might match the return type of a gcc2 | |
11708 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11709 | char atan2 (); |
453310d8 RS |
11710 | int |
11711 | main () | |
11712 | { | |
1409cd0b | 11713 | atan2 (); |
453310d8 RS |
11714 | ; |
11715 | return 0; | |
11716 | } | |
11717 | _ACEOF | |
11718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11720 | (eval $ac_link) 2>conftest.er1 | |
11721 | ac_status=$? | |
11722 | grep -v '^ *+' conftest.er1 >conftest.err | |
11723 | rm -f conftest.er1 | |
11724 | cat conftest.err >&5 | |
11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11726 | (exit $ac_status); } && | |
57255173 PB |
11727 | { ac_try='test -z "$ac_c_werror_flag" |
11728 | || test ! -s conftest.err' | |
453310d8 RS |
11729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11730 | (eval $ac_try) 2>&5 | |
11731 | ac_status=$? | |
11732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11733 | (exit $ac_status); }; } && | |
11734 | { ac_try='test -s conftest$ac_exeext' | |
11735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11736 | (eval $ac_try) 2>&5 | |
11737 | ac_status=$? | |
11738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11739 | (exit $ac_status); }; }; then | |
1409cd0b | 11740 | ac_cv_lib_m_atan2=yes |
453310d8 RS |
11741 | else |
11742 | echo "$as_me: failed program was:" >&5 | |
11743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11744 | ||
1409cd0b | 11745 | ac_cv_lib_m_atan2=no |
453310d8 RS |
11746 | fi |
11747 | rm -f conftest.err conftest.$ac_objext \ | |
11748 | conftest$ac_exeext conftest.$ac_ext | |
11749 | LIBS=$ac_check_lib_save_LIBS | |
11750 | fi | |
1409cd0b FXC |
11751 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5 |
11752 | echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6 | |
11753 | if test $ac_cv_lib_m_atan2 = yes; then | |
453310d8 RS |
11754 | |
11755 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11756 | #define HAVE_ATAN2 1 |
453310d8 RS |
11757 | _ACEOF |
11758 | ||
11759 | fi | |
11760 | ||
1409cd0b FXC |
11761 | echo "$as_me:$LINENO: checking for atan2l in -lm" >&5 |
11762 | echo $ECHO_N "checking for atan2l in -lm... $ECHO_C" >&6 | |
11763 | if test "${ac_cv_lib_m_atan2l+set}" = set; then | |
453310d8 RS |
11764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11765 | else | |
11766 | ac_check_lib_save_LIBS=$LIBS | |
11767 | LIBS="-lm $LIBS" | |
f02d008e JD |
11768 | if test x$gcc_no_link = xyes; then |
11769 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11770 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11771 | { (exit 1); exit 1; }; } | |
11772 | fi | |
453310d8 RS |
11773 | cat >conftest.$ac_ext <<_ACEOF |
11774 | /* confdefs.h. */ | |
11775 | _ACEOF | |
11776 | cat confdefs.h >>conftest.$ac_ext | |
11777 | cat >>conftest.$ac_ext <<_ACEOF | |
11778 | /* end confdefs.h. */ | |
11779 | ||
11780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11781 | #ifdef __cplusplus | |
11782 | extern "C" | |
11783 | #endif | |
11784 | /* We use char because int might match the return type of a gcc2 | |
11785 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11786 | char atan2l (); |
453310d8 RS |
11787 | int |
11788 | main () | |
11789 | { | |
1409cd0b | 11790 | atan2l (); |
453310d8 RS |
11791 | ; |
11792 | return 0; | |
11793 | } | |
11794 | _ACEOF | |
11795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11797 | (eval $ac_link) 2>conftest.er1 | |
11798 | ac_status=$? | |
11799 | grep -v '^ *+' conftest.er1 >conftest.err | |
11800 | rm -f conftest.er1 | |
11801 | cat conftest.err >&5 | |
11802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11803 | (exit $ac_status); } && | |
57255173 PB |
11804 | { ac_try='test -z "$ac_c_werror_flag" |
11805 | || test ! -s conftest.err' | |
453310d8 RS |
11806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11807 | (eval $ac_try) 2>&5 | |
11808 | ac_status=$? | |
11809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11810 | (exit $ac_status); }; } && | |
11811 | { ac_try='test -s conftest$ac_exeext' | |
11812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11813 | (eval $ac_try) 2>&5 | |
11814 | ac_status=$? | |
11815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11816 | (exit $ac_status); }; }; then | |
1409cd0b | 11817 | ac_cv_lib_m_atan2l=yes |
453310d8 RS |
11818 | else |
11819 | echo "$as_me: failed program was:" >&5 | |
11820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11821 | ||
1409cd0b | 11822 | ac_cv_lib_m_atan2l=no |
453310d8 RS |
11823 | fi |
11824 | rm -f conftest.err conftest.$ac_objext \ | |
11825 | conftest$ac_exeext conftest.$ac_ext | |
11826 | LIBS=$ac_check_lib_save_LIBS | |
11827 | fi | |
1409cd0b FXC |
11828 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2l" >&5 |
11829 | echo "${ECHO_T}$ac_cv_lib_m_atan2l" >&6 | |
11830 | if test $ac_cv_lib_m_atan2l = yes; then | |
453310d8 RS |
11831 | |
11832 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11833 | #define HAVE_ATAN2L 1 |
453310d8 RS |
11834 | _ACEOF |
11835 | ||
11836 | fi | |
11837 | ||
1409cd0b FXC |
11838 | echo "$as_me:$LINENO: checking for atanf in -lm" >&5 |
11839 | echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6 | |
11840 | if test "${ac_cv_lib_m_atanf+set}" = set; then | |
453310d8 RS |
11841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11842 | else | |
11843 | ac_check_lib_save_LIBS=$LIBS | |
11844 | LIBS="-lm $LIBS" | |
f02d008e JD |
11845 | if test x$gcc_no_link = xyes; then |
11846 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11847 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11848 | { (exit 1); exit 1; }; } | |
11849 | fi | |
453310d8 RS |
11850 | cat >conftest.$ac_ext <<_ACEOF |
11851 | /* confdefs.h. */ | |
11852 | _ACEOF | |
11853 | cat confdefs.h >>conftest.$ac_ext | |
11854 | cat >>conftest.$ac_ext <<_ACEOF | |
11855 | /* end confdefs.h. */ | |
11856 | ||
11857 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11858 | #ifdef __cplusplus | |
11859 | extern "C" | |
11860 | #endif | |
11861 | /* We use char because int might match the return type of a gcc2 | |
11862 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11863 | char atanf (); |
453310d8 RS |
11864 | int |
11865 | main () | |
11866 | { | |
1409cd0b | 11867 | atanf (); |
453310d8 RS |
11868 | ; |
11869 | return 0; | |
11870 | } | |
11871 | _ACEOF | |
11872 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11874 | (eval $ac_link) 2>conftest.er1 | |
11875 | ac_status=$? | |
11876 | grep -v '^ *+' conftest.er1 >conftest.err | |
11877 | rm -f conftest.er1 | |
11878 | cat conftest.err >&5 | |
11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11880 | (exit $ac_status); } && | |
57255173 PB |
11881 | { ac_try='test -z "$ac_c_werror_flag" |
11882 | || test ! -s conftest.err' | |
453310d8 RS |
11883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11884 | (eval $ac_try) 2>&5 | |
11885 | ac_status=$? | |
11886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11887 | (exit $ac_status); }; } && | |
11888 | { ac_try='test -s conftest$ac_exeext' | |
11889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11890 | (eval $ac_try) 2>&5 | |
11891 | ac_status=$? | |
11892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11893 | (exit $ac_status); }; }; then | |
1409cd0b | 11894 | ac_cv_lib_m_atanf=yes |
453310d8 RS |
11895 | else |
11896 | echo "$as_me: failed program was:" >&5 | |
11897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11898 | ||
1409cd0b | 11899 | ac_cv_lib_m_atanf=no |
453310d8 RS |
11900 | fi |
11901 | rm -f conftest.err conftest.$ac_objext \ | |
11902 | conftest$ac_exeext conftest.$ac_ext | |
11903 | LIBS=$ac_check_lib_save_LIBS | |
11904 | fi | |
1409cd0b FXC |
11905 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5 |
11906 | echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6 | |
11907 | if test $ac_cv_lib_m_atanf = yes; then | |
453310d8 RS |
11908 | |
11909 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11910 | #define HAVE_ATANF 1 |
453310d8 RS |
11911 | _ACEOF |
11912 | ||
11913 | fi | |
11914 | ||
1409cd0b FXC |
11915 | echo "$as_me:$LINENO: checking for atan in -lm" >&5 |
11916 | echo $ECHO_N "checking for atan in -lm... $ECHO_C" >&6 | |
11917 | if test "${ac_cv_lib_m_atan+set}" = set; then | |
453310d8 RS |
11918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11919 | else | |
11920 | ac_check_lib_save_LIBS=$LIBS | |
11921 | LIBS="-lm $LIBS" | |
f02d008e JD |
11922 | if test x$gcc_no_link = xyes; then |
11923 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11924 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11925 | { (exit 1); exit 1; }; } | |
11926 | fi | |
453310d8 RS |
11927 | cat >conftest.$ac_ext <<_ACEOF |
11928 | /* confdefs.h. */ | |
11929 | _ACEOF | |
11930 | cat confdefs.h >>conftest.$ac_ext | |
11931 | cat >>conftest.$ac_ext <<_ACEOF | |
11932 | /* end confdefs.h. */ | |
11933 | ||
11934 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11935 | #ifdef __cplusplus | |
11936 | extern "C" | |
11937 | #endif | |
11938 | /* We use char because int might match the return type of a gcc2 | |
11939 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 11940 | char atan (); |
453310d8 RS |
11941 | int |
11942 | main () | |
11943 | { | |
1409cd0b | 11944 | atan (); |
453310d8 RS |
11945 | ; |
11946 | return 0; | |
11947 | } | |
11948 | _ACEOF | |
11949 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11951 | (eval $ac_link) 2>conftest.er1 | |
11952 | ac_status=$? | |
11953 | grep -v '^ *+' conftest.er1 >conftest.err | |
11954 | rm -f conftest.er1 | |
11955 | cat conftest.err >&5 | |
11956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11957 | (exit $ac_status); } && | |
57255173 PB |
11958 | { ac_try='test -z "$ac_c_werror_flag" |
11959 | || test ! -s conftest.err' | |
453310d8 RS |
11960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11961 | (eval $ac_try) 2>&5 | |
11962 | ac_status=$? | |
11963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11964 | (exit $ac_status); }; } && | |
11965 | { ac_try='test -s conftest$ac_exeext' | |
11966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11967 | (eval $ac_try) 2>&5 | |
11968 | ac_status=$? | |
11969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11970 | (exit $ac_status); }; }; then | |
1409cd0b | 11971 | ac_cv_lib_m_atan=yes |
453310d8 RS |
11972 | else |
11973 | echo "$as_me: failed program was:" >&5 | |
11974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11975 | ||
1409cd0b | 11976 | ac_cv_lib_m_atan=no |
453310d8 RS |
11977 | fi |
11978 | rm -f conftest.err conftest.$ac_objext \ | |
11979 | conftest$ac_exeext conftest.$ac_ext | |
11980 | LIBS=$ac_check_lib_save_LIBS | |
11981 | fi | |
1409cd0b FXC |
11982 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan" >&5 |
11983 | echo "${ECHO_T}$ac_cv_lib_m_atan" >&6 | |
11984 | if test $ac_cv_lib_m_atan = yes; then | |
453310d8 RS |
11985 | |
11986 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 11987 | #define HAVE_ATAN 1 |
453310d8 RS |
11988 | _ACEOF |
11989 | ||
11990 | fi | |
11991 | ||
1409cd0b FXC |
11992 | echo "$as_me:$LINENO: checking for atanl in -lm" >&5 |
11993 | echo $ECHO_N "checking for atanl in -lm... $ECHO_C" >&6 | |
11994 | if test "${ac_cv_lib_m_atanl+set}" = set; then | |
453310d8 RS |
11995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11996 | else | |
11997 | ac_check_lib_save_LIBS=$LIBS | |
11998 | LIBS="-lm $LIBS" | |
f02d008e JD |
11999 | if test x$gcc_no_link = xyes; then |
12000 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12001 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12002 | { (exit 1); exit 1; }; } | |
12003 | fi | |
453310d8 RS |
12004 | cat >conftest.$ac_ext <<_ACEOF |
12005 | /* confdefs.h. */ | |
12006 | _ACEOF | |
12007 | cat confdefs.h >>conftest.$ac_ext | |
12008 | cat >>conftest.$ac_ext <<_ACEOF | |
12009 | /* end confdefs.h. */ | |
12010 | ||
12011 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12012 | #ifdef __cplusplus | |
12013 | extern "C" | |
12014 | #endif | |
12015 | /* We use char because int might match the return type of a gcc2 | |
12016 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12017 | char atanl (); |
453310d8 RS |
12018 | int |
12019 | main () | |
12020 | { | |
1409cd0b | 12021 | atanl (); |
453310d8 RS |
12022 | ; |
12023 | return 0; | |
12024 | } | |
12025 | _ACEOF | |
12026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12028 | (eval $ac_link) 2>conftest.er1 | |
12029 | ac_status=$? | |
12030 | grep -v '^ *+' conftest.er1 >conftest.err | |
12031 | rm -f conftest.er1 | |
12032 | cat conftest.err >&5 | |
12033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12034 | (exit $ac_status); } && | |
57255173 PB |
12035 | { ac_try='test -z "$ac_c_werror_flag" |
12036 | || test ! -s conftest.err' | |
453310d8 RS |
12037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12038 | (eval $ac_try) 2>&5 | |
12039 | ac_status=$? | |
12040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12041 | (exit $ac_status); }; } && | |
12042 | { ac_try='test -s conftest$ac_exeext' | |
12043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12044 | (eval $ac_try) 2>&5 | |
12045 | ac_status=$? | |
12046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12047 | (exit $ac_status); }; }; then | |
1409cd0b | 12048 | ac_cv_lib_m_atanl=yes |
453310d8 RS |
12049 | else |
12050 | echo "$as_me: failed program was:" >&5 | |
12051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12052 | ||
1409cd0b | 12053 | ac_cv_lib_m_atanl=no |
453310d8 RS |
12054 | fi |
12055 | rm -f conftest.err conftest.$ac_objext \ | |
12056 | conftest$ac_exeext conftest.$ac_ext | |
12057 | LIBS=$ac_check_lib_save_LIBS | |
12058 | fi | |
1409cd0b FXC |
12059 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanl" >&5 |
12060 | echo "${ECHO_T}$ac_cv_lib_m_atanl" >&6 | |
12061 | if test $ac_cv_lib_m_atanl = yes; then | |
453310d8 RS |
12062 | |
12063 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12064 | #define HAVE_ATANL 1 |
453310d8 RS |
12065 | _ACEOF |
12066 | ||
12067 | fi | |
12068 | ||
1409cd0b FXC |
12069 | echo "$as_me:$LINENO: checking for atanhf in -lm" >&5 |
12070 | echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6 | |
12071 | if test "${ac_cv_lib_m_atanhf+set}" = set; then | |
32aa3bff FXC |
12072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12073 | else | |
12074 | ac_check_lib_save_LIBS=$LIBS | |
12075 | LIBS="-lm $LIBS" | |
f02d008e JD |
12076 | if test x$gcc_no_link = xyes; then |
12077 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12078 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12079 | { (exit 1); exit 1; }; } | |
12080 | fi | |
32aa3bff FXC |
12081 | cat >conftest.$ac_ext <<_ACEOF |
12082 | /* confdefs.h. */ | |
12083 | _ACEOF | |
12084 | cat confdefs.h >>conftest.$ac_ext | |
12085 | cat >>conftest.$ac_ext <<_ACEOF | |
12086 | /* end confdefs.h. */ | |
12087 | ||
12088 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12089 | #ifdef __cplusplus | |
12090 | extern "C" | |
12091 | #endif | |
12092 | /* We use char because int might match the return type of a gcc2 | |
12093 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12094 | char atanhf (); |
32aa3bff FXC |
12095 | int |
12096 | main () | |
12097 | { | |
1409cd0b | 12098 | atanhf (); |
32aa3bff FXC |
12099 | ; |
12100 | return 0; | |
12101 | } | |
12102 | _ACEOF | |
12103 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12105 | (eval $ac_link) 2>conftest.er1 | |
12106 | ac_status=$? | |
12107 | grep -v '^ *+' conftest.er1 >conftest.err | |
12108 | rm -f conftest.er1 | |
12109 | cat conftest.err >&5 | |
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12111 | (exit $ac_status); } && | |
57255173 PB |
12112 | { ac_try='test -z "$ac_c_werror_flag" |
12113 | || test ! -s conftest.err' | |
32aa3bff FXC |
12114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12115 | (eval $ac_try) 2>&5 | |
12116 | ac_status=$? | |
12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12118 | (exit $ac_status); }; } && | |
12119 | { ac_try='test -s conftest$ac_exeext' | |
12120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12121 | (eval $ac_try) 2>&5 | |
12122 | ac_status=$? | |
12123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12124 | (exit $ac_status); }; }; then | |
1409cd0b | 12125 | ac_cv_lib_m_atanhf=yes |
32aa3bff FXC |
12126 | else |
12127 | echo "$as_me: failed program was:" >&5 | |
12128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12129 | ||
1409cd0b | 12130 | ac_cv_lib_m_atanhf=no |
32aa3bff FXC |
12131 | fi |
12132 | rm -f conftest.err conftest.$ac_objext \ | |
12133 | conftest$ac_exeext conftest.$ac_ext | |
12134 | LIBS=$ac_check_lib_save_LIBS | |
12135 | fi | |
1409cd0b FXC |
12136 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5 |
12137 | echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6 | |
12138 | if test $ac_cv_lib_m_atanhf = yes; then | |
32aa3bff FXC |
12139 | |
12140 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12141 | #define HAVE_ATANHF 1 |
32aa3bff FXC |
12142 | _ACEOF |
12143 | ||
12144 | fi | |
12145 | ||
1409cd0b FXC |
12146 | echo "$as_me:$LINENO: checking for atanh in -lm" >&5 |
12147 | echo $ECHO_N "checking for atanh in -lm... $ECHO_C" >&6 | |
12148 | if test "${ac_cv_lib_m_atanh+set}" = set; then | |
453310d8 RS |
12149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12150 | else | |
12151 | ac_check_lib_save_LIBS=$LIBS | |
12152 | LIBS="-lm $LIBS" | |
f02d008e JD |
12153 | if test x$gcc_no_link = xyes; then |
12154 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12155 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12156 | { (exit 1); exit 1; }; } | |
12157 | fi | |
453310d8 RS |
12158 | cat >conftest.$ac_ext <<_ACEOF |
12159 | /* confdefs.h. */ | |
12160 | _ACEOF | |
12161 | cat confdefs.h >>conftest.$ac_ext | |
12162 | cat >>conftest.$ac_ext <<_ACEOF | |
12163 | /* end confdefs.h. */ | |
12164 | ||
12165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12166 | #ifdef __cplusplus | |
12167 | extern "C" | |
12168 | #endif | |
12169 | /* We use char because int might match the return type of a gcc2 | |
12170 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12171 | char atanh (); |
453310d8 RS |
12172 | int |
12173 | main () | |
12174 | { | |
1409cd0b | 12175 | atanh (); |
453310d8 RS |
12176 | ; |
12177 | return 0; | |
12178 | } | |
12179 | _ACEOF | |
12180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12182 | (eval $ac_link) 2>conftest.er1 | |
12183 | ac_status=$? | |
12184 | grep -v '^ *+' conftest.er1 >conftest.err | |
12185 | rm -f conftest.er1 | |
12186 | cat conftest.err >&5 | |
12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12188 | (exit $ac_status); } && | |
57255173 PB |
12189 | { ac_try='test -z "$ac_c_werror_flag" |
12190 | || test ! -s conftest.err' | |
453310d8 RS |
12191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12192 | (eval $ac_try) 2>&5 | |
12193 | ac_status=$? | |
12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12195 | (exit $ac_status); }; } && | |
12196 | { ac_try='test -s conftest$ac_exeext' | |
12197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12198 | (eval $ac_try) 2>&5 | |
12199 | ac_status=$? | |
12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12201 | (exit $ac_status); }; }; then | |
1409cd0b | 12202 | ac_cv_lib_m_atanh=yes |
453310d8 RS |
12203 | else |
12204 | echo "$as_me: failed program was:" >&5 | |
12205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12206 | ||
1409cd0b | 12207 | ac_cv_lib_m_atanh=no |
453310d8 RS |
12208 | fi |
12209 | rm -f conftest.err conftest.$ac_objext \ | |
12210 | conftest$ac_exeext conftest.$ac_ext | |
12211 | LIBS=$ac_check_lib_save_LIBS | |
12212 | fi | |
1409cd0b FXC |
12213 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanh" >&5 |
12214 | echo "${ECHO_T}$ac_cv_lib_m_atanh" >&6 | |
12215 | if test $ac_cv_lib_m_atanh = yes; then | |
453310d8 RS |
12216 | |
12217 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12218 | #define HAVE_ATANH 1 |
453310d8 RS |
12219 | _ACEOF |
12220 | ||
12221 | fi | |
12222 | ||
1409cd0b FXC |
12223 | echo "$as_me:$LINENO: checking for atanhl in -lm" >&5 |
12224 | echo $ECHO_N "checking for atanhl in -lm... $ECHO_C" >&6 | |
12225 | if test "${ac_cv_lib_m_atanhl+set}" = set; then | |
453310d8 RS |
12226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12227 | else | |
12228 | ac_check_lib_save_LIBS=$LIBS | |
12229 | LIBS="-lm $LIBS" | |
f02d008e JD |
12230 | if test x$gcc_no_link = xyes; then |
12231 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12232 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12233 | { (exit 1); exit 1; }; } | |
12234 | fi | |
453310d8 RS |
12235 | cat >conftest.$ac_ext <<_ACEOF |
12236 | /* confdefs.h. */ | |
12237 | _ACEOF | |
12238 | cat confdefs.h >>conftest.$ac_ext | |
12239 | cat >>conftest.$ac_ext <<_ACEOF | |
12240 | /* end confdefs.h. */ | |
12241 | ||
12242 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12243 | #ifdef __cplusplus | |
12244 | extern "C" | |
12245 | #endif | |
12246 | /* We use char because int might match the return type of a gcc2 | |
12247 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12248 | char atanhl (); |
453310d8 RS |
12249 | int |
12250 | main () | |
12251 | { | |
1409cd0b | 12252 | atanhl (); |
453310d8 RS |
12253 | ; |
12254 | return 0; | |
12255 | } | |
12256 | _ACEOF | |
12257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12259 | (eval $ac_link) 2>conftest.er1 | |
12260 | ac_status=$? | |
12261 | grep -v '^ *+' conftest.er1 >conftest.err | |
12262 | rm -f conftest.er1 | |
12263 | cat conftest.err >&5 | |
12264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12265 | (exit $ac_status); } && | |
57255173 PB |
12266 | { ac_try='test -z "$ac_c_werror_flag" |
12267 | || test ! -s conftest.err' | |
453310d8 RS |
12268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12269 | (eval $ac_try) 2>&5 | |
12270 | ac_status=$? | |
12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12272 | (exit $ac_status); }; } && | |
12273 | { ac_try='test -s conftest$ac_exeext' | |
12274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12275 | (eval $ac_try) 2>&5 | |
12276 | ac_status=$? | |
12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12278 | (exit $ac_status); }; }; then | |
1409cd0b | 12279 | ac_cv_lib_m_atanhl=yes |
453310d8 RS |
12280 | else |
12281 | echo "$as_me: failed program was:" >&5 | |
12282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12283 | ||
1409cd0b | 12284 | ac_cv_lib_m_atanhl=no |
453310d8 RS |
12285 | fi |
12286 | rm -f conftest.err conftest.$ac_objext \ | |
12287 | conftest$ac_exeext conftest.$ac_ext | |
12288 | LIBS=$ac_check_lib_save_LIBS | |
12289 | fi | |
1409cd0b FXC |
12290 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhl" >&5 |
12291 | echo "${ECHO_T}$ac_cv_lib_m_atanhl" >&6 | |
12292 | if test $ac_cv_lib_m_atanhl = yes; then | |
453310d8 RS |
12293 | |
12294 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12295 | #define HAVE_ATANHL 1 |
453310d8 RS |
12296 | _ACEOF |
12297 | ||
12298 | fi | |
12299 | ||
1409cd0b FXC |
12300 | echo "$as_me:$LINENO: checking for cargf in -lm" >&5 |
12301 | echo $ECHO_N "checking for cargf in -lm... $ECHO_C" >&6 | |
12302 | if test "${ac_cv_lib_m_cargf+set}" = set; then | |
bf4d99cf TS |
12303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12304 | else | |
12305 | ac_check_lib_save_LIBS=$LIBS | |
12306 | LIBS="-lm $LIBS" | |
f02d008e JD |
12307 | if test x$gcc_no_link = xyes; then |
12308 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12309 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12310 | { (exit 1); exit 1; }; } | |
12311 | fi | |
bf4d99cf TS |
12312 | cat >conftest.$ac_ext <<_ACEOF |
12313 | /* confdefs.h. */ | |
12314 | _ACEOF | |
12315 | cat confdefs.h >>conftest.$ac_ext | |
12316 | cat >>conftest.$ac_ext <<_ACEOF | |
12317 | /* end confdefs.h. */ | |
12318 | ||
12319 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12320 | #ifdef __cplusplus | |
12321 | extern "C" | |
12322 | #endif | |
12323 | /* We use char because int might match the return type of a gcc2 | |
12324 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12325 | char cargf (); |
bf4d99cf TS |
12326 | int |
12327 | main () | |
12328 | { | |
1409cd0b | 12329 | cargf (); |
bf4d99cf TS |
12330 | ; |
12331 | return 0; | |
12332 | } | |
12333 | _ACEOF | |
12334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12336 | (eval $ac_link) 2>conftest.er1 | |
12337 | ac_status=$? | |
12338 | grep -v '^ *+' conftest.er1 >conftest.err | |
12339 | rm -f conftest.er1 | |
12340 | cat conftest.err >&5 | |
12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12342 | (exit $ac_status); } && | |
57255173 PB |
12343 | { ac_try='test -z "$ac_c_werror_flag" |
12344 | || test ! -s conftest.err' | |
bf4d99cf TS |
12345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12346 | (eval $ac_try) 2>&5 | |
12347 | ac_status=$? | |
12348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12349 | (exit $ac_status); }; } && | |
12350 | { ac_try='test -s conftest$ac_exeext' | |
12351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12352 | (eval $ac_try) 2>&5 | |
12353 | ac_status=$? | |
12354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12355 | (exit $ac_status); }; }; then | |
1409cd0b | 12356 | ac_cv_lib_m_cargf=yes |
bf4d99cf TS |
12357 | else |
12358 | echo "$as_me: failed program was:" >&5 | |
12359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12360 | ||
1409cd0b | 12361 | ac_cv_lib_m_cargf=no |
bf4d99cf TS |
12362 | fi |
12363 | rm -f conftest.err conftest.$ac_objext \ | |
12364 | conftest$ac_exeext conftest.$ac_ext | |
12365 | LIBS=$ac_check_lib_save_LIBS | |
12366 | fi | |
1409cd0b FXC |
12367 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargf" >&5 |
12368 | echo "${ECHO_T}$ac_cv_lib_m_cargf" >&6 | |
12369 | if test $ac_cv_lib_m_cargf = yes; then | |
bf4d99cf TS |
12370 | |
12371 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12372 | #define HAVE_CARGF 1 |
bf4d99cf TS |
12373 | _ACEOF |
12374 | ||
12375 | fi | |
12376 | ||
1409cd0b FXC |
12377 | echo "$as_me:$LINENO: checking for carg in -lm" >&5 |
12378 | echo $ECHO_N "checking for carg in -lm... $ECHO_C" >&6 | |
12379 | if test "${ac_cv_lib_m_carg+set}" = set; then | |
a2a2059f BD |
12380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12381 | else | |
12382 | ac_check_lib_save_LIBS=$LIBS | |
12383 | LIBS="-lm $LIBS" | |
f02d008e JD |
12384 | if test x$gcc_no_link = xyes; then |
12385 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12386 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12387 | { (exit 1); exit 1; }; } | |
12388 | fi | |
a2a2059f BD |
12389 | cat >conftest.$ac_ext <<_ACEOF |
12390 | /* confdefs.h. */ | |
12391 | _ACEOF | |
12392 | cat confdefs.h >>conftest.$ac_ext | |
12393 | cat >>conftest.$ac_ext <<_ACEOF | |
12394 | /* end confdefs.h. */ | |
12395 | ||
12396 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12397 | #ifdef __cplusplus | |
12398 | extern "C" | |
12399 | #endif | |
12400 | /* We use char because int might match the return type of a gcc2 | |
12401 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12402 | char carg (); |
453310d8 RS |
12403 | int |
12404 | main () | |
12405 | { | |
1409cd0b | 12406 | carg (); |
453310d8 RS |
12407 | ; |
12408 | return 0; | |
12409 | } | |
12410 | _ACEOF | |
12411 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12413 | (eval $ac_link) 2>conftest.er1 | |
12414 | ac_status=$? | |
12415 | grep -v '^ *+' conftest.er1 >conftest.err | |
12416 | rm -f conftest.er1 | |
12417 | cat conftest.err >&5 | |
12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12419 | (exit $ac_status); } && | |
57255173 PB |
12420 | { ac_try='test -z "$ac_c_werror_flag" |
12421 | || test ! -s conftest.err' | |
453310d8 RS |
12422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12423 | (eval $ac_try) 2>&5 | |
12424 | ac_status=$? | |
12425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12426 | (exit $ac_status); }; } && | |
12427 | { ac_try='test -s conftest$ac_exeext' | |
12428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12429 | (eval $ac_try) 2>&5 | |
12430 | ac_status=$? | |
12431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12432 | (exit $ac_status); }; }; then | |
1409cd0b | 12433 | ac_cv_lib_m_carg=yes |
453310d8 RS |
12434 | else |
12435 | echo "$as_me: failed program was:" >&5 | |
12436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12437 | ||
1409cd0b | 12438 | ac_cv_lib_m_carg=no |
453310d8 RS |
12439 | fi |
12440 | rm -f conftest.err conftest.$ac_objext \ | |
12441 | conftest$ac_exeext conftest.$ac_ext | |
12442 | LIBS=$ac_check_lib_save_LIBS | |
12443 | fi | |
1409cd0b FXC |
12444 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_carg" >&5 |
12445 | echo "${ECHO_T}$ac_cv_lib_m_carg" >&6 | |
12446 | if test $ac_cv_lib_m_carg = yes; then | |
453310d8 RS |
12447 | |
12448 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12449 | #define HAVE_CARG 1 |
453310d8 RS |
12450 | _ACEOF |
12451 | ||
12452 | fi | |
12453 | ||
1409cd0b FXC |
12454 | echo "$as_me:$LINENO: checking for cargl in -lm" >&5 |
12455 | echo $ECHO_N "checking for cargl in -lm... $ECHO_C" >&6 | |
12456 | if test "${ac_cv_lib_m_cargl+set}" = set; then | |
453310d8 RS |
12457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12458 | else | |
12459 | ac_check_lib_save_LIBS=$LIBS | |
12460 | LIBS="-lm $LIBS" | |
f02d008e JD |
12461 | if test x$gcc_no_link = xyes; then |
12462 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12463 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12464 | { (exit 1); exit 1; }; } | |
12465 | fi | |
453310d8 RS |
12466 | cat >conftest.$ac_ext <<_ACEOF |
12467 | /* confdefs.h. */ | |
12468 | _ACEOF | |
12469 | cat confdefs.h >>conftest.$ac_ext | |
12470 | cat >>conftest.$ac_ext <<_ACEOF | |
12471 | /* end confdefs.h. */ | |
12472 | ||
12473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12474 | #ifdef __cplusplus | |
12475 | extern "C" | |
12476 | #endif | |
12477 | /* We use char because int might match the return type of a gcc2 | |
12478 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12479 | char cargl (); |
a2a2059f BD |
12480 | int |
12481 | main () | |
12482 | { | |
1409cd0b | 12483 | cargl (); |
a2a2059f BD |
12484 | ; |
12485 | return 0; | |
12486 | } | |
12487 | _ACEOF | |
12488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12490 | (eval $ac_link) 2>conftest.er1 | |
12491 | ac_status=$? | |
12492 | grep -v '^ *+' conftest.er1 >conftest.err | |
12493 | rm -f conftest.er1 | |
12494 | cat conftest.err >&5 | |
12495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12496 | (exit $ac_status); } && | |
57255173 PB |
12497 | { ac_try='test -z "$ac_c_werror_flag" |
12498 | || test ! -s conftest.err' | |
a2a2059f BD |
12499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12500 | (eval $ac_try) 2>&5 | |
12501 | ac_status=$? | |
12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12503 | (exit $ac_status); }; } && | |
12504 | { ac_try='test -s conftest$ac_exeext' | |
12505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12506 | (eval $ac_try) 2>&5 | |
12507 | ac_status=$? | |
12508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12509 | (exit $ac_status); }; }; then | |
1409cd0b | 12510 | ac_cv_lib_m_cargl=yes |
a2a2059f BD |
12511 | else |
12512 | echo "$as_me: failed program was:" >&5 | |
12513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12514 | ||
1409cd0b | 12515 | ac_cv_lib_m_cargl=no |
a2a2059f BD |
12516 | fi |
12517 | rm -f conftest.err conftest.$ac_objext \ | |
12518 | conftest$ac_exeext conftest.$ac_ext | |
12519 | LIBS=$ac_check_lib_save_LIBS | |
12520 | fi | |
1409cd0b FXC |
12521 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargl" >&5 |
12522 | echo "${ECHO_T}$ac_cv_lib_m_cargl" >&6 | |
12523 | if test $ac_cv_lib_m_cargl = yes; then | |
a2a2059f BD |
12524 | |
12525 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12526 | #define HAVE_CARGL 1 |
a2a2059f BD |
12527 | _ACEOF |
12528 | ||
12529 | fi | |
12530 | ||
1409cd0b FXC |
12531 | echo "$as_me:$LINENO: checking for ceilf in -lm" >&5 |
12532 | echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6 | |
12533 | if test "${ac_cv_lib_m_ceilf+set}" = set; then | |
a2a2059f BD |
12534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12535 | else | |
12536 | ac_check_lib_save_LIBS=$LIBS | |
12537 | LIBS="-lm $LIBS" | |
f02d008e JD |
12538 | if test x$gcc_no_link = xyes; then |
12539 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12540 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12541 | { (exit 1); exit 1; }; } | |
12542 | fi | |
a2a2059f BD |
12543 | cat >conftest.$ac_ext <<_ACEOF |
12544 | /* confdefs.h. */ | |
12545 | _ACEOF | |
12546 | cat confdefs.h >>conftest.$ac_ext | |
12547 | cat >>conftest.$ac_ext <<_ACEOF | |
12548 | /* end confdefs.h. */ | |
12549 | ||
12550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12551 | #ifdef __cplusplus | |
12552 | extern "C" | |
12553 | #endif | |
12554 | /* We use char because int might match the return type of a gcc2 | |
12555 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12556 | char ceilf (); |
a2a2059f BD |
12557 | int |
12558 | main () | |
12559 | { | |
1409cd0b | 12560 | ceilf (); |
a2a2059f BD |
12561 | ; |
12562 | return 0; | |
12563 | } | |
12564 | _ACEOF | |
12565 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12567 | (eval $ac_link) 2>conftest.er1 | |
12568 | ac_status=$? | |
12569 | grep -v '^ *+' conftest.er1 >conftest.err | |
12570 | rm -f conftest.er1 | |
12571 | cat conftest.err >&5 | |
12572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12573 | (exit $ac_status); } && | |
57255173 PB |
12574 | { ac_try='test -z "$ac_c_werror_flag" |
12575 | || test ! -s conftest.err' | |
a2a2059f BD |
12576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12577 | (eval $ac_try) 2>&5 | |
12578 | ac_status=$? | |
12579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12580 | (exit $ac_status); }; } && | |
12581 | { ac_try='test -s conftest$ac_exeext' | |
12582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12583 | (eval $ac_try) 2>&5 | |
12584 | ac_status=$? | |
12585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12586 | (exit $ac_status); }; }; then | |
1409cd0b | 12587 | ac_cv_lib_m_ceilf=yes |
a2a2059f BD |
12588 | else |
12589 | echo "$as_me: failed program was:" >&5 | |
12590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12591 | ||
1409cd0b | 12592 | ac_cv_lib_m_ceilf=no |
a2a2059f BD |
12593 | fi |
12594 | rm -f conftest.err conftest.$ac_objext \ | |
12595 | conftest$ac_exeext conftest.$ac_ext | |
12596 | LIBS=$ac_check_lib_save_LIBS | |
12597 | fi | |
1409cd0b FXC |
12598 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5 |
12599 | echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6 | |
12600 | if test $ac_cv_lib_m_ceilf = yes; then | |
a2a2059f BD |
12601 | |
12602 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12603 | #define HAVE_CEILF 1 |
a2a2059f BD |
12604 | _ACEOF |
12605 | ||
12606 | fi | |
12607 | ||
1409cd0b FXC |
12608 | echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
12609 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6 | |
12610 | if test "${ac_cv_lib_m_ceil+set}" = set; then | |
ae973d6a FXC |
12611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12612 | else | |
12613 | ac_check_lib_save_LIBS=$LIBS | |
12614 | LIBS="-lm $LIBS" | |
f02d008e JD |
12615 | if test x$gcc_no_link = xyes; then |
12616 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12617 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12618 | { (exit 1); exit 1; }; } | |
12619 | fi | |
ae973d6a FXC |
12620 | cat >conftest.$ac_ext <<_ACEOF |
12621 | /* confdefs.h. */ | |
12622 | _ACEOF | |
12623 | cat confdefs.h >>conftest.$ac_ext | |
12624 | cat >>conftest.$ac_ext <<_ACEOF | |
12625 | /* end confdefs.h. */ | |
12626 | ||
12627 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12628 | #ifdef __cplusplus | |
12629 | extern "C" | |
12630 | #endif | |
12631 | /* We use char because int might match the return type of a gcc2 | |
12632 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12633 | char ceil (); |
ae973d6a FXC |
12634 | int |
12635 | main () | |
12636 | { | |
1409cd0b | 12637 | ceil (); |
ae973d6a FXC |
12638 | ; |
12639 | return 0; | |
12640 | } | |
12641 | _ACEOF | |
12642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12644 | (eval $ac_link) 2>conftest.er1 | |
12645 | ac_status=$? | |
12646 | grep -v '^ *+' conftest.er1 >conftest.err | |
12647 | rm -f conftest.er1 | |
12648 | cat conftest.err >&5 | |
12649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12650 | (exit $ac_status); } && | |
57255173 PB |
12651 | { ac_try='test -z "$ac_c_werror_flag" |
12652 | || test ! -s conftest.err' | |
ae973d6a FXC |
12653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12654 | (eval $ac_try) 2>&5 | |
12655 | ac_status=$? | |
12656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12657 | (exit $ac_status); }; } && | |
12658 | { ac_try='test -s conftest$ac_exeext' | |
12659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12660 | (eval $ac_try) 2>&5 | |
12661 | ac_status=$? | |
12662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12663 | (exit $ac_status); }; }; then | |
1409cd0b | 12664 | ac_cv_lib_m_ceil=yes |
ae973d6a FXC |
12665 | else |
12666 | echo "$as_me: failed program was:" >&5 | |
12667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12668 | ||
1409cd0b | 12669 | ac_cv_lib_m_ceil=no |
ae973d6a FXC |
12670 | fi |
12671 | rm -f conftest.err conftest.$ac_objext \ | |
12672 | conftest$ac_exeext conftest.$ac_ext | |
12673 | LIBS=$ac_check_lib_save_LIBS | |
12674 | fi | |
1409cd0b FXC |
12675 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
12676 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6 | |
12677 | if test $ac_cv_lib_m_ceil = yes; then | |
ae973d6a FXC |
12678 | |
12679 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12680 | #define HAVE_CEIL 1 |
ae973d6a FXC |
12681 | _ACEOF |
12682 | ||
12683 | fi | |
12684 | ||
1409cd0b FXC |
12685 | echo "$as_me:$LINENO: checking for ceill in -lm" >&5 |
12686 | echo $ECHO_N "checking for ceill in -lm... $ECHO_C" >&6 | |
12687 | if test "${ac_cv_lib_m_ceill+set}" = set; then | |
a9e7b9d3 PB |
12688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12689 | else | |
12690 | ac_check_lib_save_LIBS=$LIBS | |
12691 | LIBS="-lm $LIBS" | |
f02d008e JD |
12692 | if test x$gcc_no_link = xyes; then |
12693 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12694 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12695 | { (exit 1); exit 1; }; } | |
12696 | fi | |
a9e7b9d3 PB |
12697 | cat >conftest.$ac_ext <<_ACEOF |
12698 | /* confdefs.h. */ | |
12699 | _ACEOF | |
12700 | cat confdefs.h >>conftest.$ac_ext | |
12701 | cat >>conftest.$ac_ext <<_ACEOF | |
12702 | /* end confdefs.h. */ | |
12703 | ||
12704 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12705 | #ifdef __cplusplus | |
12706 | extern "C" | |
12707 | #endif | |
12708 | /* We use char because int might match the return type of a gcc2 | |
12709 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12710 | char ceill (); |
a9e7b9d3 PB |
12711 | int |
12712 | main () | |
12713 | { | |
1409cd0b | 12714 | ceill (); |
a9e7b9d3 PB |
12715 | ; |
12716 | return 0; | |
12717 | } | |
12718 | _ACEOF | |
12719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12721 | (eval $ac_link) 2>conftest.er1 | |
12722 | ac_status=$? | |
12723 | grep -v '^ *+' conftest.er1 >conftest.err | |
12724 | rm -f conftest.er1 | |
12725 | cat conftest.err >&5 | |
12726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12727 | (exit $ac_status); } && | |
57255173 PB |
12728 | { ac_try='test -z "$ac_c_werror_flag" |
12729 | || test ! -s conftest.err' | |
a9e7b9d3 PB |
12730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12731 | (eval $ac_try) 2>&5 | |
12732 | ac_status=$? | |
12733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12734 | (exit $ac_status); }; } && | |
12735 | { ac_try='test -s conftest$ac_exeext' | |
12736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12737 | (eval $ac_try) 2>&5 | |
12738 | ac_status=$? | |
12739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12740 | (exit $ac_status); }; }; then | |
1409cd0b | 12741 | ac_cv_lib_m_ceill=yes |
a9e7b9d3 PB |
12742 | else |
12743 | echo "$as_me: failed program was:" >&5 | |
12744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12745 | ||
1409cd0b | 12746 | ac_cv_lib_m_ceill=no |
a9e7b9d3 PB |
12747 | fi |
12748 | rm -f conftest.err conftest.$ac_objext \ | |
12749 | conftest$ac_exeext conftest.$ac_ext | |
12750 | LIBS=$ac_check_lib_save_LIBS | |
12751 | fi | |
1409cd0b FXC |
12752 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceill" >&5 |
12753 | echo "${ECHO_T}$ac_cv_lib_m_ceill" >&6 | |
12754 | if test $ac_cv_lib_m_ceill = yes; then | |
a9e7b9d3 PB |
12755 | |
12756 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12757 | #define HAVE_CEILL 1 |
a9e7b9d3 PB |
12758 | _ACEOF |
12759 | ||
12760 | fi | |
12761 | ||
1409cd0b FXC |
12762 | echo "$as_me:$LINENO: checking for copysignf in -lm" >&5 |
12763 | echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6 | |
12764 | if test "${ac_cv_lib_m_copysignf+set}" = set; then | |
a9e7b9d3 PB |
12765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12766 | else | |
12767 | ac_check_lib_save_LIBS=$LIBS | |
12768 | LIBS="-lm $LIBS" | |
f02d008e JD |
12769 | if test x$gcc_no_link = xyes; then |
12770 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12771 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12772 | { (exit 1); exit 1; }; } | |
12773 | fi | |
a9e7b9d3 PB |
12774 | cat >conftest.$ac_ext <<_ACEOF |
12775 | /* confdefs.h. */ | |
12776 | _ACEOF | |
12777 | cat confdefs.h >>conftest.$ac_ext | |
12778 | cat >>conftest.$ac_ext <<_ACEOF | |
12779 | /* end confdefs.h. */ | |
12780 | ||
12781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12782 | #ifdef __cplusplus | |
12783 | extern "C" | |
12784 | #endif | |
12785 | /* We use char because int might match the return type of a gcc2 | |
12786 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12787 | char copysignf (); |
a9e7b9d3 PB |
12788 | int |
12789 | main () | |
12790 | { | |
1409cd0b | 12791 | copysignf (); |
a9e7b9d3 PB |
12792 | ; |
12793 | return 0; | |
12794 | } | |
12795 | _ACEOF | |
12796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12798 | (eval $ac_link) 2>conftest.er1 | |
12799 | ac_status=$? | |
12800 | grep -v '^ *+' conftest.er1 >conftest.err | |
12801 | rm -f conftest.er1 | |
12802 | cat conftest.err >&5 | |
12803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12804 | (exit $ac_status); } && | |
57255173 PB |
12805 | { ac_try='test -z "$ac_c_werror_flag" |
12806 | || test ! -s conftest.err' | |
a9e7b9d3 PB |
12807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12808 | (eval $ac_try) 2>&5 | |
12809 | ac_status=$? | |
12810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12811 | (exit $ac_status); }; } && | |
12812 | { ac_try='test -s conftest$ac_exeext' | |
12813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12814 | (eval $ac_try) 2>&5 | |
12815 | ac_status=$? | |
12816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12817 | (exit $ac_status); }; }; then | |
1409cd0b | 12818 | ac_cv_lib_m_copysignf=yes |
a9e7b9d3 PB |
12819 | else |
12820 | echo "$as_me: failed program was:" >&5 | |
12821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12822 | ||
1409cd0b | 12823 | ac_cv_lib_m_copysignf=no |
a9e7b9d3 PB |
12824 | fi |
12825 | rm -f conftest.err conftest.$ac_objext \ | |
12826 | conftest$ac_exeext conftest.$ac_ext | |
12827 | LIBS=$ac_check_lib_save_LIBS | |
12828 | fi | |
1409cd0b FXC |
12829 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5 |
12830 | echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6 | |
12831 | if test $ac_cv_lib_m_copysignf = yes; then | |
a9e7b9d3 PB |
12832 | |
12833 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12834 | #define HAVE_COPYSIGNF 1 |
453310d8 RS |
12835 | _ACEOF |
12836 | ||
12837 | fi | |
12838 | ||
1409cd0b FXC |
12839 | echo "$as_me:$LINENO: checking for copysign in -lm" >&5 |
12840 | echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6 | |
12841 | if test "${ac_cv_lib_m_copysign+set}" = set; then | |
453310d8 RS |
12842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12843 | else | |
12844 | ac_check_lib_save_LIBS=$LIBS | |
12845 | LIBS="-lm $LIBS" | |
f02d008e JD |
12846 | if test x$gcc_no_link = xyes; then |
12847 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12848 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12849 | { (exit 1); exit 1; }; } | |
12850 | fi | |
453310d8 RS |
12851 | cat >conftest.$ac_ext <<_ACEOF |
12852 | /* confdefs.h. */ | |
12853 | _ACEOF | |
12854 | cat confdefs.h >>conftest.$ac_ext | |
12855 | cat >>conftest.$ac_ext <<_ACEOF | |
12856 | /* end confdefs.h. */ | |
12857 | ||
12858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12859 | #ifdef __cplusplus | |
12860 | extern "C" | |
12861 | #endif | |
12862 | /* We use char because int might match the return type of a gcc2 | |
12863 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12864 | char copysign (); |
453310d8 RS |
12865 | int |
12866 | main () | |
12867 | { | |
1409cd0b | 12868 | copysign (); |
453310d8 RS |
12869 | ; |
12870 | return 0; | |
12871 | } | |
12872 | _ACEOF | |
12873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12875 | (eval $ac_link) 2>conftest.er1 | |
12876 | ac_status=$? | |
12877 | grep -v '^ *+' conftest.er1 >conftest.err | |
12878 | rm -f conftest.er1 | |
12879 | cat conftest.err >&5 | |
12880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12881 | (exit $ac_status); } && | |
57255173 PB |
12882 | { ac_try='test -z "$ac_c_werror_flag" |
12883 | || test ! -s conftest.err' | |
453310d8 RS |
12884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12885 | (eval $ac_try) 2>&5 | |
12886 | ac_status=$? | |
12887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12888 | (exit $ac_status); }; } && | |
12889 | { ac_try='test -s conftest$ac_exeext' | |
12890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12891 | (eval $ac_try) 2>&5 | |
12892 | ac_status=$? | |
12893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12894 | (exit $ac_status); }; }; then | |
1409cd0b | 12895 | ac_cv_lib_m_copysign=yes |
453310d8 RS |
12896 | else |
12897 | echo "$as_me: failed program was:" >&5 | |
12898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12899 | ||
1409cd0b | 12900 | ac_cv_lib_m_copysign=no |
453310d8 RS |
12901 | fi |
12902 | rm -f conftest.err conftest.$ac_objext \ | |
12903 | conftest$ac_exeext conftest.$ac_ext | |
12904 | LIBS=$ac_check_lib_save_LIBS | |
12905 | fi | |
1409cd0b FXC |
12906 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5 |
12907 | echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6 | |
12908 | if test $ac_cv_lib_m_copysign = yes; then | |
453310d8 RS |
12909 | |
12910 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12911 | #define HAVE_COPYSIGN 1 |
453310d8 RS |
12912 | _ACEOF |
12913 | ||
12914 | fi | |
12915 | ||
1409cd0b FXC |
12916 | echo "$as_me:$LINENO: checking for copysignl in -lm" >&5 |
12917 | echo $ECHO_N "checking for copysignl in -lm... $ECHO_C" >&6 | |
12918 | if test "${ac_cv_lib_m_copysignl+set}" = set; then | |
453310d8 RS |
12919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12920 | else | |
12921 | ac_check_lib_save_LIBS=$LIBS | |
12922 | LIBS="-lm $LIBS" | |
f02d008e JD |
12923 | if test x$gcc_no_link = xyes; then |
12924 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12925 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12926 | { (exit 1); exit 1; }; } | |
12927 | fi | |
453310d8 RS |
12928 | cat >conftest.$ac_ext <<_ACEOF |
12929 | /* confdefs.h. */ | |
12930 | _ACEOF | |
12931 | cat confdefs.h >>conftest.$ac_ext | |
12932 | cat >>conftest.$ac_ext <<_ACEOF | |
12933 | /* end confdefs.h. */ | |
12934 | ||
12935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12936 | #ifdef __cplusplus | |
12937 | extern "C" | |
12938 | #endif | |
12939 | /* We use char because int might match the return type of a gcc2 | |
12940 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 12941 | char copysignl (); |
453310d8 RS |
12942 | int |
12943 | main () | |
12944 | { | |
1409cd0b | 12945 | copysignl (); |
453310d8 RS |
12946 | ; |
12947 | return 0; | |
12948 | } | |
12949 | _ACEOF | |
12950 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12952 | (eval $ac_link) 2>conftest.er1 | |
12953 | ac_status=$? | |
12954 | grep -v '^ *+' conftest.er1 >conftest.err | |
12955 | rm -f conftest.er1 | |
12956 | cat conftest.err >&5 | |
12957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12958 | (exit $ac_status); } && | |
57255173 PB |
12959 | { ac_try='test -z "$ac_c_werror_flag" |
12960 | || test ! -s conftest.err' | |
453310d8 RS |
12961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12962 | (eval $ac_try) 2>&5 | |
12963 | ac_status=$? | |
12964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12965 | (exit $ac_status); }; } && | |
12966 | { ac_try='test -s conftest$ac_exeext' | |
12967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12968 | (eval $ac_try) 2>&5 | |
12969 | ac_status=$? | |
12970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12971 | (exit $ac_status); }; }; then | |
1409cd0b | 12972 | ac_cv_lib_m_copysignl=yes |
453310d8 RS |
12973 | else |
12974 | echo "$as_me: failed program was:" >&5 | |
12975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12976 | ||
1409cd0b | 12977 | ac_cv_lib_m_copysignl=no |
453310d8 RS |
12978 | fi |
12979 | rm -f conftest.err conftest.$ac_objext \ | |
12980 | conftest$ac_exeext conftest.$ac_ext | |
12981 | LIBS=$ac_check_lib_save_LIBS | |
12982 | fi | |
1409cd0b FXC |
12983 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignl" >&5 |
12984 | echo "${ECHO_T}$ac_cv_lib_m_copysignl" >&6 | |
12985 | if test $ac_cv_lib_m_copysignl = yes; then | |
453310d8 RS |
12986 | |
12987 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 12988 | #define HAVE_COPYSIGNL 1 |
453310d8 RS |
12989 | _ACEOF |
12990 | ||
12991 | fi | |
12992 | ||
1409cd0b FXC |
12993 | echo "$as_me:$LINENO: checking for cosf in -lm" >&5 |
12994 | echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6 | |
12995 | if test "${ac_cv_lib_m_cosf+set}" = set; then | |
453310d8 RS |
12996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12997 | else | |
12998 | ac_check_lib_save_LIBS=$LIBS | |
12999 | LIBS="-lm $LIBS" | |
f02d008e JD |
13000 | if test x$gcc_no_link = xyes; then |
13001 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13002 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13003 | { (exit 1); exit 1; }; } | |
13004 | fi | |
453310d8 RS |
13005 | cat >conftest.$ac_ext <<_ACEOF |
13006 | /* confdefs.h. */ | |
13007 | _ACEOF | |
13008 | cat confdefs.h >>conftest.$ac_ext | |
13009 | cat >>conftest.$ac_ext <<_ACEOF | |
13010 | /* end confdefs.h. */ | |
13011 | ||
13012 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13013 | #ifdef __cplusplus | |
13014 | extern "C" | |
13015 | #endif | |
13016 | /* We use char because int might match the return type of a gcc2 | |
13017 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 13018 | char cosf (); |
453310d8 RS |
13019 | int |
13020 | main () | |
13021 | { | |
1409cd0b | 13022 | cosf (); |
453310d8 RS |
13023 | ; |
13024 | return 0; | |
13025 | } | |
13026 | _ACEOF | |
13027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13029 | (eval $ac_link) 2>conftest.er1 | |
13030 | ac_status=$? | |
13031 | grep -v '^ *+' conftest.er1 >conftest.err | |
13032 | rm -f conftest.er1 | |
13033 | cat conftest.err >&5 | |
13034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13035 | (exit $ac_status); } && | |
57255173 PB |
13036 | { ac_try='test -z "$ac_c_werror_flag" |
13037 | || test ! -s conftest.err' | |
453310d8 RS |
13038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13039 | (eval $ac_try) 2>&5 | |
13040 | ac_status=$? | |
13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13042 | (exit $ac_status); }; } && | |
13043 | { ac_try='test -s conftest$ac_exeext' | |
13044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13045 | (eval $ac_try) 2>&5 | |
13046 | ac_status=$? | |
13047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13048 | (exit $ac_status); }; }; then | |
1409cd0b | 13049 | ac_cv_lib_m_cosf=yes |
453310d8 RS |
13050 | else |
13051 | echo "$as_me: failed program was:" >&5 | |
13052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13053 | ||
1409cd0b | 13054 | ac_cv_lib_m_cosf=no |
453310d8 RS |
13055 | fi |
13056 | rm -f conftest.err conftest.$ac_objext \ | |
13057 | conftest$ac_exeext conftest.$ac_ext | |
13058 | LIBS=$ac_check_lib_save_LIBS | |
13059 | fi | |
1409cd0b FXC |
13060 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5 |
13061 | echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6 | |
13062 | if test $ac_cv_lib_m_cosf = yes; then | |
453310d8 RS |
13063 | |
13064 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 13065 | #define HAVE_COSF 1 |
a9e7b9d3 PB |
13066 | _ACEOF |
13067 | ||
13068 | fi | |
13069 | ||
1409cd0b FXC |
13070 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
13071 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
13072 | if test "${ac_cv_lib_m_cos+set}" = set; then | |
69a2d125 EB |
13073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13074 | else | |
13075 | ac_check_lib_save_LIBS=$LIBS | |
13076 | LIBS="-lm $LIBS" | |
f02d008e JD |
13077 | if test x$gcc_no_link = xyes; then |
13078 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13079 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13080 | { (exit 1); exit 1; }; } | |
13081 | fi | |
69a2d125 EB |
13082 | cat >conftest.$ac_ext <<_ACEOF |
13083 | /* confdefs.h. */ | |
13084 | _ACEOF | |
13085 | cat confdefs.h >>conftest.$ac_ext | |
13086 | cat >>conftest.$ac_ext <<_ACEOF | |
13087 | /* end confdefs.h. */ | |
13088 | ||
13089 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13090 | #ifdef __cplusplus | |
13091 | extern "C" | |
13092 | #endif | |
13093 | /* We use char because int might match the return type of a gcc2 | |
13094 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 13095 | char cos (); |
69a2d125 EB |
13096 | int |
13097 | main () | |
13098 | { | |
1409cd0b | 13099 | cos (); |
69a2d125 EB |
13100 | ; |
13101 | return 0; | |
13102 | } | |
13103 | _ACEOF | |
13104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13106 | (eval $ac_link) 2>conftest.er1 | |
13107 | ac_status=$? | |
13108 | grep -v '^ *+' conftest.er1 >conftest.err | |
13109 | rm -f conftest.er1 | |
13110 | cat conftest.err >&5 | |
13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13112 | (exit $ac_status); } && | |
57255173 PB |
13113 | { ac_try='test -z "$ac_c_werror_flag" |
13114 | || test ! -s conftest.err' | |
69a2d125 EB |
13115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13116 | (eval $ac_try) 2>&5 | |
13117 | ac_status=$? | |
13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13119 | (exit $ac_status); }; } && | |
13120 | { ac_try='test -s conftest$ac_exeext' | |
13121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13122 | (eval $ac_try) 2>&5 | |
13123 | ac_status=$? | |
13124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13125 | (exit $ac_status); }; }; then | |
1409cd0b | 13126 | ac_cv_lib_m_cos=yes |
69a2d125 EB |
13127 | else |
13128 | echo "$as_me: failed program was:" >&5 | |
13129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13130 | ||
1409cd0b | 13131 | ac_cv_lib_m_cos=no |
69a2d125 EB |
13132 | fi |
13133 | rm -f conftest.err conftest.$ac_objext \ | |
13134 | conftest$ac_exeext conftest.$ac_ext | |
13135 | LIBS=$ac_check_lib_save_LIBS | |
13136 | fi | |
1409cd0b FXC |
13137 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
13138 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
13139 | if test $ac_cv_lib_m_cos = yes; then | |
69a2d125 EB |
13140 | |
13141 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b FXC |
13142 | #define HAVE_COS 1 |
13143 | _ACEOF | |
13144 | ||
13145 | fi | |
13146 | ||
13147 | echo "$as_me:$LINENO: checking for cosl in -lm" >&5 | |
13148 | echo $ECHO_N "checking for cosl in -lm... $ECHO_C" >&6 | |
13149 | if test "${ac_cv_lib_m_cosl+set}" = set; then | |
13150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13151 | else | |
13152 | ac_check_lib_save_LIBS=$LIBS | |
13153 | LIBS="-lm $LIBS" | |
13154 | if test x$gcc_no_link = xyes; then | |
13155 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13156 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13157 | { (exit 1); exit 1; }; } | |
13158 | fi | |
13159 | cat >conftest.$ac_ext <<_ACEOF | |
13160 | /* confdefs.h. */ | |
13161 | _ACEOF | |
13162 | cat confdefs.h >>conftest.$ac_ext | |
13163 | cat >>conftest.$ac_ext <<_ACEOF | |
13164 | /* end confdefs.h. */ | |
13165 | ||
13166 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13167 | #ifdef __cplusplus | |
13168 | extern "C" | |
13169 | #endif | |
13170 | /* We use char because int might match the return type of a gcc2 | |
13171 | builtin and then its argument prototype would still apply. */ | |
13172 | char cosl (); | |
13173 | int | |
13174 | main () | |
13175 | { | |
13176 | cosl (); | |
13177 | ; | |
13178 | return 0; | |
13179 | } | |
13180 | _ACEOF | |
13181 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13183 | (eval $ac_link) 2>conftest.er1 | |
13184 | ac_status=$? | |
13185 | grep -v '^ *+' conftest.er1 >conftest.err | |
13186 | rm -f conftest.er1 | |
13187 | cat conftest.err >&5 | |
13188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13189 | (exit $ac_status); } && | |
57255173 PB |
13190 | { ac_try='test -z "$ac_c_werror_flag" |
13191 | || test ! -s conftest.err' | |
1409cd0b FXC |
13192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13193 | (eval $ac_try) 2>&5 | |
13194 | ac_status=$? | |
13195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13196 | (exit $ac_status); }; } && | |
13197 | { ac_try='test -s conftest$ac_exeext' | |
13198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13199 | (eval $ac_try) 2>&5 | |
13200 | ac_status=$? | |
13201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13202 | (exit $ac_status); }; }; then | |
13203 | ac_cv_lib_m_cosl=yes | |
13204 | else | |
13205 | echo "$as_me: failed program was:" >&5 | |
13206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13207 | ||
13208 | ac_cv_lib_m_cosl=no | |
13209 | fi | |
13210 | rm -f conftest.err conftest.$ac_objext \ | |
13211 | conftest$ac_exeext conftest.$ac_ext | |
13212 | LIBS=$ac_check_lib_save_LIBS | |
13213 | fi | |
13214 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosl" >&5 | |
13215 | echo "${ECHO_T}$ac_cv_lib_m_cosl" >&6 | |
13216 | if test $ac_cv_lib_m_cosl = yes; then | |
13217 | ||
13218 | cat >>confdefs.h <<\_ACEOF | |
13219 | #define HAVE_COSL 1 | |
13220 | _ACEOF | |
13221 | ||
13222 | fi | |
13223 | ||
13224 | echo "$as_me:$LINENO: checking for ccosf in -lm" >&5 | |
13225 | echo $ECHO_N "checking for ccosf in -lm... $ECHO_C" >&6 | |
13226 | if test "${ac_cv_lib_m_ccosf+set}" = set; then | |
13227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13228 | else | |
13229 | ac_check_lib_save_LIBS=$LIBS | |
13230 | LIBS="-lm $LIBS" | |
13231 | if test x$gcc_no_link = xyes; then | |
13232 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13233 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13234 | { (exit 1); exit 1; }; } | |
13235 | fi | |
13236 | cat >conftest.$ac_ext <<_ACEOF | |
13237 | /* confdefs.h. */ | |
13238 | _ACEOF | |
13239 | cat confdefs.h >>conftest.$ac_ext | |
13240 | cat >>conftest.$ac_ext <<_ACEOF | |
13241 | /* end confdefs.h. */ | |
13242 | ||
13243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13244 | #ifdef __cplusplus | |
13245 | extern "C" | |
13246 | #endif | |
13247 | /* We use char because int might match the return type of a gcc2 | |
13248 | builtin and then its argument prototype would still apply. */ | |
13249 | char ccosf (); | |
13250 | int | |
13251 | main () | |
13252 | { | |
13253 | ccosf (); | |
13254 | ; | |
13255 | return 0; | |
13256 | } | |
13257 | _ACEOF | |
13258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13260 | (eval $ac_link) 2>conftest.er1 | |
13261 | ac_status=$? | |
13262 | grep -v '^ *+' conftest.er1 >conftest.err | |
13263 | rm -f conftest.er1 | |
13264 | cat conftest.err >&5 | |
13265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13266 | (exit $ac_status); } && | |
57255173 PB |
13267 | { ac_try='test -z "$ac_c_werror_flag" |
13268 | || test ! -s conftest.err' | |
1409cd0b FXC |
13269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13270 | (eval $ac_try) 2>&5 | |
13271 | ac_status=$? | |
13272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13273 | (exit $ac_status); }; } && | |
13274 | { ac_try='test -s conftest$ac_exeext' | |
13275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13276 | (eval $ac_try) 2>&5 | |
13277 | ac_status=$? | |
13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13279 | (exit $ac_status); }; }; then | |
13280 | ac_cv_lib_m_ccosf=yes | |
13281 | else | |
13282 | echo "$as_me: failed program was:" >&5 | |
13283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13284 | ||
13285 | ac_cv_lib_m_ccosf=no | |
13286 | fi | |
13287 | rm -f conftest.err conftest.$ac_objext \ | |
13288 | conftest$ac_exeext conftest.$ac_ext | |
13289 | LIBS=$ac_check_lib_save_LIBS | |
13290 | fi | |
13291 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosf" >&5 | |
13292 | echo "${ECHO_T}$ac_cv_lib_m_ccosf" >&6 | |
13293 | if test $ac_cv_lib_m_ccosf = yes; then | |
13294 | ||
13295 | cat >>confdefs.h <<\_ACEOF | |
13296 | #define HAVE_CCOSF 1 | |
13297 | _ACEOF | |
13298 | ||
13299 | fi | |
13300 | ||
13301 | echo "$as_me:$LINENO: checking for ccos in -lm" >&5 | |
13302 | echo $ECHO_N "checking for ccos in -lm... $ECHO_C" >&6 | |
13303 | if test "${ac_cv_lib_m_ccos+set}" = set; then | |
13304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13305 | else | |
13306 | ac_check_lib_save_LIBS=$LIBS | |
13307 | LIBS="-lm $LIBS" | |
13308 | if test x$gcc_no_link = xyes; then | |
13309 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13310 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13311 | { (exit 1); exit 1; }; } | |
13312 | fi | |
13313 | cat >conftest.$ac_ext <<_ACEOF | |
13314 | /* confdefs.h. */ | |
13315 | _ACEOF | |
13316 | cat confdefs.h >>conftest.$ac_ext | |
13317 | cat >>conftest.$ac_ext <<_ACEOF | |
13318 | /* end confdefs.h. */ | |
13319 | ||
13320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13321 | #ifdef __cplusplus | |
13322 | extern "C" | |
13323 | #endif | |
13324 | /* We use char because int might match the return type of a gcc2 | |
13325 | builtin and then its argument prototype would still apply. */ | |
13326 | char ccos (); | |
13327 | int | |
13328 | main () | |
13329 | { | |
13330 | ccos (); | |
13331 | ; | |
13332 | return 0; | |
13333 | } | |
13334 | _ACEOF | |
13335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13337 | (eval $ac_link) 2>conftest.er1 | |
13338 | ac_status=$? | |
13339 | grep -v '^ *+' conftest.er1 >conftest.err | |
13340 | rm -f conftest.er1 | |
13341 | cat conftest.err >&5 | |
13342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13343 | (exit $ac_status); } && | |
57255173 PB |
13344 | { ac_try='test -z "$ac_c_werror_flag" |
13345 | || test ! -s conftest.err' | |
1409cd0b FXC |
13346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13347 | (eval $ac_try) 2>&5 | |
13348 | ac_status=$? | |
13349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13350 | (exit $ac_status); }; } && | |
13351 | { ac_try='test -s conftest$ac_exeext' | |
13352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13353 | (eval $ac_try) 2>&5 | |
13354 | ac_status=$? | |
13355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13356 | (exit $ac_status); }; }; then | |
13357 | ac_cv_lib_m_ccos=yes | |
13358 | else | |
13359 | echo "$as_me: failed program was:" >&5 | |
13360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13361 | ||
13362 | ac_cv_lib_m_ccos=no | |
13363 | fi | |
13364 | rm -f conftest.err conftest.$ac_objext \ | |
13365 | conftest$ac_exeext conftest.$ac_ext | |
13366 | LIBS=$ac_check_lib_save_LIBS | |
13367 | fi | |
13368 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccos" >&5 | |
13369 | echo "${ECHO_T}$ac_cv_lib_m_ccos" >&6 | |
13370 | if test $ac_cv_lib_m_ccos = yes; then | |
13371 | ||
13372 | cat >>confdefs.h <<\_ACEOF | |
13373 | #define HAVE_CCOS 1 | |
13374 | _ACEOF | |
13375 | ||
13376 | fi | |
13377 | ||
13378 | echo "$as_me:$LINENO: checking for ccosl in -lm" >&5 | |
13379 | echo $ECHO_N "checking for ccosl in -lm... $ECHO_C" >&6 | |
13380 | if test "${ac_cv_lib_m_ccosl+set}" = set; then | |
13381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13382 | else | |
13383 | ac_check_lib_save_LIBS=$LIBS | |
13384 | LIBS="-lm $LIBS" | |
13385 | if test x$gcc_no_link = xyes; then | |
13386 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13387 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13388 | { (exit 1); exit 1; }; } | |
13389 | fi | |
13390 | cat >conftest.$ac_ext <<_ACEOF | |
13391 | /* confdefs.h. */ | |
13392 | _ACEOF | |
13393 | cat confdefs.h >>conftest.$ac_ext | |
13394 | cat >>conftest.$ac_ext <<_ACEOF | |
13395 | /* end confdefs.h. */ | |
13396 | ||
13397 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13398 | #ifdef __cplusplus | |
13399 | extern "C" | |
13400 | #endif | |
13401 | /* We use char because int might match the return type of a gcc2 | |
13402 | builtin and then its argument prototype would still apply. */ | |
13403 | char ccosl (); | |
13404 | int | |
13405 | main () | |
13406 | { | |
13407 | ccosl (); | |
13408 | ; | |
13409 | return 0; | |
13410 | } | |
13411 | _ACEOF | |
13412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13414 | (eval $ac_link) 2>conftest.er1 | |
13415 | ac_status=$? | |
13416 | grep -v '^ *+' conftest.er1 >conftest.err | |
13417 | rm -f conftest.er1 | |
13418 | cat conftest.err >&5 | |
13419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13420 | (exit $ac_status); } && | |
57255173 PB |
13421 | { ac_try='test -z "$ac_c_werror_flag" |
13422 | || test ! -s conftest.err' | |
1409cd0b FXC |
13423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13424 | (eval $ac_try) 2>&5 | |
13425 | ac_status=$? | |
13426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13427 | (exit $ac_status); }; } && | |
13428 | { ac_try='test -s conftest$ac_exeext' | |
13429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13430 | (eval $ac_try) 2>&5 | |
13431 | ac_status=$? | |
13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13433 | (exit $ac_status); }; }; then | |
13434 | ac_cv_lib_m_ccosl=yes | |
13435 | else | |
13436 | echo "$as_me: failed program was:" >&5 | |
13437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13438 | ||
13439 | ac_cv_lib_m_ccosl=no | |
13440 | fi | |
13441 | rm -f conftest.err conftest.$ac_objext \ | |
13442 | conftest$ac_exeext conftest.$ac_ext | |
13443 | LIBS=$ac_check_lib_save_LIBS | |
13444 | fi | |
13445 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosl" >&5 | |
13446 | echo "${ECHO_T}$ac_cv_lib_m_ccosl" >&6 | |
13447 | if test $ac_cv_lib_m_ccosl = yes; then | |
13448 | ||
13449 | cat >>confdefs.h <<\_ACEOF | |
13450 | #define HAVE_CCOSL 1 | |
13451 | _ACEOF | |
13452 | ||
13453 | fi | |
13454 | ||
13455 | echo "$as_me:$LINENO: checking for coshf in -lm" >&5 | |
13456 | echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6 | |
13457 | if test "${ac_cv_lib_m_coshf+set}" = set; then | |
13458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13459 | else | |
13460 | ac_check_lib_save_LIBS=$LIBS | |
13461 | LIBS="-lm $LIBS" | |
13462 | if test x$gcc_no_link = xyes; then | |
13463 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13464 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13465 | { (exit 1); exit 1; }; } | |
13466 | fi | |
13467 | cat >conftest.$ac_ext <<_ACEOF | |
13468 | /* confdefs.h. */ | |
13469 | _ACEOF | |
13470 | cat confdefs.h >>conftest.$ac_ext | |
13471 | cat >>conftest.$ac_ext <<_ACEOF | |
13472 | /* end confdefs.h. */ | |
13473 | ||
13474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13475 | #ifdef __cplusplus | |
13476 | extern "C" | |
13477 | #endif | |
13478 | /* We use char because int might match the return type of a gcc2 | |
13479 | builtin and then its argument prototype would still apply. */ | |
13480 | char coshf (); | |
13481 | int | |
13482 | main () | |
13483 | { | |
13484 | coshf (); | |
13485 | ; | |
13486 | return 0; | |
13487 | } | |
13488 | _ACEOF | |
13489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13491 | (eval $ac_link) 2>conftest.er1 | |
13492 | ac_status=$? | |
13493 | grep -v '^ *+' conftest.er1 >conftest.err | |
13494 | rm -f conftest.er1 | |
13495 | cat conftest.err >&5 | |
13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13497 | (exit $ac_status); } && | |
57255173 PB |
13498 | { ac_try='test -z "$ac_c_werror_flag" |
13499 | || test ! -s conftest.err' | |
1409cd0b FXC |
13500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13501 | (eval $ac_try) 2>&5 | |
13502 | ac_status=$? | |
13503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13504 | (exit $ac_status); }; } && | |
13505 | { ac_try='test -s conftest$ac_exeext' | |
13506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13507 | (eval $ac_try) 2>&5 | |
13508 | ac_status=$? | |
13509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13510 | (exit $ac_status); }; }; then | |
13511 | ac_cv_lib_m_coshf=yes | |
13512 | else | |
13513 | echo "$as_me: failed program was:" >&5 | |
13514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13515 | ||
13516 | ac_cv_lib_m_coshf=no | |
13517 | fi | |
13518 | rm -f conftest.err conftest.$ac_objext \ | |
13519 | conftest$ac_exeext conftest.$ac_ext | |
13520 | LIBS=$ac_check_lib_save_LIBS | |
13521 | fi | |
13522 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5 | |
13523 | echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6 | |
13524 | if test $ac_cv_lib_m_coshf = yes; then | |
13525 | ||
13526 | cat >>confdefs.h <<\_ACEOF | |
13527 | #define HAVE_COSHF 1 | |
13528 | _ACEOF | |
13529 | ||
13530 | fi | |
13531 | ||
13532 | echo "$as_me:$LINENO: checking for cosh in -lm" >&5 | |
13533 | echo $ECHO_N "checking for cosh in -lm... $ECHO_C" >&6 | |
13534 | if test "${ac_cv_lib_m_cosh+set}" = set; then | |
13535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13536 | else | |
13537 | ac_check_lib_save_LIBS=$LIBS | |
13538 | LIBS="-lm $LIBS" | |
13539 | if test x$gcc_no_link = xyes; then | |
13540 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13541 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13542 | { (exit 1); exit 1; }; } | |
13543 | fi | |
13544 | cat >conftest.$ac_ext <<_ACEOF | |
13545 | /* confdefs.h. */ | |
13546 | _ACEOF | |
13547 | cat confdefs.h >>conftest.$ac_ext | |
13548 | cat >>conftest.$ac_ext <<_ACEOF | |
13549 | /* end confdefs.h. */ | |
13550 | ||
13551 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13552 | #ifdef __cplusplus | |
13553 | extern "C" | |
13554 | #endif | |
13555 | /* We use char because int might match the return type of a gcc2 | |
13556 | builtin and then its argument prototype would still apply. */ | |
13557 | char cosh (); | |
13558 | int | |
13559 | main () | |
13560 | { | |
13561 | cosh (); | |
13562 | ; | |
13563 | return 0; | |
13564 | } | |
13565 | _ACEOF | |
13566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13568 | (eval $ac_link) 2>conftest.er1 | |
13569 | ac_status=$? | |
13570 | grep -v '^ *+' conftest.er1 >conftest.err | |
13571 | rm -f conftest.er1 | |
13572 | cat conftest.err >&5 | |
13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13574 | (exit $ac_status); } && | |
57255173 PB |
13575 | { ac_try='test -z "$ac_c_werror_flag" |
13576 | || test ! -s conftest.err' | |
1409cd0b FXC |
13577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13578 | (eval $ac_try) 2>&5 | |
13579 | ac_status=$? | |
13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13581 | (exit $ac_status); }; } && | |
13582 | { ac_try='test -s conftest$ac_exeext' | |
13583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13584 | (eval $ac_try) 2>&5 | |
13585 | ac_status=$? | |
13586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13587 | (exit $ac_status); }; }; then | |
13588 | ac_cv_lib_m_cosh=yes | |
13589 | else | |
13590 | echo "$as_me: failed program was:" >&5 | |
13591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13592 | ||
13593 | ac_cv_lib_m_cosh=no | |
13594 | fi | |
13595 | rm -f conftest.err conftest.$ac_objext \ | |
13596 | conftest$ac_exeext conftest.$ac_ext | |
13597 | LIBS=$ac_check_lib_save_LIBS | |
13598 | fi | |
13599 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosh" >&5 | |
13600 | echo "${ECHO_T}$ac_cv_lib_m_cosh" >&6 | |
13601 | if test $ac_cv_lib_m_cosh = yes; then | |
13602 | ||
13603 | cat >>confdefs.h <<\_ACEOF | |
13604 | #define HAVE_COSH 1 | |
13605 | _ACEOF | |
13606 | ||
13607 | fi | |
13608 | ||
13609 | echo "$as_me:$LINENO: checking for coshl in -lm" >&5 | |
13610 | echo $ECHO_N "checking for coshl in -lm... $ECHO_C" >&6 | |
13611 | if test "${ac_cv_lib_m_coshl+set}" = set; then | |
13612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13613 | else | |
13614 | ac_check_lib_save_LIBS=$LIBS | |
13615 | LIBS="-lm $LIBS" | |
13616 | if test x$gcc_no_link = xyes; then | |
13617 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13618 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13619 | { (exit 1); exit 1; }; } | |
13620 | fi | |
13621 | cat >conftest.$ac_ext <<_ACEOF | |
13622 | /* confdefs.h. */ | |
13623 | _ACEOF | |
13624 | cat confdefs.h >>conftest.$ac_ext | |
13625 | cat >>conftest.$ac_ext <<_ACEOF | |
13626 | /* end confdefs.h. */ | |
13627 | ||
13628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13629 | #ifdef __cplusplus | |
13630 | extern "C" | |
13631 | #endif | |
13632 | /* We use char because int might match the return type of a gcc2 | |
13633 | builtin and then its argument prototype would still apply. */ | |
13634 | char coshl (); | |
13635 | int | |
13636 | main () | |
13637 | { | |
13638 | coshl (); | |
13639 | ; | |
13640 | return 0; | |
13641 | } | |
13642 | _ACEOF | |
13643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13645 | (eval $ac_link) 2>conftest.er1 | |
13646 | ac_status=$? | |
13647 | grep -v '^ *+' conftest.er1 >conftest.err | |
13648 | rm -f conftest.er1 | |
13649 | cat conftest.err >&5 | |
13650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13651 | (exit $ac_status); } && | |
57255173 PB |
13652 | { ac_try='test -z "$ac_c_werror_flag" |
13653 | || test ! -s conftest.err' | |
1409cd0b FXC |
13654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13655 | (eval $ac_try) 2>&5 | |
13656 | ac_status=$? | |
13657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13658 | (exit $ac_status); }; } && | |
13659 | { ac_try='test -s conftest$ac_exeext' | |
13660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13661 | (eval $ac_try) 2>&5 | |
13662 | ac_status=$? | |
13663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13664 | (exit $ac_status); }; }; then | |
13665 | ac_cv_lib_m_coshl=yes | |
13666 | else | |
13667 | echo "$as_me: failed program was:" >&5 | |
13668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13669 | ||
13670 | ac_cv_lib_m_coshl=no | |
13671 | fi | |
13672 | rm -f conftest.err conftest.$ac_objext \ | |
13673 | conftest$ac_exeext conftest.$ac_ext | |
13674 | LIBS=$ac_check_lib_save_LIBS | |
13675 | fi | |
13676 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshl" >&5 | |
13677 | echo "${ECHO_T}$ac_cv_lib_m_coshl" >&6 | |
13678 | if test $ac_cv_lib_m_coshl = yes; then | |
13679 | ||
13680 | cat >>confdefs.h <<\_ACEOF | |
13681 | #define HAVE_COSHL 1 | |
13682 | _ACEOF | |
13683 | ||
13684 | fi | |
13685 | ||
13686 | echo "$as_me:$LINENO: checking for ccoshf in -lm" >&5 | |
13687 | echo $ECHO_N "checking for ccoshf in -lm... $ECHO_C" >&6 | |
13688 | if test "${ac_cv_lib_m_ccoshf+set}" = set; then | |
13689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13690 | else | |
13691 | ac_check_lib_save_LIBS=$LIBS | |
13692 | LIBS="-lm $LIBS" | |
13693 | if test x$gcc_no_link = xyes; then | |
13694 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13695 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13696 | { (exit 1); exit 1; }; } | |
13697 | fi | |
13698 | cat >conftest.$ac_ext <<_ACEOF | |
13699 | /* confdefs.h. */ | |
13700 | _ACEOF | |
13701 | cat confdefs.h >>conftest.$ac_ext | |
13702 | cat >>conftest.$ac_ext <<_ACEOF | |
13703 | /* end confdefs.h. */ | |
13704 | ||
13705 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13706 | #ifdef __cplusplus | |
13707 | extern "C" | |
13708 | #endif | |
13709 | /* We use char because int might match the return type of a gcc2 | |
13710 | builtin and then its argument prototype would still apply. */ | |
13711 | char ccoshf (); | |
13712 | int | |
13713 | main () | |
13714 | { | |
13715 | ccoshf (); | |
13716 | ; | |
13717 | return 0; | |
13718 | } | |
13719 | _ACEOF | |
13720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13722 | (eval $ac_link) 2>conftest.er1 | |
13723 | ac_status=$? | |
13724 | grep -v '^ *+' conftest.er1 >conftest.err | |
13725 | rm -f conftest.er1 | |
13726 | cat conftest.err >&5 | |
13727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13728 | (exit $ac_status); } && | |
57255173 PB |
13729 | { ac_try='test -z "$ac_c_werror_flag" |
13730 | || test ! -s conftest.err' | |
1409cd0b FXC |
13731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13732 | (eval $ac_try) 2>&5 | |
13733 | ac_status=$? | |
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | (exit $ac_status); }; } && | |
13736 | { ac_try='test -s conftest$ac_exeext' | |
13737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13738 | (eval $ac_try) 2>&5 | |
13739 | ac_status=$? | |
13740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13741 | (exit $ac_status); }; }; then | |
13742 | ac_cv_lib_m_ccoshf=yes | |
13743 | else | |
13744 | echo "$as_me: failed program was:" >&5 | |
13745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13746 | ||
13747 | ac_cv_lib_m_ccoshf=no | |
13748 | fi | |
13749 | rm -f conftest.err conftest.$ac_objext \ | |
13750 | conftest$ac_exeext conftest.$ac_ext | |
13751 | LIBS=$ac_check_lib_save_LIBS | |
13752 | fi | |
13753 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshf" >&5 | |
13754 | echo "${ECHO_T}$ac_cv_lib_m_ccoshf" >&6 | |
13755 | if test $ac_cv_lib_m_ccoshf = yes; then | |
13756 | ||
13757 | cat >>confdefs.h <<\_ACEOF | |
13758 | #define HAVE_CCOSHF 1 | |
13759 | _ACEOF | |
13760 | ||
13761 | fi | |
13762 | ||
13763 | echo "$as_me:$LINENO: checking for ccosh in -lm" >&5 | |
13764 | echo $ECHO_N "checking for ccosh in -lm... $ECHO_C" >&6 | |
13765 | if test "${ac_cv_lib_m_ccosh+set}" = set; then | |
13766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13767 | else | |
13768 | ac_check_lib_save_LIBS=$LIBS | |
13769 | LIBS="-lm $LIBS" | |
13770 | if test x$gcc_no_link = xyes; then | |
13771 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13772 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13773 | { (exit 1); exit 1; }; } | |
13774 | fi | |
13775 | cat >conftest.$ac_ext <<_ACEOF | |
13776 | /* confdefs.h. */ | |
13777 | _ACEOF | |
13778 | cat confdefs.h >>conftest.$ac_ext | |
13779 | cat >>conftest.$ac_ext <<_ACEOF | |
13780 | /* end confdefs.h. */ | |
13781 | ||
13782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13783 | #ifdef __cplusplus | |
13784 | extern "C" | |
13785 | #endif | |
13786 | /* We use char because int might match the return type of a gcc2 | |
13787 | builtin and then its argument prototype would still apply. */ | |
13788 | char ccosh (); | |
13789 | int | |
13790 | main () | |
13791 | { | |
13792 | ccosh (); | |
13793 | ; | |
13794 | return 0; | |
13795 | } | |
13796 | _ACEOF | |
13797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13799 | (eval $ac_link) 2>conftest.er1 | |
13800 | ac_status=$? | |
13801 | grep -v '^ *+' conftest.er1 >conftest.err | |
13802 | rm -f conftest.er1 | |
13803 | cat conftest.err >&5 | |
13804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13805 | (exit $ac_status); } && | |
57255173 PB |
13806 | { ac_try='test -z "$ac_c_werror_flag" |
13807 | || test ! -s conftest.err' | |
1409cd0b FXC |
13808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13809 | (eval $ac_try) 2>&5 | |
13810 | ac_status=$? | |
13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13812 | (exit $ac_status); }; } && | |
13813 | { ac_try='test -s conftest$ac_exeext' | |
13814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13815 | (eval $ac_try) 2>&5 | |
13816 | ac_status=$? | |
13817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13818 | (exit $ac_status); }; }; then | |
13819 | ac_cv_lib_m_ccosh=yes | |
13820 | else | |
13821 | echo "$as_me: failed program was:" >&5 | |
13822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13823 | ||
13824 | ac_cv_lib_m_ccosh=no | |
13825 | fi | |
13826 | rm -f conftest.err conftest.$ac_objext \ | |
13827 | conftest$ac_exeext conftest.$ac_ext | |
13828 | LIBS=$ac_check_lib_save_LIBS | |
13829 | fi | |
13830 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosh" >&5 | |
13831 | echo "${ECHO_T}$ac_cv_lib_m_ccosh" >&6 | |
13832 | if test $ac_cv_lib_m_ccosh = yes; then | |
13833 | ||
13834 | cat >>confdefs.h <<\_ACEOF | |
13835 | #define HAVE_CCOSH 1 | |
13836 | _ACEOF | |
13837 | ||
13838 | fi | |
13839 | ||
13840 | echo "$as_me:$LINENO: checking for ccoshl in -lm" >&5 | |
13841 | echo $ECHO_N "checking for ccoshl in -lm... $ECHO_C" >&6 | |
13842 | if test "${ac_cv_lib_m_ccoshl+set}" = set; then | |
13843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13844 | else | |
13845 | ac_check_lib_save_LIBS=$LIBS | |
13846 | LIBS="-lm $LIBS" | |
13847 | if test x$gcc_no_link = xyes; then | |
13848 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13849 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13850 | { (exit 1); exit 1; }; } | |
13851 | fi | |
13852 | cat >conftest.$ac_ext <<_ACEOF | |
13853 | /* confdefs.h. */ | |
13854 | _ACEOF | |
13855 | cat confdefs.h >>conftest.$ac_ext | |
13856 | cat >>conftest.$ac_ext <<_ACEOF | |
13857 | /* end confdefs.h. */ | |
13858 | ||
13859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13860 | #ifdef __cplusplus | |
13861 | extern "C" | |
13862 | #endif | |
13863 | /* We use char because int might match the return type of a gcc2 | |
13864 | builtin and then its argument prototype would still apply. */ | |
13865 | char ccoshl (); | |
13866 | int | |
13867 | main () | |
13868 | { | |
13869 | ccoshl (); | |
13870 | ; | |
13871 | return 0; | |
13872 | } | |
13873 | _ACEOF | |
13874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13876 | (eval $ac_link) 2>conftest.er1 | |
13877 | ac_status=$? | |
13878 | grep -v '^ *+' conftest.er1 >conftest.err | |
13879 | rm -f conftest.er1 | |
13880 | cat conftest.err >&5 | |
13881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13882 | (exit $ac_status); } && | |
57255173 PB |
13883 | { ac_try='test -z "$ac_c_werror_flag" |
13884 | || test ! -s conftest.err' | |
1409cd0b FXC |
13885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13886 | (eval $ac_try) 2>&5 | |
13887 | ac_status=$? | |
13888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13889 | (exit $ac_status); }; } && | |
13890 | { ac_try='test -s conftest$ac_exeext' | |
13891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13892 | (eval $ac_try) 2>&5 | |
13893 | ac_status=$? | |
13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13895 | (exit $ac_status); }; }; then | |
13896 | ac_cv_lib_m_ccoshl=yes | |
13897 | else | |
13898 | echo "$as_me: failed program was:" >&5 | |
13899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13900 | ||
13901 | ac_cv_lib_m_ccoshl=no | |
13902 | fi | |
13903 | rm -f conftest.err conftest.$ac_objext \ | |
13904 | conftest$ac_exeext conftest.$ac_ext | |
13905 | LIBS=$ac_check_lib_save_LIBS | |
13906 | fi | |
13907 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshl" >&5 | |
13908 | echo "${ECHO_T}$ac_cv_lib_m_ccoshl" >&6 | |
13909 | if test $ac_cv_lib_m_ccoshl = yes; then | |
13910 | ||
13911 | cat >>confdefs.h <<\_ACEOF | |
13912 | #define HAVE_CCOSHL 1 | |
13913 | _ACEOF | |
13914 | ||
13915 | fi | |
13916 | ||
13917 | echo "$as_me:$LINENO: checking for expf in -lm" >&5 | |
13918 | echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6 | |
13919 | if test "${ac_cv_lib_m_expf+set}" = set; then | |
13920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13921 | else | |
13922 | ac_check_lib_save_LIBS=$LIBS | |
13923 | LIBS="-lm $LIBS" | |
13924 | if test x$gcc_no_link = xyes; then | |
13925 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13926 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13927 | { (exit 1); exit 1; }; } | |
13928 | fi | |
13929 | cat >conftest.$ac_ext <<_ACEOF | |
13930 | /* confdefs.h. */ | |
13931 | _ACEOF | |
13932 | cat confdefs.h >>conftest.$ac_ext | |
13933 | cat >>conftest.$ac_ext <<_ACEOF | |
13934 | /* end confdefs.h. */ | |
13935 | ||
13936 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13937 | #ifdef __cplusplus | |
13938 | extern "C" | |
13939 | #endif | |
13940 | /* We use char because int might match the return type of a gcc2 | |
13941 | builtin and then its argument prototype would still apply. */ | |
13942 | char expf (); | |
13943 | int | |
13944 | main () | |
13945 | { | |
13946 | expf (); | |
13947 | ; | |
13948 | return 0; | |
13949 | } | |
13950 | _ACEOF | |
13951 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13953 | (eval $ac_link) 2>conftest.er1 | |
13954 | ac_status=$? | |
13955 | grep -v '^ *+' conftest.er1 >conftest.err | |
13956 | rm -f conftest.er1 | |
13957 | cat conftest.err >&5 | |
13958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13959 | (exit $ac_status); } && | |
57255173 PB |
13960 | { ac_try='test -z "$ac_c_werror_flag" |
13961 | || test ! -s conftest.err' | |
1409cd0b FXC |
13962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13963 | (eval $ac_try) 2>&5 | |
13964 | ac_status=$? | |
13965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13966 | (exit $ac_status); }; } && | |
13967 | { ac_try='test -s conftest$ac_exeext' | |
13968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13969 | (eval $ac_try) 2>&5 | |
13970 | ac_status=$? | |
13971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13972 | (exit $ac_status); }; }; then | |
13973 | ac_cv_lib_m_expf=yes | |
13974 | else | |
13975 | echo "$as_me: failed program was:" >&5 | |
13976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13977 | ||
13978 | ac_cv_lib_m_expf=no | |
13979 | fi | |
13980 | rm -f conftest.err conftest.$ac_objext \ | |
13981 | conftest$ac_exeext conftest.$ac_ext | |
13982 | LIBS=$ac_check_lib_save_LIBS | |
13983 | fi | |
13984 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5 | |
13985 | echo "${ECHO_T}$ac_cv_lib_m_expf" >&6 | |
13986 | if test $ac_cv_lib_m_expf = yes; then | |
13987 | ||
13988 | cat >>confdefs.h <<\_ACEOF | |
13989 | #define HAVE_EXPF 1 | |
13990 | _ACEOF | |
13991 | ||
13992 | fi | |
13993 | ||
13994 | echo "$as_me:$LINENO: checking for exp in -lm" >&5 | |
13995 | echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6 | |
13996 | if test "${ac_cv_lib_m_exp+set}" = set; then | |
13997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13998 | else | |
13999 | ac_check_lib_save_LIBS=$LIBS | |
14000 | LIBS="-lm $LIBS" | |
14001 | if test x$gcc_no_link = xyes; then | |
14002 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14003 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14004 | { (exit 1); exit 1; }; } | |
14005 | fi | |
14006 | cat >conftest.$ac_ext <<_ACEOF | |
14007 | /* confdefs.h. */ | |
14008 | _ACEOF | |
14009 | cat confdefs.h >>conftest.$ac_ext | |
14010 | cat >>conftest.$ac_ext <<_ACEOF | |
14011 | /* end confdefs.h. */ | |
14012 | ||
14013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14014 | #ifdef __cplusplus | |
14015 | extern "C" | |
14016 | #endif | |
14017 | /* We use char because int might match the return type of a gcc2 | |
14018 | builtin and then its argument prototype would still apply. */ | |
14019 | char exp (); | |
14020 | int | |
14021 | main () | |
14022 | { | |
14023 | exp (); | |
14024 | ; | |
14025 | return 0; | |
14026 | } | |
14027 | _ACEOF | |
14028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14030 | (eval $ac_link) 2>conftest.er1 | |
14031 | ac_status=$? | |
14032 | grep -v '^ *+' conftest.er1 >conftest.err | |
14033 | rm -f conftest.er1 | |
14034 | cat conftest.err >&5 | |
14035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14036 | (exit $ac_status); } && | |
57255173 PB |
14037 | { ac_try='test -z "$ac_c_werror_flag" |
14038 | || test ! -s conftest.err' | |
1409cd0b FXC |
14039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14040 | (eval $ac_try) 2>&5 | |
14041 | ac_status=$? | |
14042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14043 | (exit $ac_status); }; } && | |
14044 | { ac_try='test -s conftest$ac_exeext' | |
14045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14046 | (eval $ac_try) 2>&5 | |
14047 | ac_status=$? | |
14048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14049 | (exit $ac_status); }; }; then | |
14050 | ac_cv_lib_m_exp=yes | |
14051 | else | |
14052 | echo "$as_me: failed program was:" >&5 | |
14053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14054 | ||
14055 | ac_cv_lib_m_exp=no | |
14056 | fi | |
14057 | rm -f conftest.err conftest.$ac_objext \ | |
14058 | conftest$ac_exeext conftest.$ac_ext | |
14059 | LIBS=$ac_check_lib_save_LIBS | |
14060 | fi | |
14061 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5 | |
14062 | echo "${ECHO_T}$ac_cv_lib_m_exp" >&6 | |
14063 | if test $ac_cv_lib_m_exp = yes; then | |
14064 | ||
14065 | cat >>confdefs.h <<\_ACEOF | |
14066 | #define HAVE_EXP 1 | |
14067 | _ACEOF | |
14068 | ||
14069 | fi | |
14070 | ||
14071 | echo "$as_me:$LINENO: checking for expl in -lm" >&5 | |
14072 | echo $ECHO_N "checking for expl in -lm... $ECHO_C" >&6 | |
14073 | if test "${ac_cv_lib_m_expl+set}" = set; then | |
14074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14075 | else | |
14076 | ac_check_lib_save_LIBS=$LIBS | |
14077 | LIBS="-lm $LIBS" | |
14078 | if test x$gcc_no_link = xyes; then | |
14079 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14080 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14081 | { (exit 1); exit 1; }; } | |
14082 | fi | |
14083 | cat >conftest.$ac_ext <<_ACEOF | |
14084 | /* confdefs.h. */ | |
14085 | _ACEOF | |
14086 | cat confdefs.h >>conftest.$ac_ext | |
14087 | cat >>conftest.$ac_ext <<_ACEOF | |
14088 | /* end confdefs.h. */ | |
14089 | ||
14090 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14091 | #ifdef __cplusplus | |
14092 | extern "C" | |
14093 | #endif | |
14094 | /* We use char because int might match the return type of a gcc2 | |
14095 | builtin and then its argument prototype would still apply. */ | |
14096 | char expl (); | |
14097 | int | |
14098 | main () | |
14099 | { | |
14100 | expl (); | |
14101 | ; | |
14102 | return 0; | |
14103 | } | |
14104 | _ACEOF | |
14105 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14107 | (eval $ac_link) 2>conftest.er1 | |
14108 | ac_status=$? | |
14109 | grep -v '^ *+' conftest.er1 >conftest.err | |
14110 | rm -f conftest.er1 | |
14111 | cat conftest.err >&5 | |
14112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14113 | (exit $ac_status); } && | |
57255173 PB |
14114 | { ac_try='test -z "$ac_c_werror_flag" |
14115 | || test ! -s conftest.err' | |
1409cd0b FXC |
14116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14117 | (eval $ac_try) 2>&5 | |
14118 | ac_status=$? | |
14119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14120 | (exit $ac_status); }; } && | |
14121 | { ac_try='test -s conftest$ac_exeext' | |
14122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14123 | (eval $ac_try) 2>&5 | |
14124 | ac_status=$? | |
14125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14126 | (exit $ac_status); }; }; then | |
14127 | ac_cv_lib_m_expl=yes | |
14128 | else | |
14129 | echo "$as_me: failed program was:" >&5 | |
14130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14131 | ||
14132 | ac_cv_lib_m_expl=no | |
14133 | fi | |
14134 | rm -f conftest.err conftest.$ac_objext \ | |
14135 | conftest$ac_exeext conftest.$ac_ext | |
14136 | LIBS=$ac_check_lib_save_LIBS | |
14137 | fi | |
14138 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expl" >&5 | |
14139 | echo "${ECHO_T}$ac_cv_lib_m_expl" >&6 | |
14140 | if test $ac_cv_lib_m_expl = yes; then | |
14141 | ||
14142 | cat >>confdefs.h <<\_ACEOF | |
14143 | #define HAVE_EXPL 1 | |
14144 | _ACEOF | |
14145 | ||
14146 | fi | |
14147 | ||
14148 | echo "$as_me:$LINENO: checking for cexpf in -lm" >&5 | |
14149 | echo $ECHO_N "checking for cexpf in -lm... $ECHO_C" >&6 | |
14150 | if test "${ac_cv_lib_m_cexpf+set}" = set; then | |
14151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14152 | else | |
14153 | ac_check_lib_save_LIBS=$LIBS | |
14154 | LIBS="-lm $LIBS" | |
14155 | if test x$gcc_no_link = xyes; then | |
14156 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14157 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14158 | { (exit 1); exit 1; }; } | |
14159 | fi | |
14160 | cat >conftest.$ac_ext <<_ACEOF | |
14161 | /* confdefs.h. */ | |
14162 | _ACEOF | |
14163 | cat confdefs.h >>conftest.$ac_ext | |
14164 | cat >>conftest.$ac_ext <<_ACEOF | |
14165 | /* end confdefs.h. */ | |
14166 | ||
14167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14168 | #ifdef __cplusplus | |
14169 | extern "C" | |
14170 | #endif | |
14171 | /* We use char because int might match the return type of a gcc2 | |
14172 | builtin and then its argument prototype would still apply. */ | |
14173 | char cexpf (); | |
14174 | int | |
14175 | main () | |
14176 | { | |
14177 | cexpf (); | |
14178 | ; | |
14179 | return 0; | |
14180 | } | |
14181 | _ACEOF | |
14182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14184 | (eval $ac_link) 2>conftest.er1 | |
14185 | ac_status=$? | |
14186 | grep -v '^ *+' conftest.er1 >conftest.err | |
14187 | rm -f conftest.er1 | |
14188 | cat conftest.err >&5 | |
14189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14190 | (exit $ac_status); } && | |
57255173 PB |
14191 | { ac_try='test -z "$ac_c_werror_flag" |
14192 | || test ! -s conftest.err' | |
1409cd0b FXC |
14193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14194 | (eval $ac_try) 2>&5 | |
14195 | ac_status=$? | |
14196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14197 | (exit $ac_status); }; } && | |
14198 | { ac_try='test -s conftest$ac_exeext' | |
14199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14200 | (eval $ac_try) 2>&5 | |
14201 | ac_status=$? | |
14202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14203 | (exit $ac_status); }; }; then | |
14204 | ac_cv_lib_m_cexpf=yes | |
14205 | else | |
14206 | echo "$as_me: failed program was:" >&5 | |
14207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14208 | ||
14209 | ac_cv_lib_m_cexpf=no | |
14210 | fi | |
14211 | rm -f conftest.err conftest.$ac_objext \ | |
14212 | conftest$ac_exeext conftest.$ac_ext | |
14213 | LIBS=$ac_check_lib_save_LIBS | |
14214 | fi | |
14215 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpf" >&5 | |
14216 | echo "${ECHO_T}$ac_cv_lib_m_cexpf" >&6 | |
14217 | if test $ac_cv_lib_m_cexpf = yes; then | |
14218 | ||
14219 | cat >>confdefs.h <<\_ACEOF | |
14220 | #define HAVE_CEXPF 1 | |
14221 | _ACEOF | |
14222 | ||
14223 | fi | |
14224 | ||
14225 | echo "$as_me:$LINENO: checking for cexp in -lm" >&5 | |
14226 | echo $ECHO_N "checking for cexp in -lm... $ECHO_C" >&6 | |
14227 | if test "${ac_cv_lib_m_cexp+set}" = set; then | |
14228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14229 | else | |
14230 | ac_check_lib_save_LIBS=$LIBS | |
14231 | LIBS="-lm $LIBS" | |
14232 | if test x$gcc_no_link = xyes; then | |
14233 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14234 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14235 | { (exit 1); exit 1; }; } | |
14236 | fi | |
14237 | cat >conftest.$ac_ext <<_ACEOF | |
14238 | /* confdefs.h. */ | |
14239 | _ACEOF | |
14240 | cat confdefs.h >>conftest.$ac_ext | |
14241 | cat >>conftest.$ac_ext <<_ACEOF | |
14242 | /* end confdefs.h. */ | |
14243 | ||
14244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14245 | #ifdef __cplusplus | |
14246 | extern "C" | |
14247 | #endif | |
14248 | /* We use char because int might match the return type of a gcc2 | |
14249 | builtin and then its argument prototype would still apply. */ | |
14250 | char cexp (); | |
14251 | int | |
14252 | main () | |
14253 | { | |
14254 | cexp (); | |
14255 | ; | |
14256 | return 0; | |
14257 | } | |
14258 | _ACEOF | |
14259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14261 | (eval $ac_link) 2>conftest.er1 | |
14262 | ac_status=$? | |
14263 | grep -v '^ *+' conftest.er1 >conftest.err | |
14264 | rm -f conftest.er1 | |
14265 | cat conftest.err >&5 | |
14266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14267 | (exit $ac_status); } && | |
57255173 PB |
14268 | { ac_try='test -z "$ac_c_werror_flag" |
14269 | || test ! -s conftest.err' | |
1409cd0b FXC |
14270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14271 | (eval $ac_try) 2>&5 | |
14272 | ac_status=$? | |
14273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14274 | (exit $ac_status); }; } && | |
14275 | { ac_try='test -s conftest$ac_exeext' | |
14276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14277 | (eval $ac_try) 2>&5 | |
14278 | ac_status=$? | |
14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14280 | (exit $ac_status); }; }; then | |
14281 | ac_cv_lib_m_cexp=yes | |
14282 | else | |
14283 | echo "$as_me: failed program was:" >&5 | |
14284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14285 | ||
14286 | ac_cv_lib_m_cexp=no | |
14287 | fi | |
14288 | rm -f conftest.err conftest.$ac_objext \ | |
14289 | conftest$ac_exeext conftest.$ac_ext | |
14290 | LIBS=$ac_check_lib_save_LIBS | |
14291 | fi | |
14292 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexp" >&5 | |
14293 | echo "${ECHO_T}$ac_cv_lib_m_cexp" >&6 | |
14294 | if test $ac_cv_lib_m_cexp = yes; then | |
14295 | ||
14296 | cat >>confdefs.h <<\_ACEOF | |
14297 | #define HAVE_CEXP 1 | |
14298 | _ACEOF | |
14299 | ||
14300 | fi | |
14301 | ||
14302 | echo "$as_me:$LINENO: checking for cexpl in -lm" >&5 | |
14303 | echo $ECHO_N "checking for cexpl in -lm... $ECHO_C" >&6 | |
14304 | if test "${ac_cv_lib_m_cexpl+set}" = set; then | |
14305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14306 | else | |
14307 | ac_check_lib_save_LIBS=$LIBS | |
14308 | LIBS="-lm $LIBS" | |
14309 | if test x$gcc_no_link = xyes; then | |
14310 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14311 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14312 | { (exit 1); exit 1; }; } | |
14313 | fi | |
14314 | cat >conftest.$ac_ext <<_ACEOF | |
14315 | /* confdefs.h. */ | |
14316 | _ACEOF | |
14317 | cat confdefs.h >>conftest.$ac_ext | |
14318 | cat >>conftest.$ac_ext <<_ACEOF | |
14319 | /* end confdefs.h. */ | |
14320 | ||
14321 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14322 | #ifdef __cplusplus | |
14323 | extern "C" | |
14324 | #endif | |
14325 | /* We use char because int might match the return type of a gcc2 | |
14326 | builtin and then its argument prototype would still apply. */ | |
14327 | char cexpl (); | |
14328 | int | |
14329 | main () | |
14330 | { | |
14331 | cexpl (); | |
14332 | ; | |
14333 | return 0; | |
14334 | } | |
14335 | _ACEOF | |
14336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14338 | (eval $ac_link) 2>conftest.er1 | |
14339 | ac_status=$? | |
14340 | grep -v '^ *+' conftest.er1 >conftest.err | |
14341 | rm -f conftest.er1 | |
14342 | cat conftest.err >&5 | |
14343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14344 | (exit $ac_status); } && | |
57255173 PB |
14345 | { ac_try='test -z "$ac_c_werror_flag" |
14346 | || test ! -s conftest.err' | |
1409cd0b FXC |
14347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14348 | (eval $ac_try) 2>&5 | |
14349 | ac_status=$? | |
14350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14351 | (exit $ac_status); }; } && | |
14352 | { ac_try='test -s conftest$ac_exeext' | |
14353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14354 | (eval $ac_try) 2>&5 | |
14355 | ac_status=$? | |
14356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14357 | (exit $ac_status); }; }; then | |
14358 | ac_cv_lib_m_cexpl=yes | |
14359 | else | |
14360 | echo "$as_me: failed program was:" >&5 | |
14361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14362 | ||
14363 | ac_cv_lib_m_cexpl=no | |
14364 | fi | |
14365 | rm -f conftest.err conftest.$ac_objext \ | |
14366 | conftest$ac_exeext conftest.$ac_ext | |
14367 | LIBS=$ac_check_lib_save_LIBS | |
14368 | fi | |
14369 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpl" >&5 | |
14370 | echo "${ECHO_T}$ac_cv_lib_m_cexpl" >&6 | |
14371 | if test $ac_cv_lib_m_cexpl = yes; then | |
14372 | ||
14373 | cat >>confdefs.h <<\_ACEOF | |
14374 | #define HAVE_CEXPL 1 | |
14375 | _ACEOF | |
14376 | ||
14377 | fi | |
14378 | ||
14379 | echo "$as_me:$LINENO: checking for fabsf in -lm" >&5 | |
14380 | echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6 | |
14381 | if test "${ac_cv_lib_m_fabsf+set}" = set; then | |
14382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14383 | else | |
14384 | ac_check_lib_save_LIBS=$LIBS | |
14385 | LIBS="-lm $LIBS" | |
14386 | if test x$gcc_no_link = xyes; then | |
14387 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14388 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14389 | { (exit 1); exit 1; }; } | |
14390 | fi | |
14391 | cat >conftest.$ac_ext <<_ACEOF | |
14392 | /* confdefs.h. */ | |
14393 | _ACEOF | |
14394 | cat confdefs.h >>conftest.$ac_ext | |
14395 | cat >>conftest.$ac_ext <<_ACEOF | |
14396 | /* end confdefs.h. */ | |
14397 | ||
14398 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14399 | #ifdef __cplusplus | |
14400 | extern "C" | |
14401 | #endif | |
14402 | /* We use char because int might match the return type of a gcc2 | |
14403 | builtin and then its argument prototype would still apply. */ | |
14404 | char fabsf (); | |
14405 | int | |
14406 | main () | |
14407 | { | |
14408 | fabsf (); | |
14409 | ; | |
14410 | return 0; | |
14411 | } | |
14412 | _ACEOF | |
14413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14415 | (eval $ac_link) 2>conftest.er1 | |
14416 | ac_status=$? | |
14417 | grep -v '^ *+' conftest.er1 >conftest.err | |
14418 | rm -f conftest.er1 | |
14419 | cat conftest.err >&5 | |
14420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14421 | (exit $ac_status); } && | |
57255173 PB |
14422 | { ac_try='test -z "$ac_c_werror_flag" |
14423 | || test ! -s conftest.err' | |
1409cd0b FXC |
14424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14425 | (eval $ac_try) 2>&5 | |
14426 | ac_status=$? | |
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14428 | (exit $ac_status); }; } && | |
14429 | { ac_try='test -s conftest$ac_exeext' | |
14430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14431 | (eval $ac_try) 2>&5 | |
14432 | ac_status=$? | |
14433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14434 | (exit $ac_status); }; }; then | |
14435 | ac_cv_lib_m_fabsf=yes | |
14436 | else | |
14437 | echo "$as_me: failed program was:" >&5 | |
14438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14439 | ||
14440 | ac_cv_lib_m_fabsf=no | |
14441 | fi | |
14442 | rm -f conftest.err conftest.$ac_objext \ | |
14443 | conftest$ac_exeext conftest.$ac_ext | |
14444 | LIBS=$ac_check_lib_save_LIBS | |
14445 | fi | |
14446 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5 | |
14447 | echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6 | |
14448 | if test $ac_cv_lib_m_fabsf = yes; then | |
14449 | ||
14450 | cat >>confdefs.h <<\_ACEOF | |
14451 | #define HAVE_FABSF 1 | |
14452 | _ACEOF | |
14453 | ||
14454 | fi | |
14455 | ||
14456 | echo "$as_me:$LINENO: checking for fabs in -lm" >&5 | |
14457 | echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6 | |
14458 | if test "${ac_cv_lib_m_fabs+set}" = set; then | |
14459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14460 | else | |
14461 | ac_check_lib_save_LIBS=$LIBS | |
14462 | LIBS="-lm $LIBS" | |
14463 | if test x$gcc_no_link = xyes; then | |
14464 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14465 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14466 | { (exit 1); exit 1; }; } | |
14467 | fi | |
14468 | cat >conftest.$ac_ext <<_ACEOF | |
14469 | /* confdefs.h. */ | |
14470 | _ACEOF | |
14471 | cat confdefs.h >>conftest.$ac_ext | |
14472 | cat >>conftest.$ac_ext <<_ACEOF | |
14473 | /* end confdefs.h. */ | |
14474 | ||
14475 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14476 | #ifdef __cplusplus | |
14477 | extern "C" | |
14478 | #endif | |
14479 | /* We use char because int might match the return type of a gcc2 | |
14480 | builtin and then its argument prototype would still apply. */ | |
14481 | char fabs (); | |
14482 | int | |
14483 | main () | |
14484 | { | |
14485 | fabs (); | |
14486 | ; | |
14487 | return 0; | |
14488 | } | |
14489 | _ACEOF | |
14490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14492 | (eval $ac_link) 2>conftest.er1 | |
14493 | ac_status=$? | |
14494 | grep -v '^ *+' conftest.er1 >conftest.err | |
14495 | rm -f conftest.er1 | |
14496 | cat conftest.err >&5 | |
14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14498 | (exit $ac_status); } && | |
57255173 PB |
14499 | { ac_try='test -z "$ac_c_werror_flag" |
14500 | || test ! -s conftest.err' | |
1409cd0b FXC |
14501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14502 | (eval $ac_try) 2>&5 | |
14503 | ac_status=$? | |
14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14505 | (exit $ac_status); }; } && | |
14506 | { ac_try='test -s conftest$ac_exeext' | |
14507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14508 | (eval $ac_try) 2>&5 | |
14509 | ac_status=$? | |
14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14511 | (exit $ac_status); }; }; then | |
14512 | ac_cv_lib_m_fabs=yes | |
14513 | else | |
14514 | echo "$as_me: failed program was:" >&5 | |
14515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14516 | ||
14517 | ac_cv_lib_m_fabs=no | |
14518 | fi | |
14519 | rm -f conftest.err conftest.$ac_objext \ | |
14520 | conftest$ac_exeext conftest.$ac_ext | |
14521 | LIBS=$ac_check_lib_save_LIBS | |
14522 | fi | |
14523 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5 | |
14524 | echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6 | |
14525 | if test $ac_cv_lib_m_fabs = yes; then | |
14526 | ||
14527 | cat >>confdefs.h <<\_ACEOF | |
14528 | #define HAVE_FABS 1 | |
14529 | _ACEOF | |
14530 | ||
14531 | fi | |
14532 | ||
14533 | echo "$as_me:$LINENO: checking for fabsl in -lm" >&5 | |
14534 | echo $ECHO_N "checking for fabsl in -lm... $ECHO_C" >&6 | |
14535 | if test "${ac_cv_lib_m_fabsl+set}" = set; then | |
14536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14537 | else | |
14538 | ac_check_lib_save_LIBS=$LIBS | |
14539 | LIBS="-lm $LIBS" | |
14540 | if test x$gcc_no_link = xyes; then | |
14541 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14542 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14543 | { (exit 1); exit 1; }; } | |
14544 | fi | |
14545 | cat >conftest.$ac_ext <<_ACEOF | |
14546 | /* confdefs.h. */ | |
14547 | _ACEOF | |
14548 | cat confdefs.h >>conftest.$ac_ext | |
14549 | cat >>conftest.$ac_ext <<_ACEOF | |
14550 | /* end confdefs.h. */ | |
14551 | ||
14552 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14553 | #ifdef __cplusplus | |
14554 | extern "C" | |
14555 | #endif | |
14556 | /* We use char because int might match the return type of a gcc2 | |
14557 | builtin and then its argument prototype would still apply. */ | |
14558 | char fabsl (); | |
14559 | int | |
14560 | main () | |
14561 | { | |
14562 | fabsl (); | |
14563 | ; | |
14564 | return 0; | |
14565 | } | |
14566 | _ACEOF | |
14567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14569 | (eval $ac_link) 2>conftest.er1 | |
14570 | ac_status=$? | |
14571 | grep -v '^ *+' conftest.er1 >conftest.err | |
14572 | rm -f conftest.er1 | |
14573 | cat conftest.err >&5 | |
14574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14575 | (exit $ac_status); } && | |
57255173 PB |
14576 | { ac_try='test -z "$ac_c_werror_flag" |
14577 | || test ! -s conftest.err' | |
1409cd0b FXC |
14578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14579 | (eval $ac_try) 2>&5 | |
14580 | ac_status=$? | |
14581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14582 | (exit $ac_status); }; } && | |
14583 | { ac_try='test -s conftest$ac_exeext' | |
14584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14585 | (eval $ac_try) 2>&5 | |
14586 | ac_status=$? | |
14587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14588 | (exit $ac_status); }; }; then | |
14589 | ac_cv_lib_m_fabsl=yes | |
14590 | else | |
14591 | echo "$as_me: failed program was:" >&5 | |
14592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14593 | ||
14594 | ac_cv_lib_m_fabsl=no | |
14595 | fi | |
14596 | rm -f conftest.err conftest.$ac_objext \ | |
14597 | conftest$ac_exeext conftest.$ac_ext | |
14598 | LIBS=$ac_check_lib_save_LIBS | |
14599 | fi | |
14600 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsl" >&5 | |
14601 | echo "${ECHO_T}$ac_cv_lib_m_fabsl" >&6 | |
14602 | if test $ac_cv_lib_m_fabsl = yes; then | |
14603 | ||
14604 | cat >>confdefs.h <<\_ACEOF | |
14605 | #define HAVE_FABSL 1 | |
14606 | _ACEOF | |
14607 | ||
14608 | fi | |
14609 | ||
14610 | echo "$as_me:$LINENO: checking for cabsf in -lm" >&5 | |
14611 | echo $ECHO_N "checking for cabsf in -lm... $ECHO_C" >&6 | |
14612 | if test "${ac_cv_lib_m_cabsf+set}" = set; then | |
14613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14614 | else | |
14615 | ac_check_lib_save_LIBS=$LIBS | |
14616 | LIBS="-lm $LIBS" | |
14617 | if test x$gcc_no_link = xyes; then | |
14618 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14619 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14620 | { (exit 1); exit 1; }; } | |
14621 | fi | |
14622 | cat >conftest.$ac_ext <<_ACEOF | |
14623 | /* confdefs.h. */ | |
14624 | _ACEOF | |
14625 | cat confdefs.h >>conftest.$ac_ext | |
14626 | cat >>conftest.$ac_ext <<_ACEOF | |
14627 | /* end confdefs.h. */ | |
14628 | ||
14629 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14630 | #ifdef __cplusplus | |
14631 | extern "C" | |
14632 | #endif | |
14633 | /* We use char because int might match the return type of a gcc2 | |
14634 | builtin and then its argument prototype would still apply. */ | |
14635 | char cabsf (); | |
14636 | int | |
14637 | main () | |
14638 | { | |
14639 | cabsf (); | |
14640 | ; | |
14641 | return 0; | |
14642 | } | |
14643 | _ACEOF | |
14644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14646 | (eval $ac_link) 2>conftest.er1 | |
14647 | ac_status=$? | |
14648 | grep -v '^ *+' conftest.er1 >conftest.err | |
14649 | rm -f conftest.er1 | |
14650 | cat conftest.err >&5 | |
14651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14652 | (exit $ac_status); } && | |
57255173 PB |
14653 | { ac_try='test -z "$ac_c_werror_flag" |
14654 | || test ! -s conftest.err' | |
1409cd0b FXC |
14655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14656 | (eval $ac_try) 2>&5 | |
14657 | ac_status=$? | |
14658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14659 | (exit $ac_status); }; } && | |
14660 | { ac_try='test -s conftest$ac_exeext' | |
14661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14662 | (eval $ac_try) 2>&5 | |
14663 | ac_status=$? | |
14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14665 | (exit $ac_status); }; }; then | |
14666 | ac_cv_lib_m_cabsf=yes | |
14667 | else | |
14668 | echo "$as_me: failed program was:" >&5 | |
14669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14670 | ||
14671 | ac_cv_lib_m_cabsf=no | |
14672 | fi | |
14673 | rm -f conftest.err conftest.$ac_objext \ | |
14674 | conftest$ac_exeext conftest.$ac_ext | |
14675 | LIBS=$ac_check_lib_save_LIBS | |
14676 | fi | |
14677 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsf" >&5 | |
14678 | echo "${ECHO_T}$ac_cv_lib_m_cabsf" >&6 | |
14679 | if test $ac_cv_lib_m_cabsf = yes; then | |
14680 | ||
14681 | cat >>confdefs.h <<\_ACEOF | |
14682 | #define HAVE_CABSF 1 | |
14683 | _ACEOF | |
14684 | ||
14685 | fi | |
14686 | ||
14687 | echo "$as_me:$LINENO: checking for cabs in -lm" >&5 | |
14688 | echo $ECHO_N "checking for cabs in -lm... $ECHO_C" >&6 | |
14689 | if test "${ac_cv_lib_m_cabs+set}" = set; then | |
14690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14691 | else | |
14692 | ac_check_lib_save_LIBS=$LIBS | |
14693 | LIBS="-lm $LIBS" | |
14694 | if test x$gcc_no_link = xyes; then | |
14695 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14696 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14697 | { (exit 1); exit 1; }; } | |
14698 | fi | |
14699 | cat >conftest.$ac_ext <<_ACEOF | |
14700 | /* confdefs.h. */ | |
14701 | _ACEOF | |
14702 | cat confdefs.h >>conftest.$ac_ext | |
14703 | cat >>conftest.$ac_ext <<_ACEOF | |
14704 | /* end confdefs.h. */ | |
14705 | ||
14706 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14707 | #ifdef __cplusplus | |
14708 | extern "C" | |
14709 | #endif | |
14710 | /* We use char because int might match the return type of a gcc2 | |
14711 | builtin and then its argument prototype would still apply. */ | |
14712 | char cabs (); | |
14713 | int | |
14714 | main () | |
14715 | { | |
14716 | cabs (); | |
14717 | ; | |
14718 | return 0; | |
14719 | } | |
14720 | _ACEOF | |
14721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14723 | (eval $ac_link) 2>conftest.er1 | |
14724 | ac_status=$? | |
14725 | grep -v '^ *+' conftest.er1 >conftest.err | |
14726 | rm -f conftest.er1 | |
14727 | cat conftest.err >&5 | |
14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14729 | (exit $ac_status); } && | |
57255173 PB |
14730 | { ac_try='test -z "$ac_c_werror_flag" |
14731 | || test ! -s conftest.err' | |
1409cd0b FXC |
14732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14733 | (eval $ac_try) 2>&5 | |
14734 | ac_status=$? | |
14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14736 | (exit $ac_status); }; } && | |
14737 | { ac_try='test -s conftest$ac_exeext' | |
14738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14739 | (eval $ac_try) 2>&5 | |
14740 | ac_status=$? | |
14741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14742 | (exit $ac_status); }; }; then | |
14743 | ac_cv_lib_m_cabs=yes | |
14744 | else | |
14745 | echo "$as_me: failed program was:" >&5 | |
14746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14747 | ||
14748 | ac_cv_lib_m_cabs=no | |
14749 | fi | |
14750 | rm -f conftest.err conftest.$ac_objext \ | |
14751 | conftest$ac_exeext conftest.$ac_ext | |
14752 | LIBS=$ac_check_lib_save_LIBS | |
14753 | fi | |
14754 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabs" >&5 | |
14755 | echo "${ECHO_T}$ac_cv_lib_m_cabs" >&6 | |
14756 | if test $ac_cv_lib_m_cabs = yes; then | |
14757 | ||
14758 | cat >>confdefs.h <<\_ACEOF | |
14759 | #define HAVE_CABS 1 | |
14760 | _ACEOF | |
14761 | ||
14762 | fi | |
14763 | ||
14764 | echo "$as_me:$LINENO: checking for cabsl in -lm" >&5 | |
14765 | echo $ECHO_N "checking for cabsl in -lm... $ECHO_C" >&6 | |
14766 | if test "${ac_cv_lib_m_cabsl+set}" = set; then | |
14767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14768 | else | |
14769 | ac_check_lib_save_LIBS=$LIBS | |
14770 | LIBS="-lm $LIBS" | |
14771 | if test x$gcc_no_link = xyes; then | |
14772 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14773 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14774 | { (exit 1); exit 1; }; } | |
14775 | fi | |
14776 | cat >conftest.$ac_ext <<_ACEOF | |
14777 | /* confdefs.h. */ | |
14778 | _ACEOF | |
14779 | cat confdefs.h >>conftest.$ac_ext | |
14780 | cat >>conftest.$ac_ext <<_ACEOF | |
14781 | /* end confdefs.h. */ | |
14782 | ||
14783 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14784 | #ifdef __cplusplus | |
14785 | extern "C" | |
14786 | #endif | |
14787 | /* We use char because int might match the return type of a gcc2 | |
14788 | builtin and then its argument prototype would still apply. */ | |
14789 | char cabsl (); | |
14790 | int | |
14791 | main () | |
14792 | { | |
14793 | cabsl (); | |
14794 | ; | |
14795 | return 0; | |
14796 | } | |
14797 | _ACEOF | |
14798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14800 | (eval $ac_link) 2>conftest.er1 | |
14801 | ac_status=$? | |
14802 | grep -v '^ *+' conftest.er1 >conftest.err | |
14803 | rm -f conftest.er1 | |
14804 | cat conftest.err >&5 | |
14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14806 | (exit $ac_status); } && | |
57255173 PB |
14807 | { ac_try='test -z "$ac_c_werror_flag" |
14808 | || test ! -s conftest.err' | |
1409cd0b FXC |
14809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14810 | (eval $ac_try) 2>&5 | |
14811 | ac_status=$? | |
14812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14813 | (exit $ac_status); }; } && | |
14814 | { ac_try='test -s conftest$ac_exeext' | |
14815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14816 | (eval $ac_try) 2>&5 | |
14817 | ac_status=$? | |
14818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14819 | (exit $ac_status); }; }; then | |
14820 | ac_cv_lib_m_cabsl=yes | |
14821 | else | |
14822 | echo "$as_me: failed program was:" >&5 | |
14823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14824 | ||
14825 | ac_cv_lib_m_cabsl=no | |
14826 | fi | |
14827 | rm -f conftest.err conftest.$ac_objext \ | |
14828 | conftest$ac_exeext conftest.$ac_ext | |
14829 | LIBS=$ac_check_lib_save_LIBS | |
14830 | fi | |
14831 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsl" >&5 | |
14832 | echo "${ECHO_T}$ac_cv_lib_m_cabsl" >&6 | |
14833 | if test $ac_cv_lib_m_cabsl = yes; then | |
14834 | ||
14835 | cat >>confdefs.h <<\_ACEOF | |
14836 | #define HAVE_CABSL 1 | |
14837 | _ACEOF | |
14838 | ||
14839 | fi | |
14840 | ||
14841 | echo "$as_me:$LINENO: checking for floorf in -lm" >&5 | |
14842 | echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6 | |
14843 | if test "${ac_cv_lib_m_floorf+set}" = set; then | |
14844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14845 | else | |
14846 | ac_check_lib_save_LIBS=$LIBS | |
14847 | LIBS="-lm $LIBS" | |
14848 | if test x$gcc_no_link = xyes; then | |
14849 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14850 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14851 | { (exit 1); exit 1; }; } | |
14852 | fi | |
14853 | cat >conftest.$ac_ext <<_ACEOF | |
14854 | /* confdefs.h. */ | |
14855 | _ACEOF | |
14856 | cat confdefs.h >>conftest.$ac_ext | |
14857 | cat >>conftest.$ac_ext <<_ACEOF | |
14858 | /* end confdefs.h. */ | |
14859 | ||
14860 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14861 | #ifdef __cplusplus | |
14862 | extern "C" | |
14863 | #endif | |
14864 | /* We use char because int might match the return type of a gcc2 | |
14865 | builtin and then its argument prototype would still apply. */ | |
14866 | char floorf (); | |
14867 | int | |
14868 | main () | |
14869 | { | |
14870 | floorf (); | |
14871 | ; | |
14872 | return 0; | |
14873 | } | |
14874 | _ACEOF | |
14875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14877 | (eval $ac_link) 2>conftest.er1 | |
14878 | ac_status=$? | |
14879 | grep -v '^ *+' conftest.er1 >conftest.err | |
14880 | rm -f conftest.er1 | |
14881 | cat conftest.err >&5 | |
14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14883 | (exit $ac_status); } && | |
57255173 PB |
14884 | { ac_try='test -z "$ac_c_werror_flag" |
14885 | || test ! -s conftest.err' | |
1409cd0b FXC |
14886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14887 | (eval $ac_try) 2>&5 | |
14888 | ac_status=$? | |
14889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14890 | (exit $ac_status); }; } && | |
14891 | { ac_try='test -s conftest$ac_exeext' | |
14892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14893 | (eval $ac_try) 2>&5 | |
14894 | ac_status=$? | |
14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14896 | (exit $ac_status); }; }; then | |
14897 | ac_cv_lib_m_floorf=yes | |
14898 | else | |
14899 | echo "$as_me: failed program was:" >&5 | |
14900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14901 | ||
14902 | ac_cv_lib_m_floorf=no | |
14903 | fi | |
14904 | rm -f conftest.err conftest.$ac_objext \ | |
14905 | conftest$ac_exeext conftest.$ac_ext | |
14906 | LIBS=$ac_check_lib_save_LIBS | |
14907 | fi | |
14908 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5 | |
14909 | echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6 | |
14910 | if test $ac_cv_lib_m_floorf = yes; then | |
14911 | ||
14912 | cat >>confdefs.h <<\_ACEOF | |
14913 | #define HAVE_FLOORF 1 | |
14914 | _ACEOF | |
14915 | ||
14916 | fi | |
14917 | ||
14918 | echo "$as_me:$LINENO: checking for floor in -lm" >&5 | |
14919 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 | |
14920 | if test "${ac_cv_lib_m_floor+set}" = set; then | |
14921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14922 | else | |
14923 | ac_check_lib_save_LIBS=$LIBS | |
14924 | LIBS="-lm $LIBS" | |
14925 | if test x$gcc_no_link = xyes; then | |
14926 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14927 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14928 | { (exit 1); exit 1; }; } | |
14929 | fi | |
14930 | cat >conftest.$ac_ext <<_ACEOF | |
14931 | /* confdefs.h. */ | |
14932 | _ACEOF | |
14933 | cat confdefs.h >>conftest.$ac_ext | |
14934 | cat >>conftest.$ac_ext <<_ACEOF | |
14935 | /* end confdefs.h. */ | |
14936 | ||
14937 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14938 | #ifdef __cplusplus | |
14939 | extern "C" | |
14940 | #endif | |
14941 | /* We use char because int might match the return type of a gcc2 | |
14942 | builtin and then its argument prototype would still apply. */ | |
14943 | char floor (); | |
14944 | int | |
14945 | main () | |
14946 | { | |
14947 | floor (); | |
14948 | ; | |
14949 | return 0; | |
14950 | } | |
14951 | _ACEOF | |
14952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14954 | (eval $ac_link) 2>conftest.er1 | |
14955 | ac_status=$? | |
14956 | grep -v '^ *+' conftest.er1 >conftest.err | |
14957 | rm -f conftest.er1 | |
14958 | cat conftest.err >&5 | |
14959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14960 | (exit $ac_status); } && | |
57255173 PB |
14961 | { ac_try='test -z "$ac_c_werror_flag" |
14962 | || test ! -s conftest.err' | |
1409cd0b FXC |
14963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14964 | (eval $ac_try) 2>&5 | |
14965 | ac_status=$? | |
14966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14967 | (exit $ac_status); }; } && | |
14968 | { ac_try='test -s conftest$ac_exeext' | |
14969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14970 | (eval $ac_try) 2>&5 | |
14971 | ac_status=$? | |
14972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14973 | (exit $ac_status); }; }; then | |
14974 | ac_cv_lib_m_floor=yes | |
14975 | else | |
14976 | echo "$as_me: failed program was:" >&5 | |
14977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14978 | ||
14979 | ac_cv_lib_m_floor=no | |
14980 | fi | |
14981 | rm -f conftest.err conftest.$ac_objext \ | |
14982 | conftest$ac_exeext conftest.$ac_ext | |
14983 | LIBS=$ac_check_lib_save_LIBS | |
14984 | fi | |
14985 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 | |
14986 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 | |
14987 | if test $ac_cv_lib_m_floor = yes; then | |
14988 | ||
14989 | cat >>confdefs.h <<\_ACEOF | |
14990 | #define HAVE_FLOOR 1 | |
14991 | _ACEOF | |
14992 | ||
14993 | fi | |
14994 | ||
14995 | echo "$as_me:$LINENO: checking for floorl in -lm" >&5 | |
14996 | echo $ECHO_N "checking for floorl in -lm... $ECHO_C" >&6 | |
14997 | if test "${ac_cv_lib_m_floorl+set}" = set; then | |
14998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14999 | else | |
15000 | ac_check_lib_save_LIBS=$LIBS | |
15001 | LIBS="-lm $LIBS" | |
15002 | if test x$gcc_no_link = xyes; then | |
15003 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15004 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15005 | { (exit 1); exit 1; }; } | |
15006 | fi | |
15007 | cat >conftest.$ac_ext <<_ACEOF | |
15008 | /* confdefs.h. */ | |
15009 | _ACEOF | |
15010 | cat confdefs.h >>conftest.$ac_ext | |
15011 | cat >>conftest.$ac_ext <<_ACEOF | |
15012 | /* end confdefs.h. */ | |
15013 | ||
15014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15015 | #ifdef __cplusplus | |
15016 | extern "C" | |
15017 | #endif | |
15018 | /* We use char because int might match the return type of a gcc2 | |
15019 | builtin and then its argument prototype would still apply. */ | |
15020 | char floorl (); | |
15021 | int | |
15022 | main () | |
15023 | { | |
15024 | floorl (); | |
15025 | ; | |
15026 | return 0; | |
15027 | } | |
15028 | _ACEOF | |
15029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15031 | (eval $ac_link) 2>conftest.er1 | |
15032 | ac_status=$? | |
15033 | grep -v '^ *+' conftest.er1 >conftest.err | |
15034 | rm -f conftest.er1 | |
15035 | cat conftest.err >&5 | |
15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15037 | (exit $ac_status); } && | |
57255173 PB |
15038 | { ac_try='test -z "$ac_c_werror_flag" |
15039 | || test ! -s conftest.err' | |
1409cd0b FXC |
15040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15041 | (eval $ac_try) 2>&5 | |
15042 | ac_status=$? | |
15043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15044 | (exit $ac_status); }; } && | |
15045 | { ac_try='test -s conftest$ac_exeext' | |
15046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15047 | (eval $ac_try) 2>&5 | |
15048 | ac_status=$? | |
15049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15050 | (exit $ac_status); }; }; then | |
15051 | ac_cv_lib_m_floorl=yes | |
15052 | else | |
15053 | echo "$as_me: failed program was:" >&5 | |
15054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15055 | ||
15056 | ac_cv_lib_m_floorl=no | |
15057 | fi | |
15058 | rm -f conftest.err conftest.$ac_objext \ | |
15059 | conftest$ac_exeext conftest.$ac_ext | |
15060 | LIBS=$ac_check_lib_save_LIBS | |
15061 | fi | |
15062 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorl" >&5 | |
15063 | echo "${ECHO_T}$ac_cv_lib_m_floorl" >&6 | |
15064 | if test $ac_cv_lib_m_floorl = yes; then | |
15065 | ||
15066 | cat >>confdefs.h <<\_ACEOF | |
15067 | #define HAVE_FLOORL 1 | |
15068 | _ACEOF | |
15069 | ||
15070 | fi | |
15071 | ||
eb647f7d FXC |
15072 | echo "$as_me:$LINENO: checking for fmodf in -lm" >&5 |
15073 | echo $ECHO_N "checking for fmodf in -lm... $ECHO_C" >&6 | |
15074 | if test "${ac_cv_lib_m_fmodf+set}" = set; then | |
15075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15076 | else | |
15077 | ac_check_lib_save_LIBS=$LIBS | |
15078 | LIBS="-lm $LIBS" | |
15079 | if test x$gcc_no_link = xyes; then | |
15080 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15081 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15082 | { (exit 1); exit 1; }; } | |
15083 | fi | |
15084 | cat >conftest.$ac_ext <<_ACEOF | |
15085 | /* confdefs.h. */ | |
15086 | _ACEOF | |
15087 | cat confdefs.h >>conftest.$ac_ext | |
15088 | cat >>conftest.$ac_ext <<_ACEOF | |
15089 | /* end confdefs.h. */ | |
15090 | ||
15091 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15092 | #ifdef __cplusplus | |
15093 | extern "C" | |
15094 | #endif | |
15095 | /* We use char because int might match the return type of a gcc2 | |
15096 | builtin and then its argument prototype would still apply. */ | |
15097 | char fmodf (); | |
15098 | int | |
15099 | main () | |
15100 | { | |
15101 | fmodf (); | |
15102 | ; | |
15103 | return 0; | |
15104 | } | |
15105 | _ACEOF | |
15106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15108 | (eval $ac_link) 2>conftest.er1 | |
15109 | ac_status=$? | |
15110 | grep -v '^ *+' conftest.er1 >conftest.err | |
15111 | rm -f conftest.er1 | |
15112 | cat conftest.err >&5 | |
15113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15114 | (exit $ac_status); } && | |
15115 | { ac_try='test -z "$ac_c_werror_flag" | |
15116 | || test ! -s conftest.err' | |
15117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15118 | (eval $ac_try) 2>&5 | |
15119 | ac_status=$? | |
15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15121 | (exit $ac_status); }; } && | |
15122 | { ac_try='test -s conftest$ac_exeext' | |
15123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15124 | (eval $ac_try) 2>&5 | |
15125 | ac_status=$? | |
15126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15127 | (exit $ac_status); }; }; then | |
15128 | ac_cv_lib_m_fmodf=yes | |
15129 | else | |
15130 | echo "$as_me: failed program was:" >&5 | |
15131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15132 | ||
15133 | ac_cv_lib_m_fmodf=no | |
15134 | fi | |
15135 | rm -f conftest.err conftest.$ac_objext \ | |
15136 | conftest$ac_exeext conftest.$ac_ext | |
15137 | LIBS=$ac_check_lib_save_LIBS | |
15138 | fi | |
15139 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodf" >&5 | |
15140 | echo "${ECHO_T}$ac_cv_lib_m_fmodf" >&6 | |
15141 | if test $ac_cv_lib_m_fmodf = yes; then | |
15142 | ||
15143 | cat >>confdefs.h <<\_ACEOF | |
15144 | #define HAVE_FMODF 1 | |
15145 | _ACEOF | |
15146 | ||
15147 | fi | |
15148 | ||
15149 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 | |
15150 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 | |
15151 | if test "${ac_cv_lib_m_fmod+set}" = set; then | |
15152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15153 | else | |
15154 | ac_check_lib_save_LIBS=$LIBS | |
15155 | LIBS="-lm $LIBS" | |
15156 | if test x$gcc_no_link = xyes; then | |
15157 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15158 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15159 | { (exit 1); exit 1; }; } | |
15160 | fi | |
15161 | cat >conftest.$ac_ext <<_ACEOF | |
15162 | /* confdefs.h. */ | |
15163 | _ACEOF | |
15164 | cat confdefs.h >>conftest.$ac_ext | |
15165 | cat >>conftest.$ac_ext <<_ACEOF | |
15166 | /* end confdefs.h. */ | |
15167 | ||
15168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15169 | #ifdef __cplusplus | |
15170 | extern "C" | |
15171 | #endif | |
15172 | /* We use char because int might match the return type of a gcc2 | |
15173 | builtin and then its argument prototype would still apply. */ | |
15174 | char fmod (); | |
15175 | int | |
15176 | main () | |
15177 | { | |
15178 | fmod (); | |
15179 | ; | |
15180 | return 0; | |
15181 | } | |
15182 | _ACEOF | |
15183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15185 | (eval $ac_link) 2>conftest.er1 | |
15186 | ac_status=$? | |
15187 | grep -v '^ *+' conftest.er1 >conftest.err | |
15188 | rm -f conftest.er1 | |
15189 | cat conftest.err >&5 | |
15190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15191 | (exit $ac_status); } && | |
15192 | { ac_try='test -z "$ac_c_werror_flag" | |
15193 | || test ! -s conftest.err' | |
15194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15195 | (eval $ac_try) 2>&5 | |
15196 | ac_status=$? | |
15197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15198 | (exit $ac_status); }; } && | |
15199 | { ac_try='test -s conftest$ac_exeext' | |
15200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15201 | (eval $ac_try) 2>&5 | |
15202 | ac_status=$? | |
15203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15204 | (exit $ac_status); }; }; then | |
15205 | ac_cv_lib_m_fmod=yes | |
15206 | else | |
15207 | echo "$as_me: failed program was:" >&5 | |
15208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15209 | ||
15210 | ac_cv_lib_m_fmod=no | |
15211 | fi | |
15212 | rm -f conftest.err conftest.$ac_objext \ | |
15213 | conftest$ac_exeext conftest.$ac_ext | |
15214 | LIBS=$ac_check_lib_save_LIBS | |
15215 | fi | |
15216 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 | |
15217 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 | |
15218 | if test $ac_cv_lib_m_fmod = yes; then | |
15219 | ||
15220 | cat >>confdefs.h <<\_ACEOF | |
15221 | #define HAVE_FMOD 1 | |
15222 | _ACEOF | |
15223 | ||
15224 | fi | |
15225 | ||
15226 | echo "$as_me:$LINENO: checking for fmodl in -lm" >&5 | |
15227 | echo $ECHO_N "checking for fmodl in -lm... $ECHO_C" >&6 | |
15228 | if test "${ac_cv_lib_m_fmodl+set}" = set; then | |
15229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15230 | else | |
15231 | ac_check_lib_save_LIBS=$LIBS | |
15232 | LIBS="-lm $LIBS" | |
15233 | if test x$gcc_no_link = xyes; then | |
15234 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15235 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15236 | { (exit 1); exit 1; }; } | |
15237 | fi | |
15238 | cat >conftest.$ac_ext <<_ACEOF | |
15239 | /* confdefs.h. */ | |
15240 | _ACEOF | |
15241 | cat confdefs.h >>conftest.$ac_ext | |
15242 | cat >>conftest.$ac_ext <<_ACEOF | |
15243 | /* end confdefs.h. */ | |
15244 | ||
15245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15246 | #ifdef __cplusplus | |
15247 | extern "C" | |
15248 | #endif | |
15249 | /* We use char because int might match the return type of a gcc2 | |
15250 | builtin and then its argument prototype would still apply. */ | |
15251 | char fmodl (); | |
15252 | int | |
15253 | main () | |
15254 | { | |
15255 | fmodl (); | |
15256 | ; | |
15257 | return 0; | |
15258 | } | |
15259 | _ACEOF | |
15260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15262 | (eval $ac_link) 2>conftest.er1 | |
15263 | ac_status=$? | |
15264 | grep -v '^ *+' conftest.er1 >conftest.err | |
15265 | rm -f conftest.er1 | |
15266 | cat conftest.err >&5 | |
15267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15268 | (exit $ac_status); } && | |
15269 | { ac_try='test -z "$ac_c_werror_flag" | |
15270 | || test ! -s conftest.err' | |
15271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15272 | (eval $ac_try) 2>&5 | |
15273 | ac_status=$? | |
15274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15275 | (exit $ac_status); }; } && | |
15276 | { ac_try='test -s conftest$ac_exeext' | |
15277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15278 | (eval $ac_try) 2>&5 | |
15279 | ac_status=$? | |
15280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15281 | (exit $ac_status); }; }; then | |
15282 | ac_cv_lib_m_fmodl=yes | |
15283 | else | |
15284 | echo "$as_me: failed program was:" >&5 | |
15285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15286 | ||
15287 | ac_cv_lib_m_fmodl=no | |
15288 | fi | |
15289 | rm -f conftest.err conftest.$ac_objext \ | |
15290 | conftest$ac_exeext conftest.$ac_ext | |
15291 | LIBS=$ac_check_lib_save_LIBS | |
15292 | fi | |
15293 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodl" >&5 | |
15294 | echo "${ECHO_T}$ac_cv_lib_m_fmodl" >&6 | |
15295 | if test $ac_cv_lib_m_fmodl = yes; then | |
15296 | ||
15297 | cat >>confdefs.h <<\_ACEOF | |
15298 | #define HAVE_FMODL 1 | |
15299 | _ACEOF | |
15300 | ||
15301 | fi | |
15302 | ||
1409cd0b FXC |
15303 | echo "$as_me:$LINENO: checking for frexpf in -lm" >&5 |
15304 | echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6 | |
15305 | if test "${ac_cv_lib_m_frexpf+set}" = set; then | |
15306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15307 | else | |
15308 | ac_check_lib_save_LIBS=$LIBS | |
15309 | LIBS="-lm $LIBS" | |
15310 | if test x$gcc_no_link = xyes; then | |
15311 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15312 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15313 | { (exit 1); exit 1; }; } | |
15314 | fi | |
15315 | cat >conftest.$ac_ext <<_ACEOF | |
15316 | /* confdefs.h. */ | |
15317 | _ACEOF | |
15318 | cat confdefs.h >>conftest.$ac_ext | |
15319 | cat >>conftest.$ac_ext <<_ACEOF | |
15320 | /* end confdefs.h. */ | |
15321 | ||
15322 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15323 | #ifdef __cplusplus | |
15324 | extern "C" | |
15325 | #endif | |
15326 | /* We use char because int might match the return type of a gcc2 | |
15327 | builtin and then its argument prototype would still apply. */ | |
15328 | char frexpf (); | |
15329 | int | |
15330 | main () | |
15331 | { | |
15332 | frexpf (); | |
15333 | ; | |
15334 | return 0; | |
15335 | } | |
15336 | _ACEOF | |
15337 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15339 | (eval $ac_link) 2>conftest.er1 | |
15340 | ac_status=$? | |
15341 | grep -v '^ *+' conftest.er1 >conftest.err | |
15342 | rm -f conftest.er1 | |
15343 | cat conftest.err >&5 | |
15344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15345 | (exit $ac_status); } && | |
57255173 PB |
15346 | { ac_try='test -z "$ac_c_werror_flag" |
15347 | || test ! -s conftest.err' | |
1409cd0b FXC |
15348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15349 | (eval $ac_try) 2>&5 | |
15350 | ac_status=$? | |
15351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15352 | (exit $ac_status); }; } && | |
15353 | { ac_try='test -s conftest$ac_exeext' | |
15354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15355 | (eval $ac_try) 2>&5 | |
15356 | ac_status=$? | |
15357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15358 | (exit $ac_status); }; }; then | |
15359 | ac_cv_lib_m_frexpf=yes | |
15360 | else | |
15361 | echo "$as_me: failed program was:" >&5 | |
15362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15363 | ||
15364 | ac_cv_lib_m_frexpf=no | |
15365 | fi | |
15366 | rm -f conftest.err conftest.$ac_objext \ | |
15367 | conftest$ac_exeext conftest.$ac_ext | |
15368 | LIBS=$ac_check_lib_save_LIBS | |
15369 | fi | |
15370 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5 | |
15371 | echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6 | |
15372 | if test $ac_cv_lib_m_frexpf = yes; then | |
15373 | ||
15374 | cat >>confdefs.h <<\_ACEOF | |
15375 | #define HAVE_FREXPF 1 | |
15376 | _ACEOF | |
15377 | ||
15378 | fi | |
15379 | ||
15380 | echo "$as_me:$LINENO: checking for frexp in -lm" >&5 | |
15381 | echo $ECHO_N "checking for frexp in -lm... $ECHO_C" >&6 | |
15382 | if test "${ac_cv_lib_m_frexp+set}" = set; then | |
15383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15384 | else | |
15385 | ac_check_lib_save_LIBS=$LIBS | |
15386 | LIBS="-lm $LIBS" | |
15387 | if test x$gcc_no_link = xyes; then | |
15388 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15389 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15390 | { (exit 1); exit 1; }; } | |
15391 | fi | |
15392 | cat >conftest.$ac_ext <<_ACEOF | |
15393 | /* confdefs.h. */ | |
15394 | _ACEOF | |
15395 | cat confdefs.h >>conftest.$ac_ext | |
15396 | cat >>conftest.$ac_ext <<_ACEOF | |
15397 | /* end confdefs.h. */ | |
15398 | ||
15399 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15400 | #ifdef __cplusplus | |
15401 | extern "C" | |
15402 | #endif | |
15403 | /* We use char because int might match the return type of a gcc2 | |
15404 | builtin and then its argument prototype would still apply. */ | |
15405 | char frexp (); | |
15406 | int | |
15407 | main () | |
15408 | { | |
15409 | frexp (); | |
15410 | ; | |
15411 | return 0; | |
15412 | } | |
15413 | _ACEOF | |
15414 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15416 | (eval $ac_link) 2>conftest.er1 | |
15417 | ac_status=$? | |
15418 | grep -v '^ *+' conftest.er1 >conftest.err | |
15419 | rm -f conftest.er1 | |
15420 | cat conftest.err >&5 | |
15421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15422 | (exit $ac_status); } && | |
57255173 PB |
15423 | { ac_try='test -z "$ac_c_werror_flag" |
15424 | || test ! -s conftest.err' | |
1409cd0b FXC |
15425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15426 | (eval $ac_try) 2>&5 | |
15427 | ac_status=$? | |
15428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15429 | (exit $ac_status); }; } && | |
15430 | { ac_try='test -s conftest$ac_exeext' | |
15431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15432 | (eval $ac_try) 2>&5 | |
15433 | ac_status=$? | |
15434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15435 | (exit $ac_status); }; }; then | |
15436 | ac_cv_lib_m_frexp=yes | |
15437 | else | |
15438 | echo "$as_me: failed program was:" >&5 | |
15439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15440 | ||
15441 | ac_cv_lib_m_frexp=no | |
15442 | fi | |
15443 | rm -f conftest.err conftest.$ac_objext \ | |
15444 | conftest$ac_exeext conftest.$ac_ext | |
15445 | LIBS=$ac_check_lib_save_LIBS | |
15446 | fi | |
15447 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexp" >&5 | |
15448 | echo "${ECHO_T}$ac_cv_lib_m_frexp" >&6 | |
15449 | if test $ac_cv_lib_m_frexp = yes; then | |
15450 | ||
15451 | cat >>confdefs.h <<\_ACEOF | |
15452 | #define HAVE_FREXP 1 | |
15453 | _ACEOF | |
15454 | ||
15455 | fi | |
15456 | ||
15457 | echo "$as_me:$LINENO: checking for frexpl in -lm" >&5 | |
15458 | echo $ECHO_N "checking for frexpl in -lm... $ECHO_C" >&6 | |
15459 | if test "${ac_cv_lib_m_frexpl+set}" = set; then | |
15460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15461 | else | |
15462 | ac_check_lib_save_LIBS=$LIBS | |
15463 | LIBS="-lm $LIBS" | |
15464 | if test x$gcc_no_link = xyes; then | |
15465 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15466 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15467 | { (exit 1); exit 1; }; } | |
15468 | fi | |
15469 | cat >conftest.$ac_ext <<_ACEOF | |
15470 | /* confdefs.h. */ | |
15471 | _ACEOF | |
15472 | cat confdefs.h >>conftest.$ac_ext | |
15473 | cat >>conftest.$ac_ext <<_ACEOF | |
15474 | /* end confdefs.h. */ | |
15475 | ||
15476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15477 | #ifdef __cplusplus | |
15478 | extern "C" | |
15479 | #endif | |
15480 | /* We use char because int might match the return type of a gcc2 | |
15481 | builtin and then its argument prototype would still apply. */ | |
15482 | char frexpl (); | |
15483 | int | |
15484 | main () | |
15485 | { | |
15486 | frexpl (); | |
15487 | ; | |
15488 | return 0; | |
15489 | } | |
15490 | _ACEOF | |
15491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15493 | (eval $ac_link) 2>conftest.er1 | |
15494 | ac_status=$? | |
15495 | grep -v '^ *+' conftest.er1 >conftest.err | |
15496 | rm -f conftest.er1 | |
15497 | cat conftest.err >&5 | |
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15499 | (exit $ac_status); } && | |
57255173 PB |
15500 | { ac_try='test -z "$ac_c_werror_flag" |
15501 | || test ! -s conftest.err' | |
1409cd0b FXC |
15502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15503 | (eval $ac_try) 2>&5 | |
15504 | ac_status=$? | |
15505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15506 | (exit $ac_status); }; } && | |
15507 | { ac_try='test -s conftest$ac_exeext' | |
15508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15509 | (eval $ac_try) 2>&5 | |
15510 | ac_status=$? | |
15511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15512 | (exit $ac_status); }; }; then | |
15513 | ac_cv_lib_m_frexpl=yes | |
15514 | else | |
15515 | echo "$as_me: failed program was:" >&5 | |
15516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15517 | ||
15518 | ac_cv_lib_m_frexpl=no | |
15519 | fi | |
15520 | rm -f conftest.err conftest.$ac_objext \ | |
15521 | conftest$ac_exeext conftest.$ac_ext | |
15522 | LIBS=$ac_check_lib_save_LIBS | |
15523 | fi | |
15524 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpl" >&5 | |
15525 | echo "${ECHO_T}$ac_cv_lib_m_frexpl" >&6 | |
15526 | if test $ac_cv_lib_m_frexpl = yes; then | |
15527 | ||
15528 | cat >>confdefs.h <<\_ACEOF | |
15529 | #define HAVE_FREXPL 1 | |
15530 | _ACEOF | |
15531 | ||
15532 | fi | |
15533 | ||
15534 | echo "$as_me:$LINENO: checking for hypotf in -lm" >&5 | |
15535 | echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6 | |
15536 | if test "${ac_cv_lib_m_hypotf+set}" = set; then | |
15537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15538 | else | |
15539 | ac_check_lib_save_LIBS=$LIBS | |
15540 | LIBS="-lm $LIBS" | |
15541 | if test x$gcc_no_link = xyes; then | |
15542 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15543 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15544 | { (exit 1); exit 1; }; } | |
15545 | fi | |
15546 | cat >conftest.$ac_ext <<_ACEOF | |
15547 | /* confdefs.h. */ | |
15548 | _ACEOF | |
15549 | cat confdefs.h >>conftest.$ac_ext | |
15550 | cat >>conftest.$ac_ext <<_ACEOF | |
15551 | /* end confdefs.h. */ | |
15552 | ||
15553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15554 | #ifdef __cplusplus | |
15555 | extern "C" | |
15556 | #endif | |
15557 | /* We use char because int might match the return type of a gcc2 | |
15558 | builtin and then its argument prototype would still apply. */ | |
15559 | char hypotf (); | |
15560 | int | |
15561 | main () | |
15562 | { | |
15563 | hypotf (); | |
15564 | ; | |
15565 | return 0; | |
15566 | } | |
15567 | _ACEOF | |
15568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15570 | (eval $ac_link) 2>conftest.er1 | |
15571 | ac_status=$? | |
15572 | grep -v '^ *+' conftest.er1 >conftest.err | |
15573 | rm -f conftest.er1 | |
15574 | cat conftest.err >&5 | |
15575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15576 | (exit $ac_status); } && | |
57255173 PB |
15577 | { ac_try='test -z "$ac_c_werror_flag" |
15578 | || test ! -s conftest.err' | |
1409cd0b FXC |
15579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15580 | (eval $ac_try) 2>&5 | |
15581 | ac_status=$? | |
15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15583 | (exit $ac_status); }; } && | |
15584 | { ac_try='test -s conftest$ac_exeext' | |
15585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15586 | (eval $ac_try) 2>&5 | |
15587 | ac_status=$? | |
15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15589 | (exit $ac_status); }; }; then | |
15590 | ac_cv_lib_m_hypotf=yes | |
15591 | else | |
15592 | echo "$as_me: failed program was:" >&5 | |
15593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15594 | ||
15595 | ac_cv_lib_m_hypotf=no | |
15596 | fi | |
15597 | rm -f conftest.err conftest.$ac_objext \ | |
15598 | conftest$ac_exeext conftest.$ac_ext | |
15599 | LIBS=$ac_check_lib_save_LIBS | |
15600 | fi | |
15601 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5 | |
15602 | echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6 | |
15603 | if test $ac_cv_lib_m_hypotf = yes; then | |
15604 | ||
15605 | cat >>confdefs.h <<\_ACEOF | |
15606 | #define HAVE_HYPOTF 1 | |
15607 | _ACEOF | |
15608 | ||
15609 | fi | |
15610 | ||
15611 | echo "$as_me:$LINENO: checking for hypot in -lm" >&5 | |
15612 | echo $ECHO_N "checking for hypot in -lm... $ECHO_C" >&6 | |
15613 | if test "${ac_cv_lib_m_hypot+set}" = set; then | |
15614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15615 | else | |
15616 | ac_check_lib_save_LIBS=$LIBS | |
15617 | LIBS="-lm $LIBS" | |
15618 | if test x$gcc_no_link = xyes; then | |
15619 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15620 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15621 | { (exit 1); exit 1; }; } | |
15622 | fi | |
15623 | cat >conftest.$ac_ext <<_ACEOF | |
15624 | /* confdefs.h. */ | |
15625 | _ACEOF | |
15626 | cat confdefs.h >>conftest.$ac_ext | |
15627 | cat >>conftest.$ac_ext <<_ACEOF | |
15628 | /* end confdefs.h. */ | |
15629 | ||
15630 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15631 | #ifdef __cplusplus | |
15632 | extern "C" | |
15633 | #endif | |
15634 | /* We use char because int might match the return type of a gcc2 | |
15635 | builtin and then its argument prototype would still apply. */ | |
15636 | char hypot (); | |
15637 | int | |
15638 | main () | |
15639 | { | |
15640 | hypot (); | |
15641 | ; | |
15642 | return 0; | |
15643 | } | |
15644 | _ACEOF | |
15645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15647 | (eval $ac_link) 2>conftest.er1 | |
15648 | ac_status=$? | |
15649 | grep -v '^ *+' conftest.er1 >conftest.err | |
15650 | rm -f conftest.er1 | |
15651 | cat conftest.err >&5 | |
15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15653 | (exit $ac_status); } && | |
57255173 PB |
15654 | { ac_try='test -z "$ac_c_werror_flag" |
15655 | || test ! -s conftest.err' | |
1409cd0b FXC |
15656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15657 | (eval $ac_try) 2>&5 | |
15658 | ac_status=$? | |
15659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15660 | (exit $ac_status); }; } && | |
15661 | { ac_try='test -s conftest$ac_exeext' | |
15662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15663 | (eval $ac_try) 2>&5 | |
15664 | ac_status=$? | |
15665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15666 | (exit $ac_status); }; }; then | |
15667 | ac_cv_lib_m_hypot=yes | |
15668 | else | |
15669 | echo "$as_me: failed program was:" >&5 | |
15670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15671 | ||
15672 | ac_cv_lib_m_hypot=no | |
15673 | fi | |
15674 | rm -f conftest.err conftest.$ac_objext \ | |
15675 | conftest$ac_exeext conftest.$ac_ext | |
15676 | LIBS=$ac_check_lib_save_LIBS | |
15677 | fi | |
15678 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypot" >&5 | |
15679 | echo "${ECHO_T}$ac_cv_lib_m_hypot" >&6 | |
15680 | if test $ac_cv_lib_m_hypot = yes; then | |
15681 | ||
15682 | cat >>confdefs.h <<\_ACEOF | |
15683 | #define HAVE_HYPOT 1 | |
15684 | _ACEOF | |
15685 | ||
15686 | fi | |
15687 | ||
15688 | echo "$as_me:$LINENO: checking for hypotl in -lm" >&5 | |
15689 | echo $ECHO_N "checking for hypotl in -lm... $ECHO_C" >&6 | |
15690 | if test "${ac_cv_lib_m_hypotl+set}" = set; then | |
15691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15692 | else | |
15693 | ac_check_lib_save_LIBS=$LIBS | |
15694 | LIBS="-lm $LIBS" | |
15695 | if test x$gcc_no_link = xyes; then | |
15696 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15697 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15698 | { (exit 1); exit 1; }; } | |
15699 | fi | |
15700 | cat >conftest.$ac_ext <<_ACEOF | |
15701 | /* confdefs.h. */ | |
15702 | _ACEOF | |
15703 | cat confdefs.h >>conftest.$ac_ext | |
15704 | cat >>conftest.$ac_ext <<_ACEOF | |
15705 | /* end confdefs.h. */ | |
15706 | ||
15707 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15708 | #ifdef __cplusplus | |
15709 | extern "C" | |
15710 | #endif | |
15711 | /* We use char because int might match the return type of a gcc2 | |
15712 | builtin and then its argument prototype would still apply. */ | |
15713 | char hypotl (); | |
15714 | int | |
15715 | main () | |
15716 | { | |
15717 | hypotl (); | |
15718 | ; | |
15719 | return 0; | |
15720 | } | |
15721 | _ACEOF | |
15722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15724 | (eval $ac_link) 2>conftest.er1 | |
15725 | ac_status=$? | |
15726 | grep -v '^ *+' conftest.er1 >conftest.err | |
15727 | rm -f conftest.er1 | |
15728 | cat conftest.err >&5 | |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15730 | (exit $ac_status); } && | |
57255173 PB |
15731 | { ac_try='test -z "$ac_c_werror_flag" |
15732 | || test ! -s conftest.err' | |
1409cd0b FXC |
15733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15734 | (eval $ac_try) 2>&5 | |
15735 | ac_status=$? | |
15736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15737 | (exit $ac_status); }; } && | |
15738 | { ac_try='test -s conftest$ac_exeext' | |
15739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15740 | (eval $ac_try) 2>&5 | |
15741 | ac_status=$? | |
15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15743 | (exit $ac_status); }; }; then | |
15744 | ac_cv_lib_m_hypotl=yes | |
15745 | else | |
15746 | echo "$as_me: failed program was:" >&5 | |
15747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15748 | ||
15749 | ac_cv_lib_m_hypotl=no | |
15750 | fi | |
15751 | rm -f conftest.err conftest.$ac_objext \ | |
15752 | conftest$ac_exeext conftest.$ac_ext | |
15753 | LIBS=$ac_check_lib_save_LIBS | |
15754 | fi | |
15755 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotl" >&5 | |
15756 | echo "${ECHO_T}$ac_cv_lib_m_hypotl" >&6 | |
15757 | if test $ac_cv_lib_m_hypotl = yes; then | |
15758 | ||
15759 | cat >>confdefs.h <<\_ACEOF | |
15760 | #define HAVE_HYPOTL 1 | |
15761 | _ACEOF | |
15762 | ||
15763 | fi | |
15764 | ||
cc6d3bde SK |
15765 | echo "$as_me:$LINENO: checking for ldexpf in -lm" >&5 |
15766 | echo $ECHO_N "checking for ldexpf in -lm... $ECHO_C" >&6 | |
15767 | if test "${ac_cv_lib_m_ldexpf+set}" = set; then | |
15768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15769 | else | |
15770 | ac_check_lib_save_LIBS=$LIBS | |
15771 | LIBS="-lm $LIBS" | |
15772 | if test x$gcc_no_link = xyes; then | |
15773 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15774 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15775 | { (exit 1); exit 1; }; } | |
15776 | fi | |
15777 | cat >conftest.$ac_ext <<_ACEOF | |
15778 | /* confdefs.h. */ | |
15779 | _ACEOF | |
15780 | cat confdefs.h >>conftest.$ac_ext | |
15781 | cat >>conftest.$ac_ext <<_ACEOF | |
15782 | /* end confdefs.h. */ | |
15783 | ||
15784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15785 | #ifdef __cplusplus | |
15786 | extern "C" | |
15787 | #endif | |
15788 | /* We use char because int might match the return type of a gcc2 | |
15789 | builtin and then its argument prototype would still apply. */ | |
15790 | char ldexpf (); | |
15791 | int | |
15792 | main () | |
15793 | { | |
15794 | ldexpf (); | |
15795 | ; | |
15796 | return 0; | |
15797 | } | |
15798 | _ACEOF | |
15799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15801 | (eval $ac_link) 2>conftest.er1 | |
15802 | ac_status=$? | |
15803 | grep -v '^ *+' conftest.er1 >conftest.err | |
15804 | rm -f conftest.er1 | |
15805 | cat conftest.err >&5 | |
15806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15807 | (exit $ac_status); } && | |
15808 | { ac_try='test -z "$ac_c_werror_flag" | |
15809 | || test ! -s conftest.err' | |
15810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15811 | (eval $ac_try) 2>&5 | |
15812 | ac_status=$? | |
15813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15814 | (exit $ac_status); }; } && | |
15815 | { ac_try='test -s conftest$ac_exeext' | |
15816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15817 | (eval $ac_try) 2>&5 | |
15818 | ac_status=$? | |
15819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15820 | (exit $ac_status); }; }; then | |
15821 | ac_cv_lib_m_ldexpf=yes | |
15822 | else | |
15823 | echo "$as_me: failed program was:" >&5 | |
15824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15825 | ||
15826 | ac_cv_lib_m_ldexpf=no | |
15827 | fi | |
15828 | rm -f conftest.err conftest.$ac_objext \ | |
15829 | conftest$ac_exeext conftest.$ac_ext | |
15830 | LIBS=$ac_check_lib_save_LIBS | |
15831 | fi | |
15832 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpf" >&5 | |
15833 | echo "${ECHO_T}$ac_cv_lib_m_ldexpf" >&6 | |
15834 | if test $ac_cv_lib_m_ldexpf = yes; then | |
15835 | ||
15836 | cat >>confdefs.h <<\_ACEOF | |
15837 | #define HAVE_LDEXPF 1 | |
15838 | _ACEOF | |
15839 | ||
15840 | fi | |
15841 | ||
15842 | echo "$as_me:$LINENO: checking for ldexp in -lm" >&5 | |
15843 | echo $ECHO_N "checking for ldexp in -lm... $ECHO_C" >&6 | |
15844 | if test "${ac_cv_lib_m_ldexp+set}" = set; then | |
15845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15846 | else | |
15847 | ac_check_lib_save_LIBS=$LIBS | |
15848 | LIBS="-lm $LIBS" | |
15849 | if test x$gcc_no_link = xyes; then | |
15850 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15851 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15852 | { (exit 1); exit 1; }; } | |
15853 | fi | |
15854 | cat >conftest.$ac_ext <<_ACEOF | |
15855 | /* confdefs.h. */ | |
15856 | _ACEOF | |
15857 | cat confdefs.h >>conftest.$ac_ext | |
15858 | cat >>conftest.$ac_ext <<_ACEOF | |
15859 | /* end confdefs.h. */ | |
15860 | ||
15861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15862 | #ifdef __cplusplus | |
15863 | extern "C" | |
15864 | #endif | |
15865 | /* We use char because int might match the return type of a gcc2 | |
15866 | builtin and then its argument prototype would still apply. */ | |
15867 | char ldexp (); | |
15868 | int | |
15869 | main () | |
15870 | { | |
15871 | ldexp (); | |
15872 | ; | |
15873 | return 0; | |
15874 | } | |
15875 | _ACEOF | |
15876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15878 | (eval $ac_link) 2>conftest.er1 | |
15879 | ac_status=$? | |
15880 | grep -v '^ *+' conftest.er1 >conftest.err | |
15881 | rm -f conftest.er1 | |
15882 | cat conftest.err >&5 | |
15883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15884 | (exit $ac_status); } && | |
15885 | { ac_try='test -z "$ac_c_werror_flag" | |
15886 | || test ! -s conftest.err' | |
15887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15888 | (eval $ac_try) 2>&5 | |
15889 | ac_status=$? | |
15890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15891 | (exit $ac_status); }; } && | |
15892 | { ac_try='test -s conftest$ac_exeext' | |
15893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15894 | (eval $ac_try) 2>&5 | |
15895 | ac_status=$? | |
15896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15897 | (exit $ac_status); }; }; then | |
15898 | ac_cv_lib_m_ldexp=yes | |
15899 | else | |
15900 | echo "$as_me: failed program was:" >&5 | |
15901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15902 | ||
15903 | ac_cv_lib_m_ldexp=no | |
15904 | fi | |
15905 | rm -f conftest.err conftest.$ac_objext \ | |
15906 | conftest$ac_exeext conftest.$ac_ext | |
15907 | LIBS=$ac_check_lib_save_LIBS | |
15908 | fi | |
15909 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexp" >&5 | |
15910 | echo "${ECHO_T}$ac_cv_lib_m_ldexp" >&6 | |
15911 | if test $ac_cv_lib_m_ldexp = yes; then | |
15912 | ||
15913 | cat >>confdefs.h <<\_ACEOF | |
15914 | #define HAVE_LDEXP 1 | |
15915 | _ACEOF | |
15916 | ||
15917 | fi | |
15918 | ||
15919 | echo "$as_me:$LINENO: checking for ldexpl in -lm" >&5 | |
15920 | echo $ECHO_N "checking for ldexpl in -lm... $ECHO_C" >&6 | |
15921 | if test "${ac_cv_lib_m_ldexpl+set}" = set; then | |
15922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15923 | else | |
15924 | ac_check_lib_save_LIBS=$LIBS | |
15925 | LIBS="-lm $LIBS" | |
15926 | if test x$gcc_no_link = xyes; then | |
15927 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15928 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15929 | { (exit 1); exit 1; }; } | |
15930 | fi | |
15931 | cat >conftest.$ac_ext <<_ACEOF | |
15932 | /* confdefs.h. */ | |
15933 | _ACEOF | |
15934 | cat confdefs.h >>conftest.$ac_ext | |
15935 | cat >>conftest.$ac_ext <<_ACEOF | |
15936 | /* end confdefs.h. */ | |
15937 | ||
15938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15939 | #ifdef __cplusplus | |
15940 | extern "C" | |
15941 | #endif | |
15942 | /* We use char because int might match the return type of a gcc2 | |
15943 | builtin and then its argument prototype would still apply. */ | |
15944 | char ldexpl (); | |
15945 | int | |
15946 | main () | |
15947 | { | |
15948 | ldexpl (); | |
15949 | ; | |
15950 | return 0; | |
15951 | } | |
15952 | _ACEOF | |
15953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15955 | (eval $ac_link) 2>conftest.er1 | |
15956 | ac_status=$? | |
15957 | grep -v '^ *+' conftest.er1 >conftest.err | |
15958 | rm -f conftest.er1 | |
15959 | cat conftest.err >&5 | |
15960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15961 | (exit $ac_status); } && | |
15962 | { ac_try='test -z "$ac_c_werror_flag" | |
15963 | || test ! -s conftest.err' | |
15964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15965 | (eval $ac_try) 2>&5 | |
15966 | ac_status=$? | |
15967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15968 | (exit $ac_status); }; } && | |
15969 | { ac_try='test -s conftest$ac_exeext' | |
15970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15971 | (eval $ac_try) 2>&5 | |
15972 | ac_status=$? | |
15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15974 | (exit $ac_status); }; }; then | |
15975 | ac_cv_lib_m_ldexpl=yes | |
15976 | else | |
15977 | echo "$as_me: failed program was:" >&5 | |
15978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15979 | ||
15980 | ac_cv_lib_m_ldexpl=no | |
15981 | fi | |
15982 | rm -f conftest.err conftest.$ac_objext \ | |
15983 | conftest$ac_exeext conftest.$ac_ext | |
15984 | LIBS=$ac_check_lib_save_LIBS | |
15985 | fi | |
15986 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpl" >&5 | |
15987 | echo "${ECHO_T}$ac_cv_lib_m_ldexpl" >&6 | |
15988 | if test $ac_cv_lib_m_ldexpl = yes; then | |
15989 | ||
15990 | cat >>confdefs.h <<\_ACEOF | |
15991 | #define HAVE_LDEXPL 1 | |
15992 | _ACEOF | |
15993 | ||
15994 | fi | |
15995 | ||
1409cd0b FXC |
15996 | echo "$as_me:$LINENO: checking for logf in -lm" >&5 |
15997 | echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6 | |
15998 | if test "${ac_cv_lib_m_logf+set}" = set; then | |
15999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16000 | else | |
16001 | ac_check_lib_save_LIBS=$LIBS | |
16002 | LIBS="-lm $LIBS" | |
16003 | if test x$gcc_no_link = xyes; then | |
16004 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16005 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16006 | { (exit 1); exit 1; }; } | |
16007 | fi | |
16008 | cat >conftest.$ac_ext <<_ACEOF | |
16009 | /* confdefs.h. */ | |
16010 | _ACEOF | |
16011 | cat confdefs.h >>conftest.$ac_ext | |
16012 | cat >>conftest.$ac_ext <<_ACEOF | |
16013 | /* end confdefs.h. */ | |
16014 | ||
16015 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16016 | #ifdef __cplusplus | |
16017 | extern "C" | |
16018 | #endif | |
16019 | /* We use char because int might match the return type of a gcc2 | |
16020 | builtin and then its argument prototype would still apply. */ | |
16021 | char logf (); | |
16022 | int | |
16023 | main () | |
16024 | { | |
16025 | logf (); | |
16026 | ; | |
16027 | return 0; | |
16028 | } | |
16029 | _ACEOF | |
16030 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16032 | (eval $ac_link) 2>conftest.er1 | |
16033 | ac_status=$? | |
16034 | grep -v '^ *+' conftest.er1 >conftest.err | |
16035 | rm -f conftest.er1 | |
16036 | cat conftest.err >&5 | |
16037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16038 | (exit $ac_status); } && | |
57255173 PB |
16039 | { ac_try='test -z "$ac_c_werror_flag" |
16040 | || test ! -s conftest.err' | |
1409cd0b FXC |
16041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16042 | (eval $ac_try) 2>&5 | |
16043 | ac_status=$? | |
16044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16045 | (exit $ac_status); }; } && | |
16046 | { ac_try='test -s conftest$ac_exeext' | |
16047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16048 | (eval $ac_try) 2>&5 | |
16049 | ac_status=$? | |
16050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16051 | (exit $ac_status); }; }; then | |
16052 | ac_cv_lib_m_logf=yes | |
16053 | else | |
16054 | echo "$as_me: failed program was:" >&5 | |
16055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16056 | ||
16057 | ac_cv_lib_m_logf=no | |
16058 | fi | |
16059 | rm -f conftest.err conftest.$ac_objext \ | |
16060 | conftest$ac_exeext conftest.$ac_ext | |
16061 | LIBS=$ac_check_lib_save_LIBS | |
16062 | fi | |
16063 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5 | |
16064 | echo "${ECHO_T}$ac_cv_lib_m_logf" >&6 | |
16065 | if test $ac_cv_lib_m_logf = yes; then | |
16066 | ||
16067 | cat >>confdefs.h <<\_ACEOF | |
16068 | #define HAVE_LOGF 1 | |
16069 | _ACEOF | |
16070 | ||
16071 | fi | |
16072 | ||
16073 | echo "$as_me:$LINENO: checking for log in -lm" >&5 | |
16074 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 | |
16075 | if test "${ac_cv_lib_m_log+set}" = set; then | |
16076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16077 | else | |
16078 | ac_check_lib_save_LIBS=$LIBS | |
16079 | LIBS="-lm $LIBS" | |
16080 | if test x$gcc_no_link = xyes; then | |
16081 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16082 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16083 | { (exit 1); exit 1; }; } | |
16084 | fi | |
16085 | cat >conftest.$ac_ext <<_ACEOF | |
16086 | /* confdefs.h. */ | |
16087 | _ACEOF | |
16088 | cat confdefs.h >>conftest.$ac_ext | |
16089 | cat >>conftest.$ac_ext <<_ACEOF | |
16090 | /* end confdefs.h. */ | |
16091 | ||
16092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16093 | #ifdef __cplusplus | |
16094 | extern "C" | |
16095 | #endif | |
16096 | /* We use char because int might match the return type of a gcc2 | |
16097 | builtin and then its argument prototype would still apply. */ | |
16098 | char log (); | |
16099 | int | |
16100 | main () | |
16101 | { | |
16102 | log (); | |
16103 | ; | |
16104 | return 0; | |
16105 | } | |
16106 | _ACEOF | |
16107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16109 | (eval $ac_link) 2>conftest.er1 | |
16110 | ac_status=$? | |
16111 | grep -v '^ *+' conftest.er1 >conftest.err | |
16112 | rm -f conftest.er1 | |
16113 | cat conftest.err >&5 | |
16114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16115 | (exit $ac_status); } && | |
57255173 PB |
16116 | { ac_try='test -z "$ac_c_werror_flag" |
16117 | || test ! -s conftest.err' | |
1409cd0b FXC |
16118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16119 | (eval $ac_try) 2>&5 | |
16120 | ac_status=$? | |
16121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16122 | (exit $ac_status); }; } && | |
16123 | { ac_try='test -s conftest$ac_exeext' | |
16124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16125 | (eval $ac_try) 2>&5 | |
16126 | ac_status=$? | |
16127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16128 | (exit $ac_status); }; }; then | |
16129 | ac_cv_lib_m_log=yes | |
16130 | else | |
16131 | echo "$as_me: failed program was:" >&5 | |
16132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16133 | ||
16134 | ac_cv_lib_m_log=no | |
16135 | fi | |
16136 | rm -f conftest.err conftest.$ac_objext \ | |
16137 | conftest$ac_exeext conftest.$ac_ext | |
16138 | LIBS=$ac_check_lib_save_LIBS | |
16139 | fi | |
16140 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 | |
16141 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6 | |
16142 | if test $ac_cv_lib_m_log = yes; then | |
16143 | ||
16144 | cat >>confdefs.h <<\_ACEOF | |
16145 | #define HAVE_LOG 1 | |
16146 | _ACEOF | |
16147 | ||
16148 | fi | |
16149 | ||
16150 | echo "$as_me:$LINENO: checking for logl in -lm" >&5 | |
16151 | echo $ECHO_N "checking for logl in -lm... $ECHO_C" >&6 | |
16152 | if test "${ac_cv_lib_m_logl+set}" = set; then | |
16153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16154 | else | |
16155 | ac_check_lib_save_LIBS=$LIBS | |
16156 | LIBS="-lm $LIBS" | |
16157 | if test x$gcc_no_link = xyes; then | |
16158 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16159 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16160 | { (exit 1); exit 1; }; } | |
16161 | fi | |
16162 | cat >conftest.$ac_ext <<_ACEOF | |
16163 | /* confdefs.h. */ | |
16164 | _ACEOF | |
16165 | cat confdefs.h >>conftest.$ac_ext | |
16166 | cat >>conftest.$ac_ext <<_ACEOF | |
16167 | /* end confdefs.h. */ | |
16168 | ||
16169 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16170 | #ifdef __cplusplus | |
16171 | extern "C" | |
16172 | #endif | |
16173 | /* We use char because int might match the return type of a gcc2 | |
16174 | builtin and then its argument prototype would still apply. */ | |
16175 | char logl (); | |
16176 | int | |
16177 | main () | |
16178 | { | |
16179 | logl (); | |
16180 | ; | |
16181 | return 0; | |
16182 | } | |
16183 | _ACEOF | |
16184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16186 | (eval $ac_link) 2>conftest.er1 | |
16187 | ac_status=$? | |
16188 | grep -v '^ *+' conftest.er1 >conftest.err | |
16189 | rm -f conftest.er1 | |
16190 | cat conftest.err >&5 | |
16191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16192 | (exit $ac_status); } && | |
57255173 PB |
16193 | { ac_try='test -z "$ac_c_werror_flag" |
16194 | || test ! -s conftest.err' | |
1409cd0b FXC |
16195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16196 | (eval $ac_try) 2>&5 | |
16197 | ac_status=$? | |
16198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16199 | (exit $ac_status); }; } && | |
16200 | { ac_try='test -s conftest$ac_exeext' | |
16201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16202 | (eval $ac_try) 2>&5 | |
16203 | ac_status=$? | |
16204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16205 | (exit $ac_status); }; }; then | |
16206 | ac_cv_lib_m_logl=yes | |
16207 | else | |
16208 | echo "$as_me: failed program was:" >&5 | |
16209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16210 | ||
16211 | ac_cv_lib_m_logl=no | |
16212 | fi | |
16213 | rm -f conftest.err conftest.$ac_objext \ | |
16214 | conftest$ac_exeext conftest.$ac_ext | |
16215 | LIBS=$ac_check_lib_save_LIBS | |
16216 | fi | |
16217 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logl" >&5 | |
16218 | echo "${ECHO_T}$ac_cv_lib_m_logl" >&6 | |
16219 | if test $ac_cv_lib_m_logl = yes; then | |
16220 | ||
16221 | cat >>confdefs.h <<\_ACEOF | |
16222 | #define HAVE_LOGL 1 | |
16223 | _ACEOF | |
16224 | ||
16225 | fi | |
16226 | ||
16227 | echo "$as_me:$LINENO: checking for clogf in -lm" >&5 | |
16228 | echo $ECHO_N "checking for clogf in -lm... $ECHO_C" >&6 | |
16229 | if test "${ac_cv_lib_m_clogf+set}" = set; then | |
16230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16231 | else | |
16232 | ac_check_lib_save_LIBS=$LIBS | |
16233 | LIBS="-lm $LIBS" | |
16234 | if test x$gcc_no_link = xyes; then | |
16235 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16236 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16237 | { (exit 1); exit 1; }; } | |
16238 | fi | |
16239 | cat >conftest.$ac_ext <<_ACEOF | |
16240 | /* confdefs.h. */ | |
16241 | _ACEOF | |
16242 | cat confdefs.h >>conftest.$ac_ext | |
16243 | cat >>conftest.$ac_ext <<_ACEOF | |
16244 | /* end confdefs.h. */ | |
16245 | ||
16246 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16247 | #ifdef __cplusplus | |
16248 | extern "C" | |
16249 | #endif | |
16250 | /* We use char because int might match the return type of a gcc2 | |
16251 | builtin and then its argument prototype would still apply. */ | |
16252 | char clogf (); | |
16253 | int | |
16254 | main () | |
16255 | { | |
16256 | clogf (); | |
16257 | ; | |
16258 | return 0; | |
16259 | } | |
16260 | _ACEOF | |
16261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16263 | (eval $ac_link) 2>conftest.er1 | |
16264 | ac_status=$? | |
16265 | grep -v '^ *+' conftest.er1 >conftest.err | |
16266 | rm -f conftest.er1 | |
16267 | cat conftest.err >&5 | |
16268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16269 | (exit $ac_status); } && | |
57255173 PB |
16270 | { ac_try='test -z "$ac_c_werror_flag" |
16271 | || test ! -s conftest.err' | |
1409cd0b FXC |
16272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16273 | (eval $ac_try) 2>&5 | |
16274 | ac_status=$? | |
16275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16276 | (exit $ac_status); }; } && | |
16277 | { ac_try='test -s conftest$ac_exeext' | |
16278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16279 | (eval $ac_try) 2>&5 | |
16280 | ac_status=$? | |
16281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16282 | (exit $ac_status); }; }; then | |
16283 | ac_cv_lib_m_clogf=yes | |
16284 | else | |
16285 | echo "$as_me: failed program was:" >&5 | |
16286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16287 | ||
16288 | ac_cv_lib_m_clogf=no | |
16289 | fi | |
16290 | rm -f conftest.err conftest.$ac_objext \ | |
16291 | conftest$ac_exeext conftest.$ac_ext | |
16292 | LIBS=$ac_check_lib_save_LIBS | |
16293 | fi | |
16294 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogf" >&5 | |
16295 | echo "${ECHO_T}$ac_cv_lib_m_clogf" >&6 | |
16296 | if test $ac_cv_lib_m_clogf = yes; then | |
16297 | ||
16298 | cat >>confdefs.h <<\_ACEOF | |
16299 | #define HAVE_CLOGF 1 | |
16300 | _ACEOF | |
16301 | ||
16302 | fi | |
16303 | ||
16304 | echo "$as_me:$LINENO: checking for clog in -lm" >&5 | |
16305 | echo $ECHO_N "checking for clog in -lm... $ECHO_C" >&6 | |
16306 | if test "${ac_cv_lib_m_clog+set}" = set; then | |
16307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16308 | else | |
16309 | ac_check_lib_save_LIBS=$LIBS | |
16310 | LIBS="-lm $LIBS" | |
16311 | if test x$gcc_no_link = xyes; then | |
16312 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16313 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16314 | { (exit 1); exit 1; }; } | |
16315 | fi | |
16316 | cat >conftest.$ac_ext <<_ACEOF | |
16317 | /* confdefs.h. */ | |
16318 | _ACEOF | |
16319 | cat confdefs.h >>conftest.$ac_ext | |
16320 | cat >>conftest.$ac_ext <<_ACEOF | |
16321 | /* end confdefs.h. */ | |
16322 | ||
16323 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16324 | #ifdef __cplusplus | |
16325 | extern "C" | |
16326 | #endif | |
16327 | /* We use char because int might match the return type of a gcc2 | |
16328 | builtin and then its argument prototype would still apply. */ | |
16329 | char clog (); | |
16330 | int | |
16331 | main () | |
16332 | { | |
16333 | clog (); | |
16334 | ; | |
16335 | return 0; | |
16336 | } | |
16337 | _ACEOF | |
16338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16340 | (eval $ac_link) 2>conftest.er1 | |
16341 | ac_status=$? | |
16342 | grep -v '^ *+' conftest.er1 >conftest.err | |
16343 | rm -f conftest.er1 | |
16344 | cat conftest.err >&5 | |
16345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16346 | (exit $ac_status); } && | |
57255173 PB |
16347 | { ac_try='test -z "$ac_c_werror_flag" |
16348 | || test ! -s conftest.err' | |
1409cd0b FXC |
16349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16350 | (eval $ac_try) 2>&5 | |
16351 | ac_status=$? | |
16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16353 | (exit $ac_status); }; } && | |
16354 | { ac_try='test -s conftest$ac_exeext' | |
16355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16356 | (eval $ac_try) 2>&5 | |
16357 | ac_status=$? | |
16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16359 | (exit $ac_status); }; }; then | |
16360 | ac_cv_lib_m_clog=yes | |
16361 | else | |
16362 | echo "$as_me: failed program was:" >&5 | |
16363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16364 | ||
16365 | ac_cv_lib_m_clog=no | |
16366 | fi | |
16367 | rm -f conftest.err conftest.$ac_objext \ | |
16368 | conftest$ac_exeext conftest.$ac_ext | |
16369 | LIBS=$ac_check_lib_save_LIBS | |
16370 | fi | |
16371 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog" >&5 | |
16372 | echo "${ECHO_T}$ac_cv_lib_m_clog" >&6 | |
16373 | if test $ac_cv_lib_m_clog = yes; then | |
16374 | ||
16375 | cat >>confdefs.h <<\_ACEOF | |
16376 | #define HAVE_CLOG 1 | |
16377 | _ACEOF | |
16378 | ||
16379 | fi | |
16380 | ||
16381 | echo "$as_me:$LINENO: checking for clogl in -lm" >&5 | |
16382 | echo $ECHO_N "checking for clogl in -lm... $ECHO_C" >&6 | |
16383 | if test "${ac_cv_lib_m_clogl+set}" = set; then | |
16384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16385 | else | |
16386 | ac_check_lib_save_LIBS=$LIBS | |
16387 | LIBS="-lm $LIBS" | |
16388 | if test x$gcc_no_link = xyes; then | |
16389 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16390 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16391 | { (exit 1); exit 1; }; } | |
16392 | fi | |
16393 | cat >conftest.$ac_ext <<_ACEOF | |
16394 | /* confdefs.h. */ | |
16395 | _ACEOF | |
16396 | cat confdefs.h >>conftest.$ac_ext | |
16397 | cat >>conftest.$ac_ext <<_ACEOF | |
16398 | /* end confdefs.h. */ | |
16399 | ||
16400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16401 | #ifdef __cplusplus | |
16402 | extern "C" | |
16403 | #endif | |
16404 | /* We use char because int might match the return type of a gcc2 | |
16405 | builtin and then its argument prototype would still apply. */ | |
16406 | char clogl (); | |
16407 | int | |
16408 | main () | |
16409 | { | |
16410 | clogl (); | |
16411 | ; | |
16412 | return 0; | |
16413 | } | |
16414 | _ACEOF | |
16415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16417 | (eval $ac_link) 2>conftest.er1 | |
16418 | ac_status=$? | |
16419 | grep -v '^ *+' conftest.er1 >conftest.err | |
16420 | rm -f conftest.er1 | |
16421 | cat conftest.err >&5 | |
16422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16423 | (exit $ac_status); } && | |
57255173 PB |
16424 | { ac_try='test -z "$ac_c_werror_flag" |
16425 | || test ! -s conftest.err' | |
1409cd0b FXC |
16426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16427 | (eval $ac_try) 2>&5 | |
16428 | ac_status=$? | |
16429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16430 | (exit $ac_status); }; } && | |
16431 | { ac_try='test -s conftest$ac_exeext' | |
16432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16433 | (eval $ac_try) 2>&5 | |
16434 | ac_status=$? | |
16435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16436 | (exit $ac_status); }; }; then | |
16437 | ac_cv_lib_m_clogl=yes | |
16438 | else | |
16439 | echo "$as_me: failed program was:" >&5 | |
16440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16441 | ||
16442 | ac_cv_lib_m_clogl=no | |
16443 | fi | |
16444 | rm -f conftest.err conftest.$ac_objext \ | |
16445 | conftest$ac_exeext conftest.$ac_ext | |
16446 | LIBS=$ac_check_lib_save_LIBS | |
16447 | fi | |
16448 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogl" >&5 | |
16449 | echo "${ECHO_T}$ac_cv_lib_m_clogl" >&6 | |
16450 | if test $ac_cv_lib_m_clogl = yes; then | |
16451 | ||
16452 | cat >>confdefs.h <<\_ACEOF | |
16453 | #define HAVE_CLOGL 1 | |
16454 | _ACEOF | |
16455 | ||
16456 | fi | |
16457 | ||
16458 | echo "$as_me:$LINENO: checking for log10f in -lm" >&5 | |
16459 | echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6 | |
16460 | if test "${ac_cv_lib_m_log10f+set}" = set; then | |
16461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16462 | else | |
16463 | ac_check_lib_save_LIBS=$LIBS | |
16464 | LIBS="-lm $LIBS" | |
16465 | if test x$gcc_no_link = xyes; then | |
16466 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16467 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16468 | { (exit 1); exit 1; }; } | |
16469 | fi | |
16470 | cat >conftest.$ac_ext <<_ACEOF | |
16471 | /* confdefs.h. */ | |
16472 | _ACEOF | |
16473 | cat confdefs.h >>conftest.$ac_ext | |
16474 | cat >>conftest.$ac_ext <<_ACEOF | |
16475 | /* end confdefs.h. */ | |
16476 | ||
16477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16478 | #ifdef __cplusplus | |
16479 | extern "C" | |
16480 | #endif | |
16481 | /* We use char because int might match the return type of a gcc2 | |
16482 | builtin and then its argument prototype would still apply. */ | |
16483 | char log10f (); | |
16484 | int | |
16485 | main () | |
16486 | { | |
16487 | log10f (); | |
16488 | ; | |
16489 | return 0; | |
16490 | } | |
16491 | _ACEOF | |
16492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16494 | (eval $ac_link) 2>conftest.er1 | |
16495 | ac_status=$? | |
16496 | grep -v '^ *+' conftest.er1 >conftest.err | |
16497 | rm -f conftest.er1 | |
16498 | cat conftest.err >&5 | |
16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16500 | (exit $ac_status); } && | |
57255173 PB |
16501 | { ac_try='test -z "$ac_c_werror_flag" |
16502 | || test ! -s conftest.err' | |
1409cd0b FXC |
16503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16504 | (eval $ac_try) 2>&5 | |
16505 | ac_status=$? | |
16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16507 | (exit $ac_status); }; } && | |
16508 | { ac_try='test -s conftest$ac_exeext' | |
16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16510 | (eval $ac_try) 2>&5 | |
16511 | ac_status=$? | |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16513 | (exit $ac_status); }; }; then | |
16514 | ac_cv_lib_m_log10f=yes | |
16515 | else | |
16516 | echo "$as_me: failed program was:" >&5 | |
16517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16518 | ||
16519 | ac_cv_lib_m_log10f=no | |
16520 | fi | |
16521 | rm -f conftest.err conftest.$ac_objext \ | |
16522 | conftest$ac_exeext conftest.$ac_ext | |
16523 | LIBS=$ac_check_lib_save_LIBS | |
16524 | fi | |
16525 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5 | |
16526 | echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6 | |
16527 | if test $ac_cv_lib_m_log10f = yes; then | |
16528 | ||
16529 | cat >>confdefs.h <<\_ACEOF | |
16530 | #define HAVE_LOG10F 1 | |
16531 | _ACEOF | |
16532 | ||
16533 | fi | |
16534 | ||
16535 | echo "$as_me:$LINENO: checking for log10 in -lm" >&5 | |
16536 | echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6 | |
16537 | if test "${ac_cv_lib_m_log10+set}" = set; then | |
16538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16539 | else | |
16540 | ac_check_lib_save_LIBS=$LIBS | |
16541 | LIBS="-lm $LIBS" | |
16542 | if test x$gcc_no_link = xyes; then | |
16543 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16544 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16545 | { (exit 1); exit 1; }; } | |
16546 | fi | |
16547 | cat >conftest.$ac_ext <<_ACEOF | |
16548 | /* confdefs.h. */ | |
16549 | _ACEOF | |
16550 | cat confdefs.h >>conftest.$ac_ext | |
16551 | cat >>conftest.$ac_ext <<_ACEOF | |
16552 | /* end confdefs.h. */ | |
16553 | ||
16554 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16555 | #ifdef __cplusplus | |
16556 | extern "C" | |
16557 | #endif | |
16558 | /* We use char because int might match the return type of a gcc2 | |
16559 | builtin and then its argument prototype would still apply. */ | |
16560 | char log10 (); | |
16561 | int | |
16562 | main () | |
16563 | { | |
16564 | log10 (); | |
16565 | ; | |
16566 | return 0; | |
16567 | } | |
16568 | _ACEOF | |
16569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16571 | (eval $ac_link) 2>conftest.er1 | |
16572 | ac_status=$? | |
16573 | grep -v '^ *+' conftest.er1 >conftest.err | |
16574 | rm -f conftest.er1 | |
16575 | cat conftest.err >&5 | |
16576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16577 | (exit $ac_status); } && | |
57255173 PB |
16578 | { ac_try='test -z "$ac_c_werror_flag" |
16579 | || test ! -s conftest.err' | |
1409cd0b FXC |
16580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16581 | (eval $ac_try) 2>&5 | |
16582 | ac_status=$? | |
16583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16584 | (exit $ac_status); }; } && | |
16585 | { ac_try='test -s conftest$ac_exeext' | |
16586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16587 | (eval $ac_try) 2>&5 | |
16588 | ac_status=$? | |
16589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16590 | (exit $ac_status); }; }; then | |
16591 | ac_cv_lib_m_log10=yes | |
16592 | else | |
16593 | echo "$as_me: failed program was:" >&5 | |
16594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16595 | ||
16596 | ac_cv_lib_m_log10=no | |
16597 | fi | |
16598 | rm -f conftest.err conftest.$ac_objext \ | |
16599 | conftest$ac_exeext conftest.$ac_ext | |
16600 | LIBS=$ac_check_lib_save_LIBS | |
16601 | fi | |
16602 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5 | |
16603 | echo "${ECHO_T}$ac_cv_lib_m_log10" >&6 | |
16604 | if test $ac_cv_lib_m_log10 = yes; then | |
16605 | ||
16606 | cat >>confdefs.h <<\_ACEOF | |
16607 | #define HAVE_LOG10 1 | |
16608 | _ACEOF | |
16609 | ||
16610 | fi | |
16611 | ||
16612 | echo "$as_me:$LINENO: checking for log10l in -lm" >&5 | |
16613 | echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6 | |
16614 | if test "${ac_cv_lib_m_log10l+set}" = set; then | |
16615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16616 | else | |
16617 | ac_check_lib_save_LIBS=$LIBS | |
16618 | LIBS="-lm $LIBS" | |
16619 | if test x$gcc_no_link = xyes; then | |
16620 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16621 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16622 | { (exit 1); exit 1; }; } | |
16623 | fi | |
16624 | cat >conftest.$ac_ext <<_ACEOF | |
16625 | /* confdefs.h. */ | |
16626 | _ACEOF | |
16627 | cat confdefs.h >>conftest.$ac_ext | |
16628 | cat >>conftest.$ac_ext <<_ACEOF | |
16629 | /* end confdefs.h. */ | |
16630 | ||
16631 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16632 | #ifdef __cplusplus | |
16633 | extern "C" | |
16634 | #endif | |
16635 | /* We use char because int might match the return type of a gcc2 | |
16636 | builtin and then its argument prototype would still apply. */ | |
16637 | char log10l (); | |
16638 | int | |
16639 | main () | |
16640 | { | |
16641 | log10l (); | |
16642 | ; | |
16643 | return 0; | |
16644 | } | |
16645 | _ACEOF | |
16646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16648 | (eval $ac_link) 2>conftest.er1 | |
16649 | ac_status=$? | |
16650 | grep -v '^ *+' conftest.er1 >conftest.err | |
16651 | rm -f conftest.er1 | |
16652 | cat conftest.err >&5 | |
16653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16654 | (exit $ac_status); } && | |
57255173 PB |
16655 | { ac_try='test -z "$ac_c_werror_flag" |
16656 | || test ! -s conftest.err' | |
1409cd0b FXC |
16657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16658 | (eval $ac_try) 2>&5 | |
16659 | ac_status=$? | |
16660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16661 | (exit $ac_status); }; } && | |
16662 | { ac_try='test -s conftest$ac_exeext' | |
16663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16664 | (eval $ac_try) 2>&5 | |
16665 | ac_status=$? | |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16667 | (exit $ac_status); }; }; then | |
16668 | ac_cv_lib_m_log10l=yes | |
16669 | else | |
16670 | echo "$as_me: failed program was:" >&5 | |
16671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16672 | ||
16673 | ac_cv_lib_m_log10l=no | |
16674 | fi | |
16675 | rm -f conftest.err conftest.$ac_objext \ | |
16676 | conftest$ac_exeext conftest.$ac_ext | |
16677 | LIBS=$ac_check_lib_save_LIBS | |
16678 | fi | |
16679 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5 | |
16680 | echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6 | |
16681 | if test $ac_cv_lib_m_log10l = yes; then | |
16682 | ||
16683 | cat >>confdefs.h <<\_ACEOF | |
16684 | #define HAVE_LOG10L 1 | |
16685 | _ACEOF | |
16686 | ||
16687 | fi | |
16688 | ||
16689 | echo "$as_me:$LINENO: checking for clog10f in -lm" >&5 | |
16690 | echo $ECHO_N "checking for clog10f in -lm... $ECHO_C" >&6 | |
16691 | if test "${ac_cv_lib_m_clog10f+set}" = set; then | |
16692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16693 | else | |
16694 | ac_check_lib_save_LIBS=$LIBS | |
16695 | LIBS="-lm $LIBS" | |
16696 | if test x$gcc_no_link = xyes; then | |
16697 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16698 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16699 | { (exit 1); exit 1; }; } | |
16700 | fi | |
16701 | cat >conftest.$ac_ext <<_ACEOF | |
16702 | /* confdefs.h. */ | |
16703 | _ACEOF | |
16704 | cat confdefs.h >>conftest.$ac_ext | |
16705 | cat >>conftest.$ac_ext <<_ACEOF | |
16706 | /* end confdefs.h. */ | |
16707 | ||
16708 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16709 | #ifdef __cplusplus | |
16710 | extern "C" | |
16711 | #endif | |
16712 | /* We use char because int might match the return type of a gcc2 | |
16713 | builtin and then its argument prototype would still apply. */ | |
16714 | char clog10f (); | |
16715 | int | |
16716 | main () | |
16717 | { | |
16718 | clog10f (); | |
16719 | ; | |
16720 | return 0; | |
16721 | } | |
16722 | _ACEOF | |
16723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16725 | (eval $ac_link) 2>conftest.er1 | |
16726 | ac_status=$? | |
16727 | grep -v '^ *+' conftest.er1 >conftest.err | |
16728 | rm -f conftest.er1 | |
16729 | cat conftest.err >&5 | |
16730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16731 | (exit $ac_status); } && | |
57255173 PB |
16732 | { ac_try='test -z "$ac_c_werror_flag" |
16733 | || test ! -s conftest.err' | |
1409cd0b FXC |
16734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16735 | (eval $ac_try) 2>&5 | |
16736 | ac_status=$? | |
16737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16738 | (exit $ac_status); }; } && | |
16739 | { ac_try='test -s conftest$ac_exeext' | |
16740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16741 | (eval $ac_try) 2>&5 | |
16742 | ac_status=$? | |
16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16744 | (exit $ac_status); }; }; then | |
16745 | ac_cv_lib_m_clog10f=yes | |
16746 | else | |
16747 | echo "$as_me: failed program was:" >&5 | |
16748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16749 | ||
16750 | ac_cv_lib_m_clog10f=no | |
16751 | fi | |
16752 | rm -f conftest.err conftest.$ac_objext \ | |
16753 | conftest$ac_exeext conftest.$ac_ext | |
16754 | LIBS=$ac_check_lib_save_LIBS | |
16755 | fi | |
16756 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10f" >&5 | |
16757 | echo "${ECHO_T}$ac_cv_lib_m_clog10f" >&6 | |
16758 | if test $ac_cv_lib_m_clog10f = yes; then | |
16759 | ||
16760 | cat >>confdefs.h <<\_ACEOF | |
16761 | #define HAVE_CLOG10F 1 | |
16762 | _ACEOF | |
16763 | ||
16764 | fi | |
16765 | ||
16766 | echo "$as_me:$LINENO: checking for clog10 in -lm" >&5 | |
16767 | echo $ECHO_N "checking for clog10 in -lm... $ECHO_C" >&6 | |
16768 | if test "${ac_cv_lib_m_clog10+set}" = set; then | |
16769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16770 | else | |
16771 | ac_check_lib_save_LIBS=$LIBS | |
16772 | LIBS="-lm $LIBS" | |
16773 | if test x$gcc_no_link = xyes; then | |
16774 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16775 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16776 | { (exit 1); exit 1; }; } | |
16777 | fi | |
16778 | cat >conftest.$ac_ext <<_ACEOF | |
16779 | /* confdefs.h. */ | |
16780 | _ACEOF | |
16781 | cat confdefs.h >>conftest.$ac_ext | |
16782 | cat >>conftest.$ac_ext <<_ACEOF | |
16783 | /* end confdefs.h. */ | |
16784 | ||
16785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16786 | #ifdef __cplusplus | |
16787 | extern "C" | |
16788 | #endif | |
16789 | /* We use char because int might match the return type of a gcc2 | |
16790 | builtin and then its argument prototype would still apply. */ | |
16791 | char clog10 (); | |
16792 | int | |
16793 | main () | |
16794 | { | |
16795 | clog10 (); | |
16796 | ; | |
16797 | return 0; | |
16798 | } | |
16799 | _ACEOF | |
16800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16802 | (eval $ac_link) 2>conftest.er1 | |
16803 | ac_status=$? | |
16804 | grep -v '^ *+' conftest.er1 >conftest.err | |
16805 | rm -f conftest.er1 | |
16806 | cat conftest.err >&5 | |
16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16808 | (exit $ac_status); } && | |
57255173 PB |
16809 | { ac_try='test -z "$ac_c_werror_flag" |
16810 | || test ! -s conftest.err' | |
1409cd0b FXC |
16811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16812 | (eval $ac_try) 2>&5 | |
16813 | ac_status=$? | |
16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16815 | (exit $ac_status); }; } && | |
16816 | { ac_try='test -s conftest$ac_exeext' | |
16817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16818 | (eval $ac_try) 2>&5 | |
16819 | ac_status=$? | |
16820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16821 | (exit $ac_status); }; }; then | |
16822 | ac_cv_lib_m_clog10=yes | |
16823 | else | |
16824 | echo "$as_me: failed program was:" >&5 | |
16825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16826 | ||
16827 | ac_cv_lib_m_clog10=no | |
16828 | fi | |
16829 | rm -f conftest.err conftest.$ac_objext \ | |
16830 | conftest$ac_exeext conftest.$ac_ext | |
16831 | LIBS=$ac_check_lib_save_LIBS | |
16832 | fi | |
16833 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10" >&5 | |
16834 | echo "${ECHO_T}$ac_cv_lib_m_clog10" >&6 | |
16835 | if test $ac_cv_lib_m_clog10 = yes; then | |
16836 | ||
16837 | cat >>confdefs.h <<\_ACEOF | |
16838 | #define HAVE_CLOG10 1 | |
16839 | _ACEOF | |
16840 | ||
16841 | fi | |
16842 | ||
16843 | echo "$as_me:$LINENO: checking for clog10l in -lm" >&5 | |
16844 | echo $ECHO_N "checking for clog10l in -lm... $ECHO_C" >&6 | |
16845 | if test "${ac_cv_lib_m_clog10l+set}" = set; then | |
16846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16847 | else | |
16848 | ac_check_lib_save_LIBS=$LIBS | |
16849 | LIBS="-lm $LIBS" | |
16850 | if test x$gcc_no_link = xyes; then | |
16851 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16852 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16853 | { (exit 1); exit 1; }; } | |
16854 | fi | |
16855 | cat >conftest.$ac_ext <<_ACEOF | |
16856 | /* confdefs.h. */ | |
16857 | _ACEOF | |
16858 | cat confdefs.h >>conftest.$ac_ext | |
16859 | cat >>conftest.$ac_ext <<_ACEOF | |
16860 | /* end confdefs.h. */ | |
16861 | ||
16862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16863 | #ifdef __cplusplus | |
16864 | extern "C" | |
16865 | #endif | |
16866 | /* We use char because int might match the return type of a gcc2 | |
16867 | builtin and then its argument prototype would still apply. */ | |
16868 | char clog10l (); | |
16869 | int | |
16870 | main () | |
16871 | { | |
16872 | clog10l (); | |
16873 | ; | |
16874 | return 0; | |
16875 | } | |
16876 | _ACEOF | |
16877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16879 | (eval $ac_link) 2>conftest.er1 | |
16880 | ac_status=$? | |
16881 | grep -v '^ *+' conftest.er1 >conftest.err | |
16882 | rm -f conftest.er1 | |
16883 | cat conftest.err >&5 | |
16884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16885 | (exit $ac_status); } && | |
57255173 PB |
16886 | { ac_try='test -z "$ac_c_werror_flag" |
16887 | || test ! -s conftest.err' | |
1409cd0b FXC |
16888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16889 | (eval $ac_try) 2>&5 | |
16890 | ac_status=$? | |
16891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16892 | (exit $ac_status); }; } && | |
16893 | { ac_try='test -s conftest$ac_exeext' | |
16894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16895 | (eval $ac_try) 2>&5 | |
16896 | ac_status=$? | |
16897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16898 | (exit $ac_status); }; }; then | |
16899 | ac_cv_lib_m_clog10l=yes | |
16900 | else | |
16901 | echo "$as_me: failed program was:" >&5 | |
16902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16903 | ||
16904 | ac_cv_lib_m_clog10l=no | |
16905 | fi | |
16906 | rm -f conftest.err conftest.$ac_objext \ | |
16907 | conftest$ac_exeext conftest.$ac_ext | |
16908 | LIBS=$ac_check_lib_save_LIBS | |
16909 | fi | |
16910 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10l" >&5 | |
16911 | echo "${ECHO_T}$ac_cv_lib_m_clog10l" >&6 | |
16912 | if test $ac_cv_lib_m_clog10l = yes; then | |
16913 | ||
16914 | cat >>confdefs.h <<\_ACEOF | |
16915 | #define HAVE_CLOG10L 1 | |
16916 | _ACEOF | |
16917 | ||
16918 | fi | |
16919 | ||
16920 | echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5 | |
16921 | echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6 | |
16922 | if test "${ac_cv_lib_m_nextafterf+set}" = set; then | |
16923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16924 | else | |
16925 | ac_check_lib_save_LIBS=$LIBS | |
16926 | LIBS="-lm $LIBS" | |
16927 | if test x$gcc_no_link = xyes; then | |
16928 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16929 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16930 | { (exit 1); exit 1; }; } | |
16931 | fi | |
16932 | cat >conftest.$ac_ext <<_ACEOF | |
16933 | /* confdefs.h. */ | |
16934 | _ACEOF | |
16935 | cat confdefs.h >>conftest.$ac_ext | |
16936 | cat >>conftest.$ac_ext <<_ACEOF | |
16937 | /* end confdefs.h. */ | |
16938 | ||
16939 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16940 | #ifdef __cplusplus | |
16941 | extern "C" | |
16942 | #endif | |
16943 | /* We use char because int might match the return type of a gcc2 | |
16944 | builtin and then its argument prototype would still apply. */ | |
16945 | char nextafterf (); | |
16946 | int | |
16947 | main () | |
16948 | { | |
16949 | nextafterf (); | |
16950 | ; | |
16951 | return 0; | |
16952 | } | |
16953 | _ACEOF | |
16954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16956 | (eval $ac_link) 2>conftest.er1 | |
16957 | ac_status=$? | |
16958 | grep -v '^ *+' conftest.er1 >conftest.err | |
16959 | rm -f conftest.er1 | |
16960 | cat conftest.err >&5 | |
16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16962 | (exit $ac_status); } && | |
57255173 PB |
16963 | { ac_try='test -z "$ac_c_werror_flag" |
16964 | || test ! -s conftest.err' | |
1409cd0b FXC |
16965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16966 | (eval $ac_try) 2>&5 | |
16967 | ac_status=$? | |
16968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16969 | (exit $ac_status); }; } && | |
16970 | { ac_try='test -s conftest$ac_exeext' | |
16971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16972 | (eval $ac_try) 2>&5 | |
16973 | ac_status=$? | |
16974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16975 | (exit $ac_status); }; }; then | |
16976 | ac_cv_lib_m_nextafterf=yes | |
16977 | else | |
16978 | echo "$as_me: failed program was:" >&5 | |
16979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16980 | ||
16981 | ac_cv_lib_m_nextafterf=no | |
16982 | fi | |
16983 | rm -f conftest.err conftest.$ac_objext \ | |
16984 | conftest$ac_exeext conftest.$ac_ext | |
16985 | LIBS=$ac_check_lib_save_LIBS | |
16986 | fi | |
16987 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5 | |
16988 | echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6 | |
16989 | if test $ac_cv_lib_m_nextafterf = yes; then | |
16990 | ||
16991 | cat >>confdefs.h <<\_ACEOF | |
16992 | #define HAVE_NEXTAFTERF 1 | |
16993 | _ACEOF | |
16994 | ||
16995 | fi | |
16996 | ||
16997 | echo "$as_me:$LINENO: checking for nextafter in -lm" >&5 | |
16998 | echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6 | |
16999 | if test "${ac_cv_lib_m_nextafter+set}" = set; then | |
17000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17001 | else | |
17002 | ac_check_lib_save_LIBS=$LIBS | |
17003 | LIBS="-lm $LIBS" | |
17004 | if test x$gcc_no_link = xyes; then | |
17005 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17006 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17007 | { (exit 1); exit 1; }; } | |
17008 | fi | |
17009 | cat >conftest.$ac_ext <<_ACEOF | |
17010 | /* confdefs.h. */ | |
17011 | _ACEOF | |
17012 | cat confdefs.h >>conftest.$ac_ext | |
17013 | cat >>conftest.$ac_ext <<_ACEOF | |
17014 | /* end confdefs.h. */ | |
17015 | ||
17016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17017 | #ifdef __cplusplus | |
17018 | extern "C" | |
17019 | #endif | |
17020 | /* We use char because int might match the return type of a gcc2 | |
17021 | builtin and then its argument prototype would still apply. */ | |
17022 | char nextafter (); | |
17023 | int | |
17024 | main () | |
17025 | { | |
17026 | nextafter (); | |
17027 | ; | |
17028 | return 0; | |
17029 | } | |
17030 | _ACEOF | |
17031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17033 | (eval $ac_link) 2>conftest.er1 | |
17034 | ac_status=$? | |
17035 | grep -v '^ *+' conftest.er1 >conftest.err | |
17036 | rm -f conftest.er1 | |
17037 | cat conftest.err >&5 | |
17038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17039 | (exit $ac_status); } && | |
57255173 PB |
17040 | { ac_try='test -z "$ac_c_werror_flag" |
17041 | || test ! -s conftest.err' | |
1409cd0b FXC |
17042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17043 | (eval $ac_try) 2>&5 | |
17044 | ac_status=$? | |
17045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17046 | (exit $ac_status); }; } && | |
17047 | { ac_try='test -s conftest$ac_exeext' | |
17048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17049 | (eval $ac_try) 2>&5 | |
17050 | ac_status=$? | |
17051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17052 | (exit $ac_status); }; }; then | |
17053 | ac_cv_lib_m_nextafter=yes | |
17054 | else | |
17055 | echo "$as_me: failed program was:" >&5 | |
17056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17057 | ||
17058 | ac_cv_lib_m_nextafter=no | |
17059 | fi | |
17060 | rm -f conftest.err conftest.$ac_objext \ | |
17061 | conftest$ac_exeext conftest.$ac_ext | |
17062 | LIBS=$ac_check_lib_save_LIBS | |
17063 | fi | |
17064 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5 | |
17065 | echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6 | |
17066 | if test $ac_cv_lib_m_nextafter = yes; then | |
17067 | ||
17068 | cat >>confdefs.h <<\_ACEOF | |
17069 | #define HAVE_NEXTAFTER 1 | |
17070 | _ACEOF | |
17071 | ||
17072 | fi | |
17073 | ||
17074 | echo "$as_me:$LINENO: checking for nextafterl in -lm" >&5 | |
17075 | echo $ECHO_N "checking for nextafterl in -lm... $ECHO_C" >&6 | |
17076 | if test "${ac_cv_lib_m_nextafterl+set}" = set; then | |
17077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17078 | else | |
17079 | ac_check_lib_save_LIBS=$LIBS | |
17080 | LIBS="-lm $LIBS" | |
17081 | if test x$gcc_no_link = xyes; then | |
17082 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17083 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17084 | { (exit 1); exit 1; }; } | |
17085 | fi | |
17086 | cat >conftest.$ac_ext <<_ACEOF | |
17087 | /* confdefs.h. */ | |
17088 | _ACEOF | |
17089 | cat confdefs.h >>conftest.$ac_ext | |
17090 | cat >>conftest.$ac_ext <<_ACEOF | |
17091 | /* end confdefs.h. */ | |
17092 | ||
17093 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17094 | #ifdef __cplusplus | |
17095 | extern "C" | |
17096 | #endif | |
17097 | /* We use char because int might match the return type of a gcc2 | |
17098 | builtin and then its argument prototype would still apply. */ | |
17099 | char nextafterl (); | |
17100 | int | |
17101 | main () | |
17102 | { | |
17103 | nextafterl (); | |
17104 | ; | |
17105 | return 0; | |
17106 | } | |
17107 | _ACEOF | |
17108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17110 | (eval $ac_link) 2>conftest.er1 | |
17111 | ac_status=$? | |
17112 | grep -v '^ *+' conftest.er1 >conftest.err | |
17113 | rm -f conftest.er1 | |
17114 | cat conftest.err >&5 | |
17115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17116 | (exit $ac_status); } && | |
57255173 PB |
17117 | { ac_try='test -z "$ac_c_werror_flag" |
17118 | || test ! -s conftest.err' | |
1409cd0b FXC |
17119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17120 | (eval $ac_try) 2>&5 | |
17121 | ac_status=$? | |
17122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17123 | (exit $ac_status); }; } && | |
17124 | { ac_try='test -s conftest$ac_exeext' | |
17125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17126 | (eval $ac_try) 2>&5 | |
17127 | ac_status=$? | |
17128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17129 | (exit $ac_status); }; }; then | |
17130 | ac_cv_lib_m_nextafterl=yes | |
17131 | else | |
17132 | echo "$as_me: failed program was:" >&5 | |
17133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17134 | ||
17135 | ac_cv_lib_m_nextafterl=no | |
17136 | fi | |
17137 | rm -f conftest.err conftest.$ac_objext \ | |
17138 | conftest$ac_exeext conftest.$ac_ext | |
17139 | LIBS=$ac_check_lib_save_LIBS | |
17140 | fi | |
17141 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterl" >&5 | |
17142 | echo "${ECHO_T}$ac_cv_lib_m_nextafterl" >&6 | |
17143 | if test $ac_cv_lib_m_nextafterl = yes; then | |
17144 | ||
17145 | cat >>confdefs.h <<\_ACEOF | |
17146 | #define HAVE_NEXTAFTERL 1 | |
17147 | _ACEOF | |
17148 | ||
17149 | fi | |
17150 | ||
17151 | echo "$as_me:$LINENO: checking for powf in -lm" >&5 | |
17152 | echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6 | |
17153 | if test "${ac_cv_lib_m_powf+set}" = set; then | |
17154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17155 | else | |
17156 | ac_check_lib_save_LIBS=$LIBS | |
17157 | LIBS="-lm $LIBS" | |
17158 | if test x$gcc_no_link = xyes; then | |
17159 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17160 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17161 | { (exit 1); exit 1; }; } | |
17162 | fi | |
17163 | cat >conftest.$ac_ext <<_ACEOF | |
17164 | /* confdefs.h. */ | |
17165 | _ACEOF | |
17166 | cat confdefs.h >>conftest.$ac_ext | |
17167 | cat >>conftest.$ac_ext <<_ACEOF | |
17168 | /* end confdefs.h. */ | |
17169 | ||
17170 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17171 | #ifdef __cplusplus | |
17172 | extern "C" | |
17173 | #endif | |
17174 | /* We use char because int might match the return type of a gcc2 | |
17175 | builtin and then its argument prototype would still apply. */ | |
17176 | char powf (); | |
17177 | int | |
17178 | main () | |
17179 | { | |
17180 | powf (); | |
17181 | ; | |
17182 | return 0; | |
17183 | } | |
17184 | _ACEOF | |
17185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17187 | (eval $ac_link) 2>conftest.er1 | |
17188 | ac_status=$? | |
17189 | grep -v '^ *+' conftest.er1 >conftest.err | |
17190 | rm -f conftest.er1 | |
17191 | cat conftest.err >&5 | |
17192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17193 | (exit $ac_status); } && | |
57255173 PB |
17194 | { ac_try='test -z "$ac_c_werror_flag" |
17195 | || test ! -s conftest.err' | |
1409cd0b FXC |
17196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17197 | (eval $ac_try) 2>&5 | |
17198 | ac_status=$? | |
17199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17200 | (exit $ac_status); }; } && | |
17201 | { ac_try='test -s conftest$ac_exeext' | |
17202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17203 | (eval $ac_try) 2>&5 | |
17204 | ac_status=$? | |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17206 | (exit $ac_status); }; }; then | |
17207 | ac_cv_lib_m_powf=yes | |
17208 | else | |
17209 | echo "$as_me: failed program was:" >&5 | |
17210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17211 | ||
17212 | ac_cv_lib_m_powf=no | |
17213 | fi | |
17214 | rm -f conftest.err conftest.$ac_objext \ | |
17215 | conftest$ac_exeext conftest.$ac_ext | |
17216 | LIBS=$ac_check_lib_save_LIBS | |
17217 | fi | |
17218 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5 | |
17219 | echo "${ECHO_T}$ac_cv_lib_m_powf" >&6 | |
17220 | if test $ac_cv_lib_m_powf = yes; then | |
17221 | ||
17222 | cat >>confdefs.h <<\_ACEOF | |
17223 | #define HAVE_POWF 1 | |
17224 | _ACEOF | |
17225 | ||
17226 | fi | |
17227 | ||
17228 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
17229 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
17230 | if test "${ac_cv_lib_m_pow+set}" = set; then | |
17231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17232 | else | |
17233 | ac_check_lib_save_LIBS=$LIBS | |
17234 | LIBS="-lm $LIBS" | |
17235 | if test x$gcc_no_link = xyes; then | |
17236 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17237 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17238 | { (exit 1); exit 1; }; } | |
17239 | fi | |
17240 | cat >conftest.$ac_ext <<_ACEOF | |
17241 | /* confdefs.h. */ | |
17242 | _ACEOF | |
17243 | cat confdefs.h >>conftest.$ac_ext | |
17244 | cat >>conftest.$ac_ext <<_ACEOF | |
17245 | /* end confdefs.h. */ | |
17246 | ||
17247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17248 | #ifdef __cplusplus | |
17249 | extern "C" | |
17250 | #endif | |
17251 | /* We use char because int might match the return type of a gcc2 | |
17252 | builtin and then its argument prototype would still apply. */ | |
17253 | char pow (); | |
17254 | int | |
17255 | main () | |
17256 | { | |
17257 | pow (); | |
17258 | ; | |
17259 | return 0; | |
17260 | } | |
17261 | _ACEOF | |
17262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17264 | (eval $ac_link) 2>conftest.er1 | |
17265 | ac_status=$? | |
17266 | grep -v '^ *+' conftest.er1 >conftest.err | |
17267 | rm -f conftest.er1 | |
17268 | cat conftest.err >&5 | |
17269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17270 | (exit $ac_status); } && | |
57255173 PB |
17271 | { ac_try='test -z "$ac_c_werror_flag" |
17272 | || test ! -s conftest.err' | |
1409cd0b FXC |
17273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17274 | (eval $ac_try) 2>&5 | |
17275 | ac_status=$? | |
17276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17277 | (exit $ac_status); }; } && | |
17278 | { ac_try='test -s conftest$ac_exeext' | |
17279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17280 | (eval $ac_try) 2>&5 | |
17281 | ac_status=$? | |
17282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17283 | (exit $ac_status); }; }; then | |
17284 | ac_cv_lib_m_pow=yes | |
17285 | else | |
17286 | echo "$as_me: failed program was:" >&5 | |
17287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17288 | ||
17289 | ac_cv_lib_m_pow=no | |
17290 | fi | |
17291 | rm -f conftest.err conftest.$ac_objext \ | |
17292 | conftest$ac_exeext conftest.$ac_ext | |
17293 | LIBS=$ac_check_lib_save_LIBS | |
17294 | fi | |
17295 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
17296 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
17297 | if test $ac_cv_lib_m_pow = yes; then | |
17298 | ||
17299 | cat >>confdefs.h <<\_ACEOF | |
17300 | #define HAVE_POW 1 | |
17301 | _ACEOF | |
17302 | ||
17303 | fi | |
17304 | ||
17305 | echo "$as_me:$LINENO: checking for powl in -lm" >&5 | |
17306 | echo $ECHO_N "checking for powl in -lm... $ECHO_C" >&6 | |
17307 | if test "${ac_cv_lib_m_powl+set}" = set; then | |
17308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17309 | else | |
17310 | ac_check_lib_save_LIBS=$LIBS | |
17311 | LIBS="-lm $LIBS" | |
17312 | if test x$gcc_no_link = xyes; then | |
17313 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17314 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17315 | { (exit 1); exit 1; }; } | |
17316 | fi | |
17317 | cat >conftest.$ac_ext <<_ACEOF | |
17318 | /* confdefs.h. */ | |
17319 | _ACEOF | |
17320 | cat confdefs.h >>conftest.$ac_ext | |
17321 | cat >>conftest.$ac_ext <<_ACEOF | |
17322 | /* end confdefs.h. */ | |
17323 | ||
17324 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17325 | #ifdef __cplusplus | |
17326 | extern "C" | |
17327 | #endif | |
17328 | /* We use char because int might match the return type of a gcc2 | |
17329 | builtin and then its argument prototype would still apply. */ | |
17330 | char powl (); | |
17331 | int | |
17332 | main () | |
17333 | { | |
17334 | powl (); | |
17335 | ; | |
17336 | return 0; | |
17337 | } | |
17338 | _ACEOF | |
17339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17341 | (eval $ac_link) 2>conftest.er1 | |
17342 | ac_status=$? | |
17343 | grep -v '^ *+' conftest.er1 >conftest.err | |
17344 | rm -f conftest.er1 | |
17345 | cat conftest.err >&5 | |
17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17347 | (exit $ac_status); } && | |
57255173 PB |
17348 | { ac_try='test -z "$ac_c_werror_flag" |
17349 | || test ! -s conftest.err' | |
1409cd0b FXC |
17350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17351 | (eval $ac_try) 2>&5 | |
17352 | ac_status=$? | |
17353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17354 | (exit $ac_status); }; } && | |
17355 | { ac_try='test -s conftest$ac_exeext' | |
17356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17357 | (eval $ac_try) 2>&5 | |
17358 | ac_status=$? | |
17359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17360 | (exit $ac_status); }; }; then | |
17361 | ac_cv_lib_m_powl=yes | |
17362 | else | |
17363 | echo "$as_me: failed program was:" >&5 | |
17364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17365 | ||
17366 | ac_cv_lib_m_powl=no | |
17367 | fi | |
17368 | rm -f conftest.err conftest.$ac_objext \ | |
17369 | conftest$ac_exeext conftest.$ac_ext | |
17370 | LIBS=$ac_check_lib_save_LIBS | |
17371 | fi | |
17372 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powl" >&5 | |
17373 | echo "${ECHO_T}$ac_cv_lib_m_powl" >&6 | |
17374 | if test $ac_cv_lib_m_powl = yes; then | |
17375 | ||
17376 | cat >>confdefs.h <<\_ACEOF | |
17377 | #define HAVE_POWL 1 | |
17378 | _ACEOF | |
17379 | ||
17380 | fi | |
17381 | ||
17382 | echo "$as_me:$LINENO: checking for cpowf in -lm" >&5 | |
17383 | echo $ECHO_N "checking for cpowf in -lm... $ECHO_C" >&6 | |
17384 | if test "${ac_cv_lib_m_cpowf+set}" = set; then | |
17385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17386 | else | |
17387 | ac_check_lib_save_LIBS=$LIBS | |
17388 | LIBS="-lm $LIBS" | |
17389 | if test x$gcc_no_link = xyes; then | |
17390 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17391 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17392 | { (exit 1); exit 1; }; } | |
17393 | fi | |
17394 | cat >conftest.$ac_ext <<_ACEOF | |
17395 | /* confdefs.h. */ | |
17396 | _ACEOF | |
17397 | cat confdefs.h >>conftest.$ac_ext | |
17398 | cat >>conftest.$ac_ext <<_ACEOF | |
17399 | /* end confdefs.h. */ | |
17400 | ||
17401 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17402 | #ifdef __cplusplus | |
17403 | extern "C" | |
17404 | #endif | |
17405 | /* We use char because int might match the return type of a gcc2 | |
17406 | builtin and then its argument prototype would still apply. */ | |
17407 | char cpowf (); | |
17408 | int | |
17409 | main () | |
17410 | { | |
17411 | cpowf (); | |
17412 | ; | |
17413 | return 0; | |
17414 | } | |
17415 | _ACEOF | |
17416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17418 | (eval $ac_link) 2>conftest.er1 | |
17419 | ac_status=$? | |
17420 | grep -v '^ *+' conftest.er1 >conftest.err | |
17421 | rm -f conftest.er1 | |
17422 | cat conftest.err >&5 | |
17423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17424 | (exit $ac_status); } && | |
57255173 PB |
17425 | { ac_try='test -z "$ac_c_werror_flag" |
17426 | || test ! -s conftest.err' | |
1409cd0b FXC |
17427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17428 | (eval $ac_try) 2>&5 | |
17429 | ac_status=$? | |
17430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17431 | (exit $ac_status); }; } && | |
17432 | { ac_try='test -s conftest$ac_exeext' | |
17433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17434 | (eval $ac_try) 2>&5 | |
17435 | ac_status=$? | |
17436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17437 | (exit $ac_status); }; }; then | |
17438 | ac_cv_lib_m_cpowf=yes | |
17439 | else | |
17440 | echo "$as_me: failed program was:" >&5 | |
17441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17442 | ||
17443 | ac_cv_lib_m_cpowf=no | |
17444 | fi | |
17445 | rm -f conftest.err conftest.$ac_objext \ | |
17446 | conftest$ac_exeext conftest.$ac_ext | |
17447 | LIBS=$ac_check_lib_save_LIBS | |
17448 | fi | |
17449 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowf" >&5 | |
17450 | echo "${ECHO_T}$ac_cv_lib_m_cpowf" >&6 | |
17451 | if test $ac_cv_lib_m_cpowf = yes; then | |
17452 | ||
17453 | cat >>confdefs.h <<\_ACEOF | |
17454 | #define HAVE_CPOWF 1 | |
17455 | _ACEOF | |
17456 | ||
17457 | fi | |
17458 | ||
17459 | echo "$as_me:$LINENO: checking for cpow in -lm" >&5 | |
17460 | echo $ECHO_N "checking for cpow in -lm... $ECHO_C" >&6 | |
17461 | if test "${ac_cv_lib_m_cpow+set}" = set; then | |
17462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17463 | else | |
17464 | ac_check_lib_save_LIBS=$LIBS | |
17465 | LIBS="-lm $LIBS" | |
17466 | if test x$gcc_no_link = xyes; then | |
17467 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17468 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17469 | { (exit 1); exit 1; }; } | |
17470 | fi | |
17471 | cat >conftest.$ac_ext <<_ACEOF | |
17472 | /* confdefs.h. */ | |
17473 | _ACEOF | |
17474 | cat confdefs.h >>conftest.$ac_ext | |
17475 | cat >>conftest.$ac_ext <<_ACEOF | |
17476 | /* end confdefs.h. */ | |
17477 | ||
17478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17479 | #ifdef __cplusplus | |
17480 | extern "C" | |
17481 | #endif | |
17482 | /* We use char because int might match the return type of a gcc2 | |
17483 | builtin and then its argument prototype would still apply. */ | |
17484 | char cpow (); | |
17485 | int | |
17486 | main () | |
17487 | { | |
17488 | cpow (); | |
17489 | ; | |
17490 | return 0; | |
17491 | } | |
17492 | _ACEOF | |
17493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17495 | (eval $ac_link) 2>conftest.er1 | |
17496 | ac_status=$? | |
17497 | grep -v '^ *+' conftest.er1 >conftest.err | |
17498 | rm -f conftest.er1 | |
17499 | cat conftest.err >&5 | |
17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17501 | (exit $ac_status); } && | |
57255173 PB |
17502 | { ac_try='test -z "$ac_c_werror_flag" |
17503 | || test ! -s conftest.err' | |
1409cd0b FXC |
17504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17505 | (eval $ac_try) 2>&5 | |
17506 | ac_status=$? | |
17507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17508 | (exit $ac_status); }; } && | |
17509 | { ac_try='test -s conftest$ac_exeext' | |
17510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17511 | (eval $ac_try) 2>&5 | |
17512 | ac_status=$? | |
17513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17514 | (exit $ac_status); }; }; then | |
17515 | ac_cv_lib_m_cpow=yes | |
17516 | else | |
17517 | echo "$as_me: failed program was:" >&5 | |
17518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17519 | ||
17520 | ac_cv_lib_m_cpow=no | |
17521 | fi | |
17522 | rm -f conftest.err conftest.$ac_objext \ | |
17523 | conftest$ac_exeext conftest.$ac_ext | |
17524 | LIBS=$ac_check_lib_save_LIBS | |
17525 | fi | |
17526 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpow" >&5 | |
17527 | echo "${ECHO_T}$ac_cv_lib_m_cpow" >&6 | |
17528 | if test $ac_cv_lib_m_cpow = yes; then | |
17529 | ||
17530 | cat >>confdefs.h <<\_ACEOF | |
17531 | #define HAVE_CPOW 1 | |
17532 | _ACEOF | |
17533 | ||
17534 | fi | |
17535 | ||
17536 | echo "$as_me:$LINENO: checking for cpowl in -lm" >&5 | |
17537 | echo $ECHO_N "checking for cpowl in -lm... $ECHO_C" >&6 | |
17538 | if test "${ac_cv_lib_m_cpowl+set}" = set; then | |
17539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17540 | else | |
17541 | ac_check_lib_save_LIBS=$LIBS | |
17542 | LIBS="-lm $LIBS" | |
17543 | if test x$gcc_no_link = xyes; then | |
17544 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17545 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17546 | { (exit 1); exit 1; }; } | |
17547 | fi | |
17548 | cat >conftest.$ac_ext <<_ACEOF | |
17549 | /* confdefs.h. */ | |
17550 | _ACEOF | |
17551 | cat confdefs.h >>conftest.$ac_ext | |
17552 | cat >>conftest.$ac_ext <<_ACEOF | |
17553 | /* end confdefs.h. */ | |
17554 | ||
17555 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17556 | #ifdef __cplusplus | |
17557 | extern "C" | |
17558 | #endif | |
17559 | /* We use char because int might match the return type of a gcc2 | |
17560 | builtin and then its argument prototype would still apply. */ | |
17561 | char cpowl (); | |
17562 | int | |
17563 | main () | |
17564 | { | |
17565 | cpowl (); | |
17566 | ; | |
17567 | return 0; | |
17568 | } | |
17569 | _ACEOF | |
17570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17572 | (eval $ac_link) 2>conftest.er1 | |
17573 | ac_status=$? | |
17574 | grep -v '^ *+' conftest.er1 >conftest.err | |
17575 | rm -f conftest.er1 | |
17576 | cat conftest.err >&5 | |
17577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17578 | (exit $ac_status); } && | |
57255173 PB |
17579 | { ac_try='test -z "$ac_c_werror_flag" |
17580 | || test ! -s conftest.err' | |
1409cd0b FXC |
17581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17582 | (eval $ac_try) 2>&5 | |
17583 | ac_status=$? | |
17584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17585 | (exit $ac_status); }; } && | |
17586 | { ac_try='test -s conftest$ac_exeext' | |
17587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17588 | (eval $ac_try) 2>&5 | |
17589 | ac_status=$? | |
17590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17591 | (exit $ac_status); }; }; then | |
17592 | ac_cv_lib_m_cpowl=yes | |
17593 | else | |
17594 | echo "$as_me: failed program was:" >&5 | |
17595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17596 | ||
17597 | ac_cv_lib_m_cpowl=no | |
17598 | fi | |
17599 | rm -f conftest.err conftest.$ac_objext \ | |
17600 | conftest$ac_exeext conftest.$ac_ext | |
17601 | LIBS=$ac_check_lib_save_LIBS | |
17602 | fi | |
17603 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowl" >&5 | |
17604 | echo "${ECHO_T}$ac_cv_lib_m_cpowl" >&6 | |
17605 | if test $ac_cv_lib_m_cpowl = yes; then | |
17606 | ||
17607 | cat >>confdefs.h <<\_ACEOF | |
17608 | #define HAVE_CPOWL 1 | |
17609 | _ACEOF | |
17610 | ||
17611 | fi | |
17612 | ||
17613 | echo "$as_me:$LINENO: checking for roundf in -lm" >&5 | |
17614 | echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6 | |
17615 | if test "${ac_cv_lib_m_roundf+set}" = set; then | |
17616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17617 | else | |
17618 | ac_check_lib_save_LIBS=$LIBS | |
17619 | LIBS="-lm $LIBS" | |
17620 | if test x$gcc_no_link = xyes; then | |
17621 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17622 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17623 | { (exit 1); exit 1; }; } | |
17624 | fi | |
17625 | cat >conftest.$ac_ext <<_ACEOF | |
17626 | /* confdefs.h. */ | |
17627 | _ACEOF | |
17628 | cat confdefs.h >>conftest.$ac_ext | |
17629 | cat >>conftest.$ac_ext <<_ACEOF | |
17630 | /* end confdefs.h. */ | |
17631 | ||
17632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17633 | #ifdef __cplusplus | |
17634 | extern "C" | |
17635 | #endif | |
17636 | /* We use char because int might match the return type of a gcc2 | |
17637 | builtin and then its argument prototype would still apply. */ | |
17638 | char roundf (); | |
17639 | int | |
17640 | main () | |
17641 | { | |
17642 | roundf (); | |
17643 | ; | |
17644 | return 0; | |
17645 | } | |
17646 | _ACEOF | |
17647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17649 | (eval $ac_link) 2>conftest.er1 | |
17650 | ac_status=$? | |
17651 | grep -v '^ *+' conftest.er1 >conftest.err | |
17652 | rm -f conftest.er1 | |
17653 | cat conftest.err >&5 | |
17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17655 | (exit $ac_status); } && | |
57255173 PB |
17656 | { ac_try='test -z "$ac_c_werror_flag" |
17657 | || test ! -s conftest.err' | |
1409cd0b FXC |
17658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17659 | (eval $ac_try) 2>&5 | |
17660 | ac_status=$? | |
17661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17662 | (exit $ac_status); }; } && | |
17663 | { ac_try='test -s conftest$ac_exeext' | |
17664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17665 | (eval $ac_try) 2>&5 | |
17666 | ac_status=$? | |
17667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17668 | (exit $ac_status); }; }; then | |
17669 | ac_cv_lib_m_roundf=yes | |
17670 | else | |
17671 | echo "$as_me: failed program was:" >&5 | |
17672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17673 | ||
17674 | ac_cv_lib_m_roundf=no | |
17675 | fi | |
17676 | rm -f conftest.err conftest.$ac_objext \ | |
17677 | conftest$ac_exeext conftest.$ac_ext | |
17678 | LIBS=$ac_check_lib_save_LIBS | |
17679 | fi | |
17680 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5 | |
17681 | echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6 | |
17682 | if test $ac_cv_lib_m_roundf = yes; then | |
17683 | ||
17684 | cat >>confdefs.h <<\_ACEOF | |
17685 | #define HAVE_ROUNDF 1 | |
17686 | _ACEOF | |
17687 | ||
17688 | fi | |
17689 | ||
17690 | echo "$as_me:$LINENO: checking for round in -lm" >&5 | |
17691 | echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6 | |
17692 | if test "${ac_cv_lib_m_round+set}" = set; then | |
17693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17694 | else | |
17695 | ac_check_lib_save_LIBS=$LIBS | |
17696 | LIBS="-lm $LIBS" | |
17697 | if test x$gcc_no_link = xyes; then | |
17698 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17699 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17700 | { (exit 1); exit 1; }; } | |
17701 | fi | |
17702 | cat >conftest.$ac_ext <<_ACEOF | |
17703 | /* confdefs.h. */ | |
17704 | _ACEOF | |
17705 | cat confdefs.h >>conftest.$ac_ext | |
17706 | cat >>conftest.$ac_ext <<_ACEOF | |
17707 | /* end confdefs.h. */ | |
17708 | ||
17709 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17710 | #ifdef __cplusplus | |
17711 | extern "C" | |
17712 | #endif | |
17713 | /* We use char because int might match the return type of a gcc2 | |
17714 | builtin and then its argument prototype would still apply. */ | |
17715 | char round (); | |
17716 | int | |
17717 | main () | |
17718 | { | |
17719 | round (); | |
17720 | ; | |
17721 | return 0; | |
17722 | } | |
17723 | _ACEOF | |
17724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17726 | (eval $ac_link) 2>conftest.er1 | |
17727 | ac_status=$? | |
17728 | grep -v '^ *+' conftest.er1 >conftest.err | |
17729 | rm -f conftest.er1 | |
17730 | cat conftest.err >&5 | |
17731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17732 | (exit $ac_status); } && | |
57255173 PB |
17733 | { ac_try='test -z "$ac_c_werror_flag" |
17734 | || test ! -s conftest.err' | |
1409cd0b FXC |
17735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17736 | (eval $ac_try) 2>&5 | |
17737 | ac_status=$? | |
17738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17739 | (exit $ac_status); }; } && | |
17740 | { ac_try='test -s conftest$ac_exeext' | |
17741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17742 | (eval $ac_try) 2>&5 | |
17743 | ac_status=$? | |
17744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17745 | (exit $ac_status); }; }; then | |
17746 | ac_cv_lib_m_round=yes | |
17747 | else | |
17748 | echo "$as_me: failed program was:" >&5 | |
17749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17750 | ||
17751 | ac_cv_lib_m_round=no | |
17752 | fi | |
17753 | rm -f conftest.err conftest.$ac_objext \ | |
17754 | conftest$ac_exeext conftest.$ac_ext | |
17755 | LIBS=$ac_check_lib_save_LIBS | |
17756 | fi | |
17757 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5 | |
17758 | echo "${ECHO_T}$ac_cv_lib_m_round" >&6 | |
17759 | if test $ac_cv_lib_m_round = yes; then | |
17760 | ||
17761 | cat >>confdefs.h <<\_ACEOF | |
17762 | #define HAVE_ROUND 1 | |
17763 | _ACEOF | |
17764 | ||
17765 | fi | |
17766 | ||
17767 | echo "$as_me:$LINENO: checking for roundl in -lm" >&5 | |
17768 | echo $ECHO_N "checking for roundl in -lm... $ECHO_C" >&6 | |
17769 | if test "${ac_cv_lib_m_roundl+set}" = set; then | |
17770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17771 | else | |
17772 | ac_check_lib_save_LIBS=$LIBS | |
17773 | LIBS="-lm $LIBS" | |
17774 | if test x$gcc_no_link = xyes; then | |
17775 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17776 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17777 | { (exit 1); exit 1; }; } | |
17778 | fi | |
17779 | cat >conftest.$ac_ext <<_ACEOF | |
17780 | /* confdefs.h. */ | |
17781 | _ACEOF | |
17782 | cat confdefs.h >>conftest.$ac_ext | |
17783 | cat >>conftest.$ac_ext <<_ACEOF | |
17784 | /* end confdefs.h. */ | |
17785 | ||
17786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17787 | #ifdef __cplusplus | |
17788 | extern "C" | |
17789 | #endif | |
17790 | /* We use char because int might match the return type of a gcc2 | |
17791 | builtin and then its argument prototype would still apply. */ | |
17792 | char roundl (); | |
17793 | int | |
17794 | main () | |
17795 | { | |
17796 | roundl (); | |
17797 | ; | |
17798 | return 0; | |
17799 | } | |
17800 | _ACEOF | |
17801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17803 | (eval $ac_link) 2>conftest.er1 | |
17804 | ac_status=$? | |
17805 | grep -v '^ *+' conftest.er1 >conftest.err | |
17806 | rm -f conftest.er1 | |
17807 | cat conftest.err >&5 | |
17808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17809 | (exit $ac_status); } && | |
57255173 PB |
17810 | { ac_try='test -z "$ac_c_werror_flag" |
17811 | || test ! -s conftest.err' | |
1409cd0b FXC |
17812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17813 | (eval $ac_try) 2>&5 | |
17814 | ac_status=$? | |
17815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17816 | (exit $ac_status); }; } && | |
17817 | { ac_try='test -s conftest$ac_exeext' | |
17818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17819 | (eval $ac_try) 2>&5 | |
17820 | ac_status=$? | |
17821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17822 | (exit $ac_status); }; }; then | |
17823 | ac_cv_lib_m_roundl=yes | |
17824 | else | |
17825 | echo "$as_me: failed program was:" >&5 | |
17826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17827 | ||
17828 | ac_cv_lib_m_roundl=no | |
17829 | fi | |
17830 | rm -f conftest.err conftest.$ac_objext \ | |
17831 | conftest$ac_exeext conftest.$ac_ext | |
17832 | LIBS=$ac_check_lib_save_LIBS | |
17833 | fi | |
17834 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundl" >&5 | |
17835 | echo "${ECHO_T}$ac_cv_lib_m_roundl" >&6 | |
17836 | if test $ac_cv_lib_m_roundl = yes; then | |
17837 | ||
17838 | cat >>confdefs.h <<\_ACEOF | |
17839 | #define HAVE_ROUNDL 1 | |
17840 | _ACEOF | |
17841 | ||
17842 | fi | |
17843 | ||
17844 | echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5 | |
17845 | echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6 | |
17846 | if test "${ac_cv_lib_m_scalbnf+set}" = set; then | |
17847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17848 | else | |
17849 | ac_check_lib_save_LIBS=$LIBS | |
17850 | LIBS="-lm $LIBS" | |
17851 | if test x$gcc_no_link = xyes; then | |
17852 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17853 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17854 | { (exit 1); exit 1; }; } | |
17855 | fi | |
17856 | cat >conftest.$ac_ext <<_ACEOF | |
17857 | /* confdefs.h. */ | |
17858 | _ACEOF | |
17859 | cat confdefs.h >>conftest.$ac_ext | |
17860 | cat >>conftest.$ac_ext <<_ACEOF | |
17861 | /* end confdefs.h. */ | |
17862 | ||
17863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17864 | #ifdef __cplusplus | |
17865 | extern "C" | |
17866 | #endif | |
17867 | /* We use char because int might match the return type of a gcc2 | |
17868 | builtin and then its argument prototype would still apply. */ | |
17869 | char scalbnf (); | |
17870 | int | |
17871 | main () | |
17872 | { | |
17873 | scalbnf (); | |
17874 | ; | |
17875 | return 0; | |
17876 | } | |
17877 | _ACEOF | |
17878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17880 | (eval $ac_link) 2>conftest.er1 | |
17881 | ac_status=$? | |
17882 | grep -v '^ *+' conftest.er1 >conftest.err | |
17883 | rm -f conftest.er1 | |
17884 | cat conftest.err >&5 | |
17885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17886 | (exit $ac_status); } && | |
57255173 PB |
17887 | { ac_try='test -z "$ac_c_werror_flag" |
17888 | || test ! -s conftest.err' | |
1409cd0b FXC |
17889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17890 | (eval $ac_try) 2>&5 | |
17891 | ac_status=$? | |
17892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17893 | (exit $ac_status); }; } && | |
17894 | { ac_try='test -s conftest$ac_exeext' | |
17895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17896 | (eval $ac_try) 2>&5 | |
17897 | ac_status=$? | |
17898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17899 | (exit $ac_status); }; }; then | |
17900 | ac_cv_lib_m_scalbnf=yes | |
17901 | else | |
17902 | echo "$as_me: failed program was:" >&5 | |
17903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17904 | ||
17905 | ac_cv_lib_m_scalbnf=no | |
17906 | fi | |
17907 | rm -f conftest.err conftest.$ac_objext \ | |
17908 | conftest$ac_exeext conftest.$ac_ext | |
17909 | LIBS=$ac_check_lib_save_LIBS | |
17910 | fi | |
17911 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5 | |
17912 | echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6 | |
17913 | if test $ac_cv_lib_m_scalbnf = yes; then | |
17914 | ||
17915 | cat >>confdefs.h <<\_ACEOF | |
17916 | #define HAVE_SCALBNF 1 | |
17917 | _ACEOF | |
17918 | ||
17919 | fi | |
17920 | ||
17921 | echo "$as_me:$LINENO: checking for scalbn in -lm" >&5 | |
17922 | echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6 | |
17923 | if test "${ac_cv_lib_m_scalbn+set}" = set; then | |
17924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17925 | else | |
17926 | ac_check_lib_save_LIBS=$LIBS | |
17927 | LIBS="-lm $LIBS" | |
17928 | if test x$gcc_no_link = xyes; then | |
17929 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17930 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17931 | { (exit 1); exit 1; }; } | |
17932 | fi | |
17933 | cat >conftest.$ac_ext <<_ACEOF | |
17934 | /* confdefs.h. */ | |
17935 | _ACEOF | |
17936 | cat confdefs.h >>conftest.$ac_ext | |
17937 | cat >>conftest.$ac_ext <<_ACEOF | |
17938 | /* end confdefs.h. */ | |
17939 | ||
17940 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17941 | #ifdef __cplusplus | |
17942 | extern "C" | |
17943 | #endif | |
17944 | /* We use char because int might match the return type of a gcc2 | |
17945 | builtin and then its argument prototype would still apply. */ | |
17946 | char scalbn (); | |
17947 | int | |
17948 | main () | |
17949 | { | |
17950 | scalbn (); | |
17951 | ; | |
17952 | return 0; | |
17953 | } | |
17954 | _ACEOF | |
17955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17957 | (eval $ac_link) 2>conftest.er1 | |
17958 | ac_status=$? | |
17959 | grep -v '^ *+' conftest.er1 >conftest.err | |
17960 | rm -f conftest.er1 | |
17961 | cat conftest.err >&5 | |
17962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17963 | (exit $ac_status); } && | |
57255173 PB |
17964 | { ac_try='test -z "$ac_c_werror_flag" |
17965 | || test ! -s conftest.err' | |
1409cd0b FXC |
17966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17967 | (eval $ac_try) 2>&5 | |
17968 | ac_status=$? | |
17969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17970 | (exit $ac_status); }; } && | |
17971 | { ac_try='test -s conftest$ac_exeext' | |
17972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17973 | (eval $ac_try) 2>&5 | |
17974 | ac_status=$? | |
17975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17976 | (exit $ac_status); }; }; then | |
17977 | ac_cv_lib_m_scalbn=yes | |
17978 | else | |
17979 | echo "$as_me: failed program was:" >&5 | |
17980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17981 | ||
17982 | ac_cv_lib_m_scalbn=no | |
17983 | fi | |
17984 | rm -f conftest.err conftest.$ac_objext \ | |
17985 | conftest$ac_exeext conftest.$ac_ext | |
17986 | LIBS=$ac_check_lib_save_LIBS | |
17987 | fi | |
17988 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5 | |
17989 | echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6 | |
17990 | if test $ac_cv_lib_m_scalbn = yes; then | |
17991 | ||
17992 | cat >>confdefs.h <<\_ACEOF | |
17993 | #define HAVE_SCALBN 1 | |
17994 | _ACEOF | |
17995 | ||
17996 | fi | |
17997 | ||
17998 | echo "$as_me:$LINENO: checking for scalbnl in -lm" >&5 | |
17999 | echo $ECHO_N "checking for scalbnl in -lm... $ECHO_C" >&6 | |
18000 | if test "${ac_cv_lib_m_scalbnl+set}" = set; then | |
18001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18002 | else | |
18003 | ac_check_lib_save_LIBS=$LIBS | |
18004 | LIBS="-lm $LIBS" | |
18005 | if test x$gcc_no_link = xyes; then | |
18006 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18007 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18008 | { (exit 1); exit 1; }; } | |
18009 | fi | |
18010 | cat >conftest.$ac_ext <<_ACEOF | |
18011 | /* confdefs.h. */ | |
18012 | _ACEOF | |
18013 | cat confdefs.h >>conftest.$ac_ext | |
18014 | cat >>conftest.$ac_ext <<_ACEOF | |
18015 | /* end confdefs.h. */ | |
18016 | ||
18017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18018 | #ifdef __cplusplus | |
18019 | extern "C" | |
18020 | #endif | |
18021 | /* We use char because int might match the return type of a gcc2 | |
18022 | builtin and then its argument prototype would still apply. */ | |
18023 | char scalbnl (); | |
18024 | int | |
18025 | main () | |
18026 | { | |
18027 | scalbnl (); | |
18028 | ; | |
18029 | return 0; | |
18030 | } | |
18031 | _ACEOF | |
18032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18034 | (eval $ac_link) 2>conftest.er1 | |
18035 | ac_status=$? | |
18036 | grep -v '^ *+' conftest.er1 >conftest.err | |
18037 | rm -f conftest.er1 | |
18038 | cat conftest.err >&5 | |
18039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18040 | (exit $ac_status); } && | |
57255173 PB |
18041 | { ac_try='test -z "$ac_c_werror_flag" |
18042 | || test ! -s conftest.err' | |
1409cd0b FXC |
18043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18044 | (eval $ac_try) 2>&5 | |
18045 | ac_status=$? | |
18046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18047 | (exit $ac_status); }; } && | |
18048 | { ac_try='test -s conftest$ac_exeext' | |
18049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18050 | (eval $ac_try) 2>&5 | |
18051 | ac_status=$? | |
18052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18053 | (exit $ac_status); }; }; then | |
18054 | ac_cv_lib_m_scalbnl=yes | |
18055 | else | |
18056 | echo "$as_me: failed program was:" >&5 | |
18057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18058 | ||
18059 | ac_cv_lib_m_scalbnl=no | |
18060 | fi | |
18061 | rm -f conftest.err conftest.$ac_objext \ | |
18062 | conftest$ac_exeext conftest.$ac_ext | |
18063 | LIBS=$ac_check_lib_save_LIBS | |
18064 | fi | |
18065 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnl" >&5 | |
18066 | echo "${ECHO_T}$ac_cv_lib_m_scalbnl" >&6 | |
18067 | if test $ac_cv_lib_m_scalbnl = yes; then | |
18068 | ||
18069 | cat >>confdefs.h <<\_ACEOF | |
18070 | #define HAVE_SCALBNL 1 | |
18071 | _ACEOF | |
18072 | ||
18073 | fi | |
18074 | ||
18075 | echo "$as_me:$LINENO: checking for sinf in -lm" >&5 | |
18076 | echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6 | |
18077 | if test "${ac_cv_lib_m_sinf+set}" = set; then | |
18078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18079 | else | |
18080 | ac_check_lib_save_LIBS=$LIBS | |
18081 | LIBS="-lm $LIBS" | |
18082 | if test x$gcc_no_link = xyes; then | |
18083 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18084 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18085 | { (exit 1); exit 1; }; } | |
18086 | fi | |
18087 | cat >conftest.$ac_ext <<_ACEOF | |
18088 | /* confdefs.h. */ | |
18089 | _ACEOF | |
18090 | cat confdefs.h >>conftest.$ac_ext | |
18091 | cat >>conftest.$ac_ext <<_ACEOF | |
18092 | /* end confdefs.h. */ | |
18093 | ||
18094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18095 | #ifdef __cplusplus | |
18096 | extern "C" | |
18097 | #endif | |
18098 | /* We use char because int might match the return type of a gcc2 | |
18099 | builtin and then its argument prototype would still apply. */ | |
18100 | char sinf (); | |
18101 | int | |
18102 | main () | |
18103 | { | |
18104 | sinf (); | |
18105 | ; | |
18106 | return 0; | |
18107 | } | |
18108 | _ACEOF | |
18109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18111 | (eval $ac_link) 2>conftest.er1 | |
18112 | ac_status=$? | |
18113 | grep -v '^ *+' conftest.er1 >conftest.err | |
18114 | rm -f conftest.er1 | |
18115 | cat conftest.err >&5 | |
18116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18117 | (exit $ac_status); } && | |
57255173 PB |
18118 | { ac_try='test -z "$ac_c_werror_flag" |
18119 | || test ! -s conftest.err' | |
1409cd0b FXC |
18120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18121 | (eval $ac_try) 2>&5 | |
18122 | ac_status=$? | |
18123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18124 | (exit $ac_status); }; } && | |
18125 | { ac_try='test -s conftest$ac_exeext' | |
18126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18127 | (eval $ac_try) 2>&5 | |
18128 | ac_status=$? | |
18129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18130 | (exit $ac_status); }; }; then | |
18131 | ac_cv_lib_m_sinf=yes | |
18132 | else | |
18133 | echo "$as_me: failed program was:" >&5 | |
18134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18135 | ||
18136 | ac_cv_lib_m_sinf=no | |
18137 | fi | |
18138 | rm -f conftest.err conftest.$ac_objext \ | |
18139 | conftest$ac_exeext conftest.$ac_ext | |
18140 | LIBS=$ac_check_lib_save_LIBS | |
18141 | fi | |
18142 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5 | |
18143 | echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6 | |
18144 | if test $ac_cv_lib_m_sinf = yes; then | |
18145 | ||
18146 | cat >>confdefs.h <<\_ACEOF | |
18147 | #define HAVE_SINF 1 | |
18148 | _ACEOF | |
18149 | ||
18150 | fi | |
18151 | ||
18152 | echo "$as_me:$LINENO: checking for sin in -lm" >&5 | |
18153 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 | |
18154 | if test "${ac_cv_lib_m_sin+set}" = set; then | |
18155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18156 | else | |
18157 | ac_check_lib_save_LIBS=$LIBS | |
18158 | LIBS="-lm $LIBS" | |
18159 | if test x$gcc_no_link = xyes; then | |
18160 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18161 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18162 | { (exit 1); exit 1; }; } | |
18163 | fi | |
18164 | cat >conftest.$ac_ext <<_ACEOF | |
18165 | /* confdefs.h. */ | |
18166 | _ACEOF | |
18167 | cat confdefs.h >>conftest.$ac_ext | |
18168 | cat >>conftest.$ac_ext <<_ACEOF | |
18169 | /* end confdefs.h. */ | |
18170 | ||
18171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18172 | #ifdef __cplusplus | |
18173 | extern "C" | |
18174 | #endif | |
18175 | /* We use char because int might match the return type of a gcc2 | |
18176 | builtin and then its argument prototype would still apply. */ | |
18177 | char sin (); | |
18178 | int | |
18179 | main () | |
18180 | { | |
18181 | sin (); | |
18182 | ; | |
18183 | return 0; | |
18184 | } | |
18185 | _ACEOF | |
18186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18188 | (eval $ac_link) 2>conftest.er1 | |
18189 | ac_status=$? | |
18190 | grep -v '^ *+' conftest.er1 >conftest.err | |
18191 | rm -f conftest.er1 | |
18192 | cat conftest.err >&5 | |
18193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18194 | (exit $ac_status); } && | |
57255173 PB |
18195 | { ac_try='test -z "$ac_c_werror_flag" |
18196 | || test ! -s conftest.err' | |
1409cd0b FXC |
18197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18198 | (eval $ac_try) 2>&5 | |
18199 | ac_status=$? | |
18200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18201 | (exit $ac_status); }; } && | |
18202 | { ac_try='test -s conftest$ac_exeext' | |
18203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18204 | (eval $ac_try) 2>&5 | |
18205 | ac_status=$? | |
18206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18207 | (exit $ac_status); }; }; then | |
18208 | ac_cv_lib_m_sin=yes | |
18209 | else | |
18210 | echo "$as_me: failed program was:" >&5 | |
18211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18212 | ||
18213 | ac_cv_lib_m_sin=no | |
18214 | fi | |
18215 | rm -f conftest.err conftest.$ac_objext \ | |
18216 | conftest$ac_exeext conftest.$ac_ext | |
18217 | LIBS=$ac_check_lib_save_LIBS | |
18218 | fi | |
18219 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 | |
18220 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 | |
18221 | if test $ac_cv_lib_m_sin = yes; then | |
18222 | ||
18223 | cat >>confdefs.h <<\_ACEOF | |
18224 | #define HAVE_SIN 1 | |
18225 | _ACEOF | |
18226 | ||
18227 | fi | |
18228 | ||
18229 | echo "$as_me:$LINENO: checking for sinl in -lm" >&5 | |
18230 | echo $ECHO_N "checking for sinl in -lm... $ECHO_C" >&6 | |
18231 | if test "${ac_cv_lib_m_sinl+set}" = set; then | |
18232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18233 | else | |
18234 | ac_check_lib_save_LIBS=$LIBS | |
18235 | LIBS="-lm $LIBS" | |
18236 | if test x$gcc_no_link = xyes; then | |
18237 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18238 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18239 | { (exit 1); exit 1; }; } | |
18240 | fi | |
18241 | cat >conftest.$ac_ext <<_ACEOF | |
18242 | /* confdefs.h. */ | |
18243 | _ACEOF | |
18244 | cat confdefs.h >>conftest.$ac_ext | |
18245 | cat >>conftest.$ac_ext <<_ACEOF | |
18246 | /* end confdefs.h. */ | |
18247 | ||
18248 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18249 | #ifdef __cplusplus | |
18250 | extern "C" | |
18251 | #endif | |
18252 | /* We use char because int might match the return type of a gcc2 | |
18253 | builtin and then its argument prototype would still apply. */ | |
18254 | char sinl (); | |
18255 | int | |
18256 | main () | |
18257 | { | |
18258 | sinl (); | |
18259 | ; | |
18260 | return 0; | |
18261 | } | |
18262 | _ACEOF | |
18263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18265 | (eval $ac_link) 2>conftest.er1 | |
18266 | ac_status=$? | |
18267 | grep -v '^ *+' conftest.er1 >conftest.err | |
18268 | rm -f conftest.er1 | |
18269 | cat conftest.err >&5 | |
18270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18271 | (exit $ac_status); } && | |
57255173 PB |
18272 | { ac_try='test -z "$ac_c_werror_flag" |
18273 | || test ! -s conftest.err' | |
1409cd0b FXC |
18274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18275 | (eval $ac_try) 2>&5 | |
18276 | ac_status=$? | |
18277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18278 | (exit $ac_status); }; } && | |
18279 | { ac_try='test -s conftest$ac_exeext' | |
18280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18281 | (eval $ac_try) 2>&5 | |
18282 | ac_status=$? | |
18283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18284 | (exit $ac_status); }; }; then | |
18285 | ac_cv_lib_m_sinl=yes | |
18286 | else | |
18287 | echo "$as_me: failed program was:" >&5 | |
18288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18289 | ||
18290 | ac_cv_lib_m_sinl=no | |
18291 | fi | |
18292 | rm -f conftest.err conftest.$ac_objext \ | |
18293 | conftest$ac_exeext conftest.$ac_ext | |
18294 | LIBS=$ac_check_lib_save_LIBS | |
18295 | fi | |
18296 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinl" >&5 | |
18297 | echo "${ECHO_T}$ac_cv_lib_m_sinl" >&6 | |
18298 | if test $ac_cv_lib_m_sinl = yes; then | |
18299 | ||
18300 | cat >>confdefs.h <<\_ACEOF | |
18301 | #define HAVE_SINL 1 | |
18302 | _ACEOF | |
18303 | ||
18304 | fi | |
18305 | ||
18306 | echo "$as_me:$LINENO: checking for csinf in -lm" >&5 | |
18307 | echo $ECHO_N "checking for csinf in -lm... $ECHO_C" >&6 | |
18308 | if test "${ac_cv_lib_m_csinf+set}" = set; then | |
18309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18310 | else | |
18311 | ac_check_lib_save_LIBS=$LIBS | |
18312 | LIBS="-lm $LIBS" | |
18313 | if test x$gcc_no_link = xyes; then | |
18314 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18315 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18316 | { (exit 1); exit 1; }; } | |
18317 | fi | |
18318 | cat >conftest.$ac_ext <<_ACEOF | |
18319 | /* confdefs.h. */ | |
18320 | _ACEOF | |
18321 | cat confdefs.h >>conftest.$ac_ext | |
18322 | cat >>conftest.$ac_ext <<_ACEOF | |
18323 | /* end confdefs.h. */ | |
18324 | ||
18325 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18326 | #ifdef __cplusplus | |
18327 | extern "C" | |
18328 | #endif | |
18329 | /* We use char because int might match the return type of a gcc2 | |
18330 | builtin and then its argument prototype would still apply. */ | |
18331 | char csinf (); | |
18332 | int | |
18333 | main () | |
18334 | { | |
18335 | csinf (); | |
18336 | ; | |
18337 | return 0; | |
18338 | } | |
18339 | _ACEOF | |
18340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18342 | (eval $ac_link) 2>conftest.er1 | |
18343 | ac_status=$? | |
18344 | grep -v '^ *+' conftest.er1 >conftest.err | |
18345 | rm -f conftest.er1 | |
18346 | cat conftest.err >&5 | |
18347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18348 | (exit $ac_status); } && | |
57255173 PB |
18349 | { ac_try='test -z "$ac_c_werror_flag" |
18350 | || test ! -s conftest.err' | |
1409cd0b FXC |
18351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18352 | (eval $ac_try) 2>&5 | |
18353 | ac_status=$? | |
18354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18355 | (exit $ac_status); }; } && | |
18356 | { ac_try='test -s conftest$ac_exeext' | |
18357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18358 | (eval $ac_try) 2>&5 | |
18359 | ac_status=$? | |
18360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18361 | (exit $ac_status); }; }; then | |
18362 | ac_cv_lib_m_csinf=yes | |
18363 | else | |
18364 | echo "$as_me: failed program was:" >&5 | |
18365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18366 | ||
18367 | ac_cv_lib_m_csinf=no | |
18368 | fi | |
18369 | rm -f conftest.err conftest.$ac_objext \ | |
18370 | conftest$ac_exeext conftest.$ac_ext | |
18371 | LIBS=$ac_check_lib_save_LIBS | |
18372 | fi | |
18373 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinf" >&5 | |
18374 | echo "${ECHO_T}$ac_cv_lib_m_csinf" >&6 | |
18375 | if test $ac_cv_lib_m_csinf = yes; then | |
18376 | ||
18377 | cat >>confdefs.h <<\_ACEOF | |
18378 | #define HAVE_CSINF 1 | |
18379 | _ACEOF | |
18380 | ||
18381 | fi | |
18382 | ||
18383 | echo "$as_me:$LINENO: checking for csin in -lm" >&5 | |
18384 | echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6 | |
18385 | if test "${ac_cv_lib_m_csin+set}" = set; then | |
18386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18387 | else | |
18388 | ac_check_lib_save_LIBS=$LIBS | |
18389 | LIBS="-lm $LIBS" | |
18390 | if test x$gcc_no_link = xyes; then | |
18391 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18392 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18393 | { (exit 1); exit 1; }; } | |
18394 | fi | |
18395 | cat >conftest.$ac_ext <<_ACEOF | |
18396 | /* confdefs.h. */ | |
18397 | _ACEOF | |
18398 | cat confdefs.h >>conftest.$ac_ext | |
18399 | cat >>conftest.$ac_ext <<_ACEOF | |
18400 | /* end confdefs.h. */ | |
18401 | ||
18402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18403 | #ifdef __cplusplus | |
18404 | extern "C" | |
18405 | #endif | |
18406 | /* We use char because int might match the return type of a gcc2 | |
18407 | builtin and then its argument prototype would still apply. */ | |
18408 | char csin (); | |
18409 | int | |
18410 | main () | |
18411 | { | |
18412 | csin (); | |
18413 | ; | |
18414 | return 0; | |
18415 | } | |
18416 | _ACEOF | |
18417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18419 | (eval $ac_link) 2>conftest.er1 | |
18420 | ac_status=$? | |
18421 | grep -v '^ *+' conftest.er1 >conftest.err | |
18422 | rm -f conftest.er1 | |
18423 | cat conftest.err >&5 | |
18424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18425 | (exit $ac_status); } && | |
57255173 PB |
18426 | { ac_try='test -z "$ac_c_werror_flag" |
18427 | || test ! -s conftest.err' | |
1409cd0b FXC |
18428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18429 | (eval $ac_try) 2>&5 | |
18430 | ac_status=$? | |
18431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18432 | (exit $ac_status); }; } && | |
18433 | { ac_try='test -s conftest$ac_exeext' | |
18434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18435 | (eval $ac_try) 2>&5 | |
18436 | ac_status=$? | |
18437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18438 | (exit $ac_status); }; }; then | |
18439 | ac_cv_lib_m_csin=yes | |
18440 | else | |
18441 | echo "$as_me: failed program was:" >&5 | |
18442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18443 | ||
18444 | ac_cv_lib_m_csin=no | |
18445 | fi | |
18446 | rm -f conftest.err conftest.$ac_objext \ | |
18447 | conftest$ac_exeext conftest.$ac_ext | |
18448 | LIBS=$ac_check_lib_save_LIBS | |
18449 | fi | |
18450 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5 | |
18451 | echo "${ECHO_T}$ac_cv_lib_m_csin" >&6 | |
18452 | if test $ac_cv_lib_m_csin = yes; then | |
18453 | ||
18454 | cat >>confdefs.h <<\_ACEOF | |
18455 | #define HAVE_CSIN 1 | |
18456 | _ACEOF | |
18457 | ||
18458 | fi | |
18459 | ||
18460 | echo "$as_me:$LINENO: checking for csinl in -lm" >&5 | |
18461 | echo $ECHO_N "checking for csinl in -lm... $ECHO_C" >&6 | |
18462 | if test "${ac_cv_lib_m_csinl+set}" = set; then | |
18463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18464 | else | |
18465 | ac_check_lib_save_LIBS=$LIBS | |
18466 | LIBS="-lm $LIBS" | |
18467 | if test x$gcc_no_link = xyes; then | |
18468 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18469 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18470 | { (exit 1); exit 1; }; } | |
18471 | fi | |
18472 | cat >conftest.$ac_ext <<_ACEOF | |
18473 | /* confdefs.h. */ | |
18474 | _ACEOF | |
18475 | cat confdefs.h >>conftest.$ac_ext | |
18476 | cat >>conftest.$ac_ext <<_ACEOF | |
18477 | /* end confdefs.h. */ | |
18478 | ||
18479 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18480 | #ifdef __cplusplus | |
18481 | extern "C" | |
18482 | #endif | |
18483 | /* We use char because int might match the return type of a gcc2 | |
18484 | builtin and then its argument prototype would still apply. */ | |
18485 | char csinl (); | |
18486 | int | |
18487 | main () | |
18488 | { | |
18489 | csinl (); | |
18490 | ; | |
18491 | return 0; | |
18492 | } | |
18493 | _ACEOF | |
18494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18496 | (eval $ac_link) 2>conftest.er1 | |
18497 | ac_status=$? | |
18498 | grep -v '^ *+' conftest.er1 >conftest.err | |
18499 | rm -f conftest.er1 | |
18500 | cat conftest.err >&5 | |
18501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18502 | (exit $ac_status); } && | |
57255173 PB |
18503 | { ac_try='test -z "$ac_c_werror_flag" |
18504 | || test ! -s conftest.err' | |
1409cd0b FXC |
18505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18506 | (eval $ac_try) 2>&5 | |
18507 | ac_status=$? | |
18508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18509 | (exit $ac_status); }; } && | |
18510 | { ac_try='test -s conftest$ac_exeext' | |
18511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18512 | (eval $ac_try) 2>&5 | |
18513 | ac_status=$? | |
18514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18515 | (exit $ac_status); }; }; then | |
18516 | ac_cv_lib_m_csinl=yes | |
18517 | else | |
18518 | echo "$as_me: failed program was:" >&5 | |
18519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18520 | ||
18521 | ac_cv_lib_m_csinl=no | |
18522 | fi | |
18523 | rm -f conftest.err conftest.$ac_objext \ | |
18524 | conftest$ac_exeext conftest.$ac_ext | |
18525 | LIBS=$ac_check_lib_save_LIBS | |
18526 | fi | |
18527 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinl" >&5 | |
18528 | echo "${ECHO_T}$ac_cv_lib_m_csinl" >&6 | |
18529 | if test $ac_cv_lib_m_csinl = yes; then | |
18530 | ||
18531 | cat >>confdefs.h <<\_ACEOF | |
18532 | #define HAVE_CSINL 1 | |
18533 | _ACEOF | |
18534 | ||
18535 | fi | |
18536 | ||
18537 | echo "$as_me:$LINENO: checking for sinhf in -lm" >&5 | |
18538 | echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6 | |
18539 | if test "${ac_cv_lib_m_sinhf+set}" = set; then | |
18540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18541 | else | |
18542 | ac_check_lib_save_LIBS=$LIBS | |
18543 | LIBS="-lm $LIBS" | |
18544 | if test x$gcc_no_link = xyes; then | |
18545 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18546 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18547 | { (exit 1); exit 1; }; } | |
18548 | fi | |
18549 | cat >conftest.$ac_ext <<_ACEOF | |
18550 | /* confdefs.h. */ | |
18551 | _ACEOF | |
18552 | cat confdefs.h >>conftest.$ac_ext | |
18553 | cat >>conftest.$ac_ext <<_ACEOF | |
18554 | /* end confdefs.h. */ | |
18555 | ||
18556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18557 | #ifdef __cplusplus | |
18558 | extern "C" | |
18559 | #endif | |
18560 | /* We use char because int might match the return type of a gcc2 | |
18561 | builtin and then its argument prototype would still apply. */ | |
18562 | char sinhf (); | |
18563 | int | |
18564 | main () | |
18565 | { | |
18566 | sinhf (); | |
18567 | ; | |
18568 | return 0; | |
18569 | } | |
18570 | _ACEOF | |
18571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18573 | (eval $ac_link) 2>conftest.er1 | |
18574 | ac_status=$? | |
18575 | grep -v '^ *+' conftest.er1 >conftest.err | |
18576 | rm -f conftest.er1 | |
18577 | cat conftest.err >&5 | |
18578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18579 | (exit $ac_status); } && | |
57255173 PB |
18580 | { ac_try='test -z "$ac_c_werror_flag" |
18581 | || test ! -s conftest.err' | |
1409cd0b FXC |
18582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18583 | (eval $ac_try) 2>&5 | |
18584 | ac_status=$? | |
18585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18586 | (exit $ac_status); }; } && | |
18587 | { ac_try='test -s conftest$ac_exeext' | |
18588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18589 | (eval $ac_try) 2>&5 | |
18590 | ac_status=$? | |
18591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18592 | (exit $ac_status); }; }; then | |
18593 | ac_cv_lib_m_sinhf=yes | |
18594 | else | |
18595 | echo "$as_me: failed program was:" >&5 | |
18596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18597 | ||
18598 | ac_cv_lib_m_sinhf=no | |
18599 | fi | |
18600 | rm -f conftest.err conftest.$ac_objext \ | |
18601 | conftest$ac_exeext conftest.$ac_ext | |
18602 | LIBS=$ac_check_lib_save_LIBS | |
18603 | fi | |
18604 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5 | |
18605 | echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6 | |
18606 | if test $ac_cv_lib_m_sinhf = yes; then | |
18607 | ||
18608 | cat >>confdefs.h <<\_ACEOF | |
18609 | #define HAVE_SINHF 1 | |
18610 | _ACEOF | |
18611 | ||
18612 | fi | |
18613 | ||
18614 | echo "$as_me:$LINENO: checking for sinh in -lm" >&5 | |
18615 | echo $ECHO_N "checking for sinh in -lm... $ECHO_C" >&6 | |
18616 | if test "${ac_cv_lib_m_sinh+set}" = set; then | |
18617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18618 | else | |
18619 | ac_check_lib_save_LIBS=$LIBS | |
18620 | LIBS="-lm $LIBS" | |
18621 | if test x$gcc_no_link = xyes; then | |
18622 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18623 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18624 | { (exit 1); exit 1; }; } | |
18625 | fi | |
18626 | cat >conftest.$ac_ext <<_ACEOF | |
18627 | /* confdefs.h. */ | |
18628 | _ACEOF | |
18629 | cat confdefs.h >>conftest.$ac_ext | |
18630 | cat >>conftest.$ac_ext <<_ACEOF | |
18631 | /* end confdefs.h. */ | |
18632 | ||
18633 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18634 | #ifdef __cplusplus | |
18635 | extern "C" | |
18636 | #endif | |
18637 | /* We use char because int might match the return type of a gcc2 | |
18638 | builtin and then its argument prototype would still apply. */ | |
18639 | char sinh (); | |
18640 | int | |
18641 | main () | |
18642 | { | |
18643 | sinh (); | |
18644 | ; | |
18645 | return 0; | |
18646 | } | |
18647 | _ACEOF | |
18648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18650 | (eval $ac_link) 2>conftest.er1 | |
18651 | ac_status=$? | |
18652 | grep -v '^ *+' conftest.er1 >conftest.err | |
18653 | rm -f conftest.er1 | |
18654 | cat conftest.err >&5 | |
18655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18656 | (exit $ac_status); } && | |
57255173 PB |
18657 | { ac_try='test -z "$ac_c_werror_flag" |
18658 | || test ! -s conftest.err' | |
1409cd0b FXC |
18659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18660 | (eval $ac_try) 2>&5 | |
18661 | ac_status=$? | |
18662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18663 | (exit $ac_status); }; } && | |
18664 | { ac_try='test -s conftest$ac_exeext' | |
18665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18666 | (eval $ac_try) 2>&5 | |
18667 | ac_status=$? | |
18668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18669 | (exit $ac_status); }; }; then | |
18670 | ac_cv_lib_m_sinh=yes | |
18671 | else | |
18672 | echo "$as_me: failed program was:" >&5 | |
18673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18674 | ||
18675 | ac_cv_lib_m_sinh=no | |
18676 | fi | |
18677 | rm -f conftest.err conftest.$ac_objext \ | |
18678 | conftest$ac_exeext conftest.$ac_ext | |
18679 | LIBS=$ac_check_lib_save_LIBS | |
18680 | fi | |
18681 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinh" >&5 | |
18682 | echo "${ECHO_T}$ac_cv_lib_m_sinh" >&6 | |
18683 | if test $ac_cv_lib_m_sinh = yes; then | |
18684 | ||
18685 | cat >>confdefs.h <<\_ACEOF | |
18686 | #define HAVE_SINH 1 | |
18687 | _ACEOF | |
18688 | ||
18689 | fi | |
18690 | ||
18691 | echo "$as_me:$LINENO: checking for sinhl in -lm" >&5 | |
18692 | echo $ECHO_N "checking for sinhl in -lm... $ECHO_C" >&6 | |
18693 | if test "${ac_cv_lib_m_sinhl+set}" = set; then | |
18694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18695 | else | |
18696 | ac_check_lib_save_LIBS=$LIBS | |
18697 | LIBS="-lm $LIBS" | |
18698 | if test x$gcc_no_link = xyes; then | |
18699 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18700 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18701 | { (exit 1); exit 1; }; } | |
18702 | fi | |
18703 | cat >conftest.$ac_ext <<_ACEOF | |
18704 | /* confdefs.h. */ | |
18705 | _ACEOF | |
18706 | cat confdefs.h >>conftest.$ac_ext | |
18707 | cat >>conftest.$ac_ext <<_ACEOF | |
18708 | /* end confdefs.h. */ | |
18709 | ||
18710 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18711 | #ifdef __cplusplus | |
18712 | extern "C" | |
18713 | #endif | |
18714 | /* We use char because int might match the return type of a gcc2 | |
18715 | builtin and then its argument prototype would still apply. */ | |
18716 | char sinhl (); | |
18717 | int | |
18718 | main () | |
18719 | { | |
18720 | sinhl (); | |
18721 | ; | |
18722 | return 0; | |
18723 | } | |
18724 | _ACEOF | |
18725 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18727 | (eval $ac_link) 2>conftest.er1 | |
18728 | ac_status=$? | |
18729 | grep -v '^ *+' conftest.er1 >conftest.err | |
18730 | rm -f conftest.er1 | |
18731 | cat conftest.err >&5 | |
18732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18733 | (exit $ac_status); } && | |
57255173 PB |
18734 | { ac_try='test -z "$ac_c_werror_flag" |
18735 | || test ! -s conftest.err' | |
1409cd0b FXC |
18736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18737 | (eval $ac_try) 2>&5 | |
18738 | ac_status=$? | |
18739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18740 | (exit $ac_status); }; } && | |
18741 | { ac_try='test -s conftest$ac_exeext' | |
18742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18743 | (eval $ac_try) 2>&5 | |
18744 | ac_status=$? | |
18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18746 | (exit $ac_status); }; }; then | |
18747 | ac_cv_lib_m_sinhl=yes | |
18748 | else | |
18749 | echo "$as_me: failed program was:" >&5 | |
18750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18751 | ||
18752 | ac_cv_lib_m_sinhl=no | |
18753 | fi | |
18754 | rm -f conftest.err conftest.$ac_objext \ | |
18755 | conftest$ac_exeext conftest.$ac_ext | |
18756 | LIBS=$ac_check_lib_save_LIBS | |
18757 | fi | |
18758 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhl" >&5 | |
18759 | echo "${ECHO_T}$ac_cv_lib_m_sinhl" >&6 | |
18760 | if test $ac_cv_lib_m_sinhl = yes; then | |
18761 | ||
18762 | cat >>confdefs.h <<\_ACEOF | |
18763 | #define HAVE_SINHL 1 | |
18764 | _ACEOF | |
18765 | ||
18766 | fi | |
18767 | ||
18768 | echo "$as_me:$LINENO: checking for csinhf in -lm" >&5 | |
18769 | echo $ECHO_N "checking for csinhf in -lm... $ECHO_C" >&6 | |
18770 | if test "${ac_cv_lib_m_csinhf+set}" = set; then | |
18771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18772 | else | |
18773 | ac_check_lib_save_LIBS=$LIBS | |
18774 | LIBS="-lm $LIBS" | |
18775 | if test x$gcc_no_link = xyes; then | |
18776 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18777 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18778 | { (exit 1); exit 1; }; } | |
18779 | fi | |
18780 | cat >conftest.$ac_ext <<_ACEOF | |
18781 | /* confdefs.h. */ | |
18782 | _ACEOF | |
18783 | cat confdefs.h >>conftest.$ac_ext | |
18784 | cat >>conftest.$ac_ext <<_ACEOF | |
18785 | /* end confdefs.h. */ | |
18786 | ||
18787 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18788 | #ifdef __cplusplus | |
18789 | extern "C" | |
18790 | #endif | |
18791 | /* We use char because int might match the return type of a gcc2 | |
18792 | builtin and then its argument prototype would still apply. */ | |
18793 | char csinhf (); | |
18794 | int | |
18795 | main () | |
18796 | { | |
18797 | csinhf (); | |
18798 | ; | |
18799 | return 0; | |
18800 | } | |
18801 | _ACEOF | |
18802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18804 | (eval $ac_link) 2>conftest.er1 | |
18805 | ac_status=$? | |
18806 | grep -v '^ *+' conftest.er1 >conftest.err | |
18807 | rm -f conftest.er1 | |
18808 | cat conftest.err >&5 | |
18809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18810 | (exit $ac_status); } && | |
57255173 PB |
18811 | { ac_try='test -z "$ac_c_werror_flag" |
18812 | || test ! -s conftest.err' | |
1409cd0b FXC |
18813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18814 | (eval $ac_try) 2>&5 | |
18815 | ac_status=$? | |
18816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18817 | (exit $ac_status); }; } && | |
18818 | { ac_try='test -s conftest$ac_exeext' | |
18819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18820 | (eval $ac_try) 2>&5 | |
18821 | ac_status=$? | |
18822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18823 | (exit $ac_status); }; }; then | |
18824 | ac_cv_lib_m_csinhf=yes | |
18825 | else | |
18826 | echo "$as_me: failed program was:" >&5 | |
18827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18828 | ||
18829 | ac_cv_lib_m_csinhf=no | |
18830 | fi | |
18831 | rm -f conftest.err conftest.$ac_objext \ | |
18832 | conftest$ac_exeext conftest.$ac_ext | |
18833 | LIBS=$ac_check_lib_save_LIBS | |
18834 | fi | |
18835 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhf" >&5 | |
18836 | echo "${ECHO_T}$ac_cv_lib_m_csinhf" >&6 | |
18837 | if test $ac_cv_lib_m_csinhf = yes; then | |
18838 | ||
18839 | cat >>confdefs.h <<\_ACEOF | |
18840 | #define HAVE_CSINHF 1 | |
18841 | _ACEOF | |
18842 | ||
18843 | fi | |
18844 | ||
18845 | echo "$as_me:$LINENO: checking for csinh in -lm" >&5 | |
18846 | echo $ECHO_N "checking for csinh in -lm... $ECHO_C" >&6 | |
18847 | if test "${ac_cv_lib_m_csinh+set}" = set; then | |
18848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18849 | else | |
18850 | ac_check_lib_save_LIBS=$LIBS | |
18851 | LIBS="-lm $LIBS" | |
18852 | if test x$gcc_no_link = xyes; then | |
18853 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18854 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18855 | { (exit 1); exit 1; }; } | |
18856 | fi | |
18857 | cat >conftest.$ac_ext <<_ACEOF | |
18858 | /* confdefs.h. */ | |
18859 | _ACEOF | |
18860 | cat confdefs.h >>conftest.$ac_ext | |
18861 | cat >>conftest.$ac_ext <<_ACEOF | |
18862 | /* end confdefs.h. */ | |
18863 | ||
18864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18865 | #ifdef __cplusplus | |
18866 | extern "C" | |
18867 | #endif | |
18868 | /* We use char because int might match the return type of a gcc2 | |
18869 | builtin and then its argument prototype would still apply. */ | |
18870 | char csinh (); | |
18871 | int | |
18872 | main () | |
18873 | { | |
18874 | csinh (); | |
18875 | ; | |
18876 | return 0; | |
18877 | } | |
18878 | _ACEOF | |
18879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18881 | (eval $ac_link) 2>conftest.er1 | |
18882 | ac_status=$? | |
18883 | grep -v '^ *+' conftest.er1 >conftest.err | |
18884 | rm -f conftest.er1 | |
18885 | cat conftest.err >&5 | |
18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18887 | (exit $ac_status); } && | |
57255173 PB |
18888 | { ac_try='test -z "$ac_c_werror_flag" |
18889 | || test ! -s conftest.err' | |
1409cd0b FXC |
18890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18891 | (eval $ac_try) 2>&5 | |
18892 | ac_status=$? | |
18893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18894 | (exit $ac_status); }; } && | |
18895 | { ac_try='test -s conftest$ac_exeext' | |
18896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18897 | (eval $ac_try) 2>&5 | |
18898 | ac_status=$? | |
18899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18900 | (exit $ac_status); }; }; then | |
18901 | ac_cv_lib_m_csinh=yes | |
18902 | else | |
18903 | echo "$as_me: failed program was:" >&5 | |
18904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18905 | ||
18906 | ac_cv_lib_m_csinh=no | |
18907 | fi | |
18908 | rm -f conftest.err conftest.$ac_objext \ | |
18909 | conftest$ac_exeext conftest.$ac_ext | |
18910 | LIBS=$ac_check_lib_save_LIBS | |
18911 | fi | |
18912 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinh" >&5 | |
18913 | echo "${ECHO_T}$ac_cv_lib_m_csinh" >&6 | |
18914 | if test $ac_cv_lib_m_csinh = yes; then | |
18915 | ||
18916 | cat >>confdefs.h <<\_ACEOF | |
18917 | #define HAVE_CSINH 1 | |
18918 | _ACEOF | |
18919 | ||
18920 | fi | |
18921 | ||
18922 | echo "$as_me:$LINENO: checking for csinhl in -lm" >&5 | |
18923 | echo $ECHO_N "checking for csinhl in -lm... $ECHO_C" >&6 | |
18924 | if test "${ac_cv_lib_m_csinhl+set}" = set; then | |
18925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18926 | else | |
18927 | ac_check_lib_save_LIBS=$LIBS | |
18928 | LIBS="-lm $LIBS" | |
18929 | if test x$gcc_no_link = xyes; then | |
18930 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18931 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18932 | { (exit 1); exit 1; }; } | |
18933 | fi | |
18934 | cat >conftest.$ac_ext <<_ACEOF | |
18935 | /* confdefs.h. */ | |
18936 | _ACEOF | |
18937 | cat confdefs.h >>conftest.$ac_ext | |
18938 | cat >>conftest.$ac_ext <<_ACEOF | |
18939 | /* end confdefs.h. */ | |
18940 | ||
18941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18942 | #ifdef __cplusplus | |
18943 | extern "C" | |
18944 | #endif | |
18945 | /* We use char because int might match the return type of a gcc2 | |
18946 | builtin and then its argument prototype would still apply. */ | |
18947 | char csinhl (); | |
18948 | int | |
18949 | main () | |
18950 | { | |
18951 | csinhl (); | |
18952 | ; | |
18953 | return 0; | |
18954 | } | |
18955 | _ACEOF | |
18956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18958 | (eval $ac_link) 2>conftest.er1 | |
18959 | ac_status=$? | |
18960 | grep -v '^ *+' conftest.er1 >conftest.err | |
18961 | rm -f conftest.er1 | |
18962 | cat conftest.err >&5 | |
18963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18964 | (exit $ac_status); } && | |
57255173 PB |
18965 | { ac_try='test -z "$ac_c_werror_flag" |
18966 | || test ! -s conftest.err' | |
1409cd0b FXC |
18967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18968 | (eval $ac_try) 2>&5 | |
18969 | ac_status=$? | |
18970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18971 | (exit $ac_status); }; } && | |
18972 | { ac_try='test -s conftest$ac_exeext' | |
18973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18974 | (eval $ac_try) 2>&5 | |
18975 | ac_status=$? | |
18976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18977 | (exit $ac_status); }; }; then | |
18978 | ac_cv_lib_m_csinhl=yes | |
18979 | else | |
18980 | echo "$as_me: failed program was:" >&5 | |
18981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18982 | ||
18983 | ac_cv_lib_m_csinhl=no | |
18984 | fi | |
18985 | rm -f conftest.err conftest.$ac_objext \ | |
18986 | conftest$ac_exeext conftest.$ac_ext | |
18987 | LIBS=$ac_check_lib_save_LIBS | |
18988 | fi | |
18989 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhl" >&5 | |
18990 | echo "${ECHO_T}$ac_cv_lib_m_csinhl" >&6 | |
18991 | if test $ac_cv_lib_m_csinhl = yes; then | |
18992 | ||
18993 | cat >>confdefs.h <<\_ACEOF | |
18994 | #define HAVE_CSINHL 1 | |
18995 | _ACEOF | |
18996 | ||
18997 | fi | |
18998 | ||
18999 | echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5 | |
19000 | echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6 | |
19001 | if test "${ac_cv_lib_m_sqrtf+set}" = set; then | |
19002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19003 | else | |
19004 | ac_check_lib_save_LIBS=$LIBS | |
19005 | LIBS="-lm $LIBS" | |
19006 | if test x$gcc_no_link = xyes; then | |
19007 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19008 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19009 | { (exit 1); exit 1; }; } | |
19010 | fi | |
19011 | cat >conftest.$ac_ext <<_ACEOF | |
19012 | /* confdefs.h. */ | |
19013 | _ACEOF | |
19014 | cat confdefs.h >>conftest.$ac_ext | |
19015 | cat >>conftest.$ac_ext <<_ACEOF | |
19016 | /* end confdefs.h. */ | |
19017 | ||
19018 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19019 | #ifdef __cplusplus | |
19020 | extern "C" | |
19021 | #endif | |
19022 | /* We use char because int might match the return type of a gcc2 | |
19023 | builtin and then its argument prototype would still apply. */ | |
19024 | char sqrtf (); | |
19025 | int | |
19026 | main () | |
19027 | { | |
19028 | sqrtf (); | |
19029 | ; | |
19030 | return 0; | |
19031 | } | |
19032 | _ACEOF | |
19033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19035 | (eval $ac_link) 2>conftest.er1 | |
19036 | ac_status=$? | |
19037 | grep -v '^ *+' conftest.er1 >conftest.err | |
19038 | rm -f conftest.er1 | |
19039 | cat conftest.err >&5 | |
19040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19041 | (exit $ac_status); } && | |
57255173 PB |
19042 | { ac_try='test -z "$ac_c_werror_flag" |
19043 | || test ! -s conftest.err' | |
1409cd0b FXC |
19044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19045 | (eval $ac_try) 2>&5 | |
19046 | ac_status=$? | |
19047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19048 | (exit $ac_status); }; } && | |
19049 | { ac_try='test -s conftest$ac_exeext' | |
19050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19051 | (eval $ac_try) 2>&5 | |
19052 | ac_status=$? | |
19053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19054 | (exit $ac_status); }; }; then | |
19055 | ac_cv_lib_m_sqrtf=yes | |
19056 | else | |
19057 | echo "$as_me: failed program was:" >&5 | |
19058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19059 | ||
19060 | ac_cv_lib_m_sqrtf=no | |
19061 | fi | |
19062 | rm -f conftest.err conftest.$ac_objext \ | |
19063 | conftest$ac_exeext conftest.$ac_ext | |
19064 | LIBS=$ac_check_lib_save_LIBS | |
19065 | fi | |
19066 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5 | |
19067 | echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6 | |
19068 | if test $ac_cv_lib_m_sqrtf = yes; then | |
19069 | ||
19070 | cat >>confdefs.h <<\_ACEOF | |
19071 | #define HAVE_SQRTF 1 | |
19072 | _ACEOF | |
19073 | ||
19074 | fi | |
19075 | ||
19076 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 | |
19077 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 | |
19078 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
19079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19080 | else | |
19081 | ac_check_lib_save_LIBS=$LIBS | |
19082 | LIBS="-lm $LIBS" | |
19083 | if test x$gcc_no_link = xyes; then | |
19084 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19085 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19086 | { (exit 1); exit 1; }; } | |
19087 | fi | |
19088 | cat >conftest.$ac_ext <<_ACEOF | |
19089 | /* confdefs.h. */ | |
19090 | _ACEOF | |
19091 | cat confdefs.h >>conftest.$ac_ext | |
19092 | cat >>conftest.$ac_ext <<_ACEOF | |
19093 | /* end confdefs.h. */ | |
19094 | ||
19095 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19096 | #ifdef __cplusplus | |
19097 | extern "C" | |
19098 | #endif | |
19099 | /* We use char because int might match the return type of a gcc2 | |
19100 | builtin and then its argument prototype would still apply. */ | |
19101 | char sqrt (); | |
19102 | int | |
19103 | main () | |
19104 | { | |
19105 | sqrt (); | |
19106 | ; | |
19107 | return 0; | |
19108 | } | |
19109 | _ACEOF | |
19110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19112 | (eval $ac_link) 2>conftest.er1 | |
19113 | ac_status=$? | |
19114 | grep -v '^ *+' conftest.er1 >conftest.err | |
19115 | rm -f conftest.er1 | |
19116 | cat conftest.err >&5 | |
19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19118 | (exit $ac_status); } && | |
57255173 PB |
19119 | { ac_try='test -z "$ac_c_werror_flag" |
19120 | || test ! -s conftest.err' | |
1409cd0b FXC |
19121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19122 | (eval $ac_try) 2>&5 | |
19123 | ac_status=$? | |
19124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19125 | (exit $ac_status); }; } && | |
19126 | { ac_try='test -s conftest$ac_exeext' | |
19127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19128 | (eval $ac_try) 2>&5 | |
19129 | ac_status=$? | |
19130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19131 | (exit $ac_status); }; }; then | |
19132 | ac_cv_lib_m_sqrt=yes | |
19133 | else | |
19134 | echo "$as_me: failed program was:" >&5 | |
19135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19136 | ||
19137 | ac_cv_lib_m_sqrt=no | |
19138 | fi | |
19139 | rm -f conftest.err conftest.$ac_objext \ | |
19140 | conftest$ac_exeext conftest.$ac_ext | |
19141 | LIBS=$ac_check_lib_save_LIBS | |
19142 | fi | |
19143 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 | |
19144 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 | |
19145 | if test $ac_cv_lib_m_sqrt = yes; then | |
19146 | ||
19147 | cat >>confdefs.h <<\_ACEOF | |
19148 | #define HAVE_SQRT 1 | |
19149 | _ACEOF | |
19150 | ||
19151 | fi | |
19152 | ||
19153 | echo "$as_me:$LINENO: checking for sqrtl in -lm" >&5 | |
19154 | echo $ECHO_N "checking for sqrtl in -lm... $ECHO_C" >&6 | |
19155 | if test "${ac_cv_lib_m_sqrtl+set}" = set; then | |
19156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19157 | else | |
19158 | ac_check_lib_save_LIBS=$LIBS | |
19159 | LIBS="-lm $LIBS" | |
19160 | if test x$gcc_no_link = xyes; then | |
19161 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19162 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19163 | { (exit 1); exit 1; }; } | |
19164 | fi | |
19165 | cat >conftest.$ac_ext <<_ACEOF | |
19166 | /* confdefs.h. */ | |
19167 | _ACEOF | |
19168 | cat confdefs.h >>conftest.$ac_ext | |
19169 | cat >>conftest.$ac_ext <<_ACEOF | |
19170 | /* end confdefs.h. */ | |
19171 | ||
19172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19173 | #ifdef __cplusplus | |
19174 | extern "C" | |
19175 | #endif | |
19176 | /* We use char because int might match the return type of a gcc2 | |
19177 | builtin and then its argument prototype would still apply. */ | |
19178 | char sqrtl (); | |
19179 | int | |
19180 | main () | |
19181 | { | |
19182 | sqrtl (); | |
19183 | ; | |
19184 | return 0; | |
19185 | } | |
19186 | _ACEOF | |
19187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19189 | (eval $ac_link) 2>conftest.er1 | |
19190 | ac_status=$? | |
19191 | grep -v '^ *+' conftest.er1 >conftest.err | |
19192 | rm -f conftest.er1 | |
19193 | cat conftest.err >&5 | |
19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19195 | (exit $ac_status); } && | |
57255173 PB |
19196 | { ac_try='test -z "$ac_c_werror_flag" |
19197 | || test ! -s conftest.err' | |
1409cd0b FXC |
19198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19199 | (eval $ac_try) 2>&5 | |
19200 | ac_status=$? | |
19201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19202 | (exit $ac_status); }; } && | |
19203 | { ac_try='test -s conftest$ac_exeext' | |
19204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19205 | (eval $ac_try) 2>&5 | |
19206 | ac_status=$? | |
19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19208 | (exit $ac_status); }; }; then | |
19209 | ac_cv_lib_m_sqrtl=yes | |
19210 | else | |
19211 | echo "$as_me: failed program was:" >&5 | |
19212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19213 | ||
19214 | ac_cv_lib_m_sqrtl=no | |
19215 | fi | |
19216 | rm -f conftest.err conftest.$ac_objext \ | |
19217 | conftest$ac_exeext conftest.$ac_ext | |
19218 | LIBS=$ac_check_lib_save_LIBS | |
19219 | fi | |
19220 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtl" >&5 | |
19221 | echo "${ECHO_T}$ac_cv_lib_m_sqrtl" >&6 | |
19222 | if test $ac_cv_lib_m_sqrtl = yes; then | |
19223 | ||
19224 | cat >>confdefs.h <<\_ACEOF | |
19225 | #define HAVE_SQRTL 1 | |
19226 | _ACEOF | |
19227 | ||
19228 | fi | |
19229 | ||
19230 | echo "$as_me:$LINENO: checking for csqrtf in -lm" >&5 | |
19231 | echo $ECHO_N "checking for csqrtf in -lm... $ECHO_C" >&6 | |
19232 | if test "${ac_cv_lib_m_csqrtf+set}" = set; then | |
19233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19234 | else | |
19235 | ac_check_lib_save_LIBS=$LIBS | |
19236 | LIBS="-lm $LIBS" | |
19237 | if test x$gcc_no_link = xyes; then | |
19238 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19239 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19240 | { (exit 1); exit 1; }; } | |
19241 | fi | |
19242 | cat >conftest.$ac_ext <<_ACEOF | |
19243 | /* confdefs.h. */ | |
19244 | _ACEOF | |
19245 | cat confdefs.h >>conftest.$ac_ext | |
19246 | cat >>conftest.$ac_ext <<_ACEOF | |
19247 | /* end confdefs.h. */ | |
19248 | ||
19249 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19250 | #ifdef __cplusplus | |
19251 | extern "C" | |
19252 | #endif | |
19253 | /* We use char because int might match the return type of a gcc2 | |
19254 | builtin and then its argument prototype would still apply. */ | |
19255 | char csqrtf (); | |
19256 | int | |
19257 | main () | |
19258 | { | |
19259 | csqrtf (); | |
19260 | ; | |
19261 | return 0; | |
19262 | } | |
19263 | _ACEOF | |
19264 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19266 | (eval $ac_link) 2>conftest.er1 | |
19267 | ac_status=$? | |
19268 | grep -v '^ *+' conftest.er1 >conftest.err | |
19269 | rm -f conftest.er1 | |
19270 | cat conftest.err >&5 | |
19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19272 | (exit $ac_status); } && | |
57255173 PB |
19273 | { ac_try='test -z "$ac_c_werror_flag" |
19274 | || test ! -s conftest.err' | |
1409cd0b FXC |
19275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19276 | (eval $ac_try) 2>&5 | |
19277 | ac_status=$? | |
19278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19279 | (exit $ac_status); }; } && | |
19280 | { ac_try='test -s conftest$ac_exeext' | |
19281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19282 | (eval $ac_try) 2>&5 | |
19283 | ac_status=$? | |
19284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19285 | (exit $ac_status); }; }; then | |
19286 | ac_cv_lib_m_csqrtf=yes | |
19287 | else | |
19288 | echo "$as_me: failed program was:" >&5 | |
19289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19290 | ||
19291 | ac_cv_lib_m_csqrtf=no | |
19292 | fi | |
19293 | rm -f conftest.err conftest.$ac_objext \ | |
19294 | conftest$ac_exeext conftest.$ac_ext | |
19295 | LIBS=$ac_check_lib_save_LIBS | |
19296 | fi | |
19297 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtf" >&5 | |
19298 | echo "${ECHO_T}$ac_cv_lib_m_csqrtf" >&6 | |
19299 | if test $ac_cv_lib_m_csqrtf = yes; then | |
19300 | ||
19301 | cat >>confdefs.h <<\_ACEOF | |
19302 | #define HAVE_CSQRTF 1 | |
19303 | _ACEOF | |
19304 | ||
19305 | fi | |
19306 | ||
19307 | echo "$as_me:$LINENO: checking for csqrt in -lm" >&5 | |
19308 | echo $ECHO_N "checking for csqrt in -lm... $ECHO_C" >&6 | |
19309 | if test "${ac_cv_lib_m_csqrt+set}" = set; then | |
19310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19311 | else | |
19312 | ac_check_lib_save_LIBS=$LIBS | |
19313 | LIBS="-lm $LIBS" | |
19314 | if test x$gcc_no_link = xyes; then | |
19315 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19316 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19317 | { (exit 1); exit 1; }; } | |
19318 | fi | |
19319 | cat >conftest.$ac_ext <<_ACEOF | |
19320 | /* confdefs.h. */ | |
19321 | _ACEOF | |
19322 | cat confdefs.h >>conftest.$ac_ext | |
19323 | cat >>conftest.$ac_ext <<_ACEOF | |
19324 | /* end confdefs.h. */ | |
19325 | ||
19326 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19327 | #ifdef __cplusplus | |
19328 | extern "C" | |
19329 | #endif | |
19330 | /* We use char because int might match the return type of a gcc2 | |
19331 | builtin and then its argument prototype would still apply. */ | |
19332 | char csqrt (); | |
19333 | int | |
19334 | main () | |
19335 | { | |
19336 | csqrt (); | |
19337 | ; | |
19338 | return 0; | |
19339 | } | |
19340 | _ACEOF | |
19341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19343 | (eval $ac_link) 2>conftest.er1 | |
19344 | ac_status=$? | |
19345 | grep -v '^ *+' conftest.er1 >conftest.err | |
19346 | rm -f conftest.er1 | |
19347 | cat conftest.err >&5 | |
19348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19349 | (exit $ac_status); } && | |
57255173 PB |
19350 | { ac_try='test -z "$ac_c_werror_flag" |
19351 | || test ! -s conftest.err' | |
1409cd0b FXC |
19352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19353 | (eval $ac_try) 2>&5 | |
19354 | ac_status=$? | |
19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19356 | (exit $ac_status); }; } && | |
19357 | { ac_try='test -s conftest$ac_exeext' | |
19358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19359 | (eval $ac_try) 2>&5 | |
19360 | ac_status=$? | |
19361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19362 | (exit $ac_status); }; }; then | |
19363 | ac_cv_lib_m_csqrt=yes | |
19364 | else | |
19365 | echo "$as_me: failed program was:" >&5 | |
19366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19367 | ||
19368 | ac_cv_lib_m_csqrt=no | |
19369 | fi | |
19370 | rm -f conftest.err conftest.$ac_objext \ | |
19371 | conftest$ac_exeext conftest.$ac_ext | |
19372 | LIBS=$ac_check_lib_save_LIBS | |
19373 | fi | |
19374 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrt" >&5 | |
19375 | echo "${ECHO_T}$ac_cv_lib_m_csqrt" >&6 | |
19376 | if test $ac_cv_lib_m_csqrt = yes; then | |
19377 | ||
19378 | cat >>confdefs.h <<\_ACEOF | |
19379 | #define HAVE_CSQRT 1 | |
19380 | _ACEOF | |
19381 | ||
19382 | fi | |
19383 | ||
19384 | echo "$as_me:$LINENO: checking for csqrtl in -lm" >&5 | |
19385 | echo $ECHO_N "checking for csqrtl in -lm... $ECHO_C" >&6 | |
19386 | if test "${ac_cv_lib_m_csqrtl+set}" = set; then | |
19387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19388 | else | |
19389 | ac_check_lib_save_LIBS=$LIBS | |
19390 | LIBS="-lm $LIBS" | |
19391 | if test x$gcc_no_link = xyes; then | |
19392 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19393 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19394 | { (exit 1); exit 1; }; } | |
19395 | fi | |
19396 | cat >conftest.$ac_ext <<_ACEOF | |
19397 | /* confdefs.h. */ | |
19398 | _ACEOF | |
19399 | cat confdefs.h >>conftest.$ac_ext | |
19400 | cat >>conftest.$ac_ext <<_ACEOF | |
19401 | /* end confdefs.h. */ | |
19402 | ||
19403 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19404 | #ifdef __cplusplus | |
19405 | extern "C" | |
19406 | #endif | |
19407 | /* We use char because int might match the return type of a gcc2 | |
19408 | builtin and then its argument prototype would still apply. */ | |
19409 | char csqrtl (); | |
19410 | int | |
19411 | main () | |
19412 | { | |
19413 | csqrtl (); | |
19414 | ; | |
19415 | return 0; | |
19416 | } | |
19417 | _ACEOF | |
19418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19420 | (eval $ac_link) 2>conftest.er1 | |
19421 | ac_status=$? | |
19422 | grep -v '^ *+' conftest.er1 >conftest.err | |
19423 | rm -f conftest.er1 | |
19424 | cat conftest.err >&5 | |
19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19426 | (exit $ac_status); } && | |
57255173 PB |
19427 | { ac_try='test -z "$ac_c_werror_flag" |
19428 | || test ! -s conftest.err' | |
1409cd0b FXC |
19429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19430 | (eval $ac_try) 2>&5 | |
19431 | ac_status=$? | |
19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19433 | (exit $ac_status); }; } && | |
19434 | { ac_try='test -s conftest$ac_exeext' | |
19435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19436 | (eval $ac_try) 2>&5 | |
19437 | ac_status=$? | |
19438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19439 | (exit $ac_status); }; }; then | |
19440 | ac_cv_lib_m_csqrtl=yes | |
19441 | else | |
19442 | echo "$as_me: failed program was:" >&5 | |
19443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19444 | ||
19445 | ac_cv_lib_m_csqrtl=no | |
19446 | fi | |
19447 | rm -f conftest.err conftest.$ac_objext \ | |
19448 | conftest$ac_exeext conftest.$ac_ext | |
19449 | LIBS=$ac_check_lib_save_LIBS | |
19450 | fi | |
19451 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtl" >&5 | |
19452 | echo "${ECHO_T}$ac_cv_lib_m_csqrtl" >&6 | |
19453 | if test $ac_cv_lib_m_csqrtl = yes; then | |
19454 | ||
19455 | cat >>confdefs.h <<\_ACEOF | |
19456 | #define HAVE_CSQRTL 1 | |
19457 | _ACEOF | |
19458 | ||
19459 | fi | |
19460 | ||
19461 | echo "$as_me:$LINENO: checking for tanf in -lm" >&5 | |
19462 | echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6 | |
19463 | if test "${ac_cv_lib_m_tanf+set}" = set; then | |
19464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19465 | else | |
19466 | ac_check_lib_save_LIBS=$LIBS | |
19467 | LIBS="-lm $LIBS" | |
19468 | if test x$gcc_no_link = xyes; then | |
19469 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19470 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19471 | { (exit 1); exit 1; }; } | |
19472 | fi | |
19473 | cat >conftest.$ac_ext <<_ACEOF | |
19474 | /* confdefs.h. */ | |
19475 | _ACEOF | |
19476 | cat confdefs.h >>conftest.$ac_ext | |
19477 | cat >>conftest.$ac_ext <<_ACEOF | |
19478 | /* end confdefs.h. */ | |
19479 | ||
19480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19481 | #ifdef __cplusplus | |
19482 | extern "C" | |
19483 | #endif | |
19484 | /* We use char because int might match the return type of a gcc2 | |
19485 | builtin and then its argument prototype would still apply. */ | |
19486 | char tanf (); | |
19487 | int | |
19488 | main () | |
19489 | { | |
19490 | tanf (); | |
19491 | ; | |
19492 | return 0; | |
19493 | } | |
19494 | _ACEOF | |
19495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19497 | (eval $ac_link) 2>conftest.er1 | |
19498 | ac_status=$? | |
19499 | grep -v '^ *+' conftest.er1 >conftest.err | |
19500 | rm -f conftest.er1 | |
19501 | cat conftest.err >&5 | |
19502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19503 | (exit $ac_status); } && | |
57255173 PB |
19504 | { ac_try='test -z "$ac_c_werror_flag" |
19505 | || test ! -s conftest.err' | |
1409cd0b FXC |
19506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19507 | (eval $ac_try) 2>&5 | |
19508 | ac_status=$? | |
19509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19510 | (exit $ac_status); }; } && | |
19511 | { ac_try='test -s conftest$ac_exeext' | |
19512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19513 | (eval $ac_try) 2>&5 | |
19514 | ac_status=$? | |
19515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19516 | (exit $ac_status); }; }; then | |
19517 | ac_cv_lib_m_tanf=yes | |
19518 | else | |
19519 | echo "$as_me: failed program was:" >&5 | |
19520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19521 | ||
19522 | ac_cv_lib_m_tanf=no | |
19523 | fi | |
19524 | rm -f conftest.err conftest.$ac_objext \ | |
19525 | conftest$ac_exeext conftest.$ac_ext | |
19526 | LIBS=$ac_check_lib_save_LIBS | |
19527 | fi | |
19528 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5 | |
19529 | echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6 | |
19530 | if test $ac_cv_lib_m_tanf = yes; then | |
19531 | ||
19532 | cat >>confdefs.h <<\_ACEOF | |
19533 | #define HAVE_TANF 1 | |
19534 | _ACEOF | |
19535 | ||
19536 | fi | |
19537 | ||
19538 | echo "$as_me:$LINENO: checking for tan in -lm" >&5 | |
19539 | echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6 | |
19540 | if test "${ac_cv_lib_m_tan+set}" = set; then | |
19541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19542 | else | |
19543 | ac_check_lib_save_LIBS=$LIBS | |
19544 | LIBS="-lm $LIBS" | |
19545 | if test x$gcc_no_link = xyes; then | |
19546 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19547 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19548 | { (exit 1); exit 1; }; } | |
19549 | fi | |
19550 | cat >conftest.$ac_ext <<_ACEOF | |
19551 | /* confdefs.h. */ | |
19552 | _ACEOF | |
19553 | cat confdefs.h >>conftest.$ac_ext | |
19554 | cat >>conftest.$ac_ext <<_ACEOF | |
19555 | /* end confdefs.h. */ | |
19556 | ||
19557 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19558 | #ifdef __cplusplus | |
19559 | extern "C" | |
19560 | #endif | |
19561 | /* We use char because int might match the return type of a gcc2 | |
19562 | builtin and then its argument prototype would still apply. */ | |
19563 | char tan (); | |
19564 | int | |
19565 | main () | |
19566 | { | |
19567 | tan (); | |
19568 | ; | |
19569 | return 0; | |
19570 | } | |
19571 | _ACEOF | |
19572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19574 | (eval $ac_link) 2>conftest.er1 | |
19575 | ac_status=$? | |
19576 | grep -v '^ *+' conftest.er1 >conftest.err | |
19577 | rm -f conftest.er1 | |
19578 | cat conftest.err >&5 | |
19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19580 | (exit $ac_status); } && | |
57255173 PB |
19581 | { ac_try='test -z "$ac_c_werror_flag" |
19582 | || test ! -s conftest.err' | |
1409cd0b FXC |
19583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19584 | (eval $ac_try) 2>&5 | |
19585 | ac_status=$? | |
19586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19587 | (exit $ac_status); }; } && | |
19588 | { ac_try='test -s conftest$ac_exeext' | |
19589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19590 | (eval $ac_try) 2>&5 | |
19591 | ac_status=$? | |
19592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19593 | (exit $ac_status); }; }; then | |
19594 | ac_cv_lib_m_tan=yes | |
19595 | else | |
19596 | echo "$as_me: failed program was:" >&5 | |
19597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19598 | ||
19599 | ac_cv_lib_m_tan=no | |
19600 | fi | |
19601 | rm -f conftest.err conftest.$ac_objext \ | |
19602 | conftest$ac_exeext conftest.$ac_ext | |
19603 | LIBS=$ac_check_lib_save_LIBS | |
19604 | fi | |
19605 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5 | |
19606 | echo "${ECHO_T}$ac_cv_lib_m_tan" >&6 | |
19607 | if test $ac_cv_lib_m_tan = yes; then | |
19608 | ||
19609 | cat >>confdefs.h <<\_ACEOF | |
19610 | #define HAVE_TAN 1 | |
19611 | _ACEOF | |
19612 | ||
19613 | fi | |
19614 | ||
19615 | echo "$as_me:$LINENO: checking for tanl in -lm" >&5 | |
19616 | echo $ECHO_N "checking for tanl in -lm... $ECHO_C" >&6 | |
19617 | if test "${ac_cv_lib_m_tanl+set}" = set; then | |
19618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19619 | else | |
19620 | ac_check_lib_save_LIBS=$LIBS | |
19621 | LIBS="-lm $LIBS" | |
19622 | if test x$gcc_no_link = xyes; then | |
19623 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19624 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19625 | { (exit 1); exit 1; }; } | |
19626 | fi | |
19627 | cat >conftest.$ac_ext <<_ACEOF | |
19628 | /* confdefs.h. */ | |
19629 | _ACEOF | |
19630 | cat confdefs.h >>conftest.$ac_ext | |
19631 | cat >>conftest.$ac_ext <<_ACEOF | |
19632 | /* end confdefs.h. */ | |
19633 | ||
19634 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19635 | #ifdef __cplusplus | |
19636 | extern "C" | |
19637 | #endif | |
19638 | /* We use char because int might match the return type of a gcc2 | |
19639 | builtin and then its argument prototype would still apply. */ | |
19640 | char tanl (); | |
19641 | int | |
19642 | main () | |
19643 | { | |
19644 | tanl (); | |
19645 | ; | |
19646 | return 0; | |
19647 | } | |
19648 | _ACEOF | |
19649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19651 | (eval $ac_link) 2>conftest.er1 | |
19652 | ac_status=$? | |
19653 | grep -v '^ *+' conftest.er1 >conftest.err | |
19654 | rm -f conftest.er1 | |
19655 | cat conftest.err >&5 | |
19656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19657 | (exit $ac_status); } && | |
57255173 PB |
19658 | { ac_try='test -z "$ac_c_werror_flag" |
19659 | || test ! -s conftest.err' | |
1409cd0b FXC |
19660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19661 | (eval $ac_try) 2>&5 | |
19662 | ac_status=$? | |
19663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19664 | (exit $ac_status); }; } && | |
19665 | { ac_try='test -s conftest$ac_exeext' | |
19666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19667 | (eval $ac_try) 2>&5 | |
19668 | ac_status=$? | |
19669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19670 | (exit $ac_status); }; }; then | |
19671 | ac_cv_lib_m_tanl=yes | |
19672 | else | |
19673 | echo "$as_me: failed program was:" >&5 | |
19674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19675 | ||
19676 | ac_cv_lib_m_tanl=no | |
19677 | fi | |
19678 | rm -f conftest.err conftest.$ac_objext \ | |
19679 | conftest$ac_exeext conftest.$ac_ext | |
19680 | LIBS=$ac_check_lib_save_LIBS | |
19681 | fi | |
19682 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanl" >&5 | |
19683 | echo "${ECHO_T}$ac_cv_lib_m_tanl" >&6 | |
19684 | if test $ac_cv_lib_m_tanl = yes; then | |
19685 | ||
19686 | cat >>confdefs.h <<\_ACEOF | |
19687 | #define HAVE_TANL 1 | |
19688 | _ACEOF | |
19689 | ||
19690 | fi | |
19691 | ||
19692 | echo "$as_me:$LINENO: checking for ctanf in -lm" >&5 | |
19693 | echo $ECHO_N "checking for ctanf in -lm... $ECHO_C" >&6 | |
19694 | if test "${ac_cv_lib_m_ctanf+set}" = set; then | |
19695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19696 | else | |
19697 | ac_check_lib_save_LIBS=$LIBS | |
19698 | LIBS="-lm $LIBS" | |
19699 | if test x$gcc_no_link = xyes; then | |
19700 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19701 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19702 | { (exit 1); exit 1; }; } | |
19703 | fi | |
19704 | cat >conftest.$ac_ext <<_ACEOF | |
19705 | /* confdefs.h. */ | |
19706 | _ACEOF | |
19707 | cat confdefs.h >>conftest.$ac_ext | |
19708 | cat >>conftest.$ac_ext <<_ACEOF | |
19709 | /* end confdefs.h. */ | |
19710 | ||
19711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19712 | #ifdef __cplusplus | |
19713 | extern "C" | |
19714 | #endif | |
19715 | /* We use char because int might match the return type of a gcc2 | |
19716 | builtin and then its argument prototype would still apply. */ | |
19717 | char ctanf (); | |
19718 | int | |
19719 | main () | |
19720 | { | |
19721 | ctanf (); | |
19722 | ; | |
19723 | return 0; | |
19724 | } | |
19725 | _ACEOF | |
19726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19728 | (eval $ac_link) 2>conftest.er1 | |
19729 | ac_status=$? | |
19730 | grep -v '^ *+' conftest.er1 >conftest.err | |
19731 | rm -f conftest.er1 | |
19732 | cat conftest.err >&5 | |
19733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19734 | (exit $ac_status); } && | |
57255173 PB |
19735 | { ac_try='test -z "$ac_c_werror_flag" |
19736 | || test ! -s conftest.err' | |
1409cd0b FXC |
19737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19738 | (eval $ac_try) 2>&5 | |
19739 | ac_status=$? | |
19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19741 | (exit $ac_status); }; } && | |
19742 | { ac_try='test -s conftest$ac_exeext' | |
19743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19744 | (eval $ac_try) 2>&5 | |
19745 | ac_status=$? | |
19746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19747 | (exit $ac_status); }; }; then | |
19748 | ac_cv_lib_m_ctanf=yes | |
19749 | else | |
19750 | echo "$as_me: failed program was:" >&5 | |
19751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19752 | ||
19753 | ac_cv_lib_m_ctanf=no | |
19754 | fi | |
19755 | rm -f conftest.err conftest.$ac_objext \ | |
19756 | conftest$ac_exeext conftest.$ac_ext | |
19757 | LIBS=$ac_check_lib_save_LIBS | |
19758 | fi | |
19759 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanf" >&5 | |
19760 | echo "${ECHO_T}$ac_cv_lib_m_ctanf" >&6 | |
19761 | if test $ac_cv_lib_m_ctanf = yes; then | |
19762 | ||
19763 | cat >>confdefs.h <<\_ACEOF | |
19764 | #define HAVE_CTANF 1 | |
19765 | _ACEOF | |
19766 | ||
19767 | fi | |
19768 | ||
19769 | echo "$as_me:$LINENO: checking for ctan in -lm" >&5 | |
19770 | echo $ECHO_N "checking for ctan in -lm... $ECHO_C" >&6 | |
19771 | if test "${ac_cv_lib_m_ctan+set}" = set; then | |
19772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19773 | else | |
19774 | ac_check_lib_save_LIBS=$LIBS | |
19775 | LIBS="-lm $LIBS" | |
19776 | if test x$gcc_no_link = xyes; then | |
19777 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19778 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19779 | { (exit 1); exit 1; }; } | |
19780 | fi | |
19781 | cat >conftest.$ac_ext <<_ACEOF | |
19782 | /* confdefs.h. */ | |
19783 | _ACEOF | |
19784 | cat confdefs.h >>conftest.$ac_ext | |
19785 | cat >>conftest.$ac_ext <<_ACEOF | |
19786 | /* end confdefs.h. */ | |
19787 | ||
19788 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19789 | #ifdef __cplusplus | |
19790 | extern "C" | |
19791 | #endif | |
19792 | /* We use char because int might match the return type of a gcc2 | |
19793 | builtin and then its argument prototype would still apply. */ | |
19794 | char ctan (); | |
19795 | int | |
19796 | main () | |
19797 | { | |
19798 | ctan (); | |
19799 | ; | |
19800 | return 0; | |
19801 | } | |
19802 | _ACEOF | |
19803 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19805 | (eval $ac_link) 2>conftest.er1 | |
19806 | ac_status=$? | |
19807 | grep -v '^ *+' conftest.er1 >conftest.err | |
19808 | rm -f conftest.er1 | |
19809 | cat conftest.err >&5 | |
19810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19811 | (exit $ac_status); } && | |
57255173 PB |
19812 | { ac_try='test -z "$ac_c_werror_flag" |
19813 | || test ! -s conftest.err' | |
1409cd0b FXC |
19814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19815 | (eval $ac_try) 2>&5 | |
19816 | ac_status=$? | |
19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19818 | (exit $ac_status); }; } && | |
19819 | { ac_try='test -s conftest$ac_exeext' | |
19820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19821 | (eval $ac_try) 2>&5 | |
19822 | ac_status=$? | |
19823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19824 | (exit $ac_status); }; }; then | |
19825 | ac_cv_lib_m_ctan=yes | |
19826 | else | |
19827 | echo "$as_me: failed program was:" >&5 | |
19828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19829 | ||
19830 | ac_cv_lib_m_ctan=no | |
19831 | fi | |
19832 | rm -f conftest.err conftest.$ac_objext \ | |
19833 | conftest$ac_exeext conftest.$ac_ext | |
19834 | LIBS=$ac_check_lib_save_LIBS | |
19835 | fi | |
19836 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctan" >&5 | |
19837 | echo "${ECHO_T}$ac_cv_lib_m_ctan" >&6 | |
19838 | if test $ac_cv_lib_m_ctan = yes; then | |
19839 | ||
19840 | cat >>confdefs.h <<\_ACEOF | |
19841 | #define HAVE_CTAN 1 | |
19842 | _ACEOF | |
19843 | ||
19844 | fi | |
19845 | ||
19846 | echo "$as_me:$LINENO: checking for ctanl in -lm" >&5 | |
19847 | echo $ECHO_N "checking for ctanl in -lm... $ECHO_C" >&6 | |
19848 | if test "${ac_cv_lib_m_ctanl+set}" = set; then | |
19849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19850 | else | |
19851 | ac_check_lib_save_LIBS=$LIBS | |
19852 | LIBS="-lm $LIBS" | |
19853 | if test x$gcc_no_link = xyes; then | |
19854 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19855 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19856 | { (exit 1); exit 1; }; } | |
19857 | fi | |
19858 | cat >conftest.$ac_ext <<_ACEOF | |
19859 | /* confdefs.h. */ | |
19860 | _ACEOF | |
19861 | cat confdefs.h >>conftest.$ac_ext | |
19862 | cat >>conftest.$ac_ext <<_ACEOF | |
19863 | /* end confdefs.h. */ | |
19864 | ||
19865 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19866 | #ifdef __cplusplus | |
19867 | extern "C" | |
19868 | #endif | |
19869 | /* We use char because int might match the return type of a gcc2 | |
19870 | builtin and then its argument prototype would still apply. */ | |
19871 | char ctanl (); | |
19872 | int | |
19873 | main () | |
19874 | { | |
19875 | ctanl (); | |
19876 | ; | |
19877 | return 0; | |
19878 | } | |
19879 | _ACEOF | |
19880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19882 | (eval $ac_link) 2>conftest.er1 | |
19883 | ac_status=$? | |
19884 | grep -v '^ *+' conftest.er1 >conftest.err | |
19885 | rm -f conftest.er1 | |
19886 | cat conftest.err >&5 | |
19887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19888 | (exit $ac_status); } && | |
57255173 PB |
19889 | { ac_try='test -z "$ac_c_werror_flag" |
19890 | || test ! -s conftest.err' | |
1409cd0b FXC |
19891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19892 | (eval $ac_try) 2>&5 | |
19893 | ac_status=$? | |
19894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19895 | (exit $ac_status); }; } && | |
19896 | { ac_try='test -s conftest$ac_exeext' | |
19897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19898 | (eval $ac_try) 2>&5 | |
19899 | ac_status=$? | |
19900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19901 | (exit $ac_status); }; }; then | |
19902 | ac_cv_lib_m_ctanl=yes | |
19903 | else | |
19904 | echo "$as_me: failed program was:" >&5 | |
19905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19906 | ||
19907 | ac_cv_lib_m_ctanl=no | |
19908 | fi | |
19909 | rm -f conftest.err conftest.$ac_objext \ | |
19910 | conftest$ac_exeext conftest.$ac_ext | |
19911 | LIBS=$ac_check_lib_save_LIBS | |
19912 | fi | |
19913 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanl" >&5 | |
19914 | echo "${ECHO_T}$ac_cv_lib_m_ctanl" >&6 | |
19915 | if test $ac_cv_lib_m_ctanl = yes; then | |
19916 | ||
19917 | cat >>confdefs.h <<\_ACEOF | |
19918 | #define HAVE_CTANL 1 | |
19919 | _ACEOF | |
19920 | ||
19921 | fi | |
19922 | ||
19923 | echo "$as_me:$LINENO: checking for tanhf in -lm" >&5 | |
19924 | echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6 | |
19925 | if test "${ac_cv_lib_m_tanhf+set}" = set; then | |
19926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19927 | else | |
19928 | ac_check_lib_save_LIBS=$LIBS | |
19929 | LIBS="-lm $LIBS" | |
19930 | if test x$gcc_no_link = xyes; then | |
19931 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19932 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19933 | { (exit 1); exit 1; }; } | |
19934 | fi | |
19935 | cat >conftest.$ac_ext <<_ACEOF | |
19936 | /* confdefs.h. */ | |
19937 | _ACEOF | |
19938 | cat confdefs.h >>conftest.$ac_ext | |
19939 | cat >>conftest.$ac_ext <<_ACEOF | |
19940 | /* end confdefs.h. */ | |
19941 | ||
19942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19943 | #ifdef __cplusplus | |
19944 | extern "C" | |
19945 | #endif | |
19946 | /* We use char because int might match the return type of a gcc2 | |
19947 | builtin and then its argument prototype would still apply. */ | |
19948 | char tanhf (); | |
19949 | int | |
19950 | main () | |
19951 | { | |
19952 | tanhf (); | |
19953 | ; | |
19954 | return 0; | |
19955 | } | |
19956 | _ACEOF | |
19957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19959 | (eval $ac_link) 2>conftest.er1 | |
19960 | ac_status=$? | |
19961 | grep -v '^ *+' conftest.er1 >conftest.err | |
19962 | rm -f conftest.er1 | |
19963 | cat conftest.err >&5 | |
19964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19965 | (exit $ac_status); } && | |
57255173 PB |
19966 | { ac_try='test -z "$ac_c_werror_flag" |
19967 | || test ! -s conftest.err' | |
1409cd0b FXC |
19968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19969 | (eval $ac_try) 2>&5 | |
19970 | ac_status=$? | |
19971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19972 | (exit $ac_status); }; } && | |
19973 | { ac_try='test -s conftest$ac_exeext' | |
19974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19975 | (eval $ac_try) 2>&5 | |
19976 | ac_status=$? | |
19977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19978 | (exit $ac_status); }; }; then | |
19979 | ac_cv_lib_m_tanhf=yes | |
19980 | else | |
19981 | echo "$as_me: failed program was:" >&5 | |
19982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19983 | ||
19984 | ac_cv_lib_m_tanhf=no | |
19985 | fi | |
19986 | rm -f conftest.err conftest.$ac_objext \ | |
19987 | conftest$ac_exeext conftest.$ac_ext | |
19988 | LIBS=$ac_check_lib_save_LIBS | |
19989 | fi | |
19990 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5 | |
19991 | echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6 | |
19992 | if test $ac_cv_lib_m_tanhf = yes; then | |
19993 | ||
19994 | cat >>confdefs.h <<\_ACEOF | |
19995 | #define HAVE_TANHF 1 | |
19996 | _ACEOF | |
19997 | ||
19998 | fi | |
19999 | ||
20000 | echo "$as_me:$LINENO: checking for tanh in -lm" >&5 | |
20001 | echo $ECHO_N "checking for tanh in -lm... $ECHO_C" >&6 | |
20002 | if test "${ac_cv_lib_m_tanh+set}" = set; then | |
20003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20004 | else | |
20005 | ac_check_lib_save_LIBS=$LIBS | |
20006 | LIBS="-lm $LIBS" | |
20007 | if test x$gcc_no_link = xyes; then | |
20008 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20009 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20010 | { (exit 1); exit 1; }; } | |
20011 | fi | |
20012 | cat >conftest.$ac_ext <<_ACEOF | |
20013 | /* confdefs.h. */ | |
20014 | _ACEOF | |
20015 | cat confdefs.h >>conftest.$ac_ext | |
20016 | cat >>conftest.$ac_ext <<_ACEOF | |
20017 | /* end confdefs.h. */ | |
20018 | ||
20019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20020 | #ifdef __cplusplus | |
20021 | extern "C" | |
20022 | #endif | |
20023 | /* We use char because int might match the return type of a gcc2 | |
20024 | builtin and then its argument prototype would still apply. */ | |
20025 | char tanh (); | |
20026 | int | |
20027 | main () | |
20028 | { | |
20029 | tanh (); | |
20030 | ; | |
20031 | return 0; | |
20032 | } | |
20033 | _ACEOF | |
20034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20036 | (eval $ac_link) 2>conftest.er1 | |
20037 | ac_status=$? | |
20038 | grep -v '^ *+' conftest.er1 >conftest.err | |
20039 | rm -f conftest.er1 | |
20040 | cat conftest.err >&5 | |
20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20042 | (exit $ac_status); } && | |
57255173 PB |
20043 | { ac_try='test -z "$ac_c_werror_flag" |
20044 | || test ! -s conftest.err' | |
1409cd0b FXC |
20045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20046 | (eval $ac_try) 2>&5 | |
20047 | ac_status=$? | |
20048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20049 | (exit $ac_status); }; } && | |
20050 | { ac_try='test -s conftest$ac_exeext' | |
20051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20052 | (eval $ac_try) 2>&5 | |
20053 | ac_status=$? | |
20054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20055 | (exit $ac_status); }; }; then | |
20056 | ac_cv_lib_m_tanh=yes | |
20057 | else | |
20058 | echo "$as_me: failed program was:" >&5 | |
20059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20060 | ||
20061 | ac_cv_lib_m_tanh=no | |
20062 | fi | |
20063 | rm -f conftest.err conftest.$ac_objext \ | |
20064 | conftest$ac_exeext conftest.$ac_ext | |
20065 | LIBS=$ac_check_lib_save_LIBS | |
20066 | fi | |
20067 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanh" >&5 | |
20068 | echo "${ECHO_T}$ac_cv_lib_m_tanh" >&6 | |
20069 | if test $ac_cv_lib_m_tanh = yes; then | |
20070 | ||
20071 | cat >>confdefs.h <<\_ACEOF | |
20072 | #define HAVE_TANH 1 | |
20073 | _ACEOF | |
20074 | ||
20075 | fi | |
20076 | ||
20077 | echo "$as_me:$LINENO: checking for tanhl in -lm" >&5 | |
20078 | echo $ECHO_N "checking for tanhl in -lm... $ECHO_C" >&6 | |
20079 | if test "${ac_cv_lib_m_tanhl+set}" = set; then | |
20080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20081 | else | |
20082 | ac_check_lib_save_LIBS=$LIBS | |
20083 | LIBS="-lm $LIBS" | |
20084 | if test x$gcc_no_link = xyes; then | |
20085 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20086 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20087 | { (exit 1); exit 1; }; } | |
20088 | fi | |
20089 | cat >conftest.$ac_ext <<_ACEOF | |
20090 | /* confdefs.h. */ | |
20091 | _ACEOF | |
20092 | cat confdefs.h >>conftest.$ac_ext | |
20093 | cat >>conftest.$ac_ext <<_ACEOF | |
20094 | /* end confdefs.h. */ | |
20095 | ||
20096 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20097 | #ifdef __cplusplus | |
20098 | extern "C" | |
20099 | #endif | |
20100 | /* We use char because int might match the return type of a gcc2 | |
20101 | builtin and then its argument prototype would still apply. */ | |
20102 | char tanhl (); | |
20103 | int | |
20104 | main () | |
20105 | { | |
20106 | tanhl (); | |
20107 | ; | |
20108 | return 0; | |
20109 | } | |
20110 | _ACEOF | |
20111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20113 | (eval $ac_link) 2>conftest.er1 | |
20114 | ac_status=$? | |
20115 | grep -v '^ *+' conftest.er1 >conftest.err | |
20116 | rm -f conftest.er1 | |
20117 | cat conftest.err >&5 | |
20118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20119 | (exit $ac_status); } && | |
57255173 PB |
20120 | { ac_try='test -z "$ac_c_werror_flag" |
20121 | || test ! -s conftest.err' | |
1409cd0b FXC |
20122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20123 | (eval $ac_try) 2>&5 | |
20124 | ac_status=$? | |
20125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20126 | (exit $ac_status); }; } && | |
20127 | { ac_try='test -s conftest$ac_exeext' | |
20128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20129 | (eval $ac_try) 2>&5 | |
20130 | ac_status=$? | |
20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20132 | (exit $ac_status); }; }; then | |
20133 | ac_cv_lib_m_tanhl=yes | |
20134 | else | |
20135 | echo "$as_me: failed program was:" >&5 | |
20136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20137 | ||
20138 | ac_cv_lib_m_tanhl=no | |
20139 | fi | |
20140 | rm -f conftest.err conftest.$ac_objext \ | |
20141 | conftest$ac_exeext conftest.$ac_ext | |
20142 | LIBS=$ac_check_lib_save_LIBS | |
20143 | fi | |
20144 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhl" >&5 | |
20145 | echo "${ECHO_T}$ac_cv_lib_m_tanhl" >&6 | |
20146 | if test $ac_cv_lib_m_tanhl = yes; then | |
20147 | ||
20148 | cat >>confdefs.h <<\_ACEOF | |
20149 | #define HAVE_TANHL 1 | |
20150 | _ACEOF | |
20151 | ||
20152 | fi | |
20153 | ||
20154 | echo "$as_me:$LINENO: checking for ctanhf in -lm" >&5 | |
20155 | echo $ECHO_N "checking for ctanhf in -lm... $ECHO_C" >&6 | |
20156 | if test "${ac_cv_lib_m_ctanhf+set}" = set; then | |
20157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20158 | else | |
20159 | ac_check_lib_save_LIBS=$LIBS | |
20160 | LIBS="-lm $LIBS" | |
20161 | if test x$gcc_no_link = xyes; then | |
20162 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20163 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20164 | { (exit 1); exit 1; }; } | |
20165 | fi | |
20166 | cat >conftest.$ac_ext <<_ACEOF | |
20167 | /* confdefs.h. */ | |
20168 | _ACEOF | |
20169 | cat confdefs.h >>conftest.$ac_ext | |
20170 | cat >>conftest.$ac_ext <<_ACEOF | |
20171 | /* end confdefs.h. */ | |
20172 | ||
20173 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20174 | #ifdef __cplusplus | |
20175 | extern "C" | |
20176 | #endif | |
20177 | /* We use char because int might match the return type of a gcc2 | |
20178 | builtin and then its argument prototype would still apply. */ | |
20179 | char ctanhf (); | |
20180 | int | |
20181 | main () | |
20182 | { | |
20183 | ctanhf (); | |
20184 | ; | |
20185 | return 0; | |
20186 | } | |
20187 | _ACEOF | |
20188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20190 | (eval $ac_link) 2>conftest.er1 | |
20191 | ac_status=$? | |
20192 | grep -v '^ *+' conftest.er1 >conftest.err | |
20193 | rm -f conftest.er1 | |
20194 | cat conftest.err >&5 | |
20195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20196 | (exit $ac_status); } && | |
57255173 PB |
20197 | { ac_try='test -z "$ac_c_werror_flag" |
20198 | || test ! -s conftest.err' | |
1409cd0b FXC |
20199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20200 | (eval $ac_try) 2>&5 | |
20201 | ac_status=$? | |
20202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20203 | (exit $ac_status); }; } && | |
20204 | { ac_try='test -s conftest$ac_exeext' | |
20205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20206 | (eval $ac_try) 2>&5 | |
20207 | ac_status=$? | |
20208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20209 | (exit $ac_status); }; }; then | |
20210 | ac_cv_lib_m_ctanhf=yes | |
20211 | else | |
20212 | echo "$as_me: failed program was:" >&5 | |
20213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20214 | ||
20215 | ac_cv_lib_m_ctanhf=no | |
20216 | fi | |
20217 | rm -f conftest.err conftest.$ac_objext \ | |
20218 | conftest$ac_exeext conftest.$ac_ext | |
20219 | LIBS=$ac_check_lib_save_LIBS | |
20220 | fi | |
20221 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhf" >&5 | |
20222 | echo "${ECHO_T}$ac_cv_lib_m_ctanhf" >&6 | |
20223 | if test $ac_cv_lib_m_ctanhf = yes; then | |
20224 | ||
20225 | cat >>confdefs.h <<\_ACEOF | |
20226 | #define HAVE_CTANHF 1 | |
20227 | _ACEOF | |
20228 | ||
20229 | fi | |
20230 | ||
20231 | echo "$as_me:$LINENO: checking for ctanh in -lm" >&5 | |
20232 | echo $ECHO_N "checking for ctanh in -lm... $ECHO_C" >&6 | |
20233 | if test "${ac_cv_lib_m_ctanh+set}" = set; then | |
20234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20235 | else | |
20236 | ac_check_lib_save_LIBS=$LIBS | |
20237 | LIBS="-lm $LIBS" | |
20238 | if test x$gcc_no_link = xyes; then | |
20239 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20240 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20241 | { (exit 1); exit 1; }; } | |
20242 | fi | |
20243 | cat >conftest.$ac_ext <<_ACEOF | |
20244 | /* confdefs.h. */ | |
20245 | _ACEOF | |
20246 | cat confdefs.h >>conftest.$ac_ext | |
20247 | cat >>conftest.$ac_ext <<_ACEOF | |
20248 | /* end confdefs.h. */ | |
20249 | ||
20250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20251 | #ifdef __cplusplus | |
20252 | extern "C" | |
20253 | #endif | |
20254 | /* We use char because int might match the return type of a gcc2 | |
20255 | builtin and then its argument prototype would still apply. */ | |
20256 | char ctanh (); | |
20257 | int | |
20258 | main () | |
20259 | { | |
20260 | ctanh (); | |
20261 | ; | |
20262 | return 0; | |
20263 | } | |
20264 | _ACEOF | |
20265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20267 | (eval $ac_link) 2>conftest.er1 | |
20268 | ac_status=$? | |
20269 | grep -v '^ *+' conftest.er1 >conftest.err | |
20270 | rm -f conftest.er1 | |
20271 | cat conftest.err >&5 | |
20272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20273 | (exit $ac_status); } && | |
57255173 PB |
20274 | { ac_try='test -z "$ac_c_werror_flag" |
20275 | || test ! -s conftest.err' | |
1409cd0b FXC |
20276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20277 | (eval $ac_try) 2>&5 | |
20278 | ac_status=$? | |
20279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20280 | (exit $ac_status); }; } && | |
20281 | { ac_try='test -s conftest$ac_exeext' | |
20282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20283 | (eval $ac_try) 2>&5 | |
20284 | ac_status=$? | |
20285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20286 | (exit $ac_status); }; }; then | |
20287 | ac_cv_lib_m_ctanh=yes | |
20288 | else | |
20289 | echo "$as_me: failed program was:" >&5 | |
20290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20291 | ||
20292 | ac_cv_lib_m_ctanh=no | |
20293 | fi | |
20294 | rm -f conftest.err conftest.$ac_objext \ | |
20295 | conftest$ac_exeext conftest.$ac_ext | |
20296 | LIBS=$ac_check_lib_save_LIBS | |
20297 | fi | |
20298 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanh" >&5 | |
20299 | echo "${ECHO_T}$ac_cv_lib_m_ctanh" >&6 | |
20300 | if test $ac_cv_lib_m_ctanh = yes; then | |
20301 | ||
20302 | cat >>confdefs.h <<\_ACEOF | |
20303 | #define HAVE_CTANH 1 | |
20304 | _ACEOF | |
20305 | ||
20306 | fi | |
20307 | ||
20308 | echo "$as_me:$LINENO: checking for ctanhl in -lm" >&5 | |
20309 | echo $ECHO_N "checking for ctanhl in -lm... $ECHO_C" >&6 | |
20310 | if test "${ac_cv_lib_m_ctanhl+set}" = set; then | |
20311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20312 | else | |
20313 | ac_check_lib_save_LIBS=$LIBS | |
20314 | LIBS="-lm $LIBS" | |
20315 | if test x$gcc_no_link = xyes; then | |
20316 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20317 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20318 | { (exit 1); exit 1; }; } | |
20319 | fi | |
20320 | cat >conftest.$ac_ext <<_ACEOF | |
20321 | /* confdefs.h. */ | |
20322 | _ACEOF | |
20323 | cat confdefs.h >>conftest.$ac_ext | |
20324 | cat >>conftest.$ac_ext <<_ACEOF | |
20325 | /* end confdefs.h. */ | |
20326 | ||
20327 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20328 | #ifdef __cplusplus | |
20329 | extern "C" | |
20330 | #endif | |
20331 | /* We use char because int might match the return type of a gcc2 | |
20332 | builtin and then its argument prototype would still apply. */ | |
20333 | char ctanhl (); | |
20334 | int | |
20335 | main () | |
20336 | { | |
20337 | ctanhl (); | |
20338 | ; | |
20339 | return 0; | |
20340 | } | |
20341 | _ACEOF | |
20342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20344 | (eval $ac_link) 2>conftest.er1 | |
20345 | ac_status=$? | |
20346 | grep -v '^ *+' conftest.er1 >conftest.err | |
20347 | rm -f conftest.er1 | |
20348 | cat conftest.err >&5 | |
20349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20350 | (exit $ac_status); } && | |
57255173 PB |
20351 | { ac_try='test -z "$ac_c_werror_flag" |
20352 | || test ! -s conftest.err' | |
1409cd0b FXC |
20353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20354 | (eval $ac_try) 2>&5 | |
20355 | ac_status=$? | |
20356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20357 | (exit $ac_status); }; } && | |
20358 | { ac_try='test -s conftest$ac_exeext' | |
20359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20360 | (eval $ac_try) 2>&5 | |
20361 | ac_status=$? | |
20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20363 | (exit $ac_status); }; }; then | |
20364 | ac_cv_lib_m_ctanhl=yes | |
20365 | else | |
20366 | echo "$as_me: failed program was:" >&5 | |
20367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20368 | ||
20369 | ac_cv_lib_m_ctanhl=no | |
20370 | fi | |
20371 | rm -f conftest.err conftest.$ac_objext \ | |
20372 | conftest$ac_exeext conftest.$ac_ext | |
20373 | LIBS=$ac_check_lib_save_LIBS | |
20374 | fi | |
20375 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhl" >&5 | |
20376 | echo "${ECHO_T}$ac_cv_lib_m_ctanhl" >&6 | |
20377 | if test $ac_cv_lib_m_ctanhl = yes; then | |
20378 | ||
20379 | cat >>confdefs.h <<\_ACEOF | |
20380 | #define HAVE_CTANHL 1 | |
69a2d125 EB |
20381 | _ACEOF |
20382 | ||
20383 | fi | |
20384 | ||
20385 | echo "$as_me:$LINENO: checking for truncf in -lm" >&5 | |
20386 | echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6 | |
20387 | if test "${ac_cv_lib_m_truncf+set}" = set; then | |
20388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20389 | else | |
20390 | ac_check_lib_save_LIBS=$LIBS | |
20391 | LIBS="-lm $LIBS" | |
f02d008e JD |
20392 | if test x$gcc_no_link = xyes; then |
20393 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20394 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20395 | { (exit 1); exit 1; }; } | |
20396 | fi | |
69a2d125 EB |
20397 | cat >conftest.$ac_ext <<_ACEOF |
20398 | /* confdefs.h. */ | |
20399 | _ACEOF | |
20400 | cat confdefs.h >>conftest.$ac_ext | |
20401 | cat >>conftest.$ac_ext <<_ACEOF | |
20402 | /* end confdefs.h. */ | |
20403 | ||
20404 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20405 | #ifdef __cplusplus | |
20406 | extern "C" | |
20407 | #endif | |
20408 | /* We use char because int might match the return type of a gcc2 | |
20409 | builtin and then its argument prototype would still apply. */ | |
1409cd0b FXC |
20410 | char truncf (); |
20411 | int | |
20412 | main () | |
20413 | { | |
20414 | truncf (); | |
20415 | ; | |
20416 | return 0; | |
20417 | } | |
20418 | _ACEOF | |
20419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20421 | (eval $ac_link) 2>conftest.er1 | |
20422 | ac_status=$? | |
20423 | grep -v '^ *+' conftest.er1 >conftest.err | |
20424 | rm -f conftest.er1 | |
20425 | cat conftest.err >&5 | |
20426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20427 | (exit $ac_status); } && | |
57255173 PB |
20428 | { ac_try='test -z "$ac_c_werror_flag" |
20429 | || test ! -s conftest.err' | |
1409cd0b FXC |
20430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20431 | (eval $ac_try) 2>&5 | |
20432 | ac_status=$? | |
20433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20434 | (exit $ac_status); }; } && | |
20435 | { ac_try='test -s conftest$ac_exeext' | |
20436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20437 | (eval $ac_try) 2>&5 | |
20438 | ac_status=$? | |
20439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20440 | (exit $ac_status); }; }; then | |
20441 | ac_cv_lib_m_truncf=yes | |
20442 | else | |
20443 | echo "$as_me: failed program was:" >&5 | |
20444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20445 | ||
20446 | ac_cv_lib_m_truncf=no | |
20447 | fi | |
20448 | rm -f conftest.err conftest.$ac_objext \ | |
20449 | conftest$ac_exeext conftest.$ac_ext | |
20450 | LIBS=$ac_check_lib_save_LIBS | |
20451 | fi | |
20452 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5 | |
20453 | echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6 | |
20454 | if test $ac_cv_lib_m_truncf = yes; then | |
20455 | ||
20456 | cat >>confdefs.h <<\_ACEOF | |
20457 | #define HAVE_TRUNCF 1 | |
20458 | _ACEOF | |
20459 | ||
20460 | fi | |
20461 | ||
20462 | echo "$as_me:$LINENO: checking for trunc in -lm" >&5 | |
20463 | echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6 | |
20464 | if test "${ac_cv_lib_m_trunc+set}" = set; then | |
20465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20466 | else | |
20467 | ac_check_lib_save_LIBS=$LIBS | |
20468 | LIBS="-lm $LIBS" | |
20469 | if test x$gcc_no_link = xyes; then | |
20470 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20471 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20472 | { (exit 1); exit 1; }; } | |
20473 | fi | |
20474 | cat >conftest.$ac_ext <<_ACEOF | |
20475 | /* confdefs.h. */ | |
20476 | _ACEOF | |
20477 | cat confdefs.h >>conftest.$ac_ext | |
20478 | cat >>conftest.$ac_ext <<_ACEOF | |
20479 | /* end confdefs.h. */ | |
20480 | ||
20481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20482 | #ifdef __cplusplus | |
20483 | extern "C" | |
20484 | #endif | |
20485 | /* We use char because int might match the return type of a gcc2 | |
20486 | builtin and then its argument prototype would still apply. */ | |
20487 | char trunc (); | |
20488 | int | |
20489 | main () | |
20490 | { | |
20491 | trunc (); | |
20492 | ; | |
20493 | return 0; | |
20494 | } | |
20495 | _ACEOF | |
20496 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20498 | (eval $ac_link) 2>conftest.er1 | |
20499 | ac_status=$? | |
20500 | grep -v '^ *+' conftest.er1 >conftest.err | |
20501 | rm -f conftest.er1 | |
20502 | cat conftest.err >&5 | |
20503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20504 | (exit $ac_status); } && | |
57255173 PB |
20505 | { ac_try='test -z "$ac_c_werror_flag" |
20506 | || test ! -s conftest.err' | |
1409cd0b FXC |
20507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20508 | (eval $ac_try) 2>&5 | |
20509 | ac_status=$? | |
20510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20511 | (exit $ac_status); }; } && | |
20512 | { ac_try='test -s conftest$ac_exeext' | |
20513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20514 | (eval $ac_try) 2>&5 | |
20515 | ac_status=$? | |
20516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20517 | (exit $ac_status); }; }; then | |
20518 | ac_cv_lib_m_trunc=yes | |
20519 | else | |
20520 | echo "$as_me: failed program was:" >&5 | |
20521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20522 | ||
20523 | ac_cv_lib_m_trunc=no | |
20524 | fi | |
20525 | rm -f conftest.err conftest.$ac_objext \ | |
20526 | conftest$ac_exeext conftest.$ac_ext | |
20527 | LIBS=$ac_check_lib_save_LIBS | |
20528 | fi | |
20529 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5 | |
20530 | echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6 | |
20531 | if test $ac_cv_lib_m_trunc = yes; then | |
20532 | ||
20533 | cat >>confdefs.h <<\_ACEOF | |
20534 | #define HAVE_TRUNC 1 | |
20535 | _ACEOF | |
20536 | ||
20537 | fi | |
20538 | ||
20539 | echo "$as_me:$LINENO: checking for truncl in -lm" >&5 | |
20540 | echo $ECHO_N "checking for truncl in -lm... $ECHO_C" >&6 | |
20541 | if test "${ac_cv_lib_m_truncl+set}" = set; then | |
20542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20543 | else | |
20544 | ac_check_lib_save_LIBS=$LIBS | |
20545 | LIBS="-lm $LIBS" | |
20546 | if test x$gcc_no_link = xyes; then | |
20547 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20548 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20549 | { (exit 1); exit 1; }; } | |
20550 | fi | |
20551 | cat >conftest.$ac_ext <<_ACEOF | |
20552 | /* confdefs.h. */ | |
20553 | _ACEOF | |
20554 | cat confdefs.h >>conftest.$ac_ext | |
20555 | cat >>conftest.$ac_ext <<_ACEOF | |
20556 | /* end confdefs.h. */ | |
20557 | ||
20558 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20559 | #ifdef __cplusplus | |
20560 | extern "C" | |
20561 | #endif | |
20562 | /* We use char because int might match the return type of a gcc2 | |
20563 | builtin and then its argument prototype would still apply. */ | |
20564 | char truncl (); | |
20565 | int | |
20566 | main () | |
20567 | { | |
20568 | truncl (); | |
20569 | ; | |
20570 | return 0; | |
20571 | } | |
20572 | _ACEOF | |
20573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20575 | (eval $ac_link) 2>conftest.er1 | |
20576 | ac_status=$? | |
20577 | grep -v '^ *+' conftest.er1 >conftest.err | |
20578 | rm -f conftest.er1 | |
20579 | cat conftest.err >&5 | |
20580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20581 | (exit $ac_status); } && | |
57255173 PB |
20582 | { ac_try='test -z "$ac_c_werror_flag" |
20583 | || test ! -s conftest.err' | |
1409cd0b FXC |
20584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20585 | (eval $ac_try) 2>&5 | |
20586 | ac_status=$? | |
20587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20588 | (exit $ac_status); }; } && | |
20589 | { ac_try='test -s conftest$ac_exeext' | |
20590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20591 | (eval $ac_try) 2>&5 | |
20592 | ac_status=$? | |
20593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20594 | (exit $ac_status); }; }; then | |
20595 | ac_cv_lib_m_truncl=yes | |
20596 | else | |
20597 | echo "$as_me: failed program was:" >&5 | |
20598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20599 | ||
20600 | ac_cv_lib_m_truncl=no | |
20601 | fi | |
20602 | rm -f conftest.err conftest.$ac_objext \ | |
20603 | conftest$ac_exeext conftest.$ac_ext | |
20604 | LIBS=$ac_check_lib_save_LIBS | |
20605 | fi | |
20606 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncl" >&5 | |
20607 | echo "${ECHO_T}$ac_cv_lib_m_truncl" >&6 | |
20608 | if test $ac_cv_lib_m_truncl = yes; then | |
20609 | ||
20610 | cat >>confdefs.h <<\_ACEOF | |
20611 | #define HAVE_TRUNCL 1 | |
20612 | _ACEOF | |
20613 | ||
20614 | fi | |
20615 | ||
20616 | echo "$as_me:$LINENO: checking for erff in -lm" >&5 | |
20617 | echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6 | |
20618 | if test "${ac_cv_lib_m_erff+set}" = set; then | |
20619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20620 | else | |
20621 | ac_check_lib_save_LIBS=$LIBS | |
20622 | LIBS="-lm $LIBS" | |
20623 | if test x$gcc_no_link = xyes; then | |
20624 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20625 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20626 | { (exit 1); exit 1; }; } | |
20627 | fi | |
20628 | cat >conftest.$ac_ext <<_ACEOF | |
20629 | /* confdefs.h. */ | |
20630 | _ACEOF | |
20631 | cat confdefs.h >>conftest.$ac_ext | |
20632 | cat >>conftest.$ac_ext <<_ACEOF | |
20633 | /* end confdefs.h. */ | |
20634 | ||
20635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20636 | #ifdef __cplusplus | |
20637 | extern "C" | |
20638 | #endif | |
20639 | /* We use char because int might match the return type of a gcc2 | |
20640 | builtin and then its argument prototype would still apply. */ | |
20641 | char erff (); | |
20642 | int | |
20643 | main () | |
20644 | { | |
20645 | erff (); | |
20646 | ; | |
20647 | return 0; | |
20648 | } | |
20649 | _ACEOF | |
20650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20652 | (eval $ac_link) 2>conftest.er1 | |
20653 | ac_status=$? | |
20654 | grep -v '^ *+' conftest.er1 >conftest.err | |
20655 | rm -f conftest.er1 | |
20656 | cat conftest.err >&5 | |
20657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20658 | (exit $ac_status); } && | |
57255173 PB |
20659 | { ac_try='test -z "$ac_c_werror_flag" |
20660 | || test ! -s conftest.err' | |
1409cd0b FXC |
20661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20662 | (eval $ac_try) 2>&5 | |
20663 | ac_status=$? | |
20664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20665 | (exit $ac_status); }; } && | |
20666 | { ac_try='test -s conftest$ac_exeext' | |
20667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20668 | (eval $ac_try) 2>&5 | |
20669 | ac_status=$? | |
20670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20671 | (exit $ac_status); }; }; then | |
20672 | ac_cv_lib_m_erff=yes | |
20673 | else | |
20674 | echo "$as_me: failed program was:" >&5 | |
20675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20676 | ||
20677 | ac_cv_lib_m_erff=no | |
20678 | fi | |
20679 | rm -f conftest.err conftest.$ac_objext \ | |
20680 | conftest$ac_exeext conftest.$ac_ext | |
20681 | LIBS=$ac_check_lib_save_LIBS | |
20682 | fi | |
20683 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5 | |
20684 | echo "${ECHO_T}$ac_cv_lib_m_erff" >&6 | |
20685 | if test $ac_cv_lib_m_erff = yes; then | |
20686 | ||
20687 | cat >>confdefs.h <<\_ACEOF | |
20688 | #define HAVE_ERFF 1 | |
20689 | _ACEOF | |
20690 | ||
20691 | fi | |
20692 | ||
20693 | echo "$as_me:$LINENO: checking for erf in -lm" >&5 | |
20694 | echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6 | |
20695 | if test "${ac_cv_lib_m_erf+set}" = set; then | |
20696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20697 | else | |
20698 | ac_check_lib_save_LIBS=$LIBS | |
20699 | LIBS="-lm $LIBS" | |
20700 | if test x$gcc_no_link = xyes; then | |
20701 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20702 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20703 | { (exit 1); exit 1; }; } | |
20704 | fi | |
20705 | cat >conftest.$ac_ext <<_ACEOF | |
20706 | /* confdefs.h. */ | |
20707 | _ACEOF | |
20708 | cat confdefs.h >>conftest.$ac_ext | |
20709 | cat >>conftest.$ac_ext <<_ACEOF | |
20710 | /* end confdefs.h. */ | |
20711 | ||
20712 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20713 | #ifdef __cplusplus | |
20714 | extern "C" | |
20715 | #endif | |
20716 | /* We use char because int might match the return type of a gcc2 | |
20717 | builtin and then its argument prototype would still apply. */ | |
20718 | char erf (); | |
20719 | int | |
20720 | main () | |
20721 | { | |
20722 | erf (); | |
20723 | ; | |
20724 | return 0; | |
20725 | } | |
20726 | _ACEOF | |
20727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20729 | (eval $ac_link) 2>conftest.er1 | |
20730 | ac_status=$? | |
20731 | grep -v '^ *+' conftest.er1 >conftest.err | |
20732 | rm -f conftest.er1 | |
20733 | cat conftest.err >&5 | |
20734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20735 | (exit $ac_status); } && | |
57255173 PB |
20736 | { ac_try='test -z "$ac_c_werror_flag" |
20737 | || test ! -s conftest.err' | |
1409cd0b FXC |
20738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20739 | (eval $ac_try) 2>&5 | |
20740 | ac_status=$? | |
20741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20742 | (exit $ac_status); }; } && | |
20743 | { ac_try='test -s conftest$ac_exeext' | |
20744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20745 | (eval $ac_try) 2>&5 | |
20746 | ac_status=$? | |
20747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20748 | (exit $ac_status); }; }; then | |
20749 | ac_cv_lib_m_erf=yes | |
20750 | else | |
20751 | echo "$as_me: failed program was:" >&5 | |
20752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20753 | ||
20754 | ac_cv_lib_m_erf=no | |
20755 | fi | |
20756 | rm -f conftest.err conftest.$ac_objext \ | |
20757 | conftest$ac_exeext conftest.$ac_ext | |
20758 | LIBS=$ac_check_lib_save_LIBS | |
20759 | fi | |
20760 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5 | |
20761 | echo "${ECHO_T}$ac_cv_lib_m_erf" >&6 | |
20762 | if test $ac_cv_lib_m_erf = yes; then | |
20763 | ||
20764 | cat >>confdefs.h <<\_ACEOF | |
20765 | #define HAVE_ERF 1 | |
20766 | _ACEOF | |
20767 | ||
20768 | fi | |
20769 | ||
20770 | echo "$as_me:$LINENO: checking for erfl in -lm" >&5 | |
20771 | echo $ECHO_N "checking for erfl in -lm... $ECHO_C" >&6 | |
20772 | if test "${ac_cv_lib_m_erfl+set}" = set; then | |
20773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20774 | else | |
20775 | ac_check_lib_save_LIBS=$LIBS | |
20776 | LIBS="-lm $LIBS" | |
20777 | if test x$gcc_no_link = xyes; then | |
20778 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20779 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20780 | { (exit 1); exit 1; }; } | |
20781 | fi | |
20782 | cat >conftest.$ac_ext <<_ACEOF | |
20783 | /* confdefs.h. */ | |
20784 | _ACEOF | |
20785 | cat confdefs.h >>conftest.$ac_ext | |
20786 | cat >>conftest.$ac_ext <<_ACEOF | |
20787 | /* end confdefs.h. */ | |
20788 | ||
20789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20790 | #ifdef __cplusplus | |
20791 | extern "C" | |
20792 | #endif | |
20793 | /* We use char because int might match the return type of a gcc2 | |
20794 | builtin and then its argument prototype would still apply. */ | |
20795 | char erfl (); | |
20796 | int | |
20797 | main () | |
20798 | { | |
20799 | erfl (); | |
20800 | ; | |
20801 | return 0; | |
20802 | } | |
20803 | _ACEOF | |
20804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20806 | (eval $ac_link) 2>conftest.er1 | |
20807 | ac_status=$? | |
20808 | grep -v '^ *+' conftest.er1 >conftest.err | |
20809 | rm -f conftest.er1 | |
20810 | cat conftest.err >&5 | |
20811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20812 | (exit $ac_status); } && | |
57255173 PB |
20813 | { ac_try='test -z "$ac_c_werror_flag" |
20814 | || test ! -s conftest.err' | |
1409cd0b FXC |
20815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20816 | (eval $ac_try) 2>&5 | |
20817 | ac_status=$? | |
20818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20819 | (exit $ac_status); }; } && | |
20820 | { ac_try='test -s conftest$ac_exeext' | |
20821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20822 | (eval $ac_try) 2>&5 | |
20823 | ac_status=$? | |
20824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20825 | (exit $ac_status); }; }; then | |
20826 | ac_cv_lib_m_erfl=yes | |
20827 | else | |
20828 | echo "$as_me: failed program was:" >&5 | |
20829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20830 | ||
20831 | ac_cv_lib_m_erfl=no | |
20832 | fi | |
20833 | rm -f conftest.err conftest.$ac_objext \ | |
20834 | conftest$ac_exeext conftest.$ac_ext | |
20835 | LIBS=$ac_check_lib_save_LIBS | |
20836 | fi | |
20837 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfl" >&5 | |
20838 | echo "${ECHO_T}$ac_cv_lib_m_erfl" >&6 | |
20839 | if test $ac_cv_lib_m_erfl = yes; then | |
20840 | ||
20841 | cat >>confdefs.h <<\_ACEOF | |
20842 | #define HAVE_ERFL 1 | |
20843 | _ACEOF | |
20844 | ||
20845 | fi | |
20846 | ||
20847 | echo "$as_me:$LINENO: checking for erfcf in -lm" >&5 | |
20848 | echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6 | |
20849 | if test "${ac_cv_lib_m_erfcf+set}" = set; then | |
20850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20851 | else | |
20852 | ac_check_lib_save_LIBS=$LIBS | |
20853 | LIBS="-lm $LIBS" | |
20854 | if test x$gcc_no_link = xyes; then | |
20855 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20856 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20857 | { (exit 1); exit 1; }; } | |
20858 | fi | |
20859 | cat >conftest.$ac_ext <<_ACEOF | |
20860 | /* confdefs.h. */ | |
20861 | _ACEOF | |
20862 | cat confdefs.h >>conftest.$ac_ext | |
20863 | cat >>conftest.$ac_ext <<_ACEOF | |
20864 | /* end confdefs.h. */ | |
20865 | ||
20866 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20867 | #ifdef __cplusplus | |
20868 | extern "C" | |
20869 | #endif | |
20870 | /* We use char because int might match the return type of a gcc2 | |
20871 | builtin and then its argument prototype would still apply. */ | |
20872 | char erfcf (); | |
20873 | int | |
20874 | main () | |
20875 | { | |
20876 | erfcf (); | |
20877 | ; | |
20878 | return 0; | |
20879 | } | |
20880 | _ACEOF | |
20881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20883 | (eval $ac_link) 2>conftest.er1 | |
20884 | ac_status=$? | |
20885 | grep -v '^ *+' conftest.er1 >conftest.err | |
20886 | rm -f conftest.er1 | |
20887 | cat conftest.err >&5 | |
20888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20889 | (exit $ac_status); } && | |
57255173 PB |
20890 | { ac_try='test -z "$ac_c_werror_flag" |
20891 | || test ! -s conftest.err' | |
1409cd0b FXC |
20892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20893 | (eval $ac_try) 2>&5 | |
20894 | ac_status=$? | |
20895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20896 | (exit $ac_status); }; } && | |
20897 | { ac_try='test -s conftest$ac_exeext' | |
20898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20899 | (eval $ac_try) 2>&5 | |
20900 | ac_status=$? | |
20901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20902 | (exit $ac_status); }; }; then | |
20903 | ac_cv_lib_m_erfcf=yes | |
20904 | else | |
20905 | echo "$as_me: failed program was:" >&5 | |
20906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20907 | ||
20908 | ac_cv_lib_m_erfcf=no | |
20909 | fi | |
20910 | rm -f conftest.err conftest.$ac_objext \ | |
20911 | conftest$ac_exeext conftest.$ac_ext | |
20912 | LIBS=$ac_check_lib_save_LIBS | |
20913 | fi | |
20914 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5 | |
20915 | echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6 | |
20916 | if test $ac_cv_lib_m_erfcf = yes; then | |
20917 | ||
20918 | cat >>confdefs.h <<\_ACEOF | |
20919 | #define HAVE_ERFCF 1 | |
20920 | _ACEOF | |
20921 | ||
20922 | fi | |
20923 | ||
20924 | echo "$as_me:$LINENO: checking for erfc in -lm" >&5 | |
20925 | echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6 | |
20926 | if test "${ac_cv_lib_m_erfc+set}" = set; then | |
20927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20928 | else | |
20929 | ac_check_lib_save_LIBS=$LIBS | |
20930 | LIBS="-lm $LIBS" | |
20931 | if test x$gcc_no_link = xyes; then | |
20932 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20933 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20934 | { (exit 1); exit 1; }; } | |
20935 | fi | |
20936 | cat >conftest.$ac_ext <<_ACEOF | |
20937 | /* confdefs.h. */ | |
20938 | _ACEOF | |
20939 | cat confdefs.h >>conftest.$ac_ext | |
20940 | cat >>conftest.$ac_ext <<_ACEOF | |
20941 | /* end confdefs.h. */ | |
20942 | ||
20943 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20944 | #ifdef __cplusplus | |
20945 | extern "C" | |
20946 | #endif | |
20947 | /* We use char because int might match the return type of a gcc2 | |
20948 | builtin and then its argument prototype would still apply. */ | |
20949 | char erfc (); | |
69a2d125 EB |
20950 | int |
20951 | main () | |
20952 | { | |
1409cd0b | 20953 | erfc (); |
69a2d125 EB |
20954 | ; |
20955 | return 0; | |
20956 | } | |
20957 | _ACEOF | |
20958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20960 | (eval $ac_link) 2>conftest.er1 | |
20961 | ac_status=$? | |
20962 | grep -v '^ *+' conftest.er1 >conftest.err | |
20963 | rm -f conftest.er1 | |
20964 | cat conftest.err >&5 | |
20965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20966 | (exit $ac_status); } && | |
57255173 PB |
20967 | { ac_try='test -z "$ac_c_werror_flag" |
20968 | || test ! -s conftest.err' | |
69a2d125 EB |
20969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20970 | (eval $ac_try) 2>&5 | |
20971 | ac_status=$? | |
20972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20973 | (exit $ac_status); }; } && | |
20974 | { ac_try='test -s conftest$ac_exeext' | |
20975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20976 | (eval $ac_try) 2>&5 | |
20977 | ac_status=$? | |
20978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20979 | (exit $ac_status); }; }; then | |
1409cd0b | 20980 | ac_cv_lib_m_erfc=yes |
69a2d125 EB |
20981 | else |
20982 | echo "$as_me: failed program was:" >&5 | |
20983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20984 | ||
1409cd0b | 20985 | ac_cv_lib_m_erfc=no |
69a2d125 EB |
20986 | fi |
20987 | rm -f conftest.err conftest.$ac_objext \ | |
20988 | conftest$ac_exeext conftest.$ac_ext | |
20989 | LIBS=$ac_check_lib_save_LIBS | |
20990 | fi | |
1409cd0b FXC |
20991 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5 |
20992 | echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6 | |
20993 | if test $ac_cv_lib_m_erfc = yes; then | |
69a2d125 EB |
20994 | |
20995 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 20996 | #define HAVE_ERFC 1 |
69a2d125 EB |
20997 | _ACEOF |
20998 | ||
20999 | fi | |
21000 | ||
1409cd0b FXC |
21001 | echo "$as_me:$LINENO: checking for erfcl in -lm" >&5 |
21002 | echo $ECHO_N "checking for erfcl in -lm... $ECHO_C" >&6 | |
21003 | if test "${ac_cv_lib_m_erfcl+set}" = set; then | |
e8525382 SK |
21004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21005 | else | |
21006 | ac_check_lib_save_LIBS=$LIBS | |
21007 | LIBS="-lm $LIBS" | |
f02d008e JD |
21008 | if test x$gcc_no_link = xyes; then |
21009 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21010 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21011 | { (exit 1); exit 1; }; } | |
21012 | fi | |
e8525382 SK |
21013 | cat >conftest.$ac_ext <<_ACEOF |
21014 | /* confdefs.h. */ | |
21015 | _ACEOF | |
21016 | cat confdefs.h >>conftest.$ac_ext | |
21017 | cat >>conftest.$ac_ext <<_ACEOF | |
21018 | /* end confdefs.h. */ | |
21019 | ||
21020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21021 | #ifdef __cplusplus | |
21022 | extern "C" | |
21023 | #endif | |
21024 | /* We use char because int might match the return type of a gcc2 | |
21025 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21026 | char erfcl (); |
e8525382 SK |
21027 | int |
21028 | main () | |
21029 | { | |
1409cd0b | 21030 | erfcl (); |
e8525382 SK |
21031 | ; |
21032 | return 0; | |
21033 | } | |
21034 | _ACEOF | |
21035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21037 | (eval $ac_link) 2>conftest.er1 | |
21038 | ac_status=$? | |
21039 | grep -v '^ *+' conftest.er1 >conftest.err | |
21040 | rm -f conftest.er1 | |
21041 | cat conftest.err >&5 | |
21042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21043 | (exit $ac_status); } && | |
57255173 PB |
21044 | { ac_try='test -z "$ac_c_werror_flag" |
21045 | || test ! -s conftest.err' | |
e8525382 SK |
21046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21047 | (eval $ac_try) 2>&5 | |
21048 | ac_status=$? | |
21049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21050 | (exit $ac_status); }; } && | |
21051 | { ac_try='test -s conftest$ac_exeext' | |
21052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21053 | (eval $ac_try) 2>&5 | |
21054 | ac_status=$? | |
21055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21056 | (exit $ac_status); }; }; then | |
1409cd0b | 21057 | ac_cv_lib_m_erfcl=yes |
e8525382 SK |
21058 | else |
21059 | echo "$as_me: failed program was:" >&5 | |
21060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21061 | ||
1409cd0b | 21062 | ac_cv_lib_m_erfcl=no |
e8525382 SK |
21063 | fi |
21064 | rm -f conftest.err conftest.$ac_objext \ | |
21065 | conftest$ac_exeext conftest.$ac_ext | |
21066 | LIBS=$ac_check_lib_save_LIBS | |
21067 | fi | |
1409cd0b FXC |
21068 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcl" >&5 |
21069 | echo "${ECHO_T}$ac_cv_lib_m_erfcl" >&6 | |
21070 | if test $ac_cv_lib_m_erfcl = yes; then | |
e8525382 SK |
21071 | |
21072 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21073 | #define HAVE_ERFCL 1 |
e8525382 SK |
21074 | _ACEOF |
21075 | ||
21076 | fi | |
21077 | ||
1409cd0b FXC |
21078 | echo "$as_me:$LINENO: checking for j0f in -lm" >&5 |
21079 | echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6 | |
21080 | if test "${ac_cv_lib_m_j0f+set}" = set; then | |
e8525382 SK |
21081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21082 | else | |
21083 | ac_check_lib_save_LIBS=$LIBS | |
21084 | LIBS="-lm $LIBS" | |
f02d008e JD |
21085 | if test x$gcc_no_link = xyes; then |
21086 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21087 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21088 | { (exit 1); exit 1; }; } | |
21089 | fi | |
e8525382 SK |
21090 | cat >conftest.$ac_ext <<_ACEOF |
21091 | /* confdefs.h. */ | |
21092 | _ACEOF | |
21093 | cat confdefs.h >>conftest.$ac_ext | |
21094 | cat >>conftest.$ac_ext <<_ACEOF | |
21095 | /* end confdefs.h. */ | |
21096 | ||
21097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21098 | #ifdef __cplusplus | |
21099 | extern "C" | |
21100 | #endif | |
21101 | /* We use char because int might match the return type of a gcc2 | |
21102 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21103 | char j0f (); |
e8525382 SK |
21104 | int |
21105 | main () | |
21106 | { | |
1409cd0b | 21107 | j0f (); |
e8525382 SK |
21108 | ; |
21109 | return 0; | |
21110 | } | |
21111 | _ACEOF | |
21112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21114 | (eval $ac_link) 2>conftest.er1 | |
21115 | ac_status=$? | |
21116 | grep -v '^ *+' conftest.er1 >conftest.err | |
21117 | rm -f conftest.er1 | |
21118 | cat conftest.err >&5 | |
21119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21120 | (exit $ac_status); } && | |
57255173 PB |
21121 | { ac_try='test -z "$ac_c_werror_flag" |
21122 | || test ! -s conftest.err' | |
e8525382 SK |
21123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21124 | (eval $ac_try) 2>&5 | |
21125 | ac_status=$? | |
21126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21127 | (exit $ac_status); }; } && | |
21128 | { ac_try='test -s conftest$ac_exeext' | |
21129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21130 | (eval $ac_try) 2>&5 | |
21131 | ac_status=$? | |
21132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21133 | (exit $ac_status); }; }; then | |
1409cd0b | 21134 | ac_cv_lib_m_j0f=yes |
e8525382 SK |
21135 | else |
21136 | echo "$as_me: failed program was:" >&5 | |
21137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21138 | ||
1409cd0b FXC |
21139 | ac_cv_lib_m_j0f=no |
21140 | fi | |
21141 | rm -f conftest.err conftest.$ac_objext \ | |
21142 | conftest$ac_exeext conftest.$ac_ext | |
21143 | LIBS=$ac_check_lib_save_LIBS | |
21144 | fi | |
21145 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5 | |
21146 | echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6 | |
21147 | if test $ac_cv_lib_m_j0f = yes; then | |
21148 | ||
21149 | cat >>confdefs.h <<\_ACEOF | |
21150 | #define HAVE_J0F 1 | |
21151 | _ACEOF | |
21152 | ||
21153 | fi | |
21154 | ||
21155 | echo "$as_me:$LINENO: checking for j0 in -lm" >&5 | |
21156 | echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6 | |
21157 | if test "${ac_cv_lib_m_j0+set}" = set; then | |
21158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21159 | else | |
21160 | ac_check_lib_save_LIBS=$LIBS | |
21161 | LIBS="-lm $LIBS" | |
21162 | if test x$gcc_no_link = xyes; then | |
21163 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21164 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21165 | { (exit 1); exit 1; }; } | |
21166 | fi | |
21167 | cat >conftest.$ac_ext <<_ACEOF | |
21168 | /* confdefs.h. */ | |
21169 | _ACEOF | |
21170 | cat confdefs.h >>conftest.$ac_ext | |
21171 | cat >>conftest.$ac_ext <<_ACEOF | |
21172 | /* end confdefs.h. */ | |
21173 | ||
21174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21175 | #ifdef __cplusplus | |
21176 | extern "C" | |
21177 | #endif | |
21178 | /* We use char because int might match the return type of a gcc2 | |
21179 | builtin and then its argument prototype would still apply. */ | |
21180 | char j0 (); | |
21181 | int | |
21182 | main () | |
21183 | { | |
21184 | j0 (); | |
21185 | ; | |
21186 | return 0; | |
21187 | } | |
21188 | _ACEOF | |
21189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21191 | (eval $ac_link) 2>conftest.er1 | |
21192 | ac_status=$? | |
21193 | grep -v '^ *+' conftest.er1 >conftest.err | |
21194 | rm -f conftest.er1 | |
21195 | cat conftest.err >&5 | |
21196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21197 | (exit $ac_status); } && | |
57255173 PB |
21198 | { ac_try='test -z "$ac_c_werror_flag" |
21199 | || test ! -s conftest.err' | |
1409cd0b FXC |
21200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21201 | (eval $ac_try) 2>&5 | |
21202 | ac_status=$? | |
21203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21204 | (exit $ac_status); }; } && | |
21205 | { ac_try='test -s conftest$ac_exeext' | |
21206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21207 | (eval $ac_try) 2>&5 | |
21208 | ac_status=$? | |
21209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21210 | (exit $ac_status); }; }; then | |
21211 | ac_cv_lib_m_j0=yes | |
21212 | else | |
21213 | echo "$as_me: failed program was:" >&5 | |
21214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21215 | ||
21216 | ac_cv_lib_m_j0=no | |
21217 | fi | |
21218 | rm -f conftest.err conftest.$ac_objext \ | |
21219 | conftest$ac_exeext conftest.$ac_ext | |
21220 | LIBS=$ac_check_lib_save_LIBS | |
21221 | fi | |
21222 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5 | |
21223 | echo "${ECHO_T}$ac_cv_lib_m_j0" >&6 | |
21224 | if test $ac_cv_lib_m_j0 = yes; then | |
21225 | ||
21226 | cat >>confdefs.h <<\_ACEOF | |
21227 | #define HAVE_J0 1 | |
21228 | _ACEOF | |
21229 | ||
21230 | fi | |
21231 | ||
21232 | echo "$as_me:$LINENO: checking for j0l in -lm" >&5 | |
21233 | echo $ECHO_N "checking for j0l in -lm... $ECHO_C" >&6 | |
21234 | if test "${ac_cv_lib_m_j0l+set}" = set; then | |
21235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21236 | else | |
21237 | ac_check_lib_save_LIBS=$LIBS | |
21238 | LIBS="-lm $LIBS" | |
21239 | if test x$gcc_no_link = xyes; then | |
21240 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21241 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21242 | { (exit 1); exit 1; }; } | |
21243 | fi | |
21244 | cat >conftest.$ac_ext <<_ACEOF | |
21245 | /* confdefs.h. */ | |
21246 | _ACEOF | |
21247 | cat confdefs.h >>conftest.$ac_ext | |
21248 | cat >>conftest.$ac_ext <<_ACEOF | |
21249 | /* end confdefs.h. */ | |
21250 | ||
21251 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21252 | #ifdef __cplusplus | |
21253 | extern "C" | |
21254 | #endif | |
21255 | /* We use char because int might match the return type of a gcc2 | |
21256 | builtin and then its argument prototype would still apply. */ | |
21257 | char j0l (); | |
21258 | int | |
21259 | main () | |
21260 | { | |
21261 | j0l (); | |
21262 | ; | |
21263 | return 0; | |
21264 | } | |
21265 | _ACEOF | |
21266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21268 | (eval $ac_link) 2>conftest.er1 | |
21269 | ac_status=$? | |
21270 | grep -v '^ *+' conftest.er1 >conftest.err | |
21271 | rm -f conftest.er1 | |
21272 | cat conftest.err >&5 | |
21273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21274 | (exit $ac_status); } && | |
57255173 PB |
21275 | { ac_try='test -z "$ac_c_werror_flag" |
21276 | || test ! -s conftest.err' | |
1409cd0b FXC |
21277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21278 | (eval $ac_try) 2>&5 | |
21279 | ac_status=$? | |
21280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21281 | (exit $ac_status); }; } && | |
21282 | { ac_try='test -s conftest$ac_exeext' | |
21283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21284 | (eval $ac_try) 2>&5 | |
21285 | ac_status=$? | |
21286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21287 | (exit $ac_status); }; }; then | |
21288 | ac_cv_lib_m_j0l=yes | |
21289 | else | |
21290 | echo "$as_me: failed program was:" >&5 | |
21291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21292 | ||
21293 | ac_cv_lib_m_j0l=no | |
21294 | fi | |
21295 | rm -f conftest.err conftest.$ac_objext \ | |
21296 | conftest$ac_exeext conftest.$ac_ext | |
21297 | LIBS=$ac_check_lib_save_LIBS | |
21298 | fi | |
21299 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0l" >&5 | |
21300 | echo "${ECHO_T}$ac_cv_lib_m_j0l" >&6 | |
21301 | if test $ac_cv_lib_m_j0l = yes; then | |
21302 | ||
21303 | cat >>confdefs.h <<\_ACEOF | |
21304 | #define HAVE_J0L 1 | |
21305 | _ACEOF | |
21306 | ||
21307 | fi | |
21308 | ||
21309 | echo "$as_me:$LINENO: checking for j1f in -lm" >&5 | |
21310 | echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6 | |
21311 | if test "${ac_cv_lib_m_j1f+set}" = set; then | |
21312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21313 | else | |
21314 | ac_check_lib_save_LIBS=$LIBS | |
21315 | LIBS="-lm $LIBS" | |
21316 | if test x$gcc_no_link = xyes; then | |
21317 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21318 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21319 | { (exit 1); exit 1; }; } | |
21320 | fi | |
21321 | cat >conftest.$ac_ext <<_ACEOF | |
21322 | /* confdefs.h. */ | |
21323 | _ACEOF | |
21324 | cat confdefs.h >>conftest.$ac_ext | |
21325 | cat >>conftest.$ac_ext <<_ACEOF | |
21326 | /* end confdefs.h. */ | |
21327 | ||
21328 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21329 | #ifdef __cplusplus | |
21330 | extern "C" | |
21331 | #endif | |
21332 | /* We use char because int might match the return type of a gcc2 | |
21333 | builtin and then its argument prototype would still apply. */ | |
21334 | char j1f (); | |
21335 | int | |
21336 | main () | |
21337 | { | |
21338 | j1f (); | |
21339 | ; | |
21340 | return 0; | |
21341 | } | |
21342 | _ACEOF | |
21343 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21345 | (eval $ac_link) 2>conftest.er1 | |
21346 | ac_status=$? | |
21347 | grep -v '^ *+' conftest.er1 >conftest.err | |
21348 | rm -f conftest.er1 | |
21349 | cat conftest.err >&5 | |
21350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21351 | (exit $ac_status); } && | |
57255173 PB |
21352 | { ac_try='test -z "$ac_c_werror_flag" |
21353 | || test ! -s conftest.err' | |
1409cd0b FXC |
21354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21355 | (eval $ac_try) 2>&5 | |
21356 | ac_status=$? | |
21357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21358 | (exit $ac_status); }; } && | |
21359 | { ac_try='test -s conftest$ac_exeext' | |
21360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21361 | (eval $ac_try) 2>&5 | |
21362 | ac_status=$? | |
21363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21364 | (exit $ac_status); }; }; then | |
21365 | ac_cv_lib_m_j1f=yes | |
21366 | else | |
21367 | echo "$as_me: failed program was:" >&5 | |
21368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21369 | ||
21370 | ac_cv_lib_m_j1f=no | |
e8525382 SK |
21371 | fi |
21372 | rm -f conftest.err conftest.$ac_objext \ | |
21373 | conftest$ac_exeext conftest.$ac_ext | |
21374 | LIBS=$ac_check_lib_save_LIBS | |
21375 | fi | |
1409cd0b FXC |
21376 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5 |
21377 | echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6 | |
21378 | if test $ac_cv_lib_m_j1f = yes; then | |
e8525382 SK |
21379 | |
21380 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21381 | #define HAVE_J1F 1 |
e8525382 SK |
21382 | _ACEOF |
21383 | ||
21384 | fi | |
21385 | ||
1409cd0b FXC |
21386 | echo "$as_me:$LINENO: checking for j1 in -lm" >&5 |
21387 | echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6 | |
21388 | if test "${ac_cv_lib_m_j1+set}" = set; then | |
e8525382 SK |
21389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21390 | else | |
21391 | ac_check_lib_save_LIBS=$LIBS | |
21392 | LIBS="-lm $LIBS" | |
f02d008e JD |
21393 | if test x$gcc_no_link = xyes; then |
21394 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21395 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21396 | { (exit 1); exit 1; }; } | |
21397 | fi | |
e8525382 SK |
21398 | cat >conftest.$ac_ext <<_ACEOF |
21399 | /* confdefs.h. */ | |
21400 | _ACEOF | |
21401 | cat confdefs.h >>conftest.$ac_ext | |
21402 | cat >>conftest.$ac_ext <<_ACEOF | |
21403 | /* end confdefs.h. */ | |
21404 | ||
21405 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21406 | #ifdef __cplusplus | |
21407 | extern "C" | |
21408 | #endif | |
21409 | /* We use char because int might match the return type of a gcc2 | |
21410 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21411 | char j1 (); |
e8525382 SK |
21412 | int |
21413 | main () | |
21414 | { | |
1409cd0b | 21415 | j1 (); |
e8525382 SK |
21416 | ; |
21417 | return 0; | |
21418 | } | |
21419 | _ACEOF | |
21420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21422 | (eval $ac_link) 2>conftest.er1 | |
21423 | ac_status=$? | |
21424 | grep -v '^ *+' conftest.er1 >conftest.err | |
21425 | rm -f conftest.er1 | |
21426 | cat conftest.err >&5 | |
21427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21428 | (exit $ac_status); } && | |
57255173 PB |
21429 | { ac_try='test -z "$ac_c_werror_flag" |
21430 | || test ! -s conftest.err' | |
e8525382 SK |
21431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21432 | (eval $ac_try) 2>&5 | |
21433 | ac_status=$? | |
21434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21435 | (exit $ac_status); }; } && | |
21436 | { ac_try='test -s conftest$ac_exeext' | |
21437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21438 | (eval $ac_try) 2>&5 | |
21439 | ac_status=$? | |
21440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21441 | (exit $ac_status); }; }; then | |
1409cd0b | 21442 | ac_cv_lib_m_j1=yes |
e8525382 SK |
21443 | else |
21444 | echo "$as_me: failed program was:" >&5 | |
21445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21446 | ||
1409cd0b | 21447 | ac_cv_lib_m_j1=no |
e8525382 SK |
21448 | fi |
21449 | rm -f conftest.err conftest.$ac_objext \ | |
21450 | conftest$ac_exeext conftest.$ac_ext | |
21451 | LIBS=$ac_check_lib_save_LIBS | |
21452 | fi | |
1409cd0b FXC |
21453 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5 |
21454 | echo "${ECHO_T}$ac_cv_lib_m_j1" >&6 | |
21455 | if test $ac_cv_lib_m_j1 = yes; then | |
e8525382 SK |
21456 | |
21457 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21458 | #define HAVE_J1 1 |
e8525382 SK |
21459 | _ACEOF |
21460 | ||
21461 | fi | |
21462 | ||
1409cd0b FXC |
21463 | echo "$as_me:$LINENO: checking for j1l in -lm" >&5 |
21464 | echo $ECHO_N "checking for j1l in -lm... $ECHO_C" >&6 | |
21465 | if test "${ac_cv_lib_m_j1l+set}" = set; then | |
e8525382 SK |
21466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21467 | else | |
21468 | ac_check_lib_save_LIBS=$LIBS | |
21469 | LIBS="-lm $LIBS" | |
f02d008e JD |
21470 | if test x$gcc_no_link = xyes; then |
21471 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21472 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21473 | { (exit 1); exit 1; }; } | |
21474 | fi | |
e8525382 SK |
21475 | cat >conftest.$ac_ext <<_ACEOF |
21476 | /* confdefs.h. */ | |
21477 | _ACEOF | |
21478 | cat confdefs.h >>conftest.$ac_ext | |
21479 | cat >>conftest.$ac_ext <<_ACEOF | |
21480 | /* end confdefs.h. */ | |
21481 | ||
21482 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21483 | #ifdef __cplusplus | |
21484 | extern "C" | |
21485 | #endif | |
21486 | /* We use char because int might match the return type of a gcc2 | |
21487 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21488 | char j1l (); |
e8525382 SK |
21489 | int |
21490 | main () | |
21491 | { | |
1409cd0b | 21492 | j1l (); |
e8525382 SK |
21493 | ; |
21494 | return 0; | |
21495 | } | |
21496 | _ACEOF | |
21497 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21499 | (eval $ac_link) 2>conftest.er1 | |
21500 | ac_status=$? | |
21501 | grep -v '^ *+' conftest.er1 >conftest.err | |
21502 | rm -f conftest.er1 | |
21503 | cat conftest.err >&5 | |
21504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21505 | (exit $ac_status); } && | |
57255173 PB |
21506 | { ac_try='test -z "$ac_c_werror_flag" |
21507 | || test ! -s conftest.err' | |
e8525382 SK |
21508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21509 | (eval $ac_try) 2>&5 | |
21510 | ac_status=$? | |
21511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21512 | (exit $ac_status); }; } && | |
21513 | { ac_try='test -s conftest$ac_exeext' | |
21514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21515 | (eval $ac_try) 2>&5 | |
21516 | ac_status=$? | |
21517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21518 | (exit $ac_status); }; }; then | |
1409cd0b | 21519 | ac_cv_lib_m_j1l=yes |
e8525382 SK |
21520 | else |
21521 | echo "$as_me: failed program was:" >&5 | |
21522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21523 | ||
1409cd0b | 21524 | ac_cv_lib_m_j1l=no |
e8525382 SK |
21525 | fi |
21526 | rm -f conftest.err conftest.$ac_objext \ | |
21527 | conftest$ac_exeext conftest.$ac_ext | |
21528 | LIBS=$ac_check_lib_save_LIBS | |
21529 | fi | |
1409cd0b FXC |
21530 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1l" >&5 |
21531 | echo "${ECHO_T}$ac_cv_lib_m_j1l" >&6 | |
21532 | if test $ac_cv_lib_m_j1l = yes; then | |
e8525382 SK |
21533 | |
21534 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21535 | #define HAVE_J1L 1 |
e8525382 SK |
21536 | _ACEOF |
21537 | ||
21538 | fi | |
21539 | ||
1409cd0b FXC |
21540 | echo "$as_me:$LINENO: checking for jnf in -lm" >&5 |
21541 | echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6 | |
21542 | if test "${ac_cv_lib_m_jnf+set}" = set; then | |
e8525382 SK |
21543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21544 | else | |
21545 | ac_check_lib_save_LIBS=$LIBS | |
21546 | LIBS="-lm $LIBS" | |
f02d008e JD |
21547 | if test x$gcc_no_link = xyes; then |
21548 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21549 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21550 | { (exit 1); exit 1; }; } | |
21551 | fi | |
e8525382 SK |
21552 | cat >conftest.$ac_ext <<_ACEOF |
21553 | /* confdefs.h. */ | |
21554 | _ACEOF | |
21555 | cat confdefs.h >>conftest.$ac_ext | |
21556 | cat >>conftest.$ac_ext <<_ACEOF | |
21557 | /* end confdefs.h. */ | |
21558 | ||
21559 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21560 | #ifdef __cplusplus | |
21561 | extern "C" | |
21562 | #endif | |
21563 | /* We use char because int might match the return type of a gcc2 | |
21564 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21565 | char jnf (); |
e8525382 SK |
21566 | int |
21567 | main () | |
21568 | { | |
1409cd0b | 21569 | jnf (); |
e8525382 SK |
21570 | ; |
21571 | return 0; | |
21572 | } | |
21573 | _ACEOF | |
21574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21576 | (eval $ac_link) 2>conftest.er1 | |
21577 | ac_status=$? | |
21578 | grep -v '^ *+' conftest.er1 >conftest.err | |
21579 | rm -f conftest.er1 | |
21580 | cat conftest.err >&5 | |
21581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21582 | (exit $ac_status); } && | |
57255173 PB |
21583 | { ac_try='test -z "$ac_c_werror_flag" |
21584 | || test ! -s conftest.err' | |
e8525382 SK |
21585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21586 | (eval $ac_try) 2>&5 | |
21587 | ac_status=$? | |
21588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21589 | (exit $ac_status); }; } && | |
21590 | { ac_try='test -s conftest$ac_exeext' | |
21591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21592 | (eval $ac_try) 2>&5 | |
21593 | ac_status=$? | |
21594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21595 | (exit $ac_status); }; }; then | |
1409cd0b | 21596 | ac_cv_lib_m_jnf=yes |
e8525382 SK |
21597 | else |
21598 | echo "$as_me: failed program was:" >&5 | |
21599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21600 | ||
1409cd0b | 21601 | ac_cv_lib_m_jnf=no |
e8525382 SK |
21602 | fi |
21603 | rm -f conftest.err conftest.$ac_objext \ | |
21604 | conftest$ac_exeext conftest.$ac_ext | |
21605 | LIBS=$ac_check_lib_save_LIBS | |
21606 | fi | |
1409cd0b FXC |
21607 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5 |
21608 | echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6 | |
21609 | if test $ac_cv_lib_m_jnf = yes; then | |
e8525382 SK |
21610 | |
21611 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21612 | #define HAVE_JNF 1 |
e8525382 SK |
21613 | _ACEOF |
21614 | ||
21615 | fi | |
21616 | ||
1409cd0b FXC |
21617 | echo "$as_me:$LINENO: checking for jn in -lm" >&5 |
21618 | echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6 | |
21619 | if test "${ac_cv_lib_m_jn+set}" = set; then | |
e8525382 SK |
21620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21621 | else | |
21622 | ac_check_lib_save_LIBS=$LIBS | |
21623 | LIBS="-lm $LIBS" | |
f02d008e JD |
21624 | if test x$gcc_no_link = xyes; then |
21625 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21626 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21627 | { (exit 1); exit 1; }; } | |
21628 | fi | |
e8525382 SK |
21629 | cat >conftest.$ac_ext <<_ACEOF |
21630 | /* confdefs.h. */ | |
21631 | _ACEOF | |
21632 | cat confdefs.h >>conftest.$ac_ext | |
21633 | cat >>conftest.$ac_ext <<_ACEOF | |
21634 | /* end confdefs.h. */ | |
21635 | ||
21636 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21637 | #ifdef __cplusplus | |
21638 | extern "C" | |
21639 | #endif | |
21640 | /* We use char because int might match the return type of a gcc2 | |
21641 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21642 | char jn (); |
e8525382 SK |
21643 | int |
21644 | main () | |
21645 | { | |
1409cd0b | 21646 | jn (); |
e8525382 SK |
21647 | ; |
21648 | return 0; | |
21649 | } | |
21650 | _ACEOF | |
21651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21653 | (eval $ac_link) 2>conftest.er1 | |
21654 | ac_status=$? | |
21655 | grep -v '^ *+' conftest.er1 >conftest.err | |
21656 | rm -f conftest.er1 | |
21657 | cat conftest.err >&5 | |
21658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21659 | (exit $ac_status); } && | |
57255173 PB |
21660 | { ac_try='test -z "$ac_c_werror_flag" |
21661 | || test ! -s conftest.err' | |
e8525382 SK |
21662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21663 | (eval $ac_try) 2>&5 | |
21664 | ac_status=$? | |
21665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21666 | (exit $ac_status); }; } && | |
21667 | { ac_try='test -s conftest$ac_exeext' | |
21668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21669 | (eval $ac_try) 2>&5 | |
21670 | ac_status=$? | |
21671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21672 | (exit $ac_status); }; }; then | |
1409cd0b | 21673 | ac_cv_lib_m_jn=yes |
e8525382 SK |
21674 | else |
21675 | echo "$as_me: failed program was:" >&5 | |
21676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21677 | ||
1409cd0b | 21678 | ac_cv_lib_m_jn=no |
e8525382 SK |
21679 | fi |
21680 | rm -f conftest.err conftest.$ac_objext \ | |
21681 | conftest$ac_exeext conftest.$ac_ext | |
21682 | LIBS=$ac_check_lib_save_LIBS | |
21683 | fi | |
1409cd0b FXC |
21684 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5 |
21685 | echo "${ECHO_T}$ac_cv_lib_m_jn" >&6 | |
21686 | if test $ac_cv_lib_m_jn = yes; then | |
e8525382 SK |
21687 | |
21688 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21689 | #define HAVE_JN 1 |
e8525382 SK |
21690 | _ACEOF |
21691 | ||
21692 | fi | |
21693 | ||
1409cd0b FXC |
21694 | echo "$as_me:$LINENO: checking for jnl in -lm" >&5 |
21695 | echo $ECHO_N "checking for jnl in -lm... $ECHO_C" >&6 | |
21696 | if test "${ac_cv_lib_m_jnl+set}" = set; then | |
e8525382 SK |
21697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21698 | else | |
21699 | ac_check_lib_save_LIBS=$LIBS | |
21700 | LIBS="-lm $LIBS" | |
f02d008e JD |
21701 | if test x$gcc_no_link = xyes; then |
21702 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21703 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21704 | { (exit 1); exit 1; }; } | |
21705 | fi | |
e8525382 SK |
21706 | cat >conftest.$ac_ext <<_ACEOF |
21707 | /* confdefs.h. */ | |
21708 | _ACEOF | |
21709 | cat confdefs.h >>conftest.$ac_ext | |
21710 | cat >>conftest.$ac_ext <<_ACEOF | |
21711 | /* end confdefs.h. */ | |
21712 | ||
21713 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21714 | #ifdef __cplusplus | |
21715 | extern "C" | |
21716 | #endif | |
21717 | /* We use char because int might match the return type of a gcc2 | |
21718 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21719 | char jnl (); |
e8525382 SK |
21720 | int |
21721 | main () | |
21722 | { | |
1409cd0b | 21723 | jnl (); |
e8525382 SK |
21724 | ; |
21725 | return 0; | |
21726 | } | |
21727 | _ACEOF | |
21728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21730 | (eval $ac_link) 2>conftest.er1 | |
21731 | ac_status=$? | |
21732 | grep -v '^ *+' conftest.er1 >conftest.err | |
21733 | rm -f conftest.er1 | |
21734 | cat conftest.err >&5 | |
21735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21736 | (exit $ac_status); } && | |
57255173 PB |
21737 | { ac_try='test -z "$ac_c_werror_flag" |
21738 | || test ! -s conftest.err' | |
e8525382 SK |
21739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21740 | (eval $ac_try) 2>&5 | |
21741 | ac_status=$? | |
21742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21743 | (exit $ac_status); }; } && | |
21744 | { ac_try='test -s conftest$ac_exeext' | |
21745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21746 | (eval $ac_try) 2>&5 | |
21747 | ac_status=$? | |
21748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21749 | (exit $ac_status); }; }; then | |
1409cd0b | 21750 | ac_cv_lib_m_jnl=yes |
e8525382 SK |
21751 | else |
21752 | echo "$as_me: failed program was:" >&5 | |
21753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21754 | ||
1409cd0b | 21755 | ac_cv_lib_m_jnl=no |
e8525382 SK |
21756 | fi |
21757 | rm -f conftest.err conftest.$ac_objext \ | |
21758 | conftest$ac_exeext conftest.$ac_ext | |
21759 | LIBS=$ac_check_lib_save_LIBS | |
21760 | fi | |
1409cd0b FXC |
21761 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnl" >&5 |
21762 | echo "${ECHO_T}$ac_cv_lib_m_jnl" >&6 | |
21763 | if test $ac_cv_lib_m_jnl = yes; then | |
e8525382 SK |
21764 | |
21765 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21766 | #define HAVE_JNL 1 |
e8525382 SK |
21767 | _ACEOF |
21768 | ||
21769 | fi | |
21770 | ||
1409cd0b FXC |
21771 | echo "$as_me:$LINENO: checking for y0f in -lm" >&5 |
21772 | echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6 | |
21773 | if test "${ac_cv_lib_m_y0f+set}" = set; then | |
e8525382 SK |
21774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21775 | else | |
21776 | ac_check_lib_save_LIBS=$LIBS | |
21777 | LIBS="-lm $LIBS" | |
f02d008e JD |
21778 | if test x$gcc_no_link = xyes; then |
21779 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21780 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21781 | { (exit 1); exit 1; }; } | |
21782 | fi | |
e8525382 SK |
21783 | cat >conftest.$ac_ext <<_ACEOF |
21784 | /* confdefs.h. */ | |
21785 | _ACEOF | |
21786 | cat confdefs.h >>conftest.$ac_ext | |
21787 | cat >>conftest.$ac_ext <<_ACEOF | |
21788 | /* end confdefs.h. */ | |
21789 | ||
21790 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21791 | #ifdef __cplusplus | |
21792 | extern "C" | |
21793 | #endif | |
21794 | /* We use char because int might match the return type of a gcc2 | |
21795 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21796 | char y0f (); |
e8525382 SK |
21797 | int |
21798 | main () | |
21799 | { | |
1409cd0b | 21800 | y0f (); |
e8525382 SK |
21801 | ; |
21802 | return 0; | |
21803 | } | |
21804 | _ACEOF | |
21805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21807 | (eval $ac_link) 2>conftest.er1 | |
21808 | ac_status=$? | |
21809 | grep -v '^ *+' conftest.er1 >conftest.err | |
21810 | rm -f conftest.er1 | |
21811 | cat conftest.err >&5 | |
21812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21813 | (exit $ac_status); } && | |
57255173 PB |
21814 | { ac_try='test -z "$ac_c_werror_flag" |
21815 | || test ! -s conftest.err' | |
e8525382 SK |
21816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21817 | (eval $ac_try) 2>&5 | |
21818 | ac_status=$? | |
21819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21820 | (exit $ac_status); }; } && | |
21821 | { ac_try='test -s conftest$ac_exeext' | |
21822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21823 | (eval $ac_try) 2>&5 | |
21824 | ac_status=$? | |
21825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21826 | (exit $ac_status); }; }; then | |
1409cd0b | 21827 | ac_cv_lib_m_y0f=yes |
e8525382 SK |
21828 | else |
21829 | echo "$as_me: failed program was:" >&5 | |
21830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21831 | ||
1409cd0b | 21832 | ac_cv_lib_m_y0f=no |
e8525382 SK |
21833 | fi |
21834 | rm -f conftest.err conftest.$ac_objext \ | |
21835 | conftest$ac_exeext conftest.$ac_ext | |
21836 | LIBS=$ac_check_lib_save_LIBS | |
21837 | fi | |
1409cd0b FXC |
21838 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5 |
21839 | echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6 | |
21840 | if test $ac_cv_lib_m_y0f = yes; then | |
e8525382 SK |
21841 | |
21842 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21843 | #define HAVE_Y0F 1 |
e8525382 SK |
21844 | _ACEOF |
21845 | ||
21846 | fi | |
21847 | ||
1409cd0b FXC |
21848 | echo "$as_me:$LINENO: checking for y0 in -lm" >&5 |
21849 | echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6 | |
21850 | if test "${ac_cv_lib_m_y0+set}" = set; then | |
e8525382 SK |
21851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21852 | else | |
21853 | ac_check_lib_save_LIBS=$LIBS | |
21854 | LIBS="-lm $LIBS" | |
f02d008e JD |
21855 | if test x$gcc_no_link = xyes; then |
21856 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21857 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21858 | { (exit 1); exit 1; }; } | |
21859 | fi | |
e8525382 SK |
21860 | cat >conftest.$ac_ext <<_ACEOF |
21861 | /* confdefs.h. */ | |
21862 | _ACEOF | |
21863 | cat confdefs.h >>conftest.$ac_ext | |
21864 | cat >>conftest.$ac_ext <<_ACEOF | |
21865 | /* end confdefs.h. */ | |
21866 | ||
21867 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21868 | #ifdef __cplusplus | |
21869 | extern "C" | |
21870 | #endif | |
21871 | /* We use char because int might match the return type of a gcc2 | |
21872 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21873 | char y0 (); |
e8525382 SK |
21874 | int |
21875 | main () | |
21876 | { | |
1409cd0b | 21877 | y0 (); |
e8525382 SK |
21878 | ; |
21879 | return 0; | |
21880 | } | |
21881 | _ACEOF | |
21882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21884 | (eval $ac_link) 2>conftest.er1 | |
21885 | ac_status=$? | |
21886 | grep -v '^ *+' conftest.er1 >conftest.err | |
21887 | rm -f conftest.er1 | |
21888 | cat conftest.err >&5 | |
21889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21890 | (exit $ac_status); } && | |
57255173 PB |
21891 | { ac_try='test -z "$ac_c_werror_flag" |
21892 | || test ! -s conftest.err' | |
e8525382 SK |
21893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21894 | (eval $ac_try) 2>&5 | |
21895 | ac_status=$? | |
21896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21897 | (exit $ac_status); }; } && | |
21898 | { ac_try='test -s conftest$ac_exeext' | |
21899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21900 | (eval $ac_try) 2>&5 | |
21901 | ac_status=$? | |
21902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21903 | (exit $ac_status); }; }; then | |
1409cd0b | 21904 | ac_cv_lib_m_y0=yes |
e8525382 SK |
21905 | else |
21906 | echo "$as_me: failed program was:" >&5 | |
21907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21908 | ||
1409cd0b | 21909 | ac_cv_lib_m_y0=no |
e8525382 SK |
21910 | fi |
21911 | rm -f conftest.err conftest.$ac_objext \ | |
21912 | conftest$ac_exeext conftest.$ac_ext | |
21913 | LIBS=$ac_check_lib_save_LIBS | |
21914 | fi | |
1409cd0b FXC |
21915 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5 |
21916 | echo "${ECHO_T}$ac_cv_lib_m_y0" >&6 | |
21917 | if test $ac_cv_lib_m_y0 = yes; then | |
e8525382 SK |
21918 | |
21919 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21920 | #define HAVE_Y0 1 |
e8525382 SK |
21921 | _ACEOF |
21922 | ||
21923 | fi | |
21924 | ||
1409cd0b FXC |
21925 | echo "$as_me:$LINENO: checking for y0l in -lm" >&5 |
21926 | echo $ECHO_N "checking for y0l in -lm... $ECHO_C" >&6 | |
21927 | if test "${ac_cv_lib_m_y0l+set}" = set; then | |
e8525382 SK |
21928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21929 | else | |
21930 | ac_check_lib_save_LIBS=$LIBS | |
21931 | LIBS="-lm $LIBS" | |
f02d008e JD |
21932 | if test x$gcc_no_link = xyes; then |
21933 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21934 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21935 | { (exit 1); exit 1; }; } | |
21936 | fi | |
e8525382 SK |
21937 | cat >conftest.$ac_ext <<_ACEOF |
21938 | /* confdefs.h. */ | |
21939 | _ACEOF | |
21940 | cat confdefs.h >>conftest.$ac_ext | |
21941 | cat >>conftest.$ac_ext <<_ACEOF | |
21942 | /* end confdefs.h. */ | |
21943 | ||
21944 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21945 | #ifdef __cplusplus | |
21946 | extern "C" | |
21947 | #endif | |
21948 | /* We use char because int might match the return type of a gcc2 | |
21949 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 21950 | char y0l (); |
e8525382 SK |
21951 | int |
21952 | main () | |
21953 | { | |
1409cd0b | 21954 | y0l (); |
e8525382 SK |
21955 | ; |
21956 | return 0; | |
21957 | } | |
21958 | _ACEOF | |
21959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21961 | (eval $ac_link) 2>conftest.er1 | |
21962 | ac_status=$? | |
21963 | grep -v '^ *+' conftest.er1 >conftest.err | |
21964 | rm -f conftest.er1 | |
21965 | cat conftest.err >&5 | |
21966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21967 | (exit $ac_status); } && | |
57255173 PB |
21968 | { ac_try='test -z "$ac_c_werror_flag" |
21969 | || test ! -s conftest.err' | |
e8525382 SK |
21970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21971 | (eval $ac_try) 2>&5 | |
21972 | ac_status=$? | |
21973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21974 | (exit $ac_status); }; } && | |
21975 | { ac_try='test -s conftest$ac_exeext' | |
21976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21977 | (eval $ac_try) 2>&5 | |
21978 | ac_status=$? | |
21979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21980 | (exit $ac_status); }; }; then | |
1409cd0b | 21981 | ac_cv_lib_m_y0l=yes |
e8525382 SK |
21982 | else |
21983 | echo "$as_me: failed program was:" >&5 | |
21984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21985 | ||
1409cd0b | 21986 | ac_cv_lib_m_y0l=no |
e8525382 SK |
21987 | fi |
21988 | rm -f conftest.err conftest.$ac_objext \ | |
21989 | conftest$ac_exeext conftest.$ac_ext | |
21990 | LIBS=$ac_check_lib_save_LIBS | |
21991 | fi | |
1409cd0b FXC |
21992 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0l" >&5 |
21993 | echo "${ECHO_T}$ac_cv_lib_m_y0l" >&6 | |
21994 | if test $ac_cv_lib_m_y0l = yes; then | |
e8525382 SK |
21995 | |
21996 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 21997 | #define HAVE_Y0L 1 |
e8525382 SK |
21998 | _ACEOF |
21999 | ||
22000 | fi | |
22001 | ||
1409cd0b FXC |
22002 | echo "$as_me:$LINENO: checking for y1f in -lm" >&5 |
22003 | echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6 | |
22004 | if test "${ac_cv_lib_m_y1f+set}" = set; then | |
e8525382 SK |
22005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22006 | else | |
22007 | ac_check_lib_save_LIBS=$LIBS | |
22008 | LIBS="-lm $LIBS" | |
f02d008e JD |
22009 | if test x$gcc_no_link = xyes; then |
22010 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22011 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22012 | { (exit 1); exit 1; }; } | |
22013 | fi | |
e8525382 SK |
22014 | cat >conftest.$ac_ext <<_ACEOF |
22015 | /* confdefs.h. */ | |
22016 | _ACEOF | |
22017 | cat confdefs.h >>conftest.$ac_ext | |
22018 | cat >>conftest.$ac_ext <<_ACEOF | |
22019 | /* end confdefs.h. */ | |
22020 | ||
22021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22022 | #ifdef __cplusplus | |
22023 | extern "C" | |
22024 | #endif | |
22025 | /* We use char because int might match the return type of a gcc2 | |
22026 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 22027 | char y1f (); |
e8525382 SK |
22028 | int |
22029 | main () | |
22030 | { | |
1409cd0b | 22031 | y1f (); |
e8525382 SK |
22032 | ; |
22033 | return 0; | |
22034 | } | |
22035 | _ACEOF | |
22036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22038 | (eval $ac_link) 2>conftest.er1 | |
22039 | ac_status=$? | |
22040 | grep -v '^ *+' conftest.er1 >conftest.err | |
22041 | rm -f conftest.er1 | |
22042 | cat conftest.err >&5 | |
22043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22044 | (exit $ac_status); } && | |
57255173 PB |
22045 | { ac_try='test -z "$ac_c_werror_flag" |
22046 | || test ! -s conftest.err' | |
e8525382 SK |
22047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22048 | (eval $ac_try) 2>&5 | |
22049 | ac_status=$? | |
22050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22051 | (exit $ac_status); }; } && | |
22052 | { ac_try='test -s conftest$ac_exeext' | |
22053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22054 | (eval $ac_try) 2>&5 | |
22055 | ac_status=$? | |
22056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22057 | (exit $ac_status); }; }; then | |
1409cd0b | 22058 | ac_cv_lib_m_y1f=yes |
e8525382 SK |
22059 | else |
22060 | echo "$as_me: failed program was:" >&5 | |
22061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22062 | ||
1409cd0b | 22063 | ac_cv_lib_m_y1f=no |
e8525382 SK |
22064 | fi |
22065 | rm -f conftest.err conftest.$ac_objext \ | |
22066 | conftest$ac_exeext conftest.$ac_ext | |
22067 | LIBS=$ac_check_lib_save_LIBS | |
22068 | fi | |
1409cd0b FXC |
22069 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5 |
22070 | echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6 | |
22071 | if test $ac_cv_lib_m_y1f = yes; then | |
e8525382 SK |
22072 | |
22073 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 22074 | #define HAVE_Y1F 1 |
e8525382 SK |
22075 | _ACEOF |
22076 | ||
22077 | fi | |
22078 | ||
1409cd0b FXC |
22079 | echo "$as_me:$LINENO: checking for y1 in -lm" >&5 |
22080 | echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6 | |
22081 | if test "${ac_cv_lib_m_y1+set}" = set; then | |
e8525382 SK |
22082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22083 | else | |
22084 | ac_check_lib_save_LIBS=$LIBS | |
22085 | LIBS="-lm $LIBS" | |
f02d008e JD |
22086 | if test x$gcc_no_link = xyes; then |
22087 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22088 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22089 | { (exit 1); exit 1; }; } | |
22090 | fi | |
e8525382 SK |
22091 | cat >conftest.$ac_ext <<_ACEOF |
22092 | /* confdefs.h. */ | |
22093 | _ACEOF | |
22094 | cat confdefs.h >>conftest.$ac_ext | |
22095 | cat >>conftest.$ac_ext <<_ACEOF | |
22096 | /* end confdefs.h. */ | |
22097 | ||
22098 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22099 | #ifdef __cplusplus | |
22100 | extern "C" | |
22101 | #endif | |
22102 | /* We use char because int might match the return type of a gcc2 | |
22103 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 22104 | char y1 (); |
e8525382 SK |
22105 | int |
22106 | main () | |
22107 | { | |
1409cd0b | 22108 | y1 (); |
e8525382 SK |
22109 | ; |
22110 | return 0; | |
22111 | } | |
22112 | _ACEOF | |
22113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22115 | (eval $ac_link) 2>conftest.er1 | |
22116 | ac_status=$? | |
22117 | grep -v '^ *+' conftest.er1 >conftest.err | |
22118 | rm -f conftest.er1 | |
22119 | cat conftest.err >&5 | |
22120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22121 | (exit $ac_status); } && | |
57255173 PB |
22122 | { ac_try='test -z "$ac_c_werror_flag" |
22123 | || test ! -s conftest.err' | |
e8525382 SK |
22124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22125 | (eval $ac_try) 2>&5 | |
22126 | ac_status=$? | |
22127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22128 | (exit $ac_status); }; } && | |
22129 | { ac_try='test -s conftest$ac_exeext' | |
22130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22131 | (eval $ac_try) 2>&5 | |
22132 | ac_status=$? | |
22133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22134 | (exit $ac_status); }; }; then | |
1409cd0b | 22135 | ac_cv_lib_m_y1=yes |
e8525382 SK |
22136 | else |
22137 | echo "$as_me: failed program was:" >&5 | |
22138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22139 | ||
1409cd0b | 22140 | ac_cv_lib_m_y1=no |
e8525382 SK |
22141 | fi |
22142 | rm -f conftest.err conftest.$ac_objext \ | |
22143 | conftest$ac_exeext conftest.$ac_ext | |
22144 | LIBS=$ac_check_lib_save_LIBS | |
22145 | fi | |
1409cd0b FXC |
22146 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5 |
22147 | echo "${ECHO_T}$ac_cv_lib_m_y1" >&6 | |
22148 | if test $ac_cv_lib_m_y1 = yes; then | |
e8525382 SK |
22149 | |
22150 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 22151 | #define HAVE_Y1 1 |
e8525382 SK |
22152 | _ACEOF |
22153 | ||
22154 | fi | |
22155 | ||
1409cd0b FXC |
22156 | echo "$as_me:$LINENO: checking for y1l in -lm" >&5 |
22157 | echo $ECHO_N "checking for y1l in -lm... $ECHO_C" >&6 | |
22158 | if test "${ac_cv_lib_m_y1l+set}" = set; then | |
e8525382 SK |
22159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22160 | else | |
22161 | ac_check_lib_save_LIBS=$LIBS | |
22162 | LIBS="-lm $LIBS" | |
f02d008e JD |
22163 | if test x$gcc_no_link = xyes; then |
22164 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22165 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22166 | { (exit 1); exit 1; }; } | |
22167 | fi | |
e8525382 SK |
22168 | cat >conftest.$ac_ext <<_ACEOF |
22169 | /* confdefs.h. */ | |
22170 | _ACEOF | |
22171 | cat confdefs.h >>conftest.$ac_ext | |
22172 | cat >>conftest.$ac_ext <<_ACEOF | |
22173 | /* end confdefs.h. */ | |
22174 | ||
22175 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22176 | #ifdef __cplusplus | |
22177 | extern "C" | |
22178 | #endif | |
22179 | /* We use char because int might match the return type of a gcc2 | |
22180 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 22181 | char y1l (); |
e8525382 SK |
22182 | int |
22183 | main () | |
22184 | { | |
1409cd0b | 22185 | y1l (); |
e8525382 SK |
22186 | ; |
22187 | return 0; | |
22188 | } | |
22189 | _ACEOF | |
22190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22192 | (eval $ac_link) 2>conftest.er1 | |
22193 | ac_status=$? | |
22194 | grep -v '^ *+' conftest.er1 >conftest.err | |
22195 | rm -f conftest.er1 | |
22196 | cat conftest.err >&5 | |
22197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22198 | (exit $ac_status); } && | |
57255173 PB |
22199 | { ac_try='test -z "$ac_c_werror_flag" |
22200 | || test ! -s conftest.err' | |
e8525382 SK |
22201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22202 | (eval $ac_try) 2>&5 | |
22203 | ac_status=$? | |
22204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22205 | (exit $ac_status); }; } && | |
22206 | { ac_try='test -s conftest$ac_exeext' | |
22207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22208 | (eval $ac_try) 2>&5 | |
22209 | ac_status=$? | |
22210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22211 | (exit $ac_status); }; }; then | |
1409cd0b | 22212 | ac_cv_lib_m_y1l=yes |
e8525382 SK |
22213 | else |
22214 | echo "$as_me: failed program was:" >&5 | |
22215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22216 | ||
1409cd0b | 22217 | ac_cv_lib_m_y1l=no |
e8525382 SK |
22218 | fi |
22219 | rm -f conftest.err conftest.$ac_objext \ | |
22220 | conftest$ac_exeext conftest.$ac_ext | |
22221 | LIBS=$ac_check_lib_save_LIBS | |
22222 | fi | |
1409cd0b FXC |
22223 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1l" >&5 |
22224 | echo "${ECHO_T}$ac_cv_lib_m_y1l" >&6 | |
22225 | if test $ac_cv_lib_m_y1l = yes; then | |
e8525382 SK |
22226 | |
22227 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 22228 | #define HAVE_Y1L 1 |
e8525382 SK |
22229 | _ACEOF |
22230 | ||
22231 | fi | |
22232 | ||
1409cd0b FXC |
22233 | echo "$as_me:$LINENO: checking for ynf in -lm" >&5 |
22234 | echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6 | |
22235 | if test "${ac_cv_lib_m_ynf+set}" = set; then | |
e8525382 SK |
22236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22237 | else | |
22238 | ac_check_lib_save_LIBS=$LIBS | |
22239 | LIBS="-lm $LIBS" | |
f02d008e JD |
22240 | if test x$gcc_no_link = xyes; then |
22241 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22242 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22243 | { (exit 1); exit 1; }; } | |
22244 | fi | |
e8525382 SK |
22245 | cat >conftest.$ac_ext <<_ACEOF |
22246 | /* confdefs.h. */ | |
22247 | _ACEOF | |
22248 | cat confdefs.h >>conftest.$ac_ext | |
22249 | cat >>conftest.$ac_ext <<_ACEOF | |
22250 | /* end confdefs.h. */ | |
22251 | ||
22252 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22253 | #ifdef __cplusplus | |
22254 | extern "C" | |
22255 | #endif | |
22256 | /* We use char because int might match the return type of a gcc2 | |
22257 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 22258 | char ynf (); |
e8525382 SK |
22259 | int |
22260 | main () | |
22261 | { | |
1409cd0b | 22262 | ynf (); |
e8525382 SK |
22263 | ; |
22264 | return 0; | |
22265 | } | |
22266 | _ACEOF | |
22267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22269 | (eval $ac_link) 2>conftest.er1 | |
22270 | ac_status=$? | |
22271 | grep -v '^ *+' conftest.er1 >conftest.err | |
22272 | rm -f conftest.er1 | |
22273 | cat conftest.err >&5 | |
22274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22275 | (exit $ac_status); } && | |
57255173 PB |
22276 | { ac_try='test -z "$ac_c_werror_flag" |
22277 | || test ! -s conftest.err' | |
e8525382 SK |
22278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22279 | (eval $ac_try) 2>&5 | |
22280 | ac_status=$? | |
22281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22282 | (exit $ac_status); }; } && | |
22283 | { ac_try='test -s conftest$ac_exeext' | |
22284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22285 | (eval $ac_try) 2>&5 | |
22286 | ac_status=$? | |
22287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22288 | (exit $ac_status); }; }; then | |
1409cd0b | 22289 | ac_cv_lib_m_ynf=yes |
e8525382 SK |
22290 | else |
22291 | echo "$as_me: failed program was:" >&5 | |
22292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22293 | ||
1409cd0b | 22294 | ac_cv_lib_m_ynf=no |
e8525382 SK |
22295 | fi |
22296 | rm -f conftest.err conftest.$ac_objext \ | |
22297 | conftest$ac_exeext conftest.$ac_ext | |
22298 | LIBS=$ac_check_lib_save_LIBS | |
22299 | fi | |
1409cd0b FXC |
22300 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5 |
22301 | echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6 | |
22302 | if test $ac_cv_lib_m_ynf = yes; then | |
e8525382 SK |
22303 | |
22304 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 22305 | #define HAVE_YNF 1 |
e8525382 SK |
22306 | _ACEOF |
22307 | ||
22308 | fi | |
22309 | ||
22310 | echo "$as_me:$LINENO: checking for yn in -lm" >&5 | |
22311 | echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6 | |
22312 | if test "${ac_cv_lib_m_yn+set}" = set; then | |
22313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22314 | else | |
22315 | ac_check_lib_save_LIBS=$LIBS | |
22316 | LIBS="-lm $LIBS" | |
f02d008e JD |
22317 | if test x$gcc_no_link = xyes; then |
22318 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22319 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22320 | { (exit 1); exit 1; }; } | |
22321 | fi | |
e8525382 SK |
22322 | cat >conftest.$ac_ext <<_ACEOF |
22323 | /* confdefs.h. */ | |
22324 | _ACEOF | |
22325 | cat confdefs.h >>conftest.$ac_ext | |
22326 | cat >>conftest.$ac_ext <<_ACEOF | |
22327 | /* end confdefs.h. */ | |
22328 | ||
22329 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22330 | #ifdef __cplusplus | |
22331 | extern "C" | |
22332 | #endif | |
22333 | /* We use char because int might match the return type of a gcc2 | |
22334 | builtin and then its argument prototype would still apply. */ | |
22335 | char yn (); | |
22336 | int | |
22337 | main () | |
22338 | { | |
22339 | yn (); | |
22340 | ; | |
22341 | return 0; | |
22342 | } | |
22343 | _ACEOF | |
22344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22346 | (eval $ac_link) 2>conftest.er1 | |
22347 | ac_status=$? | |
22348 | grep -v '^ *+' conftest.er1 >conftest.err | |
22349 | rm -f conftest.er1 | |
22350 | cat conftest.err >&5 | |
22351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22352 | (exit $ac_status); } && | |
57255173 PB |
22353 | { ac_try='test -z "$ac_c_werror_flag" |
22354 | || test ! -s conftest.err' | |
e8525382 SK |
22355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22356 | (eval $ac_try) 2>&5 | |
22357 | ac_status=$? | |
22358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22359 | (exit $ac_status); }; } && | |
22360 | { ac_try='test -s conftest$ac_exeext' | |
22361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22362 | (eval $ac_try) 2>&5 | |
22363 | ac_status=$? | |
22364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22365 | (exit $ac_status); }; }; then | |
22366 | ac_cv_lib_m_yn=yes | |
22367 | else | |
22368 | echo "$as_me: failed program was:" >&5 | |
22369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22370 | ||
22371 | ac_cv_lib_m_yn=no | |
22372 | fi | |
22373 | rm -f conftest.err conftest.$ac_objext \ | |
22374 | conftest$ac_exeext conftest.$ac_ext | |
22375 | LIBS=$ac_check_lib_save_LIBS | |
22376 | fi | |
22377 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5 | |
22378 | echo "${ECHO_T}$ac_cv_lib_m_yn" >&6 | |
22379 | if test $ac_cv_lib_m_yn = yes; then | |
22380 | ||
22381 | cat >>confdefs.h <<\_ACEOF | |
22382 | #define HAVE_YN 1 | |
22383 | _ACEOF | |
22384 | ||
22385 | fi | |
22386 | ||
1409cd0b FXC |
22387 | echo "$as_me:$LINENO: checking for ynl in -lm" >&5 |
22388 | echo $ECHO_N "checking for ynl in -lm... $ECHO_C" >&6 | |
22389 | if test "${ac_cv_lib_m_ynl+set}" = set; then | |
e8525382 SK |
22390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22391 | else | |
22392 | ac_check_lib_save_LIBS=$LIBS | |
22393 | LIBS="-lm $LIBS" | |
f02d008e JD |
22394 | if test x$gcc_no_link = xyes; then |
22395 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22396 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22397 | { (exit 1); exit 1; }; } | |
22398 | fi | |
e8525382 SK |
22399 | cat >conftest.$ac_ext <<_ACEOF |
22400 | /* confdefs.h. */ | |
22401 | _ACEOF | |
22402 | cat confdefs.h >>conftest.$ac_ext | |
22403 | cat >>conftest.$ac_ext <<_ACEOF | |
22404 | /* end confdefs.h. */ | |
22405 | ||
22406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22407 | #ifdef __cplusplus | |
22408 | extern "C" | |
22409 | #endif | |
22410 | /* We use char because int might match the return type of a gcc2 | |
22411 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 22412 | char ynl (); |
e8525382 SK |
22413 | int |
22414 | main () | |
22415 | { | |
1409cd0b | 22416 | ynl (); |
e8525382 SK |
22417 | ; |
22418 | return 0; | |
22419 | } | |
22420 | _ACEOF | |
22421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22423 | (eval $ac_link) 2>conftest.er1 | |
22424 | ac_status=$? | |
22425 | grep -v '^ *+' conftest.er1 >conftest.err | |
22426 | rm -f conftest.er1 | |
22427 | cat conftest.err >&5 | |
22428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22429 | (exit $ac_status); } && | |
57255173 PB |
22430 | { ac_try='test -z "$ac_c_werror_flag" |
22431 | || test ! -s conftest.err' | |
e8525382 SK |
22432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22433 | (eval $ac_try) 2>&5 | |
22434 | ac_status=$? | |
22435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22436 | (exit $ac_status); }; } && | |
22437 | { ac_try='test -s conftest$ac_exeext' | |
22438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22439 | (eval $ac_try) 2>&5 | |
22440 | ac_status=$? | |
22441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22442 | (exit $ac_status); }; }; then | |
1409cd0b | 22443 | ac_cv_lib_m_ynl=yes |
e8525382 SK |
22444 | else |
22445 | echo "$as_me: failed program was:" >&5 | |
22446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22447 | ||
1409cd0b | 22448 | ac_cv_lib_m_ynl=no |
e8525382 SK |
22449 | fi |
22450 | rm -f conftest.err conftest.$ac_objext \ | |
22451 | conftest$ac_exeext conftest.$ac_ext | |
22452 | LIBS=$ac_check_lib_save_LIBS | |
22453 | fi | |
1409cd0b FXC |
22454 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynl" >&5 |
22455 | echo "${ECHO_T}$ac_cv_lib_m_ynl" >&6 | |
22456 | if test $ac_cv_lib_m_ynl = yes; then | |
e8525382 SK |
22457 | |
22458 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 22459 | #define HAVE_YNL 1 |
e8525382 SK |
22460 | _ACEOF |
22461 | ||
22462 | fi | |
22463 | ||
a2a2059f | 22464 | |
118ea208 | 22465 | # On AIX, clog is present in libm as __clog |
e097b4f1 DE |
22466 | echo "$as_me:$LINENO: checking for __clog in -lm" >&5 |
22467 | echo $ECHO_N "checking for __clog in -lm... $ECHO_C" >&6 | |
22468 | if test "${ac_cv_lib_m___clog+set}" = set; then | |
22469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22470 | else | |
22471 | ac_check_lib_save_LIBS=$LIBS | |
22472 | LIBS="-lm $LIBS" | |
22473 | if test x$gcc_no_link = xyes; then | |
22474 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22475 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22476 | { (exit 1); exit 1; }; } | |
22477 | fi | |
22478 | cat >conftest.$ac_ext <<_ACEOF | |
22479 | /* confdefs.h. */ | |
22480 | _ACEOF | |
22481 | cat confdefs.h >>conftest.$ac_ext | |
22482 | cat >>conftest.$ac_ext <<_ACEOF | |
22483 | /* end confdefs.h. */ | |
22484 | ||
22485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22486 | #ifdef __cplusplus | |
22487 | extern "C" | |
22488 | #endif | |
22489 | /* We use char because int might match the return type of a gcc2 | |
22490 | builtin and then its argument prototype would still apply. */ | |
22491 | char __clog (); | |
22492 | int | |
22493 | main () | |
22494 | { | |
22495 | __clog (); | |
22496 | ; | |
22497 | return 0; | |
22498 | } | |
22499 | _ACEOF | |
22500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22502 | (eval $ac_link) 2>conftest.er1 | |
22503 | ac_status=$? | |
22504 | grep -v '^ *+' conftest.er1 >conftest.err | |
22505 | rm -f conftest.er1 | |
22506 | cat conftest.err >&5 | |
22507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22508 | (exit $ac_status); } && | |
57255173 PB |
22509 | { ac_try='test -z "$ac_c_werror_flag" |
22510 | || test ! -s conftest.err' | |
e097b4f1 DE |
22511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22512 | (eval $ac_try) 2>&5 | |
22513 | ac_status=$? | |
22514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22515 | (exit $ac_status); }; } && | |
22516 | { ac_try='test -s conftest$ac_exeext' | |
22517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22518 | (eval $ac_try) 2>&5 | |
22519 | ac_status=$? | |
22520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22521 | (exit $ac_status); }; }; then | |
22522 | ac_cv_lib_m___clog=yes | |
22523 | else | |
22524 | echo "$as_me: failed program was:" >&5 | |
22525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22526 | ||
22527 | ac_cv_lib_m___clog=no | |
22528 | fi | |
22529 | rm -f conftest.err conftest.$ac_objext \ | |
22530 | conftest$ac_exeext conftest.$ac_ext | |
22531 | LIBS=$ac_check_lib_save_LIBS | |
22532 | fi | |
22533 | echo "$as_me:$LINENO: result: $ac_cv_lib_m___clog" >&5 | |
22534 | echo "${ECHO_T}$ac_cv_lib_m___clog" >&6 | |
22535 | if test $ac_cv_lib_m___clog = yes; then | |
22536 | ||
22537 | cat >>confdefs.h <<\_ACEOF | |
22538 | #define HAVE_CLOG 1 | |
22539 | _ACEOF | |
22540 | ||
22541 | fi | |
22542 | ||
22543 | ||
118ea208 SE |
22544 | # Check for a isfinite macro that works on long doubles. |
22545 | ||
22546 | echo "$as_me:$LINENO: checking whether isfinite is broken" >&5 | |
22547 | echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6 | |
22548 | if test "${have_broken_isfinite+set}" = set; then | |
22549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22550 | else | |
22551 | ||
22552 | libgfor_check_for_broken_isfinite_save_LIBS=$LIBS | |
22553 | LIBS="$LIBS -lm" | |
22554 | if test "$cross_compiling" = yes; then | |
22555 | ||
22556 | case "${target}" in | |
22557 | hppa*-*-hpux*) have_broken_isfinite=yes ;; | |
22558 | *) have_broken_isfinite=no ;; | |
22559 | esac | |
22560 | else | |
22561 | cat >conftest.$ac_ext <<_ACEOF | |
22562 | /* confdefs.h. */ | |
22563 | _ACEOF | |
22564 | cat confdefs.h >>conftest.$ac_ext | |
22565 | cat >>conftest.$ac_ext <<_ACEOF | |
22566 | /* end confdefs.h. */ | |
22567 | ||
22568 | #ifdef HAVE_MATH_H | |
22569 | #include <math.h> | |
22570 | #endif | |
22571 | #include <float.h> | |
22572 | int main () | |
22573 | { | |
22574 | #ifdef isfinite | |
22575 | #ifdef LDBL_MAX | |
22576 | if (!isfinite(LDBL_MAX)) return 1; | |
22577 | #endif | |
22578 | #ifdef DBL_MAX | |
22579 | if (!isfinite(DBL_MAX)) return 1; | |
22580 | #endif | |
22581 | #endif | |
22582 | return 0; | |
22583 | } | |
22584 | _ACEOF | |
22585 | rm -f conftest$ac_exeext | |
22586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22587 | (eval $ac_link) 2>&5 | |
22588 | ac_status=$? | |
22589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22592 | (eval $ac_try) 2>&5 | |
22593 | ac_status=$? | |
22594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22595 | (exit $ac_status); }; }; then | |
22596 | have_broken_isfinite=no | |
22597 | else | |
22598 | echo "$as_me: program exited with status $ac_status" >&5 | |
22599 | echo "$as_me: failed program was:" >&5 | |
22600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22601 | ||
22602 | ( exit $ac_status ) | |
22603 | have_broken_isfinite=yes | |
22604 | fi | |
22605 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22606 | fi | |
22607 | LIBS=$libgfor_check_for_broken_isfinite_save_LIBS | |
22608 | fi | |
22609 | echo "$as_me:$LINENO: result: $have_broken_isfinite" >&5 | |
22610 | echo "${ECHO_T}$have_broken_isfinite" >&6 | |
22611 | if test x"$have_broken_isfinite" = xyes; then | |
22612 | ||
22613 | cat >>confdefs.h <<\_ACEOF | |
22614 | #define HAVE_BROKEN_ISFINITE 1 | |
22615 | _ACEOF | |
22616 | ||
22617 | fi | |
22618 | ||
22619 | # Check for a isnan macro that works on long doubles. | |
22620 | ||
22621 | echo "$as_me:$LINENO: checking whether isnan is broken" >&5 | |
22622 | echo $ECHO_N "checking whether isnan is broken... $ECHO_C" >&6 | |
22623 | if test "${have_broken_isnan+set}" = set; then | |
22624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22625 | else | |
22626 | ||
22627 | libgfor_check_for_broken_isnan_save_LIBS=$LIBS | |
22628 | LIBS="$LIBS -lm" | |
22629 | if test "$cross_compiling" = yes; then | |
22630 | ||
22631 | case "${target}" in | |
22632 | hppa*-*-hpux*) have_broken_isnan=yes ;; | |
22633 | *) have_broken_isnan=no ;; | |
22634 | esac | |
22635 | else | |
22636 | cat >conftest.$ac_ext <<_ACEOF | |
22637 | /* confdefs.h. */ | |
22638 | _ACEOF | |
22639 | cat confdefs.h >>conftest.$ac_ext | |
22640 | cat >>conftest.$ac_ext <<_ACEOF | |
22641 | /* end confdefs.h. */ | |
22642 | ||
22643 | #ifdef HAVE_MATH_H | |
22644 | #include <math.h> | |
22645 | #endif | |
22646 | #include <float.h> | |
22647 | int main () | |
22648 | { | |
22649 | #ifdef isnan | |
22650 | #ifdef LDBL_MAX | |
22651 | { | |
22652 | long double x; | |
22653 | x = __builtin_nanl (""); | |
22654 | if (!isnan(x)) return 1; | |
22655 | if (isnan(LDBL_MAX)) return 1; | |
22656 | #ifdef NAN | |
22657 | x = (long double) NAN; | |
22658 | if (!isnan(x)) return 1; | |
22659 | #endif | |
22660 | } | |
22661 | #endif | |
22662 | #ifdef DBL_MAX | |
22663 | { | |
22664 | double y; | |
22665 | y = __builtin_nan (""); | |
22666 | if (!isnan(y)) return 1; | |
22667 | if (isnan(DBL_MAX)) return 1; | |
22668 | #ifdef NAN | |
22669 | y = (double) NAN; | |
22670 | if (!isnan(y)) return 1; | |
22671 | #endif | |
22672 | } | |
22673 | #endif | |
22674 | #endif | |
22675 | return 0; | |
22676 | } | |
22677 | _ACEOF | |
22678 | rm -f conftest$ac_exeext | |
22679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22680 | (eval $ac_link) 2>&5 | |
22681 | ac_status=$? | |
22682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22683 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22685 | (eval $ac_try) 2>&5 | |
22686 | ac_status=$? | |
22687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22688 | (exit $ac_status); }; }; then | |
22689 | have_broken_isnan=no | |
22690 | else | |
22691 | echo "$as_me: program exited with status $ac_status" >&5 | |
22692 | echo "$as_me: failed program was:" >&5 | |
22693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22694 | ||
22695 | ( exit $ac_status ) | |
22696 | have_broken_isnan=yes | |
22697 | fi | |
22698 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22699 | fi | |
22700 | LIBS=$libgfor_check_for_broken_isnan_save_LIBS | |
22701 | fi | |
22702 | echo "$as_me:$LINENO: result: $have_broken_isnan" >&5 | |
22703 | echo "${ECHO_T}$have_broken_isnan" >&6 | |
22704 | if test x"$have_broken_isnan" = xyes; then | |
22705 | ||
22706 | cat >>confdefs.h <<\_ACEOF | |
22707 | #define HAVE_BROKEN_ISNAN 1 | |
22708 | _ACEOF | |
22709 | ||
22710 | fi | |
22711 | ||
22712 | # Check for a fpclassify macro that works on long doubles. | |
22713 | ||
22714 | echo "$as_me:$LINENO: checking whether fpclassify is broken" >&5 | |
22715 | echo $ECHO_N "checking whether fpclassify is broken... $ECHO_C" >&6 | |
22716 | if test "${have_broken_fpclassify+set}" = set; then | |
22717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22718 | else | |
22719 | ||
22720 | libgfor_check_for_broken_fpclassify_save_LIBS=$LIBS | |
22721 | LIBS="$LIBS -lm" | |
22722 | if test "$cross_compiling" = yes; then | |
22723 | ||
22724 | case "${target}" in | |
22725 | hppa*-*-hpux*) have_broken_fpclassify=yes ;; | |
22726 | *) have_broken_fpclassify=no ;; | |
22727 | esac | |
22728 | else | |
22729 | cat >conftest.$ac_ext <<_ACEOF | |
22730 | /* confdefs.h. */ | |
22731 | _ACEOF | |
22732 | cat confdefs.h >>conftest.$ac_ext | |
22733 | cat >>conftest.$ac_ext <<_ACEOF | |
22734 | /* end confdefs.h. */ | |
22735 | ||
22736 | #ifdef HAVE_MATH_H | |
22737 | #include <math.h> | |
22738 | #endif | |
22739 | #include <float.h> | |
22740 | int main () | |
22741 | { | |
22742 | #ifdef fpclassify | |
22743 | #ifdef LDBL_MAX | |
22744 | if (fpclassify(LDBL_MAX) == FP_NAN | |
22745 | || fpclassify(LDBL_MAX) == FP_INFINITE) return 1; | |
22746 | #endif | |
22747 | #ifdef DBL_MAX | |
22748 | if (fpclassify(DBL_MAX) == FP_NAN | |
22749 | || fpclassify(DBL_MAX) == FP_INFINITE) return 1; | |
22750 | #endif | |
22751 | #endif | |
22752 | return 0; | |
22753 | } | |
22754 | _ACEOF | |
22755 | rm -f conftest$ac_exeext | |
22756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22757 | (eval $ac_link) 2>&5 | |
22758 | ac_status=$? | |
22759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22760 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22762 | (eval $ac_try) 2>&5 | |
22763 | ac_status=$? | |
22764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22765 | (exit $ac_status); }; }; then | |
22766 | have_broken_fpclassify=no | |
22767 | else | |
22768 | echo "$as_me: program exited with status $ac_status" >&5 | |
22769 | echo "$as_me: failed program was:" >&5 | |
22770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22771 | ||
22772 | ( exit $ac_status ) | |
22773 | have_broken_fpclassify=yes | |
22774 | fi | |
22775 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22776 | fi | |
22777 | LIBS=$libgfor_check_for_broken_fpclassify_save_LIBS | |
22778 | fi | |
22779 | echo "$as_me:$LINENO: result: $have_broken_fpclassify" >&5 | |
22780 | echo "${ECHO_T}$have_broken_fpclassify" >&6 | |
22781 | if test x"$have_broken_fpclassify" = xyes; then | |
22782 | ||
22783 | cat >>confdefs.h <<\_ACEOF | |
22784 | #define HAVE_BROKEN_FPCLASSIFY 1 | |
22785 | _ACEOF | |
22786 | ||
22787 | fi | |
22788 | ||
ad238e4f FXC |
22789 | # Check whether the system has a working stat() |
22790 | ||
22791 | echo "$as_me:$LINENO: checking whether the target stat is reliable" >&5 | |
22792 | echo $ECHO_N "checking whether the target stat is reliable... $ECHO_C" >&6 | |
22793 | if test "${have_working_stat+set}" = set; then | |
22794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22795 | else | |
22796 | ||
22797 | if test "$cross_compiling" = yes; then | |
22798 | ||
22799 | case "${target}" in | |
22800 | *mingw*) have_working_stat=no ;; | |
22801 | *) have_working_stat=yes;; | |
22802 | esac | |
22803 | else | |
22804 | cat >conftest.$ac_ext <<_ACEOF | |
22805 | /* confdefs.h. */ | |
22806 | _ACEOF | |
22807 | cat confdefs.h >>conftest.$ac_ext | |
22808 | cat >>conftest.$ac_ext <<_ACEOF | |
22809 | /* end confdefs.h. */ | |
22810 | ||
22811 | #include <stdio.h> | |
22812 | #include <sys/types.h> | |
22813 | #include <sys/stat.h> | |
22814 | #include <unistd.h> | |
22815 | ||
22816 | int main () | |
22817 | { | |
22818 | FILE *f, *g; | |
22819 | struct stat st1, st2; | |
22820 | ||
22821 | f = fopen ("foo", "w"); | |
22822 | g = fopen ("bar", "w"); | |
22823 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
22824 | return 1; | |
22825 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
22826 | return 1; | |
22827 | fclose(f); | |
22828 | fclose(g); | |
22829 | return 0; | |
22830 | } | |
22831 | _ACEOF | |
22832 | rm -f conftest$ac_exeext | |
22833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22834 | (eval $ac_link) 2>&5 | |
22835 | ac_status=$? | |
22836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22839 | (eval $ac_try) 2>&5 | |
22840 | ac_status=$? | |
22841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22842 | (exit $ac_status); }; }; then | |
22843 | have_working_stat=yes | |
22844 | else | |
22845 | echo "$as_me: program exited with status $ac_status" >&5 | |
22846 | echo "$as_me: failed program was:" >&5 | |
22847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22848 | ||
22849 | ( exit $ac_status ) | |
22850 | have_working_stat=no | |
22851 | fi | |
22852 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22853 | fi | |
22854 | fi | |
22855 | echo "$as_me:$LINENO: result: $have_working_stat" >&5 | |
22856 | echo "${ECHO_T}$have_working_stat" >&6 | |
22857 | if test x"$have_working_stat" = xyes; then | |
22858 | ||
22859 | cat >>confdefs.h <<\_ACEOF | |
22860 | #define HAVE_WORKING_STAT 1 | |
22861 | _ACEOF | |
22862 | ||
22863 | fi | |
22864 | ||
69d3c9a4 SB |
22865 | # Fallback in case isfinite is not available. |
22866 | echo "$as_me:$LINENO: checking for finite in -lm" >&5 | |
22867 | echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6 | |
22868 | if test "${ac_cv_lib_m_finite+set}" = set; then | |
22869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22870 | else | |
22871 | ac_check_lib_save_LIBS=$LIBS | |
22872 | LIBS="-lm $LIBS" | |
f02d008e JD |
22873 | if test x$gcc_no_link = xyes; then |
22874 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22875 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22876 | { (exit 1); exit 1; }; } | |
22877 | fi | |
69d3c9a4 SB |
22878 | cat >conftest.$ac_ext <<_ACEOF |
22879 | /* confdefs.h. */ | |
22880 | _ACEOF | |
22881 | cat confdefs.h >>conftest.$ac_ext | |
22882 | cat >>conftest.$ac_ext <<_ACEOF | |
22883 | /* end confdefs.h. */ | |
22884 | ||
22885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22886 | #ifdef __cplusplus | |
22887 | extern "C" | |
22888 | #endif | |
22889 | /* We use char because int might match the return type of a gcc2 | |
22890 | builtin and then its argument prototype would still apply. */ | |
22891 | char finite (); | |
22892 | int | |
22893 | main () | |
22894 | { | |
22895 | finite (); | |
22896 | ; | |
22897 | return 0; | |
22898 | } | |
22899 | _ACEOF | |
22900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22902 | (eval $ac_link) 2>conftest.er1 | |
22903 | ac_status=$? | |
22904 | grep -v '^ *+' conftest.er1 >conftest.err | |
22905 | rm -f conftest.er1 | |
22906 | cat conftest.err >&5 | |
22907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22908 | (exit $ac_status); } && | |
57255173 PB |
22909 | { ac_try='test -z "$ac_c_werror_flag" |
22910 | || test ! -s conftest.err' | |
69d3c9a4 SB |
22911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22912 | (eval $ac_try) 2>&5 | |
22913 | ac_status=$? | |
22914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22915 | (exit $ac_status); }; } && | |
22916 | { ac_try='test -s conftest$ac_exeext' | |
22917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22918 | (eval $ac_try) 2>&5 | |
22919 | ac_status=$? | |
22920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22921 | (exit $ac_status); }; }; then | |
22922 | ac_cv_lib_m_finite=yes | |
22923 | else | |
22924 | echo "$as_me: failed program was:" >&5 | |
22925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22926 | ||
22927 | ac_cv_lib_m_finite=no | |
22928 | fi | |
22929 | rm -f conftest.err conftest.$ac_objext \ | |
22930 | conftest$ac_exeext conftest.$ac_ext | |
22931 | LIBS=$ac_check_lib_save_LIBS | |
22932 | fi | |
22933 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5 | |
22934 | echo "${ECHO_T}$ac_cv_lib_m_finite" >&6 | |
22935 | if test $ac_cv_lib_m_finite = yes; then | |
22936 | ||
22937 | cat >>confdefs.h <<\_ACEOF | |
22938 | #define HAVE_FINITE 1 | |
22939 | _ACEOF | |
22940 | ||
22941 | fi | |
22942 | ||
22943 | ||
944b8b35 FXC |
22944 | # Check for GNU libc feenableexcept |
22945 | echo "$as_me:$LINENO: checking for feenableexcept in -lm" >&5 | |
22946 | echo $ECHO_N "checking for feenableexcept in -lm... $ECHO_C" >&6 | |
22947 | if test "${ac_cv_lib_m_feenableexcept+set}" = set; then | |
22948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22949 | else | |
22950 | ac_check_lib_save_LIBS=$LIBS | |
22951 | LIBS="-lm $LIBS" | |
22952 | if test x$gcc_no_link = xyes; then | |
22953 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22954 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22955 | { (exit 1); exit 1; }; } | |
22956 | fi | |
22957 | cat >conftest.$ac_ext <<_ACEOF | |
22958 | /* confdefs.h. */ | |
22959 | _ACEOF | |
22960 | cat confdefs.h >>conftest.$ac_ext | |
22961 | cat >>conftest.$ac_ext <<_ACEOF | |
22962 | /* end confdefs.h. */ | |
22963 | ||
22964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22965 | #ifdef __cplusplus | |
22966 | extern "C" | |
22967 | #endif | |
22968 | /* We use char because int might match the return type of a gcc2 | |
22969 | builtin and then its argument prototype would still apply. */ | |
22970 | char feenableexcept (); | |
22971 | int | |
22972 | main () | |
22973 | { | |
22974 | feenableexcept (); | |
22975 | ; | |
22976 | return 0; | |
22977 | } | |
22978 | _ACEOF | |
22979 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22981 | (eval $ac_link) 2>conftest.er1 | |
22982 | ac_status=$? | |
22983 | grep -v '^ *+' conftest.er1 >conftest.err | |
22984 | rm -f conftest.er1 | |
22985 | cat conftest.err >&5 | |
22986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22987 | (exit $ac_status); } && | |
57255173 PB |
22988 | { ac_try='test -z "$ac_c_werror_flag" |
22989 | || test ! -s conftest.err' | |
944b8b35 FXC |
22990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22991 | (eval $ac_try) 2>&5 | |
22992 | ac_status=$? | |
22993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22994 | (exit $ac_status); }; } && | |
22995 | { ac_try='test -s conftest$ac_exeext' | |
22996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22997 | (eval $ac_try) 2>&5 | |
22998 | ac_status=$? | |
22999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23000 | (exit $ac_status); }; }; then | |
23001 | ac_cv_lib_m_feenableexcept=yes | |
23002 | else | |
23003 | echo "$as_me: failed program was:" >&5 | |
23004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23005 | ||
23006 | ac_cv_lib_m_feenableexcept=no | |
23007 | fi | |
23008 | rm -f conftest.err conftest.$ac_objext \ | |
23009 | conftest$ac_exeext conftest.$ac_ext | |
23010 | LIBS=$ac_check_lib_save_LIBS | |
23011 | fi | |
23012 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_feenableexcept" >&5 | |
23013 | echo "${ECHO_T}$ac_cv_lib_m_feenableexcept" >&6 | |
23014 | if test $ac_cv_lib_m_feenableexcept = yes; then | |
23015 | have_feenableexcept=yes | |
23016 | cat >>confdefs.h <<\_ACEOF | |
23017 | #define HAVE_FEENABLEEXCEPT 1 | |
23018 | _ACEOF | |
23019 | ||
23020 | fi | |
23021 | ||
23022 | ||
3b14f664 FXC |
23023 | # Check for SysV fpsetmask |
23024 | ||
23025 | echo "$as_me:$LINENO: checking whether fpsetmask is present" >&5 | |
23026 | echo $ECHO_N "checking whether fpsetmask is present... $ECHO_C" >&6 | |
23027 | if test "${have_fpsetmask+set}" = set; then | |
23028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23029 | else | |
23030 | ||
23031 | if test x$gcc_no_link = xyes; then | |
23032 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23033 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23034 | { (exit 1); exit 1; }; } | |
23035 | fi | |
23036 | cat >conftest.$ac_ext <<_ACEOF | |
23037 | /* confdefs.h. */ | |
23038 | _ACEOF | |
23039 | cat confdefs.h >>conftest.$ac_ext | |
23040 | cat >>conftest.$ac_ext <<_ACEOF | |
23041 | /* end confdefs.h. */ | |
23042 | ||
23043 | #if HAVE_FLOATINGPOINT_H | |
23044 | # include <floatingpoint.h> | |
23045 | #endif /* HAVE_FLOATINGPOINT_H */ | |
23046 | #if HAVE_IEEEFP_H | |
23047 | # include <ieeefp.h> | |
23048 | #endif /* HAVE_IEEEFP_H */ | |
23049 | int | |
23050 | main () | |
23051 | { | |
23052 | fpsetmask(0); | |
23053 | ; | |
23054 | return 0; | |
23055 | } | |
23056 | _ACEOF | |
23057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23059 | (eval $ac_link) 2>conftest.er1 | |
23060 | ac_status=$? | |
23061 | grep -v '^ *+' conftest.er1 >conftest.err | |
23062 | rm -f conftest.er1 | |
23063 | cat conftest.err >&5 | |
23064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23065 | (exit $ac_status); } && | |
57255173 PB |
23066 | { ac_try='test -z "$ac_c_werror_flag" |
23067 | || test ! -s conftest.err' | |
3b14f664 FXC |
23068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23069 | (eval $ac_try) 2>&5 | |
23070 | ac_status=$? | |
23071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23072 | (exit $ac_status); }; } && | |
23073 | { ac_try='test -s conftest$ac_exeext' | |
23074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23075 | (eval $ac_try) 2>&5 | |
23076 | ac_status=$? | |
23077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23078 | (exit $ac_status); }; }; then | |
23079 | eval "have_fpsetmask=yes" | |
23080 | else | |
23081 | echo "$as_me: failed program was:" >&5 | |
23082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23083 | ||
23084 | eval "have_fpsetmask=no" | |
23085 | fi | |
23086 | rm -f conftest.err conftest.$ac_objext \ | |
23087 | conftest$ac_exeext conftest.$ac_ext | |
23088 | ||
23089 | fi | |
23090 | echo "$as_me:$LINENO: result: $have_fpsetmask" >&5 | |
23091 | echo "${ECHO_T}$have_fpsetmask" >&6 | |
23092 | if test x"$have_fpsetmask" = xyes; then | |
23093 | ||
23094 | cat >>confdefs.h <<\_ACEOF | |
23095 | #define HAVE_FPSETMASK 1 | |
23096 | _ACEOF | |
23097 | ||
23098 | fi | |
23099 | ||
23100 | ||
23101 | # Check for AIX fp_trap and fp_enable | |
23102 | echo "$as_me:$LINENO: checking for fp_trap" >&5 | |
23103 | echo $ECHO_N "checking for fp_trap... $ECHO_C" >&6 | |
23104 | if test "${ac_cv_func_fp_trap+set}" = set; then | |
23105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23106 | else | |
23107 | if test x$gcc_no_link = xyes; then | |
23108 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23109 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23110 | { (exit 1); exit 1; }; } | |
23111 | fi | |
23112 | cat >conftest.$ac_ext <<_ACEOF | |
23113 | /* confdefs.h. */ | |
23114 | _ACEOF | |
23115 | cat confdefs.h >>conftest.$ac_ext | |
23116 | cat >>conftest.$ac_ext <<_ACEOF | |
23117 | /* end confdefs.h. */ | |
23118 | /* Define fp_trap to an innocuous variant, in case <limits.h> declares fp_trap. | |
23119 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23120 | #define fp_trap innocuous_fp_trap | |
23121 | ||
23122 | /* System header to define __stub macros and hopefully few prototypes, | |
23123 | which can conflict with char fp_trap (); below. | |
23124 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23125 | <limits.h> exists even on freestanding compilers. */ | |
23126 | ||
23127 | #ifdef __STDC__ | |
23128 | # include <limits.h> | |
23129 | #else | |
23130 | # include <assert.h> | |
23131 | #endif | |
23132 | ||
23133 | #undef fp_trap | |
23134 | ||
23135 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23136 | #ifdef __cplusplus | |
23137 | extern "C" | |
23138 | { | |
23139 | #endif | |
23140 | /* We use char because int might match the return type of a gcc2 | |
23141 | builtin and then its argument prototype would still apply. */ | |
23142 | char fp_trap (); | |
23143 | /* The GNU C library defines this for functions which it implements | |
23144 | to always fail with ENOSYS. Some functions are actually named | |
23145 | something starting with __ and the normal name is an alias. */ | |
23146 | #if defined (__stub_fp_trap) || defined (__stub___fp_trap) | |
23147 | choke me | |
23148 | #else | |
23149 | char (*f) () = fp_trap; | |
23150 | #endif | |
23151 | #ifdef __cplusplus | |
23152 | } | |
23153 | #endif | |
23154 | ||
23155 | int | |
23156 | main () | |
23157 | { | |
23158 | return f != fp_trap; | |
23159 | ; | |
23160 | return 0; | |
23161 | } | |
23162 | _ACEOF | |
23163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23165 | (eval $ac_link) 2>conftest.er1 | |
23166 | ac_status=$? | |
23167 | grep -v '^ *+' conftest.er1 >conftest.err | |
23168 | rm -f conftest.er1 | |
23169 | cat conftest.err >&5 | |
23170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23171 | (exit $ac_status); } && | |
57255173 PB |
23172 | { ac_try='test -z "$ac_c_werror_flag" |
23173 | || test ! -s conftest.err' | |
3b14f664 FXC |
23174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23175 | (eval $ac_try) 2>&5 | |
23176 | ac_status=$? | |
23177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23178 | (exit $ac_status); }; } && | |
23179 | { ac_try='test -s conftest$ac_exeext' | |
23180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23181 | (eval $ac_try) 2>&5 | |
23182 | ac_status=$? | |
23183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23184 | (exit $ac_status); }; }; then | |
23185 | ac_cv_func_fp_trap=yes | |
23186 | else | |
23187 | echo "$as_me: failed program was:" >&5 | |
23188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23189 | ||
23190 | ac_cv_func_fp_trap=no | |
23191 | fi | |
23192 | rm -f conftest.err conftest.$ac_objext \ | |
23193 | conftest$ac_exeext conftest.$ac_ext | |
23194 | fi | |
23195 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_trap" >&5 | |
23196 | echo "${ECHO_T}$ac_cv_func_fp_trap" >&6 | |
23197 | if test $ac_cv_func_fp_trap = yes; then | |
23198 | have_fp_trap=yes | |
23199 | cat >>confdefs.h <<\_ACEOF | |
23200 | #define HAVE_FP_TRAP 1 | |
23201 | _ACEOF | |
23202 | ||
23203 | fi | |
23204 | ||
23205 | echo "$as_me:$LINENO: checking for fp_enable" >&5 | |
23206 | echo $ECHO_N "checking for fp_enable... $ECHO_C" >&6 | |
23207 | if test "${ac_cv_func_fp_enable+set}" = set; then | |
23208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23209 | else | |
23210 | if test x$gcc_no_link = xyes; then | |
23211 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23212 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23213 | { (exit 1); exit 1; }; } | |
23214 | fi | |
23215 | cat >conftest.$ac_ext <<_ACEOF | |
23216 | /* confdefs.h. */ | |
23217 | _ACEOF | |
23218 | cat confdefs.h >>conftest.$ac_ext | |
23219 | cat >>conftest.$ac_ext <<_ACEOF | |
23220 | /* end confdefs.h. */ | |
23221 | /* Define fp_enable to an innocuous variant, in case <limits.h> declares fp_enable. | |
23222 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23223 | #define fp_enable innocuous_fp_enable | |
23224 | ||
23225 | /* System header to define __stub macros and hopefully few prototypes, | |
23226 | which can conflict with char fp_enable (); below. | |
23227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23228 | <limits.h> exists even on freestanding compilers. */ | |
23229 | ||
23230 | #ifdef __STDC__ | |
23231 | # include <limits.h> | |
23232 | #else | |
23233 | # include <assert.h> | |
23234 | #endif | |
23235 | ||
23236 | #undef fp_enable | |
23237 | ||
23238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23239 | #ifdef __cplusplus | |
23240 | extern "C" | |
23241 | { | |
23242 | #endif | |
23243 | /* We use char because int might match the return type of a gcc2 | |
23244 | builtin and then its argument prototype would still apply. */ | |
23245 | char fp_enable (); | |
23246 | /* The GNU C library defines this for functions which it implements | |
23247 | to always fail with ENOSYS. Some functions are actually named | |
23248 | something starting with __ and the normal name is an alias. */ | |
23249 | #if defined (__stub_fp_enable) || defined (__stub___fp_enable) | |
23250 | choke me | |
23251 | #else | |
23252 | char (*f) () = fp_enable; | |
23253 | #endif | |
23254 | #ifdef __cplusplus | |
23255 | } | |
23256 | #endif | |
23257 | ||
23258 | int | |
23259 | main () | |
23260 | { | |
23261 | return f != fp_enable; | |
23262 | ; | |
23263 | return 0; | |
23264 | } | |
23265 | _ACEOF | |
23266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23268 | (eval $ac_link) 2>conftest.er1 | |
23269 | ac_status=$? | |
23270 | grep -v '^ *+' conftest.er1 >conftest.err | |
23271 | rm -f conftest.er1 | |
23272 | cat conftest.err >&5 | |
23273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23274 | (exit $ac_status); } && | |
57255173 PB |
23275 | { ac_try='test -z "$ac_c_werror_flag" |
23276 | || test ! -s conftest.err' | |
3b14f664 FXC |
23277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23278 | (eval $ac_try) 2>&5 | |
23279 | ac_status=$? | |
23280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23281 | (exit $ac_status); }; } && | |
23282 | { ac_try='test -s conftest$ac_exeext' | |
23283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23284 | (eval $ac_try) 2>&5 | |
23285 | ac_status=$? | |
23286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23287 | (exit $ac_status); }; }; then | |
23288 | ac_cv_func_fp_enable=yes | |
23289 | else | |
23290 | echo "$as_me: failed program was:" >&5 | |
23291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23292 | ||
23293 | ac_cv_func_fp_enable=no | |
23294 | fi | |
23295 | rm -f conftest.err conftest.$ac_objext \ | |
23296 | conftest$ac_exeext conftest.$ac_ext | |
23297 | fi | |
23298 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_enable" >&5 | |
23299 | echo "${ECHO_T}$ac_cv_func_fp_enable" >&6 | |
23300 | if test $ac_cv_func_fp_enable = yes; then | |
23301 | have_fp_enable=yes | |
23302 | cat >>confdefs.h <<\_ACEOF | |
23303 | #define HAVE_FP_ENABLE 1 | |
23304 | _ACEOF | |
23305 | ||
23306 | fi | |
23307 | ||
23308 | ||
944b8b35 FXC |
23309 | # Runs configure.host to set up necessary host-dependent shell variables. |
23310 | # We then display a message about it, and propagate them through the | |
23311 | # build chain. | |
23312 | . ${srcdir}/configure.host | |
23313 | { echo "$as_me:$LINENO: FPU dependent file will be ${fpu_host}.h" >&5 | |
23314 | echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
23315 | FPU_HOST_HEADER=config/${fpu_host}.h | |
23316 | ||
23317 | ||
96b8a615 AJ |
23318 | # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check |
23319 | # for struct timezone, as you might think. We also need to check how | |
23320 | # to call gettimeofday if we have it. | |
23321 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
23322 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
23323 | if test "${ac_cv_header_time+set}" = set; then | |
6de9cd9a DN |
23324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23325 | else | |
96b8a615 AJ |
23326 | cat >conftest.$ac_ext <<_ACEOF |
23327 | /* confdefs.h. */ | |
23328 | _ACEOF | |
23329 | cat confdefs.h >>conftest.$ac_ext | |
23330 | cat >>conftest.$ac_ext <<_ACEOF | |
23331 | /* end confdefs.h. */ | |
23332 | #include <sys/types.h> | |
23333 | #include <sys/time.h> | |
23334 | #include <time.h> | |
23335 | ||
23336 | int | |
23337 | main () | |
23338 | { | |
23339 | if ((struct tm *) 0) | |
23340 | return 0; | |
23341 | ; | |
23342 | return 0; | |
23343 | } | |
23344 | _ACEOF | |
23345 | rm -f conftest.$ac_objext | |
23346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23347 | (eval $ac_compile) 2>conftest.er1 | |
23348 | ac_status=$? | |
23349 | grep -v '^ *+' conftest.er1 >conftest.err | |
23350 | rm -f conftest.er1 | |
23351 | cat conftest.err >&5 | |
23352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23353 | (exit $ac_status); } && | |
57255173 PB |
23354 | { ac_try='test -z "$ac_c_werror_flag" |
23355 | || test ! -s conftest.err' | |
96b8a615 AJ |
23356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23357 | (eval $ac_try) 2>&5 | |
23358 | ac_status=$? | |
23359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23360 | (exit $ac_status); }; } && | |
23361 | { ac_try='test -s conftest.$ac_objext' | |
23362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23363 | (eval $ac_try) 2>&5 | |
23364 | ac_status=$? | |
23365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23366 | (exit $ac_status); }; }; then | |
23367 | ac_cv_header_time=yes | |
23368 | else | |
23369 | echo "$as_me: failed program was:" >&5 | |
23370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 23371 | |
96b8a615 | 23372 | ac_cv_header_time=no |
6de9cd9a | 23373 | fi |
96b8a615 | 23374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 23375 | fi |
96b8a615 AJ |
23376 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
23377 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
23378 | if test $ac_cv_header_time = yes; then | |
6de9cd9a | 23379 | |
96b8a615 AJ |
23380 | cat >>confdefs.h <<\_ACEOF |
23381 | #define TIME_WITH_SYS_TIME 1 | |
23382 | _ACEOF | |
6de9cd9a | 23383 | |
6de9cd9a DN |
23384 | fi |
23385 | ||
6de9cd9a | 23386 | |
96b8a615 AJ |
23387 | |
23388 | for ac_func in gettimeofday | |
23389 | do | |
23390 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23391 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23392 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23393 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6de9cd9a DN |
23394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23395 | else | |
f02d008e JD |
23396 | if test x$gcc_no_link = xyes; then |
23397 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23398 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23399 | { (exit 1); exit 1; }; } | |
23400 | fi | |
23401 | cat >conftest.$ac_ext <<_ACEOF | |
96b8a615 AJ |
23402 | /* confdefs.h. */ |
23403 | _ACEOF | |
23404 | cat confdefs.h >>conftest.$ac_ext | |
23405 | cat >>conftest.$ac_ext <<_ACEOF | |
23406 | /* end confdefs.h. */ | |
23407 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23408 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23409 | #define $ac_func innocuous_$ac_func | |
23410 | ||
23411 | /* System header to define __stub macros and hopefully few prototypes, | |
23412 | which can conflict with char $ac_func (); below. | |
23413 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23414 | <limits.h> exists even on freestanding compilers. */ | |
23415 | ||
23416 | #ifdef __STDC__ | |
23417 | # include <limits.h> | |
23418 | #else | |
23419 | # include <assert.h> | |
23420 | #endif | |
23421 | ||
23422 | #undef $ac_func | |
23423 | ||
23424 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23425 | #ifdef __cplusplus | |
23426 | extern "C" | |
23427 | { | |
23428 | #endif | |
23429 | /* We use char because int might match the return type of a gcc2 | |
23430 | builtin and then its argument prototype would still apply. */ | |
23431 | char $ac_func (); | |
23432 | /* The GNU C library defines this for functions which it implements | |
23433 | to always fail with ENOSYS. Some functions are actually named | |
23434 | something starting with __ and the normal name is an alias. */ | |
23435 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23436 | choke me | |
23437 | #else | |
23438 | char (*f) () = $ac_func; | |
23439 | #endif | |
23440 | #ifdef __cplusplus | |
23441 | } | |
23442 | #endif | |
23443 | ||
23444 | int | |
23445 | main () | |
23446 | { | |
23447 | return f != $ac_func; | |
23448 | ; | |
23449 | return 0; | |
23450 | } | |
23451 | _ACEOF | |
23452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23454 | (eval $ac_link) 2>conftest.er1 | |
23455 | ac_status=$? | |
23456 | grep -v '^ *+' conftest.er1 >conftest.err | |
23457 | rm -f conftest.er1 | |
23458 | cat conftest.err >&5 | |
23459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23460 | (exit $ac_status); } && | |
57255173 PB |
23461 | { ac_try='test -z "$ac_c_werror_flag" |
23462 | || test ! -s conftest.err' | |
96b8a615 AJ |
23463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23464 | (eval $ac_try) 2>&5 | |
23465 | ac_status=$? | |
23466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23467 | (exit $ac_status); }; } && | |
23468 | { ac_try='test -s conftest$ac_exeext' | |
23469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23470 | (eval $ac_try) 2>&5 | |
23471 | ac_status=$? | |
23472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23473 | (exit $ac_status); }; }; then | |
23474 | eval "$as_ac_var=yes" | |
6de9cd9a | 23475 | else |
96b8a615 AJ |
23476 | echo "$as_me: failed program was:" >&5 |
23477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 23478 | |
96b8a615 | 23479 | eval "$as_ac_var=no" |
6de9cd9a | 23480 | fi |
96b8a615 AJ |
23481 | rm -f conftest.err conftest.$ac_objext \ |
23482 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a | 23483 | fi |
96b8a615 AJ |
23484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
23485 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23486 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23487 | cat >>confdefs.h <<_ACEOF | |
23488 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23489 | _ACEOF | |
6de9cd9a DN |
23490 | |
23491 | fi | |
6de9cd9a DN |
23492 | done |
23493 | ||
96b8a615 AJ |
23494 | if test "$ac_cv_func_gettimeofday" = yes; then |
23495 | echo "$as_me:$LINENO: checking for struct timezone" >&5 | |
23496 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 | |
23497 | if test "${gfor_cv_struct_timezone+set}" = set; then | |
23498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23499 | else | |
23500 | cat >conftest.$ac_ext <<_ACEOF | |
23501 | /* confdefs.h. */ | |
23502 | _ACEOF | |
23503 | cat confdefs.h >>conftest.$ac_ext | |
23504 | cat >>conftest.$ac_ext <<_ACEOF | |
23505 | /* end confdefs.h. */ | |
23506 | #include <sys/time.h> | |
23507 | int | |
23508 | main () | |
23509 | { | |
23510 | struct timezone tz; | |
23511 | ; | |
23512 | return 0; | |
23513 | } | |
23514 | _ACEOF | |
23515 | rm -f conftest.$ac_objext | |
23516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23517 | (eval $ac_compile) 2>conftest.er1 | |
23518 | ac_status=$? | |
23519 | grep -v '^ *+' conftest.er1 >conftest.err | |
23520 | rm -f conftest.er1 | |
23521 | cat conftest.err >&5 | |
23522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23523 | (exit $ac_status); } && | |
57255173 PB |
23524 | { ac_try='test -z "$ac_c_werror_flag" |
23525 | || test ! -s conftest.err' | |
96b8a615 AJ |
23526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23527 | (eval $ac_try) 2>&5 | |
23528 | ac_status=$? | |
23529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23530 | (exit $ac_status); }; } && | |
23531 | { ac_try='test -s conftest.$ac_objext' | |
23532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23533 | (eval $ac_try) 2>&5 | |
23534 | ac_status=$? | |
23535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23536 | (exit $ac_status); }; }; then | |
23537 | gfor_cv_struct_timezone=yes | |
6de9cd9a | 23538 | else |
96b8a615 AJ |
23539 | echo "$as_me: failed program was:" >&5 |
23540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 23541 | |
96b8a615 | 23542 | gfor_cv_struct_timezone=no |
6de9cd9a | 23543 | fi |
96b8a615 AJ |
23544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
23545 | fi | |
23546 | echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5 | |
23547 | echo "${ECHO_T}$gfor_cv_struct_timezone" >&6 | |
23548 | if test $gfor_cv_struct_timezone = yes; then | |
23549 | if test "$cross_compiling" = yes; then | |
23550 | gfor_have_struct_timezone=yes | |
6de9cd9a | 23551 | else |
96b8a615 AJ |
23552 | cat >conftest.$ac_ext <<_ACEOF |
23553 | /* confdefs.h. */ | |
23554 | _ACEOF | |
23555 | cat confdefs.h >>conftest.$ac_ext | |
23556 | cat >>conftest.$ac_ext <<_ACEOF | |
23557 | /* end confdefs.h. */ | |
6de9cd9a | 23558 | |
96b8a615 AJ |
23559 | #ifdef TIME_WITH_SYS_TIME |
23560 | #include <sys/time.h> | |
23561 | #include <time.h> | |
23562 | #else | |
23563 | #ifdef HAVE_SYS_TIME_H | |
23564 | #include <sys/time.h> | |
23565 | #else | |
23566 | #include <time.h> | |
23567 | #endif | |
23568 | #endif | |
23569 | main () | |
23570 | { | |
23571 | struct timeval time; | |
23572 | struct timezone dummy; | |
23573 | if (gettimeofday (&time, &dummy)) | |
23574 | exit (1); | |
23575 | else | |
23576 | exit (0); | |
23577 | } | |
23578 | _ACEOF | |
23579 | rm -f conftest$ac_exeext | |
23580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23581 | (eval $ac_link) 2>&5 | |
6de9cd9a DN |
23582 | ac_status=$? |
23583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
23584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
23585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23586 | (eval $ac_try) 2>&5 | |
6de9cd9a DN |
23587 | ac_status=$? |
23588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
23589 | (exit $ac_status); }; }; then |
23590 | gfor_have_struct_timezone=yes | |
6de9cd9a | 23591 | else |
96b8a615 AJ |
23592 | echo "$as_me: program exited with status $ac_status" >&5 |
23593 | echo "$as_me: failed program was:" >&5 | |
23594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 23595 | |
96b8a615 AJ |
23596 | ( exit $ac_status ) |
23597 | gfor_have_struct_timezone=no | |
23598 | fi | |
23599 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
23600 | fi | |
23601 | if test $gfor_have_struct_timezone = yes; then | |
6de9cd9a | 23602 | |
96b8a615 AJ |
23603 | cat >>confdefs.h <<\_ACEOF |
23604 | #define HAVE_TIMEZONE 1 | |
23605 | _ACEOF | |
6de9cd9a | 23606 | |
96b8a615 AJ |
23607 | fi |
23608 | fi | |
23609 | ||
23610 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
23611 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 | |
23612 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
23613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23614 | else | |
f02d008e JD |
23615 | if test x$gcc_no_link = xyes; then |
23616 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23617 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23618 | { (exit 1); exit 1; }; } | |
23619 | fi | |
23620 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
23621 | /* confdefs.h. */ |
23622 | _ACEOF | |
23623 | cat confdefs.h >>conftest.$ac_ext | |
23624 | cat >>conftest.$ac_ext <<_ACEOF | |
23625 | /* end confdefs.h. */ | |
23626 | ||
96b8a615 AJ |
23627 | #ifdef TIME_WITH_SYS_TIME |
23628 | #include <sys/time.h> | |
23629 | #include <time.h> | |
23630 | #else | |
23631 | #ifdef HAVE_SYS_TIME_H | |
23632 | #include <sys/time.h> | |
23633 | #else | |
23634 | #include <time.h> | |
23635 | #endif | |
23636 | #endif | |
23637 | ||
6de9cd9a DN |
23638 | int |
23639 | main () | |
23640 | { | |
23641 | ||
96b8a615 AJ |
23642 | struct timeval time; |
23643 | #ifdef HAVE_TIMEZONE | |
23644 | struct timezone dummy; | |
23645 | #define DUMMY &dummy | |
23646 | #else | |
23647 | #define DUMMY NULL | |
23648 | #endif | |
23649 | gettimeofday (&time, DUMMY); | |
6de9cd9a DN |
23650 | ; |
23651 | return 0; | |
23652 | } | |
23653 | _ACEOF | |
23654 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23656 | (eval $ac_link) 2>conftest.er1 | |
23657 | ac_status=$? | |
23658 | grep -v '^ *+' conftest.er1 >conftest.err | |
23659 | rm -f conftest.er1 | |
23660 | cat conftest.err >&5 | |
23661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23662 | (exit $ac_status); } && | |
57255173 PB |
23663 | { ac_try='test -z "$ac_c_werror_flag" |
23664 | || test ! -s conftest.err' | |
6de9cd9a DN |
23665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23666 | (eval $ac_try) 2>&5 | |
23667 | ac_status=$? | |
23668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23669 | (exit $ac_status); }; } && | |
23670 | { ac_try='test -s conftest$ac_exeext' | |
23671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23672 | (eval $ac_try) 2>&5 | |
23673 | ac_status=$? | |
23674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23675 | (exit $ac_status); }; }; then | |
96b8a615 | 23676 | emacs_cv_gettimeofday_two_arguments=yes |
6de9cd9a DN |
23677 | else |
23678 | echo "$as_me: failed program was:" >&5 | |
23679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23680 | ||
96b8a615 | 23681 | emacs_cv_gettimeofday_two_arguments=no |
6de9cd9a DN |
23682 | fi |
23683 | rm -f conftest.err conftest.$ac_objext \ | |
23684 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a | 23685 | fi |
96b8a615 AJ |
23686 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
23687 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 | |
23688 | if test $emacs_cv_gettimeofday_two_arguments = no; then | |
6de9cd9a | 23689 | |
96b8a615 AJ |
23690 | cat >>confdefs.h <<\_ACEOF |
23691 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
23692 | _ACEOF | |
6de9cd9a | 23693 | |
96b8a615 AJ |
23694 | fi |
23695 | fi | |
6de9cd9a | 23696 | |
3969c39f EB |
23697 | # Attempt to assert that the target is of common type in case we don't |
23698 | # have C99 integer types at all. | |
23699 | ||
23700 | echo "$as_me:$LINENO: checking whether the target is ILP32" >&5 | |
23701 | echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6 | |
23702 | if test "${target_ilp32+set}" = set; then | |
23703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23704 | else | |
23705 | ||
23706 | save_CFLAGS="$CFLAGS" | |
23707 | CFLAGS="-O2" | |
f02d008e JD |
23708 | if test x$gcc_no_link = xyes; then |
23709 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23710 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23711 | { (exit 1); exit 1; }; } | |
23712 | fi | |
23713 | cat >conftest.$ac_ext <<_ACEOF | |
3969c39f EB |
23714 | /* confdefs.h. */ |
23715 | _ACEOF | |
23716 | cat confdefs.h >>conftest.$ac_ext | |
23717 | cat >>conftest.$ac_ext <<_ACEOF | |
23718 | /* end confdefs.h. */ | |
23719 | ||
23720 | int | |
23721 | main () | |
23722 | { | |
23723 | ||
23724 | if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4) | |
23725 | ; | |
23726 | else | |
23727 | undefined_function (); | |
23728 | ||
23729 | ; | |
23730 | return 0; | |
23731 | } | |
23732 | _ACEOF | |
23733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23735 | (eval $ac_link) 2>conftest.er1 | |
23736 | ac_status=$? | |
23737 | grep -v '^ *+' conftest.er1 >conftest.err | |
23738 | rm -f conftest.er1 | |
23739 | cat conftest.err >&5 | |
23740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23741 | (exit $ac_status); } && | |
57255173 PB |
23742 | { ac_try='test -z "$ac_c_werror_flag" |
23743 | || test ! -s conftest.err' | |
3969c39f EB |
23744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23745 | (eval $ac_try) 2>&5 | |
23746 | ac_status=$? | |
23747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23748 | (exit $ac_status); }; } && | |
23749 | { ac_try='test -s conftest$ac_exeext' | |
23750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23751 | (eval $ac_try) 2>&5 | |
23752 | ac_status=$? | |
23753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23754 | (exit $ac_status); }; }; then | |
23755 | target_ilp32=yes | |
23756 | else | |
23757 | echo "$as_me: failed program was:" >&5 | |
23758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23759 | ||
23760 | target_ilp32=no | |
23761 | fi | |
23762 | rm -f conftest.err conftest.$ac_objext \ | |
23763 | conftest$ac_exeext conftest.$ac_ext | |
23764 | CFLAGS="$save_CFLAGS" | |
23765 | fi | |
23766 | echo "$as_me:$LINENO: result: $target_ilp32" >&5 | |
23767 | echo "${ECHO_T}$target_ilp32" >&6 | |
23768 | if test $target_ilp32 = yes; then | |
23769 | ||
23770 | cat >>confdefs.h <<\_ACEOF | |
23771 | #define TARGET_ILP32 1 | |
23772 | _ACEOF | |
23773 | ||
23774 | fi | |
23775 | ||
23776 | ||
7d7b8bfe RH |
23777 | # Check out attribute support. |
23778 | ||
23779 | echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 | |
23780 | echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 | |
23781 | if test "${have_attribute_visibility+set}" = set; then | |
23782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23783 | else | |
23784 | ||
23785 | save_CFLAGS="$CFLAGS" | |
23786 | CFLAGS="$CFLAGS -Werror" | |
23787 | cat >conftest.$ac_ext <<_ACEOF | |
23788 | /* confdefs.h. */ | |
23789 | _ACEOF | |
23790 | cat confdefs.h >>conftest.$ac_ext | |
23791 | cat >>conftest.$ac_ext <<_ACEOF | |
23792 | /* end confdefs.h. */ | |
23793 | void __attribute__((visibility("hidden"))) foo(void) { } | |
23794 | int | |
23795 | main () | |
23796 | { | |
23797 | ||
23798 | ; | |
23799 | return 0; | |
23800 | } | |
23801 | _ACEOF | |
23802 | rm -f conftest.$ac_objext | |
23803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23804 | (eval $ac_compile) 2>conftest.er1 | |
23805 | ac_status=$? | |
23806 | grep -v '^ *+' conftest.er1 >conftest.err | |
23807 | rm -f conftest.er1 | |
23808 | cat conftest.err >&5 | |
23809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23810 | (exit $ac_status); } && | |
57255173 PB |
23811 | { ac_try='test -z "$ac_c_werror_flag" |
23812 | || test ! -s conftest.err' | |
7d7b8bfe RH |
23813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23814 | (eval $ac_try) 2>&5 | |
23815 | ac_status=$? | |
23816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23817 | (exit $ac_status); }; } && | |
23818 | { ac_try='test -s conftest.$ac_objext' | |
23819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23820 | (eval $ac_try) 2>&5 | |
23821 | ac_status=$? | |
23822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23823 | (exit $ac_status); }; }; then | |
23824 | have_attribute_visibility=yes | |
23825 | else | |
23826 | echo "$as_me: failed program was:" >&5 | |
23827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23828 | ||
23829 | have_attribute_visibility=no | |
23830 | fi | |
23831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23832 | CFLAGS="$save_CFLAGS" | |
23833 | fi | |
23834 | echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 | |
23835 | echo "${ECHO_T}$have_attribute_visibility" >&6 | |
23836 | if test $have_attribute_visibility = yes; then | |
23837 | ||
23838 | cat >>confdefs.h <<\_ACEOF | |
23839 | #define HAVE_ATTRIBUTE_VISIBILITY 1 | |
23840 | _ACEOF | |
23841 | ||
23842 | fi | |
23843 | ||
23844 | echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 | |
23845 | echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 | |
23846 | if test "${have_attribute_dllexport+set}" = set; then | |
23847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23848 | else | |
23849 | ||
23850 | save_CFLAGS="$CFLAGS" | |
23851 | CFLAGS="$CFLAGS -Werror" | |
23852 | cat >conftest.$ac_ext <<_ACEOF | |
23853 | /* confdefs.h. */ | |
23854 | _ACEOF | |
23855 | cat confdefs.h >>conftest.$ac_ext | |
23856 | cat >>conftest.$ac_ext <<_ACEOF | |
23857 | /* end confdefs.h. */ | |
23858 | void __attribute__((dllexport)) foo(void) { } | |
23859 | int | |
23860 | main () | |
23861 | { | |
23862 | ||
23863 | ; | |
23864 | return 0; | |
23865 | } | |
23866 | _ACEOF | |
23867 | rm -f conftest.$ac_objext | |
23868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23869 | (eval $ac_compile) 2>conftest.er1 | |
23870 | ac_status=$? | |
23871 | grep -v '^ *+' conftest.er1 >conftest.err | |
23872 | rm -f conftest.er1 | |
23873 | cat conftest.err >&5 | |
23874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23875 | (exit $ac_status); } && | |
57255173 PB |
23876 | { ac_try='test -z "$ac_c_werror_flag" |
23877 | || test ! -s conftest.err' | |
7d7b8bfe RH |
23878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23879 | (eval $ac_try) 2>&5 | |
23880 | ac_status=$? | |
23881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23882 | (exit $ac_status); }; } && | |
23883 | { ac_try='test -s conftest.$ac_objext' | |
23884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23885 | (eval $ac_try) 2>&5 | |
23886 | ac_status=$? | |
23887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23888 | (exit $ac_status); }; }; then | |
23889 | have_attribute_dllexport=yes | |
23890 | else | |
23891 | echo "$as_me: failed program was:" >&5 | |
23892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23893 | ||
23894 | have_attribute_dllexport=no | |
23895 | fi | |
23896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23897 | CFLAGS="$save_CFLAGS" | |
23898 | fi | |
23899 | echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5 | |
23900 | echo "${ECHO_T}$have_attribute_dllexport" >&6 | |
23901 | if test $have_attribute_dllexport = yes; then | |
23902 | ||
23903 | cat >>confdefs.h <<\_ACEOF | |
23904 | #define HAVE_ATTRIBUTE_DLLEXPORT 1 | |
23905 | _ACEOF | |
23906 | ||
23907 | fi | |
23908 | ||
23909 | echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 | |
23910 | echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 | |
23911 | if test "${have_attribute_alias+set}" = set; then | |
23912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23913 | else | |
23914 | ||
f02d008e JD |
23915 | if test x$gcc_no_link = xyes; then |
23916 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23917 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23918 | { (exit 1); exit 1; }; } | |
23919 | fi | |
23920 | cat >conftest.$ac_ext <<_ACEOF | |
7d7b8bfe RH |
23921 | /* confdefs.h. */ |
23922 | _ACEOF | |
23923 | cat confdefs.h >>conftest.$ac_ext | |
23924 | cat >>conftest.$ac_ext <<_ACEOF | |
23925 | /* end confdefs.h. */ | |
23926 | ||
7d7b8bfe | 23927 | void foo(void) { } |
16a314a9 | 23928 | extern void bar(void) __attribute__((alias("foo"))); |
7d7b8bfe RH |
23929 | int |
23930 | main () | |
23931 | { | |
23932 | bar(); | |
23933 | ; | |
23934 | return 0; | |
23935 | } | |
23936 | _ACEOF | |
23937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23939 | (eval $ac_link) 2>conftest.er1 | |
23940 | ac_status=$? | |
23941 | grep -v '^ *+' conftest.er1 >conftest.err | |
23942 | rm -f conftest.er1 | |
23943 | cat conftest.err >&5 | |
23944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23945 | (exit $ac_status); } && | |
57255173 PB |
23946 | { ac_try='test -z "$ac_c_werror_flag" |
23947 | || test ! -s conftest.err' | |
7d7b8bfe RH |
23948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23949 | (eval $ac_try) 2>&5 | |
23950 | ac_status=$? | |
23951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23952 | (exit $ac_status); }; } && | |
23953 | { ac_try='test -s conftest$ac_exeext' | |
23954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23955 | (eval $ac_try) 2>&5 | |
23956 | ac_status=$? | |
23957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23958 | (exit $ac_status); }; }; then | |
23959 | have_attribute_alias=yes | |
23960 | else | |
23961 | echo "$as_me: failed program was:" >&5 | |
23962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23963 | ||
23964 | have_attribute_alias=no | |
23965 | fi | |
23966 | rm -f conftest.err conftest.$ac_objext \ | |
23967 | conftest$ac_exeext conftest.$ac_ext | |
23968 | fi | |
23969 | echo "$as_me:$LINENO: result: $have_attribute_alias" >&5 | |
23970 | echo "${ECHO_T}$have_attribute_alias" >&6 | |
23971 | if test $have_attribute_alias = yes; then | |
23972 | ||
23973 | cat >>confdefs.h <<\_ACEOF | |
23974 | #define HAVE_ATTRIBUTE_ALIAS 1 | |
23975 | _ACEOF | |
23976 | ||
23977 | fi | |
23978 | ||
5e805e44 JJ |
23979 | # Check out sync builtins support. |
23980 | ||
23981 | echo "$as_me:$LINENO: checking whether the target supports __sync_fetch_and_add" >&5 | |
23982 | echo $ECHO_N "checking whether the target supports __sync_fetch_and_add... $ECHO_C" >&6 | |
23983 | if test "${have_sync_fetch_and_add+set}" = set; then | |
23984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23985 | else | |
23986 | ||
23987 | if test x$gcc_no_link = xyes; then | |
23988 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23989 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23990 | { (exit 1); exit 1; }; } | |
23991 | fi | |
23992 | cat >conftest.$ac_ext <<_ACEOF | |
23993 | /* confdefs.h. */ | |
23994 | _ACEOF | |
23995 | cat confdefs.h >>conftest.$ac_ext | |
23996 | cat >>conftest.$ac_ext <<_ACEOF | |
23997 | /* end confdefs.h. */ | |
23998 | int foovar = 0; | |
23999 | int | |
24000 | main () | |
24001 | { | |
24002 | ||
24003 | if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1); | |
24004 | if (foovar > 10) return __sync_add_and_fetch (&foovar, -1); | |
24005 | ; | |
24006 | return 0; | |
24007 | } | |
24008 | _ACEOF | |
24009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24011 | (eval $ac_link) 2>conftest.er1 | |
24012 | ac_status=$? | |
24013 | grep -v '^ *+' conftest.er1 >conftest.err | |
24014 | rm -f conftest.er1 | |
24015 | cat conftest.err >&5 | |
24016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24017 | (exit $ac_status); } && | |
57255173 PB |
24018 | { ac_try='test -z "$ac_c_werror_flag" |
24019 | || test ! -s conftest.err' | |
5e805e44 JJ |
24020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24021 | (eval $ac_try) 2>&5 | |
24022 | ac_status=$? | |
24023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24024 | (exit $ac_status); }; } && | |
24025 | { ac_try='test -s conftest$ac_exeext' | |
24026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24027 | (eval $ac_try) 2>&5 | |
24028 | ac_status=$? | |
24029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24030 | (exit $ac_status); }; }; then | |
24031 | have_sync_fetch_and_add=yes | |
24032 | else | |
24033 | echo "$as_me: failed program was:" >&5 | |
24034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24035 | ||
24036 | have_sync_fetch_and_add=no | |
24037 | fi | |
24038 | rm -f conftest.err conftest.$ac_objext \ | |
24039 | conftest$ac_exeext conftest.$ac_ext | |
24040 | fi | |
24041 | echo "$as_me:$LINENO: result: $have_sync_fetch_and_add" >&5 | |
24042 | echo "${ECHO_T}$have_sync_fetch_and_add" >&6 | |
24043 | if test $have_sync_fetch_and_add = yes; then | |
24044 | ||
24045 | cat >>confdefs.h <<\_ACEOF | |
24046 | #define HAVE_SYNC_FETCH_AND_ADD 1 | |
24047 | _ACEOF | |
24048 | ||
24049 | fi | |
24050 | ||
24051 | # Check out thread support. | |
24052 | ||
24053 | echo "$as_me:$LINENO: checking configured target thread model" >&5 | |
24054 | echo $ECHO_N "checking configured target thread model... $ECHO_C" >&6 | |
24055 | if test "${target_thread_file+set}" = set; then | |
24056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24057 | else | |
24058 | ||
24059 | target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
24060 | fi | |
24061 | echo "$as_me:$LINENO: result: $target_thread_file" >&5 | |
24062 | echo "${ECHO_T}$target_thread_file" >&6 | |
24063 | ||
24064 | if test $target_thread_file != single; then | |
24065 | ||
24066 | cat >>confdefs.h <<\_ACEOF | |
24067 | #define HAVE_GTHR_DEFAULT 1 | |
24068 | _ACEOF | |
24069 | ||
24070 | fi | |
24071 | ||
24072 | # Check out #pragma weak. | |
24073 | ||
24074 | echo "$as_me:$LINENO: checking whether pragma weak works" >&5 | |
24075 | echo $ECHO_N "checking whether pragma weak works... $ECHO_C" >&6 | |
24076 | if test "${have_pragma_weak+set}" = set; then | |
24077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24078 | else | |
24079 | ||
24080 | gfor_save_CFLAGS="$CFLAGS" | |
24081 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
24082 | cat >conftest.$ac_ext <<_ACEOF | |
24083 | /* confdefs.h. */ | |
24084 | _ACEOF | |
24085 | cat confdefs.h >>conftest.$ac_ext | |
24086 | cat >>conftest.$ac_ext <<_ACEOF | |
24087 | /* end confdefs.h. */ | |
24088 | void foo (void); | |
24089 | #pragma weak foo | |
24090 | int | |
24091 | main () | |
24092 | { | |
24093 | if (foo) foo (); | |
24094 | ; | |
24095 | return 0; | |
24096 | } | |
24097 | _ACEOF | |
24098 | rm -f conftest.$ac_objext | |
24099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24100 | (eval $ac_compile) 2>conftest.er1 | |
24101 | ac_status=$? | |
24102 | grep -v '^ *+' conftest.er1 >conftest.err | |
24103 | rm -f conftest.er1 | |
24104 | cat conftest.err >&5 | |
24105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24106 | (exit $ac_status); } && | |
57255173 PB |
24107 | { ac_try='test -z "$ac_c_werror_flag" |
24108 | || test ! -s conftest.err' | |
5e805e44 JJ |
24109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24110 | (eval $ac_try) 2>&5 | |
24111 | ac_status=$? | |
24112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24113 | (exit $ac_status); }; } && | |
24114 | { ac_try='test -s conftest.$ac_objext' | |
24115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24116 | (eval $ac_try) 2>&5 | |
24117 | ac_status=$? | |
24118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24119 | (exit $ac_status); }; }; then | |
24120 | have_pragma_weak=yes | |
24121 | else | |
24122 | echo "$as_me: failed program was:" >&5 | |
24123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24124 | ||
24125 | have_pragma_weak=no | |
24126 | fi | |
24127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24128 | fi | |
24129 | echo "$as_me:$LINENO: result: $have_pragma_weak" >&5 | |
24130 | echo "${ECHO_T}$have_pragma_weak" >&6 | |
24131 | if test $have_pragma_weak = yes; then | |
24132 | ||
24133 | cat >>confdefs.h <<\_ACEOF | |
e669bd2b | 24134 | #define SUPPORTS_WEAK 1 |
5e805e44 JJ |
24135 | _ACEOF |
24136 | ||
24137 | fi | |
e669bd2b JJ |
24138 | case "$host" in |
24139 | *-*-darwin* | *-*-hpux* | *-*-cygwin*) | |
24140 | ||
24141 | cat >>confdefs.h <<\_ACEOF | |
24142 | #define GTHREAD_USE_WEAK 0 | |
24143 | _ACEOF | |
24144 | ||
24145 | ;; | |
24146 | esac | |
5e805e44 | 24147 | |
10c682a0 FXC |
24148 | # Various other checks on target |
24149 | ||
24150 | echo "$as_me:$LINENO: checking whether the target can unlink an open file" >&5 | |
24151 | echo $ECHO_N "checking whether the target can unlink an open file... $ECHO_C" >&6 | |
24152 | if test "${have_unlink_open_file+set}" = set; then | |
24153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24154 | else | |
24155 | ||
24156 | if test "$cross_compiling" = yes; then | |
24157 | ||
24158 | case "${target}" in | |
24159 | *mingw*) have_unlink_open_file=no ;; | |
24160 | *) have_unlink_open_file=yes;; | |
24161 | esac | |
24162 | else | |
24163 | cat >conftest.$ac_ext <<_ACEOF | |
24164 | /* confdefs.h. */ | |
24165 | _ACEOF | |
24166 | cat confdefs.h >>conftest.$ac_ext | |
24167 | cat >>conftest.$ac_ext <<_ACEOF | |
24168 | /* end confdefs.h. */ | |
24169 | ||
24170 | #include <errno.h> | |
24171 | #include <fcntl.h> | |
24172 | #include <unistd.h> | |
24173 | #include <sys/stat.h> | |
24174 | ||
24175 | int main () | |
24176 | { | |
24177 | int fd; | |
24178 | ||
24179 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD); | |
24180 | if (fd <= 0) | |
24181 | return 0; | |
24182 | if (unlink ("testfile") == -1) | |
24183 | return 1; | |
24184 | write (fd, "This is a test\n", 15); | |
24185 | close (fd); | |
24186 | ||
24187 | if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT) | |
24188 | return 0; | |
24189 | else | |
24190 | return 1; | |
24191 | } | |
24192 | _ACEOF | |
24193 | rm -f conftest$ac_exeext | |
24194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24195 | (eval $ac_link) 2>&5 | |
24196 | ac_status=$? | |
24197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24198 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24200 | (eval $ac_try) 2>&5 | |
24201 | ac_status=$? | |
24202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24203 | (exit $ac_status); }; }; then | |
24204 | have_unlink_open_file=yes | |
24205 | else | |
24206 | echo "$as_me: program exited with status $ac_status" >&5 | |
24207 | echo "$as_me: failed program was:" >&5 | |
24208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24209 | ||
24210 | ( exit $ac_status ) | |
24211 | have_unlink_open_file=no | |
24212 | fi | |
24213 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
24214 | fi | |
24215 | fi | |
24216 | echo "$as_me:$LINENO: result: $have_unlink_open_file" >&5 | |
24217 | echo "${ECHO_T}$have_unlink_open_file" >&6 | |
24218 | if test x"$have_unlink_open_file" = xyes; then | |
24219 | ||
24220 | cat >>confdefs.h <<\_ACEOF | |
24221 | #define HAVE_UNLINK_OPEN_FILE 1 | |
24222 | _ACEOF | |
24223 | ||
24224 | fi | |
24225 | ||
3c127520 FXC |
24226 | # Check whether line terminator is LF or CRLF |
24227 | ||
24228 | echo "$as_me:$LINENO: checking whether the target has CRLF as line terminator" >&5 | |
24229 | echo $ECHO_N "checking whether the target has CRLF as line terminator... $ECHO_C" >&6 | |
24230 | if test "${have_crlf+set}" = set; then | |
24231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24232 | else | |
24233 | ||
24234 | if test "$cross_compiling" = yes; then | |
24235 | ||
24236 | case "${target}" in | |
24237 | *mingw*) have_crlf=yes ;; | |
24238 | *) have_crlf=no;; | |
24239 | esac | |
24240 | else | |
24241 | cat >conftest.$ac_ext <<_ACEOF | |
24242 | /* confdefs.h. */ | |
24243 | _ACEOF | |
24244 | cat confdefs.h >>conftest.$ac_ext | |
24245 | cat >>conftest.$ac_ext <<_ACEOF | |
24246 | /* end confdefs.h. */ | |
24247 | ||
24248 | /* This test program should exit with status 0 if system uses a CRLF as | |
24249 | line terminator, and status 1 otherwise. | |
24250 | Since it is used to check for mingw systems, and should return 0 in any | |
24251 | other case, in case of a failure we will not use CRLF. */ | |
24252 | #include <sys/stat.h> | |
24253 | #include <stdlib.h> | |
24254 | #include <fcntl.h> | |
24255 | #include <stdio.h> | |
24256 | ||
24257 | int main () | |
24258 | { | |
24259 | #ifndef O_BINARY | |
24260 | exit(1); | |
24261 | #else | |
24262 | int fd, bytes; | |
24263 | char buff[5]; | |
24264 | ||
24265 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
24266 | if (fd < 0) | |
24267 | exit(1); | |
24268 | if (write (fd, "\n", 1) < 0) | |
24269 | perror ("write"); | |
24270 | ||
24271 | close (fd); | |
24272 | ||
24273 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
24274 | exit(1); | |
24275 | bytes = read (fd, buff, 5); | |
24276 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
24277 | exit(0); | |
24278 | else | |
24279 | exit(1); | |
24280 | #endif | |
24281 | } | |
24282 | _ACEOF | |
24283 | rm -f conftest$ac_exeext | |
24284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24285 | (eval $ac_link) 2>&5 | |
24286 | ac_status=$? | |
24287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24288 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24290 | (eval $ac_try) 2>&5 | |
24291 | ac_status=$? | |
24292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24293 | (exit $ac_status); }; }; then | |
24294 | have_crlf=yes | |
24295 | else | |
24296 | echo "$as_me: program exited with status $ac_status" >&5 | |
24297 | echo "$as_me: failed program was:" >&5 | |
24298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24299 | ||
24300 | ( exit $ac_status ) | |
24301 | have_crlf=no | |
24302 | fi | |
24303 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
24304 | fi | |
24305 | fi | |
24306 | echo "$as_me:$LINENO: result: $have_crlf" >&5 | |
24307 | echo "${ECHO_T}$have_crlf" >&6 | |
24308 | if test x"$have_crlf" = xyes; then | |
24309 | ||
24310 | cat >>confdefs.h <<\_ACEOF | |
24311 | #define HAVE_CRLF 1 | |
24312 | _ACEOF | |
24313 | ||
24314 | fi | |
24315 | ||
6de9cd9a DN |
24316 | cat >confcache <<\_ACEOF |
24317 | # This file is a shell script that caches the results of configure | |
24318 | # tests run on this system so they can be shared between configure | |
24319 | # scripts and configure runs, see configure's option --config-cache. | |
24320 | # It is not useful on other systems. If it contains results you don't | |
24321 | # want to keep, you may remove or edit it. | |
24322 | # | |
24323 | # config.status only pays attention to the cache file if you give it | |
24324 | # the --recheck option to rerun configure. | |
24325 | # | |
24326 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24327 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24328 | # following values. | |
24329 | ||
24330 | _ACEOF | |
24331 | ||
24332 | # The following way of writing the cache mishandles newlines in values, | |
24333 | # but we know of no workaround that is simple, portable, and efficient. | |
24334 | # So, don't put newlines in cache variables' values. | |
24335 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
24336 | # and sets the high bit in the cache file unless we assign to the vars. | |
24337 | { | |
24338 | (set) 2>&1 | | |
24339 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
24340 | *ac_space=\ *) | |
24341 | # `set' does not quote correctly, so add quotes (double-quote | |
24342 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24343 | sed -n \ | |
24344 | "s/'/'\\\\''/g; | |
24345 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
24346 | ;; | |
24347 | *) | |
24348 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
24349 | sed -n \ | |
24350 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
24351 | ;; | |
24352 | esac; | |
24353 | } | | |
24354 | sed ' | |
24355 | t clear | |
24356 | : clear | |
24357 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
24358 | t end | |
24359 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
24360 | : end' >>confcache | |
24361 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
24362 | if test -w $cache_file; then | |
24363 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
24364 | cat confcache >$cache_file | |
24365 | else | |
24366 | echo "not updating unwritable cache $cache_file" | |
24367 | fi | |
24368 | fi | |
24369 | rm -f confcache | |
24370 | ||
96b8a615 AJ |
24371 | if test ${multilib} = yes; then |
24372 | multilib_arg="--enable-multilib" | |
6de9cd9a | 24373 | else |
96b8a615 | 24374 | multilib_arg= |
6de9cd9a | 24375 | fi |
6de9cd9a | 24376 | |
96b8a615 | 24377 | # Write our Makefile. |
6de9cd9a | 24378 | ac_config_files="$ac_config_files Makefile" |
96b8a615 | 24379 | |
6de9cd9a DN |
24380 | cat >confcache <<\_ACEOF |
24381 | # This file is a shell script that caches the results of configure | |
24382 | # tests run on this system so they can be shared between configure | |
24383 | # scripts and configure runs, see configure's option --config-cache. | |
24384 | # It is not useful on other systems. If it contains results you don't | |
24385 | # want to keep, you may remove or edit it. | |
24386 | # | |
24387 | # config.status only pays attention to the cache file if you give it | |
24388 | # the --recheck option to rerun configure. | |
24389 | # | |
24390 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24391 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24392 | # following values. | |
24393 | ||
24394 | _ACEOF | |
24395 | ||
24396 | # The following way of writing the cache mishandles newlines in values, | |
24397 | # but we know of no workaround that is simple, portable, and efficient. | |
24398 | # So, don't put newlines in cache variables' values. | |
24399 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
24400 | # and sets the high bit in the cache file unless we assign to the vars. | |
24401 | { | |
24402 | (set) 2>&1 | | |
24403 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
24404 | *ac_space=\ *) | |
24405 | # `set' does not quote correctly, so add quotes (double-quote | |
24406 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24407 | sed -n \ | |
24408 | "s/'/'\\\\''/g; | |
24409 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
24410 | ;; | |
24411 | *) | |
24412 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
24413 | sed -n \ | |
24414 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
24415 | ;; | |
24416 | esac; | |
24417 | } | | |
24418 | sed ' | |
24419 | t clear | |
24420 | : clear | |
24421 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
24422 | t end | |
24423 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
24424 | : end' >>confcache | |
24425 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
24426 | if test -w $cache_file; then | |
24427 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
24428 | cat confcache >$cache_file | |
24429 | else | |
24430 | echo "not updating unwritable cache $cache_file" | |
24431 | fi | |
24432 | fi | |
24433 | rm -f confcache | |
24434 | ||
24435 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
24436 | # Let make expand exec_prefix. | |
24437 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
24438 | ||
24439 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
24440 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
24441 | # trailing colons and then remove the whole line if VPATH becomes empty | |
24442 | # (actually we leave an empty line to preserve line numbers). | |
24443 | if test "x$srcdir" = x.; then | |
24444 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
24445 | s/:*\$(srcdir):*/:/; | |
24446 | s/:*\${srcdir}:*/:/; | |
24447 | s/:*@srcdir@:*/:/; | |
24448 | s/^\([^=]*=[ ]*\):*/\1/; | |
24449 | s/:*$//; | |
24450 | s/^[^=]*=[ ]*$//; | |
24451 | }' | |
24452 | fi | |
24453 | ||
24454 | DEFS=-DHAVE_CONFIG_H | |
24455 | ||
24456 | ac_libobjs= | |
24457 | ac_ltlibobjs= | |
24458 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
24459 | # 1. Remove the extension, and $U if already installed. | |
24460 | ac_i=`echo "$ac_i" | | |
24461 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
24462 | # 2. Add them. | |
24463 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
24464 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
24465 | done | |
24466 | LIBOBJS=$ac_libobjs | |
24467 | ||
24468 | LTLIBOBJS=$ac_ltlibobjs | |
24469 | ||
24470 | ||
24471 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
24472 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
24473 | Usually this means the macro was only invoked conditionally." >&5 | |
24474 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
24475 | Usually this means the macro was only invoked conditionally." >&2;} | |
24476 | { (exit 1); exit 1; }; } | |
24477 | fi | |
679c0f9a TT |
24478 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
24479 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
24480 | Usually this means the macro was only invoked conditionally." >&5 | |
24481 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
24482 | Usually this means the macro was only invoked conditionally." >&2;} | |
24483 | { (exit 1); exit 1; }; } | |
24484 | fi | |
24485 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
24486 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
24487 | Usually this means the macro was only invoked conditionally." >&5 | |
24488 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
24489 | Usually this means the macro was only invoked conditionally." >&2;} | |
24490 | { (exit 1); exit 1; }; } | |
24491 | fi | |
6de9cd9a DN |
24492 | |
24493 | : ${CONFIG_STATUS=./config.status} | |
24494 | ac_clean_files_save=$ac_clean_files | |
24495 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
24496 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
24497 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
24498 | cat >$CONFIG_STATUS <<_ACEOF | |
24499 | #! $SHELL | |
24500 | # Generated by $as_me. | |
24501 | # Run this file to recreate the current configuration. | |
24502 | # Compiler output produced by configure, useful for debugging | |
24503 | # configure, is in config.log if it exists. | |
24504 | ||
24505 | debug=false | |
24506 | ac_cs_recheck=false | |
24507 | ac_cs_silent=false | |
24508 | SHELL=\${CONFIG_SHELL-$SHELL} | |
24509 | _ACEOF | |
24510 | ||
24511 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24512 | ## --------------------- ## | |
24513 | ## M4sh Initialization. ## | |
24514 | ## --------------------- ## | |
24515 | ||
24516 | # Be Bourne compatible | |
24517 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
24518 | emulate sh | |
24519 | NULLCMD=: | |
24520 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
24521 | # is contrary to our usage. Disable this feature. | |
24522 | alias -g '${1+"$@"}'='"$@"' | |
24523 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
24524 | set -o posix | |
24525 | fi | |
24526 | DUALCASE=1; export DUALCASE # for MKS sh | |
24527 | ||
24528 | # Support unset when possible. | |
24529 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
24530 | as_unset=unset | |
24531 | else | |
24532 | as_unset=false | |
24533 | fi | |
24534 | ||
24535 | ||
24536 | # Work around bugs in pre-3.0 UWIN ksh. | |
24537 | $as_unset ENV MAIL MAILPATH | |
24538 | PS1='$ ' | |
24539 | PS2='> ' | |
24540 | PS4='+ ' | |
24541 | ||
24542 | # NLS nuisances. | |
24543 | for as_var in \ | |
24544 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
24545 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
24546 | LC_TELEPHONE LC_TIME | |
24547 | do | |
24548 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
24549 | eval $as_var=C; export $as_var | |
24550 | else | |
24551 | $as_unset $as_var | |
24552 | fi | |
24553 | done | |
24554 | ||
24555 | # Required to use basename. | |
24556 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
24557 | as_expr=expr | |
24558 | else | |
24559 | as_expr=false | |
24560 | fi | |
24561 | ||
24562 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
24563 | as_basename=basename | |
24564 | else | |
24565 | as_basename=false | |
24566 | fi | |
24567 | ||
24568 | ||
24569 | # Name of the executable. | |
24570 | as_me=`$as_basename "$0" || | |
24571 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
24572 | X"$0" : 'X\(//\)$' \| \ | |
24573 | X"$0" : 'X\(/\)$' \| \ | |
24574 | . : '\(.\)' 2>/dev/null || | |
24575 | echo X/"$0" | | |
24576 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
24577 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
24578 | /^X\/\(\/\).*/{ s//\1/; q; } | |
24579 | s/.*/./; q'` | |
24580 | ||
24581 | ||
24582 | # PATH needs CR, and LINENO needs CR and PATH. | |
24583 | # Avoid depending upon Character Ranges. | |
24584 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
24585 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
24586 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
24587 | as_cr_digits='0123456789' | |
24588 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
24589 | ||
24590 | # The user is always right. | |
24591 | if test "${PATH_SEPARATOR+set}" != set; then | |
24592 | echo "#! /bin/sh" >conf$$.sh | |
24593 | echo "exit 0" >>conf$$.sh | |
24594 | chmod +x conf$$.sh | |
24595 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
24596 | PATH_SEPARATOR=';' | |
24597 | else | |
24598 | PATH_SEPARATOR=: | |
24599 | fi | |
24600 | rm -f conf$$.sh | |
24601 | fi | |
24602 | ||
24603 | ||
24604 | as_lineno_1=$LINENO | |
24605 | as_lineno_2=$LINENO | |
24606 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
24607 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
24608 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
24609 | # Find who we are. Look in the path if we contain no path at all | |
24610 | # relative or not. | |
24611 | case $0 in | |
24612 | *[\\/]* ) as_myself=$0 ;; | |
24613 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24614 | for as_dir in $PATH | |
24615 | do | |
24616 | IFS=$as_save_IFS | |
24617 | test -z "$as_dir" && as_dir=. | |
24618 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
24619 | done | |
24620 | ||
24621 | ;; | |
24622 | esac | |
24623 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
24624 | # in which case we are not to be found in the path. | |
24625 | if test "x$as_myself" = x; then | |
24626 | as_myself=$0 | |
24627 | fi | |
24628 | if test ! -f "$as_myself"; then | |
24629 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
24630 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
24631 | { (exit 1); exit 1; }; } | |
24632 | fi | |
24633 | case $CONFIG_SHELL in | |
24634 | '') | |
24635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24636 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
24637 | do | |
24638 | IFS=$as_save_IFS | |
24639 | test -z "$as_dir" && as_dir=. | |
24640 | for as_base in sh bash ksh sh5; do | |
24641 | case $as_dir in | |
24642 | /*) | |
24643 | if ("$as_dir/$as_base" -c ' | |
24644 | as_lineno_1=$LINENO | |
24645 | as_lineno_2=$LINENO | |
24646 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
24647 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
24648 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
24649 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
24650 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
24651 | CONFIG_SHELL=$as_dir/$as_base | |
24652 | export CONFIG_SHELL | |
24653 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
24654 | fi;; | |
24655 | esac | |
24656 | done | |
24657 | done | |
24658 | ;; | |
24659 | esac | |
24660 | ||
24661 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
24662 | # uniformly replaced by the line number. The first 'sed' inserts a | |
24663 | # line-number line before each line; the second 'sed' does the real | |
24664 | # work. The second script uses 'N' to pair each line-number line | |
24665 | # with the numbered line, and appends trailing '-' during | |
24666 | # substitution so that $LINENO is not a special case at line end. | |
24667 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
24668 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
24669 | sed '=' <$as_myself | | |
24670 | sed ' | |
24671 | N | |
24672 | s,$,-, | |
24673 | : loop | |
24674 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
24675 | t loop | |
24676 | s,-$,, | |
24677 | s,^['$as_cr_digits']*\n,, | |
24678 | ' >$as_me.lineno && | |
24679 | chmod +x $as_me.lineno || | |
24680 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
24681 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
24682 | { (exit 1); exit 1; }; } | |
24683 | ||
24684 | # Don't try to exec as it changes $[0], causing all sort of problems | |
24685 | # (the dirname of $[0] is not the place where we might find the | |
24686 | # original and so on. Autoconf is especially sensible to this). | |
24687 | . ./$as_me.lineno | |
24688 | # Exit status is that of the last command. | |
24689 | exit | |
24690 | } | |
24691 | ||
24692 | ||
24693 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
24694 | *c*,-n*) ECHO_N= ECHO_C=' | |
24695 | ' ECHO_T=' ' ;; | |
24696 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
24697 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
24698 | esac | |
24699 | ||
24700 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
24701 | as_expr=expr | |
24702 | else | |
24703 | as_expr=false | |
24704 | fi | |
24705 | ||
24706 | rm -f conf$$ conf$$.exe conf$$.file | |
24707 | echo >conf$$.file | |
24708 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
24709 | # We could just check for DJGPP; but this test a) works b) is more generic | |
24710 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
24711 | if test -f conf$$.exe; then | |
24712 | # Don't use ln at all; we don't have any links | |
24713 | as_ln_s='cp -p' | |
24714 | else | |
24715 | as_ln_s='ln -s' | |
24716 | fi | |
24717 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
24718 | as_ln_s=ln | |
24719 | else | |
24720 | as_ln_s='cp -p' | |
24721 | fi | |
24722 | rm -f conf$$ conf$$.exe conf$$.file | |
24723 | ||
24724 | if mkdir -p . 2>/dev/null; then | |
24725 | as_mkdir_p=: | |
24726 | else | |
24727 | test -d ./-p && rmdir ./-p | |
24728 | as_mkdir_p=false | |
24729 | fi | |
24730 | ||
24731 | as_executable_p="test -f" | |
24732 | ||
24733 | # Sed expression to map a string onto a valid CPP name. | |
24734 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
24735 | ||
24736 | # Sed expression to map a string onto a valid variable name. | |
24737 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
24738 | ||
24739 | ||
24740 | # IFS | |
24741 | # We need space, tab and new line, in precisely that order. | |
24742 | as_nl=' | |
24743 | ' | |
24744 | IFS=" $as_nl" | |
24745 | ||
24746 | # CDPATH. | |
24747 | $as_unset CDPATH | |
24748 | ||
24749 | exec 6>&1 | |
24750 | ||
24751 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
24752 | # report actual input values of CONFIG_FILES etc. instead of their | |
24753 | # values after options handling. Logging --version etc. is OK. | |
24754 | exec 5>>config.log | |
24755 | { | |
24756 | echo | |
24757 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24758 | ## Running $as_me. ## | |
24759 | _ASBOX | |
24760 | } >&5 | |
24761 | cat >&5 <<_CSEOF | |
24762 | ||
0dce3ca1 | 24763 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
6de9cd9a DN |
24764 | generated by GNU Autoconf 2.59. Invocation command line was |
24765 | ||
24766 | CONFIG_FILES = $CONFIG_FILES | |
24767 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24768 | CONFIG_LINKS = $CONFIG_LINKS | |
24769 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24770 | $ $0 $@ | |
24771 | ||
24772 | _CSEOF | |
24773 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
24774 | echo >&5 | |
24775 | _ACEOF | |
24776 | ||
24777 | # Files that config.status was made for. | |
24778 | if test -n "$ac_config_files"; then | |
24779 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
24780 | fi | |
24781 | ||
24782 | if test -n "$ac_config_headers"; then | |
24783 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
24784 | fi | |
24785 | ||
24786 | if test -n "$ac_config_links"; then | |
24787 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
24788 | fi | |
24789 | ||
24790 | if test -n "$ac_config_commands"; then | |
24791 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
24792 | fi | |
24793 | ||
24794 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24795 | ||
24796 | ac_cs_usage="\ | |
24797 | \`$as_me' instantiates files from templates according to the | |
24798 | current configuration. | |
24799 | ||
24800 | Usage: $0 [OPTIONS] [FILE]... | |
24801 | ||
24802 | -h, --help print this help, then exit | |
24803 | -V, --version print version number, then exit | |
24804 | -q, --quiet do not print progress messages | |
24805 | -d, --debug don't remove temporary files | |
24806 | --recheck update $as_me by reconfiguring in the same conditions | |
24807 | --file=FILE[:TEMPLATE] | |
24808 | instantiate the configuration file FILE | |
24809 | --header=FILE[:TEMPLATE] | |
24810 | instantiate the configuration header FILE | |
24811 | ||
24812 | Configuration files: | |
24813 | $config_files | |
24814 | ||
24815 | Configuration headers: | |
24816 | $config_headers | |
24817 | ||
24818 | Configuration commands: | |
24819 | $config_commands | |
24820 | ||
24821 | Report bugs to <bug-autoconf@gnu.org>." | |
24822 | _ACEOF | |
24823 | ||
24824 | cat >>$CONFIG_STATUS <<_ACEOF | |
24825 | ac_cs_version="\\ | |
0dce3ca1 | 24826 | GNU Fortran Runtime Library config.status 0.3 |
6de9cd9a DN |
24827 | configured by $0, generated by GNU Autoconf 2.59, |
24828 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
24829 | ||
24830 | Copyright (C) 2003 Free Software Foundation, Inc. | |
24831 | This config.status script is free software; the Free Software Foundation | |
24832 | gives unlimited permission to copy, distribute and modify it." | |
24833 | srcdir=$srcdir | |
24834 | INSTALL="$INSTALL" | |
24835 | _ACEOF | |
24836 | ||
24837 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24838 | # If no file are specified by the user, then we need to provide default | |
24839 | # value. By we need to know if files were specified by the user. | |
24840 | ac_need_defaults=: | |
24841 | while test $# != 0 | |
24842 | do | |
24843 | case $1 in | |
24844 | --*=*) | |
24845 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
24846 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
24847 | ac_shift=: | |
24848 | ;; | |
24849 | -*) | |
24850 | ac_option=$1 | |
24851 | ac_optarg=$2 | |
24852 | ac_shift=shift | |
24853 | ;; | |
24854 | *) # This is not an option, so the user has probably given explicit | |
24855 | # arguments. | |
24856 | ac_option=$1 | |
24857 | ac_need_defaults=false;; | |
24858 | esac | |
24859 | ||
24860 | case $ac_option in | |
24861 | # Handling of the options. | |
24862 | _ACEOF | |
24863 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24864 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
24865 | ac_cs_recheck=: ;; | |
24866 | --version | --vers* | -V ) | |
24867 | echo "$ac_cs_version"; exit 0 ;; | |
24868 | --he | --h) | |
24869 | # Conflict between --help and --header | |
24870 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
24871 | Try \`$0 --help' for more information." >&5 | |
24872 | echo "$as_me: error: ambiguous option: $1 | |
24873 | Try \`$0 --help' for more information." >&2;} | |
24874 | { (exit 1); exit 1; }; };; | |
24875 | --help | --hel | -h ) | |
24876 | echo "$ac_cs_usage"; exit 0 ;; | |
24877 | --debug | --d* | -d ) | |
24878 | debug=: ;; | |
24879 | --file | --fil | --fi | --f ) | |
24880 | $ac_shift | |
24881 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
24882 | ac_need_defaults=false;; | |
24883 | --header | --heade | --head | --hea ) | |
24884 | $ac_shift | |
24885 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
24886 | ac_need_defaults=false;; | |
24887 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24888 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24889 | ac_cs_silent=: ;; | |
24890 | ||
24891 | # This is an error. | |
24892 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
24893 | Try \`$0 --help' for more information." >&5 | |
24894 | echo "$as_me: error: unrecognized option: $1 | |
24895 | Try \`$0 --help' for more information." >&2;} | |
24896 | { (exit 1); exit 1; }; } ;; | |
24897 | ||
24898 | *) ac_config_targets="$ac_config_targets $1" ;; | |
24899 | ||
24900 | esac | |
24901 | shift | |
24902 | done | |
24903 | ||
24904 | ac_configure_extra_args= | |
24905 | ||
24906 | if $ac_cs_silent; then | |
24907 | exec 6>/dev/null | |
24908 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24909 | fi | |
24910 | ||
24911 | _ACEOF | |
24912 | cat >>$CONFIG_STATUS <<_ACEOF | |
24913 | if \$ac_cs_recheck; then | |
24914 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
24915 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
24916 | fi | |
24917 | ||
24918 | _ACEOF | |
24919 | ||
24920 | cat >>$CONFIG_STATUS <<_ACEOF | |
24921 | # | |
24922 | # INIT-COMMANDS section. | |
24923 | # | |
24924 | ||
96b8a615 AJ |
24925 | |
24926 | srcdir="$srcdir" | |
24927 | host="$host" | |
24928 | target="$target" | |
24929 | with_multisubdir="$with_multisubdir" | |
24930 | with_multisrctop="$with_multisrctop" | |
24931 | with_target_subdir="$with_target_subdir" | |
24932 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
24933 | multi_basedir="$multi_basedir" | |
24934 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
24935 | CC="$CC" | |
679c0f9a | 24936 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
6de9cd9a | 24937 | |
4c4b3eb0 PB |
24938 | GCC="$GCC" |
24939 | CC="$CC" | |
24940 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
24941 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
24942 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
24943 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
24944 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
24945 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
24946 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
24947 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
24948 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
24949 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
24950 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
24951 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
24952 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
24953 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
24954 | ||
24955 | ||
6de9cd9a DN |
24956 | _ACEOF |
24957 | ||
24958 | ||
24959 | ||
24960 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24961 | for ac_config_target in $ac_config_targets | |
24962 | do | |
24963 | case "$ac_config_target" in | |
24964 | # Handling of arguments. | |
24965 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
96b8a615 | 24966 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
679c0f9a | 24967 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
4c4b3eb0 | 24968 | "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; |
6de9cd9a DN |
24969 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
24970 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
24971 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
24972 | { (exit 1); exit 1; }; };; | |
24973 | esac | |
24974 | done | |
24975 | ||
24976 | # If the user did not use the arguments to specify the items to instantiate, | |
24977 | # then the envvar interface is used. Set only those that are not. | |
24978 | # We use the long form for the default assignment because of an extremely | |
24979 | # bizarre bug on SunOS 4.1.3. | |
24980 | if $ac_need_defaults; then | |
24981 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24982 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24983 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
24984 | fi | |
24985 | ||
24986 | # Have a temporary directory for convenience. Make it in the build tree | |
24987 | # simply because there is no reason to put it here, and in addition, | |
24988 | # creating and moving files from /tmp can sometimes cause problems. | |
24989 | # Create a temporary directory, and hook for its removal unless debugging. | |
24990 | $debug || | |
24991 | { | |
24992 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
24993 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
24994 | } | |
24995 | ||
24996 | # Create a (secure) tmp directory for tmp files. | |
24997 | ||
24998 | { | |
24999 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
25000 | test -n "$tmp" && test -d "$tmp" | |
25001 | } || | |
25002 | { | |
25003 | tmp=./confstat$$-$RANDOM | |
25004 | (umask 077 && mkdir $tmp) | |
25005 | } || | |
25006 | { | |
25007 | echo "$me: cannot create a temporary directory in ." >&2 | |
25008 | { (exit 1); exit 1; } | |
25009 | } | |
25010 | ||
25011 | _ACEOF | |
25012 | ||
25013 | cat >>$CONFIG_STATUS <<_ACEOF | |
25014 | ||
25015 | # | |
25016 | # CONFIG_FILES section. | |
25017 | # | |
25018 | ||
25019 | # No need to generate the scripts if there are no CONFIG_FILES. | |
25020 | # This happens for instance when ./config.status config.h | |
25021 | if test -n "\$CONFIG_FILES"; then | |
25022 | # Protect against being on the right side of a sed subst in config.status. | |
25023 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
25024 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
25025 | s,@SHELL@,$SHELL,;t t | |
25026 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
25027 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
25028 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
25029 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
25030 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
25031 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
25032 | s,@exec_prefix@,$exec_prefix,;t t | |
25033 | s,@prefix@,$prefix,;t t | |
25034 | s,@program_transform_name@,$program_transform_name,;t t | |
25035 | s,@bindir@,$bindir,;t t | |
25036 | s,@sbindir@,$sbindir,;t t | |
25037 | s,@libexecdir@,$libexecdir,;t t | |
25038 | s,@datadir@,$datadir,;t t | |
25039 | s,@sysconfdir@,$sysconfdir,;t t | |
25040 | s,@sharedstatedir@,$sharedstatedir,;t t | |
25041 | s,@localstatedir@,$localstatedir,;t t | |
25042 | s,@libdir@,$libdir,;t t | |
25043 | s,@includedir@,$includedir,;t t | |
25044 | s,@oldincludedir@,$oldincludedir,;t t | |
25045 | s,@infodir@,$infodir,;t t | |
25046 | s,@mandir@,$mandir,;t t | |
25047 | s,@build_alias@,$build_alias,;t t | |
25048 | s,@host_alias@,$host_alias,;t t | |
25049 | s,@target_alias@,$target_alias,;t t | |
25050 | s,@DEFS@,$DEFS,;t t | |
25051 | s,@ECHO_C@,$ECHO_C,;t t | |
25052 | s,@ECHO_N@,$ECHO_N,;t t | |
25053 | s,@ECHO_T@,$ECHO_T,;t t | |
25054 | s,@LIBS@,$LIBS,;t t | |
96b8a615 AJ |
25055 | s,@build@,$build,;t t |
25056 | s,@build_cpu@,$build_cpu,;t t | |
25057 | s,@build_vendor@,$build_vendor,;t t | |
25058 | s,@build_os@,$build_os,;t t | |
57255173 | 25059 | s,@build_libsubdir@,$build_libsubdir,;t t |
891c05b1 JJ |
25060 | s,@build_subdir@,$build_subdir,;t t |
25061 | s,@host_subdir@,$host_subdir,;t t | |
25062 | s,@target_subdir@,$target_subdir,;t t | |
96b8a615 AJ |
25063 | s,@host@,$host,;t t |
25064 | s,@host_cpu@,$host_cpu,;t t | |
25065 | s,@host_vendor@,$host_vendor,;t t | |
25066 | s,@host_os@,$host_os,;t t | |
25067 | s,@target@,$target,;t t | |
25068 | s,@target_cpu@,$target_cpu,;t t | |
25069 | s,@target_vendor@,$target_vendor,;t t | |
25070 | s,@target_os@,$target_os,;t t | |
6de9cd9a DN |
25071 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
25072 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
25073 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
25074 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
25075 | s,@PACKAGE@,$PACKAGE,;t t | |
25076 | s,@VERSION@,$VERSION,;t t | |
25077 | s,@ACLOCAL@,$ACLOCAL,;t t | |
25078 | s,@AUTOCONF@,$AUTOCONF,;t t | |
25079 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
25080 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
25081 | s,@MAKEINFO@,$MAKEINFO,;t t | |
6de9cd9a DN |
25082 | s,@install_sh@,$install_sh,;t t |
25083 | s,@STRIP@,$STRIP,;t t | |
25084 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
25085 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
25086 | s,@mkdir_p@,$mkdir_p,;t t | |
25087 | s,@AWK@,$AWK,;t t | |
25088 | s,@SET_MAKE@,$SET_MAKE,;t t | |
25089 | s,@am__leading_dot@,$am__leading_dot,;t t | |
d49ec2d1 KC |
25090 | s,@AMTAR@,$AMTAR,;t t |
25091 | s,@am__tar@,$am__tar,;t t | |
25092 | s,@am__untar@,$am__untar,;t t | |
6de9cd9a DN |
25093 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
25094 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
25095 | s,@MAINT@,$MAINT,;t t | |
96b8a615 | 25096 | s,@multi_basedir@,$multi_basedir,;t t |
96b8a615 AJ |
25097 | s,@toolexecdir@,$toolexecdir,;t t |
25098 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
6de9cd9a | 25099 | s,@CC@,$CC,;t t |
6de9cd9a DN |
25100 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
25101 | s,@EXEEXT@,$EXEEXT,;t t | |
25102 | s,@OBJEXT@,$OBJEXT,;t t | |
679c0f9a TT |
25103 | s,@DEPDIR@,$DEPDIR,;t t |
25104 | s,@am__include@,$am__include,;t t | |
25105 | s,@am__quote@,$am__quote,;t t | |
25106 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
25107 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
25108 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
25109 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
25110 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
25111 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
e606fb39 AJ |
25112 | s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t |
25113 | s,@AM_CFLAGS@,$AM_CFLAGS,;t t | |
96b8a615 AJ |
25114 | s,@AS@,$AS,;t t |
25115 | s,@ac_ct_AS@,$ac_ct_AS,;t t | |
25116 | s,@AR@,$AR,;t t | |
25117 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
25118 | s,@RANLIB@,$RANLIB,;t t | |
25119 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
25120 | s,@LN_S@,$LN_S,;t t | |
25121 | s,@LIBTOOL@,$LIBTOOL,;t t | |
25122 | s,@enable_shared@,$enable_shared,;t t | |
25123 | s,@enable_static@,$enable_static,;t t | |
c7a35fe9 AS |
25124 | s,@FC@,$FC,;t t |
25125 | s,@FCFLAGS@,$FCFLAGS,;t t | |
96b8a615 | 25126 | s,@LDFLAGS@,$LDFLAGS,;t t |
c7a35fe9 | 25127 | s,@ac_ct_FC@,$ac_ct_FC,;t t |
e87045f3 | 25128 | s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t |
6de9cd9a | 25129 | s,@CPP@,$CPP,;t t |
96b8a615 | 25130 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
6de9cd9a | 25131 | s,@EGREP@,$EGREP,;t t |
944b8b35 | 25132 | s,@FPU_HOST_HEADER@,$FPU_HOST_HEADER,;t t |
6de9cd9a DN |
25133 | s,@LIBOBJS@,$LIBOBJS,;t t |
25134 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
25135 | CEOF | |
25136 | ||
25137 | _ACEOF | |
25138 | ||
25139 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25140 | # Split the substitutions into bite-sized pieces for seds with | |
25141 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
25142 | ac_max_sed_lines=48 | |
25143 | ac_sed_frag=1 # Number of current file. | |
25144 | ac_beg=1 # First line for current file. | |
25145 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
25146 | ac_more_lines=: | |
25147 | ac_sed_cmds= | |
25148 | while $ac_more_lines; do | |
25149 | if test $ac_beg -gt 1; then | |
25150 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25151 | else | |
25152 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25153 | fi | |
25154 | if test ! -s $tmp/subs.frag; then | |
25155 | ac_more_lines=false | |
25156 | else | |
25157 | # The purpose of the label and of the branching condition is to | |
25158 | # speed up the sed processing (if there are no `@' at all, there | |
25159 | # is no need to browse any of the substitutions). | |
25160 | # These are the two extra sed commands mentioned above. | |
25161 | (echo ':t | |
25162 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
25163 | if test -z "$ac_sed_cmds"; then | |
25164 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
25165 | else | |
25166 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
25167 | fi | |
25168 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
25169 | ac_beg=$ac_end | |
25170 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25171 | fi | |
25172 | done | |
25173 | if test -z "$ac_sed_cmds"; then | |
25174 | ac_sed_cmds=cat | |
25175 | fi | |
25176 | fi # test -n "$CONFIG_FILES" | |
25177 | ||
25178 | _ACEOF | |
25179 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25180 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
25181 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
25182 | case $ac_file in | |
25183 | - | *:- | *:-:* ) # input from stdin | |
25184 | cat >$tmp/stdin | |
25185 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25186 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25187 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25188 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25189 | * ) ac_file_in=$ac_file.in ;; | |
25190 | esac | |
25191 | ||
25192 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
25193 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
25194 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25195 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25196 | X"$ac_file" : 'X\(//\)$' \| \ | |
25197 | X"$ac_file" : 'X\(/\)' \| \ | |
25198 | . : '\(.\)' 2>/dev/null || | |
25199 | echo X"$ac_file" | | |
25200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25201 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25202 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25203 | /^X\(\/\).*/{ s//\1/; q; } | |
25204 | s/.*/./; q'` | |
25205 | { if $as_mkdir_p; then | |
25206 | mkdir -p "$ac_dir" | |
25207 | else | |
25208 | as_dir="$ac_dir" | |
25209 | as_dirs= | |
25210 | while test ! -d "$as_dir"; do | |
25211 | as_dirs="$as_dir $as_dirs" | |
25212 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25213 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25214 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25215 | X"$as_dir" : 'X\(//\)$' \| \ | |
25216 | X"$as_dir" : 'X\(/\)' \| \ | |
25217 | . : '\(.\)' 2>/dev/null || | |
25218 | echo X"$as_dir" | | |
25219 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25220 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25221 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25222 | /^X\(\/\).*/{ s//\1/; q; } | |
25223 | s/.*/./; q'` | |
25224 | done | |
25225 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25226 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25227 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25228 | { (exit 1); exit 1; }; }; } | |
25229 | ||
25230 | ac_builddir=. | |
25231 | ||
25232 | if test "$ac_dir" != .; then | |
25233 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25234 | # A "../" for each directory in $ac_dir_suffix. | |
25235 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25236 | else | |
25237 | ac_dir_suffix= ac_top_builddir= | |
25238 | fi | |
25239 | ||
25240 | case $srcdir in | |
25241 | .) # No --srcdir option. We are building in place. | |
25242 | ac_srcdir=. | |
25243 | if test -z "$ac_top_builddir"; then | |
25244 | ac_top_srcdir=. | |
25245 | else | |
25246 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25247 | fi ;; | |
25248 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25249 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25250 | ac_top_srcdir=$srcdir ;; | |
25251 | *) # Relative path. | |
25252 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25253 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25254 | esac | |
25255 | ||
25256 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25257 | # the directories may not exist. | |
25258 | case `pwd` in | |
25259 | .) ac_abs_builddir="$ac_dir";; | |
25260 | *) | |
25261 | case "$ac_dir" in | |
25262 | .) ac_abs_builddir=`pwd`;; | |
25263 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25264 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25265 | esac;; | |
25266 | esac | |
25267 | case $ac_abs_builddir in | |
25268 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25269 | *) | |
25270 | case ${ac_top_builddir}. in | |
25271 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25272 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25273 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25274 | esac;; | |
25275 | esac | |
25276 | case $ac_abs_builddir in | |
25277 | .) ac_abs_srcdir=$ac_srcdir;; | |
25278 | *) | |
25279 | case $ac_srcdir in | |
25280 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25281 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25282 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25283 | esac;; | |
25284 | esac | |
25285 | case $ac_abs_builddir in | |
25286 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25287 | *) | |
25288 | case $ac_top_srcdir in | |
25289 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25290 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25291 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25292 | esac;; | |
25293 | esac | |
25294 | ||
25295 | ||
25296 | case $INSTALL in | |
25297 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
25298 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
25299 | esac | |
25300 | ||
57255173 PB |
25301 | if test x"$ac_file" != x-; then |
25302 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25303 | echo "$as_me: creating $ac_file" >&6;} | |
25304 | rm -f "$ac_file" | |
25305 | fi | |
6de9cd9a DN |
25306 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
25307 | # use $as_me), people would be surprised to read: | |
25308 | # /* config.h. Generated by config.status. */ | |
25309 | if test x"$ac_file" = x-; then | |
25310 | configure_input= | |
25311 | else | |
25312 | configure_input="$ac_file. " | |
25313 | fi | |
25314 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
25315 | sed 's,.*/,,'` by configure." | |
25316 | ||
25317 | # First look for the input files in the build tree, otherwise in the | |
25318 | # src tree. | |
25319 | ac_file_inputs=`IFS=: | |
25320 | for f in $ac_file_in; do | |
25321 | case $f in | |
25322 | -) echo $tmp/stdin ;; | |
25323 | [\\/$]*) | |
25324 | # Absolute (can't be DOS-style, as IFS=:) | |
25325 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25326 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25327 | { (exit 1); exit 1; }; } | |
25328 | echo "$f";; | |
25329 | *) # Relative | |
25330 | if test -f "$f"; then | |
25331 | # Build tree | |
25332 | echo "$f" | |
25333 | elif test -f "$srcdir/$f"; then | |
25334 | # Source tree | |
25335 | echo "$srcdir/$f" | |
25336 | else | |
25337 | # /dev/null tree | |
25338 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25339 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25340 | { (exit 1); exit 1; }; } | |
25341 | fi;; | |
25342 | esac | |
25343 | done` || { (exit 1); exit 1; } | |
6de9cd9a DN |
25344 | _ACEOF |
25345 | cat >>$CONFIG_STATUS <<_ACEOF | |
25346 | sed "$ac_vpsub | |
25347 | $extrasub | |
25348 | _ACEOF | |
25349 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25350 | :t | |
25351 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
25352 | s,@configure_input@,$configure_input,;t t | |
25353 | s,@srcdir@,$ac_srcdir,;t t | |
25354 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
25355 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
25356 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
25357 | s,@builddir@,$ac_builddir,;t t | |
25358 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
25359 | s,@top_builddir@,$ac_top_builddir,;t t | |
25360 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
25361 | s,@INSTALL@,$ac_INSTALL,;t t | |
25362 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
25363 | rm -f $tmp/stdin | |
25364 | if test x"$ac_file" != x-; then | |
25365 | mv $tmp/out $ac_file | |
25366 | else | |
25367 | cat $tmp/out | |
25368 | rm -f $tmp/out | |
25369 | fi | |
25370 | ||
25371 | done | |
25372 | _ACEOF | |
25373 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25374 | ||
25375 | # | |
25376 | # CONFIG_HEADER section. | |
25377 | # | |
25378 | ||
25379 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
25380 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
25381 | # | |
25382 | # ac_d sets the value in "#define NAME VALUE" lines. | |
25383 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
25384 | ac_dB='[ ].*$,\1#\2' | |
25385 | ac_dC=' ' | |
25386 | ac_dD=',;t' | |
25387 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
25388 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
25389 | ac_uB='$,\1#\2define\3' | |
25390 | ac_uC=' ' | |
25391 | ac_uD=',;t' | |
25392 | ||
25393 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25394 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
25395 | case $ac_file in | |
25396 | - | *:- | *:-:* ) # input from stdin | |
25397 | cat >$tmp/stdin | |
25398 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25399 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25400 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25401 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25402 | * ) ac_file_in=$ac_file.in ;; | |
25403 | esac | |
25404 | ||
25405 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25406 | echo "$as_me: creating $ac_file" >&6;} | |
25407 | ||
25408 | # First look for the input files in the build tree, otherwise in the | |
25409 | # src tree. | |
25410 | ac_file_inputs=`IFS=: | |
25411 | for f in $ac_file_in; do | |
25412 | case $f in | |
25413 | -) echo $tmp/stdin ;; | |
25414 | [\\/$]*) | |
25415 | # Absolute (can't be DOS-style, as IFS=:) | |
25416 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25417 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25418 | { (exit 1); exit 1; }; } | |
25419 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
25420 | echo "$f";; | |
25421 | *) # Relative | |
25422 | if test -f "$f"; then | |
25423 | # Build tree | |
25424 | echo "$f" | |
25425 | elif test -f "$srcdir/$f"; then | |
25426 | # Source tree | |
25427 | echo "$srcdir/$f" | |
25428 | else | |
25429 | # /dev/null tree | |
25430 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25431 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25432 | { (exit 1); exit 1; }; } | |
25433 | fi;; | |
25434 | esac | |
25435 | done` || { (exit 1); exit 1; } | |
25436 | # Remove the trailing spaces. | |
25437 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
25438 | ||
25439 | _ACEOF | |
25440 | ||
25441 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
25442 | # `conftest.undefs', that substitutes the proper values into | |
25443 | # config.h.in to produce config.h. The first handles `#define' | |
25444 | # templates, and the second `#undef' templates. | |
25445 | # And first: Protect against being on the right side of a sed subst in | |
25446 | # config.status. Protect against being in an unquoted here document | |
25447 | # in config.status. | |
25448 | rm -f conftest.defines conftest.undefs | |
25449 | # Using a here document instead of a string reduces the quoting nightmare. | |
25450 | # Putting comments in sed scripts is not portable. | |
25451 | # | |
25452 | # `end' is used to avoid that the second main sed command (meant for | |
25453 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
25454 | # See the Autoconf documentation for `clear'. | |
25455 | cat >confdef2sed.sed <<\_ACEOF | |
25456 | s/[\\&,]/\\&/g | |
25457 | s,[\\$`],\\&,g | |
25458 | t clear | |
25459 | : clear | |
25460 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
25461 | t end | |
25462 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
25463 | : end | |
25464 | _ACEOF | |
25465 | # If some macros were called several times there might be several times | |
25466 | # the same #defines, which is useless. Nevertheless, we may not want to | |
25467 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
25468 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
25469 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
25470 | rm -f confdef2sed.sed | |
25471 | ||
25472 | # This sed command replaces #undef with comments. This is necessary, for | |
25473 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
25474 | # on some systems where configure will not decide to define it. | |
25475 | cat >>conftest.undefs <<\_ACEOF | |
25476 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
25477 | _ACEOF | |
25478 | ||
25479 | # Break up conftest.defines because some shells have a limit on the size | |
25480 | # of here documents, and old seds have small limits too (100 cmds). | |
25481 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
25482 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
25483 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
25484 | echo ' :' >>$CONFIG_STATUS | |
25485 | rm -f conftest.tail | |
25486 | while grep . conftest.defines >/dev/null | |
25487 | do | |
25488 | # Write a limited-size here document to $tmp/defines.sed. | |
25489 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
25490 | # Speed up: don't consider the non `#define' lines. | |
25491 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
25492 | # Work around the forget-to-reset-the-flag bug. | |
25493 | echo 't clr' >>$CONFIG_STATUS | |
25494 | echo ': clr' >>$CONFIG_STATUS | |
25495 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
25496 | echo 'CEOF | |
25497 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
25498 | rm -f $tmp/in | |
25499 | mv $tmp/out $tmp/in | |
25500 | ' >>$CONFIG_STATUS | |
25501 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
25502 | rm -f conftest.defines | |
25503 | mv conftest.tail conftest.defines | |
25504 | done | |
25505 | rm -f conftest.defines | |
25506 | echo ' fi # grep' >>$CONFIG_STATUS | |
25507 | echo >>$CONFIG_STATUS | |
25508 | ||
25509 | # Break up conftest.undefs because some shells have a limit on the size | |
25510 | # of here documents, and old seds have small limits too (100 cmds). | |
25511 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
25512 | rm -f conftest.tail | |
25513 | while grep . conftest.undefs >/dev/null | |
25514 | do | |
25515 | # Write a limited-size here document to $tmp/undefs.sed. | |
25516 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
25517 | # Speed up: don't consider the non `#undef' | |
25518 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
25519 | # Work around the forget-to-reset-the-flag bug. | |
25520 | echo 't clr' >>$CONFIG_STATUS | |
25521 | echo ': clr' >>$CONFIG_STATUS | |
25522 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
25523 | echo 'CEOF | |
25524 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
25525 | rm -f $tmp/in | |
25526 | mv $tmp/out $tmp/in | |
25527 | ' >>$CONFIG_STATUS | |
25528 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
25529 | rm -f conftest.undefs | |
25530 | mv conftest.tail conftest.undefs | |
25531 | done | |
25532 | rm -f conftest.undefs | |
25533 | ||
25534 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25535 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25536 | # use $as_me), people would be surprised to read: | |
25537 | # /* config.h. Generated by config.status. */ | |
25538 | if test x"$ac_file" = x-; then | |
25539 | echo "/* Generated by configure. */" >$tmp/config.h | |
25540 | else | |
25541 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
25542 | fi | |
25543 | cat $tmp/in >>$tmp/config.h | |
25544 | rm -f $tmp/in | |
25545 | if test x"$ac_file" != x-; then | |
25546 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
25547 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
25548 | echo "$as_me: $ac_file is unchanged" >&6;} | |
25549 | else | |
25550 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
25551 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25552 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25553 | X"$ac_file" : 'X\(//\)$' \| \ | |
25554 | X"$ac_file" : 'X\(/\)' \| \ | |
25555 | . : '\(.\)' 2>/dev/null || | |
25556 | echo X"$ac_file" | | |
25557 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25558 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25559 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25560 | /^X\(\/\).*/{ s//\1/; q; } | |
25561 | s/.*/./; q'` | |
25562 | { if $as_mkdir_p; then | |
25563 | mkdir -p "$ac_dir" | |
25564 | else | |
25565 | as_dir="$ac_dir" | |
25566 | as_dirs= | |
25567 | while test ! -d "$as_dir"; do | |
25568 | as_dirs="$as_dir $as_dirs" | |
25569 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25570 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25571 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25572 | X"$as_dir" : 'X\(//\)$' \| \ | |
25573 | X"$as_dir" : 'X\(/\)' \| \ | |
25574 | . : '\(.\)' 2>/dev/null || | |
25575 | echo X"$as_dir" | | |
25576 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25577 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25578 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25579 | /^X\(\/\).*/{ s//\1/; q; } | |
25580 | s/.*/./; q'` | |
25581 | done | |
25582 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25583 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25584 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25585 | { (exit 1); exit 1; }; }; } | |
25586 | ||
25587 | rm -f $ac_file | |
25588 | mv $tmp/config.h $ac_file | |
25589 | fi | |
25590 | else | |
25591 | cat $tmp/config.h | |
25592 | rm -f $tmp/config.h | |
25593 | fi | |
25594 | # Compute $ac_file's index in $config_headers. | |
25595 | _am_stamp_count=1 | |
25596 | for _am_header in $config_headers :; do | |
25597 | case $_am_header in | |
25598 | $ac_file | $ac_file:* ) | |
25599 | break ;; | |
25600 | * ) | |
25601 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
25602 | esac | |
25603 | done | |
25604 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
25605 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25606 | X$ac_file : 'X\(//\)[^/]' \| \ | |
25607 | X$ac_file : 'X\(//\)$' \| \ | |
25608 | X$ac_file : 'X\(/\)' \| \ | |
25609 | . : '\(.\)' 2>/dev/null || | |
25610 | echo X$ac_file | | |
25611 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25612 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25613 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25614 | /^X\(\/\).*/{ s//\1/; q; } | |
25615 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
25616 | done | |
25617 | _ACEOF | |
25618 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25619 | ||
25620 | # | |
25621 | # CONFIG_COMMANDS section. | |
25622 | # | |
25623 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
25624 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
25625 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25626 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25627 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25628 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25629 | X"$ac_dest" : 'X\(//\)$' \| \ | |
25630 | X"$ac_dest" : 'X\(/\)' \| \ | |
25631 | . : '\(.\)' 2>/dev/null || | |
25632 | echo X"$ac_dest" | | |
25633 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25634 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25635 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25636 | /^X\(\/\).*/{ s//\1/; q; } | |
25637 | s/.*/./; q'` | |
25638 | { if $as_mkdir_p; then | |
25639 | mkdir -p "$ac_dir" | |
25640 | else | |
25641 | as_dir="$ac_dir" | |
25642 | as_dirs= | |
25643 | while test ! -d "$as_dir"; do | |
25644 | as_dirs="$as_dir $as_dirs" | |
25645 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25646 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25647 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25648 | X"$as_dir" : 'X\(//\)$' \| \ | |
25649 | X"$as_dir" : 'X\(/\)' \| \ | |
25650 | . : '\(.\)' 2>/dev/null || | |
25651 | echo X"$as_dir" | | |
25652 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25653 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25654 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25655 | /^X\(\/\).*/{ s//\1/; q; } | |
25656 | s/.*/./; q'` | |
25657 | done | |
25658 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25659 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25660 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25661 | { (exit 1); exit 1; }; }; } | |
25662 | ||
25663 | ac_builddir=. | |
25664 | ||
25665 | if test "$ac_dir" != .; then | |
25666 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25667 | # A "../" for each directory in $ac_dir_suffix. | |
25668 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25669 | else | |
25670 | ac_dir_suffix= ac_top_builddir= | |
25671 | fi | |
25672 | ||
25673 | case $srcdir in | |
25674 | .) # No --srcdir option. We are building in place. | |
25675 | ac_srcdir=. | |
25676 | if test -z "$ac_top_builddir"; then | |
25677 | ac_top_srcdir=. | |
25678 | else | |
25679 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25680 | fi ;; | |
25681 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25682 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25683 | ac_top_srcdir=$srcdir ;; | |
25684 | *) # Relative path. | |
25685 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25686 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25687 | esac | |
25688 | ||
25689 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25690 | # the directories may not exist. | |
25691 | case `pwd` in | |
25692 | .) ac_abs_builddir="$ac_dir";; | |
25693 | *) | |
25694 | case "$ac_dir" in | |
25695 | .) ac_abs_builddir=`pwd`;; | |
25696 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25697 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25698 | esac;; | |
25699 | esac | |
25700 | case $ac_abs_builddir in | |
25701 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25702 | *) | |
25703 | case ${ac_top_builddir}. in | |
25704 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25705 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25706 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25707 | esac;; | |
25708 | esac | |
25709 | case $ac_abs_builddir in | |
25710 | .) ac_abs_srcdir=$ac_srcdir;; | |
25711 | *) | |
25712 | case $ac_srcdir in | |
25713 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25714 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25715 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25716 | esac;; | |
25717 | esac | |
25718 | case $ac_abs_builddir in | |
25719 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25720 | *) | |
25721 | case $ac_top_srcdir in | |
25722 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25723 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25724 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25725 | esac;; | |
25726 | esac | |
25727 | ||
25728 | ||
25729 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
25730 | echo "$as_me: executing $ac_dest commands" >&6;} | |
25731 | case $ac_dest in | |
96b8a615 AJ |
25732 | default-1 ) |
25733 | # Only add multilib support code if we just rebuilt the top-level | |
25734 | # Makefile. | |
25735 | case " $CONFIG_FILES " in | |
25736 | *" Makefile "*) | |
25737 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
25738 | ;; | |
25739 | esac ;; | |
679c0f9a TT |
25740 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
25741 | # Strip MF so we end up with the name of the file. | |
25742 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
25743 | # Check whether this is an Automake generated Makefile or not. | |
25744 | # We used to match only the files named `Makefile.in', but | |
25745 | # some people rename them; so instead we look at the file content. | |
25746 | # Grep'ing the first line is not enough: some people post-process | |
25747 | # each Makefile.in and add a new line on top of each file to say so. | |
25748 | # So let's grep whole file. | |
25749 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
25750 | dirpart=`(dirname "$mf") 2>/dev/null || | |
25751 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25752 | X"$mf" : 'X\(//\)[^/]' \| \ | |
25753 | X"$mf" : 'X\(//\)$' \| \ | |
25754 | X"$mf" : 'X\(/\)' \| \ | |
25755 | . : '\(.\)' 2>/dev/null || | |
25756 | echo X"$mf" | | |
25757 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25758 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25759 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25760 | /^X\(\/\).*/{ s//\1/; q; } | |
25761 | s/.*/./; q'` | |
25762 | else | |
25763 | continue | |
25764 | fi | |
25765 | # Extract the definition of DEPDIR, am__include, and am__quote | |
25766 | # from the Makefile without running `make'. | |
25767 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
25768 | test -z "$DEPDIR" && continue | |
25769 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
25770 | test -z "am__include" && continue | |
25771 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
25772 | # When using ansi2knr, U may be empty or an underscore; expand it | |
25773 | U=`sed -n 's/^U = //p' < "$mf"` | |
25774 | # Find all dependency output files, they are included files with | |
25775 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
25776 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
25777 | # expansion. | |
25778 | for file in `sed -n " | |
25779 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
25780 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
25781 | # Make sure the directory exists. | |
25782 | test -f "$dirpart/$file" && continue | |
25783 | fdir=`(dirname "$file") 2>/dev/null || | |
25784 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25785 | X"$file" : 'X\(//\)[^/]' \| \ | |
25786 | X"$file" : 'X\(//\)$' \| \ | |
25787 | X"$file" : 'X\(/\)' \| \ | |
25788 | . : '\(.\)' 2>/dev/null || | |
25789 | echo X"$file" | | |
25790 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25791 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25792 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25793 | /^X\(\/\).*/{ s//\1/; q; } | |
25794 | s/.*/./; q'` | |
25795 | { if $as_mkdir_p; then | |
25796 | mkdir -p $dirpart/$fdir | |
25797 | else | |
25798 | as_dir=$dirpart/$fdir | |
25799 | as_dirs= | |
25800 | while test ! -d "$as_dir"; do | |
25801 | as_dirs="$as_dir $as_dirs" | |
25802 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25803 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25804 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25805 | X"$as_dir" : 'X\(//\)$' \| \ | |
25806 | X"$as_dir" : 'X\(/\)' \| \ | |
25807 | . : '\(.\)' 2>/dev/null || | |
25808 | echo X"$as_dir" | | |
25809 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25810 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25811 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25812 | /^X\(\/\).*/{ s//\1/; q; } | |
25813 | s/.*/./; q'` | |
25814 | done | |
25815 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25816 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
25817 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
25818 | { (exit 1); exit 1; }; }; } | |
25819 | ||
25820 | # echo "creating $dirpart/$file" | |
25821 | echo '# dummy' > "$dirpart/$file" | |
25822 | done | |
25823 | done | |
25824 | ;; | |
4c4b3eb0 PB |
25825 | gstdint.h ) |
25826 | if test "$GCC" = yes; then | |
25827 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
25828 | else | |
25829 | echo "/* generated for $CC */" > tmp-stdint.h | |
25830 | fi | |
25831 | ||
25832 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25833 | ||
25834 | #ifndef GCC_GENERATED_STDINT_H | |
25835 | #define GCC_GENERATED_STDINT_H 1 | |
25836 | ||
25837 | #include <sys/types.h> | |
25838 | EOF | |
25839 | ||
25840 | if test "$acx_cv_header_stdint" != stdint.h; then | |
25841 | echo "#include <stddef.h>" >> tmp-stdint.h | |
25842 | fi | |
25843 | if test "$acx_cv_header_stdint" != stddef.h; then | |
25844 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
25845 | fi | |
25846 | ||
25847 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25848 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
25849 | #ifdef __int8_t_defined | |
25850 | #define _INT8_T | |
25851 | #define _INT16_T | |
25852 | #define _INT32_T | |
25853 | #endif | |
25854 | #ifdef __uint32_t_defined | |
25855 | #define _UINT32_T | |
25856 | #endif | |
25857 | ||
25858 | EOF | |
25859 | ||
25860 | # ----------------- done header, emit basic int types ------------- | |
25861 | if test "$acx_cv_header_stdint" = stddef.h; then | |
25862 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25863 | ||
25864 | #ifndef _UINT8_T | |
25865 | #define _UINT8_T | |
25866 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
25867 | #endif | |
25868 | ||
25869 | #ifndef _UINT16_T | |
25870 | #define _UINT16_T | |
25871 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
25872 | #endif | |
25873 | ||
25874 | #ifndef _UINT32_T | |
25875 | #define _UINT32_T | |
25876 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
25877 | #endif | |
25878 | ||
25879 | #ifndef _INT8_T | |
25880 | #define _INT8_T | |
25881 | typedef $acx_cv_type_int8_t int8_t; | |
25882 | #endif | |
25883 | ||
25884 | #ifndef _INT16_T | |
25885 | #define _INT16_T | |
25886 | typedef $acx_cv_type_int16_t int16_t; | |
25887 | #endif | |
25888 | ||
25889 | #ifndef _INT32_T | |
25890 | #define _INT32_T | |
25891 | typedef $acx_cv_type_int32_t int32_t; | |
25892 | #endif | |
25893 | EOF | |
25894 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
25895 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25896 | ||
25897 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
25898 | #ifndef _INT8_T | |
25899 | #define _INT8_T | |
25900 | #endif | |
25901 | #ifndef _INT16_T | |
25902 | #define _INT16_T | |
25903 | #endif | |
25904 | #ifndef _INT32_T | |
25905 | #define _INT32_T | |
25906 | #endif | |
25907 | ||
25908 | #ifndef _UINT8_T | |
25909 | #define _UINT8_T | |
25910 | typedef u_int8_t uint8_t; | |
25911 | #endif | |
25912 | ||
25913 | #ifndef _UINT16_T | |
25914 | #define _UINT16_T | |
25915 | typedef u_int16_t uint16_t; | |
25916 | #endif | |
25917 | ||
25918 | #ifndef _UINT32_T | |
25919 | #define _UINT32_T | |
25920 | typedef u_int32_t uint32_t; | |
25921 | #endif | |
25922 | EOF | |
25923 | else | |
25924 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25925 | ||
25926 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
25927 | #ifndef _INT8_T | |
25928 | #define _INT8_T | |
25929 | #endif | |
25930 | #ifndef _INT16_T | |
25931 | #define _INT16_T | |
25932 | #endif | |
25933 | #ifndef _INT32_T | |
25934 | #define _INT32_T | |
25935 | #endif | |
25936 | #ifndef _UINT8_T | |
25937 | #define _UINT8_T | |
25938 | #endif | |
25939 | #ifndef _UINT16_T | |
25940 | #define _UINT16_T | |
25941 | #endif | |
25942 | #ifndef _UINT32_T | |
25943 | #define _UINT32_T | |
25944 | #endif | |
25945 | EOF | |
25946 | fi | |
25947 | ||
25948 | # ------------- done basic int types, emit int64_t types ------------ | |
25949 | if test "$ac_cv_type_uint64_t" = yes; then | |
25950 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25951 | ||
25952 | /* system headers have good uint64_t and int64_t */ | |
25953 | #ifndef _INT64_T | |
25954 | #define _INT64_T | |
25955 | #endif | |
25956 | #ifndef _UINT64_T | |
25957 | #define _UINT64_T | |
25958 | #endif | |
25959 | EOF | |
25960 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
25961 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25962 | ||
25963 | /* system headers have an u_int64_t (and int64_t) */ | |
25964 | #ifndef _INT64_T | |
25965 | #define _INT64_T | |
25966 | #endif | |
25967 | #ifndef _UINT64_T | |
25968 | #define _UINT64_T | |
25969 | typedef u_int64_t uint64_t; | |
25970 | #endif | |
25971 | EOF | |
25972 | elif test -n "$acx_cv_type_int64_t"; then | |
25973 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25974 | ||
25975 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
25976 | #ifndef _INT64_T | |
25977 | #define _INT64_T | |
25978 | typedef $acx_cv_type_int64_t int64_t; | |
25979 | #endif | |
25980 | #ifndef _UINT64_T | |
25981 | #define _UINT64_T | |
25982 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
25983 | #endif | |
25984 | EOF | |
25985 | else | |
25986 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25987 | ||
25988 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
25989 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
25990 | #ifndef _INT64_T | |
25991 | #define _INT64_T | |
25992 | typedef long long int64_t; | |
25993 | #endif | |
25994 | #ifndef _UINT64_T | |
25995 | #define _UINT64_T | |
25996 | typedef unsigned long long uint64_t; | |
25997 | #endif | |
25998 | ||
25999 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
26000 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
26001 | does not implement __extension__. But that compiler doesn't define | |
26002 | __GNUC_MINOR__. */ | |
26003 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
26004 | # define __extension__ | |
26005 | # endif | |
26006 | ||
26007 | # ifndef _INT64_T | |
26008 | # define _INT64_T | |
26009 | __extension__ typedef long long int64_t; | |
26010 | # endif | |
26011 | # ifndef _UINT64_T | |
26012 | # define _UINT64_T | |
26013 | __extension__ typedef unsigned long long uint64_t; | |
26014 | # endif | |
26015 | ||
26016 | #elif !defined __STRICT_ANSI__ | |
26017 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
26018 | ||
26019 | # ifndef _INT64_T | |
26020 | # define _INT64_T | |
26021 | typedef __int64 int64_t; | |
26022 | # endif | |
26023 | # ifndef _UINT64_T | |
26024 | # define _UINT64_T | |
26025 | typedef unsigned __int64 uint64_t; | |
26026 | # endif | |
26027 | # endif /* compiler */ | |
26028 | ||
26029 | #endif /* ANSI version */ | |
26030 | EOF | |
26031 | fi | |
26032 | ||
26033 | # ------------- done int64_t types, emit intptr types ------------ | |
26034 | if test "$ac_cv_type_uintptr_t" != yes; then | |
26035 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26036 | ||
26037 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
26038 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
26039 | typedef $acx_cv_type_intptr_t intptr_t; | |
26040 | EOF | |
26041 | fi | |
26042 | ||
26043 | # ------------- done intptr types, emit int_least types ------------ | |
26044 | if test "$ac_cv_type_int_least32_t" != yes; then | |
26045 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26046 | ||
26047 | /* Define int_least types */ | |
26048 | typedef int8_t int_least8_t; | |
26049 | typedef int16_t int_least16_t; | |
26050 | typedef int32_t int_least32_t; | |
26051 | #ifdef _INT64_T | |
26052 | typedef int64_t int_least64_t; | |
26053 | #endif | |
26054 | ||
26055 | typedef uint8_t uint_least8_t; | |
26056 | typedef uint16_t uint_least16_t; | |
26057 | typedef uint32_t uint_least32_t; | |
26058 | #ifdef _UINT64_T | |
26059 | typedef uint64_t uint_least64_t; | |
26060 | #endif | |
26061 | EOF | |
26062 | fi | |
26063 | ||
26064 | # ------------- done intptr types, emit int_fast types ------------ | |
26065 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
26066 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26067 | ||
26068 | /* Define int_fast types. short is often slow */ | |
26069 | typedef int8_t int_fast8_t; | |
26070 | typedef int int_fast16_t; | |
26071 | typedef int32_t int_fast32_t; | |
26072 | #ifdef _INT64_T | |
26073 | typedef int64_t int_fast64_t; | |
26074 | #endif | |
26075 | ||
26076 | typedef uint8_t uint_fast8_t; | |
26077 | typedef unsigned int uint_fast16_t; | |
26078 | typedef uint32_t uint_fast32_t; | |
26079 | #ifdef _UINT64_T | |
26080 | typedef uint64_t uint_fast64_t; | |
26081 | #endif | |
26082 | EOF | |
26083 | fi | |
26084 | ||
26085 | if test "$ac_cv_type_uintmax_t" != yes; then | |
26086 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26087 | ||
26088 | /* Define intmax based on what we found */ | |
26089 | #ifdef _INT64_T | |
26090 | typedef int64_t intmax_t; | |
26091 | #else | |
26092 | typedef long intmax_t; | |
26093 | #endif | |
26094 | #ifdef _UINT64_T | |
26095 | typedef uint64_t uintmax_t; | |
26096 | #else | |
26097 | typedef unsigned long uintmax_t; | |
26098 | #endif | |
26099 | EOF | |
26100 | fi | |
26101 | ||
26102 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26103 | ||
26104 | #endif /* GCC_GENERATED_STDINT_H */ | |
26105 | EOF | |
26106 | ||
26107 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
26108 | rm -f tmp-stdint.h | |
26109 | else | |
26110 | mv -f tmp-stdint.h gstdint.h | |
26111 | fi | |
26112 | ||
26113 | ;; | |
6de9cd9a DN |
26114 | esac |
26115 | done | |
26116 | _ACEOF | |
26117 | ||
26118 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26119 | ||
26120 | { (exit 0); exit 0; } | |
26121 | _ACEOF | |
26122 | chmod +x $CONFIG_STATUS | |
26123 | ac_clean_files=$ac_clean_files_save | |
26124 | ||
26125 | ||
26126 | # configure is writing to config.log, and then calls config.status. | |
26127 | # config.status does its own redirection, appending to config.log. | |
26128 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
26129 | # by configure, so config.status won't be able to write to it; its | |
26130 | # output is simply discarded. So we exec the FD to /dev/null, | |
26131 | # effectively closing config.log, so it can be properly (re)opened and | |
26132 | # appended to by config.status. When coming back to configure, we | |
26133 | # need to make the FD available again. | |
26134 | if test "$no_create" != yes; then | |
26135 | ac_cs_success=: | |
26136 | ac_config_status_args= | |
26137 | test "$silent" = yes && | |
26138 | ac_config_status_args="$ac_config_status_args --quiet" | |
26139 | exec 5>/dev/null | |
26140 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
26141 | exec 5>>config.log | |
26142 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
26143 | # would make configure fail if this is the last instruction. | |
26144 | $ac_cs_success || { (exit 1); exit 1; } | |
26145 | fi | |
26146 |