]>
Commit | Line | Data |
---|---|---|
4ee9c684 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2. | |
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' | |
270 | PACKAGE_VERSION='0.2' | |
271 | PACKAGE_STRING='GNU Fortran Runtime Library 0.2' | |
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 | ||
4c82c0dd | 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_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 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' |
4ee9c684 | 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 | |
6d73cceb | 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 | |
90973b19 | 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 | |
4ee9c684 | 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 | |
90973b19 | 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 | |
4ee9c684 | 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 | |
780 | \`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems. | |
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] | |
90973b19 | 841 | --target=TARGET configure for building compilers for TARGET [HOST] |
4ee9c684 | 842 | _ACEOF |
843 | fi | |
844 | ||
845 | if test -n "$ac_init_help"; then | |
846 | case $ac_init_help in | |
847 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";; | |
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] | |
90973b19 | 854 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
4ee9c684 | 855 | --enable-maintainer-mode enable make rules and dependencies not useful |
856 | (and sometimes confusing) to the casual installer | |
90973b19 | 857 | --enable-multilib build many library versions (default) |
4ee9c684 | 858 | --enable-shared=PKGS build shared libraries default=yes |
859 | --enable-static=PKGS build static libraries default=yes | |
860 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
861 | --disable-libtool-lock avoid locking (might break parallel builds) | |
90e67cff | 862 | --disable-largefile omit support for large files |
4ee9c684 | 863 | |
864 | Optional Packages: | |
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
867 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
868 | --with-pic try to use only PIC/non-PIC objects default=use both | |
869 | ||
870 | Some influential environment variables: | |
871 | CC C compiler command | |
872 | CFLAGS C compiler flags | |
873 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
874 | nonstandard directory <lib dir> | |
875 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
876 | headers in a nonstandard directory <include dir> | |
6d73cceb | 877 | FC Fortran compiler command |
878 | FCFLAGS Fortran compiler flags | |
4ee9c684 | 879 | CPP C preprocessor |
880 | ||
881 | Use these variables to override the choices made by `configure' or to help | |
882 | it to find libraries and programs with nonstandard names/locations. | |
883 | ||
884 | _ACEOF | |
885 | fi | |
886 | ||
887 | if test "$ac_init_help" = "recursive"; then | |
888 | # If there are subdirs, report their specific --help. | |
889 | ac_popdir=`pwd` | |
890 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
891 | test -d $ac_dir || continue | |
892 | ac_builddir=. | |
893 | ||
894 | if test "$ac_dir" != .; then | |
895 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
896 | # A "../" for each directory in $ac_dir_suffix. | |
897 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
898 | else | |
899 | ac_dir_suffix= ac_top_builddir= | |
900 | fi | |
901 | ||
902 | case $srcdir in | |
903 | .) # No --srcdir option. We are building in place. | |
904 | ac_srcdir=. | |
905 | if test -z "$ac_top_builddir"; then | |
906 | ac_top_srcdir=. | |
907 | else | |
908 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
909 | fi ;; | |
910 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
911 | ac_srcdir=$srcdir$ac_dir_suffix; | |
912 | ac_top_srcdir=$srcdir ;; | |
913 | *) # Relative path. | |
914 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
915 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
916 | esac | |
917 | ||
918 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
919 | # the directories may not exist. | |
920 | case `pwd` in | |
921 | .) ac_abs_builddir="$ac_dir";; | |
922 | *) | |
923 | case "$ac_dir" in | |
924 | .) ac_abs_builddir=`pwd`;; | |
925 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
926 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
927 | esac;; | |
928 | esac | |
929 | case $ac_abs_builddir in | |
930 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
931 | *) | |
932 | case ${ac_top_builddir}. in | |
933 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
934 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
935 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
936 | esac;; | |
937 | esac | |
938 | case $ac_abs_builddir in | |
939 | .) ac_abs_srcdir=$ac_srcdir;; | |
940 | *) | |
941 | case $ac_srcdir in | |
942 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
943 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
944 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
945 | esac;; | |
946 | esac | |
947 | case $ac_abs_builddir in | |
948 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
949 | *) | |
950 | case $ac_top_srcdir in | |
951 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
952 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
953 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
954 | esac;; | |
955 | esac | |
956 | ||
957 | cd $ac_dir | |
958 | # Check for guested configure; otherwise get Cygnus style configure. | |
959 | if test -f $ac_srcdir/configure.gnu; then | |
960 | echo | |
961 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
962 | elif test -f $ac_srcdir/configure; then | |
963 | echo | |
964 | $SHELL $ac_srcdir/configure --help=recursive | |
965 | elif test -f $ac_srcdir/configure.ac || | |
966 | test -f $ac_srcdir/configure.in; then | |
967 | echo | |
968 | $ac_configure --help | |
969 | else | |
970 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
971 | fi | |
b56cb1ff | 972 | cd "$ac_popdir" |
4ee9c684 | 973 | done |
974 | fi | |
975 | ||
976 | test -n "$ac_init_help" && exit 0 | |
977 | if $ac_init_version; then | |
978 | cat <<\_ACEOF | |
979 | GNU Fortran Runtime Library configure 0.2 | |
980 | generated by GNU Autoconf 2.59 | |
981 | ||
982 | Copyright (C) 2003 Free Software Foundation, Inc. | |
983 | This configure script is free software; the Free Software Foundation | |
984 | gives unlimited permission to copy, distribute and modify it. | |
985 | _ACEOF | |
986 | exit 0 | |
987 | fi | |
988 | exec 5>config.log | |
989 | cat >&5 <<_ACEOF | |
990 | This file contains any messages produced by compilers while | |
991 | running configure, to aid debugging if configure makes a mistake. | |
992 | ||
993 | It was created by GNU Fortran Runtime Library $as_me 0.2, which was | |
994 | generated by GNU Autoconf 2.59. Invocation command line was | |
995 | ||
996 | $ $0 $@ | |
997 | ||
998 | _ACEOF | |
999 | { | |
1000 | cat <<_ASUNAME | |
1001 | ## --------- ## | |
1002 | ## Platform. ## | |
1003 | ## --------- ## | |
1004 | ||
1005 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1006 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1007 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1008 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1009 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1010 | ||
1011 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1012 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1015 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1016 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1017 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1018 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1019 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1020 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1021 | ||
1022 | _ASUNAME | |
1023 | ||
1024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1025 | for as_dir in $PATH | |
1026 | do | |
1027 | IFS=$as_save_IFS | |
1028 | test -z "$as_dir" && as_dir=. | |
1029 | echo "PATH: $as_dir" | |
1030 | done | |
1031 | ||
1032 | } >&5 | |
1033 | ||
1034 | cat >&5 <<_ACEOF | |
1035 | ||
1036 | ||
1037 | ## ----------- ## | |
1038 | ## Core tests. ## | |
1039 | ## ----------- ## | |
1040 | ||
1041 | _ACEOF | |
1042 | ||
1043 | ||
1044 | # Keep a trace of the command line. | |
1045 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1046 | # Strip out --silent because we don't want to record it for future runs. | |
1047 | # Also quote any args containing shell meta-characters. | |
1048 | # Make two passes to allow for proper duplicate-argument suppression. | |
1049 | ac_configure_args= | |
1050 | ac_configure_args0= | |
1051 | ac_configure_args1= | |
1052 | ac_sep= | |
1053 | ac_must_keep_next=false | |
1054 | for ac_pass in 1 2 | |
1055 | do | |
1056 | for ac_arg | |
1057 | do | |
1058 | case $ac_arg in | |
1059 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1061 | | -silent | --silent | --silen | --sile | --sil) | |
1062 | continue ;; | |
1063 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1064 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1065 | esac | |
1066 | case $ac_pass in | |
1067 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1068 | 2) | |
1069 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1070 | if test $ac_must_keep_next = true; then | |
1071 | ac_must_keep_next=false # Got value, back to normal. | |
1072 | else | |
1073 | case $ac_arg in | |
1074 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1075 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1076 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1077 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1078 | case "$ac_configure_args0 " in | |
1079 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1080 | esac | |
1081 | ;; | |
1082 | -* ) ac_must_keep_next=true ;; | |
1083 | esac | |
1084 | fi | |
1085 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1086 | # Get rid of the leading space. | |
1087 | ac_sep=" " | |
1088 | ;; | |
1089 | esac | |
1090 | done | |
1091 | done | |
1092 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1093 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1094 | ||
1095 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1096 | # config.log. We remove comments because anyway the quotes in there | |
1097 | # would cause problems or look ugly. | |
1098 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1099 | # such as our DU 5.0 friend, will then `close' the trap. | |
1100 | trap 'exit_status=$? | |
1101 | # Save into config.log some information that might help in debugging. | |
1102 | { | |
1103 | echo | |
1104 | ||
1105 | cat <<\_ASBOX | |
1106 | ## ---------------- ## | |
1107 | ## Cache variables. ## | |
1108 | ## ---------------- ## | |
1109 | _ASBOX | |
1110 | echo | |
1111 | # The following way of writing the cache mishandles newlines in values, | |
1112 | { | |
1113 | (set) 2>&1 | | |
1114 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1115 | *ac_space=\ *) | |
1116 | sed -n \ | |
1117 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1118 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1119 | ;; | |
1120 | *) | |
1121 | sed -n \ | |
1122 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1123 | ;; | |
1124 | esac; | |
1125 | } | |
1126 | echo | |
1127 | ||
1128 | cat <<\_ASBOX | |
1129 | ## ----------------- ## | |
1130 | ## Output variables. ## | |
1131 | ## ----------------- ## | |
1132 | _ASBOX | |
1133 | echo | |
1134 | for ac_var in $ac_subst_vars | |
1135 | do | |
1136 | eval ac_val=$`echo $ac_var` | |
1137 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1138 | done | sort | |
1139 | echo | |
1140 | ||
1141 | if test -n "$ac_subst_files"; then | |
1142 | cat <<\_ASBOX | |
1143 | ## ------------- ## | |
1144 | ## Output files. ## | |
1145 | ## ------------- ## | |
1146 | _ASBOX | |
1147 | echo | |
1148 | for ac_var in $ac_subst_files | |
1149 | do | |
1150 | eval ac_val=$`echo $ac_var` | |
1151 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1152 | done | sort | |
1153 | echo | |
1154 | fi | |
1155 | ||
1156 | if test -s confdefs.h; then | |
1157 | cat <<\_ASBOX | |
1158 | ## ----------- ## | |
1159 | ## confdefs.h. ## | |
1160 | ## ----------- ## | |
1161 | _ASBOX | |
1162 | echo | |
1163 | sed "/^$/d" confdefs.h | sort | |
1164 | echo | |
1165 | fi | |
1166 | test "$ac_signal" != 0 && | |
1167 | echo "$as_me: caught signal $ac_signal" | |
1168 | echo "$as_me: exit $exit_status" | |
1169 | } >&5 | |
1170 | rm -f core *.core && | |
1171 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1172 | exit $exit_status | |
1173 | ' 0 | |
1174 | for ac_signal in 1 2 13 15; do | |
1175 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1176 | done | |
1177 | ac_signal=0 | |
1178 | ||
1179 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1180 | rm -rf conftest* confdefs.h | |
1181 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1182 | echo >confdefs.h | |
1183 | ||
1184 | # Predefined preprocessor variables. | |
1185 | ||
1186 | cat >>confdefs.h <<_ACEOF | |
1187 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1188 | _ACEOF | |
1189 | ||
1190 | ||
1191 | cat >>confdefs.h <<_ACEOF | |
1192 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1193 | _ACEOF | |
1194 | ||
1195 | ||
1196 | cat >>confdefs.h <<_ACEOF | |
1197 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1198 | _ACEOF | |
1199 | ||
1200 | ||
1201 | cat >>confdefs.h <<_ACEOF | |
1202 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1203 | _ACEOF | |
1204 | ||
1205 | ||
1206 | cat >>confdefs.h <<_ACEOF | |
1207 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1208 | _ACEOF | |
1209 | ||
1210 | ||
1211 | # Let the site file select an alternate cache file if it wants to. | |
1212 | # Prefer explicitly selected file to automatically selected ones. | |
1213 | if test -z "$CONFIG_SITE"; then | |
1214 | if test "x$prefix" != xNONE; then | |
1215 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1216 | else | |
1217 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1218 | fi | |
1219 | fi | |
1220 | for ac_site_file in $CONFIG_SITE; do | |
1221 | if test -r "$ac_site_file"; then | |
1222 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1223 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1224 | sed 's/^/| /' "$ac_site_file" >&5 | |
1225 | . "$ac_site_file" | |
1226 | fi | |
1227 | done | |
1228 | ||
1229 | if test -r "$cache_file"; then | |
1230 | # Some versions of bash will fail to source /dev/null (special | |
1231 | # files actually), so we avoid doing that. | |
1232 | if test -f "$cache_file"; then | |
1233 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1234 | echo "$as_me: loading cache $cache_file" >&6;} | |
1235 | case $cache_file in | |
1236 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1237 | *) . ./$cache_file;; | |
1238 | esac | |
1239 | fi | |
1240 | else | |
1241 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1242 | echo "$as_me: creating cache $cache_file" >&6;} | |
1243 | >$cache_file | |
1244 | fi | |
1245 | ||
1246 | # Check that the precious variables saved in the cache have kept the same | |
1247 | # value. | |
1248 | ac_cache_corrupted=false | |
1249 | for ac_var in `(set) 2>&1 | | |
1250 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1251 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1252 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1253 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1254 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1255 | case $ac_old_set,$ac_new_set in | |
1256 | set,) | |
1257 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1258 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1259 | ac_cache_corrupted=: ;; | |
1260 | ,set) | |
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1262 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1263 | ac_cache_corrupted=: ;; | |
1264 | ,);; | |
1265 | *) | |
1266 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1267 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1268 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1269 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1270 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1271 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1272 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1273 | ac_cache_corrupted=: | |
1274 | fi;; | |
1275 | esac | |
1276 | # Pass precious variables to config.status. | |
1277 | if test "$ac_new_set" = set; then | |
1278 | case $ac_new_val in | |
1279 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1280 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1281 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1282 | esac | |
1283 | case " $ac_configure_args " in | |
1284 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1285 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1286 | esac | |
1287 | fi | |
1288 | done | |
1289 | if $ac_cache_corrupted; then | |
1290 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1291 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1292 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1293 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1294 | { (exit 1); exit 1; }; } | |
1295 | fi | |
1296 | ||
1297 | ac_ext=c | |
1298 | ac_cpp='$CPP $CPPFLAGS' | |
1299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
90973b19 | 1329 | ac_config_headers="$ac_config_headers config.h" |
1330 | ||
4ee9c684 | 1331 | ac_aux_dir= |
1332 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1333 | if test -f $ac_dir/install-sh; then | |
1334 | ac_aux_dir=$ac_dir | |
1335 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1336 | break | |
1337 | elif test -f $ac_dir/install.sh; then | |
1338 | ac_aux_dir=$ac_dir | |
1339 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1340 | break | |
1341 | elif test -f $ac_dir/shtool; then | |
1342 | ac_aux_dir=$ac_dir | |
1343 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1344 | break | |
1345 | fi | |
1346 | done | |
1347 | if test -z "$ac_aux_dir"; then | |
1348 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1349 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1350 | { (exit 1); exit 1; }; } | |
1351 | fi | |
1352 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1353 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1354 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1355 | ||
90973b19 | 1356 | # Make sure we can run config.sub. |
1357 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1358 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1359 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1360 | { (exit 1); exit 1; }; } | |
1361 | ||
1362 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1363 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1364 | if test "${ac_cv_build+set}" = set; then | |
1365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1366 | else | |
1367 | ac_cv_build_alias=$build_alias | |
1368 | test -z "$ac_cv_build_alias" && | |
1369 | ac_cv_build_alias=`$ac_config_guess` | |
1370 | test -z "$ac_cv_build_alias" && | |
1371 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1372 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1373 | { (exit 1); exit 1; }; } | |
1374 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1375 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1376 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1377 | { (exit 1); exit 1; }; } | |
1378 | ||
1379 | fi | |
1380 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1381 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1382 | build=$ac_cv_build | |
1383 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1384 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1385 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1386 | ||
1387 | ||
4c82c0dd | 1388 | case ${build_alias} in |
1389 | "") build_noncanonical=${build} ;; | |
1390 | *) build_noncanonical=${build_alias} ;; | |
1391 | esac | |
1392 | ||
1393 | case ${host_alias} in | |
1394 | "") host_noncanonical=${build_noncanonical} ;; | |
1395 | *) host_noncanonical=${host_alias} ;; | |
1396 | esac | |
1397 | ||
1398 | case ${target_alias} in | |
1399 | "") target_noncanonical=${host_noncanonical} ;; | |
1400 | *) target_noncanonical=${target_alias} ;; | |
1401 | esac | |
1402 | ||
1403 | # Prefix 'build-' so this never conflicts with target_subdir. | |
1404 | build_subdir="build-${build_noncanonical}" | |
1405 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories | |
1406 | if ( test $srcdir = . && test -d gcc ) \ | |
1407 | || test -d $srcdir/../host-${host_noncanonical}; then | |
1408 | host_subdir="host-${host_noncanonical}" | |
1409 | else | |
1410 | host_subdir=. | |
1411 | fi | |
1412 | # No prefix. | |
1413 | target_subdir=${target_noncanonical} | |
1414 | ||
1415 | ||
1416 | # ------- | |
1417 | # Options | |
1418 | # ------- | |
1419 | ||
1420 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 | |
1421 | echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 | |
1422 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. | |
1423 | if test "${enable_version_specific_runtime_libs+set}" = set; then | |
1424 | enableval="$enable_version_specific_runtime_libs" | |
1425 | case "$enableval" in | |
1426 | yes) version_specific_libs=yes ;; | |
1427 | no) version_specific_libs=no ;; | |
1428 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5 | |
1429 | echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;} | |
1430 | { (exit 1); exit 1; }; };; | |
1431 | esac | |
1432 | else | |
1433 | version_specific_libs=no | |
1434 | fi; | |
1435 | echo "$as_me:$LINENO: result: $version_specific_libs" >&5 | |
1436 | echo "${ECHO_T}$version_specific_libs" >&6 | |
1437 | ||
1438 | ||
1439 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1440 | # | |
1441 | # You will slowly go insane if you do not grok the following fact: when | |
1442 | # building this library, the top-level /target/ becomes the library's /host/. | |
1443 | # | |
1444 | # configure then causes --target to default to --host, exactly like any | |
1445 | # other package using autoconf. Therefore, 'target' and 'host' will | |
1446 | # always be the same. This makes sense both for native and cross compilers | |
1447 | # just think about it for a little while. :-) | |
1448 | # | |
1449 | # Also, if this library is being configured as part of a cross compiler, the | |
1450 | # top-level configure script will pass the "real" host as $with_cross_host. | |
1451 | # | |
1452 | # Do not delete or change the following two lines. For why, see | |
1453 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
90973b19 | 1454 | echo "$as_me:$LINENO: checking host system type" >&5 |
1455 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1456 | if test "${ac_cv_host+set}" = set; then | |
1457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1458 | else | |
1459 | ac_cv_host_alias=$host_alias | |
1460 | test -z "$ac_cv_host_alias" && | |
1461 | ac_cv_host_alias=$ac_cv_build_alias | |
1462 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1463 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1464 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1465 | { (exit 1); exit 1; }; } | |
1466 | ||
1467 | fi | |
1468 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1469 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1470 | host=$ac_cv_host | |
1471 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1472 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1473 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1474 | ||
1475 | ||
1476 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1477 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1478 | if test "${ac_cv_target+set}" = set; then | |
1479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1480 | else | |
1481 | ac_cv_target_alias=$target_alias | |
1482 | test "x$ac_cv_target_alias" = "x" && | |
1483 | ac_cv_target_alias=$ac_cv_host_alias | |
1484 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1485 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1486 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1487 | { (exit 1); exit 1; }; } | |
1488 | ||
1489 | fi | |
1490 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1491 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1492 | target=$ac_cv_target | |
1493 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1494 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1495 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1496 | ||
1497 | ||
1498 | # The aliases save the names the user supplied, while $host etc. | |
1499 | # will get canonicalized. | |
1500 | test -n "$target_alias" && | |
1501 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1502 | NONENONEs,x,x, && | |
1503 | program_prefix=${target_alias}- | |
1504 | target_alias=${target_alias-$host_alias} | |
1505 | ||
1506 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1507 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1508 | # 1.8.2: minimum required version | |
1509 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1510 | # of other PACKAGE_* variables will, however, and there's nothing | |
1511 | # we can do about that; they come from AC_INIT). | |
1512 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1513 | # file in the top srcdir, etc, etc), so stop complaining. | |
1514 | # no-dependencies: turns off auto dependency generation (just for now) | |
1515 | # -Wall: turns on all automake warnings... | |
1516 | # -Wno-portability: ...except this one, since GNU make is required. | |
6745c9de | 1517 | am__api_version="1.9" |
4ee9c684 | 1518 | # Find a good install program. We prefer a C program (faster), |
1519 | # so one script is as good as another. But avoid the broken or | |
1520 | # incompatible versions: | |
1521 | # SysV /etc/install, /usr/sbin/install | |
1522 | # SunOS /usr/etc/install | |
1523 | # IRIX /sbin/install | |
1524 | # AIX /bin/install | |
1525 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1526 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1527 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1528 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1529 | # OS/2's system install, which has a completely different semantic | |
1530 | # ./install, which can be erroneously created by make from ./install.sh. | |
1531 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1532 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1533 | if test -z "$INSTALL"; then | |
1534 | if test "${ac_cv_path_install+set}" = set; then | |
1535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1536 | else | |
1537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1538 | for as_dir in $PATH | |
1539 | do | |
1540 | IFS=$as_save_IFS | |
1541 | test -z "$as_dir" && as_dir=. | |
1542 | # Account for people who put trailing slashes in PATH elements. | |
1543 | case $as_dir/ in | |
1544 | ./ | .// | /cC/* | \ | |
1545 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1546 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1547 | /usr/ucb/* ) ;; | |
1548 | *) | |
1549 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1550 | # Don't use installbsd from OSF since it installs stuff as root | |
1551 | # by default. | |
1552 | for ac_prog in ginstall scoinst install; do | |
1553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1554 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1555 | if test $ac_prog = install && | |
1556 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1557 | # AIX install. It has an incompatible calling convention. | |
1558 | : | |
1559 | elif test $ac_prog = install && | |
1560 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1561 | # program-specific install script used by HP pwplus--don't use. | |
1562 | : | |
1563 | else | |
1564 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1565 | break 3 | |
1566 | fi | |
1567 | fi | |
1568 | done | |
1569 | done | |
1570 | ;; | |
1571 | esac | |
1572 | done | |
1573 | ||
1574 | ||
1575 | fi | |
1576 | if test "${ac_cv_path_install+set}" = set; then | |
1577 | INSTALL=$ac_cv_path_install | |
1578 | else | |
1579 | # As a last resort, use the slow shell script. We don't cache a | |
1580 | # path for INSTALL within a source directory, because that will | |
1581 | # break other packages using the cache if that directory is | |
1582 | # removed, or if the path is relative. | |
1583 | INSTALL=$ac_install_sh | |
1584 | fi | |
1585 | fi | |
1586 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1587 | echo "${ECHO_T}$INSTALL" >&6 | |
1588 | ||
1589 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1590 | # It thinks the first close brace ends the variable substitution. | |
1591 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1592 | ||
1593 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1594 | ||
1595 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1596 | ||
1597 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1598 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1599 | # Just in case | |
1600 | sleep 1 | |
1601 | echo timestamp > conftest.file | |
1602 | # Do `set' in a subshell so we don't clobber the current shell's | |
1603 | # arguments. Must try -L first in case configure is actually a | |
1604 | # symlink; some systems play weird games with the mod time of symlinks | |
1605 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1606 | # directory). | |
1607 | if ( | |
1608 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1609 | if test "$*" = "X"; then | |
1610 | # -L didn't work. | |
1611 | set X `ls -t $srcdir/configure conftest.file` | |
1612 | fi | |
1613 | rm -f conftest.file | |
1614 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1615 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1616 | ||
1617 | # If neither matched, then we have a broken ls. This can happen | |
1618 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1619 | # broken ls alias from the environment. This has actually | |
1620 | # happened. Such a system could not be considered "sane". | |
1621 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1622 | alias in your environment" >&5 | |
1623 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1624 | alias in your environment" >&2;} | |
1625 | { (exit 1); exit 1; }; } | |
1626 | fi | |
1627 | ||
1628 | test "$2" = conftest.file | |
1629 | ) | |
1630 | then | |
1631 | # Ok. | |
1632 | : | |
1633 | else | |
1634 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1635 | Check your system clock" >&5 | |
1636 | echo "$as_me: error: newly created file is older than distributed files! | |
1637 | Check your system clock" >&2;} | |
1638 | { (exit 1); exit 1; }; } | |
1639 | fi | |
1640 | echo "$as_me:$LINENO: result: yes" >&5 | |
1641 | echo "${ECHO_T}yes" >&6 | |
1642 | test "$program_prefix" != NONE && | |
1643 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1644 | # Use a double $ so make ignores it. | |
1645 | test "$program_suffix" != NONE && | |
1646 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1647 | # Double any \ or $. echo might interpret backslashes. | |
1648 | # By default was `s,x,x', remove it if useless. | |
1649 | cat <<\_ACEOF >conftest.sed | |
1650 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1651 | _ACEOF | |
1652 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1653 | rm conftest.sed | |
1654 | ||
1655 | # expand $ac_aux_dir to an absolute path | |
1656 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1657 | ||
1658 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1659 | # Use eval to expand $SHELL | |
1660 | if eval "$MISSING --run true"; then | |
1661 | am_missing_run="$MISSING --run " | |
1662 | else | |
1663 | am_missing_run= | |
1664 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1665 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1666 | fi | |
1667 | ||
cdafa1f6 | 1668 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
6745c9de | 1669 | # We used to keeping the `.' as first argument, in order to |
1670 | # allow $(mkdir_p) to be used without argument. As in | |
4ee9c684 | 1671 | # $(mkdir_p) $(somedir) |
6745c9de | 1672 | # where $(somedir) is conditionally defined. However this is wrong |
1673 | # for two reasons: | |
1674 | # 1. if the package is installed by a user who cannot write `.' | |
1675 | # make install will fail, | |
1676 | # 2. the above comment should most certainly read | |
1677 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1678 | # so it does not work when $(somedir) is undefined and | |
1679 | # $(DESTDIR) is not. | |
1680 | # To support the latter case, we have to write | |
1681 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1682 | # so the `.' trick is pointless. | |
1683 | mkdir_p='mkdir -p --' | |
4ee9c684 | 1684 | else |
1685 | # On NextStep and OpenStep, the `mkdir' command does not | |
1686 | # recognize any option. It will interpret all options as | |
1687 | # directories to create, and then abort because `.' already | |
1688 | # exists. | |
cdafa1f6 | 1689 | for d in ./-p ./--version; |
4ee9c684 | 1690 | do |
1691 | test -d $d && rmdir $d | |
1692 | done | |
1693 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1694 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1695 | mkdir_p='$(mkinstalldirs)' | |
1696 | else | |
1697 | mkdir_p='$(install_sh) -d' | |
1698 | fi | |
1699 | fi | |
1700 | ||
1701 | for ac_prog in gawk mawk nawk awk | |
1702 | do | |
1703 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1704 | set dummy $ac_prog; ac_word=$2 | |
1705 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1707 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1709 | else | |
1710 | if test -n "$AWK"; then | |
1711 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1712 | else | |
1713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1714 | for as_dir in $PATH | |
1715 | do | |
1716 | IFS=$as_save_IFS | |
1717 | test -z "$as_dir" && as_dir=. | |
1718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1719 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1720 | ac_cv_prog_AWK="$ac_prog" | |
1721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1722 | break 2 | |
1723 | fi | |
1724 | done | |
1725 | done | |
1726 | ||
1727 | fi | |
1728 | fi | |
1729 | AWK=$ac_cv_prog_AWK | |
1730 | if test -n "$AWK"; then | |
1731 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1732 | echo "${ECHO_T}$AWK" >&6 | |
1733 | else | |
1734 | echo "$as_me:$LINENO: result: no" >&5 | |
1735 | echo "${ECHO_T}no" >&6 | |
1736 | fi | |
1737 | ||
1738 | test -n "$AWK" && break | |
1739 | done | |
1740 | ||
1741 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1742 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1743 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1744 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1746 | else | |
1747 | cat >conftest.make <<\_ACEOF | |
1748 | all: | |
1749 | @echo 'ac_maketemp="$(MAKE)"' | |
1750 | _ACEOF | |
1751 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1752 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1753 | if test -n "$ac_maketemp"; then | |
1754 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1755 | else | |
1756 | eval ac_cv_prog_make_${ac_make}_set=no | |
1757 | fi | |
1758 | rm -f conftest.make | |
1759 | fi | |
1760 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1761 | echo "$as_me:$LINENO: result: yes" >&5 | |
1762 | echo "${ECHO_T}yes" >&6 | |
1763 | SET_MAKE= | |
1764 | else | |
1765 | echo "$as_me:$LINENO: result: no" >&5 | |
1766 | echo "${ECHO_T}no" >&6 | |
1767 | SET_MAKE="MAKE=${MAKE-make}" | |
1768 | fi | |
1769 | ||
1770 | rm -rf .tst 2>/dev/null | |
1771 | mkdir .tst 2>/dev/null | |
1772 | if test -d .tst; then | |
1773 | am__leading_dot=. | |
1774 | else | |
1775 | am__leading_dot=_ | |
1776 | fi | |
1777 | rmdir .tst 2>/dev/null | |
1778 | ||
1779 | # test to see if srcdir already configured | |
1780 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1781 | test -f $srcdir/config.status; then | |
1782 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1783 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1784 | { (exit 1); exit 1; }; } | |
1785 | fi | |
1786 | ||
1787 | # test whether we have cygpath | |
1788 | if test -z "$CYGPATH_W"; then | |
1789 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1790 | CYGPATH_W='cygpath -w' | |
1791 | else | |
1792 | CYGPATH_W=echo | |
1793 | fi | |
1794 | fi | |
1795 | ||
1796 | ||
1797 | # Define the identity of the package. | |
1798 | PACKAGE='libgfortran' | |
1799 | VERSION='0.2' | |
1800 | ||
1801 | ||
4ee9c684 | 1802 | # Some tools Automake needs. |
1803 | ||
1804 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1805 | ||
1806 | ||
1807 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1808 | ||
1809 | ||
1810 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1811 | ||
1812 | ||
1813 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1814 | ||
1815 | ||
1816 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1817 | ||
4ee9c684 | 1818 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1819 | ||
1820 | # Installed binaries are usually stripped using `strip' when the user | |
1821 | # run `make install-strip'. However `strip' might not be the right | |
1822 | # tool to use in cross-compilation environments, therefore Automake | |
1823 | # will honor the `STRIP' environment variable to overrule this program. | |
1824 | if test "$cross_compiling" != no; then | |
1825 | if test -n "$ac_tool_prefix"; then | |
1826 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1827 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1830 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1832 | else | |
1833 | if test -n "$STRIP"; then | |
1834 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1835 | else | |
1836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1837 | for as_dir in $PATH | |
1838 | do | |
1839 | IFS=$as_save_IFS | |
1840 | test -z "$as_dir" && as_dir=. | |
1841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1843 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1845 | break 2 | |
1846 | fi | |
1847 | done | |
1848 | done | |
1849 | ||
1850 | fi | |
1851 | fi | |
1852 | STRIP=$ac_cv_prog_STRIP | |
1853 | if test -n "$STRIP"; then | |
1854 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1855 | echo "${ECHO_T}$STRIP" >&6 | |
1856 | else | |
1857 | echo "$as_me:$LINENO: result: no" >&5 | |
1858 | echo "${ECHO_T}no" >&6 | |
1859 | fi | |
1860 | ||
1861 | fi | |
1862 | if test -z "$ac_cv_prog_STRIP"; then | |
1863 | ac_ct_STRIP=$STRIP | |
1864 | # Extract the first word of "strip", so it can be a program name with args. | |
1865 | set dummy strip; ac_word=$2 | |
1866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1868 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1870 | else | |
1871 | if test -n "$ac_ct_STRIP"; then | |
1872 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1873 | else | |
1874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1875 | for as_dir in $PATH | |
1876 | do | |
1877 | IFS=$as_save_IFS | |
1878 | test -z "$as_dir" && as_dir=. | |
1879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1881 | ac_cv_prog_ac_ct_STRIP="strip" | |
1882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1883 | break 2 | |
1884 | fi | |
1885 | done | |
1886 | done | |
1887 | ||
1888 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1889 | fi | |
1890 | fi | |
1891 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1892 | if test -n "$ac_ct_STRIP"; then | |
1893 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1894 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1895 | else | |
1896 | echo "$as_me:$LINENO: result: no" >&5 | |
1897 | echo "${ECHO_T}no" >&6 | |
1898 | fi | |
1899 | ||
1900 | STRIP=$ac_ct_STRIP | |
1901 | else | |
1902 | STRIP="$ac_cv_prog_STRIP" | |
1903 | fi | |
1904 | ||
1905 | fi | |
1906 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1907 | ||
1908 | # We need awk for the "check" target. The system "awk" is bad on | |
1909 | # some platforms. | |
6745c9de | 1910 | # Always define AMTAR for backward compatibility. |
1911 | ||
1912 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1913 | ||
1914 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1915 | ||
1916 | ||
4ee9c684 | 1917 | |
1918 | ||
1919 | ||
4ee9c684 | 1920 | |
1921 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1922 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1923 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1924 | if test "${enable_maintainer_mode+set}" = set; then | |
1925 | enableval="$enable_maintainer_mode" | |
1926 | USE_MAINTAINER_MODE=$enableval | |
1927 | else | |
1928 | USE_MAINTAINER_MODE=no | |
1929 | fi; | |
1930 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1931 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1932 | ||
1933 | ||
1934 | if test $USE_MAINTAINER_MODE = yes; then | |
1935 | MAINTAINER_MODE_TRUE= | |
1936 | MAINTAINER_MODE_FALSE='#' | |
1937 | else | |
1938 | MAINTAINER_MODE_TRUE='#' | |
1939 | MAINTAINER_MODE_FALSE= | |
1940 | fi | |
1941 | ||
1942 | MAINT=$MAINTAINER_MODE_TRUE | |
1943 | ||
1944 | ||
90973b19 | 1945 | # Default to --enable-multilib |
1946 | # Check whether --enable-multilib or --disable-multilib was given. | |
1947 | if test "${enable_multilib+set}" = set; then | |
1948 | enableval="$enable_multilib" | |
1949 | case "$enableval" in | |
1950 | yes) multilib=yes ;; | |
1951 | no) multilib=no ;; | |
1952 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1953 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1954 | { (exit 1); exit 1; }; } ;; | |
1955 | esac | |
1956 | else | |
1957 | multilib=yes | |
1958 | fi; | |
1959 | ||
1960 | # We may get other options which we leave undocumented: | |
1961 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1962 | # See config-ml.in if you want the gory details. | |
1963 | ||
1964 | if test "$srcdir" = "."; then | |
1965 | if test "$with_target_subdir" != "."; then | |
1966 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1967 | else | |
1968 | multi_basedir="$srcdir/$with_multisrctop.." | |
1969 | fi | |
1970 | else | |
1971 | multi_basedir="$srcdir/.." | |
1972 | fi | |
1973 | ||
1974 | ||
1975 | ac_config_commands="$ac_config_commands default-1" | |
1976 | ||
1977 | ||
1978 | # Handy for debugging: | |
1979 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
1980 | ||
1981 | # Are we being configured with some form of cross compiler? | |
1982 | # NB: We don't actually need to know this just now, but when, say, a test | |
1983 | # suite is included, we'll have to know. | |
1984 | if test "$build" != "$host"; then | |
1985 | LIBGFOR_IS_NATIVE=false | |
b52ee437 | 1986 | |
90973b19 | 1987 | else |
1988 | LIBGFOR_IS_NATIVE=true | |
1989 | fi | |
1990 | ||
90973b19 | 1991 | # Calculate toolexeclibdir |
1992 | # Also toolexecdir, though it's only used in toolexeclibdir | |
1993 | case ${version_specific_libs} in | |
1994 | yes) | |
1995 | # Need the gcc compiler version to know where to install libraries | |
1996 | # and header files if --enable-version-specific-runtime-libs option | |
1997 | # is selected. | |
1998 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
91a9c151 | 1999 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' |
90973b19 | 2000 | ;; |
2001 | no) | |
2002 | if test -n "$with_cross_host" && | |
2003 | test x"$with_cross_host" != x"no"; then | |
2004 | # Install a library built with a cross compiler in tooldir, not libdir. | |
2005 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
2006 | toolexeclibdir='$(toolexecdir)/lib' | |
2007 | else | |
2008 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
2009 | toolexeclibdir='$(libdir)' | |
2010 | fi | |
2011 | multi_os_directory=`$CC -print-multi-os-directory` | |
2012 | case $multi_os_directory in | |
2013 | .) ;; # Avoid trailing /. | |
2014 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
2015 | esac | |
2016 | ;; | |
2017 | esac | |
2018 | ||
2019 | ||
4ee9c684 | 2020 | |
90973b19 | 2021 | # Check the compiler. |
2022 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
2023 | # We must force CC to /not/ be precious variables; otherwise | |
2024 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
2025 | # As a side effect, we have to subst CFLAGS ourselves. | |
4ee9c684 | 2026 | |
2027 | ||
2028 | ||
4ee9c684 | 2029 | ac_ext=c |
2030 | ac_cpp='$CPP $CPPFLAGS' | |
2031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2034 | if test -n "$ac_tool_prefix"; then | |
2035 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2036 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2039 | if test "${ac_cv_prog_CC+set}" = set; then | |
2040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2041 | else | |
2042 | if test -n "$CC"; then | |
2043 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2044 | else | |
2045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2046 | for as_dir in $PATH | |
2047 | do | |
2048 | IFS=$as_save_IFS | |
2049 | test -z "$as_dir" && as_dir=. | |
2050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2051 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2052 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2054 | break 2 | |
2055 | fi | |
2056 | done | |
2057 | done | |
2058 | ||
2059 | fi | |
2060 | fi | |
2061 | CC=$ac_cv_prog_CC | |
2062 | if test -n "$CC"; then | |
2063 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2064 | echo "${ECHO_T}$CC" >&6 | |
2065 | else | |
2066 | echo "$as_me:$LINENO: result: no" >&5 | |
2067 | echo "${ECHO_T}no" >&6 | |
2068 | fi | |
2069 | ||
2070 | fi | |
2071 | if test -z "$ac_cv_prog_CC"; then | |
2072 | ac_ct_CC=$CC | |
2073 | # Extract the first word of "gcc", so it can be a program name with args. | |
2074 | set dummy gcc; ac_word=$2 | |
2075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2077 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2079 | else | |
2080 | if test -n "$ac_ct_CC"; then | |
2081 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2082 | else | |
2083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2084 | for as_dir in $PATH | |
2085 | do | |
2086 | IFS=$as_save_IFS | |
2087 | test -z "$as_dir" && as_dir=. | |
2088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2089 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2090 | ac_cv_prog_ac_ct_CC="gcc" | |
2091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2092 | break 2 | |
2093 | fi | |
2094 | done | |
2095 | done | |
2096 | ||
2097 | fi | |
2098 | fi | |
2099 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2100 | if test -n "$ac_ct_CC"; then | |
2101 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2102 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2103 | else | |
2104 | echo "$as_me:$LINENO: result: no" >&5 | |
2105 | echo "${ECHO_T}no" >&6 | |
2106 | fi | |
2107 | ||
2108 | CC=$ac_ct_CC | |
2109 | else | |
2110 | CC="$ac_cv_prog_CC" | |
2111 | fi | |
2112 | ||
2113 | if test -z "$CC"; then | |
2114 | if test -n "$ac_tool_prefix"; then | |
2115 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2116 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2117 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2119 | if test "${ac_cv_prog_CC+set}" = set; then | |
2120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2121 | else | |
2122 | if test -n "$CC"; then | |
2123 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2124 | else | |
2125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2126 | for as_dir in $PATH | |
2127 | do | |
2128 | IFS=$as_save_IFS | |
2129 | test -z "$as_dir" && as_dir=. | |
2130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2132 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2134 | break 2 | |
2135 | fi | |
2136 | done | |
2137 | done | |
2138 | ||
2139 | fi | |
2140 | fi | |
2141 | CC=$ac_cv_prog_CC | |
2142 | if test -n "$CC"; then | |
2143 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2144 | echo "${ECHO_T}$CC" >&6 | |
2145 | else | |
2146 | echo "$as_me:$LINENO: result: no" >&5 | |
2147 | echo "${ECHO_T}no" >&6 | |
2148 | fi | |
2149 | ||
2150 | fi | |
2151 | if test -z "$ac_cv_prog_CC"; then | |
2152 | ac_ct_CC=$CC | |
2153 | # Extract the first word of "cc", so it can be a program name with args. | |
2154 | set dummy cc; ac_word=$2 | |
2155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2157 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2159 | else | |
2160 | if test -n "$ac_ct_CC"; then | |
2161 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2162 | else | |
2163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2164 | for as_dir in $PATH | |
2165 | do | |
2166 | IFS=$as_save_IFS | |
2167 | test -z "$as_dir" && as_dir=. | |
2168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2170 | ac_cv_prog_ac_ct_CC="cc" | |
2171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2172 | break 2 | |
2173 | fi | |
2174 | done | |
2175 | done | |
2176 | ||
2177 | fi | |
2178 | fi | |
2179 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2180 | if test -n "$ac_ct_CC"; then | |
2181 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2182 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2183 | else | |
2184 | echo "$as_me:$LINENO: result: no" >&5 | |
2185 | echo "${ECHO_T}no" >&6 | |
2186 | fi | |
2187 | ||
2188 | CC=$ac_ct_CC | |
2189 | else | |
2190 | CC="$ac_cv_prog_CC" | |
2191 | fi | |
2192 | ||
2193 | fi | |
2194 | if test -z "$CC"; then | |
2195 | # Extract the first word of "cc", so it can be a program name with args. | |
2196 | set dummy cc; ac_word=$2 | |
2197 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2199 | if test "${ac_cv_prog_CC+set}" = set; then | |
2200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2201 | else | |
2202 | if test -n "$CC"; then | |
2203 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2204 | else | |
2205 | ac_prog_rejected=no | |
2206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2207 | for as_dir in $PATH | |
2208 | do | |
2209 | IFS=$as_save_IFS | |
2210 | test -z "$as_dir" && as_dir=. | |
2211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2212 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2213 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2214 | ac_prog_rejected=yes | |
2215 | continue | |
2216 | fi | |
2217 | ac_cv_prog_CC="cc" | |
2218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2219 | break 2 | |
2220 | fi | |
2221 | done | |
2222 | done | |
2223 | ||
2224 | if test $ac_prog_rejected = yes; then | |
2225 | # We found a bogon in the path, so make sure we never use it. | |
2226 | set dummy $ac_cv_prog_CC | |
2227 | shift | |
2228 | if test $# != 0; then | |
2229 | # We chose a different compiler from the bogus one. | |
2230 | # However, it has the same basename, so the bogon will be chosen | |
2231 | # first if we set CC to just the basename; use the full file name. | |
2232 | shift | |
2233 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2234 | fi | |
2235 | fi | |
2236 | fi | |
2237 | fi | |
2238 | CC=$ac_cv_prog_CC | |
2239 | if test -n "$CC"; then | |
2240 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2241 | echo "${ECHO_T}$CC" >&6 | |
2242 | else | |
2243 | echo "$as_me:$LINENO: result: no" >&5 | |
2244 | echo "${ECHO_T}no" >&6 | |
2245 | fi | |
2246 | ||
2247 | fi | |
2248 | if test -z "$CC"; then | |
2249 | if test -n "$ac_tool_prefix"; then | |
2250 | for ac_prog in cl | |
2251 | do | |
2252 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2253 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2254 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2256 | if test "${ac_cv_prog_CC+set}" = set; then | |
2257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2258 | else | |
2259 | if test -n "$CC"; then | |
2260 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2261 | else | |
2262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2263 | for as_dir in $PATH | |
2264 | do | |
2265 | IFS=$as_save_IFS | |
2266 | test -z "$as_dir" && as_dir=. | |
2267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2268 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2269 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2271 | break 2 | |
2272 | fi | |
2273 | done | |
2274 | done | |
2275 | ||
2276 | fi | |
2277 | fi | |
2278 | CC=$ac_cv_prog_CC | |
2279 | if test -n "$CC"; then | |
2280 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2281 | echo "${ECHO_T}$CC" >&6 | |
2282 | else | |
2283 | echo "$as_me:$LINENO: result: no" >&5 | |
2284 | echo "${ECHO_T}no" >&6 | |
2285 | fi | |
2286 | ||
2287 | test -n "$CC" && break | |
2288 | done | |
2289 | fi | |
2290 | if test -z "$CC"; then | |
2291 | ac_ct_CC=$CC | |
2292 | for ac_prog in cl | |
2293 | do | |
2294 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2295 | set dummy $ac_prog; ac_word=$2 | |
2296 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2298 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2300 | else | |
2301 | if test -n "$ac_ct_CC"; then | |
2302 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2303 | else | |
2304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2305 | for as_dir in $PATH | |
2306 | do | |
2307 | IFS=$as_save_IFS | |
2308 | test -z "$as_dir" && as_dir=. | |
2309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2310 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2311 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2313 | break 2 | |
2314 | fi | |
2315 | done | |
2316 | done | |
2317 | ||
2318 | fi | |
2319 | fi | |
2320 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2321 | if test -n "$ac_ct_CC"; then | |
2322 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2323 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2324 | else | |
2325 | echo "$as_me:$LINENO: result: no" >&5 | |
2326 | echo "${ECHO_T}no" >&6 | |
2327 | fi | |
2328 | ||
2329 | test -n "$ac_ct_CC" && break | |
2330 | done | |
2331 | ||
2332 | CC=$ac_ct_CC | |
2333 | fi | |
2334 | ||
2335 | fi | |
2336 | ||
2337 | ||
2338 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2339 | See \`config.log' for more details." >&5 | |
2340 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2341 | See \`config.log' for more details." >&2;} | |
2342 | { (exit 1); exit 1; }; } | |
2343 | ||
2344 | # Provide some information about the compiler. | |
2345 | echo "$as_me:$LINENO:" \ | |
2346 | "checking for C compiler version" >&5 | |
2347 | ac_compiler=`set X $ac_compile; echo $2` | |
2348 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2349 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2350 | ac_status=$? | |
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2352 | (exit $ac_status); } | |
2353 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2354 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2355 | ac_status=$? | |
2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2357 | (exit $ac_status); } | |
2358 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2359 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2360 | ac_status=$? | |
2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2362 | (exit $ac_status); } | |
2363 | ||
2364 | cat >conftest.$ac_ext <<_ACEOF | |
2365 | /* confdefs.h. */ | |
2366 | _ACEOF | |
2367 | cat confdefs.h >>conftest.$ac_ext | |
2368 | cat >>conftest.$ac_ext <<_ACEOF | |
2369 | /* end confdefs.h. */ | |
2370 | ||
b52ee437 | 2371 | int |
2372 | main () | |
2373 | { | |
2374 | ||
2375 | ; | |
2376 | return 0; | |
2377 | } | |
2378 | _ACEOF | |
2379 | # FIXME: Cleanup? | |
2380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2381 | (eval $ac_link) 2>&5 | |
2382 | ac_status=$? | |
2383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2384 | (exit $ac_status); }; then | |
2385 | gcc_no_link=no | |
2386 | else | |
2387 | gcc_no_link=yes | |
2388 | fi | |
2389 | ||
2390 | if test x$gcc_no_link = xyes; then | |
2391 | # Setting cross_compile will disable run tests; it will | |
2392 | # also disable AC_CHECK_FILE but that's generally | |
2393 | # correct if we can't link. | |
2394 | cross_compiling=yes | |
2395 | EXEEXT= | |
2396 | else | |
2397 | cat >conftest.$ac_ext <<_ACEOF | |
2398 | /* confdefs.h. */ | |
2399 | _ACEOF | |
2400 | cat confdefs.h >>conftest.$ac_ext | |
2401 | cat >>conftest.$ac_ext <<_ACEOF | |
2402 | /* end confdefs.h. */ | |
2403 | ||
4ee9c684 | 2404 | int |
2405 | main () | |
2406 | { | |
2407 | ||
2408 | ; | |
2409 | return 0; | |
2410 | } | |
2411 | _ACEOF | |
2412 | ac_clean_files_save=$ac_clean_files | |
2413 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2414 | # Try to create an executable without -o first, disregard a.out. | |
2415 | # It will help us diagnose broken compilers, and finding out an intuition | |
2416 | # of exeext. | |
2417 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2418 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2419 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2420 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2421 | (eval $ac_link_default) 2>&5 | |
2422 | ac_status=$? | |
2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2424 | (exit $ac_status); }; then | |
2425 | # Find the output, starting from the most likely. This scheme is | |
2426 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2427 | # resort. | |
2428 | ||
2429 | # Be careful to initialize this variable, since it used to be cached. | |
2430 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2431 | ac_cv_exeext= | |
2432 | # b.out is created by i960 compilers. | |
2433 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2434 | do | |
2435 | test -f "$ac_file" || continue | |
2436 | case $ac_file in | |
2437 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2438 | ;; | |
2439 | conftest.$ac_ext ) | |
2440 | # This is the source file. | |
2441 | ;; | |
2442 | [ab].out ) | |
2443 | # We found the default executable, but exeext='' is most | |
2444 | # certainly right. | |
2445 | break;; | |
2446 | *.* ) | |
2447 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2448 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2449 | # but it would be cool to find out if it's true. Does anybody | |
2450 | # maintain Libtool? --akim. | |
2451 | export ac_cv_exeext | |
2452 | break;; | |
2453 | * ) | |
2454 | break;; | |
2455 | esac | |
2456 | done | |
2457 | else | |
2458 | echo "$as_me: failed program was:" >&5 | |
2459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2460 | ||
2461 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2462 | See \`config.log' for more details." >&5 | |
2463 | echo "$as_me: error: C compiler cannot create executables | |
2464 | See \`config.log' for more details." >&2;} | |
2465 | { (exit 77); exit 77; }; } | |
2466 | fi | |
2467 | ||
2468 | ac_exeext=$ac_cv_exeext | |
2469 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2470 | echo "${ECHO_T}$ac_file" >&6 | |
2471 | ||
2472 | # Check the compiler produces executables we can run. If not, either | |
2473 | # the compiler is broken, or we cross compile. | |
2474 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2475 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2476 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2477 | # If not cross compiling, check that we can run a simple program. | |
2478 | if test "$cross_compiling" != yes; then | |
2479 | if { ac_try='./$ac_file' | |
2480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2481 | (eval $ac_try) 2>&5 | |
2482 | ac_status=$? | |
2483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2484 | (exit $ac_status); }; }; then | |
2485 | cross_compiling=no | |
2486 | else | |
2487 | if test "$cross_compiling" = maybe; then | |
2488 | cross_compiling=yes | |
2489 | else | |
2490 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2491 | If you meant to cross compile, use \`--host'. | |
2492 | See \`config.log' for more details." >&5 | |
2493 | echo "$as_me: error: cannot run C compiled programs. | |
2494 | If you meant to cross compile, use \`--host'. | |
2495 | See \`config.log' for more details." >&2;} | |
2496 | { (exit 1); exit 1; }; } | |
2497 | fi | |
2498 | fi | |
2499 | fi | |
2500 | echo "$as_me:$LINENO: result: yes" >&5 | |
2501 | echo "${ECHO_T}yes" >&6 | |
2502 | ||
2503 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2504 | ac_clean_files=$ac_clean_files_save | |
2505 | # Check the compiler produces executables we can run. If not, either | |
2506 | # the compiler is broken, or we cross compile. | |
2507 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2508 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2509 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2510 | echo "${ECHO_T}$cross_compiling" >&6 | |
2511 | ||
2512 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2513 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2515 | (eval $ac_link) 2>&5 | |
2516 | ac_status=$? | |
2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2518 | (exit $ac_status); }; then | |
2519 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2520 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2521 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2522 | # `rm'. | |
2523 | for ac_file in conftest.exe conftest conftest.*; do | |
2524 | test -f "$ac_file" || continue | |
2525 | case $ac_file in | |
2526 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2527 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2528 | export ac_cv_exeext | |
2529 | break;; | |
2530 | * ) break;; | |
2531 | esac | |
2532 | done | |
2533 | else | |
2534 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2535 | See \`config.log' for more details." >&5 | |
2536 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2537 | See \`config.log' for more details." >&2;} | |
2538 | { (exit 1); exit 1; }; } | |
2539 | fi | |
2540 | ||
2541 | rm -f conftest$ac_cv_exeext | |
2542 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2543 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2544 | ||
2545 | rm -f conftest.$ac_ext | |
2546 | EXEEXT=$ac_cv_exeext | |
2547 | ac_exeext=$EXEEXT | |
b52ee437 | 2548 | fi |
4ee9c684 | 2549 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2550 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2551 | if test "${ac_cv_objext+set}" = set; then | |
2552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2553 | else | |
2554 | cat >conftest.$ac_ext <<_ACEOF | |
2555 | /* confdefs.h. */ | |
2556 | _ACEOF | |
2557 | cat confdefs.h >>conftest.$ac_ext | |
2558 | cat >>conftest.$ac_ext <<_ACEOF | |
2559 | /* end confdefs.h. */ | |
2560 | ||
2561 | int | |
2562 | main () | |
2563 | { | |
2564 | ||
2565 | ; | |
2566 | return 0; | |
2567 | } | |
2568 | _ACEOF | |
2569 | rm -f conftest.o conftest.obj | |
2570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2571 | (eval $ac_compile) 2>&5 | |
2572 | ac_status=$? | |
2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2574 | (exit $ac_status); }; then | |
2575 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2576 | case $ac_file in | |
2577 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2578 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2579 | break;; | |
2580 | esac | |
2581 | done | |
2582 | else | |
2583 | echo "$as_me: failed program was:" >&5 | |
2584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2585 | ||
2586 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2587 | See \`config.log' for more details." >&5 | |
2588 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2589 | See \`config.log' for more details." >&2;} | |
2590 | { (exit 1); exit 1; }; } | |
2591 | fi | |
2592 | ||
2593 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2594 | fi | |
2595 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2596 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2597 | OBJEXT=$ac_cv_objext | |
2598 | ac_objext=$OBJEXT | |
2599 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2600 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2601 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2603 | else | |
2604 | cat >conftest.$ac_ext <<_ACEOF | |
2605 | /* confdefs.h. */ | |
2606 | _ACEOF | |
2607 | cat confdefs.h >>conftest.$ac_ext | |
2608 | cat >>conftest.$ac_ext <<_ACEOF | |
2609 | /* end confdefs.h. */ | |
2610 | ||
2611 | int | |
2612 | main () | |
2613 | { | |
2614 | #ifndef __GNUC__ | |
2615 | choke me | |
2616 | #endif | |
2617 | ||
2618 | ; | |
2619 | return 0; | |
2620 | } | |
2621 | _ACEOF | |
2622 | rm -f conftest.$ac_objext | |
2623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2624 | (eval $ac_compile) 2>conftest.er1 | |
2625 | ac_status=$? | |
2626 | grep -v '^ *+' conftest.er1 >conftest.err | |
2627 | rm -f conftest.er1 | |
2628 | cat conftest.err >&5 | |
2629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2630 | (exit $ac_status); } && | |
b56cb1ff | 2631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2633 | (eval $ac_try) 2>&5 | |
2634 | ac_status=$? | |
2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2636 | (exit $ac_status); }; } && | |
2637 | { ac_try='test -s conftest.$ac_objext' | |
2638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2639 | (eval $ac_try) 2>&5 | |
2640 | ac_status=$? | |
2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2642 | (exit $ac_status); }; }; then | |
2643 | ac_compiler_gnu=yes | |
2644 | else | |
2645 | echo "$as_me: failed program was:" >&5 | |
2646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2647 | ||
2648 | ac_compiler_gnu=no | |
2649 | fi | |
2650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2651 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2652 | ||
2653 | fi | |
2654 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2655 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2656 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2657 | ac_test_CFLAGS=${CFLAGS+set} | |
2658 | ac_save_CFLAGS=$CFLAGS | |
2659 | CFLAGS="-g" | |
2660 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2661 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2662 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2664 | else | |
2665 | cat >conftest.$ac_ext <<_ACEOF | |
2666 | /* confdefs.h. */ | |
2667 | _ACEOF | |
2668 | cat confdefs.h >>conftest.$ac_ext | |
2669 | cat >>conftest.$ac_ext <<_ACEOF | |
2670 | /* end confdefs.h. */ | |
2671 | ||
2672 | int | |
2673 | main () | |
2674 | { | |
2675 | ||
2676 | ; | |
2677 | return 0; | |
2678 | } | |
2679 | _ACEOF | |
2680 | rm -f conftest.$ac_objext | |
2681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2682 | (eval $ac_compile) 2>conftest.er1 | |
2683 | ac_status=$? | |
2684 | grep -v '^ *+' conftest.er1 >conftest.err | |
2685 | rm -f conftest.er1 | |
2686 | cat conftest.err >&5 | |
2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2688 | (exit $ac_status); } && | |
b56cb1ff | 2689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2691 | (eval $ac_try) 2>&5 | |
2692 | ac_status=$? | |
2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2694 | (exit $ac_status); }; } && | |
2695 | { ac_try='test -s conftest.$ac_objext' | |
2696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2697 | (eval $ac_try) 2>&5 | |
2698 | ac_status=$? | |
2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2700 | (exit $ac_status); }; }; then | |
2701 | ac_cv_prog_cc_g=yes | |
2702 | else | |
2703 | echo "$as_me: failed program was:" >&5 | |
2704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2705 | ||
2706 | ac_cv_prog_cc_g=no | |
2707 | fi | |
2708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2709 | fi | |
2710 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2711 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2712 | if test "$ac_test_CFLAGS" = set; then | |
2713 | CFLAGS=$ac_save_CFLAGS | |
2714 | elif test $ac_cv_prog_cc_g = yes; then | |
2715 | if test "$GCC" = yes; then | |
2716 | CFLAGS="-g -O2" | |
2717 | else | |
2718 | CFLAGS="-g" | |
2719 | fi | |
2720 | else | |
2721 | if test "$GCC" = yes; then | |
2722 | CFLAGS="-O2" | |
2723 | else | |
2724 | CFLAGS= | |
2725 | fi | |
2726 | fi | |
2727 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2728 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2729 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2731 | else | |
2732 | ac_cv_prog_cc_stdc=no | |
2733 | ac_save_CC=$CC | |
2734 | cat >conftest.$ac_ext <<_ACEOF | |
2735 | /* confdefs.h. */ | |
2736 | _ACEOF | |
2737 | cat confdefs.h >>conftest.$ac_ext | |
2738 | cat >>conftest.$ac_ext <<_ACEOF | |
2739 | /* end confdefs.h. */ | |
2740 | #include <stdarg.h> | |
2741 | #include <stdio.h> | |
2742 | #include <sys/types.h> | |
2743 | #include <sys/stat.h> | |
2744 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2745 | struct buf { int x; }; | |
2746 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2747 | static char *e (p, i) | |
2748 | char **p; | |
2749 | int i; | |
2750 | { | |
2751 | return p[i]; | |
2752 | } | |
2753 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2754 | { | |
2755 | char *s; | |
2756 | va_list v; | |
2757 | va_start (v,p); | |
2758 | s = g (p, va_arg (v,int)); | |
2759 | va_end (v); | |
2760 | return s; | |
2761 | } | |
2762 | ||
2763 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2764 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2765 | These don't provoke an error unfortunately, instead are silently treated | |
2766 | as 'x'. The following induces an error, until -std1 is added to get | |
2767 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2768 | array size at least. It's necessary to write '\x00'==0 to get something | |
2769 | that's true only with -std1. */ | |
2770 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2771 | ||
2772 | int test (int i, double x); | |
2773 | struct s1 {int (*f) (int a);}; | |
2774 | struct s2 {int (*f) (double a);}; | |
2775 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2776 | int argc; | |
2777 | char **argv; | |
2778 | int | |
2779 | main () | |
2780 | { | |
2781 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2782 | ; | |
2783 | return 0; | |
2784 | } | |
2785 | _ACEOF | |
2786 | # Don't try gcc -ansi; that turns off useful extensions and | |
2787 | # breaks some systems' header files. | |
2788 | # AIX -qlanglvl=ansi | |
2789 | # Ultrix and OSF/1 -std1 | |
2790 | # HP-UX 10.20 and later -Ae | |
2791 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2792 | # SVR4 -Xc -D__EXTENSIONS__ | |
2793 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2794 | do | |
2795 | CC="$ac_save_CC $ac_arg" | |
2796 | rm -f conftest.$ac_objext | |
2797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2798 | (eval $ac_compile) 2>conftest.er1 | |
2799 | ac_status=$? | |
2800 | grep -v '^ *+' conftest.er1 >conftest.err | |
2801 | rm -f conftest.er1 | |
2802 | cat conftest.err >&5 | |
2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2804 | (exit $ac_status); } && | |
b56cb1ff | 2805 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2807 | (eval $ac_try) 2>&5 | |
2808 | ac_status=$? | |
2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2810 | (exit $ac_status); }; } && | |
2811 | { ac_try='test -s conftest.$ac_objext' | |
2812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2813 | (eval $ac_try) 2>&5 | |
2814 | ac_status=$? | |
2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2816 | (exit $ac_status); }; }; then | |
2817 | ac_cv_prog_cc_stdc=$ac_arg | |
2818 | break | |
2819 | else | |
2820 | echo "$as_me: failed program was:" >&5 | |
2821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2822 | ||
2823 | fi | |
2824 | rm -f conftest.err conftest.$ac_objext | |
2825 | done | |
2826 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2827 | CC=$ac_save_CC | |
2828 | ||
2829 | fi | |
2830 | ||
2831 | case "x$ac_cv_prog_cc_stdc" in | |
2832 | x|xno) | |
2833 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2834 | echo "${ECHO_T}none needed" >&6 ;; | |
2835 | *) | |
2836 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2837 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2838 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2839 | esac | |
2840 | ||
2841 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2842 | # in C++ we need to declare it. In case someone uses the same compiler | |
2843 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2844 | # the declaration of exit, since it's the most demanding environment. | |
2845 | cat >conftest.$ac_ext <<_ACEOF | |
2846 | #ifndef __cplusplus | |
2847 | choke me | |
2848 | #endif | |
2849 | _ACEOF | |
2850 | rm -f conftest.$ac_objext | |
2851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2852 | (eval $ac_compile) 2>conftest.er1 | |
2853 | ac_status=$? | |
2854 | grep -v '^ *+' conftest.er1 >conftest.err | |
2855 | rm -f conftest.er1 | |
2856 | cat conftest.err >&5 | |
2857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2858 | (exit $ac_status); } && | |
b56cb1ff | 2859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2861 | (eval $ac_try) 2>&5 | |
2862 | ac_status=$? | |
2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2864 | (exit $ac_status); }; } && | |
2865 | { ac_try='test -s conftest.$ac_objext' | |
2866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2867 | (eval $ac_try) 2>&5 | |
2868 | ac_status=$? | |
2869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2870 | (exit $ac_status); }; }; then | |
2871 | for ac_declaration in \ | |
2872 | '' \ | |
2873 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2874 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2875 | 'extern "C" void exit (int) throw ();' \ | |
2876 | 'extern "C" void exit (int);' \ | |
2877 | 'void exit (int);' | |
2878 | do | |
2879 | cat >conftest.$ac_ext <<_ACEOF | |
2880 | /* confdefs.h. */ | |
2881 | _ACEOF | |
2882 | cat confdefs.h >>conftest.$ac_ext | |
2883 | cat >>conftest.$ac_ext <<_ACEOF | |
2884 | /* end confdefs.h. */ | |
2885 | $ac_declaration | |
2886 | #include <stdlib.h> | |
2887 | int | |
2888 | main () | |
2889 | { | |
2890 | exit (42); | |
2891 | ; | |
2892 | return 0; | |
2893 | } | |
2894 | _ACEOF | |
2895 | rm -f conftest.$ac_objext | |
2896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2897 | (eval $ac_compile) 2>conftest.er1 | |
2898 | ac_status=$? | |
2899 | grep -v '^ *+' conftest.er1 >conftest.err | |
2900 | rm -f conftest.er1 | |
2901 | cat conftest.err >&5 | |
2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2903 | (exit $ac_status); } && | |
b56cb1ff | 2904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2906 | (eval $ac_try) 2>&5 | |
2907 | ac_status=$? | |
2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2909 | (exit $ac_status); }; } && | |
2910 | { ac_try='test -s conftest.$ac_objext' | |
2911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2912 | (eval $ac_try) 2>&5 | |
2913 | ac_status=$? | |
2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2915 | (exit $ac_status); }; }; then | |
2916 | : | |
2917 | else | |
2918 | echo "$as_me: failed program was:" >&5 | |
2919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2920 | ||
2921 | continue | |
2922 | fi | |
2923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2924 | cat >conftest.$ac_ext <<_ACEOF | |
2925 | /* confdefs.h. */ | |
2926 | _ACEOF | |
2927 | cat confdefs.h >>conftest.$ac_ext | |
2928 | cat >>conftest.$ac_ext <<_ACEOF | |
2929 | /* end confdefs.h. */ | |
2930 | $ac_declaration | |
2931 | int | |
2932 | main () | |
2933 | { | |
2934 | exit (42); | |
2935 | ; | |
2936 | return 0; | |
2937 | } | |
2938 | _ACEOF | |
2939 | rm -f conftest.$ac_objext | |
2940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2941 | (eval $ac_compile) 2>conftest.er1 | |
2942 | ac_status=$? | |
2943 | grep -v '^ *+' conftest.er1 >conftest.err | |
2944 | rm -f conftest.er1 | |
2945 | cat conftest.err >&5 | |
2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2947 | (exit $ac_status); } && | |
b56cb1ff | 2948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 2949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2950 | (eval $ac_try) 2>&5 | |
2951 | ac_status=$? | |
2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2953 | (exit $ac_status); }; } && | |
2954 | { ac_try='test -s conftest.$ac_objext' | |
2955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2956 | (eval $ac_try) 2>&5 | |
2957 | ac_status=$? | |
2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2959 | (exit $ac_status); }; }; then | |
2960 | break | |
2961 | else | |
2962 | echo "$as_me: failed program was:" >&5 | |
2963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2964 | ||
2965 | fi | |
2966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2967 | done | |
2968 | rm -f conftest* | |
2969 | if test -n "$ac_declaration"; then | |
2970 | echo '#ifdef __cplusplus' >>confdefs.h | |
2971 | echo $ac_declaration >>confdefs.h | |
2972 | echo '#endif' >>confdefs.h | |
2973 | fi | |
2974 | ||
2975 | else | |
2976 | echo "$as_me: failed program was:" >&5 | |
2977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2978 | ||
2979 | fi | |
2980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2981 | ac_ext=c | |
2982 | ac_cpp='$CPP $CPPFLAGS' | |
2983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 2986 | |
4ee9c684 | 2987 | |
4ee9c684 | 2988 | |
d1191d66 | 2989 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
90973b19 | 2990 | if test "x$GCC" = "xyes"; then |
9b2d5429 | 2991 | AM_FCFLAGS="-I . -Wall -fno-repack-arrays -fno-underscoring" |
09e5829f | 2992 | ## We like to use C99 routines when available. This makes sure that |
2993 | ## __STDC_VERSION__ is set such that libc includes make them available. | |
50f0ca0a | 2994 | AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings" |
4ee9c684 | 2995 | fi |
2996 | ||
09e5829f | 2997 | |
2998 | ||
90973b19 | 2999 | # Find other programs we need. |
3000 | if test -n "$ac_tool_prefix"; then | |
3001 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3002 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3003 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3005 | if test "${ac_cv_prog_AS+set}" = set; then | |
4ee9c684 | 3006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3007 | else | |
90973b19 | 3008 | if test -n "$AS"; then |
3009 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3010 | else | |
3011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3012 | for as_dir in $PATH | |
3013 | do | |
3014 | IFS=$as_save_IFS | |
3015 | test -z "$as_dir" && as_dir=. | |
3016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3018 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
3019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3020 | break 2 | |
4ee9c684 | 3021 | fi |
90973b19 | 3022 | done |
3023 | done | |
4ee9c684 | 3024 | |
90973b19 | 3025 | fi |
3026 | fi | |
3027 | AS=$ac_cv_prog_AS | |
3028 | if test -n "$AS"; then | |
3029 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3030 | echo "${ECHO_T}$AS" >&6 | |
4ee9c684 | 3031 | else |
90973b19 | 3032 | echo "$as_me:$LINENO: result: no" >&5 |
3033 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3034 | fi |
3035 | ||
3036 | fi | |
90973b19 | 3037 | if test -z "$ac_cv_prog_AS"; then |
3038 | ac_ct_AS=$AS | |
3039 | # Extract the first word of "as", so it can be a program name with args. | |
3040 | set dummy as; ac_word=$2 | |
3041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3043 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
3044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3045 | else | |
3046 | if test -n "$ac_ct_AS"; then | |
3047 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3048 | else | |
3049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3050 | for as_dir in $PATH | |
3051 | do | |
3052 | IFS=$as_save_IFS | |
3053 | test -z "$as_dir" && as_dir=. | |
3054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3055 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3056 | ac_cv_prog_ac_ct_AS="as" | |
3057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3058 | break 2 | |
3059 | fi | |
3060 | done | |
3061 | done | |
4ee9c684 | 3062 | |
90973b19 | 3063 | fi |
3064 | fi | |
3065 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3066 | if test -n "$ac_ct_AS"; then | |
3067 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3068 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
4ee9c684 | 3069 | else |
90973b19 | 3070 | echo "$as_me:$LINENO: result: no" >&5 |
3071 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3072 | fi |
3073 | ||
90973b19 | 3074 | AS=$ac_ct_AS |
3075 | else | |
3076 | AS="$ac_cv_prog_AS" | |
4ee9c684 | 3077 | fi |
3078 | ||
4ee9c684 | 3079 | if test -n "$ac_tool_prefix"; then |
90973b19 | 3080 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
3081 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4ee9c684 | 3082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3084 | if test "${ac_cv_prog_AR+set}" = set; then |
4ee9c684 | 3085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3086 | else | |
90973b19 | 3087 | if test -n "$AR"; then |
3088 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4ee9c684 | 3089 | else |
3090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3091 | for as_dir in $PATH | |
3092 | do | |
3093 | IFS=$as_save_IFS | |
3094 | test -z "$as_dir" && as_dir=. | |
3095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
90973b19 | 3097 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4ee9c684 | 3098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3099 | break 2 | |
3100 | fi | |
3101 | done | |
3102 | done | |
3103 | ||
3104 | fi | |
3105 | fi | |
90973b19 | 3106 | AR=$ac_cv_prog_AR |
3107 | if test -n "$AR"; then | |
3108 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3109 | echo "${ECHO_T}$AR" >&6 | |
4ee9c684 | 3110 | else |
3111 | echo "$as_me:$LINENO: result: no" >&5 | |
3112 | echo "${ECHO_T}no" >&6 | |
3113 | fi | |
3114 | ||
4ee9c684 | 3115 | fi |
90973b19 | 3116 | if test -z "$ac_cv_prog_AR"; then |
3117 | ac_ct_AR=$AR | |
3118 | # Extract the first word of "ar", so it can be a program name with args. | |
3119 | set dummy ar; ac_word=$2 | |
4ee9c684 | 3120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3122 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4ee9c684 | 3123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3124 | else | |
90973b19 | 3125 | if test -n "$ac_ct_AR"; then |
3126 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4ee9c684 | 3127 | else |
3128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3129 | for as_dir in $PATH | |
3130 | do | |
3131 | IFS=$as_save_IFS | |
3132 | test -z "$as_dir" && as_dir=. | |
3133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
90973b19 | 3135 | ac_cv_prog_ac_ct_AR="ar" |
4ee9c684 | 3136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3137 | break 2 | |
3138 | fi | |
3139 | done | |
3140 | done | |
3141 | ||
3142 | fi | |
3143 | fi | |
90973b19 | 3144 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
3145 | if test -n "$ac_ct_AR"; then | |
3146 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3147 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
4ee9c684 | 3148 | else |
3149 | echo "$as_me:$LINENO: result: no" >&5 | |
3150 | echo "${ECHO_T}no" >&6 | |
3151 | fi | |
3152 | ||
90973b19 | 3153 | AR=$ac_ct_AR |
3154 | else | |
3155 | AR="$ac_cv_prog_AR" | |
4ee9c684 | 3156 | fi |
3157 | ||
90973b19 | 3158 | if test -n "$ac_tool_prefix"; then |
3159 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3160 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3163 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4ee9c684 | 3164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3165 | else | |
90973b19 | 3166 | if test -n "$RANLIB"; then |
3167 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4ee9c684 | 3168 | else |
90973b19 | 3169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3170 | for as_dir in $PATH | |
3171 | do | |
3172 | IFS=$as_save_IFS | |
3173 | test -z "$as_dir" && as_dir=. | |
3174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3175 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3176 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3178 | break 2 | |
3179 | fi | |
3180 | done | |
3181 | done | |
4ee9c684 | 3182 | |
4ee9c684 | 3183 | fi |
90973b19 | 3184 | fi |
3185 | RANLIB=$ac_cv_prog_RANLIB | |
3186 | if test -n "$RANLIB"; then | |
3187 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3188 | echo "${ECHO_T}$RANLIB" >&6 | |
3189 | else | |
3190 | echo "$as_me:$LINENO: result: no" >&5 | |
3191 | echo "${ECHO_T}no" >&6 | |
3192 | fi | |
4ee9c684 | 3193 | |
3194 | fi | |
90973b19 | 3195 | if test -z "$ac_cv_prog_RANLIB"; then |
3196 | ac_ct_RANLIB=$RANLIB | |
3197 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3198 | set dummy ranlib; ac_word=$2 | |
3199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3201 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4ee9c684 | 3202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3203 | else | |
90973b19 | 3204 | if test -n "$ac_ct_RANLIB"; then |
3205 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4ee9c684 | 3206 | else |
90973b19 | 3207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3208 | for as_dir in $PATH | |
3209 | do | |
3210 | IFS=$as_save_IFS | |
3211 | test -z "$as_dir" && as_dir=. | |
3212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3214 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3216 | break 2 | |
3217 | fi | |
3218 | done | |
3219 | done | |
4ee9c684 | 3220 | |
90973b19 | 3221 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" |
4ee9c684 | 3222 | fi |
4ee9c684 | 3223 | fi |
90973b19 | 3224 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3225 | if test -n "$ac_ct_RANLIB"; then | |
3226 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3227 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4ee9c684 | 3228 | else |
90973b19 | 3229 | echo "$as_me:$LINENO: result: no" >&5 |
3230 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3231 | fi |
3232 | ||
90973b19 | 3233 | RANLIB=$ac_ct_RANLIB |
3234 | else | |
3235 | RANLIB="$ac_cv_prog_RANLIB" | |
4ee9c684 | 3236 | fi |
90973b19 | 3237 | |
3238 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3239 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3240 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3241 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
4ee9c684 | 3242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3243 | else | |
90973b19 | 3244 | cat >conftest.make <<\_ACEOF |
3245 | all: | |
3246 | @echo 'ac_maketemp="$(MAKE)"' | |
4ee9c684 | 3247 | _ACEOF |
90973b19 | 3248 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3249 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3250 | if test -n "$ac_maketemp"; then | |
3251 | eval ac_cv_prog_make_${ac_make}_set=yes | |
4ee9c684 | 3252 | else |
90973b19 | 3253 | eval ac_cv_prog_make_${ac_make}_set=no |
4ee9c684 | 3254 | fi |
90973b19 | 3255 | rm -f conftest.make |
3256 | fi | |
3257 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3258 | echo "$as_me:$LINENO: result: yes" >&5 | |
3259 | echo "${ECHO_T}yes" >&6 | |
3260 | SET_MAKE= | |
4ee9c684 | 3261 | else |
90973b19 | 3262 | echo "$as_me:$LINENO: result: no" >&5 |
3263 | echo "${ECHO_T}no" >&6 | |
3264 | SET_MAKE="MAKE=${MAKE-make}" | |
4ee9c684 | 3265 | fi |
4ee9c684 | 3266 | |
90973b19 | 3267 | # Find a good install program. We prefer a C program (faster), |
3268 | # so one script is as good as another. But avoid the broken or | |
3269 | # incompatible versions: | |
3270 | # SysV /etc/install, /usr/sbin/install | |
3271 | # SunOS /usr/etc/install | |
3272 | # IRIX /sbin/install | |
3273 | # AIX /bin/install | |
3274 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3275 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3276 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3277 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3278 | # OS/2's system install, which has a completely different semantic | |
3279 | # ./install, which can be erroneously created by make from ./install.sh. | |
3280 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3281 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3282 | if test -z "$INSTALL"; then | |
3283 | if test "${ac_cv_path_install+set}" = set; then | |
3284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 3285 | else |
90973b19 | 3286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3287 | for as_dir in $PATH | |
3288 | do | |
3289 | IFS=$as_save_IFS | |
3290 | test -z "$as_dir" && as_dir=. | |
3291 | # Account for people who put trailing slashes in PATH elements. | |
3292 | case $as_dir/ in | |
3293 | ./ | .// | /cC/* | \ | |
3294 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3295 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3296 | /usr/ucb/* ) ;; | |
3297 | *) | |
3298 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3299 | # Don't use installbsd from OSF since it installs stuff as root | |
3300 | # by default. | |
3301 | for ac_prog in ginstall scoinst install; do | |
3302 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3303 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3304 | if test $ac_prog = install && | |
3305 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3306 | # AIX install. It has an incompatible calling convention. | |
3307 | : | |
3308 | elif test $ac_prog = install && | |
3309 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3310 | # program-specific install script used by HP pwplus--don't use. | |
3311 | : | |
3312 | else | |
3313 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3314 | break 3 | |
3315 | fi | |
3316 | fi | |
3317 | done | |
3318 | done | |
3319 | ;; | |
3320 | esac | |
4ee9c684 | 3321 | done |
4ee9c684 | 3322 | |
4ee9c684 | 3323 | |
3324 | fi | |
90973b19 | 3325 | if test "${ac_cv_path_install+set}" = set; then |
3326 | INSTALL=$ac_cv_path_install | |
4ee9c684 | 3327 | else |
90973b19 | 3328 | # As a last resort, use the slow shell script. We don't cache a |
3329 | # path for INSTALL within a source directory, because that will | |
3330 | # break other packages using the cache if that directory is | |
3331 | # removed, or if the path is relative. | |
3332 | INSTALL=$ac_install_sh | |
4ee9c684 | 3333 | fi |
4ee9c684 | 3334 | fi |
90973b19 | 3335 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3336 | echo "${ECHO_T}$INSTALL" >&6 | |
4ee9c684 | 3337 | |
90973b19 | 3338 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3339 | # It thinks the first close brace ends the variable substitution. | |
3340 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4ee9c684 | 3341 | |
90973b19 | 3342 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4ee9c684 | 3343 | |
90973b19 | 3344 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4ee9c684 | 3345 | |
4ee9c684 | 3346 | |
90973b19 | 3347 | # Configure libtool |
3348 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
4ee9c684 | 3349 | |
90973b19 | 3350 | # Check whether --enable-shared or --disable-shared was given. |
3351 | if test "${enable_shared+set}" = set; then | |
3352 | enableval="$enable_shared" | |
3353 | p=${PACKAGE-default} | |
3354 | case $enableval in | |
3355 | yes) enable_shared=yes ;; | |
3356 | no) enable_shared=no ;; | |
3357 | *) | |
3358 | enable_shared=no | |
3359 | # Look at the argument we got. We use all the common list separators. | |
3360 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3361 | for pkg in $enableval; do | |
3362 | if test "X$pkg" = "X$p"; then | |
3363 | enable_shared=yes | |
4ee9c684 | 3364 | fi |
90973b19 | 3365 | done |
3366 | IFS="$ac_save_ifs" | |
3367 | ;; | |
3368 | esac | |
4ee9c684 | 3369 | else |
90973b19 | 3370 | enable_shared=yes |
3371 | fi; | |
3372 | # Check whether --enable-static or --disable-static was given. | |
3373 | if test "${enable_static+set}" = set; then | |
3374 | enableval="$enable_static" | |
3375 | p=${PACKAGE-default} | |
3376 | case $enableval in | |
3377 | yes) enable_static=yes ;; | |
3378 | no) enable_static=no ;; | |
3379 | *) | |
3380 | enable_static=no | |
3381 | # Look at the argument we got. We use all the common list separators. | |
3382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3383 | for pkg in $enableval; do | |
3384 | if test "X$pkg" = "X$p"; then | |
3385 | enable_static=yes | |
3386 | fi | |
3387 | done | |
3388 | IFS="$ac_save_ifs" | |
3389 | ;; | |
3390 | esac | |
3391 | else | |
3392 | enable_static=yes | |
3393 | fi; | |
3394 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3395 | if test "${enable_fast_install+set}" = set; then | |
3396 | enableval="$enable_fast_install" | |
3397 | p=${PACKAGE-default} | |
3398 | case $enableval in | |
3399 | yes) enable_fast_install=yes ;; | |
3400 | no) enable_fast_install=no ;; | |
3401 | *) | |
3402 | enable_fast_install=no | |
3403 | # Look at the argument we got. We use all the common list separators. | |
3404 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3405 | for pkg in $enableval; do | |
3406 | if test "X$pkg" = "X$p"; then | |
3407 | enable_fast_install=yes | |
3408 | fi | |
3409 | done | |
3410 | IFS="$ac_save_ifs" | |
3411 | ;; | |
3412 | esac | |
3413 | else | |
3414 | enable_fast_install=yes | |
3415 | fi; | |
4ee9c684 | 3416 | |
90973b19 | 3417 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3418 | if test "${with_gnu_ld+set}" = set; then | |
3419 | withval="$with_gnu_ld" | |
3420 | test "$withval" = no || with_gnu_ld=yes | |
3421 | else | |
3422 | with_gnu_ld=no | |
3423 | fi; | |
3424 | ac_prog=ld | |
3425 | if test "$GCC" = yes; then | |
3426 | # Check if gcc -print-prog-name=ld gives a path. | |
3427 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3428 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3429 | case $host in | |
3430 | *-*-mingw*) | |
3431 | # gcc leaves a trailing carriage return which upsets mingw | |
3432 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3433 | *) | |
3434 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3435 | esac | |
3436 | case $ac_prog in | |
3437 | # Accept absolute paths. | |
3438 | [\\/]* | [A-Za-z]:[\\/]*) | |
3439 | re_direlt='/[^/][^/]*/\.\./' | |
3440 | # Canonicalize the path of ld | |
3441 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3442 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3443 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3444 | done | |
3445 | test -z "$LD" && LD="$ac_prog" | |
3446 | ;; | |
3447 | "") | |
3448 | # If it fails, then pretend we aren't using GCC. | |
3449 | ac_prog=ld | |
3450 | ;; | |
3451 | *) | |
3452 | # If it is relative, then search for the first ld in PATH. | |
3453 | with_gnu_ld=unknown | |
3454 | ;; | |
3455 | esac | |
3456 | elif test "$with_gnu_ld" = yes; then | |
3457 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3458 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3459 | else | |
3460 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3461 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3462 | fi | |
3463 | if test "${lt_cv_path_LD+set}" = set; then | |
3464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3465 | else | |
3466 | if test -z "$LD"; then | |
3467 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3468 | for ac_dir in $PATH; do | |
3469 | test -z "$ac_dir" && ac_dir=. | |
3470 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3471 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3472 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3473 | # but apparently some GNU ld's only accept -v. | |
3474 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3475 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3476 | test "$with_gnu_ld" != no && break | |
3477 | else | |
3478 | test "$with_gnu_ld" != yes && break | |
3479 | fi | |
3480 | fi | |
3481 | done | |
3482 | IFS="$ac_save_ifs" | |
3483 | else | |
3484 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3485 | fi | |
3486 | fi | |
3487 | ||
3488 | LD="$lt_cv_path_LD" | |
3489 | if test -n "$LD"; then | |
3490 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3491 | echo "${ECHO_T}$LD" >&6 | |
3492 | else | |
3493 | echo "$as_me:$LINENO: result: no" >&5 | |
3494 | echo "${ECHO_T}no" >&6 | |
3495 | fi | |
3496 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3497 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3498 | { (exit 1); exit 1; }; } | |
3499 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3500 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3501 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3503 | else | |
3504 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3505 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3506 | lt_cv_prog_gnu_ld=yes | |
3507 | else | |
3508 | lt_cv_prog_gnu_ld=no | |
3509 | fi | |
3510 | fi | |
3511 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3512 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3513 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3514 | ||
3515 | ||
3516 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3517 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3518 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3520 | else | |
3521 | lt_cv_ld_reload_flag='-r' | |
3522 | fi | |
3523 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3524 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3525 | reload_flag=$lt_cv_ld_reload_flag | |
3526 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3527 | ||
3528 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3529 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3530 | if test "${lt_cv_path_NM+set}" = set; then | |
3531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3532 | else | |
3533 | if test -n "$NM"; then | |
3534 | # Let the user override the test. | |
3535 | lt_cv_path_NM="$NM" | |
3536 | else | |
3537 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3538 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3539 | test -z "$ac_dir" && ac_dir=. | |
3540 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
3541 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
3542 | # Check to see if the nm accepts a BSD-compat flag. | |
3543 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3544 | # nm: unknown option "B" ignored | |
3545 | # Tru64's nm complains that /dev/null is an invalid object file | |
3546 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3547 | lt_cv_path_NM="$tmp_nm -B" | |
3548 | break | |
3549 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3550 | lt_cv_path_NM="$tmp_nm -p" | |
3551 | break | |
3552 | else | |
3553 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3554 | continue # so that we can try to find one that supports BSD flags | |
3555 | fi | |
3556 | fi | |
3557 | done | |
3558 | IFS="$ac_save_ifs" | |
3559 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3560 | fi | |
3561 | fi | |
3562 | ||
3563 | NM="$lt_cv_path_NM" | |
3564 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3565 | echo "${ECHO_T}$NM" >&6 | |
3566 | ||
3567 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3568 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3569 | LN_S=$as_ln_s | |
3570 | if test "$LN_S" = "ln -s"; then | |
3571 | echo "$as_me:$LINENO: result: yes" >&5 | |
3572 | echo "${ECHO_T}yes" >&6 | |
3573 | else | |
3574 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3575 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3576 | fi | |
3577 | ||
3578 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
3579 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3580 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3582 | else | |
3583 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3584 | lt_cv_file_magic_test_file= | |
3585 | lt_cv_deplibs_check_method='unknown' | |
3586 | # Need to set the preceding variable on all platforms that support | |
3587 | # interlibrary dependencies. | |
3588 | # 'none' -- dependencies not supported. | |
3589 | # `unknown' -- same as none, but documents that we really don't know. | |
3590 | # 'pass_all' -- all dependencies passed with no checks. | |
3591 | # 'test_compile' -- check by making test program. | |
3592 | # 'file_magic [regex]' -- check by looking for files in library path | |
3593 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3594 | # If you have `file' or equivalent on your system and you're not sure | |
3595 | # whether `pass_all' will *always* work, you probably want this one. | |
3596 | ||
3597 | case $host_os in | |
3598 | aix*) | |
3599 | lt_cv_deplibs_check_method=pass_all | |
3600 | ;; | |
3601 | ||
3602 | beos*) | |
3603 | lt_cv_deplibs_check_method=pass_all | |
3604 | ;; | |
3605 | ||
3606 | bsdi4*) | |
3607 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3608 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3609 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3610 | ;; | |
3611 | ||
3612 | cygwin* | mingw* |pw32*) | |
3613 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3614 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3615 | ;; | |
3616 | ||
3617 | darwin* | rhapsody*) | |
3618 | # this will be overwritten by pass_all, but leave it in just in case | |
3619 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3620 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3621 | case "$host_os" in | |
3622 | rhapsody* | darwin1.012) | |
3623 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3624 | ;; | |
3625 | *) # Darwin 1.3 on | |
3626 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3627 | ;; | |
3628 | esac | |
3629 | lt_cv_deplibs_check_method=pass_all | |
3630 | ;; | |
3631 | ||
3632 | freebsd* | kfreebsd*-gnu) | |
3633 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3634 | case $host_cpu in | |
3635 | i*86 ) | |
3636 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3637 | # Let's accept both of them until this is cleared up. | |
3638 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3639 | lt_cv_file_magic_cmd=/usr/bin/file | |
3640 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3641 | ;; | |
3642 | esac | |
3643 | else | |
3644 | lt_cv_deplibs_check_method=pass_all | |
3645 | fi | |
3646 | ;; | |
3647 | ||
3648 | gnu*) | |
3649 | lt_cv_deplibs_check_method=pass_all | |
3650 | ;; | |
3651 | ||
3652 | hpux10.20*|hpux11*) | |
3653 | case $host_cpu in | |
3654 | hppa*) | |
3655 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3656 | lt_cv_file_magic_cmd=/usr/bin/file | |
3657 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3658 | ;; | |
3659 | ia64*) | |
3660 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3661 | lt_cv_file_magic_cmd=/usr/bin/file | |
3662 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3663 | ;; | |
3664 | esac | |
3665 | ;; | |
3666 | ||
3667 | irix5* | irix6*) | |
3668 | case $host_os in | |
3669 | irix5*) | |
3670 | # this will be overridden with pass_all, but let us keep it just in case | |
3671 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3672 | ;; | |
3673 | *) | |
3674 | case $LD in | |
3675 | *-32|*"-32 ") libmagic=32-bit;; | |
3676 | *-n32|*"-n32 ") libmagic=N32;; | |
3677 | *-64|*"-64 ") libmagic=64-bit;; | |
3678 | *) libmagic=never-match;; | |
3679 | esac | |
3680 | # this will be overridden with pass_all, but let us keep it just in case | |
3681 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3682 | ;; | |
3683 | esac | |
3684 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3685 | lt_cv_deplibs_check_method=pass_all | |
3686 | ;; | |
3687 | ||
3688 | # This must be Linux ELF. | |
3689 | linux-gnu*) | |
7f93fe7a | 3690 | lt_cv_deplibs_check_method=pass_all |
90973b19 | 3691 | ;; |
3692 | ||
3693 | netbsd* | knetbsd*-gnu) | |
3694 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3695 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3696 | else | |
3697 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3698 | fi | |
3699 | ;; | |
3700 | ||
3701 | newsos6) | |
3702 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3703 | lt_cv_file_magic_cmd=/usr/bin/file | |
3704 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3705 | ;; | |
3706 | ||
3707 | osf3* | osf4* | osf5*) | |
3708 | # this will be overridden with pass_all, but let us keep it just in case | |
3709 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3710 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3711 | lt_cv_deplibs_check_method=pass_all | |
3712 | ;; | |
3713 | ||
3714 | sco3.2v5*) | |
3715 | lt_cv_deplibs_check_method=pass_all | |
3716 | ;; | |
3717 | ||
3718 | solaris*) | |
3719 | lt_cv_deplibs_check_method=pass_all | |
3720 | lt_cv_file_magic_test_file=/lib/libc.so | |
3721 | ;; | |
3722 | ||
3723 | sysv5uw[78]* | sysv4*uw2*) | |
3724 | lt_cv_deplibs_check_method=pass_all | |
3725 | ;; | |
3726 | ||
3727 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3728 | case $host_vendor in | |
3729 | ncr) | |
3730 | lt_cv_deplibs_check_method=pass_all | |
3731 | ;; | |
3732 | motorola) | |
3733 | 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]' | |
3734 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3735 | ;; | |
3736 | esac | |
3737 | ;; | |
3738 | esac | |
3739 | ||
3740 | fi | |
3741 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3742 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3743 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3744 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3745 | ||
3746 | ||
3747 | ||
3748 | ||
3749 | ||
3750 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3751 | ||
3bcf2cd5 | 3752 | # find the maximum length of command line arguments |
3753 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3754 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3755 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3757 | else | |
3758 | i=0 | |
3759 | teststring="ABCD" | |
3760 | ||
3761 | case $build_os in | |
3762 | msdosdjgpp*) | |
3763 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3764 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3765 | # during glob expansion). Even if it were fixed, the result of this | |
3766 | # check would be larger than it should be. | |
3767 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3768 | ;; | |
3769 | ||
3770 | cygwin* | mingw*) | |
3771 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3772 | # about 5 minutes as the teststring grows exponentially. | |
3773 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3774 | # you end up with a "frozen" computer, even though with patience | |
3775 | # the test eventually succeeds (with a max line length of 256k). | |
3776 | # Instead, let's just punt: use the minimum linelength reported by | |
3777 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3778 | lt_cv_sys_max_cmd_len=8192; | |
3779 | ;; | |
3780 | ||
3781 | amigaos*) | |
3782 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3783 | # So we just punt and use a minimum line length of 8192. | |
3784 | lt_cv_sys_max_cmd_len=8192; | |
3785 | ;; | |
3786 | ||
3787 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3788 | # This has been around since 386BSD, at least. Likely further. | |
3789 | if test -x /sbin/sysctl; then | |
3790 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
3791 | elif test -x /usr/sbin/sysctl; then | |
3792 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
3793 | else | |
3794 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
3795 | fi | |
3796 | # And add a safety zone | |
3797 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
3798 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
3799 | ;; | |
3800 | esac | |
3801 | ||
3802 | fi | |
3803 | ||
5f0a087e | 3804 | if test -n "$lt_cv_sys_max_cmd_len" ; then |
3bcf2cd5 | 3805 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
3806 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
3807 | else | |
3808 | echo "$as_me:$LINENO: result: none" >&5 | |
3809 | echo "${ECHO_T}none" >&6 | |
3810 | fi | |
3811 | ||
3812 | ||
90973b19 | 3813 | # Only perform the check for file, if the check method requires it |
3814 | case $deplibs_check_method in | |
3815 | file_magic*) | |
3816 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
3817 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
3818 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3819 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3821 | else | |
3822 | case $MAGIC_CMD in | |
3823 | /*) | |
3824 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3825 | ;; | |
3826 | ?:/*) | |
3827 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3828 | ;; | |
3829 | *) | |
3830 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3831 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3832 | ac_dummy="/usr/bin:$PATH" | |
3833 | for ac_dir in $ac_dummy; do | |
3834 | test -z "$ac_dir" && ac_dir=. | |
3835 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3836 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
3837 | if test -n "$file_magic_test_file"; then | |
3838 | case $deplibs_check_method in | |
3839 | "file_magic "*) | |
3840 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3841 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3842 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3843 | egrep "$file_magic_regex" > /dev/null; then | |
3844 | : | |
3845 | else | |
3846 | cat <<EOF 1>&2 | |
3847 | ||
3848 | *** Warning: the command libtool uses to detect shared libraries, | |
3849 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3850 | *** The result is that libtool may fail to recognize shared libraries | |
3851 | *** as such. This will affect the creation of libtool libraries that | |
3852 | *** depend on shared libraries, but programs linked with such libtool | |
3853 | *** libraries will work regardless of this problem. Nevertheless, you | |
3854 | *** may want to report the problem to your system manager and/or to | |
3855 | *** bug-libtool@gnu.org | |
3856 | ||
3857 | EOF | |
3858 | fi ;; | |
3859 | esac | |
3860 | fi | |
3861 | break | |
3862 | fi | |
3863 | done | |
3864 | IFS="$ac_save_ifs" | |
3865 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3866 | ;; | |
3867 | esac | |
3868 | fi | |
3869 | ||
3870 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3871 | if test -n "$MAGIC_CMD"; then | |
3872 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3873 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3874 | else | |
3875 | echo "$as_me:$LINENO: result: no" >&5 | |
3876 | echo "${ECHO_T}no" >&6 | |
3877 | fi | |
3878 | ||
3879 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
3880 | if test -n "$ac_tool_prefix"; then | |
3881 | echo "$as_me:$LINENO: checking for file" >&5 | |
3882 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3883 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3885 | else | |
3886 | case $MAGIC_CMD in | |
3887 | /*) | |
3888 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3889 | ;; | |
3890 | ?:/*) | |
3891 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3892 | ;; | |
3893 | *) | |
3894 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3895 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3896 | ac_dummy="/usr/bin:$PATH" | |
3897 | for ac_dir in $ac_dummy; do | |
3898 | test -z "$ac_dir" && ac_dir=. | |
3899 | if test -f $ac_dir/file; then | |
3900 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
3901 | if test -n "$file_magic_test_file"; then | |
3902 | case $deplibs_check_method in | |
3903 | "file_magic "*) | |
3904 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3905 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3906 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3907 | egrep "$file_magic_regex" > /dev/null; then | |
3908 | : | |
3909 | else | |
3910 | cat <<EOF 1>&2 | |
3911 | ||
3912 | *** Warning: the command libtool uses to detect shared libraries, | |
3913 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3914 | *** The result is that libtool may fail to recognize shared libraries | |
3915 | *** as such. This will affect the creation of libtool libraries that | |
3916 | *** depend on shared libraries, but programs linked with such libtool | |
3917 | *** libraries will work regardless of this problem. Nevertheless, you | |
3918 | *** may want to report the problem to your system manager and/or to | |
3919 | *** bug-libtool@gnu.org | |
3920 | ||
3921 | EOF | |
3922 | fi ;; | |
3923 | esac | |
3924 | fi | |
3925 | break | |
3926 | fi | |
3927 | done | |
3928 | IFS="$ac_save_ifs" | |
3929 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3930 | ;; | |
3931 | esac | |
3932 | fi | |
4ee9c684 | 3933 | |
90973b19 | 3934 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3935 | if test -n "$MAGIC_CMD"; then | |
3936 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3937 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
4ee9c684 | 3938 | else |
90973b19 | 3939 | echo "$as_me:$LINENO: result: no" >&5 |
3940 | echo "${ECHO_T}no" >&6 | |
3941 | fi | |
4ee9c684 | 3942 | |
90973b19 | 3943 | else |
3944 | MAGIC_CMD=: | |
3945 | fi | |
4ee9c684 | 3946 | fi |
4ee9c684 | 3947 | |
90973b19 | 3948 | fi |
3949 | ;; | |
3950 | esac | |
4ee9c684 | 3951 | |
90973b19 | 3952 | if test -n "$ac_tool_prefix"; then |
3953 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3954 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3955 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3956 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3957 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 3959 | else |
90973b19 | 3960 | if test -n "$RANLIB"; then |
3961 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3962 | else | |
3963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3964 | for as_dir in $PATH | |
3965 | do | |
3966 | IFS=$as_save_IFS | |
3967 | test -z "$as_dir" && as_dir=. | |
3968 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3969 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3970 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3971 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3972 | break 2 | |
3973 | fi | |
3974 | done | |
3975 | done | |
4ee9c684 | 3976 | |
90973b19 | 3977 | fi |
3978 | fi | |
3979 | RANLIB=$ac_cv_prog_RANLIB | |
3980 | if test -n "$RANLIB"; then | |
3981 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3982 | echo "${ECHO_T}$RANLIB" >&6 | |
3983 | else | |
3984 | echo "$as_me:$LINENO: result: no" >&5 | |
3985 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3986 | fi |
3987 | ||
90973b19 | 3988 | fi |
3989 | if test -z "$ac_cv_prog_RANLIB"; then | |
3990 | ac_ct_RANLIB=$RANLIB | |
3991 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3992 | set dummy ranlib; ac_word=$2 | |
3993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3995 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3997 | else | |
3998 | if test -n "$ac_ct_RANLIB"; then | |
3999 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4000 | else | |
4001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4002 | for as_dir in $PATH | |
4003 | do | |
4004 | IFS=$as_save_IFS | |
4005 | test -z "$as_dir" && as_dir=. | |
4006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4008 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4010 | break 2 | |
4011 | fi | |
4012 | done | |
4013 | done | |
4ee9c684 | 4014 | |
90973b19 | 4015 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
4016 | fi | |
4017 | fi | |
4018 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4019 | if test -n "$ac_ct_RANLIB"; then | |
4020 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4021 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4ee9c684 | 4022 | else |
90973b19 | 4023 | echo "$as_me:$LINENO: result: no" >&5 |
4024 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 4025 | fi |
4ee9c684 | 4026 | |
90973b19 | 4027 | RANLIB=$ac_ct_RANLIB |
4028 | else | |
4029 | RANLIB="$ac_cv_prog_RANLIB" | |
4ee9c684 | 4030 | fi |
4031 | ||
90973b19 | 4032 | if test -n "$ac_tool_prefix"; then |
4033 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4034 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4035 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4037 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 4039 | else |
90973b19 | 4040 | if test -n "$STRIP"; then |
4041 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4042 | else | |
4043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4044 | for as_dir in $PATH | |
4045 | do | |
4046 | IFS=$as_save_IFS | |
4047 | test -z "$as_dir" && as_dir=. | |
4048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4049 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4050 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4052 | break 2 | |
4053 | fi | |
4054 | done | |
4055 | done | |
4ee9c684 | 4056 | |
90973b19 | 4057 | fi |
4058 | fi | |
4059 | STRIP=$ac_cv_prog_STRIP | |
4060 | if test -n "$STRIP"; then | |
4061 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4062 | echo "${ECHO_T}$STRIP" >&6 | |
4ee9c684 | 4063 | else |
90973b19 | 4064 | echo "$as_me:$LINENO: result: no" >&5 |
4065 | echo "${ECHO_T}no" >&6 | |
4066 | fi | |
4ee9c684 | 4067 | |
4ee9c684 | 4068 | fi |
90973b19 | 4069 | if test -z "$ac_cv_prog_STRIP"; then |
4070 | ac_ct_STRIP=$STRIP | |
4071 | # Extract the first word of "strip", so it can be a program name with args. | |
4072 | set dummy strip; ac_word=$2 | |
4073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4075 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4077 | else | |
4078 | if test -n "$ac_ct_STRIP"; then | |
4079 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4080 | else | |
4081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4082 | for as_dir in $PATH | |
4083 | do | |
4084 | IFS=$as_save_IFS | |
4085 | test -z "$as_dir" && as_dir=. | |
4086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4088 | ac_cv_prog_ac_ct_STRIP="strip" | |
4089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4090 | break 2 | |
4091 | fi | |
4092 | done | |
4093 | done | |
4094 | ||
4095 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
4ee9c684 | 4096 | fi |
4097 | fi | |
90973b19 | 4098 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4099 | if test -n "$ac_ct_STRIP"; then | |
4100 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4101 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4102 | else | |
4103 | echo "$as_me:$LINENO: result: no" >&5 | |
4104 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 4105 | fi |
4ee9c684 | 4106 | |
90973b19 | 4107 | STRIP=$ac_ct_STRIP |
4108 | else | |
4109 | STRIP="$ac_cv_prog_STRIP" | |
4ee9c684 | 4110 | fi |
4111 | ||
4ee9c684 | 4112 | |
90973b19 | 4113 | # Check for any special flags to pass to ltconfig. |
4114 | libtool_flags="--cache-file=$cache_file" | |
4115 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4116 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4117 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
4118 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
4119 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
4ee9c684 | 4120 | |
4121 | ||
90973b19 | 4122 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4123 | if test "${enable_libtool_lock+set}" = set; then | |
4124 | enableval="$enable_libtool_lock" | |
4ee9c684 | 4125 | |
90973b19 | 4126 | fi; |
4127 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
4128 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
4ee9c684 | 4129 | |
4130 | ||
90973b19 | 4131 | # Check whether --with-pic or --without-pic was given. |
4132 | if test "${with_pic+set}" = set; then | |
4133 | withval="$with_pic" | |
4134 | pic_mode="$withval" | |
4ee9c684 | 4135 | else |
90973b19 | 4136 | pic_mode=default |
4137 | fi; | |
4138 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
4139 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
4ee9c684 | 4140 | |
90973b19 | 4141 | # Some flags need to be propagated to the compiler or linker for good |
4142 | # libtool support. | |
4143 | case $host in | |
4144 | *-*-irix6*) | |
4145 | # Find out which ABI we are using. | |
b56cb1ff | 4146 | echo '#line 4146 "configure"' > conftest.$ac_ext |
90973b19 | 4147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4148 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 4149 | ac_status=$? |
4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 4151 | (exit $ac_status); }; then |
4152 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4153 | case `/usr/bin/file conftest.$ac_objext` in | |
4154 | *32-bit*) | |
4155 | LD="${LD-ld} -melf32bsmip" | |
4156 | ;; | |
4157 | *N32*) | |
4158 | LD="${LD-ld} -melf32bmipn32" | |
4159 | ;; | |
4160 | *64-bit*) | |
4161 | LD="${LD-ld} -melf64bmip" | |
4162 | ;; | |
4163 | esac | |
4164 | else | |
4165 | case `/usr/bin/file conftest.$ac_objext` in | |
4166 | *32-bit*) | |
4167 | LD="${LD-ld} -32" | |
4168 | ;; | |
4169 | *N32*) | |
4170 | LD="${LD-ld} -n32" | |
4171 | ;; | |
4172 | *64-bit*) | |
4173 | LD="${LD-ld} -64" | |
4174 | ;; | |
4175 | esac | |
4176 | fi | |
4177 | fi | |
4178 | rm -rf conftest* | |
4179 | ;; | |
4ee9c684 | 4180 | |
90973b19 | 4181 | ia64-*-hpux*) |
4182 | # Find out which ABI we are using. | |
4183 | echo 'int i;' > conftest.$ac_ext | |
4184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4185 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 4186 | ac_status=$? |
4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 4188 | (exit $ac_status); }; then |
4189 | case "`/usr/bin/file conftest.o`" in | |
4190 | *ELF-32*) | |
4191 | HPUX_IA64_MODE="32" | |
4192 | ;; | |
4193 | *ELF-64*) | |
4194 | HPUX_IA64_MODE="64" | |
4195 | ;; | |
4196 | esac | |
4197 | fi | |
4198 | rm -rf conftest* | |
4199 | ;; | |
4ee9c684 | 4200 | |
90973b19 | 4201 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4202 | # Find out which ABI we are using. | |
4203 | echo 'int i;' > conftest.$ac_ext | |
4204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4205 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 4206 | ac_status=$? |
4ee9c684 | 4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
90973b19 | 4208 | (exit $ac_status); }; then |
4209 | case "`/usr/bin/file conftest.o`" in | |
4210 | *32-bit*) | |
4211 | case $host in | |
4212 | x86_64-*linux*) | |
4213 | LD="${LD-ld} -m elf_i386" | |
4214 | ;; | |
4215 | ppc64-*linux*|powerpc64-*linux*) | |
4216 | LD="${LD-ld} -m elf32ppclinux" | |
4217 | ;; | |
4218 | s390x-*linux*) | |
4219 | LD="${LD-ld} -m elf_s390" | |
4220 | ;; | |
4221 | sparc64-*linux*) | |
4222 | LD="${LD-ld} -m elf32_sparc" | |
4223 | ;; | |
4224 | esac | |
4225 | ;; | |
4226 | *64-bit*) | |
4227 | case $host in | |
4228 | x86_64-*linux*) | |
4229 | LD="${LD-ld} -m elf_x86_64" | |
4230 | ;; | |
4231 | ppc*-*linux*|powerpc*-*linux*) | |
4232 | LD="${LD-ld} -m elf64ppc" | |
4233 | ;; | |
4234 | s390*-*linux*) | |
4235 | LD="${LD-ld} -m elf64_s390" | |
4236 | ;; | |
4237 | sparc*-*linux*) | |
4238 | LD="${LD-ld} -m elf64_sparc" | |
4239 | ;; | |
4240 | esac | |
4241 | ;; | |
4242 | esac | |
4ee9c684 | 4243 | fi |
90973b19 | 4244 | rm -rf conftest* |
4245 | ;; | |
4ee9c684 | 4246 | |
90973b19 | 4247 | *-*-sco3.2v5*) |
4248 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4249 | SAVE_CFLAGS="$CFLAGS" | |
4250 | CFLAGS="$CFLAGS -belf" | |
4251 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4252 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4253 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4ee9c684 | 4254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4255 | else | |
4ee9c684 | 4256 | |
4ee9c684 | 4257 | |
90973b19 | 4258 | ac_ext=c |
4259 | ac_cpp='$CPP $CPPFLAGS' | |
4260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 4263 | |
b52ee437 | 4264 | if test x$gcc_no_link = xyes; then |
4265 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
4266 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
4267 | { (exit 1); exit 1; }; } | |
4268 | fi | |
4269 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 4270 | /* confdefs.h. */ |
4271 | _ACEOF | |
4272 | cat confdefs.h >>conftest.$ac_ext | |
4273 | cat >>conftest.$ac_ext <<_ACEOF | |
4274 | /* end confdefs.h. */ | |
4ee9c684 | 4275 | |
4276 | int | |
4277 | main () | |
4278 | { | |
90973b19 | 4279 | |
4ee9c684 | 4280 | ; |
4281 | return 0; | |
4282 | } | |
4283 | _ACEOF | |
4284 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4286 | (eval $ac_link) 2>conftest.er1 | |
4287 | ac_status=$? | |
4288 | grep -v '^ *+' conftest.er1 >conftest.err | |
4289 | rm -f conftest.er1 | |
4290 | cat conftest.err >&5 | |
4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4292 | (exit $ac_status); } && | |
b56cb1ff | 4293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 4294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4295 | (eval $ac_try) 2>&5 | |
4296 | ac_status=$? | |
4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4298 | (exit $ac_status); }; } && | |
4299 | { ac_try='test -s conftest$ac_exeext' | |
4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4301 | (eval $ac_try) 2>&5 | |
4302 | ac_status=$? | |
4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4304 | (exit $ac_status); }; }; then | |
90973b19 | 4305 | lt_cv_cc_needs_belf=yes |
4ee9c684 | 4306 | else |
4307 | echo "$as_me: failed program was:" >&5 | |
4308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4309 | ||
90973b19 | 4310 | lt_cv_cc_needs_belf=no |
4ee9c684 | 4311 | fi |
4312 | rm -f conftest.err conftest.$ac_objext \ | |
4313 | conftest$ac_exeext conftest.$ac_ext | |
90973b19 | 4314 | ac_ext=c |
4315 | ac_cpp='$CPP $CPPFLAGS' | |
4316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4319 | ||
4ee9c684 | 4320 | fi |
90973b19 | 4321 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4322 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4323 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4324 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4325 | CFLAGS="$SAVE_CFLAGS" | |
4326 | fi | |
4327 | ;; | |
4328 | ||
4329 | ||
4330 | esac | |
4331 | ||
4332 | ||
4333 | # Save cache, so that ltconfig can load it | |
4334 | cat >confcache <<\_ACEOF | |
4335 | # This file is a shell script that caches the results of configure | |
4336 | # tests run on this system so they can be shared between configure | |
4337 | # scripts and configure runs, see configure's option --config-cache. | |
4338 | # It is not useful on other systems. If it contains results you don't | |
4339 | # want to keep, you may remove or edit it. | |
4340 | # | |
4341 | # config.status only pays attention to the cache file if you give it | |
4342 | # the --recheck option to rerun configure. | |
4343 | # | |
4344 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4345 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4346 | # following values. | |
4347 | ||
4ee9c684 | 4348 | _ACEOF |
4349 | ||
90973b19 | 4350 | # The following way of writing the cache mishandles newlines in values, |
4351 | # but we know of no workaround that is simple, portable, and efficient. | |
4352 | # So, don't put newlines in cache variables' values. | |
4353 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4354 | # and sets the high bit in the cache file unless we assign to the vars. | |
4355 | { | |
4356 | (set) 2>&1 | | |
4357 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4358 | *ac_space=\ *) | |
4359 | # `set' does not quote correctly, so add quotes (double-quote | |
4360 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4361 | sed -n \ | |
4362 | "s/'/'\\\\''/g; | |
4363 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4364 | ;; | |
4365 | *) | |
4366 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4367 | sed -n \ | |
4368 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4369 | ;; | |
4370 | esac; | |
4371 | } | | |
4372 | sed ' | |
4373 | t clear | |
4374 | : clear | |
4375 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4376 | t end | |
4377 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4378 | : end' >>confcache | |
4379 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4380 | if test -w $cache_file; then | |
4381 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4382 | cat confcache >$cache_file | |
4383 | else | |
4384 | echo "not updating unwritable cache $cache_file" | |
4385 | fi | |
4ee9c684 | 4386 | fi |
90973b19 | 4387 | rm -f confcache |
4ee9c684 | 4388 | |
90973b19 | 4389 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
4390 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
4391 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4392 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4393 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4394 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4395 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
4396 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
4397 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
4398 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 | |
4399 | echo "$as_me: error: libtool configure failed" >&2;} | |
4400 | { (exit 1); exit 1; }; } | |
4401 | ||
4402 | # Reload cache, that may have been modified by ltconfig | |
4403 | if test -r "$cache_file"; then | |
4404 | # Some versions of bash will fail to source /dev/null (special | |
4405 | # files actually), so we avoid doing that. | |
4406 | if test -f "$cache_file"; then | |
4407 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4408 | echo "$as_me: loading cache $cache_file" >&6;} | |
4409 | case $cache_file in | |
4410 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4411 | *) . ./$cache_file;; | |
4412 | esac | |
4413 | fi | |
4414 | else | |
4415 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
4416 | echo "$as_me: creating cache $cache_file" >&6;} | |
4417 | >$cache_file | |
4418 | fi | |
4ee9c684 | 4419 | |
4ee9c684 | 4420 | |
90973b19 | 4421 | # This can be used to rebuild libtool when needed |
4422 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
4ee9c684 | 4423 | |
90973b19 | 4424 | # Always use our own libtool. |
4425 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4ee9c684 | 4426 | |
90973b19 | 4427 | # Redirect the config.log output again, so that the ltconfig log is not |
4428 | # clobbered by the next message. | |
4429 | exec 5>>./config.log | |
4ee9c684 | 4430 | |
4ee9c684 | 4431 | |
4ee9c684 | 4432 | |
4ee9c684 | 4433 | |
4ee9c684 | 4434 | |
4ee9c684 | 4435 | |
4ee9c684 | 4436 | |
4ee9c684 | 4437 | |
90973b19 | 4438 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
4439 | ||
4440 | # We need gfortran to compile parts of the library | |
6d73cceb | 4441 | #AC_PROG_FC(gfortran) |
4442 | FC="$GFORTRAN" | |
4443 | ac_ext=${FC_SRCEXT-f} | |
4444 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
4445 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
4446 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
90973b19 | 4447 | if test -n "$ac_tool_prefix"; then |
4448 | for ac_prog in gfortran | |
4449 | do | |
4450 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4451 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4452 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6d73cceb | 4454 | if test "${ac_cv_prog_FC+set}" = set; then |
90973b19 | 4455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4ee9c684 | 4456 | else |
6d73cceb | 4457 | if test -n "$FC"; then |
4458 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
90973b19 | 4459 | else |
4460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4461 | for as_dir in $PATH | |
4462 | do | |
4463 | IFS=$as_save_IFS | |
4464 | test -z "$as_dir" && as_dir=. | |
4465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4466 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6d73cceb | 4467 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
90973b19 | 4468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4469 | break 2 | |
4470 | fi | |
4471 | done | |
4472 | done | |
4ee9c684 | 4473 | |
4ee9c684 | 4474 | fi |
4ee9c684 | 4475 | fi |
6d73cceb | 4476 | FC=$ac_cv_prog_FC |
4477 | if test -n "$FC"; then | |
4478 | echo "$as_me:$LINENO: result: $FC" >&5 | |
4479 | echo "${ECHO_T}$FC" >&6 | |
90973b19 | 4480 | else |
4481 | echo "$as_me:$LINENO: result: no" >&5 | |
4482 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 4483 | fi |
4ee9c684 | 4484 | |
6d73cceb | 4485 | test -n "$FC" && break |
90973b19 | 4486 | done |
4487 | fi | |
6d73cceb | 4488 | if test -z "$FC"; then |
4489 | ac_ct_FC=$FC | |
90973b19 | 4490 | for ac_prog in gfortran |
4491 | do | |
4492 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4493 | set dummy $ac_prog; ac_word=$2 | |
4494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6d73cceb | 4496 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
90973b19 | 4497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4498 | else | |
6d73cceb | 4499 | if test -n "$ac_ct_FC"; then |
4500 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
90973b19 | 4501 | else |
4502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4503 | for as_dir in $PATH | |
4504 | do | |
4505 | IFS=$as_save_IFS | |
4506 | test -z "$as_dir" && as_dir=. | |
4507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6d73cceb | 4509 | ac_cv_prog_ac_ct_FC="$ac_prog" |
90973b19 | 4510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4511 | break 2 | |
4512 | fi | |
4513 | done | |
4514 | done | |
4ee9c684 | 4515 | |
4516 | fi | |
90973b19 | 4517 | fi |
6d73cceb | 4518 | ac_ct_FC=$ac_cv_prog_ac_ct_FC |
4519 | if test -n "$ac_ct_FC"; then | |
4520 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
4521 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
90973b19 | 4522 | else |
4523 | echo "$as_me:$LINENO: result: no" >&5 | |
4524 | echo "${ECHO_T}no" >&6 | |
4525 | fi | |
4526 | ||
6d73cceb | 4527 | test -n "$ac_ct_FC" && break |
90973b19 | 4528 | done |
4529 | ||
6d73cceb | 4530 | FC=$ac_ct_FC |
90973b19 | 4531 | fi |
4532 | ||
4533 | ||
4534 | # Provide some information about the compiler. | |
b56cb1ff | 4535 | echo "$as_me:4535:" \ |
6d73cceb | 4536 | "checking for Fortran compiler version" >&5 |
90973b19 | 4537 | ac_compiler=`set X $ac_compile; echo $2` |
4538 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4539 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4540 | ac_status=$? | |
4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4542 | (exit $ac_status); } | |
4543 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4544 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4545 | ac_status=$? | |
4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4547 | (exit $ac_status); } | |
4548 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4549 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4550 | ac_status=$? | |
4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4552 | (exit $ac_status); } | |
4553 | rm -f a.out | |
4ee9c684 | 4554 | |
90973b19 | 4555 | # If we don't use `.F' as extension, the preprocessor is not run on the |
4556 | # input file. (Note that this only needs to work for GNU compilers.) | |
4557 | ac_save_ext=$ac_ext | |
4558 | ac_ext=F | |
6d73cceb | 4559 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
4560 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
4561 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
4ee9c684 | 4562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4563 | else | |
4564 | cat >conftest.$ac_ext <<_ACEOF | |
90973b19 | 4565 | program main |
4566 | #ifndef __GNUC__ | |
4567 | choke me | |
4568 | #endif | |
4569 | ||
4570 | end | |
4ee9c684 | 4571 | _ACEOF |
4572 | rm -f conftest.$ac_objext | |
4573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4574 | (eval $ac_compile) 2>conftest.er1 | |
4575 | ac_status=$? | |
4576 | grep -v '^ *+' conftest.er1 >conftest.err | |
4577 | rm -f conftest.er1 | |
4578 | cat conftest.err >&5 | |
4579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4580 | (exit $ac_status); } && | |
b56cb1ff | 4581 | { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 4582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4583 | (eval $ac_try) 2>&5 | |
4584 | ac_status=$? | |
4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4586 | (exit $ac_status); }; } && | |
4587 | { ac_try='test -s conftest.$ac_objext' | |
4588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4589 | (eval $ac_try) 2>&5 | |
4590 | ac_status=$? | |
4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4592 | (exit $ac_status); }; }; then | |
90973b19 | 4593 | ac_compiler_gnu=yes |
4ee9c684 | 4594 | else |
4595 | echo "$as_me: failed program was:" >&5 | |
4596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4597 | ||
90973b19 | 4598 | ac_compiler_gnu=no |
4ee9c684 | 4599 | fi |
4600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6d73cceb | 4601 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
4ee9c684 | 4602 | |
4603 | fi | |
6d73cceb | 4604 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
4605 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
90973b19 | 4606 | ac_ext=$ac_save_ext |
6d73cceb | 4607 | ac_test_FFLAGS=${FCFLAGS+set} |
4608 | ac_save_FFLAGS=$FCFLAGS | |
4609 | FCFLAGS= | |
4610 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
4611 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
4612 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
4ee9c684 | 4613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4614 | else | |
6d73cceb | 4615 | FCFLAGS=-g |
90973b19 | 4616 | cat >conftest.$ac_ext <<_ACEOF |
4617 | program main | |
4ee9c684 | 4618 | |
90973b19 | 4619 | end |
4ee9c684 | 4620 | _ACEOF |
4621 | rm -f conftest.$ac_objext | |
4622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4623 | (eval $ac_compile) 2>conftest.er1 | |
4624 | ac_status=$? | |
4625 | grep -v '^ *+' conftest.er1 >conftest.err | |
4626 | rm -f conftest.er1 | |
4627 | cat conftest.err >&5 | |
4628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4629 | (exit $ac_status); } && | |
b56cb1ff | 4630 | { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 4631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4632 | (eval $ac_try) 2>&5 | |
4633 | ac_status=$? | |
4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4635 | (exit $ac_status); }; } && | |
4636 | { ac_try='test -s conftest.$ac_objext' | |
4637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4638 | (eval $ac_try) 2>&5 | |
4639 | ac_status=$? | |
4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4641 | (exit $ac_status); }; }; then | |
6d73cceb | 4642 | ac_cv_prog_fc_g=yes |
4ee9c684 | 4643 | else |
4644 | echo "$as_me: failed program was:" >&5 | |
4645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4646 | ||
6d73cceb | 4647 | ac_cv_prog_fc_g=no |
4ee9c684 | 4648 | fi |
4649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4650 | ||
4ee9c684 | 4651 | fi |
6d73cceb | 4652 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
4653 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
90973b19 | 4654 | if test "$ac_test_FFLAGS" = set; then |
6d73cceb | 4655 | FCFLAGS=$ac_save_FFLAGS |
4656 | elif test $ac_cv_prog_fc_g = yes; then | |
4657 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
4658 | FCFLAGS="-g -O2" | |
90973b19 | 4659 | else |
6d73cceb | 4660 | FCFLAGS="-g" |
90973b19 | 4661 | fi |
4662 | else | |
6d73cceb | 4663 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4664 | FCFLAGS="-O2" | |
90973b19 | 4665 | else |
6d73cceb | 4666 | FCFLAGS= |
90973b19 | 4667 | fi |
4ee9c684 | 4668 | fi |
4669 | ||
90973b19 | 4670 | ac_ext=c |
4671 | ac_cpp='$CPP $CPPFLAGS' | |
4672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 4675 | |
4ee9c684 | 4676 | |
9cf1c244 | 4677 | # extra LD Flags which are required for targets |
4678 | case "${host}" in | |
4679 | *-darwin*) | |
4680 | # Darwin needs -single_module when linking libgfortran | |
4681 | extra_ldflags_libgfortran=-Wl,-single_module | |
4682 | ;; | |
4683 | esac | |
4684 | ||
4685 | ||
90e67cff | 4686 | # Check whether --enable-largefile or --disable-largefile was given. |
4687 | if test "${enable_largefile+set}" = set; then | |
4688 | enableval="$enable_largefile" | |
4689 | ||
4690 | fi; | |
4691 | if test "$enable_largefile" != no; then | |
4692 | ||
4693 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
4694 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
4695 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4697 | else | |
4698 | ac_cv_sys_largefile_CC=no | |
4699 | if test "$GCC" != yes; then | |
4700 | ac_save_CC=$CC | |
4701 | while :; do | |
4702 | # IRIX 6.2 and later do not support large files by default, | |
4703 | # so use the C compiler's -n32 option if that helps. | |
4704 | cat >conftest.$ac_ext <<_ACEOF | |
4705 | /* confdefs.h. */ | |
4706 | _ACEOF | |
4707 | cat confdefs.h >>conftest.$ac_ext | |
4708 | cat >>conftest.$ac_ext <<_ACEOF | |
4709 | /* end confdefs.h. */ | |
4710 | #include <sys/types.h> | |
4711 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4712 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4713 | since some C++ compilers masquerading as C compilers | |
4714 | incorrectly reject 9223372036854775807. */ | |
4715 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4716 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4717 | && LARGE_OFF_T % 2147483647 == 1) | |
4718 | ? 1 : -1]; | |
4719 | int | |
4720 | main () | |
4721 | { | |
4722 | ||
4723 | ; | |
4724 | return 0; | |
4725 | } | |
4726 | _ACEOF | |
4727 | rm -f conftest.$ac_objext | |
4728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4729 | (eval $ac_compile) 2>conftest.er1 | |
4730 | ac_status=$? | |
4731 | grep -v '^ *+' conftest.er1 >conftest.err | |
4732 | rm -f conftest.er1 | |
4733 | cat conftest.err >&5 | |
4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4735 | (exit $ac_status); } && | |
b56cb1ff | 4736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90e67cff | 4737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4738 | (eval $ac_try) 2>&5 | |
4739 | ac_status=$? | |
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4741 | (exit $ac_status); }; } && | |
4742 | { ac_try='test -s conftest.$ac_objext' | |
4743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4744 | (eval $ac_try) 2>&5 | |
4745 | ac_status=$? | |
4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4747 | (exit $ac_status); }; }; then | |
4748 | break | |
4749 | else | |
4750 | echo "$as_me: failed program was:" >&5 | |
4751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4752 | ||
4753 | fi | |
4754 | rm -f conftest.err conftest.$ac_objext | |
4755 | CC="$CC -n32" | |
4756 | rm -f conftest.$ac_objext | |
4757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4758 | (eval $ac_compile) 2>conftest.er1 | |
4759 | ac_status=$? | |
4760 | grep -v '^ *+' conftest.er1 >conftest.err | |
4761 | rm -f conftest.er1 | |
4762 | cat conftest.err >&5 | |
4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4764 | (exit $ac_status); } && | |
b56cb1ff | 4765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90e67cff | 4766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4767 | (eval $ac_try) 2>&5 | |
4768 | ac_status=$? | |
4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4770 | (exit $ac_status); }; } && | |
4771 | { ac_try='test -s conftest.$ac_objext' | |
4772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4773 | (eval $ac_try) 2>&5 | |
4774 | ac_status=$? | |
4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4776 | (exit $ac_status); }; }; then | |
4777 | ac_cv_sys_largefile_CC=' -n32'; break | |
4778 | else | |
4779 | echo "$as_me: failed program was:" >&5 | |
4780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4781 | ||
4782 | fi | |
4783 | rm -f conftest.err conftest.$ac_objext | |
4784 | break | |
4785 | done | |
4786 | CC=$ac_save_CC | |
4787 | rm -f conftest.$ac_ext | |
4788 | fi | |
4789 | fi | |
4790 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
4791 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
4792 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4793 | CC=$CC$ac_cv_sys_largefile_CC | |
4794 | fi | |
4795 | ||
4796 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4797 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
4798 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4800 | else | |
4801 | while :; do | |
4802 | ac_cv_sys_file_offset_bits=no | |
4803 | cat >conftest.$ac_ext <<_ACEOF | |
4804 | /* confdefs.h. */ | |
4805 | _ACEOF | |
4806 | cat confdefs.h >>conftest.$ac_ext | |
4807 | cat >>conftest.$ac_ext <<_ACEOF | |
4808 | /* end confdefs.h. */ | |
4809 | #include <sys/types.h> | |
4810 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4811 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4812 | since some C++ compilers masquerading as C compilers | |
4813 | incorrectly reject 9223372036854775807. */ | |
4814 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4815 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4816 | && LARGE_OFF_T % 2147483647 == 1) | |
4817 | ? 1 : -1]; | |
4818 | int | |
4819 | main () | |
4820 | { | |
4821 | ||
4822 | ; | |
4823 | return 0; | |
4824 | } | |
4825 | _ACEOF | |
4826 | rm -f conftest.$ac_objext | |
4827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4828 | (eval $ac_compile) 2>conftest.er1 | |
4829 | ac_status=$? | |
4830 | grep -v '^ *+' conftest.er1 >conftest.err | |
4831 | rm -f conftest.er1 | |
4832 | cat conftest.err >&5 | |
4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4834 | (exit $ac_status); } && | |
b56cb1ff | 4835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90e67cff | 4836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4837 | (eval $ac_try) 2>&5 | |
4838 | ac_status=$? | |
4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4840 | (exit $ac_status); }; } && | |
4841 | { ac_try='test -s conftest.$ac_objext' | |
4842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4843 | (eval $ac_try) 2>&5 | |
4844 | ac_status=$? | |
4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4846 | (exit $ac_status); }; }; then | |
4847 | break | |
4848 | else | |
4849 | echo "$as_me: failed program was:" >&5 | |
4850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4851 | ||
4852 | fi | |
4853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4854 | cat >conftest.$ac_ext <<_ACEOF | |
4855 | /* confdefs.h. */ | |
4856 | _ACEOF | |
4857 | cat confdefs.h >>conftest.$ac_ext | |
4858 | cat >>conftest.$ac_ext <<_ACEOF | |
4859 | /* end confdefs.h. */ | |
4860 | #define _FILE_OFFSET_BITS 64 | |
4861 | #include <sys/types.h> | |
4862 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4863 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4864 | since some C++ compilers masquerading as C compilers | |
4865 | incorrectly reject 9223372036854775807. */ | |
4866 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4867 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4868 | && LARGE_OFF_T % 2147483647 == 1) | |
4869 | ? 1 : -1]; | |
4870 | int | |
4871 | main () | |
4872 | { | |
4873 | ||
4874 | ; | |
4875 | return 0; | |
4876 | } | |
4877 | _ACEOF | |
4878 | rm -f conftest.$ac_objext | |
4879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4880 | (eval $ac_compile) 2>conftest.er1 | |
4881 | ac_status=$? | |
4882 | grep -v '^ *+' conftest.er1 >conftest.err | |
4883 | rm -f conftest.er1 | |
4884 | cat conftest.err >&5 | |
4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4886 | (exit $ac_status); } && | |
b56cb1ff | 4887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90e67cff | 4888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4889 | (eval $ac_try) 2>&5 | |
4890 | ac_status=$? | |
4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4892 | (exit $ac_status); }; } && | |
4893 | { ac_try='test -s conftest.$ac_objext' | |
4894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4895 | (eval $ac_try) 2>&5 | |
4896 | ac_status=$? | |
4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4898 | (exit $ac_status); }; }; then | |
4899 | ac_cv_sys_file_offset_bits=64; break | |
4900 | else | |
4901 | echo "$as_me: failed program was:" >&5 | |
4902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4903 | ||
4904 | fi | |
4905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4906 | break | |
4907 | done | |
4908 | fi | |
4909 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
4910 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
4911 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
4912 | ||
4913 | cat >>confdefs.h <<_ACEOF | |
4914 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4915 | _ACEOF | |
4916 | ||
4917 | fi | |
4918 | rm -f conftest* | |
4919 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4920 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
4921 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4923 | else | |
4924 | while :; do | |
4925 | ac_cv_sys_large_files=no | |
4926 | cat >conftest.$ac_ext <<_ACEOF | |
4927 | /* confdefs.h. */ | |
4928 | _ACEOF | |
4929 | cat confdefs.h >>conftest.$ac_ext | |
4930 | cat >>conftest.$ac_ext <<_ACEOF | |
4931 | /* end confdefs.h. */ | |
4932 | #include <sys/types.h> | |
4933 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4934 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4935 | since some C++ compilers masquerading as C compilers | |
4936 | incorrectly reject 9223372036854775807. */ | |
4937 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4938 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4939 | && LARGE_OFF_T % 2147483647 == 1) | |
4940 | ? 1 : -1]; | |
4941 | int | |
4942 | main () | |
4943 | { | |
4944 | ||
4945 | ; | |
4946 | return 0; | |
4947 | } | |
4948 | _ACEOF | |
4949 | rm -f conftest.$ac_objext | |
4950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4951 | (eval $ac_compile) 2>conftest.er1 | |
4952 | ac_status=$? | |
4953 | grep -v '^ *+' conftest.er1 >conftest.err | |
4954 | rm -f conftest.er1 | |
4955 | cat conftest.err >&5 | |
4956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4957 | (exit $ac_status); } && | |
b56cb1ff | 4958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90e67cff | 4959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4960 | (eval $ac_try) 2>&5 | |
4961 | ac_status=$? | |
4962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4963 | (exit $ac_status); }; } && | |
4964 | { ac_try='test -s conftest.$ac_objext' | |
4965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4966 | (eval $ac_try) 2>&5 | |
4967 | ac_status=$? | |
4968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4969 | (exit $ac_status); }; }; then | |
4970 | break | |
4971 | else | |
4972 | echo "$as_me: failed program was:" >&5 | |
4973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4974 | ||
4975 | fi | |
4976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4977 | cat >conftest.$ac_ext <<_ACEOF | |
4978 | /* confdefs.h. */ | |
4979 | _ACEOF | |
4980 | cat confdefs.h >>conftest.$ac_ext | |
4981 | cat >>conftest.$ac_ext <<_ACEOF | |
4982 | /* end confdefs.h. */ | |
4983 | #define _LARGE_FILES 1 | |
4984 | #include <sys/types.h> | |
4985 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4986 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4987 | since some C++ compilers masquerading as C compilers | |
4988 | incorrectly reject 9223372036854775807. */ | |
4989 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4990 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4991 | && LARGE_OFF_T % 2147483647 == 1) | |
4992 | ? 1 : -1]; | |
4993 | int | |
4994 | main () | |
4995 | { | |
4996 | ||
4997 | ; | |
4998 | return 0; | |
4999 | } | |
5000 | _ACEOF | |
5001 | rm -f conftest.$ac_objext | |
5002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5003 | (eval $ac_compile) 2>conftest.er1 | |
5004 | ac_status=$? | |
5005 | grep -v '^ *+' conftest.er1 >conftest.err | |
5006 | rm -f conftest.er1 | |
5007 | cat conftest.err >&5 | |
5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5009 | (exit $ac_status); } && | |
b56cb1ff | 5010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90e67cff | 5011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5012 | (eval $ac_try) 2>&5 | |
5013 | ac_status=$? | |
5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5015 | (exit $ac_status); }; } && | |
5016 | { ac_try='test -s conftest.$ac_objext' | |
5017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5018 | (eval $ac_try) 2>&5 | |
5019 | ac_status=$? | |
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5021 | (exit $ac_status); }; }; then | |
5022 | ac_cv_sys_large_files=1; break | |
5023 | else | |
5024 | echo "$as_me: failed program was:" >&5 | |
5025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5026 | ||
5027 | fi | |
5028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5029 | break | |
5030 | done | |
5031 | fi | |
5032 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
5033 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
5034 | if test "$ac_cv_sys_large_files" != no; then | |
5035 | ||
5036 | cat >>confdefs.h <<_ACEOF | |
5037 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5038 | _ACEOF | |
5039 | ||
5040 | fi | |
5041 | rm -f conftest* | |
5042 | fi | |
5043 | ||
b52ee437 | 5044 | if test x$gcc_no_link = xyes; then |
5045 | if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then | |
5046 | ac_cv_func_mmap_fixed_mapped=no | |
5047 | fi | |
5048 | fi | |
5049 | if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then | |
5050 | ac_ext=c | |
90973b19 | 5051 | ac_cpp='$CPP $CPPFLAGS' |
5052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5055 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5056 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5057 | # On Suns, sometimes $CPP names a directory. | |
5058 | if test -n "$CPP" && test -d "$CPP"; then | |
5059 | CPP= | |
4ee9c684 | 5060 | fi |
90973b19 | 5061 | if test -z "$CPP"; then |
5062 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 5064 | else |
90973b19 | 5065 | # Double quotes because CPP needs to be expanded |
5066 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5067 | do | |
5068 | ac_preproc_ok=false | |
5069 | for ac_c_preproc_warn_flag in '' yes | |
5070 | do | |
5071 | # Use a header file that comes with gcc, so configuring glibc | |
5072 | # with a fresh cross-compiler works. | |
5073 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5074 | # <limits.h> exists even on freestanding compilers. | |
5075 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5076 | # not just through cpp. "Syntax error" is here to catch this case. | |
4ee9c684 | 5077 | cat >conftest.$ac_ext <<_ACEOF |
5078 | /* confdefs.h. */ | |
5079 | _ACEOF | |
5080 | cat confdefs.h >>conftest.$ac_ext | |
5081 | cat >>conftest.$ac_ext <<_ACEOF | |
5082 | /* end confdefs.h. */ | |
90973b19 | 5083 | #ifdef __STDC__ |
5084 | # include <limits.h> | |
4ee9c684 | 5085 | #else |
90973b19 | 5086 | # include <assert.h> |
4ee9c684 | 5087 | #endif |
90973b19 | 5088 | Syntax error |
4ee9c684 | 5089 | _ACEOF |
90973b19 | 5090 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5091 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4ee9c684 | 5092 | ac_status=$? |
90973b19 | 5093 | grep -v '^ *+' conftest.er1 >conftest.err |
5094 | rm -f conftest.er1 | |
5095 | cat conftest.err >&5 | |
4ee9c684 | 5096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
90973b19 | 5097 | (exit $ac_status); } >/dev/null; then |
5098 | if test -s conftest.err; then | |
5099 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5100 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5101 | else | |
5102 | ac_cpp_err= | |
5103 | fi | |
5104 | else | |
5105 | ac_cpp_err=yes | |
5106 | fi | |
5107 | if test -z "$ac_cpp_err"; then | |
4ee9c684 | 5108 | : |
5109 | else | |
90973b19 | 5110 | echo "$as_me: failed program was:" >&5 |
4ee9c684 | 5111 | sed 's/^/| /' conftest.$ac_ext >&5 |
5112 | ||
90973b19 | 5113 | # Broken: fails on valid input. |
5114 | continue | |
4ee9c684 | 5115 | fi |
90973b19 | 5116 | rm -f conftest.err conftest.$ac_ext |
4ee9c684 | 5117 | |
90973b19 | 5118 | # OK, works on sane cases. Now check whether non-existent headers |
5119 | # can be detected and how. | |
5120 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 5121 | /* confdefs.h. */ |
5122 | _ACEOF | |
5123 | cat confdefs.h >>conftest.$ac_ext | |
5124 | cat >>conftest.$ac_ext <<_ACEOF | |
5125 | /* end confdefs.h. */ | |
90973b19 | 5126 | #include <ac_nonexistent.h> |
4ee9c684 | 5127 | _ACEOF |
90973b19 | 5128 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5129 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4ee9c684 | 5130 | ac_status=$? |
5131 | grep -v '^ *+' conftest.er1 >conftest.err | |
5132 | rm -f conftest.er1 | |
5133 | cat conftest.err >&5 | |
5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 5135 | (exit $ac_status); } >/dev/null; then |
5136 | if test -s conftest.err; then | |
5137 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5138 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5139 | else | |
5140 | ac_cpp_err= | |
5141 | fi | |
5142 | else | |
5143 | ac_cpp_err=yes | |
5144 | fi | |
5145 | if test -z "$ac_cpp_err"; then | |
5146 | # Broken: success on invalid input. | |
5147 | continue | |
4ee9c684 | 5148 | else |
5149 | echo "$as_me: failed program was:" >&5 | |
5150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5151 | ||
90973b19 | 5152 | # Passes both tests. |
5153 | ac_preproc_ok=: | |
5154 | break | |
4ee9c684 | 5155 | fi |
90973b19 | 5156 | rm -f conftest.err conftest.$ac_ext |
4ee9c684 | 5157 | |
90973b19 | 5158 | done |
5159 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5160 | rm -f conftest.err conftest.$ac_ext | |
5161 | if $ac_preproc_ok; then | |
5162 | break | |
5163 | fi | |
5164 | ||
5165 | done | |
5166 | ac_cv_prog_CPP=$CPP | |
5167 | ||
5168 | fi | |
5169 | CPP=$ac_cv_prog_CPP | |
5170 | else | |
5171 | ac_cv_prog_CPP=$CPP | |
5172 | fi | |
5173 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5174 | echo "${ECHO_T}$CPP" >&6 | |
5175 | ac_preproc_ok=false | |
5176 | for ac_c_preproc_warn_flag in '' yes | |
5177 | do | |
5178 | # Use a header file that comes with gcc, so configuring glibc | |
5179 | # with a fresh cross-compiler works. | |
5180 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5181 | # <limits.h> exists even on freestanding compilers. | |
5182 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5183 | # not just through cpp. "Syntax error" is here to catch this case. | |
5184 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 5185 | /* confdefs.h. */ |
5186 | _ACEOF | |
5187 | cat confdefs.h >>conftest.$ac_ext | |
5188 | cat >>conftest.$ac_ext <<_ACEOF | |
5189 | /* end confdefs.h. */ | |
90973b19 | 5190 | #ifdef __STDC__ |
5191 | # include <limits.h> | |
5192 | #else | |
5193 | # include <assert.h> | |
5194 | #endif | |
5195 | Syntax error | |
4ee9c684 | 5196 | _ACEOF |
5197 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5198 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5199 | ac_status=$? | |
5200 | grep -v '^ *+' conftest.er1 >conftest.err | |
5201 | rm -f conftest.er1 | |
5202 | cat conftest.err >&5 | |
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5204 | (exit $ac_status); } >/dev/null; then | |
5205 | if test -s conftest.err; then | |
5206 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5207 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5208 | else | |
5209 | ac_cpp_err= | |
5210 | fi | |
5211 | else | |
5212 | ac_cpp_err=yes | |
5213 | fi | |
5214 | if test -z "$ac_cpp_err"; then | |
90973b19 | 5215 | : |
4ee9c684 | 5216 | else |
5217 | echo "$as_me: failed program was:" >&5 | |
5218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5219 | ||
90973b19 | 5220 | # Broken: fails on valid input. |
5221 | continue | |
4ee9c684 | 5222 | fi |
5223 | rm -f conftest.err conftest.$ac_ext | |
4ee9c684 | 5224 | |
90973b19 | 5225 | # OK, works on sane cases. Now check whether non-existent headers |
5226 | # can be detected and how. | |
5227 | cat >conftest.$ac_ext <<_ACEOF | |
5228 | /* confdefs.h. */ | |
5229 | _ACEOF | |
5230 | cat confdefs.h >>conftest.$ac_ext | |
5231 | cat >>conftest.$ac_ext <<_ACEOF | |
5232 | /* end confdefs.h. */ | |
5233 | #include <ac_nonexistent.h> | |
4ee9c684 | 5234 | _ACEOF |
90973b19 | 5235 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5236 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5237 | ac_status=$? | |
5238 | grep -v '^ *+' conftest.er1 >conftest.err | |
5239 | rm -f conftest.er1 | |
5240 | cat conftest.err >&5 | |
5241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5242 | (exit $ac_status); } >/dev/null; then | |
5243 | if test -s conftest.err; then | |
5244 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5245 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5246 | else | |
5247 | ac_cpp_err= | |
5248 | fi | |
5249 | else | |
5250 | ac_cpp_err=yes | |
5251 | fi | |
5252 | if test -z "$ac_cpp_err"; then | |
5253 | # Broken: success on invalid input. | |
5254 | continue | |
5255 | else | |
5256 | echo "$as_me: failed program was:" >&5 | |
5257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 5258 | |
90973b19 | 5259 | # Passes both tests. |
5260 | ac_preproc_ok=: | |
5261 | break | |
4ee9c684 | 5262 | fi |
90973b19 | 5263 | rm -f conftest.err conftest.$ac_ext |
4ee9c684 | 5264 | |
5265 | done | |
90973b19 | 5266 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5267 | rm -f conftest.err conftest.$ac_ext | |
5268 | if $ac_preproc_ok; then | |
5269 | : | |
5270 | else | |
5271 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5272 | See \`config.log' for more details." >&5 | |
5273 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5274 | See \`config.log' for more details." >&2;} | |
5275 | { (exit 1); exit 1; }; } | |
5276 | fi | |
4ee9c684 | 5277 | |
90973b19 | 5278 | ac_ext=c |
5279 | ac_cpp='$CPP $CPPFLAGS' | |
5280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 5283 | |
5284 | ||
90973b19 | 5285 | echo "$as_me:$LINENO: checking for egrep" >&5 |
5286 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5287 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5289 | else | |
5290 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5291 | then ac_cv_prog_egrep='grep -E' | |
5292 | else ac_cv_prog_egrep='egrep' | |
5293 | fi | |
5294 | fi | |
5295 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5296 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5297 | EGREP=$ac_cv_prog_egrep | |
4ee9c684 | 5298 | |
5299 | ||
90973b19 | 5300 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5301 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5302 | if test "${ac_cv_header_stdc+set}" = set; then | |
4ee9c684 | 5303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4ee9c684 | 5304 | else |
90973b19 | 5305 | cat >conftest.$ac_ext <<_ACEOF |
4ee9c684 | 5306 | /* confdefs.h. */ |
5307 | _ACEOF | |
5308 | cat confdefs.h >>conftest.$ac_ext | |
5309 | cat >>conftest.$ac_ext <<_ACEOF | |
5310 | /* end confdefs.h. */ | |
90973b19 | 5311 | #include <stdlib.h> |
5312 | #include <stdarg.h> | |
5313 | #include <string.h> | |
5314 | #include <float.h> | |
5315 | ||
5316 | int | |
5317 | main () | |
5318 | { | |
5319 | ||
5320 | ; | |
5321 | return 0; | |
5322 | } | |
4ee9c684 | 5323 | _ACEOF |
5324 | rm -f conftest.$ac_objext | |
5325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5326 | (eval $ac_compile) 2>conftest.er1 | |
5327 | ac_status=$? | |
5328 | grep -v '^ *+' conftest.er1 >conftest.err | |
5329 | rm -f conftest.er1 | |
5330 | cat conftest.err >&5 | |
5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5332 | (exit $ac_status); } && | |
b56cb1ff | 5333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 5334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5335 | (eval $ac_try) 2>&5 | |
5336 | ac_status=$? | |
5337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5338 | (exit $ac_status); }; } && | |
5339 | { ac_try='test -s conftest.$ac_objext' | |
5340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5341 | (eval $ac_try) 2>&5 | |
5342 | ac_status=$? | |
5343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5344 | (exit $ac_status); }; }; then | |
90973b19 | 5345 | ac_cv_header_stdc=yes |
4ee9c684 | 5346 | else |
5347 | echo "$as_me: failed program was:" >&5 | |
5348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5349 | ||
90973b19 | 5350 | ac_cv_header_stdc=no |
4ee9c684 | 5351 | fi |
5352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 5353 | |
90973b19 | 5354 | if test $ac_cv_header_stdc = yes; then |
5355 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5356 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 5357 | /* confdefs.h. */ |
5358 | _ACEOF | |
5359 | cat confdefs.h >>conftest.$ac_ext | |
5360 | cat >>conftest.$ac_ext <<_ACEOF | |
5361 | /* end confdefs.h. */ | |
90973b19 | 5362 | #include <string.h> |
5363 | ||
4ee9c684 | 5364 | _ACEOF |
90973b19 | 5365 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5366 | $EGREP "memchr" >/dev/null 2>&1; then | |
5367 | : | |
4ee9c684 | 5368 | else |
90973b19 | 5369 | ac_cv_header_stdc=no |
4ee9c684 | 5370 | fi |
90973b19 | 5371 | rm -f conftest* |
5372 | ||
5373 | fi | |
5374 | ||
5375 | if test $ac_cv_header_stdc = yes; then | |
5376 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5377 | cat >conftest.$ac_ext <<_ACEOF | |
5378 | /* confdefs.h. */ | |
5379 | _ACEOF | |
5380 | cat confdefs.h >>conftest.$ac_ext | |
5381 | cat >>conftest.$ac_ext <<_ACEOF | |
5382 | /* end confdefs.h. */ | |
5383 | #include <stdlib.h> | |
5384 | ||
5385 | _ACEOF | |
5386 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5387 | $EGREP "free" >/dev/null 2>&1; then | |
5388 | : | |
4ee9c684 | 5389 | else |
90973b19 | 5390 | ac_cv_header_stdc=no |
5391 | fi | |
5392 | rm -f conftest* | |
5393 | ||
5394 | fi | |
5395 | ||
5396 | if test $ac_cv_header_stdc = yes; then | |
5397 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5398 | if test "$cross_compiling" = yes; then | |
5399 | : | |
5400 | else | |
5401 | cat >conftest.$ac_ext <<_ACEOF | |
5402 | /* confdefs.h. */ | |
5403 | _ACEOF | |
5404 | cat confdefs.h >>conftest.$ac_ext | |
5405 | cat >>conftest.$ac_ext <<_ACEOF | |
5406 | /* end confdefs.h. */ | |
5407 | #include <ctype.h> | |
5408 | #if ((' ' & 0x0FF) == 0x020) | |
5409 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5410 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5411 | #else | |
5412 | # define ISLOWER(c) \ | |
5413 | (('a' <= (c) && (c) <= 'i') \ | |
5414 | || ('j' <= (c) && (c) <= 'r') \ | |
5415 | || ('s' <= (c) && (c) <= 'z')) | |
5416 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5417 | #endif | |
5418 | ||
5419 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5420 | int | |
5421 | main () | |
5422 | { | |
5423 | int i; | |
5424 | for (i = 0; i < 256; i++) | |
5425 | if (XOR (islower (i), ISLOWER (i)) | |
5426 | || toupper (i) != TOUPPER (i)) | |
5427 | exit(2); | |
5428 | exit (0); | |
5429 | } | |
5430 | _ACEOF | |
5431 | rm -f conftest$ac_exeext | |
5432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5433 | (eval $ac_link) 2>&5 | |
5434 | ac_status=$? | |
5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5438 | (eval $ac_try) 2>&5 | |
5439 | ac_status=$? | |
5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5441 | (exit $ac_status); }; }; then | |
5442 | : | |
5443 | else | |
5444 | echo "$as_me: program exited with status $ac_status" >&5 | |
5445 | echo "$as_me: failed program was:" >&5 | |
4ee9c684 | 5446 | sed 's/^/| /' conftest.$ac_ext >&5 |
5447 | ||
90973b19 | 5448 | ( exit $ac_status ) |
5449 | ac_cv_header_stdc=no | |
4ee9c684 | 5450 | fi |
90973b19 | 5451 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5452 | fi | |
5453 | fi | |
5454 | fi | |
5455 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5456 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5457 | if test $ac_cv_header_stdc = yes; then | |
4ee9c684 | 5458 | |
90973b19 | 5459 | cat >>confdefs.h <<\_ACEOF |
5460 | #define STDC_HEADERS 1 | |
5461 | _ACEOF | |
5462 | ||
5463 | fi | |
5464 | ||
5465 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5466 | ||
5467 | ||
5468 | ||
5469 | ||
5470 | ||
5471 | ||
5472 | ||
5473 | ||
5474 | ||
5475 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5476 | inttypes.h stdint.h unistd.h | |
5477 | do | |
5478 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4ee9c684 | 5479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5483 | else | |
90973b19 | 5484 | cat >conftest.$ac_ext <<_ACEOF |
5485 | /* confdefs.h. */ | |
5486 | _ACEOF | |
5487 | cat confdefs.h >>conftest.$ac_ext | |
5488 | cat >>conftest.$ac_ext <<_ACEOF | |
5489 | /* end confdefs.h. */ | |
5490 | $ac_includes_default | |
5491 | ||
5492 | #include <$ac_header> | |
5493 | _ACEOF | |
5494 | rm -f conftest.$ac_objext | |
5495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5496 | (eval $ac_compile) 2>conftest.er1 | |
5497 | ac_status=$? | |
5498 | grep -v '^ *+' conftest.er1 >conftest.err | |
5499 | rm -f conftest.er1 | |
5500 | cat conftest.err >&5 | |
5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5502 | (exit $ac_status); } && | |
b56cb1ff | 5503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 5504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5505 | (eval $ac_try) 2>&5 | |
5506 | ac_status=$? | |
5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5508 | (exit $ac_status); }; } && | |
5509 | { ac_try='test -s conftest.$ac_objext' | |
5510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5511 | (eval $ac_try) 2>&5 | |
5512 | ac_status=$? | |
5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5514 | (exit $ac_status); }; }; then | |
5515 | eval "$as_ac_Header=yes" | |
5516 | else | |
5517 | echo "$as_me: failed program was:" >&5 | |
5518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5519 | ||
5520 | eval "$as_ac_Header=no" | |
5521 | fi | |
5522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 5523 | fi |
5524 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5525 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 5526 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5527 | cat >>confdefs.h <<_ACEOF | |
5528 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5529 | _ACEOF | |
5530 | ||
5531 | fi | |
5532 | ||
5533 | done | |
5534 | ||
90973b19 | 5535 | |
5536 | ||
5537 | ||
5538 | for ac_header in stdlib.h unistd.h | |
5539 | do | |
5540 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 5545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5546 | fi | |
90973b19 | 5547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 5549 | else |
5550 | # Is the header compilable? | |
90973b19 | 5551 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5552 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4ee9c684 | 5553 | cat >conftest.$ac_ext <<_ACEOF |
5554 | /* confdefs.h. */ | |
5555 | _ACEOF | |
5556 | cat confdefs.h >>conftest.$ac_ext | |
5557 | cat >>conftest.$ac_ext <<_ACEOF | |
5558 | /* end confdefs.h. */ | |
5559 | $ac_includes_default | |
90973b19 | 5560 | #include <$ac_header> |
4ee9c684 | 5561 | _ACEOF |
5562 | rm -f conftest.$ac_objext | |
5563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5564 | (eval $ac_compile) 2>conftest.er1 | |
5565 | ac_status=$? | |
5566 | grep -v '^ *+' conftest.er1 >conftest.err | |
5567 | rm -f conftest.er1 | |
5568 | cat conftest.err >&5 | |
5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5570 | (exit $ac_status); } && | |
b56cb1ff | 5571 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 5572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5573 | (eval $ac_try) 2>&5 | |
5574 | ac_status=$? | |
5575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5576 | (exit $ac_status); }; } && | |
5577 | { ac_try='test -s conftest.$ac_objext' | |
5578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5579 | (eval $ac_try) 2>&5 | |
5580 | ac_status=$? | |
5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5582 | (exit $ac_status); }; }; then | |
5583 | ac_header_compiler=yes | |
5584 | else | |
5585 | echo "$as_me: failed program was:" >&5 | |
5586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5587 | ||
5588 | ac_header_compiler=no | |
5589 | fi | |
5590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5591 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5592 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5593 | ||
5594 | # Is the header present? | |
90973b19 | 5595 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5596 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4ee9c684 | 5597 | cat >conftest.$ac_ext <<_ACEOF |
5598 | /* confdefs.h. */ | |
5599 | _ACEOF | |
5600 | cat confdefs.h >>conftest.$ac_ext | |
5601 | cat >>conftest.$ac_ext <<_ACEOF | |
5602 | /* end confdefs.h. */ | |
90973b19 | 5603 | #include <$ac_header> |
4ee9c684 | 5604 | _ACEOF |
5605 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5606 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5607 | ac_status=$? | |
5608 | grep -v '^ *+' conftest.er1 >conftest.err | |
5609 | rm -f conftest.er1 | |
5610 | cat conftest.err >&5 | |
5611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5612 | (exit $ac_status); } >/dev/null; then | |
5613 | if test -s conftest.err; then | |
5614 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5615 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5616 | else | |
5617 | ac_cpp_err= | |
5618 | fi | |
5619 | else | |
5620 | ac_cpp_err=yes | |
5621 | fi | |
5622 | if test -z "$ac_cpp_err"; then | |
5623 | ac_header_preproc=yes | |
5624 | else | |
5625 | echo "$as_me: failed program was:" >&5 | |
5626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5627 | ||
5628 | ac_header_preproc=no | |
5629 | fi | |
5630 | rm -f conftest.err conftest.$ac_ext | |
5631 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5632 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5633 | ||
5634 | # So? What about this header? | |
5635 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5636 | yes:no: ) | |
90973b19 | 5637 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5638 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5640 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4ee9c684 | 5641 | ac_header_preproc=yes |
5642 | ;; | |
5643 | no:yes:* ) | |
90973b19 | 5644 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5645 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5646 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5647 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5648 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5649 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5650 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5651 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5652 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5653 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5654 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5655 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4ee9c684 | 5656 | ( |
5657 | cat <<\_ASBOX | |
5658 | ## ------------------------------------------------------ ## | |
5659 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
5660 | ## ------------------------------------------------------ ## | |
5661 | _ASBOX | |
5662 | ) | | |
5663 | sed "s/^/$as_me: WARNING: /" >&2 | |
5664 | ;; | |
5665 | esac | |
90973b19 | 5666 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5667 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5668 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5670 | else | |
90973b19 | 5671 | eval "$as_ac_Header=\$ac_header_preproc" |
4ee9c684 | 5672 | fi |
90973b19 | 5673 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5674 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5675 | ||
5676 | fi | |
5677 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5678 | cat >>confdefs.h <<_ACEOF | |
5679 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5680 | _ACEOF | |
4ee9c684 | 5681 | |
90973b19 | 5682 | fi |
4ee9c684 | 5683 | |
90973b19 | 5684 | done |
4ee9c684 | 5685 | |
5686 | ||
90973b19 | 5687 | for ac_func in getpagesize |
4ee9c684 | 5688 | do |
5689 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5690 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5691 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5692 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5694 | else | |
b52ee437 | 5695 | if test x$gcc_no_link = xyes; then |
5696 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
5697 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
5698 | { (exit 1); exit 1; }; } | |
5699 | fi | |
5700 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 5701 | /* confdefs.h. */ |
5702 | _ACEOF | |
5703 | cat confdefs.h >>conftest.$ac_ext | |
5704 | cat >>conftest.$ac_ext <<_ACEOF | |
5705 | /* end confdefs.h. */ | |
5706 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5707 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5708 | #define $ac_func innocuous_$ac_func | |
5709 | ||
5710 | /* System header to define __stub macros and hopefully few prototypes, | |
5711 | which can conflict with char $ac_func (); below. | |
5712 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5713 | <limits.h> exists even on freestanding compilers. */ | |
5714 | ||
5715 | #ifdef __STDC__ | |
5716 | # include <limits.h> | |
5717 | #else | |
5718 | # include <assert.h> | |
5719 | #endif | |
5720 | ||
5721 | #undef $ac_func | |
5722 | ||
5723 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5724 | #ifdef __cplusplus | |
5725 | extern "C" | |
5726 | { | |
5727 | #endif | |
5728 | /* We use char because int might match the return type of a gcc2 | |
5729 | builtin and then its argument prototype would still apply. */ | |
5730 | char $ac_func (); | |
5731 | /* The GNU C library defines this for functions which it implements | |
5732 | to always fail with ENOSYS. Some functions are actually named | |
5733 | something starting with __ and the normal name is an alias. */ | |
5734 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5735 | choke me | |
5736 | #else | |
5737 | char (*f) () = $ac_func; | |
5738 | #endif | |
5739 | #ifdef __cplusplus | |
5740 | } | |
5741 | #endif | |
5742 | ||
5743 | int | |
5744 | main () | |
5745 | { | |
5746 | return f != $ac_func; | |
5747 | ; | |
5748 | return 0; | |
5749 | } | |
5750 | _ACEOF | |
5751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5753 | (eval $ac_link) 2>conftest.er1 | |
5754 | ac_status=$? | |
5755 | grep -v '^ *+' conftest.er1 >conftest.err | |
5756 | rm -f conftest.er1 | |
5757 | cat conftest.err >&5 | |
5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5759 | (exit $ac_status); } && | |
b56cb1ff | 5760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 5761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5762 | (eval $ac_try) 2>&5 | |
5763 | ac_status=$? | |
5764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5765 | (exit $ac_status); }; } && | |
5766 | { ac_try='test -s conftest$ac_exeext' | |
5767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5768 | (eval $ac_try) 2>&5 | |
5769 | ac_status=$? | |
5770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5771 | (exit $ac_status); }; }; then | |
5772 | eval "$as_ac_var=yes" | |
5773 | else | |
5774 | echo "$as_me: failed program was:" >&5 | |
5775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5776 | ||
5777 | eval "$as_ac_var=no" | |
5778 | fi | |
5779 | rm -f conftest.err conftest.$ac_objext \ | |
5780 | conftest$ac_exeext conftest.$ac_ext | |
5781 | fi | |
5782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5783 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5784 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5785 | cat >>confdefs.h <<_ACEOF | |
5786 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5787 | _ACEOF | |
5788 | ||
5789 | fi | |
5790 | done | |
5791 | ||
90973b19 | 5792 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
5793 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
5794 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4ee9c684 | 5795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
90973b19 | 5796 | else |
5797 | if test "$cross_compiling" = yes; then | |
5798 | ac_cv_func_mmap_fixed_mapped=no | |
4ee9c684 | 5799 | else |
5800 | cat >conftest.$ac_ext <<_ACEOF | |
5801 | /* confdefs.h. */ | |
5802 | _ACEOF | |
5803 | cat confdefs.h >>conftest.$ac_ext | |
5804 | cat >>conftest.$ac_ext <<_ACEOF | |
5805 | /* end confdefs.h. */ | |
90973b19 | 5806 | $ac_includes_default |
5807 | /* malloc might have been renamed as rpl_malloc. */ | |
5808 | #undef malloc | |
5809 | ||
5810 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
5811 | Here is a matrix of mmap possibilities: | |
5812 | mmap private not fixed | |
5813 | mmap private fixed at somewhere currently unmapped | |
5814 | mmap private fixed at somewhere already mapped | |
5815 | mmap shared not fixed | |
5816 | mmap shared fixed at somewhere currently unmapped | |
5817 | mmap shared fixed at somewhere already mapped | |
5818 | For private mappings, we should verify that changes cannot be read() | |
5819 | back from the file, nor mmap's back from the file at a different | |
5820 | address. (There have been systems where private was not correctly | |
5821 | implemented like the infamous i386 svr4.0, and systems where the | |
5822 | VM page cache was not coherent with the file system buffer cache | |
5823 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
5824 | For shared mappings, we should conversely verify that changes get | |
5825 | propagated back to all the places they're supposed to be. | |
5826 | ||
5827 | Grep wants private fixed already mapped. | |
5828 | The main things grep needs to know about mmap are: | |
5829 | * does it exist and is it safe to write into the mmap'd area | |
5830 | * how to use it (BSD variants) */ | |
5831 | ||
5832 | #include <fcntl.h> | |
5833 | #include <sys/mman.h> | |
5834 | ||
5835 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
5836 | char *malloc (); | |
5837 | #endif | |
5838 | ||
5839 | /* This mess was copied from the GNU getpagesize.h. */ | |
5840 | #if !HAVE_GETPAGESIZE | |
5841 | /* Assume that all systems that can run configure have sys/param.h. */ | |
5842 | # if !HAVE_SYS_PARAM_H | |
5843 | # define HAVE_SYS_PARAM_H 1 | |
5844 | # endif | |
5845 | ||
5846 | # ifdef _SC_PAGESIZE | |
5847 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5848 | # else /* no _SC_PAGESIZE */ | |
5849 | # if HAVE_SYS_PARAM_H | |
5850 | # include <sys/param.h> | |
5851 | # ifdef EXEC_PAGESIZE | |
5852 | # define getpagesize() EXEC_PAGESIZE | |
5853 | # else /* no EXEC_PAGESIZE */ | |
5854 | # ifdef NBPG | |
5855 | # define getpagesize() NBPG * CLSIZE | |
5856 | # ifndef CLSIZE | |
5857 | # define CLSIZE 1 | |
5858 | # endif /* no CLSIZE */ | |
5859 | # else /* no NBPG */ | |
5860 | # ifdef NBPC | |
5861 | # define getpagesize() NBPC | |
5862 | # else /* no NBPC */ | |
5863 | # ifdef PAGESIZE | |
5864 | # define getpagesize() PAGESIZE | |
5865 | # endif /* PAGESIZE */ | |
5866 | # endif /* no NBPC */ | |
5867 | # endif /* no NBPG */ | |
5868 | # endif /* no EXEC_PAGESIZE */ | |
5869 | # else /* no HAVE_SYS_PARAM_H */ | |
5870 | # define getpagesize() 8192 /* punt totally */ | |
5871 | # endif /* no HAVE_SYS_PARAM_H */ | |
5872 | # endif /* no _SC_PAGESIZE */ | |
5873 | ||
5874 | #endif /* no HAVE_GETPAGESIZE */ | |
4ee9c684 | 5875 | |
5876 | int | |
5877 | main () | |
5878 | { | |
90973b19 | 5879 | char *data, *data2, *data3; |
5880 | int i, pagesize; | |
5881 | int fd; | |
5882 | ||
5883 | pagesize = getpagesize (); | |
5884 | ||
5885 | /* First, make a file with some known garbage in it. */ | |
5886 | data = (char *) malloc (pagesize); | |
5887 | if (!data) | |
5888 | exit (1); | |
5889 | for (i = 0; i < pagesize; ++i) | |
5890 | *(data + i) = rand (); | |
5891 | umask (0); | |
5892 | fd = creat ("conftest.mmap", 0600); | |
5893 | if (fd < 0) | |
5894 | exit (1); | |
5895 | if (write (fd, data, pagesize) != pagesize) | |
5896 | exit (1); | |
5897 | close (fd); | |
5898 | ||
5899 | /* Next, try to mmap the file at a fixed address which already has | |
5900 | something else allocated at it. If we can, also make sure that | |
5901 | we see the same garbage. */ | |
5902 | fd = open ("conftest.mmap", O_RDWR); | |
5903 | if (fd < 0) | |
5904 | exit (1); | |
5905 | data2 = (char *) malloc (2 * pagesize); | |
5906 | if (!data2) | |
5907 | exit (1); | |
5908 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
5909 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5910 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5911 | exit (1); | |
5912 | for (i = 0; i < pagesize; ++i) | |
5913 | if (*(data + i) != *(data2 + i)) | |
5914 | exit (1); | |
5915 | ||
5916 | /* Finally, make sure that changes to the mapped area do not | |
5917 | percolate back to the file as seen by read(). (This is a bug on | |
5918 | some variants of i386 svr4.0.) */ | |
5919 | for (i = 0; i < pagesize; ++i) | |
5920 | *(data2 + i) = *(data2 + i) + 1; | |
5921 | data3 = (char *) malloc (pagesize); | |
5922 | if (!data3) | |
5923 | exit (1); | |
5924 | if (read (fd, data3, pagesize) != pagesize) | |
5925 | exit (1); | |
5926 | for (i = 0; i < pagesize; ++i) | |
5927 | if (*(data + i) != *(data3 + i)) | |
5928 | exit (1); | |
5929 | close (fd); | |
5930 | exit (0); | |
4ee9c684 | 5931 | } |
5932 | _ACEOF | |
90973b19 | 5933 | rm -f conftest$ac_exeext |
5934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5935 | (eval $ac_link) 2>&5 | |
4ee9c684 | 5936 | ac_status=$? |
5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 5938 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4ee9c684 | 5939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5940 | (eval $ac_try) 2>&5 | |
5941 | ac_status=$? | |
5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5943 | (exit $ac_status); }; }; then | |
90973b19 | 5944 | ac_cv_func_mmap_fixed_mapped=yes |
4ee9c684 | 5945 | else |
90973b19 | 5946 | echo "$as_me: program exited with status $ac_status" >&5 |
5947 | echo "$as_me: failed program was:" >&5 | |
4ee9c684 | 5948 | sed 's/^/| /' conftest.$ac_ext >&5 |
5949 | ||
90973b19 | 5950 | ( exit $ac_status ) |
5951 | ac_cv_func_mmap_fixed_mapped=no | |
4ee9c684 | 5952 | fi |
90973b19 | 5953 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5954 | fi |
90973b19 | 5955 | fi |
5956 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
5957 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
5958 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
4ee9c684 | 5959 | |
5960 | cat >>confdefs.h <<\_ACEOF | |
90973b19 | 5961 | #define HAVE_MMAP 1 |
4ee9c684 | 5962 | _ACEOF |
5963 | ||
5964 | fi | |
90973b19 | 5965 | rm -f conftest.mmap |
4ee9c684 | 5966 | |
b52ee437 | 5967 | fi |
90973b19 | 5968 | echo "$as_me:$LINENO: checking for off_t" >&5 |
5969 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5970 | if test "${ac_cv_type_off_t+set}" = set; then | |
4ee9c684 | 5971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5972 | else | |
90973b19 | 5973 | cat >conftest.$ac_ext <<_ACEOF |
5974 | /* confdefs.h. */ | |
5975 | _ACEOF | |
5976 | cat confdefs.h >>conftest.$ac_ext | |
5977 | cat >>conftest.$ac_ext <<_ACEOF | |
5978 | /* end confdefs.h. */ | |
5979 | $ac_includes_default | |
4ee9c684 | 5980 | int |
5981 | main () | |
5982 | { | |
90973b19 | 5983 | if ((off_t *) 0) |
5984 | return 0; | |
5985 | if (sizeof (off_t)) | |
5986 | return 0; | |
4ee9c684 | 5987 | ; |
5988 | return 0; | |
5989 | } | |
5990 | _ACEOF | |
90973b19 | 5991 | rm -f conftest.$ac_objext |
5992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5993 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 5994 | ac_status=$? |
5995 | grep -v '^ *+' conftest.er1 >conftest.err | |
5996 | rm -f conftest.er1 | |
5997 | cat conftest.err >&5 | |
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5999 | (exit $ac_status); } && | |
b56cb1ff | 6000 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 6001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6002 | (eval $ac_try) 2>&5 | |
6003 | ac_status=$? | |
6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6005 | (exit $ac_status); }; } && | |
90973b19 | 6006 | { ac_try='test -s conftest.$ac_objext' |
4ee9c684 | 6007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6008 | (eval $ac_try) 2>&5 | |
6009 | ac_status=$? | |
6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6011 | (exit $ac_status); }; }; then | |
90973b19 | 6012 | ac_cv_type_off_t=yes |
4ee9c684 | 6013 | else |
6014 | echo "$as_me: failed program was:" >&5 | |
6015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6016 | ||
90973b19 | 6017 | ac_cv_type_off_t=no |
4ee9c684 | 6018 | fi |
90973b19 | 6019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 6020 | fi |
90973b19 | 6021 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
6022 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
6023 | if test $ac_cv_type_off_t = yes; then | |
6024 | : | |
6025 | else | |
6026 | ||
6027 | cat >>confdefs.h <<_ACEOF | |
6028 | #define off_t long | |
4ee9c684 | 6029 | _ACEOF |
6030 | ||
6031 | fi | |
4ee9c684 | 6032 | |
90973b19 | 6033 | |
6034 | # check header files | |
6035 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6036 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6037 | if test "${ac_cv_header_stdc+set}" = set; then | |
4ee9c684 | 6038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6039 | else | |
6040 | cat >conftest.$ac_ext <<_ACEOF | |
6041 | /* confdefs.h. */ | |
6042 | _ACEOF | |
6043 | cat confdefs.h >>conftest.$ac_ext | |
6044 | cat >>conftest.$ac_ext <<_ACEOF | |
6045 | /* end confdefs.h. */ | |
90973b19 | 6046 | #include <stdlib.h> |
6047 | #include <stdarg.h> | |
6048 | #include <string.h> | |
6049 | #include <float.h> | |
6050 | ||
4ee9c684 | 6051 | int |
6052 | main () | |
6053 | { | |
90973b19 | 6054 | |
4ee9c684 | 6055 | ; |
6056 | return 0; | |
6057 | } | |
6058 | _ACEOF | |
6059 | rm -f conftest.$ac_objext | |
6060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6061 | (eval $ac_compile) 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); } && | |
b56cb1ff | 6068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 6069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6070 | (eval $ac_try) 2>&5 | |
6071 | ac_status=$? | |
6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6073 | (exit $ac_status); }; } && | |
6074 | { ac_try='test -s conftest.$ac_objext' | |
6075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6076 | (eval $ac_try) 2>&5 | |
6077 | ac_status=$? | |
6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6079 | (exit $ac_status); }; }; then | |
90973b19 | 6080 | ac_cv_header_stdc=yes |
4ee9c684 | 6081 | else |
6082 | echo "$as_me: failed program was:" >&5 | |
6083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6084 | ||
90973b19 | 6085 | ac_cv_header_stdc=no |
4ee9c684 | 6086 | fi |
6087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
90973b19 | 6088 | |
6089 | if test $ac_cv_header_stdc = yes; then | |
6090 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4ee9c684 | 6091 | cat >conftest.$ac_ext <<_ACEOF |
6092 | /* confdefs.h. */ | |
6093 | _ACEOF | |
6094 | cat confdefs.h >>conftest.$ac_ext | |
6095 | cat >>conftest.$ac_ext <<_ACEOF | |
6096 | /* end confdefs.h. */ | |
90973b19 | 6097 | #include <string.h> |
4ee9c684 | 6098 | |
4ee9c684 | 6099 | _ACEOF |
90973b19 | 6100 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6101 | $EGREP "memchr" >/dev/null 2>&1; then | |
6102 | : | |
4ee9c684 | 6103 | else |
90973b19 | 6104 | ac_cv_header_stdc=no |
4ee9c684 | 6105 | fi |
90973b19 | 6106 | rm -f conftest* |
6107 | ||
4ee9c684 | 6108 | fi |
4ee9c684 | 6109 | |
90973b19 | 6110 | if test $ac_cv_header_stdc = yes; then |
6111 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6112 | cat >conftest.$ac_ext <<_ACEOF | |
6113 | /* confdefs.h. */ | |
6114 | _ACEOF | |
6115 | cat confdefs.h >>conftest.$ac_ext | |
6116 | cat >>conftest.$ac_ext <<_ACEOF | |
6117 | /* end confdefs.h. */ | |
6118 | #include <stdlib.h> | |
6119 | ||
4ee9c684 | 6120 | _ACEOF |
90973b19 | 6121 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6122 | $EGREP "free" >/dev/null 2>&1; then | |
6123 | : | |
6124 | else | |
6125 | ac_cv_header_stdc=no | |
6126 | fi | |
6127 | rm -f conftest* | |
4ee9c684 | 6128 | |
90973b19 | 6129 | fi |
4ee9c684 | 6130 | |
90973b19 | 6131 | if test $ac_cv_header_stdc = yes; then |
6132 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6133 | if test "$cross_compiling" = yes; then | |
6134 | : | |
4ee9c684 | 6135 | else |
6136 | cat >conftest.$ac_ext <<_ACEOF | |
6137 | /* confdefs.h. */ | |
6138 | _ACEOF | |
6139 | cat confdefs.h >>conftest.$ac_ext | |
6140 | cat >>conftest.$ac_ext <<_ACEOF | |
6141 | /* end confdefs.h. */ | |
90973b19 | 6142 | #include <ctype.h> |
6143 | #if ((' ' & 0x0FF) == 0x020) | |
6144 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6145 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4ee9c684 | 6146 | #else |
90973b19 | 6147 | # define ISLOWER(c) \ |
6148 | (('a' <= (c) && (c) <= 'i') \ | |
6149 | || ('j' <= (c) && (c) <= 'r') \ | |
6150 | || ('s' <= (c) && (c) <= 'z')) | |
6151 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4ee9c684 | 6152 | #endif |
6153 | ||
90973b19 | 6154 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4ee9c684 | 6155 | int |
6156 | main () | |
6157 | { | |
90973b19 | 6158 | int i; |
6159 | for (i = 0; i < 256; i++) | |
6160 | if (XOR (islower (i), ISLOWER (i)) | |
6161 | || toupper (i) != TOUPPER (i)) | |
6162 | exit(2); | |
6163 | exit (0); | |
4ee9c684 | 6164 | } |
6165 | _ACEOF | |
90973b19 | 6166 | rm -f conftest$ac_exeext |
4ee9c684 | 6167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
90973b19 | 6168 | (eval $ac_link) 2>&5 |
4ee9c684 | 6169 | ac_status=$? |
6170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 6171 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4ee9c684 | 6172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6173 | (eval $ac_try) 2>&5 | |
6174 | ac_status=$? | |
90973b19 | 6175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6176 | (exit $ac_status); }; }; then | |
6177 | : | |
4ee9c684 | 6178 | else |
90973b19 | 6179 | echo "$as_me: program exited with status $ac_status" >&5 |
6180 | echo "$as_me: failed program was:" >&5 | |
6181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6182 | |
90973b19 | 6183 | ( exit $ac_status ) |
6184 | ac_cv_header_stdc=no | |
4ee9c684 | 6185 | fi |
90973b19 | 6186 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 6187 | fi |
6188 | fi | |
4ee9c684 | 6189 | fi |
90973b19 | 6190 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6191 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6192 | if test $ac_cv_header_stdc = yes; then | |
4ee9c684 | 6193 | |
90973b19 | 6194 | cat >>confdefs.h <<\_ACEOF |
6195 | #define STDC_HEADERS 1 | |
6196 | _ACEOF | |
4ee9c684 | 6197 | |
6198 | fi | |
6199 | ||
4ee9c684 | 6200 | |
6201 | ||
4ee9c684 | 6202 | |
4ee9c684 | 6203 | |
6204 | ||
6205 | ||
4dd3972f | 6206 | |
6207 | for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h | |
90973b19 | 6208 | do |
6209 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6210 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6211 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6212 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6213 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6215 | fi | |
6216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 6218 | else |
90973b19 | 6219 | # Is the header compilable? |
6220 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6221 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6222 | cat >conftest.$ac_ext <<_ACEOF | |
6223 | /* confdefs.h. */ | |
6224 | _ACEOF | |
6225 | cat confdefs.h >>conftest.$ac_ext | |
6226 | cat >>conftest.$ac_ext <<_ACEOF | |
6227 | /* end confdefs.h. */ | |
6228 | $ac_includes_default | |
6229 | #include <$ac_header> | |
6230 | _ACEOF | |
6231 | rm -f conftest.$ac_objext | |
6232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6233 | (eval $ac_compile) 2>conftest.er1 | |
6234 | ac_status=$? | |
6235 | grep -v '^ *+' conftest.er1 >conftest.err | |
6236 | rm -f conftest.er1 | |
6237 | cat conftest.err >&5 | |
6238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6239 | (exit $ac_status); } && | |
b56cb1ff | 6240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6242 | (eval $ac_try) 2>&5 | |
6243 | ac_status=$? | |
6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6245 | (exit $ac_status); }; } && | |
6246 | { ac_try='test -s conftest.$ac_objext' | |
6247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6248 | (eval $ac_try) 2>&5 | |
6249 | ac_status=$? | |
6250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6251 | (exit $ac_status); }; }; then | |
6252 | ac_header_compiler=yes | |
4ee9c684 | 6253 | else |
90973b19 | 6254 | echo "$as_me: failed program was:" >&5 |
6255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6256 | ||
6257 | ac_header_compiler=no | |
4ee9c684 | 6258 | fi |
90973b19 | 6259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6260 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6261 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6262 | ||
6263 | # Is the header present? | |
6264 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6265 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6266 | cat >conftest.$ac_ext <<_ACEOF | |
6267 | /* confdefs.h. */ | |
6268 | _ACEOF | |
6269 | cat confdefs.h >>conftest.$ac_ext | |
6270 | cat >>conftest.$ac_ext <<_ACEOF | |
6271 | /* end confdefs.h. */ | |
6272 | #include <$ac_header> | |
6273 | _ACEOF | |
6274 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6275 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6276 | ac_status=$? | |
6277 | grep -v '^ *+' conftest.er1 >conftest.err | |
6278 | rm -f conftest.er1 | |
6279 | cat conftest.err >&5 | |
6280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6281 | (exit $ac_status); } >/dev/null; then | |
6282 | if test -s conftest.err; then | |
6283 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6284 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6285 | else | |
6286 | ac_cpp_err= | |
6287 | fi | |
4ee9c684 | 6288 | else |
90973b19 | 6289 | ac_cpp_err=yes |
4ee9c684 | 6290 | fi |
90973b19 | 6291 | if test -z "$ac_cpp_err"; then |
6292 | ac_header_preproc=yes | |
4ee9c684 | 6293 | else |
90973b19 | 6294 | echo "$as_me: failed program was:" >&5 |
6295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6296 | ||
6297 | ac_header_preproc=no | |
4ee9c684 | 6298 | fi |
90973b19 | 6299 | rm -f conftest.err conftest.$ac_ext |
6300 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6301 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6302 | ||
6303 | # So? What about this header? | |
6304 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6305 | yes:no: ) | |
6306 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6307 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6308 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6309 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6310 | ac_header_preproc=yes | |
6311 | ;; | |
6312 | no:yes:* ) | |
6313 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6314 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6315 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6316 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6317 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6318 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6319 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6320 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6321 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6322 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6323 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6324 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6325 | ( | |
6326 | cat <<\_ASBOX | |
6327 | ## ------------------------------------------------------ ## | |
6328 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6329 | ## ------------------------------------------------------ ## | |
6330 | _ASBOX | |
6331 | ) | | |
6332 | sed "s/^/$as_me: WARNING: /" >&2 | |
6333 | ;; | |
6334 | esac | |
6335 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6336 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6337 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 6338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6339 | else | |
90973b19 | 6340 | eval "$as_ac_Header=\$ac_header_preproc" |
4ee9c684 | 6341 | fi |
90973b19 | 6342 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6343 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 6344 | |
90973b19 | 6345 | fi |
6346 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6347 | cat >>confdefs.h <<_ACEOF | |
6348 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6349 | _ACEOF | |
4ee9c684 | 6350 | |
4ee9c684 | 6351 | fi |
4ee9c684 | 6352 | |
90973b19 | 6353 | done |
6354 | ||
6355 | ||
6356 | ||
6357 | ||
6358 | ||
6359 | ||
6360 | for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h | |
6361 | do | |
6362 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
d2455565 | 6365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6368 | fi | |
6369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6371 | else | |
6372 | # Is the header compilable? | |
6373 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6374 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6375 | cat >conftest.$ac_ext <<_ACEOF | |
6376 | /* confdefs.h. */ | |
6377 | _ACEOF | |
6378 | cat confdefs.h >>conftest.$ac_ext | |
6379 | cat >>conftest.$ac_ext <<_ACEOF | |
6380 | /* end confdefs.h. */ | |
6381 | $ac_includes_default | |
6382 | #include <$ac_header> | |
6383 | _ACEOF | |
6384 | rm -f conftest.$ac_objext | |
6385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6386 | (eval $ac_compile) 2>conftest.er1 | |
6387 | ac_status=$? | |
6388 | grep -v '^ *+' conftest.er1 >conftest.err | |
6389 | rm -f conftest.er1 | |
6390 | cat conftest.err >&5 | |
6391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6392 | (exit $ac_status); } && | |
b56cb1ff | 6393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d2455565 | 6394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6395 | (eval $ac_try) 2>&5 | |
6396 | ac_status=$? | |
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6398 | (exit $ac_status); }; } && | |
6399 | { ac_try='test -s conftest.$ac_objext' | |
6400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6401 | (eval $ac_try) 2>&5 | |
6402 | ac_status=$? | |
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6404 | (exit $ac_status); }; }; then | |
6405 | ac_header_compiler=yes | |
6406 | else | |
6407 | echo "$as_me: failed program was:" >&5 | |
6408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6409 | ||
6410 | ac_header_compiler=no | |
6411 | fi | |
6412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6413 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6414 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6415 | ||
6416 | # Is the header present? | |
6417 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6418 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6419 | cat >conftest.$ac_ext <<_ACEOF | |
6420 | /* confdefs.h. */ | |
6421 | _ACEOF | |
6422 | cat confdefs.h >>conftest.$ac_ext | |
6423 | cat >>conftest.$ac_ext <<_ACEOF | |
6424 | /* end confdefs.h. */ | |
6425 | #include <$ac_header> | |
6426 | _ACEOF | |
6427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6429 | ac_status=$? | |
6430 | grep -v '^ *+' conftest.er1 >conftest.err | |
6431 | rm -f conftest.er1 | |
6432 | cat conftest.err >&5 | |
6433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6434 | (exit $ac_status); } >/dev/null; then | |
6435 | if test -s conftest.err; then | |
6436 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6437 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6438 | else | |
6439 | ac_cpp_err= | |
6440 | fi | |
6441 | else | |
6442 | ac_cpp_err=yes | |
6443 | fi | |
6444 | if test -z "$ac_cpp_err"; then | |
6445 | ac_header_preproc=yes | |
6446 | else | |
6447 | echo "$as_me: failed program was:" >&5 | |
6448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6449 | ||
6450 | ac_header_preproc=no | |
6451 | fi | |
6452 | rm -f conftest.err conftest.$ac_ext | |
6453 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6454 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6455 | ||
6456 | # So? What about this header? | |
6457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6458 | yes:no: ) | |
6459 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6460 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6462 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6463 | ac_header_preproc=yes | |
6464 | ;; | |
6465 | no:yes:* ) | |
6466 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6467 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6468 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6469 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6470 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6471 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6472 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6473 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6475 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6476 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6477 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6478 | ( | |
6479 | cat <<\_ASBOX | |
6480 | ## ------------------------------------------------------ ## | |
6481 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6482 | ## ------------------------------------------------------ ## | |
6483 | _ASBOX | |
6484 | ) | | |
6485 | sed "s/^/$as_me: WARNING: /" >&2 | |
6486 | ;; | |
6487 | esac | |
6488 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6492 | else | |
6493 | eval "$as_ac_Header=\$ac_header_preproc" | |
6494 | fi | |
6495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6496 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6497 | ||
6498 | fi | |
6499 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6500 | cat >>confdefs.h <<_ACEOF | |
6501 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6502 | _ACEOF | |
6503 | ||
6504 | fi | |
6505 | ||
6506 | done | |
6507 | ||
6508 | ||
771c1b50 | 6509 | |
6510 | ||
334f03a1 | 6511 | |
8c84a5de | 6512 | |
aaa798ba | 6513 | for ac_header in sys/mman.h sys/types.h sys/stat.h floatingpoint.h ieeefp.h |
6514 | do | |
6515 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6516 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6517 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6518 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6521 | fi | |
6522 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6523 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6524 | else | |
6525 | # Is the header compilable? | |
6526 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6527 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6528 | cat >conftest.$ac_ext <<_ACEOF | |
6529 | /* confdefs.h. */ | |
6530 | _ACEOF | |
6531 | cat confdefs.h >>conftest.$ac_ext | |
6532 | cat >>conftest.$ac_ext <<_ACEOF | |
6533 | /* end confdefs.h. */ | |
6534 | $ac_includes_default | |
6535 | #include <$ac_header> | |
6536 | _ACEOF | |
6537 | rm -f conftest.$ac_objext | |
6538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6539 | (eval $ac_compile) 2>conftest.er1 | |
6540 | ac_status=$? | |
6541 | grep -v '^ *+' conftest.er1 >conftest.err | |
6542 | rm -f conftest.er1 | |
6543 | cat conftest.err >&5 | |
6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6545 | (exit $ac_status); } && | |
b56cb1ff | 6546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
aaa798ba | 6547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6548 | (eval $ac_try) 2>&5 | |
6549 | ac_status=$? | |
6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6551 | (exit $ac_status); }; } && | |
6552 | { ac_try='test -s conftest.$ac_objext' | |
6553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6554 | (eval $ac_try) 2>&5 | |
6555 | ac_status=$? | |
6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6557 | (exit $ac_status); }; }; then | |
6558 | ac_header_compiler=yes | |
6559 | else | |
6560 | echo "$as_me: failed program was:" >&5 | |
6561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6562 | ||
6563 | ac_header_compiler=no | |
6564 | fi | |
6565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6566 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6567 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6568 | ||
6569 | # Is the header present? | |
6570 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6571 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6572 | cat >conftest.$ac_ext <<_ACEOF | |
6573 | /* confdefs.h. */ | |
6574 | _ACEOF | |
6575 | cat confdefs.h >>conftest.$ac_ext | |
6576 | cat >>conftest.$ac_ext <<_ACEOF | |
6577 | /* end confdefs.h. */ | |
6578 | #include <$ac_header> | |
6579 | _ACEOF | |
6580 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6582 | ac_status=$? | |
6583 | grep -v '^ *+' conftest.er1 >conftest.err | |
6584 | rm -f conftest.er1 | |
6585 | cat conftest.err >&5 | |
6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6587 | (exit $ac_status); } >/dev/null; then | |
6588 | if test -s conftest.err; then | |
6589 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6590 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6591 | else | |
6592 | ac_cpp_err= | |
6593 | fi | |
6594 | else | |
6595 | ac_cpp_err=yes | |
6596 | fi | |
6597 | if test -z "$ac_cpp_err"; then | |
6598 | ac_header_preproc=yes | |
6599 | else | |
6600 | echo "$as_me: failed program was:" >&5 | |
6601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6602 | ||
6603 | ac_header_preproc=no | |
6604 | fi | |
6605 | rm -f conftest.err conftest.$ac_ext | |
6606 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6607 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6608 | ||
6609 | # So? What about this header? | |
6610 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6611 | yes:no: ) | |
6612 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6613 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6615 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6616 | ac_header_preproc=yes | |
6617 | ;; | |
6618 | no:yes:* ) | |
6619 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6620 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6621 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6622 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6623 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6624 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6625 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6626 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6628 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6629 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6630 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6631 | ( | |
6632 | cat <<\_ASBOX | |
6633 | ## ------------------------------------------------------ ## | |
6634 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6635 | ## ------------------------------------------------------ ## | |
6636 | _ASBOX | |
6637 | ) | | |
6638 | sed "s/^/$as_me: WARNING: /" >&2 | |
6639 | ;; | |
6640 | esac | |
6641 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6645 | else | |
6646 | eval "$as_ac_Header=\$ac_header_preproc" | |
6647 | fi | |
6648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6650 | ||
6651 | fi | |
6652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6653 | cat >>confdefs.h <<_ACEOF | |
6654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6655 | _ACEOF | |
6656 | ||
6657 | fi | |
6658 | ||
6659 | done | |
6660 | ||
6661 | ||
6662 | ||
6663 | ||
6664 | for ac_header in fenv.h fptrap.h float.h | |
d2455565 | 6665 | do |
6666 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6667 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6668 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
90973b19 | 6669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6670 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 6671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
90973b19 | 6672 | fi |
6673 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6674 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 6675 | else |
90973b19 | 6676 | # Is the header compilable? |
6677 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6678 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6679 | cat >conftest.$ac_ext <<_ACEOF | |
6680 | /* confdefs.h. */ | |
6681 | _ACEOF | |
6682 | cat confdefs.h >>conftest.$ac_ext | |
6683 | cat >>conftest.$ac_ext <<_ACEOF | |
6684 | /* end confdefs.h. */ | |
6685 | $ac_includes_default | |
6686 | #include <$ac_header> | |
6687 | _ACEOF | |
6688 | rm -f conftest.$ac_objext | |
6689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6690 | (eval $ac_compile) 2>conftest.er1 | |
6691 | ac_status=$? | |
6692 | grep -v '^ *+' conftest.er1 >conftest.err | |
6693 | rm -f conftest.er1 | |
6694 | cat conftest.err >&5 | |
6695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6696 | (exit $ac_status); } && | |
b56cb1ff | 6697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6699 | (eval $ac_try) 2>&5 | |
6700 | ac_status=$? | |
6701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6702 | (exit $ac_status); }; } && | |
6703 | { ac_try='test -s conftest.$ac_objext' | |
6704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6705 | (eval $ac_try) 2>&5 | |
6706 | ac_status=$? | |
6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6708 | (exit $ac_status); }; }; then | |
6709 | ac_header_compiler=yes | |
4ee9c684 | 6710 | else |
90973b19 | 6711 | echo "$as_me: failed program was:" >&5 |
6712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6713 | |
90973b19 | 6714 | ac_header_compiler=no |
6715 | fi | |
6716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6717 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6718 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4ee9c684 | 6719 | |
90973b19 | 6720 | # Is the header present? |
6721 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6722 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6723 | cat >conftest.$ac_ext <<_ACEOF | |
6724 | /* confdefs.h. */ | |
6725 | _ACEOF | |
6726 | cat confdefs.h >>conftest.$ac_ext | |
6727 | cat >>conftest.$ac_ext <<_ACEOF | |
6728 | /* end confdefs.h. */ | |
6729 | #include <$ac_header> | |
6730 | _ACEOF | |
6731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6733 | ac_status=$? | |
6734 | grep -v '^ *+' conftest.er1 >conftest.err | |
6735 | rm -f conftest.er1 | |
6736 | cat conftest.err >&5 | |
6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6738 | (exit $ac_status); } >/dev/null; then | |
6739 | if test -s conftest.err; then | |
6740 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6741 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6742 | else | |
6743 | ac_cpp_err= | |
6744 | fi | |
4ee9c684 | 6745 | else |
90973b19 | 6746 | ac_cpp_err=yes |
4ee9c684 | 6747 | fi |
90973b19 | 6748 | if test -z "$ac_cpp_err"; then |
6749 | ac_header_preproc=yes | |
4ee9c684 | 6750 | else |
90973b19 | 6751 | echo "$as_me: failed program was:" >&5 |
6752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6753 | |
90973b19 | 6754 | ac_header_preproc=no |
6755 | fi | |
6756 | rm -f conftest.err conftest.$ac_ext | |
6757 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6758 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4ee9c684 | 6759 | |
90973b19 | 6760 | # So? What about this header? |
6761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6762 | yes:no: ) | |
6763 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6764 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6766 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6767 | ac_header_preproc=yes | |
4ee9c684 | 6768 | ;; |
90973b19 | 6769 | no:yes:* ) |
6770 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6771 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6772 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6773 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6774 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6775 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6776 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6777 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6778 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6779 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6780 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6781 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6782 | ( | |
6783 | cat <<\_ASBOX | |
6784 | ## ------------------------------------------------------ ## | |
6785 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6786 | ## ------------------------------------------------------ ## | |
6787 | _ASBOX | |
6788 | ) | | |
6789 | sed "s/^/$as_me: WARNING: /" >&2 | |
4ee9c684 | 6790 | ;; |
90973b19 | 6791 | esac |
6792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6796 | else | |
6797 | eval "$as_ac_Header=\$ac_header_preproc" | |
6798 | fi | |
6799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6800 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 6801 | |
90973b19 | 6802 | fi |
6803 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6804 | cat >>confdefs.h <<_ACEOF | |
6805 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6806 | _ACEOF | |
4ee9c684 | 6807 | |
90973b19 | 6808 | fi |
4ee9c684 | 6809 | |
90973b19 | 6810 | done |
4ee9c684 | 6811 | |
90973b19 | 6812 | if test "${ac_cv_header_complex_h+set}" = set; then |
6813 | echo "$as_me:$LINENO: checking for complex.h" >&5 | |
6814 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6815 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6817 | fi | |
6818 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6819 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
6820 | else | |
6821 | # Is the header compilable? | |
6822 | echo "$as_me:$LINENO: checking complex.h usability" >&5 | |
6823 | echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6 | |
6824 | cat >conftest.$ac_ext <<_ACEOF | |
6825 | /* confdefs.h. */ | |
6826 | _ACEOF | |
6827 | cat confdefs.h >>conftest.$ac_ext | |
6828 | cat >>conftest.$ac_ext <<_ACEOF | |
6829 | /* end confdefs.h. */ | |
6830 | $ac_includes_default | |
6831 | #include <complex.h> | |
6832 | _ACEOF | |
6833 | rm -f conftest.$ac_objext | |
6834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6835 | (eval $ac_compile) 2>conftest.er1 | |
6836 | ac_status=$? | |
6837 | grep -v '^ *+' conftest.er1 >conftest.err | |
6838 | rm -f conftest.er1 | |
6839 | cat conftest.err >&5 | |
6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6841 | (exit $ac_status); } && | |
b56cb1ff | 6842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 6843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6844 | (eval $ac_try) 2>&5 | |
6845 | ac_status=$? | |
6846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6847 | (exit $ac_status); }; } && | |
6848 | { ac_try='test -s conftest.$ac_objext' | |
6849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6850 | (eval $ac_try) 2>&5 | |
6851 | ac_status=$? | |
6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6853 | (exit $ac_status); }; }; then | |
6854 | ac_header_compiler=yes | |
6855 | else | |
6856 | echo "$as_me: failed program was:" >&5 | |
6857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6858 | |
90973b19 | 6859 | ac_header_compiler=no |
6860 | fi | |
6861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6862 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6863 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4ee9c684 | 6864 | |
90973b19 | 6865 | # Is the header present? |
6866 | echo "$as_me:$LINENO: checking complex.h presence" >&5 | |
6867 | echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6 | |
6868 | cat >conftest.$ac_ext <<_ACEOF | |
6869 | /* confdefs.h. */ | |
6870 | _ACEOF | |
6871 | cat confdefs.h >>conftest.$ac_ext | |
6872 | cat >>conftest.$ac_ext <<_ACEOF | |
6873 | /* end confdefs.h. */ | |
6874 | #include <complex.h> | |
6875 | _ACEOF | |
6876 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6877 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6878 | ac_status=$? | |
6879 | grep -v '^ *+' conftest.er1 >conftest.err | |
6880 | rm -f conftest.er1 | |
6881 | cat conftest.err >&5 | |
6882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6883 | (exit $ac_status); } >/dev/null; then | |
6884 | if test -s conftest.err; then | |
6885 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6886 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4ee9c684 | 6887 | else |
90973b19 | 6888 | ac_cpp_err= |
4ee9c684 | 6889 | fi |
90973b19 | 6890 | else |
6891 | ac_cpp_err=yes | |
6892 | fi | |
6893 | if test -z "$ac_cpp_err"; then | |
6894 | ac_header_preproc=yes | |
6895 | else | |
6896 | echo "$as_me: failed program was:" >&5 | |
6897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6898 | |
90973b19 | 6899 | ac_header_preproc=no |
6900 | fi | |
6901 | rm -f conftest.err conftest.$ac_ext | |
6902 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6903 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4ee9c684 | 6904 | |
90973b19 | 6905 | # So? What about this header? |
6906 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6907 | yes:no: ) | |
6908 | { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6909 | echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6910 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5 | |
6911 | echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;} | |
6912 | ac_header_preproc=yes | |
4ee9c684 | 6913 | ;; |
90973b19 | 6914 | no:yes:* ) |
6915 | { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5 | |
6916 | echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;} | |
6917 | { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5 | |
6918 | echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;} | |
6919 | { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5 | |
6920 | echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;} | |
6921 | { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
6922 | echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
6923 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5 | |
6924 | echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;} | |
6925 | { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5 | |
6926 | echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;} | |
6927 | ( | |
6928 | cat <<\_ASBOX | |
6929 | ## ------------------------------------------------------ ## | |
6930 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6931 | ## ------------------------------------------------------ ## | |
6932 | _ASBOX | |
6933 | ) | | |
6934 | sed "s/^/$as_me: WARNING: /" >&2 | |
4ee9c684 | 6935 | ;; |
4ee9c684 | 6936 | esac |
90973b19 | 6937 | echo "$as_me:$LINENO: checking for complex.h" >&5 |
6938 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6939 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6941 | else | |
6942 | ac_cv_header_complex_h=$ac_header_preproc | |
6943 | fi | |
6944 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6945 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
4ee9c684 | 6946 | |
6947 | fi | |
90973b19 | 6948 | if test $ac_cv_header_complex_h = yes; then |
4ee9c684 | 6949 | |
90973b19 | 6950 | cat >>confdefs.h <<\_ACEOF |
6951 | #define HAVE_COMPLEX_H 1 | |
6952 | _ACEOF | |
4ee9c684 | 6953 | |
90973b19 | 6954 | fi |
4ee9c684 | 6955 | |
6956 | ||
4ee9c684 | 6957 | |
771c1b50 | 6958 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
6959 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
6960 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
6961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6962 | else | |
6963 | cat >conftest.$ac_ext <<_ACEOF | |
6964 | /* confdefs.h. */ | |
6965 | _ACEOF | |
6966 | cat confdefs.h >>conftest.$ac_ext | |
6967 | cat >>conftest.$ac_ext <<_ACEOF | |
6968 | /* end confdefs.h. */ | |
6969 | $ac_includes_default | |
6970 | int | |
6971 | main () | |
6972 | { | |
6973 | static struct stat ac_aggr; | |
6974 | if (ac_aggr.st_blksize) | |
6975 | return 0; | |
6976 | ; | |
6977 | return 0; | |
6978 | } | |
6979 | _ACEOF | |
6980 | rm -f conftest.$ac_objext | |
6981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6982 | (eval $ac_compile) 2>conftest.er1 | |
6983 | ac_status=$? | |
6984 | grep -v '^ *+' conftest.er1 >conftest.err | |
6985 | rm -f conftest.er1 | |
6986 | cat conftest.err >&5 | |
6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6988 | (exit $ac_status); } && | |
b56cb1ff | 6989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
771c1b50 | 6990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6991 | (eval $ac_try) 2>&5 | |
6992 | ac_status=$? | |
6993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6994 | (exit $ac_status); }; } && | |
6995 | { ac_try='test -s conftest.$ac_objext' | |
6996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6997 | (eval $ac_try) 2>&5 | |
6998 | ac_status=$? | |
6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7000 | (exit $ac_status); }; }; then | |
7001 | ac_cv_member_struct_stat_st_blksize=yes | |
7002 | else | |
7003 | echo "$as_me: failed program was:" >&5 | |
7004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7005 | ||
7006 | cat >conftest.$ac_ext <<_ACEOF | |
7007 | /* confdefs.h. */ | |
7008 | _ACEOF | |
7009 | cat confdefs.h >>conftest.$ac_ext | |
7010 | cat >>conftest.$ac_ext <<_ACEOF | |
7011 | /* end confdefs.h. */ | |
7012 | $ac_includes_default | |
7013 | int | |
7014 | main () | |
7015 | { | |
7016 | static struct stat ac_aggr; | |
7017 | if (sizeof ac_aggr.st_blksize) | |
7018 | return 0; | |
7019 | ; | |
7020 | return 0; | |
7021 | } | |
7022 | _ACEOF | |
7023 | rm -f conftest.$ac_objext | |
7024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7025 | (eval $ac_compile) 2>conftest.er1 | |
7026 | ac_status=$? | |
7027 | grep -v '^ *+' conftest.er1 >conftest.err | |
7028 | rm -f conftest.er1 | |
7029 | cat conftest.err >&5 | |
7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7031 | (exit $ac_status); } && | |
b56cb1ff | 7032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
771c1b50 | 7033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7034 | (eval $ac_try) 2>&5 | |
7035 | ac_status=$? | |
7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7037 | (exit $ac_status); }; } && | |
7038 | { ac_try='test -s conftest.$ac_objext' | |
7039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7040 | (eval $ac_try) 2>&5 | |
7041 | ac_status=$? | |
7042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7043 | (exit $ac_status); }; }; then | |
7044 | ac_cv_member_struct_stat_st_blksize=yes | |
7045 | else | |
7046 | echo "$as_me: failed program was:" >&5 | |
7047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7048 | ||
7049 | ac_cv_member_struct_stat_st_blksize=no | |
7050 | fi | |
7051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7052 | fi | |
7053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7054 | fi | |
7055 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | |
7056 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
7057 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
7058 | ||
7059 | cat >>confdefs.h <<_ACEOF | |
7060 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
7061 | _ACEOF | |
7062 | ||
7063 | ||
7064 | fi | |
7065 | ||
7066 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 | |
7067 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
7068 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
7069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7070 | else | |
7071 | cat >conftest.$ac_ext <<_ACEOF | |
7072 | /* confdefs.h. */ | |
7073 | _ACEOF | |
7074 | cat confdefs.h >>conftest.$ac_ext | |
7075 | cat >>conftest.$ac_ext <<_ACEOF | |
7076 | /* end confdefs.h. */ | |
7077 | $ac_includes_default | |
7078 | int | |
7079 | main () | |
7080 | { | |
7081 | static struct stat ac_aggr; | |
7082 | if (ac_aggr.st_blocks) | |
7083 | return 0; | |
7084 | ; | |
7085 | return 0; | |
7086 | } | |
7087 | _ACEOF | |
7088 | rm -f conftest.$ac_objext | |
7089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7090 | (eval $ac_compile) 2>conftest.er1 | |
7091 | ac_status=$? | |
7092 | grep -v '^ *+' conftest.er1 >conftest.err | |
7093 | rm -f conftest.er1 | |
7094 | cat conftest.err >&5 | |
7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7096 | (exit $ac_status); } && | |
b56cb1ff | 7097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
771c1b50 | 7098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7099 | (eval $ac_try) 2>&5 | |
7100 | ac_status=$? | |
7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7102 | (exit $ac_status); }; } && | |
7103 | { ac_try='test -s conftest.$ac_objext' | |
7104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7105 | (eval $ac_try) 2>&5 | |
7106 | ac_status=$? | |
7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7108 | (exit $ac_status); }; }; then | |
7109 | ac_cv_member_struct_stat_st_blocks=yes | |
7110 | else | |
7111 | echo "$as_me: failed program was:" >&5 | |
7112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7113 | ||
7114 | cat >conftest.$ac_ext <<_ACEOF | |
7115 | /* confdefs.h. */ | |
7116 | _ACEOF | |
7117 | cat confdefs.h >>conftest.$ac_ext | |
7118 | cat >>conftest.$ac_ext <<_ACEOF | |
7119 | /* end confdefs.h. */ | |
7120 | $ac_includes_default | |
7121 | int | |
7122 | main () | |
7123 | { | |
7124 | static struct stat ac_aggr; | |
7125 | if (sizeof ac_aggr.st_blocks) | |
7126 | return 0; | |
7127 | ; | |
7128 | return 0; | |
7129 | } | |
7130 | _ACEOF | |
7131 | rm -f conftest.$ac_objext | |
7132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7133 | (eval $ac_compile) 2>conftest.er1 | |
7134 | ac_status=$? | |
7135 | grep -v '^ *+' conftest.er1 >conftest.err | |
7136 | rm -f conftest.er1 | |
7137 | cat conftest.err >&5 | |
7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7139 | (exit $ac_status); } && | |
b56cb1ff | 7140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
771c1b50 | 7141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7142 | (eval $ac_try) 2>&5 | |
7143 | ac_status=$? | |
7144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7145 | (exit $ac_status); }; } && | |
7146 | { ac_try='test -s conftest.$ac_objext' | |
7147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7148 | (eval $ac_try) 2>&5 | |
7149 | ac_status=$? | |
7150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7151 | (exit $ac_status); }; }; then | |
7152 | ac_cv_member_struct_stat_st_blocks=yes | |
7153 | else | |
7154 | echo "$as_me: failed program was:" >&5 | |
7155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7156 | ||
7157 | ac_cv_member_struct_stat_st_blocks=no | |
7158 | fi | |
7159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7160 | fi | |
7161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7162 | fi | |
7163 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 | |
7164 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
7165 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
7166 | ||
7167 | cat >>confdefs.h <<_ACEOF | |
7168 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
7169 | _ACEOF | |
7170 | ||
7171 | ||
7172 | fi | |
7173 | ||
7174 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
7175 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
7176 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
7177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7178 | else | |
7179 | cat >conftest.$ac_ext <<_ACEOF | |
7180 | /* confdefs.h. */ | |
7181 | _ACEOF | |
7182 | cat confdefs.h >>conftest.$ac_ext | |
7183 | cat >>conftest.$ac_ext <<_ACEOF | |
7184 | /* end confdefs.h. */ | |
7185 | $ac_includes_default | |
7186 | int | |
7187 | main () | |
7188 | { | |
7189 | static struct stat ac_aggr; | |
7190 | if (ac_aggr.st_rdev) | |
7191 | return 0; | |
7192 | ; | |
7193 | return 0; | |
7194 | } | |
7195 | _ACEOF | |
7196 | rm -f conftest.$ac_objext | |
7197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7198 | (eval $ac_compile) 2>conftest.er1 | |
7199 | ac_status=$? | |
7200 | grep -v '^ *+' conftest.er1 >conftest.err | |
7201 | rm -f conftest.er1 | |
7202 | cat conftest.err >&5 | |
7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7204 | (exit $ac_status); } && | |
b56cb1ff | 7205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
771c1b50 | 7206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7207 | (eval $ac_try) 2>&5 | |
7208 | ac_status=$? | |
7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7210 | (exit $ac_status); }; } && | |
7211 | { ac_try='test -s conftest.$ac_objext' | |
7212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7213 | (eval $ac_try) 2>&5 | |
7214 | ac_status=$? | |
7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7216 | (exit $ac_status); }; }; then | |
7217 | ac_cv_member_struct_stat_st_rdev=yes | |
7218 | else | |
7219 | echo "$as_me: failed program was:" >&5 | |
7220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7221 | ||
7222 | cat >conftest.$ac_ext <<_ACEOF | |
7223 | /* confdefs.h. */ | |
7224 | _ACEOF | |
7225 | cat confdefs.h >>conftest.$ac_ext | |
7226 | cat >>conftest.$ac_ext <<_ACEOF | |
7227 | /* end confdefs.h. */ | |
7228 | $ac_includes_default | |
7229 | int | |
7230 | main () | |
7231 | { | |
7232 | static struct stat ac_aggr; | |
7233 | if (sizeof ac_aggr.st_rdev) | |
7234 | return 0; | |
7235 | ; | |
7236 | return 0; | |
7237 | } | |
7238 | _ACEOF | |
7239 | rm -f conftest.$ac_objext | |
7240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7241 | (eval $ac_compile) 2>conftest.er1 | |
7242 | ac_status=$? | |
7243 | grep -v '^ *+' conftest.er1 >conftest.err | |
7244 | rm -f conftest.er1 | |
7245 | cat conftest.err >&5 | |
7246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7247 | (exit $ac_status); } && | |
b56cb1ff | 7248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
771c1b50 | 7249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7250 | (eval $ac_try) 2>&5 | |
7251 | ac_status=$? | |
7252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7253 | (exit $ac_status); }; } && | |
7254 | { ac_try='test -s conftest.$ac_objext' | |
7255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7256 | (eval $ac_try) 2>&5 | |
7257 | ac_status=$? | |
7258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7259 | (exit $ac_status); }; }; then | |
7260 | ac_cv_member_struct_stat_st_rdev=yes | |
7261 | else | |
7262 | echo "$as_me: failed program was:" >&5 | |
7263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7264 | ||
7265 | ac_cv_member_struct_stat_st_rdev=no | |
7266 | fi | |
7267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7268 | fi | |
7269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7270 | fi | |
7271 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
7272 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
7273 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
7274 | ||
7275 | cat >>confdefs.h <<_ACEOF | |
7276 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7277 | _ACEOF | |
7278 | ||
7279 | ||
7280 | fi | |
7281 | ||
7282 | ||
90973b19 | 7283 | # Check for library functions. |
7284 | ||
7285 | ||
7dfba97b | 7286 | |
5e7b82bb | 7287 | |
c436f700 | 7288 | |
a54b1ce7 | 7289 | |
7290 | ||
14c3c235 | 7291 | |
7292 | for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize | |
90973b19 | 7293 | do |
7294 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7295 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7296 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7297 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4ee9c684 | 7298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7299 | else | |
b52ee437 | 7300 | if test x$gcc_no_link = xyes; then |
7301 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7302 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7303 | { (exit 1); exit 1; }; } | |
7304 | fi | |
7305 | cat >conftest.$ac_ext <<_ACEOF | |
4dd3972f | 7306 | /* confdefs.h. */ |
7307 | _ACEOF | |
7308 | cat confdefs.h >>conftest.$ac_ext | |
7309 | cat >>conftest.$ac_ext <<_ACEOF | |
7310 | /* end confdefs.h. */ | |
7311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7313 | #define $ac_func innocuous_$ac_func | |
7314 | ||
7315 | /* System header to define __stub macros and hopefully few prototypes, | |
7316 | which can conflict with char $ac_func (); below. | |
7317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7318 | <limits.h> exists even on freestanding compilers. */ | |
7319 | ||
7320 | #ifdef __STDC__ | |
7321 | # include <limits.h> | |
7322 | #else | |
7323 | # include <assert.h> | |
7324 | #endif | |
7325 | ||
7326 | #undef $ac_func | |
7327 | ||
7328 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7329 | #ifdef __cplusplus | |
7330 | extern "C" | |
7331 | { | |
7332 | #endif | |
7333 | /* We use char because int might match the return type of a gcc2 | |
7334 | builtin and then its argument prototype would still apply. */ | |
7335 | char $ac_func (); | |
7336 | /* The GNU C library defines this for functions which it implements | |
7337 | to always fail with ENOSYS. Some functions are actually named | |
7338 | something starting with __ and the normal name is an alias. */ | |
7339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7340 | choke me | |
7341 | #else | |
7342 | char (*f) () = $ac_func; | |
7343 | #endif | |
7344 | #ifdef __cplusplus | |
7345 | } | |
7346 | #endif | |
7347 | ||
7348 | int | |
7349 | main () | |
7350 | { | |
7351 | return f != $ac_func; | |
7352 | ; | |
7353 | return 0; | |
7354 | } | |
7355 | _ACEOF | |
7356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7358 | (eval $ac_link) 2>conftest.er1 | |
7359 | ac_status=$? | |
7360 | grep -v '^ *+' conftest.er1 >conftest.err | |
7361 | rm -f conftest.er1 | |
7362 | cat conftest.err >&5 | |
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7364 | (exit $ac_status); } && | |
b56cb1ff | 7365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4dd3972f | 7366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7367 | (eval $ac_try) 2>&5 | |
7368 | ac_status=$? | |
7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7370 | (exit $ac_status); }; } && | |
7371 | { ac_try='test -s conftest$ac_exeext' | |
7372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7373 | (eval $ac_try) 2>&5 | |
7374 | ac_status=$? | |
7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7376 | (exit $ac_status); }; }; then | |
7377 | eval "$as_ac_var=yes" | |
7378 | else | |
7379 | echo "$as_me: failed program was:" >&5 | |
7380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7381 | ||
7382 | eval "$as_ac_var=no" | |
6745c9de | 7383 | fi |
4dd3972f | 7384 | rm -f conftest.err conftest.$ac_objext \ |
7385 | conftest$ac_exeext conftest.$ac_ext | |
7386 | fi | |
7387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7389 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7390 | cat >>confdefs.h <<_ACEOF | |
7391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7392 | _ACEOF | |
7393 | ||
7394 | fi | |
7395 | done | |
7396 | ||
7397 | ||
7398 | ||
7399 | ||
7400 | ||
7401 | ||
7402 | ||
7403 | ||
7404 | ||
7405 | for ac_func in chdir strerror getlogin gethostname kill link symlink perror | |
7406 | do | |
7407 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7408 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7409 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7410 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7412 | else | |
b52ee437 | 7413 | if test x$gcc_no_link = xyes; then |
7414 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7415 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7416 | { (exit 1); exit 1; }; } | |
7417 | fi | |
7418 | cat >conftest.$ac_ext <<_ACEOF | |
90973b19 | 7419 | /* confdefs.h. */ |
7420 | _ACEOF | |
7421 | cat confdefs.h >>conftest.$ac_ext | |
7422 | cat >>conftest.$ac_ext <<_ACEOF | |
7423 | /* end confdefs.h. */ | |
7424 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7426 | #define $ac_func innocuous_$ac_func | |
4ee9c684 | 7427 | |
90973b19 | 7428 | /* System header to define __stub macros and hopefully few prototypes, |
7429 | which can conflict with char $ac_func (); below. | |
7430 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7431 | <limits.h> exists even on freestanding compilers. */ | |
4ee9c684 | 7432 | |
90973b19 | 7433 | #ifdef __STDC__ |
7434 | # include <limits.h> | |
7435 | #else | |
7436 | # include <assert.h> | |
7437 | #endif | |
4ee9c684 | 7438 | |
90973b19 | 7439 | #undef $ac_func |
7440 | ||
7441 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7442 | #ifdef __cplusplus | |
7443 | extern "C" | |
7444 | { | |
7445 | #endif | |
7446 | /* We use char because int might match the return type of a gcc2 | |
7447 | builtin and then its argument prototype would still apply. */ | |
7448 | char $ac_func (); | |
7449 | /* The GNU C library defines this for functions which it implements | |
7450 | to always fail with ENOSYS. Some functions are actually named | |
7451 | something starting with __ and the normal name is an alias. */ | |
7452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7453 | choke me | |
7454 | #else | |
7455 | char (*f) () = $ac_func; | |
7456 | #endif | |
7457 | #ifdef __cplusplus | |
7458 | } | |
7459 | #endif | |
7460 | ||
7461 | int | |
7462 | main () | |
7463 | { | |
7464 | return f != $ac_func; | |
7465 | ; | |
7466 | return 0; | |
7467 | } | |
7468 | _ACEOF | |
7469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7471 | (eval $ac_link) 2>conftest.er1 | |
7472 | ac_status=$? | |
7473 | grep -v '^ *+' conftest.er1 >conftest.err | |
7474 | rm -f conftest.er1 | |
7475 | cat conftest.err >&5 | |
7476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7477 | (exit $ac_status); } && | |
b56cb1ff | 7478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4dd3972f | 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_exeext' | |
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 | eval "$as_ac_var=yes" | |
7491 | else | |
7492 | echo "$as_me: failed program was:" >&5 | |
7493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7494 | ||
7495 | eval "$as_ac_var=no" | |
7496 | fi | |
7497 | rm -f conftest.err conftest.$ac_objext \ | |
7498 | conftest$ac_exeext conftest.$ac_ext | |
7499 | fi | |
7500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7501 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7502 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7503 | cat >>confdefs.h <<_ACEOF | |
7504 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7505 | _ACEOF | |
7506 | ||
7507 | fi | |
7508 | done | |
7509 | ||
7510 | ||
7511 | ||
f2c0a16d | 7512 | |
247981ce | 7513 | |
7514 | ||
b902b078 | 7515 | |
7516 | for ac_func in sleep time ttyname signal alarm ctime | |
4dd3972f | 7517 | do |
7518 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7519 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7520 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7521 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7523 | else | |
b52ee437 | 7524 | if test x$gcc_no_link = xyes; then |
7525 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7526 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7527 | { (exit 1); exit 1; }; } | |
7528 | fi | |
7529 | cat >conftest.$ac_ext <<_ACEOF | |
4dd3972f | 7530 | /* confdefs.h. */ |
7531 | _ACEOF | |
7532 | cat confdefs.h >>conftest.$ac_ext | |
7533 | cat >>conftest.$ac_ext <<_ACEOF | |
7534 | /* end confdefs.h. */ | |
7535 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7537 | #define $ac_func innocuous_$ac_func | |
7538 | ||
7539 | /* System header to define __stub macros and hopefully few prototypes, | |
7540 | which can conflict with char $ac_func (); below. | |
7541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7542 | <limits.h> exists even on freestanding compilers. */ | |
7543 | ||
7544 | #ifdef __STDC__ | |
7545 | # include <limits.h> | |
7546 | #else | |
7547 | # include <assert.h> | |
7548 | #endif | |
7549 | ||
7550 | #undef $ac_func | |
7551 | ||
7552 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7553 | #ifdef __cplusplus | |
7554 | extern "C" | |
7555 | { | |
7556 | #endif | |
7557 | /* We use char because int might match the return type of a gcc2 | |
7558 | builtin and then its argument prototype would still apply. */ | |
7559 | char $ac_func (); | |
7560 | /* The GNU C library defines this for functions which it implements | |
7561 | to always fail with ENOSYS. Some functions are actually named | |
7562 | something starting with __ and the normal name is an alias. */ | |
7563 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7564 | choke me | |
7565 | #else | |
7566 | char (*f) () = $ac_func; | |
7567 | #endif | |
7568 | #ifdef __cplusplus | |
7569 | } | |
7570 | #endif | |
7571 | ||
7572 | int | |
7573 | main () | |
7574 | { | |
7575 | return f != $ac_func; | |
7576 | ; | |
7577 | return 0; | |
7578 | } | |
7579 | _ACEOF | |
7580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7582 | (eval $ac_link) 2>conftest.er1 | |
7583 | ac_status=$? | |
7584 | grep -v '^ *+' conftest.er1 >conftest.err | |
7585 | rm -f conftest.er1 | |
7586 | cat conftest.err >&5 | |
7587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7588 | (exit $ac_status); } && | |
b56cb1ff | 7589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 7590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7591 | (eval $ac_try) 2>&5 | |
7592 | ac_status=$? | |
7593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7594 | (exit $ac_status); }; } && | |
7595 | { ac_try='test -s conftest$ac_exeext' | |
7596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7597 | (eval $ac_try) 2>&5 | |
7598 | ac_status=$? | |
7599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7600 | (exit $ac_status); }; }; then | |
7601 | eval "$as_ac_var=yes" | |
4ee9c684 | 7602 | else |
90973b19 | 7603 | echo "$as_me: failed program was:" >&5 |
7604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7605 | ||
7606 | eval "$as_ac_var=no" | |
7607 | fi | |
7608 | rm -f conftest.err conftest.$ac_objext \ | |
7609 | conftest$ac_exeext conftest.$ac_ext | |
4ee9c684 | 7610 | fi |
90973b19 | 7611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
7612 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7613 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7614 | cat >>confdefs.h <<_ACEOF | |
7615 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7616 | _ACEOF | |
4ee9c684 | 7617 | |
4ee9c684 | 7618 | fi |
90973b19 | 7619 | done |
4ee9c684 | 7620 | |
4ee9c684 | 7621 | |
adad6c74 | 7622 | # Check libc for getgid, getpid, getuid |
7623 | echo "$as_me:$LINENO: checking for getgid in -lc" >&5 | |
7624 | echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6 | |
7625 | if test "${ac_cv_lib_c_getgid+set}" = set; then | |
7626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7627 | else | |
7628 | ac_check_lib_save_LIBS=$LIBS | |
7629 | LIBS="-lc $LIBS" | |
b52ee437 | 7630 | if test x$gcc_no_link = xyes; then |
7631 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7632 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7633 | { (exit 1); exit 1; }; } | |
7634 | fi | |
adad6c74 | 7635 | cat >conftest.$ac_ext <<_ACEOF |
7636 | /* confdefs.h. */ | |
7637 | _ACEOF | |
7638 | cat confdefs.h >>conftest.$ac_ext | |
7639 | cat >>conftest.$ac_ext <<_ACEOF | |
7640 | /* end confdefs.h. */ | |
7641 | ||
7642 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7643 | #ifdef __cplusplus | |
7644 | extern "C" | |
7645 | #endif | |
7646 | /* We use char because int might match the return type of a gcc2 | |
7647 | builtin and then its argument prototype would still apply. */ | |
7648 | char getgid (); | |
7649 | int | |
7650 | main () | |
7651 | { | |
7652 | getgid (); | |
7653 | ; | |
7654 | return 0; | |
7655 | } | |
7656 | _ACEOF | |
7657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7659 | (eval $ac_link) 2>conftest.er1 | |
7660 | ac_status=$? | |
7661 | grep -v '^ *+' conftest.er1 >conftest.err | |
7662 | rm -f conftest.er1 | |
7663 | cat conftest.err >&5 | |
7664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7665 | (exit $ac_status); } && | |
b56cb1ff | 7666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
adad6c74 | 7667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7668 | (eval $ac_try) 2>&5 | |
7669 | ac_status=$? | |
7670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7671 | (exit $ac_status); }; } && | |
7672 | { ac_try='test -s conftest$ac_exeext' | |
7673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7674 | (eval $ac_try) 2>&5 | |
7675 | ac_status=$? | |
7676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7677 | (exit $ac_status); }; }; then | |
7678 | ac_cv_lib_c_getgid=yes | |
7679 | else | |
7680 | echo "$as_me: failed program was:" >&5 | |
7681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7682 | ||
7683 | ac_cv_lib_c_getgid=no | |
7684 | fi | |
7685 | rm -f conftest.err conftest.$ac_objext \ | |
7686 | conftest$ac_exeext conftest.$ac_ext | |
7687 | LIBS=$ac_check_lib_save_LIBS | |
7688 | fi | |
7689 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5 | |
7690 | echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6 | |
7691 | if test $ac_cv_lib_c_getgid = yes; then | |
7692 | ||
7693 | cat >>confdefs.h <<\_ACEOF | |
7694 | #define HAVE_GETGID 1 | |
7695 | _ACEOF | |
7696 | ||
7697 | fi | |
7698 | ||
7699 | echo "$as_me:$LINENO: checking for getpid in -lc" >&5 | |
7700 | echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6 | |
7701 | if test "${ac_cv_lib_c_getpid+set}" = set; then | |
7702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7703 | else | |
7704 | ac_check_lib_save_LIBS=$LIBS | |
7705 | LIBS="-lc $LIBS" | |
b52ee437 | 7706 | if test x$gcc_no_link = xyes; then |
7707 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7708 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7709 | { (exit 1); exit 1; }; } | |
7710 | fi | |
adad6c74 | 7711 | cat >conftest.$ac_ext <<_ACEOF |
7712 | /* confdefs.h. */ | |
7713 | _ACEOF | |
7714 | cat confdefs.h >>conftest.$ac_ext | |
7715 | cat >>conftest.$ac_ext <<_ACEOF | |
7716 | /* end confdefs.h. */ | |
7717 | ||
7718 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7719 | #ifdef __cplusplus | |
7720 | extern "C" | |
7721 | #endif | |
7722 | /* We use char because int might match the return type of a gcc2 | |
7723 | builtin and then its argument prototype would still apply. */ | |
7724 | char getpid (); | |
7725 | int | |
7726 | main () | |
7727 | { | |
7728 | getpid (); | |
7729 | ; | |
7730 | return 0; | |
7731 | } | |
7732 | _ACEOF | |
7733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7735 | (eval $ac_link) 2>conftest.er1 | |
7736 | ac_status=$? | |
7737 | grep -v '^ *+' conftest.er1 >conftest.err | |
7738 | rm -f conftest.er1 | |
7739 | cat conftest.err >&5 | |
7740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7741 | (exit $ac_status); } && | |
b56cb1ff | 7742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
adad6c74 | 7743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7744 | (eval $ac_try) 2>&5 | |
7745 | ac_status=$? | |
7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7747 | (exit $ac_status); }; } && | |
7748 | { ac_try='test -s conftest$ac_exeext' | |
7749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7750 | (eval $ac_try) 2>&5 | |
7751 | ac_status=$? | |
7752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7753 | (exit $ac_status); }; }; then | |
7754 | ac_cv_lib_c_getpid=yes | |
7755 | else | |
7756 | echo "$as_me: failed program was:" >&5 | |
7757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7758 | ||
7759 | ac_cv_lib_c_getpid=no | |
7760 | fi | |
7761 | rm -f conftest.err conftest.$ac_objext \ | |
7762 | conftest$ac_exeext conftest.$ac_ext | |
7763 | LIBS=$ac_check_lib_save_LIBS | |
7764 | fi | |
7765 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5 | |
7766 | echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6 | |
7767 | if test $ac_cv_lib_c_getpid = yes; then | |
7768 | ||
7769 | cat >>confdefs.h <<\_ACEOF | |
7770 | #define HAVE_GETPID 1 | |
7771 | _ACEOF | |
7772 | ||
7773 | fi | |
7774 | ||
7775 | echo "$as_me:$LINENO: checking for getuid in -lc" >&5 | |
7776 | echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6 | |
7777 | if test "${ac_cv_lib_c_getuid+set}" = set; then | |
7778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7779 | else | |
7780 | ac_check_lib_save_LIBS=$LIBS | |
7781 | LIBS="-lc $LIBS" | |
b52ee437 | 7782 | if test x$gcc_no_link = xyes; then |
7783 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7784 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7785 | { (exit 1); exit 1; }; } | |
7786 | fi | |
adad6c74 | 7787 | cat >conftest.$ac_ext <<_ACEOF |
7788 | /* confdefs.h. */ | |
7789 | _ACEOF | |
7790 | cat confdefs.h >>conftest.$ac_ext | |
7791 | cat >>conftest.$ac_ext <<_ACEOF | |
7792 | /* end confdefs.h. */ | |
7793 | ||
7794 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7795 | #ifdef __cplusplus | |
7796 | extern "C" | |
7797 | #endif | |
7798 | /* We use char because int might match the return type of a gcc2 | |
7799 | builtin and then its argument prototype would still apply. */ | |
7800 | char getuid (); | |
7801 | int | |
7802 | main () | |
7803 | { | |
7804 | getuid (); | |
7805 | ; | |
7806 | return 0; | |
7807 | } | |
7808 | _ACEOF | |
7809 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7811 | (eval $ac_link) 2>conftest.er1 | |
7812 | ac_status=$? | |
7813 | grep -v '^ *+' conftest.er1 >conftest.err | |
7814 | rm -f conftest.er1 | |
7815 | cat conftest.err >&5 | |
7816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7817 | (exit $ac_status); } && | |
b56cb1ff | 7818 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
adad6c74 | 7819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7820 | (eval $ac_try) 2>&5 | |
7821 | ac_status=$? | |
7822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7823 | (exit $ac_status); }; } && | |
7824 | { ac_try='test -s conftest$ac_exeext' | |
7825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7826 | (eval $ac_try) 2>&5 | |
7827 | ac_status=$? | |
7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7829 | (exit $ac_status); }; }; then | |
7830 | ac_cv_lib_c_getuid=yes | |
7831 | else | |
7832 | echo "$as_me: failed program was:" >&5 | |
7833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7834 | ||
7835 | ac_cv_lib_c_getuid=no | |
7836 | fi | |
7837 | rm -f conftest.err conftest.$ac_objext \ | |
7838 | conftest$ac_exeext conftest.$ac_ext | |
7839 | LIBS=$ac_check_lib_save_LIBS | |
7840 | fi | |
7841 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5 | |
7842 | echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6 | |
7843 | if test $ac_cv_lib_c_getuid = yes; then | |
7844 | ||
7845 | cat >>confdefs.h <<\_ACEOF | |
7846 | #define HAVE_GETUID 1 | |
7847 | _ACEOF | |
7848 | ||
7849 | fi | |
7850 | ||
7851 | ||
8f838781 | 7852 | # Check for C99 (and other IEEE) math functions |
158e0e64 | 7853 | # ??? This list seems awful long. Is there a better way to test for these? |
8f838781 | 7854 | echo "$as_me:$LINENO: checking for acosf in -lm" >&5 |
7855 | echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6 | |
7856 | if test "${ac_cv_lib_m_acosf+set}" = set; then | |
7857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7858 | else | |
7859 | ac_check_lib_save_LIBS=$LIBS | |
7860 | LIBS="-lm $LIBS" | |
b52ee437 | 7861 | if test x$gcc_no_link = xyes; then |
7862 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7863 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7864 | { (exit 1); exit 1; }; } | |
7865 | fi | |
8f838781 | 7866 | cat >conftest.$ac_ext <<_ACEOF |
7867 | /* confdefs.h. */ | |
7868 | _ACEOF | |
7869 | cat confdefs.h >>conftest.$ac_ext | |
7870 | cat >>conftest.$ac_ext <<_ACEOF | |
7871 | /* end confdefs.h. */ | |
7872 | ||
7873 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7874 | #ifdef __cplusplus | |
7875 | extern "C" | |
7876 | #endif | |
7877 | /* We use char because int might match the return type of a gcc2 | |
7878 | builtin and then its argument prototype would still apply. */ | |
7879 | char acosf (); | |
7880 | int | |
7881 | main () | |
7882 | { | |
7883 | acosf (); | |
7884 | ; | |
7885 | return 0; | |
7886 | } | |
7887 | _ACEOF | |
7888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7890 | (eval $ac_link) 2>conftest.er1 | |
7891 | ac_status=$? | |
7892 | grep -v '^ *+' conftest.er1 >conftest.err | |
7893 | rm -f conftest.er1 | |
7894 | cat conftest.err >&5 | |
7895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7896 | (exit $ac_status); } && | |
b56cb1ff | 7897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 7898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7899 | (eval $ac_try) 2>&5 | |
7900 | ac_status=$? | |
7901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7902 | (exit $ac_status); }; } && | |
7903 | { ac_try='test -s conftest$ac_exeext' | |
7904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7905 | (eval $ac_try) 2>&5 | |
7906 | ac_status=$? | |
7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7908 | (exit $ac_status); }; }; then | |
7909 | ac_cv_lib_m_acosf=yes | |
7910 | else | |
7911 | echo "$as_me: failed program was:" >&5 | |
7912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7913 | ||
7914 | ac_cv_lib_m_acosf=no | |
7915 | fi | |
7916 | rm -f conftest.err conftest.$ac_objext \ | |
7917 | conftest$ac_exeext conftest.$ac_ext | |
7918 | LIBS=$ac_check_lib_save_LIBS | |
7919 | fi | |
7920 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5 | |
7921 | echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6 | |
7922 | if test $ac_cv_lib_m_acosf = yes; then | |
7923 | ||
7924 | cat >>confdefs.h <<\_ACEOF | |
7925 | #define HAVE_ACOSF 1 | |
7926 | _ACEOF | |
7927 | ||
7928 | fi | |
7929 | ||
d213114b | 7930 | echo "$as_me:$LINENO: checking for acos in -lm" >&5 |
7931 | echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6 | |
7932 | if test "${ac_cv_lib_m_acos+set}" = set; then | |
b52ee437 | 7933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7934 | else | |
7935 | ac_check_lib_save_LIBS=$LIBS | |
7936 | LIBS="-lm $LIBS" | |
7937 | if test x$gcc_no_link = xyes; then | |
7938 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7939 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7940 | { (exit 1); exit 1; }; } | |
7941 | fi | |
7942 | cat >conftest.$ac_ext <<_ACEOF | |
7943 | /* confdefs.h. */ | |
7944 | _ACEOF | |
7945 | cat confdefs.h >>conftest.$ac_ext | |
7946 | cat >>conftest.$ac_ext <<_ACEOF | |
7947 | /* end confdefs.h. */ | |
7948 | ||
7949 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7950 | #ifdef __cplusplus | |
7951 | extern "C" | |
7952 | #endif | |
7953 | /* We use char because int might match the return type of a gcc2 | |
7954 | builtin and then its argument prototype would still apply. */ | |
d213114b | 7955 | char acos (); |
b52ee437 | 7956 | int |
7957 | main () | |
7958 | { | |
d213114b | 7959 | acos (); |
b52ee437 | 7960 | ; |
7961 | return 0; | |
7962 | } | |
7963 | _ACEOF | |
7964 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7966 | (eval $ac_link) 2>conftest.er1 | |
7967 | ac_status=$? | |
7968 | grep -v '^ *+' conftest.er1 >conftest.err | |
7969 | rm -f conftest.er1 | |
7970 | cat conftest.err >&5 | |
7971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7972 | (exit $ac_status); } && | |
b56cb1ff | 7973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
b52ee437 | 7974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7975 | (eval $ac_try) 2>&5 | |
7976 | ac_status=$? | |
7977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7978 | (exit $ac_status); }; } && | |
7979 | { ac_try='test -s conftest$ac_exeext' | |
7980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7981 | (eval $ac_try) 2>&5 | |
7982 | ac_status=$? | |
7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7984 | (exit $ac_status); }; }; then | |
d213114b | 7985 | ac_cv_lib_m_acos=yes |
b52ee437 | 7986 | else |
7987 | echo "$as_me: failed program was:" >&5 | |
7988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7989 | ||
d213114b | 7990 | ac_cv_lib_m_acos=no |
b52ee437 | 7991 | fi |
7992 | rm -f conftest.err conftest.$ac_objext \ | |
7993 | conftest$ac_exeext conftest.$ac_ext | |
7994 | LIBS=$ac_check_lib_save_LIBS | |
7995 | fi | |
d213114b | 7996 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5 |
7997 | echo "${ECHO_T}$ac_cv_lib_m_acos" >&6 | |
7998 | if test $ac_cv_lib_m_acos = yes; then | |
b52ee437 | 7999 | |
8000 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8001 | #define HAVE_ACOS 1 |
b52ee437 | 8002 | _ACEOF |
8003 | ||
8004 | fi | |
8005 | ||
d213114b | 8006 | echo "$as_me:$LINENO: checking for acosl in -lm" >&5 |
8007 | echo $ECHO_N "checking for acosl in -lm... $ECHO_C" >&6 | |
8008 | if test "${ac_cv_lib_m_acosl+set}" = set; then | |
8f838781 | 8009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8010 | else | |
8011 | ac_check_lib_save_LIBS=$LIBS | |
8012 | LIBS="-lm $LIBS" | |
b52ee437 | 8013 | if test x$gcc_no_link = xyes; then |
8014 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8015 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8016 | { (exit 1); exit 1; }; } | |
8017 | fi | |
8f838781 | 8018 | cat >conftest.$ac_ext <<_ACEOF |
8019 | /* confdefs.h. */ | |
8020 | _ACEOF | |
8021 | cat confdefs.h >>conftest.$ac_ext | |
8022 | cat >>conftest.$ac_ext <<_ACEOF | |
8023 | /* end confdefs.h. */ | |
8024 | ||
8025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8026 | #ifdef __cplusplus | |
8027 | extern "C" | |
8028 | #endif | |
8029 | /* We use char because int might match the return type of a gcc2 | |
8030 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8031 | char acosl (); |
8f838781 | 8032 | int |
8033 | main () | |
8034 | { | |
d213114b | 8035 | acosl (); |
8f838781 | 8036 | ; |
8037 | return 0; | |
8038 | } | |
8039 | _ACEOF | |
8040 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8042 | (eval $ac_link) 2>conftest.er1 | |
8043 | ac_status=$? | |
8044 | grep -v '^ *+' conftest.er1 >conftest.err | |
8045 | rm -f conftest.er1 | |
8046 | cat conftest.err >&5 | |
8047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8048 | (exit $ac_status); } && | |
b56cb1ff | 8049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 8050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8051 | (eval $ac_try) 2>&5 | |
8052 | ac_status=$? | |
8053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8054 | (exit $ac_status); }; } && | |
8055 | { ac_try='test -s conftest$ac_exeext' | |
8056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8057 | (eval $ac_try) 2>&5 | |
8058 | ac_status=$? | |
8059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8060 | (exit $ac_status); }; }; then | |
d213114b | 8061 | ac_cv_lib_m_acosl=yes |
8f838781 | 8062 | else |
8063 | echo "$as_me: failed program was:" >&5 | |
8064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8065 | ||
d213114b | 8066 | ac_cv_lib_m_acosl=no |
8f838781 | 8067 | fi |
8068 | rm -f conftest.err conftest.$ac_objext \ | |
8069 | conftest$ac_exeext conftest.$ac_ext | |
8070 | LIBS=$ac_check_lib_save_LIBS | |
8071 | fi | |
d213114b | 8072 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosl" >&5 |
8073 | echo "${ECHO_T}$ac_cv_lib_m_acosl" >&6 | |
8074 | if test $ac_cv_lib_m_acosl = yes; then | |
8f838781 | 8075 | |
8076 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8077 | #define HAVE_ACOSL 1 |
8f838781 | 8078 | _ACEOF |
8079 | ||
8080 | fi | |
8081 | ||
d213114b | 8082 | echo "$as_me:$LINENO: checking for acoshf in -lm" >&5 |
8083 | echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6 | |
8084 | if test "${ac_cv_lib_m_acoshf+set}" = set; then | |
b52ee437 | 8085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8086 | else | |
8087 | ac_check_lib_save_LIBS=$LIBS | |
8088 | LIBS="-lm $LIBS" | |
8089 | if test x$gcc_no_link = xyes; then | |
8090 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8091 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8092 | { (exit 1); exit 1; }; } | |
8093 | fi | |
8094 | cat >conftest.$ac_ext <<_ACEOF | |
8095 | /* confdefs.h. */ | |
8096 | _ACEOF | |
8097 | cat confdefs.h >>conftest.$ac_ext | |
8098 | cat >>conftest.$ac_ext <<_ACEOF | |
8099 | /* end confdefs.h. */ | |
8100 | ||
8101 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8102 | #ifdef __cplusplus | |
8103 | extern "C" | |
8104 | #endif | |
8105 | /* We use char because int might match the return type of a gcc2 | |
8106 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8107 | char acoshf (); |
b52ee437 | 8108 | int |
8109 | main () | |
8110 | { | |
d213114b | 8111 | acoshf (); |
b52ee437 | 8112 | ; |
8113 | return 0; | |
8114 | } | |
8115 | _ACEOF | |
8116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8118 | (eval $ac_link) 2>conftest.er1 | |
8119 | ac_status=$? | |
8120 | grep -v '^ *+' conftest.er1 >conftest.err | |
8121 | rm -f conftest.er1 | |
8122 | cat conftest.err >&5 | |
8123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8124 | (exit $ac_status); } && | |
b56cb1ff | 8125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
b52ee437 | 8126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8127 | (eval $ac_try) 2>&5 | |
8128 | ac_status=$? | |
8129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8130 | (exit $ac_status); }; } && | |
8131 | { ac_try='test -s conftest$ac_exeext' | |
8132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8133 | (eval $ac_try) 2>&5 | |
8134 | ac_status=$? | |
8135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8136 | (exit $ac_status); }; }; then | |
d213114b | 8137 | ac_cv_lib_m_acoshf=yes |
b52ee437 | 8138 | else |
8139 | echo "$as_me: failed program was:" >&5 | |
8140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8141 | ||
d213114b | 8142 | ac_cv_lib_m_acoshf=no |
b52ee437 | 8143 | fi |
8144 | rm -f conftest.err conftest.$ac_objext \ | |
8145 | conftest$ac_exeext conftest.$ac_ext | |
8146 | LIBS=$ac_check_lib_save_LIBS | |
8147 | fi | |
d213114b | 8148 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5 |
8149 | echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6 | |
8150 | if test $ac_cv_lib_m_acoshf = yes; then | |
b52ee437 | 8151 | |
8152 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8153 | #define HAVE_ACOSHF 1 |
b52ee437 | 8154 | _ACEOF |
8155 | ||
8156 | fi | |
8157 | ||
d213114b | 8158 | echo "$as_me:$LINENO: checking for acosh in -lm" >&5 |
8159 | echo $ECHO_N "checking for acosh in -lm... $ECHO_C" >&6 | |
8160 | if test "${ac_cv_lib_m_acosh+set}" = set; then | |
8f838781 | 8161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8162 | else | |
8163 | ac_check_lib_save_LIBS=$LIBS | |
8164 | LIBS="-lm $LIBS" | |
b52ee437 | 8165 | if test x$gcc_no_link = xyes; then |
8166 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8167 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8168 | { (exit 1); exit 1; }; } | |
8169 | fi | |
8f838781 | 8170 | cat >conftest.$ac_ext <<_ACEOF |
8171 | /* confdefs.h. */ | |
8172 | _ACEOF | |
8173 | cat confdefs.h >>conftest.$ac_ext | |
8174 | cat >>conftest.$ac_ext <<_ACEOF | |
8175 | /* end confdefs.h. */ | |
8176 | ||
8177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8178 | #ifdef __cplusplus | |
8179 | extern "C" | |
8180 | #endif | |
8181 | /* We use char because int might match the return type of a gcc2 | |
8182 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8183 | char acosh (); |
8f838781 | 8184 | int |
8185 | main () | |
8186 | { | |
d213114b | 8187 | acosh (); |
8f838781 | 8188 | ; |
8189 | return 0; | |
8190 | } | |
8191 | _ACEOF | |
8192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8194 | (eval $ac_link) 2>conftest.er1 | |
8195 | ac_status=$? | |
8196 | grep -v '^ *+' conftest.er1 >conftest.err | |
8197 | rm -f conftest.er1 | |
8198 | cat conftest.err >&5 | |
8199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8200 | (exit $ac_status); } && | |
b56cb1ff | 8201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 8202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8203 | (eval $ac_try) 2>&5 | |
8204 | ac_status=$? | |
8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8206 | (exit $ac_status); }; } && | |
8207 | { ac_try='test -s conftest$ac_exeext' | |
8208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8209 | (eval $ac_try) 2>&5 | |
8210 | ac_status=$? | |
8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8212 | (exit $ac_status); }; }; then | |
d213114b | 8213 | ac_cv_lib_m_acosh=yes |
8f838781 | 8214 | else |
8215 | echo "$as_me: failed program was:" >&5 | |
8216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8217 | ||
d213114b | 8218 | ac_cv_lib_m_acosh=no |
8f838781 | 8219 | fi |
8220 | rm -f conftest.err conftest.$ac_objext \ | |
8221 | conftest$ac_exeext conftest.$ac_ext | |
8222 | LIBS=$ac_check_lib_save_LIBS | |
8223 | fi | |
d213114b | 8224 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosh" >&5 |
8225 | echo "${ECHO_T}$ac_cv_lib_m_acosh" >&6 | |
8226 | if test $ac_cv_lib_m_acosh = yes; then | |
8f838781 | 8227 | |
8228 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8229 | #define HAVE_ACOSH 1 |
8f838781 | 8230 | _ACEOF |
8231 | ||
8232 | fi | |
8233 | ||
d213114b | 8234 | echo "$as_me:$LINENO: checking for acoshl in -lm" >&5 |
8235 | echo $ECHO_N "checking for acoshl in -lm... $ECHO_C" >&6 | |
8236 | if test "${ac_cv_lib_m_acoshl+set}" = set; then | |
8f838781 | 8237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8238 | else | |
8239 | ac_check_lib_save_LIBS=$LIBS | |
8240 | LIBS="-lm $LIBS" | |
b52ee437 | 8241 | if test x$gcc_no_link = xyes; then |
8242 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8243 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8244 | { (exit 1); exit 1; }; } | |
8245 | fi | |
8f838781 | 8246 | cat >conftest.$ac_ext <<_ACEOF |
8247 | /* confdefs.h. */ | |
8248 | _ACEOF | |
8249 | cat confdefs.h >>conftest.$ac_ext | |
8250 | cat >>conftest.$ac_ext <<_ACEOF | |
8251 | /* end confdefs.h. */ | |
8252 | ||
8253 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8254 | #ifdef __cplusplus | |
8255 | extern "C" | |
8256 | #endif | |
8257 | /* We use char because int might match the return type of a gcc2 | |
8258 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8259 | char acoshl (); |
8f838781 | 8260 | int |
8261 | main () | |
8262 | { | |
d213114b | 8263 | acoshl (); |
8f838781 | 8264 | ; |
8265 | return 0; | |
8266 | } | |
8267 | _ACEOF | |
8268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8270 | (eval $ac_link) 2>conftest.er1 | |
8271 | ac_status=$? | |
8272 | grep -v '^ *+' conftest.er1 >conftest.err | |
8273 | rm -f conftest.er1 | |
8274 | cat conftest.err >&5 | |
8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8276 | (exit $ac_status); } && | |
b56cb1ff | 8277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 8278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8279 | (eval $ac_try) 2>&5 | |
8280 | ac_status=$? | |
8281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8282 | (exit $ac_status); }; } && | |
8283 | { ac_try='test -s conftest$ac_exeext' | |
8284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8285 | (eval $ac_try) 2>&5 | |
8286 | ac_status=$? | |
8287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8288 | (exit $ac_status); }; }; then | |
d213114b | 8289 | ac_cv_lib_m_acoshl=yes |
8f838781 | 8290 | else |
8291 | echo "$as_me: failed program was:" >&5 | |
8292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8293 | ||
d213114b | 8294 | ac_cv_lib_m_acoshl=no |
8f838781 | 8295 | fi |
8296 | rm -f conftest.err conftest.$ac_objext \ | |
8297 | conftest$ac_exeext conftest.$ac_ext | |
8298 | LIBS=$ac_check_lib_save_LIBS | |
8299 | fi | |
d213114b | 8300 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshl" >&5 |
8301 | echo "${ECHO_T}$ac_cv_lib_m_acoshl" >&6 | |
8302 | if test $ac_cv_lib_m_acoshl = yes; then | |
8f838781 | 8303 | |
8304 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8305 | #define HAVE_ACOSHL 1 |
8f838781 | 8306 | _ACEOF |
8307 | ||
8308 | fi | |
8309 | ||
d213114b | 8310 | echo "$as_me:$LINENO: checking for asinf in -lm" >&5 |
8311 | echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6 | |
8312 | if test "${ac_cv_lib_m_asinf+set}" = set; then | |
b52ee437 | 8313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8314 | else | |
8315 | ac_check_lib_save_LIBS=$LIBS | |
8316 | LIBS="-lm $LIBS" | |
8317 | if test x$gcc_no_link = xyes; then | |
8318 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8319 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8320 | { (exit 1); exit 1; }; } | |
8321 | fi | |
8322 | cat >conftest.$ac_ext <<_ACEOF | |
8323 | /* confdefs.h. */ | |
8324 | _ACEOF | |
8325 | cat confdefs.h >>conftest.$ac_ext | |
8326 | cat >>conftest.$ac_ext <<_ACEOF | |
8327 | /* end confdefs.h. */ | |
8328 | ||
8329 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8330 | #ifdef __cplusplus | |
8331 | extern "C" | |
8332 | #endif | |
8333 | /* We use char because int might match the return type of a gcc2 | |
8334 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8335 | char asinf (); |
b52ee437 | 8336 | int |
8337 | main () | |
8338 | { | |
d213114b | 8339 | asinf (); |
b52ee437 | 8340 | ; |
8341 | return 0; | |
8342 | } | |
8343 | _ACEOF | |
8344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8346 | (eval $ac_link) 2>conftest.er1 | |
8347 | ac_status=$? | |
8348 | grep -v '^ *+' conftest.er1 >conftest.err | |
8349 | rm -f conftest.er1 | |
8350 | cat conftest.err >&5 | |
8351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8352 | (exit $ac_status); } && | |
b56cb1ff | 8353 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
b52ee437 | 8354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8355 | (eval $ac_try) 2>&5 | |
8356 | ac_status=$? | |
8357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8358 | (exit $ac_status); }; } && | |
8359 | { ac_try='test -s conftest$ac_exeext' | |
8360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8361 | (eval $ac_try) 2>&5 | |
8362 | ac_status=$? | |
8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8364 | (exit $ac_status); }; }; then | |
d213114b | 8365 | ac_cv_lib_m_asinf=yes |
b52ee437 | 8366 | else |
8367 | echo "$as_me: failed program was:" >&5 | |
8368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8369 | ||
d213114b | 8370 | ac_cv_lib_m_asinf=no |
b52ee437 | 8371 | fi |
8372 | rm -f conftest.err conftest.$ac_objext \ | |
8373 | conftest$ac_exeext conftest.$ac_ext | |
8374 | LIBS=$ac_check_lib_save_LIBS | |
8375 | fi | |
d213114b | 8376 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5 |
8377 | echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6 | |
8378 | if test $ac_cv_lib_m_asinf = yes; then | |
b52ee437 | 8379 | |
8380 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8381 | #define HAVE_ASINF 1 |
b52ee437 | 8382 | _ACEOF |
8383 | ||
8384 | fi | |
8385 | ||
d213114b | 8386 | echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
8387 | echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6 | |
8388 | if test "${ac_cv_lib_m_asin+set}" = set; then | |
8f838781 | 8389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8390 | else | |
8391 | ac_check_lib_save_LIBS=$LIBS | |
8392 | LIBS="-lm $LIBS" | |
b52ee437 | 8393 | if test x$gcc_no_link = xyes; then |
8394 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8395 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8396 | { (exit 1); exit 1; }; } | |
8397 | fi | |
8f838781 | 8398 | cat >conftest.$ac_ext <<_ACEOF |
8399 | /* confdefs.h. */ | |
8400 | _ACEOF | |
8401 | cat confdefs.h >>conftest.$ac_ext | |
8402 | cat >>conftest.$ac_ext <<_ACEOF | |
8403 | /* end confdefs.h. */ | |
8404 | ||
8405 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8406 | #ifdef __cplusplus | |
8407 | extern "C" | |
8408 | #endif | |
8409 | /* We use char because int might match the return type of a gcc2 | |
8410 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8411 | char asin (); |
8f838781 | 8412 | int |
8413 | main () | |
8414 | { | |
d213114b | 8415 | asin (); |
8f838781 | 8416 | ; |
8417 | return 0; | |
8418 | } | |
8419 | _ACEOF | |
8420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8422 | (eval $ac_link) 2>conftest.er1 | |
8423 | ac_status=$? | |
8424 | grep -v '^ *+' conftest.er1 >conftest.err | |
8425 | rm -f conftest.er1 | |
8426 | cat conftest.err >&5 | |
8427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8428 | (exit $ac_status); } && | |
b56cb1ff | 8429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 8430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8431 | (eval $ac_try) 2>&5 | |
8432 | ac_status=$? | |
8433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8434 | (exit $ac_status); }; } && | |
8435 | { ac_try='test -s conftest$ac_exeext' | |
8436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8437 | (eval $ac_try) 2>&5 | |
8438 | ac_status=$? | |
8439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8440 | (exit $ac_status); }; }; then | |
d213114b | 8441 | ac_cv_lib_m_asin=yes |
8f838781 | 8442 | else |
8443 | echo "$as_me: failed program was:" >&5 | |
8444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8445 | ||
d213114b | 8446 | ac_cv_lib_m_asin=no |
8f838781 | 8447 | fi |
8448 | rm -f conftest.err conftest.$ac_objext \ | |
8449 | conftest$ac_exeext conftest.$ac_ext | |
8450 | LIBS=$ac_check_lib_save_LIBS | |
8451 | fi | |
d213114b | 8452 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
8453 | echo "${ECHO_T}$ac_cv_lib_m_asin" >&6 | |
8454 | if test $ac_cv_lib_m_asin = yes; then | |
8f838781 | 8455 | |
8456 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8457 | #define HAVE_ASIN 1 |
8f838781 | 8458 | _ACEOF |
8459 | ||
8460 | fi | |
8461 | ||
d213114b | 8462 | echo "$as_me:$LINENO: checking for asinl in -lm" >&5 |
8463 | echo $ECHO_N "checking for asinl in -lm... $ECHO_C" >&6 | |
8464 | if test "${ac_cv_lib_m_asinl+set}" = set; then | |
8f838781 | 8465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8466 | else | |
8467 | ac_check_lib_save_LIBS=$LIBS | |
8468 | LIBS="-lm $LIBS" | |
b52ee437 | 8469 | if test x$gcc_no_link = xyes; then |
8470 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8471 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8472 | { (exit 1); exit 1; }; } | |
8473 | fi | |
8f838781 | 8474 | cat >conftest.$ac_ext <<_ACEOF |
8475 | /* confdefs.h. */ | |
8476 | _ACEOF | |
8477 | cat confdefs.h >>conftest.$ac_ext | |
8478 | cat >>conftest.$ac_ext <<_ACEOF | |
8479 | /* end confdefs.h. */ | |
8480 | ||
8481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8482 | #ifdef __cplusplus | |
8483 | extern "C" | |
8484 | #endif | |
8485 | /* We use char because int might match the return type of a gcc2 | |
8486 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8487 | char asinl (); |
8f838781 | 8488 | int |
8489 | main () | |
8490 | { | |
d213114b | 8491 | asinl (); |
8f838781 | 8492 | ; |
8493 | return 0; | |
8494 | } | |
8495 | _ACEOF | |
8496 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8498 | (eval $ac_link) 2>conftest.er1 | |
8499 | ac_status=$? | |
8500 | grep -v '^ *+' conftest.er1 >conftest.err | |
8501 | rm -f conftest.er1 | |
8502 | cat conftest.err >&5 | |
8503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8504 | (exit $ac_status); } && | |
b56cb1ff | 8505 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 8506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8507 | (eval $ac_try) 2>&5 | |
8508 | ac_status=$? | |
8509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8510 | (exit $ac_status); }; } && | |
8511 | { ac_try='test -s conftest$ac_exeext' | |
8512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8513 | (eval $ac_try) 2>&5 | |
8514 | ac_status=$? | |
8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8516 | (exit $ac_status); }; }; then | |
d213114b | 8517 | ac_cv_lib_m_asinl=yes |
8f838781 | 8518 | else |
8519 | echo "$as_me: failed program was:" >&5 | |
8520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8521 | ||
d213114b | 8522 | ac_cv_lib_m_asinl=no |
8f838781 | 8523 | fi |
8524 | rm -f conftest.err conftest.$ac_objext \ | |
8525 | conftest$ac_exeext conftest.$ac_ext | |
8526 | LIBS=$ac_check_lib_save_LIBS | |
8527 | fi | |
d213114b | 8528 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinl" >&5 |
8529 | echo "${ECHO_T}$ac_cv_lib_m_asinl" >&6 | |
8530 | if test $ac_cv_lib_m_asinl = yes; then | |
8f838781 | 8531 | |
8532 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8533 | #define HAVE_ASINL 1 |
8f838781 | 8534 | _ACEOF |
8535 | ||
8536 | fi | |
8537 | ||
d213114b | 8538 | echo "$as_me:$LINENO: checking for asinhf in -lm" >&5 |
8539 | echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6 | |
8540 | if test "${ac_cv_lib_m_asinhf+set}" = set; then | |
8f838781 | 8541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8542 | else | |
8543 | ac_check_lib_save_LIBS=$LIBS | |
8544 | LIBS="-lm $LIBS" | |
b52ee437 | 8545 | if test x$gcc_no_link = xyes; then |
8546 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8547 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8548 | { (exit 1); exit 1; }; } | |
8549 | fi | |
8f838781 | 8550 | cat >conftest.$ac_ext <<_ACEOF |
8551 | /* confdefs.h. */ | |
8552 | _ACEOF | |
8553 | cat confdefs.h >>conftest.$ac_ext | |
8554 | cat >>conftest.$ac_ext <<_ACEOF | |
8555 | /* end confdefs.h. */ | |
8556 | ||
8557 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8558 | #ifdef __cplusplus | |
8559 | extern "C" | |
8560 | #endif | |
8561 | /* We use char because int might match the return type of a gcc2 | |
8562 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8563 | char asinhf (); |
8f838781 | 8564 | int |
8565 | main () | |
8566 | { | |
d213114b | 8567 | asinhf (); |
8f838781 | 8568 | ; |
8569 | return 0; | |
8570 | } | |
8571 | _ACEOF | |
8572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8574 | (eval $ac_link) 2>conftest.er1 | |
8575 | ac_status=$? | |
8576 | grep -v '^ *+' conftest.er1 >conftest.err | |
8577 | rm -f conftest.er1 | |
8578 | cat conftest.err >&5 | |
8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8580 | (exit $ac_status); } && | |
b56cb1ff | 8581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 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_exeext' | |
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 | |
d213114b | 8593 | ac_cv_lib_m_asinhf=yes |
8f838781 | 8594 | else |
8595 | echo "$as_me: failed program was:" >&5 | |
8596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8597 | ||
d213114b | 8598 | ac_cv_lib_m_asinhf=no |
8f838781 | 8599 | fi |
8600 | rm -f conftest.err conftest.$ac_objext \ | |
8601 | conftest$ac_exeext conftest.$ac_ext | |
8602 | LIBS=$ac_check_lib_save_LIBS | |
8603 | fi | |
d213114b | 8604 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5 |
8605 | echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6 | |
8606 | if test $ac_cv_lib_m_asinhf = yes; then | |
8f838781 | 8607 | |
8608 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8609 | #define HAVE_ASINHF 1 |
8f838781 | 8610 | _ACEOF |
8611 | ||
8612 | fi | |
8613 | ||
d213114b | 8614 | echo "$as_me:$LINENO: checking for asinh in -lm" >&5 |
8615 | echo $ECHO_N "checking for asinh in -lm... $ECHO_C" >&6 | |
8616 | if test "${ac_cv_lib_m_asinh+set}" = set; then | |
8f838781 | 8617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8618 | else | |
8619 | ac_check_lib_save_LIBS=$LIBS | |
8620 | LIBS="-lm $LIBS" | |
b52ee437 | 8621 | if test x$gcc_no_link = xyes; then |
8622 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8623 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8624 | { (exit 1); exit 1; }; } | |
8625 | fi | |
8f838781 | 8626 | cat >conftest.$ac_ext <<_ACEOF |
8627 | /* confdefs.h. */ | |
8628 | _ACEOF | |
8629 | cat confdefs.h >>conftest.$ac_ext | |
8630 | cat >>conftest.$ac_ext <<_ACEOF | |
8631 | /* end confdefs.h. */ | |
8632 | ||
8633 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8634 | #ifdef __cplusplus | |
8635 | extern "C" | |
8636 | #endif | |
8637 | /* We use char because int might match the return type of a gcc2 | |
8638 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8639 | char asinh (); |
8f838781 | 8640 | int |
8641 | main () | |
8642 | { | |
d213114b | 8643 | asinh (); |
8f838781 | 8644 | ; |
8645 | return 0; | |
8646 | } | |
8647 | _ACEOF | |
8648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8650 | (eval $ac_link) 2>conftest.er1 | |
8651 | ac_status=$? | |
8652 | grep -v '^ *+' conftest.er1 >conftest.err | |
8653 | rm -f conftest.er1 | |
8654 | cat conftest.err >&5 | |
8655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8656 | (exit $ac_status); } && | |
b56cb1ff | 8657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 8658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8659 | (eval $ac_try) 2>&5 | |
8660 | ac_status=$? | |
8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8662 | (exit $ac_status); }; } && | |
8663 | { ac_try='test -s conftest$ac_exeext' | |
8664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8665 | (eval $ac_try) 2>&5 | |
8666 | ac_status=$? | |
8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8668 | (exit $ac_status); }; }; then | |
d213114b | 8669 | ac_cv_lib_m_asinh=yes |
8f838781 | 8670 | else |
8671 | echo "$as_me: failed program was:" >&5 | |
8672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8673 | ||
d213114b | 8674 | ac_cv_lib_m_asinh=no |
8f838781 | 8675 | fi |
8676 | rm -f conftest.err conftest.$ac_objext \ | |
8677 | conftest$ac_exeext conftest.$ac_ext | |
8678 | LIBS=$ac_check_lib_save_LIBS | |
8679 | fi | |
d213114b | 8680 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinh" >&5 |
8681 | echo "${ECHO_T}$ac_cv_lib_m_asinh" >&6 | |
8682 | if test $ac_cv_lib_m_asinh = yes; then | |
8f838781 | 8683 | |
8684 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8685 | #define HAVE_ASINH 1 |
8f838781 | 8686 | _ACEOF |
8687 | ||
8688 | fi | |
8689 | ||
d213114b | 8690 | echo "$as_me:$LINENO: checking for asinhl in -lm" >&5 |
8691 | echo $ECHO_N "checking for asinhl in -lm... $ECHO_C" >&6 | |
8692 | if test "${ac_cv_lib_m_asinhl+set}" = set; then | |
8f838781 | 8693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8694 | else | |
8695 | ac_check_lib_save_LIBS=$LIBS | |
8696 | LIBS="-lm $LIBS" | |
b52ee437 | 8697 | if test x$gcc_no_link = xyes; then |
8698 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8699 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8700 | { (exit 1); exit 1; }; } | |
8701 | fi | |
8f838781 | 8702 | cat >conftest.$ac_ext <<_ACEOF |
8703 | /* confdefs.h. */ | |
8704 | _ACEOF | |
8705 | cat confdefs.h >>conftest.$ac_ext | |
8706 | cat >>conftest.$ac_ext <<_ACEOF | |
8707 | /* end confdefs.h. */ | |
8708 | ||
8709 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8710 | #ifdef __cplusplus | |
8711 | extern "C" | |
8712 | #endif | |
8713 | /* We use char because int might match the return type of a gcc2 | |
8714 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8715 | char asinhl (); |
8f838781 | 8716 | int |
8717 | main () | |
8718 | { | |
d213114b | 8719 | asinhl (); |
8f838781 | 8720 | ; |
8721 | return 0; | |
8722 | } | |
8723 | _ACEOF | |
8724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8726 | (eval $ac_link) 2>conftest.er1 | |
8727 | ac_status=$? | |
8728 | grep -v '^ *+' conftest.er1 >conftest.err | |
8729 | rm -f conftest.er1 | |
8730 | cat conftest.err >&5 | |
8731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8732 | (exit $ac_status); } && | |
b56cb1ff | 8733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 8734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8735 | (eval $ac_try) 2>&5 | |
8736 | ac_status=$? | |
8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8738 | (exit $ac_status); }; } && | |
8739 | { ac_try='test -s conftest$ac_exeext' | |
8740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8741 | (eval $ac_try) 2>&5 | |
8742 | ac_status=$? | |
8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8744 | (exit $ac_status); }; }; then | |
d213114b | 8745 | ac_cv_lib_m_asinhl=yes |
8f838781 | 8746 | else |
8747 | echo "$as_me: failed program was:" >&5 | |
8748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8749 | ||
d213114b | 8750 | ac_cv_lib_m_asinhl=no |
8f838781 | 8751 | fi |
8752 | rm -f conftest.err conftest.$ac_objext \ | |
8753 | conftest$ac_exeext conftest.$ac_ext | |
8754 | LIBS=$ac_check_lib_save_LIBS | |
8755 | fi | |
d213114b | 8756 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhl" >&5 |
8757 | echo "${ECHO_T}$ac_cv_lib_m_asinhl" >&6 | |
8758 | if test $ac_cv_lib_m_asinhl = yes; then | |
8f838781 | 8759 | |
8760 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8761 | #define HAVE_ASINHL 1 |
8f838781 | 8762 | _ACEOF |
8763 | ||
8764 | fi | |
8765 | ||
d213114b | 8766 | echo "$as_me:$LINENO: checking for atan2f in -lm" >&5 |
8767 | echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6 | |
8768 | if test "${ac_cv_lib_m_atan2f+set}" = set; then | |
334f03a1 | 8769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8770 | else | |
8771 | ac_check_lib_save_LIBS=$LIBS | |
8772 | LIBS="-lm $LIBS" | |
b52ee437 | 8773 | if test x$gcc_no_link = xyes; then |
8774 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8775 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8776 | { (exit 1); exit 1; }; } | |
8777 | fi | |
334f03a1 | 8778 | cat >conftest.$ac_ext <<_ACEOF |
8779 | /* confdefs.h. */ | |
8780 | _ACEOF | |
8781 | cat confdefs.h >>conftest.$ac_ext | |
8782 | cat >>conftest.$ac_ext <<_ACEOF | |
8783 | /* end confdefs.h. */ | |
8784 | ||
8785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8786 | #ifdef __cplusplus | |
8787 | extern "C" | |
8788 | #endif | |
8789 | /* We use char because int might match the return type of a gcc2 | |
8790 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8791 | char atan2f (); |
334f03a1 | 8792 | int |
8793 | main () | |
8794 | { | |
d213114b | 8795 | atan2f (); |
334f03a1 | 8796 | ; |
8797 | return 0; | |
8798 | } | |
8799 | _ACEOF | |
8800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8802 | (eval $ac_link) 2>conftest.er1 | |
8803 | ac_status=$? | |
8804 | grep -v '^ *+' conftest.er1 >conftest.err | |
8805 | rm -f conftest.er1 | |
8806 | cat conftest.err >&5 | |
8807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8808 | (exit $ac_status); } && | |
b56cb1ff | 8809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
334f03a1 | 8810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8811 | (eval $ac_try) 2>&5 | |
8812 | ac_status=$? | |
8813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8814 | (exit $ac_status); }; } && | |
8815 | { ac_try='test -s conftest$ac_exeext' | |
8816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8817 | (eval $ac_try) 2>&5 | |
8818 | ac_status=$? | |
8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8820 | (exit $ac_status); }; }; then | |
d213114b | 8821 | ac_cv_lib_m_atan2f=yes |
334f03a1 | 8822 | else |
8823 | echo "$as_me: failed program was:" >&5 | |
8824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8825 | ||
d213114b | 8826 | ac_cv_lib_m_atan2f=no |
334f03a1 | 8827 | fi |
8828 | rm -f conftest.err conftest.$ac_objext \ | |
8829 | conftest$ac_exeext conftest.$ac_ext | |
8830 | LIBS=$ac_check_lib_save_LIBS | |
8831 | fi | |
d213114b | 8832 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5 |
8833 | echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6 | |
8834 | if test $ac_cv_lib_m_atan2f = yes; then | |
334f03a1 | 8835 | |
8836 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8837 | #define HAVE_ATAN2F 1 |
334f03a1 | 8838 | _ACEOF |
8839 | ||
8840 | fi | |
8841 | ||
d213114b | 8842 | echo "$as_me:$LINENO: checking for atan2 in -lm" >&5 |
8843 | echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6 | |
8844 | if test "${ac_cv_lib_m_atan2+set}" = set; then | |
8f838781 | 8845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8846 | else | |
8847 | ac_check_lib_save_LIBS=$LIBS | |
8848 | LIBS="-lm $LIBS" | |
b52ee437 | 8849 | if test x$gcc_no_link = xyes; then |
8850 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8851 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8852 | { (exit 1); exit 1; }; } | |
8853 | fi | |
8f838781 | 8854 | cat >conftest.$ac_ext <<_ACEOF |
8855 | /* confdefs.h. */ | |
8856 | _ACEOF | |
8857 | cat confdefs.h >>conftest.$ac_ext | |
8858 | cat >>conftest.$ac_ext <<_ACEOF | |
8859 | /* end confdefs.h. */ | |
8860 | ||
8861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8862 | #ifdef __cplusplus | |
8863 | extern "C" | |
8864 | #endif | |
8865 | /* We use char because int might match the return type of a gcc2 | |
8866 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8867 | char atan2 (); |
8f838781 | 8868 | int |
8869 | main () | |
8870 | { | |
d213114b | 8871 | atan2 (); |
8f838781 | 8872 | ; |
8873 | return 0; | |
8874 | } | |
8875 | _ACEOF | |
8876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8878 | (eval $ac_link) 2>conftest.er1 | |
8879 | ac_status=$? | |
8880 | grep -v '^ *+' conftest.er1 >conftest.err | |
8881 | rm -f conftest.er1 | |
8882 | cat conftest.err >&5 | |
8883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8884 | (exit $ac_status); } && | |
b56cb1ff | 8885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 8886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8887 | (eval $ac_try) 2>&5 | |
8888 | ac_status=$? | |
8889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8890 | (exit $ac_status); }; } && | |
8891 | { ac_try='test -s conftest$ac_exeext' | |
8892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8893 | (eval $ac_try) 2>&5 | |
8894 | ac_status=$? | |
8895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8896 | (exit $ac_status); }; }; then | |
d213114b | 8897 | ac_cv_lib_m_atan2=yes |
8f838781 | 8898 | else |
8899 | echo "$as_me: failed program was:" >&5 | |
8900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8901 | ||
d213114b | 8902 | ac_cv_lib_m_atan2=no |
8f838781 | 8903 | fi |
8904 | rm -f conftest.err conftest.$ac_objext \ | |
8905 | conftest$ac_exeext conftest.$ac_ext | |
8906 | LIBS=$ac_check_lib_save_LIBS | |
8907 | fi | |
d213114b | 8908 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5 |
8909 | echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6 | |
8910 | if test $ac_cv_lib_m_atan2 = yes; then | |
8f838781 | 8911 | |
8912 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8913 | #define HAVE_ATAN2 1 |
8f838781 | 8914 | _ACEOF |
8915 | ||
8916 | fi | |
8917 | ||
d213114b | 8918 | echo "$as_me:$LINENO: checking for atan2l in -lm" >&5 |
8919 | echo $ECHO_N "checking for atan2l in -lm... $ECHO_C" >&6 | |
8920 | if test "${ac_cv_lib_m_atan2l+set}" = set; then | |
8f838781 | 8921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8922 | else | |
8923 | ac_check_lib_save_LIBS=$LIBS | |
8924 | LIBS="-lm $LIBS" | |
b52ee437 | 8925 | if test x$gcc_no_link = xyes; then |
8926 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8927 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8928 | { (exit 1); exit 1; }; } | |
8929 | fi | |
8f838781 | 8930 | cat >conftest.$ac_ext <<_ACEOF |
8931 | /* confdefs.h. */ | |
8932 | _ACEOF | |
8933 | cat confdefs.h >>conftest.$ac_ext | |
8934 | cat >>conftest.$ac_ext <<_ACEOF | |
8935 | /* end confdefs.h. */ | |
8936 | ||
8937 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8938 | #ifdef __cplusplus | |
8939 | extern "C" | |
8940 | #endif | |
8941 | /* We use char because int might match the return type of a gcc2 | |
8942 | builtin and then its argument prototype would still apply. */ | |
d213114b | 8943 | char atan2l (); |
8f838781 | 8944 | int |
8945 | main () | |
8946 | { | |
d213114b | 8947 | atan2l (); |
8f838781 | 8948 | ; |
8949 | return 0; | |
8950 | } | |
8951 | _ACEOF | |
8952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8954 | (eval $ac_link) 2>conftest.er1 | |
8955 | ac_status=$? | |
8956 | grep -v '^ *+' conftest.er1 >conftest.err | |
8957 | rm -f conftest.er1 | |
8958 | cat conftest.err >&5 | |
8959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8960 | (exit $ac_status); } && | |
b56cb1ff | 8961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 8962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8963 | (eval $ac_try) 2>&5 | |
8964 | ac_status=$? | |
8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8966 | (exit $ac_status); }; } && | |
8967 | { ac_try='test -s conftest$ac_exeext' | |
8968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8969 | (eval $ac_try) 2>&5 | |
8970 | ac_status=$? | |
8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8972 | (exit $ac_status); }; }; then | |
d213114b | 8973 | ac_cv_lib_m_atan2l=yes |
8f838781 | 8974 | else |
8975 | echo "$as_me: failed program was:" >&5 | |
8976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8977 | ||
d213114b | 8978 | ac_cv_lib_m_atan2l=no |
8f838781 | 8979 | fi |
8980 | rm -f conftest.err conftest.$ac_objext \ | |
8981 | conftest$ac_exeext conftest.$ac_ext | |
8982 | LIBS=$ac_check_lib_save_LIBS | |
8983 | fi | |
d213114b | 8984 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2l" >&5 |
8985 | echo "${ECHO_T}$ac_cv_lib_m_atan2l" >&6 | |
8986 | if test $ac_cv_lib_m_atan2l = yes; then | |
8f838781 | 8987 | |
8988 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 8989 | #define HAVE_ATAN2L 1 |
8f838781 | 8990 | _ACEOF |
8991 | ||
8992 | fi | |
8993 | ||
d213114b | 8994 | echo "$as_me:$LINENO: checking for atanf in -lm" >&5 |
8995 | echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6 | |
8996 | if test "${ac_cv_lib_m_atanf+set}" = set; then | |
8f838781 | 8997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8998 | else | |
8999 | ac_check_lib_save_LIBS=$LIBS | |
9000 | LIBS="-lm $LIBS" | |
b52ee437 | 9001 | if test x$gcc_no_link = xyes; then |
9002 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9003 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9004 | { (exit 1); exit 1; }; } | |
9005 | fi | |
8f838781 | 9006 | cat >conftest.$ac_ext <<_ACEOF |
9007 | /* confdefs.h. */ | |
9008 | _ACEOF | |
9009 | cat confdefs.h >>conftest.$ac_ext | |
9010 | cat >>conftest.$ac_ext <<_ACEOF | |
9011 | /* end confdefs.h. */ | |
9012 | ||
9013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9014 | #ifdef __cplusplus | |
9015 | extern "C" | |
9016 | #endif | |
9017 | /* We use char because int might match the return type of a gcc2 | |
9018 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9019 | char atanf (); |
8f838781 | 9020 | int |
9021 | main () | |
9022 | { | |
d213114b | 9023 | atanf (); |
8f838781 | 9024 | ; |
9025 | return 0; | |
9026 | } | |
9027 | _ACEOF | |
9028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9030 | (eval $ac_link) 2>conftest.er1 | |
9031 | ac_status=$? | |
9032 | grep -v '^ *+' conftest.er1 >conftest.err | |
9033 | rm -f conftest.er1 | |
9034 | cat conftest.err >&5 | |
9035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9036 | (exit $ac_status); } && | |
b56cb1ff | 9037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 9038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9039 | (eval $ac_try) 2>&5 | |
9040 | ac_status=$? | |
9041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9042 | (exit $ac_status); }; } && | |
9043 | { ac_try='test -s conftest$ac_exeext' | |
9044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9045 | (eval $ac_try) 2>&5 | |
9046 | ac_status=$? | |
9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9048 | (exit $ac_status); }; }; then | |
d213114b | 9049 | ac_cv_lib_m_atanf=yes |
8f838781 | 9050 | else |
9051 | echo "$as_me: failed program was:" >&5 | |
9052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9053 | ||
d213114b | 9054 | ac_cv_lib_m_atanf=no |
8f838781 | 9055 | fi |
9056 | rm -f conftest.err conftest.$ac_objext \ | |
9057 | conftest$ac_exeext conftest.$ac_ext | |
9058 | LIBS=$ac_check_lib_save_LIBS | |
9059 | fi | |
d213114b | 9060 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5 |
9061 | echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6 | |
9062 | if test $ac_cv_lib_m_atanf = yes; then | |
8f838781 | 9063 | |
9064 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9065 | #define HAVE_ATANF 1 |
8f838781 | 9066 | _ACEOF |
9067 | ||
9068 | fi | |
9069 | ||
d213114b | 9070 | echo "$as_me:$LINENO: checking for atan in -lm" >&5 |
9071 | echo $ECHO_N "checking for atan in -lm... $ECHO_C" >&6 | |
9072 | if test "${ac_cv_lib_m_atan+set}" = set; then | |
8f838781 | 9073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9074 | else | |
9075 | ac_check_lib_save_LIBS=$LIBS | |
9076 | LIBS="-lm $LIBS" | |
b52ee437 | 9077 | if test x$gcc_no_link = xyes; then |
9078 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9079 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9080 | { (exit 1); exit 1; }; } | |
9081 | fi | |
8f838781 | 9082 | cat >conftest.$ac_ext <<_ACEOF |
9083 | /* confdefs.h. */ | |
9084 | _ACEOF | |
9085 | cat confdefs.h >>conftest.$ac_ext | |
9086 | cat >>conftest.$ac_ext <<_ACEOF | |
9087 | /* end confdefs.h. */ | |
9088 | ||
9089 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9090 | #ifdef __cplusplus | |
9091 | extern "C" | |
9092 | #endif | |
9093 | /* We use char because int might match the return type of a gcc2 | |
9094 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9095 | char atan (); |
8f838781 | 9096 | int |
9097 | main () | |
9098 | { | |
d213114b | 9099 | atan (); |
8f838781 | 9100 | ; |
9101 | return 0; | |
9102 | } | |
9103 | _ACEOF | |
9104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9106 | (eval $ac_link) 2>conftest.er1 | |
9107 | ac_status=$? | |
9108 | grep -v '^ *+' conftest.er1 >conftest.err | |
9109 | rm -f conftest.er1 | |
9110 | cat conftest.err >&5 | |
9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9112 | (exit $ac_status); } && | |
b56cb1ff | 9113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 9114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9115 | (eval $ac_try) 2>&5 | |
9116 | ac_status=$? | |
9117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9118 | (exit $ac_status); }; } && | |
9119 | { ac_try='test -s conftest$ac_exeext' | |
9120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9121 | (eval $ac_try) 2>&5 | |
9122 | ac_status=$? | |
9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9124 | (exit $ac_status); }; }; then | |
d213114b | 9125 | ac_cv_lib_m_atan=yes |
8f838781 | 9126 | else |
9127 | echo "$as_me: failed program was:" >&5 | |
9128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9129 | ||
d213114b | 9130 | ac_cv_lib_m_atan=no |
8f838781 | 9131 | fi |
9132 | rm -f conftest.err conftest.$ac_objext \ | |
9133 | conftest$ac_exeext conftest.$ac_ext | |
9134 | LIBS=$ac_check_lib_save_LIBS | |
9135 | fi | |
d213114b | 9136 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan" >&5 |
9137 | echo "${ECHO_T}$ac_cv_lib_m_atan" >&6 | |
9138 | if test $ac_cv_lib_m_atan = yes; then | |
8f838781 | 9139 | |
9140 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9141 | #define HAVE_ATAN 1 |
8f838781 | 9142 | _ACEOF |
9143 | ||
9144 | fi | |
9145 | ||
d213114b | 9146 | echo "$as_me:$LINENO: checking for atanl in -lm" >&5 |
9147 | echo $ECHO_N "checking for atanl in -lm... $ECHO_C" >&6 | |
9148 | if test "${ac_cv_lib_m_atanl+set}" = set; then | |
8f838781 | 9149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9150 | else | |
9151 | ac_check_lib_save_LIBS=$LIBS | |
9152 | LIBS="-lm $LIBS" | |
b52ee437 | 9153 | if test x$gcc_no_link = xyes; then |
9154 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9155 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9156 | { (exit 1); exit 1; }; } | |
9157 | fi | |
8f838781 | 9158 | cat >conftest.$ac_ext <<_ACEOF |
9159 | /* confdefs.h. */ | |
9160 | _ACEOF | |
9161 | cat confdefs.h >>conftest.$ac_ext | |
9162 | cat >>conftest.$ac_ext <<_ACEOF | |
9163 | /* end confdefs.h. */ | |
9164 | ||
9165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9166 | #ifdef __cplusplus | |
9167 | extern "C" | |
9168 | #endif | |
9169 | /* We use char because int might match the return type of a gcc2 | |
9170 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9171 | char atanl (); |
8f838781 | 9172 | int |
9173 | main () | |
9174 | { | |
d213114b | 9175 | atanl (); |
8f838781 | 9176 | ; |
9177 | return 0; | |
9178 | } | |
9179 | _ACEOF | |
9180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9182 | (eval $ac_link) 2>conftest.er1 | |
9183 | ac_status=$? | |
9184 | grep -v '^ *+' conftest.er1 >conftest.err | |
9185 | rm -f conftest.er1 | |
9186 | cat conftest.err >&5 | |
9187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9188 | (exit $ac_status); } && | |
b56cb1ff | 9189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 9190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9191 | (eval $ac_try) 2>&5 | |
9192 | ac_status=$? | |
9193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9194 | (exit $ac_status); }; } && | |
9195 | { ac_try='test -s conftest$ac_exeext' | |
9196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9197 | (eval $ac_try) 2>&5 | |
9198 | ac_status=$? | |
9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9200 | (exit $ac_status); }; }; then | |
d213114b | 9201 | ac_cv_lib_m_atanl=yes |
8f838781 | 9202 | else |
9203 | echo "$as_me: failed program was:" >&5 | |
9204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9205 | ||
d213114b | 9206 | ac_cv_lib_m_atanl=no |
8f838781 | 9207 | fi |
9208 | rm -f conftest.err conftest.$ac_objext \ | |
9209 | conftest$ac_exeext conftest.$ac_ext | |
9210 | LIBS=$ac_check_lib_save_LIBS | |
9211 | fi | |
d213114b | 9212 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanl" >&5 |
9213 | echo "${ECHO_T}$ac_cv_lib_m_atanl" >&6 | |
9214 | if test $ac_cv_lib_m_atanl = yes; then | |
8f838781 | 9215 | |
9216 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9217 | #define HAVE_ATANL 1 |
8f838781 | 9218 | _ACEOF |
9219 | ||
9220 | fi | |
9221 | ||
d213114b | 9222 | echo "$as_me:$LINENO: checking for atanhf in -lm" >&5 |
9223 | echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6 | |
9224 | if test "${ac_cv_lib_m_atanhf+set}" = set; then | |
14c3c235 | 9225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9226 | else | |
9227 | ac_check_lib_save_LIBS=$LIBS | |
9228 | LIBS="-lm $LIBS" | |
b52ee437 | 9229 | if test x$gcc_no_link = xyes; then |
9230 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9231 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9232 | { (exit 1); exit 1; }; } | |
9233 | fi | |
14c3c235 | 9234 | cat >conftest.$ac_ext <<_ACEOF |
9235 | /* confdefs.h. */ | |
9236 | _ACEOF | |
9237 | cat confdefs.h >>conftest.$ac_ext | |
9238 | cat >>conftest.$ac_ext <<_ACEOF | |
9239 | /* end confdefs.h. */ | |
9240 | ||
9241 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9242 | #ifdef __cplusplus | |
9243 | extern "C" | |
9244 | #endif | |
9245 | /* We use char because int might match the return type of a gcc2 | |
9246 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9247 | char atanhf (); |
14c3c235 | 9248 | int |
9249 | main () | |
9250 | { | |
d213114b | 9251 | atanhf (); |
14c3c235 | 9252 | ; |
9253 | return 0; | |
9254 | } | |
9255 | _ACEOF | |
9256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9258 | (eval $ac_link) 2>conftest.er1 | |
9259 | ac_status=$? | |
9260 | grep -v '^ *+' conftest.er1 >conftest.err | |
9261 | rm -f conftest.er1 | |
9262 | cat conftest.err >&5 | |
9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9264 | (exit $ac_status); } && | |
b56cb1ff | 9265 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14c3c235 | 9266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9267 | (eval $ac_try) 2>&5 | |
9268 | ac_status=$? | |
9269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9270 | (exit $ac_status); }; } && | |
9271 | { ac_try='test -s conftest$ac_exeext' | |
9272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9273 | (eval $ac_try) 2>&5 | |
9274 | ac_status=$? | |
9275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9276 | (exit $ac_status); }; }; then | |
d213114b | 9277 | ac_cv_lib_m_atanhf=yes |
14c3c235 | 9278 | else |
9279 | echo "$as_me: failed program was:" >&5 | |
9280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9281 | ||
d213114b | 9282 | ac_cv_lib_m_atanhf=no |
14c3c235 | 9283 | fi |
9284 | rm -f conftest.err conftest.$ac_objext \ | |
9285 | conftest$ac_exeext conftest.$ac_ext | |
9286 | LIBS=$ac_check_lib_save_LIBS | |
9287 | fi | |
d213114b | 9288 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5 |
9289 | echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6 | |
9290 | if test $ac_cv_lib_m_atanhf = yes; then | |
14c3c235 | 9291 | |
9292 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9293 | #define HAVE_ATANHF 1 |
14c3c235 | 9294 | _ACEOF |
9295 | ||
9296 | fi | |
9297 | ||
d213114b | 9298 | echo "$as_me:$LINENO: checking for atanh in -lm" >&5 |
9299 | echo $ECHO_N "checking for atanh in -lm... $ECHO_C" >&6 | |
9300 | if test "${ac_cv_lib_m_atanh+set}" = set; then | |
8f838781 | 9301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9302 | else | |
9303 | ac_check_lib_save_LIBS=$LIBS | |
9304 | LIBS="-lm $LIBS" | |
b52ee437 | 9305 | if test x$gcc_no_link = xyes; then |
9306 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9307 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9308 | { (exit 1); exit 1; }; } | |
9309 | fi | |
8f838781 | 9310 | cat >conftest.$ac_ext <<_ACEOF |
9311 | /* confdefs.h. */ | |
9312 | _ACEOF | |
9313 | cat confdefs.h >>conftest.$ac_ext | |
9314 | cat >>conftest.$ac_ext <<_ACEOF | |
9315 | /* end confdefs.h. */ | |
9316 | ||
9317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9318 | #ifdef __cplusplus | |
9319 | extern "C" | |
9320 | #endif | |
9321 | /* We use char because int might match the return type of a gcc2 | |
9322 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9323 | char atanh (); |
8f838781 | 9324 | int |
9325 | main () | |
9326 | { | |
d213114b | 9327 | atanh (); |
8f838781 | 9328 | ; |
9329 | return 0; | |
9330 | } | |
9331 | _ACEOF | |
9332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9334 | (eval $ac_link) 2>conftest.er1 | |
9335 | ac_status=$? | |
9336 | grep -v '^ *+' conftest.er1 >conftest.err | |
9337 | rm -f conftest.er1 | |
9338 | cat conftest.err >&5 | |
9339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9340 | (exit $ac_status); } && | |
b56cb1ff | 9341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 9342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9343 | (eval $ac_try) 2>&5 | |
9344 | ac_status=$? | |
9345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9346 | (exit $ac_status); }; } && | |
9347 | { ac_try='test -s conftest$ac_exeext' | |
9348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9349 | (eval $ac_try) 2>&5 | |
9350 | ac_status=$? | |
9351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9352 | (exit $ac_status); }; }; then | |
d213114b | 9353 | ac_cv_lib_m_atanh=yes |
8f838781 | 9354 | else |
9355 | echo "$as_me: failed program was:" >&5 | |
9356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9357 | ||
d213114b | 9358 | ac_cv_lib_m_atanh=no |
8f838781 | 9359 | fi |
9360 | rm -f conftest.err conftest.$ac_objext \ | |
9361 | conftest$ac_exeext conftest.$ac_ext | |
9362 | LIBS=$ac_check_lib_save_LIBS | |
9363 | fi | |
d213114b | 9364 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanh" >&5 |
9365 | echo "${ECHO_T}$ac_cv_lib_m_atanh" >&6 | |
9366 | if test $ac_cv_lib_m_atanh = yes; then | |
8f838781 | 9367 | |
9368 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9369 | #define HAVE_ATANH 1 |
8f838781 | 9370 | _ACEOF |
9371 | ||
9372 | fi | |
9373 | ||
d213114b | 9374 | echo "$as_me:$LINENO: checking for atanhl in -lm" >&5 |
9375 | echo $ECHO_N "checking for atanhl in -lm... $ECHO_C" >&6 | |
9376 | if test "${ac_cv_lib_m_atanhl+set}" = set; then | |
8f838781 | 9377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9378 | else | |
9379 | ac_check_lib_save_LIBS=$LIBS | |
9380 | LIBS="-lm $LIBS" | |
b52ee437 | 9381 | if test x$gcc_no_link = xyes; then |
9382 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9383 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9384 | { (exit 1); exit 1; }; } | |
9385 | fi | |
8f838781 | 9386 | cat >conftest.$ac_ext <<_ACEOF |
9387 | /* confdefs.h. */ | |
9388 | _ACEOF | |
9389 | cat confdefs.h >>conftest.$ac_ext | |
9390 | cat >>conftest.$ac_ext <<_ACEOF | |
9391 | /* end confdefs.h. */ | |
9392 | ||
9393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9394 | #ifdef __cplusplus | |
9395 | extern "C" | |
9396 | #endif | |
9397 | /* We use char because int might match the return type of a gcc2 | |
9398 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9399 | char atanhl (); |
8f838781 | 9400 | int |
9401 | main () | |
9402 | { | |
d213114b | 9403 | atanhl (); |
8f838781 | 9404 | ; |
9405 | return 0; | |
9406 | } | |
9407 | _ACEOF | |
9408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9410 | (eval $ac_link) 2>conftest.er1 | |
9411 | ac_status=$? | |
9412 | grep -v '^ *+' conftest.er1 >conftest.err | |
9413 | rm -f conftest.er1 | |
9414 | cat conftest.err >&5 | |
9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9416 | (exit $ac_status); } && | |
b56cb1ff | 9417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 9418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9419 | (eval $ac_try) 2>&5 | |
9420 | ac_status=$? | |
9421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9422 | (exit $ac_status); }; } && | |
9423 | { ac_try='test -s conftest$ac_exeext' | |
9424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9425 | (eval $ac_try) 2>&5 | |
9426 | ac_status=$? | |
9427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9428 | (exit $ac_status); }; }; then | |
d213114b | 9429 | ac_cv_lib_m_atanhl=yes |
8f838781 | 9430 | else |
9431 | echo "$as_me: failed program was:" >&5 | |
9432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9433 | ||
d213114b | 9434 | ac_cv_lib_m_atanhl=no |
8f838781 | 9435 | fi |
9436 | rm -f conftest.err conftest.$ac_objext \ | |
9437 | conftest$ac_exeext conftest.$ac_ext | |
9438 | LIBS=$ac_check_lib_save_LIBS | |
9439 | fi | |
d213114b | 9440 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhl" >&5 |
9441 | echo "${ECHO_T}$ac_cv_lib_m_atanhl" >&6 | |
9442 | if test $ac_cv_lib_m_atanhl = yes; then | |
8f838781 | 9443 | |
9444 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9445 | #define HAVE_ATANHL 1 |
8f838781 | 9446 | _ACEOF |
9447 | ||
9448 | fi | |
9449 | ||
d213114b | 9450 | echo "$as_me:$LINENO: checking for cargf in -lm" >&5 |
9451 | echo $ECHO_N "checking for cargf in -lm... $ECHO_C" >&6 | |
9452 | if test "${ac_cv_lib_m_cargf+set}" = set; then | |
a2d7a3ff | 9453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9454 | else | |
9455 | ac_check_lib_save_LIBS=$LIBS | |
9456 | LIBS="-lm $LIBS" | |
b52ee437 | 9457 | if test x$gcc_no_link = xyes; then |
9458 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9459 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9460 | { (exit 1); exit 1; }; } | |
9461 | fi | |
a2d7a3ff | 9462 | cat >conftest.$ac_ext <<_ACEOF |
9463 | /* confdefs.h. */ | |
9464 | _ACEOF | |
9465 | cat confdefs.h >>conftest.$ac_ext | |
9466 | cat >>conftest.$ac_ext <<_ACEOF | |
9467 | /* end confdefs.h. */ | |
9468 | ||
9469 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9470 | #ifdef __cplusplus | |
9471 | extern "C" | |
9472 | #endif | |
9473 | /* We use char because int might match the return type of a gcc2 | |
9474 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9475 | char cargf (); |
a2d7a3ff | 9476 | int |
9477 | main () | |
9478 | { | |
d213114b | 9479 | cargf (); |
a2d7a3ff | 9480 | ; |
9481 | return 0; | |
9482 | } | |
9483 | _ACEOF | |
9484 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9486 | (eval $ac_link) 2>conftest.er1 | |
9487 | ac_status=$? | |
9488 | grep -v '^ *+' conftest.er1 >conftest.err | |
9489 | rm -f conftest.er1 | |
9490 | cat conftest.err >&5 | |
9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9492 | (exit $ac_status); } && | |
b56cb1ff | 9493 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a2d7a3ff | 9494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9495 | (eval $ac_try) 2>&5 | |
9496 | ac_status=$? | |
9497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9498 | (exit $ac_status); }; } && | |
9499 | { ac_try='test -s conftest$ac_exeext' | |
9500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9501 | (eval $ac_try) 2>&5 | |
9502 | ac_status=$? | |
9503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9504 | (exit $ac_status); }; }; then | |
d213114b | 9505 | ac_cv_lib_m_cargf=yes |
a2d7a3ff | 9506 | else |
9507 | echo "$as_me: failed program was:" >&5 | |
9508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9509 | ||
d213114b | 9510 | ac_cv_lib_m_cargf=no |
a2d7a3ff | 9511 | fi |
9512 | rm -f conftest.err conftest.$ac_objext \ | |
9513 | conftest$ac_exeext conftest.$ac_ext | |
9514 | LIBS=$ac_check_lib_save_LIBS | |
9515 | fi | |
d213114b | 9516 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargf" >&5 |
9517 | echo "${ECHO_T}$ac_cv_lib_m_cargf" >&6 | |
9518 | if test $ac_cv_lib_m_cargf = yes; then | |
a2d7a3ff | 9519 | |
9520 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9521 | #define HAVE_CARGF 1 |
a2d7a3ff | 9522 | _ACEOF |
9523 | ||
9524 | fi | |
9525 | ||
d213114b | 9526 | echo "$as_me:$LINENO: checking for carg in -lm" >&5 |
9527 | echo $ECHO_N "checking for carg in -lm... $ECHO_C" >&6 | |
9528 | if test "${ac_cv_lib_m_carg+set}" = set; then | |
a31bd8a4 | 9529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9530 | else | |
9531 | ac_check_lib_save_LIBS=$LIBS | |
9532 | LIBS="-lm $LIBS" | |
b52ee437 | 9533 | if test x$gcc_no_link = xyes; then |
9534 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9535 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9536 | { (exit 1); exit 1; }; } | |
9537 | fi | |
a31bd8a4 | 9538 | cat >conftest.$ac_ext <<_ACEOF |
9539 | /* confdefs.h. */ | |
9540 | _ACEOF | |
9541 | cat confdefs.h >>conftest.$ac_ext | |
9542 | cat >>conftest.$ac_ext <<_ACEOF | |
9543 | /* end confdefs.h. */ | |
9544 | ||
9545 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9546 | #ifdef __cplusplus | |
9547 | extern "C" | |
9548 | #endif | |
9549 | /* We use char because int might match the return type of a gcc2 | |
9550 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9551 | char carg (); |
8f838781 | 9552 | int |
9553 | main () | |
9554 | { | |
d213114b | 9555 | carg (); |
8f838781 | 9556 | ; |
9557 | return 0; | |
9558 | } | |
9559 | _ACEOF | |
9560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9562 | (eval $ac_link) 2>conftest.er1 | |
9563 | ac_status=$? | |
9564 | grep -v '^ *+' conftest.er1 >conftest.err | |
9565 | rm -f conftest.er1 | |
9566 | cat conftest.err >&5 | |
9567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9568 | (exit $ac_status); } && | |
b56cb1ff | 9569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 9570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9571 | (eval $ac_try) 2>&5 | |
9572 | ac_status=$? | |
9573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9574 | (exit $ac_status); }; } && | |
9575 | { ac_try='test -s conftest$ac_exeext' | |
9576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9577 | (eval $ac_try) 2>&5 | |
9578 | ac_status=$? | |
9579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9580 | (exit $ac_status); }; }; then | |
d213114b | 9581 | ac_cv_lib_m_carg=yes |
8f838781 | 9582 | else |
9583 | echo "$as_me: failed program was:" >&5 | |
9584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9585 | ||
d213114b | 9586 | ac_cv_lib_m_carg=no |
8f838781 | 9587 | fi |
9588 | rm -f conftest.err conftest.$ac_objext \ | |
9589 | conftest$ac_exeext conftest.$ac_ext | |
9590 | LIBS=$ac_check_lib_save_LIBS | |
9591 | fi | |
d213114b | 9592 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_carg" >&5 |
9593 | echo "${ECHO_T}$ac_cv_lib_m_carg" >&6 | |
9594 | if test $ac_cv_lib_m_carg = yes; then | |
8f838781 | 9595 | |
9596 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9597 | #define HAVE_CARG 1 |
8f838781 | 9598 | _ACEOF |
9599 | ||
9600 | fi | |
9601 | ||
d213114b | 9602 | echo "$as_me:$LINENO: checking for cargl in -lm" >&5 |
9603 | echo $ECHO_N "checking for cargl in -lm... $ECHO_C" >&6 | |
9604 | if test "${ac_cv_lib_m_cargl+set}" = set; then | |
8f838781 | 9605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9606 | else | |
9607 | ac_check_lib_save_LIBS=$LIBS | |
9608 | LIBS="-lm $LIBS" | |
b52ee437 | 9609 | if test x$gcc_no_link = xyes; then |
9610 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9611 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9612 | { (exit 1); exit 1; }; } | |
9613 | fi | |
8f838781 | 9614 | cat >conftest.$ac_ext <<_ACEOF |
9615 | /* confdefs.h. */ | |
9616 | _ACEOF | |
9617 | cat confdefs.h >>conftest.$ac_ext | |
9618 | cat >>conftest.$ac_ext <<_ACEOF | |
9619 | /* end confdefs.h. */ | |
9620 | ||
9621 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9622 | #ifdef __cplusplus | |
9623 | extern "C" | |
9624 | #endif | |
9625 | /* We use char because int might match the return type of a gcc2 | |
9626 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9627 | char cargl (); |
a31bd8a4 | 9628 | int |
9629 | main () | |
9630 | { | |
d213114b | 9631 | cargl (); |
a31bd8a4 | 9632 | ; |
9633 | return 0; | |
9634 | } | |
9635 | _ACEOF | |
9636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9638 | (eval $ac_link) 2>conftest.er1 | |
9639 | ac_status=$? | |
9640 | grep -v '^ *+' conftest.er1 >conftest.err | |
9641 | rm -f conftest.er1 | |
9642 | cat conftest.err >&5 | |
9643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9644 | (exit $ac_status); } && | |
b56cb1ff | 9645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a31bd8a4 | 9646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9647 | (eval $ac_try) 2>&5 | |
9648 | ac_status=$? | |
9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9650 | (exit $ac_status); }; } && | |
9651 | { ac_try='test -s conftest$ac_exeext' | |
9652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9653 | (eval $ac_try) 2>&5 | |
9654 | ac_status=$? | |
9655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9656 | (exit $ac_status); }; }; then | |
d213114b | 9657 | ac_cv_lib_m_cargl=yes |
a31bd8a4 | 9658 | else |
9659 | echo "$as_me: failed program was:" >&5 | |
9660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9661 | ||
d213114b | 9662 | ac_cv_lib_m_cargl=no |
a31bd8a4 | 9663 | fi |
9664 | rm -f conftest.err conftest.$ac_objext \ | |
9665 | conftest$ac_exeext conftest.$ac_ext | |
9666 | LIBS=$ac_check_lib_save_LIBS | |
9667 | fi | |
d213114b | 9668 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargl" >&5 |
9669 | echo "${ECHO_T}$ac_cv_lib_m_cargl" >&6 | |
9670 | if test $ac_cv_lib_m_cargl = yes; then | |
a31bd8a4 | 9671 | |
9672 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9673 | #define HAVE_CARGL 1 |
a31bd8a4 | 9674 | _ACEOF |
9675 | ||
9676 | fi | |
9677 | ||
d213114b | 9678 | echo "$as_me:$LINENO: checking for ceilf in -lm" >&5 |
9679 | echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6 | |
9680 | if test "${ac_cv_lib_m_ceilf+set}" = set; then | |
a31bd8a4 | 9681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9682 | else | |
9683 | ac_check_lib_save_LIBS=$LIBS | |
9684 | LIBS="-lm $LIBS" | |
b52ee437 | 9685 | if test x$gcc_no_link = xyes; then |
9686 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9687 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9688 | { (exit 1); exit 1; }; } | |
9689 | fi | |
a31bd8a4 | 9690 | cat >conftest.$ac_ext <<_ACEOF |
9691 | /* confdefs.h. */ | |
9692 | _ACEOF | |
9693 | cat confdefs.h >>conftest.$ac_ext | |
9694 | cat >>conftest.$ac_ext <<_ACEOF | |
9695 | /* end confdefs.h. */ | |
9696 | ||
9697 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9698 | #ifdef __cplusplus | |
9699 | extern "C" | |
9700 | #endif | |
9701 | /* We use char because int might match the return type of a gcc2 | |
9702 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9703 | char ceilf (); |
a31bd8a4 | 9704 | int |
9705 | main () | |
9706 | { | |
d213114b | 9707 | ceilf (); |
a31bd8a4 | 9708 | ; |
9709 | return 0; | |
9710 | } | |
9711 | _ACEOF | |
9712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9714 | (eval $ac_link) 2>conftest.er1 | |
9715 | ac_status=$? | |
9716 | grep -v '^ *+' conftest.er1 >conftest.err | |
9717 | rm -f conftest.er1 | |
9718 | cat conftest.err >&5 | |
9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9720 | (exit $ac_status); } && | |
b56cb1ff | 9721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a31bd8a4 | 9722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9723 | (eval $ac_try) 2>&5 | |
9724 | ac_status=$? | |
9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9726 | (exit $ac_status); }; } && | |
9727 | { ac_try='test -s conftest$ac_exeext' | |
9728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9729 | (eval $ac_try) 2>&5 | |
9730 | ac_status=$? | |
9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9732 | (exit $ac_status); }; }; then | |
d213114b | 9733 | ac_cv_lib_m_ceilf=yes |
a31bd8a4 | 9734 | else |
9735 | echo "$as_me: failed program was:" >&5 | |
9736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9737 | ||
d213114b | 9738 | ac_cv_lib_m_ceilf=no |
a31bd8a4 | 9739 | fi |
9740 | rm -f conftest.err conftest.$ac_objext \ | |
9741 | conftest$ac_exeext conftest.$ac_ext | |
9742 | LIBS=$ac_check_lib_save_LIBS | |
9743 | fi | |
d213114b | 9744 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5 |
9745 | echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6 | |
9746 | if test $ac_cv_lib_m_ceilf = yes; then | |
a31bd8a4 | 9747 | |
9748 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9749 | #define HAVE_CEILF 1 |
a31bd8a4 | 9750 | _ACEOF |
9751 | ||
9752 | fi | |
9753 | ||
d213114b | 9754 | echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
9755 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6 | |
9756 | if test "${ac_cv_lib_m_ceil+set}" = set; then | |
97844b15 | 9757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9758 | else | |
9759 | ac_check_lib_save_LIBS=$LIBS | |
9760 | LIBS="-lm $LIBS" | |
b52ee437 | 9761 | if test x$gcc_no_link = xyes; then |
9762 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9763 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9764 | { (exit 1); exit 1; }; } | |
9765 | fi | |
97844b15 | 9766 | cat >conftest.$ac_ext <<_ACEOF |
9767 | /* confdefs.h. */ | |
9768 | _ACEOF | |
9769 | cat confdefs.h >>conftest.$ac_ext | |
9770 | cat >>conftest.$ac_ext <<_ACEOF | |
9771 | /* end confdefs.h. */ | |
9772 | ||
9773 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9774 | #ifdef __cplusplus | |
9775 | extern "C" | |
9776 | #endif | |
9777 | /* We use char because int might match the return type of a gcc2 | |
9778 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9779 | char ceil (); |
97844b15 | 9780 | int |
9781 | main () | |
9782 | { | |
d213114b | 9783 | ceil (); |
97844b15 | 9784 | ; |
9785 | return 0; | |
9786 | } | |
9787 | _ACEOF | |
9788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9790 | (eval $ac_link) 2>conftest.er1 | |
9791 | ac_status=$? | |
9792 | grep -v '^ *+' conftest.er1 >conftest.err | |
9793 | rm -f conftest.er1 | |
9794 | cat conftest.err >&5 | |
9795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9796 | (exit $ac_status); } && | |
b56cb1ff | 9797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
97844b15 | 9798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9799 | (eval $ac_try) 2>&5 | |
9800 | ac_status=$? | |
9801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9802 | (exit $ac_status); }; } && | |
9803 | { ac_try='test -s conftest$ac_exeext' | |
9804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9805 | (eval $ac_try) 2>&5 | |
9806 | ac_status=$? | |
9807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9808 | (exit $ac_status); }; }; then | |
d213114b | 9809 | ac_cv_lib_m_ceil=yes |
97844b15 | 9810 | else |
9811 | echo "$as_me: failed program was:" >&5 | |
9812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9813 | ||
d213114b | 9814 | ac_cv_lib_m_ceil=no |
97844b15 | 9815 | fi |
9816 | rm -f conftest.err conftest.$ac_objext \ | |
9817 | conftest$ac_exeext conftest.$ac_ext | |
9818 | LIBS=$ac_check_lib_save_LIBS | |
9819 | fi | |
d213114b | 9820 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
9821 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6 | |
9822 | if test $ac_cv_lib_m_ceil = yes; then | |
97844b15 | 9823 | |
9824 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9825 | #define HAVE_CEIL 1 |
97844b15 | 9826 | _ACEOF |
9827 | ||
9828 | fi | |
9829 | ||
d213114b | 9830 | echo "$as_me:$LINENO: checking for ceill in -lm" >&5 |
9831 | echo $ECHO_N "checking for ceill in -lm... $ECHO_C" >&6 | |
9832 | if test "${ac_cv_lib_m_ceill+set}" = set; then | |
4db2deda | 9833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9834 | else | |
9835 | ac_check_lib_save_LIBS=$LIBS | |
9836 | LIBS="-lm $LIBS" | |
b52ee437 | 9837 | if test x$gcc_no_link = xyes; then |
9838 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9839 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9840 | { (exit 1); exit 1; }; } | |
9841 | fi | |
4db2deda | 9842 | cat >conftest.$ac_ext <<_ACEOF |
9843 | /* confdefs.h. */ | |
9844 | _ACEOF | |
9845 | cat confdefs.h >>conftest.$ac_ext | |
9846 | cat >>conftest.$ac_ext <<_ACEOF | |
9847 | /* end confdefs.h. */ | |
9848 | ||
9849 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9850 | #ifdef __cplusplus | |
9851 | extern "C" | |
9852 | #endif | |
9853 | /* We use char because int might match the return type of a gcc2 | |
9854 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9855 | char ceill (); |
4db2deda | 9856 | int |
9857 | main () | |
9858 | { | |
d213114b | 9859 | ceill (); |
4db2deda | 9860 | ; |
9861 | return 0; | |
9862 | } | |
9863 | _ACEOF | |
9864 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9866 | (eval $ac_link) 2>conftest.er1 | |
9867 | ac_status=$? | |
9868 | grep -v '^ *+' conftest.er1 >conftest.err | |
9869 | rm -f conftest.er1 | |
9870 | cat conftest.err >&5 | |
9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9872 | (exit $ac_status); } && | |
b56cb1ff | 9873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4db2deda | 9874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9875 | (eval $ac_try) 2>&5 | |
9876 | ac_status=$? | |
9877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9878 | (exit $ac_status); }; } && | |
9879 | { ac_try='test -s conftest$ac_exeext' | |
9880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9881 | (eval $ac_try) 2>&5 | |
9882 | ac_status=$? | |
9883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9884 | (exit $ac_status); }; }; then | |
d213114b | 9885 | ac_cv_lib_m_ceill=yes |
4db2deda | 9886 | else |
9887 | echo "$as_me: failed program was:" >&5 | |
9888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9889 | ||
d213114b | 9890 | ac_cv_lib_m_ceill=no |
4db2deda | 9891 | fi |
9892 | rm -f conftest.err conftest.$ac_objext \ | |
9893 | conftest$ac_exeext conftest.$ac_ext | |
9894 | LIBS=$ac_check_lib_save_LIBS | |
9895 | fi | |
d213114b | 9896 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceill" >&5 |
9897 | echo "${ECHO_T}$ac_cv_lib_m_ceill" >&6 | |
9898 | if test $ac_cv_lib_m_ceill = yes; then | |
4db2deda | 9899 | |
9900 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9901 | #define HAVE_CEILL 1 |
4db2deda | 9902 | _ACEOF |
9903 | ||
9904 | fi | |
9905 | ||
d213114b | 9906 | echo "$as_me:$LINENO: checking for copysignf in -lm" >&5 |
9907 | echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6 | |
9908 | if test "${ac_cv_lib_m_copysignf+set}" = set; then | |
4db2deda | 9909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9910 | else | |
9911 | ac_check_lib_save_LIBS=$LIBS | |
9912 | LIBS="-lm $LIBS" | |
b52ee437 | 9913 | if test x$gcc_no_link = xyes; then |
9914 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9915 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9916 | { (exit 1); exit 1; }; } | |
9917 | fi | |
4db2deda | 9918 | cat >conftest.$ac_ext <<_ACEOF |
9919 | /* confdefs.h. */ | |
9920 | _ACEOF | |
9921 | cat confdefs.h >>conftest.$ac_ext | |
9922 | cat >>conftest.$ac_ext <<_ACEOF | |
9923 | /* end confdefs.h. */ | |
9924 | ||
9925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9926 | #ifdef __cplusplus | |
9927 | extern "C" | |
9928 | #endif | |
9929 | /* We use char because int might match the return type of a gcc2 | |
9930 | builtin and then its argument prototype would still apply. */ | |
d213114b | 9931 | char copysignf (); |
4db2deda | 9932 | int |
9933 | main () | |
9934 | { | |
d213114b | 9935 | copysignf (); |
4db2deda | 9936 | ; |
9937 | return 0; | |
9938 | } | |
9939 | _ACEOF | |
9940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9942 | (eval $ac_link) 2>conftest.er1 | |
9943 | ac_status=$? | |
9944 | grep -v '^ *+' conftest.er1 >conftest.err | |
9945 | rm -f conftest.er1 | |
9946 | cat conftest.err >&5 | |
9947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9948 | (exit $ac_status); } && | |
b56cb1ff | 9949 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4db2deda | 9950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9951 | (eval $ac_try) 2>&5 | |
9952 | ac_status=$? | |
9953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9954 | (exit $ac_status); }; } && | |
9955 | { ac_try='test -s conftest$ac_exeext' | |
9956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9957 | (eval $ac_try) 2>&5 | |
9958 | ac_status=$? | |
9959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9960 | (exit $ac_status); }; }; then | |
d213114b | 9961 | ac_cv_lib_m_copysignf=yes |
4db2deda | 9962 | else |
9963 | echo "$as_me: failed program was:" >&5 | |
9964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9965 | ||
d213114b | 9966 | ac_cv_lib_m_copysignf=no |
4db2deda | 9967 | fi |
9968 | rm -f conftest.err conftest.$ac_objext \ | |
9969 | conftest$ac_exeext conftest.$ac_ext | |
9970 | LIBS=$ac_check_lib_save_LIBS | |
9971 | fi | |
d213114b | 9972 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5 |
9973 | echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6 | |
9974 | if test $ac_cv_lib_m_copysignf = yes; then | |
4db2deda | 9975 | |
9976 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 9977 | #define HAVE_COPYSIGNF 1 |
8f838781 | 9978 | _ACEOF |
9979 | ||
9980 | fi | |
9981 | ||
d213114b | 9982 | echo "$as_me:$LINENO: checking for copysign in -lm" >&5 |
9983 | echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6 | |
9984 | if test "${ac_cv_lib_m_copysign+set}" = set; then | |
8f838781 | 9985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9986 | else | |
9987 | ac_check_lib_save_LIBS=$LIBS | |
9988 | LIBS="-lm $LIBS" | |
b52ee437 | 9989 | if test x$gcc_no_link = xyes; then |
9990 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9991 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9992 | { (exit 1); exit 1; }; } | |
9993 | fi | |
8f838781 | 9994 | cat >conftest.$ac_ext <<_ACEOF |
9995 | /* confdefs.h. */ | |
9996 | _ACEOF | |
9997 | cat confdefs.h >>conftest.$ac_ext | |
9998 | cat >>conftest.$ac_ext <<_ACEOF | |
9999 | /* end confdefs.h. */ | |
10000 | ||
10001 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10002 | #ifdef __cplusplus | |
10003 | extern "C" | |
10004 | #endif | |
10005 | /* We use char because int might match the return type of a gcc2 | |
10006 | builtin and then its argument prototype would still apply. */ | |
d213114b | 10007 | char copysign (); |
8f838781 | 10008 | int |
10009 | main () | |
10010 | { | |
d213114b | 10011 | copysign (); |
8f838781 | 10012 | ; |
10013 | return 0; | |
10014 | } | |
10015 | _ACEOF | |
10016 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10018 | (eval $ac_link) 2>conftest.er1 | |
10019 | ac_status=$? | |
10020 | grep -v '^ *+' conftest.er1 >conftest.err | |
10021 | rm -f conftest.er1 | |
10022 | cat conftest.err >&5 | |
10023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10024 | (exit $ac_status); } && | |
b56cb1ff | 10025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 10026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10027 | (eval $ac_try) 2>&5 | |
10028 | ac_status=$? | |
10029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10030 | (exit $ac_status); }; } && | |
10031 | { ac_try='test -s conftest$ac_exeext' | |
10032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10033 | (eval $ac_try) 2>&5 | |
10034 | ac_status=$? | |
10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10036 | (exit $ac_status); }; }; then | |
d213114b | 10037 | ac_cv_lib_m_copysign=yes |
8f838781 | 10038 | else |
10039 | echo "$as_me: failed program was:" >&5 | |
10040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10041 | ||
d213114b | 10042 | ac_cv_lib_m_copysign=no |
8f838781 | 10043 | fi |
10044 | rm -f conftest.err conftest.$ac_objext \ | |
10045 | conftest$ac_exeext conftest.$ac_ext | |
10046 | LIBS=$ac_check_lib_save_LIBS | |
10047 | fi | |
d213114b | 10048 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5 |
10049 | echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6 | |
10050 | if test $ac_cv_lib_m_copysign = yes; then | |
8f838781 | 10051 | |
10052 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 10053 | #define HAVE_COPYSIGN 1 |
8f838781 | 10054 | _ACEOF |
10055 | ||
10056 | fi | |
10057 | ||
d213114b | 10058 | echo "$as_me:$LINENO: checking for copysignl in -lm" >&5 |
10059 | echo $ECHO_N "checking for copysignl in -lm... $ECHO_C" >&6 | |
10060 | if test "${ac_cv_lib_m_copysignl+set}" = set; then | |
8f838781 | 10061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10062 | else | |
10063 | ac_check_lib_save_LIBS=$LIBS | |
10064 | LIBS="-lm $LIBS" | |
b52ee437 | 10065 | if test x$gcc_no_link = xyes; then |
10066 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10067 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10068 | { (exit 1); exit 1; }; } | |
10069 | fi | |
8f838781 | 10070 | cat >conftest.$ac_ext <<_ACEOF |
10071 | /* confdefs.h. */ | |
10072 | _ACEOF | |
10073 | cat confdefs.h >>conftest.$ac_ext | |
10074 | cat >>conftest.$ac_ext <<_ACEOF | |
10075 | /* end confdefs.h. */ | |
10076 | ||
10077 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10078 | #ifdef __cplusplus | |
10079 | extern "C" | |
10080 | #endif | |
10081 | /* We use char because int might match the return type of a gcc2 | |
10082 | builtin and then its argument prototype would still apply. */ | |
d213114b | 10083 | char copysignl (); |
8f838781 | 10084 | int |
10085 | main () | |
10086 | { | |
d213114b | 10087 | copysignl (); |
8f838781 | 10088 | ; |
10089 | return 0; | |
10090 | } | |
10091 | _ACEOF | |
10092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10094 | (eval $ac_link) 2>conftest.er1 | |
10095 | ac_status=$? | |
10096 | grep -v '^ *+' conftest.er1 >conftest.err | |
10097 | rm -f conftest.er1 | |
10098 | cat conftest.err >&5 | |
10099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10100 | (exit $ac_status); } && | |
b56cb1ff | 10101 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 10102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10103 | (eval $ac_try) 2>&5 | |
10104 | ac_status=$? | |
10105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10106 | (exit $ac_status); }; } && | |
10107 | { ac_try='test -s conftest$ac_exeext' | |
10108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10109 | (eval $ac_try) 2>&5 | |
10110 | ac_status=$? | |
10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10112 | (exit $ac_status); }; }; then | |
d213114b | 10113 | ac_cv_lib_m_copysignl=yes |
8f838781 | 10114 | else |
10115 | echo "$as_me: failed program was:" >&5 | |
10116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10117 | ||
d213114b | 10118 | ac_cv_lib_m_copysignl=no |
8f838781 | 10119 | fi |
10120 | rm -f conftest.err conftest.$ac_objext \ | |
10121 | conftest$ac_exeext conftest.$ac_ext | |
10122 | LIBS=$ac_check_lib_save_LIBS | |
10123 | fi | |
d213114b | 10124 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignl" >&5 |
10125 | echo "${ECHO_T}$ac_cv_lib_m_copysignl" >&6 | |
10126 | if test $ac_cv_lib_m_copysignl = yes; then | |
8f838781 | 10127 | |
10128 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 10129 | #define HAVE_COPYSIGNL 1 |
8f838781 | 10130 | _ACEOF |
10131 | ||
10132 | fi | |
10133 | ||
d213114b | 10134 | echo "$as_me:$LINENO: checking for cosf in -lm" >&5 |
10135 | echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6 | |
10136 | if test "${ac_cv_lib_m_cosf+set}" = set; then | |
8f838781 | 10137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10138 | else | |
10139 | ac_check_lib_save_LIBS=$LIBS | |
10140 | LIBS="-lm $LIBS" | |
b52ee437 | 10141 | if test x$gcc_no_link = xyes; then |
10142 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10143 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10144 | { (exit 1); exit 1; }; } | |
10145 | fi | |
8f838781 | 10146 | cat >conftest.$ac_ext <<_ACEOF |
10147 | /* confdefs.h. */ | |
10148 | _ACEOF | |
10149 | cat confdefs.h >>conftest.$ac_ext | |
10150 | cat >>conftest.$ac_ext <<_ACEOF | |
10151 | /* end confdefs.h. */ | |
10152 | ||
10153 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10154 | #ifdef __cplusplus | |
10155 | extern "C" | |
10156 | #endif | |
10157 | /* We use char because int might match the return type of a gcc2 | |
10158 | builtin and then its argument prototype would still apply. */ | |
d213114b | 10159 | char cosf (); |
8f838781 | 10160 | int |
10161 | main () | |
10162 | { | |
d213114b | 10163 | cosf (); |
8f838781 | 10164 | ; |
10165 | return 0; | |
10166 | } | |
10167 | _ACEOF | |
10168 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10170 | (eval $ac_link) 2>conftest.er1 | |
10171 | ac_status=$? | |
10172 | grep -v '^ *+' conftest.er1 >conftest.err | |
10173 | rm -f conftest.er1 | |
10174 | cat conftest.err >&5 | |
10175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10176 | (exit $ac_status); } && | |
b56cb1ff | 10177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8f838781 | 10178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10179 | (eval $ac_try) 2>&5 | |
10180 | ac_status=$? | |
10181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10182 | (exit $ac_status); }; } && | |
10183 | { ac_try='test -s conftest$ac_exeext' | |
10184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10185 | (eval $ac_try) 2>&5 | |
10186 | ac_status=$? | |
10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10188 | (exit $ac_status); }; }; then | |
d213114b | 10189 | ac_cv_lib_m_cosf=yes |
8f838781 | 10190 | else |
10191 | echo "$as_me: failed program was:" >&5 | |
10192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10193 | ||
d213114b | 10194 | ac_cv_lib_m_cosf=no |
8f838781 | 10195 | fi |
10196 | rm -f conftest.err conftest.$ac_objext \ | |
10197 | conftest$ac_exeext conftest.$ac_ext | |
10198 | LIBS=$ac_check_lib_save_LIBS | |
10199 | fi | |
d213114b | 10200 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5 |
10201 | echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6 | |
10202 | if test $ac_cv_lib_m_cosf = yes; then | |
8f838781 | 10203 | |
10204 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 10205 | #define HAVE_COSF 1 |
4db2deda | 10206 | _ACEOF |
10207 | ||
10208 | fi | |
10209 | ||
d213114b | 10210 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
10211 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
10212 | if test "${ac_cv_lib_m_cos+set}" = set; then | |
50f0ca0a | 10213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10214 | else | |
10215 | ac_check_lib_save_LIBS=$LIBS | |
10216 | LIBS="-lm $LIBS" | |
b52ee437 | 10217 | if test x$gcc_no_link = xyes; then |
10218 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10219 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10220 | { (exit 1); exit 1; }; } | |
10221 | fi | |
50f0ca0a | 10222 | cat >conftest.$ac_ext <<_ACEOF |
10223 | /* confdefs.h. */ | |
10224 | _ACEOF | |
10225 | cat confdefs.h >>conftest.$ac_ext | |
10226 | cat >>conftest.$ac_ext <<_ACEOF | |
10227 | /* end confdefs.h. */ | |
10228 | ||
10229 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10230 | #ifdef __cplusplus | |
10231 | extern "C" | |
10232 | #endif | |
10233 | /* We use char because int might match the return type of a gcc2 | |
10234 | builtin and then its argument prototype would still apply. */ | |
d213114b | 10235 | char cos (); |
50f0ca0a | 10236 | int |
10237 | main () | |
10238 | { | |
d213114b | 10239 | cos (); |
50f0ca0a | 10240 | ; |
10241 | return 0; | |
10242 | } | |
10243 | _ACEOF | |
10244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10246 | (eval $ac_link) 2>conftest.er1 | |
10247 | ac_status=$? | |
10248 | grep -v '^ *+' conftest.er1 >conftest.err | |
10249 | rm -f conftest.er1 | |
10250 | cat conftest.err >&5 | |
10251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10252 | (exit $ac_status); } && | |
b56cb1ff | 10253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
50f0ca0a | 10254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10255 | (eval $ac_try) 2>&5 | |
10256 | ac_status=$? | |
10257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10258 | (exit $ac_status); }; } && | |
10259 | { ac_try='test -s conftest$ac_exeext' | |
10260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10261 | (eval $ac_try) 2>&5 | |
10262 | ac_status=$? | |
10263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10264 | (exit $ac_status); }; }; then | |
d213114b | 10265 | ac_cv_lib_m_cos=yes |
50f0ca0a | 10266 | else |
10267 | echo "$as_me: failed program was:" >&5 | |
10268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10269 | ||
d213114b | 10270 | ac_cv_lib_m_cos=no |
50f0ca0a | 10271 | fi |
10272 | rm -f conftest.err conftest.$ac_objext \ | |
10273 | conftest$ac_exeext conftest.$ac_ext | |
10274 | LIBS=$ac_check_lib_save_LIBS | |
10275 | fi | |
d213114b | 10276 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
10277 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
10278 | if test $ac_cv_lib_m_cos = yes; then | |
50f0ca0a | 10279 | |
10280 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 10281 | #define HAVE_COS 1 |
10282 | _ACEOF | |
10283 | ||
10284 | fi | |
10285 | ||
10286 | echo "$as_me:$LINENO: checking for cosl in -lm" >&5 | |
10287 | echo $ECHO_N "checking for cosl in -lm... $ECHO_C" >&6 | |
10288 | if test "${ac_cv_lib_m_cosl+set}" = set; then | |
10289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10290 | else | |
10291 | ac_check_lib_save_LIBS=$LIBS | |
10292 | LIBS="-lm $LIBS" | |
10293 | if test x$gcc_no_link = xyes; then | |
10294 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10295 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10296 | { (exit 1); exit 1; }; } | |
10297 | fi | |
10298 | cat >conftest.$ac_ext <<_ACEOF | |
10299 | /* confdefs.h. */ | |
10300 | _ACEOF | |
10301 | cat confdefs.h >>conftest.$ac_ext | |
10302 | cat >>conftest.$ac_ext <<_ACEOF | |
10303 | /* end confdefs.h. */ | |
10304 | ||
10305 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10306 | #ifdef __cplusplus | |
10307 | extern "C" | |
10308 | #endif | |
10309 | /* We use char because int might match the return type of a gcc2 | |
10310 | builtin and then its argument prototype would still apply. */ | |
10311 | char cosl (); | |
10312 | int | |
10313 | main () | |
10314 | { | |
10315 | cosl (); | |
10316 | ; | |
10317 | return 0; | |
10318 | } | |
10319 | _ACEOF | |
10320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10322 | (eval $ac_link) 2>conftest.er1 | |
10323 | ac_status=$? | |
10324 | grep -v '^ *+' conftest.er1 >conftest.err | |
10325 | rm -f conftest.er1 | |
10326 | cat conftest.err >&5 | |
10327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10328 | (exit $ac_status); } && | |
b56cb1ff | 10329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 10330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10331 | (eval $ac_try) 2>&5 | |
10332 | ac_status=$? | |
10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10334 | (exit $ac_status); }; } && | |
10335 | { ac_try='test -s conftest$ac_exeext' | |
10336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10337 | (eval $ac_try) 2>&5 | |
10338 | ac_status=$? | |
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10340 | (exit $ac_status); }; }; then | |
10341 | ac_cv_lib_m_cosl=yes | |
10342 | else | |
10343 | echo "$as_me: failed program was:" >&5 | |
10344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10345 | ||
10346 | ac_cv_lib_m_cosl=no | |
10347 | fi | |
10348 | rm -f conftest.err conftest.$ac_objext \ | |
10349 | conftest$ac_exeext conftest.$ac_ext | |
10350 | LIBS=$ac_check_lib_save_LIBS | |
10351 | fi | |
10352 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosl" >&5 | |
10353 | echo "${ECHO_T}$ac_cv_lib_m_cosl" >&6 | |
10354 | if test $ac_cv_lib_m_cosl = yes; then | |
10355 | ||
10356 | cat >>confdefs.h <<\_ACEOF | |
10357 | #define HAVE_COSL 1 | |
10358 | _ACEOF | |
10359 | ||
10360 | fi | |
10361 | ||
10362 | echo "$as_me:$LINENO: checking for ccosf in -lm" >&5 | |
10363 | echo $ECHO_N "checking for ccosf in -lm... $ECHO_C" >&6 | |
10364 | if test "${ac_cv_lib_m_ccosf+set}" = set; then | |
10365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10366 | else | |
10367 | ac_check_lib_save_LIBS=$LIBS | |
10368 | LIBS="-lm $LIBS" | |
10369 | if test x$gcc_no_link = xyes; then | |
10370 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10371 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10372 | { (exit 1); exit 1; }; } | |
10373 | fi | |
10374 | cat >conftest.$ac_ext <<_ACEOF | |
10375 | /* confdefs.h. */ | |
10376 | _ACEOF | |
10377 | cat confdefs.h >>conftest.$ac_ext | |
10378 | cat >>conftest.$ac_ext <<_ACEOF | |
10379 | /* end confdefs.h. */ | |
10380 | ||
10381 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10382 | #ifdef __cplusplus | |
10383 | extern "C" | |
10384 | #endif | |
10385 | /* We use char because int might match the return type of a gcc2 | |
10386 | builtin and then its argument prototype would still apply. */ | |
10387 | char ccosf (); | |
10388 | int | |
10389 | main () | |
10390 | { | |
10391 | ccosf (); | |
10392 | ; | |
10393 | return 0; | |
10394 | } | |
10395 | _ACEOF | |
10396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10398 | (eval $ac_link) 2>conftest.er1 | |
10399 | ac_status=$? | |
10400 | grep -v '^ *+' conftest.er1 >conftest.err | |
10401 | rm -f conftest.er1 | |
10402 | cat conftest.err >&5 | |
10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10404 | (exit $ac_status); } && | |
b56cb1ff | 10405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 10406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10407 | (eval $ac_try) 2>&5 | |
10408 | ac_status=$? | |
10409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10410 | (exit $ac_status); }; } && | |
10411 | { ac_try='test -s conftest$ac_exeext' | |
10412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10413 | (eval $ac_try) 2>&5 | |
10414 | ac_status=$? | |
10415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10416 | (exit $ac_status); }; }; then | |
10417 | ac_cv_lib_m_ccosf=yes | |
10418 | else | |
10419 | echo "$as_me: failed program was:" >&5 | |
10420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10421 | ||
10422 | ac_cv_lib_m_ccosf=no | |
10423 | fi | |
10424 | rm -f conftest.err conftest.$ac_objext \ | |
10425 | conftest$ac_exeext conftest.$ac_ext | |
10426 | LIBS=$ac_check_lib_save_LIBS | |
10427 | fi | |
10428 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosf" >&5 | |
10429 | echo "${ECHO_T}$ac_cv_lib_m_ccosf" >&6 | |
10430 | if test $ac_cv_lib_m_ccosf = yes; then | |
10431 | ||
10432 | cat >>confdefs.h <<\_ACEOF | |
10433 | #define HAVE_CCOSF 1 | |
10434 | _ACEOF | |
10435 | ||
10436 | fi | |
10437 | ||
10438 | echo "$as_me:$LINENO: checking for ccos in -lm" >&5 | |
10439 | echo $ECHO_N "checking for ccos in -lm... $ECHO_C" >&6 | |
10440 | if test "${ac_cv_lib_m_ccos+set}" = set; then | |
10441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10442 | else | |
10443 | ac_check_lib_save_LIBS=$LIBS | |
10444 | LIBS="-lm $LIBS" | |
10445 | if test x$gcc_no_link = xyes; then | |
10446 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10447 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10448 | { (exit 1); exit 1; }; } | |
10449 | fi | |
10450 | cat >conftest.$ac_ext <<_ACEOF | |
10451 | /* confdefs.h. */ | |
10452 | _ACEOF | |
10453 | cat confdefs.h >>conftest.$ac_ext | |
10454 | cat >>conftest.$ac_ext <<_ACEOF | |
10455 | /* end confdefs.h. */ | |
10456 | ||
10457 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10458 | #ifdef __cplusplus | |
10459 | extern "C" | |
10460 | #endif | |
10461 | /* We use char because int might match the return type of a gcc2 | |
10462 | builtin and then its argument prototype would still apply. */ | |
10463 | char ccos (); | |
10464 | int | |
10465 | main () | |
10466 | { | |
10467 | ccos (); | |
10468 | ; | |
10469 | return 0; | |
10470 | } | |
10471 | _ACEOF | |
10472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10474 | (eval $ac_link) 2>conftest.er1 | |
10475 | ac_status=$? | |
10476 | grep -v '^ *+' conftest.er1 >conftest.err | |
10477 | rm -f conftest.er1 | |
10478 | cat conftest.err >&5 | |
10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10480 | (exit $ac_status); } && | |
b56cb1ff | 10481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 10482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10483 | (eval $ac_try) 2>&5 | |
10484 | ac_status=$? | |
10485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10486 | (exit $ac_status); }; } && | |
10487 | { ac_try='test -s conftest$ac_exeext' | |
10488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10489 | (eval $ac_try) 2>&5 | |
10490 | ac_status=$? | |
10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10492 | (exit $ac_status); }; }; then | |
10493 | ac_cv_lib_m_ccos=yes | |
10494 | else | |
10495 | echo "$as_me: failed program was:" >&5 | |
10496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10497 | ||
10498 | ac_cv_lib_m_ccos=no | |
10499 | fi | |
10500 | rm -f conftest.err conftest.$ac_objext \ | |
10501 | conftest$ac_exeext conftest.$ac_ext | |
10502 | LIBS=$ac_check_lib_save_LIBS | |
10503 | fi | |
10504 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccos" >&5 | |
10505 | echo "${ECHO_T}$ac_cv_lib_m_ccos" >&6 | |
10506 | if test $ac_cv_lib_m_ccos = yes; then | |
10507 | ||
10508 | cat >>confdefs.h <<\_ACEOF | |
10509 | #define HAVE_CCOS 1 | |
10510 | _ACEOF | |
10511 | ||
10512 | fi | |
10513 | ||
10514 | echo "$as_me:$LINENO: checking for ccosl in -lm" >&5 | |
10515 | echo $ECHO_N "checking for ccosl in -lm... $ECHO_C" >&6 | |
10516 | if test "${ac_cv_lib_m_ccosl+set}" = set; then | |
10517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10518 | else | |
10519 | ac_check_lib_save_LIBS=$LIBS | |
10520 | LIBS="-lm $LIBS" | |
10521 | if test x$gcc_no_link = xyes; then | |
10522 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10523 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10524 | { (exit 1); exit 1; }; } | |
10525 | fi | |
10526 | cat >conftest.$ac_ext <<_ACEOF | |
10527 | /* confdefs.h. */ | |
10528 | _ACEOF | |
10529 | cat confdefs.h >>conftest.$ac_ext | |
10530 | cat >>conftest.$ac_ext <<_ACEOF | |
10531 | /* end confdefs.h. */ | |
10532 | ||
10533 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10534 | #ifdef __cplusplus | |
10535 | extern "C" | |
10536 | #endif | |
10537 | /* We use char because int might match the return type of a gcc2 | |
10538 | builtin and then its argument prototype would still apply. */ | |
10539 | char ccosl (); | |
10540 | int | |
10541 | main () | |
10542 | { | |
10543 | ccosl (); | |
10544 | ; | |
10545 | return 0; | |
10546 | } | |
10547 | _ACEOF | |
10548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10550 | (eval $ac_link) 2>conftest.er1 | |
10551 | ac_status=$? | |
10552 | grep -v '^ *+' conftest.er1 >conftest.err | |
10553 | rm -f conftest.er1 | |
10554 | cat conftest.err >&5 | |
10555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10556 | (exit $ac_status); } && | |
b56cb1ff | 10557 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 10558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10559 | (eval $ac_try) 2>&5 | |
10560 | ac_status=$? | |
10561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10562 | (exit $ac_status); }; } && | |
10563 | { ac_try='test -s conftest$ac_exeext' | |
10564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10565 | (eval $ac_try) 2>&5 | |
10566 | ac_status=$? | |
10567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10568 | (exit $ac_status); }; }; then | |
10569 | ac_cv_lib_m_ccosl=yes | |
10570 | else | |
10571 | echo "$as_me: failed program was:" >&5 | |
10572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10573 | ||
10574 | ac_cv_lib_m_ccosl=no | |
10575 | fi | |
10576 | rm -f conftest.err conftest.$ac_objext \ | |
10577 | conftest$ac_exeext conftest.$ac_ext | |
10578 | LIBS=$ac_check_lib_save_LIBS | |
10579 | fi | |
10580 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosl" >&5 | |
10581 | echo "${ECHO_T}$ac_cv_lib_m_ccosl" >&6 | |
10582 | if test $ac_cv_lib_m_ccosl = yes; then | |
10583 | ||
10584 | cat >>confdefs.h <<\_ACEOF | |
10585 | #define HAVE_CCOSL 1 | |
10586 | _ACEOF | |
10587 | ||
10588 | fi | |
10589 | ||
10590 | echo "$as_me:$LINENO: checking for coshf in -lm" >&5 | |
10591 | echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6 | |
10592 | if test "${ac_cv_lib_m_coshf+set}" = set; then | |
10593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10594 | else | |
10595 | ac_check_lib_save_LIBS=$LIBS | |
10596 | LIBS="-lm $LIBS" | |
10597 | if test x$gcc_no_link = xyes; then | |
10598 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10599 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10600 | { (exit 1); exit 1; }; } | |
10601 | fi | |
10602 | cat >conftest.$ac_ext <<_ACEOF | |
10603 | /* confdefs.h. */ | |
10604 | _ACEOF | |
10605 | cat confdefs.h >>conftest.$ac_ext | |
10606 | cat >>conftest.$ac_ext <<_ACEOF | |
10607 | /* end confdefs.h. */ | |
10608 | ||
10609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10610 | #ifdef __cplusplus | |
10611 | extern "C" | |
10612 | #endif | |
10613 | /* We use char because int might match the return type of a gcc2 | |
10614 | builtin and then its argument prototype would still apply. */ | |
10615 | char coshf (); | |
10616 | int | |
10617 | main () | |
10618 | { | |
10619 | coshf (); | |
10620 | ; | |
10621 | return 0; | |
10622 | } | |
10623 | _ACEOF | |
10624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10626 | (eval $ac_link) 2>conftest.er1 | |
10627 | ac_status=$? | |
10628 | grep -v '^ *+' conftest.er1 >conftest.err | |
10629 | rm -f conftest.er1 | |
10630 | cat conftest.err >&5 | |
10631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10632 | (exit $ac_status); } && | |
b56cb1ff | 10633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 10634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10635 | (eval $ac_try) 2>&5 | |
10636 | ac_status=$? | |
10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10638 | (exit $ac_status); }; } && | |
10639 | { ac_try='test -s conftest$ac_exeext' | |
10640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10641 | (eval $ac_try) 2>&5 | |
10642 | ac_status=$? | |
10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10644 | (exit $ac_status); }; }; then | |
10645 | ac_cv_lib_m_coshf=yes | |
10646 | else | |
10647 | echo "$as_me: failed program was:" >&5 | |
10648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10649 | ||
10650 | ac_cv_lib_m_coshf=no | |
10651 | fi | |
10652 | rm -f conftest.err conftest.$ac_objext \ | |
10653 | conftest$ac_exeext conftest.$ac_ext | |
10654 | LIBS=$ac_check_lib_save_LIBS | |
10655 | fi | |
10656 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5 | |
10657 | echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6 | |
10658 | if test $ac_cv_lib_m_coshf = yes; then | |
10659 | ||
10660 | cat >>confdefs.h <<\_ACEOF | |
10661 | #define HAVE_COSHF 1 | |
10662 | _ACEOF | |
10663 | ||
10664 | fi | |
10665 | ||
10666 | echo "$as_me:$LINENO: checking for cosh in -lm" >&5 | |
10667 | echo $ECHO_N "checking for cosh in -lm... $ECHO_C" >&6 | |
10668 | if test "${ac_cv_lib_m_cosh+set}" = set; then | |
10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10670 | else | |
10671 | ac_check_lib_save_LIBS=$LIBS | |
10672 | LIBS="-lm $LIBS" | |
10673 | if test x$gcc_no_link = xyes; then | |
10674 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10675 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10676 | { (exit 1); exit 1; }; } | |
10677 | fi | |
10678 | cat >conftest.$ac_ext <<_ACEOF | |
10679 | /* confdefs.h. */ | |
10680 | _ACEOF | |
10681 | cat confdefs.h >>conftest.$ac_ext | |
10682 | cat >>conftest.$ac_ext <<_ACEOF | |
10683 | /* end confdefs.h. */ | |
10684 | ||
10685 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10686 | #ifdef __cplusplus | |
10687 | extern "C" | |
10688 | #endif | |
10689 | /* We use char because int might match the return type of a gcc2 | |
10690 | builtin and then its argument prototype would still apply. */ | |
10691 | char cosh (); | |
10692 | int | |
10693 | main () | |
10694 | { | |
10695 | cosh (); | |
10696 | ; | |
10697 | return 0; | |
10698 | } | |
10699 | _ACEOF | |
10700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10702 | (eval $ac_link) 2>conftest.er1 | |
10703 | ac_status=$? | |
10704 | grep -v '^ *+' conftest.er1 >conftest.err | |
10705 | rm -f conftest.er1 | |
10706 | cat conftest.err >&5 | |
10707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10708 | (exit $ac_status); } && | |
b56cb1ff | 10709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 10710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10711 | (eval $ac_try) 2>&5 | |
10712 | ac_status=$? | |
10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10714 | (exit $ac_status); }; } && | |
10715 | { ac_try='test -s conftest$ac_exeext' | |
10716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10717 | (eval $ac_try) 2>&5 | |
10718 | ac_status=$? | |
10719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10720 | (exit $ac_status); }; }; then | |
10721 | ac_cv_lib_m_cosh=yes | |
10722 | else | |
10723 | echo "$as_me: failed program was:" >&5 | |
10724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10725 | ||
10726 | ac_cv_lib_m_cosh=no | |
10727 | fi | |
10728 | rm -f conftest.err conftest.$ac_objext \ | |
10729 | conftest$ac_exeext conftest.$ac_ext | |
10730 | LIBS=$ac_check_lib_save_LIBS | |
10731 | fi | |
10732 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosh" >&5 | |
10733 | echo "${ECHO_T}$ac_cv_lib_m_cosh" >&6 | |
10734 | if test $ac_cv_lib_m_cosh = yes; then | |
10735 | ||
10736 | cat >>confdefs.h <<\_ACEOF | |
10737 | #define HAVE_COSH 1 | |
10738 | _ACEOF | |
10739 | ||
10740 | fi | |
10741 | ||
10742 | echo "$as_me:$LINENO: checking for coshl in -lm" >&5 | |
10743 | echo $ECHO_N "checking for coshl in -lm... $ECHO_C" >&6 | |
10744 | if test "${ac_cv_lib_m_coshl+set}" = set; then | |
10745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10746 | else | |
10747 | ac_check_lib_save_LIBS=$LIBS | |
10748 | LIBS="-lm $LIBS" | |
10749 | if test x$gcc_no_link = xyes; then | |
10750 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10751 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10752 | { (exit 1); exit 1; }; } | |
10753 | fi | |
10754 | cat >conftest.$ac_ext <<_ACEOF | |
10755 | /* confdefs.h. */ | |
10756 | _ACEOF | |
10757 | cat confdefs.h >>conftest.$ac_ext | |
10758 | cat >>conftest.$ac_ext <<_ACEOF | |
10759 | /* end confdefs.h. */ | |
10760 | ||
10761 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10762 | #ifdef __cplusplus | |
10763 | extern "C" | |
10764 | #endif | |
10765 | /* We use char because int might match the return type of a gcc2 | |
10766 | builtin and then its argument prototype would still apply. */ | |
10767 | char coshl (); | |
10768 | int | |
10769 | main () | |
10770 | { | |
10771 | coshl (); | |
10772 | ; | |
10773 | return 0; | |
10774 | } | |
10775 | _ACEOF | |
10776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10778 | (eval $ac_link) 2>conftest.er1 | |
10779 | ac_status=$? | |
10780 | grep -v '^ *+' conftest.er1 >conftest.err | |
10781 | rm -f conftest.er1 | |
10782 | cat conftest.err >&5 | |
10783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10784 | (exit $ac_status); } && | |
b56cb1ff | 10785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 10786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10787 | (eval $ac_try) 2>&5 | |
10788 | ac_status=$? | |
10789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10790 | (exit $ac_status); }; } && | |
10791 | { ac_try='test -s conftest$ac_exeext' | |
10792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10793 | (eval $ac_try) 2>&5 | |
10794 | ac_status=$? | |
10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10796 | (exit $ac_status); }; }; then | |
10797 | ac_cv_lib_m_coshl=yes | |
10798 | else | |
10799 | echo "$as_me: failed program was:" >&5 | |
10800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10801 | ||
10802 | ac_cv_lib_m_coshl=no | |
10803 | fi | |
10804 | rm -f conftest.err conftest.$ac_objext \ | |
10805 | conftest$ac_exeext conftest.$ac_ext | |
10806 | LIBS=$ac_check_lib_save_LIBS | |
10807 | fi | |
10808 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshl" >&5 | |
10809 | echo "${ECHO_T}$ac_cv_lib_m_coshl" >&6 | |
10810 | if test $ac_cv_lib_m_coshl = yes; then | |
10811 | ||
10812 | cat >>confdefs.h <<\_ACEOF | |
10813 | #define HAVE_COSHL 1 | |
10814 | _ACEOF | |
10815 | ||
10816 | fi | |
10817 | ||
10818 | echo "$as_me:$LINENO: checking for ccoshf in -lm" >&5 | |
10819 | echo $ECHO_N "checking for ccoshf in -lm... $ECHO_C" >&6 | |
10820 | if test "${ac_cv_lib_m_ccoshf+set}" = set; then | |
10821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10822 | else | |
10823 | ac_check_lib_save_LIBS=$LIBS | |
10824 | LIBS="-lm $LIBS" | |
10825 | if test x$gcc_no_link = xyes; then | |
10826 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10827 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10828 | { (exit 1); exit 1; }; } | |
10829 | fi | |
10830 | cat >conftest.$ac_ext <<_ACEOF | |
10831 | /* confdefs.h. */ | |
10832 | _ACEOF | |
10833 | cat confdefs.h >>conftest.$ac_ext | |
10834 | cat >>conftest.$ac_ext <<_ACEOF | |
10835 | /* end confdefs.h. */ | |
10836 | ||
10837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10838 | #ifdef __cplusplus | |
10839 | extern "C" | |
10840 | #endif | |
10841 | /* We use char because int might match the return type of a gcc2 | |
10842 | builtin and then its argument prototype would still apply. */ | |
10843 | char ccoshf (); | |
10844 | int | |
10845 | main () | |
10846 | { | |
10847 | ccoshf (); | |
10848 | ; | |
10849 | return 0; | |
10850 | } | |
10851 | _ACEOF | |
10852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10854 | (eval $ac_link) 2>conftest.er1 | |
10855 | ac_status=$? | |
10856 | grep -v '^ *+' conftest.er1 >conftest.err | |
10857 | rm -f conftest.er1 | |
10858 | cat conftest.err >&5 | |
10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10860 | (exit $ac_status); } && | |
b56cb1ff | 10861 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 10862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10863 | (eval $ac_try) 2>&5 | |
10864 | ac_status=$? | |
10865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10866 | (exit $ac_status); }; } && | |
10867 | { ac_try='test -s conftest$ac_exeext' | |
10868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10869 | (eval $ac_try) 2>&5 | |
10870 | ac_status=$? | |
10871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10872 | (exit $ac_status); }; }; then | |
10873 | ac_cv_lib_m_ccoshf=yes | |
10874 | else | |
10875 | echo "$as_me: failed program was:" >&5 | |
10876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10877 | ||
10878 | ac_cv_lib_m_ccoshf=no | |
10879 | fi | |
10880 | rm -f conftest.err conftest.$ac_objext \ | |
10881 | conftest$ac_exeext conftest.$ac_ext | |
10882 | LIBS=$ac_check_lib_save_LIBS | |
10883 | fi | |
10884 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshf" >&5 | |
10885 | echo "${ECHO_T}$ac_cv_lib_m_ccoshf" >&6 | |
10886 | if test $ac_cv_lib_m_ccoshf = yes; then | |
10887 | ||
10888 | cat >>confdefs.h <<\_ACEOF | |
10889 | #define HAVE_CCOSHF 1 | |
10890 | _ACEOF | |
10891 | ||
10892 | fi | |
10893 | ||
10894 | echo "$as_me:$LINENO: checking for ccosh in -lm" >&5 | |
10895 | echo $ECHO_N "checking for ccosh in -lm... $ECHO_C" >&6 | |
10896 | if test "${ac_cv_lib_m_ccosh+set}" = set; then | |
10897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10898 | else | |
10899 | ac_check_lib_save_LIBS=$LIBS | |
10900 | LIBS="-lm $LIBS" | |
10901 | if test x$gcc_no_link = xyes; then | |
10902 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10903 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10904 | { (exit 1); exit 1; }; } | |
10905 | fi | |
10906 | cat >conftest.$ac_ext <<_ACEOF | |
10907 | /* confdefs.h. */ | |
10908 | _ACEOF | |
10909 | cat confdefs.h >>conftest.$ac_ext | |
10910 | cat >>conftest.$ac_ext <<_ACEOF | |
10911 | /* end confdefs.h. */ | |
10912 | ||
10913 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10914 | #ifdef __cplusplus | |
10915 | extern "C" | |
10916 | #endif | |
10917 | /* We use char because int might match the return type of a gcc2 | |
10918 | builtin and then its argument prototype would still apply. */ | |
10919 | char ccosh (); | |
10920 | int | |
10921 | main () | |
10922 | { | |
10923 | ccosh (); | |
10924 | ; | |
10925 | return 0; | |
10926 | } | |
10927 | _ACEOF | |
10928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10930 | (eval $ac_link) 2>conftest.er1 | |
10931 | ac_status=$? | |
10932 | grep -v '^ *+' conftest.er1 >conftest.err | |
10933 | rm -f conftest.er1 | |
10934 | cat conftest.err >&5 | |
10935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10936 | (exit $ac_status); } && | |
b56cb1ff | 10937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 10938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10939 | (eval $ac_try) 2>&5 | |
10940 | ac_status=$? | |
10941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10942 | (exit $ac_status); }; } && | |
10943 | { ac_try='test -s conftest$ac_exeext' | |
10944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10945 | (eval $ac_try) 2>&5 | |
10946 | ac_status=$? | |
10947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10948 | (exit $ac_status); }; }; then | |
10949 | ac_cv_lib_m_ccosh=yes | |
10950 | else | |
10951 | echo "$as_me: failed program was:" >&5 | |
10952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10953 | ||
10954 | ac_cv_lib_m_ccosh=no | |
10955 | fi | |
10956 | rm -f conftest.err conftest.$ac_objext \ | |
10957 | conftest$ac_exeext conftest.$ac_ext | |
10958 | LIBS=$ac_check_lib_save_LIBS | |
10959 | fi | |
10960 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosh" >&5 | |
10961 | echo "${ECHO_T}$ac_cv_lib_m_ccosh" >&6 | |
10962 | if test $ac_cv_lib_m_ccosh = yes; then | |
10963 | ||
10964 | cat >>confdefs.h <<\_ACEOF | |
10965 | #define HAVE_CCOSH 1 | |
10966 | _ACEOF | |
10967 | ||
10968 | fi | |
10969 | ||
10970 | echo "$as_me:$LINENO: checking for ccoshl in -lm" >&5 | |
10971 | echo $ECHO_N "checking for ccoshl in -lm... $ECHO_C" >&6 | |
10972 | if test "${ac_cv_lib_m_ccoshl+set}" = set; then | |
10973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10974 | else | |
10975 | ac_check_lib_save_LIBS=$LIBS | |
10976 | LIBS="-lm $LIBS" | |
10977 | if test x$gcc_no_link = xyes; then | |
10978 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10979 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10980 | { (exit 1); exit 1; }; } | |
10981 | fi | |
10982 | cat >conftest.$ac_ext <<_ACEOF | |
10983 | /* confdefs.h. */ | |
10984 | _ACEOF | |
10985 | cat confdefs.h >>conftest.$ac_ext | |
10986 | cat >>conftest.$ac_ext <<_ACEOF | |
10987 | /* end confdefs.h. */ | |
10988 | ||
10989 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10990 | #ifdef __cplusplus | |
10991 | extern "C" | |
10992 | #endif | |
10993 | /* We use char because int might match the return type of a gcc2 | |
10994 | builtin and then its argument prototype would still apply. */ | |
10995 | char ccoshl (); | |
10996 | int | |
10997 | main () | |
10998 | { | |
10999 | ccoshl (); | |
11000 | ; | |
11001 | return 0; | |
11002 | } | |
11003 | _ACEOF | |
11004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11006 | (eval $ac_link) 2>conftest.er1 | |
11007 | ac_status=$? | |
11008 | grep -v '^ *+' conftest.er1 >conftest.err | |
11009 | rm -f conftest.er1 | |
11010 | cat conftest.err >&5 | |
11011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11012 | (exit $ac_status); } && | |
b56cb1ff | 11013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11015 | (eval $ac_try) 2>&5 | |
11016 | ac_status=$? | |
11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11018 | (exit $ac_status); }; } && | |
11019 | { ac_try='test -s conftest$ac_exeext' | |
11020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11021 | (eval $ac_try) 2>&5 | |
11022 | ac_status=$? | |
11023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11024 | (exit $ac_status); }; }; then | |
11025 | ac_cv_lib_m_ccoshl=yes | |
11026 | else | |
11027 | echo "$as_me: failed program was:" >&5 | |
11028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11029 | ||
11030 | ac_cv_lib_m_ccoshl=no | |
11031 | fi | |
11032 | rm -f conftest.err conftest.$ac_objext \ | |
11033 | conftest$ac_exeext conftest.$ac_ext | |
11034 | LIBS=$ac_check_lib_save_LIBS | |
11035 | fi | |
11036 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshl" >&5 | |
11037 | echo "${ECHO_T}$ac_cv_lib_m_ccoshl" >&6 | |
11038 | if test $ac_cv_lib_m_ccoshl = yes; then | |
11039 | ||
11040 | cat >>confdefs.h <<\_ACEOF | |
11041 | #define HAVE_CCOSHL 1 | |
11042 | _ACEOF | |
11043 | ||
11044 | fi | |
11045 | ||
11046 | echo "$as_me:$LINENO: checking for expf in -lm" >&5 | |
11047 | echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6 | |
11048 | if test "${ac_cv_lib_m_expf+set}" = set; then | |
11049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11050 | else | |
11051 | ac_check_lib_save_LIBS=$LIBS | |
11052 | LIBS="-lm $LIBS" | |
11053 | if test x$gcc_no_link = xyes; then | |
11054 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11055 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11056 | { (exit 1); exit 1; }; } | |
11057 | fi | |
11058 | cat >conftest.$ac_ext <<_ACEOF | |
11059 | /* confdefs.h. */ | |
11060 | _ACEOF | |
11061 | cat confdefs.h >>conftest.$ac_ext | |
11062 | cat >>conftest.$ac_ext <<_ACEOF | |
11063 | /* end confdefs.h. */ | |
11064 | ||
11065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11066 | #ifdef __cplusplus | |
11067 | extern "C" | |
11068 | #endif | |
11069 | /* We use char because int might match the return type of a gcc2 | |
11070 | builtin and then its argument prototype would still apply. */ | |
11071 | char expf (); | |
11072 | int | |
11073 | main () | |
11074 | { | |
11075 | expf (); | |
11076 | ; | |
11077 | return 0; | |
11078 | } | |
11079 | _ACEOF | |
11080 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11082 | (eval $ac_link) 2>conftest.er1 | |
11083 | ac_status=$? | |
11084 | grep -v '^ *+' conftest.er1 >conftest.err | |
11085 | rm -f conftest.er1 | |
11086 | cat conftest.err >&5 | |
11087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11088 | (exit $ac_status); } && | |
b56cb1ff | 11089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11091 | (eval $ac_try) 2>&5 | |
11092 | ac_status=$? | |
11093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11094 | (exit $ac_status); }; } && | |
11095 | { ac_try='test -s conftest$ac_exeext' | |
11096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11097 | (eval $ac_try) 2>&5 | |
11098 | ac_status=$? | |
11099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11100 | (exit $ac_status); }; }; then | |
11101 | ac_cv_lib_m_expf=yes | |
11102 | else | |
11103 | echo "$as_me: failed program was:" >&5 | |
11104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11105 | ||
11106 | ac_cv_lib_m_expf=no | |
11107 | fi | |
11108 | rm -f conftest.err conftest.$ac_objext \ | |
11109 | conftest$ac_exeext conftest.$ac_ext | |
11110 | LIBS=$ac_check_lib_save_LIBS | |
11111 | fi | |
11112 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5 | |
11113 | echo "${ECHO_T}$ac_cv_lib_m_expf" >&6 | |
11114 | if test $ac_cv_lib_m_expf = yes; then | |
11115 | ||
11116 | cat >>confdefs.h <<\_ACEOF | |
11117 | #define HAVE_EXPF 1 | |
11118 | _ACEOF | |
11119 | ||
11120 | fi | |
11121 | ||
11122 | echo "$as_me:$LINENO: checking for exp in -lm" >&5 | |
11123 | echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6 | |
11124 | if test "${ac_cv_lib_m_exp+set}" = set; then | |
11125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11126 | else | |
11127 | ac_check_lib_save_LIBS=$LIBS | |
11128 | LIBS="-lm $LIBS" | |
11129 | if test x$gcc_no_link = xyes; then | |
11130 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11131 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11132 | { (exit 1); exit 1; }; } | |
11133 | fi | |
11134 | cat >conftest.$ac_ext <<_ACEOF | |
11135 | /* confdefs.h. */ | |
11136 | _ACEOF | |
11137 | cat confdefs.h >>conftest.$ac_ext | |
11138 | cat >>conftest.$ac_ext <<_ACEOF | |
11139 | /* end confdefs.h. */ | |
11140 | ||
11141 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11142 | #ifdef __cplusplus | |
11143 | extern "C" | |
11144 | #endif | |
11145 | /* We use char because int might match the return type of a gcc2 | |
11146 | builtin and then its argument prototype would still apply. */ | |
11147 | char exp (); | |
11148 | int | |
11149 | main () | |
11150 | { | |
11151 | exp (); | |
11152 | ; | |
11153 | return 0; | |
11154 | } | |
11155 | _ACEOF | |
11156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11158 | (eval $ac_link) 2>conftest.er1 | |
11159 | ac_status=$? | |
11160 | grep -v '^ *+' conftest.er1 >conftest.err | |
11161 | rm -f conftest.er1 | |
11162 | cat conftest.err >&5 | |
11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11164 | (exit $ac_status); } && | |
b56cb1ff | 11165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11167 | (eval $ac_try) 2>&5 | |
11168 | ac_status=$? | |
11169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11170 | (exit $ac_status); }; } && | |
11171 | { ac_try='test -s conftest$ac_exeext' | |
11172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11173 | (eval $ac_try) 2>&5 | |
11174 | ac_status=$? | |
11175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11176 | (exit $ac_status); }; }; then | |
11177 | ac_cv_lib_m_exp=yes | |
11178 | else | |
11179 | echo "$as_me: failed program was:" >&5 | |
11180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11181 | ||
11182 | ac_cv_lib_m_exp=no | |
11183 | fi | |
11184 | rm -f conftest.err conftest.$ac_objext \ | |
11185 | conftest$ac_exeext conftest.$ac_ext | |
11186 | LIBS=$ac_check_lib_save_LIBS | |
11187 | fi | |
11188 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5 | |
11189 | echo "${ECHO_T}$ac_cv_lib_m_exp" >&6 | |
11190 | if test $ac_cv_lib_m_exp = yes; then | |
11191 | ||
11192 | cat >>confdefs.h <<\_ACEOF | |
11193 | #define HAVE_EXP 1 | |
11194 | _ACEOF | |
11195 | ||
11196 | fi | |
11197 | ||
11198 | echo "$as_me:$LINENO: checking for expl in -lm" >&5 | |
11199 | echo $ECHO_N "checking for expl in -lm... $ECHO_C" >&6 | |
11200 | if test "${ac_cv_lib_m_expl+set}" = set; then | |
11201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11202 | else | |
11203 | ac_check_lib_save_LIBS=$LIBS | |
11204 | LIBS="-lm $LIBS" | |
11205 | if test x$gcc_no_link = xyes; then | |
11206 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11207 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11208 | { (exit 1); exit 1; }; } | |
11209 | fi | |
11210 | cat >conftest.$ac_ext <<_ACEOF | |
11211 | /* confdefs.h. */ | |
11212 | _ACEOF | |
11213 | cat confdefs.h >>conftest.$ac_ext | |
11214 | cat >>conftest.$ac_ext <<_ACEOF | |
11215 | /* end confdefs.h. */ | |
11216 | ||
11217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11218 | #ifdef __cplusplus | |
11219 | extern "C" | |
11220 | #endif | |
11221 | /* We use char because int might match the return type of a gcc2 | |
11222 | builtin and then its argument prototype would still apply. */ | |
11223 | char expl (); | |
11224 | int | |
11225 | main () | |
11226 | { | |
11227 | expl (); | |
11228 | ; | |
11229 | return 0; | |
11230 | } | |
11231 | _ACEOF | |
11232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11234 | (eval $ac_link) 2>conftest.er1 | |
11235 | ac_status=$? | |
11236 | grep -v '^ *+' conftest.er1 >conftest.err | |
11237 | rm -f conftest.er1 | |
11238 | cat conftest.err >&5 | |
11239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11240 | (exit $ac_status); } && | |
b56cb1ff | 11241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11243 | (eval $ac_try) 2>&5 | |
11244 | ac_status=$? | |
11245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11246 | (exit $ac_status); }; } && | |
11247 | { ac_try='test -s conftest$ac_exeext' | |
11248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11249 | (eval $ac_try) 2>&5 | |
11250 | ac_status=$? | |
11251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11252 | (exit $ac_status); }; }; then | |
11253 | ac_cv_lib_m_expl=yes | |
11254 | else | |
11255 | echo "$as_me: failed program was:" >&5 | |
11256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11257 | ||
11258 | ac_cv_lib_m_expl=no | |
11259 | fi | |
11260 | rm -f conftest.err conftest.$ac_objext \ | |
11261 | conftest$ac_exeext conftest.$ac_ext | |
11262 | LIBS=$ac_check_lib_save_LIBS | |
11263 | fi | |
11264 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expl" >&5 | |
11265 | echo "${ECHO_T}$ac_cv_lib_m_expl" >&6 | |
11266 | if test $ac_cv_lib_m_expl = yes; then | |
11267 | ||
11268 | cat >>confdefs.h <<\_ACEOF | |
11269 | #define HAVE_EXPL 1 | |
11270 | _ACEOF | |
11271 | ||
11272 | fi | |
11273 | ||
11274 | echo "$as_me:$LINENO: checking for cexpf in -lm" >&5 | |
11275 | echo $ECHO_N "checking for cexpf in -lm... $ECHO_C" >&6 | |
11276 | if test "${ac_cv_lib_m_cexpf+set}" = set; then | |
11277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11278 | else | |
11279 | ac_check_lib_save_LIBS=$LIBS | |
11280 | LIBS="-lm $LIBS" | |
11281 | if test x$gcc_no_link = xyes; then | |
11282 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11283 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11284 | { (exit 1); exit 1; }; } | |
11285 | fi | |
11286 | cat >conftest.$ac_ext <<_ACEOF | |
11287 | /* confdefs.h. */ | |
11288 | _ACEOF | |
11289 | cat confdefs.h >>conftest.$ac_ext | |
11290 | cat >>conftest.$ac_ext <<_ACEOF | |
11291 | /* end confdefs.h. */ | |
11292 | ||
11293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11294 | #ifdef __cplusplus | |
11295 | extern "C" | |
11296 | #endif | |
11297 | /* We use char because int might match the return type of a gcc2 | |
11298 | builtin and then its argument prototype would still apply. */ | |
11299 | char cexpf (); | |
11300 | int | |
11301 | main () | |
11302 | { | |
11303 | cexpf (); | |
11304 | ; | |
11305 | return 0; | |
11306 | } | |
11307 | _ACEOF | |
11308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11310 | (eval $ac_link) 2>conftest.er1 | |
11311 | ac_status=$? | |
11312 | grep -v '^ *+' conftest.er1 >conftest.err | |
11313 | rm -f conftest.er1 | |
11314 | cat conftest.err >&5 | |
11315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11316 | (exit $ac_status); } && | |
b56cb1ff | 11317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11319 | (eval $ac_try) 2>&5 | |
11320 | ac_status=$? | |
11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11322 | (exit $ac_status); }; } && | |
11323 | { ac_try='test -s conftest$ac_exeext' | |
11324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11325 | (eval $ac_try) 2>&5 | |
11326 | ac_status=$? | |
11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11328 | (exit $ac_status); }; }; then | |
11329 | ac_cv_lib_m_cexpf=yes | |
11330 | else | |
11331 | echo "$as_me: failed program was:" >&5 | |
11332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11333 | ||
11334 | ac_cv_lib_m_cexpf=no | |
11335 | fi | |
11336 | rm -f conftest.err conftest.$ac_objext \ | |
11337 | conftest$ac_exeext conftest.$ac_ext | |
11338 | LIBS=$ac_check_lib_save_LIBS | |
11339 | fi | |
11340 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpf" >&5 | |
11341 | echo "${ECHO_T}$ac_cv_lib_m_cexpf" >&6 | |
11342 | if test $ac_cv_lib_m_cexpf = yes; then | |
11343 | ||
11344 | cat >>confdefs.h <<\_ACEOF | |
11345 | #define HAVE_CEXPF 1 | |
11346 | _ACEOF | |
11347 | ||
11348 | fi | |
11349 | ||
11350 | echo "$as_me:$LINENO: checking for cexp in -lm" >&5 | |
11351 | echo $ECHO_N "checking for cexp in -lm... $ECHO_C" >&6 | |
11352 | if test "${ac_cv_lib_m_cexp+set}" = set; then | |
11353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11354 | else | |
11355 | ac_check_lib_save_LIBS=$LIBS | |
11356 | LIBS="-lm $LIBS" | |
11357 | if test x$gcc_no_link = xyes; then | |
11358 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11359 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11360 | { (exit 1); exit 1; }; } | |
11361 | fi | |
11362 | cat >conftest.$ac_ext <<_ACEOF | |
11363 | /* confdefs.h. */ | |
11364 | _ACEOF | |
11365 | cat confdefs.h >>conftest.$ac_ext | |
11366 | cat >>conftest.$ac_ext <<_ACEOF | |
11367 | /* end confdefs.h. */ | |
11368 | ||
11369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11370 | #ifdef __cplusplus | |
11371 | extern "C" | |
11372 | #endif | |
11373 | /* We use char because int might match the return type of a gcc2 | |
11374 | builtin and then its argument prototype would still apply. */ | |
11375 | char cexp (); | |
11376 | int | |
11377 | main () | |
11378 | { | |
11379 | cexp (); | |
11380 | ; | |
11381 | return 0; | |
11382 | } | |
11383 | _ACEOF | |
11384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11386 | (eval $ac_link) 2>conftest.er1 | |
11387 | ac_status=$? | |
11388 | grep -v '^ *+' conftest.er1 >conftest.err | |
11389 | rm -f conftest.er1 | |
11390 | cat conftest.err >&5 | |
11391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11392 | (exit $ac_status); } && | |
b56cb1ff | 11393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11395 | (eval $ac_try) 2>&5 | |
11396 | ac_status=$? | |
11397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11398 | (exit $ac_status); }; } && | |
11399 | { ac_try='test -s conftest$ac_exeext' | |
11400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11401 | (eval $ac_try) 2>&5 | |
11402 | ac_status=$? | |
11403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11404 | (exit $ac_status); }; }; then | |
11405 | ac_cv_lib_m_cexp=yes | |
11406 | else | |
11407 | echo "$as_me: failed program was:" >&5 | |
11408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11409 | ||
11410 | ac_cv_lib_m_cexp=no | |
11411 | fi | |
11412 | rm -f conftest.err conftest.$ac_objext \ | |
11413 | conftest$ac_exeext conftest.$ac_ext | |
11414 | LIBS=$ac_check_lib_save_LIBS | |
11415 | fi | |
11416 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexp" >&5 | |
11417 | echo "${ECHO_T}$ac_cv_lib_m_cexp" >&6 | |
11418 | if test $ac_cv_lib_m_cexp = yes; then | |
11419 | ||
11420 | cat >>confdefs.h <<\_ACEOF | |
11421 | #define HAVE_CEXP 1 | |
11422 | _ACEOF | |
11423 | ||
11424 | fi | |
11425 | ||
11426 | echo "$as_me:$LINENO: checking for cexpl in -lm" >&5 | |
11427 | echo $ECHO_N "checking for cexpl in -lm... $ECHO_C" >&6 | |
11428 | if test "${ac_cv_lib_m_cexpl+set}" = set; then | |
11429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11430 | else | |
11431 | ac_check_lib_save_LIBS=$LIBS | |
11432 | LIBS="-lm $LIBS" | |
11433 | if test x$gcc_no_link = xyes; then | |
11434 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11435 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11436 | { (exit 1); exit 1; }; } | |
11437 | fi | |
11438 | cat >conftest.$ac_ext <<_ACEOF | |
11439 | /* confdefs.h. */ | |
11440 | _ACEOF | |
11441 | cat confdefs.h >>conftest.$ac_ext | |
11442 | cat >>conftest.$ac_ext <<_ACEOF | |
11443 | /* end confdefs.h. */ | |
11444 | ||
11445 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11446 | #ifdef __cplusplus | |
11447 | extern "C" | |
11448 | #endif | |
11449 | /* We use char because int might match the return type of a gcc2 | |
11450 | builtin and then its argument prototype would still apply. */ | |
11451 | char cexpl (); | |
11452 | int | |
11453 | main () | |
11454 | { | |
11455 | cexpl (); | |
11456 | ; | |
11457 | return 0; | |
11458 | } | |
11459 | _ACEOF | |
11460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11462 | (eval $ac_link) 2>conftest.er1 | |
11463 | ac_status=$? | |
11464 | grep -v '^ *+' conftest.er1 >conftest.err | |
11465 | rm -f conftest.er1 | |
11466 | cat conftest.err >&5 | |
11467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11468 | (exit $ac_status); } && | |
b56cb1ff | 11469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11471 | (eval $ac_try) 2>&5 | |
11472 | ac_status=$? | |
11473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11474 | (exit $ac_status); }; } && | |
11475 | { ac_try='test -s conftest$ac_exeext' | |
11476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11477 | (eval $ac_try) 2>&5 | |
11478 | ac_status=$? | |
11479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11480 | (exit $ac_status); }; }; then | |
11481 | ac_cv_lib_m_cexpl=yes | |
11482 | else | |
11483 | echo "$as_me: failed program was:" >&5 | |
11484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11485 | ||
11486 | ac_cv_lib_m_cexpl=no | |
11487 | fi | |
11488 | rm -f conftest.err conftest.$ac_objext \ | |
11489 | conftest$ac_exeext conftest.$ac_ext | |
11490 | LIBS=$ac_check_lib_save_LIBS | |
11491 | fi | |
11492 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpl" >&5 | |
11493 | echo "${ECHO_T}$ac_cv_lib_m_cexpl" >&6 | |
11494 | if test $ac_cv_lib_m_cexpl = yes; then | |
11495 | ||
11496 | cat >>confdefs.h <<\_ACEOF | |
11497 | #define HAVE_CEXPL 1 | |
11498 | _ACEOF | |
11499 | ||
11500 | fi | |
11501 | ||
11502 | echo "$as_me:$LINENO: checking for fabsf in -lm" >&5 | |
11503 | echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6 | |
11504 | if test "${ac_cv_lib_m_fabsf+set}" = set; then | |
11505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11506 | else | |
11507 | ac_check_lib_save_LIBS=$LIBS | |
11508 | LIBS="-lm $LIBS" | |
11509 | if test x$gcc_no_link = xyes; then | |
11510 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11511 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11512 | { (exit 1); exit 1; }; } | |
11513 | fi | |
11514 | cat >conftest.$ac_ext <<_ACEOF | |
11515 | /* confdefs.h. */ | |
11516 | _ACEOF | |
11517 | cat confdefs.h >>conftest.$ac_ext | |
11518 | cat >>conftest.$ac_ext <<_ACEOF | |
11519 | /* end confdefs.h. */ | |
11520 | ||
11521 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11522 | #ifdef __cplusplus | |
11523 | extern "C" | |
11524 | #endif | |
11525 | /* We use char because int might match the return type of a gcc2 | |
11526 | builtin and then its argument prototype would still apply. */ | |
11527 | char fabsf (); | |
11528 | int | |
11529 | main () | |
11530 | { | |
11531 | fabsf (); | |
11532 | ; | |
11533 | return 0; | |
11534 | } | |
11535 | _ACEOF | |
11536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11538 | (eval $ac_link) 2>conftest.er1 | |
11539 | ac_status=$? | |
11540 | grep -v '^ *+' conftest.er1 >conftest.err | |
11541 | rm -f conftest.er1 | |
11542 | cat conftest.err >&5 | |
11543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11544 | (exit $ac_status); } && | |
b56cb1ff | 11545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11547 | (eval $ac_try) 2>&5 | |
11548 | ac_status=$? | |
11549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11550 | (exit $ac_status); }; } && | |
11551 | { ac_try='test -s conftest$ac_exeext' | |
11552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11553 | (eval $ac_try) 2>&5 | |
11554 | ac_status=$? | |
11555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11556 | (exit $ac_status); }; }; then | |
11557 | ac_cv_lib_m_fabsf=yes | |
11558 | else | |
11559 | echo "$as_me: failed program was:" >&5 | |
11560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11561 | ||
11562 | ac_cv_lib_m_fabsf=no | |
11563 | fi | |
11564 | rm -f conftest.err conftest.$ac_objext \ | |
11565 | conftest$ac_exeext conftest.$ac_ext | |
11566 | LIBS=$ac_check_lib_save_LIBS | |
11567 | fi | |
11568 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5 | |
11569 | echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6 | |
11570 | if test $ac_cv_lib_m_fabsf = yes; then | |
11571 | ||
11572 | cat >>confdefs.h <<\_ACEOF | |
11573 | #define HAVE_FABSF 1 | |
11574 | _ACEOF | |
11575 | ||
11576 | fi | |
11577 | ||
11578 | echo "$as_me:$LINENO: checking for fabs in -lm" >&5 | |
11579 | echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6 | |
11580 | if test "${ac_cv_lib_m_fabs+set}" = set; then | |
11581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11582 | else | |
11583 | ac_check_lib_save_LIBS=$LIBS | |
11584 | LIBS="-lm $LIBS" | |
11585 | if test x$gcc_no_link = xyes; then | |
11586 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11587 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11588 | { (exit 1); exit 1; }; } | |
11589 | fi | |
11590 | cat >conftest.$ac_ext <<_ACEOF | |
11591 | /* confdefs.h. */ | |
11592 | _ACEOF | |
11593 | cat confdefs.h >>conftest.$ac_ext | |
11594 | cat >>conftest.$ac_ext <<_ACEOF | |
11595 | /* end confdefs.h. */ | |
11596 | ||
11597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11598 | #ifdef __cplusplus | |
11599 | extern "C" | |
11600 | #endif | |
11601 | /* We use char because int might match the return type of a gcc2 | |
11602 | builtin and then its argument prototype would still apply. */ | |
11603 | char fabs (); | |
11604 | int | |
11605 | main () | |
11606 | { | |
11607 | fabs (); | |
11608 | ; | |
11609 | return 0; | |
11610 | } | |
11611 | _ACEOF | |
11612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11614 | (eval $ac_link) 2>conftest.er1 | |
11615 | ac_status=$? | |
11616 | grep -v '^ *+' conftest.er1 >conftest.err | |
11617 | rm -f conftest.er1 | |
11618 | cat conftest.err >&5 | |
11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11620 | (exit $ac_status); } && | |
b56cb1ff | 11621 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11623 | (eval $ac_try) 2>&5 | |
11624 | ac_status=$? | |
11625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11626 | (exit $ac_status); }; } && | |
11627 | { ac_try='test -s conftest$ac_exeext' | |
11628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11629 | (eval $ac_try) 2>&5 | |
11630 | ac_status=$? | |
11631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11632 | (exit $ac_status); }; }; then | |
11633 | ac_cv_lib_m_fabs=yes | |
11634 | else | |
11635 | echo "$as_me: failed program was:" >&5 | |
11636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11637 | ||
11638 | ac_cv_lib_m_fabs=no | |
11639 | fi | |
11640 | rm -f conftest.err conftest.$ac_objext \ | |
11641 | conftest$ac_exeext conftest.$ac_ext | |
11642 | LIBS=$ac_check_lib_save_LIBS | |
11643 | fi | |
11644 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5 | |
11645 | echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6 | |
11646 | if test $ac_cv_lib_m_fabs = yes; then | |
11647 | ||
11648 | cat >>confdefs.h <<\_ACEOF | |
11649 | #define HAVE_FABS 1 | |
11650 | _ACEOF | |
11651 | ||
11652 | fi | |
11653 | ||
11654 | echo "$as_me:$LINENO: checking for fabsl in -lm" >&5 | |
11655 | echo $ECHO_N "checking for fabsl in -lm... $ECHO_C" >&6 | |
11656 | if test "${ac_cv_lib_m_fabsl+set}" = set; then | |
11657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11658 | else | |
11659 | ac_check_lib_save_LIBS=$LIBS | |
11660 | LIBS="-lm $LIBS" | |
11661 | if test x$gcc_no_link = xyes; then | |
11662 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11663 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11664 | { (exit 1); exit 1; }; } | |
11665 | fi | |
11666 | cat >conftest.$ac_ext <<_ACEOF | |
11667 | /* confdefs.h. */ | |
11668 | _ACEOF | |
11669 | cat confdefs.h >>conftest.$ac_ext | |
11670 | cat >>conftest.$ac_ext <<_ACEOF | |
11671 | /* end confdefs.h. */ | |
11672 | ||
11673 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11674 | #ifdef __cplusplus | |
11675 | extern "C" | |
11676 | #endif | |
11677 | /* We use char because int might match the return type of a gcc2 | |
11678 | builtin and then its argument prototype would still apply. */ | |
11679 | char fabsl (); | |
11680 | int | |
11681 | main () | |
11682 | { | |
11683 | fabsl (); | |
11684 | ; | |
11685 | return 0; | |
11686 | } | |
11687 | _ACEOF | |
11688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11690 | (eval $ac_link) 2>conftest.er1 | |
11691 | ac_status=$? | |
11692 | grep -v '^ *+' conftest.er1 >conftest.err | |
11693 | rm -f conftest.er1 | |
11694 | cat conftest.err >&5 | |
11695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11696 | (exit $ac_status); } && | |
b56cb1ff | 11697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11699 | (eval $ac_try) 2>&5 | |
11700 | ac_status=$? | |
11701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11702 | (exit $ac_status); }; } && | |
11703 | { ac_try='test -s conftest$ac_exeext' | |
11704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11705 | (eval $ac_try) 2>&5 | |
11706 | ac_status=$? | |
11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11708 | (exit $ac_status); }; }; then | |
11709 | ac_cv_lib_m_fabsl=yes | |
11710 | else | |
11711 | echo "$as_me: failed program was:" >&5 | |
11712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11713 | ||
11714 | ac_cv_lib_m_fabsl=no | |
11715 | fi | |
11716 | rm -f conftest.err conftest.$ac_objext \ | |
11717 | conftest$ac_exeext conftest.$ac_ext | |
11718 | LIBS=$ac_check_lib_save_LIBS | |
11719 | fi | |
11720 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsl" >&5 | |
11721 | echo "${ECHO_T}$ac_cv_lib_m_fabsl" >&6 | |
11722 | if test $ac_cv_lib_m_fabsl = yes; then | |
11723 | ||
11724 | cat >>confdefs.h <<\_ACEOF | |
11725 | #define HAVE_FABSL 1 | |
11726 | _ACEOF | |
11727 | ||
11728 | fi | |
11729 | ||
11730 | echo "$as_me:$LINENO: checking for cabsf in -lm" >&5 | |
11731 | echo $ECHO_N "checking for cabsf in -lm... $ECHO_C" >&6 | |
11732 | if test "${ac_cv_lib_m_cabsf+set}" = set; then | |
11733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11734 | else | |
11735 | ac_check_lib_save_LIBS=$LIBS | |
11736 | LIBS="-lm $LIBS" | |
11737 | if test x$gcc_no_link = xyes; then | |
11738 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11739 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11740 | { (exit 1); exit 1; }; } | |
11741 | fi | |
11742 | cat >conftest.$ac_ext <<_ACEOF | |
11743 | /* confdefs.h. */ | |
11744 | _ACEOF | |
11745 | cat confdefs.h >>conftest.$ac_ext | |
11746 | cat >>conftest.$ac_ext <<_ACEOF | |
11747 | /* end confdefs.h. */ | |
11748 | ||
11749 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11750 | #ifdef __cplusplus | |
11751 | extern "C" | |
11752 | #endif | |
11753 | /* We use char because int might match the return type of a gcc2 | |
11754 | builtin and then its argument prototype would still apply. */ | |
11755 | char cabsf (); | |
11756 | int | |
11757 | main () | |
11758 | { | |
11759 | cabsf (); | |
11760 | ; | |
11761 | return 0; | |
11762 | } | |
11763 | _ACEOF | |
11764 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11766 | (eval $ac_link) 2>conftest.er1 | |
11767 | ac_status=$? | |
11768 | grep -v '^ *+' conftest.er1 >conftest.err | |
11769 | rm -f conftest.er1 | |
11770 | cat conftest.err >&5 | |
11771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11772 | (exit $ac_status); } && | |
b56cb1ff | 11773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11775 | (eval $ac_try) 2>&5 | |
11776 | ac_status=$? | |
11777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11778 | (exit $ac_status); }; } && | |
11779 | { ac_try='test -s conftest$ac_exeext' | |
11780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11781 | (eval $ac_try) 2>&5 | |
11782 | ac_status=$? | |
11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11784 | (exit $ac_status); }; }; then | |
11785 | ac_cv_lib_m_cabsf=yes | |
11786 | else | |
11787 | echo "$as_me: failed program was:" >&5 | |
11788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11789 | ||
11790 | ac_cv_lib_m_cabsf=no | |
11791 | fi | |
11792 | rm -f conftest.err conftest.$ac_objext \ | |
11793 | conftest$ac_exeext conftest.$ac_ext | |
11794 | LIBS=$ac_check_lib_save_LIBS | |
11795 | fi | |
11796 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsf" >&5 | |
11797 | echo "${ECHO_T}$ac_cv_lib_m_cabsf" >&6 | |
11798 | if test $ac_cv_lib_m_cabsf = yes; then | |
11799 | ||
11800 | cat >>confdefs.h <<\_ACEOF | |
11801 | #define HAVE_CABSF 1 | |
11802 | _ACEOF | |
11803 | ||
11804 | fi | |
11805 | ||
11806 | echo "$as_me:$LINENO: checking for cabs in -lm" >&5 | |
11807 | echo $ECHO_N "checking for cabs in -lm... $ECHO_C" >&6 | |
11808 | if test "${ac_cv_lib_m_cabs+set}" = set; then | |
11809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11810 | else | |
11811 | ac_check_lib_save_LIBS=$LIBS | |
11812 | LIBS="-lm $LIBS" | |
11813 | if test x$gcc_no_link = xyes; then | |
11814 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11815 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11816 | { (exit 1); exit 1; }; } | |
11817 | fi | |
11818 | cat >conftest.$ac_ext <<_ACEOF | |
11819 | /* confdefs.h. */ | |
11820 | _ACEOF | |
11821 | cat confdefs.h >>conftest.$ac_ext | |
11822 | cat >>conftest.$ac_ext <<_ACEOF | |
11823 | /* end confdefs.h. */ | |
11824 | ||
11825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11826 | #ifdef __cplusplus | |
11827 | extern "C" | |
11828 | #endif | |
11829 | /* We use char because int might match the return type of a gcc2 | |
11830 | builtin and then its argument prototype would still apply. */ | |
11831 | char cabs (); | |
11832 | int | |
11833 | main () | |
11834 | { | |
11835 | cabs (); | |
11836 | ; | |
11837 | return 0; | |
11838 | } | |
11839 | _ACEOF | |
11840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11842 | (eval $ac_link) 2>conftest.er1 | |
11843 | ac_status=$? | |
11844 | grep -v '^ *+' conftest.er1 >conftest.err | |
11845 | rm -f conftest.er1 | |
11846 | cat conftest.err >&5 | |
11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11848 | (exit $ac_status); } && | |
b56cb1ff | 11849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11851 | (eval $ac_try) 2>&5 | |
11852 | ac_status=$? | |
11853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11854 | (exit $ac_status); }; } && | |
11855 | { ac_try='test -s conftest$ac_exeext' | |
11856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11857 | (eval $ac_try) 2>&5 | |
11858 | ac_status=$? | |
11859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11860 | (exit $ac_status); }; }; then | |
11861 | ac_cv_lib_m_cabs=yes | |
11862 | else | |
11863 | echo "$as_me: failed program was:" >&5 | |
11864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11865 | ||
11866 | ac_cv_lib_m_cabs=no | |
11867 | fi | |
11868 | rm -f conftest.err conftest.$ac_objext \ | |
11869 | conftest$ac_exeext conftest.$ac_ext | |
11870 | LIBS=$ac_check_lib_save_LIBS | |
11871 | fi | |
11872 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabs" >&5 | |
11873 | echo "${ECHO_T}$ac_cv_lib_m_cabs" >&6 | |
11874 | if test $ac_cv_lib_m_cabs = yes; then | |
11875 | ||
11876 | cat >>confdefs.h <<\_ACEOF | |
11877 | #define HAVE_CABS 1 | |
11878 | _ACEOF | |
11879 | ||
11880 | fi | |
11881 | ||
11882 | echo "$as_me:$LINENO: checking for cabsl in -lm" >&5 | |
11883 | echo $ECHO_N "checking for cabsl in -lm... $ECHO_C" >&6 | |
11884 | if test "${ac_cv_lib_m_cabsl+set}" = set; then | |
11885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11886 | else | |
11887 | ac_check_lib_save_LIBS=$LIBS | |
11888 | LIBS="-lm $LIBS" | |
11889 | if test x$gcc_no_link = xyes; then | |
11890 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11891 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11892 | { (exit 1); exit 1; }; } | |
11893 | fi | |
11894 | cat >conftest.$ac_ext <<_ACEOF | |
11895 | /* confdefs.h. */ | |
11896 | _ACEOF | |
11897 | cat confdefs.h >>conftest.$ac_ext | |
11898 | cat >>conftest.$ac_ext <<_ACEOF | |
11899 | /* end confdefs.h. */ | |
11900 | ||
11901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11902 | #ifdef __cplusplus | |
11903 | extern "C" | |
11904 | #endif | |
11905 | /* We use char because int might match the return type of a gcc2 | |
11906 | builtin and then its argument prototype would still apply. */ | |
11907 | char cabsl (); | |
11908 | int | |
11909 | main () | |
11910 | { | |
11911 | cabsl (); | |
11912 | ; | |
11913 | return 0; | |
11914 | } | |
11915 | _ACEOF | |
11916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11918 | (eval $ac_link) 2>conftest.er1 | |
11919 | ac_status=$? | |
11920 | grep -v '^ *+' conftest.er1 >conftest.err | |
11921 | rm -f conftest.er1 | |
11922 | cat conftest.err >&5 | |
11923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11924 | (exit $ac_status); } && | |
b56cb1ff | 11925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 11926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11927 | (eval $ac_try) 2>&5 | |
11928 | ac_status=$? | |
11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11930 | (exit $ac_status); }; } && | |
11931 | { ac_try='test -s conftest$ac_exeext' | |
11932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11933 | (eval $ac_try) 2>&5 | |
11934 | ac_status=$? | |
11935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11936 | (exit $ac_status); }; }; then | |
11937 | ac_cv_lib_m_cabsl=yes | |
11938 | else | |
11939 | echo "$as_me: failed program was:" >&5 | |
11940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11941 | ||
11942 | ac_cv_lib_m_cabsl=no | |
11943 | fi | |
11944 | rm -f conftest.err conftest.$ac_objext \ | |
11945 | conftest$ac_exeext conftest.$ac_ext | |
11946 | LIBS=$ac_check_lib_save_LIBS | |
11947 | fi | |
11948 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsl" >&5 | |
11949 | echo "${ECHO_T}$ac_cv_lib_m_cabsl" >&6 | |
11950 | if test $ac_cv_lib_m_cabsl = yes; then | |
11951 | ||
11952 | cat >>confdefs.h <<\_ACEOF | |
11953 | #define HAVE_CABSL 1 | |
11954 | _ACEOF | |
11955 | ||
11956 | fi | |
11957 | ||
11958 | echo "$as_me:$LINENO: checking for floorf in -lm" >&5 | |
11959 | echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6 | |
11960 | if test "${ac_cv_lib_m_floorf+set}" = set; then | |
11961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11962 | else | |
11963 | ac_check_lib_save_LIBS=$LIBS | |
11964 | LIBS="-lm $LIBS" | |
11965 | if test x$gcc_no_link = xyes; then | |
11966 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11967 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11968 | { (exit 1); exit 1; }; } | |
11969 | fi | |
11970 | cat >conftest.$ac_ext <<_ACEOF | |
11971 | /* confdefs.h. */ | |
11972 | _ACEOF | |
11973 | cat confdefs.h >>conftest.$ac_ext | |
11974 | cat >>conftest.$ac_ext <<_ACEOF | |
11975 | /* end confdefs.h. */ | |
11976 | ||
11977 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11978 | #ifdef __cplusplus | |
11979 | extern "C" | |
11980 | #endif | |
11981 | /* We use char because int might match the return type of a gcc2 | |
11982 | builtin and then its argument prototype would still apply. */ | |
11983 | char floorf (); | |
11984 | int | |
11985 | main () | |
11986 | { | |
11987 | floorf (); | |
11988 | ; | |
11989 | return 0; | |
11990 | } | |
11991 | _ACEOF | |
11992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11994 | (eval $ac_link) 2>conftest.er1 | |
11995 | ac_status=$? | |
11996 | grep -v '^ *+' conftest.er1 >conftest.err | |
11997 | rm -f conftest.er1 | |
11998 | cat conftest.err >&5 | |
11999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12000 | (exit $ac_status); } && | |
b56cb1ff | 12001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12003 | (eval $ac_try) 2>&5 | |
12004 | ac_status=$? | |
12005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12006 | (exit $ac_status); }; } && | |
12007 | { ac_try='test -s conftest$ac_exeext' | |
12008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12009 | (eval $ac_try) 2>&5 | |
12010 | ac_status=$? | |
12011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12012 | (exit $ac_status); }; }; then | |
12013 | ac_cv_lib_m_floorf=yes | |
12014 | else | |
12015 | echo "$as_me: failed program was:" >&5 | |
12016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12017 | ||
12018 | ac_cv_lib_m_floorf=no | |
12019 | fi | |
12020 | rm -f conftest.err conftest.$ac_objext \ | |
12021 | conftest$ac_exeext conftest.$ac_ext | |
12022 | LIBS=$ac_check_lib_save_LIBS | |
12023 | fi | |
12024 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5 | |
12025 | echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6 | |
12026 | if test $ac_cv_lib_m_floorf = yes; then | |
12027 | ||
12028 | cat >>confdefs.h <<\_ACEOF | |
12029 | #define HAVE_FLOORF 1 | |
12030 | _ACEOF | |
12031 | ||
12032 | fi | |
12033 | ||
12034 | echo "$as_me:$LINENO: checking for floor in -lm" >&5 | |
12035 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 | |
12036 | if test "${ac_cv_lib_m_floor+set}" = set; then | |
12037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12038 | else | |
12039 | ac_check_lib_save_LIBS=$LIBS | |
12040 | LIBS="-lm $LIBS" | |
12041 | if test x$gcc_no_link = xyes; then | |
12042 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12043 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12044 | { (exit 1); exit 1; }; } | |
12045 | fi | |
12046 | cat >conftest.$ac_ext <<_ACEOF | |
12047 | /* confdefs.h. */ | |
12048 | _ACEOF | |
12049 | cat confdefs.h >>conftest.$ac_ext | |
12050 | cat >>conftest.$ac_ext <<_ACEOF | |
12051 | /* end confdefs.h. */ | |
12052 | ||
12053 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12054 | #ifdef __cplusplus | |
12055 | extern "C" | |
12056 | #endif | |
12057 | /* We use char because int might match the return type of a gcc2 | |
12058 | builtin and then its argument prototype would still apply. */ | |
12059 | char floor (); | |
12060 | int | |
12061 | main () | |
12062 | { | |
12063 | floor (); | |
12064 | ; | |
12065 | return 0; | |
12066 | } | |
12067 | _ACEOF | |
12068 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12070 | (eval $ac_link) 2>conftest.er1 | |
12071 | ac_status=$? | |
12072 | grep -v '^ *+' conftest.er1 >conftest.err | |
12073 | rm -f conftest.er1 | |
12074 | cat conftest.err >&5 | |
12075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12076 | (exit $ac_status); } && | |
b56cb1ff | 12077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12079 | (eval $ac_try) 2>&5 | |
12080 | ac_status=$? | |
12081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12082 | (exit $ac_status); }; } && | |
12083 | { ac_try='test -s conftest$ac_exeext' | |
12084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12085 | (eval $ac_try) 2>&5 | |
12086 | ac_status=$? | |
12087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12088 | (exit $ac_status); }; }; then | |
12089 | ac_cv_lib_m_floor=yes | |
12090 | else | |
12091 | echo "$as_me: failed program was:" >&5 | |
12092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12093 | ||
12094 | ac_cv_lib_m_floor=no | |
12095 | fi | |
12096 | rm -f conftest.err conftest.$ac_objext \ | |
12097 | conftest$ac_exeext conftest.$ac_ext | |
12098 | LIBS=$ac_check_lib_save_LIBS | |
12099 | fi | |
12100 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 | |
12101 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 | |
12102 | if test $ac_cv_lib_m_floor = yes; then | |
12103 | ||
12104 | cat >>confdefs.h <<\_ACEOF | |
12105 | #define HAVE_FLOOR 1 | |
12106 | _ACEOF | |
12107 | ||
12108 | fi | |
12109 | ||
12110 | echo "$as_me:$LINENO: checking for floorl in -lm" >&5 | |
12111 | echo $ECHO_N "checking for floorl in -lm... $ECHO_C" >&6 | |
12112 | if test "${ac_cv_lib_m_floorl+set}" = set; then | |
12113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12114 | else | |
12115 | ac_check_lib_save_LIBS=$LIBS | |
12116 | LIBS="-lm $LIBS" | |
12117 | if test x$gcc_no_link = xyes; then | |
12118 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12119 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12120 | { (exit 1); exit 1; }; } | |
12121 | fi | |
12122 | cat >conftest.$ac_ext <<_ACEOF | |
12123 | /* confdefs.h. */ | |
12124 | _ACEOF | |
12125 | cat confdefs.h >>conftest.$ac_ext | |
12126 | cat >>conftest.$ac_ext <<_ACEOF | |
12127 | /* end confdefs.h. */ | |
12128 | ||
12129 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12130 | #ifdef __cplusplus | |
12131 | extern "C" | |
12132 | #endif | |
12133 | /* We use char because int might match the return type of a gcc2 | |
12134 | builtin and then its argument prototype would still apply. */ | |
12135 | char floorl (); | |
12136 | int | |
12137 | main () | |
12138 | { | |
12139 | floorl (); | |
12140 | ; | |
12141 | return 0; | |
12142 | } | |
12143 | _ACEOF | |
12144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12146 | (eval $ac_link) 2>conftest.er1 | |
12147 | ac_status=$? | |
12148 | grep -v '^ *+' conftest.er1 >conftest.err | |
12149 | rm -f conftest.er1 | |
12150 | cat conftest.err >&5 | |
12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12152 | (exit $ac_status); } && | |
b56cb1ff | 12153 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12155 | (eval $ac_try) 2>&5 | |
12156 | ac_status=$? | |
12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12158 | (exit $ac_status); }; } && | |
12159 | { ac_try='test -s conftest$ac_exeext' | |
12160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12161 | (eval $ac_try) 2>&5 | |
12162 | ac_status=$? | |
12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12164 | (exit $ac_status); }; }; then | |
12165 | ac_cv_lib_m_floorl=yes | |
12166 | else | |
12167 | echo "$as_me: failed program was:" >&5 | |
12168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12169 | ||
12170 | ac_cv_lib_m_floorl=no | |
12171 | fi | |
12172 | rm -f conftest.err conftest.$ac_objext \ | |
12173 | conftest$ac_exeext conftest.$ac_ext | |
12174 | LIBS=$ac_check_lib_save_LIBS | |
12175 | fi | |
12176 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorl" >&5 | |
12177 | echo "${ECHO_T}$ac_cv_lib_m_floorl" >&6 | |
12178 | if test $ac_cv_lib_m_floorl = yes; then | |
12179 | ||
12180 | cat >>confdefs.h <<\_ACEOF | |
12181 | #define HAVE_FLOORL 1 | |
12182 | _ACEOF | |
12183 | ||
12184 | fi | |
12185 | ||
12186 | echo "$as_me:$LINENO: checking for frexpf in -lm" >&5 | |
12187 | echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6 | |
12188 | if test "${ac_cv_lib_m_frexpf+set}" = set; then | |
12189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12190 | else | |
12191 | ac_check_lib_save_LIBS=$LIBS | |
12192 | LIBS="-lm $LIBS" | |
12193 | if test x$gcc_no_link = xyes; then | |
12194 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12195 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12196 | { (exit 1); exit 1; }; } | |
12197 | fi | |
12198 | cat >conftest.$ac_ext <<_ACEOF | |
12199 | /* confdefs.h. */ | |
12200 | _ACEOF | |
12201 | cat confdefs.h >>conftest.$ac_ext | |
12202 | cat >>conftest.$ac_ext <<_ACEOF | |
12203 | /* end confdefs.h. */ | |
12204 | ||
12205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12206 | #ifdef __cplusplus | |
12207 | extern "C" | |
12208 | #endif | |
12209 | /* We use char because int might match the return type of a gcc2 | |
12210 | builtin and then its argument prototype would still apply. */ | |
12211 | char frexpf (); | |
12212 | int | |
12213 | main () | |
12214 | { | |
12215 | frexpf (); | |
12216 | ; | |
12217 | return 0; | |
12218 | } | |
12219 | _ACEOF | |
12220 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12222 | (eval $ac_link) 2>conftest.er1 | |
12223 | ac_status=$? | |
12224 | grep -v '^ *+' conftest.er1 >conftest.err | |
12225 | rm -f conftest.er1 | |
12226 | cat conftest.err >&5 | |
12227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12228 | (exit $ac_status); } && | |
b56cb1ff | 12229 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12231 | (eval $ac_try) 2>&5 | |
12232 | ac_status=$? | |
12233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12234 | (exit $ac_status); }; } && | |
12235 | { ac_try='test -s conftest$ac_exeext' | |
12236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12237 | (eval $ac_try) 2>&5 | |
12238 | ac_status=$? | |
12239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12240 | (exit $ac_status); }; }; then | |
12241 | ac_cv_lib_m_frexpf=yes | |
12242 | else | |
12243 | echo "$as_me: failed program was:" >&5 | |
12244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12245 | ||
12246 | ac_cv_lib_m_frexpf=no | |
12247 | fi | |
12248 | rm -f conftest.err conftest.$ac_objext \ | |
12249 | conftest$ac_exeext conftest.$ac_ext | |
12250 | LIBS=$ac_check_lib_save_LIBS | |
12251 | fi | |
12252 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5 | |
12253 | echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6 | |
12254 | if test $ac_cv_lib_m_frexpf = yes; then | |
12255 | ||
12256 | cat >>confdefs.h <<\_ACEOF | |
12257 | #define HAVE_FREXPF 1 | |
12258 | _ACEOF | |
12259 | ||
12260 | fi | |
12261 | ||
12262 | echo "$as_me:$LINENO: checking for frexp in -lm" >&5 | |
12263 | echo $ECHO_N "checking for frexp in -lm... $ECHO_C" >&6 | |
12264 | if test "${ac_cv_lib_m_frexp+set}" = set; then | |
12265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12266 | else | |
12267 | ac_check_lib_save_LIBS=$LIBS | |
12268 | LIBS="-lm $LIBS" | |
12269 | if test x$gcc_no_link = xyes; then | |
12270 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12271 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12272 | { (exit 1); exit 1; }; } | |
12273 | fi | |
12274 | cat >conftest.$ac_ext <<_ACEOF | |
12275 | /* confdefs.h. */ | |
12276 | _ACEOF | |
12277 | cat confdefs.h >>conftest.$ac_ext | |
12278 | cat >>conftest.$ac_ext <<_ACEOF | |
12279 | /* end confdefs.h. */ | |
12280 | ||
12281 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12282 | #ifdef __cplusplus | |
12283 | extern "C" | |
12284 | #endif | |
12285 | /* We use char because int might match the return type of a gcc2 | |
12286 | builtin and then its argument prototype would still apply. */ | |
12287 | char frexp (); | |
12288 | int | |
12289 | main () | |
12290 | { | |
12291 | frexp (); | |
12292 | ; | |
12293 | return 0; | |
12294 | } | |
12295 | _ACEOF | |
12296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12298 | (eval $ac_link) 2>conftest.er1 | |
12299 | ac_status=$? | |
12300 | grep -v '^ *+' conftest.er1 >conftest.err | |
12301 | rm -f conftest.er1 | |
12302 | cat conftest.err >&5 | |
12303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12304 | (exit $ac_status); } && | |
b56cb1ff | 12305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12307 | (eval $ac_try) 2>&5 | |
12308 | ac_status=$? | |
12309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12310 | (exit $ac_status); }; } && | |
12311 | { ac_try='test -s conftest$ac_exeext' | |
12312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12313 | (eval $ac_try) 2>&5 | |
12314 | ac_status=$? | |
12315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12316 | (exit $ac_status); }; }; then | |
12317 | ac_cv_lib_m_frexp=yes | |
12318 | else | |
12319 | echo "$as_me: failed program was:" >&5 | |
12320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12321 | ||
12322 | ac_cv_lib_m_frexp=no | |
12323 | fi | |
12324 | rm -f conftest.err conftest.$ac_objext \ | |
12325 | conftest$ac_exeext conftest.$ac_ext | |
12326 | LIBS=$ac_check_lib_save_LIBS | |
12327 | fi | |
12328 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexp" >&5 | |
12329 | echo "${ECHO_T}$ac_cv_lib_m_frexp" >&6 | |
12330 | if test $ac_cv_lib_m_frexp = yes; then | |
12331 | ||
12332 | cat >>confdefs.h <<\_ACEOF | |
12333 | #define HAVE_FREXP 1 | |
12334 | _ACEOF | |
12335 | ||
12336 | fi | |
12337 | ||
12338 | echo "$as_me:$LINENO: checking for frexpl in -lm" >&5 | |
12339 | echo $ECHO_N "checking for frexpl in -lm... $ECHO_C" >&6 | |
12340 | if test "${ac_cv_lib_m_frexpl+set}" = set; then | |
12341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12342 | else | |
12343 | ac_check_lib_save_LIBS=$LIBS | |
12344 | LIBS="-lm $LIBS" | |
12345 | if test x$gcc_no_link = xyes; then | |
12346 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12347 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12348 | { (exit 1); exit 1; }; } | |
12349 | fi | |
12350 | cat >conftest.$ac_ext <<_ACEOF | |
12351 | /* confdefs.h. */ | |
12352 | _ACEOF | |
12353 | cat confdefs.h >>conftest.$ac_ext | |
12354 | cat >>conftest.$ac_ext <<_ACEOF | |
12355 | /* end confdefs.h. */ | |
12356 | ||
12357 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12358 | #ifdef __cplusplus | |
12359 | extern "C" | |
12360 | #endif | |
12361 | /* We use char because int might match the return type of a gcc2 | |
12362 | builtin and then its argument prototype would still apply. */ | |
12363 | char frexpl (); | |
12364 | int | |
12365 | main () | |
12366 | { | |
12367 | frexpl (); | |
12368 | ; | |
12369 | return 0; | |
12370 | } | |
12371 | _ACEOF | |
12372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12374 | (eval $ac_link) 2>conftest.er1 | |
12375 | ac_status=$? | |
12376 | grep -v '^ *+' conftest.er1 >conftest.err | |
12377 | rm -f conftest.er1 | |
12378 | cat conftest.err >&5 | |
12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12380 | (exit $ac_status); } && | |
b56cb1ff | 12381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12383 | (eval $ac_try) 2>&5 | |
12384 | ac_status=$? | |
12385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12386 | (exit $ac_status); }; } && | |
12387 | { ac_try='test -s conftest$ac_exeext' | |
12388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12389 | (eval $ac_try) 2>&5 | |
12390 | ac_status=$? | |
12391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12392 | (exit $ac_status); }; }; then | |
12393 | ac_cv_lib_m_frexpl=yes | |
12394 | else | |
12395 | echo "$as_me: failed program was:" >&5 | |
12396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12397 | ||
12398 | ac_cv_lib_m_frexpl=no | |
12399 | fi | |
12400 | rm -f conftest.err conftest.$ac_objext \ | |
12401 | conftest$ac_exeext conftest.$ac_ext | |
12402 | LIBS=$ac_check_lib_save_LIBS | |
12403 | fi | |
12404 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpl" >&5 | |
12405 | echo "${ECHO_T}$ac_cv_lib_m_frexpl" >&6 | |
12406 | if test $ac_cv_lib_m_frexpl = yes; then | |
12407 | ||
12408 | cat >>confdefs.h <<\_ACEOF | |
12409 | #define HAVE_FREXPL 1 | |
12410 | _ACEOF | |
12411 | ||
12412 | fi | |
12413 | ||
12414 | echo "$as_me:$LINENO: checking for hypotf in -lm" >&5 | |
12415 | echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6 | |
12416 | if test "${ac_cv_lib_m_hypotf+set}" = set; then | |
12417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12418 | else | |
12419 | ac_check_lib_save_LIBS=$LIBS | |
12420 | LIBS="-lm $LIBS" | |
12421 | if test x$gcc_no_link = xyes; then | |
12422 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12423 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12424 | { (exit 1); exit 1; }; } | |
12425 | fi | |
12426 | cat >conftest.$ac_ext <<_ACEOF | |
12427 | /* confdefs.h. */ | |
12428 | _ACEOF | |
12429 | cat confdefs.h >>conftest.$ac_ext | |
12430 | cat >>conftest.$ac_ext <<_ACEOF | |
12431 | /* end confdefs.h. */ | |
12432 | ||
12433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12434 | #ifdef __cplusplus | |
12435 | extern "C" | |
12436 | #endif | |
12437 | /* We use char because int might match the return type of a gcc2 | |
12438 | builtin and then its argument prototype would still apply. */ | |
12439 | char hypotf (); | |
12440 | int | |
12441 | main () | |
12442 | { | |
12443 | hypotf (); | |
12444 | ; | |
12445 | return 0; | |
12446 | } | |
12447 | _ACEOF | |
12448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12450 | (eval $ac_link) 2>conftest.er1 | |
12451 | ac_status=$? | |
12452 | grep -v '^ *+' conftest.er1 >conftest.err | |
12453 | rm -f conftest.er1 | |
12454 | cat conftest.err >&5 | |
12455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12456 | (exit $ac_status); } && | |
b56cb1ff | 12457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12459 | (eval $ac_try) 2>&5 | |
12460 | ac_status=$? | |
12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12462 | (exit $ac_status); }; } && | |
12463 | { ac_try='test -s conftest$ac_exeext' | |
12464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12465 | (eval $ac_try) 2>&5 | |
12466 | ac_status=$? | |
12467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12468 | (exit $ac_status); }; }; then | |
12469 | ac_cv_lib_m_hypotf=yes | |
12470 | else | |
12471 | echo "$as_me: failed program was:" >&5 | |
12472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12473 | ||
12474 | ac_cv_lib_m_hypotf=no | |
12475 | fi | |
12476 | rm -f conftest.err conftest.$ac_objext \ | |
12477 | conftest$ac_exeext conftest.$ac_ext | |
12478 | LIBS=$ac_check_lib_save_LIBS | |
12479 | fi | |
12480 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5 | |
12481 | echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6 | |
12482 | if test $ac_cv_lib_m_hypotf = yes; then | |
12483 | ||
12484 | cat >>confdefs.h <<\_ACEOF | |
12485 | #define HAVE_HYPOTF 1 | |
12486 | _ACEOF | |
12487 | ||
12488 | fi | |
12489 | ||
12490 | echo "$as_me:$LINENO: checking for hypot in -lm" >&5 | |
12491 | echo $ECHO_N "checking for hypot in -lm... $ECHO_C" >&6 | |
12492 | if test "${ac_cv_lib_m_hypot+set}" = set; then | |
12493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12494 | else | |
12495 | ac_check_lib_save_LIBS=$LIBS | |
12496 | LIBS="-lm $LIBS" | |
12497 | if test x$gcc_no_link = xyes; then | |
12498 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12499 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12500 | { (exit 1); exit 1; }; } | |
12501 | fi | |
12502 | cat >conftest.$ac_ext <<_ACEOF | |
12503 | /* confdefs.h. */ | |
12504 | _ACEOF | |
12505 | cat confdefs.h >>conftest.$ac_ext | |
12506 | cat >>conftest.$ac_ext <<_ACEOF | |
12507 | /* end confdefs.h. */ | |
12508 | ||
12509 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12510 | #ifdef __cplusplus | |
12511 | extern "C" | |
12512 | #endif | |
12513 | /* We use char because int might match the return type of a gcc2 | |
12514 | builtin and then its argument prototype would still apply. */ | |
12515 | char hypot (); | |
12516 | int | |
12517 | main () | |
12518 | { | |
12519 | hypot (); | |
12520 | ; | |
12521 | return 0; | |
12522 | } | |
12523 | _ACEOF | |
12524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12526 | (eval $ac_link) 2>conftest.er1 | |
12527 | ac_status=$? | |
12528 | grep -v '^ *+' conftest.er1 >conftest.err | |
12529 | rm -f conftest.er1 | |
12530 | cat conftest.err >&5 | |
12531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12532 | (exit $ac_status); } && | |
b56cb1ff | 12533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12535 | (eval $ac_try) 2>&5 | |
12536 | ac_status=$? | |
12537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12538 | (exit $ac_status); }; } && | |
12539 | { ac_try='test -s conftest$ac_exeext' | |
12540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12541 | (eval $ac_try) 2>&5 | |
12542 | ac_status=$? | |
12543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12544 | (exit $ac_status); }; }; then | |
12545 | ac_cv_lib_m_hypot=yes | |
12546 | else | |
12547 | echo "$as_me: failed program was:" >&5 | |
12548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12549 | ||
12550 | ac_cv_lib_m_hypot=no | |
12551 | fi | |
12552 | rm -f conftest.err conftest.$ac_objext \ | |
12553 | conftest$ac_exeext conftest.$ac_ext | |
12554 | LIBS=$ac_check_lib_save_LIBS | |
12555 | fi | |
12556 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypot" >&5 | |
12557 | echo "${ECHO_T}$ac_cv_lib_m_hypot" >&6 | |
12558 | if test $ac_cv_lib_m_hypot = yes; then | |
12559 | ||
12560 | cat >>confdefs.h <<\_ACEOF | |
12561 | #define HAVE_HYPOT 1 | |
12562 | _ACEOF | |
12563 | ||
12564 | fi | |
12565 | ||
12566 | echo "$as_me:$LINENO: checking for hypotl in -lm" >&5 | |
12567 | echo $ECHO_N "checking for hypotl in -lm... $ECHO_C" >&6 | |
12568 | if test "${ac_cv_lib_m_hypotl+set}" = set; then | |
12569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12570 | else | |
12571 | ac_check_lib_save_LIBS=$LIBS | |
12572 | LIBS="-lm $LIBS" | |
12573 | if test x$gcc_no_link = xyes; then | |
12574 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12575 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12576 | { (exit 1); exit 1; }; } | |
12577 | fi | |
12578 | cat >conftest.$ac_ext <<_ACEOF | |
12579 | /* confdefs.h. */ | |
12580 | _ACEOF | |
12581 | cat confdefs.h >>conftest.$ac_ext | |
12582 | cat >>conftest.$ac_ext <<_ACEOF | |
12583 | /* end confdefs.h. */ | |
12584 | ||
12585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12586 | #ifdef __cplusplus | |
12587 | extern "C" | |
12588 | #endif | |
12589 | /* We use char because int might match the return type of a gcc2 | |
12590 | builtin and then its argument prototype would still apply. */ | |
12591 | char hypotl (); | |
12592 | int | |
12593 | main () | |
12594 | { | |
12595 | hypotl (); | |
12596 | ; | |
12597 | return 0; | |
12598 | } | |
12599 | _ACEOF | |
12600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12602 | (eval $ac_link) 2>conftest.er1 | |
12603 | ac_status=$? | |
12604 | grep -v '^ *+' conftest.er1 >conftest.err | |
12605 | rm -f conftest.er1 | |
12606 | cat conftest.err >&5 | |
12607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12608 | (exit $ac_status); } && | |
b56cb1ff | 12609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12611 | (eval $ac_try) 2>&5 | |
12612 | ac_status=$? | |
12613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12614 | (exit $ac_status); }; } && | |
12615 | { ac_try='test -s conftest$ac_exeext' | |
12616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12617 | (eval $ac_try) 2>&5 | |
12618 | ac_status=$? | |
12619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12620 | (exit $ac_status); }; }; then | |
12621 | ac_cv_lib_m_hypotl=yes | |
12622 | else | |
12623 | echo "$as_me: failed program was:" >&5 | |
12624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12625 | ||
12626 | ac_cv_lib_m_hypotl=no | |
12627 | fi | |
12628 | rm -f conftest.err conftest.$ac_objext \ | |
12629 | conftest$ac_exeext conftest.$ac_ext | |
12630 | LIBS=$ac_check_lib_save_LIBS | |
12631 | fi | |
12632 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotl" >&5 | |
12633 | echo "${ECHO_T}$ac_cv_lib_m_hypotl" >&6 | |
12634 | if test $ac_cv_lib_m_hypotl = yes; then | |
12635 | ||
12636 | cat >>confdefs.h <<\_ACEOF | |
12637 | #define HAVE_HYPOTL 1 | |
12638 | _ACEOF | |
12639 | ||
12640 | fi | |
12641 | ||
12642 | echo "$as_me:$LINENO: checking for logf in -lm" >&5 | |
12643 | echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6 | |
12644 | if test "${ac_cv_lib_m_logf+set}" = set; then | |
12645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12646 | else | |
12647 | ac_check_lib_save_LIBS=$LIBS | |
12648 | LIBS="-lm $LIBS" | |
12649 | if test x$gcc_no_link = xyes; then | |
12650 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12651 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12652 | { (exit 1); exit 1; }; } | |
12653 | fi | |
12654 | cat >conftest.$ac_ext <<_ACEOF | |
12655 | /* confdefs.h. */ | |
12656 | _ACEOF | |
12657 | cat confdefs.h >>conftest.$ac_ext | |
12658 | cat >>conftest.$ac_ext <<_ACEOF | |
12659 | /* end confdefs.h. */ | |
12660 | ||
12661 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12662 | #ifdef __cplusplus | |
12663 | extern "C" | |
12664 | #endif | |
12665 | /* We use char because int might match the return type of a gcc2 | |
12666 | builtin and then its argument prototype would still apply. */ | |
12667 | char logf (); | |
12668 | int | |
12669 | main () | |
12670 | { | |
12671 | logf (); | |
12672 | ; | |
12673 | return 0; | |
12674 | } | |
12675 | _ACEOF | |
12676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12678 | (eval $ac_link) 2>conftest.er1 | |
12679 | ac_status=$? | |
12680 | grep -v '^ *+' conftest.er1 >conftest.err | |
12681 | rm -f conftest.er1 | |
12682 | cat conftest.err >&5 | |
12683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12684 | (exit $ac_status); } && | |
b56cb1ff | 12685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12687 | (eval $ac_try) 2>&5 | |
12688 | ac_status=$? | |
12689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12690 | (exit $ac_status); }; } && | |
12691 | { ac_try='test -s conftest$ac_exeext' | |
12692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12693 | (eval $ac_try) 2>&5 | |
12694 | ac_status=$? | |
12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12696 | (exit $ac_status); }; }; then | |
12697 | ac_cv_lib_m_logf=yes | |
12698 | else | |
12699 | echo "$as_me: failed program was:" >&5 | |
12700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12701 | ||
12702 | ac_cv_lib_m_logf=no | |
12703 | fi | |
12704 | rm -f conftest.err conftest.$ac_objext \ | |
12705 | conftest$ac_exeext conftest.$ac_ext | |
12706 | LIBS=$ac_check_lib_save_LIBS | |
12707 | fi | |
12708 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5 | |
12709 | echo "${ECHO_T}$ac_cv_lib_m_logf" >&6 | |
12710 | if test $ac_cv_lib_m_logf = yes; then | |
12711 | ||
12712 | cat >>confdefs.h <<\_ACEOF | |
12713 | #define HAVE_LOGF 1 | |
12714 | _ACEOF | |
12715 | ||
12716 | fi | |
12717 | ||
12718 | echo "$as_me:$LINENO: checking for log in -lm" >&5 | |
12719 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 | |
12720 | if test "${ac_cv_lib_m_log+set}" = set; then | |
12721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12722 | else | |
12723 | ac_check_lib_save_LIBS=$LIBS | |
12724 | LIBS="-lm $LIBS" | |
12725 | if test x$gcc_no_link = xyes; then | |
12726 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12727 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12728 | { (exit 1); exit 1; }; } | |
12729 | fi | |
12730 | cat >conftest.$ac_ext <<_ACEOF | |
12731 | /* confdefs.h. */ | |
12732 | _ACEOF | |
12733 | cat confdefs.h >>conftest.$ac_ext | |
12734 | cat >>conftest.$ac_ext <<_ACEOF | |
12735 | /* end confdefs.h. */ | |
12736 | ||
12737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12738 | #ifdef __cplusplus | |
12739 | extern "C" | |
12740 | #endif | |
12741 | /* We use char because int might match the return type of a gcc2 | |
12742 | builtin and then its argument prototype would still apply. */ | |
12743 | char log (); | |
12744 | int | |
12745 | main () | |
12746 | { | |
12747 | log (); | |
12748 | ; | |
12749 | return 0; | |
12750 | } | |
12751 | _ACEOF | |
12752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12754 | (eval $ac_link) 2>conftest.er1 | |
12755 | ac_status=$? | |
12756 | grep -v '^ *+' conftest.er1 >conftest.err | |
12757 | rm -f conftest.er1 | |
12758 | cat conftest.err >&5 | |
12759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12760 | (exit $ac_status); } && | |
b56cb1ff | 12761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12763 | (eval $ac_try) 2>&5 | |
12764 | ac_status=$? | |
12765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12766 | (exit $ac_status); }; } && | |
12767 | { ac_try='test -s conftest$ac_exeext' | |
12768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12769 | (eval $ac_try) 2>&5 | |
12770 | ac_status=$? | |
12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12772 | (exit $ac_status); }; }; then | |
12773 | ac_cv_lib_m_log=yes | |
12774 | else | |
12775 | echo "$as_me: failed program was:" >&5 | |
12776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12777 | ||
12778 | ac_cv_lib_m_log=no | |
12779 | fi | |
12780 | rm -f conftest.err conftest.$ac_objext \ | |
12781 | conftest$ac_exeext conftest.$ac_ext | |
12782 | LIBS=$ac_check_lib_save_LIBS | |
12783 | fi | |
12784 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 | |
12785 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6 | |
12786 | if test $ac_cv_lib_m_log = yes; then | |
12787 | ||
12788 | cat >>confdefs.h <<\_ACEOF | |
12789 | #define HAVE_LOG 1 | |
12790 | _ACEOF | |
12791 | ||
12792 | fi | |
12793 | ||
12794 | echo "$as_me:$LINENO: checking for logl in -lm" >&5 | |
12795 | echo $ECHO_N "checking for logl in -lm... $ECHO_C" >&6 | |
12796 | if test "${ac_cv_lib_m_logl+set}" = set; then | |
12797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12798 | else | |
12799 | ac_check_lib_save_LIBS=$LIBS | |
12800 | LIBS="-lm $LIBS" | |
12801 | if test x$gcc_no_link = xyes; then | |
12802 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12803 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12804 | { (exit 1); exit 1; }; } | |
12805 | fi | |
12806 | cat >conftest.$ac_ext <<_ACEOF | |
12807 | /* confdefs.h. */ | |
12808 | _ACEOF | |
12809 | cat confdefs.h >>conftest.$ac_ext | |
12810 | cat >>conftest.$ac_ext <<_ACEOF | |
12811 | /* end confdefs.h. */ | |
12812 | ||
12813 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12814 | #ifdef __cplusplus | |
12815 | extern "C" | |
12816 | #endif | |
12817 | /* We use char because int might match the return type of a gcc2 | |
12818 | builtin and then its argument prototype would still apply. */ | |
12819 | char logl (); | |
12820 | int | |
12821 | main () | |
12822 | { | |
12823 | logl (); | |
12824 | ; | |
12825 | return 0; | |
12826 | } | |
12827 | _ACEOF | |
12828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12830 | (eval $ac_link) 2>conftest.er1 | |
12831 | ac_status=$? | |
12832 | grep -v '^ *+' conftest.er1 >conftest.err | |
12833 | rm -f conftest.er1 | |
12834 | cat conftest.err >&5 | |
12835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12836 | (exit $ac_status); } && | |
b56cb1ff | 12837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12839 | (eval $ac_try) 2>&5 | |
12840 | ac_status=$? | |
12841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12842 | (exit $ac_status); }; } && | |
12843 | { ac_try='test -s conftest$ac_exeext' | |
12844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12845 | (eval $ac_try) 2>&5 | |
12846 | ac_status=$? | |
12847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12848 | (exit $ac_status); }; }; then | |
12849 | ac_cv_lib_m_logl=yes | |
12850 | else | |
12851 | echo "$as_me: failed program was:" >&5 | |
12852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12853 | ||
12854 | ac_cv_lib_m_logl=no | |
12855 | fi | |
12856 | rm -f conftest.err conftest.$ac_objext \ | |
12857 | conftest$ac_exeext conftest.$ac_ext | |
12858 | LIBS=$ac_check_lib_save_LIBS | |
12859 | fi | |
12860 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logl" >&5 | |
12861 | echo "${ECHO_T}$ac_cv_lib_m_logl" >&6 | |
12862 | if test $ac_cv_lib_m_logl = yes; then | |
12863 | ||
12864 | cat >>confdefs.h <<\_ACEOF | |
12865 | #define HAVE_LOGL 1 | |
12866 | _ACEOF | |
12867 | ||
12868 | fi | |
12869 | ||
12870 | echo "$as_me:$LINENO: checking for clogf in -lm" >&5 | |
12871 | echo $ECHO_N "checking for clogf in -lm... $ECHO_C" >&6 | |
12872 | if test "${ac_cv_lib_m_clogf+set}" = set; then | |
12873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12874 | else | |
12875 | ac_check_lib_save_LIBS=$LIBS | |
12876 | LIBS="-lm $LIBS" | |
12877 | if test x$gcc_no_link = xyes; then | |
12878 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12879 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12880 | { (exit 1); exit 1; }; } | |
12881 | fi | |
12882 | cat >conftest.$ac_ext <<_ACEOF | |
12883 | /* confdefs.h. */ | |
12884 | _ACEOF | |
12885 | cat confdefs.h >>conftest.$ac_ext | |
12886 | cat >>conftest.$ac_ext <<_ACEOF | |
12887 | /* end confdefs.h. */ | |
12888 | ||
12889 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12890 | #ifdef __cplusplus | |
12891 | extern "C" | |
12892 | #endif | |
12893 | /* We use char because int might match the return type of a gcc2 | |
12894 | builtin and then its argument prototype would still apply. */ | |
12895 | char clogf (); | |
12896 | int | |
12897 | main () | |
12898 | { | |
12899 | clogf (); | |
12900 | ; | |
12901 | return 0; | |
12902 | } | |
12903 | _ACEOF | |
12904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12906 | (eval $ac_link) 2>conftest.er1 | |
12907 | ac_status=$? | |
12908 | grep -v '^ *+' conftest.er1 >conftest.err | |
12909 | rm -f conftest.er1 | |
12910 | cat conftest.err >&5 | |
12911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12912 | (exit $ac_status); } && | |
b56cb1ff | 12913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12915 | (eval $ac_try) 2>&5 | |
12916 | ac_status=$? | |
12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12918 | (exit $ac_status); }; } && | |
12919 | { ac_try='test -s conftest$ac_exeext' | |
12920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12921 | (eval $ac_try) 2>&5 | |
12922 | ac_status=$? | |
12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12924 | (exit $ac_status); }; }; then | |
12925 | ac_cv_lib_m_clogf=yes | |
12926 | else | |
12927 | echo "$as_me: failed program was:" >&5 | |
12928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12929 | ||
12930 | ac_cv_lib_m_clogf=no | |
12931 | fi | |
12932 | rm -f conftest.err conftest.$ac_objext \ | |
12933 | conftest$ac_exeext conftest.$ac_ext | |
12934 | LIBS=$ac_check_lib_save_LIBS | |
12935 | fi | |
12936 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogf" >&5 | |
12937 | echo "${ECHO_T}$ac_cv_lib_m_clogf" >&6 | |
12938 | if test $ac_cv_lib_m_clogf = yes; then | |
12939 | ||
12940 | cat >>confdefs.h <<\_ACEOF | |
12941 | #define HAVE_CLOGF 1 | |
12942 | _ACEOF | |
12943 | ||
12944 | fi | |
12945 | ||
12946 | echo "$as_me:$LINENO: checking for clog in -lm" >&5 | |
12947 | echo $ECHO_N "checking for clog in -lm... $ECHO_C" >&6 | |
12948 | if test "${ac_cv_lib_m_clog+set}" = set; then | |
12949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12950 | else | |
12951 | ac_check_lib_save_LIBS=$LIBS | |
12952 | LIBS="-lm $LIBS" | |
12953 | if test x$gcc_no_link = xyes; then | |
12954 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12955 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12956 | { (exit 1); exit 1; }; } | |
12957 | fi | |
12958 | cat >conftest.$ac_ext <<_ACEOF | |
12959 | /* confdefs.h. */ | |
12960 | _ACEOF | |
12961 | cat confdefs.h >>conftest.$ac_ext | |
12962 | cat >>conftest.$ac_ext <<_ACEOF | |
12963 | /* end confdefs.h. */ | |
12964 | ||
12965 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12966 | #ifdef __cplusplus | |
12967 | extern "C" | |
12968 | #endif | |
12969 | /* We use char because int might match the return type of a gcc2 | |
12970 | builtin and then its argument prototype would still apply. */ | |
12971 | char clog (); | |
12972 | int | |
12973 | main () | |
12974 | { | |
12975 | clog (); | |
12976 | ; | |
12977 | return 0; | |
12978 | } | |
12979 | _ACEOF | |
12980 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12982 | (eval $ac_link) 2>conftest.er1 | |
12983 | ac_status=$? | |
12984 | grep -v '^ *+' conftest.er1 >conftest.err | |
12985 | rm -f conftest.er1 | |
12986 | cat conftest.err >&5 | |
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12988 | (exit $ac_status); } && | |
b56cb1ff | 12989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 12990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12991 | (eval $ac_try) 2>&5 | |
12992 | ac_status=$? | |
12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12994 | (exit $ac_status); }; } && | |
12995 | { ac_try='test -s conftest$ac_exeext' | |
12996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12997 | (eval $ac_try) 2>&5 | |
12998 | ac_status=$? | |
12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13000 | (exit $ac_status); }; }; then | |
13001 | ac_cv_lib_m_clog=yes | |
13002 | else | |
13003 | echo "$as_me: failed program was:" >&5 | |
13004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13005 | ||
13006 | ac_cv_lib_m_clog=no | |
13007 | fi | |
13008 | rm -f conftest.err conftest.$ac_objext \ | |
13009 | conftest$ac_exeext conftest.$ac_ext | |
13010 | LIBS=$ac_check_lib_save_LIBS | |
13011 | fi | |
13012 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog" >&5 | |
13013 | echo "${ECHO_T}$ac_cv_lib_m_clog" >&6 | |
13014 | if test $ac_cv_lib_m_clog = yes; then | |
13015 | ||
13016 | cat >>confdefs.h <<\_ACEOF | |
13017 | #define HAVE_CLOG 1 | |
13018 | _ACEOF | |
13019 | ||
13020 | fi | |
13021 | ||
13022 | echo "$as_me:$LINENO: checking for clogl in -lm" >&5 | |
13023 | echo $ECHO_N "checking for clogl in -lm... $ECHO_C" >&6 | |
13024 | if test "${ac_cv_lib_m_clogl+set}" = set; then | |
13025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13026 | else | |
13027 | ac_check_lib_save_LIBS=$LIBS | |
13028 | LIBS="-lm $LIBS" | |
13029 | if test x$gcc_no_link = xyes; then | |
13030 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13031 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13032 | { (exit 1); exit 1; }; } | |
13033 | fi | |
13034 | cat >conftest.$ac_ext <<_ACEOF | |
13035 | /* confdefs.h. */ | |
13036 | _ACEOF | |
13037 | cat confdefs.h >>conftest.$ac_ext | |
13038 | cat >>conftest.$ac_ext <<_ACEOF | |
13039 | /* end confdefs.h. */ | |
13040 | ||
13041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13042 | #ifdef __cplusplus | |
13043 | extern "C" | |
13044 | #endif | |
13045 | /* We use char because int might match the return type of a gcc2 | |
13046 | builtin and then its argument prototype would still apply. */ | |
13047 | char clogl (); | |
13048 | int | |
13049 | main () | |
13050 | { | |
13051 | clogl (); | |
13052 | ; | |
13053 | return 0; | |
13054 | } | |
13055 | _ACEOF | |
13056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13058 | (eval $ac_link) 2>conftest.er1 | |
13059 | ac_status=$? | |
13060 | grep -v '^ *+' conftest.er1 >conftest.err | |
13061 | rm -f conftest.er1 | |
13062 | cat conftest.err >&5 | |
13063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13064 | (exit $ac_status); } && | |
b56cb1ff | 13065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13067 | (eval $ac_try) 2>&5 | |
13068 | ac_status=$? | |
13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13070 | (exit $ac_status); }; } && | |
13071 | { ac_try='test -s conftest$ac_exeext' | |
13072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13073 | (eval $ac_try) 2>&5 | |
13074 | ac_status=$? | |
13075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13076 | (exit $ac_status); }; }; then | |
13077 | ac_cv_lib_m_clogl=yes | |
13078 | else | |
13079 | echo "$as_me: failed program was:" >&5 | |
13080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13081 | ||
13082 | ac_cv_lib_m_clogl=no | |
13083 | fi | |
13084 | rm -f conftest.err conftest.$ac_objext \ | |
13085 | conftest$ac_exeext conftest.$ac_ext | |
13086 | LIBS=$ac_check_lib_save_LIBS | |
13087 | fi | |
13088 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogl" >&5 | |
13089 | echo "${ECHO_T}$ac_cv_lib_m_clogl" >&6 | |
13090 | if test $ac_cv_lib_m_clogl = yes; then | |
13091 | ||
13092 | cat >>confdefs.h <<\_ACEOF | |
13093 | #define HAVE_CLOGL 1 | |
13094 | _ACEOF | |
13095 | ||
13096 | fi | |
13097 | ||
13098 | echo "$as_me:$LINENO: checking for log10f in -lm" >&5 | |
13099 | echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6 | |
13100 | if test "${ac_cv_lib_m_log10f+set}" = set; then | |
13101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13102 | else | |
13103 | ac_check_lib_save_LIBS=$LIBS | |
13104 | LIBS="-lm $LIBS" | |
13105 | if test x$gcc_no_link = xyes; then | |
13106 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13107 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13108 | { (exit 1); exit 1; }; } | |
13109 | fi | |
13110 | cat >conftest.$ac_ext <<_ACEOF | |
13111 | /* confdefs.h. */ | |
13112 | _ACEOF | |
13113 | cat confdefs.h >>conftest.$ac_ext | |
13114 | cat >>conftest.$ac_ext <<_ACEOF | |
13115 | /* end confdefs.h. */ | |
13116 | ||
13117 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13118 | #ifdef __cplusplus | |
13119 | extern "C" | |
13120 | #endif | |
13121 | /* We use char because int might match the return type of a gcc2 | |
13122 | builtin and then its argument prototype would still apply. */ | |
13123 | char log10f (); | |
13124 | int | |
13125 | main () | |
13126 | { | |
13127 | log10f (); | |
13128 | ; | |
13129 | return 0; | |
13130 | } | |
13131 | _ACEOF | |
13132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13134 | (eval $ac_link) 2>conftest.er1 | |
13135 | ac_status=$? | |
13136 | grep -v '^ *+' conftest.er1 >conftest.err | |
13137 | rm -f conftest.er1 | |
13138 | cat conftest.err >&5 | |
13139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13140 | (exit $ac_status); } && | |
b56cb1ff | 13141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13143 | (eval $ac_try) 2>&5 | |
13144 | ac_status=$? | |
13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13146 | (exit $ac_status); }; } && | |
13147 | { ac_try='test -s conftest$ac_exeext' | |
13148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13149 | (eval $ac_try) 2>&5 | |
13150 | ac_status=$? | |
13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13152 | (exit $ac_status); }; }; then | |
13153 | ac_cv_lib_m_log10f=yes | |
13154 | else | |
13155 | echo "$as_me: failed program was:" >&5 | |
13156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13157 | ||
13158 | ac_cv_lib_m_log10f=no | |
13159 | fi | |
13160 | rm -f conftest.err conftest.$ac_objext \ | |
13161 | conftest$ac_exeext conftest.$ac_ext | |
13162 | LIBS=$ac_check_lib_save_LIBS | |
13163 | fi | |
13164 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5 | |
13165 | echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6 | |
13166 | if test $ac_cv_lib_m_log10f = yes; then | |
13167 | ||
13168 | cat >>confdefs.h <<\_ACEOF | |
13169 | #define HAVE_LOG10F 1 | |
13170 | _ACEOF | |
13171 | ||
13172 | fi | |
13173 | ||
13174 | echo "$as_me:$LINENO: checking for log10 in -lm" >&5 | |
13175 | echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6 | |
13176 | if test "${ac_cv_lib_m_log10+set}" = set; then | |
13177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13178 | else | |
13179 | ac_check_lib_save_LIBS=$LIBS | |
13180 | LIBS="-lm $LIBS" | |
13181 | if test x$gcc_no_link = xyes; then | |
13182 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13183 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13184 | { (exit 1); exit 1; }; } | |
13185 | fi | |
13186 | cat >conftest.$ac_ext <<_ACEOF | |
13187 | /* confdefs.h. */ | |
13188 | _ACEOF | |
13189 | cat confdefs.h >>conftest.$ac_ext | |
13190 | cat >>conftest.$ac_ext <<_ACEOF | |
13191 | /* end confdefs.h. */ | |
13192 | ||
13193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13194 | #ifdef __cplusplus | |
13195 | extern "C" | |
13196 | #endif | |
13197 | /* We use char because int might match the return type of a gcc2 | |
13198 | builtin and then its argument prototype would still apply. */ | |
13199 | char log10 (); | |
13200 | int | |
13201 | main () | |
13202 | { | |
13203 | log10 (); | |
13204 | ; | |
13205 | return 0; | |
13206 | } | |
13207 | _ACEOF | |
13208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13210 | (eval $ac_link) 2>conftest.er1 | |
13211 | ac_status=$? | |
13212 | grep -v '^ *+' conftest.er1 >conftest.err | |
13213 | rm -f conftest.er1 | |
13214 | cat conftest.err >&5 | |
13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13216 | (exit $ac_status); } && | |
b56cb1ff | 13217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13219 | (eval $ac_try) 2>&5 | |
13220 | ac_status=$? | |
13221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13222 | (exit $ac_status); }; } && | |
13223 | { ac_try='test -s conftest$ac_exeext' | |
13224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13225 | (eval $ac_try) 2>&5 | |
13226 | ac_status=$? | |
13227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13228 | (exit $ac_status); }; }; then | |
13229 | ac_cv_lib_m_log10=yes | |
13230 | else | |
13231 | echo "$as_me: failed program was:" >&5 | |
13232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13233 | ||
13234 | ac_cv_lib_m_log10=no | |
13235 | fi | |
13236 | rm -f conftest.err conftest.$ac_objext \ | |
13237 | conftest$ac_exeext conftest.$ac_ext | |
13238 | LIBS=$ac_check_lib_save_LIBS | |
13239 | fi | |
13240 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5 | |
13241 | echo "${ECHO_T}$ac_cv_lib_m_log10" >&6 | |
13242 | if test $ac_cv_lib_m_log10 = yes; then | |
13243 | ||
13244 | cat >>confdefs.h <<\_ACEOF | |
13245 | #define HAVE_LOG10 1 | |
13246 | _ACEOF | |
13247 | ||
13248 | fi | |
13249 | ||
13250 | echo "$as_me:$LINENO: checking for log10l in -lm" >&5 | |
13251 | echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6 | |
13252 | if test "${ac_cv_lib_m_log10l+set}" = set; then | |
13253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13254 | else | |
13255 | ac_check_lib_save_LIBS=$LIBS | |
13256 | LIBS="-lm $LIBS" | |
13257 | if test x$gcc_no_link = xyes; then | |
13258 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13259 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13260 | { (exit 1); exit 1; }; } | |
13261 | fi | |
13262 | cat >conftest.$ac_ext <<_ACEOF | |
13263 | /* confdefs.h. */ | |
13264 | _ACEOF | |
13265 | cat confdefs.h >>conftest.$ac_ext | |
13266 | cat >>conftest.$ac_ext <<_ACEOF | |
13267 | /* end confdefs.h. */ | |
13268 | ||
13269 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13270 | #ifdef __cplusplus | |
13271 | extern "C" | |
13272 | #endif | |
13273 | /* We use char because int might match the return type of a gcc2 | |
13274 | builtin and then its argument prototype would still apply. */ | |
13275 | char log10l (); | |
13276 | int | |
13277 | main () | |
13278 | { | |
13279 | log10l (); | |
13280 | ; | |
13281 | return 0; | |
13282 | } | |
13283 | _ACEOF | |
13284 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13286 | (eval $ac_link) 2>conftest.er1 | |
13287 | ac_status=$? | |
13288 | grep -v '^ *+' conftest.er1 >conftest.err | |
13289 | rm -f conftest.er1 | |
13290 | cat conftest.err >&5 | |
13291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13292 | (exit $ac_status); } && | |
b56cb1ff | 13293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13295 | (eval $ac_try) 2>&5 | |
13296 | ac_status=$? | |
13297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13298 | (exit $ac_status); }; } && | |
13299 | { ac_try='test -s conftest$ac_exeext' | |
13300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13301 | (eval $ac_try) 2>&5 | |
13302 | ac_status=$? | |
13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13304 | (exit $ac_status); }; }; then | |
13305 | ac_cv_lib_m_log10l=yes | |
13306 | else | |
13307 | echo "$as_me: failed program was:" >&5 | |
13308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13309 | ||
13310 | ac_cv_lib_m_log10l=no | |
13311 | fi | |
13312 | rm -f conftest.err conftest.$ac_objext \ | |
13313 | conftest$ac_exeext conftest.$ac_ext | |
13314 | LIBS=$ac_check_lib_save_LIBS | |
13315 | fi | |
13316 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5 | |
13317 | echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6 | |
13318 | if test $ac_cv_lib_m_log10l = yes; then | |
13319 | ||
13320 | cat >>confdefs.h <<\_ACEOF | |
13321 | #define HAVE_LOG10L 1 | |
13322 | _ACEOF | |
13323 | ||
13324 | fi | |
13325 | ||
13326 | echo "$as_me:$LINENO: checking for clog10f in -lm" >&5 | |
13327 | echo $ECHO_N "checking for clog10f in -lm... $ECHO_C" >&6 | |
13328 | if test "${ac_cv_lib_m_clog10f+set}" = set; then | |
13329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13330 | else | |
13331 | ac_check_lib_save_LIBS=$LIBS | |
13332 | LIBS="-lm $LIBS" | |
13333 | if test x$gcc_no_link = xyes; then | |
13334 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13335 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13336 | { (exit 1); exit 1; }; } | |
13337 | fi | |
13338 | cat >conftest.$ac_ext <<_ACEOF | |
13339 | /* confdefs.h. */ | |
13340 | _ACEOF | |
13341 | cat confdefs.h >>conftest.$ac_ext | |
13342 | cat >>conftest.$ac_ext <<_ACEOF | |
13343 | /* end confdefs.h. */ | |
13344 | ||
13345 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13346 | #ifdef __cplusplus | |
13347 | extern "C" | |
13348 | #endif | |
13349 | /* We use char because int might match the return type of a gcc2 | |
13350 | builtin and then its argument prototype would still apply. */ | |
13351 | char clog10f (); | |
13352 | int | |
13353 | main () | |
13354 | { | |
13355 | clog10f (); | |
13356 | ; | |
13357 | return 0; | |
13358 | } | |
13359 | _ACEOF | |
13360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13362 | (eval $ac_link) 2>conftest.er1 | |
13363 | ac_status=$? | |
13364 | grep -v '^ *+' conftest.er1 >conftest.err | |
13365 | rm -f conftest.er1 | |
13366 | cat conftest.err >&5 | |
13367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13368 | (exit $ac_status); } && | |
b56cb1ff | 13369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13371 | (eval $ac_try) 2>&5 | |
13372 | ac_status=$? | |
13373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13374 | (exit $ac_status); }; } && | |
13375 | { ac_try='test -s conftest$ac_exeext' | |
13376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13377 | (eval $ac_try) 2>&5 | |
13378 | ac_status=$? | |
13379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13380 | (exit $ac_status); }; }; then | |
13381 | ac_cv_lib_m_clog10f=yes | |
13382 | else | |
13383 | echo "$as_me: failed program was:" >&5 | |
13384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13385 | ||
13386 | ac_cv_lib_m_clog10f=no | |
13387 | fi | |
13388 | rm -f conftest.err conftest.$ac_objext \ | |
13389 | conftest$ac_exeext conftest.$ac_ext | |
13390 | LIBS=$ac_check_lib_save_LIBS | |
13391 | fi | |
13392 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10f" >&5 | |
13393 | echo "${ECHO_T}$ac_cv_lib_m_clog10f" >&6 | |
13394 | if test $ac_cv_lib_m_clog10f = yes; then | |
13395 | ||
13396 | cat >>confdefs.h <<\_ACEOF | |
13397 | #define HAVE_CLOG10F 1 | |
13398 | _ACEOF | |
13399 | ||
13400 | fi | |
13401 | ||
13402 | echo "$as_me:$LINENO: checking for clog10 in -lm" >&5 | |
13403 | echo $ECHO_N "checking for clog10 in -lm... $ECHO_C" >&6 | |
13404 | if test "${ac_cv_lib_m_clog10+set}" = set; then | |
13405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13406 | else | |
13407 | ac_check_lib_save_LIBS=$LIBS | |
13408 | LIBS="-lm $LIBS" | |
13409 | if test x$gcc_no_link = xyes; then | |
13410 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13411 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13412 | { (exit 1); exit 1; }; } | |
13413 | fi | |
13414 | cat >conftest.$ac_ext <<_ACEOF | |
13415 | /* confdefs.h. */ | |
13416 | _ACEOF | |
13417 | cat confdefs.h >>conftest.$ac_ext | |
13418 | cat >>conftest.$ac_ext <<_ACEOF | |
13419 | /* end confdefs.h. */ | |
13420 | ||
13421 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13422 | #ifdef __cplusplus | |
13423 | extern "C" | |
13424 | #endif | |
13425 | /* We use char because int might match the return type of a gcc2 | |
13426 | builtin and then its argument prototype would still apply. */ | |
13427 | char clog10 (); | |
13428 | int | |
13429 | main () | |
13430 | { | |
13431 | clog10 (); | |
13432 | ; | |
13433 | return 0; | |
13434 | } | |
13435 | _ACEOF | |
13436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13438 | (eval $ac_link) 2>conftest.er1 | |
13439 | ac_status=$? | |
13440 | grep -v '^ *+' conftest.er1 >conftest.err | |
13441 | rm -f conftest.er1 | |
13442 | cat conftest.err >&5 | |
13443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13444 | (exit $ac_status); } && | |
b56cb1ff | 13445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13447 | (eval $ac_try) 2>&5 | |
13448 | ac_status=$? | |
13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13450 | (exit $ac_status); }; } && | |
13451 | { ac_try='test -s conftest$ac_exeext' | |
13452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13453 | (eval $ac_try) 2>&5 | |
13454 | ac_status=$? | |
13455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13456 | (exit $ac_status); }; }; then | |
13457 | ac_cv_lib_m_clog10=yes | |
13458 | else | |
13459 | echo "$as_me: failed program was:" >&5 | |
13460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13461 | ||
13462 | ac_cv_lib_m_clog10=no | |
13463 | fi | |
13464 | rm -f conftest.err conftest.$ac_objext \ | |
13465 | conftest$ac_exeext conftest.$ac_ext | |
13466 | LIBS=$ac_check_lib_save_LIBS | |
13467 | fi | |
13468 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10" >&5 | |
13469 | echo "${ECHO_T}$ac_cv_lib_m_clog10" >&6 | |
13470 | if test $ac_cv_lib_m_clog10 = yes; then | |
13471 | ||
13472 | cat >>confdefs.h <<\_ACEOF | |
13473 | #define HAVE_CLOG10 1 | |
13474 | _ACEOF | |
13475 | ||
13476 | fi | |
13477 | ||
13478 | echo "$as_me:$LINENO: checking for clog10l in -lm" >&5 | |
13479 | echo $ECHO_N "checking for clog10l in -lm... $ECHO_C" >&6 | |
13480 | if test "${ac_cv_lib_m_clog10l+set}" = set; then | |
13481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13482 | else | |
13483 | ac_check_lib_save_LIBS=$LIBS | |
13484 | LIBS="-lm $LIBS" | |
13485 | if test x$gcc_no_link = xyes; then | |
13486 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13487 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13488 | { (exit 1); exit 1; }; } | |
13489 | fi | |
13490 | cat >conftest.$ac_ext <<_ACEOF | |
13491 | /* confdefs.h. */ | |
13492 | _ACEOF | |
13493 | cat confdefs.h >>conftest.$ac_ext | |
13494 | cat >>conftest.$ac_ext <<_ACEOF | |
13495 | /* end confdefs.h. */ | |
13496 | ||
13497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13498 | #ifdef __cplusplus | |
13499 | extern "C" | |
13500 | #endif | |
13501 | /* We use char because int might match the return type of a gcc2 | |
13502 | builtin and then its argument prototype would still apply. */ | |
13503 | char clog10l (); | |
13504 | int | |
13505 | main () | |
13506 | { | |
13507 | clog10l (); | |
13508 | ; | |
13509 | return 0; | |
13510 | } | |
13511 | _ACEOF | |
13512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13514 | (eval $ac_link) 2>conftest.er1 | |
13515 | ac_status=$? | |
13516 | grep -v '^ *+' conftest.er1 >conftest.err | |
13517 | rm -f conftest.er1 | |
13518 | cat conftest.err >&5 | |
13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13520 | (exit $ac_status); } && | |
b56cb1ff | 13521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13523 | (eval $ac_try) 2>&5 | |
13524 | ac_status=$? | |
13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13526 | (exit $ac_status); }; } && | |
13527 | { ac_try='test -s conftest$ac_exeext' | |
13528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13529 | (eval $ac_try) 2>&5 | |
13530 | ac_status=$? | |
13531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13532 | (exit $ac_status); }; }; then | |
13533 | ac_cv_lib_m_clog10l=yes | |
13534 | else | |
13535 | echo "$as_me: failed program was:" >&5 | |
13536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13537 | ||
13538 | ac_cv_lib_m_clog10l=no | |
13539 | fi | |
13540 | rm -f conftest.err conftest.$ac_objext \ | |
13541 | conftest$ac_exeext conftest.$ac_ext | |
13542 | LIBS=$ac_check_lib_save_LIBS | |
13543 | fi | |
13544 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10l" >&5 | |
13545 | echo "${ECHO_T}$ac_cv_lib_m_clog10l" >&6 | |
13546 | if test $ac_cv_lib_m_clog10l = yes; then | |
13547 | ||
13548 | cat >>confdefs.h <<\_ACEOF | |
13549 | #define HAVE_CLOG10L 1 | |
13550 | _ACEOF | |
13551 | ||
13552 | fi | |
13553 | ||
13554 | echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5 | |
13555 | echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6 | |
13556 | if test "${ac_cv_lib_m_nextafterf+set}" = set; then | |
13557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13558 | else | |
13559 | ac_check_lib_save_LIBS=$LIBS | |
13560 | LIBS="-lm $LIBS" | |
13561 | if test x$gcc_no_link = xyes; then | |
13562 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13563 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13564 | { (exit 1); exit 1; }; } | |
13565 | fi | |
13566 | cat >conftest.$ac_ext <<_ACEOF | |
13567 | /* confdefs.h. */ | |
13568 | _ACEOF | |
13569 | cat confdefs.h >>conftest.$ac_ext | |
13570 | cat >>conftest.$ac_ext <<_ACEOF | |
13571 | /* end confdefs.h. */ | |
13572 | ||
13573 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13574 | #ifdef __cplusplus | |
13575 | extern "C" | |
13576 | #endif | |
13577 | /* We use char because int might match the return type of a gcc2 | |
13578 | builtin and then its argument prototype would still apply. */ | |
13579 | char nextafterf (); | |
13580 | int | |
13581 | main () | |
13582 | { | |
13583 | nextafterf (); | |
13584 | ; | |
13585 | return 0; | |
13586 | } | |
13587 | _ACEOF | |
13588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13590 | (eval $ac_link) 2>conftest.er1 | |
13591 | ac_status=$? | |
13592 | grep -v '^ *+' conftest.er1 >conftest.err | |
13593 | rm -f conftest.er1 | |
13594 | cat conftest.err >&5 | |
13595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13596 | (exit $ac_status); } && | |
b56cb1ff | 13597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13599 | (eval $ac_try) 2>&5 | |
13600 | ac_status=$? | |
13601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13602 | (exit $ac_status); }; } && | |
13603 | { ac_try='test -s conftest$ac_exeext' | |
13604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13605 | (eval $ac_try) 2>&5 | |
13606 | ac_status=$? | |
13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13608 | (exit $ac_status); }; }; then | |
13609 | ac_cv_lib_m_nextafterf=yes | |
13610 | else | |
13611 | echo "$as_me: failed program was:" >&5 | |
13612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13613 | ||
13614 | ac_cv_lib_m_nextafterf=no | |
13615 | fi | |
13616 | rm -f conftest.err conftest.$ac_objext \ | |
13617 | conftest$ac_exeext conftest.$ac_ext | |
13618 | LIBS=$ac_check_lib_save_LIBS | |
13619 | fi | |
13620 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5 | |
13621 | echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6 | |
13622 | if test $ac_cv_lib_m_nextafterf = yes; then | |
13623 | ||
13624 | cat >>confdefs.h <<\_ACEOF | |
13625 | #define HAVE_NEXTAFTERF 1 | |
13626 | _ACEOF | |
13627 | ||
13628 | fi | |
13629 | ||
13630 | echo "$as_me:$LINENO: checking for nextafter in -lm" >&5 | |
13631 | echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6 | |
13632 | if test "${ac_cv_lib_m_nextafter+set}" = set; then | |
13633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13634 | else | |
13635 | ac_check_lib_save_LIBS=$LIBS | |
13636 | LIBS="-lm $LIBS" | |
13637 | if test x$gcc_no_link = xyes; then | |
13638 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13639 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13640 | { (exit 1); exit 1; }; } | |
13641 | fi | |
13642 | cat >conftest.$ac_ext <<_ACEOF | |
13643 | /* confdefs.h. */ | |
13644 | _ACEOF | |
13645 | cat confdefs.h >>conftest.$ac_ext | |
13646 | cat >>conftest.$ac_ext <<_ACEOF | |
13647 | /* end confdefs.h. */ | |
13648 | ||
13649 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13650 | #ifdef __cplusplus | |
13651 | extern "C" | |
13652 | #endif | |
13653 | /* We use char because int might match the return type of a gcc2 | |
13654 | builtin and then its argument prototype would still apply. */ | |
13655 | char nextafter (); | |
13656 | int | |
13657 | main () | |
13658 | { | |
13659 | nextafter (); | |
13660 | ; | |
13661 | return 0; | |
13662 | } | |
13663 | _ACEOF | |
13664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13666 | (eval $ac_link) 2>conftest.er1 | |
13667 | ac_status=$? | |
13668 | grep -v '^ *+' conftest.er1 >conftest.err | |
13669 | rm -f conftest.er1 | |
13670 | cat conftest.err >&5 | |
13671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13672 | (exit $ac_status); } && | |
b56cb1ff | 13673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13675 | (eval $ac_try) 2>&5 | |
13676 | ac_status=$? | |
13677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13678 | (exit $ac_status); }; } && | |
13679 | { ac_try='test -s conftest$ac_exeext' | |
13680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13681 | (eval $ac_try) 2>&5 | |
13682 | ac_status=$? | |
13683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13684 | (exit $ac_status); }; }; then | |
13685 | ac_cv_lib_m_nextafter=yes | |
13686 | else | |
13687 | echo "$as_me: failed program was:" >&5 | |
13688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13689 | ||
13690 | ac_cv_lib_m_nextafter=no | |
13691 | fi | |
13692 | rm -f conftest.err conftest.$ac_objext \ | |
13693 | conftest$ac_exeext conftest.$ac_ext | |
13694 | LIBS=$ac_check_lib_save_LIBS | |
13695 | fi | |
13696 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5 | |
13697 | echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6 | |
13698 | if test $ac_cv_lib_m_nextafter = yes; then | |
13699 | ||
13700 | cat >>confdefs.h <<\_ACEOF | |
13701 | #define HAVE_NEXTAFTER 1 | |
13702 | _ACEOF | |
13703 | ||
13704 | fi | |
13705 | ||
13706 | echo "$as_me:$LINENO: checking for nextafterl in -lm" >&5 | |
13707 | echo $ECHO_N "checking for nextafterl in -lm... $ECHO_C" >&6 | |
13708 | if test "${ac_cv_lib_m_nextafterl+set}" = set; then | |
13709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13710 | else | |
13711 | ac_check_lib_save_LIBS=$LIBS | |
13712 | LIBS="-lm $LIBS" | |
13713 | if test x$gcc_no_link = xyes; then | |
13714 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13715 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13716 | { (exit 1); exit 1; }; } | |
13717 | fi | |
13718 | cat >conftest.$ac_ext <<_ACEOF | |
13719 | /* confdefs.h. */ | |
13720 | _ACEOF | |
13721 | cat confdefs.h >>conftest.$ac_ext | |
13722 | cat >>conftest.$ac_ext <<_ACEOF | |
13723 | /* end confdefs.h. */ | |
13724 | ||
13725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13726 | #ifdef __cplusplus | |
13727 | extern "C" | |
13728 | #endif | |
13729 | /* We use char because int might match the return type of a gcc2 | |
13730 | builtin and then its argument prototype would still apply. */ | |
13731 | char nextafterl (); | |
13732 | int | |
13733 | main () | |
13734 | { | |
13735 | nextafterl (); | |
13736 | ; | |
13737 | return 0; | |
13738 | } | |
13739 | _ACEOF | |
13740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13742 | (eval $ac_link) 2>conftest.er1 | |
13743 | ac_status=$? | |
13744 | grep -v '^ *+' conftest.er1 >conftest.err | |
13745 | rm -f conftest.er1 | |
13746 | cat conftest.err >&5 | |
13747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13748 | (exit $ac_status); } && | |
b56cb1ff | 13749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13751 | (eval $ac_try) 2>&5 | |
13752 | ac_status=$? | |
13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13754 | (exit $ac_status); }; } && | |
13755 | { ac_try='test -s conftest$ac_exeext' | |
13756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13757 | (eval $ac_try) 2>&5 | |
13758 | ac_status=$? | |
13759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13760 | (exit $ac_status); }; }; then | |
13761 | ac_cv_lib_m_nextafterl=yes | |
13762 | else | |
13763 | echo "$as_me: failed program was:" >&5 | |
13764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13765 | ||
13766 | ac_cv_lib_m_nextafterl=no | |
13767 | fi | |
13768 | rm -f conftest.err conftest.$ac_objext \ | |
13769 | conftest$ac_exeext conftest.$ac_ext | |
13770 | LIBS=$ac_check_lib_save_LIBS | |
13771 | fi | |
13772 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterl" >&5 | |
13773 | echo "${ECHO_T}$ac_cv_lib_m_nextafterl" >&6 | |
13774 | if test $ac_cv_lib_m_nextafterl = yes; then | |
13775 | ||
13776 | cat >>confdefs.h <<\_ACEOF | |
13777 | #define HAVE_NEXTAFTERL 1 | |
13778 | _ACEOF | |
13779 | ||
13780 | fi | |
13781 | ||
13782 | echo "$as_me:$LINENO: checking for powf in -lm" >&5 | |
13783 | echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6 | |
13784 | if test "${ac_cv_lib_m_powf+set}" = set; then | |
13785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13786 | else | |
13787 | ac_check_lib_save_LIBS=$LIBS | |
13788 | LIBS="-lm $LIBS" | |
13789 | if test x$gcc_no_link = xyes; then | |
13790 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13791 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13792 | { (exit 1); exit 1; }; } | |
13793 | fi | |
13794 | cat >conftest.$ac_ext <<_ACEOF | |
13795 | /* confdefs.h. */ | |
13796 | _ACEOF | |
13797 | cat confdefs.h >>conftest.$ac_ext | |
13798 | cat >>conftest.$ac_ext <<_ACEOF | |
13799 | /* end confdefs.h. */ | |
13800 | ||
13801 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13802 | #ifdef __cplusplus | |
13803 | extern "C" | |
13804 | #endif | |
13805 | /* We use char because int might match the return type of a gcc2 | |
13806 | builtin and then its argument prototype would still apply. */ | |
13807 | char powf (); | |
13808 | int | |
13809 | main () | |
13810 | { | |
13811 | powf (); | |
13812 | ; | |
13813 | return 0; | |
13814 | } | |
13815 | _ACEOF | |
13816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13818 | (eval $ac_link) 2>conftest.er1 | |
13819 | ac_status=$? | |
13820 | grep -v '^ *+' conftest.er1 >conftest.err | |
13821 | rm -f conftest.er1 | |
13822 | cat conftest.err >&5 | |
13823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13824 | (exit $ac_status); } && | |
b56cb1ff | 13825 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13827 | (eval $ac_try) 2>&5 | |
13828 | ac_status=$? | |
13829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13830 | (exit $ac_status); }; } && | |
13831 | { ac_try='test -s conftest$ac_exeext' | |
13832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13833 | (eval $ac_try) 2>&5 | |
13834 | ac_status=$? | |
13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13836 | (exit $ac_status); }; }; then | |
13837 | ac_cv_lib_m_powf=yes | |
13838 | else | |
13839 | echo "$as_me: failed program was:" >&5 | |
13840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13841 | ||
13842 | ac_cv_lib_m_powf=no | |
13843 | fi | |
13844 | rm -f conftest.err conftest.$ac_objext \ | |
13845 | conftest$ac_exeext conftest.$ac_ext | |
13846 | LIBS=$ac_check_lib_save_LIBS | |
13847 | fi | |
13848 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5 | |
13849 | echo "${ECHO_T}$ac_cv_lib_m_powf" >&6 | |
13850 | if test $ac_cv_lib_m_powf = yes; then | |
13851 | ||
13852 | cat >>confdefs.h <<\_ACEOF | |
13853 | #define HAVE_POWF 1 | |
13854 | _ACEOF | |
13855 | ||
13856 | fi | |
13857 | ||
13858 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
13859 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
13860 | if test "${ac_cv_lib_m_pow+set}" = set; then | |
13861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13862 | else | |
13863 | ac_check_lib_save_LIBS=$LIBS | |
13864 | LIBS="-lm $LIBS" | |
13865 | if test x$gcc_no_link = xyes; then | |
13866 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13867 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13868 | { (exit 1); exit 1; }; } | |
13869 | fi | |
13870 | cat >conftest.$ac_ext <<_ACEOF | |
13871 | /* confdefs.h. */ | |
13872 | _ACEOF | |
13873 | cat confdefs.h >>conftest.$ac_ext | |
13874 | cat >>conftest.$ac_ext <<_ACEOF | |
13875 | /* end confdefs.h. */ | |
13876 | ||
13877 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13878 | #ifdef __cplusplus | |
13879 | extern "C" | |
13880 | #endif | |
13881 | /* We use char because int might match the return type of a gcc2 | |
13882 | builtin and then its argument prototype would still apply. */ | |
13883 | char pow (); | |
13884 | int | |
13885 | main () | |
13886 | { | |
13887 | pow (); | |
13888 | ; | |
13889 | return 0; | |
13890 | } | |
13891 | _ACEOF | |
13892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13894 | (eval $ac_link) 2>conftest.er1 | |
13895 | ac_status=$? | |
13896 | grep -v '^ *+' conftest.er1 >conftest.err | |
13897 | rm -f conftest.er1 | |
13898 | cat conftest.err >&5 | |
13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13900 | (exit $ac_status); } && | |
b56cb1ff | 13901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13903 | (eval $ac_try) 2>&5 | |
13904 | ac_status=$? | |
13905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13906 | (exit $ac_status); }; } && | |
13907 | { ac_try='test -s conftest$ac_exeext' | |
13908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13909 | (eval $ac_try) 2>&5 | |
13910 | ac_status=$? | |
13911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13912 | (exit $ac_status); }; }; then | |
13913 | ac_cv_lib_m_pow=yes | |
13914 | else | |
13915 | echo "$as_me: failed program was:" >&5 | |
13916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13917 | ||
13918 | ac_cv_lib_m_pow=no | |
13919 | fi | |
13920 | rm -f conftest.err conftest.$ac_objext \ | |
13921 | conftest$ac_exeext conftest.$ac_ext | |
13922 | LIBS=$ac_check_lib_save_LIBS | |
13923 | fi | |
13924 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
13925 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
13926 | if test $ac_cv_lib_m_pow = yes; then | |
13927 | ||
13928 | cat >>confdefs.h <<\_ACEOF | |
13929 | #define HAVE_POW 1 | |
13930 | _ACEOF | |
13931 | ||
13932 | fi | |
13933 | ||
13934 | echo "$as_me:$LINENO: checking for powl in -lm" >&5 | |
13935 | echo $ECHO_N "checking for powl in -lm... $ECHO_C" >&6 | |
13936 | if test "${ac_cv_lib_m_powl+set}" = set; then | |
13937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13938 | else | |
13939 | ac_check_lib_save_LIBS=$LIBS | |
13940 | LIBS="-lm $LIBS" | |
13941 | if test x$gcc_no_link = xyes; then | |
13942 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13943 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13944 | { (exit 1); exit 1; }; } | |
13945 | fi | |
13946 | cat >conftest.$ac_ext <<_ACEOF | |
13947 | /* confdefs.h. */ | |
13948 | _ACEOF | |
13949 | cat confdefs.h >>conftest.$ac_ext | |
13950 | cat >>conftest.$ac_ext <<_ACEOF | |
13951 | /* end confdefs.h. */ | |
13952 | ||
13953 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13954 | #ifdef __cplusplus | |
13955 | extern "C" | |
13956 | #endif | |
13957 | /* We use char because int might match the return type of a gcc2 | |
13958 | builtin and then its argument prototype would still apply. */ | |
13959 | char powl (); | |
13960 | int | |
13961 | main () | |
13962 | { | |
13963 | powl (); | |
13964 | ; | |
13965 | return 0; | |
13966 | } | |
13967 | _ACEOF | |
13968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13970 | (eval $ac_link) 2>conftest.er1 | |
13971 | ac_status=$? | |
13972 | grep -v '^ *+' conftest.er1 >conftest.err | |
13973 | rm -f conftest.er1 | |
13974 | cat conftest.err >&5 | |
13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13976 | (exit $ac_status); } && | |
b56cb1ff | 13977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 13978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13979 | (eval $ac_try) 2>&5 | |
13980 | ac_status=$? | |
13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13982 | (exit $ac_status); }; } && | |
13983 | { ac_try='test -s conftest$ac_exeext' | |
13984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13985 | (eval $ac_try) 2>&5 | |
13986 | ac_status=$? | |
13987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13988 | (exit $ac_status); }; }; then | |
13989 | ac_cv_lib_m_powl=yes | |
13990 | else | |
13991 | echo "$as_me: failed program was:" >&5 | |
13992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13993 | ||
13994 | ac_cv_lib_m_powl=no | |
13995 | fi | |
13996 | rm -f conftest.err conftest.$ac_objext \ | |
13997 | conftest$ac_exeext conftest.$ac_ext | |
13998 | LIBS=$ac_check_lib_save_LIBS | |
13999 | fi | |
14000 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powl" >&5 | |
14001 | echo "${ECHO_T}$ac_cv_lib_m_powl" >&6 | |
14002 | if test $ac_cv_lib_m_powl = yes; then | |
14003 | ||
14004 | cat >>confdefs.h <<\_ACEOF | |
14005 | #define HAVE_POWL 1 | |
14006 | _ACEOF | |
14007 | ||
14008 | fi | |
14009 | ||
14010 | echo "$as_me:$LINENO: checking for cpowf in -lm" >&5 | |
14011 | echo $ECHO_N "checking for cpowf in -lm... $ECHO_C" >&6 | |
14012 | if test "${ac_cv_lib_m_cpowf+set}" = set; then | |
14013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14014 | else | |
14015 | ac_check_lib_save_LIBS=$LIBS | |
14016 | LIBS="-lm $LIBS" | |
14017 | if test x$gcc_no_link = xyes; then | |
14018 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14019 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14020 | { (exit 1); exit 1; }; } | |
14021 | fi | |
14022 | cat >conftest.$ac_ext <<_ACEOF | |
14023 | /* confdefs.h. */ | |
14024 | _ACEOF | |
14025 | cat confdefs.h >>conftest.$ac_ext | |
14026 | cat >>conftest.$ac_ext <<_ACEOF | |
14027 | /* end confdefs.h. */ | |
14028 | ||
14029 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14030 | #ifdef __cplusplus | |
14031 | extern "C" | |
14032 | #endif | |
14033 | /* We use char because int might match the return type of a gcc2 | |
14034 | builtin and then its argument prototype would still apply. */ | |
14035 | char cpowf (); | |
14036 | int | |
14037 | main () | |
14038 | { | |
14039 | cpowf (); | |
14040 | ; | |
14041 | return 0; | |
14042 | } | |
14043 | _ACEOF | |
14044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14046 | (eval $ac_link) 2>conftest.er1 | |
14047 | ac_status=$? | |
14048 | grep -v '^ *+' conftest.er1 >conftest.err | |
14049 | rm -f conftest.er1 | |
14050 | cat conftest.err >&5 | |
14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14052 | (exit $ac_status); } && | |
b56cb1ff | 14053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14055 | (eval $ac_try) 2>&5 | |
14056 | ac_status=$? | |
14057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14058 | (exit $ac_status); }; } && | |
14059 | { ac_try='test -s conftest$ac_exeext' | |
14060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14061 | (eval $ac_try) 2>&5 | |
14062 | ac_status=$? | |
14063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14064 | (exit $ac_status); }; }; then | |
14065 | ac_cv_lib_m_cpowf=yes | |
14066 | else | |
14067 | echo "$as_me: failed program was:" >&5 | |
14068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14069 | ||
14070 | ac_cv_lib_m_cpowf=no | |
14071 | fi | |
14072 | rm -f conftest.err conftest.$ac_objext \ | |
14073 | conftest$ac_exeext conftest.$ac_ext | |
14074 | LIBS=$ac_check_lib_save_LIBS | |
14075 | fi | |
14076 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowf" >&5 | |
14077 | echo "${ECHO_T}$ac_cv_lib_m_cpowf" >&6 | |
14078 | if test $ac_cv_lib_m_cpowf = yes; then | |
14079 | ||
14080 | cat >>confdefs.h <<\_ACEOF | |
14081 | #define HAVE_CPOWF 1 | |
14082 | _ACEOF | |
14083 | ||
14084 | fi | |
14085 | ||
14086 | echo "$as_me:$LINENO: checking for cpow in -lm" >&5 | |
14087 | echo $ECHO_N "checking for cpow in -lm... $ECHO_C" >&6 | |
14088 | if test "${ac_cv_lib_m_cpow+set}" = set; then | |
14089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14090 | else | |
14091 | ac_check_lib_save_LIBS=$LIBS | |
14092 | LIBS="-lm $LIBS" | |
14093 | if test x$gcc_no_link = xyes; then | |
14094 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14095 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14096 | { (exit 1); exit 1; }; } | |
14097 | fi | |
14098 | cat >conftest.$ac_ext <<_ACEOF | |
14099 | /* confdefs.h. */ | |
14100 | _ACEOF | |
14101 | cat confdefs.h >>conftest.$ac_ext | |
14102 | cat >>conftest.$ac_ext <<_ACEOF | |
14103 | /* end confdefs.h. */ | |
14104 | ||
14105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14106 | #ifdef __cplusplus | |
14107 | extern "C" | |
14108 | #endif | |
14109 | /* We use char because int might match the return type of a gcc2 | |
14110 | builtin and then its argument prototype would still apply. */ | |
14111 | char cpow (); | |
14112 | int | |
14113 | main () | |
14114 | { | |
14115 | cpow (); | |
14116 | ; | |
14117 | return 0; | |
14118 | } | |
14119 | _ACEOF | |
14120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14122 | (eval $ac_link) 2>conftest.er1 | |
14123 | ac_status=$? | |
14124 | grep -v '^ *+' conftest.er1 >conftest.err | |
14125 | rm -f conftest.er1 | |
14126 | cat conftest.err >&5 | |
14127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14128 | (exit $ac_status); } && | |
b56cb1ff | 14129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14131 | (eval $ac_try) 2>&5 | |
14132 | ac_status=$? | |
14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14134 | (exit $ac_status); }; } && | |
14135 | { ac_try='test -s conftest$ac_exeext' | |
14136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14137 | (eval $ac_try) 2>&5 | |
14138 | ac_status=$? | |
14139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14140 | (exit $ac_status); }; }; then | |
14141 | ac_cv_lib_m_cpow=yes | |
14142 | else | |
14143 | echo "$as_me: failed program was:" >&5 | |
14144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14145 | ||
14146 | ac_cv_lib_m_cpow=no | |
14147 | fi | |
14148 | rm -f conftest.err conftest.$ac_objext \ | |
14149 | conftest$ac_exeext conftest.$ac_ext | |
14150 | LIBS=$ac_check_lib_save_LIBS | |
14151 | fi | |
14152 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpow" >&5 | |
14153 | echo "${ECHO_T}$ac_cv_lib_m_cpow" >&6 | |
14154 | if test $ac_cv_lib_m_cpow = yes; then | |
14155 | ||
14156 | cat >>confdefs.h <<\_ACEOF | |
14157 | #define HAVE_CPOW 1 | |
14158 | _ACEOF | |
14159 | ||
14160 | fi | |
14161 | ||
14162 | echo "$as_me:$LINENO: checking for cpowl in -lm" >&5 | |
14163 | echo $ECHO_N "checking for cpowl in -lm... $ECHO_C" >&6 | |
14164 | if test "${ac_cv_lib_m_cpowl+set}" = set; then | |
14165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14166 | else | |
14167 | ac_check_lib_save_LIBS=$LIBS | |
14168 | LIBS="-lm $LIBS" | |
14169 | if test x$gcc_no_link = xyes; then | |
14170 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14171 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14172 | { (exit 1); exit 1; }; } | |
14173 | fi | |
14174 | cat >conftest.$ac_ext <<_ACEOF | |
14175 | /* confdefs.h. */ | |
14176 | _ACEOF | |
14177 | cat confdefs.h >>conftest.$ac_ext | |
14178 | cat >>conftest.$ac_ext <<_ACEOF | |
14179 | /* end confdefs.h. */ | |
14180 | ||
14181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14182 | #ifdef __cplusplus | |
14183 | extern "C" | |
14184 | #endif | |
14185 | /* We use char because int might match the return type of a gcc2 | |
14186 | builtin and then its argument prototype would still apply. */ | |
14187 | char cpowl (); | |
14188 | int | |
14189 | main () | |
14190 | { | |
14191 | cpowl (); | |
14192 | ; | |
14193 | return 0; | |
14194 | } | |
14195 | _ACEOF | |
14196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14198 | (eval $ac_link) 2>conftest.er1 | |
14199 | ac_status=$? | |
14200 | grep -v '^ *+' conftest.er1 >conftest.err | |
14201 | rm -f conftest.er1 | |
14202 | cat conftest.err >&5 | |
14203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14204 | (exit $ac_status); } && | |
b56cb1ff | 14205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14207 | (eval $ac_try) 2>&5 | |
14208 | ac_status=$? | |
14209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14210 | (exit $ac_status); }; } && | |
14211 | { ac_try='test -s conftest$ac_exeext' | |
14212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14213 | (eval $ac_try) 2>&5 | |
14214 | ac_status=$? | |
14215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14216 | (exit $ac_status); }; }; then | |
14217 | ac_cv_lib_m_cpowl=yes | |
14218 | else | |
14219 | echo "$as_me: failed program was:" >&5 | |
14220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14221 | ||
14222 | ac_cv_lib_m_cpowl=no | |
14223 | fi | |
14224 | rm -f conftest.err conftest.$ac_objext \ | |
14225 | conftest$ac_exeext conftest.$ac_ext | |
14226 | LIBS=$ac_check_lib_save_LIBS | |
14227 | fi | |
14228 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowl" >&5 | |
14229 | echo "${ECHO_T}$ac_cv_lib_m_cpowl" >&6 | |
14230 | if test $ac_cv_lib_m_cpowl = yes; then | |
14231 | ||
14232 | cat >>confdefs.h <<\_ACEOF | |
14233 | #define HAVE_CPOWL 1 | |
14234 | _ACEOF | |
14235 | ||
14236 | fi | |
14237 | ||
14238 | echo "$as_me:$LINENO: checking for roundf in -lm" >&5 | |
14239 | echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6 | |
14240 | if test "${ac_cv_lib_m_roundf+set}" = set; then | |
14241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14242 | else | |
14243 | ac_check_lib_save_LIBS=$LIBS | |
14244 | LIBS="-lm $LIBS" | |
14245 | if test x$gcc_no_link = xyes; then | |
14246 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14247 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14248 | { (exit 1); exit 1; }; } | |
14249 | fi | |
14250 | cat >conftest.$ac_ext <<_ACEOF | |
14251 | /* confdefs.h. */ | |
14252 | _ACEOF | |
14253 | cat confdefs.h >>conftest.$ac_ext | |
14254 | cat >>conftest.$ac_ext <<_ACEOF | |
14255 | /* end confdefs.h. */ | |
14256 | ||
14257 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14258 | #ifdef __cplusplus | |
14259 | extern "C" | |
14260 | #endif | |
14261 | /* We use char because int might match the return type of a gcc2 | |
14262 | builtin and then its argument prototype would still apply. */ | |
14263 | char roundf (); | |
14264 | int | |
14265 | main () | |
14266 | { | |
14267 | roundf (); | |
14268 | ; | |
14269 | return 0; | |
14270 | } | |
14271 | _ACEOF | |
14272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14274 | (eval $ac_link) 2>conftest.er1 | |
14275 | ac_status=$? | |
14276 | grep -v '^ *+' conftest.er1 >conftest.err | |
14277 | rm -f conftest.er1 | |
14278 | cat conftest.err >&5 | |
14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14280 | (exit $ac_status); } && | |
b56cb1ff | 14281 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14283 | (eval $ac_try) 2>&5 | |
14284 | ac_status=$? | |
14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14286 | (exit $ac_status); }; } && | |
14287 | { ac_try='test -s conftest$ac_exeext' | |
14288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14289 | (eval $ac_try) 2>&5 | |
14290 | ac_status=$? | |
14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14292 | (exit $ac_status); }; }; then | |
14293 | ac_cv_lib_m_roundf=yes | |
14294 | else | |
14295 | echo "$as_me: failed program was:" >&5 | |
14296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14297 | ||
14298 | ac_cv_lib_m_roundf=no | |
14299 | fi | |
14300 | rm -f conftest.err conftest.$ac_objext \ | |
14301 | conftest$ac_exeext conftest.$ac_ext | |
14302 | LIBS=$ac_check_lib_save_LIBS | |
14303 | fi | |
14304 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5 | |
14305 | echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6 | |
14306 | if test $ac_cv_lib_m_roundf = yes; then | |
14307 | ||
14308 | cat >>confdefs.h <<\_ACEOF | |
14309 | #define HAVE_ROUNDF 1 | |
14310 | _ACEOF | |
14311 | ||
14312 | fi | |
14313 | ||
14314 | echo "$as_me:$LINENO: checking for round in -lm" >&5 | |
14315 | echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6 | |
14316 | if test "${ac_cv_lib_m_round+set}" = set; then | |
14317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14318 | else | |
14319 | ac_check_lib_save_LIBS=$LIBS | |
14320 | LIBS="-lm $LIBS" | |
14321 | if test x$gcc_no_link = xyes; then | |
14322 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14323 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14324 | { (exit 1); exit 1; }; } | |
14325 | fi | |
14326 | cat >conftest.$ac_ext <<_ACEOF | |
14327 | /* confdefs.h. */ | |
14328 | _ACEOF | |
14329 | cat confdefs.h >>conftest.$ac_ext | |
14330 | cat >>conftest.$ac_ext <<_ACEOF | |
14331 | /* end confdefs.h. */ | |
14332 | ||
14333 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14334 | #ifdef __cplusplus | |
14335 | extern "C" | |
14336 | #endif | |
14337 | /* We use char because int might match the return type of a gcc2 | |
14338 | builtin and then its argument prototype would still apply. */ | |
14339 | char round (); | |
14340 | int | |
14341 | main () | |
14342 | { | |
14343 | round (); | |
14344 | ; | |
14345 | return 0; | |
14346 | } | |
14347 | _ACEOF | |
14348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14350 | (eval $ac_link) 2>conftest.er1 | |
14351 | ac_status=$? | |
14352 | grep -v '^ *+' conftest.er1 >conftest.err | |
14353 | rm -f conftest.er1 | |
14354 | cat conftest.err >&5 | |
14355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14356 | (exit $ac_status); } && | |
b56cb1ff | 14357 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14359 | (eval $ac_try) 2>&5 | |
14360 | ac_status=$? | |
14361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14362 | (exit $ac_status); }; } && | |
14363 | { ac_try='test -s conftest$ac_exeext' | |
14364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14365 | (eval $ac_try) 2>&5 | |
14366 | ac_status=$? | |
14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14368 | (exit $ac_status); }; }; then | |
14369 | ac_cv_lib_m_round=yes | |
14370 | else | |
14371 | echo "$as_me: failed program was:" >&5 | |
14372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14373 | ||
14374 | ac_cv_lib_m_round=no | |
14375 | fi | |
14376 | rm -f conftest.err conftest.$ac_objext \ | |
14377 | conftest$ac_exeext conftest.$ac_ext | |
14378 | LIBS=$ac_check_lib_save_LIBS | |
14379 | fi | |
14380 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5 | |
14381 | echo "${ECHO_T}$ac_cv_lib_m_round" >&6 | |
14382 | if test $ac_cv_lib_m_round = yes; then | |
14383 | ||
14384 | cat >>confdefs.h <<\_ACEOF | |
14385 | #define HAVE_ROUND 1 | |
14386 | _ACEOF | |
14387 | ||
14388 | fi | |
14389 | ||
14390 | echo "$as_me:$LINENO: checking for roundl in -lm" >&5 | |
14391 | echo $ECHO_N "checking for roundl in -lm... $ECHO_C" >&6 | |
14392 | if test "${ac_cv_lib_m_roundl+set}" = set; then | |
14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14394 | else | |
14395 | ac_check_lib_save_LIBS=$LIBS | |
14396 | LIBS="-lm $LIBS" | |
14397 | if test x$gcc_no_link = xyes; then | |
14398 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14399 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14400 | { (exit 1); exit 1; }; } | |
14401 | fi | |
14402 | cat >conftest.$ac_ext <<_ACEOF | |
14403 | /* confdefs.h. */ | |
14404 | _ACEOF | |
14405 | cat confdefs.h >>conftest.$ac_ext | |
14406 | cat >>conftest.$ac_ext <<_ACEOF | |
14407 | /* end confdefs.h. */ | |
14408 | ||
14409 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14410 | #ifdef __cplusplus | |
14411 | extern "C" | |
14412 | #endif | |
14413 | /* We use char because int might match the return type of a gcc2 | |
14414 | builtin and then its argument prototype would still apply. */ | |
14415 | char roundl (); | |
14416 | int | |
14417 | main () | |
14418 | { | |
14419 | roundl (); | |
14420 | ; | |
14421 | return 0; | |
14422 | } | |
14423 | _ACEOF | |
14424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14426 | (eval $ac_link) 2>conftest.er1 | |
14427 | ac_status=$? | |
14428 | grep -v '^ *+' conftest.er1 >conftest.err | |
14429 | rm -f conftest.er1 | |
14430 | cat conftest.err >&5 | |
14431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14432 | (exit $ac_status); } && | |
b56cb1ff | 14433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14435 | (eval $ac_try) 2>&5 | |
14436 | ac_status=$? | |
14437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14438 | (exit $ac_status); }; } && | |
14439 | { ac_try='test -s conftest$ac_exeext' | |
14440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14441 | (eval $ac_try) 2>&5 | |
14442 | ac_status=$? | |
14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14444 | (exit $ac_status); }; }; then | |
14445 | ac_cv_lib_m_roundl=yes | |
14446 | else | |
14447 | echo "$as_me: failed program was:" >&5 | |
14448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14449 | ||
14450 | ac_cv_lib_m_roundl=no | |
14451 | fi | |
14452 | rm -f conftest.err conftest.$ac_objext \ | |
14453 | conftest$ac_exeext conftest.$ac_ext | |
14454 | LIBS=$ac_check_lib_save_LIBS | |
14455 | fi | |
14456 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundl" >&5 | |
14457 | echo "${ECHO_T}$ac_cv_lib_m_roundl" >&6 | |
14458 | if test $ac_cv_lib_m_roundl = yes; then | |
14459 | ||
14460 | cat >>confdefs.h <<\_ACEOF | |
14461 | #define HAVE_ROUNDL 1 | |
14462 | _ACEOF | |
14463 | ||
14464 | fi | |
14465 | ||
14466 | echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5 | |
14467 | echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6 | |
14468 | if test "${ac_cv_lib_m_scalbnf+set}" = set; then | |
14469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14470 | else | |
14471 | ac_check_lib_save_LIBS=$LIBS | |
14472 | LIBS="-lm $LIBS" | |
14473 | if test x$gcc_no_link = xyes; then | |
14474 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14475 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14476 | { (exit 1); exit 1; }; } | |
14477 | fi | |
14478 | cat >conftest.$ac_ext <<_ACEOF | |
14479 | /* confdefs.h. */ | |
14480 | _ACEOF | |
14481 | cat confdefs.h >>conftest.$ac_ext | |
14482 | cat >>conftest.$ac_ext <<_ACEOF | |
14483 | /* end confdefs.h. */ | |
14484 | ||
14485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14486 | #ifdef __cplusplus | |
14487 | extern "C" | |
14488 | #endif | |
14489 | /* We use char because int might match the return type of a gcc2 | |
14490 | builtin and then its argument prototype would still apply. */ | |
14491 | char scalbnf (); | |
14492 | int | |
14493 | main () | |
14494 | { | |
14495 | scalbnf (); | |
14496 | ; | |
14497 | return 0; | |
14498 | } | |
14499 | _ACEOF | |
14500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14502 | (eval $ac_link) 2>conftest.er1 | |
14503 | ac_status=$? | |
14504 | grep -v '^ *+' conftest.er1 >conftest.err | |
14505 | rm -f conftest.er1 | |
14506 | cat conftest.err >&5 | |
14507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14508 | (exit $ac_status); } && | |
b56cb1ff | 14509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14511 | (eval $ac_try) 2>&5 | |
14512 | ac_status=$? | |
14513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14514 | (exit $ac_status); }; } && | |
14515 | { ac_try='test -s conftest$ac_exeext' | |
14516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14517 | (eval $ac_try) 2>&5 | |
14518 | ac_status=$? | |
14519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14520 | (exit $ac_status); }; }; then | |
14521 | ac_cv_lib_m_scalbnf=yes | |
14522 | else | |
14523 | echo "$as_me: failed program was:" >&5 | |
14524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14525 | ||
14526 | ac_cv_lib_m_scalbnf=no | |
14527 | fi | |
14528 | rm -f conftest.err conftest.$ac_objext \ | |
14529 | conftest$ac_exeext conftest.$ac_ext | |
14530 | LIBS=$ac_check_lib_save_LIBS | |
14531 | fi | |
14532 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5 | |
14533 | echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6 | |
14534 | if test $ac_cv_lib_m_scalbnf = yes; then | |
14535 | ||
14536 | cat >>confdefs.h <<\_ACEOF | |
14537 | #define HAVE_SCALBNF 1 | |
14538 | _ACEOF | |
14539 | ||
14540 | fi | |
14541 | ||
14542 | echo "$as_me:$LINENO: checking for scalbn in -lm" >&5 | |
14543 | echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6 | |
14544 | if test "${ac_cv_lib_m_scalbn+set}" = set; then | |
14545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14546 | else | |
14547 | ac_check_lib_save_LIBS=$LIBS | |
14548 | LIBS="-lm $LIBS" | |
14549 | if test x$gcc_no_link = xyes; then | |
14550 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14551 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14552 | { (exit 1); exit 1; }; } | |
14553 | fi | |
14554 | cat >conftest.$ac_ext <<_ACEOF | |
14555 | /* confdefs.h. */ | |
14556 | _ACEOF | |
14557 | cat confdefs.h >>conftest.$ac_ext | |
14558 | cat >>conftest.$ac_ext <<_ACEOF | |
14559 | /* end confdefs.h. */ | |
14560 | ||
14561 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14562 | #ifdef __cplusplus | |
14563 | extern "C" | |
14564 | #endif | |
14565 | /* We use char because int might match the return type of a gcc2 | |
14566 | builtin and then its argument prototype would still apply. */ | |
14567 | char scalbn (); | |
14568 | int | |
14569 | main () | |
14570 | { | |
14571 | scalbn (); | |
14572 | ; | |
14573 | return 0; | |
14574 | } | |
14575 | _ACEOF | |
14576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14578 | (eval $ac_link) 2>conftest.er1 | |
14579 | ac_status=$? | |
14580 | grep -v '^ *+' conftest.er1 >conftest.err | |
14581 | rm -f conftest.er1 | |
14582 | cat conftest.err >&5 | |
14583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14584 | (exit $ac_status); } && | |
b56cb1ff | 14585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14587 | (eval $ac_try) 2>&5 | |
14588 | ac_status=$? | |
14589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14590 | (exit $ac_status); }; } && | |
14591 | { ac_try='test -s conftest$ac_exeext' | |
14592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14593 | (eval $ac_try) 2>&5 | |
14594 | ac_status=$? | |
14595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14596 | (exit $ac_status); }; }; then | |
14597 | ac_cv_lib_m_scalbn=yes | |
14598 | else | |
14599 | echo "$as_me: failed program was:" >&5 | |
14600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14601 | ||
14602 | ac_cv_lib_m_scalbn=no | |
14603 | fi | |
14604 | rm -f conftest.err conftest.$ac_objext \ | |
14605 | conftest$ac_exeext conftest.$ac_ext | |
14606 | LIBS=$ac_check_lib_save_LIBS | |
14607 | fi | |
14608 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5 | |
14609 | echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6 | |
14610 | if test $ac_cv_lib_m_scalbn = yes; then | |
14611 | ||
14612 | cat >>confdefs.h <<\_ACEOF | |
14613 | #define HAVE_SCALBN 1 | |
14614 | _ACEOF | |
14615 | ||
14616 | fi | |
14617 | ||
14618 | echo "$as_me:$LINENO: checking for scalbnl in -lm" >&5 | |
14619 | echo $ECHO_N "checking for scalbnl in -lm... $ECHO_C" >&6 | |
14620 | if test "${ac_cv_lib_m_scalbnl+set}" = set; then | |
14621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14622 | else | |
14623 | ac_check_lib_save_LIBS=$LIBS | |
14624 | LIBS="-lm $LIBS" | |
14625 | if test x$gcc_no_link = xyes; then | |
14626 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14627 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14628 | { (exit 1); exit 1; }; } | |
14629 | fi | |
14630 | cat >conftest.$ac_ext <<_ACEOF | |
14631 | /* confdefs.h. */ | |
14632 | _ACEOF | |
14633 | cat confdefs.h >>conftest.$ac_ext | |
14634 | cat >>conftest.$ac_ext <<_ACEOF | |
14635 | /* end confdefs.h. */ | |
14636 | ||
14637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14638 | #ifdef __cplusplus | |
14639 | extern "C" | |
14640 | #endif | |
14641 | /* We use char because int might match the return type of a gcc2 | |
14642 | builtin and then its argument prototype would still apply. */ | |
14643 | char scalbnl (); | |
14644 | int | |
14645 | main () | |
14646 | { | |
14647 | scalbnl (); | |
14648 | ; | |
14649 | return 0; | |
14650 | } | |
14651 | _ACEOF | |
14652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14654 | (eval $ac_link) 2>conftest.er1 | |
14655 | ac_status=$? | |
14656 | grep -v '^ *+' conftest.er1 >conftest.err | |
14657 | rm -f conftest.er1 | |
14658 | cat conftest.err >&5 | |
14659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14660 | (exit $ac_status); } && | |
b56cb1ff | 14661 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14663 | (eval $ac_try) 2>&5 | |
14664 | ac_status=$? | |
14665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14666 | (exit $ac_status); }; } && | |
14667 | { ac_try='test -s conftest$ac_exeext' | |
14668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14669 | (eval $ac_try) 2>&5 | |
14670 | ac_status=$? | |
14671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14672 | (exit $ac_status); }; }; then | |
14673 | ac_cv_lib_m_scalbnl=yes | |
14674 | else | |
14675 | echo "$as_me: failed program was:" >&5 | |
14676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14677 | ||
14678 | ac_cv_lib_m_scalbnl=no | |
14679 | fi | |
14680 | rm -f conftest.err conftest.$ac_objext \ | |
14681 | conftest$ac_exeext conftest.$ac_ext | |
14682 | LIBS=$ac_check_lib_save_LIBS | |
14683 | fi | |
14684 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnl" >&5 | |
14685 | echo "${ECHO_T}$ac_cv_lib_m_scalbnl" >&6 | |
14686 | if test $ac_cv_lib_m_scalbnl = yes; then | |
14687 | ||
14688 | cat >>confdefs.h <<\_ACEOF | |
14689 | #define HAVE_SCALBNL 1 | |
14690 | _ACEOF | |
14691 | ||
14692 | fi | |
14693 | ||
14694 | echo "$as_me:$LINENO: checking for sinf in -lm" >&5 | |
14695 | echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6 | |
14696 | if test "${ac_cv_lib_m_sinf+set}" = set; then | |
14697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14698 | else | |
14699 | ac_check_lib_save_LIBS=$LIBS | |
14700 | LIBS="-lm $LIBS" | |
14701 | if test x$gcc_no_link = xyes; then | |
14702 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14703 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14704 | { (exit 1); exit 1; }; } | |
14705 | fi | |
14706 | cat >conftest.$ac_ext <<_ACEOF | |
14707 | /* confdefs.h. */ | |
14708 | _ACEOF | |
14709 | cat confdefs.h >>conftest.$ac_ext | |
14710 | cat >>conftest.$ac_ext <<_ACEOF | |
14711 | /* end confdefs.h. */ | |
14712 | ||
14713 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14714 | #ifdef __cplusplus | |
14715 | extern "C" | |
14716 | #endif | |
14717 | /* We use char because int might match the return type of a gcc2 | |
14718 | builtin and then its argument prototype would still apply. */ | |
14719 | char sinf (); | |
14720 | int | |
14721 | main () | |
14722 | { | |
14723 | sinf (); | |
14724 | ; | |
14725 | return 0; | |
14726 | } | |
14727 | _ACEOF | |
14728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14730 | (eval $ac_link) 2>conftest.er1 | |
14731 | ac_status=$? | |
14732 | grep -v '^ *+' conftest.er1 >conftest.err | |
14733 | rm -f conftest.er1 | |
14734 | cat conftest.err >&5 | |
14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14736 | (exit $ac_status); } && | |
b56cb1ff | 14737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 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); }; } && | |
14743 | { ac_try='test -s conftest$ac_exeext' | |
14744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14745 | (eval $ac_try) 2>&5 | |
14746 | ac_status=$? | |
14747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14748 | (exit $ac_status); }; }; then | |
14749 | ac_cv_lib_m_sinf=yes | |
14750 | else | |
14751 | echo "$as_me: failed program was:" >&5 | |
14752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14753 | ||
14754 | ac_cv_lib_m_sinf=no | |
14755 | fi | |
14756 | rm -f conftest.err conftest.$ac_objext \ | |
14757 | conftest$ac_exeext conftest.$ac_ext | |
14758 | LIBS=$ac_check_lib_save_LIBS | |
14759 | fi | |
14760 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5 | |
14761 | echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6 | |
14762 | if test $ac_cv_lib_m_sinf = yes; then | |
14763 | ||
14764 | cat >>confdefs.h <<\_ACEOF | |
14765 | #define HAVE_SINF 1 | |
14766 | _ACEOF | |
14767 | ||
14768 | fi | |
14769 | ||
14770 | echo "$as_me:$LINENO: checking for sin in -lm" >&5 | |
14771 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 | |
14772 | if test "${ac_cv_lib_m_sin+set}" = set; then | |
14773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14774 | else | |
14775 | ac_check_lib_save_LIBS=$LIBS | |
14776 | LIBS="-lm $LIBS" | |
14777 | if test x$gcc_no_link = xyes; then | |
14778 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14779 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14780 | { (exit 1); exit 1; }; } | |
14781 | fi | |
14782 | cat >conftest.$ac_ext <<_ACEOF | |
14783 | /* confdefs.h. */ | |
14784 | _ACEOF | |
14785 | cat confdefs.h >>conftest.$ac_ext | |
14786 | cat >>conftest.$ac_ext <<_ACEOF | |
14787 | /* end confdefs.h. */ | |
14788 | ||
14789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14790 | #ifdef __cplusplus | |
14791 | extern "C" | |
14792 | #endif | |
14793 | /* We use char because int might match the return type of a gcc2 | |
14794 | builtin and then its argument prototype would still apply. */ | |
14795 | char sin (); | |
14796 | int | |
14797 | main () | |
14798 | { | |
14799 | sin (); | |
14800 | ; | |
14801 | return 0; | |
14802 | } | |
14803 | _ACEOF | |
14804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14806 | (eval $ac_link) 2>conftest.er1 | |
14807 | ac_status=$? | |
14808 | grep -v '^ *+' conftest.er1 >conftest.err | |
14809 | rm -f conftest.er1 | |
14810 | cat conftest.err >&5 | |
14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14812 | (exit $ac_status); } && | |
b56cb1ff | 14813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14815 | (eval $ac_try) 2>&5 | |
14816 | ac_status=$? | |
14817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14818 | (exit $ac_status); }; } && | |
14819 | { ac_try='test -s conftest$ac_exeext' | |
14820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14821 | (eval $ac_try) 2>&5 | |
14822 | ac_status=$? | |
14823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14824 | (exit $ac_status); }; }; then | |
14825 | ac_cv_lib_m_sin=yes | |
14826 | else | |
14827 | echo "$as_me: failed program was:" >&5 | |
14828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14829 | ||
14830 | ac_cv_lib_m_sin=no | |
14831 | fi | |
14832 | rm -f conftest.err conftest.$ac_objext \ | |
14833 | conftest$ac_exeext conftest.$ac_ext | |
14834 | LIBS=$ac_check_lib_save_LIBS | |
14835 | fi | |
14836 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 | |
14837 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 | |
14838 | if test $ac_cv_lib_m_sin = yes; then | |
14839 | ||
14840 | cat >>confdefs.h <<\_ACEOF | |
14841 | #define HAVE_SIN 1 | |
14842 | _ACEOF | |
14843 | ||
14844 | fi | |
14845 | ||
14846 | echo "$as_me:$LINENO: checking for sinl in -lm" >&5 | |
14847 | echo $ECHO_N "checking for sinl in -lm... $ECHO_C" >&6 | |
14848 | if test "${ac_cv_lib_m_sinl+set}" = set; then | |
14849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14850 | else | |
14851 | ac_check_lib_save_LIBS=$LIBS | |
14852 | LIBS="-lm $LIBS" | |
14853 | if test x$gcc_no_link = xyes; then | |
14854 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14855 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14856 | { (exit 1); exit 1; }; } | |
14857 | fi | |
14858 | cat >conftest.$ac_ext <<_ACEOF | |
14859 | /* confdefs.h. */ | |
14860 | _ACEOF | |
14861 | cat confdefs.h >>conftest.$ac_ext | |
14862 | cat >>conftest.$ac_ext <<_ACEOF | |
14863 | /* end confdefs.h. */ | |
14864 | ||
14865 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14866 | #ifdef __cplusplus | |
14867 | extern "C" | |
14868 | #endif | |
14869 | /* We use char because int might match the return type of a gcc2 | |
14870 | builtin and then its argument prototype would still apply. */ | |
14871 | char sinl (); | |
14872 | int | |
14873 | main () | |
14874 | { | |
14875 | sinl (); | |
14876 | ; | |
14877 | return 0; | |
14878 | } | |
14879 | _ACEOF | |
14880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14882 | (eval $ac_link) 2>conftest.er1 | |
14883 | ac_status=$? | |
14884 | grep -v '^ *+' conftest.er1 >conftest.err | |
14885 | rm -f conftest.er1 | |
14886 | cat conftest.err >&5 | |
14887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14888 | (exit $ac_status); } && | |
b56cb1ff | 14889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14891 | (eval $ac_try) 2>&5 | |
14892 | ac_status=$? | |
14893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14894 | (exit $ac_status); }; } && | |
14895 | { ac_try='test -s conftest$ac_exeext' | |
14896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14897 | (eval $ac_try) 2>&5 | |
14898 | ac_status=$? | |
14899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14900 | (exit $ac_status); }; }; then | |
14901 | ac_cv_lib_m_sinl=yes | |
14902 | else | |
14903 | echo "$as_me: failed program was:" >&5 | |
14904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14905 | ||
14906 | ac_cv_lib_m_sinl=no | |
14907 | fi | |
14908 | rm -f conftest.err conftest.$ac_objext \ | |
14909 | conftest$ac_exeext conftest.$ac_ext | |
14910 | LIBS=$ac_check_lib_save_LIBS | |
14911 | fi | |
14912 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinl" >&5 | |
14913 | echo "${ECHO_T}$ac_cv_lib_m_sinl" >&6 | |
14914 | if test $ac_cv_lib_m_sinl = yes; then | |
14915 | ||
14916 | cat >>confdefs.h <<\_ACEOF | |
14917 | #define HAVE_SINL 1 | |
14918 | _ACEOF | |
14919 | ||
14920 | fi | |
14921 | ||
14922 | echo "$as_me:$LINENO: checking for csinf in -lm" >&5 | |
14923 | echo $ECHO_N "checking for csinf in -lm... $ECHO_C" >&6 | |
14924 | if test "${ac_cv_lib_m_csinf+set}" = set; then | |
14925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14926 | else | |
14927 | ac_check_lib_save_LIBS=$LIBS | |
14928 | LIBS="-lm $LIBS" | |
14929 | if test x$gcc_no_link = xyes; then | |
14930 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14931 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14932 | { (exit 1); exit 1; }; } | |
14933 | fi | |
14934 | cat >conftest.$ac_ext <<_ACEOF | |
14935 | /* confdefs.h. */ | |
14936 | _ACEOF | |
14937 | cat confdefs.h >>conftest.$ac_ext | |
14938 | cat >>conftest.$ac_ext <<_ACEOF | |
14939 | /* end confdefs.h. */ | |
14940 | ||
14941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14942 | #ifdef __cplusplus | |
14943 | extern "C" | |
14944 | #endif | |
14945 | /* We use char because int might match the return type of a gcc2 | |
14946 | builtin and then its argument prototype would still apply. */ | |
14947 | char csinf (); | |
14948 | int | |
14949 | main () | |
14950 | { | |
14951 | csinf (); | |
14952 | ; | |
14953 | return 0; | |
14954 | } | |
14955 | _ACEOF | |
14956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14958 | (eval $ac_link) 2>conftest.er1 | |
14959 | ac_status=$? | |
14960 | grep -v '^ *+' conftest.er1 >conftest.err | |
14961 | rm -f conftest.er1 | |
14962 | cat conftest.err >&5 | |
14963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14964 | (exit $ac_status); } && | |
b56cb1ff | 14965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 14966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14967 | (eval $ac_try) 2>&5 | |
14968 | ac_status=$? | |
14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14970 | (exit $ac_status); }; } && | |
14971 | { ac_try='test -s conftest$ac_exeext' | |
14972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14973 | (eval $ac_try) 2>&5 | |
14974 | ac_status=$? | |
14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14976 | (exit $ac_status); }; }; then | |
14977 | ac_cv_lib_m_csinf=yes | |
14978 | else | |
14979 | echo "$as_me: failed program was:" >&5 | |
14980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14981 | ||
14982 | ac_cv_lib_m_csinf=no | |
14983 | fi | |
14984 | rm -f conftest.err conftest.$ac_objext \ | |
14985 | conftest$ac_exeext conftest.$ac_ext | |
14986 | LIBS=$ac_check_lib_save_LIBS | |
14987 | fi | |
14988 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinf" >&5 | |
14989 | echo "${ECHO_T}$ac_cv_lib_m_csinf" >&6 | |
14990 | if test $ac_cv_lib_m_csinf = yes; then | |
14991 | ||
14992 | cat >>confdefs.h <<\_ACEOF | |
14993 | #define HAVE_CSINF 1 | |
14994 | _ACEOF | |
14995 | ||
14996 | fi | |
14997 | ||
14998 | echo "$as_me:$LINENO: checking for csin in -lm" >&5 | |
14999 | echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6 | |
15000 | if test "${ac_cv_lib_m_csin+set}" = set; then | |
15001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15002 | else | |
15003 | ac_check_lib_save_LIBS=$LIBS | |
15004 | LIBS="-lm $LIBS" | |
15005 | if test x$gcc_no_link = xyes; then | |
15006 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15007 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15008 | { (exit 1); exit 1; }; } | |
15009 | fi | |
15010 | cat >conftest.$ac_ext <<_ACEOF | |
15011 | /* confdefs.h. */ | |
15012 | _ACEOF | |
15013 | cat confdefs.h >>conftest.$ac_ext | |
15014 | cat >>conftest.$ac_ext <<_ACEOF | |
15015 | /* end confdefs.h. */ | |
15016 | ||
15017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15018 | #ifdef __cplusplus | |
15019 | extern "C" | |
15020 | #endif | |
15021 | /* We use char because int might match the return type of a gcc2 | |
15022 | builtin and then its argument prototype would still apply. */ | |
15023 | char csin (); | |
15024 | int | |
15025 | main () | |
15026 | { | |
15027 | csin (); | |
15028 | ; | |
15029 | return 0; | |
15030 | } | |
15031 | _ACEOF | |
15032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15034 | (eval $ac_link) 2>conftest.er1 | |
15035 | ac_status=$? | |
15036 | grep -v '^ *+' conftest.er1 >conftest.err | |
15037 | rm -f conftest.er1 | |
15038 | cat conftest.err >&5 | |
15039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15040 | (exit $ac_status); } && | |
b56cb1ff | 15041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15043 | (eval $ac_try) 2>&5 | |
15044 | ac_status=$? | |
15045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15046 | (exit $ac_status); }; } && | |
15047 | { ac_try='test -s conftest$ac_exeext' | |
15048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15049 | (eval $ac_try) 2>&5 | |
15050 | ac_status=$? | |
15051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15052 | (exit $ac_status); }; }; then | |
15053 | ac_cv_lib_m_csin=yes | |
15054 | else | |
15055 | echo "$as_me: failed program was:" >&5 | |
15056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15057 | ||
15058 | ac_cv_lib_m_csin=no | |
15059 | fi | |
15060 | rm -f conftest.err conftest.$ac_objext \ | |
15061 | conftest$ac_exeext conftest.$ac_ext | |
15062 | LIBS=$ac_check_lib_save_LIBS | |
15063 | fi | |
15064 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5 | |
15065 | echo "${ECHO_T}$ac_cv_lib_m_csin" >&6 | |
15066 | if test $ac_cv_lib_m_csin = yes; then | |
15067 | ||
15068 | cat >>confdefs.h <<\_ACEOF | |
15069 | #define HAVE_CSIN 1 | |
15070 | _ACEOF | |
15071 | ||
15072 | fi | |
15073 | ||
15074 | echo "$as_me:$LINENO: checking for csinl in -lm" >&5 | |
15075 | echo $ECHO_N "checking for csinl in -lm... $ECHO_C" >&6 | |
15076 | if test "${ac_cv_lib_m_csinl+set}" = set; then | |
15077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15078 | else | |
15079 | ac_check_lib_save_LIBS=$LIBS | |
15080 | LIBS="-lm $LIBS" | |
15081 | if test x$gcc_no_link = xyes; then | |
15082 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15083 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15084 | { (exit 1); exit 1; }; } | |
15085 | fi | |
15086 | cat >conftest.$ac_ext <<_ACEOF | |
15087 | /* confdefs.h. */ | |
15088 | _ACEOF | |
15089 | cat confdefs.h >>conftest.$ac_ext | |
15090 | cat >>conftest.$ac_ext <<_ACEOF | |
15091 | /* end confdefs.h. */ | |
15092 | ||
15093 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15094 | #ifdef __cplusplus | |
15095 | extern "C" | |
15096 | #endif | |
15097 | /* We use char because int might match the return type of a gcc2 | |
15098 | builtin and then its argument prototype would still apply. */ | |
15099 | char csinl (); | |
15100 | int | |
15101 | main () | |
15102 | { | |
15103 | csinl (); | |
15104 | ; | |
15105 | return 0; | |
15106 | } | |
15107 | _ACEOF | |
15108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15110 | (eval $ac_link) 2>conftest.er1 | |
15111 | ac_status=$? | |
15112 | grep -v '^ *+' conftest.er1 >conftest.err | |
15113 | rm -f conftest.er1 | |
15114 | cat conftest.err >&5 | |
15115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15116 | (exit $ac_status); } && | |
b56cb1ff | 15117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15119 | (eval $ac_try) 2>&5 | |
15120 | ac_status=$? | |
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15122 | (exit $ac_status); }; } && | |
15123 | { ac_try='test -s conftest$ac_exeext' | |
15124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15125 | (eval $ac_try) 2>&5 | |
15126 | ac_status=$? | |
15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15128 | (exit $ac_status); }; }; then | |
15129 | ac_cv_lib_m_csinl=yes | |
15130 | else | |
15131 | echo "$as_me: failed program was:" >&5 | |
15132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15133 | ||
15134 | ac_cv_lib_m_csinl=no | |
15135 | fi | |
15136 | rm -f conftest.err conftest.$ac_objext \ | |
15137 | conftest$ac_exeext conftest.$ac_ext | |
15138 | LIBS=$ac_check_lib_save_LIBS | |
15139 | fi | |
15140 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinl" >&5 | |
15141 | echo "${ECHO_T}$ac_cv_lib_m_csinl" >&6 | |
15142 | if test $ac_cv_lib_m_csinl = yes; then | |
15143 | ||
15144 | cat >>confdefs.h <<\_ACEOF | |
15145 | #define HAVE_CSINL 1 | |
15146 | _ACEOF | |
15147 | ||
15148 | fi | |
15149 | ||
15150 | echo "$as_me:$LINENO: checking for sinhf in -lm" >&5 | |
15151 | echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6 | |
15152 | if test "${ac_cv_lib_m_sinhf+set}" = set; then | |
15153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15154 | else | |
15155 | ac_check_lib_save_LIBS=$LIBS | |
15156 | LIBS="-lm $LIBS" | |
15157 | if test x$gcc_no_link = xyes; then | |
15158 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15159 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15160 | { (exit 1); exit 1; }; } | |
15161 | fi | |
15162 | cat >conftest.$ac_ext <<_ACEOF | |
15163 | /* confdefs.h. */ | |
15164 | _ACEOF | |
15165 | cat confdefs.h >>conftest.$ac_ext | |
15166 | cat >>conftest.$ac_ext <<_ACEOF | |
15167 | /* end confdefs.h. */ | |
15168 | ||
15169 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15170 | #ifdef __cplusplus | |
15171 | extern "C" | |
15172 | #endif | |
15173 | /* We use char because int might match the return type of a gcc2 | |
15174 | builtin and then its argument prototype would still apply. */ | |
15175 | char sinhf (); | |
15176 | int | |
15177 | main () | |
15178 | { | |
15179 | sinhf (); | |
15180 | ; | |
15181 | return 0; | |
15182 | } | |
15183 | _ACEOF | |
15184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15186 | (eval $ac_link) 2>conftest.er1 | |
15187 | ac_status=$? | |
15188 | grep -v '^ *+' conftest.er1 >conftest.err | |
15189 | rm -f conftest.er1 | |
15190 | cat conftest.err >&5 | |
15191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15192 | (exit $ac_status); } && | |
b56cb1ff | 15193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 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_sinhf=yes | |
15206 | else | |
15207 | echo "$as_me: failed program was:" >&5 | |
15208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15209 | ||
15210 | ac_cv_lib_m_sinhf=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_sinhf" >&5 | |
15217 | echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6 | |
15218 | if test $ac_cv_lib_m_sinhf = yes; then | |
15219 | ||
15220 | cat >>confdefs.h <<\_ACEOF | |
15221 | #define HAVE_SINHF 1 | |
15222 | _ACEOF | |
15223 | ||
15224 | fi | |
15225 | ||
15226 | echo "$as_me:$LINENO: checking for sinh in -lm" >&5 | |
15227 | echo $ECHO_N "checking for sinh in -lm... $ECHO_C" >&6 | |
15228 | if test "${ac_cv_lib_m_sinh+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 sinh (); | |
15252 | int | |
15253 | main () | |
15254 | { | |
15255 | sinh (); | |
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); } && | |
b56cb1ff | 15269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15271 | (eval $ac_try) 2>&5 | |
15272 | ac_status=$? | |
15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15274 | (exit $ac_status); }; } && | |
15275 | { ac_try='test -s conftest$ac_exeext' | |
15276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15277 | (eval $ac_try) 2>&5 | |
15278 | ac_status=$? | |
15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15280 | (exit $ac_status); }; }; then | |
15281 | ac_cv_lib_m_sinh=yes | |
15282 | else | |
15283 | echo "$as_me: failed program was:" >&5 | |
15284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15285 | ||
15286 | ac_cv_lib_m_sinh=no | |
15287 | fi | |
15288 | rm -f conftest.err conftest.$ac_objext \ | |
15289 | conftest$ac_exeext conftest.$ac_ext | |
15290 | LIBS=$ac_check_lib_save_LIBS | |
15291 | fi | |
15292 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinh" >&5 | |
15293 | echo "${ECHO_T}$ac_cv_lib_m_sinh" >&6 | |
15294 | if test $ac_cv_lib_m_sinh = yes; then | |
15295 | ||
15296 | cat >>confdefs.h <<\_ACEOF | |
15297 | #define HAVE_SINH 1 | |
15298 | _ACEOF | |
15299 | ||
15300 | fi | |
15301 | ||
15302 | echo "$as_me:$LINENO: checking for sinhl in -lm" >&5 | |
15303 | echo $ECHO_N "checking for sinhl in -lm... $ECHO_C" >&6 | |
15304 | if test "${ac_cv_lib_m_sinhl+set}" = set; then | |
15305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15306 | else | |
15307 | ac_check_lib_save_LIBS=$LIBS | |
15308 | LIBS="-lm $LIBS" | |
15309 | if test x$gcc_no_link = xyes; then | |
15310 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15311 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15312 | { (exit 1); exit 1; }; } | |
15313 | fi | |
15314 | cat >conftest.$ac_ext <<_ACEOF | |
15315 | /* confdefs.h. */ | |
15316 | _ACEOF | |
15317 | cat confdefs.h >>conftest.$ac_ext | |
15318 | cat >>conftest.$ac_ext <<_ACEOF | |
15319 | /* end confdefs.h. */ | |
15320 | ||
15321 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15322 | #ifdef __cplusplus | |
15323 | extern "C" | |
15324 | #endif | |
15325 | /* We use char because int might match the return type of a gcc2 | |
15326 | builtin and then its argument prototype would still apply. */ | |
15327 | char sinhl (); | |
15328 | int | |
15329 | main () | |
15330 | { | |
15331 | sinhl (); | |
15332 | ; | |
15333 | return 0; | |
15334 | } | |
15335 | _ACEOF | |
15336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15338 | (eval $ac_link) 2>conftest.er1 | |
15339 | ac_status=$? | |
15340 | grep -v '^ *+' conftest.er1 >conftest.err | |
15341 | rm -f conftest.er1 | |
15342 | cat conftest.err >&5 | |
15343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15344 | (exit $ac_status); } && | |
b56cb1ff | 15345 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15347 | (eval $ac_try) 2>&5 | |
15348 | ac_status=$? | |
15349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15350 | (exit $ac_status); }; } && | |
15351 | { ac_try='test -s conftest$ac_exeext' | |
15352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15353 | (eval $ac_try) 2>&5 | |
15354 | ac_status=$? | |
15355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15356 | (exit $ac_status); }; }; then | |
15357 | ac_cv_lib_m_sinhl=yes | |
15358 | else | |
15359 | echo "$as_me: failed program was:" >&5 | |
15360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15361 | ||
15362 | ac_cv_lib_m_sinhl=no | |
15363 | fi | |
15364 | rm -f conftest.err conftest.$ac_objext \ | |
15365 | conftest$ac_exeext conftest.$ac_ext | |
15366 | LIBS=$ac_check_lib_save_LIBS | |
15367 | fi | |
15368 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhl" >&5 | |
15369 | echo "${ECHO_T}$ac_cv_lib_m_sinhl" >&6 | |
15370 | if test $ac_cv_lib_m_sinhl = yes; then | |
15371 | ||
15372 | cat >>confdefs.h <<\_ACEOF | |
15373 | #define HAVE_SINHL 1 | |
15374 | _ACEOF | |
15375 | ||
15376 | fi | |
15377 | ||
15378 | echo "$as_me:$LINENO: checking for csinhf in -lm" >&5 | |
15379 | echo $ECHO_N "checking for csinhf in -lm... $ECHO_C" >&6 | |
15380 | if test "${ac_cv_lib_m_csinhf+set}" = set; then | |
15381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15382 | else | |
15383 | ac_check_lib_save_LIBS=$LIBS | |
15384 | LIBS="-lm $LIBS" | |
15385 | if test x$gcc_no_link = xyes; then | |
15386 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15387 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15388 | { (exit 1); exit 1; }; } | |
15389 | fi | |
15390 | cat >conftest.$ac_ext <<_ACEOF | |
15391 | /* confdefs.h. */ | |
15392 | _ACEOF | |
15393 | cat confdefs.h >>conftest.$ac_ext | |
15394 | cat >>conftest.$ac_ext <<_ACEOF | |
15395 | /* end confdefs.h. */ | |
15396 | ||
15397 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15398 | #ifdef __cplusplus | |
15399 | extern "C" | |
15400 | #endif | |
15401 | /* We use char because int might match the return type of a gcc2 | |
15402 | builtin and then its argument prototype would still apply. */ | |
15403 | char csinhf (); | |
15404 | int | |
15405 | main () | |
15406 | { | |
15407 | csinhf (); | |
15408 | ; | |
15409 | return 0; | |
15410 | } | |
15411 | _ACEOF | |
15412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15414 | (eval $ac_link) 2>conftest.er1 | |
15415 | ac_status=$? | |
15416 | grep -v '^ *+' conftest.er1 >conftest.err | |
15417 | rm -f conftest.er1 | |
15418 | cat conftest.err >&5 | |
15419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15420 | (exit $ac_status); } && | |
b56cb1ff | 15421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15423 | (eval $ac_try) 2>&5 | |
15424 | ac_status=$? | |
15425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15426 | (exit $ac_status); }; } && | |
15427 | { ac_try='test -s conftest$ac_exeext' | |
15428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15429 | (eval $ac_try) 2>&5 | |
15430 | ac_status=$? | |
15431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15432 | (exit $ac_status); }; }; then | |
15433 | ac_cv_lib_m_csinhf=yes | |
15434 | else | |
15435 | echo "$as_me: failed program was:" >&5 | |
15436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15437 | ||
15438 | ac_cv_lib_m_csinhf=no | |
15439 | fi | |
15440 | rm -f conftest.err conftest.$ac_objext \ | |
15441 | conftest$ac_exeext conftest.$ac_ext | |
15442 | LIBS=$ac_check_lib_save_LIBS | |
15443 | fi | |
15444 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhf" >&5 | |
15445 | echo "${ECHO_T}$ac_cv_lib_m_csinhf" >&6 | |
15446 | if test $ac_cv_lib_m_csinhf = yes; then | |
15447 | ||
15448 | cat >>confdefs.h <<\_ACEOF | |
15449 | #define HAVE_CSINHF 1 | |
15450 | _ACEOF | |
15451 | ||
15452 | fi | |
15453 | ||
15454 | echo "$as_me:$LINENO: checking for csinh in -lm" >&5 | |
15455 | echo $ECHO_N "checking for csinh in -lm... $ECHO_C" >&6 | |
15456 | if test "${ac_cv_lib_m_csinh+set}" = set; then | |
15457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15458 | else | |
15459 | ac_check_lib_save_LIBS=$LIBS | |
15460 | LIBS="-lm $LIBS" | |
15461 | if test x$gcc_no_link = xyes; then | |
15462 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15463 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15464 | { (exit 1); exit 1; }; } | |
15465 | fi | |
15466 | cat >conftest.$ac_ext <<_ACEOF | |
15467 | /* confdefs.h. */ | |
15468 | _ACEOF | |
15469 | cat confdefs.h >>conftest.$ac_ext | |
15470 | cat >>conftest.$ac_ext <<_ACEOF | |
15471 | /* end confdefs.h. */ | |
15472 | ||
15473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15474 | #ifdef __cplusplus | |
15475 | extern "C" | |
15476 | #endif | |
15477 | /* We use char because int might match the return type of a gcc2 | |
15478 | builtin and then its argument prototype would still apply. */ | |
15479 | char csinh (); | |
15480 | int | |
15481 | main () | |
15482 | { | |
15483 | csinh (); | |
15484 | ; | |
15485 | return 0; | |
15486 | } | |
15487 | _ACEOF | |
15488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15490 | (eval $ac_link) 2>conftest.er1 | |
15491 | ac_status=$? | |
15492 | grep -v '^ *+' conftest.er1 >conftest.err | |
15493 | rm -f conftest.er1 | |
15494 | cat conftest.err >&5 | |
15495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15496 | (exit $ac_status); } && | |
b56cb1ff | 15497 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15499 | (eval $ac_try) 2>&5 | |
15500 | ac_status=$? | |
15501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15502 | (exit $ac_status); }; } && | |
15503 | { ac_try='test -s conftest$ac_exeext' | |
15504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15505 | (eval $ac_try) 2>&5 | |
15506 | ac_status=$? | |
15507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15508 | (exit $ac_status); }; }; then | |
15509 | ac_cv_lib_m_csinh=yes | |
15510 | else | |
15511 | echo "$as_me: failed program was:" >&5 | |
15512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15513 | ||
15514 | ac_cv_lib_m_csinh=no | |
15515 | fi | |
15516 | rm -f conftest.err conftest.$ac_objext \ | |
15517 | conftest$ac_exeext conftest.$ac_ext | |
15518 | LIBS=$ac_check_lib_save_LIBS | |
15519 | fi | |
15520 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinh" >&5 | |
15521 | echo "${ECHO_T}$ac_cv_lib_m_csinh" >&6 | |
15522 | if test $ac_cv_lib_m_csinh = yes; then | |
15523 | ||
15524 | cat >>confdefs.h <<\_ACEOF | |
15525 | #define HAVE_CSINH 1 | |
15526 | _ACEOF | |
15527 | ||
15528 | fi | |
15529 | ||
15530 | echo "$as_me:$LINENO: checking for csinhl in -lm" >&5 | |
15531 | echo $ECHO_N "checking for csinhl in -lm... $ECHO_C" >&6 | |
15532 | if test "${ac_cv_lib_m_csinhl+set}" = set; then | |
15533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15534 | else | |
15535 | ac_check_lib_save_LIBS=$LIBS | |
15536 | LIBS="-lm $LIBS" | |
15537 | if test x$gcc_no_link = xyes; then | |
15538 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15539 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15540 | { (exit 1); exit 1; }; } | |
15541 | fi | |
15542 | cat >conftest.$ac_ext <<_ACEOF | |
15543 | /* confdefs.h. */ | |
15544 | _ACEOF | |
15545 | cat confdefs.h >>conftest.$ac_ext | |
15546 | cat >>conftest.$ac_ext <<_ACEOF | |
15547 | /* end confdefs.h. */ | |
15548 | ||
15549 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15550 | #ifdef __cplusplus | |
15551 | extern "C" | |
15552 | #endif | |
15553 | /* We use char because int might match the return type of a gcc2 | |
15554 | builtin and then its argument prototype would still apply. */ | |
15555 | char csinhl (); | |
15556 | int | |
15557 | main () | |
15558 | { | |
15559 | csinhl (); | |
15560 | ; | |
15561 | return 0; | |
15562 | } | |
15563 | _ACEOF | |
15564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15566 | (eval $ac_link) 2>conftest.er1 | |
15567 | ac_status=$? | |
15568 | grep -v '^ *+' conftest.er1 >conftest.err | |
15569 | rm -f conftest.er1 | |
15570 | cat conftest.err >&5 | |
15571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15572 | (exit $ac_status); } && | |
b56cb1ff | 15573 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15575 | (eval $ac_try) 2>&5 | |
15576 | ac_status=$? | |
15577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15578 | (exit $ac_status); }; } && | |
15579 | { ac_try='test -s conftest$ac_exeext' | |
15580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15581 | (eval $ac_try) 2>&5 | |
15582 | ac_status=$? | |
15583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15584 | (exit $ac_status); }; }; then | |
15585 | ac_cv_lib_m_csinhl=yes | |
15586 | else | |
15587 | echo "$as_me: failed program was:" >&5 | |
15588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15589 | ||
15590 | ac_cv_lib_m_csinhl=no | |
15591 | fi | |
15592 | rm -f conftest.err conftest.$ac_objext \ | |
15593 | conftest$ac_exeext conftest.$ac_ext | |
15594 | LIBS=$ac_check_lib_save_LIBS | |
15595 | fi | |
15596 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhl" >&5 | |
15597 | echo "${ECHO_T}$ac_cv_lib_m_csinhl" >&6 | |
15598 | if test $ac_cv_lib_m_csinhl = yes; then | |
15599 | ||
15600 | cat >>confdefs.h <<\_ACEOF | |
15601 | #define HAVE_CSINHL 1 | |
15602 | _ACEOF | |
15603 | ||
15604 | fi | |
15605 | ||
15606 | echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5 | |
15607 | echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6 | |
15608 | if test "${ac_cv_lib_m_sqrtf+set}" = set; then | |
15609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15610 | else | |
15611 | ac_check_lib_save_LIBS=$LIBS | |
15612 | LIBS="-lm $LIBS" | |
15613 | if test x$gcc_no_link = xyes; then | |
15614 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15615 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15616 | { (exit 1); exit 1; }; } | |
15617 | fi | |
15618 | cat >conftest.$ac_ext <<_ACEOF | |
15619 | /* confdefs.h. */ | |
15620 | _ACEOF | |
15621 | cat confdefs.h >>conftest.$ac_ext | |
15622 | cat >>conftest.$ac_ext <<_ACEOF | |
15623 | /* end confdefs.h. */ | |
15624 | ||
15625 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15626 | #ifdef __cplusplus | |
15627 | extern "C" | |
15628 | #endif | |
15629 | /* We use char because int might match the return type of a gcc2 | |
15630 | builtin and then its argument prototype would still apply. */ | |
15631 | char sqrtf (); | |
15632 | int | |
15633 | main () | |
15634 | { | |
15635 | sqrtf (); | |
15636 | ; | |
15637 | return 0; | |
15638 | } | |
15639 | _ACEOF | |
15640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15642 | (eval $ac_link) 2>conftest.er1 | |
15643 | ac_status=$? | |
15644 | grep -v '^ *+' conftest.er1 >conftest.err | |
15645 | rm -f conftest.er1 | |
15646 | cat conftest.err >&5 | |
15647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15648 | (exit $ac_status); } && | |
b56cb1ff | 15649 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15651 | (eval $ac_try) 2>&5 | |
15652 | ac_status=$? | |
15653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15654 | (exit $ac_status); }; } && | |
15655 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
15661 | ac_cv_lib_m_sqrtf=yes | |
15662 | else | |
15663 | echo "$as_me: failed program was:" >&5 | |
15664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15665 | ||
15666 | ac_cv_lib_m_sqrtf=no | |
15667 | fi | |
15668 | rm -f conftest.err conftest.$ac_objext \ | |
15669 | conftest$ac_exeext conftest.$ac_ext | |
15670 | LIBS=$ac_check_lib_save_LIBS | |
15671 | fi | |
15672 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5 | |
15673 | echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6 | |
15674 | if test $ac_cv_lib_m_sqrtf = yes; then | |
15675 | ||
15676 | cat >>confdefs.h <<\_ACEOF | |
15677 | #define HAVE_SQRTF 1 | |
15678 | _ACEOF | |
15679 | ||
15680 | fi | |
15681 | ||
15682 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 | |
15683 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 | |
15684 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
15685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15686 | else | |
15687 | ac_check_lib_save_LIBS=$LIBS | |
15688 | LIBS="-lm $LIBS" | |
15689 | if test x$gcc_no_link = xyes; then | |
15690 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15691 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15692 | { (exit 1); exit 1; }; } | |
15693 | fi | |
15694 | cat >conftest.$ac_ext <<_ACEOF | |
15695 | /* confdefs.h. */ | |
15696 | _ACEOF | |
15697 | cat confdefs.h >>conftest.$ac_ext | |
15698 | cat >>conftest.$ac_ext <<_ACEOF | |
15699 | /* end confdefs.h. */ | |
15700 | ||
15701 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15702 | #ifdef __cplusplus | |
15703 | extern "C" | |
15704 | #endif | |
15705 | /* We use char because int might match the return type of a gcc2 | |
15706 | builtin and then its argument prototype would still apply. */ | |
15707 | char sqrt (); | |
15708 | int | |
15709 | main () | |
15710 | { | |
15711 | sqrt (); | |
15712 | ; | |
15713 | return 0; | |
15714 | } | |
15715 | _ACEOF | |
15716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15718 | (eval $ac_link) 2>conftest.er1 | |
15719 | ac_status=$? | |
15720 | grep -v '^ *+' conftest.er1 >conftest.err | |
15721 | rm -f conftest.er1 | |
15722 | cat conftest.err >&5 | |
15723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15724 | (exit $ac_status); } && | |
b56cb1ff | 15725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15727 | (eval $ac_try) 2>&5 | |
15728 | ac_status=$? | |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15730 | (exit $ac_status); }; } && | |
15731 | { ac_try='test -s conftest$ac_exeext' | |
15732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15733 | (eval $ac_try) 2>&5 | |
15734 | ac_status=$? | |
15735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15736 | (exit $ac_status); }; }; then | |
15737 | ac_cv_lib_m_sqrt=yes | |
15738 | else | |
15739 | echo "$as_me: failed program was:" >&5 | |
15740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15741 | ||
15742 | ac_cv_lib_m_sqrt=no | |
15743 | fi | |
15744 | rm -f conftest.err conftest.$ac_objext \ | |
15745 | conftest$ac_exeext conftest.$ac_ext | |
15746 | LIBS=$ac_check_lib_save_LIBS | |
15747 | fi | |
15748 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 | |
15749 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 | |
15750 | if test $ac_cv_lib_m_sqrt = yes; then | |
15751 | ||
15752 | cat >>confdefs.h <<\_ACEOF | |
15753 | #define HAVE_SQRT 1 | |
15754 | _ACEOF | |
15755 | ||
15756 | fi | |
15757 | ||
15758 | echo "$as_me:$LINENO: checking for sqrtl in -lm" >&5 | |
15759 | echo $ECHO_N "checking for sqrtl in -lm... $ECHO_C" >&6 | |
15760 | if test "${ac_cv_lib_m_sqrtl+set}" = set; then | |
15761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15762 | else | |
15763 | ac_check_lib_save_LIBS=$LIBS | |
15764 | LIBS="-lm $LIBS" | |
15765 | if test x$gcc_no_link = xyes; then | |
15766 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15767 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15768 | { (exit 1); exit 1; }; } | |
15769 | fi | |
15770 | cat >conftest.$ac_ext <<_ACEOF | |
15771 | /* confdefs.h. */ | |
15772 | _ACEOF | |
15773 | cat confdefs.h >>conftest.$ac_ext | |
15774 | cat >>conftest.$ac_ext <<_ACEOF | |
15775 | /* end confdefs.h. */ | |
15776 | ||
15777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15778 | #ifdef __cplusplus | |
15779 | extern "C" | |
15780 | #endif | |
15781 | /* We use char because int might match the return type of a gcc2 | |
15782 | builtin and then its argument prototype would still apply. */ | |
15783 | char sqrtl (); | |
15784 | int | |
15785 | main () | |
15786 | { | |
15787 | sqrtl (); | |
15788 | ; | |
15789 | return 0; | |
15790 | } | |
15791 | _ACEOF | |
15792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15794 | (eval $ac_link) 2>conftest.er1 | |
15795 | ac_status=$? | |
15796 | grep -v '^ *+' conftest.er1 >conftest.err | |
15797 | rm -f conftest.er1 | |
15798 | cat conftest.err >&5 | |
15799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15800 | (exit $ac_status); } && | |
b56cb1ff | 15801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15803 | (eval $ac_try) 2>&5 | |
15804 | ac_status=$? | |
15805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15806 | (exit $ac_status); }; } && | |
15807 | { ac_try='test -s conftest$ac_exeext' | |
15808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15809 | (eval $ac_try) 2>&5 | |
15810 | ac_status=$? | |
15811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15812 | (exit $ac_status); }; }; then | |
15813 | ac_cv_lib_m_sqrtl=yes | |
15814 | else | |
15815 | echo "$as_me: failed program was:" >&5 | |
15816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15817 | ||
15818 | ac_cv_lib_m_sqrtl=no | |
15819 | fi | |
15820 | rm -f conftest.err conftest.$ac_objext \ | |
15821 | conftest$ac_exeext conftest.$ac_ext | |
15822 | LIBS=$ac_check_lib_save_LIBS | |
15823 | fi | |
15824 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtl" >&5 | |
15825 | echo "${ECHO_T}$ac_cv_lib_m_sqrtl" >&6 | |
15826 | if test $ac_cv_lib_m_sqrtl = yes; then | |
15827 | ||
15828 | cat >>confdefs.h <<\_ACEOF | |
15829 | #define HAVE_SQRTL 1 | |
15830 | _ACEOF | |
15831 | ||
15832 | fi | |
15833 | ||
15834 | echo "$as_me:$LINENO: checking for csqrtf in -lm" >&5 | |
15835 | echo $ECHO_N "checking for csqrtf in -lm... $ECHO_C" >&6 | |
15836 | if test "${ac_cv_lib_m_csqrtf+set}" = set; then | |
15837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15838 | else | |
15839 | ac_check_lib_save_LIBS=$LIBS | |
15840 | LIBS="-lm $LIBS" | |
15841 | if test x$gcc_no_link = xyes; then | |
15842 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15843 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15844 | { (exit 1); exit 1; }; } | |
15845 | fi | |
15846 | cat >conftest.$ac_ext <<_ACEOF | |
15847 | /* confdefs.h. */ | |
15848 | _ACEOF | |
15849 | cat confdefs.h >>conftest.$ac_ext | |
15850 | cat >>conftest.$ac_ext <<_ACEOF | |
15851 | /* end confdefs.h. */ | |
15852 | ||
15853 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15854 | #ifdef __cplusplus | |
15855 | extern "C" | |
15856 | #endif | |
15857 | /* We use char because int might match the return type of a gcc2 | |
15858 | builtin and then its argument prototype would still apply. */ | |
15859 | char csqrtf (); | |
15860 | int | |
15861 | main () | |
15862 | { | |
15863 | csqrtf (); | |
15864 | ; | |
15865 | return 0; | |
15866 | } | |
15867 | _ACEOF | |
15868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15870 | (eval $ac_link) 2>conftest.er1 | |
15871 | ac_status=$? | |
15872 | grep -v '^ *+' conftest.er1 >conftest.err | |
15873 | rm -f conftest.er1 | |
15874 | cat conftest.err >&5 | |
15875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15876 | (exit $ac_status); } && | |
b56cb1ff | 15877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15879 | (eval $ac_try) 2>&5 | |
15880 | ac_status=$? | |
15881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15882 | (exit $ac_status); }; } && | |
15883 | { ac_try='test -s conftest$ac_exeext' | |
15884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15885 | (eval $ac_try) 2>&5 | |
15886 | ac_status=$? | |
15887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15888 | (exit $ac_status); }; }; then | |
15889 | ac_cv_lib_m_csqrtf=yes | |
15890 | else | |
15891 | echo "$as_me: failed program was:" >&5 | |
15892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15893 | ||
15894 | ac_cv_lib_m_csqrtf=no | |
15895 | fi | |
15896 | rm -f conftest.err conftest.$ac_objext \ | |
15897 | conftest$ac_exeext conftest.$ac_ext | |
15898 | LIBS=$ac_check_lib_save_LIBS | |
15899 | fi | |
15900 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtf" >&5 | |
15901 | echo "${ECHO_T}$ac_cv_lib_m_csqrtf" >&6 | |
15902 | if test $ac_cv_lib_m_csqrtf = yes; then | |
15903 | ||
15904 | cat >>confdefs.h <<\_ACEOF | |
15905 | #define HAVE_CSQRTF 1 | |
15906 | _ACEOF | |
15907 | ||
15908 | fi | |
15909 | ||
15910 | echo "$as_me:$LINENO: checking for csqrt in -lm" >&5 | |
15911 | echo $ECHO_N "checking for csqrt in -lm... $ECHO_C" >&6 | |
15912 | if test "${ac_cv_lib_m_csqrt+set}" = set; then | |
15913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15914 | else | |
15915 | ac_check_lib_save_LIBS=$LIBS | |
15916 | LIBS="-lm $LIBS" | |
15917 | if test x$gcc_no_link = xyes; then | |
15918 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15919 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15920 | { (exit 1); exit 1; }; } | |
15921 | fi | |
15922 | cat >conftest.$ac_ext <<_ACEOF | |
15923 | /* confdefs.h. */ | |
15924 | _ACEOF | |
15925 | cat confdefs.h >>conftest.$ac_ext | |
15926 | cat >>conftest.$ac_ext <<_ACEOF | |
15927 | /* end confdefs.h. */ | |
15928 | ||
15929 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15930 | #ifdef __cplusplus | |
15931 | extern "C" | |
15932 | #endif | |
15933 | /* We use char because int might match the return type of a gcc2 | |
15934 | builtin and then its argument prototype would still apply. */ | |
15935 | char csqrt (); | |
15936 | int | |
15937 | main () | |
15938 | { | |
15939 | csqrt (); | |
15940 | ; | |
15941 | return 0; | |
15942 | } | |
15943 | _ACEOF | |
15944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15946 | (eval $ac_link) 2>conftest.er1 | |
15947 | ac_status=$? | |
15948 | grep -v '^ *+' conftest.er1 >conftest.err | |
15949 | rm -f conftest.er1 | |
15950 | cat conftest.err >&5 | |
15951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15952 | (exit $ac_status); } && | |
b56cb1ff | 15953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 15954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15955 | (eval $ac_try) 2>&5 | |
15956 | ac_status=$? | |
15957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15958 | (exit $ac_status); }; } && | |
15959 | { ac_try='test -s conftest$ac_exeext' | |
15960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15961 | (eval $ac_try) 2>&5 | |
15962 | ac_status=$? | |
15963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15964 | (exit $ac_status); }; }; then | |
15965 | ac_cv_lib_m_csqrt=yes | |
15966 | else | |
15967 | echo "$as_me: failed program was:" >&5 | |
15968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15969 | ||
15970 | ac_cv_lib_m_csqrt=no | |
15971 | fi | |
15972 | rm -f conftest.err conftest.$ac_objext \ | |
15973 | conftest$ac_exeext conftest.$ac_ext | |
15974 | LIBS=$ac_check_lib_save_LIBS | |
15975 | fi | |
15976 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrt" >&5 | |
15977 | echo "${ECHO_T}$ac_cv_lib_m_csqrt" >&6 | |
15978 | if test $ac_cv_lib_m_csqrt = yes; then | |
15979 | ||
15980 | cat >>confdefs.h <<\_ACEOF | |
15981 | #define HAVE_CSQRT 1 | |
15982 | _ACEOF | |
15983 | ||
15984 | fi | |
15985 | ||
15986 | echo "$as_me:$LINENO: checking for csqrtl in -lm" >&5 | |
15987 | echo $ECHO_N "checking for csqrtl in -lm... $ECHO_C" >&6 | |
15988 | if test "${ac_cv_lib_m_csqrtl+set}" = set; then | |
15989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15990 | else | |
15991 | ac_check_lib_save_LIBS=$LIBS | |
15992 | LIBS="-lm $LIBS" | |
15993 | if test x$gcc_no_link = xyes; then | |
15994 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15995 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15996 | { (exit 1); exit 1; }; } | |
15997 | fi | |
15998 | cat >conftest.$ac_ext <<_ACEOF | |
15999 | /* confdefs.h. */ | |
16000 | _ACEOF | |
16001 | cat confdefs.h >>conftest.$ac_ext | |
16002 | cat >>conftest.$ac_ext <<_ACEOF | |
16003 | /* end confdefs.h. */ | |
16004 | ||
16005 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16006 | #ifdef __cplusplus | |
16007 | extern "C" | |
16008 | #endif | |
16009 | /* We use char because int might match the return type of a gcc2 | |
16010 | builtin and then its argument prototype would still apply. */ | |
16011 | char csqrtl (); | |
16012 | int | |
16013 | main () | |
16014 | { | |
16015 | csqrtl (); | |
16016 | ; | |
16017 | return 0; | |
16018 | } | |
16019 | _ACEOF | |
16020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16022 | (eval $ac_link) 2>conftest.er1 | |
16023 | ac_status=$? | |
16024 | grep -v '^ *+' conftest.er1 >conftest.err | |
16025 | rm -f conftest.er1 | |
16026 | cat conftest.err >&5 | |
16027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16028 | (exit $ac_status); } && | |
b56cb1ff | 16029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16031 | (eval $ac_try) 2>&5 | |
16032 | ac_status=$? | |
16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16034 | (exit $ac_status); }; } && | |
16035 | { ac_try='test -s conftest$ac_exeext' | |
16036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16037 | (eval $ac_try) 2>&5 | |
16038 | ac_status=$? | |
16039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16040 | (exit $ac_status); }; }; then | |
16041 | ac_cv_lib_m_csqrtl=yes | |
16042 | else | |
16043 | echo "$as_me: failed program was:" >&5 | |
16044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16045 | ||
16046 | ac_cv_lib_m_csqrtl=no | |
16047 | fi | |
16048 | rm -f conftest.err conftest.$ac_objext \ | |
16049 | conftest$ac_exeext conftest.$ac_ext | |
16050 | LIBS=$ac_check_lib_save_LIBS | |
16051 | fi | |
16052 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtl" >&5 | |
16053 | echo "${ECHO_T}$ac_cv_lib_m_csqrtl" >&6 | |
16054 | if test $ac_cv_lib_m_csqrtl = yes; then | |
16055 | ||
16056 | cat >>confdefs.h <<\_ACEOF | |
16057 | #define HAVE_CSQRTL 1 | |
16058 | _ACEOF | |
16059 | ||
16060 | fi | |
16061 | ||
16062 | echo "$as_me:$LINENO: checking for tanf in -lm" >&5 | |
16063 | echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6 | |
16064 | if test "${ac_cv_lib_m_tanf+set}" = set; then | |
16065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16066 | else | |
16067 | ac_check_lib_save_LIBS=$LIBS | |
16068 | LIBS="-lm $LIBS" | |
16069 | if test x$gcc_no_link = xyes; then | |
16070 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16071 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16072 | { (exit 1); exit 1; }; } | |
16073 | fi | |
16074 | cat >conftest.$ac_ext <<_ACEOF | |
16075 | /* confdefs.h. */ | |
16076 | _ACEOF | |
16077 | cat confdefs.h >>conftest.$ac_ext | |
16078 | cat >>conftest.$ac_ext <<_ACEOF | |
16079 | /* end confdefs.h. */ | |
16080 | ||
16081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16082 | #ifdef __cplusplus | |
16083 | extern "C" | |
16084 | #endif | |
16085 | /* We use char because int might match the return type of a gcc2 | |
16086 | builtin and then its argument prototype would still apply. */ | |
16087 | char tanf (); | |
16088 | int | |
16089 | main () | |
16090 | { | |
16091 | tanf (); | |
16092 | ; | |
16093 | return 0; | |
16094 | } | |
16095 | _ACEOF | |
16096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16098 | (eval $ac_link) 2>conftest.er1 | |
16099 | ac_status=$? | |
16100 | grep -v '^ *+' conftest.er1 >conftest.err | |
16101 | rm -f conftest.er1 | |
16102 | cat conftest.err >&5 | |
16103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16104 | (exit $ac_status); } && | |
b56cb1ff | 16105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16107 | (eval $ac_try) 2>&5 | |
16108 | ac_status=$? | |
16109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16110 | (exit $ac_status); }; } && | |
16111 | { ac_try='test -s conftest$ac_exeext' | |
16112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16113 | (eval $ac_try) 2>&5 | |
16114 | ac_status=$? | |
16115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16116 | (exit $ac_status); }; }; then | |
16117 | ac_cv_lib_m_tanf=yes | |
16118 | else | |
16119 | echo "$as_me: failed program was:" >&5 | |
16120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16121 | ||
16122 | ac_cv_lib_m_tanf=no | |
16123 | fi | |
16124 | rm -f conftest.err conftest.$ac_objext \ | |
16125 | conftest$ac_exeext conftest.$ac_ext | |
16126 | LIBS=$ac_check_lib_save_LIBS | |
16127 | fi | |
16128 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5 | |
16129 | echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6 | |
16130 | if test $ac_cv_lib_m_tanf = yes; then | |
16131 | ||
16132 | cat >>confdefs.h <<\_ACEOF | |
16133 | #define HAVE_TANF 1 | |
16134 | _ACEOF | |
16135 | ||
16136 | fi | |
16137 | ||
16138 | echo "$as_me:$LINENO: checking for tan in -lm" >&5 | |
16139 | echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6 | |
16140 | if test "${ac_cv_lib_m_tan+set}" = set; then | |
16141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16142 | else | |
16143 | ac_check_lib_save_LIBS=$LIBS | |
16144 | LIBS="-lm $LIBS" | |
16145 | if test x$gcc_no_link = xyes; then | |
16146 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16147 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16148 | { (exit 1); exit 1; }; } | |
16149 | fi | |
16150 | cat >conftest.$ac_ext <<_ACEOF | |
16151 | /* confdefs.h. */ | |
16152 | _ACEOF | |
16153 | cat confdefs.h >>conftest.$ac_ext | |
16154 | cat >>conftest.$ac_ext <<_ACEOF | |
16155 | /* end confdefs.h. */ | |
16156 | ||
16157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16158 | #ifdef __cplusplus | |
16159 | extern "C" | |
16160 | #endif | |
16161 | /* We use char because int might match the return type of a gcc2 | |
16162 | builtin and then its argument prototype would still apply. */ | |
16163 | char tan (); | |
16164 | int | |
16165 | main () | |
16166 | { | |
16167 | tan (); | |
16168 | ; | |
16169 | return 0; | |
16170 | } | |
16171 | _ACEOF | |
16172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16174 | (eval $ac_link) 2>conftest.er1 | |
16175 | ac_status=$? | |
16176 | grep -v '^ *+' conftest.er1 >conftest.err | |
16177 | rm -f conftest.er1 | |
16178 | cat conftest.err >&5 | |
16179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16180 | (exit $ac_status); } && | |
b56cb1ff | 16181 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16183 | (eval $ac_try) 2>&5 | |
16184 | ac_status=$? | |
16185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16186 | (exit $ac_status); }; } && | |
16187 | { ac_try='test -s conftest$ac_exeext' | |
16188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16189 | (eval $ac_try) 2>&5 | |
16190 | ac_status=$? | |
16191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16192 | (exit $ac_status); }; }; then | |
16193 | ac_cv_lib_m_tan=yes | |
16194 | else | |
16195 | echo "$as_me: failed program was:" >&5 | |
16196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16197 | ||
16198 | ac_cv_lib_m_tan=no | |
16199 | fi | |
16200 | rm -f conftest.err conftest.$ac_objext \ | |
16201 | conftest$ac_exeext conftest.$ac_ext | |
16202 | LIBS=$ac_check_lib_save_LIBS | |
16203 | fi | |
16204 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5 | |
16205 | echo "${ECHO_T}$ac_cv_lib_m_tan" >&6 | |
16206 | if test $ac_cv_lib_m_tan = yes; then | |
16207 | ||
16208 | cat >>confdefs.h <<\_ACEOF | |
16209 | #define HAVE_TAN 1 | |
16210 | _ACEOF | |
16211 | ||
16212 | fi | |
16213 | ||
16214 | echo "$as_me:$LINENO: checking for tanl in -lm" >&5 | |
16215 | echo $ECHO_N "checking for tanl in -lm... $ECHO_C" >&6 | |
16216 | if test "${ac_cv_lib_m_tanl+set}" = set; then | |
16217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16218 | else | |
16219 | ac_check_lib_save_LIBS=$LIBS | |
16220 | LIBS="-lm $LIBS" | |
16221 | if test x$gcc_no_link = xyes; then | |
16222 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16223 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16224 | { (exit 1); exit 1; }; } | |
16225 | fi | |
16226 | cat >conftest.$ac_ext <<_ACEOF | |
16227 | /* confdefs.h. */ | |
16228 | _ACEOF | |
16229 | cat confdefs.h >>conftest.$ac_ext | |
16230 | cat >>conftest.$ac_ext <<_ACEOF | |
16231 | /* end confdefs.h. */ | |
16232 | ||
16233 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16234 | #ifdef __cplusplus | |
16235 | extern "C" | |
16236 | #endif | |
16237 | /* We use char because int might match the return type of a gcc2 | |
16238 | builtin and then its argument prototype would still apply. */ | |
16239 | char tanl (); | |
16240 | int | |
16241 | main () | |
16242 | { | |
16243 | tanl (); | |
16244 | ; | |
16245 | return 0; | |
16246 | } | |
16247 | _ACEOF | |
16248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16250 | (eval $ac_link) 2>conftest.er1 | |
16251 | ac_status=$? | |
16252 | grep -v '^ *+' conftest.er1 >conftest.err | |
16253 | rm -f conftest.er1 | |
16254 | cat conftest.err >&5 | |
16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16256 | (exit $ac_status); } && | |
b56cb1ff | 16257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16259 | (eval $ac_try) 2>&5 | |
16260 | ac_status=$? | |
16261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16262 | (exit $ac_status); }; } && | |
16263 | { ac_try='test -s conftest$ac_exeext' | |
16264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16265 | (eval $ac_try) 2>&5 | |
16266 | ac_status=$? | |
16267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16268 | (exit $ac_status); }; }; then | |
16269 | ac_cv_lib_m_tanl=yes | |
16270 | else | |
16271 | echo "$as_me: failed program was:" >&5 | |
16272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16273 | ||
16274 | ac_cv_lib_m_tanl=no | |
16275 | fi | |
16276 | rm -f conftest.err conftest.$ac_objext \ | |
16277 | conftest$ac_exeext conftest.$ac_ext | |
16278 | LIBS=$ac_check_lib_save_LIBS | |
16279 | fi | |
16280 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanl" >&5 | |
16281 | echo "${ECHO_T}$ac_cv_lib_m_tanl" >&6 | |
16282 | if test $ac_cv_lib_m_tanl = yes; then | |
16283 | ||
16284 | cat >>confdefs.h <<\_ACEOF | |
16285 | #define HAVE_TANL 1 | |
16286 | _ACEOF | |
16287 | ||
16288 | fi | |
16289 | ||
16290 | echo "$as_me:$LINENO: checking for ctanf in -lm" >&5 | |
16291 | echo $ECHO_N "checking for ctanf in -lm... $ECHO_C" >&6 | |
16292 | if test "${ac_cv_lib_m_ctanf+set}" = set; then | |
16293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16294 | else | |
16295 | ac_check_lib_save_LIBS=$LIBS | |
16296 | LIBS="-lm $LIBS" | |
16297 | if test x$gcc_no_link = xyes; then | |
16298 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16299 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16300 | { (exit 1); exit 1; }; } | |
16301 | fi | |
16302 | cat >conftest.$ac_ext <<_ACEOF | |
16303 | /* confdefs.h. */ | |
16304 | _ACEOF | |
16305 | cat confdefs.h >>conftest.$ac_ext | |
16306 | cat >>conftest.$ac_ext <<_ACEOF | |
16307 | /* end confdefs.h. */ | |
16308 | ||
16309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16310 | #ifdef __cplusplus | |
16311 | extern "C" | |
16312 | #endif | |
16313 | /* We use char because int might match the return type of a gcc2 | |
16314 | builtin and then its argument prototype would still apply. */ | |
16315 | char ctanf (); | |
16316 | int | |
16317 | main () | |
16318 | { | |
16319 | ctanf (); | |
16320 | ; | |
16321 | return 0; | |
16322 | } | |
16323 | _ACEOF | |
16324 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16326 | (eval $ac_link) 2>conftest.er1 | |
16327 | ac_status=$? | |
16328 | grep -v '^ *+' conftest.er1 >conftest.err | |
16329 | rm -f conftest.er1 | |
16330 | cat conftest.err >&5 | |
16331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16332 | (exit $ac_status); } && | |
b56cb1ff | 16333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16335 | (eval $ac_try) 2>&5 | |
16336 | ac_status=$? | |
16337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16338 | (exit $ac_status); }; } && | |
16339 | { ac_try='test -s conftest$ac_exeext' | |
16340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16341 | (eval $ac_try) 2>&5 | |
16342 | ac_status=$? | |
16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16344 | (exit $ac_status); }; }; then | |
16345 | ac_cv_lib_m_ctanf=yes | |
16346 | else | |
16347 | echo "$as_me: failed program was:" >&5 | |
16348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16349 | ||
16350 | ac_cv_lib_m_ctanf=no | |
16351 | fi | |
16352 | rm -f conftest.err conftest.$ac_objext \ | |
16353 | conftest$ac_exeext conftest.$ac_ext | |
16354 | LIBS=$ac_check_lib_save_LIBS | |
16355 | fi | |
16356 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanf" >&5 | |
16357 | echo "${ECHO_T}$ac_cv_lib_m_ctanf" >&6 | |
16358 | if test $ac_cv_lib_m_ctanf = yes; then | |
16359 | ||
16360 | cat >>confdefs.h <<\_ACEOF | |
16361 | #define HAVE_CTANF 1 | |
16362 | _ACEOF | |
16363 | ||
16364 | fi | |
16365 | ||
16366 | echo "$as_me:$LINENO: checking for ctan in -lm" >&5 | |
16367 | echo $ECHO_N "checking for ctan in -lm... $ECHO_C" >&6 | |
16368 | if test "${ac_cv_lib_m_ctan+set}" = set; then | |
16369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16370 | else | |
16371 | ac_check_lib_save_LIBS=$LIBS | |
16372 | LIBS="-lm $LIBS" | |
16373 | if test x$gcc_no_link = xyes; then | |
16374 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16375 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16376 | { (exit 1); exit 1; }; } | |
16377 | fi | |
16378 | cat >conftest.$ac_ext <<_ACEOF | |
16379 | /* confdefs.h. */ | |
16380 | _ACEOF | |
16381 | cat confdefs.h >>conftest.$ac_ext | |
16382 | cat >>conftest.$ac_ext <<_ACEOF | |
16383 | /* end confdefs.h. */ | |
16384 | ||
16385 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16386 | #ifdef __cplusplus | |
16387 | extern "C" | |
16388 | #endif | |
16389 | /* We use char because int might match the return type of a gcc2 | |
16390 | builtin and then its argument prototype would still apply. */ | |
16391 | char ctan (); | |
16392 | int | |
16393 | main () | |
16394 | { | |
16395 | ctan (); | |
16396 | ; | |
16397 | return 0; | |
16398 | } | |
16399 | _ACEOF | |
16400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16402 | (eval $ac_link) 2>conftest.er1 | |
16403 | ac_status=$? | |
16404 | grep -v '^ *+' conftest.er1 >conftest.err | |
16405 | rm -f conftest.er1 | |
16406 | cat conftest.err >&5 | |
16407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16408 | (exit $ac_status); } && | |
b56cb1ff | 16409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16411 | (eval $ac_try) 2>&5 | |
16412 | ac_status=$? | |
16413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16414 | (exit $ac_status); }; } && | |
16415 | { ac_try='test -s conftest$ac_exeext' | |
16416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16417 | (eval $ac_try) 2>&5 | |
16418 | ac_status=$? | |
16419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16420 | (exit $ac_status); }; }; then | |
16421 | ac_cv_lib_m_ctan=yes | |
16422 | else | |
16423 | echo "$as_me: failed program was:" >&5 | |
16424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16425 | ||
16426 | ac_cv_lib_m_ctan=no | |
16427 | fi | |
16428 | rm -f conftest.err conftest.$ac_objext \ | |
16429 | conftest$ac_exeext conftest.$ac_ext | |
16430 | LIBS=$ac_check_lib_save_LIBS | |
16431 | fi | |
16432 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctan" >&5 | |
16433 | echo "${ECHO_T}$ac_cv_lib_m_ctan" >&6 | |
16434 | if test $ac_cv_lib_m_ctan = yes; then | |
16435 | ||
16436 | cat >>confdefs.h <<\_ACEOF | |
16437 | #define HAVE_CTAN 1 | |
16438 | _ACEOF | |
16439 | ||
16440 | fi | |
16441 | ||
16442 | echo "$as_me:$LINENO: checking for ctanl in -lm" >&5 | |
16443 | echo $ECHO_N "checking for ctanl in -lm... $ECHO_C" >&6 | |
16444 | if test "${ac_cv_lib_m_ctanl+set}" = set; then | |
16445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16446 | else | |
16447 | ac_check_lib_save_LIBS=$LIBS | |
16448 | LIBS="-lm $LIBS" | |
16449 | if test x$gcc_no_link = xyes; then | |
16450 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16451 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16452 | { (exit 1); exit 1; }; } | |
16453 | fi | |
16454 | cat >conftest.$ac_ext <<_ACEOF | |
16455 | /* confdefs.h. */ | |
16456 | _ACEOF | |
16457 | cat confdefs.h >>conftest.$ac_ext | |
16458 | cat >>conftest.$ac_ext <<_ACEOF | |
16459 | /* end confdefs.h. */ | |
16460 | ||
16461 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16462 | #ifdef __cplusplus | |
16463 | extern "C" | |
16464 | #endif | |
16465 | /* We use char because int might match the return type of a gcc2 | |
16466 | builtin and then its argument prototype would still apply. */ | |
16467 | char ctanl (); | |
16468 | int | |
16469 | main () | |
16470 | { | |
16471 | ctanl (); | |
16472 | ; | |
16473 | return 0; | |
16474 | } | |
16475 | _ACEOF | |
16476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16478 | (eval $ac_link) 2>conftest.er1 | |
16479 | ac_status=$? | |
16480 | grep -v '^ *+' conftest.er1 >conftest.err | |
16481 | rm -f conftest.er1 | |
16482 | cat conftest.err >&5 | |
16483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16484 | (exit $ac_status); } && | |
b56cb1ff | 16485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16487 | (eval $ac_try) 2>&5 | |
16488 | ac_status=$? | |
16489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16490 | (exit $ac_status); }; } && | |
16491 | { ac_try='test -s conftest$ac_exeext' | |
16492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16493 | (eval $ac_try) 2>&5 | |
16494 | ac_status=$? | |
16495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16496 | (exit $ac_status); }; }; then | |
16497 | ac_cv_lib_m_ctanl=yes | |
16498 | else | |
16499 | echo "$as_me: failed program was:" >&5 | |
16500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16501 | ||
16502 | ac_cv_lib_m_ctanl=no | |
16503 | fi | |
16504 | rm -f conftest.err conftest.$ac_objext \ | |
16505 | conftest$ac_exeext conftest.$ac_ext | |
16506 | LIBS=$ac_check_lib_save_LIBS | |
16507 | fi | |
16508 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanl" >&5 | |
16509 | echo "${ECHO_T}$ac_cv_lib_m_ctanl" >&6 | |
16510 | if test $ac_cv_lib_m_ctanl = yes; then | |
16511 | ||
16512 | cat >>confdefs.h <<\_ACEOF | |
16513 | #define HAVE_CTANL 1 | |
16514 | _ACEOF | |
16515 | ||
16516 | fi | |
16517 | ||
16518 | echo "$as_me:$LINENO: checking for tanhf in -lm" >&5 | |
16519 | echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6 | |
16520 | if test "${ac_cv_lib_m_tanhf+set}" = set; then | |
16521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16522 | else | |
16523 | ac_check_lib_save_LIBS=$LIBS | |
16524 | LIBS="-lm $LIBS" | |
16525 | if test x$gcc_no_link = xyes; then | |
16526 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16527 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16528 | { (exit 1); exit 1; }; } | |
16529 | fi | |
16530 | cat >conftest.$ac_ext <<_ACEOF | |
16531 | /* confdefs.h. */ | |
16532 | _ACEOF | |
16533 | cat confdefs.h >>conftest.$ac_ext | |
16534 | cat >>conftest.$ac_ext <<_ACEOF | |
16535 | /* end confdefs.h. */ | |
16536 | ||
16537 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16538 | #ifdef __cplusplus | |
16539 | extern "C" | |
16540 | #endif | |
16541 | /* We use char because int might match the return type of a gcc2 | |
16542 | builtin and then its argument prototype would still apply. */ | |
16543 | char tanhf (); | |
16544 | int | |
16545 | main () | |
16546 | { | |
16547 | tanhf (); | |
16548 | ; | |
16549 | return 0; | |
16550 | } | |
16551 | _ACEOF | |
16552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16554 | (eval $ac_link) 2>conftest.er1 | |
16555 | ac_status=$? | |
16556 | grep -v '^ *+' conftest.er1 >conftest.err | |
16557 | rm -f conftest.er1 | |
16558 | cat conftest.err >&5 | |
16559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16560 | (exit $ac_status); } && | |
b56cb1ff | 16561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16563 | (eval $ac_try) 2>&5 | |
16564 | ac_status=$? | |
16565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16566 | (exit $ac_status); }; } && | |
16567 | { ac_try='test -s conftest$ac_exeext' | |
16568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16569 | (eval $ac_try) 2>&5 | |
16570 | ac_status=$? | |
16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16572 | (exit $ac_status); }; }; then | |
16573 | ac_cv_lib_m_tanhf=yes | |
16574 | else | |
16575 | echo "$as_me: failed program was:" >&5 | |
16576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16577 | ||
16578 | ac_cv_lib_m_tanhf=no | |
16579 | fi | |
16580 | rm -f conftest.err conftest.$ac_objext \ | |
16581 | conftest$ac_exeext conftest.$ac_ext | |
16582 | LIBS=$ac_check_lib_save_LIBS | |
16583 | fi | |
16584 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5 | |
16585 | echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6 | |
16586 | if test $ac_cv_lib_m_tanhf = yes; then | |
16587 | ||
16588 | cat >>confdefs.h <<\_ACEOF | |
16589 | #define HAVE_TANHF 1 | |
16590 | _ACEOF | |
16591 | ||
16592 | fi | |
16593 | ||
16594 | echo "$as_me:$LINENO: checking for tanh in -lm" >&5 | |
16595 | echo $ECHO_N "checking for tanh in -lm... $ECHO_C" >&6 | |
16596 | if test "${ac_cv_lib_m_tanh+set}" = set; then | |
16597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16598 | else | |
16599 | ac_check_lib_save_LIBS=$LIBS | |
16600 | LIBS="-lm $LIBS" | |
16601 | if test x$gcc_no_link = xyes; then | |
16602 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16603 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16604 | { (exit 1); exit 1; }; } | |
16605 | fi | |
16606 | cat >conftest.$ac_ext <<_ACEOF | |
16607 | /* confdefs.h. */ | |
16608 | _ACEOF | |
16609 | cat confdefs.h >>conftest.$ac_ext | |
16610 | cat >>conftest.$ac_ext <<_ACEOF | |
16611 | /* end confdefs.h. */ | |
16612 | ||
16613 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16614 | #ifdef __cplusplus | |
16615 | extern "C" | |
16616 | #endif | |
16617 | /* We use char because int might match the return type of a gcc2 | |
16618 | builtin and then its argument prototype would still apply. */ | |
16619 | char tanh (); | |
16620 | int | |
16621 | main () | |
16622 | { | |
16623 | tanh (); | |
16624 | ; | |
16625 | return 0; | |
16626 | } | |
16627 | _ACEOF | |
16628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16630 | (eval $ac_link) 2>conftest.er1 | |
16631 | ac_status=$? | |
16632 | grep -v '^ *+' conftest.er1 >conftest.err | |
16633 | rm -f conftest.er1 | |
16634 | cat conftest.err >&5 | |
16635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16636 | (exit $ac_status); } && | |
b56cb1ff | 16637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16639 | (eval $ac_try) 2>&5 | |
16640 | ac_status=$? | |
16641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16642 | (exit $ac_status); }; } && | |
16643 | { ac_try='test -s conftest$ac_exeext' | |
16644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16645 | (eval $ac_try) 2>&5 | |
16646 | ac_status=$? | |
16647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16648 | (exit $ac_status); }; }; then | |
16649 | ac_cv_lib_m_tanh=yes | |
16650 | else | |
16651 | echo "$as_me: failed program was:" >&5 | |
16652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16653 | ||
16654 | ac_cv_lib_m_tanh=no | |
16655 | fi | |
16656 | rm -f conftest.err conftest.$ac_objext \ | |
16657 | conftest$ac_exeext conftest.$ac_ext | |
16658 | LIBS=$ac_check_lib_save_LIBS | |
16659 | fi | |
16660 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanh" >&5 | |
16661 | echo "${ECHO_T}$ac_cv_lib_m_tanh" >&6 | |
16662 | if test $ac_cv_lib_m_tanh = yes; then | |
16663 | ||
16664 | cat >>confdefs.h <<\_ACEOF | |
16665 | #define HAVE_TANH 1 | |
16666 | _ACEOF | |
16667 | ||
16668 | fi | |
16669 | ||
16670 | echo "$as_me:$LINENO: checking for tanhl in -lm" >&5 | |
16671 | echo $ECHO_N "checking for tanhl in -lm... $ECHO_C" >&6 | |
16672 | if test "${ac_cv_lib_m_tanhl+set}" = set; then | |
16673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16674 | else | |
16675 | ac_check_lib_save_LIBS=$LIBS | |
16676 | LIBS="-lm $LIBS" | |
16677 | if test x$gcc_no_link = xyes; then | |
16678 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16679 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16680 | { (exit 1); exit 1; }; } | |
16681 | fi | |
16682 | cat >conftest.$ac_ext <<_ACEOF | |
16683 | /* confdefs.h. */ | |
16684 | _ACEOF | |
16685 | cat confdefs.h >>conftest.$ac_ext | |
16686 | cat >>conftest.$ac_ext <<_ACEOF | |
16687 | /* end confdefs.h. */ | |
16688 | ||
16689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16690 | #ifdef __cplusplus | |
16691 | extern "C" | |
16692 | #endif | |
16693 | /* We use char because int might match the return type of a gcc2 | |
16694 | builtin and then its argument prototype would still apply. */ | |
16695 | char tanhl (); | |
16696 | int | |
16697 | main () | |
16698 | { | |
16699 | tanhl (); | |
16700 | ; | |
16701 | return 0; | |
16702 | } | |
16703 | _ACEOF | |
16704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16706 | (eval $ac_link) 2>conftest.er1 | |
16707 | ac_status=$? | |
16708 | grep -v '^ *+' conftest.er1 >conftest.err | |
16709 | rm -f conftest.er1 | |
16710 | cat conftest.err >&5 | |
16711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16712 | (exit $ac_status); } && | |
b56cb1ff | 16713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16715 | (eval $ac_try) 2>&5 | |
16716 | ac_status=$? | |
16717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16718 | (exit $ac_status); }; } && | |
16719 | { ac_try='test -s conftest$ac_exeext' | |
16720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16721 | (eval $ac_try) 2>&5 | |
16722 | ac_status=$? | |
16723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16724 | (exit $ac_status); }; }; then | |
16725 | ac_cv_lib_m_tanhl=yes | |
16726 | else | |
16727 | echo "$as_me: failed program was:" >&5 | |
16728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16729 | ||
16730 | ac_cv_lib_m_tanhl=no | |
16731 | fi | |
16732 | rm -f conftest.err conftest.$ac_objext \ | |
16733 | conftest$ac_exeext conftest.$ac_ext | |
16734 | LIBS=$ac_check_lib_save_LIBS | |
16735 | fi | |
16736 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhl" >&5 | |
16737 | echo "${ECHO_T}$ac_cv_lib_m_tanhl" >&6 | |
16738 | if test $ac_cv_lib_m_tanhl = yes; then | |
16739 | ||
16740 | cat >>confdefs.h <<\_ACEOF | |
16741 | #define HAVE_TANHL 1 | |
16742 | _ACEOF | |
16743 | ||
16744 | fi | |
16745 | ||
16746 | echo "$as_me:$LINENO: checking for ctanhf in -lm" >&5 | |
16747 | echo $ECHO_N "checking for ctanhf in -lm... $ECHO_C" >&6 | |
16748 | if test "${ac_cv_lib_m_ctanhf+set}" = set; then | |
16749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16750 | else | |
16751 | ac_check_lib_save_LIBS=$LIBS | |
16752 | LIBS="-lm $LIBS" | |
16753 | if test x$gcc_no_link = xyes; then | |
16754 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16755 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16756 | { (exit 1); exit 1; }; } | |
16757 | fi | |
16758 | cat >conftest.$ac_ext <<_ACEOF | |
16759 | /* confdefs.h. */ | |
16760 | _ACEOF | |
16761 | cat confdefs.h >>conftest.$ac_ext | |
16762 | cat >>conftest.$ac_ext <<_ACEOF | |
16763 | /* end confdefs.h. */ | |
16764 | ||
16765 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16766 | #ifdef __cplusplus | |
16767 | extern "C" | |
16768 | #endif | |
16769 | /* We use char because int might match the return type of a gcc2 | |
16770 | builtin and then its argument prototype would still apply. */ | |
16771 | char ctanhf (); | |
16772 | int | |
16773 | main () | |
16774 | { | |
16775 | ctanhf (); | |
16776 | ; | |
16777 | return 0; | |
16778 | } | |
16779 | _ACEOF | |
16780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16782 | (eval $ac_link) 2>conftest.er1 | |
16783 | ac_status=$? | |
16784 | grep -v '^ *+' conftest.er1 >conftest.err | |
16785 | rm -f conftest.er1 | |
16786 | cat conftest.err >&5 | |
16787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16788 | (exit $ac_status); } && | |
b56cb1ff | 16789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16791 | (eval $ac_try) 2>&5 | |
16792 | ac_status=$? | |
16793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16794 | (exit $ac_status); }; } && | |
16795 | { ac_try='test -s conftest$ac_exeext' | |
16796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16797 | (eval $ac_try) 2>&5 | |
16798 | ac_status=$? | |
16799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16800 | (exit $ac_status); }; }; then | |
16801 | ac_cv_lib_m_ctanhf=yes | |
16802 | else | |
16803 | echo "$as_me: failed program was:" >&5 | |
16804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16805 | ||
16806 | ac_cv_lib_m_ctanhf=no | |
16807 | fi | |
16808 | rm -f conftest.err conftest.$ac_objext \ | |
16809 | conftest$ac_exeext conftest.$ac_ext | |
16810 | LIBS=$ac_check_lib_save_LIBS | |
16811 | fi | |
16812 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhf" >&5 | |
16813 | echo "${ECHO_T}$ac_cv_lib_m_ctanhf" >&6 | |
16814 | if test $ac_cv_lib_m_ctanhf = yes; then | |
16815 | ||
16816 | cat >>confdefs.h <<\_ACEOF | |
16817 | #define HAVE_CTANHF 1 | |
16818 | _ACEOF | |
16819 | ||
16820 | fi | |
16821 | ||
16822 | echo "$as_me:$LINENO: checking for ctanh in -lm" >&5 | |
16823 | echo $ECHO_N "checking for ctanh in -lm... $ECHO_C" >&6 | |
16824 | if test "${ac_cv_lib_m_ctanh+set}" = set; then | |
16825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16826 | else | |
16827 | ac_check_lib_save_LIBS=$LIBS | |
16828 | LIBS="-lm $LIBS" | |
16829 | if test x$gcc_no_link = xyes; then | |
16830 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16831 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16832 | { (exit 1); exit 1; }; } | |
16833 | fi | |
16834 | cat >conftest.$ac_ext <<_ACEOF | |
16835 | /* confdefs.h. */ | |
16836 | _ACEOF | |
16837 | cat confdefs.h >>conftest.$ac_ext | |
16838 | cat >>conftest.$ac_ext <<_ACEOF | |
16839 | /* end confdefs.h. */ | |
16840 | ||
16841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16842 | #ifdef __cplusplus | |
16843 | extern "C" | |
16844 | #endif | |
16845 | /* We use char because int might match the return type of a gcc2 | |
16846 | builtin and then its argument prototype would still apply. */ | |
16847 | char ctanh (); | |
16848 | int | |
16849 | main () | |
16850 | { | |
16851 | ctanh (); | |
16852 | ; | |
16853 | return 0; | |
16854 | } | |
16855 | _ACEOF | |
16856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16858 | (eval $ac_link) 2>conftest.er1 | |
16859 | ac_status=$? | |
16860 | grep -v '^ *+' conftest.er1 >conftest.err | |
16861 | rm -f conftest.er1 | |
16862 | cat conftest.err >&5 | |
16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16864 | (exit $ac_status); } && | |
b56cb1ff | 16865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16867 | (eval $ac_try) 2>&5 | |
16868 | ac_status=$? | |
16869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16870 | (exit $ac_status); }; } && | |
16871 | { ac_try='test -s conftest$ac_exeext' | |
16872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16873 | (eval $ac_try) 2>&5 | |
16874 | ac_status=$? | |
16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16876 | (exit $ac_status); }; }; then | |
16877 | ac_cv_lib_m_ctanh=yes | |
16878 | else | |
16879 | echo "$as_me: failed program was:" >&5 | |
16880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16881 | ||
16882 | ac_cv_lib_m_ctanh=no | |
16883 | fi | |
16884 | rm -f conftest.err conftest.$ac_objext \ | |
16885 | conftest$ac_exeext conftest.$ac_ext | |
16886 | LIBS=$ac_check_lib_save_LIBS | |
16887 | fi | |
16888 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanh" >&5 | |
16889 | echo "${ECHO_T}$ac_cv_lib_m_ctanh" >&6 | |
16890 | if test $ac_cv_lib_m_ctanh = yes; then | |
16891 | ||
16892 | cat >>confdefs.h <<\_ACEOF | |
16893 | #define HAVE_CTANH 1 | |
16894 | _ACEOF | |
16895 | ||
16896 | fi | |
16897 | ||
16898 | echo "$as_me:$LINENO: checking for ctanhl in -lm" >&5 | |
16899 | echo $ECHO_N "checking for ctanhl in -lm... $ECHO_C" >&6 | |
16900 | if test "${ac_cv_lib_m_ctanhl+set}" = set; then | |
16901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16902 | else | |
16903 | ac_check_lib_save_LIBS=$LIBS | |
16904 | LIBS="-lm $LIBS" | |
16905 | if test x$gcc_no_link = xyes; then | |
16906 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16907 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16908 | { (exit 1); exit 1; }; } | |
16909 | fi | |
16910 | cat >conftest.$ac_ext <<_ACEOF | |
16911 | /* confdefs.h. */ | |
16912 | _ACEOF | |
16913 | cat confdefs.h >>conftest.$ac_ext | |
16914 | cat >>conftest.$ac_ext <<_ACEOF | |
16915 | /* end confdefs.h. */ | |
16916 | ||
16917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16918 | #ifdef __cplusplus | |
16919 | extern "C" | |
16920 | #endif | |
16921 | /* We use char because int might match the return type of a gcc2 | |
16922 | builtin and then its argument prototype would still apply. */ | |
16923 | char ctanhl (); | |
16924 | int | |
16925 | main () | |
16926 | { | |
16927 | ctanhl (); | |
16928 | ; | |
16929 | return 0; | |
16930 | } | |
16931 | _ACEOF | |
16932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16934 | (eval $ac_link) 2>conftest.er1 | |
16935 | ac_status=$? | |
16936 | grep -v '^ *+' conftest.er1 >conftest.err | |
16937 | rm -f conftest.er1 | |
16938 | cat conftest.err >&5 | |
16939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16940 | (exit $ac_status); } && | |
b56cb1ff | 16941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 16942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16943 | (eval $ac_try) 2>&5 | |
16944 | ac_status=$? | |
16945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16946 | (exit $ac_status); }; } && | |
16947 | { ac_try='test -s conftest$ac_exeext' | |
16948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16949 | (eval $ac_try) 2>&5 | |
16950 | ac_status=$? | |
16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16952 | (exit $ac_status); }; }; then | |
16953 | ac_cv_lib_m_ctanhl=yes | |
16954 | else | |
16955 | echo "$as_me: failed program was:" >&5 | |
16956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16957 | ||
16958 | ac_cv_lib_m_ctanhl=no | |
16959 | fi | |
16960 | rm -f conftest.err conftest.$ac_objext \ | |
16961 | conftest$ac_exeext conftest.$ac_ext | |
16962 | LIBS=$ac_check_lib_save_LIBS | |
16963 | fi | |
16964 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhl" >&5 | |
16965 | echo "${ECHO_T}$ac_cv_lib_m_ctanhl" >&6 | |
16966 | if test $ac_cv_lib_m_ctanhl = yes; then | |
16967 | ||
16968 | cat >>confdefs.h <<\_ACEOF | |
16969 | #define HAVE_CTANHL 1 | |
50f0ca0a | 16970 | _ACEOF |
16971 | ||
16972 | fi | |
16973 | ||
16974 | echo "$as_me:$LINENO: checking for truncf in -lm" >&5 | |
16975 | echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6 | |
16976 | if test "${ac_cv_lib_m_truncf+set}" = set; then | |
16977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16978 | else | |
16979 | ac_check_lib_save_LIBS=$LIBS | |
16980 | LIBS="-lm $LIBS" | |
b52ee437 | 16981 | if test x$gcc_no_link = xyes; then |
16982 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16983 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16984 | { (exit 1); exit 1; }; } | |
16985 | fi | |
50f0ca0a | 16986 | cat >conftest.$ac_ext <<_ACEOF |
16987 | /* confdefs.h. */ | |
16988 | _ACEOF | |
16989 | cat confdefs.h >>conftest.$ac_ext | |
16990 | cat >>conftest.$ac_ext <<_ACEOF | |
16991 | /* end confdefs.h. */ | |
16992 | ||
16993 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16994 | #ifdef __cplusplus | |
16995 | extern "C" | |
16996 | #endif | |
16997 | /* We use char because int might match the return type of a gcc2 | |
16998 | builtin and then its argument prototype would still apply. */ | |
d213114b | 16999 | char truncf (); |
17000 | int | |
17001 | main () | |
17002 | { | |
17003 | truncf (); | |
17004 | ; | |
17005 | return 0; | |
17006 | } | |
17007 | _ACEOF | |
17008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17010 | (eval $ac_link) 2>conftest.er1 | |
17011 | ac_status=$? | |
17012 | grep -v '^ *+' conftest.er1 >conftest.err | |
17013 | rm -f conftest.er1 | |
17014 | cat conftest.err >&5 | |
17015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17016 | (exit $ac_status); } && | |
b56cb1ff | 17017 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17019 | (eval $ac_try) 2>&5 | |
17020 | ac_status=$? | |
17021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17022 | (exit $ac_status); }; } && | |
17023 | { ac_try='test -s conftest$ac_exeext' | |
17024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17025 | (eval $ac_try) 2>&5 | |
17026 | ac_status=$? | |
17027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17028 | (exit $ac_status); }; }; then | |
17029 | ac_cv_lib_m_truncf=yes | |
17030 | else | |
17031 | echo "$as_me: failed program was:" >&5 | |
17032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17033 | ||
17034 | ac_cv_lib_m_truncf=no | |
17035 | fi | |
17036 | rm -f conftest.err conftest.$ac_objext \ | |
17037 | conftest$ac_exeext conftest.$ac_ext | |
17038 | LIBS=$ac_check_lib_save_LIBS | |
17039 | fi | |
17040 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5 | |
17041 | echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6 | |
17042 | if test $ac_cv_lib_m_truncf = yes; then | |
17043 | ||
17044 | cat >>confdefs.h <<\_ACEOF | |
17045 | #define HAVE_TRUNCF 1 | |
17046 | _ACEOF | |
17047 | ||
17048 | fi | |
17049 | ||
17050 | echo "$as_me:$LINENO: checking for trunc in -lm" >&5 | |
17051 | echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6 | |
17052 | if test "${ac_cv_lib_m_trunc+set}" = set; then | |
17053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17054 | else | |
17055 | ac_check_lib_save_LIBS=$LIBS | |
17056 | LIBS="-lm $LIBS" | |
17057 | if test x$gcc_no_link = xyes; then | |
17058 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17059 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17060 | { (exit 1); exit 1; }; } | |
17061 | fi | |
17062 | cat >conftest.$ac_ext <<_ACEOF | |
17063 | /* confdefs.h. */ | |
17064 | _ACEOF | |
17065 | cat confdefs.h >>conftest.$ac_ext | |
17066 | cat >>conftest.$ac_ext <<_ACEOF | |
17067 | /* end confdefs.h. */ | |
17068 | ||
17069 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17070 | #ifdef __cplusplus | |
17071 | extern "C" | |
17072 | #endif | |
17073 | /* We use char because int might match the return type of a gcc2 | |
17074 | builtin and then its argument prototype would still apply. */ | |
17075 | char trunc (); | |
17076 | int | |
17077 | main () | |
17078 | { | |
17079 | trunc (); | |
17080 | ; | |
17081 | return 0; | |
17082 | } | |
17083 | _ACEOF | |
17084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17086 | (eval $ac_link) 2>conftest.er1 | |
17087 | ac_status=$? | |
17088 | grep -v '^ *+' conftest.er1 >conftest.err | |
17089 | rm -f conftest.er1 | |
17090 | cat conftest.err >&5 | |
17091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17092 | (exit $ac_status); } && | |
b56cb1ff | 17093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17095 | (eval $ac_try) 2>&5 | |
17096 | ac_status=$? | |
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17098 | (exit $ac_status); }; } && | |
17099 | { ac_try='test -s conftest$ac_exeext' | |
17100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17101 | (eval $ac_try) 2>&5 | |
17102 | ac_status=$? | |
17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17104 | (exit $ac_status); }; }; then | |
17105 | ac_cv_lib_m_trunc=yes | |
17106 | else | |
17107 | echo "$as_me: failed program was:" >&5 | |
17108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17109 | ||
17110 | ac_cv_lib_m_trunc=no | |
17111 | fi | |
17112 | rm -f conftest.err conftest.$ac_objext \ | |
17113 | conftest$ac_exeext conftest.$ac_ext | |
17114 | LIBS=$ac_check_lib_save_LIBS | |
17115 | fi | |
17116 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5 | |
17117 | echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6 | |
17118 | if test $ac_cv_lib_m_trunc = yes; then | |
17119 | ||
17120 | cat >>confdefs.h <<\_ACEOF | |
17121 | #define HAVE_TRUNC 1 | |
17122 | _ACEOF | |
17123 | ||
17124 | fi | |
17125 | ||
17126 | echo "$as_me:$LINENO: checking for truncl in -lm" >&5 | |
17127 | echo $ECHO_N "checking for truncl in -lm... $ECHO_C" >&6 | |
17128 | if test "${ac_cv_lib_m_truncl+set}" = set; then | |
17129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17130 | else | |
17131 | ac_check_lib_save_LIBS=$LIBS | |
17132 | LIBS="-lm $LIBS" | |
17133 | if test x$gcc_no_link = xyes; then | |
17134 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17135 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17136 | { (exit 1); exit 1; }; } | |
17137 | fi | |
17138 | cat >conftest.$ac_ext <<_ACEOF | |
17139 | /* confdefs.h. */ | |
17140 | _ACEOF | |
17141 | cat confdefs.h >>conftest.$ac_ext | |
17142 | cat >>conftest.$ac_ext <<_ACEOF | |
17143 | /* end confdefs.h. */ | |
17144 | ||
17145 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17146 | #ifdef __cplusplus | |
17147 | extern "C" | |
17148 | #endif | |
17149 | /* We use char because int might match the return type of a gcc2 | |
17150 | builtin and then its argument prototype would still apply. */ | |
17151 | char truncl (); | |
17152 | int | |
17153 | main () | |
17154 | { | |
17155 | truncl (); | |
17156 | ; | |
17157 | return 0; | |
17158 | } | |
17159 | _ACEOF | |
17160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17162 | (eval $ac_link) 2>conftest.er1 | |
17163 | ac_status=$? | |
17164 | grep -v '^ *+' conftest.er1 >conftest.err | |
17165 | rm -f conftest.er1 | |
17166 | cat conftest.err >&5 | |
17167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17168 | (exit $ac_status); } && | |
b56cb1ff | 17169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17171 | (eval $ac_try) 2>&5 | |
17172 | ac_status=$? | |
17173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17174 | (exit $ac_status); }; } && | |
17175 | { ac_try='test -s conftest$ac_exeext' | |
17176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17177 | (eval $ac_try) 2>&5 | |
17178 | ac_status=$? | |
17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17180 | (exit $ac_status); }; }; then | |
17181 | ac_cv_lib_m_truncl=yes | |
17182 | else | |
17183 | echo "$as_me: failed program was:" >&5 | |
17184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17185 | ||
17186 | ac_cv_lib_m_truncl=no | |
17187 | fi | |
17188 | rm -f conftest.err conftest.$ac_objext \ | |
17189 | conftest$ac_exeext conftest.$ac_ext | |
17190 | LIBS=$ac_check_lib_save_LIBS | |
17191 | fi | |
17192 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncl" >&5 | |
17193 | echo "${ECHO_T}$ac_cv_lib_m_truncl" >&6 | |
17194 | if test $ac_cv_lib_m_truncl = yes; then | |
17195 | ||
17196 | cat >>confdefs.h <<\_ACEOF | |
17197 | #define HAVE_TRUNCL 1 | |
17198 | _ACEOF | |
17199 | ||
17200 | fi | |
17201 | ||
17202 | echo "$as_me:$LINENO: checking for erff in -lm" >&5 | |
17203 | echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6 | |
17204 | if test "${ac_cv_lib_m_erff+set}" = set; then | |
17205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17206 | else | |
17207 | ac_check_lib_save_LIBS=$LIBS | |
17208 | LIBS="-lm $LIBS" | |
17209 | if test x$gcc_no_link = xyes; then | |
17210 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17211 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17212 | { (exit 1); exit 1; }; } | |
17213 | fi | |
17214 | cat >conftest.$ac_ext <<_ACEOF | |
17215 | /* confdefs.h. */ | |
17216 | _ACEOF | |
17217 | cat confdefs.h >>conftest.$ac_ext | |
17218 | cat >>conftest.$ac_ext <<_ACEOF | |
17219 | /* end confdefs.h. */ | |
17220 | ||
17221 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17222 | #ifdef __cplusplus | |
17223 | extern "C" | |
17224 | #endif | |
17225 | /* We use char because int might match the return type of a gcc2 | |
17226 | builtin and then its argument prototype would still apply. */ | |
17227 | char erff (); | |
17228 | int | |
17229 | main () | |
17230 | { | |
17231 | erff (); | |
17232 | ; | |
17233 | return 0; | |
17234 | } | |
17235 | _ACEOF | |
17236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17238 | (eval $ac_link) 2>conftest.er1 | |
17239 | ac_status=$? | |
17240 | grep -v '^ *+' conftest.er1 >conftest.err | |
17241 | rm -f conftest.er1 | |
17242 | cat conftest.err >&5 | |
17243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17244 | (exit $ac_status); } && | |
b56cb1ff | 17245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17247 | (eval $ac_try) 2>&5 | |
17248 | ac_status=$? | |
17249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17250 | (exit $ac_status); }; } && | |
17251 | { ac_try='test -s conftest$ac_exeext' | |
17252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17253 | (eval $ac_try) 2>&5 | |
17254 | ac_status=$? | |
17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17256 | (exit $ac_status); }; }; then | |
17257 | ac_cv_lib_m_erff=yes | |
17258 | else | |
17259 | echo "$as_me: failed program was:" >&5 | |
17260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17261 | ||
17262 | ac_cv_lib_m_erff=no | |
17263 | fi | |
17264 | rm -f conftest.err conftest.$ac_objext \ | |
17265 | conftest$ac_exeext conftest.$ac_ext | |
17266 | LIBS=$ac_check_lib_save_LIBS | |
17267 | fi | |
17268 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5 | |
17269 | echo "${ECHO_T}$ac_cv_lib_m_erff" >&6 | |
17270 | if test $ac_cv_lib_m_erff = yes; then | |
17271 | ||
17272 | cat >>confdefs.h <<\_ACEOF | |
17273 | #define HAVE_ERFF 1 | |
17274 | _ACEOF | |
17275 | ||
17276 | fi | |
17277 | ||
17278 | echo "$as_me:$LINENO: checking for erf in -lm" >&5 | |
17279 | echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6 | |
17280 | if test "${ac_cv_lib_m_erf+set}" = set; then | |
17281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17282 | else | |
17283 | ac_check_lib_save_LIBS=$LIBS | |
17284 | LIBS="-lm $LIBS" | |
17285 | if test x$gcc_no_link = xyes; then | |
17286 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17287 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17288 | { (exit 1); exit 1; }; } | |
17289 | fi | |
17290 | cat >conftest.$ac_ext <<_ACEOF | |
17291 | /* confdefs.h. */ | |
17292 | _ACEOF | |
17293 | cat confdefs.h >>conftest.$ac_ext | |
17294 | cat >>conftest.$ac_ext <<_ACEOF | |
17295 | /* end confdefs.h. */ | |
17296 | ||
17297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17298 | #ifdef __cplusplus | |
17299 | extern "C" | |
17300 | #endif | |
17301 | /* We use char because int might match the return type of a gcc2 | |
17302 | builtin and then its argument prototype would still apply. */ | |
17303 | char erf (); | |
17304 | int | |
17305 | main () | |
17306 | { | |
17307 | erf (); | |
17308 | ; | |
17309 | return 0; | |
17310 | } | |
17311 | _ACEOF | |
17312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17314 | (eval $ac_link) 2>conftest.er1 | |
17315 | ac_status=$? | |
17316 | grep -v '^ *+' conftest.er1 >conftest.err | |
17317 | rm -f conftest.er1 | |
17318 | cat conftest.err >&5 | |
17319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17320 | (exit $ac_status); } && | |
b56cb1ff | 17321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17323 | (eval $ac_try) 2>&5 | |
17324 | ac_status=$? | |
17325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17326 | (exit $ac_status); }; } && | |
17327 | { ac_try='test -s conftest$ac_exeext' | |
17328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17329 | (eval $ac_try) 2>&5 | |
17330 | ac_status=$? | |
17331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17332 | (exit $ac_status); }; }; then | |
17333 | ac_cv_lib_m_erf=yes | |
17334 | else | |
17335 | echo "$as_me: failed program was:" >&5 | |
17336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17337 | ||
17338 | ac_cv_lib_m_erf=no | |
17339 | fi | |
17340 | rm -f conftest.err conftest.$ac_objext \ | |
17341 | conftest$ac_exeext conftest.$ac_ext | |
17342 | LIBS=$ac_check_lib_save_LIBS | |
17343 | fi | |
17344 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5 | |
17345 | echo "${ECHO_T}$ac_cv_lib_m_erf" >&6 | |
17346 | if test $ac_cv_lib_m_erf = yes; then | |
17347 | ||
17348 | cat >>confdefs.h <<\_ACEOF | |
17349 | #define HAVE_ERF 1 | |
17350 | _ACEOF | |
17351 | ||
17352 | fi | |
17353 | ||
17354 | echo "$as_me:$LINENO: checking for erfl in -lm" >&5 | |
17355 | echo $ECHO_N "checking for erfl in -lm... $ECHO_C" >&6 | |
17356 | if test "${ac_cv_lib_m_erfl+set}" = set; then | |
17357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17358 | else | |
17359 | ac_check_lib_save_LIBS=$LIBS | |
17360 | LIBS="-lm $LIBS" | |
17361 | if test x$gcc_no_link = xyes; then | |
17362 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17363 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17364 | { (exit 1); exit 1; }; } | |
17365 | fi | |
17366 | cat >conftest.$ac_ext <<_ACEOF | |
17367 | /* confdefs.h. */ | |
17368 | _ACEOF | |
17369 | cat confdefs.h >>conftest.$ac_ext | |
17370 | cat >>conftest.$ac_ext <<_ACEOF | |
17371 | /* end confdefs.h. */ | |
17372 | ||
17373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17374 | #ifdef __cplusplus | |
17375 | extern "C" | |
17376 | #endif | |
17377 | /* We use char because int might match the return type of a gcc2 | |
17378 | builtin and then its argument prototype would still apply. */ | |
17379 | char erfl (); | |
17380 | int | |
17381 | main () | |
17382 | { | |
17383 | erfl (); | |
17384 | ; | |
17385 | return 0; | |
17386 | } | |
17387 | _ACEOF | |
17388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17390 | (eval $ac_link) 2>conftest.er1 | |
17391 | ac_status=$? | |
17392 | grep -v '^ *+' conftest.er1 >conftest.err | |
17393 | rm -f conftest.er1 | |
17394 | cat conftest.err >&5 | |
17395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17396 | (exit $ac_status); } && | |
b56cb1ff | 17397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17399 | (eval $ac_try) 2>&5 | |
17400 | ac_status=$? | |
17401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17402 | (exit $ac_status); }; } && | |
17403 | { ac_try='test -s conftest$ac_exeext' | |
17404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17405 | (eval $ac_try) 2>&5 | |
17406 | ac_status=$? | |
17407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17408 | (exit $ac_status); }; }; then | |
17409 | ac_cv_lib_m_erfl=yes | |
17410 | else | |
17411 | echo "$as_me: failed program was:" >&5 | |
17412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17413 | ||
17414 | ac_cv_lib_m_erfl=no | |
17415 | fi | |
17416 | rm -f conftest.err conftest.$ac_objext \ | |
17417 | conftest$ac_exeext conftest.$ac_ext | |
17418 | LIBS=$ac_check_lib_save_LIBS | |
17419 | fi | |
17420 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfl" >&5 | |
17421 | echo "${ECHO_T}$ac_cv_lib_m_erfl" >&6 | |
17422 | if test $ac_cv_lib_m_erfl = yes; then | |
17423 | ||
17424 | cat >>confdefs.h <<\_ACEOF | |
17425 | #define HAVE_ERFL 1 | |
17426 | _ACEOF | |
17427 | ||
17428 | fi | |
17429 | ||
17430 | echo "$as_me:$LINENO: checking for erfcf in -lm" >&5 | |
17431 | echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6 | |
17432 | if test "${ac_cv_lib_m_erfcf+set}" = set; then | |
17433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17434 | else | |
17435 | ac_check_lib_save_LIBS=$LIBS | |
17436 | LIBS="-lm $LIBS" | |
17437 | if test x$gcc_no_link = xyes; then | |
17438 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17439 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17440 | { (exit 1); exit 1; }; } | |
17441 | fi | |
17442 | cat >conftest.$ac_ext <<_ACEOF | |
17443 | /* confdefs.h. */ | |
17444 | _ACEOF | |
17445 | cat confdefs.h >>conftest.$ac_ext | |
17446 | cat >>conftest.$ac_ext <<_ACEOF | |
17447 | /* end confdefs.h. */ | |
17448 | ||
17449 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17450 | #ifdef __cplusplus | |
17451 | extern "C" | |
17452 | #endif | |
17453 | /* We use char because int might match the return type of a gcc2 | |
17454 | builtin and then its argument prototype would still apply. */ | |
17455 | char erfcf (); | |
17456 | int | |
17457 | main () | |
17458 | { | |
17459 | erfcf (); | |
17460 | ; | |
17461 | return 0; | |
17462 | } | |
17463 | _ACEOF | |
17464 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17466 | (eval $ac_link) 2>conftest.er1 | |
17467 | ac_status=$? | |
17468 | grep -v '^ *+' conftest.er1 >conftest.err | |
17469 | rm -f conftest.er1 | |
17470 | cat conftest.err >&5 | |
17471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17472 | (exit $ac_status); } && | |
b56cb1ff | 17473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17475 | (eval $ac_try) 2>&5 | |
17476 | ac_status=$? | |
17477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17478 | (exit $ac_status); }; } && | |
17479 | { ac_try='test -s conftest$ac_exeext' | |
17480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17481 | (eval $ac_try) 2>&5 | |
17482 | ac_status=$? | |
17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17484 | (exit $ac_status); }; }; then | |
17485 | ac_cv_lib_m_erfcf=yes | |
17486 | else | |
17487 | echo "$as_me: failed program was:" >&5 | |
17488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17489 | ||
17490 | ac_cv_lib_m_erfcf=no | |
17491 | fi | |
17492 | rm -f conftest.err conftest.$ac_objext \ | |
17493 | conftest$ac_exeext conftest.$ac_ext | |
17494 | LIBS=$ac_check_lib_save_LIBS | |
17495 | fi | |
17496 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5 | |
17497 | echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6 | |
17498 | if test $ac_cv_lib_m_erfcf = yes; then | |
17499 | ||
17500 | cat >>confdefs.h <<\_ACEOF | |
17501 | #define HAVE_ERFCF 1 | |
17502 | _ACEOF | |
17503 | ||
17504 | fi | |
17505 | ||
17506 | echo "$as_me:$LINENO: checking for erfc in -lm" >&5 | |
17507 | echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6 | |
17508 | if test "${ac_cv_lib_m_erfc+set}" = set; then | |
17509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17510 | else | |
17511 | ac_check_lib_save_LIBS=$LIBS | |
17512 | LIBS="-lm $LIBS" | |
17513 | if test x$gcc_no_link = xyes; then | |
17514 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17515 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17516 | { (exit 1); exit 1; }; } | |
17517 | fi | |
17518 | cat >conftest.$ac_ext <<_ACEOF | |
17519 | /* confdefs.h. */ | |
17520 | _ACEOF | |
17521 | cat confdefs.h >>conftest.$ac_ext | |
17522 | cat >>conftest.$ac_ext <<_ACEOF | |
17523 | /* end confdefs.h. */ | |
17524 | ||
17525 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17526 | #ifdef __cplusplus | |
17527 | extern "C" | |
17528 | #endif | |
17529 | /* We use char because int might match the return type of a gcc2 | |
17530 | builtin and then its argument prototype would still apply. */ | |
17531 | char erfc (); | |
50f0ca0a | 17532 | int |
17533 | main () | |
17534 | { | |
d213114b | 17535 | erfc (); |
50f0ca0a | 17536 | ; |
17537 | return 0; | |
17538 | } | |
17539 | _ACEOF | |
17540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17542 | (eval $ac_link) 2>conftest.er1 | |
17543 | ac_status=$? | |
17544 | grep -v '^ *+' conftest.er1 >conftest.err | |
17545 | rm -f conftest.er1 | |
17546 | cat conftest.err >&5 | |
17547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17548 | (exit $ac_status); } && | |
b56cb1ff | 17549 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
50f0ca0a | 17550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17551 | (eval $ac_try) 2>&5 | |
17552 | ac_status=$? | |
17553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17554 | (exit $ac_status); }; } && | |
17555 | { ac_try='test -s conftest$ac_exeext' | |
17556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17557 | (eval $ac_try) 2>&5 | |
17558 | ac_status=$? | |
17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17560 | (exit $ac_status); }; }; then | |
d213114b | 17561 | ac_cv_lib_m_erfc=yes |
50f0ca0a | 17562 | else |
17563 | echo "$as_me: failed program was:" >&5 | |
17564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17565 | ||
d213114b | 17566 | ac_cv_lib_m_erfc=no |
50f0ca0a | 17567 | fi |
17568 | rm -f conftest.err conftest.$ac_objext \ | |
17569 | conftest$ac_exeext conftest.$ac_ext | |
17570 | LIBS=$ac_check_lib_save_LIBS | |
17571 | fi | |
d213114b | 17572 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5 |
17573 | echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6 | |
17574 | if test $ac_cv_lib_m_erfc = yes; then | |
50f0ca0a | 17575 | |
17576 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 17577 | #define HAVE_ERFC 1 |
50f0ca0a | 17578 | _ACEOF |
17579 | ||
17580 | fi | |
17581 | ||
d213114b | 17582 | echo "$as_me:$LINENO: checking for erfcl in -lm" >&5 |
17583 | echo $ECHO_N "checking for erfcl in -lm... $ECHO_C" >&6 | |
17584 | if test "${ac_cv_lib_m_erfcl+set}" = set; then | |
158e0e64 | 17585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17586 | else | |
17587 | ac_check_lib_save_LIBS=$LIBS | |
17588 | LIBS="-lm $LIBS" | |
b52ee437 | 17589 | if test x$gcc_no_link = xyes; then |
17590 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17591 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17592 | { (exit 1); exit 1; }; } | |
17593 | fi | |
158e0e64 | 17594 | cat >conftest.$ac_ext <<_ACEOF |
17595 | /* confdefs.h. */ | |
17596 | _ACEOF | |
17597 | cat confdefs.h >>conftest.$ac_ext | |
17598 | cat >>conftest.$ac_ext <<_ACEOF | |
17599 | /* end confdefs.h. */ | |
17600 | ||
17601 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17602 | #ifdef __cplusplus | |
17603 | extern "C" | |
17604 | #endif | |
17605 | /* We use char because int might match the return type of a gcc2 | |
17606 | builtin and then its argument prototype would still apply. */ | |
d213114b | 17607 | char erfcl (); |
158e0e64 | 17608 | int |
17609 | main () | |
17610 | { | |
d213114b | 17611 | erfcl (); |
158e0e64 | 17612 | ; |
17613 | return 0; | |
17614 | } | |
17615 | _ACEOF | |
17616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17618 | (eval $ac_link) 2>conftest.er1 | |
17619 | ac_status=$? | |
17620 | grep -v '^ *+' conftest.er1 >conftest.err | |
17621 | rm -f conftest.er1 | |
17622 | cat conftest.err >&5 | |
17623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17624 | (exit $ac_status); } && | |
b56cb1ff | 17625 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 17626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17627 | (eval $ac_try) 2>&5 | |
17628 | ac_status=$? | |
17629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17630 | (exit $ac_status); }; } && | |
17631 | { ac_try='test -s conftest$ac_exeext' | |
17632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17633 | (eval $ac_try) 2>&5 | |
17634 | ac_status=$? | |
17635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17636 | (exit $ac_status); }; }; then | |
d213114b | 17637 | ac_cv_lib_m_erfcl=yes |
158e0e64 | 17638 | else |
17639 | echo "$as_me: failed program was:" >&5 | |
17640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17641 | ||
d213114b | 17642 | ac_cv_lib_m_erfcl=no |
158e0e64 | 17643 | fi |
17644 | rm -f conftest.err conftest.$ac_objext \ | |
17645 | conftest$ac_exeext conftest.$ac_ext | |
17646 | LIBS=$ac_check_lib_save_LIBS | |
17647 | fi | |
d213114b | 17648 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcl" >&5 |
17649 | echo "${ECHO_T}$ac_cv_lib_m_erfcl" >&6 | |
17650 | if test $ac_cv_lib_m_erfcl = yes; then | |
158e0e64 | 17651 | |
17652 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 17653 | #define HAVE_ERFCL 1 |
158e0e64 | 17654 | _ACEOF |
17655 | ||
17656 | fi | |
17657 | ||
d213114b | 17658 | echo "$as_me:$LINENO: checking for j0f in -lm" >&5 |
17659 | echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6 | |
17660 | if test "${ac_cv_lib_m_j0f+set}" = set; then | |
158e0e64 | 17661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17662 | else | |
17663 | ac_check_lib_save_LIBS=$LIBS | |
17664 | LIBS="-lm $LIBS" | |
b52ee437 | 17665 | if test x$gcc_no_link = xyes; then |
17666 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17667 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17668 | { (exit 1); exit 1; }; } | |
17669 | fi | |
158e0e64 | 17670 | cat >conftest.$ac_ext <<_ACEOF |
17671 | /* confdefs.h. */ | |
17672 | _ACEOF | |
17673 | cat confdefs.h >>conftest.$ac_ext | |
17674 | cat >>conftest.$ac_ext <<_ACEOF | |
17675 | /* end confdefs.h. */ | |
17676 | ||
17677 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17678 | #ifdef __cplusplus | |
17679 | extern "C" | |
17680 | #endif | |
17681 | /* We use char because int might match the return type of a gcc2 | |
17682 | builtin and then its argument prototype would still apply. */ | |
d213114b | 17683 | char j0f (); |
158e0e64 | 17684 | int |
17685 | main () | |
17686 | { | |
d213114b | 17687 | j0f (); |
158e0e64 | 17688 | ; |
17689 | return 0; | |
17690 | } | |
17691 | _ACEOF | |
17692 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17694 | (eval $ac_link) 2>conftest.er1 | |
17695 | ac_status=$? | |
17696 | grep -v '^ *+' conftest.er1 >conftest.err | |
17697 | rm -f conftest.er1 | |
17698 | cat conftest.err >&5 | |
17699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17700 | (exit $ac_status); } && | |
b56cb1ff | 17701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 17702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17703 | (eval $ac_try) 2>&5 | |
17704 | ac_status=$? | |
17705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17706 | (exit $ac_status); }; } && | |
17707 | { ac_try='test -s conftest$ac_exeext' | |
17708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17709 | (eval $ac_try) 2>&5 | |
17710 | ac_status=$? | |
17711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17712 | (exit $ac_status); }; }; then | |
d213114b | 17713 | ac_cv_lib_m_j0f=yes |
158e0e64 | 17714 | else |
17715 | echo "$as_me: failed program was:" >&5 | |
17716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17717 | ||
d213114b | 17718 | ac_cv_lib_m_j0f=no |
17719 | fi | |
17720 | rm -f conftest.err conftest.$ac_objext \ | |
17721 | conftest$ac_exeext conftest.$ac_ext | |
17722 | LIBS=$ac_check_lib_save_LIBS | |
17723 | fi | |
17724 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5 | |
17725 | echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6 | |
17726 | if test $ac_cv_lib_m_j0f = yes; then | |
17727 | ||
17728 | cat >>confdefs.h <<\_ACEOF | |
17729 | #define HAVE_J0F 1 | |
17730 | _ACEOF | |
17731 | ||
17732 | fi | |
17733 | ||
17734 | echo "$as_me:$LINENO: checking for j0 in -lm" >&5 | |
17735 | echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6 | |
17736 | if test "${ac_cv_lib_m_j0+set}" = set; then | |
17737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17738 | else | |
17739 | ac_check_lib_save_LIBS=$LIBS | |
17740 | LIBS="-lm $LIBS" | |
17741 | if test x$gcc_no_link = xyes; then | |
17742 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17743 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17744 | { (exit 1); exit 1; }; } | |
17745 | fi | |
17746 | cat >conftest.$ac_ext <<_ACEOF | |
17747 | /* confdefs.h. */ | |
17748 | _ACEOF | |
17749 | cat confdefs.h >>conftest.$ac_ext | |
17750 | cat >>conftest.$ac_ext <<_ACEOF | |
17751 | /* end confdefs.h. */ | |
17752 | ||
17753 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17754 | #ifdef __cplusplus | |
17755 | extern "C" | |
17756 | #endif | |
17757 | /* We use char because int might match the return type of a gcc2 | |
17758 | builtin and then its argument prototype would still apply. */ | |
17759 | char j0 (); | |
17760 | int | |
17761 | main () | |
17762 | { | |
17763 | j0 (); | |
17764 | ; | |
17765 | return 0; | |
17766 | } | |
17767 | _ACEOF | |
17768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17770 | (eval $ac_link) 2>conftest.er1 | |
17771 | ac_status=$? | |
17772 | grep -v '^ *+' conftest.er1 >conftest.err | |
17773 | rm -f conftest.er1 | |
17774 | cat conftest.err >&5 | |
17775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17776 | (exit $ac_status); } && | |
b56cb1ff | 17777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17779 | (eval $ac_try) 2>&5 | |
17780 | ac_status=$? | |
17781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17782 | (exit $ac_status); }; } && | |
17783 | { ac_try='test -s conftest$ac_exeext' | |
17784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17785 | (eval $ac_try) 2>&5 | |
17786 | ac_status=$? | |
17787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17788 | (exit $ac_status); }; }; then | |
17789 | ac_cv_lib_m_j0=yes | |
17790 | else | |
17791 | echo "$as_me: failed program was:" >&5 | |
17792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17793 | ||
17794 | ac_cv_lib_m_j0=no | |
17795 | fi | |
17796 | rm -f conftest.err conftest.$ac_objext \ | |
17797 | conftest$ac_exeext conftest.$ac_ext | |
17798 | LIBS=$ac_check_lib_save_LIBS | |
17799 | fi | |
17800 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5 | |
17801 | echo "${ECHO_T}$ac_cv_lib_m_j0" >&6 | |
17802 | if test $ac_cv_lib_m_j0 = yes; then | |
17803 | ||
17804 | cat >>confdefs.h <<\_ACEOF | |
17805 | #define HAVE_J0 1 | |
17806 | _ACEOF | |
17807 | ||
17808 | fi | |
17809 | ||
17810 | echo "$as_me:$LINENO: checking for j0l in -lm" >&5 | |
17811 | echo $ECHO_N "checking for j0l in -lm... $ECHO_C" >&6 | |
17812 | if test "${ac_cv_lib_m_j0l+set}" = set; then | |
17813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17814 | else | |
17815 | ac_check_lib_save_LIBS=$LIBS | |
17816 | LIBS="-lm $LIBS" | |
17817 | if test x$gcc_no_link = xyes; then | |
17818 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17819 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17820 | { (exit 1); exit 1; }; } | |
17821 | fi | |
17822 | cat >conftest.$ac_ext <<_ACEOF | |
17823 | /* confdefs.h. */ | |
17824 | _ACEOF | |
17825 | cat confdefs.h >>conftest.$ac_ext | |
17826 | cat >>conftest.$ac_ext <<_ACEOF | |
17827 | /* end confdefs.h. */ | |
17828 | ||
17829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17830 | #ifdef __cplusplus | |
17831 | extern "C" | |
17832 | #endif | |
17833 | /* We use char because int might match the return type of a gcc2 | |
17834 | builtin and then its argument prototype would still apply. */ | |
17835 | char j0l (); | |
17836 | int | |
17837 | main () | |
17838 | { | |
17839 | j0l (); | |
17840 | ; | |
17841 | return 0; | |
17842 | } | |
17843 | _ACEOF | |
17844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17846 | (eval $ac_link) 2>conftest.er1 | |
17847 | ac_status=$? | |
17848 | grep -v '^ *+' conftest.er1 >conftest.err | |
17849 | rm -f conftest.er1 | |
17850 | cat conftest.err >&5 | |
17851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17852 | (exit $ac_status); } && | |
b56cb1ff | 17853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17855 | (eval $ac_try) 2>&5 | |
17856 | ac_status=$? | |
17857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17858 | (exit $ac_status); }; } && | |
17859 | { ac_try='test -s conftest$ac_exeext' | |
17860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17861 | (eval $ac_try) 2>&5 | |
17862 | ac_status=$? | |
17863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17864 | (exit $ac_status); }; }; then | |
17865 | ac_cv_lib_m_j0l=yes | |
17866 | else | |
17867 | echo "$as_me: failed program was:" >&5 | |
17868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17869 | ||
17870 | ac_cv_lib_m_j0l=no | |
17871 | fi | |
17872 | rm -f conftest.err conftest.$ac_objext \ | |
17873 | conftest$ac_exeext conftest.$ac_ext | |
17874 | LIBS=$ac_check_lib_save_LIBS | |
17875 | fi | |
17876 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0l" >&5 | |
17877 | echo "${ECHO_T}$ac_cv_lib_m_j0l" >&6 | |
17878 | if test $ac_cv_lib_m_j0l = yes; then | |
17879 | ||
17880 | cat >>confdefs.h <<\_ACEOF | |
17881 | #define HAVE_J0L 1 | |
17882 | _ACEOF | |
17883 | ||
17884 | fi | |
17885 | ||
17886 | echo "$as_me:$LINENO: checking for j1f in -lm" >&5 | |
17887 | echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6 | |
17888 | if test "${ac_cv_lib_m_j1f+set}" = set; then | |
17889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17890 | else | |
17891 | ac_check_lib_save_LIBS=$LIBS | |
17892 | LIBS="-lm $LIBS" | |
17893 | if test x$gcc_no_link = xyes; then | |
17894 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17895 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17896 | { (exit 1); exit 1; }; } | |
17897 | fi | |
17898 | cat >conftest.$ac_ext <<_ACEOF | |
17899 | /* confdefs.h. */ | |
17900 | _ACEOF | |
17901 | cat confdefs.h >>conftest.$ac_ext | |
17902 | cat >>conftest.$ac_ext <<_ACEOF | |
17903 | /* end confdefs.h. */ | |
17904 | ||
17905 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17906 | #ifdef __cplusplus | |
17907 | extern "C" | |
17908 | #endif | |
17909 | /* We use char because int might match the return type of a gcc2 | |
17910 | builtin and then its argument prototype would still apply. */ | |
17911 | char j1f (); | |
17912 | int | |
17913 | main () | |
17914 | { | |
17915 | j1f (); | |
17916 | ; | |
17917 | return 0; | |
17918 | } | |
17919 | _ACEOF | |
17920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17922 | (eval $ac_link) 2>conftest.er1 | |
17923 | ac_status=$? | |
17924 | grep -v '^ *+' conftest.er1 >conftest.err | |
17925 | rm -f conftest.er1 | |
17926 | cat conftest.err >&5 | |
17927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17928 | (exit $ac_status); } && | |
b56cb1ff | 17929 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d213114b | 17930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17931 | (eval $ac_try) 2>&5 | |
17932 | ac_status=$? | |
17933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17934 | (exit $ac_status); }; } && | |
17935 | { ac_try='test -s conftest$ac_exeext' | |
17936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17937 | (eval $ac_try) 2>&5 | |
17938 | ac_status=$? | |
17939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17940 | (exit $ac_status); }; }; then | |
17941 | ac_cv_lib_m_j1f=yes | |
17942 | else | |
17943 | echo "$as_me: failed program was:" >&5 | |
17944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17945 | ||
17946 | ac_cv_lib_m_j1f=no | |
158e0e64 | 17947 | fi |
17948 | rm -f conftest.err conftest.$ac_objext \ | |
17949 | conftest$ac_exeext conftest.$ac_ext | |
17950 | LIBS=$ac_check_lib_save_LIBS | |
17951 | fi | |
d213114b | 17952 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5 |
17953 | echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6 | |
17954 | if test $ac_cv_lib_m_j1f = yes; then | |
158e0e64 | 17955 | |
17956 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 17957 | #define HAVE_J1F 1 |
158e0e64 | 17958 | _ACEOF |
17959 | ||
17960 | fi | |
17961 | ||
d213114b | 17962 | echo "$as_me:$LINENO: checking for j1 in -lm" >&5 |
17963 | echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6 | |
17964 | if test "${ac_cv_lib_m_j1+set}" = set; then | |
158e0e64 | 17965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17966 | else | |
17967 | ac_check_lib_save_LIBS=$LIBS | |
17968 | LIBS="-lm $LIBS" | |
b52ee437 | 17969 | if test x$gcc_no_link = xyes; then |
17970 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17971 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17972 | { (exit 1); exit 1; }; } | |
17973 | fi | |
158e0e64 | 17974 | cat >conftest.$ac_ext <<_ACEOF |
17975 | /* confdefs.h. */ | |
17976 | _ACEOF | |
17977 | cat confdefs.h >>conftest.$ac_ext | |
17978 | cat >>conftest.$ac_ext <<_ACEOF | |
17979 | /* end confdefs.h. */ | |
17980 | ||
17981 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17982 | #ifdef __cplusplus | |
17983 | extern "C" | |
17984 | #endif | |
17985 | /* We use char because int might match the return type of a gcc2 | |
17986 | builtin and then its argument prototype would still apply. */ | |
d213114b | 17987 | char j1 (); |
158e0e64 | 17988 | int |
17989 | main () | |
17990 | { | |
d213114b | 17991 | j1 (); |
158e0e64 | 17992 | ; |
17993 | return 0; | |
17994 | } | |
17995 | _ACEOF | |
17996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17998 | (eval $ac_link) 2>conftest.er1 | |
17999 | ac_status=$? | |
18000 | grep -v '^ *+' conftest.er1 >conftest.err | |
18001 | rm -f conftest.er1 | |
18002 | cat conftest.err >&5 | |
18003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18004 | (exit $ac_status); } && | |
b56cb1ff | 18005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18007 | (eval $ac_try) 2>&5 | |
18008 | ac_status=$? | |
18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18010 | (exit $ac_status); }; } && | |
18011 | { ac_try='test -s conftest$ac_exeext' | |
18012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18013 | (eval $ac_try) 2>&5 | |
18014 | ac_status=$? | |
18015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18016 | (exit $ac_status); }; }; then | |
d213114b | 18017 | ac_cv_lib_m_j1=yes |
158e0e64 | 18018 | else |
18019 | echo "$as_me: failed program was:" >&5 | |
18020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18021 | ||
d213114b | 18022 | ac_cv_lib_m_j1=no |
158e0e64 | 18023 | fi |
18024 | rm -f conftest.err conftest.$ac_objext \ | |
18025 | conftest$ac_exeext conftest.$ac_ext | |
18026 | LIBS=$ac_check_lib_save_LIBS | |
18027 | fi | |
d213114b | 18028 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5 |
18029 | echo "${ECHO_T}$ac_cv_lib_m_j1" >&6 | |
18030 | if test $ac_cv_lib_m_j1 = yes; then | |
158e0e64 | 18031 | |
18032 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18033 | #define HAVE_J1 1 |
158e0e64 | 18034 | _ACEOF |
18035 | ||
18036 | fi | |
18037 | ||
d213114b | 18038 | echo "$as_me:$LINENO: checking for j1l in -lm" >&5 |
18039 | echo $ECHO_N "checking for j1l in -lm... $ECHO_C" >&6 | |
18040 | if test "${ac_cv_lib_m_j1l+set}" = set; then | |
158e0e64 | 18041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18042 | else | |
18043 | ac_check_lib_save_LIBS=$LIBS | |
18044 | LIBS="-lm $LIBS" | |
b52ee437 | 18045 | if test x$gcc_no_link = xyes; then |
18046 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18047 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18048 | { (exit 1); exit 1; }; } | |
18049 | fi | |
158e0e64 | 18050 | cat >conftest.$ac_ext <<_ACEOF |
18051 | /* confdefs.h. */ | |
18052 | _ACEOF | |
18053 | cat confdefs.h >>conftest.$ac_ext | |
18054 | cat >>conftest.$ac_ext <<_ACEOF | |
18055 | /* end confdefs.h. */ | |
18056 | ||
18057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18058 | #ifdef __cplusplus | |
18059 | extern "C" | |
18060 | #endif | |
18061 | /* We use char because int might match the return type of a gcc2 | |
18062 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18063 | char j1l (); |
158e0e64 | 18064 | int |
18065 | main () | |
18066 | { | |
d213114b | 18067 | j1l (); |
158e0e64 | 18068 | ; |
18069 | return 0; | |
18070 | } | |
18071 | _ACEOF | |
18072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18074 | (eval $ac_link) 2>conftest.er1 | |
18075 | ac_status=$? | |
18076 | grep -v '^ *+' conftest.er1 >conftest.err | |
18077 | rm -f conftest.er1 | |
18078 | cat conftest.err >&5 | |
18079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18080 | (exit $ac_status); } && | |
b56cb1ff | 18081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18083 | (eval $ac_try) 2>&5 | |
18084 | ac_status=$? | |
18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18086 | (exit $ac_status); }; } && | |
18087 | { ac_try='test -s conftest$ac_exeext' | |
18088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18089 | (eval $ac_try) 2>&5 | |
18090 | ac_status=$? | |
18091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18092 | (exit $ac_status); }; }; then | |
d213114b | 18093 | ac_cv_lib_m_j1l=yes |
158e0e64 | 18094 | else |
18095 | echo "$as_me: failed program was:" >&5 | |
18096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18097 | ||
d213114b | 18098 | ac_cv_lib_m_j1l=no |
158e0e64 | 18099 | fi |
18100 | rm -f conftest.err conftest.$ac_objext \ | |
18101 | conftest$ac_exeext conftest.$ac_ext | |
18102 | LIBS=$ac_check_lib_save_LIBS | |
18103 | fi | |
d213114b | 18104 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1l" >&5 |
18105 | echo "${ECHO_T}$ac_cv_lib_m_j1l" >&6 | |
18106 | if test $ac_cv_lib_m_j1l = yes; then | |
158e0e64 | 18107 | |
18108 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18109 | #define HAVE_J1L 1 |
158e0e64 | 18110 | _ACEOF |
18111 | ||
18112 | fi | |
18113 | ||
d213114b | 18114 | echo "$as_me:$LINENO: checking for jnf in -lm" >&5 |
18115 | echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6 | |
18116 | if test "${ac_cv_lib_m_jnf+set}" = set; then | |
158e0e64 | 18117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18118 | else | |
18119 | ac_check_lib_save_LIBS=$LIBS | |
18120 | LIBS="-lm $LIBS" | |
b52ee437 | 18121 | if test x$gcc_no_link = xyes; then |
18122 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18123 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18124 | { (exit 1); exit 1; }; } | |
18125 | fi | |
158e0e64 | 18126 | cat >conftest.$ac_ext <<_ACEOF |
18127 | /* confdefs.h. */ | |
18128 | _ACEOF | |
18129 | cat confdefs.h >>conftest.$ac_ext | |
18130 | cat >>conftest.$ac_ext <<_ACEOF | |
18131 | /* end confdefs.h. */ | |
18132 | ||
18133 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18134 | #ifdef __cplusplus | |
18135 | extern "C" | |
18136 | #endif | |
18137 | /* We use char because int might match the return type of a gcc2 | |
18138 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18139 | char jnf (); |
158e0e64 | 18140 | int |
18141 | main () | |
18142 | { | |
d213114b | 18143 | jnf (); |
158e0e64 | 18144 | ; |
18145 | return 0; | |
18146 | } | |
18147 | _ACEOF | |
18148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18150 | (eval $ac_link) 2>conftest.er1 | |
18151 | ac_status=$? | |
18152 | grep -v '^ *+' conftest.er1 >conftest.err | |
18153 | rm -f conftest.er1 | |
18154 | cat conftest.err >&5 | |
18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18156 | (exit $ac_status); } && | |
b56cb1ff | 18157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18159 | (eval $ac_try) 2>&5 | |
18160 | ac_status=$? | |
18161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18162 | (exit $ac_status); }; } && | |
18163 | { ac_try='test -s conftest$ac_exeext' | |
18164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18165 | (eval $ac_try) 2>&5 | |
18166 | ac_status=$? | |
18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18168 | (exit $ac_status); }; }; then | |
d213114b | 18169 | ac_cv_lib_m_jnf=yes |
158e0e64 | 18170 | else |
18171 | echo "$as_me: failed program was:" >&5 | |
18172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18173 | ||
d213114b | 18174 | ac_cv_lib_m_jnf=no |
158e0e64 | 18175 | fi |
18176 | rm -f conftest.err conftest.$ac_objext \ | |
18177 | conftest$ac_exeext conftest.$ac_ext | |
18178 | LIBS=$ac_check_lib_save_LIBS | |
18179 | fi | |
d213114b | 18180 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5 |
18181 | echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6 | |
18182 | if test $ac_cv_lib_m_jnf = yes; then | |
158e0e64 | 18183 | |
18184 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18185 | #define HAVE_JNF 1 |
158e0e64 | 18186 | _ACEOF |
18187 | ||
18188 | fi | |
18189 | ||
d213114b | 18190 | echo "$as_me:$LINENO: checking for jn in -lm" >&5 |
18191 | echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6 | |
18192 | if test "${ac_cv_lib_m_jn+set}" = set; then | |
158e0e64 | 18193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18194 | else | |
18195 | ac_check_lib_save_LIBS=$LIBS | |
18196 | LIBS="-lm $LIBS" | |
b52ee437 | 18197 | if test x$gcc_no_link = xyes; then |
18198 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18199 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18200 | { (exit 1); exit 1; }; } | |
18201 | fi | |
158e0e64 | 18202 | cat >conftest.$ac_ext <<_ACEOF |
18203 | /* confdefs.h. */ | |
18204 | _ACEOF | |
18205 | cat confdefs.h >>conftest.$ac_ext | |
18206 | cat >>conftest.$ac_ext <<_ACEOF | |
18207 | /* end confdefs.h. */ | |
18208 | ||
18209 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18210 | #ifdef __cplusplus | |
18211 | extern "C" | |
18212 | #endif | |
18213 | /* We use char because int might match the return type of a gcc2 | |
18214 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18215 | char jn (); |
158e0e64 | 18216 | int |
18217 | main () | |
18218 | { | |
d213114b | 18219 | jn (); |
158e0e64 | 18220 | ; |
18221 | return 0; | |
18222 | } | |
18223 | _ACEOF | |
18224 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18226 | (eval $ac_link) 2>conftest.er1 | |
18227 | ac_status=$? | |
18228 | grep -v '^ *+' conftest.er1 >conftest.err | |
18229 | rm -f conftest.er1 | |
18230 | cat conftest.err >&5 | |
18231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18232 | (exit $ac_status); } && | |
b56cb1ff | 18233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18235 | (eval $ac_try) 2>&5 | |
18236 | ac_status=$? | |
18237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18238 | (exit $ac_status); }; } && | |
18239 | { ac_try='test -s conftest$ac_exeext' | |
18240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18241 | (eval $ac_try) 2>&5 | |
18242 | ac_status=$? | |
18243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18244 | (exit $ac_status); }; }; then | |
d213114b | 18245 | ac_cv_lib_m_jn=yes |
158e0e64 | 18246 | else |
18247 | echo "$as_me: failed program was:" >&5 | |
18248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18249 | ||
d213114b | 18250 | ac_cv_lib_m_jn=no |
158e0e64 | 18251 | fi |
18252 | rm -f conftest.err conftest.$ac_objext \ | |
18253 | conftest$ac_exeext conftest.$ac_ext | |
18254 | LIBS=$ac_check_lib_save_LIBS | |
18255 | fi | |
d213114b | 18256 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5 |
18257 | echo "${ECHO_T}$ac_cv_lib_m_jn" >&6 | |
18258 | if test $ac_cv_lib_m_jn = yes; then | |
158e0e64 | 18259 | |
18260 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18261 | #define HAVE_JN 1 |
158e0e64 | 18262 | _ACEOF |
18263 | ||
18264 | fi | |
18265 | ||
d213114b | 18266 | echo "$as_me:$LINENO: checking for jnl in -lm" >&5 |
18267 | echo $ECHO_N "checking for jnl in -lm... $ECHO_C" >&6 | |
18268 | if test "${ac_cv_lib_m_jnl+set}" = set; then | |
158e0e64 | 18269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18270 | else | |
18271 | ac_check_lib_save_LIBS=$LIBS | |
18272 | LIBS="-lm $LIBS" | |
b52ee437 | 18273 | if test x$gcc_no_link = xyes; then |
18274 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18275 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18276 | { (exit 1); exit 1; }; } | |
18277 | fi | |
158e0e64 | 18278 | cat >conftest.$ac_ext <<_ACEOF |
18279 | /* confdefs.h. */ | |
18280 | _ACEOF | |
18281 | cat confdefs.h >>conftest.$ac_ext | |
18282 | cat >>conftest.$ac_ext <<_ACEOF | |
18283 | /* end confdefs.h. */ | |
18284 | ||
18285 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18286 | #ifdef __cplusplus | |
18287 | extern "C" | |
18288 | #endif | |
18289 | /* We use char because int might match the return type of a gcc2 | |
18290 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18291 | char jnl (); |
158e0e64 | 18292 | int |
18293 | main () | |
18294 | { | |
d213114b | 18295 | jnl (); |
158e0e64 | 18296 | ; |
18297 | return 0; | |
18298 | } | |
18299 | _ACEOF | |
18300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18302 | (eval $ac_link) 2>conftest.er1 | |
18303 | ac_status=$? | |
18304 | grep -v '^ *+' conftest.er1 >conftest.err | |
18305 | rm -f conftest.er1 | |
18306 | cat conftest.err >&5 | |
18307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18308 | (exit $ac_status); } && | |
b56cb1ff | 18309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18311 | (eval $ac_try) 2>&5 | |
18312 | ac_status=$? | |
18313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18314 | (exit $ac_status); }; } && | |
18315 | { ac_try='test -s conftest$ac_exeext' | |
18316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18317 | (eval $ac_try) 2>&5 | |
18318 | ac_status=$? | |
18319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18320 | (exit $ac_status); }; }; then | |
d213114b | 18321 | ac_cv_lib_m_jnl=yes |
158e0e64 | 18322 | else |
18323 | echo "$as_me: failed program was:" >&5 | |
18324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18325 | ||
d213114b | 18326 | ac_cv_lib_m_jnl=no |
158e0e64 | 18327 | fi |
18328 | rm -f conftest.err conftest.$ac_objext \ | |
18329 | conftest$ac_exeext conftest.$ac_ext | |
18330 | LIBS=$ac_check_lib_save_LIBS | |
18331 | fi | |
d213114b | 18332 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnl" >&5 |
18333 | echo "${ECHO_T}$ac_cv_lib_m_jnl" >&6 | |
18334 | if test $ac_cv_lib_m_jnl = yes; then | |
158e0e64 | 18335 | |
18336 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18337 | #define HAVE_JNL 1 |
158e0e64 | 18338 | _ACEOF |
18339 | ||
18340 | fi | |
18341 | ||
d213114b | 18342 | echo "$as_me:$LINENO: checking for y0f in -lm" >&5 |
18343 | echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6 | |
18344 | if test "${ac_cv_lib_m_y0f+set}" = set; then | |
158e0e64 | 18345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18346 | else | |
18347 | ac_check_lib_save_LIBS=$LIBS | |
18348 | LIBS="-lm $LIBS" | |
b52ee437 | 18349 | if test x$gcc_no_link = xyes; then |
18350 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18351 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18352 | { (exit 1); exit 1; }; } | |
18353 | fi | |
158e0e64 | 18354 | cat >conftest.$ac_ext <<_ACEOF |
18355 | /* confdefs.h. */ | |
18356 | _ACEOF | |
18357 | cat confdefs.h >>conftest.$ac_ext | |
18358 | cat >>conftest.$ac_ext <<_ACEOF | |
18359 | /* end confdefs.h. */ | |
18360 | ||
18361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18362 | #ifdef __cplusplus | |
18363 | extern "C" | |
18364 | #endif | |
18365 | /* We use char because int might match the return type of a gcc2 | |
18366 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18367 | char y0f (); |
158e0e64 | 18368 | int |
18369 | main () | |
18370 | { | |
d213114b | 18371 | y0f (); |
158e0e64 | 18372 | ; |
18373 | return 0; | |
18374 | } | |
18375 | _ACEOF | |
18376 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18378 | (eval $ac_link) 2>conftest.er1 | |
18379 | ac_status=$? | |
18380 | grep -v '^ *+' conftest.er1 >conftest.err | |
18381 | rm -f conftest.er1 | |
18382 | cat conftest.err >&5 | |
18383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18384 | (exit $ac_status); } && | |
b56cb1ff | 18385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18387 | (eval $ac_try) 2>&5 | |
18388 | ac_status=$? | |
18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18390 | (exit $ac_status); }; } && | |
18391 | { ac_try='test -s conftest$ac_exeext' | |
18392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18393 | (eval $ac_try) 2>&5 | |
18394 | ac_status=$? | |
18395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18396 | (exit $ac_status); }; }; then | |
d213114b | 18397 | ac_cv_lib_m_y0f=yes |
158e0e64 | 18398 | else |
18399 | echo "$as_me: failed program was:" >&5 | |
18400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18401 | ||
d213114b | 18402 | ac_cv_lib_m_y0f=no |
158e0e64 | 18403 | fi |
18404 | rm -f conftest.err conftest.$ac_objext \ | |
18405 | conftest$ac_exeext conftest.$ac_ext | |
18406 | LIBS=$ac_check_lib_save_LIBS | |
18407 | fi | |
d213114b | 18408 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5 |
18409 | echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6 | |
18410 | if test $ac_cv_lib_m_y0f = yes; then | |
158e0e64 | 18411 | |
18412 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18413 | #define HAVE_Y0F 1 |
158e0e64 | 18414 | _ACEOF |
18415 | ||
18416 | fi | |
18417 | ||
d213114b | 18418 | echo "$as_me:$LINENO: checking for y0 in -lm" >&5 |
18419 | echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6 | |
18420 | if test "${ac_cv_lib_m_y0+set}" = set; then | |
158e0e64 | 18421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18422 | else | |
18423 | ac_check_lib_save_LIBS=$LIBS | |
18424 | LIBS="-lm $LIBS" | |
b52ee437 | 18425 | if test x$gcc_no_link = xyes; then |
18426 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18427 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18428 | { (exit 1); exit 1; }; } | |
18429 | fi | |
158e0e64 | 18430 | cat >conftest.$ac_ext <<_ACEOF |
18431 | /* confdefs.h. */ | |
18432 | _ACEOF | |
18433 | cat confdefs.h >>conftest.$ac_ext | |
18434 | cat >>conftest.$ac_ext <<_ACEOF | |
18435 | /* end confdefs.h. */ | |
18436 | ||
18437 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18438 | #ifdef __cplusplus | |
18439 | extern "C" | |
18440 | #endif | |
18441 | /* We use char because int might match the return type of a gcc2 | |
18442 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18443 | char y0 (); |
158e0e64 | 18444 | int |
18445 | main () | |
18446 | { | |
d213114b | 18447 | y0 (); |
158e0e64 | 18448 | ; |
18449 | return 0; | |
18450 | } | |
18451 | _ACEOF | |
18452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18454 | (eval $ac_link) 2>conftest.er1 | |
18455 | ac_status=$? | |
18456 | grep -v '^ *+' conftest.er1 >conftest.err | |
18457 | rm -f conftest.er1 | |
18458 | cat conftest.err >&5 | |
18459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18460 | (exit $ac_status); } && | |
b56cb1ff | 18461 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18463 | (eval $ac_try) 2>&5 | |
18464 | ac_status=$? | |
18465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18466 | (exit $ac_status); }; } && | |
18467 | { ac_try='test -s conftest$ac_exeext' | |
18468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18469 | (eval $ac_try) 2>&5 | |
18470 | ac_status=$? | |
18471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18472 | (exit $ac_status); }; }; then | |
d213114b | 18473 | ac_cv_lib_m_y0=yes |
158e0e64 | 18474 | else |
18475 | echo "$as_me: failed program was:" >&5 | |
18476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18477 | ||
d213114b | 18478 | ac_cv_lib_m_y0=no |
158e0e64 | 18479 | fi |
18480 | rm -f conftest.err conftest.$ac_objext \ | |
18481 | conftest$ac_exeext conftest.$ac_ext | |
18482 | LIBS=$ac_check_lib_save_LIBS | |
18483 | fi | |
d213114b | 18484 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5 |
18485 | echo "${ECHO_T}$ac_cv_lib_m_y0" >&6 | |
18486 | if test $ac_cv_lib_m_y0 = yes; then | |
158e0e64 | 18487 | |
18488 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18489 | #define HAVE_Y0 1 |
158e0e64 | 18490 | _ACEOF |
18491 | ||
18492 | fi | |
18493 | ||
d213114b | 18494 | echo "$as_me:$LINENO: checking for y0l in -lm" >&5 |
18495 | echo $ECHO_N "checking for y0l in -lm... $ECHO_C" >&6 | |
18496 | if test "${ac_cv_lib_m_y0l+set}" = set; then | |
158e0e64 | 18497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18498 | else | |
18499 | ac_check_lib_save_LIBS=$LIBS | |
18500 | LIBS="-lm $LIBS" | |
b52ee437 | 18501 | if test x$gcc_no_link = xyes; then |
18502 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18503 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18504 | { (exit 1); exit 1; }; } | |
18505 | fi | |
158e0e64 | 18506 | cat >conftest.$ac_ext <<_ACEOF |
18507 | /* confdefs.h. */ | |
18508 | _ACEOF | |
18509 | cat confdefs.h >>conftest.$ac_ext | |
18510 | cat >>conftest.$ac_ext <<_ACEOF | |
18511 | /* end confdefs.h. */ | |
18512 | ||
18513 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18514 | #ifdef __cplusplus | |
18515 | extern "C" | |
18516 | #endif | |
18517 | /* We use char because int might match the return type of a gcc2 | |
18518 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18519 | char y0l (); |
158e0e64 | 18520 | int |
18521 | main () | |
18522 | { | |
d213114b | 18523 | y0l (); |
158e0e64 | 18524 | ; |
18525 | return 0; | |
18526 | } | |
18527 | _ACEOF | |
18528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18530 | (eval $ac_link) 2>conftest.er1 | |
18531 | ac_status=$? | |
18532 | grep -v '^ *+' conftest.er1 >conftest.err | |
18533 | rm -f conftest.er1 | |
18534 | cat conftest.err >&5 | |
18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18536 | (exit $ac_status); } && | |
b56cb1ff | 18537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18539 | (eval $ac_try) 2>&5 | |
18540 | ac_status=$? | |
18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18542 | (exit $ac_status); }; } && | |
18543 | { ac_try='test -s conftest$ac_exeext' | |
18544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18545 | (eval $ac_try) 2>&5 | |
18546 | ac_status=$? | |
18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18548 | (exit $ac_status); }; }; then | |
d213114b | 18549 | ac_cv_lib_m_y0l=yes |
158e0e64 | 18550 | else |
18551 | echo "$as_me: failed program was:" >&5 | |
18552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18553 | ||
d213114b | 18554 | ac_cv_lib_m_y0l=no |
158e0e64 | 18555 | fi |
18556 | rm -f conftest.err conftest.$ac_objext \ | |
18557 | conftest$ac_exeext conftest.$ac_ext | |
18558 | LIBS=$ac_check_lib_save_LIBS | |
18559 | fi | |
d213114b | 18560 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0l" >&5 |
18561 | echo "${ECHO_T}$ac_cv_lib_m_y0l" >&6 | |
18562 | if test $ac_cv_lib_m_y0l = yes; then | |
158e0e64 | 18563 | |
18564 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18565 | #define HAVE_Y0L 1 |
158e0e64 | 18566 | _ACEOF |
18567 | ||
18568 | fi | |
18569 | ||
d213114b | 18570 | echo "$as_me:$LINENO: checking for y1f in -lm" >&5 |
18571 | echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6 | |
18572 | if test "${ac_cv_lib_m_y1f+set}" = set; then | |
158e0e64 | 18573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18574 | else | |
18575 | ac_check_lib_save_LIBS=$LIBS | |
18576 | LIBS="-lm $LIBS" | |
b52ee437 | 18577 | if test x$gcc_no_link = xyes; then |
18578 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18579 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18580 | { (exit 1); exit 1; }; } | |
18581 | fi | |
158e0e64 | 18582 | cat >conftest.$ac_ext <<_ACEOF |
18583 | /* confdefs.h. */ | |
18584 | _ACEOF | |
18585 | cat confdefs.h >>conftest.$ac_ext | |
18586 | cat >>conftest.$ac_ext <<_ACEOF | |
18587 | /* end confdefs.h. */ | |
18588 | ||
18589 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18590 | #ifdef __cplusplus | |
18591 | extern "C" | |
18592 | #endif | |
18593 | /* We use char because int might match the return type of a gcc2 | |
18594 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18595 | char y1f (); |
158e0e64 | 18596 | int |
18597 | main () | |
18598 | { | |
d213114b | 18599 | y1f (); |
158e0e64 | 18600 | ; |
18601 | return 0; | |
18602 | } | |
18603 | _ACEOF | |
18604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18606 | (eval $ac_link) 2>conftest.er1 | |
18607 | ac_status=$? | |
18608 | grep -v '^ *+' conftest.er1 >conftest.err | |
18609 | rm -f conftest.er1 | |
18610 | cat conftest.err >&5 | |
18611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18612 | (exit $ac_status); } && | |
b56cb1ff | 18613 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18615 | (eval $ac_try) 2>&5 | |
18616 | ac_status=$? | |
18617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18618 | (exit $ac_status); }; } && | |
18619 | { ac_try='test -s conftest$ac_exeext' | |
18620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18621 | (eval $ac_try) 2>&5 | |
18622 | ac_status=$? | |
18623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18624 | (exit $ac_status); }; }; then | |
d213114b | 18625 | ac_cv_lib_m_y1f=yes |
158e0e64 | 18626 | else |
18627 | echo "$as_me: failed program was:" >&5 | |
18628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18629 | ||
d213114b | 18630 | ac_cv_lib_m_y1f=no |
158e0e64 | 18631 | fi |
18632 | rm -f conftest.err conftest.$ac_objext \ | |
18633 | conftest$ac_exeext conftest.$ac_ext | |
18634 | LIBS=$ac_check_lib_save_LIBS | |
18635 | fi | |
d213114b | 18636 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5 |
18637 | echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6 | |
18638 | if test $ac_cv_lib_m_y1f = yes; then | |
158e0e64 | 18639 | |
18640 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18641 | #define HAVE_Y1F 1 |
158e0e64 | 18642 | _ACEOF |
18643 | ||
18644 | fi | |
18645 | ||
d213114b | 18646 | echo "$as_me:$LINENO: checking for y1 in -lm" >&5 |
18647 | echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6 | |
18648 | if test "${ac_cv_lib_m_y1+set}" = set; then | |
158e0e64 | 18649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18650 | else | |
18651 | ac_check_lib_save_LIBS=$LIBS | |
18652 | LIBS="-lm $LIBS" | |
b52ee437 | 18653 | if test x$gcc_no_link = xyes; then |
18654 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18655 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18656 | { (exit 1); exit 1; }; } | |
18657 | fi | |
158e0e64 | 18658 | cat >conftest.$ac_ext <<_ACEOF |
18659 | /* confdefs.h. */ | |
18660 | _ACEOF | |
18661 | cat confdefs.h >>conftest.$ac_ext | |
18662 | cat >>conftest.$ac_ext <<_ACEOF | |
18663 | /* end confdefs.h. */ | |
18664 | ||
18665 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18666 | #ifdef __cplusplus | |
18667 | extern "C" | |
18668 | #endif | |
18669 | /* We use char because int might match the return type of a gcc2 | |
18670 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18671 | char y1 (); |
158e0e64 | 18672 | int |
18673 | main () | |
18674 | { | |
d213114b | 18675 | y1 (); |
158e0e64 | 18676 | ; |
18677 | return 0; | |
18678 | } | |
18679 | _ACEOF | |
18680 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18682 | (eval $ac_link) 2>conftest.er1 | |
18683 | ac_status=$? | |
18684 | grep -v '^ *+' conftest.er1 >conftest.err | |
18685 | rm -f conftest.er1 | |
18686 | cat conftest.err >&5 | |
18687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18688 | (exit $ac_status); } && | |
b56cb1ff | 18689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18691 | (eval $ac_try) 2>&5 | |
18692 | ac_status=$? | |
18693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18694 | (exit $ac_status); }; } && | |
18695 | { ac_try='test -s conftest$ac_exeext' | |
18696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18697 | (eval $ac_try) 2>&5 | |
18698 | ac_status=$? | |
18699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18700 | (exit $ac_status); }; }; then | |
d213114b | 18701 | ac_cv_lib_m_y1=yes |
158e0e64 | 18702 | else |
18703 | echo "$as_me: failed program was:" >&5 | |
18704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18705 | ||
d213114b | 18706 | ac_cv_lib_m_y1=no |
158e0e64 | 18707 | fi |
18708 | rm -f conftest.err conftest.$ac_objext \ | |
18709 | conftest$ac_exeext conftest.$ac_ext | |
18710 | LIBS=$ac_check_lib_save_LIBS | |
18711 | fi | |
d213114b | 18712 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5 |
18713 | echo "${ECHO_T}$ac_cv_lib_m_y1" >&6 | |
18714 | if test $ac_cv_lib_m_y1 = yes; then | |
158e0e64 | 18715 | |
18716 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18717 | #define HAVE_Y1 1 |
158e0e64 | 18718 | _ACEOF |
18719 | ||
18720 | fi | |
18721 | ||
d213114b | 18722 | echo "$as_me:$LINENO: checking for y1l in -lm" >&5 |
18723 | echo $ECHO_N "checking for y1l in -lm... $ECHO_C" >&6 | |
18724 | if test "${ac_cv_lib_m_y1l+set}" = set; then | |
158e0e64 | 18725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18726 | else | |
18727 | ac_check_lib_save_LIBS=$LIBS | |
18728 | LIBS="-lm $LIBS" | |
b52ee437 | 18729 | if test x$gcc_no_link = xyes; then |
18730 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18731 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18732 | { (exit 1); exit 1; }; } | |
18733 | fi | |
158e0e64 | 18734 | cat >conftest.$ac_ext <<_ACEOF |
18735 | /* confdefs.h. */ | |
18736 | _ACEOF | |
18737 | cat confdefs.h >>conftest.$ac_ext | |
18738 | cat >>conftest.$ac_ext <<_ACEOF | |
18739 | /* end confdefs.h. */ | |
18740 | ||
18741 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18742 | #ifdef __cplusplus | |
18743 | extern "C" | |
18744 | #endif | |
18745 | /* We use char because int might match the return type of a gcc2 | |
18746 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18747 | char y1l (); |
158e0e64 | 18748 | int |
18749 | main () | |
18750 | { | |
d213114b | 18751 | y1l (); |
158e0e64 | 18752 | ; |
18753 | return 0; | |
18754 | } | |
18755 | _ACEOF | |
18756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18758 | (eval $ac_link) 2>conftest.er1 | |
18759 | ac_status=$? | |
18760 | grep -v '^ *+' conftest.er1 >conftest.err | |
18761 | rm -f conftest.er1 | |
18762 | cat conftest.err >&5 | |
18763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18764 | (exit $ac_status); } && | |
b56cb1ff | 18765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18767 | (eval $ac_try) 2>&5 | |
18768 | ac_status=$? | |
18769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18770 | (exit $ac_status); }; } && | |
18771 | { ac_try='test -s conftest$ac_exeext' | |
18772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18773 | (eval $ac_try) 2>&5 | |
18774 | ac_status=$? | |
18775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18776 | (exit $ac_status); }; }; then | |
d213114b | 18777 | ac_cv_lib_m_y1l=yes |
158e0e64 | 18778 | else |
18779 | echo "$as_me: failed program was:" >&5 | |
18780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18781 | ||
d213114b | 18782 | ac_cv_lib_m_y1l=no |
158e0e64 | 18783 | fi |
18784 | rm -f conftest.err conftest.$ac_objext \ | |
18785 | conftest$ac_exeext conftest.$ac_ext | |
18786 | LIBS=$ac_check_lib_save_LIBS | |
18787 | fi | |
d213114b | 18788 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1l" >&5 |
18789 | echo "${ECHO_T}$ac_cv_lib_m_y1l" >&6 | |
18790 | if test $ac_cv_lib_m_y1l = yes; then | |
158e0e64 | 18791 | |
18792 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18793 | #define HAVE_Y1L 1 |
158e0e64 | 18794 | _ACEOF |
18795 | ||
18796 | fi | |
18797 | ||
d213114b | 18798 | echo "$as_me:$LINENO: checking for ynf in -lm" >&5 |
18799 | echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6 | |
18800 | if test "${ac_cv_lib_m_ynf+set}" = set; then | |
158e0e64 | 18801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18802 | else | |
18803 | ac_check_lib_save_LIBS=$LIBS | |
18804 | LIBS="-lm $LIBS" | |
b52ee437 | 18805 | if test x$gcc_no_link = xyes; then |
18806 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18807 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18808 | { (exit 1); exit 1; }; } | |
18809 | fi | |
158e0e64 | 18810 | cat >conftest.$ac_ext <<_ACEOF |
18811 | /* confdefs.h. */ | |
18812 | _ACEOF | |
18813 | cat confdefs.h >>conftest.$ac_ext | |
18814 | cat >>conftest.$ac_ext <<_ACEOF | |
18815 | /* end confdefs.h. */ | |
18816 | ||
18817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18818 | #ifdef __cplusplus | |
18819 | extern "C" | |
18820 | #endif | |
18821 | /* We use char because int might match the return type of a gcc2 | |
18822 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18823 | char ynf (); |
158e0e64 | 18824 | int |
18825 | main () | |
18826 | { | |
d213114b | 18827 | ynf (); |
158e0e64 | 18828 | ; |
18829 | return 0; | |
18830 | } | |
18831 | _ACEOF | |
18832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18834 | (eval $ac_link) 2>conftest.er1 | |
18835 | ac_status=$? | |
18836 | grep -v '^ *+' conftest.er1 >conftest.err | |
18837 | rm -f conftest.er1 | |
18838 | cat conftest.err >&5 | |
18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18840 | (exit $ac_status); } && | |
b56cb1ff | 18841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18843 | (eval $ac_try) 2>&5 | |
18844 | ac_status=$? | |
18845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18846 | (exit $ac_status); }; } && | |
18847 | { ac_try='test -s conftest$ac_exeext' | |
18848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18849 | (eval $ac_try) 2>&5 | |
18850 | ac_status=$? | |
18851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18852 | (exit $ac_status); }; }; then | |
d213114b | 18853 | ac_cv_lib_m_ynf=yes |
158e0e64 | 18854 | else |
18855 | echo "$as_me: failed program was:" >&5 | |
18856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18857 | ||
d213114b | 18858 | ac_cv_lib_m_ynf=no |
158e0e64 | 18859 | fi |
18860 | rm -f conftest.err conftest.$ac_objext \ | |
18861 | conftest$ac_exeext conftest.$ac_ext | |
18862 | LIBS=$ac_check_lib_save_LIBS | |
18863 | fi | |
d213114b | 18864 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5 |
18865 | echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6 | |
18866 | if test $ac_cv_lib_m_ynf = yes; then | |
158e0e64 | 18867 | |
18868 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 18869 | #define HAVE_YNF 1 |
158e0e64 | 18870 | _ACEOF |
18871 | ||
18872 | fi | |
18873 | ||
18874 | echo "$as_me:$LINENO: checking for yn in -lm" >&5 | |
18875 | echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6 | |
18876 | if test "${ac_cv_lib_m_yn+set}" = set; then | |
18877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18878 | else | |
18879 | ac_check_lib_save_LIBS=$LIBS | |
18880 | LIBS="-lm $LIBS" | |
b52ee437 | 18881 | if test x$gcc_no_link = xyes; then |
18882 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18883 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18884 | { (exit 1); exit 1; }; } | |
18885 | fi | |
158e0e64 | 18886 | cat >conftest.$ac_ext <<_ACEOF |
18887 | /* confdefs.h. */ | |
18888 | _ACEOF | |
18889 | cat confdefs.h >>conftest.$ac_ext | |
18890 | cat >>conftest.$ac_ext <<_ACEOF | |
18891 | /* end confdefs.h. */ | |
18892 | ||
18893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18894 | #ifdef __cplusplus | |
18895 | extern "C" | |
18896 | #endif | |
18897 | /* We use char because int might match the return type of a gcc2 | |
18898 | builtin and then its argument prototype would still apply. */ | |
18899 | char yn (); | |
18900 | int | |
18901 | main () | |
18902 | { | |
18903 | yn (); | |
18904 | ; | |
18905 | return 0; | |
18906 | } | |
18907 | _ACEOF | |
18908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18910 | (eval $ac_link) 2>conftest.er1 | |
18911 | ac_status=$? | |
18912 | grep -v '^ *+' conftest.er1 >conftest.err | |
18913 | rm -f conftest.er1 | |
18914 | cat conftest.err >&5 | |
18915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18916 | (exit $ac_status); } && | |
b56cb1ff | 18917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18919 | (eval $ac_try) 2>&5 | |
18920 | ac_status=$? | |
18921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18922 | (exit $ac_status); }; } && | |
18923 | { ac_try='test -s conftest$ac_exeext' | |
18924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18925 | (eval $ac_try) 2>&5 | |
18926 | ac_status=$? | |
18927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18928 | (exit $ac_status); }; }; then | |
18929 | ac_cv_lib_m_yn=yes | |
18930 | else | |
18931 | echo "$as_me: failed program was:" >&5 | |
18932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18933 | ||
18934 | ac_cv_lib_m_yn=no | |
18935 | fi | |
18936 | rm -f conftest.err conftest.$ac_objext \ | |
18937 | conftest$ac_exeext conftest.$ac_ext | |
18938 | LIBS=$ac_check_lib_save_LIBS | |
18939 | fi | |
18940 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5 | |
18941 | echo "${ECHO_T}$ac_cv_lib_m_yn" >&6 | |
18942 | if test $ac_cv_lib_m_yn = yes; then | |
18943 | ||
18944 | cat >>confdefs.h <<\_ACEOF | |
18945 | #define HAVE_YN 1 | |
18946 | _ACEOF | |
18947 | ||
18948 | fi | |
18949 | ||
d213114b | 18950 | echo "$as_me:$LINENO: checking for ynl in -lm" >&5 |
18951 | echo $ECHO_N "checking for ynl in -lm... $ECHO_C" >&6 | |
18952 | if test "${ac_cv_lib_m_ynl+set}" = set; then | |
158e0e64 | 18953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18954 | else | |
18955 | ac_check_lib_save_LIBS=$LIBS | |
18956 | LIBS="-lm $LIBS" | |
b52ee437 | 18957 | if test x$gcc_no_link = xyes; then |
18958 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18959 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18960 | { (exit 1); exit 1; }; } | |
18961 | fi | |
158e0e64 | 18962 | cat >conftest.$ac_ext <<_ACEOF |
18963 | /* confdefs.h. */ | |
18964 | _ACEOF | |
18965 | cat confdefs.h >>conftest.$ac_ext | |
18966 | cat >>conftest.$ac_ext <<_ACEOF | |
18967 | /* end confdefs.h. */ | |
18968 | ||
18969 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18970 | #ifdef __cplusplus | |
18971 | extern "C" | |
18972 | #endif | |
18973 | /* We use char because int might match the return type of a gcc2 | |
18974 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18975 | char ynl (); |
158e0e64 | 18976 | int |
18977 | main () | |
18978 | { | |
d213114b | 18979 | ynl (); |
158e0e64 | 18980 | ; |
18981 | return 0; | |
18982 | } | |
18983 | _ACEOF | |
18984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18986 | (eval $ac_link) 2>conftest.er1 | |
18987 | ac_status=$? | |
18988 | grep -v '^ *+' conftest.er1 >conftest.err | |
18989 | rm -f conftest.er1 | |
18990 | cat conftest.err >&5 | |
18991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18992 | (exit $ac_status); } && | |
b56cb1ff | 18993 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
158e0e64 | 18994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18995 | (eval $ac_try) 2>&5 | |
18996 | ac_status=$? | |
18997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18998 | (exit $ac_status); }; } && | |
18999 | { ac_try='test -s conftest$ac_exeext' | |
19000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19001 | (eval $ac_try) 2>&5 | |
19002 | ac_status=$? | |
19003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19004 | (exit $ac_status); }; }; then | |
d213114b | 19005 | ac_cv_lib_m_ynl=yes |
158e0e64 | 19006 | else |
19007 | echo "$as_me: failed program was:" >&5 | |
19008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19009 | ||
d213114b | 19010 | ac_cv_lib_m_ynl=no |
158e0e64 | 19011 | fi |
19012 | rm -f conftest.err conftest.$ac_objext \ | |
19013 | conftest$ac_exeext conftest.$ac_ext | |
19014 | LIBS=$ac_check_lib_save_LIBS | |
19015 | fi | |
d213114b | 19016 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynl" >&5 |
19017 | echo "${ECHO_T}$ac_cv_lib_m_ynl" >&6 | |
19018 | if test $ac_cv_lib_m_ynl = yes; then | |
158e0e64 | 19019 | |
19020 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19021 | #define HAVE_YNL 1 |
158e0e64 | 19022 | _ACEOF |
19023 | ||
19024 | fi | |
19025 | ||
a31bd8a4 | 19026 | |
839904a0 | 19027 | # On AIX, clog is present in libm as __clog |
62a413d5 | 19028 | echo "$as_me:$LINENO: checking for __clog in -lm" >&5 |
19029 | echo $ECHO_N "checking for __clog in -lm... $ECHO_C" >&6 | |
19030 | if test "${ac_cv_lib_m___clog+set}" = set; then | |
19031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19032 | else | |
19033 | ac_check_lib_save_LIBS=$LIBS | |
19034 | LIBS="-lm $LIBS" | |
19035 | if test x$gcc_no_link = xyes; then | |
19036 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19037 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19038 | { (exit 1); exit 1; }; } | |
19039 | fi | |
19040 | cat >conftest.$ac_ext <<_ACEOF | |
19041 | /* confdefs.h. */ | |
19042 | _ACEOF | |
19043 | cat confdefs.h >>conftest.$ac_ext | |
19044 | cat >>conftest.$ac_ext <<_ACEOF | |
19045 | /* end confdefs.h. */ | |
19046 | ||
19047 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19048 | #ifdef __cplusplus | |
19049 | extern "C" | |
19050 | #endif | |
19051 | /* We use char because int might match the return type of a gcc2 | |
19052 | builtin and then its argument prototype would still apply. */ | |
19053 | char __clog (); | |
19054 | int | |
19055 | main () | |
19056 | { | |
19057 | __clog (); | |
19058 | ; | |
19059 | return 0; | |
19060 | } | |
19061 | _ACEOF | |
19062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19064 | (eval $ac_link) 2>conftest.er1 | |
19065 | ac_status=$? | |
19066 | grep -v '^ *+' conftest.er1 >conftest.err | |
19067 | rm -f conftest.er1 | |
19068 | cat conftest.err >&5 | |
19069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19070 | (exit $ac_status); } && | |
b56cb1ff | 19071 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
62a413d5 | 19072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19073 | (eval $ac_try) 2>&5 | |
19074 | ac_status=$? | |
19075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19076 | (exit $ac_status); }; } && | |
19077 | { ac_try='test -s conftest$ac_exeext' | |
19078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19079 | (eval $ac_try) 2>&5 | |
19080 | ac_status=$? | |
19081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19082 | (exit $ac_status); }; }; then | |
19083 | ac_cv_lib_m___clog=yes | |
19084 | else | |
19085 | echo "$as_me: failed program was:" >&5 | |
19086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19087 | ||
19088 | ac_cv_lib_m___clog=no | |
19089 | fi | |
19090 | rm -f conftest.err conftest.$ac_objext \ | |
19091 | conftest$ac_exeext conftest.$ac_ext | |
19092 | LIBS=$ac_check_lib_save_LIBS | |
19093 | fi | |
19094 | echo "$as_me:$LINENO: result: $ac_cv_lib_m___clog" >&5 | |
19095 | echo "${ECHO_T}$ac_cv_lib_m___clog" >&6 | |
19096 | if test $ac_cv_lib_m___clog = yes; then | |
19097 | ||
19098 | cat >>confdefs.h <<\_ACEOF | |
19099 | #define HAVE_CLOG 1 | |
19100 | _ACEOF | |
19101 | ||
19102 | fi | |
19103 | ||
19104 | ||
839904a0 | 19105 | # Check for a isfinite macro that works on long doubles. |
19106 | ||
19107 | echo "$as_me:$LINENO: checking whether isfinite is broken" >&5 | |
19108 | echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6 | |
19109 | if test "${have_broken_isfinite+set}" = set; then | |
19110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19111 | else | |
19112 | ||
19113 | libgfor_check_for_broken_isfinite_save_LIBS=$LIBS | |
19114 | LIBS="$LIBS -lm" | |
19115 | if test "$cross_compiling" = yes; then | |
19116 | ||
19117 | case "${target}" in | |
19118 | hppa*-*-hpux*) have_broken_isfinite=yes ;; | |
19119 | *) have_broken_isfinite=no ;; | |
19120 | esac | |
19121 | else | |
19122 | cat >conftest.$ac_ext <<_ACEOF | |
19123 | /* confdefs.h. */ | |
19124 | _ACEOF | |
19125 | cat confdefs.h >>conftest.$ac_ext | |
19126 | cat >>conftest.$ac_ext <<_ACEOF | |
19127 | /* end confdefs.h. */ | |
19128 | ||
19129 | #ifdef HAVE_MATH_H | |
19130 | #include <math.h> | |
19131 | #endif | |
19132 | #include <float.h> | |
19133 | int main () | |
19134 | { | |
19135 | #ifdef isfinite | |
19136 | #ifdef LDBL_MAX | |
19137 | if (!isfinite(LDBL_MAX)) return 1; | |
19138 | #endif | |
19139 | #ifdef DBL_MAX | |
19140 | if (!isfinite(DBL_MAX)) return 1; | |
19141 | #endif | |
19142 | #endif | |
19143 | return 0; | |
19144 | } | |
19145 | _ACEOF | |
19146 | rm -f conftest$ac_exeext | |
19147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19148 | (eval $ac_link) 2>&5 | |
19149 | ac_status=$? | |
19150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19151 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19153 | (eval $ac_try) 2>&5 | |
19154 | ac_status=$? | |
19155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19156 | (exit $ac_status); }; }; then | |
19157 | have_broken_isfinite=no | |
19158 | else | |
19159 | echo "$as_me: program exited with status $ac_status" >&5 | |
19160 | echo "$as_me: failed program was:" >&5 | |
19161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19162 | ||
19163 | ( exit $ac_status ) | |
19164 | have_broken_isfinite=yes | |
19165 | fi | |
19166 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19167 | fi | |
19168 | LIBS=$libgfor_check_for_broken_isfinite_save_LIBS | |
19169 | fi | |
19170 | echo "$as_me:$LINENO: result: $have_broken_isfinite" >&5 | |
19171 | echo "${ECHO_T}$have_broken_isfinite" >&6 | |
19172 | if test x"$have_broken_isfinite" = xyes; then | |
19173 | ||
19174 | cat >>confdefs.h <<\_ACEOF | |
19175 | #define HAVE_BROKEN_ISFINITE 1 | |
19176 | _ACEOF | |
19177 | ||
19178 | fi | |
19179 | ||
19180 | # Check for a isnan macro that works on long doubles. | |
19181 | ||
19182 | echo "$as_me:$LINENO: checking whether isnan is broken" >&5 | |
19183 | echo $ECHO_N "checking whether isnan is broken... $ECHO_C" >&6 | |
19184 | if test "${have_broken_isnan+set}" = set; then | |
19185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19186 | else | |
19187 | ||
19188 | libgfor_check_for_broken_isnan_save_LIBS=$LIBS | |
19189 | LIBS="$LIBS -lm" | |
19190 | if test "$cross_compiling" = yes; then | |
19191 | ||
19192 | case "${target}" in | |
19193 | hppa*-*-hpux*) have_broken_isnan=yes ;; | |
19194 | *) have_broken_isnan=no ;; | |
19195 | esac | |
19196 | else | |
19197 | cat >conftest.$ac_ext <<_ACEOF | |
19198 | /* confdefs.h. */ | |
19199 | _ACEOF | |
19200 | cat confdefs.h >>conftest.$ac_ext | |
19201 | cat >>conftest.$ac_ext <<_ACEOF | |
19202 | /* end confdefs.h. */ | |
19203 | ||
19204 | #ifdef HAVE_MATH_H | |
19205 | #include <math.h> | |
19206 | #endif | |
19207 | #include <float.h> | |
19208 | int main () | |
19209 | { | |
19210 | #ifdef isnan | |
19211 | #ifdef LDBL_MAX | |
19212 | { | |
19213 | long double x; | |
19214 | x = __builtin_nanl (""); | |
19215 | if (!isnan(x)) return 1; | |
19216 | if (isnan(LDBL_MAX)) return 1; | |
19217 | #ifdef NAN | |
19218 | x = (long double) NAN; | |
19219 | if (!isnan(x)) return 1; | |
19220 | #endif | |
19221 | } | |
19222 | #endif | |
19223 | #ifdef DBL_MAX | |
19224 | { | |
19225 | double y; | |
19226 | y = __builtin_nan (""); | |
19227 | if (!isnan(y)) return 1; | |
19228 | if (isnan(DBL_MAX)) return 1; | |
19229 | #ifdef NAN | |
19230 | y = (double) NAN; | |
19231 | if (!isnan(y)) return 1; | |
19232 | #endif | |
19233 | } | |
19234 | #endif | |
19235 | #endif | |
19236 | return 0; | |
19237 | } | |
19238 | _ACEOF | |
19239 | rm -f conftest$ac_exeext | |
19240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19241 | (eval $ac_link) 2>&5 | |
19242 | ac_status=$? | |
19243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19244 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19246 | (eval $ac_try) 2>&5 | |
19247 | ac_status=$? | |
19248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19249 | (exit $ac_status); }; }; then | |
19250 | have_broken_isnan=no | |
19251 | else | |
19252 | echo "$as_me: program exited with status $ac_status" >&5 | |
19253 | echo "$as_me: failed program was:" >&5 | |
19254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19255 | ||
19256 | ( exit $ac_status ) | |
19257 | have_broken_isnan=yes | |
19258 | fi | |
19259 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19260 | fi | |
19261 | LIBS=$libgfor_check_for_broken_isnan_save_LIBS | |
19262 | fi | |
19263 | echo "$as_me:$LINENO: result: $have_broken_isnan" >&5 | |
19264 | echo "${ECHO_T}$have_broken_isnan" >&6 | |
19265 | if test x"$have_broken_isnan" = xyes; then | |
19266 | ||
19267 | cat >>confdefs.h <<\_ACEOF | |
19268 | #define HAVE_BROKEN_ISNAN 1 | |
19269 | _ACEOF | |
19270 | ||
19271 | fi | |
19272 | ||
19273 | # Check for a fpclassify macro that works on long doubles. | |
19274 | ||
19275 | echo "$as_me:$LINENO: checking whether fpclassify is broken" >&5 | |
19276 | echo $ECHO_N "checking whether fpclassify is broken... $ECHO_C" >&6 | |
19277 | if test "${have_broken_fpclassify+set}" = set; then | |
19278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19279 | else | |
19280 | ||
19281 | libgfor_check_for_broken_fpclassify_save_LIBS=$LIBS | |
19282 | LIBS="$LIBS -lm" | |
19283 | if test "$cross_compiling" = yes; then | |
19284 | ||
19285 | case "${target}" in | |
19286 | hppa*-*-hpux*) have_broken_fpclassify=yes ;; | |
19287 | *) have_broken_fpclassify=no ;; | |
19288 | esac | |
19289 | else | |
19290 | cat >conftest.$ac_ext <<_ACEOF | |
19291 | /* confdefs.h. */ | |
19292 | _ACEOF | |
19293 | cat confdefs.h >>conftest.$ac_ext | |
19294 | cat >>conftest.$ac_ext <<_ACEOF | |
19295 | /* end confdefs.h. */ | |
19296 | ||
19297 | #ifdef HAVE_MATH_H | |
19298 | #include <math.h> | |
19299 | #endif | |
19300 | #include <float.h> | |
19301 | int main () | |
19302 | { | |
19303 | #ifdef fpclassify | |
19304 | #ifdef LDBL_MAX | |
19305 | if (fpclassify(LDBL_MAX) == FP_NAN | |
19306 | || fpclassify(LDBL_MAX) == FP_INFINITE) return 1; | |
19307 | #endif | |
19308 | #ifdef DBL_MAX | |
19309 | if (fpclassify(DBL_MAX) == FP_NAN | |
19310 | || fpclassify(DBL_MAX) == FP_INFINITE) return 1; | |
19311 | #endif | |
19312 | #endif | |
19313 | return 0; | |
19314 | } | |
19315 | _ACEOF | |
19316 | rm -f conftest$ac_exeext | |
19317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19318 | (eval $ac_link) 2>&5 | |
19319 | ac_status=$? | |
19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19323 | (eval $ac_try) 2>&5 | |
19324 | ac_status=$? | |
19325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19326 | (exit $ac_status); }; }; then | |
19327 | have_broken_fpclassify=no | |
19328 | else | |
19329 | echo "$as_me: program exited with status $ac_status" >&5 | |
19330 | echo "$as_me: failed program was:" >&5 | |
19331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19332 | ||
19333 | ( exit $ac_status ) | |
19334 | have_broken_fpclassify=yes | |
19335 | fi | |
19336 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19337 | fi | |
19338 | LIBS=$libgfor_check_for_broken_fpclassify_save_LIBS | |
19339 | fi | |
19340 | echo "$as_me:$LINENO: result: $have_broken_fpclassify" >&5 | |
19341 | echo "${ECHO_T}$have_broken_fpclassify" >&6 | |
19342 | if test x"$have_broken_fpclassify" = xyes; then | |
19343 | ||
19344 | cat >>confdefs.h <<\_ACEOF | |
19345 | #define HAVE_BROKEN_FPCLASSIFY 1 | |
19346 | _ACEOF | |
19347 | ||
19348 | fi | |
19349 | ||
daad4fd5 | 19350 | # Check whether the system has a working stat() |
19351 | ||
19352 | echo "$as_me:$LINENO: checking whether the target stat is reliable" >&5 | |
19353 | echo $ECHO_N "checking whether the target stat is reliable... $ECHO_C" >&6 | |
19354 | if test "${have_working_stat+set}" = set; then | |
19355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19356 | else | |
19357 | ||
19358 | if test "$cross_compiling" = yes; then | |
19359 | ||
19360 | case "${target}" in | |
19361 | *mingw*) have_working_stat=no ;; | |
19362 | *) have_working_stat=yes;; | |
19363 | esac | |
19364 | else | |
19365 | cat >conftest.$ac_ext <<_ACEOF | |
19366 | /* confdefs.h. */ | |
19367 | _ACEOF | |
19368 | cat confdefs.h >>conftest.$ac_ext | |
19369 | cat >>conftest.$ac_ext <<_ACEOF | |
19370 | /* end confdefs.h. */ | |
19371 | ||
19372 | #include <stdio.h> | |
19373 | #include <sys/types.h> | |
19374 | #include <sys/stat.h> | |
19375 | #include <unistd.h> | |
19376 | ||
19377 | int main () | |
19378 | { | |
19379 | FILE *f, *g; | |
19380 | struct stat st1, st2; | |
19381 | ||
19382 | f = fopen ("foo", "w"); | |
19383 | g = fopen ("bar", "w"); | |
19384 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
19385 | return 1; | |
19386 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
19387 | return 1; | |
19388 | fclose(f); | |
19389 | fclose(g); | |
19390 | return 0; | |
19391 | } | |
19392 | _ACEOF | |
19393 | rm -f conftest$ac_exeext | |
19394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19395 | (eval $ac_link) 2>&5 | |
19396 | ac_status=$? | |
19397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19400 | (eval $ac_try) 2>&5 | |
19401 | ac_status=$? | |
19402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19403 | (exit $ac_status); }; }; then | |
19404 | have_working_stat=yes | |
19405 | else | |
19406 | echo "$as_me: program exited with status $ac_status" >&5 | |
19407 | echo "$as_me: failed program was:" >&5 | |
19408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19409 | ||
19410 | ( exit $ac_status ) | |
19411 | have_working_stat=no | |
19412 | fi | |
19413 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19414 | fi | |
19415 | fi | |
19416 | echo "$as_me:$LINENO: result: $have_working_stat" >&5 | |
19417 | echo "${ECHO_T}$have_working_stat" >&6 | |
19418 | if test x"$have_working_stat" = xyes; then | |
19419 | ||
19420 | cat >>confdefs.h <<\_ACEOF | |
19421 | #define HAVE_WORKING_STAT 1 | |
19422 | _ACEOF | |
19423 | ||
19424 | fi | |
19425 | ||
fd48ced8 | 19426 | # Fallback in case isfinite is not available. |
19427 | echo "$as_me:$LINENO: checking for finite in -lm" >&5 | |
19428 | echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6 | |
19429 | if test "${ac_cv_lib_m_finite+set}" = set; then | |
19430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19431 | else | |
19432 | ac_check_lib_save_LIBS=$LIBS | |
19433 | LIBS="-lm $LIBS" | |
b52ee437 | 19434 | if test x$gcc_no_link = xyes; then |
19435 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19436 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19437 | { (exit 1); exit 1; }; } | |
19438 | fi | |
fd48ced8 | 19439 | cat >conftest.$ac_ext <<_ACEOF |
19440 | /* confdefs.h. */ | |
19441 | _ACEOF | |
19442 | cat confdefs.h >>conftest.$ac_ext | |
19443 | cat >>conftest.$ac_ext <<_ACEOF | |
19444 | /* end confdefs.h. */ | |
19445 | ||
19446 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19447 | #ifdef __cplusplus | |
19448 | extern "C" | |
19449 | #endif | |
19450 | /* We use char because int might match the return type of a gcc2 | |
19451 | builtin and then its argument prototype would still apply. */ | |
19452 | char finite (); | |
19453 | int | |
19454 | main () | |
19455 | { | |
19456 | finite (); | |
19457 | ; | |
19458 | return 0; | |
19459 | } | |
19460 | _ACEOF | |
19461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19463 | (eval $ac_link) 2>conftest.er1 | |
19464 | ac_status=$? | |
19465 | grep -v '^ *+' conftest.er1 >conftest.err | |
19466 | rm -f conftest.er1 | |
19467 | cat conftest.err >&5 | |
19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19469 | (exit $ac_status); } && | |
b56cb1ff | 19470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
fd48ced8 | 19471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19472 | (eval $ac_try) 2>&5 | |
19473 | ac_status=$? | |
19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19475 | (exit $ac_status); }; } && | |
19476 | { ac_try='test -s conftest$ac_exeext' | |
19477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19478 | (eval $ac_try) 2>&5 | |
19479 | ac_status=$? | |
19480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19481 | (exit $ac_status); }; }; then | |
19482 | ac_cv_lib_m_finite=yes | |
19483 | else | |
19484 | echo "$as_me: failed program was:" >&5 | |
19485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19486 | ||
19487 | ac_cv_lib_m_finite=no | |
19488 | fi | |
19489 | rm -f conftest.err conftest.$ac_objext \ | |
19490 | conftest$ac_exeext conftest.$ac_ext | |
19491 | LIBS=$ac_check_lib_save_LIBS | |
19492 | fi | |
19493 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5 | |
19494 | echo "${ECHO_T}$ac_cv_lib_m_finite" >&6 | |
19495 | if test $ac_cv_lib_m_finite = yes; then | |
19496 | ||
19497 | cat >>confdefs.h <<\_ACEOF | |
19498 | #define HAVE_FINITE 1 | |
19499 | _ACEOF | |
19500 | ||
19501 | fi | |
19502 | ||
19503 | ||
8c84a5de | 19504 | # Check for GNU libc feenableexcept |
19505 | echo "$as_me:$LINENO: checking for feenableexcept in -lm" >&5 | |
19506 | echo $ECHO_N "checking for feenableexcept in -lm... $ECHO_C" >&6 | |
19507 | if test "${ac_cv_lib_m_feenableexcept+set}" = set; then | |
19508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19509 | else | |
19510 | ac_check_lib_save_LIBS=$LIBS | |
19511 | LIBS="-lm $LIBS" | |
19512 | if test x$gcc_no_link = xyes; then | |
19513 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19514 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19515 | { (exit 1); exit 1; }; } | |
19516 | fi | |
19517 | cat >conftest.$ac_ext <<_ACEOF | |
19518 | /* confdefs.h. */ | |
19519 | _ACEOF | |
19520 | cat confdefs.h >>conftest.$ac_ext | |
19521 | cat >>conftest.$ac_ext <<_ACEOF | |
19522 | /* end confdefs.h. */ | |
19523 | ||
19524 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19525 | #ifdef __cplusplus | |
19526 | extern "C" | |
19527 | #endif | |
19528 | /* We use char because int might match the return type of a gcc2 | |
19529 | builtin and then its argument prototype would still apply. */ | |
19530 | char feenableexcept (); | |
19531 | int | |
19532 | main () | |
19533 | { | |
19534 | feenableexcept (); | |
19535 | ; | |
19536 | return 0; | |
19537 | } | |
19538 | _ACEOF | |
19539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19541 | (eval $ac_link) 2>conftest.er1 | |
19542 | ac_status=$? | |
19543 | grep -v '^ *+' conftest.er1 >conftest.err | |
19544 | rm -f conftest.er1 | |
19545 | cat conftest.err >&5 | |
19546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19547 | (exit $ac_status); } && | |
b56cb1ff | 19548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8c84a5de | 19549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19550 | (eval $ac_try) 2>&5 | |
19551 | ac_status=$? | |
19552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19553 | (exit $ac_status); }; } && | |
19554 | { ac_try='test -s conftest$ac_exeext' | |
19555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19556 | (eval $ac_try) 2>&5 | |
19557 | ac_status=$? | |
19558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19559 | (exit $ac_status); }; }; then | |
19560 | ac_cv_lib_m_feenableexcept=yes | |
19561 | else | |
19562 | echo "$as_me: failed program was:" >&5 | |
19563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19564 | ||
19565 | ac_cv_lib_m_feenableexcept=no | |
19566 | fi | |
19567 | rm -f conftest.err conftest.$ac_objext \ | |
19568 | conftest$ac_exeext conftest.$ac_ext | |
19569 | LIBS=$ac_check_lib_save_LIBS | |
19570 | fi | |
19571 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_feenableexcept" >&5 | |
19572 | echo "${ECHO_T}$ac_cv_lib_m_feenableexcept" >&6 | |
19573 | if test $ac_cv_lib_m_feenableexcept = yes; then | |
19574 | have_feenableexcept=yes | |
19575 | cat >>confdefs.h <<\_ACEOF | |
19576 | #define HAVE_FEENABLEEXCEPT 1 | |
19577 | _ACEOF | |
19578 | ||
19579 | fi | |
19580 | ||
19581 | ||
aaa798ba | 19582 | # Check for SysV fpsetmask |
19583 | ||
19584 | echo "$as_me:$LINENO: checking whether fpsetmask is present" >&5 | |
19585 | echo $ECHO_N "checking whether fpsetmask is present... $ECHO_C" >&6 | |
19586 | if test "${have_fpsetmask+set}" = set; then | |
19587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19588 | else | |
19589 | ||
19590 | if test x$gcc_no_link = xyes; then | |
19591 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19592 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19593 | { (exit 1); exit 1; }; } | |
19594 | fi | |
19595 | cat >conftest.$ac_ext <<_ACEOF | |
19596 | /* confdefs.h. */ | |
19597 | _ACEOF | |
19598 | cat confdefs.h >>conftest.$ac_ext | |
19599 | cat >>conftest.$ac_ext <<_ACEOF | |
19600 | /* end confdefs.h. */ | |
19601 | ||
19602 | #if HAVE_FLOATINGPOINT_H | |
19603 | # include <floatingpoint.h> | |
19604 | #endif /* HAVE_FLOATINGPOINT_H */ | |
19605 | #if HAVE_IEEEFP_H | |
19606 | # include <ieeefp.h> | |
19607 | #endif /* HAVE_IEEEFP_H */ | |
19608 | int | |
19609 | main () | |
19610 | { | |
19611 | fpsetmask(0); | |
19612 | ; | |
19613 | return 0; | |
19614 | } | |
19615 | _ACEOF | |
19616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19618 | (eval $ac_link) 2>conftest.er1 | |
19619 | ac_status=$? | |
19620 | grep -v '^ *+' conftest.er1 >conftest.err | |
19621 | rm -f conftest.er1 | |
19622 | cat conftest.err >&5 | |
19623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19624 | (exit $ac_status); } && | |
b56cb1ff | 19625 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
aaa798ba | 19626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19627 | (eval $ac_try) 2>&5 | |
19628 | ac_status=$? | |
19629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19630 | (exit $ac_status); }; } && | |
19631 | { ac_try='test -s conftest$ac_exeext' | |
19632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19633 | (eval $ac_try) 2>&5 | |
19634 | ac_status=$? | |
19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19636 | (exit $ac_status); }; }; then | |
19637 | eval "have_fpsetmask=yes" | |
19638 | else | |
19639 | echo "$as_me: failed program was:" >&5 | |
19640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19641 | ||
19642 | eval "have_fpsetmask=no" | |
19643 | fi | |
19644 | rm -f conftest.err conftest.$ac_objext \ | |
19645 | conftest$ac_exeext conftest.$ac_ext | |
19646 | ||
19647 | fi | |
19648 | echo "$as_me:$LINENO: result: $have_fpsetmask" >&5 | |
19649 | echo "${ECHO_T}$have_fpsetmask" >&6 | |
19650 | if test x"$have_fpsetmask" = xyes; then | |
19651 | ||
19652 | cat >>confdefs.h <<\_ACEOF | |
19653 | #define HAVE_FPSETMASK 1 | |
19654 | _ACEOF | |
19655 | ||
19656 | fi | |
19657 | ||
19658 | ||
19659 | # Check for AIX fp_trap and fp_enable | |
19660 | echo "$as_me:$LINENO: checking for fp_trap" >&5 | |
19661 | echo $ECHO_N "checking for fp_trap... $ECHO_C" >&6 | |
19662 | if test "${ac_cv_func_fp_trap+set}" = set; then | |
19663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19664 | else | |
19665 | if test x$gcc_no_link = xyes; then | |
19666 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19667 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19668 | { (exit 1); exit 1; }; } | |
19669 | fi | |
19670 | cat >conftest.$ac_ext <<_ACEOF | |
19671 | /* confdefs.h. */ | |
19672 | _ACEOF | |
19673 | cat confdefs.h >>conftest.$ac_ext | |
19674 | cat >>conftest.$ac_ext <<_ACEOF | |
19675 | /* end confdefs.h. */ | |
19676 | /* Define fp_trap to an innocuous variant, in case <limits.h> declares fp_trap. | |
19677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19678 | #define fp_trap innocuous_fp_trap | |
19679 | ||
19680 | /* System header to define __stub macros and hopefully few prototypes, | |
19681 | which can conflict with char fp_trap (); below. | |
19682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19683 | <limits.h> exists even on freestanding compilers. */ | |
19684 | ||
19685 | #ifdef __STDC__ | |
19686 | # include <limits.h> | |
19687 | #else | |
19688 | # include <assert.h> | |
19689 | #endif | |
19690 | ||
19691 | #undef fp_trap | |
19692 | ||
19693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19694 | #ifdef __cplusplus | |
19695 | extern "C" | |
19696 | { | |
19697 | #endif | |
19698 | /* We use char because int might match the return type of a gcc2 | |
19699 | builtin and then its argument prototype would still apply. */ | |
19700 | char fp_trap (); | |
19701 | /* The GNU C library defines this for functions which it implements | |
19702 | to always fail with ENOSYS. Some functions are actually named | |
19703 | something starting with __ and the normal name is an alias. */ | |
19704 | #if defined (__stub_fp_trap) || defined (__stub___fp_trap) | |
19705 | choke me | |
19706 | #else | |
19707 | char (*f) () = fp_trap; | |
19708 | #endif | |
19709 | #ifdef __cplusplus | |
19710 | } | |
19711 | #endif | |
19712 | ||
19713 | int | |
19714 | main () | |
19715 | { | |
19716 | return f != fp_trap; | |
19717 | ; | |
19718 | return 0; | |
19719 | } | |
19720 | _ACEOF | |
19721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19723 | (eval $ac_link) 2>conftest.er1 | |
19724 | ac_status=$? | |
19725 | grep -v '^ *+' conftest.er1 >conftest.err | |
19726 | rm -f conftest.er1 | |
19727 | cat conftest.err >&5 | |
19728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19729 | (exit $ac_status); } && | |
b56cb1ff | 19730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
aaa798ba | 19731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19732 | (eval $ac_try) 2>&5 | |
19733 | ac_status=$? | |
19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19735 | (exit $ac_status); }; } && | |
19736 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
19742 | ac_cv_func_fp_trap=yes | |
19743 | else | |
19744 | echo "$as_me: failed program was:" >&5 | |
19745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19746 | ||
19747 | ac_cv_func_fp_trap=no | |
19748 | fi | |
19749 | rm -f conftest.err conftest.$ac_objext \ | |
19750 | conftest$ac_exeext conftest.$ac_ext | |
19751 | fi | |
19752 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_trap" >&5 | |
19753 | echo "${ECHO_T}$ac_cv_func_fp_trap" >&6 | |
19754 | if test $ac_cv_func_fp_trap = yes; then | |
19755 | have_fp_trap=yes | |
19756 | cat >>confdefs.h <<\_ACEOF | |
19757 | #define HAVE_FP_TRAP 1 | |
19758 | _ACEOF | |
19759 | ||
19760 | fi | |
19761 | ||
19762 | echo "$as_me:$LINENO: checking for fp_enable" >&5 | |
19763 | echo $ECHO_N "checking for fp_enable... $ECHO_C" >&6 | |
19764 | if test "${ac_cv_func_fp_enable+set}" = set; then | |
19765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19766 | else | |
19767 | if test x$gcc_no_link = xyes; then | |
19768 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19769 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19770 | { (exit 1); exit 1; }; } | |
19771 | fi | |
19772 | cat >conftest.$ac_ext <<_ACEOF | |
19773 | /* confdefs.h. */ | |
19774 | _ACEOF | |
19775 | cat confdefs.h >>conftest.$ac_ext | |
19776 | cat >>conftest.$ac_ext <<_ACEOF | |
19777 | /* end confdefs.h. */ | |
19778 | /* Define fp_enable to an innocuous variant, in case <limits.h> declares fp_enable. | |
19779 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19780 | #define fp_enable innocuous_fp_enable | |
19781 | ||
19782 | /* System header to define __stub macros and hopefully few prototypes, | |
19783 | which can conflict with char fp_enable (); below. | |
19784 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19785 | <limits.h> exists even on freestanding compilers. */ | |
19786 | ||
19787 | #ifdef __STDC__ | |
19788 | # include <limits.h> | |
19789 | #else | |
19790 | # include <assert.h> | |
19791 | #endif | |
19792 | ||
19793 | #undef fp_enable | |
19794 | ||
19795 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19796 | #ifdef __cplusplus | |
19797 | extern "C" | |
19798 | { | |
19799 | #endif | |
19800 | /* We use char because int might match the return type of a gcc2 | |
19801 | builtin and then its argument prototype would still apply. */ | |
19802 | char fp_enable (); | |
19803 | /* The GNU C library defines this for functions which it implements | |
19804 | to always fail with ENOSYS. Some functions are actually named | |
19805 | something starting with __ and the normal name is an alias. */ | |
19806 | #if defined (__stub_fp_enable) || defined (__stub___fp_enable) | |
19807 | choke me | |
19808 | #else | |
19809 | char (*f) () = fp_enable; | |
19810 | #endif | |
19811 | #ifdef __cplusplus | |
19812 | } | |
19813 | #endif | |
19814 | ||
19815 | int | |
19816 | main () | |
19817 | { | |
19818 | return f != fp_enable; | |
19819 | ; | |
19820 | return 0; | |
19821 | } | |
19822 | _ACEOF | |
19823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19825 | (eval $ac_link) 2>conftest.er1 | |
19826 | ac_status=$? | |
19827 | grep -v '^ *+' conftest.er1 >conftest.err | |
19828 | rm -f conftest.er1 | |
19829 | cat conftest.err >&5 | |
19830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19831 | (exit $ac_status); } && | |
b56cb1ff | 19832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
aaa798ba | 19833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19834 | (eval $ac_try) 2>&5 | |
19835 | ac_status=$? | |
19836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19837 | (exit $ac_status); }; } && | |
19838 | { ac_try='test -s conftest$ac_exeext' | |
19839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19840 | (eval $ac_try) 2>&5 | |
19841 | ac_status=$? | |
19842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19843 | (exit $ac_status); }; }; then | |
19844 | ac_cv_func_fp_enable=yes | |
19845 | else | |
19846 | echo "$as_me: failed program was:" >&5 | |
19847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19848 | ||
19849 | ac_cv_func_fp_enable=no | |
19850 | fi | |
19851 | rm -f conftest.err conftest.$ac_objext \ | |
19852 | conftest$ac_exeext conftest.$ac_ext | |
19853 | fi | |
19854 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_enable" >&5 | |
19855 | echo "${ECHO_T}$ac_cv_func_fp_enable" >&6 | |
19856 | if test $ac_cv_func_fp_enable = yes; then | |
19857 | have_fp_enable=yes | |
19858 | cat >>confdefs.h <<\_ACEOF | |
19859 | #define HAVE_FP_ENABLE 1 | |
19860 | _ACEOF | |
19861 | ||
19862 | fi | |
19863 | ||
19864 | ||
8c84a5de | 19865 | # Runs configure.host to set up necessary host-dependent shell variables. |
19866 | # We then display a message about it, and propagate them through the | |
19867 | # build chain. | |
19868 | . ${srcdir}/configure.host | |
19869 | { echo "$as_me:$LINENO: FPU dependent file will be ${fpu_host}.h" >&5 | |
19870 | echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
19871 | FPU_HOST_HEADER=config/${fpu_host}.h | |
19872 | ||
19873 | ||
90973b19 | 19874 | # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check |
19875 | # for struct timezone, as you might think. We also need to check how | |
19876 | # to call gettimeofday if we have it. | |
19877 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
19878 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
19879 | if test "${ac_cv_header_time+set}" = set; then | |
4ee9c684 | 19880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19881 | else | |
90973b19 | 19882 | cat >conftest.$ac_ext <<_ACEOF |
19883 | /* confdefs.h. */ | |
19884 | _ACEOF | |
19885 | cat confdefs.h >>conftest.$ac_ext | |
19886 | cat >>conftest.$ac_ext <<_ACEOF | |
19887 | /* end confdefs.h. */ | |
19888 | #include <sys/types.h> | |
19889 | #include <sys/time.h> | |
19890 | #include <time.h> | |
19891 | ||
19892 | int | |
19893 | main () | |
19894 | { | |
19895 | if ((struct tm *) 0) | |
19896 | return 0; | |
19897 | ; | |
19898 | return 0; | |
19899 | } | |
19900 | _ACEOF | |
19901 | rm -f conftest.$ac_objext | |
19902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19903 | (eval $ac_compile) 2>conftest.er1 | |
19904 | ac_status=$? | |
19905 | grep -v '^ *+' conftest.er1 >conftest.err | |
19906 | rm -f conftest.er1 | |
19907 | cat conftest.err >&5 | |
19908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19909 | (exit $ac_status); } && | |
b56cb1ff | 19910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 19911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19912 | (eval $ac_try) 2>&5 | |
19913 | ac_status=$? | |
19914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19915 | (exit $ac_status); }; } && | |
19916 | { ac_try='test -s conftest.$ac_objext' | |
19917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19918 | (eval $ac_try) 2>&5 | |
19919 | ac_status=$? | |
19920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19921 | (exit $ac_status); }; }; then | |
19922 | ac_cv_header_time=yes | |
19923 | else | |
19924 | echo "$as_me: failed program was:" >&5 | |
19925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 19926 | |
90973b19 | 19927 | ac_cv_header_time=no |
4ee9c684 | 19928 | fi |
90973b19 | 19929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 19930 | fi |
90973b19 | 19931 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
19932 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
19933 | if test $ac_cv_header_time = yes; then | |
4ee9c684 | 19934 | |
90973b19 | 19935 | cat >>confdefs.h <<\_ACEOF |
19936 | #define TIME_WITH_SYS_TIME 1 | |
19937 | _ACEOF | |
4ee9c684 | 19938 | |
4ee9c684 | 19939 | fi |
19940 | ||
4ee9c684 | 19941 | |
90973b19 | 19942 | |
19943 | for ac_func in gettimeofday | |
19944 | do | |
19945 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
19946 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19947 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19948 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4ee9c684 | 19949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19950 | else | |
b52ee437 | 19951 | if test x$gcc_no_link = xyes; then |
19952 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19953 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19954 | { (exit 1); exit 1; }; } | |
19955 | fi | |
19956 | cat >conftest.$ac_ext <<_ACEOF | |
90973b19 | 19957 | /* confdefs.h. */ |
19958 | _ACEOF | |
19959 | cat confdefs.h >>conftest.$ac_ext | |
19960 | cat >>conftest.$ac_ext <<_ACEOF | |
19961 | /* end confdefs.h. */ | |
19962 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19964 | #define $ac_func innocuous_$ac_func | |
19965 | ||
19966 | /* System header to define __stub macros and hopefully few prototypes, | |
19967 | which can conflict with char $ac_func (); below. | |
19968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19969 | <limits.h> exists even on freestanding compilers. */ | |
19970 | ||
19971 | #ifdef __STDC__ | |
19972 | # include <limits.h> | |
19973 | #else | |
19974 | # include <assert.h> | |
19975 | #endif | |
19976 | ||
19977 | #undef $ac_func | |
19978 | ||
19979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19980 | #ifdef __cplusplus | |
19981 | extern "C" | |
19982 | { | |
19983 | #endif | |
19984 | /* We use char because int might match the return type of a gcc2 | |
19985 | builtin and then its argument prototype would still apply. */ | |
19986 | char $ac_func (); | |
19987 | /* The GNU C library defines this for functions which it implements | |
19988 | to always fail with ENOSYS. Some functions are actually named | |
19989 | something starting with __ and the normal name is an alias. */ | |
19990 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19991 | choke me | |
19992 | #else | |
19993 | char (*f) () = $ac_func; | |
19994 | #endif | |
19995 | #ifdef __cplusplus | |
19996 | } | |
19997 | #endif | |
19998 | ||
19999 | int | |
20000 | main () | |
20001 | { | |
20002 | return f != $ac_func; | |
20003 | ; | |
20004 | return 0; | |
20005 | } | |
20006 | _ACEOF | |
20007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20009 | (eval $ac_link) 2>conftest.er1 | |
20010 | ac_status=$? | |
20011 | grep -v '^ *+' conftest.er1 >conftest.err | |
20012 | rm -f conftest.er1 | |
20013 | cat conftest.err >&5 | |
20014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20015 | (exit $ac_status); } && | |
b56cb1ff | 20016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 20017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20018 | (eval $ac_try) 2>&5 | |
20019 | ac_status=$? | |
20020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20021 | (exit $ac_status); }; } && | |
20022 | { ac_try='test -s conftest$ac_exeext' | |
20023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20024 | (eval $ac_try) 2>&5 | |
20025 | ac_status=$? | |
20026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20027 | (exit $ac_status); }; }; then | |
20028 | eval "$as_ac_var=yes" | |
4ee9c684 | 20029 | else |
90973b19 | 20030 | echo "$as_me: failed program was:" >&5 |
20031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 20032 | |
90973b19 | 20033 | eval "$as_ac_var=no" |
4ee9c684 | 20034 | fi |
90973b19 | 20035 | rm -f conftest.err conftest.$ac_objext \ |
20036 | conftest$ac_exeext conftest.$ac_ext | |
4ee9c684 | 20037 | fi |
90973b19 | 20038 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
20039 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20040 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20041 | cat >>confdefs.h <<_ACEOF | |
20042 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20043 | _ACEOF | |
4ee9c684 | 20044 | |
20045 | fi | |
4ee9c684 | 20046 | done |
20047 | ||
90973b19 | 20048 | if test "$ac_cv_func_gettimeofday" = yes; then |
20049 | echo "$as_me:$LINENO: checking for struct timezone" >&5 | |
20050 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 | |
20051 | if test "${gfor_cv_struct_timezone+set}" = set; then | |
20052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20053 | else | |
20054 | cat >conftest.$ac_ext <<_ACEOF | |
20055 | /* confdefs.h. */ | |
20056 | _ACEOF | |
20057 | cat confdefs.h >>conftest.$ac_ext | |
20058 | cat >>conftest.$ac_ext <<_ACEOF | |
20059 | /* end confdefs.h. */ | |
20060 | #include <sys/time.h> | |
20061 | int | |
20062 | main () | |
20063 | { | |
20064 | struct timezone tz; | |
20065 | ; | |
20066 | return 0; | |
20067 | } | |
20068 | _ACEOF | |
20069 | rm -f conftest.$ac_objext | |
20070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20071 | (eval $ac_compile) 2>conftest.er1 | |
20072 | ac_status=$? | |
20073 | grep -v '^ *+' conftest.er1 >conftest.err | |
20074 | rm -f conftest.er1 | |
20075 | cat conftest.err >&5 | |
20076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20077 | (exit $ac_status); } && | |
b56cb1ff | 20078 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
90973b19 | 20079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20080 | (eval $ac_try) 2>&5 | |
20081 | ac_status=$? | |
20082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20083 | (exit $ac_status); }; } && | |
20084 | { ac_try='test -s conftest.$ac_objext' | |
20085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20086 | (eval $ac_try) 2>&5 | |
20087 | ac_status=$? | |
20088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20089 | (exit $ac_status); }; }; then | |
20090 | gfor_cv_struct_timezone=yes | |
4ee9c684 | 20091 | else |
90973b19 | 20092 | echo "$as_me: failed program was:" >&5 |
20093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 20094 | |
90973b19 | 20095 | gfor_cv_struct_timezone=no |
4ee9c684 | 20096 | fi |
90973b19 | 20097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20098 | fi | |
20099 | echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5 | |
20100 | echo "${ECHO_T}$gfor_cv_struct_timezone" >&6 | |
20101 | if test $gfor_cv_struct_timezone = yes; then | |
20102 | if test "$cross_compiling" = yes; then | |
20103 | gfor_have_struct_timezone=yes | |
4ee9c684 | 20104 | else |
90973b19 | 20105 | cat >conftest.$ac_ext <<_ACEOF |
20106 | /* confdefs.h. */ | |
20107 | _ACEOF | |
20108 | cat confdefs.h >>conftest.$ac_ext | |
20109 | cat >>conftest.$ac_ext <<_ACEOF | |
20110 | /* end confdefs.h. */ | |
4ee9c684 | 20111 | |
90973b19 | 20112 | #ifdef TIME_WITH_SYS_TIME |
20113 | #include <sys/time.h> | |
20114 | #include <time.h> | |
20115 | #else | |
20116 | #ifdef HAVE_SYS_TIME_H | |
20117 | #include <sys/time.h> | |
20118 | #else | |
20119 | #include <time.h> | |
20120 | #endif | |
20121 | #endif | |
20122 | main () | |
20123 | { | |
20124 | struct timeval time; | |
20125 | struct timezone dummy; | |
20126 | if (gettimeofday (&time, &dummy)) | |
20127 | exit (1); | |
20128 | else | |
20129 | exit (0); | |
20130 | } | |
20131 | _ACEOF | |
20132 | rm -f conftest$ac_exeext | |
20133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20134 | (eval $ac_link) 2>&5 | |
4ee9c684 | 20135 | ac_status=$? |
20136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 20137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20139 | (eval $ac_try) 2>&5 | |
4ee9c684 | 20140 | ac_status=$? |
20141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 20142 | (exit $ac_status); }; }; then |
20143 | gfor_have_struct_timezone=yes | |
4ee9c684 | 20144 | else |
90973b19 | 20145 | echo "$as_me: program exited with status $ac_status" >&5 |
20146 | echo "$as_me: failed program was:" >&5 | |
20147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 20148 | |
90973b19 | 20149 | ( exit $ac_status ) |
20150 | gfor_have_struct_timezone=no | |
20151 | fi | |
20152 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20153 | fi | |
20154 | if test $gfor_have_struct_timezone = yes; then | |
4ee9c684 | 20155 | |
90973b19 | 20156 | cat >>confdefs.h <<\_ACEOF |
20157 | #define HAVE_TIMEZONE 1 | |
20158 | _ACEOF | |
4ee9c684 | 20159 | |
90973b19 | 20160 | fi |
20161 | fi | |
20162 | ||
20163 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
20164 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 | |
20165 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
20166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20167 | else | |
b52ee437 | 20168 | if test x$gcc_no_link = xyes; then |
20169 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20170 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20171 | { (exit 1); exit 1; }; } | |
20172 | fi | |
20173 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 20174 | /* confdefs.h. */ |
20175 | _ACEOF | |
20176 | cat confdefs.h >>conftest.$ac_ext | |
20177 | cat >>conftest.$ac_ext <<_ACEOF | |
20178 | /* end confdefs.h. */ | |
20179 | ||
90973b19 | 20180 | #ifdef TIME_WITH_SYS_TIME |
20181 | #include <sys/time.h> | |
20182 | #include <time.h> | |
20183 | #else | |
20184 | #ifdef HAVE_SYS_TIME_H | |
20185 | #include <sys/time.h> | |
20186 | #else | |
20187 | #include <time.h> | |
20188 | #endif | |
20189 | #endif | |
20190 | ||
4ee9c684 | 20191 | int |
20192 | main () | |
20193 | { | |
20194 | ||
90973b19 | 20195 | struct timeval time; |
20196 | #ifdef HAVE_TIMEZONE | |
20197 | struct timezone dummy; | |
20198 | #define DUMMY &dummy | |
20199 | #else | |
20200 | #define DUMMY NULL | |
20201 | #endif | |
20202 | gettimeofday (&time, DUMMY); | |
4ee9c684 | 20203 | ; |
20204 | return 0; | |
20205 | } | |
20206 | _ACEOF | |
20207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20209 | (eval $ac_link) 2>conftest.er1 | |
20210 | ac_status=$? | |
20211 | grep -v '^ *+' conftest.er1 >conftest.err | |
20212 | rm -f conftest.er1 | |
20213 | cat conftest.err >&5 | |
20214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20215 | (exit $ac_status); } && | |
b56cb1ff | 20216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4ee9c684 | 20217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20218 | (eval $ac_try) 2>&5 | |
20219 | ac_status=$? | |
20220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20221 | (exit $ac_status); }; } && | |
20222 | { ac_try='test -s conftest$ac_exeext' | |
20223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20224 | (eval $ac_try) 2>&5 | |
20225 | ac_status=$? | |
20226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20227 | (exit $ac_status); }; }; then | |
90973b19 | 20228 | emacs_cv_gettimeofday_two_arguments=yes |
4ee9c684 | 20229 | else |
20230 | echo "$as_me: failed program was:" >&5 | |
20231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20232 | ||
90973b19 | 20233 | emacs_cv_gettimeofday_two_arguments=no |
4ee9c684 | 20234 | fi |
20235 | rm -f conftest.err conftest.$ac_objext \ | |
20236 | conftest$ac_exeext conftest.$ac_ext | |
4ee9c684 | 20237 | fi |
90973b19 | 20238 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
20239 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 | |
20240 | if test $emacs_cv_gettimeofday_two_arguments = no; then | |
4ee9c684 | 20241 | |
90973b19 | 20242 | cat >>confdefs.h <<\_ACEOF |
20243 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
20244 | _ACEOF | |
4ee9c684 | 20245 | |
90973b19 | 20246 | fi |
20247 | fi | |
4ee9c684 | 20248 | |
c436f700 | 20249 | # Attempt to assert that the target is of common type in case we don't |
20250 | # have C99 integer types at all. | |
20251 | ||
20252 | echo "$as_me:$LINENO: checking whether the target is ILP32" >&5 | |
20253 | echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6 | |
20254 | if test "${target_ilp32+set}" = set; then | |
20255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20256 | else | |
20257 | ||
20258 | save_CFLAGS="$CFLAGS" | |
20259 | CFLAGS="-O2" | |
b52ee437 | 20260 | if test x$gcc_no_link = xyes; then |
20261 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20262 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20263 | { (exit 1); exit 1; }; } | |
20264 | fi | |
20265 | cat >conftest.$ac_ext <<_ACEOF | |
c436f700 | 20266 | /* confdefs.h. */ |
20267 | _ACEOF | |
20268 | cat confdefs.h >>conftest.$ac_ext | |
20269 | cat >>conftest.$ac_ext <<_ACEOF | |
20270 | /* end confdefs.h. */ | |
20271 | ||
20272 | int | |
20273 | main () | |
20274 | { | |
20275 | ||
20276 | if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4) | |
20277 | ; | |
20278 | else | |
20279 | undefined_function (); | |
20280 | ||
20281 | ; | |
20282 | return 0; | |
20283 | } | |
20284 | _ACEOF | |
20285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20287 | (eval $ac_link) 2>conftest.er1 | |
20288 | ac_status=$? | |
20289 | grep -v '^ *+' conftest.er1 >conftest.err | |
20290 | rm -f conftest.er1 | |
20291 | cat conftest.err >&5 | |
20292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20293 | (exit $ac_status); } && | |
b56cb1ff | 20294 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
c436f700 | 20295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20296 | (eval $ac_try) 2>&5 | |
20297 | ac_status=$? | |
20298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20299 | (exit $ac_status); }; } && | |
20300 | { ac_try='test -s conftest$ac_exeext' | |
20301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20302 | (eval $ac_try) 2>&5 | |
20303 | ac_status=$? | |
20304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20305 | (exit $ac_status); }; }; then | |
20306 | target_ilp32=yes | |
20307 | else | |
20308 | echo "$as_me: failed program was:" >&5 | |
20309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20310 | ||
20311 | target_ilp32=no | |
20312 | fi | |
20313 | rm -f conftest.err conftest.$ac_objext \ | |
20314 | conftest$ac_exeext conftest.$ac_ext | |
20315 | CFLAGS="$save_CFLAGS" | |
20316 | fi | |
20317 | echo "$as_me:$LINENO: result: $target_ilp32" >&5 | |
20318 | echo "${ECHO_T}$target_ilp32" >&6 | |
20319 | if test $target_ilp32 = yes; then | |
20320 | ||
20321 | cat >>confdefs.h <<\_ACEOF | |
20322 | #define TARGET_ILP32 1 | |
20323 | _ACEOF | |
20324 | ||
20325 | fi | |
20326 | ||
20327 | ||
7b6cb5bd | 20328 | # Check out attribute support. |
20329 | ||
20330 | echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 | |
20331 | echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 | |
20332 | if test "${have_attribute_visibility+set}" = set; then | |
20333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20334 | else | |
20335 | ||
20336 | save_CFLAGS="$CFLAGS" | |
20337 | CFLAGS="$CFLAGS -Werror" | |
20338 | cat >conftest.$ac_ext <<_ACEOF | |
20339 | /* confdefs.h. */ | |
20340 | _ACEOF | |
20341 | cat confdefs.h >>conftest.$ac_ext | |
20342 | cat >>conftest.$ac_ext <<_ACEOF | |
20343 | /* end confdefs.h. */ | |
20344 | void __attribute__((visibility("hidden"))) foo(void) { } | |
20345 | int | |
20346 | main () | |
20347 | { | |
20348 | ||
20349 | ; | |
20350 | return 0; | |
20351 | } | |
20352 | _ACEOF | |
20353 | rm -f conftest.$ac_objext | |
20354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20355 | (eval $ac_compile) 2>conftest.er1 | |
20356 | ac_status=$? | |
20357 | grep -v '^ *+' conftest.er1 >conftest.err | |
20358 | rm -f conftest.er1 | |
20359 | cat conftest.err >&5 | |
20360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20361 | (exit $ac_status); } && | |
b56cb1ff | 20362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7b6cb5bd | 20363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20364 | (eval $ac_try) 2>&5 | |
20365 | ac_status=$? | |
20366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20367 | (exit $ac_status); }; } && | |
20368 | { ac_try='test -s conftest.$ac_objext' | |
20369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20370 | (eval $ac_try) 2>&5 | |
20371 | ac_status=$? | |
20372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20373 | (exit $ac_status); }; }; then | |
20374 | have_attribute_visibility=yes | |
20375 | else | |
20376 | echo "$as_me: failed program was:" >&5 | |
20377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20378 | ||
20379 | have_attribute_visibility=no | |
20380 | fi | |
20381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20382 | CFLAGS="$save_CFLAGS" | |
20383 | fi | |
20384 | echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 | |
20385 | echo "${ECHO_T}$have_attribute_visibility" >&6 | |
20386 | if test $have_attribute_visibility = yes; then | |
20387 | ||
20388 | cat >>confdefs.h <<\_ACEOF | |
20389 | #define HAVE_ATTRIBUTE_VISIBILITY 1 | |
20390 | _ACEOF | |
20391 | ||
20392 | fi | |
20393 | ||
20394 | echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 | |
20395 | echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 | |
20396 | if test "${have_attribute_dllexport+set}" = set; then | |
20397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20398 | else | |
20399 | ||
20400 | save_CFLAGS="$CFLAGS" | |
20401 | CFLAGS="$CFLAGS -Werror" | |
20402 | cat >conftest.$ac_ext <<_ACEOF | |
20403 | /* confdefs.h. */ | |
20404 | _ACEOF | |
20405 | cat confdefs.h >>conftest.$ac_ext | |
20406 | cat >>conftest.$ac_ext <<_ACEOF | |
20407 | /* end confdefs.h. */ | |
20408 | void __attribute__((dllexport)) foo(void) { } | |
20409 | int | |
20410 | main () | |
20411 | { | |
20412 | ||
20413 | ; | |
20414 | return 0; | |
20415 | } | |
20416 | _ACEOF | |
20417 | rm -f conftest.$ac_objext | |
20418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20419 | (eval $ac_compile) 2>conftest.er1 | |
20420 | ac_status=$? | |
20421 | grep -v '^ *+' conftest.er1 >conftest.err | |
20422 | rm -f conftest.er1 | |
20423 | cat conftest.err >&5 | |
20424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20425 | (exit $ac_status); } && | |
b56cb1ff | 20426 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7b6cb5bd | 20427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20428 | (eval $ac_try) 2>&5 | |
20429 | ac_status=$? | |
20430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20431 | (exit $ac_status); }; } && | |
20432 | { ac_try='test -s conftest.$ac_objext' | |
20433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20434 | (eval $ac_try) 2>&5 | |
20435 | ac_status=$? | |
20436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20437 | (exit $ac_status); }; }; then | |
20438 | have_attribute_dllexport=yes | |
20439 | else | |
20440 | echo "$as_me: failed program was:" >&5 | |
20441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20442 | ||
20443 | have_attribute_dllexport=no | |
20444 | fi | |
20445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20446 | CFLAGS="$save_CFLAGS" | |
20447 | fi | |
20448 | echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5 | |
20449 | echo "${ECHO_T}$have_attribute_dllexport" >&6 | |
20450 | if test $have_attribute_dllexport = yes; then | |
20451 | ||
20452 | cat >>confdefs.h <<\_ACEOF | |
20453 | #define HAVE_ATTRIBUTE_DLLEXPORT 1 | |
20454 | _ACEOF | |
20455 | ||
20456 | fi | |
20457 | ||
20458 | echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 | |
20459 | echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 | |
20460 | if test "${have_attribute_alias+set}" = set; then | |
20461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20462 | else | |
20463 | ||
b52ee437 | 20464 | if test x$gcc_no_link = xyes; then |
20465 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20466 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20467 | { (exit 1); exit 1; }; } | |
20468 | fi | |
20469 | cat >conftest.$ac_ext <<_ACEOF | |
7b6cb5bd | 20470 | /* confdefs.h. */ |
20471 | _ACEOF | |
20472 | cat confdefs.h >>conftest.$ac_ext | |
20473 | cat >>conftest.$ac_ext <<_ACEOF | |
20474 | /* end confdefs.h. */ | |
20475 | ||
20476 | #define ULP STR1(__USER_LABEL_PREFIX__) | |
20477 | #define STR1(x) STR2(x) | |
20478 | #define STR2(x) #x | |
20479 | void foo(void) { } | |
20480 | extern void bar(void) __attribute__((alias(ULP "foo"))); | |
20481 | int | |
20482 | main () | |
20483 | { | |
20484 | bar(); | |
20485 | ; | |
20486 | return 0; | |
20487 | } | |
20488 | _ACEOF | |
20489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20491 | (eval $ac_link) 2>conftest.er1 | |
20492 | ac_status=$? | |
20493 | grep -v '^ *+' conftest.er1 >conftest.err | |
20494 | rm -f conftest.er1 | |
20495 | cat conftest.err >&5 | |
20496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20497 | (exit $ac_status); } && | |
b56cb1ff | 20498 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7b6cb5bd | 20499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20500 | (eval $ac_try) 2>&5 | |
20501 | ac_status=$? | |
20502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20503 | (exit $ac_status); }; } && | |
20504 | { ac_try='test -s conftest$ac_exeext' | |
20505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20506 | (eval $ac_try) 2>&5 | |
20507 | ac_status=$? | |
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20509 | (exit $ac_status); }; }; then | |
20510 | have_attribute_alias=yes | |
20511 | else | |
20512 | echo "$as_me: failed program was:" >&5 | |
20513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20514 | ||
20515 | have_attribute_alias=no | |
20516 | fi | |
20517 | rm -f conftest.err conftest.$ac_objext \ | |
20518 | conftest$ac_exeext conftest.$ac_ext | |
20519 | fi | |
20520 | echo "$as_me:$LINENO: result: $have_attribute_alias" >&5 | |
20521 | echo "${ECHO_T}$have_attribute_alias" >&6 | |
20522 | if test $have_attribute_alias = yes; then | |
20523 | ||
20524 | cat >>confdefs.h <<\_ACEOF | |
20525 | #define HAVE_ATTRIBUTE_ALIAS 1 | |
20526 | _ACEOF | |
20527 | ||
20528 | fi | |
20529 | ||
60c514ba | 20530 | # Check out sync builtins support. |
20531 | ||
20532 | echo "$as_me:$LINENO: checking whether the target supports __sync_fetch_and_add" >&5 | |
20533 | echo $ECHO_N "checking whether the target supports __sync_fetch_and_add... $ECHO_C" >&6 | |
20534 | if test "${have_sync_fetch_and_add+set}" = set; then | |
20535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20536 | else | |
20537 | ||
20538 | if test x$gcc_no_link = xyes; then | |
20539 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20540 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20541 | { (exit 1); exit 1; }; } | |
20542 | fi | |
20543 | cat >conftest.$ac_ext <<_ACEOF | |
20544 | /* confdefs.h. */ | |
20545 | _ACEOF | |
20546 | cat confdefs.h >>conftest.$ac_ext | |
20547 | cat >>conftest.$ac_ext <<_ACEOF | |
20548 | /* end confdefs.h. */ | |
20549 | int foovar = 0; | |
20550 | int | |
20551 | main () | |
20552 | { | |
20553 | ||
20554 | if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1); | |
20555 | if (foovar > 10) return __sync_add_and_fetch (&foovar, -1); | |
20556 | ; | |
20557 | return 0; | |
20558 | } | |
20559 | _ACEOF | |
20560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20562 | (eval $ac_link) 2>conftest.er1 | |
20563 | ac_status=$? | |
20564 | grep -v '^ *+' conftest.er1 >conftest.err | |
20565 | rm -f conftest.er1 | |
20566 | cat conftest.err >&5 | |
20567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20568 | (exit $ac_status); } && | |
b56cb1ff | 20569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
60c514ba | 20570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20571 | (eval $ac_try) 2>&5 | |
20572 | ac_status=$? | |
20573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20574 | (exit $ac_status); }; } && | |
20575 | { ac_try='test -s conftest$ac_exeext' | |
20576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20577 | (eval $ac_try) 2>&5 | |
20578 | ac_status=$? | |
20579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20580 | (exit $ac_status); }; }; then | |
20581 | have_sync_fetch_and_add=yes | |
20582 | else | |
20583 | echo "$as_me: failed program was:" >&5 | |
20584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20585 | ||
20586 | have_sync_fetch_and_add=no | |
20587 | fi | |
20588 | rm -f conftest.err conftest.$ac_objext \ | |
20589 | conftest$ac_exeext conftest.$ac_ext | |
20590 | fi | |
20591 | echo "$as_me:$LINENO: result: $have_sync_fetch_and_add" >&5 | |
20592 | echo "${ECHO_T}$have_sync_fetch_and_add" >&6 | |
20593 | if test $have_sync_fetch_and_add = yes; then | |
20594 | ||
20595 | cat >>confdefs.h <<\_ACEOF | |
20596 | #define HAVE_SYNC_FETCH_AND_ADD 1 | |
20597 | _ACEOF | |
20598 | ||
20599 | fi | |
20600 | ||
20601 | # Check out thread support. | |
20602 | ||
20603 | echo "$as_me:$LINENO: checking configured target thread model" >&5 | |
20604 | echo $ECHO_N "checking configured target thread model... $ECHO_C" >&6 | |
20605 | if test "${target_thread_file+set}" = set; then | |
20606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20607 | else | |
20608 | ||
20609 | target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
20610 | fi | |
20611 | echo "$as_me:$LINENO: result: $target_thread_file" >&5 | |
20612 | echo "${ECHO_T}$target_thread_file" >&6 | |
20613 | ||
20614 | if test $target_thread_file != single; then | |
20615 | ||
20616 | cat >>confdefs.h <<\_ACEOF | |
20617 | #define HAVE_GTHR_DEFAULT 1 | |
20618 | _ACEOF | |
20619 | ||
20620 | fi | |
20621 | ||
20622 | # Check out #pragma weak. | |
20623 | ||
20624 | echo "$as_me:$LINENO: checking whether pragma weak works" >&5 | |
20625 | echo $ECHO_N "checking whether pragma weak works... $ECHO_C" >&6 | |
20626 | if test "${have_pragma_weak+set}" = set; then | |
20627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20628 | else | |
20629 | ||
20630 | gfor_save_CFLAGS="$CFLAGS" | |
20631 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
20632 | cat >conftest.$ac_ext <<_ACEOF | |
20633 | /* confdefs.h. */ | |
20634 | _ACEOF | |
20635 | cat confdefs.h >>conftest.$ac_ext | |
20636 | cat >>conftest.$ac_ext <<_ACEOF | |
20637 | /* end confdefs.h. */ | |
20638 | void foo (void); | |
20639 | #pragma weak foo | |
20640 | int | |
20641 | main () | |
20642 | { | |
20643 | if (foo) foo (); | |
20644 | ; | |
20645 | return 0; | |
20646 | } | |
20647 | _ACEOF | |
20648 | rm -f conftest.$ac_objext | |
20649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20650 | (eval $ac_compile) 2>conftest.er1 | |
20651 | ac_status=$? | |
20652 | grep -v '^ *+' conftest.er1 >conftest.err | |
20653 | rm -f conftest.er1 | |
20654 | cat conftest.err >&5 | |
20655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20656 | (exit $ac_status); } && | |
b56cb1ff | 20657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
60c514ba | 20658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20659 | (eval $ac_try) 2>&5 | |
20660 | ac_status=$? | |
20661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20662 | (exit $ac_status); }; } && | |
20663 | { ac_try='test -s conftest.$ac_objext' | |
20664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20665 | (eval $ac_try) 2>&5 | |
20666 | ac_status=$? | |
20667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20668 | (exit $ac_status); }; }; then | |
20669 | have_pragma_weak=yes | |
20670 | else | |
20671 | echo "$as_me: failed program was:" >&5 | |
20672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20673 | ||
20674 | have_pragma_weak=no | |
20675 | fi | |
20676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20677 | fi | |
20678 | echo "$as_me:$LINENO: result: $have_pragma_weak" >&5 | |
20679 | echo "${ECHO_T}$have_pragma_weak" >&6 | |
20680 | if test $have_pragma_weak = yes; then | |
20681 | ||
20682 | cat >>confdefs.h <<\_ACEOF | |
0a207fde | 20683 | #define SUPPORTS_WEAK 1 |
60c514ba | 20684 | _ACEOF |
20685 | ||
20686 | fi | |
0a207fde | 20687 | case "$host" in |
20688 | *-*-darwin* | *-*-hpux* | *-*-cygwin*) | |
20689 | ||
20690 | cat >>confdefs.h <<\_ACEOF | |
20691 | #define GTHREAD_USE_WEAK 0 | |
20692 | _ACEOF | |
20693 | ||
20694 | ;; | |
20695 | esac | |
60c514ba | 20696 | |
1dc95e51 | 20697 | # Various other checks on target |
20698 | ||
20699 | echo "$as_me:$LINENO: checking whether the target can unlink an open file" >&5 | |
20700 | echo $ECHO_N "checking whether the target can unlink an open file... $ECHO_C" >&6 | |
20701 | if test "${have_unlink_open_file+set}" = set; then | |
20702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20703 | else | |
20704 | ||
20705 | if test "$cross_compiling" = yes; then | |
20706 | ||
20707 | case "${target}" in | |
20708 | *mingw*) have_unlink_open_file=no ;; | |
20709 | *) have_unlink_open_file=yes;; | |
20710 | esac | |
20711 | else | |
20712 | cat >conftest.$ac_ext <<_ACEOF | |
20713 | /* confdefs.h. */ | |
20714 | _ACEOF | |
20715 | cat confdefs.h >>conftest.$ac_ext | |
20716 | cat >>conftest.$ac_ext <<_ACEOF | |
20717 | /* end confdefs.h. */ | |
20718 | ||
20719 | #include <errno.h> | |
20720 | #include <fcntl.h> | |
20721 | #include <unistd.h> | |
20722 | #include <sys/stat.h> | |
20723 | ||
20724 | int main () | |
20725 | { | |
20726 | int fd; | |
20727 | ||
20728 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD); | |
20729 | if (fd <= 0) | |
20730 | return 0; | |
20731 | if (unlink ("testfile") == -1) | |
20732 | return 1; | |
20733 | write (fd, "This is a test\n", 15); | |
20734 | close (fd); | |
20735 | ||
20736 | if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT) | |
20737 | return 0; | |
20738 | else | |
20739 | return 1; | |
20740 | } | |
20741 | _ACEOF | |
20742 | rm -f conftest$ac_exeext | |
20743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20744 | (eval $ac_link) 2>&5 | |
20745 | ac_status=$? | |
20746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20749 | (eval $ac_try) 2>&5 | |
20750 | ac_status=$? | |
20751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20752 | (exit $ac_status); }; }; then | |
20753 | have_unlink_open_file=yes | |
20754 | else | |
20755 | echo "$as_me: program exited with status $ac_status" >&5 | |
20756 | echo "$as_me: failed program was:" >&5 | |
20757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20758 | ||
20759 | ( exit $ac_status ) | |
20760 | have_unlink_open_file=no | |
20761 | fi | |
20762 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20763 | fi | |
20764 | fi | |
20765 | echo "$as_me:$LINENO: result: $have_unlink_open_file" >&5 | |
20766 | echo "${ECHO_T}$have_unlink_open_file" >&6 | |
20767 | if test x"$have_unlink_open_file" = xyes; then | |
20768 | ||
20769 | cat >>confdefs.h <<\_ACEOF | |
20770 | #define HAVE_UNLINK_OPEN_FILE 1 | |
20771 | _ACEOF | |
20772 | ||
20773 | fi | |
20774 | ||
cf55c3cf | 20775 | # Check whether line terminator is LF or CRLF |
20776 | ||
20777 | echo "$as_me:$LINENO: checking whether the target has CRLF as line terminator" >&5 | |
20778 | echo $ECHO_N "checking whether the target has CRLF as line terminator... $ECHO_C" >&6 | |
20779 | if test "${have_crlf+set}" = set; then | |
20780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20781 | else | |
20782 | ||
20783 | if test "$cross_compiling" = yes; then | |
20784 | ||
20785 | case "${target}" in | |
20786 | *mingw*) have_crlf=yes ;; | |
20787 | *) have_crlf=no;; | |
20788 | esac | |
20789 | else | |
20790 | cat >conftest.$ac_ext <<_ACEOF | |
20791 | /* confdefs.h. */ | |
20792 | _ACEOF | |
20793 | cat confdefs.h >>conftest.$ac_ext | |
20794 | cat >>conftest.$ac_ext <<_ACEOF | |
20795 | /* end confdefs.h. */ | |
20796 | ||
20797 | /* This test program should exit with status 0 if system uses a CRLF as | |
20798 | line terminator, and status 1 otherwise. | |
20799 | Since it is used to check for mingw systems, and should return 0 in any | |
20800 | other case, in case of a failure we will not use CRLF. */ | |
20801 | #include <sys/stat.h> | |
20802 | #include <stdlib.h> | |
20803 | #include <fcntl.h> | |
20804 | #include <stdio.h> | |
20805 | ||
20806 | int main () | |
20807 | { | |
20808 | #ifndef O_BINARY | |
20809 | exit(1); | |
20810 | #else | |
20811 | int fd, bytes; | |
20812 | char buff[5]; | |
20813 | ||
20814 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
20815 | if (fd < 0) | |
20816 | exit(1); | |
20817 | if (write (fd, "\n", 1) < 0) | |
20818 | perror ("write"); | |
20819 | ||
20820 | close (fd); | |
20821 | ||
20822 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
20823 | exit(1); | |
20824 | bytes = read (fd, buff, 5); | |
20825 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
20826 | exit(0); | |
20827 | else | |
20828 | exit(1); | |
20829 | #endif | |
20830 | } | |
20831 | _ACEOF | |
20832 | rm -f conftest$ac_exeext | |
20833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20834 | (eval $ac_link) 2>&5 | |
20835 | ac_status=$? | |
20836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20839 | (eval $ac_try) 2>&5 | |
20840 | ac_status=$? | |
20841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20842 | (exit $ac_status); }; }; then | |
20843 | have_crlf=yes | |
20844 | else | |
20845 | echo "$as_me: program exited with status $ac_status" >&5 | |
20846 | echo "$as_me: failed program was:" >&5 | |
20847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20848 | ||
20849 | ( exit $ac_status ) | |
20850 | have_crlf=no | |
20851 | fi | |
20852 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20853 | fi | |
20854 | fi | |
20855 | echo "$as_me:$LINENO: result: $have_crlf" >&5 | |
20856 | echo "${ECHO_T}$have_crlf" >&6 | |
20857 | if test x"$have_crlf" = xyes; then | |
20858 | ||
20859 | cat >>confdefs.h <<\_ACEOF | |
20860 | #define HAVE_CRLF 1 | |
20861 | _ACEOF | |
20862 | ||
20863 | fi | |
20864 | ||
4ee9c684 | 20865 | cat >confcache <<\_ACEOF |
20866 | # This file is a shell script that caches the results of configure | |
20867 | # tests run on this system so they can be shared between configure | |
20868 | # scripts and configure runs, see configure's option --config-cache. | |
20869 | # It is not useful on other systems. If it contains results you don't | |
20870 | # want to keep, you may remove or edit it. | |
20871 | # | |
20872 | # config.status only pays attention to the cache file if you give it | |
20873 | # the --recheck option to rerun configure. | |
20874 | # | |
20875 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20876 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20877 | # following values. | |
20878 | ||
20879 | _ACEOF | |
20880 | ||
20881 | # The following way of writing the cache mishandles newlines in values, | |
20882 | # but we know of no workaround that is simple, portable, and efficient. | |
20883 | # So, don't put newlines in cache variables' values. | |
20884 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20885 | # and sets the high bit in the cache file unless we assign to the vars. | |
20886 | { | |
20887 | (set) 2>&1 | | |
20888 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20889 | *ac_space=\ *) | |
20890 | # `set' does not quote correctly, so add quotes (double-quote | |
20891 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20892 | sed -n \ | |
20893 | "s/'/'\\\\''/g; | |
20894 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20895 | ;; | |
20896 | *) | |
20897 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20898 | sed -n \ | |
20899 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
20900 | ;; | |
20901 | esac; | |
20902 | } | | |
20903 | sed ' | |
20904 | t clear | |
20905 | : clear | |
20906 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20907 | t end | |
20908 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20909 | : end' >>confcache | |
20910 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20911 | if test -w $cache_file; then | |
20912 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20913 | cat confcache >$cache_file | |
20914 | else | |
20915 | echo "not updating unwritable cache $cache_file" | |
20916 | fi | |
20917 | fi | |
20918 | rm -f confcache | |
20919 | ||
90973b19 | 20920 | if test ${multilib} = yes; then |
20921 | multilib_arg="--enable-multilib" | |
4ee9c684 | 20922 | else |
90973b19 | 20923 | multilib_arg= |
4ee9c684 | 20924 | fi |
4ee9c684 | 20925 | |
90973b19 | 20926 | # Write our Makefile. |
4ee9c684 | 20927 | ac_config_files="$ac_config_files Makefile" |
90973b19 | 20928 | |
4ee9c684 | 20929 | cat >confcache <<\_ACEOF |
20930 | # This file is a shell script that caches the results of configure | |
20931 | # tests run on this system so they can be shared between configure | |
20932 | # scripts and configure runs, see configure's option --config-cache. | |
20933 | # It is not useful on other systems. If it contains results you don't | |
20934 | # want to keep, you may remove or edit it. | |
20935 | # | |
20936 | # config.status only pays attention to the cache file if you give it | |
20937 | # the --recheck option to rerun configure. | |
20938 | # | |
20939 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20940 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20941 | # following values. | |
20942 | ||
20943 | _ACEOF | |
20944 | ||
20945 | # The following way of writing the cache mishandles newlines in values, | |
20946 | # but we know of no workaround that is simple, portable, and efficient. | |
20947 | # So, don't put newlines in cache variables' values. | |
20948 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20949 | # and sets the high bit in the cache file unless we assign to the vars. | |
20950 | { | |
20951 | (set) 2>&1 | | |
20952 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20953 | *ac_space=\ *) | |
20954 | # `set' does not quote correctly, so add quotes (double-quote | |
20955 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20956 | sed -n \ | |
20957 | "s/'/'\\\\''/g; | |
20958 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20959 | ;; | |
20960 | *) | |
20961 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20962 | sed -n \ | |
20963 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
20964 | ;; | |
20965 | esac; | |
20966 | } | | |
20967 | sed ' | |
20968 | t clear | |
20969 | : clear | |
20970 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20971 | t end | |
20972 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20973 | : end' >>confcache | |
20974 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20975 | if test -w $cache_file; then | |
20976 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20977 | cat confcache >$cache_file | |
20978 | else | |
20979 | echo "not updating unwritable cache $cache_file" | |
20980 | fi | |
20981 | fi | |
20982 | rm -f confcache | |
20983 | ||
20984 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20985 | # Let make expand exec_prefix. | |
20986 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20987 | ||
20988 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
20989 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20990 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20991 | # (actually we leave an empty line to preserve line numbers). | |
20992 | if test "x$srcdir" = x.; then | |
20993 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
20994 | s/:*\$(srcdir):*/:/; | |
20995 | s/:*\${srcdir}:*/:/; | |
20996 | s/:*@srcdir@:*/:/; | |
20997 | s/^\([^=]*=[ ]*\):*/\1/; | |
20998 | s/:*$//; | |
20999 | s/^[^=]*=[ ]*$//; | |
21000 | }' | |
21001 | fi | |
21002 | ||
21003 | DEFS=-DHAVE_CONFIG_H | |
21004 | ||
21005 | ac_libobjs= | |
21006 | ac_ltlibobjs= | |
21007 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21008 | # 1. Remove the extension, and $U if already installed. | |
21009 | ac_i=`echo "$ac_i" | | |
21010 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
21011 | # 2. Add them. | |
21012 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21013 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21014 | done | |
21015 | LIBOBJS=$ac_libobjs | |
21016 | ||
21017 | LTLIBOBJS=$ac_ltlibobjs | |
21018 | ||
21019 | ||
21020 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
21021 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21022 | Usually this means the macro was only invoked conditionally." >&5 | |
21023 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21024 | Usually this means the macro was only invoked conditionally." >&2;} | |
21025 | { (exit 1); exit 1; }; } | |
21026 | fi | |
4ee9c684 | 21027 | |
21028 | : ${CONFIG_STATUS=./config.status} | |
21029 | ac_clean_files_save=$ac_clean_files | |
21030 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21031 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
21032 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21033 | cat >$CONFIG_STATUS <<_ACEOF | |
21034 | #! $SHELL | |
21035 | # Generated by $as_me. | |
21036 | # Run this file to recreate the current configuration. | |
21037 | # Compiler output produced by configure, useful for debugging | |
21038 | # configure, is in config.log if it exists. | |
21039 | ||
21040 | debug=false | |
21041 | ac_cs_recheck=false | |
21042 | ac_cs_silent=false | |
21043 | SHELL=\${CONFIG_SHELL-$SHELL} | |
21044 | _ACEOF | |
21045 | ||
21046 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21047 | ## --------------------- ## | |
21048 | ## M4sh Initialization. ## | |
21049 | ## --------------------- ## | |
21050 | ||
21051 | # Be Bourne compatible | |
21052 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21053 | emulate sh | |
21054 | NULLCMD=: | |
21055 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21056 | # is contrary to our usage. Disable this feature. | |
21057 | alias -g '${1+"$@"}'='"$@"' | |
21058 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
21059 | set -o posix | |
21060 | fi | |
21061 | DUALCASE=1; export DUALCASE # for MKS sh | |
21062 | ||
21063 | # Support unset when possible. | |
21064 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
21065 | as_unset=unset | |
21066 | else | |
21067 | as_unset=false | |
21068 | fi | |
21069 | ||
21070 | ||
21071 | # Work around bugs in pre-3.0 UWIN ksh. | |
21072 | $as_unset ENV MAIL MAILPATH | |
21073 | PS1='$ ' | |
21074 | PS2='> ' | |
21075 | PS4='+ ' | |
21076 | ||
21077 | # NLS nuisances. | |
21078 | for as_var in \ | |
21079 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21080 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21081 | LC_TELEPHONE LC_TIME | |
21082 | do | |
21083 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
21084 | eval $as_var=C; export $as_var | |
21085 | else | |
21086 | $as_unset $as_var | |
21087 | fi | |
21088 | done | |
21089 | ||
21090 | # Required to use basename. | |
21091 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21092 | as_expr=expr | |
21093 | else | |
21094 | as_expr=false | |
21095 | fi | |
21096 | ||
21097 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21098 | as_basename=basename | |
21099 | else | |
21100 | as_basename=false | |
21101 | fi | |
21102 | ||
21103 | ||
21104 | # Name of the executable. | |
21105 | as_me=`$as_basename "$0" || | |
21106 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21107 | X"$0" : 'X\(//\)$' \| \ | |
21108 | X"$0" : 'X\(/\)$' \| \ | |
21109 | . : '\(.\)' 2>/dev/null || | |
21110 | echo X/"$0" | | |
21111 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21112 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21113 | /^X\/\(\/\).*/{ s//\1/; q; } | |
21114 | s/.*/./; q'` | |
21115 | ||
21116 | ||
21117 | # PATH needs CR, and LINENO needs CR and PATH. | |
21118 | # Avoid depending upon Character Ranges. | |
21119 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21120 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21121 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21122 | as_cr_digits='0123456789' | |
21123 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21124 | ||
21125 | # The user is always right. | |
21126 | if test "${PATH_SEPARATOR+set}" != set; then | |
21127 | echo "#! /bin/sh" >conf$$.sh | |
21128 | echo "exit 0" >>conf$$.sh | |
21129 | chmod +x conf$$.sh | |
21130 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
21131 | PATH_SEPARATOR=';' | |
21132 | else | |
21133 | PATH_SEPARATOR=: | |
21134 | fi | |
21135 | rm -f conf$$.sh | |
21136 | fi | |
21137 | ||
21138 | ||
21139 | as_lineno_1=$LINENO | |
21140 | as_lineno_2=$LINENO | |
21141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21143 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21144 | # Find who we are. Look in the path if we contain no path at all | |
21145 | # relative or not. | |
21146 | case $0 in | |
21147 | *[\\/]* ) as_myself=$0 ;; | |
21148 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21149 | for as_dir in $PATH | |
21150 | do | |
21151 | IFS=$as_save_IFS | |
21152 | test -z "$as_dir" && as_dir=. | |
21153 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21154 | done | |
21155 | ||
21156 | ;; | |
21157 | esac | |
21158 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21159 | # in which case we are not to be found in the path. | |
21160 | if test "x$as_myself" = x; then | |
21161 | as_myself=$0 | |
21162 | fi | |
21163 | if test ! -f "$as_myself"; then | |
21164 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21165 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21166 | { (exit 1); exit 1; }; } | |
21167 | fi | |
21168 | case $CONFIG_SHELL in | |
21169 | '') | |
21170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21171 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21172 | do | |
21173 | IFS=$as_save_IFS | |
21174 | test -z "$as_dir" && as_dir=. | |
21175 | for as_base in sh bash ksh sh5; do | |
21176 | case $as_dir in | |
21177 | /*) | |
21178 | if ("$as_dir/$as_base" -c ' | |
21179 | as_lineno_1=$LINENO | |
21180 | as_lineno_2=$LINENO | |
21181 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21182 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21183 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
21184 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
21185 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
21186 | CONFIG_SHELL=$as_dir/$as_base | |
21187 | export CONFIG_SHELL | |
21188 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21189 | fi;; | |
21190 | esac | |
21191 | done | |
21192 | done | |
21193 | ;; | |
21194 | esac | |
21195 | ||
21196 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21197 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21198 | # line-number line before each line; the second 'sed' does the real | |
21199 | # work. The second script uses 'N' to pair each line-number line | |
21200 | # with the numbered line, and appends trailing '-' during | |
21201 | # substitution so that $LINENO is not a special case at line end. | |
21202 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21203 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21204 | sed '=' <$as_myself | | |
21205 | sed ' | |
21206 | N | |
21207 | s,$,-, | |
21208 | : loop | |
21209 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21210 | t loop | |
21211 | s,-$,, | |
21212 | s,^['$as_cr_digits']*\n,, | |
21213 | ' >$as_me.lineno && | |
21214 | chmod +x $as_me.lineno || | |
21215 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21216 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
21217 | { (exit 1); exit 1; }; } | |
21218 | ||
21219 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21220 | # (the dirname of $[0] is not the place where we might find the | |
21221 | # original and so on. Autoconf is especially sensible to this). | |
21222 | . ./$as_me.lineno | |
21223 | # Exit status is that of the last command. | |
21224 | exit | |
21225 | } | |
21226 | ||
21227 | ||
21228 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
21229 | *c*,-n*) ECHO_N= ECHO_C=' | |
21230 | ' ECHO_T=' ' ;; | |
21231 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21232 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
21233 | esac | |
21234 | ||
21235 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21236 | as_expr=expr | |
21237 | else | |
21238 | as_expr=false | |
21239 | fi | |
21240 | ||
21241 | rm -f conf$$ conf$$.exe conf$$.file | |
21242 | echo >conf$$.file | |
21243 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21244 | # We could just check for DJGPP; but this test a) works b) is more generic | |
21245 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21246 | if test -f conf$$.exe; then | |
21247 | # Don't use ln at all; we don't have any links | |
21248 | as_ln_s='cp -p' | |
21249 | else | |
21250 | as_ln_s='ln -s' | |
21251 | fi | |
21252 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21253 | as_ln_s=ln | |
21254 | else | |
21255 | as_ln_s='cp -p' | |
21256 | fi | |
21257 | rm -f conf$$ conf$$.exe conf$$.file | |
21258 | ||
21259 | if mkdir -p . 2>/dev/null; then | |
21260 | as_mkdir_p=: | |
21261 | else | |
21262 | test -d ./-p && rmdir ./-p | |
21263 | as_mkdir_p=false | |
21264 | fi | |
21265 | ||
21266 | as_executable_p="test -f" | |
21267 | ||
21268 | # Sed expression to map a string onto a valid CPP name. | |
21269 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
21270 | ||
21271 | # Sed expression to map a string onto a valid variable name. | |
21272 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
21273 | ||
21274 | ||
21275 | # IFS | |
21276 | # We need space, tab and new line, in precisely that order. | |
21277 | as_nl=' | |
21278 | ' | |
21279 | IFS=" $as_nl" | |
21280 | ||
21281 | # CDPATH. | |
21282 | $as_unset CDPATH | |
21283 | ||
21284 | exec 6>&1 | |
21285 | ||
21286 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
21287 | # report actual input values of CONFIG_FILES etc. instead of their | |
21288 | # values after options handling. Logging --version etc. is OK. | |
21289 | exec 5>>config.log | |
21290 | { | |
21291 | echo | |
21292 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21293 | ## Running $as_me. ## | |
21294 | _ASBOX | |
21295 | } >&5 | |
21296 | cat >&5 <<_CSEOF | |
21297 | ||
21298 | This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was | |
21299 | generated by GNU Autoconf 2.59. Invocation command line was | |
21300 | ||
21301 | CONFIG_FILES = $CONFIG_FILES | |
21302 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21303 | CONFIG_LINKS = $CONFIG_LINKS | |
21304 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21305 | $ $0 $@ | |
21306 | ||
21307 | _CSEOF | |
21308 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
21309 | echo >&5 | |
21310 | _ACEOF | |
21311 | ||
21312 | # Files that config.status was made for. | |
21313 | if test -n "$ac_config_files"; then | |
21314 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
21315 | fi | |
21316 | ||
21317 | if test -n "$ac_config_headers"; then | |
21318 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
21319 | fi | |
21320 | ||
21321 | if test -n "$ac_config_links"; then | |
21322 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
21323 | fi | |
21324 | ||
21325 | if test -n "$ac_config_commands"; then | |
21326 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
21327 | fi | |
21328 | ||
21329 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21330 | ||
21331 | ac_cs_usage="\ | |
21332 | \`$as_me' instantiates files from templates according to the | |
21333 | current configuration. | |
21334 | ||
21335 | Usage: $0 [OPTIONS] [FILE]... | |
21336 | ||
21337 | -h, --help print this help, then exit | |
21338 | -V, --version print version number, then exit | |
21339 | -q, --quiet do not print progress messages | |
21340 | -d, --debug don't remove temporary files | |
21341 | --recheck update $as_me by reconfiguring in the same conditions | |
21342 | --file=FILE[:TEMPLATE] | |
21343 | instantiate the configuration file FILE | |
21344 | --header=FILE[:TEMPLATE] | |
21345 | instantiate the configuration header FILE | |
21346 | ||
21347 | Configuration files: | |
21348 | $config_files | |
21349 | ||
21350 | Configuration headers: | |
21351 | $config_headers | |
21352 | ||
21353 | Configuration commands: | |
21354 | $config_commands | |
21355 | ||
21356 | Report bugs to <bug-autoconf@gnu.org>." | |
21357 | _ACEOF | |
21358 | ||
21359 | cat >>$CONFIG_STATUS <<_ACEOF | |
21360 | ac_cs_version="\\ | |
21361 | GNU Fortran Runtime Library config.status 0.2 | |
21362 | configured by $0, generated by GNU Autoconf 2.59, | |
21363 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
21364 | ||
21365 | Copyright (C) 2003 Free Software Foundation, Inc. | |
21366 | This config.status script is free software; the Free Software Foundation | |
21367 | gives unlimited permission to copy, distribute and modify it." | |
21368 | srcdir=$srcdir | |
21369 | INSTALL="$INSTALL" | |
21370 | _ACEOF | |
21371 | ||
21372 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21373 | # If no file are specified by the user, then we need to provide default | |
21374 | # value. By we need to know if files were specified by the user. | |
21375 | ac_need_defaults=: | |
21376 | while test $# != 0 | |
21377 | do | |
21378 | case $1 in | |
21379 | --*=*) | |
21380 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
21381 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
21382 | ac_shift=: | |
21383 | ;; | |
21384 | -*) | |
21385 | ac_option=$1 | |
21386 | ac_optarg=$2 | |
21387 | ac_shift=shift | |
21388 | ;; | |
21389 | *) # This is not an option, so the user has probably given explicit | |
21390 | # arguments. | |
21391 | ac_option=$1 | |
21392 | ac_need_defaults=false;; | |
21393 | esac | |
21394 | ||
21395 | case $ac_option in | |
21396 | # Handling of the options. | |
21397 | _ACEOF | |
21398 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21399 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21400 | ac_cs_recheck=: ;; | |
21401 | --version | --vers* | -V ) | |
21402 | echo "$ac_cs_version"; exit 0 ;; | |
21403 | --he | --h) | |
21404 | # Conflict between --help and --header | |
21405 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
21406 | Try \`$0 --help' for more information." >&5 | |
21407 | echo "$as_me: error: ambiguous option: $1 | |
21408 | Try \`$0 --help' for more information." >&2;} | |
21409 | { (exit 1); exit 1; }; };; | |
21410 | --help | --hel | -h ) | |
21411 | echo "$ac_cs_usage"; exit 0 ;; | |
21412 | --debug | --d* | -d ) | |
21413 | debug=: ;; | |
21414 | --file | --fil | --fi | --f ) | |
21415 | $ac_shift | |
21416 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
21417 | ac_need_defaults=false;; | |
21418 | --header | --heade | --head | --hea ) | |
21419 | $ac_shift | |
21420 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
21421 | ac_need_defaults=false;; | |
21422 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21423 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21424 | ac_cs_silent=: ;; | |
21425 | ||
21426 | # This is an error. | |
21427 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
21428 | Try \`$0 --help' for more information." >&5 | |
21429 | echo "$as_me: error: unrecognized option: $1 | |
21430 | Try \`$0 --help' for more information." >&2;} | |
21431 | { (exit 1); exit 1; }; } ;; | |
21432 | ||
21433 | *) ac_config_targets="$ac_config_targets $1" ;; | |
21434 | ||
21435 | esac | |
21436 | shift | |
21437 | done | |
21438 | ||
21439 | ac_configure_extra_args= | |
21440 | ||
21441 | if $ac_cs_silent; then | |
21442 | exec 6>/dev/null | |
21443 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21444 | fi | |
21445 | ||
21446 | _ACEOF | |
21447 | cat >>$CONFIG_STATUS <<_ACEOF | |
21448 | if \$ac_cs_recheck; then | |
21449 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
21450 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21451 | fi | |
21452 | ||
21453 | _ACEOF | |
21454 | ||
21455 | cat >>$CONFIG_STATUS <<_ACEOF | |
21456 | # | |
21457 | # INIT-COMMANDS section. | |
21458 | # | |
21459 | ||
90973b19 | 21460 | |
21461 | srcdir="$srcdir" | |
21462 | host="$host" | |
21463 | target="$target" | |
21464 | with_multisubdir="$with_multisubdir" | |
21465 | with_multisrctop="$with_multisrctop" | |
21466 | with_target_subdir="$with_target_subdir" | |
21467 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
21468 | multi_basedir="$multi_basedir" | |
21469 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
21470 | CC="$CC" | |
4ee9c684 | 21471 | |
21472 | _ACEOF | |
21473 | ||
21474 | ||
21475 | ||
21476 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21477 | for ac_config_target in $ac_config_targets | |
21478 | do | |
21479 | case "$ac_config_target" in | |
21480 | # Handling of arguments. | |
21481 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
90973b19 | 21482 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
4ee9c684 | 21483 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
21484 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
21485 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
21486 | { (exit 1); exit 1; }; };; | |
21487 | esac | |
21488 | done | |
21489 | ||
21490 | # If the user did not use the arguments to specify the items to instantiate, | |
21491 | # then the envvar interface is used. Set only those that are not. | |
21492 | # We use the long form for the default assignment because of an extremely | |
21493 | # bizarre bug on SunOS 4.1.3. | |
21494 | if $ac_need_defaults; then | |
21495 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21496 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21497 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
21498 | fi | |
21499 | ||
21500 | # Have a temporary directory for convenience. Make it in the build tree | |
21501 | # simply because there is no reason to put it here, and in addition, | |
21502 | # creating and moving files from /tmp can sometimes cause problems. | |
21503 | # Create a temporary directory, and hook for its removal unless debugging. | |
21504 | $debug || | |
21505 | { | |
21506 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
21507 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21508 | } | |
21509 | ||
21510 | # Create a (secure) tmp directory for tmp files. | |
21511 | ||
21512 | { | |
21513 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
21514 | test -n "$tmp" && test -d "$tmp" | |
21515 | } || | |
21516 | { | |
21517 | tmp=./confstat$$-$RANDOM | |
21518 | (umask 077 && mkdir $tmp) | |
21519 | } || | |
21520 | { | |
21521 | echo "$me: cannot create a temporary directory in ." >&2 | |
21522 | { (exit 1); exit 1; } | |
21523 | } | |
21524 | ||
21525 | _ACEOF | |
21526 | ||
21527 | cat >>$CONFIG_STATUS <<_ACEOF | |
21528 | ||
21529 | # | |
21530 | # CONFIG_FILES section. | |
21531 | # | |
21532 | ||
21533 | # No need to generate the scripts if there are no CONFIG_FILES. | |
21534 | # This happens for instance when ./config.status config.h | |
21535 | if test -n "\$CONFIG_FILES"; then | |
21536 | # Protect against being on the right side of a sed subst in config.status. | |
21537 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
21538 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
21539 | s,@SHELL@,$SHELL,;t t | |
21540 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
21541 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
21542 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
21543 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
21544 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
21545 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
21546 | s,@exec_prefix@,$exec_prefix,;t t | |
21547 | s,@prefix@,$prefix,;t t | |
21548 | s,@program_transform_name@,$program_transform_name,;t t | |
21549 | s,@bindir@,$bindir,;t t | |
21550 | s,@sbindir@,$sbindir,;t t | |
21551 | s,@libexecdir@,$libexecdir,;t t | |
21552 | s,@datadir@,$datadir,;t t | |
21553 | s,@sysconfdir@,$sysconfdir,;t t | |
21554 | s,@sharedstatedir@,$sharedstatedir,;t t | |
21555 | s,@localstatedir@,$localstatedir,;t t | |
21556 | s,@libdir@,$libdir,;t t | |
21557 | s,@includedir@,$includedir,;t t | |
21558 | s,@oldincludedir@,$oldincludedir,;t t | |
21559 | s,@infodir@,$infodir,;t t | |
21560 | s,@mandir@,$mandir,;t t | |
21561 | s,@build_alias@,$build_alias,;t t | |
21562 | s,@host_alias@,$host_alias,;t t | |
21563 | s,@target_alias@,$target_alias,;t t | |
21564 | s,@DEFS@,$DEFS,;t t | |
21565 | s,@ECHO_C@,$ECHO_C,;t t | |
21566 | s,@ECHO_N@,$ECHO_N,;t t | |
21567 | s,@ECHO_T@,$ECHO_T,;t t | |
21568 | s,@LIBS@,$LIBS,;t t | |
90973b19 | 21569 | s,@build@,$build,;t t |
21570 | s,@build_cpu@,$build_cpu,;t t | |
21571 | s,@build_vendor@,$build_vendor,;t t | |
21572 | s,@build_os@,$build_os,;t t | |
4c82c0dd | 21573 | s,@build_subdir@,$build_subdir,;t t |
21574 | s,@host_subdir@,$host_subdir,;t t | |
21575 | s,@target_subdir@,$target_subdir,;t t | |
90973b19 | 21576 | s,@host@,$host,;t t |
21577 | s,@host_cpu@,$host_cpu,;t t | |
21578 | s,@host_vendor@,$host_vendor,;t t | |
21579 | s,@host_os@,$host_os,;t t | |
21580 | s,@target@,$target,;t t | |
21581 | s,@target_cpu@,$target_cpu,;t t | |
21582 | s,@target_vendor@,$target_vendor,;t t | |
21583 | s,@target_os@,$target_os,;t t | |
4ee9c684 | 21584 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
21585 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
21586 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
21587 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
21588 | s,@PACKAGE@,$PACKAGE,;t t | |
21589 | s,@VERSION@,$VERSION,;t t | |
21590 | s,@ACLOCAL@,$ACLOCAL,;t t | |
21591 | s,@AUTOCONF@,$AUTOCONF,;t t | |
21592 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
21593 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
21594 | s,@MAKEINFO@,$MAKEINFO,;t t | |
4ee9c684 | 21595 | s,@install_sh@,$install_sh,;t t |
21596 | s,@STRIP@,$STRIP,;t t | |
21597 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
21598 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
21599 | s,@mkdir_p@,$mkdir_p,;t t | |
21600 | s,@AWK@,$AWK,;t t | |
21601 | s,@SET_MAKE@,$SET_MAKE,;t t | |
21602 | s,@am__leading_dot@,$am__leading_dot,;t t | |
6745c9de | 21603 | s,@AMTAR@,$AMTAR,;t t |
21604 | s,@am__tar@,$am__tar,;t t | |
21605 | s,@am__untar@,$am__untar,;t t | |
4ee9c684 | 21606 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
21607 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
21608 | s,@MAINT@,$MAINT,;t t | |
90973b19 | 21609 | s,@multi_basedir@,$multi_basedir,;t t |
90973b19 | 21610 | s,@toolexecdir@,$toolexecdir,;t t |
21611 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
4ee9c684 | 21612 | s,@CC@,$CC,;t t |
4ee9c684 | 21613 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
21614 | s,@EXEEXT@,$EXEEXT,;t t | |
21615 | s,@OBJEXT@,$OBJEXT,;t t | |
09e5829f | 21616 | s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t |
21617 | s,@AM_CFLAGS@,$AM_CFLAGS,;t t | |
90973b19 | 21618 | s,@AS@,$AS,;t t |
21619 | s,@ac_ct_AS@,$ac_ct_AS,;t t | |
21620 | s,@AR@,$AR,;t t | |
21621 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
21622 | s,@RANLIB@,$RANLIB,;t t | |
21623 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
21624 | s,@LN_S@,$LN_S,;t t | |
21625 | s,@LIBTOOL@,$LIBTOOL,;t t | |
21626 | s,@enable_shared@,$enable_shared,;t t | |
21627 | s,@enable_static@,$enable_static,;t t | |
6d73cceb | 21628 | s,@FC@,$FC,;t t |
21629 | s,@FCFLAGS@,$FCFLAGS,;t t | |
90973b19 | 21630 | s,@LDFLAGS@,$LDFLAGS,;t t |
6d73cceb | 21631 | s,@ac_ct_FC@,$ac_ct_FC,;t t |
9cf1c244 | 21632 | s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t |
4ee9c684 | 21633 | s,@CPP@,$CPP,;t t |
90973b19 | 21634 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
4ee9c684 | 21635 | s,@EGREP@,$EGREP,;t t |
8c84a5de | 21636 | s,@FPU_HOST_HEADER@,$FPU_HOST_HEADER,;t t |
4ee9c684 | 21637 | s,@LIBOBJS@,$LIBOBJS,;t t |
21638 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
21639 | CEOF | |
21640 | ||
21641 | _ACEOF | |
21642 | ||
21643 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21644 | # Split the substitutions into bite-sized pieces for seds with | |
21645 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21646 | ac_max_sed_lines=48 | |
21647 | ac_sed_frag=1 # Number of current file. | |
21648 | ac_beg=1 # First line for current file. | |
21649 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
21650 | ac_more_lines=: | |
21651 | ac_sed_cmds= | |
21652 | while $ac_more_lines; do | |
21653 | if test $ac_beg -gt 1; then | |
21654 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
21655 | else | |
21656 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
21657 | fi | |
21658 | if test ! -s $tmp/subs.frag; then | |
21659 | ac_more_lines=false | |
21660 | else | |
21661 | # The purpose of the label and of the branching condition is to | |
21662 | # speed up the sed processing (if there are no `@' at all, there | |
21663 | # is no need to browse any of the substitutions). | |
21664 | # These are the two extra sed commands mentioned above. | |
21665 | (echo ':t | |
21666 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
21667 | if test -z "$ac_sed_cmds"; then | |
21668 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
21669 | else | |
21670 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
21671 | fi | |
21672 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
21673 | ac_beg=$ac_end | |
21674 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
21675 | fi | |
21676 | done | |
21677 | if test -z "$ac_sed_cmds"; then | |
21678 | ac_sed_cmds=cat | |
21679 | fi | |
21680 | fi # test -n "$CONFIG_FILES" | |
21681 | ||
21682 | _ACEOF | |
21683 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21684 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
21685 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21686 | case $ac_file in | |
21687 | - | *:- | *:-:* ) # input from stdin | |
21688 | cat >$tmp/stdin | |
21689 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21690 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21691 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21692 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21693 | * ) ac_file_in=$ac_file.in ;; | |
21694 | esac | |
21695 | ||
21696 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
21697 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
21698 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21699 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21700 | X"$ac_file" : 'X\(//\)$' \| \ | |
21701 | X"$ac_file" : 'X\(/\)' \| \ | |
21702 | . : '\(.\)' 2>/dev/null || | |
21703 | echo X"$ac_file" | | |
21704 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21705 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21706 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21707 | /^X\(\/\).*/{ s//\1/; q; } | |
21708 | s/.*/./; q'` | |
21709 | { if $as_mkdir_p; then | |
21710 | mkdir -p "$ac_dir" | |
21711 | else | |
21712 | as_dir="$ac_dir" | |
21713 | as_dirs= | |
21714 | while test ! -d "$as_dir"; do | |
21715 | as_dirs="$as_dir $as_dirs" | |
21716 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
21717 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21718 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21719 | X"$as_dir" : 'X\(//\)$' \| \ | |
21720 | X"$as_dir" : 'X\(/\)' \| \ | |
21721 | . : '\(.\)' 2>/dev/null || | |
21722 | echo X"$as_dir" | | |
21723 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21724 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21725 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21726 | /^X\(\/\).*/{ s//\1/; q; } | |
21727 | s/.*/./; q'` | |
21728 | done | |
21729 | test ! -n "$as_dirs" || mkdir $as_dirs | |
21730 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
21731 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
21732 | { (exit 1); exit 1; }; }; } | |
21733 | ||
21734 | ac_builddir=. | |
21735 | ||
21736 | if test "$ac_dir" != .; then | |
21737 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
21738 | # A "../" for each directory in $ac_dir_suffix. | |
21739 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
21740 | else | |
21741 | ac_dir_suffix= ac_top_builddir= | |
21742 | fi | |
21743 | ||
21744 | case $srcdir in | |
21745 | .) # No --srcdir option. We are building in place. | |
21746 | ac_srcdir=. | |
21747 | if test -z "$ac_top_builddir"; then | |
21748 | ac_top_srcdir=. | |
21749 | else | |
21750 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
21751 | fi ;; | |
21752 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
21753 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21754 | ac_top_srcdir=$srcdir ;; | |
21755 | *) # Relative path. | |
21756 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
21757 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
21758 | esac | |
21759 | ||
21760 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
21761 | # the directories may not exist. | |
21762 | case `pwd` in | |
21763 | .) ac_abs_builddir="$ac_dir";; | |
21764 | *) | |
21765 | case "$ac_dir" in | |
21766 | .) ac_abs_builddir=`pwd`;; | |
21767 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
21768 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
21769 | esac;; | |
21770 | esac | |
21771 | case $ac_abs_builddir in | |
21772 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21773 | *) | |
21774 | case ${ac_top_builddir}. in | |
21775 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
21776 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21777 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
21778 | esac;; | |
21779 | esac | |
21780 | case $ac_abs_builddir in | |
21781 | .) ac_abs_srcdir=$ac_srcdir;; | |
21782 | *) | |
21783 | case $ac_srcdir in | |
21784 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
21785 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
21786 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
21787 | esac;; | |
21788 | esac | |
21789 | case $ac_abs_builddir in | |
21790 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21791 | *) | |
21792 | case $ac_top_srcdir in | |
21793 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
21794 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21795 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
21796 | esac;; | |
21797 | esac | |
21798 | ||
21799 | ||
21800 | case $INSTALL in | |
21801 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21802 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
21803 | esac | |
21804 | ||
21805 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21806 | # use $as_me), people would be surprised to read: | |
21807 | # /* config.h. Generated by config.status. */ | |
21808 | if test x"$ac_file" = x-; then | |
21809 | configure_input= | |
21810 | else | |
21811 | configure_input="$ac_file. " | |
21812 | fi | |
21813 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
21814 | sed 's,.*/,,'` by configure." | |
21815 | ||
21816 | # First look for the input files in the build tree, otherwise in the | |
21817 | # src tree. | |
21818 | ac_file_inputs=`IFS=: | |
21819 | for f in $ac_file_in; do | |
21820 | case $f in | |
21821 | -) echo $tmp/stdin ;; | |
21822 | [\\/$]*) | |
21823 | # Absolute (can't be DOS-style, as IFS=:) | |
21824 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21825 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21826 | { (exit 1); exit 1; }; } | |
21827 | echo "$f";; | |
21828 | *) # Relative | |
21829 | if test -f "$f"; then | |
21830 | # Build tree | |
21831 | echo "$f" | |
21832 | elif test -f "$srcdir/$f"; then | |
21833 | # Source tree | |
21834 | echo "$srcdir/$f" | |
21835 | else | |
21836 | # /dev/null tree | |
21837 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21838 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21839 | { (exit 1); exit 1; }; } | |
21840 | fi;; | |
21841 | esac | |
21842 | done` || { (exit 1); exit 1; } | |
b56cb1ff | 21843 | |
21844 | if test x"$ac_file" != x-; then | |
21845 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
21846 | echo "$as_me: creating $ac_file" >&6;} | |
21847 | rm -f "$ac_file" | |
21848 | fi | |
4ee9c684 | 21849 | _ACEOF |
21850 | cat >>$CONFIG_STATUS <<_ACEOF | |
21851 | sed "$ac_vpsub | |
21852 | $extrasub | |
21853 | _ACEOF | |
21854 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21855 | :t | |
21856 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21857 | s,@configure_input@,$configure_input,;t t | |
21858 | s,@srcdir@,$ac_srcdir,;t t | |
21859 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
21860 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
21861 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
21862 | s,@builddir@,$ac_builddir,;t t | |
21863 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
21864 | s,@top_builddir@,$ac_top_builddir,;t t | |
21865 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
21866 | s,@INSTALL@,$ac_INSTALL,;t t | |
21867 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
21868 | rm -f $tmp/stdin | |
21869 | if test x"$ac_file" != x-; then | |
21870 | mv $tmp/out $ac_file | |
21871 | else | |
21872 | cat $tmp/out | |
21873 | rm -f $tmp/out | |
21874 | fi | |
21875 | ||
21876 | done | |
21877 | _ACEOF | |
21878 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21879 | ||
21880 | # | |
21881 | # CONFIG_HEADER section. | |
21882 | # | |
21883 | ||
21884 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21885 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21886 | # | |
21887 | # ac_d sets the value in "#define NAME VALUE" lines. | |
21888 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
21889 | ac_dB='[ ].*$,\1#\2' | |
21890 | ac_dC=' ' | |
21891 | ac_dD=',;t' | |
21892 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21893 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21894 | ac_uB='$,\1#\2define\3' | |
21895 | ac_uC=' ' | |
21896 | ac_uD=',;t' | |
21897 | ||
21898 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
21899 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21900 | case $ac_file in | |
21901 | - | *:- | *:-:* ) # input from stdin | |
21902 | cat >$tmp/stdin | |
21903 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21904 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21905 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21906 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21907 | * ) ac_file_in=$ac_file.in ;; | |
21908 | esac | |
21909 | ||
21910 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
21911 | echo "$as_me: creating $ac_file" >&6;} | |
21912 | ||
21913 | # First look for the input files in the build tree, otherwise in the | |
21914 | # src tree. | |
21915 | ac_file_inputs=`IFS=: | |
21916 | for f in $ac_file_in; do | |
21917 | case $f in | |
21918 | -) echo $tmp/stdin ;; | |
21919 | [\\/$]*) | |
21920 | # Absolute (can't be DOS-style, as IFS=:) | |
21921 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21922 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21923 | { (exit 1); exit 1; }; } | |
21924 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
21925 | echo "$f";; | |
21926 | *) # Relative | |
21927 | if test -f "$f"; then | |
21928 | # Build tree | |
21929 | echo "$f" | |
21930 | elif test -f "$srcdir/$f"; then | |
21931 | # Source tree | |
21932 | echo "$srcdir/$f" | |
21933 | else | |
21934 | # /dev/null tree | |
21935 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21936 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21937 | { (exit 1); exit 1; }; } | |
21938 | fi;; | |
21939 | esac | |
21940 | done` || { (exit 1); exit 1; } | |
21941 | # Remove the trailing spaces. | |
21942 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
21943 | ||
21944 | _ACEOF | |
21945 | ||
21946 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
21947 | # `conftest.undefs', that substitutes the proper values into | |
21948 | # config.h.in to produce config.h. The first handles `#define' | |
21949 | # templates, and the second `#undef' templates. | |
21950 | # And first: Protect against being on the right side of a sed subst in | |
21951 | # config.status. Protect against being in an unquoted here document | |
21952 | # in config.status. | |
21953 | rm -f conftest.defines conftest.undefs | |
21954 | # Using a here document instead of a string reduces the quoting nightmare. | |
21955 | # Putting comments in sed scripts is not portable. | |
21956 | # | |
21957 | # `end' is used to avoid that the second main sed command (meant for | |
21958 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
21959 | # See the Autoconf documentation for `clear'. | |
21960 | cat >confdef2sed.sed <<\_ACEOF | |
21961 | s/[\\&,]/\\&/g | |
21962 | s,[\\$`],\\&,g | |
21963 | t clear | |
21964 | : clear | |
21965 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
21966 | t end | |
21967 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
21968 | : end | |
21969 | _ACEOF | |
21970 | # If some macros were called several times there might be several times | |
21971 | # the same #defines, which is useless. Nevertheless, we may not want to | |
21972 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
21973 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
21974 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
21975 | rm -f confdef2sed.sed | |
21976 | ||
21977 | # This sed command replaces #undef with comments. This is necessary, for | |
21978 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21979 | # on some systems where configure will not decide to define it. | |
21980 | cat >>conftest.undefs <<\_ACEOF | |
21981 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
21982 | _ACEOF | |
21983 | ||
21984 | # Break up conftest.defines because some shells have a limit on the size | |
21985 | # of here documents, and old seds have small limits too (100 cmds). | |
21986 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
21987 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
21988 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
21989 | echo ' :' >>$CONFIG_STATUS | |
21990 | rm -f conftest.tail | |
21991 | while grep . conftest.defines >/dev/null | |
21992 | do | |
21993 | # Write a limited-size here document to $tmp/defines.sed. | |
21994 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
21995 | # Speed up: don't consider the non `#define' lines. | |
21996 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
21997 | # Work around the forget-to-reset-the-flag bug. | |
21998 | echo 't clr' >>$CONFIG_STATUS | |
21999 | echo ': clr' >>$CONFIG_STATUS | |
22000 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22001 | echo 'CEOF | |
22002 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22003 | rm -f $tmp/in | |
22004 | mv $tmp/out $tmp/in | |
22005 | ' >>$CONFIG_STATUS | |
22006 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22007 | rm -f conftest.defines | |
22008 | mv conftest.tail conftest.defines | |
22009 | done | |
22010 | rm -f conftest.defines | |
22011 | echo ' fi # grep' >>$CONFIG_STATUS | |
22012 | echo >>$CONFIG_STATUS | |
22013 | ||
22014 | # Break up conftest.undefs because some shells have a limit on the size | |
22015 | # of here documents, and old seds have small limits too (100 cmds). | |
22016 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
22017 | rm -f conftest.tail | |
22018 | while grep . conftest.undefs >/dev/null | |
22019 | do | |
22020 | # Write a limited-size here document to $tmp/undefs.sed. | |
22021 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22022 | # Speed up: don't consider the non `#undef' | |
22023 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
22024 | # Work around the forget-to-reset-the-flag bug. | |
22025 | echo 't clr' >>$CONFIG_STATUS | |
22026 | echo ': clr' >>$CONFIG_STATUS | |
22027 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
22028 | echo 'CEOF | |
22029 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
22030 | rm -f $tmp/in | |
22031 | mv $tmp/out $tmp/in | |
22032 | ' >>$CONFIG_STATUS | |
22033 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22034 | rm -f conftest.undefs | |
22035 | mv conftest.tail conftest.undefs | |
22036 | done | |
22037 | rm -f conftest.undefs | |
22038 | ||
22039 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22040 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22041 | # use $as_me), people would be surprised to read: | |
22042 | # /* config.h. Generated by config.status. */ | |
22043 | if test x"$ac_file" = x-; then | |
22044 | echo "/* Generated by configure. */" >$tmp/config.h | |
22045 | else | |
22046 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
22047 | fi | |
22048 | cat $tmp/in >>$tmp/config.h | |
22049 | rm -f $tmp/in | |
22050 | if test x"$ac_file" != x-; then | |
22051 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
22052 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
22053 | echo "$as_me: $ac_file is unchanged" >&6;} | |
22054 | else | |
22055 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22056 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22057 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22058 | X"$ac_file" : 'X\(//\)$' \| \ | |
22059 | X"$ac_file" : 'X\(/\)' \| \ | |
22060 | . : '\(.\)' 2>/dev/null || | |
22061 | echo X"$ac_file" | | |
22062 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22063 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22064 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22065 | /^X\(\/\).*/{ s//\1/; q; } | |
22066 | s/.*/./; q'` | |
22067 | { if $as_mkdir_p; then | |
22068 | mkdir -p "$ac_dir" | |
22069 | else | |
22070 | as_dir="$ac_dir" | |
22071 | as_dirs= | |
22072 | while test ! -d "$as_dir"; do | |
22073 | as_dirs="$as_dir $as_dirs" | |
22074 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22075 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22076 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22077 | X"$as_dir" : 'X\(//\)$' \| \ | |
22078 | X"$as_dir" : 'X\(/\)' \| \ | |
22079 | . : '\(.\)' 2>/dev/null || | |
22080 | echo X"$as_dir" | | |
22081 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22082 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22083 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22084 | /^X\(\/\).*/{ s//\1/; q; } | |
22085 | s/.*/./; q'` | |
22086 | done | |
22087 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22088 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22089 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22090 | { (exit 1); exit 1; }; }; } | |
22091 | ||
22092 | rm -f $ac_file | |
22093 | mv $tmp/config.h $ac_file | |
22094 | fi | |
22095 | else | |
22096 | cat $tmp/config.h | |
22097 | rm -f $tmp/config.h | |
22098 | fi | |
22099 | # Compute $ac_file's index in $config_headers. | |
22100 | _am_stamp_count=1 | |
22101 | for _am_header in $config_headers :; do | |
22102 | case $_am_header in | |
22103 | $ac_file | $ac_file:* ) | |
22104 | break ;; | |
22105 | * ) | |
22106 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22107 | esac | |
22108 | done | |
22109 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
22110 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22111 | X$ac_file : 'X\(//\)[^/]' \| \ | |
22112 | X$ac_file : 'X\(//\)$' \| \ | |
22113 | X$ac_file : 'X\(/\)' \| \ | |
22114 | . : '\(.\)' 2>/dev/null || | |
22115 | echo X$ac_file | | |
22116 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22117 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22118 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22119 | /^X\(\/\).*/{ s//\1/; q; } | |
22120 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
22121 | done | |
22122 | _ACEOF | |
22123 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22124 | ||
22125 | # | |
22126 | # CONFIG_COMMANDS section. | |
22127 | # | |
22128 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22129 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22130 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22131 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
22132 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22133 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
22134 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22135 | X"$ac_dest" : 'X\(/\)' \| \ | |
22136 | . : '\(.\)' 2>/dev/null || | |
22137 | echo X"$ac_dest" | | |
22138 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22139 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22140 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22141 | /^X\(\/\).*/{ s//\1/; q; } | |
22142 | s/.*/./; q'` | |
22143 | { if $as_mkdir_p; then | |
22144 | mkdir -p "$ac_dir" | |
22145 | else | |
22146 | as_dir="$ac_dir" | |
22147 | as_dirs= | |
22148 | while test ! -d "$as_dir"; do | |
22149 | as_dirs="$as_dir $as_dirs" | |
22150 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22151 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22152 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22153 | X"$as_dir" : 'X\(//\)$' \| \ | |
22154 | X"$as_dir" : 'X\(/\)' \| \ | |
22155 | . : '\(.\)' 2>/dev/null || | |
22156 | echo X"$as_dir" | | |
22157 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22158 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22159 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22160 | /^X\(\/\).*/{ s//\1/; q; } | |
22161 | s/.*/./; q'` | |
22162 | done | |
22163 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22164 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22165 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22166 | { (exit 1); exit 1; }; }; } | |
22167 | ||
22168 | ac_builddir=. | |
22169 | ||
22170 | if test "$ac_dir" != .; then | |
22171 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22172 | # A "../" for each directory in $ac_dir_suffix. | |
22173 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22174 | else | |
22175 | ac_dir_suffix= ac_top_builddir= | |
22176 | fi | |
22177 | ||
22178 | case $srcdir in | |
22179 | .) # No --srcdir option. We are building in place. | |
22180 | ac_srcdir=. | |
22181 | if test -z "$ac_top_builddir"; then | |
22182 | ac_top_srcdir=. | |
22183 | else | |
22184 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22185 | fi ;; | |
22186 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22187 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22188 | ac_top_srcdir=$srcdir ;; | |
22189 | *) # Relative path. | |
22190 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22191 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22192 | esac | |
22193 | ||
22194 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22195 | # the directories may not exist. | |
22196 | case `pwd` in | |
22197 | .) ac_abs_builddir="$ac_dir";; | |
22198 | *) | |
22199 | case "$ac_dir" in | |
22200 | .) ac_abs_builddir=`pwd`;; | |
22201 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22202 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22203 | esac;; | |
22204 | esac | |
22205 | case $ac_abs_builddir in | |
22206 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22207 | *) | |
22208 | case ${ac_top_builddir}. in | |
22209 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22210 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22211 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22212 | esac;; | |
22213 | esac | |
22214 | case $ac_abs_builddir in | |
22215 | .) ac_abs_srcdir=$ac_srcdir;; | |
22216 | *) | |
22217 | case $ac_srcdir in | |
22218 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22219 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22220 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22221 | esac;; | |
22222 | esac | |
22223 | case $ac_abs_builddir in | |
22224 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22225 | *) | |
22226 | case $ac_top_srcdir in | |
22227 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22228 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22229 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22230 | esac;; | |
22231 | esac | |
22232 | ||
22233 | ||
22234 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
22235 | echo "$as_me: executing $ac_dest commands" >&6;} | |
22236 | case $ac_dest in | |
90973b19 | 22237 | default-1 ) |
22238 | # Only add multilib support code if we just rebuilt the top-level | |
22239 | # Makefile. | |
22240 | case " $CONFIG_FILES " in | |
22241 | *" Makefile "*) | |
22242 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
22243 | ;; | |
22244 | esac ;; | |
4ee9c684 | 22245 | esac |
22246 | done | |
22247 | _ACEOF | |
22248 | ||
22249 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22250 | ||
22251 | { (exit 0); exit 0; } | |
22252 | _ACEOF | |
22253 | chmod +x $CONFIG_STATUS | |
22254 | ac_clean_files=$ac_clean_files_save | |
22255 | ||
22256 | ||
22257 | # configure is writing to config.log, and then calls config.status. | |
22258 | # config.status does its own redirection, appending to config.log. | |
22259 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
22260 | # by configure, so config.status won't be able to write to it; its | |
22261 | # output is simply discarded. So we exec the FD to /dev/null, | |
22262 | # effectively closing config.log, so it can be properly (re)opened and | |
22263 | # appended to by config.status. When coming back to configure, we | |
22264 | # need to make the FD available again. | |
22265 | if test "$no_create" != yes; then | |
22266 | ac_cs_success=: | |
22267 | ac_config_status_args= | |
22268 | test "$silent" = yes && | |
22269 | ac_config_status_args="$ac_config_status_args --quiet" | |
22270 | exec 5>/dev/null | |
22271 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
22272 | exec 5>>config.log | |
22273 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22274 | # would make configure fail if this is the last instruction. | |
22275 | $ac_cs_success || { (exit 1); exit 1; } | |
22276 | fi | |
22277 |