]>
Commit | Line | Data |
---|---|---|
b2dad0e3 BK |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --with-target-subdir=SUBDIR | |
16 | configuring in a subdirectory" | |
17 | ac_help="$ac_help | |
18 | --with-cross-host=HOST configuring with a cross compiler" | |
19 | ac_help="$ac_help | |
20 | --enable-multilib build hella library versions (default)" | |
21 | ac_help="$ac_help | |
22 | --enable-maintainer-mode enable make rules and dependencies not useful | |
23 | (and sometimes confusing) to the casual installer" | |
24 | ac_help="$ac_help | |
25 | --enable-shared[=PKGS] build shared libraries [default=yes]" | |
26 | ac_help="$ac_help | |
27 | --enable-static[=PKGS] build static libraries [default=yes]" | |
28 | ac_help="$ac_help | |
29 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
30 | ac_help="$ac_help | |
31 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
32 | ac_help="$ac_help | |
3840fa2a | 33 | --disable-libtool-lock avoid locking (might break parallel builds)" |
b2dad0e3 BK |
34 | ac_help="$ac_help |
35 | --enable-debug extra debugging, turn off optimization [default=no]" | |
36 | ac_help="$ac_help | |
37 | --enable-cstdio enable GNU libio for target io package. (default) | |
38 | --enable-cstdio=LIB use LIB target-speific io package." | |
39 | ac_help="$ac_help | |
5b80666b | 40 | --enable-long-long turns on 'long long' [default=yes]" |
99246c90 | 41 | ac_help="$ac_help |
d0d88ce3 BK |
42 | --enable-cshadow-headers construct "shadowed" C header files for |
43 | g++ [default=no]" | |
b2dad0e3 BK |
44 | ac_help="$ac_help |
45 | --enable-threads enable thread usage for target GCC. | |
46 | --enable-threads=LIB use LIB thread package for target GCC." | |
dcfa0bc8 PE |
47 | ac_help="$ac_help |
48 | --enable-cxx-flags=FLAGS pass compiler FLAGS when building library; | |
32a4595e | 49 | [default=none]" |
b2dad0e3 BK |
50 | |
51 | # Initialize some variables set by options. | |
52 | # The variables have the same names as the options, with | |
53 | # dashes changed to underlines. | |
54 | build=NONE | |
55 | cache_file=./config.cache | |
56 | exec_prefix=NONE | |
57 | host=NONE | |
58 | no_create= | |
59 | nonopt=NONE | |
60 | no_recursion= | |
61 | prefix=NONE | |
62 | program_prefix=NONE | |
63 | program_suffix=NONE | |
64 | program_transform_name=s,x,x, | |
65 | silent= | |
66 | site= | |
60df8b81 | 67 | sitefile= |
b2dad0e3 BK |
68 | srcdir= |
69 | target=NONE | |
70 | verbose= | |
71 | x_includes=NONE | |
72 | x_libraries=NONE | |
73 | bindir='${exec_prefix}/bin' | |
74 | sbindir='${exec_prefix}/sbin' | |
75 | libexecdir='${exec_prefix}/libexec' | |
76 | datadir='${prefix}/share' | |
77 | sysconfdir='${prefix}/etc' | |
78 | sharedstatedir='${prefix}/com' | |
79 | localstatedir='${prefix}/var' | |
80 | libdir='${exec_prefix}/lib' | |
81 | includedir='${prefix}/include' | |
82 | oldincludedir='/usr/include' | |
83 | infodir='${prefix}/info' | |
84 | mandir='${prefix}/man' | |
85 | ||
86 | # Initialize some other variables. | |
87 | subdirs= | |
88 | MFLAGS= MAKEFLAGS= | |
89 | SHELL=${CONFIG_SHELL-/bin/sh} | |
90 | # Maximum number of lines to put in a shell here document. | |
91 | ac_max_here_lines=12 | |
92 | ||
93 | ac_prev= | |
94 | for ac_option | |
95 | do | |
96 | ||
97 | # If the previous option needs an argument, assign it. | |
98 | if test -n "$ac_prev"; then | |
99 | eval "$ac_prev=\$ac_option" | |
100 | ac_prev= | |
101 | continue | |
102 | fi | |
103 | ||
104 | case "$ac_option" in | |
105 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
106 | *) ac_optarg= ;; | |
107 | esac | |
108 | ||
109 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
110 | ||
111 | case "$ac_option" in | |
112 | ||
113 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
114 | ac_prev=bindir ;; | |
115 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
116 | bindir="$ac_optarg" ;; | |
117 | ||
118 | -build | --build | --buil | --bui | --bu) | |
119 | ac_prev=build ;; | |
120 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
121 | build="$ac_optarg" ;; | |
122 | ||
123 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
124 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
125 | ac_prev=cache_file ;; | |
126 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
127 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
128 | cache_file="$ac_optarg" ;; | |
129 | ||
130 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
131 | ac_prev=datadir ;; | |
132 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
133 | | --da=*) | |
134 | datadir="$ac_optarg" ;; | |
135 | ||
136 | -disable-* | --disable-*) | |
137 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
138 | # Reject names that are not valid shell variable names. | |
139 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
140 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
141 | fi | |
142 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
143 | eval "enable_${ac_feature}=no" ;; | |
144 | ||
145 | -enable-* | --enable-*) | |
146 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
147 | # Reject names that are not valid shell variable names. | |
148 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
149 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
150 | fi | |
151 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
152 | case "$ac_option" in | |
153 | *=*) ;; | |
154 | *) ac_optarg=yes ;; | |
155 | esac | |
156 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
157 | ||
158 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
159 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
160 | | --exec | --exe | --ex) | |
161 | ac_prev=exec_prefix ;; | |
162 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
163 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
164 | | --exec=* | --exe=* | --ex=*) | |
165 | exec_prefix="$ac_optarg" ;; | |
166 | ||
167 | -gas | --gas | --ga | --g) | |
168 | # Obsolete; use --with-gas. | |
169 | with_gas=yes ;; | |
170 | ||
171 | -help | --help | --hel | --he) | |
172 | # Omit some internal or obsolete options to make the list less imposing. | |
173 | # This message is too long to be a string in the A/UX 3.1 sh. | |
174 | cat << EOF | |
175 | Usage: configure [options] [host] | |
176 | Options: [defaults in brackets after descriptions] | |
177 | Configuration: | |
178 | --cache-file=FILE cache test results in FILE | |
179 | --help print this message | |
180 | --no-create do not create output files | |
181 | --quiet, --silent do not print \`checking...' messages | |
60df8b81 | 182 | --site-file=FILE use FILE as the site file |
b2dad0e3 BK |
183 | --version print the version of autoconf that created configure |
184 | Directory and file names: | |
185 | --prefix=PREFIX install architecture-independent files in PREFIX | |
186 | [$ac_default_prefix] | |
187 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
188 | [same as prefix] | |
189 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
190 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
191 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
192 | --datadir=DIR read-only architecture-independent data in DIR | |
193 | [PREFIX/share] | |
194 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
195 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
196 | [PREFIX/com] | |
197 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
198 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
199 | --includedir=DIR C header files in DIR [PREFIX/include] | |
200 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
201 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
202 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
203 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
204 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
205 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
206 | --program-transform-name=PROGRAM | |
207 | run sed PROGRAM on installed program names | |
208 | EOF | |
209 | cat << EOF | |
210 | Host type: | |
211 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
212 | --host=HOST configure for HOST [guessed] | |
213 | --target=TARGET configure for TARGET [TARGET=HOST] | |
214 | Features and packages: | |
215 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
216 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
217 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
218 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
219 | --x-includes=DIR X include files are in DIR | |
220 | --x-libraries=DIR X library files are in DIR | |
221 | EOF | |
222 | if test -n "$ac_help"; then | |
223 | echo "--enable and --with options recognized:$ac_help" | |
224 | fi | |
225 | exit 0 ;; | |
226 | ||
227 | -host | --host | --hos | --ho) | |
228 | ac_prev=host ;; | |
229 | -host=* | --host=* | --hos=* | --ho=*) | |
230 | host="$ac_optarg" ;; | |
231 | ||
232 | -includedir | --includedir | --includedi | --included | --include \ | |
233 | | --includ | --inclu | --incl | --inc) | |
234 | ac_prev=includedir ;; | |
235 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
236 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
237 | includedir="$ac_optarg" ;; | |
238 | ||
239 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
240 | ac_prev=infodir ;; | |
241 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
242 | infodir="$ac_optarg" ;; | |
243 | ||
244 | -libdir | --libdir | --libdi | --libd) | |
245 | ac_prev=libdir ;; | |
246 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
247 | libdir="$ac_optarg" ;; | |
248 | ||
249 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
250 | | --libexe | --libex | --libe) | |
251 | ac_prev=libexecdir ;; | |
252 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
253 | | --libexe=* | --libex=* | --libe=*) | |
254 | libexecdir="$ac_optarg" ;; | |
255 | ||
256 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
257 | | --localstate | --localstat | --localsta | --localst \ | |
258 | | --locals | --local | --loca | --loc | --lo) | |
259 | ac_prev=localstatedir ;; | |
260 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
261 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
262 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
263 | localstatedir="$ac_optarg" ;; | |
264 | ||
265 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
266 | ac_prev=mandir ;; | |
267 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
268 | mandir="$ac_optarg" ;; | |
269 | ||
270 | -nfp | --nfp | --nf) | |
271 | # Obsolete; use --without-fp. | |
272 | with_fp=no ;; | |
273 | ||
274 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
275 | | --no-cr | --no-c) | |
276 | no_create=yes ;; | |
277 | ||
278 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
279 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
280 | no_recursion=yes ;; | |
281 | ||
282 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
283 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
284 | | --oldin | --oldi | --old | --ol | --o) | |
285 | ac_prev=oldincludedir ;; | |
286 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
287 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
288 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
289 | oldincludedir="$ac_optarg" ;; | |
290 | ||
291 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
292 | ac_prev=prefix ;; | |
293 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
294 | prefix="$ac_optarg" ;; | |
295 | ||
296 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
297 | | --program-pre | --program-pr | --program-p) | |
298 | ac_prev=program_prefix ;; | |
299 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
300 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
301 | program_prefix="$ac_optarg" ;; | |
302 | ||
303 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
304 | | --program-suf | --program-su | --program-s) | |
305 | ac_prev=program_suffix ;; | |
306 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
307 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
308 | program_suffix="$ac_optarg" ;; | |
309 | ||
310 | -program-transform-name | --program-transform-name \ | |
311 | | --program-transform-nam | --program-transform-na \ | |
312 | | --program-transform-n | --program-transform- \ | |
313 | | --program-transform | --program-transfor \ | |
314 | | --program-transfo | --program-transf \ | |
315 | | --program-trans | --program-tran \ | |
316 | | --progr-tra | --program-tr | --program-t) | |
317 | ac_prev=program_transform_name ;; | |
318 | -program-transform-name=* | --program-transform-name=* \ | |
319 | | --program-transform-nam=* | --program-transform-na=* \ | |
320 | | --program-transform-n=* | --program-transform-=* \ | |
321 | | --program-transform=* | --program-transfor=* \ | |
322 | | --program-transfo=* | --program-transf=* \ | |
323 | | --program-trans=* | --program-tran=* \ | |
324 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
325 | program_transform_name="$ac_optarg" ;; | |
326 | ||
327 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
328 | | -silent | --silent | --silen | --sile | --sil) | |
329 | silent=yes ;; | |
330 | ||
331 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
332 | ac_prev=sbindir ;; | |
333 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
334 | | --sbi=* | --sb=*) | |
335 | sbindir="$ac_optarg" ;; | |
336 | ||
337 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
338 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
339 | | --sharedst | --shareds | --shared | --share | --shar \ | |
340 | | --sha | --sh) | |
341 | ac_prev=sharedstatedir ;; | |
342 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
343 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
344 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
345 | | --sha=* | --sh=*) | |
346 | sharedstatedir="$ac_optarg" ;; | |
347 | ||
348 | -site | --site | --sit) | |
349 | ac_prev=site ;; | |
350 | -site=* | --site=* | --sit=*) | |
351 | site="$ac_optarg" ;; | |
352 | ||
60df8b81 BK |
353 | -site-file | --site-file | --site-fil | --site-fi | --site-f) |
354 | ac_prev=sitefile ;; | |
355 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) | |
356 | sitefile="$ac_optarg" ;; | |
357 | ||
b2dad0e3 BK |
358 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
359 | ac_prev=srcdir ;; | |
360 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
361 | srcdir="$ac_optarg" ;; | |
362 | ||
363 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
364 | | --syscon | --sysco | --sysc | --sys | --sy) | |
365 | ac_prev=sysconfdir ;; | |
366 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
367 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
368 | sysconfdir="$ac_optarg" ;; | |
369 | ||
370 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
371 | ac_prev=target ;; | |
372 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
373 | target="$ac_optarg" ;; | |
374 | ||
375 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
376 | verbose=yes ;; | |
377 | ||
378 | -version | --version | --versio | --versi | --vers) | |
379 | echo "configure generated by autoconf version 2.13" | |
380 | exit 0 ;; | |
381 | ||
382 | -with-* | --with-*) | |
383 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
384 | # Reject names that are not valid shell variable names. | |
385 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
386 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
387 | fi | |
388 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
389 | case "$ac_option" in | |
390 | *=*) ;; | |
391 | *) ac_optarg=yes ;; | |
392 | esac | |
393 | eval "with_${ac_package}='$ac_optarg'" ;; | |
394 | ||
395 | -without-* | --without-*) | |
396 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
397 | # Reject names that are not valid shell variable names. | |
398 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
399 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
400 | fi | |
401 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
402 | eval "with_${ac_package}=no" ;; | |
403 | ||
404 | --x) | |
405 | # Obsolete; use --with-x. | |
406 | with_x=yes ;; | |
407 | ||
408 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
409 | | --x-incl | --x-inc | --x-in | --x-i) | |
410 | ac_prev=x_includes ;; | |
411 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
412 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
413 | x_includes="$ac_optarg" ;; | |
414 | ||
415 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
416 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
417 | ac_prev=x_libraries ;; | |
418 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
419 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
420 | x_libraries="$ac_optarg" ;; | |
421 | ||
422 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
423 | ;; | |
424 | ||
425 | *) | |
426 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
427 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
428 | fi | |
429 | if test "x$nonopt" != xNONE; then | |
430 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
431 | fi | |
432 | nonopt="$ac_option" | |
433 | ;; | |
434 | ||
435 | esac | |
436 | done | |
437 | ||
438 | if test -n "$ac_prev"; then | |
439 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
440 | fi | |
441 | ||
442 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
443 | ||
444 | # File descriptor usage: | |
445 | # 0 standard input | |
446 | # 1 file creation | |
447 | # 2 errors and warnings | |
448 | # 3 some systems may open it to /dev/tty | |
449 | # 4 used on the Kubota Titan | |
450 | # 6 checking for... messages and results | |
451 | # 5 compiler messages saved in config.log | |
452 | if test "$silent" = yes; then | |
453 | exec 6>/dev/null | |
454 | else | |
455 | exec 6>&1 | |
456 | fi | |
457 | exec 5>./config.log | |
458 | ||
459 | echo "\ | |
460 | This file contains any messages produced by compilers while | |
461 | running configure, to aid debugging if configure makes a mistake. | |
462 | " 1>&5 | |
463 | ||
464 | # Strip out --no-create and --no-recursion so they do not pile up. | |
465 | # Also quote any args containing shell metacharacters. | |
466 | ac_configure_args= | |
467 | for ac_arg | |
468 | do | |
469 | case "$ac_arg" in | |
470 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
471 | | --no-cr | --no-c) ;; | |
472 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
473 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
474 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
475 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
476 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
477 | esac | |
478 | done | |
479 | ||
480 | # NLS nuisances. | |
481 | # Only set these to C if already set. These must not be set unconditionally | |
482 | # because not all systems understand e.g. LANG=C (notably SCO). | |
483 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
484 | # Non-C LC_CTYPE values break the ctype check. | |
485 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
486 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
487 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
488 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
489 | ||
490 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
491 | rm -rf conftest* confdefs.h | |
492 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
493 | echo > confdefs.h | |
494 | ||
495 | # A filename unique to this package, relative to the directory that | |
496 | # configure is in, which we can look for to find out if srcdir is correct. | |
497 | ac_unique_file=src/complex.cc | |
498 | ||
499 | # Find the source files, if location was not specified. | |
500 | if test -z "$srcdir"; then | |
501 | ac_srcdir_defaulted=yes | |
502 | # Try the directory containing this script, then its parent. | |
503 | ac_prog=$0 | |
504 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
505 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
506 | srcdir=$ac_confdir | |
507 | if test ! -r $srcdir/$ac_unique_file; then | |
508 | srcdir=.. | |
509 | fi | |
510 | else | |
511 | ac_srcdir_defaulted=no | |
512 | fi | |
513 | if test ! -r $srcdir/$ac_unique_file; then | |
514 | if test "$ac_srcdir_defaulted" = yes; then | |
515 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
516 | else | |
517 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
518 | fi | |
519 | fi | |
520 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
521 | ||
522 | # Prefer explicitly selected file to automatically selected ones. | |
60df8b81 BK |
523 | if test -z "$sitefile"; then |
524 | if test -z "$CONFIG_SITE"; then | |
525 | if test "x$prefix" != xNONE; then | |
526 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
527 | else | |
528 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
529 | fi | |
b2dad0e3 | 530 | fi |
60df8b81 BK |
531 | else |
532 | CONFIG_SITE="$sitefile" | |
b2dad0e3 BK |
533 | fi |
534 | for ac_site_file in $CONFIG_SITE; do | |
535 | if test -r "$ac_site_file"; then | |
536 | echo "loading site script $ac_site_file" | |
537 | . "$ac_site_file" | |
538 | fi | |
539 | done | |
540 | ||
541 | if test -r "$cache_file"; then | |
542 | echo "loading cache $cache_file" | |
543 | . $cache_file | |
544 | else | |
545 | echo "creating cache $cache_file" | |
546 | > $cache_file | |
547 | fi | |
548 | ||
549 | ac_ext=c | |
550 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
551 | ac_cpp='$CPP $CPPFLAGS' | |
552 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
553 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
554 | cross_compiling=$ac_cv_prog_cc_cross | |
555 | ||
556 | ac_exeext= | |
557 | ac_objext=o | |
558 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
559 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
560 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
561 | ac_n= ac_c=' | |
562 | ' ac_t=' ' | |
563 | else | |
564 | ac_n=-n ac_c= ac_t= | |
565 | fi | |
566 | else | |
567 | ac_n= ac_c='\c' ac_t= | |
568 | fi | |
569 | ||
570 | ||
571 | ac_aux_dir= | |
572 | for ac_dir in .. $srcdir/..; do | |
573 | if test -f $ac_dir/install-sh; then | |
574 | ac_aux_dir=$ac_dir | |
575 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
576 | break | |
577 | elif test -f $ac_dir/install.sh; then | |
578 | ac_aux_dir=$ac_dir | |
579 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
580 | break | |
581 | fi | |
582 | done | |
583 | if test -z "$ac_aux_dir"; then | |
584 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; } | |
585 | fi | |
586 | ac_config_guess=$ac_aux_dir/config.guess | |
587 | ac_config_sub=$ac_aux_dir/config.sub | |
588 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
589 | ||
590 | ||
591 | # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc. | |
592 | ||
593 | # Do some error checking and defaulting for the host and target type. | |
594 | # The inputs are: | |
595 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
596 | # | |
597 | # The rules are: | |
598 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
599 | # same time. | |
600 | # 2. Host defaults to nonopt. | |
601 | # 3. If nonopt is not specified, then host defaults to the current host, | |
602 | # as determined by config.guess. | |
603 | # 4. Target and build default to nonopt. | |
604 | # 5. If nonopt is not specified, then target and build default to host. | |
605 | ||
606 | # The aliases save the names the user supplied, while $host etc. | |
607 | # will get canonicalized. | |
608 | case $host---$target---$nonopt in | |
609 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
610 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
611 | esac | |
612 | ||
613 | ||
614 | # Make sure we can run config.sub. | |
615 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
616 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
617 | fi | |
618 | ||
619 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
60df8b81 | 620 | echo "configure:621: checking host system type" >&5 |
b2dad0e3 BK |
621 | |
622 | host_alias=$host | |
623 | case "$host_alias" in | |
624 | NONE) | |
625 | case $nonopt in | |
626 | NONE) | |
627 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
628 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
629 | fi ;; | |
630 | *) host_alias=$nonopt ;; | |
631 | esac ;; | |
632 | esac | |
633 | ||
634 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
635 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
636 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
637 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
638 | echo "$ac_t""$host" 1>&6 | |
639 | ||
640 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
60df8b81 | 641 | echo "configure:642: checking target system type" >&5 |
b2dad0e3 BK |
642 | |
643 | target_alias=$target | |
644 | case "$target_alias" in | |
645 | NONE) | |
646 | case $nonopt in | |
647 | NONE) target_alias=$host_alias ;; | |
648 | *) target_alias=$nonopt ;; | |
649 | esac ;; | |
650 | esac | |
651 | ||
652 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
653 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
654 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
655 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
656 | echo "$ac_t""$target" 1>&6 | |
657 | ||
658 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
60df8b81 | 659 | echo "configure:660: checking build system type" >&5 |
b2dad0e3 BK |
660 | |
661 | build_alias=$build | |
662 | case "$build_alias" in | |
663 | NONE) | |
664 | case $nonopt in | |
665 | NONE) build_alias=$host_alias ;; | |
666 | *) build_alias=$nonopt ;; | |
667 | esac ;; | |
668 | esac | |
669 | ||
670 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
671 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
672 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
673 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
674 | echo "$ac_t""$build" 1>&6 | |
675 | ||
676 | test "$host_alias" != "$target_alias" && | |
677 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
678 | NONENONEs,x,x, && | |
679 | program_prefix=${target_alias}- | |
680 | ||
681 | ||
682 | # We use these options to decide which functions to include. | |
683 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
684 | if test "${with_target_subdir+set}" = set; then | |
685 | withval="$with_target_subdir" | |
686 | : | |
687 | fi | |
688 | ||
689 | # Check whether --with-cross-host or --without-cross-host was given. | |
690 | if test "${with_cross_host+set}" = set; then | |
691 | withval="$with_cross_host" | |
692 | : | |
693 | fi | |
694 | ||
695 | ||
696 | # Find a good install program. We prefer a C program (faster), | |
697 | # so one script is as good as another. But avoid the broken or | |
698 | # incompatible versions: | |
699 | # SysV /etc/install, /usr/sbin/install | |
700 | # SunOS /usr/etc/install | |
701 | # IRIX /sbin/install | |
702 | # AIX /bin/install | |
703 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
704 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
705 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
706 | # ./install, which can be erroneously created by make from ./install.sh. | |
707 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
60df8b81 | 708 | echo "configure:709: checking for a BSD compatible install" >&5 |
b2dad0e3 BK |
709 | if test -z "$INSTALL"; then |
710 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
712 | else | |
713 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
714 | for ac_dir in $PATH; do | |
715 | # Account for people who put trailing slashes in PATH elements. | |
716 | case "$ac_dir/" in | |
717 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
718 | *) | |
719 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
720 | # Don't use installbsd from OSF since it installs stuff as root | |
721 | # by default. | |
722 | for ac_prog in ginstall scoinst install; do | |
723 | if test -f $ac_dir/$ac_prog; then | |
724 | if test $ac_prog = install && | |
725 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
726 | # AIX install. It has an incompatible calling convention. | |
727 | : | |
728 | else | |
729 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
730 | break 2 | |
731 | fi | |
732 | fi | |
733 | done | |
734 | ;; | |
735 | esac | |
736 | done | |
737 | IFS="$ac_save_IFS" | |
738 | ||
739 | fi | |
740 | if test "${ac_cv_path_install+set}" = set; then | |
741 | INSTALL="$ac_cv_path_install" | |
742 | else | |
743 | # As a last resort, use the slow shell script. We don't cache a | |
744 | # path for INSTALL within a source directory, because that will | |
745 | # break other packages using the cache if that directory is | |
746 | # removed, or if the path is relative. | |
747 | INSTALL="$ac_install_sh" | |
748 | fi | |
749 | fi | |
750 | echo "$ac_t""$INSTALL" 1>&6 | |
751 | ||
752 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
753 | # It thinks the first close brace ends the variable substitution. | |
754 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
755 | ||
756 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
757 | ||
758 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
759 | ||
760 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
60df8b81 | 761 | echo "configure:762: checking whether build environment is sane" >&5 |
b2dad0e3 BK |
762 | # Just in case |
763 | sleep 1 | |
764 | echo timestamp > conftestfile | |
765 | # Do `set' in a subshell so we don't clobber the current shell's | |
766 | # arguments. Must try -L first in case configure is actually a | |
767 | # symlink; some systems play weird games with the mod time of symlinks | |
768 | # (eg FreeBSD returns the mod time of the symlink's containing | |
769 | # directory). | |
770 | if ( | |
771 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
772 | if test "$*" = "X"; then | |
773 | # -L didn't work. | |
774 | set X `ls -t $srcdir/configure conftestfile` | |
775 | fi | |
776 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
777 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
778 | ||
779 | # If neither matched, then we have a broken ls. This can happen | |
780 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
781 | # broken ls alias from the environment. This has actually | |
782 | # happened. Such a system could not be considered "sane". | |
783 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
784 | alias in your environment" 1>&2; exit 1; } | |
785 | fi | |
786 | ||
787 | test "$2" = conftestfile | |
788 | ) | |
789 | then | |
790 | # Ok. | |
791 | : | |
792 | else | |
793 | { echo "configure: error: newly created file is older than distributed files! | |
794 | Check your system clock" 1>&2; exit 1; } | |
795 | fi | |
796 | rm -f conftest* | |
797 | echo "$ac_t""yes" 1>&6 | |
798 | if test "$program_transform_name" = s,x,x,; then | |
799 | program_transform_name= | |
800 | else | |
801 | # Double any \ or $. echo might interpret backslashes. | |
802 | cat <<\EOF_SED > conftestsed | |
803 | s,\\,\\\\,g; s,\$,$$,g | |
804 | EOF_SED | |
805 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
806 | rm -f conftestsed | |
807 | fi | |
808 | test "$program_prefix" != NONE && | |
809 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
810 | # Use a double $ so make ignores it. | |
811 | test "$program_suffix" != NONE && | |
812 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
813 | ||
814 | # sed with no file args requires a program. | |
815 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
816 | ||
817 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
60df8b81 | 818 | echo "configure:819: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
b2dad0e3 BK |
819 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
820 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
822 | else | |
823 | cat > conftestmake <<\EOF | |
824 | all: | |
825 | @echo 'ac_maketemp="${MAKE}"' | |
826 | EOF | |
827 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
828 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
829 | if test -n "$ac_maketemp"; then | |
830 | eval ac_cv_prog_make_${ac_make}_set=yes | |
831 | else | |
832 | eval ac_cv_prog_make_${ac_make}_set=no | |
833 | fi | |
834 | rm -f conftestmake | |
835 | fi | |
836 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
837 | echo "$ac_t""yes" 1>&6 | |
838 | SET_MAKE= | |
839 | else | |
840 | echo "$ac_t""no" 1>&6 | |
841 | SET_MAKE="MAKE=${MAKE-make}" | |
842 | fi | |
843 | ||
844 | if test $host != $build; then | |
845 | ac_tool_prefix=${host_alias}- | |
846 | else | |
847 | ac_tool_prefix= | |
848 | fi | |
849 | ||
850 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
60df8b81 | 851 | echo "configure:852: checking for Cygwin environment" >&5 |
b2dad0e3 BK |
852 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
854 | else | |
855 | cat > conftest.$ac_ext <<EOF | |
60df8b81 | 856 | #line 857 "configure" |
b2dad0e3 BK |
857 | #include "confdefs.h" |
858 | ||
859 | int main() { | |
860 | ||
861 | #ifndef __CYGWIN__ | |
862 | #define __CYGWIN__ __CYGWIN32__ | |
863 | #endif | |
864 | return __CYGWIN__; | |
865 | ; return 0; } | |
866 | EOF | |
60df8b81 | 867 | if { (eval echo configure:868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
868 | rm -rf conftest* |
869 | ac_cv_cygwin=yes | |
870 | else | |
871 | echo "configure: failed program was:" >&5 | |
872 | cat conftest.$ac_ext >&5 | |
873 | rm -rf conftest* | |
874 | ac_cv_cygwin=no | |
875 | fi | |
876 | rm -f conftest* | |
877 | rm -f conftest* | |
878 | fi | |
879 | ||
880 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
881 | CYGWIN= | |
882 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
883 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
60df8b81 | 884 | echo "configure:885: checking for mingw32 environment" >&5 |
b2dad0e3 BK |
885 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
887 | else | |
888 | cat > conftest.$ac_ext <<EOF | |
60df8b81 | 889 | #line 890 "configure" |
b2dad0e3 BK |
890 | #include "confdefs.h" |
891 | ||
892 | int main() { | |
893 | return __MINGW32__; | |
894 | ; return 0; } | |
895 | EOF | |
60df8b81 | 896 | if { (eval echo configure:897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
897 | rm -rf conftest* |
898 | ac_cv_mingw32=yes | |
899 | else | |
900 | echo "configure: failed program was:" >&5 | |
901 | cat conftest.$ac_ext >&5 | |
902 | rm -rf conftest* | |
903 | ac_cv_mingw32=no | |
904 | fi | |
905 | rm -f conftest* | |
906 | rm -f conftest* | |
907 | fi | |
908 | ||
909 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
910 | MINGW32= | |
911 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
912 | ||
913 | # Check whether --enable-multilib or --disable-multilib was given. | |
914 | if test "${enable_multilib+set}" = set; then | |
915 | enableval="$enable_multilib" | |
916 | case "${enableval}" in | |
917 | yes) multilib=yes ;; | |
918 | no) multilib=no ;; | |
919 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | |
920 | esac | |
921 | else | |
922 | multilib=yes | |
923 | fi | |
924 | ||
925 | if test "${srcdir}" = "."; then | |
926 | if test "${with_target_subdir}" != "."; then | |
927 | glibcpp_basedir="${srcdir}/${with_multisrctop}../." | |
928 | else | |
929 | glibcpp_basedir="${srcdir}/${with_multisrctop}." | |
930 | fi | |
931 | else | |
932 | glibcpp_basedir="${srcdir}/." | |
933 | fi | |
934 | ||
935 | ||
936 | ||
b2dad0e3 BK |
937 | PACKAGE=libstdc++ |
938 | ||
939 | VERSION=2.90.8 | |
940 | ||
941 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
942 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
943 | fi | |
944 | cat >> confdefs.h <<EOF | |
945 | #define PACKAGE "$PACKAGE" | |
946 | EOF | |
947 | ||
948 | cat >> confdefs.h <<EOF | |
949 | #define VERSION "$VERSION" | |
950 | EOF | |
951 | ||
952 | ||
953 | ||
954 | missing_dir=`cd $ac_aux_dir && pwd` | |
955 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
5780a46b | 956 | echo "configure:957: checking for working aclocal" >&5 |
b2dad0e3 BK |
957 | # Run test in a subshell; some versions of sh will print an error if |
958 | # an executable is not found, even if stderr is redirected. | |
959 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
960 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
961 | ACLOCAL=aclocal | |
962 | echo "$ac_t""found" 1>&6 | |
963 | else | |
964 | ACLOCAL="$missing_dir/missing aclocal" | |
965 | echo "$ac_t""missing" 1>&6 | |
966 | fi | |
967 | ||
968 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
5780a46b | 969 | echo "configure:970: checking for working autoconf" >&5 |
b2dad0e3 BK |
970 | # Run test in a subshell; some versions of sh will print an error if |
971 | # an executable is not found, even if stderr is redirected. | |
972 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
973 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
974 | AUTOCONF=autoconf | |
975 | echo "$ac_t""found" 1>&6 | |
976 | else | |
977 | AUTOCONF="$missing_dir/missing autoconf" | |
978 | echo "$ac_t""missing" 1>&6 | |
979 | fi | |
980 | ||
981 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
5780a46b | 982 | echo "configure:983: checking for working automake" >&5 |
b2dad0e3 BK |
983 | # Run test in a subshell; some versions of sh will print an error if |
984 | # an executable is not found, even if stderr is redirected. | |
985 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
986 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
987 | AUTOMAKE=automake | |
988 | echo "$ac_t""found" 1>&6 | |
989 | else | |
990 | AUTOMAKE="$missing_dir/missing automake" | |
991 | echo "$ac_t""missing" 1>&6 | |
992 | fi | |
993 | ||
994 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
5780a46b | 995 | echo "configure:996: checking for working autoheader" >&5 |
b2dad0e3 BK |
996 | # Run test in a subshell; some versions of sh will print an error if |
997 | # an executable is not found, even if stderr is redirected. | |
998 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
999 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1000 | AUTOHEADER=autoheader | |
1001 | echo "$ac_t""found" 1>&6 | |
1002 | else | |
1003 | AUTOHEADER="$missing_dir/missing autoheader" | |
1004 | echo "$ac_t""missing" 1>&6 | |
1005 | fi | |
1006 | ||
1007 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
5780a46b | 1008 | echo "configure:1009: checking for working makeinfo" >&5 |
b2dad0e3 BK |
1009 | # Run test in a subshell; some versions of sh will print an error if |
1010 | # an executable is not found, even if stderr is redirected. | |
1011 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1012 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1013 | MAKEINFO=makeinfo | |
1014 | echo "$ac_t""found" 1>&6 | |
1015 | else | |
1016 | MAKEINFO="$missing_dir/missing makeinfo" | |
1017 | echo "$ac_t""missing" 1>&6 | |
1018 | fi | |
1019 | ||
1020 | ||
1021 | ||
28861379 BK |
1022 | # Never versions of autoconf add an underscore to these functions. |
1023 | # Prevent future problems ... | |
1024 | ||
1025 | ||
1026 | ||
1027 | ||
5780a46b BK |
1028 | |
1029 | # AC_PROG_CC | |
1030 | ||
b2dad0e3 BK |
1031 | # FIXME: We temporarily define our own version of AC_PROG_CC. This is |
1032 | # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We | |
1033 | # are probably using a cross compiler, which will not be able to fully | |
1034 | # link an executable. This should really be fixed in autoconf | |
1035 | # itself. | |
1036 | ||
1037 | ||
1038 | ||
1039 | ||
1040 | # Extract the first word of "gcc", so it can be a program name with args. | |
1041 | set dummy gcc; ac_word=$2 | |
1042 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
28861379 | 1043 | echo "configure:1044: checking for $ac_word" >&5 |
b2dad0e3 BK |
1044 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1046 | else | |
1047 | if test -n "$CC"; then | |
1048 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1049 | else | |
1050 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1051 | ac_dummy="$PATH" | |
1052 | for ac_dir in $ac_dummy; do | |
1053 | test -z "$ac_dir" && ac_dir=. | |
1054 | if test -f $ac_dir/$ac_word; then | |
1055 | ac_cv_prog_CC="gcc" | |
1056 | break | |
1057 | fi | |
1058 | done | |
1059 | IFS="$ac_save_ifs" | |
1060 | fi | |
1061 | fi | |
1062 | CC="$ac_cv_prog_CC" | |
1063 | if test -n "$CC"; then | |
1064 | echo "$ac_t""$CC" 1>&6 | |
1065 | else | |
1066 | echo "$ac_t""no" 1>&6 | |
1067 | fi | |
1068 | ||
1069 | if test -z "$CC"; then | |
1070 | # Extract the first word of "cc", so it can be a program name with args. | |
1071 | set dummy cc; ac_word=$2 | |
1072 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
28861379 | 1073 | echo "configure:1074: checking for $ac_word" >&5 |
b2dad0e3 BK |
1074 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1075 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1076 | else | |
1077 | if test -n "$CC"; then | |
1078 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1079 | else | |
1080 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1081 | ac_prog_rejected=no | |
1082 | ac_dummy="$PATH" | |
1083 | for ac_dir in $ac_dummy; do | |
1084 | test -z "$ac_dir" && ac_dir=. | |
1085 | if test -f $ac_dir/$ac_word; then | |
1086 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1087 | ac_prog_rejected=yes | |
1088 | continue | |
1089 | fi | |
1090 | ac_cv_prog_CC="cc" | |
1091 | break | |
1092 | fi | |
1093 | done | |
1094 | IFS="$ac_save_ifs" | |
1095 | if test $ac_prog_rejected = yes; then | |
1096 | # We found a bogon in the path, so make sure we never use it. | |
1097 | set dummy $ac_cv_prog_CC | |
1098 | shift | |
1099 | if test $# -gt 0; then | |
1100 | # We chose a different compiler from the bogus one. | |
1101 | # However, it has the same basename, so the bogon will be chosen | |
1102 | # first if we set CC to just the basename; use the full file name. | |
1103 | shift | |
1104 | set dummy "$ac_dir/$ac_word" "$@" | |
1105 | shift | |
1106 | ac_cv_prog_CC="$@" | |
1107 | fi | |
1108 | fi | |
1109 | fi | |
1110 | fi | |
1111 | CC="$ac_cv_prog_CC" | |
1112 | if test -n "$CC"; then | |
1113 | echo "$ac_t""$CC" 1>&6 | |
1114 | else | |
1115 | echo "$ac_t""no" 1>&6 | |
1116 | fi | |
1117 | ||
1118 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1119 | fi | |
1120 | ||
1121 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
28861379 | 1122 | echo "configure:1123: checking whether we are using GNU C" >&5 |
b2dad0e3 BK |
1123 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1125 | else | |
1126 | cat > conftest.c <<EOF | |
1127 | #ifdef __GNUC__ | |
1128 | yes; | |
1129 | #endif | |
1130 | EOF | |
28861379 | 1131 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
b2dad0e3 BK |
1132 | ac_cv_prog_gcc=yes |
1133 | else | |
1134 | ac_cv_prog_gcc=no | |
1135 | fi | |
1136 | fi | |
1137 | ||
1138 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1139 | ||
1140 | if test $ac_cv_prog_gcc = yes; then | |
1141 | GCC=yes | |
1142 | ac_test_CFLAGS="${CFLAGS+set}" | |
1143 | ac_save_CFLAGS="$CFLAGS" | |
1144 | CFLAGS= | |
1145 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
28861379 | 1146 | echo "configure:1147: checking whether ${CC-cc} accepts -g" >&5 |
b2dad0e3 BK |
1147 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1149 | else | |
1150 | echo 'void f(){}' > conftest.c | |
1151 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1152 | ac_cv_prog_cc_g=yes | |
1153 | else | |
1154 | ac_cv_prog_cc_g=no | |
1155 | fi | |
1156 | rm -f conftest* | |
1157 | ||
1158 | fi | |
1159 | ||
1160 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1161 | if test "$ac_test_CFLAGS" = set; then | |
1162 | CFLAGS="$ac_save_CFLAGS" | |
1163 | elif test $ac_cv_prog_cc_g = yes; then | |
1164 | CFLAGS="-g -O2" | |
1165 | else | |
1166 | CFLAGS="-O2" | |
1167 | fi | |
1168 | else | |
1169 | GCC= | |
1170 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1171 | fi | |
1172 | ||
1173 | ||
5780a46b BK |
1174 | # Can't just call these here as g++ requires libstc++ to be built.... |
1175 | # AC_PROG_CXX | |
1176 | ||
b2dad0e3 BK |
1177 | # Likewise for AC_PROG_CXX. |
1178 | ||
1179 | ||
1180 | ||
1181 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ | |
1182 | do | |
1183 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1184 | set dummy $ac_prog; ac_word=$2 | |
1185 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
28861379 | 1186 | echo "configure:1187: checking for $ac_word" >&5 |
b2dad0e3 BK |
1187 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1188 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1189 | else | |
1190 | if test -n "$CXX"; then | |
1191 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1192 | else | |
1193 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1194 | ac_dummy="$PATH" | |
1195 | for ac_dir in $ac_dummy; do | |
1196 | test -z "$ac_dir" && ac_dir=. | |
1197 | if test -f $ac_dir/$ac_word; then | |
1198 | ac_cv_prog_CXX="$ac_prog" | |
1199 | break | |
1200 | fi | |
1201 | done | |
1202 | IFS="$ac_save_ifs" | |
1203 | fi | |
1204 | fi | |
1205 | CXX="$ac_cv_prog_CXX" | |
1206 | if test -n "$CXX"; then | |
1207 | echo "$ac_t""$CXX" 1>&6 | |
1208 | else | |
1209 | echo "$ac_t""no" 1>&6 | |
1210 | fi | |
1211 | ||
1212 | test -n "$CXX" && break | |
1213 | done | |
1214 | test -n "$CXX" || CXX="gcc" | |
1215 | ||
1216 | test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } | |
1217 | ||
1218 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
28861379 | 1219 | echo "configure:1220: checking whether we are using GNU C++" >&5 |
b2dad0e3 BK |
1220 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1222 | else | |
1223 | cat > conftest.C <<EOF | |
1224 | #ifdef __GNUC__ | |
1225 | yes; | |
1226 | #endif | |
1227 | EOF | |
28861379 | 1228 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
b2dad0e3 BK |
1229 | ac_cv_prog_gxx=yes |
1230 | else | |
1231 | ac_cv_prog_gxx=no | |
1232 | fi | |
1233 | fi | |
1234 | ||
1235 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
1236 | ||
1237 | if test $ac_cv_prog_gxx = yes; then | |
1238 | GXX=yes | |
1239 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
1240 | ac_save_CXXFLAGS="$CXXFLAGS" | |
1241 | CXXFLAGS= | |
1242 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
28861379 | 1243 | echo "configure:1244: checking whether ${CXX-g++} accepts -g" >&5 |
b2dad0e3 BK |
1244 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1246 | else | |
1247 | echo 'void f(){}' > conftest.cc | |
1248 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
1249 | ac_cv_prog_cxx_g=yes | |
1250 | else | |
1251 | ac_cv_prog_cxx_g=no | |
1252 | fi | |
1253 | rm -f conftest* | |
1254 | ||
1255 | fi | |
1256 | ||
1257 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
1258 | if test "$ac_test_CXXFLAGS" = set; then | |
1259 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1260 | elif test $ac_cv_prog_cxx_g = yes; then | |
1261 | CXXFLAGS="-g -O2" | |
1262 | else | |
1263 | CXXFLAGS="-O2" | |
1264 | fi | |
1265 | else | |
1266 | GXX= | |
1267 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | |
1268 | fi | |
1269 | ||
1270 | ||
5780a46b | 1271 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
b2dad0e3 BK |
1272 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
1273 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
28861379 | 1274 | echo "configure:1275: checking for $ac_word" >&5 |
b2dad0e3 BK |
1275 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1276 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1277 | else | |
1278 | if test -n "$AS"; then | |
1279 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1280 | else | |
1281 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1282 | ac_dummy="$PATH" | |
1283 | for ac_dir in $ac_dummy; do | |
1284 | test -z "$ac_dir" && ac_dir=. | |
1285 | if test -f $ac_dir/$ac_word; then | |
1286 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
1287 | break | |
1288 | fi | |
1289 | done | |
1290 | IFS="$ac_save_ifs" | |
1291 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" | |
1292 | fi | |
1293 | fi | |
1294 | AS="$ac_cv_prog_AS" | |
1295 | if test -n "$AS"; then | |
1296 | echo "$ac_t""$AS" 1>&6 | |
1297 | else | |
1298 | echo "$ac_t""no" 1>&6 | |
1299 | fi | |
1300 | ||
1301 | ||
1302 | ||
5780a46b | 1303 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
b2dad0e3 BK |
1304 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
1305 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
28861379 | 1306 | echo "configure:1307: checking for $ac_word" >&5 |
b2dad0e3 BK |
1307 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1309 | else | |
1310 | if test -n "$AR"; then | |
1311 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1312 | else | |
1313 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1314 | ac_dummy="$PATH" | |
1315 | for ac_dir in $ac_dummy; do | |
1316 | test -z "$ac_dir" && ac_dir=. | |
1317 | if test -f $ac_dir/$ac_word; then | |
1318 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
1319 | break | |
1320 | fi | |
1321 | done | |
1322 | IFS="$ac_save_ifs" | |
1323 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1324 | fi | |
1325 | fi | |
1326 | AR="$ac_cv_prog_AR" | |
1327 | if test -n "$AR"; then | |
1328 | echo "$ac_t""$AR" 1>&6 | |
1329 | else | |
1330 | echo "$ac_t""no" 1>&6 | |
1331 | fi | |
1332 | ||
1333 | ||
1334 | ||
5780a46b | 1335 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
b2dad0e3 BK |
1336 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
1337 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
28861379 | 1338 | echo "configure:1339: checking for $ac_word" >&5 |
b2dad0e3 BK |
1339 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1341 | else | |
1342 | if test -n "$RANLIB"; then | |
1343 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1344 | else | |
1345 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1346 | ac_dummy="$PATH" | |
1347 | for ac_dir in $ac_dummy; do | |
1348 | test -z "$ac_dir" && ac_dir=. | |
1349 | if test -f $ac_dir/$ac_word; then | |
1350 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1351 | break | |
1352 | fi | |
1353 | done | |
1354 | IFS="$ac_save_ifs" | |
1355 | fi | |
1356 | fi | |
1357 | RANLIB="$ac_cv_prog_RANLIB" | |
1358 | if test -n "$RANLIB"; then | |
1359 | echo "$ac_t""$RANLIB" 1>&6 | |
1360 | else | |
1361 | echo "$ac_t""no" 1>&6 | |
1362 | fi | |
1363 | ||
1364 | ||
1365 | if test -z "$ac_cv_prog_RANLIB"; then | |
1366 | if test -n "$ac_tool_prefix"; then | |
1367 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1368 | set dummy ranlib; ac_word=$2 | |
1369 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
28861379 | 1370 | echo "configure:1371: checking for $ac_word" >&5 |
b2dad0e3 BK |
1371 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1373 | else | |
1374 | if test -n "$RANLIB"; then | |
1375 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1376 | else | |
1377 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1378 | ac_dummy="$PATH" | |
1379 | for ac_dir in $ac_dummy; do | |
1380 | test -z "$ac_dir" && ac_dir=. | |
1381 | if test -f $ac_dir/$ac_word; then | |
1382 | ac_cv_prog_RANLIB="ranlib" | |
1383 | break | |
1384 | fi | |
1385 | done | |
1386 | IFS="$ac_save_ifs" | |
1387 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1388 | fi | |
1389 | fi | |
1390 | RANLIB="$ac_cv_prog_RANLIB" | |
1391 | if test -n "$RANLIB"; then | |
1392 | echo "$ac_t""$RANLIB" 1>&6 | |
1393 | else | |
1394 | echo "$ac_t""no" 1>&6 | |
1395 | fi | |
1396 | ||
1397 | else | |
1398 | RANLIB=":" | |
1399 | fi | |
1400 | fi | |
1401 | ||
1402 | ||
5780a46b | 1403 | # Find a good install program. We prefer a C program (faster), |
b2dad0e3 BK |
1404 | # so one script is as good as another. But avoid the broken or |
1405 | # incompatible versions: | |
1406 | # SysV /etc/install, /usr/sbin/install | |
1407 | # SunOS /usr/etc/install | |
1408 | # IRIX /sbin/install | |
1409 | # AIX /bin/install | |
1410 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1411 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1412 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1413 | # ./install, which can be erroneously created by make from ./install.sh. | |
1414 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
28861379 | 1415 | echo "configure:1416: checking for a BSD compatible install" >&5 |
b2dad0e3 BK |
1416 | if test -z "$INSTALL"; then |
1417 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1419 | else | |
1420 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
1421 | for ac_dir in $PATH; do | |
1422 | # Account for people who put trailing slashes in PATH elements. | |
1423 | case "$ac_dir/" in | |
1424 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1425 | *) | |
1426 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1427 | # Don't use installbsd from OSF since it installs stuff as root | |
1428 | # by default. | |
1429 | for ac_prog in ginstall scoinst install; do | |
1430 | if test -f $ac_dir/$ac_prog; then | |
1431 | if test $ac_prog = install && | |
1432 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1433 | # AIX install. It has an incompatible calling convention. | |
1434 | : | |
1435 | else | |
1436 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1437 | break 2 | |
1438 | fi | |
1439 | fi | |
1440 | done | |
1441 | ;; | |
1442 | esac | |
1443 | done | |
1444 | IFS="$ac_save_IFS" | |
1445 | ||
1446 | fi | |
1447 | if test "${ac_cv_path_install+set}" = set; then | |
1448 | INSTALL="$ac_cv_path_install" | |
1449 | else | |
1450 | # As a last resort, use the slow shell script. We don't cache a | |
1451 | # path for INSTALL within a source directory, because that will | |
1452 | # break other packages using the cache if that directory is | |
1453 | # removed, or if the path is relative. | |
1454 | INSTALL="$ac_install_sh" | |
1455 | fi | |
1456 | fi | |
1457 | echo "$ac_t""$INSTALL" 1>&6 | |
1458 | ||
1459 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1460 | # It thinks the first close brace ends the variable substitution. | |
1461 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1462 | ||
1463 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
1464 | ||
1465 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1466 | ||
1467 | ||
5780a46b | 1468 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
28861379 | 1469 | echo "configure:1470: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
b2dad0e3 BK |
1470 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1471 | if test "${enable_maintainer_mode+set}" = set; then | |
1472 | enableval="$enable_maintainer_mode" | |
1473 | USE_MAINTAINER_MODE=$enableval | |
1474 | else | |
1475 | USE_MAINTAINER_MODE=no | |
1476 | fi | |
1477 | ||
1478 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
1479 | ||
1480 | ||
1481 | if test $USE_MAINTAINER_MODE = yes; then | |
1482 | MAINTAINER_MODE_TRUE= | |
1483 | MAINTAINER_MODE_FALSE='#' | |
1484 | else | |
1485 | MAINTAINER_MODE_TRUE='#' | |
1486 | MAINTAINER_MODE_FALSE= | |
1487 | fi | |
1488 | MAINT=$MAINTAINER_MODE_TRUE | |
1489 | ||
1490 | ||
1491 | ||
5780a46b BK |
1492 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However, |
1493 | # at least currently, we never actually build a program, so we never | |
1494 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally | |
1495 | # fails, because we are probably configuring with a cross compiler | |
1496 | # which cant create executables. So we include AC_EXEEXT to keep | |
1497 | # automake happy, but we dont execute it, since we dont care about | |
1498 | # the result. | |
1499 | if false; then | |
1500 | ||
b2dad0e3 BK |
1501 | |
1502 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
28861379 | 1503 | echo "configure:1504: checking for executable suffix" >&5 |
b2dad0e3 BK |
1504 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1506 | else | |
1507 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1508 | ac_cv_exeext=.exe | |
1509 | else | |
1510 | rm -f conftest* | |
1511 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1512 | ac_cv_exeext= | |
28861379 | 1513 | if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
b2dad0e3 BK |
1514 | for file in conftest.*; do |
1515 | case $file in | |
60df8b81 | 1516 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
b2dad0e3 BK |
1517 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1518 | esac | |
1519 | done | |
1520 | else | |
1521 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1522 | fi | |
1523 | rm -f conftest* | |
1524 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1525 | fi | |
1526 | fi | |
1527 | ||
1528 | EXEEXT="" | |
1529 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1530 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1531 | ac_exeext=$EXEEXT | |
1532 | ||
5780a46b | 1533 | fi |
b2dad0e3 | 1534 | |
5780a46b BK |
1535 | # configure.host sets the following important variables |
1536 | # glibcpp_cflags - host specific C compiler flags | |
1537 | # glibcpp_cxxflags - host specific C++ compiler flags | |
1538 | glibcpp_cflags= | |
1539 | glibcpp_cxxflags= | |
b2dad0e3 | 1540 | |
5780a46b | 1541 | . ${glibcpp_basedir}/configure.host |
b2dad0e3 | 1542 | |
5780a46b BK |
1543 | case ${glibcpp_basedir} in |
1544 | /* | A-Za-z:/\\*) libgcj_flagbasedir=${glibcpp_basedir} ;; | |
1545 | *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;; | |
1546 | esac | |
3840fa2a | 1547 | |
5780a46b BK |
1548 | GLIBCPP_CFLAGS="${glibcpp_cflags}" |
1549 | GLIBCPP_CXXFLAGS="${glibcpp_cxxflags}" | |
29bd52c8 | 1550 | |
29bd52c8 PE |
1551 | |
1552 | ||
5780a46b | 1553 | |
b2dad0e3 BK |
1554 | # Check whether --enable-shared or --disable-shared was given. |
1555 | if test "${enable_shared+set}" = set; then | |
1556 | enableval="$enable_shared" | |
1557 | p=${PACKAGE-default} | |
1558 | case "$enableval" in | |
1559 | yes) enable_shared=yes ;; | |
1560 | no) enable_shared=no ;; | |
1561 | *) | |
1562 | enable_shared=no | |
1563 | # Look at the argument we got. We use all the common list separators. | |
1564 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1565 | for pkg in $enableval; do | |
1566 | if test "X$pkg" = "X$p"; then | |
1567 | enable_shared=yes | |
1568 | fi | |
1569 | done | |
1570 | IFS="$ac_save_ifs" | |
1571 | ;; | |
1572 | esac | |
1573 | else | |
1574 | enable_shared=yes | |
1575 | fi | |
1576 | ||
1577 | # Check whether --enable-static or --disable-static was given. | |
1578 | if test "${enable_static+set}" = set; then | |
1579 | enableval="$enable_static" | |
1580 | p=${PACKAGE-default} | |
1581 | case "$enableval" in | |
1582 | yes) enable_static=yes ;; | |
1583 | no) enable_static=no ;; | |
1584 | *) | |
1585 | enable_static=no | |
1586 | # Look at the argument we got. We use all the common list separators. | |
1587 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1588 | for pkg in $enableval; do | |
1589 | if test "X$pkg" = "X$p"; then | |
1590 | enable_static=yes | |
1591 | fi | |
1592 | done | |
1593 | IFS="$ac_save_ifs" | |
1594 | ;; | |
1595 | esac | |
1596 | else | |
1597 | enable_static=yes | |
1598 | fi | |
1599 | ||
1600 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
1601 | if test "${enable_fast_install+set}" = set; then | |
1602 | enableval="$enable_fast_install" | |
1603 | p=${PACKAGE-default} | |
1604 | case "$enableval" in | |
1605 | yes) enable_fast_install=yes ;; | |
1606 | no) enable_fast_install=no ;; | |
1607 | *) | |
1608 | enable_fast_install=no | |
1609 | # Look at the argument we got. We use all the common list separators. | |
1610 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1611 | for pkg in $enableval; do | |
1612 | if test "X$pkg" = "X$p"; then | |
1613 | enable_fast_install=yes | |
1614 | fi | |
1615 | done | |
1616 | IFS="$ac_save_ifs" | |
1617 | ;; | |
1618 | esac | |
1619 | else | |
1620 | enable_fast_install=yes | |
1621 | fi | |
1622 | ||
1623 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1624 | set dummy ranlib; ac_word=$2 | |
1625 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
28861379 | 1626 | echo "configure:1627: checking for $ac_word" >&5 |
b2dad0e3 BK |
1627 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1629 | else | |
1630 | if test -n "$RANLIB"; then | |
1631 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1632 | else | |
1633 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1634 | ac_dummy="$PATH" | |
1635 | for ac_dir in $ac_dummy; do | |
1636 | test -z "$ac_dir" && ac_dir=. | |
1637 | if test -f $ac_dir/$ac_word; then | |
1638 | ac_cv_prog_RANLIB="ranlib" | |
1639 | break | |
1640 | fi | |
1641 | done | |
1642 | IFS="$ac_save_ifs" | |
1643 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1644 | fi | |
1645 | fi | |
1646 | RANLIB="$ac_cv_prog_RANLIB" | |
1647 | if test -n "$RANLIB"; then | |
1648 | echo "$ac_t""$RANLIB" 1>&6 | |
1649 | else | |
1650 | echo "$ac_t""no" 1>&6 | |
1651 | fi | |
1652 | ||
1653 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
1654 | if test "${with_gnu_ld+set}" = set; then | |
1655 | withval="$with_gnu_ld" | |
1656 | test "$withval" = no || with_gnu_ld=yes | |
1657 | else | |
1658 | with_gnu_ld=no | |
1659 | fi | |
1660 | ||
1661 | ac_prog=ld | |
1662 | if test "$ac_cv_prog_gcc" = yes; then | |
1663 | # Check if gcc -print-prog-name=ld gives a path. | |
1664 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
28861379 | 1665 | echo "configure:1666: checking for ld used by GCC" >&5 |
b2dad0e3 BK |
1666 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1667 | case "$ac_prog" in | |
1668 | # Accept absolute paths. | |
3840fa2a | 1669 | [\\/]* | [A-Za-z]:[\\/]*) |
b2dad0e3 BK |
1670 | re_direlt='/[^/][^/]*/\.\./' |
1671 | # Canonicalize the path of ld | |
1672 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1673 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1674 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1675 | done | |
1676 | test -z "$LD" && LD="$ac_prog" | |
1677 | ;; | |
1678 | "") | |
1679 | # If it fails, then pretend we aren't using GCC. | |
1680 | ac_prog=ld | |
1681 | ;; | |
1682 | *) | |
1683 | # If it is relative, then search for the first ld in PATH. | |
1684 | with_gnu_ld=unknown | |
1685 | ;; | |
1686 | esac | |
1687 | elif test "$with_gnu_ld" = yes; then | |
1688 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
28861379 | 1689 | echo "configure:1690: checking for GNU ld" >&5 |
b2dad0e3 BK |
1690 | else |
1691 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
28861379 | 1692 | echo "configure:1693: checking for non-GNU ld" >&5 |
b2dad0e3 BK |
1693 | fi |
1694 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | |
1695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1696 | else | |
1697 | if test -z "$LD"; then | |
3840fa2a | 1698 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
1699 | for ac_dir in $PATH; do |
1700 | test -z "$ac_dir" && ac_dir=. | |
3840fa2a | 1701 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
b2dad0e3 BK |
1702 | ac_cv_path_LD="$ac_dir/$ac_prog" |
1703 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1704 | # but apparently some GNU ld's only accept -v. | |
1705 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
1706 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
1707 | test "$with_gnu_ld" != no && break | |
1708 | else | |
1709 | test "$with_gnu_ld" != yes && break | |
1710 | fi | |
1711 | fi | |
1712 | done | |
1713 | IFS="$ac_save_ifs" | |
1714 | else | |
1715 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
1716 | fi | |
1717 | fi | |
1718 | ||
1719 | LD="$ac_cv_path_LD" | |
1720 | if test -n "$LD"; then | |
1721 | echo "$ac_t""$LD" 1>&6 | |
1722 | else | |
1723 | echo "$ac_t""no" 1>&6 | |
1724 | fi | |
1725 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1726 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
28861379 | 1727 | echo "configure:1728: checking if the linker ($LD) is GNU ld" >&5 |
b2dad0e3 BK |
1728 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1730 | else | |
1731 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1732 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
1733 | ac_cv_prog_gnu_ld=yes | |
1734 | else | |
1735 | ac_cv_prog_gnu_ld=no | |
1736 | fi | |
1737 | fi | |
1738 | ||
1739 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | |
1740 | ||
1741 | ||
1742 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
28861379 | 1743 | echo "configure:1744: checking for BSD-compatible nm" >&5 |
b2dad0e3 BK |
1744 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1746 | else | |
1747 | if test -n "$NM"; then | |
1748 | # Let the user override the test. | |
1749 | ac_cv_path_NM="$NM" | |
1750 | else | |
3840fa2a | 1751 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
1752 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
1753 | test -z "$ac_dir" && ac_dir=. | |
3840fa2a | 1754 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
b2dad0e3 BK |
1755 | # Check to see if the nm accepts a BSD-compat flag. |
1756 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1757 | # nm: unknown option "B" ignored | |
1758 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
1759 | ac_cv_path_NM="$ac_dir/nm -B" | |
1760 | break | |
1761 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
1762 | ac_cv_path_NM="$ac_dir/nm -p" | |
1763 | break | |
1764 | else | |
1765 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but | |
1766 | continue # so that we can try to find one that supports BSD flags | |
1767 | fi | |
1768 | fi | |
1769 | done | |
1770 | IFS="$ac_save_ifs" | |
1771 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | |
1772 | fi | |
1773 | fi | |
1774 | ||
1775 | NM="$ac_cv_path_NM" | |
1776 | echo "$ac_t""$NM" 1>&6 | |
1777 | ||
1778 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
28861379 | 1779 | echo "configure:1780: checking whether ln -s works" >&5 |
b2dad0e3 BK |
1780 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1782 | else | |
1783 | rm -f conftestdata | |
1784 | if ln -s X conftestdata 2>/dev/null | |
1785 | then | |
1786 | rm -f conftestdata | |
1787 | ac_cv_prog_LN_S="ln -s" | |
1788 | else | |
1789 | ac_cv_prog_LN_S=ln | |
1790 | fi | |
1791 | fi | |
1792 | LN_S="$ac_cv_prog_LN_S" | |
1793 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1794 | echo "$ac_t""yes" 1>&6 | |
1795 | else | |
1796 | echo "$ac_t""no" 1>&6 | |
1797 | fi | |
1798 | ||
1799 | ||
b2dad0e3 BK |
1800 | # Check for any special flags to pass to ltconfig. |
1801 | libtool_flags="--cache-file=$cache_file" | |
1802 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
1803 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
1804 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
1805 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | |
1806 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
3840fa2a BK |
1807 | libtool_flags="$libtool_flags --enable-dlopen" |
1808 | ||
1809 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
1810 | if test "${enable_libtool_lock+set}" = set; then | |
1811 | enableval="$enable_libtool_lock" | |
1812 | : | |
1813 | fi | |
1814 | ||
1815 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
1816 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
b2dad0e3 BK |
1817 | |
1818 | # Some flags need to be propagated to the compiler or linker for good | |
1819 | # libtool support. | |
93c63813 | 1820 | case "$host" in |
b2dad0e3 BK |
1821 | *-*-irix6*) |
1822 | # Find out which ABI we are using. | |
28861379 BK |
1823 | echo '#line 1824 "configure"' > conftest.$ac_ext |
1824 | if { (eval echo configure:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
b2dad0e3 BK |
1825 | case "`/usr/bin/file conftest.o`" in |
1826 | *32-bit*) | |
1827 | LD="${LD-ld} -32" | |
1828 | ;; | |
1829 | *N32*) | |
1830 | LD="${LD-ld} -n32" | |
1831 | ;; | |
1832 | *64-bit*) | |
1833 | LD="${LD-ld} -64" | |
1834 | ;; | |
1835 | esac | |
1836 | fi | |
1837 | rm -rf conftest* | |
1838 | ;; | |
1839 | ||
1840 | *-*-sco3.2v5*) | |
1841 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
1842 | SAVE_CFLAGS="$CFLAGS" | |
1843 | CFLAGS="$CFLAGS -belf" | |
1844 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
28861379 | 1845 | echo "configure:1846: checking whether the C compiler needs -belf" >&5 |
b2dad0e3 BK |
1846 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1848 | else | |
1849 | cat > conftest.$ac_ext <<EOF | |
28861379 | 1850 | #line 1851 "configure" |
b2dad0e3 BK |
1851 | #include "confdefs.h" |
1852 | ||
1853 | int main() { | |
1854 | ||
1855 | ; return 0; } | |
1856 | EOF | |
28861379 | 1857 | if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 BK |
1858 | rm -rf conftest* |
1859 | lt_cv_cc_needs_belf=yes | |
1860 | else | |
1861 | echo "configure: failed program was:" >&5 | |
1862 | cat conftest.$ac_ext >&5 | |
1863 | rm -rf conftest* | |
1864 | lt_cv_cc_needs_belf=no | |
1865 | fi | |
1866 | rm -f conftest* | |
1867 | fi | |
1868 | ||
1869 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
1870 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
1871 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
1872 | CFLAGS="$SAVE_CFLAGS" | |
1873 | fi | |
1874 | ;; | |
1875 | ||
1876 | ||
1877 | esac | |
1878 | ||
1879 | ||
1880 | # Save cache, so that ltconfig can load it | |
1881 | cat > confcache <<\EOF | |
1882 | # This file is a shell script that caches the results of configure | |
1883 | # tests run on this system so they can be shared between configure | |
1884 | # scripts and configure runs. It is not useful on other systems. | |
1885 | # If it contains results you don't want to keep, you may remove or edit it. | |
1886 | # | |
1887 | # By default, configure uses ./config.cache as the cache file, | |
1888 | # creating it if it does not exist already. You can give configure | |
1889 | # the --cache-file=FILE option to use a different cache file; that is | |
1890 | # what configure does when it calls configure scripts in | |
1891 | # subdirectories, so they share the cache. | |
1892 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1893 | # config.status only pays attention to the cache file if you give it the | |
1894 | # --recheck option to rerun configure. | |
1895 | # | |
1896 | EOF | |
1897 | # The following way of writing the cache mishandles newlines in values, | |
1898 | # but we know of no workaround that is simple, portable, and efficient. | |
1899 | # So, don't put newlines in cache variables' values. | |
1900 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
1901 | # and sets the high bit in the cache file unless we assign to the vars. | |
1902 | (set) 2>&1 | | |
1903 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
1904 | *ac_space=\ *) | |
1905 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
1906 | # turns \\\\ into \\, and sed turns \\ into \). | |
1907 | sed -n \ | |
1908 | -e "s/'/'\\\\''/g" \ | |
1909 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
1910 | ;; | |
1911 | *) | |
1912 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
1913 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
1914 | ;; | |
1915 | esac >> confcache | |
1916 | if cmp -s $cache_file confcache; then | |
1917 | : | |
1918 | else | |
1919 | if test -w $cache_file; then | |
1920 | echo "updating cache $cache_file" | |
1921 | cat confcache > $cache_file | |
1922 | else | |
1923 | echo "not updating unwritable cache $cache_file" | |
1924 | fi | |
1925 | fi | |
1926 | rm -f confcache | |
1927 | ||
1928 | ||
1929 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
1930 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
3840fa2a BK |
1931 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
1932 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | |
1933 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | |
b2dad0e3 | 1934 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
93c63813 | 1935 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
b2dad0e3 BK |
1936 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
1937 | ||
1938 | # Reload cache, that may have been modified by ltconfig | |
1939 | if test -r "$cache_file"; then | |
1940 | echo "loading cache $cache_file" | |
1941 | . $cache_file | |
1942 | else | |
1943 | echo "creating cache $cache_file" | |
1944 | > $cache_file | |
1945 | fi | |
1946 | ||
1947 | ||
1948 | # This can be used to rebuild libtool when needed | |
1949 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" | |
1950 | ||
1951 | # Always use our own libtool. | |
1952 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
1953 | ||
1954 | # Redirect the config.log output again, so that the ltconfig log is not | |
1955 | # clobbered by the next message. | |
1956 | exec 5>>./config.log | |
1957 | ||
5780a46b | 1958 | echo $ac_n "checking for GNU make""... $ac_c" 1>&6 |
28861379 | 1959 | echo "configure:1960: checking for GNU make" >&5 |
5780a46b BK |
1960 | if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then |
1961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1962 | else | |
1963 | _cv_gnu_make_command='' ; | |
1964 | for a in "${MAKE:-make}" make gmake gnumake ; do | |
1965 | if ( $a --version 2> /dev/null | grep -q GNU ) ; then | |
1966 | _cv_gnu_make_command=$a ; | |
1967 | break; | |
1968 | fi | |
1969 | done ; | |
1970 | ||
1971 | fi | |
1972 | ||
1973 | echo "$ac_t""$_cv_gnu_make_command" 1>&6 ; | |
1974 | if test "x$_cv_gnu_make_command" != "x" ; then | |
1975 | ifGNUmake='' ; | |
1976 | else | |
1977 | ifGNUmake='#' ; | |
1978 | fi | |
1979 | ||
1980 | ||
1981 | if test "x$_cv_gnu_make_command" = "x"; then | |
1982 | { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; } | |
1983 | fi | |
b2dad0e3 BK |
1984 | |
1985 | ||
1986 | ||
1987 | ||
1988 | # Check for c++ or library specific bits that don't require linking. | |
c470c17d | 1989 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
28861379 | 1990 | echo "configure:1991: checking how to run the C preprocessor" >&5 |
c470c17d BK |
1991 | # On Suns, sometimes $CPP names a directory. |
1992 | if test -n "$CPP" && test -d "$CPP"; then | |
1993 | CPP= | |
1994 | fi | |
1995 | if test -z "$CPP"; then | |
1996 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
b2dad0e3 BK |
1997 | echo $ac_n "(cached) $ac_c" 1>&6 |
1998 | else | |
c470c17d BK |
1999 | # This must be in double quotes, not single quotes, because CPP may get |
2000 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2001 | CPP="${CC-cc} -E" | |
2002 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2003 | # not just through cpp. | |
b2dad0e3 | 2004 | cat > conftest.$ac_ext <<EOF |
28861379 | 2005 | #line 2006 "configure" |
b2dad0e3 | 2006 | #include "confdefs.h" |
c470c17d BK |
2007 | #include <assert.h> |
2008 | Syntax Error | |
b2dad0e3 BK |
2009 | EOF |
2010 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
28861379 | 2011 | { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b2dad0e3 BK |
2012 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2013 | if test -z "$ac_err"; then | |
2014 | : | |
2015 | else | |
2016 | echo "$ac_err" >&5 | |
2017 | echo "configure: failed program was:" >&5 | |
2018 | cat conftest.$ac_ext >&5 | |
2019 | rm -rf conftest* | |
c470c17d BK |
2020 | CPP="${CC-cc} -E -traditional-cpp" |
2021 | cat > conftest.$ac_ext <<EOF | |
28861379 | 2022 | #line 2023 "configure" |
c470c17d BK |
2023 | #include "confdefs.h" |
2024 | #include <assert.h> | |
2025 | Syntax Error | |
2026 | EOF | |
2027 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
28861379 | 2028 | { (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c470c17d BK |
2029 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2030 | if test -z "$ac_err"; then | |
2031 | : | |
2032 | else | |
2033 | echo "$ac_err" >&5 | |
2034 | echo "configure: failed program was:" >&5 | |
2035 | cat conftest.$ac_ext >&5 | |
2036 | rm -rf conftest* | |
2037 | CPP="${CC-cc} -nologo -E" | |
2038 | cat > conftest.$ac_ext <<EOF | |
28861379 | 2039 | #line 2040 "configure" |
c470c17d BK |
2040 | #include "confdefs.h" |
2041 | #include <assert.h> | |
2042 | Syntax Error | |
2043 | EOF | |
2044 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
28861379 | 2045 | { (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c470c17d BK |
2046 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2047 | if test -z "$ac_err"; then | |
2048 | : | |
2049 | else | |
2050 | echo "$ac_err" >&5 | |
2051 | echo "configure: failed program was:" >&5 | |
2052 | cat conftest.$ac_ext >&5 | |
2053 | rm -rf conftest* | |
2054 | CPP=/lib/cpp | |
b2dad0e3 BK |
2055 | fi |
2056 | rm -f conftest* | |
2057 | fi | |
c470c17d | 2058 | rm -f conftest* |
b2dad0e3 | 2059 | fi |
c470c17d BK |
2060 | rm -f conftest* |
2061 | ac_cv_prog_CPP="$CPP" | |
2062 | fi | |
2063 | CPP="$ac_cv_prog_CPP" | |
2064 | else | |
2065 | ac_cv_prog_CPP="$CPP" | |
2066 | fi | |
2067 | echo "$ac_t""$CPP" 1>&6 | |
b2dad0e3 | 2068 | |
a4e99046 | 2069 | |
d3a12960 | 2070 | # Sanity check that g++ is capable of dealing with v-3. |
5b80666b | 2071 | echo $ac_n "checking for g++ that will successfully compile this code""... $ac_c" 1>&6 |
28861379 | 2072 | echo "configure:2073: checking for g++ that will successfully compile this code" >&5 |
b2dad0e3 | 2073 | cat > conftest.$ac_ext <<EOF |
28861379 | 2074 | #line 2075 "configure" |
b2dad0e3 BK |
2075 | #include "confdefs.h" |
2076 | ||
2077 | #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) | |
2078 | ok | |
2079 | #endif | |
2080 | ||
2081 | EOF | |
2082 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2083 | egrep "ok" >/dev/null 2>&1; then | |
2084 | rm -rf conftest* | |
2085 | gpp_satisfactory=yes | |
2086 | else | |
2087 | rm -rf conftest* | |
2088 | { echo "configure: error: "please upgrade to gcc-2.95 or above"" 1>&2; exit 1; } | |
2089 | fi | |
2090 | rm -f conftest* | |
2091 | ||
2092 | echo "$ac_t""$gpp_satisfactory" 1>&6 | |
2093 | ||
b2dad0e3 BK |
2094 | |
2095 | echo $ac_n "checking for cpu primitives directory""... $ac_c" 1>&6 | |
28861379 | 2096 | echo "configure:2097: checking for cpu primitives directory" >&5 |
c470c17d | 2097 | CPU_FLAGS= |
5780a46b | 2098 | case "${target_cpu}" in |
b2dad0e3 BK |
2099 | alpha*) |
2100 | cpu_include_dir="config/cpu/alpha" | |
2101 | ;; | |
2102 | arm*) | |
2103 | cpu_include_dir="config/cpu/arm" | |
2104 | ;; | |
bf93f43b | 2105 | i386) |
b2dad0e3 | 2106 | cpu_include_dir="config/cpu/i386" |
bf93f43b BK |
2107 | ;; |
2108 | i486 | i586 | i686 | i786) | |
2109 | cpu_include_dir="config/cpu/i486" | |
b2dad0e3 BK |
2110 | ;; |
2111 | powerpc | rs6000) | |
2112 | cpu_include_dir="config/cpu/powerpc" | |
c470c17d | 2113 | CPU_FLAGS='-mcpu=powerpc' |
b2dad0e3 BK |
2114 | ;; |
2115 | sparc64 | ultrasparc) | |
2116 | cpu_include_dir="config/cpu/sparc/sparc64" | |
2117 | ;; | |
2118 | sparc*) | |
2119 | cpu_include_dir="config/cpu/sparc/sparc32" | |
2120 | ;; | |
2121 | *) | |
2122 | cpu_include_dir="config/cpu/generic" | |
2123 | ;; | |
2124 | esac | |
2125 | echo "$ac_t""$cpu_include_dir" 1>&6 | |
2126 | ||
cde28f0d | 2127 | |
b2dad0e3 BK |
2128 | |
2129 | ||
2130 | # Enable all the crazy c++ stuff. | |
2131 | # Check whether --enable-debug or --disable-debug was given. | |
2132 | if test "${enable_debug+set}" = set; then | |
2133 | enableval="$enable_debug" | |
5780a46b | 2134 | case "${enableval}" in |
b2dad0e3 BK |
2135 | yes) enable_debug=yes ;; |
2136 | no) enable_debug=no ;; | |
2137 | *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;; | |
2138 | esac | |
2139 | else | |
2140 | enable_debug=no | |
2141 | fi | |
5780a46b BK |
2142 | |
2143 | case "${enable_debug}" in | |
cde28f0d | 2144 | yes) |
c470c17d | 2145 | DEBUG_FLAGS='-O0 -ggdb' |
cde28f0d | 2146 | ;; |
f3b004d8 | 2147 | no) |
c470c17d | 2148 | DEBUG_FLAGS='-g' |
f3b004d8 | 2149 | ;; |
b2dad0e3 BK |
2150 | esac |
2151 | ||
2152 | ||
2153 | ||
2154 | echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6 | |
28861379 | 2155 | echo "configure:2156: checking for cstdio to use" >&5 |
b2dad0e3 BK |
2156 | # Check whether --enable-cstdio or --disable-cstdio was given. |
2157 | if test "${enable_cstdio+set}" = set; then | |
2158 | enableval="$enable_cstdio" | |
2159 | if test x$enable_cstdio = xno; then | |
2160 | enable_cstdio=libio | |
2161 | fi | |
2162 | else | |
2163 | enable_cstdio=libio | |
2164 | fi | |
2165 | ||
2166 | ||
2167 | enable_cstdio_flag=$enable_cstdio | |
2168 | ||
2169 | case x${enable_cstdio_flag} in | |
dd75251f BK |
2170 | xlibio | x | xno | xnone | xyes) |
2171 | # default | |
2172 | CSTDIO_H=config/c_io_libio.h | |
2173 | CSTDIO_CC=config/c_io_libio.cc | |
2174 | echo "$ac_t""libio" 1>&6 | |
2175 | ||
2176 | # see if we are on a system with libio native (ie, linux) | |
2177 | ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'` | |
b2dad0e3 | 2178 | echo $ac_n "checking for libio.h""... $ac_c" 1>&6 |
28861379 | 2179 | echo "configure:2180: checking for libio.h" >&5 |
b2dad0e3 BK |
2180 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2182 | else | |
2183 | cat > conftest.$ac_ext <<EOF | |
28861379 | 2184 | #line 2185 "configure" |
b2dad0e3 BK |
2185 | #include "confdefs.h" |
2186 | #include <libio.h> | |
2187 | EOF | |
2188 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
28861379 | 2189 | { (eval echo configure:2190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b2dad0e3 BK |
2190 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2191 | if test -z "$ac_err"; then | |
2192 | rm -rf conftest* | |
2193 | eval "ac_cv_header_$ac_safe=yes" | |
2194 | else | |
2195 | echo "$ac_err" >&5 | |
2196 | echo "configure: failed program was:" >&5 | |
2197 | cat conftest.$ac_ext >&5 | |
2198 | rm -rf conftest* | |
2199 | eval "ac_cv_header_$ac_safe=no" | |
2200 | fi | |
2201 | rm -f conftest* | |
2202 | fi | |
2203 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2204 | echo "$ac_t""yes" 1>&6 | |
2205 | has_libio=yes | |
2206 | else | |
2207 | echo "$ac_t""no" 1>&6 | |
2208 | has_libio=no | |
2209 | fi | |
2210 | ||
20427c6b | 2211 | |
dd75251f BK |
2212 | # Need to check and see what version of glibc is being used. If |
2213 | # it's not glibc-2.2 or higher, then we'll need to go ahead and | |
2214 | # compile most of libio for linux systems. | |
2215 | if test x$has_libio = x"yes"; then | |
2216 | case "$target" in | |
2217 | *-*-linux*) | |
2218 | echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6 | |
28861379 | 2219 | echo "configure:2220: checking for glibc version >= 2.2" >&5 |
dd75251f | 2220 | cat > conftest.$ac_ext <<EOF |
28861379 | 2221 | #line 2222 "configure" |
f3b004d8 | 2222 | #include "confdefs.h" |
dd75251f | 2223 | |
99b51359 | 2224 | #include <features.h> |
dd75251f BK |
2225 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) |
2226 | ok | |
2227 | #endif | |
2228 | ||
f3b004d8 | 2229 | EOF |
dd75251f BK |
2230 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2231 | egrep "ok" >/dev/null 2>&1; then | |
f3b004d8 | 2232 | rm -rf conftest* |
dd75251f | 2233 | glibc_satisfactory=yes |
f3b004d8 | 2234 | else |
f3b004d8 | 2235 | rm -rf conftest* |
dd75251f | 2236 | glibc_satisfactory=no |
f3b004d8 BK |
2237 | fi |
2238 | rm -f conftest* | |
f3b004d8 | 2239 | |
dd75251f BK |
2240 | echo "$ac_t""$glibc_satisfactory" 1>&6 |
2241 | ;; | |
2242 | esac | |
f3b004d8 | 2243 | |
dd75251f | 2244 | if test x$glibc_satisfactory = x"yes"; then |
dd75251f BK |
2245 | need_libio=no |
2246 | need_xtra_libio=no | |
2247 | need_wlibio=no | |
2248 | else | |
dd75251f BK |
2249 | need_libio=yes |
2250 | need_xtra_libio=yes | |
2251 | # bkoz XXX need to add checks to enable this | |
2252 | need_wlibio=yes | |
2253 | fi | |
20427c6b | 2254 | |
dd75251f BK |
2255 | # Using libio, but <libio.h> doesn't exist on the target system. . . |
2256 | else | |
dd75251f BK |
2257 | need_libio=yes |
2258 | need_xtra_libio=no | |
2259 | # bkoz XXX need to add checks to enable this | |
2260 | need_wlibio=no | |
2261 | fi | |
2262 | ;; | |
c4561450 | 2263 | |
dd75251f BK |
2264 | xwince) |
2265 | CSTDIO_H=config/c_io_wince.h | |
2266 | CSTDIO_CC=config/c_io_wince.cc | |
2267 | echo "$ac_t""wince" 1>&6 | |
2268 | ||
2269 | need_libio=no | |
dd75251f BK |
2270 | ;; |
2271 | *) | |
2272 | echo "$enable_cstdio is an unknown io package" 1>&2 | |
2273 | exit 1 | |
2274 | ;; | |
b2dad0e3 BK |
2275 | esac |
2276 | ||
2277 | ||
2278 | ||
2279 | ||
2280 | if test "$need_libio" = yes; then | |
2281 | GLIBCPP_NEED_LIBIO_TRUE= | |
2282 | GLIBCPP_NEED_LIBIO_FALSE='#' | |
2283 | else | |
2284 | GLIBCPP_NEED_LIBIO_TRUE='#' | |
2285 | GLIBCPP_NEED_LIBIO_FALSE= | |
2286 | fi | |
20427c6b BK |
2287 | |
2288 | ||
dd75251f BK |
2289 | if test "$need_xtra_libio" = yes; then |
2290 | GLIBCPP_NEED_XTRA_LIBIO_TRUE= | |
2291 | GLIBCPP_NEED_XTRA_LIBIO_FALSE='#' | |
2292 | else | |
2293 | GLIBCPP_NEED_XTRA_LIBIO_TRUE='#' | |
2294 | GLIBCPP_NEED_XTRA_LIBIO_FALSE= | |
2295 | fi | |
2296 | ||
2297 | ||
20427c6b BK |
2298 | if test "$need_wlibio" = yes; then |
2299 | GLIBCPP_NEED_WLIBIO_TRUE= | |
2300 | GLIBCPP_NEED_WLIBIO_FALSE='#' | |
2301 | else | |
2302 | GLIBCPP_NEED_WLIBIO_TRUE='#' | |
2303 | GLIBCPP_NEED_WLIBIO_FALSE= | |
2304 | fi | |
b2dad0e3 | 2305 | |
209fe19b | 2306 | |
209fe19b BK |
2307 | # Check whether --enable-long-long or --disable-long-long was given. |
2308 | if test "${enable_long_long+set}" = set; then | |
2309 | enableval="$enable_long_long" | |
2310 | case "$enableval" in | |
2311 | yes) enable_long_long=yes ;; | |
2312 | no) enable_long_long=no ;; | |
2313 | *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;; | |
2314 | esac | |
2315 | else | |
2316 | enable_long_long=yes | |
2317 | fi | |
2318 | ||
2319 | # Check for the existance of functions used if long long is enabled. | |
0137be2d | 2320 | echo $ac_n "checking for strtoll""... $ac_c" 1>&6 |
28861379 | 2321 | echo "configure:2322: checking for strtoll" >&5 |
0137be2d PE |
2322 | if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then |
2323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2324 | else | |
2325 | cat > conftest.$ac_ext <<EOF | |
28861379 | 2326 | #line 2327 "configure" |
0137be2d PE |
2327 | #include "confdefs.h" |
2328 | /* System header to define __stub macros and hopefully few prototypes, | |
2329 | which can conflict with char strtoll(); below. */ | |
2330 | #include <assert.h> | |
2331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2332 | /* We use char because int might match the return type of a gcc2 | |
2333 | builtin and then its argument prototype would still apply. */ | |
2334 | char strtoll(); | |
2335 | ||
2336 | int main() { | |
2337 | ||
2338 | /* The GNU C library defines this for functions which it implements | |
2339 | to always fail with ENOSYS. Some functions are actually named | |
2340 | something starting with __ and the normal name is an alias. */ | |
2341 | #if defined (__stub_strtoll) || defined (__stub___strtoll) | |
2342 | choke me | |
2343 | #else | |
2344 | strtoll(); | |
2345 | #endif | |
2346 | ||
2347 | ; return 0; } | |
2348 | EOF | |
28861379 | 2349 | if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0137be2d PE |
2350 | rm -rf conftest* |
2351 | eval "ac_cv_func_strtoll=yes" | |
2352 | else | |
2353 | echo "configure: failed program was:" >&5 | |
2354 | cat conftest.$ac_ext >&5 | |
2355 | rm -rf conftest* | |
2356 | eval "ac_cv_func_strtoll=no" | |
2357 | fi | |
2358 | rm -f conftest* | |
2359 | fi | |
2360 | ||
2361 | if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then | |
2362 | echo "$ac_t""yes" 1>&6 | |
2363 | : | |
2364 | else | |
2365 | echo "$ac_t""no" 1>&6 | |
209fe19b | 2366 | ac_strtoll=no |
0137be2d PE |
2367 | fi |
2368 | ||
209fe19b | 2369 | echo $ac_n "checking for strtoull""... $ac_c" 1>&6 |
28861379 | 2370 | echo "configure:2371: checking for strtoull" >&5 |
209fe19b BK |
2371 | if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then |
2372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b2dad0e3 | 2373 | else |
209fe19b | 2374 | cat > conftest.$ac_ext <<EOF |
28861379 | 2375 | #line 2376 "configure" |
209fe19b BK |
2376 | #include "confdefs.h" |
2377 | /* System header to define __stub macros and hopefully few prototypes, | |
2378 | which can conflict with char strtoull(); below. */ | |
2379 | #include <assert.h> | |
2380 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2381 | /* We use char because int might match the return type of a gcc2 | |
2382 | builtin and then its argument prototype would still apply. */ | |
2383 | char strtoull(); | |
2384 | ||
2385 | int main() { | |
2386 | ||
2387 | /* The GNU C library defines this for functions which it implements | |
2388 | to always fail with ENOSYS. Some functions are actually named | |
2389 | something starting with __ and the normal name is an alias. */ | |
2390 | #if defined (__stub_strtoull) || defined (__stub___strtoull) | |
2391 | choke me | |
2392 | #else | |
2393 | strtoull(); | |
2394 | #endif | |
2395 | ||
2396 | ; return 0; } | |
2397 | EOF | |
28861379 | 2398 | if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
209fe19b BK |
2399 | rm -rf conftest* |
2400 | eval "ac_cv_func_strtoull=yes" | |
2401 | else | |
2402 | echo "configure: failed program was:" >&5 | |
2403 | cat conftest.$ac_ext >&5 | |
2404 | rm -rf conftest* | |
2405 | eval "ac_cv_func_strtoull=no" | |
b2dad0e3 | 2406 | fi |
209fe19b BK |
2407 | rm -f conftest* |
2408 | fi | |
2409 | ||
2410 | if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then | |
2411 | echo "$ac_t""yes" 1>&6 | |
2412 | : | |
2413 | else | |
2414 | echo "$ac_t""no" 1>&6 | |
2415 | ac_strtoull=no | |
2416 | fi | |
2417 | ||
2418 | ||
3840fa2a | 2419 | echo $ac_n "checking for enabled long long""... $ac_c" 1>&6 |
28861379 | 2420 | echo "configure:2421: checking for enabled long long" >&5 |
209fe19b | 2421 | if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then |
3840fa2a BK |
2422 | enable_long_long=no; |
2423 | fi; | |
d0d88ce3 | 2424 | echo "$ac_t""$enable_long_long" 1>&6 |
3840fa2a | 2425 | |
b2dad0e3 BK |
2426 | case "$enable_long_long" in |
2427 | yes) cat >> confdefs.h <<\EOF | |
2428 | #define _GLIBCPP_USE_LONG_LONG 1 | |
2429 | EOF | |
2430 | ||
2431 | ;; | |
2432 | esac | |
2433 | ||
d0d88ce3 | 2434 | echo $ac_n "checking for enabled cshadow headers""... $ac_c" 1>&6 |
28861379 | 2435 | echo "configure:2436: checking for enabled cshadow headers" >&5 |
d0d88ce3 BK |
2436 | # Check whether --enable-cshadow-headers or --disable-cshadow-headers was given. |
2437 | if test "${enable_cshadow_headers+set}" = set; then | |
2438 | enableval="$enable_cshadow_headers" | |
5780a46b | 2439 | |
99246c90 | 2440 | case "$enableval" in |
5780a46b | 2441 | yes) enable_cshadow_headers=yes |
d0d88ce3 | 2442 | ;; |
5780a46b | 2443 | no) enable_cshadow_headers=no |
d0d88ce3 | 2444 | ;; |
5780a46b | 2445 | *) { echo "configure: error: Unknown argument to enable/disable shadowed C headers" 1>&2; exit 1; } |
d0d88ce3 | 2446 | ;; |
5780a46b | 2447 | esac |
99246c90 | 2448 | else |
d0d88ce3 | 2449 | enable_cshadow_headers=no |
99246c90 | 2450 | fi |
5780a46b BK |
2451 | |
2452 | echo "$ac_t""$enable_cshadow_headers" 1>&6 | |
2453 | ||
2454 | case "$enable_cshadow_headers" in | |
99246c90 | 2455 | yes) |
99b51359 | 2456 | CSHADOWFLAGS="" |
99246c90 PE |
2457 | ;; |
2458 | no) | |
5b80666b | 2459 | CSHADOWFLAGS="" |
99246c90 | 2460 | ;; |
5780a46b | 2461 | esac |
b2dad0e3 | 2462 | |
5780a46b BK |
2463 | |
2464 | ||
5b80666b | 2465 | |
5b80666b BK |
2466 | if test "$enable_cshadow_headers" = yes; then |
2467 | GLIBCPP_USE_CSHADOW_TRUE= | |
2468 | GLIBCPP_USE_CSHADOW_FALSE='#' | |
2469 | else | |
2470 | GLIBCPP_USE_CSHADOW_TRUE='#' | |
2471 | GLIBCPP_USE_CSHADOW_FALSE= | |
2472 | fi | |
2473 | ||
2474 | ||
b2dad0e3 | 2475 | echo $ac_n "checking for threads package to use""... $ac_c" 1>&6 |
28861379 | 2476 | echo "configure:2477: checking for threads package to use" >&5 |
b2dad0e3 BK |
2477 | # Check whether --enable-threads or --disable-threads was given. |
2478 | if test "${enable_threads+set}" = set; then | |
2479 | enableval="$enable_threads" | |
2480 | if test x$enable_threads = xno; then | |
2481 | enable_threads='' | |
2482 | fi | |
2483 | else | |
2484 | enable_threads='' | |
2485 | fi | |
2486 | ||
2487 | ||
2488 | enable_threads_flag=$enable_threads | |
2489 | ||
2490 | case x${enable_threads_flag} in | |
2491 | x | xno | xnone) | |
2492 | # No threads | |
2493 | target_thread_file='single' | |
2494 | ;; | |
2495 | xyes) | |
2496 | # default | |
2497 | target_thread_file='' | |
2498 | ;; | |
2499 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
2500 | xsolaris | xwin32 | xdce | xvxworks) | |
2501 | target_thread_file=$enable_threads_flag | |
2502 | ;; | |
2503 | *) | |
2504 | echo "$enable_threads is an unknown thread package" 1>&2 | |
2505 | exit 1 | |
2506 | ;; | |
2507 | esac | |
2508 | ||
2509 | case "$target_thread_file" in | |
2510 | no | none | single) | |
2511 | THREADS=none | |
2512 | ;; | |
2513 | posix | pthreads) | |
2514 | THREADS=posix | |
0828a0bd | 2515 | case "$target" in |
b2dad0e3 BK |
2516 | *-*-linux*) |
2517 | ;; | |
2518 | esac | |
2519 | ;; | |
2520 | decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks) | |
2521 | { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; } | |
2522 | ;; | |
2523 | *) | |
2524 | { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; } | |
2525 | ;; | |
2526 | esac | |
2527 | echo "$ac_t""$THREADS" 1>&6 | |
2528 | ||
2529 | THREADLIBS= | |
2530 | THREADINCS= | |
2531 | THREADDEPS= | |
2532 | THREADOBJS= | |
2533 | THREADH= | |
2534 | THREADSPEC= | |
2535 | case "$THREADS" in | |
2536 | posix) | |
2537 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
2538 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
28861379 | 2539 | echo "configure:2540: checking for pthread.h" >&5 |
b2dad0e3 BK |
2540 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2542 | else | |
2543 | cat > conftest.$ac_ext <<EOF | |
28861379 | 2544 | #line 2545 "configure" |
b2dad0e3 BK |
2545 | #include "confdefs.h" |
2546 | #include <pthread.h> | |
2547 | EOF | |
2548 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
28861379 | 2549 | { (eval echo configure:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b2dad0e3 BK |
2550 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2551 | if test -z "$ac_err"; then | |
2552 | rm -rf conftest* | |
2553 | eval "ac_cv_header_$ac_safe=yes" | |
2554 | else | |
2555 | echo "$ac_err" >&5 | |
2556 | echo "configure: failed program was:" >&5 | |
2557 | cat conftest.$ac_ext >&5 | |
2558 | rm -rf conftest* | |
2559 | eval "ac_cv_header_$ac_safe=no" | |
2560 | fi | |
2561 | rm -f conftest* | |
2562 | fi | |
2563 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2564 | echo "$ac_t""yes" 1>&6 | |
2565 | have_pthread_h=yes | |
2566 | else | |
2567 | echo "$ac_t""no" 1>&6 | |
2568 | have_pthread_h= | |
2569 | fi | |
2570 | ||
2571 | THREADLIBS=-lpthread | |
2572 | THREADSPEC=-lpthread | |
2573 | THREADH=threads-posix.h | |
2574 | ;; | |
2575 | none) | |
2576 | THREADH=threads-no.h | |
2577 | ;; | |
2578 | esac | |
2579 | ||
2580 | ||
2581 | ||
2582 | ||
2583 | ||
c4561450 | 2584 | |
b2dad0e3 | 2585 | |
b2dad0e3 | 2586 | #GLIBCPP_ENABLE_RELIBGCC([../..]) |
dcfa0bc8 PE |
2587 | # Check whether --enable-cxx-flags or --disable-cxx-flags was given. |
2588 | if test "${enable_cxx_flags+set}" = set; then | |
2589 | enableval="$enable_cxx_flags" | |
2590 | case "x$enableval" in | |
5780a46b BK |
2591 | xyes) |
2592 | { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;; | |
2593 | xno|x) | |
2594 | enable_cxx_flags='' ;; | |
2595 | *) | |
2596 | enable_cxx_flags="$enableval" ;; | |
dcfa0bc8 PE |
2597 | esac |
2598 | else | |
32a4595e | 2599 | enable_cxx_flags='none' |
dcfa0bc8 | 2600 | fi |
5780a46b BK |
2601 | |
2602 | ||
2603 | if test "$enable_cxx_flags" = "none"; then | |
2604 | enable_cxx_flags=''; | |
2605 | fi | |
2606 | ||
dcfa0bc8 PE |
2607 | if test -n "$enable_cxx_flags"; then |
2608 | for f in $enable_cxx_flags; do | |
2609 | case "$f" in | |
991a40fc | 2610 | -fhonor-std) ;; |
dcfa0bc8 PE |
2611 | -*) ;; |
2612 | *) # and we're trying to pass /what/ exactly? | |
2613 | { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;; | |
2614 | esac | |
2615 | done | |
2616 | fi | |
2617 | EXTRA_CXX_FLAGS="$enable_cxx_flags" | |
2618 | ||
2619 | ||
b2dad0e3 | 2620 | |
cde28f0d | 2621 | |
b2dad0e3 BK |
2622 | if test -n "$with_cross_host"; then |
2623 | ||
2624 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS | |
2625 | # may not work correctly, because the compiler may not be able to | |
2626 | # link executables. | |
2627 | ||
2628 | xcompiling=1 | |
2629 | NATIVE=no | |
2630 | # If Canadian cross, then don't pick up tools from the build | |
2631 | # directory. | |
2632 | if test "$build" != "$with_cross_host"; then | |
2633 | CANADIAN=yes | |
2634 | NULL_TARGET=yes | |
2635 | else | |
2636 | CANADIAN=no | |
2637 | NULL_TARGET=no | |
2638 | fi | |
2639 | ||
2640 | case "$target_alias" in | |
2641 | *-wince-*) | |
2642 | # Configure for Microsoft Windows CE, or whatever they are | |
2643 | # currently calling it. | |
2644 | cat >> confdefs.h <<\EOF | |
2645 | #define HAVE_FLOAT_H 1 | |
2646 | EOF | |
2647 | ||
2648 | ||
2649 | cat >> confdefs.h <<\EOF | |
2650 | #define HAVE__FINITE 1 | |
2651 | EOF | |
2652 | ||
2653 | cat >> confdefs.h <<\EOF | |
2654 | #define HAVE__ISNAN 1 | |
2655 | EOF | |
2656 | ||
2657 | cat >> confdefs.h <<\EOF | |
2658 | #define HAVE__COPYSIGN 1 | |
2659 | EOF | |
2660 | ||
2661 | cat >> confdefs.h <<\EOF | |
2662 | #define HAVE__FPCLASS 1 | |
2663 | EOF | |
2664 | ||
2665 | cat >> confdefs.h <<\EOF | |
2666 | #define HAVE_MODF 1 | |
2667 | EOF | |
2668 | ||
2669 | ||
2670 | ctype_include_dir="config/wince" | |
2671 | ||
2672 | ||
2673 | cat >> confdefs.h <<\EOF | |
2674 | #define _GLIBCPP_NEED_MBSTATE_T 1 | |
2675 | EOF | |
2676 | ||
2677 | ||
2678 | cat >> confdefs.h <<\EOF | |
2679 | #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1 | |
2680 | EOF | |
2681 | ||
2682 | cat >> confdefs.h <<\EOF | |
2683 | #define _GLIBCPP_BUGGY_COMPLEX 1 | |
2684 | EOF | |
2685 | ||
2686 | ;; | |
2687 | *) | |
2688 | # We assume newlib. This lets us hard-code the functions we know | |
2689 | # we'll have. | |
2690 | cat >> confdefs.h <<\EOF | |
2691 | #define HAVE_FINITE 1 | |
2692 | EOF | |
2693 | ||
2694 | cat >> confdefs.h <<\EOF | |
2695 | #define HAVE_ISNAN 1 | |
2696 | EOF | |
2697 | ||
2698 | cat >> confdefs.h <<\EOF | |
2699 | #define HAVE_ISNANF 1 | |
2700 | EOF | |
2701 | ||
2702 | cat >> confdefs.h <<\EOF | |
2703 | #define HAVE_ISINF 1 | |
2704 | EOF | |
2705 | ||
2706 | cat >> confdefs.h <<\EOF | |
2707 | #define HAVE_ISINFF 1 | |
2708 | EOF | |
2709 | ||
2710 | ||
2711 | ctype_include_dir="config/newlib" | |
2712 | ||
2713 | ||
2714 | cat >> confdefs.h <<\EOF | |
2715 | #define _GLIBCPP_NEED_MBSTATE_T 1 | |
2716 | EOF | |
2717 | ||
2718 | ||
2719 | cat >> confdefs.h <<\EOF | |
2720 | #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1 | |
2721 | EOF | |
2722 | ||
2723 | cat >> confdefs.h <<\EOF | |
2724 | #define _GLIBCPP_BUGGY_COMPLEX 1 | |
2725 | EOF | |
2726 | ||
2727 | # need to ceck for faster f versions of math functions, ie sinf? | |
2728 | ;; | |
2729 | esac | |
2730 | else | |
2731 | ||
2732 | # We are being configured natively. We can do more elaborate tests | |
2733 | # that include AC_TRY_COMPILE now, as the linker is assumed to be | |
2734 | # working. | |
2735 | ||
2736 | xcompiling=0 | |
2737 | NATIVE=yes | |
2738 | CANADIAN=no | |
2739 | NULL_TARGET=no | |
2740 | ||
2741 | # Check for available headers. | |
2742 | for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \ | |
2743 | machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h | |
2744 | do | |
2745 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2746 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
28861379 | 2747 | echo "configure:2748: checking for $ac_hdr" >&5 |
b2dad0e3 BK |
2748 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2750 | else | |
2751 | cat > conftest.$ac_ext <<EOF | |
28861379 | 2752 | #line 2753 "configure" |
b2dad0e3 BK |
2753 | #include "confdefs.h" |
2754 | #include <$ac_hdr> | |
2755 | EOF | |
2756 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
28861379 | 2757 | { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b2dad0e3 BK |
2758 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2759 | if test -z "$ac_err"; then | |
2760 | rm -rf conftest* | |
2761 | eval "ac_cv_header_$ac_safe=yes" | |
2762 | else | |
2763 | echo "$ac_err" >&5 | |
2764 | echo "configure: failed program was:" >&5 | |
2765 | cat conftest.$ac_ext >&5 | |
2766 | rm -rf conftest* | |
2767 | eval "ac_cv_header_$ac_safe=no" | |
2768 | fi | |
2769 | rm -f conftest* | |
2770 | fi | |
2771 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2772 | echo "$ac_t""yes" 1>&6 | |
2773 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2774 | cat >> confdefs.h <<EOF | |
2775 | #define $ac_tr_hdr 1 | |
2776 | EOF | |
2777 | ||
2778 | else | |
2779 | echo "$ac_t""no" 1>&6 | |
2780 | fi | |
2781 | done | |
2782 | ||
2783 | ||
2784 | ||
c470c17d BK |
2785 | # All these tests are for C++; save the language and the compiler flags. |
2786 | # The CXXFLAGS thing is suspicious, but based on similar bits | |
2787 | # found in GLIBCPP_CONFIGURE. | |
2788 | ||
2789 | ac_ext=C | |
2790 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2791 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2792 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2793 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2794 | cross_compiling=$ac_cv_prog_cxx_cross | |
2795 | ||
2796 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
2797 | ac_save_CXXFLAGS="$CXXFLAGS" | |
2798 | WERROR='-Werror' | |
2799 | ||
2800 | # Check for pragma system_header. | |
2801 | echo $ac_n "checking for g++ that supports pragma system_header""... $ac_c" 1>&6 | |
28861379 | 2802 | echo "configure:2803: checking for g++ that supports pragma system_header" >&5 |
c470c17d BK |
2803 | CXXFLAGS='-Wunknown-pragmas -Werror' |
2804 | cat > conftest.$ac_ext <<EOF | |
28861379 | 2805 | #line 2806 "configure" |
c470c17d | 2806 | #include "confdefs.h" |
6c329b93 | 2807 | #pragma GCC system_header |
c470c17d BK |
2808 | int main() { |
2809 | int foo; | |
2810 | ||
2811 | ; return 0; } | |
2812 | EOF | |
28861379 | 2813 | if { (eval echo configure:2814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c470c17d BK |
2814 | rm -rf conftest* |
2815 | ac_newpragma=yes | |
2816 | else | |
2817 | echo "configure: failed program was:" >&5 | |
2818 | cat conftest.$ac_ext >&5 | |
2819 | rm -rf conftest* | |
2820 | ac_newpragma=no | |
2821 | fi | |
2822 | rm -f conftest* | |
2823 | if test "$ac_test_CXXFLAGS" = set; then | |
2824 | CXXFLAGS="$ac_save_CXXFLAGS" | |
2825 | else | |
2826 | # this is the suspicious part | |
2827 | CXXFLAGS='' | |
2828 | fi | |
2829 | if test "$ac_newpragma" = "no"; then | |
2830 | WERROR="$WERROR -Wno-unknown-pragmas" | |
2831 | fi | |
2832 | echo "$ac_t""$ac_newpragma" 1>&6 | |
2833 | ||
2834 | # Check for more sophisticated diagnostic control. | |
2835 | echo $ac_n "checking for g++ that supports -fdiagnostics-show-location=once""... $ac_c" 1>&6 | |
28861379 | 2836 | echo "configure:2837: checking for g++ that supports -fdiagnostics-show-location=once" >&5 |
c470c17d BK |
2837 | CXXFLAGS='-fdiagnostics-show-location=once' |
2838 | cat > conftest.$ac_ext <<EOF | |
28861379 | 2839 | #line 2840 "configure" |
c470c17d BK |
2840 | #include "confdefs.h" |
2841 | ||
2842 | int main() { | |
2843 | int foo; | |
2844 | ||
2845 | ; return 0; } | |
2846 | EOF | |
28861379 | 2847 | if { (eval echo configure:2848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c470c17d BK |
2848 | rm -rf conftest* |
2849 | ac_gabydiags=yes | |
2850 | else | |
2851 | echo "configure: failed program was:" >&5 | |
2852 | cat conftest.$ac_ext >&5 | |
2853 | rm -rf conftest* | |
2854 | ac_gabydiags=no | |
2855 | fi | |
2856 | rm -f conftest* | |
2857 | if test "$ac_test_CXXFLAGS" = set; then | |
2858 | CXXFLAGS="$ac_save_CXXFLAGS" | |
2859 | else | |
2860 | # this is the suspicious part | |
2861 | CXXFLAGS='' | |
2862 | fi | |
2863 | if test "$ac_gabydiags" = "yes"; then | |
2864 | WFMT_FLAGS='-fdiagnostics-show-location=once' | |
2865 | fi | |
2866 | echo "$ac_t""$ac_gabydiags" 1>&6 | |
2867 | ||
2868 | # Check for -ffunction-sections -fdata-sections | |
2869 | echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6 | |
28861379 | 2870 | echo "configure:2871: checking for g++ that supports -ffunction-sections -fdata-sections" >&5 |
c470c17d BK |
2871 | CXXFLAGS='-ffunction-sections -fdata-sections' |
2872 | cat > conftest.$ac_ext <<EOF | |
28861379 | 2873 | #line 2874 "configure" |
c470c17d BK |
2874 | #include "confdefs.h" |
2875 | ||
2876 | int main() { | |
2877 | int foo; | |
2878 | ||
2879 | ; return 0; } | |
2880 | EOF | |
28861379 | 2881 | if { (eval echo configure:2882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c470c17d BK |
2882 | rm -rf conftest* |
2883 | ac_fdsections=yes | |
2884 | else | |
2885 | echo "configure: failed program was:" >&5 | |
2886 | cat conftest.$ac_ext >&5 | |
2887 | rm -rf conftest* | |
2888 | ac_fdsections=no | |
2889 | fi | |
2890 | rm -f conftest* | |
2891 | if test "$ac_test_CXXFLAGS" = set; then | |
2892 | CXXFLAGS="$ac_save_CXXFLAGS" | |
2893 | else | |
2894 | # this is the suspicious part | |
2895 | CXXFLAGS='' | |
2896 | fi | |
2897 | if test "$ac_fdsections" = "yes"; then | |
2898 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
2899 | fi | |
2900 | echo "$ac_t""$ac_fdsections" 1>&6 | |
2901 | ||
2902 | ac_ext=c | |
2903 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2904 | ac_cpp='$CPP $CPPFLAGS' | |
2905 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2906 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2907 | cross_compiling=$ac_cv_prog_cc_cross | |
2908 | ||
2909 | ||
2910 | ||
2911 | ||
2912 | ||
2913 | ||
421173e6 PE |
2914 | # If we're not using GNU ld, then there's no point in even trying these |
2915 | # tests. Check for that first. We should have already tested for gld | |
2916 | # by now (in libtool), but require it now just to be safe... | |
2917 | ||
2918 | if test "$ac_cv_prog_gnu_ld" = "no"; then | |
2919 | SECTION_LDFLAGS='' | |
2920 | OPT_LDFLAGS='' | |
2921 | ||
2922 | else # GNU ld it is! Joy and bunny rabbits! | |
2923 | ||
2924 | # All these tests are for C++; save the language and the compiler flags. | |
2925 | # Need to do this so that g++ won't try to link in libstdc++ | |
2926 | ac_test_CFLAGS="${CFLAGS+set}" | |
2927 | ac_save_CFLAGS="$CFLAGS" | |
2928 | CFLAGS='-x c++ -Wl,--gc-sections' | |
2929 | ||
2930 | # Check for -Wl,--gc-sections | |
2931 | echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6 | |
2932 | echo "configure:2933: checking for ld that supports -Wl,--gc-sections" >&5 | |
2933 | if test "$cross_compiling" = yes; then | |
38bd7296 BK |
2934 | ac_sectionLDflags=yes |
2935 | else | |
c470c17d | 2936 | cat > conftest.$ac_ext <<EOF |
421173e6 | 2937 | #line 2938 "configure" |
c470c17d BK |
2938 | #include "confdefs.h" |
2939 | ||
421173e6 PE |
2940 | int main(void) |
2941 | { | |
2942 | try { throw 1; } | |
2943 | catch (...) { }; | |
2944 | return 0; | |
2945 | } | |
2946 | ||
c470c17d | 2947 | EOF |
421173e6 | 2948 | if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
38bd7296 | 2949 | then |
c470c17d BK |
2950 | ac_sectionLDflags=yes |
2951 | else | |
2952 | echo "configure: failed program was:" >&5 | |
2953 | cat conftest.$ac_ext >&5 | |
38bd7296 | 2954 | rm -fr conftest* |
c470c17d BK |
2955 | ac_sectionLFflags=no |
2956 | fi | |
38bd7296 BK |
2957 | rm -fr conftest* |
2958 | fi | |
2959 | ||
421173e6 PE |
2960 | if test "$ac_test_CFLAGS" = set; then |
2961 | CFLAGS="$ac_save_CFLAGS" | |
2962 | else | |
2963 | # this is the suspicious part | |
2964 | CFLAGS='' | |
2965 | fi | |
2966 | if test "$ac_sectionLDflags" = "yes"; then | |
2967 | SECTION_LDFLAGS='-Wl,--gc-sections' | |
2968 | fi | |
2969 | echo "$ac_t""$ac_sectionLDflags" 1>&6 | |
2970 | OPT_LDFLAGS='-Wl,-O1' | |
c470c17d | 2971 | |
421173e6 PE |
2972 | fi |
2973 | ||
c470c17d BK |
2974 | |
2975 | ||
2976 | ||
11fc1858 | 2977 | |
421173e6 PE |
2978 | echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6 |
2979 | echo "configure:2980: checking for __builtin_abs declaration" >&5 | |
2980 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then | |
2981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2982 | else | |
11fc1858 | 2983 | |
421173e6 PE |
2984 | |
2985 | ac_ext=C | |
54fa7415 SK |
2986 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2987 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2988 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2989 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2990 | cross_compiling=$ac_cv_prog_cxx_cross | |
2991 | ||
421173e6 PE |
2992 | cat > conftest.$ac_ext <<EOF |
2993 | #line 2994 "configure" | |
b2dad0e3 BK |
2994 | #include "confdefs.h" |
2995 | #include <math.h> | |
2996 | int main() { | |
11fc1858 | 2997 | __builtin_abs(0); |
b2dad0e3 BK |
2998 | ; return 0; } |
2999 | EOF | |
421173e6 | 3000 | if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 | 3001 | rm -rf conftest* |
421173e6 | 3002 | glibcpp_cv_func___builtin_abs_use=yes |
b2dad0e3 BK |
3003 | else |
3004 | echo "configure: failed program was:" >&5 | |
3005 | cat conftest.$ac_ext >&5 | |
3006 | rm -rf conftest* | |
421173e6 | 3007 | glibcpp_cv_func___builtin_abs_use=no |
b2dad0e3 BK |
3008 | fi |
3009 | rm -f conftest* | |
421173e6 | 3010 | ac_ext=c |
11fc1858 BK |
3011 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3012 | ac_cpp='$CPP $CPPFLAGS' | |
3013 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3014 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3015 | cross_compiling=$ac_cv_prog_cc_cross | |
b2dad0e3 | 3016 | |
421173e6 PE |
3017 | |
3018 | fi | |
3019 | ||
3020 | echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6 | |
3021 | if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then | |
11fc1858 | 3022 | echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6 |
421173e6 PE |
3023 | echo "configure:3024: checking for __builtin_abs linkage" >&5 |
3024 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then | |
3025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3026 | else | |
3027 | ||
11fc1858 | 3028 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3029 | #line 3030 "configure" |
b2dad0e3 BK |
3030 | #include "confdefs.h" |
3031 | #include <math.h> | |
3032 | int main() { | |
11fc1858 | 3033 | __builtin_abs(0); |
b2dad0e3 BK |
3034 | ; return 0; } |
3035 | EOF | |
421173e6 | 3036 | if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 | 3037 | rm -rf conftest* |
421173e6 | 3038 | glibcpp_cv_func___builtin_abs_link=yes |
b2dad0e3 BK |
3039 | else |
3040 | echo "configure: failed program was:" >&5 | |
3041 | cat conftest.$ac_ext >&5 | |
3042 | rm -rf conftest* | |
421173e6 | 3043 | glibcpp_cv_func___builtin_abs_link=no |
b2dad0e3 BK |
3044 | fi |
3045 | rm -f conftest* | |
421173e6 PE |
3046 | |
3047 | fi | |
3048 | ||
3049 | echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6 | |
3050 | if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then | |
11fc1858 BK |
3051 | ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3052 | cat >> confdefs.h <<EOF | |
3053 | #define ${ac_tr_func} 1 | |
b2dad0e3 BK |
3054 | EOF |
3055 | ||
11fc1858 | 3056 | fi |
b2dad0e3 | 3057 | fi |
b2dad0e3 | 3058 | |
11fc1858 | 3059 | |
421173e6 PE |
3060 | echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6 |
3061 | echo "configure:3062: checking for __builtin_fabsf declaration" >&5 | |
3062 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then | |
3063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3064 | else | |
11fc1858 | 3065 | |
421173e6 PE |
3066 | |
3067 | ac_ext=C | |
11fc1858 BK |
3068 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3069 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3070 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3071 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3072 | cross_compiling=$ac_cv_prog_cxx_cross | |
b2dad0e3 | 3073 | |
421173e6 PE |
3074 | cat > conftest.$ac_ext <<EOF |
3075 | #line 3076 "configure" | |
b2dad0e3 | 3076 | #include "confdefs.h" |
54fa7415 | 3077 | #include <math.h> |
b2dad0e3 | 3078 | int main() { |
11fc1858 | 3079 | __builtin_fabsf(0); |
b2dad0e3 BK |
3080 | ; return 0; } |
3081 | EOF | |
421173e6 | 3082 | if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 | 3083 | rm -rf conftest* |
421173e6 | 3084 | glibcpp_cv_func___builtin_fabsf_use=yes |
b2dad0e3 BK |
3085 | else |
3086 | echo "configure: failed program was:" >&5 | |
3087 | cat conftest.$ac_ext >&5 | |
3088 | rm -rf conftest* | |
421173e6 | 3089 | glibcpp_cv_func___builtin_fabsf_use=no |
b2dad0e3 BK |
3090 | fi |
3091 | rm -f conftest* | |
421173e6 | 3092 | ac_ext=c |
11fc1858 BK |
3093 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3094 | ac_cpp='$CPP $CPPFLAGS' | |
3095 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3096 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3097 | cross_compiling=$ac_cv_prog_cc_cross | |
b2dad0e3 | 3098 | |
421173e6 PE |
3099 | |
3100 | fi | |
3101 | ||
3102 | echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6 | |
3103 | if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then | |
11fc1858 | 3104 | echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6 |
421173e6 PE |
3105 | echo "configure:3106: checking for __builtin_fabsf linkage" >&5 |
3106 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then | |
3107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3108 | else | |
3109 | ||
11fc1858 | 3110 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3111 | #line 3112 "configure" |
b2dad0e3 | 3112 | #include "confdefs.h" |
54fa7415 SK |
3113 | #include <math.h> |
3114 | int main() { | |
11fc1858 | 3115 | __builtin_fabsf(0); |
54fa7415 | 3116 | ; return 0; } |
b2dad0e3 | 3117 | EOF |
421173e6 | 3118 | if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 | 3119 | rm -rf conftest* |
421173e6 | 3120 | glibcpp_cv_func___builtin_fabsf_link=yes |
b2dad0e3 | 3121 | else |
b2dad0e3 BK |
3122 | echo "configure: failed program was:" >&5 |
3123 | cat conftest.$ac_ext >&5 | |
3124 | rm -rf conftest* | |
421173e6 | 3125 | glibcpp_cv_func___builtin_fabsf_link=no |
b2dad0e3 BK |
3126 | fi |
3127 | rm -f conftest* | |
421173e6 PE |
3128 | |
3129 | fi | |
3130 | ||
3131 | echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6 | |
3132 | if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then | |
11fc1858 BK |
3133 | ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3134 | cat >> confdefs.h <<EOF | |
3135 | #define ${ac_tr_func} 1 | |
b2dad0e3 | 3136 | EOF |
b2dad0e3 | 3137 | |
11fc1858 | 3138 | fi |
54fa7415 | 3139 | fi |
b2dad0e3 | 3140 | |
11fc1858 | 3141 | |
421173e6 PE |
3142 | echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6 |
3143 | echo "configure:3144: checking for __builtin_fabs declaration" >&5 | |
3144 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then | |
3145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3146 | else | |
11fc1858 | 3147 | |
421173e6 PE |
3148 | |
3149 | ac_ext=C | |
11fc1858 BK |
3150 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3151 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3152 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3153 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3154 | cross_compiling=$ac_cv_prog_cxx_cross | |
b2dad0e3 | 3155 | |
421173e6 PE |
3156 | cat > conftest.$ac_ext <<EOF |
3157 | #line 3158 "configure" | |
b2dad0e3 | 3158 | #include "confdefs.h" |
54fa7415 | 3159 | #include <math.h> |
b2dad0e3 | 3160 | int main() { |
11fc1858 | 3161 | __builtin_fabs(0); |
b2dad0e3 BK |
3162 | ; return 0; } |
3163 | EOF | |
421173e6 | 3164 | if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 | 3165 | rm -rf conftest* |
421173e6 | 3166 | glibcpp_cv_func___builtin_fabs_use=yes |
b2dad0e3 BK |
3167 | else |
3168 | echo "configure: failed program was:" >&5 | |
3169 | cat conftest.$ac_ext >&5 | |
3170 | rm -rf conftest* | |
421173e6 | 3171 | glibcpp_cv_func___builtin_fabs_use=no |
b2dad0e3 BK |
3172 | fi |
3173 | rm -f conftest* | |
421173e6 | 3174 | ac_ext=c |
11fc1858 BK |
3175 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3176 | ac_cpp='$CPP $CPPFLAGS' | |
3177 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3178 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3179 | cross_compiling=$ac_cv_prog_cc_cross | |
b2dad0e3 | 3180 | |
421173e6 PE |
3181 | |
3182 | fi | |
3183 | ||
3184 | echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6 | |
3185 | if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then | |
11fc1858 | 3186 | echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6 |
421173e6 PE |
3187 | echo "configure:3188: checking for __builtin_fabs linkage" >&5 |
3188 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then | |
3189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3190 | else | |
3191 | ||
11fc1858 | 3192 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3193 | #line 3194 "configure" |
b2dad0e3 | 3194 | #include "confdefs.h" |
54fa7415 | 3195 | #include <math.h> |
b2dad0e3 | 3196 | int main() { |
11fc1858 | 3197 | __builtin_fabs(0); |
b2dad0e3 BK |
3198 | ; return 0; } |
3199 | EOF | |
421173e6 | 3200 | if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 | 3201 | rm -rf conftest* |
421173e6 | 3202 | glibcpp_cv_func___builtin_fabs_link=yes |
b2dad0e3 BK |
3203 | else |
3204 | echo "configure: failed program was:" >&5 | |
3205 | cat conftest.$ac_ext >&5 | |
3206 | rm -rf conftest* | |
421173e6 | 3207 | glibcpp_cv_func___builtin_fabs_link=no |
54fa7415 SK |
3208 | fi |
3209 | rm -f conftest* | |
421173e6 PE |
3210 | |
3211 | fi | |
3212 | ||
3213 | echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6 | |
3214 | if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then | |
11fc1858 BK |
3215 | ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3216 | cat >> confdefs.h <<EOF | |
3217 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3218 | EOF |
3219 | ||
11fc1858 | 3220 | fi |
54fa7415 | 3221 | fi |
54fa7415 | 3222 | |
11fc1858 | 3223 | |
421173e6 PE |
3224 | echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6 |
3225 | echo "configure:3226: checking for __builtin_fabsl declaration" >&5 | |
3226 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then | |
3227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3228 | else | |
11fc1858 | 3229 | |
421173e6 PE |
3230 | |
3231 | ac_ext=C | |
11fc1858 BK |
3232 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3233 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3234 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3235 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3236 | cross_compiling=$ac_cv_prog_cxx_cross | |
54fa7415 | 3237 | |
421173e6 PE |
3238 | cat > conftest.$ac_ext <<EOF |
3239 | #line 3240 "configure" | |
54fa7415 SK |
3240 | #include "confdefs.h" |
3241 | #include <math.h> | |
3242 | int main() { | |
11fc1858 | 3243 | __builtin_fabsl(0); |
54fa7415 SK |
3244 | ; return 0; } |
3245 | EOF | |
421173e6 | 3246 | if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3247 | rm -rf conftest* |
421173e6 | 3248 | glibcpp_cv_func___builtin_fabsl_use=yes |
54fa7415 SK |
3249 | else |
3250 | echo "configure: failed program was:" >&5 | |
3251 | cat conftest.$ac_ext >&5 | |
3252 | rm -rf conftest* | |
421173e6 | 3253 | glibcpp_cv_func___builtin_fabsl_use=no |
54fa7415 SK |
3254 | fi |
3255 | rm -f conftest* | |
421173e6 | 3256 | ac_ext=c |
11fc1858 BK |
3257 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3258 | ac_cpp='$CPP $CPPFLAGS' | |
3259 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3260 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3261 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 3262 | |
421173e6 PE |
3263 | |
3264 | fi | |
3265 | ||
3266 | echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6 | |
3267 | if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then | |
11fc1858 | 3268 | echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6 |
421173e6 PE |
3269 | echo "configure:3270: checking for __builtin_fabsl linkage" >&5 |
3270 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then | |
3271 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3272 | else | |
3273 | ||
11fc1858 | 3274 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3275 | #line 3276 "configure" |
54fa7415 SK |
3276 | #include "confdefs.h" |
3277 | #include <math.h> | |
3278 | int main() { | |
11fc1858 | 3279 | __builtin_fabsl(0); |
54fa7415 SK |
3280 | ; return 0; } |
3281 | EOF | |
421173e6 | 3282 | if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 3283 | rm -rf conftest* |
421173e6 | 3284 | glibcpp_cv_func___builtin_fabsl_link=yes |
54fa7415 SK |
3285 | else |
3286 | echo "configure: failed program was:" >&5 | |
3287 | cat conftest.$ac_ext >&5 | |
3288 | rm -rf conftest* | |
421173e6 | 3289 | glibcpp_cv_func___builtin_fabsl_link=no |
54fa7415 SK |
3290 | fi |
3291 | rm -f conftest* | |
421173e6 PE |
3292 | |
3293 | fi | |
3294 | ||
3295 | echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6 | |
3296 | if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then | |
11fc1858 BK |
3297 | ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3298 | cat >> confdefs.h <<EOF | |
3299 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3300 | EOF |
3301 | ||
11fc1858 | 3302 | fi |
54fa7415 | 3303 | fi |
54fa7415 | 3304 | |
11fc1858 | 3305 | |
421173e6 PE |
3306 | echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6 |
3307 | echo "configure:3308: checking for __builtin_labs declaration" >&5 | |
3308 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then | |
3309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3310 | else | |
11fc1858 | 3311 | |
421173e6 PE |
3312 | |
3313 | ac_ext=C | |
11fc1858 BK |
3314 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3315 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3316 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3317 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3318 | cross_compiling=$ac_cv_prog_cxx_cross | |
3319 | ||
421173e6 PE |
3320 | cat > conftest.$ac_ext <<EOF |
3321 | #line 3322 "configure" | |
54fa7415 SK |
3322 | #include "confdefs.h" |
3323 | #include <math.h> | |
3324 | int main() { | |
11fc1858 | 3325 | __builtin_labs(0); |
54fa7415 SK |
3326 | ; return 0; } |
3327 | EOF | |
421173e6 | 3328 | if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3329 | rm -rf conftest* |
421173e6 | 3330 | glibcpp_cv_func___builtin_labs_use=yes |
54fa7415 SK |
3331 | else |
3332 | echo "configure: failed program was:" >&5 | |
3333 | cat conftest.$ac_ext >&5 | |
3334 | rm -rf conftest* | |
421173e6 | 3335 | glibcpp_cv_func___builtin_labs_use=no |
54fa7415 SK |
3336 | fi |
3337 | rm -f conftest* | |
421173e6 | 3338 | ac_ext=c |
11fc1858 BK |
3339 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3340 | ac_cpp='$CPP $CPPFLAGS' | |
3341 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3342 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3343 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 3344 | |
421173e6 PE |
3345 | |
3346 | fi | |
3347 | ||
3348 | echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6 | |
3349 | if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then | |
11fc1858 | 3350 | echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6 |
421173e6 PE |
3351 | echo "configure:3352: checking for __builtin_labs linkage" >&5 |
3352 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then | |
3353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3354 | else | |
3355 | ||
11fc1858 | 3356 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3357 | #line 3358 "configure" |
54fa7415 SK |
3358 | #include "confdefs.h" |
3359 | #include <math.h> | |
3360 | int main() { | |
11fc1858 | 3361 | __builtin_labs(0); |
54fa7415 SK |
3362 | ; return 0; } |
3363 | EOF | |
421173e6 | 3364 | if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 3365 | rm -rf conftest* |
421173e6 | 3366 | glibcpp_cv_func___builtin_labs_link=yes |
54fa7415 SK |
3367 | else |
3368 | echo "configure: failed program was:" >&5 | |
3369 | cat conftest.$ac_ext >&5 | |
3370 | rm -rf conftest* | |
421173e6 | 3371 | glibcpp_cv_func___builtin_labs_link=no |
54fa7415 SK |
3372 | fi |
3373 | rm -f conftest* | |
421173e6 PE |
3374 | |
3375 | fi | |
3376 | ||
3377 | echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6 | |
3378 | if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then | |
11fc1858 BK |
3379 | ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3380 | cat >> confdefs.h <<EOF | |
3381 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3382 | EOF |
3383 | ||
11fc1858 | 3384 | fi |
54fa7415 | 3385 | fi |
11fc1858 BK |
3386 | |
3387 | ||
3388 | ||
421173e6 PE |
3389 | echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6 |
3390 | echo "configure:3391: checking for __builtin_sqrtf declaration" >&5 | |
3391 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then | |
3392 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3393 | else | |
11fc1858 | 3394 | |
421173e6 PE |
3395 | |
3396 | ac_ext=C | |
11fc1858 BK |
3397 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3398 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3399 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3400 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3401 | cross_compiling=$ac_cv_prog_cxx_cross | |
3402 | ||
421173e6 PE |
3403 | cat > conftest.$ac_ext <<EOF |
3404 | #line 3405 "configure" | |
54fa7415 SK |
3405 | #include "confdefs.h" |
3406 | #include <math.h> | |
3407 | int main() { | |
11fc1858 | 3408 | __builtin_sqrtf(0); |
54fa7415 SK |
3409 | ; return 0; } |
3410 | EOF | |
421173e6 | 3411 | if { (eval echo configure:3412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3412 | rm -rf conftest* |
421173e6 | 3413 | glibcpp_cv_func___builtin_sqrtf_use=yes |
54fa7415 SK |
3414 | else |
3415 | echo "configure: failed program was:" >&5 | |
3416 | cat conftest.$ac_ext >&5 | |
3417 | rm -rf conftest* | |
421173e6 | 3418 | glibcpp_cv_func___builtin_sqrtf_use=no |
54fa7415 SK |
3419 | fi |
3420 | rm -f conftest* | |
421173e6 | 3421 | ac_ext=c |
11fc1858 BK |
3422 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3423 | ac_cpp='$CPP $CPPFLAGS' | |
3424 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3425 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3426 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 3427 | |
421173e6 PE |
3428 | |
3429 | fi | |
3430 | ||
3431 | echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6 | |
3432 | if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then | |
11fc1858 | 3433 | echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6 |
421173e6 PE |
3434 | echo "configure:3435: checking for __builtin_sqrtf linkage" >&5 |
3435 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then | |
3436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3437 | else | |
3438 | ||
11fc1858 | 3439 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3440 | #line 3441 "configure" |
54fa7415 SK |
3441 | #include "confdefs.h" |
3442 | #include <math.h> | |
3443 | int main() { | |
11fc1858 | 3444 | __builtin_sqrtf(0); |
54fa7415 SK |
3445 | ; return 0; } |
3446 | EOF | |
421173e6 | 3447 | if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 3448 | rm -rf conftest* |
421173e6 | 3449 | glibcpp_cv_func___builtin_sqrtf_link=yes |
54fa7415 SK |
3450 | else |
3451 | echo "configure: failed program was:" >&5 | |
3452 | cat conftest.$ac_ext >&5 | |
3453 | rm -rf conftest* | |
421173e6 | 3454 | glibcpp_cv_func___builtin_sqrtf_link=no |
54fa7415 SK |
3455 | fi |
3456 | rm -f conftest* | |
421173e6 PE |
3457 | |
3458 | fi | |
3459 | ||
3460 | echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6 | |
3461 | if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then | |
11fc1858 BK |
3462 | ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3463 | cat >> confdefs.h <<EOF | |
3464 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3465 | EOF |
3466 | ||
11fc1858 | 3467 | fi |
54fa7415 | 3468 | fi |
11fc1858 BK |
3469 | |
3470 | ||
421173e6 PE |
3471 | echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6 |
3472 | echo "configure:3473: checking for __builtin_fsqrt declaration" >&5 | |
3473 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then | |
3474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3475 | else | |
11fc1858 | 3476 | |
421173e6 PE |
3477 | |
3478 | ac_ext=C | |
11fc1858 BK |
3479 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3480 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3481 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3482 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3483 | cross_compiling=$ac_cv_prog_cxx_cross | |
3484 | ||
421173e6 PE |
3485 | cat > conftest.$ac_ext <<EOF |
3486 | #line 3487 "configure" | |
54fa7415 SK |
3487 | #include "confdefs.h" |
3488 | #include <math.h> | |
3489 | int main() { | |
11fc1858 | 3490 | __builtin_fsqrt(0); |
54fa7415 SK |
3491 | ; return 0; } |
3492 | EOF | |
421173e6 | 3493 | if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3494 | rm -rf conftest* |
421173e6 | 3495 | glibcpp_cv_func___builtin_fsqrt_use=yes |
54fa7415 SK |
3496 | else |
3497 | echo "configure: failed program was:" >&5 | |
3498 | cat conftest.$ac_ext >&5 | |
3499 | rm -rf conftest* | |
421173e6 | 3500 | glibcpp_cv_func___builtin_fsqrt_use=no |
54fa7415 SK |
3501 | fi |
3502 | rm -f conftest* | |
421173e6 | 3503 | ac_ext=c |
11fc1858 BK |
3504 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3505 | ac_cpp='$CPP $CPPFLAGS' | |
3506 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3507 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3508 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 3509 | |
421173e6 PE |
3510 | |
3511 | fi | |
3512 | ||
3513 | echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6 | |
3514 | if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then | |
11fc1858 | 3515 | echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6 |
421173e6 PE |
3516 | echo "configure:3517: checking for __builtin_fsqrt linkage" >&5 |
3517 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then | |
3518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3519 | else | |
3520 | ||
11fc1858 | 3521 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3522 | #line 3523 "configure" |
54fa7415 SK |
3523 | #include "confdefs.h" |
3524 | #include <math.h> | |
3525 | int main() { | |
11fc1858 | 3526 | __builtin_fsqrt(0); |
54fa7415 SK |
3527 | ; return 0; } |
3528 | EOF | |
421173e6 | 3529 | if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 3530 | rm -rf conftest* |
421173e6 | 3531 | glibcpp_cv_func___builtin_fsqrt_link=yes |
54fa7415 SK |
3532 | else |
3533 | echo "configure: failed program was:" >&5 | |
3534 | cat conftest.$ac_ext >&5 | |
3535 | rm -rf conftest* | |
421173e6 | 3536 | glibcpp_cv_func___builtin_fsqrt_link=no |
54fa7415 SK |
3537 | fi |
3538 | rm -f conftest* | |
421173e6 PE |
3539 | |
3540 | fi | |
3541 | ||
3542 | echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6 | |
3543 | if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then | |
11fc1858 BK |
3544 | ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3545 | cat >> confdefs.h <<EOF | |
3546 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3547 | EOF |
3548 | ||
11fc1858 | 3549 | fi |
54fa7415 | 3550 | fi |
11fc1858 BK |
3551 | |
3552 | ||
421173e6 PE |
3553 | echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6 |
3554 | echo "configure:3555: checking for __builtin_sqrtl declaration" >&5 | |
3555 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then | |
3556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3557 | else | |
11fc1858 | 3558 | |
421173e6 PE |
3559 | |
3560 | ac_ext=C | |
11fc1858 BK |
3561 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3562 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3563 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3564 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3565 | cross_compiling=$ac_cv_prog_cxx_cross | |
3566 | ||
421173e6 PE |
3567 | cat > conftest.$ac_ext <<EOF |
3568 | #line 3569 "configure" | |
54fa7415 SK |
3569 | #include "confdefs.h" |
3570 | #include <math.h> | |
3571 | int main() { | |
11fc1858 | 3572 | __builtin_sqrtl(0); |
54fa7415 SK |
3573 | ; return 0; } |
3574 | EOF | |
421173e6 | 3575 | if { (eval echo configure:3576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3576 | rm -rf conftest* |
421173e6 | 3577 | glibcpp_cv_func___builtin_sqrtl_use=yes |
54fa7415 SK |
3578 | else |
3579 | echo "configure: failed program was:" >&5 | |
3580 | cat conftest.$ac_ext >&5 | |
3581 | rm -rf conftest* | |
421173e6 | 3582 | glibcpp_cv_func___builtin_sqrtl_use=no |
54fa7415 SK |
3583 | fi |
3584 | rm -f conftest* | |
421173e6 | 3585 | ac_ext=c |
11fc1858 BK |
3586 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3587 | ac_cpp='$CPP $CPPFLAGS' | |
3588 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3589 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3590 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 3591 | |
421173e6 PE |
3592 | |
3593 | fi | |
3594 | ||
3595 | echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6 | |
3596 | if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then | |
11fc1858 | 3597 | echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6 |
421173e6 PE |
3598 | echo "configure:3599: checking for __builtin_sqrtl linkage" >&5 |
3599 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then | |
3600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3601 | else | |
3602 | ||
11fc1858 | 3603 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3604 | #line 3605 "configure" |
54fa7415 SK |
3605 | #include "confdefs.h" |
3606 | #include <math.h> | |
3607 | int main() { | |
11fc1858 | 3608 | __builtin_sqrtl(0); |
54fa7415 SK |
3609 | ; return 0; } |
3610 | EOF | |
421173e6 | 3611 | if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 3612 | rm -rf conftest* |
421173e6 | 3613 | glibcpp_cv_func___builtin_sqrtl_link=yes |
54fa7415 SK |
3614 | else |
3615 | echo "configure: failed program was:" >&5 | |
3616 | cat conftest.$ac_ext >&5 | |
3617 | rm -rf conftest* | |
421173e6 | 3618 | glibcpp_cv_func___builtin_sqrtl_link=no |
54fa7415 SK |
3619 | fi |
3620 | rm -f conftest* | |
421173e6 PE |
3621 | |
3622 | fi | |
3623 | ||
3624 | echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6 | |
3625 | if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then | |
11fc1858 BK |
3626 | ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3627 | cat >> confdefs.h <<EOF | |
3628 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3629 | EOF |
3630 | ||
11fc1858 | 3631 | fi |
54fa7415 | 3632 | fi |
11fc1858 BK |
3633 | |
3634 | ||
3635 | ||
421173e6 PE |
3636 | echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6 |
3637 | echo "configure:3638: checking for __builtin_sinf declaration" >&5 | |
3638 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then | |
3639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3640 | else | |
11fc1858 | 3641 | |
421173e6 PE |
3642 | |
3643 | ac_ext=C | |
11fc1858 BK |
3644 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3645 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3646 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3647 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3648 | cross_compiling=$ac_cv_prog_cxx_cross | |
3649 | ||
421173e6 PE |
3650 | cat > conftest.$ac_ext <<EOF |
3651 | #line 3652 "configure" | |
54fa7415 SK |
3652 | #include "confdefs.h" |
3653 | #include <math.h> | |
3654 | int main() { | |
11fc1858 | 3655 | __builtin_sinf(0); |
54fa7415 SK |
3656 | ; return 0; } |
3657 | EOF | |
421173e6 | 3658 | if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3659 | rm -rf conftest* |
421173e6 | 3660 | glibcpp_cv_func___builtin_sinf_use=yes |
54fa7415 SK |
3661 | else |
3662 | echo "configure: failed program was:" >&5 | |
3663 | cat conftest.$ac_ext >&5 | |
3664 | rm -rf conftest* | |
421173e6 | 3665 | glibcpp_cv_func___builtin_sinf_use=no |
54fa7415 SK |
3666 | fi |
3667 | rm -f conftest* | |
421173e6 | 3668 | ac_ext=c |
11fc1858 BK |
3669 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3670 | ac_cpp='$CPP $CPPFLAGS' | |
3671 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3672 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3673 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 3674 | |
421173e6 PE |
3675 | |
3676 | fi | |
3677 | ||
3678 | echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6 | |
3679 | if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then | |
11fc1858 | 3680 | echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6 |
421173e6 PE |
3681 | echo "configure:3682: checking for __builtin_sinf linkage" >&5 |
3682 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then | |
3683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3684 | else | |
3685 | ||
11fc1858 | 3686 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3687 | #line 3688 "configure" |
54fa7415 SK |
3688 | #include "confdefs.h" |
3689 | #include <math.h> | |
3690 | int main() { | |
11fc1858 | 3691 | __builtin_sinf(0); |
54fa7415 SK |
3692 | ; return 0; } |
3693 | EOF | |
421173e6 | 3694 | if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 3695 | rm -rf conftest* |
421173e6 | 3696 | glibcpp_cv_func___builtin_sinf_link=yes |
54fa7415 SK |
3697 | else |
3698 | echo "configure: failed program was:" >&5 | |
3699 | cat conftest.$ac_ext >&5 | |
3700 | rm -rf conftest* | |
421173e6 | 3701 | glibcpp_cv_func___builtin_sinf_link=no |
54fa7415 SK |
3702 | fi |
3703 | rm -f conftest* | |
421173e6 PE |
3704 | |
3705 | fi | |
3706 | ||
3707 | echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6 | |
3708 | if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then | |
11fc1858 BK |
3709 | ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3710 | cat >> confdefs.h <<EOF | |
3711 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3712 | EOF |
3713 | ||
11fc1858 | 3714 | fi |
54fa7415 | 3715 | fi |
11fc1858 BK |
3716 | |
3717 | ||
421173e6 PE |
3718 | echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6 |
3719 | echo "configure:3720: checking for __builtin_sin declaration" >&5 | |
3720 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then | |
3721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3722 | else | |
11fc1858 | 3723 | |
421173e6 PE |
3724 | |
3725 | ac_ext=C | |
11fc1858 BK |
3726 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3727 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3728 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3729 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3730 | cross_compiling=$ac_cv_prog_cxx_cross | |
3731 | ||
421173e6 PE |
3732 | cat > conftest.$ac_ext <<EOF |
3733 | #line 3734 "configure" | |
54fa7415 SK |
3734 | #include "confdefs.h" |
3735 | #include <math.h> | |
3736 | int main() { | |
11fc1858 | 3737 | __builtin_sin(0); |
54fa7415 SK |
3738 | ; return 0; } |
3739 | EOF | |
421173e6 | 3740 | if { (eval echo configure:3741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3741 | rm -rf conftest* |
421173e6 | 3742 | glibcpp_cv_func___builtin_sin_use=yes |
54fa7415 SK |
3743 | else |
3744 | echo "configure: failed program was:" >&5 | |
3745 | cat conftest.$ac_ext >&5 | |
3746 | rm -rf conftest* | |
421173e6 | 3747 | glibcpp_cv_func___builtin_sin_use=no |
54fa7415 SK |
3748 | fi |
3749 | rm -f conftest* | |
421173e6 | 3750 | ac_ext=c |
11fc1858 BK |
3751 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3752 | ac_cpp='$CPP $CPPFLAGS' | |
3753 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3754 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3755 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 3756 | |
421173e6 PE |
3757 | |
3758 | fi | |
3759 | ||
3760 | echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6 | |
3761 | if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then | |
11fc1858 | 3762 | echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6 |
421173e6 PE |
3763 | echo "configure:3764: checking for __builtin_sin linkage" >&5 |
3764 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then | |
3765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3766 | else | |
3767 | ||
11fc1858 | 3768 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3769 | #line 3770 "configure" |
54fa7415 SK |
3770 | #include "confdefs.h" |
3771 | #include <math.h> | |
3772 | int main() { | |
11fc1858 | 3773 | __builtin_sin(0); |
54fa7415 SK |
3774 | ; return 0; } |
3775 | EOF | |
421173e6 | 3776 | if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 3777 | rm -rf conftest* |
421173e6 | 3778 | glibcpp_cv_func___builtin_sin_link=yes |
54fa7415 SK |
3779 | else |
3780 | echo "configure: failed program was:" >&5 | |
3781 | cat conftest.$ac_ext >&5 | |
3782 | rm -rf conftest* | |
421173e6 | 3783 | glibcpp_cv_func___builtin_sin_link=no |
54fa7415 SK |
3784 | fi |
3785 | rm -f conftest* | |
421173e6 PE |
3786 | |
3787 | fi | |
3788 | ||
3789 | echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6 | |
3790 | if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then | |
11fc1858 BK |
3791 | ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3792 | cat >> confdefs.h <<EOF | |
3793 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3794 | EOF |
3795 | ||
11fc1858 | 3796 | fi |
54fa7415 | 3797 | fi |
11fc1858 BK |
3798 | |
3799 | ||
421173e6 PE |
3800 | echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6 |
3801 | echo "configure:3802: checking for __builtin_sinl declaration" >&5 | |
3802 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then | |
3803 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3804 | else | |
11fc1858 | 3805 | |
421173e6 PE |
3806 | |
3807 | ac_ext=C | |
11fc1858 BK |
3808 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3809 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3810 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3811 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3812 | cross_compiling=$ac_cv_prog_cxx_cross | |
3813 | ||
421173e6 PE |
3814 | cat > conftest.$ac_ext <<EOF |
3815 | #line 3816 "configure" | |
54fa7415 SK |
3816 | #include "confdefs.h" |
3817 | #include <math.h> | |
3818 | int main() { | |
11fc1858 | 3819 | __builtin_sinl(0); |
54fa7415 SK |
3820 | ; return 0; } |
3821 | EOF | |
421173e6 | 3822 | if { (eval echo configure:3823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3823 | rm -rf conftest* |
421173e6 | 3824 | glibcpp_cv_func___builtin_sinl_use=yes |
54fa7415 SK |
3825 | else |
3826 | echo "configure: failed program was:" >&5 | |
3827 | cat conftest.$ac_ext >&5 | |
3828 | rm -rf conftest* | |
421173e6 | 3829 | glibcpp_cv_func___builtin_sinl_use=no |
54fa7415 SK |
3830 | fi |
3831 | rm -f conftest* | |
421173e6 | 3832 | ac_ext=c |
11fc1858 BK |
3833 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3834 | ac_cpp='$CPP $CPPFLAGS' | |
3835 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3836 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3837 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 3838 | |
421173e6 PE |
3839 | |
3840 | fi | |
3841 | ||
3842 | echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6 | |
3843 | if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then | |
11fc1858 | 3844 | echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6 |
421173e6 PE |
3845 | echo "configure:3846: checking for __builtin_sinl linkage" >&5 |
3846 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then | |
3847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3848 | else | |
3849 | ||
11fc1858 | 3850 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3851 | #line 3852 "configure" |
54fa7415 SK |
3852 | #include "confdefs.h" |
3853 | #include <math.h> | |
3854 | int main() { | |
11fc1858 | 3855 | __builtin_sinl(0); |
54fa7415 SK |
3856 | ; return 0; } |
3857 | EOF | |
421173e6 | 3858 | if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 3859 | rm -rf conftest* |
421173e6 | 3860 | glibcpp_cv_func___builtin_sinl_link=yes |
54fa7415 SK |
3861 | else |
3862 | echo "configure: failed program was:" >&5 | |
3863 | cat conftest.$ac_ext >&5 | |
3864 | rm -rf conftest* | |
421173e6 | 3865 | glibcpp_cv_func___builtin_sinl_link=no |
54fa7415 SK |
3866 | fi |
3867 | rm -f conftest* | |
421173e6 PE |
3868 | |
3869 | fi | |
3870 | ||
3871 | echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6 | |
3872 | if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then | |
11fc1858 BK |
3873 | ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3874 | cat >> confdefs.h <<EOF | |
3875 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3876 | EOF |
3877 | ||
11fc1858 | 3878 | fi |
54fa7415 | 3879 | fi |
11fc1858 BK |
3880 | |
3881 | ||
3882 | ||
421173e6 PE |
3883 | echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6 |
3884 | echo "configure:3885: checking for __builtin_cosf declaration" >&5 | |
3885 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then | |
3886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3887 | else | |
11fc1858 | 3888 | |
421173e6 PE |
3889 | |
3890 | ac_ext=C | |
11fc1858 BK |
3891 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3892 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3893 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3894 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3895 | cross_compiling=$ac_cv_prog_cxx_cross | |
3896 | ||
421173e6 PE |
3897 | cat > conftest.$ac_ext <<EOF |
3898 | #line 3899 "configure" | |
54fa7415 SK |
3899 | #include "confdefs.h" |
3900 | #include <math.h> | |
3901 | int main() { | |
11fc1858 | 3902 | __builtin_cosf(0); |
54fa7415 SK |
3903 | ; return 0; } |
3904 | EOF | |
421173e6 | 3905 | if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3906 | rm -rf conftest* |
421173e6 | 3907 | glibcpp_cv_func___builtin_cosf_use=yes |
54fa7415 SK |
3908 | else |
3909 | echo "configure: failed program was:" >&5 | |
3910 | cat conftest.$ac_ext >&5 | |
3911 | rm -rf conftest* | |
421173e6 | 3912 | glibcpp_cv_func___builtin_cosf_use=no |
54fa7415 SK |
3913 | fi |
3914 | rm -f conftest* | |
421173e6 | 3915 | ac_ext=c |
11fc1858 BK |
3916 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3917 | ac_cpp='$CPP $CPPFLAGS' | |
3918 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3919 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3920 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 3921 | |
421173e6 PE |
3922 | |
3923 | fi | |
3924 | ||
3925 | echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6 | |
3926 | if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then | |
11fc1858 | 3927 | echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6 |
421173e6 PE |
3928 | echo "configure:3929: checking for __builtin_cosf linkage" >&5 |
3929 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then | |
3930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3931 | else | |
3932 | ||
11fc1858 | 3933 | cat > conftest.$ac_ext <<EOF |
421173e6 | 3934 | #line 3935 "configure" |
54fa7415 SK |
3935 | #include "confdefs.h" |
3936 | #include <math.h> | |
3937 | int main() { | |
11fc1858 | 3938 | __builtin_cosf(0); |
54fa7415 SK |
3939 | ; return 0; } |
3940 | EOF | |
421173e6 | 3941 | if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 3942 | rm -rf conftest* |
421173e6 | 3943 | glibcpp_cv_func___builtin_cosf_link=yes |
54fa7415 SK |
3944 | else |
3945 | echo "configure: failed program was:" >&5 | |
3946 | cat conftest.$ac_ext >&5 | |
3947 | rm -rf conftest* | |
421173e6 | 3948 | glibcpp_cv_func___builtin_cosf_link=no |
54fa7415 SK |
3949 | fi |
3950 | rm -f conftest* | |
421173e6 PE |
3951 | |
3952 | fi | |
3953 | ||
3954 | echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6 | |
3955 | if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then | |
11fc1858 BK |
3956 | ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3957 | cat >> confdefs.h <<EOF | |
3958 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
3959 | EOF |
3960 | ||
11fc1858 | 3961 | fi |
54fa7415 | 3962 | fi |
11fc1858 BK |
3963 | |
3964 | ||
421173e6 PE |
3965 | echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6 |
3966 | echo "configure:3967: checking for __builtin_cos declaration" >&5 | |
3967 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then | |
3968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3969 | else | |
11fc1858 | 3970 | |
421173e6 PE |
3971 | |
3972 | ac_ext=C | |
11fc1858 BK |
3973 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3974 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3975 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
3976 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3977 | cross_compiling=$ac_cv_prog_cxx_cross | |
3978 | ||
421173e6 PE |
3979 | cat > conftest.$ac_ext <<EOF |
3980 | #line 3981 "configure" | |
54fa7415 SK |
3981 | #include "confdefs.h" |
3982 | #include <math.h> | |
3983 | int main() { | |
11fc1858 | 3984 | __builtin_cos(0); |
54fa7415 SK |
3985 | ; return 0; } |
3986 | EOF | |
421173e6 | 3987 | if { (eval echo configure:3988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 3988 | rm -rf conftest* |
421173e6 | 3989 | glibcpp_cv_func___builtin_cos_use=yes |
54fa7415 SK |
3990 | else |
3991 | echo "configure: failed program was:" >&5 | |
3992 | cat conftest.$ac_ext >&5 | |
3993 | rm -rf conftest* | |
421173e6 | 3994 | glibcpp_cv_func___builtin_cos_use=no |
54fa7415 SK |
3995 | fi |
3996 | rm -f conftest* | |
421173e6 | 3997 | ac_ext=c |
11fc1858 BK |
3998 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
3999 | ac_cpp='$CPP $CPPFLAGS' | |
4000 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4001 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4002 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 4003 | |
421173e6 PE |
4004 | |
4005 | fi | |
4006 | ||
4007 | echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6 | |
4008 | if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then | |
11fc1858 | 4009 | echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6 |
421173e6 PE |
4010 | echo "configure:4011: checking for __builtin_cos linkage" >&5 |
4011 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then | |
4012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4013 | else | |
4014 | ||
11fc1858 | 4015 | cat > conftest.$ac_ext <<EOF |
421173e6 | 4016 | #line 4017 "configure" |
54fa7415 SK |
4017 | #include "confdefs.h" |
4018 | #include <math.h> | |
4019 | int main() { | |
11fc1858 | 4020 | __builtin_cos(0); |
54fa7415 SK |
4021 | ; return 0; } |
4022 | EOF | |
421173e6 | 4023 | if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 4024 | rm -rf conftest* |
421173e6 | 4025 | glibcpp_cv_func___builtin_cos_link=yes |
54fa7415 SK |
4026 | else |
4027 | echo "configure: failed program was:" >&5 | |
4028 | cat conftest.$ac_ext >&5 | |
4029 | rm -rf conftest* | |
421173e6 | 4030 | glibcpp_cv_func___builtin_cos_link=no |
54fa7415 SK |
4031 | fi |
4032 | rm -f conftest* | |
421173e6 PE |
4033 | |
4034 | fi | |
4035 | ||
4036 | echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6 | |
4037 | if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then | |
11fc1858 BK |
4038 | ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
4039 | cat >> confdefs.h <<EOF | |
4040 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
4041 | EOF |
4042 | ||
11fc1858 | 4043 | fi |
54fa7415 | 4044 | fi |
11fc1858 BK |
4045 | |
4046 | ||
421173e6 PE |
4047 | echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6 |
4048 | echo "configure:4049: checking for __builtin_cosl declaration" >&5 | |
4049 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then | |
4050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4051 | else | |
11fc1858 | 4052 | |
421173e6 PE |
4053 | |
4054 | ac_ext=C | |
11fc1858 BK |
4055 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4056 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4057 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4058 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4059 | cross_compiling=$ac_cv_prog_cxx_cross | |
4060 | ||
421173e6 PE |
4061 | cat > conftest.$ac_ext <<EOF |
4062 | #line 4063 "configure" | |
54fa7415 SK |
4063 | #include "confdefs.h" |
4064 | #include <math.h> | |
4065 | int main() { | |
11fc1858 | 4066 | __builtin_cosl(0); |
54fa7415 SK |
4067 | ; return 0; } |
4068 | EOF | |
421173e6 | 4069 | if { (eval echo configure:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54fa7415 | 4070 | rm -rf conftest* |
421173e6 | 4071 | glibcpp_cv_func___builtin_cosl_use=yes |
54fa7415 SK |
4072 | else |
4073 | echo "configure: failed program was:" >&5 | |
4074 | cat conftest.$ac_ext >&5 | |
4075 | rm -rf conftest* | |
421173e6 | 4076 | glibcpp_cv_func___builtin_cosl_use=no |
54fa7415 SK |
4077 | fi |
4078 | rm -f conftest* | |
421173e6 | 4079 | ac_ext=c |
11fc1858 BK |
4080 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4081 | ac_cpp='$CPP $CPPFLAGS' | |
4082 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4083 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4084 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 4085 | |
421173e6 PE |
4086 | |
4087 | fi | |
4088 | ||
4089 | echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6 | |
4090 | if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then | |
11fc1858 | 4091 | echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6 |
421173e6 PE |
4092 | echo "configure:4093: checking for __builtin_cosl linkage" >&5 |
4093 | if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then | |
4094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4095 | else | |
4096 | ||
11fc1858 | 4097 | cat > conftest.$ac_ext <<EOF |
421173e6 | 4098 | #line 4099 "configure" |
54fa7415 SK |
4099 | #include "confdefs.h" |
4100 | #include <math.h> | |
4101 | int main() { | |
11fc1858 | 4102 | __builtin_cosl(0); |
54fa7415 SK |
4103 | ; return 0; } |
4104 | EOF | |
421173e6 | 4105 | if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 4106 | rm -rf conftest* |
421173e6 | 4107 | glibcpp_cv_func___builtin_cosl_link=yes |
54fa7415 SK |
4108 | else |
4109 | echo "configure: failed program was:" >&5 | |
4110 | cat conftest.$ac_ext >&5 | |
4111 | rm -rf conftest* | |
421173e6 | 4112 | glibcpp_cv_func___builtin_cosl_link=no |
54fa7415 SK |
4113 | fi |
4114 | rm -f conftest* | |
421173e6 PE |
4115 | |
4116 | fi | |
4117 | ||
4118 | echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6 | |
4119 | if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then | |
11fc1858 BK |
4120 | ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
4121 | cat >> confdefs.h <<EOF | |
4122 | #define ${ac_tr_func} 1 | |
54fa7415 SK |
4123 | EOF |
4124 | ||
11fc1858 | 4125 | fi |
54fa7415 | 4126 | fi |
54fa7415 SK |
4127 | |
4128 | ||
11fc1858 BK |
4129 | dummyvar=no |
4130 | if test x$dummyvar = x"yes"; then | |
4131 | cat >> confdefs.h <<\EOF | |
4132 | #define HAVE___BUILTIN_ABS 1 | |
4133 | EOF | |
4134 | ||
4135 | cat >> confdefs.h <<\EOF | |
4136 | #define HAVE___BUILTIN_LABS 1 | |
4137 | EOF | |
4138 | ||
4139 | cat >> confdefs.h <<\EOF | |
4140 | #define HAVE___BUILTIN_COS 1 | |
4141 | EOF | |
4142 | ||
4143 | cat >> confdefs.h <<\EOF | |
4144 | #define HAVE___BUILTIN_COSF 1 | |
4145 | EOF | |
4146 | ||
4147 | cat >> confdefs.h <<\EOF | |
4148 | #define HAVE___BUILTIN_COSL 1 | |
4149 | EOF | |
4150 | ||
4151 | cat >> confdefs.h <<\EOF | |
4152 | #define HAVE___BUILTIN_FABS 1 | |
4153 | EOF | |
4154 | ||
4155 | cat >> confdefs.h <<\EOF | |
4156 | #define HAVE___BUILTIN_FABSF 1 | |
4157 | EOF | |
4158 | ||
4159 | cat >> confdefs.h <<\EOF | |
4160 | #define HAVE___BUILTIN_FABSL 1 | |
4161 | EOF | |
4162 | ||
4163 | cat >> confdefs.h <<\EOF | |
4164 | #define HAVE___BUILTIN_SIN 1 | |
4165 | EOF | |
4166 | ||
4167 | cat >> confdefs.h <<\EOF | |
4168 | #define HAVE___BUILTIN_SINF 1 | |
4169 | EOF | |
4170 | ||
4171 | cat >> confdefs.h <<\EOF | |
4172 | #define HAVE___BUILTIN_SINL 1 | |
4173 | EOF | |
4174 | ||
4175 | cat >> confdefs.h <<\EOF | |
4176 | #define HAVE___BUILTIN_FSQRT 1 | |
4177 | EOF | |
4178 | ||
4179 | cat >> confdefs.h <<\EOF | |
4180 | #define HAVE___BUILTIN_SQRTF 1 | |
4181 | EOF | |
4182 | ||
4183 | cat >> confdefs.h <<\EOF | |
4184 | #define HAVE___BUILTIN_SQRTL 1 | |
4185 | EOF | |
4186 | ||
4187 | fi | |
4188 | ||
54fa7415 | 4189 | |
38bd7296 BK |
4190 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
4191 | ac_save_CXXFLAGS="$CXXFLAGS" | |
4f76382d | 4192 | CXXFLAGS='-fno-builtins -D_GNU_SOURCE' |
2f103494 | 4193 | |
aac350aa | 4194 | echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 |
421173e6 | 4195 | echo "configure:4196: checking for sin in -lm" >&5 |
54fa7415 SK |
4196 | ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` |
4197 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4199 | else | |
4200 | ac_save_LIBS="$LIBS" | |
4201 | LIBS="-lm $LIBS" | |
4202 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 4203 | #line 4204 "configure" |
54fa7415 SK |
4204 | #include "confdefs.h" |
4205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4206 | /* We use char because int might match the return type of a gcc2 | |
4207 | builtin and then its argument prototype would still apply. */ | |
4208 | char sin(); | |
4209 | ||
4210 | int main() { | |
4211 | sin() | |
4212 | ; return 0; } | |
4213 | EOF | |
421173e6 | 4214 | if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 SK |
4215 | rm -rf conftest* |
4216 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4217 | else | |
4218 | echo "configure: failed program was:" >&5 | |
4219 | cat conftest.$ac_ext >&5 | |
4220 | rm -rf conftest* | |
4221 | eval "ac_cv_lib_$ac_lib_var=no" | |
4222 | fi | |
4223 | rm -f conftest* | |
4224 | LIBS="$ac_save_LIBS" | |
4225 | ||
4226 | fi | |
4227 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4228 | echo "$ac_t""yes" 1>&6 | |
4229 | libm="-lm" | |
4230 | else | |
4231 | echo "$ac_t""no" 1>&6 | |
4232 | fi | |
4233 | ||
38bd7296 | 4234 | ac_save_LIBS="$LIBS" |
54fa7415 SK |
4235 | LIBS="$LIBS $libm" |
4236 | ||
38bd7296 | 4237 | for ac_func in strtof strtold |
54fa7415 SK |
4238 | do |
4239 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 4240 | echo "configure:4241: checking for $ac_func" >&5 |
54fa7415 SK |
4241 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4243 | else | |
4244 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 4245 | #line 4246 "configure" |
54fa7415 SK |
4246 | #include "confdefs.h" |
4247 | /* System header to define __stub macros and hopefully few prototypes, | |
4248 | which can conflict with char $ac_func(); below. */ | |
4249 | #include <assert.h> | |
4250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4251 | /* We use char because int might match the return type of a gcc2 | |
4252 | builtin and then its argument prototype would still apply. */ | |
4253 | char $ac_func(); | |
4254 | ||
4255 | int main() { | |
4256 | ||
4257 | /* The GNU C library defines this for functions which it implements | |
4258 | to always fail with ENOSYS. Some functions are actually named | |
4259 | something starting with __ and the normal name is an alias. */ | |
4260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4261 | choke me | |
4262 | #else | |
4263 | $ac_func(); | |
4264 | #endif | |
4265 | ||
4266 | ; return 0; } | |
4267 | EOF | |
421173e6 | 4268 | if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 SK |
4269 | rm -rf conftest* |
4270 | eval "ac_cv_func_$ac_func=yes" | |
4271 | else | |
4272 | echo "configure: failed program was:" >&5 | |
4273 | cat conftest.$ac_ext >&5 | |
4274 | rm -rf conftest* | |
4275 | eval "ac_cv_func_$ac_func=no" | |
4276 | fi | |
4277 | rm -f conftest* | |
4278 | fi | |
4279 | ||
4280 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4281 | echo "$ac_t""yes" 1>&6 | |
4282 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4283 | cat >> confdefs.h <<EOF | |
4284 | #define $ac_tr_func 1 | |
4285 | EOF | |
4286 | ||
4287 | else | |
4288 | echo "$ac_t""no" 1>&6 | |
54fa7415 SK |
4289 | fi |
4290 | done | |
4291 | ||
4292 | ||
38bd7296 | 4293 | |
421173e6 PE |
4294 | echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6 |
4295 | echo "configure:4296: checking for isinf declaration" >&5 | |
4296 | if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then | |
4297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4298 | else | |
38bd7296 | 4299 | |
421173e6 PE |
4300 | |
4301 | ac_ext=C | |
38bd7296 BK |
4302 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4303 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4304 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4305 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4306 | cross_compiling=$ac_cv_prog_cxx_cross | |
4307 | ||
421173e6 PE |
4308 | cat > conftest.$ac_ext <<EOF |
4309 | #line 4310 "configure" | |
38bd7296 BK |
4310 | #include "confdefs.h" |
4311 | #include <math.h> | |
4312 | int main() { | |
4313 | isinf(0); | |
4314 | ; return 0; } | |
4315 | EOF | |
421173e6 | 4316 | if { (eval echo configure:4317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 4317 | rm -rf conftest* |
421173e6 | 4318 | glibcpp_cv_func_isinf_use=yes |
38bd7296 BK |
4319 | else |
4320 | echo "configure: failed program was:" >&5 | |
4321 | cat conftest.$ac_ext >&5 | |
4322 | rm -rf conftest* | |
421173e6 | 4323 | glibcpp_cv_func_isinf_use=no |
38bd7296 BK |
4324 | fi |
4325 | rm -f conftest* | |
421173e6 | 4326 | ac_ext=c |
38bd7296 BK |
4327 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4328 | ac_cpp='$CPP $CPPFLAGS' | |
4329 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4330 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4331 | cross_compiling=$ac_cv_prog_cc_cross | |
4332 | ||
421173e6 PE |
4333 | |
4334 | fi | |
4335 | ||
4336 | echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6 | |
4337 | if test x$glibcpp_cv_func_isinf_use = x"yes"; then | |
38bd7296 | 4338 | for ac_func in isinf |
2f103494 BK |
4339 | do |
4340 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 4341 | echo "configure:4342: checking for $ac_func" >&5 |
2f103494 | 4342 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
54fa7415 SK |
4343 | echo $ac_n "(cached) $ac_c" 1>&6 |
4344 | else | |
4345 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 4346 | #line 4347 "configure" |
54fa7415 SK |
4347 | #include "confdefs.h" |
4348 | /* System header to define __stub macros and hopefully few prototypes, | |
2f103494 | 4349 | which can conflict with char $ac_func(); below. */ |
54fa7415 SK |
4350 | #include <assert.h> |
4351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4352 | /* We use char because int might match the return type of a gcc2 | |
4353 | builtin and then its argument prototype would still apply. */ | |
2f103494 | 4354 | char $ac_func(); |
54fa7415 SK |
4355 | |
4356 | int main() { | |
4357 | ||
4358 | /* The GNU C library defines this for functions which it implements | |
4359 | to always fail with ENOSYS. Some functions are actually named | |
4360 | something starting with __ and the normal name is an alias. */ | |
2f103494 | 4361 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
54fa7415 SK |
4362 | choke me |
4363 | #else | |
2f103494 | 4364 | $ac_func(); |
54fa7415 SK |
4365 | #endif |
4366 | ||
4367 | ; return 0; } | |
4368 | EOF | |
421173e6 | 4369 | if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 4370 | rm -rf conftest* |
2f103494 | 4371 | eval "ac_cv_func_$ac_func=yes" |
54fa7415 SK |
4372 | else |
4373 | echo "configure: failed program was:" >&5 | |
4374 | cat conftest.$ac_ext >&5 | |
4375 | rm -rf conftest* | |
2f103494 | 4376 | eval "ac_cv_func_$ac_func=no" |
54fa7415 SK |
4377 | fi |
4378 | rm -f conftest* | |
4379 | fi | |
4380 | ||
2f103494 | 4381 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
54fa7415 | 4382 | echo "$ac_t""yes" 1>&6 |
2f103494 BK |
4383 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
4384 | cat >> confdefs.h <<EOF | |
4385 | #define $ac_tr_func 1 | |
4386 | EOF | |
4387 | ||
4388 | else | |
4389 | echo "$ac_t""no" 1>&6 | |
4390 | fi | |
4391 | done | |
38bd7296 BK |
4392 | |
4393 | fi | |
2f103494 | 4394 | |
38bd7296 | 4395 | |
421173e6 PE |
4396 | echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6 |
4397 | echo "configure:4398: checking for isnan declaration" >&5 | |
4398 | if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then | |
4399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4400 | else | |
38bd7296 | 4401 | |
421173e6 PE |
4402 | |
4403 | ac_ext=C | |
38bd7296 BK |
4404 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4405 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4406 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4407 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4408 | cross_compiling=$ac_cv_prog_cxx_cross | |
2f103494 | 4409 | |
421173e6 PE |
4410 | cat > conftest.$ac_ext <<EOF |
4411 | #line 4412 "configure" | |
38bd7296 BK |
4412 | #include "confdefs.h" |
4413 | #include <math.h> | |
4414 | int main() { | |
4415 | isnan(0); | |
4416 | ; return 0; } | |
4417 | EOF | |
421173e6 | 4418 | if { (eval echo configure:4419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 4419 | rm -rf conftest* |
421173e6 | 4420 | glibcpp_cv_func_isnan_use=yes |
38bd7296 BK |
4421 | else |
4422 | echo "configure: failed program was:" >&5 | |
4423 | cat conftest.$ac_ext >&5 | |
4424 | rm -rf conftest* | |
421173e6 | 4425 | glibcpp_cv_func_isnan_use=no |
38bd7296 BK |
4426 | fi |
4427 | rm -f conftest* | |
421173e6 | 4428 | ac_ext=c |
38bd7296 BK |
4429 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4430 | ac_cpp='$CPP $CPPFLAGS' | |
4431 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4432 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4433 | cross_compiling=$ac_cv_prog_cc_cross | |
2f103494 | 4434 | |
421173e6 PE |
4435 | |
4436 | fi | |
4437 | ||
4438 | echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6 | |
4439 | if test x$glibcpp_cv_func_isnan_use = x"yes"; then | |
38bd7296 | 4440 | for ac_func in isnan |
54fa7415 SK |
4441 | do |
4442 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 4443 | echo "configure:4444: checking for $ac_func" >&5 |
54fa7415 SK |
4444 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4446 | else | |
4447 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 4448 | #line 4449 "configure" |
54fa7415 SK |
4449 | #include "confdefs.h" |
4450 | /* System header to define __stub macros and hopefully few prototypes, | |
4451 | which can conflict with char $ac_func(); below. */ | |
4452 | #include <assert.h> | |
4453 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4454 | /* We use char because int might match the return type of a gcc2 | |
4455 | builtin and then its argument prototype would still apply. */ | |
4456 | char $ac_func(); | |
4457 | ||
4458 | int main() { | |
4459 | ||
4460 | /* The GNU C library defines this for functions which it implements | |
4461 | to always fail with ENOSYS. Some functions are actually named | |
4462 | something starting with __ and the normal name is an alias. */ | |
4463 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4464 | choke me | |
4465 | #else | |
4466 | $ac_func(); | |
4467 | #endif | |
4468 | ||
4469 | ; return 0; } | |
4470 | EOF | |
421173e6 | 4471 | if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 SK |
4472 | rm -rf conftest* |
4473 | eval "ac_cv_func_$ac_func=yes" | |
4474 | else | |
4475 | echo "configure: failed program was:" >&5 | |
4476 | cat conftest.$ac_ext >&5 | |
4477 | rm -rf conftest* | |
4478 | eval "ac_cv_func_$ac_func=no" | |
4479 | fi | |
4480 | rm -f conftest* | |
4481 | fi | |
4482 | ||
4483 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4484 | echo "$ac_t""yes" 1>&6 | |
4485 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4486 | cat >> confdefs.h <<EOF | |
4487 | #define $ac_tr_func 1 | |
4488 | EOF | |
4489 | ||
4490 | else | |
4491 | echo "$ac_t""no" 1>&6 | |
54fa7415 SK |
4492 | fi |
4493 | done | |
38bd7296 BK |
4494 | |
4495 | fi | |
2f103494 BK |
4496 | |
4497 | ||
421173e6 PE |
4498 | echo $ac_n "checking for finite declaration""... $ac_c" 1>&6 |
4499 | echo "configure:4500: checking for finite declaration" >&5 | |
4500 | if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then | |
4501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4502 | else | |
38bd7296 | 4503 | |
421173e6 PE |
4504 | |
4505 | ac_ext=C | |
38bd7296 BK |
4506 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4507 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4508 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4509 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4510 | cross_compiling=$ac_cv_prog_cxx_cross | |
4511 | ||
421173e6 PE |
4512 | cat > conftest.$ac_ext <<EOF |
4513 | #line 4514 "configure" | |
2f103494 | 4514 | #include "confdefs.h" |
38bd7296 BK |
4515 | #include <math.h> |
4516 | int main() { | |
4517 | finite(0); | |
4518 | ; return 0; } | |
2f103494 | 4519 | EOF |
421173e6 | 4520 | if { (eval echo configure:4521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2f103494 | 4521 | rm -rf conftest* |
421173e6 | 4522 | glibcpp_cv_func_finite_use=yes |
2f103494 | 4523 | else |
2f103494 BK |
4524 | echo "configure: failed program was:" >&5 |
4525 | cat conftest.$ac_ext >&5 | |
4526 | rm -rf conftest* | |
421173e6 | 4527 | glibcpp_cv_func_finite_use=no |
2f103494 BK |
4528 | fi |
4529 | rm -f conftest* | |
421173e6 | 4530 | ac_ext=c |
38bd7296 BK |
4531 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4532 | ac_cpp='$CPP $CPPFLAGS' | |
4533 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4534 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4535 | cross_compiling=$ac_cv_prog_cc_cross | |
54fa7415 | 4536 | |
421173e6 PE |
4537 | |
4538 | fi | |
4539 | ||
4540 | echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6 | |
4541 | if test x$glibcpp_cv_func_finite_use = x"yes"; then | |
38bd7296 | 4542 | for ac_func in finite |
6c820cf2 BC |
4543 | do |
4544 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 4545 | echo "configure:4546: checking for $ac_func" >&5 |
6c820cf2 BC |
4546 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4547 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4548 | else | |
4549 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 4550 | #line 4551 "configure" |
6c820cf2 BC |
4551 | #include "confdefs.h" |
4552 | /* System header to define __stub macros and hopefully few prototypes, | |
4553 | which can conflict with char $ac_func(); below. */ | |
4554 | #include <assert.h> | |
4555 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4556 | /* We use char because int might match the return type of a gcc2 | |
4557 | builtin and then its argument prototype would still apply. */ | |
4558 | char $ac_func(); | |
4559 | ||
4560 | int main() { | |
4561 | ||
4562 | /* The GNU C library defines this for functions which it implements | |
4563 | to always fail with ENOSYS. Some functions are actually named | |
4564 | something starting with __ and the normal name is an alias. */ | |
4565 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4566 | choke me | |
4567 | #else | |
4568 | $ac_func(); | |
4569 | #endif | |
4570 | ||
4571 | ; return 0; } | |
4572 | EOF | |
421173e6 | 4573 | if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6c820cf2 BC |
4574 | rm -rf conftest* |
4575 | eval "ac_cv_func_$ac_func=yes" | |
4576 | else | |
4577 | echo "configure: failed program was:" >&5 | |
4578 | cat conftest.$ac_ext >&5 | |
4579 | rm -rf conftest* | |
4580 | eval "ac_cv_func_$ac_func=no" | |
4581 | fi | |
4582 | rm -f conftest* | |
4583 | fi | |
4584 | ||
4585 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4586 | echo "$ac_t""yes" 1>&6 | |
4587 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4588 | cat >> confdefs.h <<EOF | |
4589 | #define $ac_tr_func 1 | |
4590 | EOF | |
4591 | ||
4592 | else | |
4593 | echo "$ac_t""no" 1>&6 | |
6c820cf2 BC |
4594 | fi |
4595 | done | |
38bd7296 BK |
4596 | |
4597 | fi | |
6c820cf2 | 4598 | |
38bd7296 | 4599 | |
421173e6 PE |
4600 | echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6 |
4601 | echo "configure:4602: checking for copysign declaration" >&5 | |
4602 | if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then | |
4603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4604 | else | |
38bd7296 | 4605 | |
421173e6 PE |
4606 | |
4607 | ac_ext=C | |
38bd7296 BK |
4608 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4609 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4610 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4611 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4612 | cross_compiling=$ac_cv_prog_cxx_cross | |
6c820cf2 | 4613 | |
421173e6 PE |
4614 | cat > conftest.$ac_ext <<EOF |
4615 | #line 4616 "configure" | |
38bd7296 BK |
4616 | #include "confdefs.h" |
4617 | #include <math.h> | |
4618 | int main() { | |
4619 | copysign(0, 0); | |
4620 | ; return 0; } | |
4621 | EOF | |
421173e6 | 4622 | if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 4623 | rm -rf conftest* |
421173e6 | 4624 | glibcpp_cv_func_copysign_use=yes |
38bd7296 BK |
4625 | else |
4626 | echo "configure: failed program was:" >&5 | |
4627 | cat conftest.$ac_ext >&5 | |
4628 | rm -rf conftest* | |
421173e6 | 4629 | glibcpp_cv_func_copysign_use=no |
38bd7296 BK |
4630 | fi |
4631 | rm -f conftest* | |
421173e6 | 4632 | ac_ext=c |
38bd7296 BK |
4633 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4634 | ac_cpp='$CPP $CPPFLAGS' | |
4635 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4636 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4637 | cross_compiling=$ac_cv_prog_cc_cross | |
2f103494 | 4638 | |
421173e6 PE |
4639 | |
4640 | fi | |
4641 | ||
4642 | echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6 | |
4643 | if test x$glibcpp_cv_func_copysign_use = x"yes"; then | |
38bd7296 BK |
4644 | for ac_func in copysign |
4645 | do | |
4646 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 4647 | echo "configure:4648: checking for $ac_func" >&5 |
38bd7296 | 4648 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
54fa7415 SK |
4649 | echo $ac_n "(cached) $ac_c" 1>&6 |
4650 | else | |
4651 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 4652 | #line 4653 "configure" |
54fa7415 SK |
4653 | #include "confdefs.h" |
4654 | /* System header to define __stub macros and hopefully few prototypes, | |
38bd7296 | 4655 | which can conflict with char $ac_func(); below. */ |
54fa7415 SK |
4656 | #include <assert.h> |
4657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4658 | /* We use char because int might match the return type of a gcc2 | |
4659 | builtin and then its argument prototype would still apply. */ | |
38bd7296 | 4660 | char $ac_func(); |
54fa7415 SK |
4661 | |
4662 | int main() { | |
4663 | ||
4664 | /* The GNU C library defines this for functions which it implements | |
4665 | to always fail with ENOSYS. Some functions are actually named | |
4666 | something starting with __ and the normal name is an alias. */ | |
38bd7296 | 4667 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
54fa7415 SK |
4668 | choke me |
4669 | #else | |
38bd7296 | 4670 | $ac_func(); |
54fa7415 SK |
4671 | #endif |
4672 | ||
4673 | ; return 0; } | |
4674 | EOF | |
421173e6 | 4675 | if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
54fa7415 | 4676 | rm -rf conftest* |
38bd7296 | 4677 | eval "ac_cv_func_$ac_func=yes" |
54fa7415 SK |
4678 | else |
4679 | echo "configure: failed program was:" >&5 | |
4680 | cat conftest.$ac_ext >&5 | |
4681 | rm -rf conftest* | |
38bd7296 | 4682 | eval "ac_cv_func_$ac_func=no" |
b2dad0e3 BK |
4683 | fi |
4684 | rm -f conftest* | |
4685 | fi | |
4686 | ||
38bd7296 | 4687 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
b2dad0e3 | 4688 | echo "$ac_t""yes" 1>&6 |
38bd7296 BK |
4689 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
4690 | cat >> confdefs.h <<EOF | |
4691 | #define $ac_tr_func 1 | |
4692 | EOF | |
4693 | ||
4694 | else | |
4695 | echo "$ac_t""no" 1>&6 | |
4696 | fi | |
4697 | done | |
4698 | ||
4699 | fi | |
4700 | ||
4701 | ||
421173e6 PE |
4702 | echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6 |
4703 | echo "configure:4704: checking for sincos declaration" >&5 | |
4704 | if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then | |
4705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4706 | else | |
38bd7296 | 4707 | |
421173e6 PE |
4708 | |
4709 | ac_ext=C | |
38bd7296 BK |
4710 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4711 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4712 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4713 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4714 | cross_compiling=$ac_cv_prog_cxx_cross | |
4715 | ||
421173e6 PE |
4716 | cat > conftest.$ac_ext <<EOF |
4717 | #line 4718 "configure" | |
38bd7296 BK |
4718 | #include "confdefs.h" |
4719 | #include <math.h> | |
4720 | int main() { | |
4721 | sincos(0, 0, 0); | |
4722 | ; return 0; } | |
4723 | EOF | |
421173e6 | 4724 | if { (eval echo configure:4725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 4725 | rm -rf conftest* |
421173e6 | 4726 | glibcpp_cv_func_sincos_use=yes |
38bd7296 BK |
4727 | else |
4728 | echo "configure: failed program was:" >&5 | |
4729 | cat conftest.$ac_ext >&5 | |
4730 | rm -rf conftest* | |
421173e6 | 4731 | glibcpp_cv_func_sincos_use=no |
38bd7296 BK |
4732 | fi |
4733 | rm -f conftest* | |
421173e6 | 4734 | ac_ext=c |
38bd7296 BK |
4735 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4736 | ac_cpp='$CPP $CPPFLAGS' | |
4737 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4738 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4739 | cross_compiling=$ac_cv_prog_cc_cross | |
4740 | ||
421173e6 PE |
4741 | |
4742 | fi | |
4743 | ||
4744 | echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6 | |
4745 | if test x$glibcpp_cv_func_sincos_use = x"yes"; then | |
38bd7296 | 4746 | for ac_func in sincos |
b2dad0e3 BK |
4747 | do |
4748 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 4749 | echo "configure:4750: checking for $ac_func" >&5 |
b2dad0e3 BK |
4750 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4752 | else | |
4753 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 4754 | #line 4755 "configure" |
b2dad0e3 BK |
4755 | #include "confdefs.h" |
4756 | /* System header to define __stub macros and hopefully few prototypes, | |
4757 | which can conflict with char $ac_func(); below. */ | |
4758 | #include <assert.h> | |
4759 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4760 | /* We use char because int might match the return type of a gcc2 | |
4761 | builtin and then its argument prototype would still apply. */ | |
4762 | char $ac_func(); | |
4763 | ||
4764 | int main() { | |
4765 | ||
4766 | /* The GNU C library defines this for functions which it implements | |
4767 | to always fail with ENOSYS. Some functions are actually named | |
4768 | something starting with __ and the normal name is an alias. */ | |
4769 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4770 | choke me | |
4771 | #else | |
4772 | $ac_func(); | |
4773 | #endif | |
4774 | ||
4775 | ; return 0; } | |
4776 | EOF | |
421173e6 | 4777 | if { (eval echo configure:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 BK |
4778 | rm -rf conftest* |
4779 | eval "ac_cv_func_$ac_func=yes" | |
4780 | else | |
4781 | echo "configure: failed program was:" >&5 | |
4782 | cat conftest.$ac_ext >&5 | |
4783 | rm -rf conftest* | |
4784 | eval "ac_cv_func_$ac_func=no" | |
4785 | fi | |
4786 | rm -f conftest* | |
4787 | fi | |
4788 | ||
4789 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4790 | echo "$ac_t""yes" 1>&6 | |
4791 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4792 | cat >> confdefs.h <<EOF | |
4793 | #define $ac_tr_func 1 | |
4794 | EOF | |
4795 | ||
4796 | else | |
4797 | echo "$ac_t""no" 1>&6 | |
4798 | fi | |
4799 | done | |
38bd7296 BK |
4800 | |
4801 | fi | |
b2dad0e3 | 4802 | |
2f103494 | 4803 | |
421173e6 PE |
4804 | echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6 |
4805 | echo "configure:4806: checking for fpclass declaration" >&5 | |
4806 | if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then | |
4807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4808 | else | |
2f103494 | 4809 | |
421173e6 PE |
4810 | |
4811 | ac_ext=C | |
2f103494 BK |
4812 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4813 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4814 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4815 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4816 | cross_compiling=$ac_cv_prog_cxx_cross | |
4817 | ||
421173e6 PE |
4818 | cat > conftest.$ac_ext <<EOF |
4819 | #line 4820 "configure" | |
2f103494 | 4820 | #include "confdefs.h" |
38bd7296 | 4821 | #include <math.h> |
2f103494 | 4822 | int main() { |
38bd7296 | 4823 | fpclass(0); |
2f103494 BK |
4824 | ; return 0; } |
4825 | EOF | |
421173e6 | 4826 | if { (eval echo configure:4827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2f103494 | 4827 | rm -rf conftest* |
421173e6 | 4828 | glibcpp_cv_func_fpclass_use=yes |
38bd7296 BK |
4829 | else |
4830 | echo "configure: failed program was:" >&5 | |
4831 | cat conftest.$ac_ext >&5 | |
4832 | rm -rf conftest* | |
421173e6 | 4833 | glibcpp_cv_func_fpclass_use=no |
38bd7296 BK |
4834 | fi |
4835 | rm -f conftest* | |
421173e6 | 4836 | ac_ext=c |
38bd7296 BK |
4837 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4838 | ac_cpp='$CPP $CPPFLAGS' | |
4839 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4840 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4841 | cross_compiling=$ac_cv_prog_cc_cross | |
4842 | ||
421173e6 PE |
4843 | |
4844 | fi | |
4845 | ||
4846 | echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6 | |
4847 | if test x$glibcpp_cv_func_fpclass_use = x"yes"; then | |
38bd7296 BK |
4848 | for ac_func in fpclass |
4849 | do | |
4850 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 4851 | echo "configure:4852: checking for $ac_func" >&5 |
38bd7296 BK |
4852 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4854 | else | |
4855 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 4856 | #line 4857 "configure" |
38bd7296 BK |
4857 | #include "confdefs.h" |
4858 | /* System header to define __stub macros and hopefully few prototypes, | |
4859 | which can conflict with char $ac_func(); below. */ | |
4860 | #include <assert.h> | |
4861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4862 | /* We use char because int might match the return type of a gcc2 | |
4863 | builtin and then its argument prototype would still apply. */ | |
4864 | char $ac_func(); | |
4865 | ||
4866 | int main() { | |
4867 | ||
4868 | /* The GNU C library defines this for functions which it implements | |
4869 | to always fail with ENOSYS. Some functions are actually named | |
4870 | something starting with __ and the normal name is an alias. */ | |
4871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4872 | choke me | |
4873 | #else | |
4874 | $ac_func(); | |
4875 | #endif | |
4876 | ||
4877 | ; return 0; } | |
4878 | EOF | |
421173e6 | 4879 | if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
4880 | rm -rf conftest* |
4881 | eval "ac_cv_func_$ac_func=yes" | |
4882 | else | |
4883 | echo "configure: failed program was:" >&5 | |
4884 | cat conftest.$ac_ext >&5 | |
4885 | rm -rf conftest* | |
4886 | eval "ac_cv_func_$ac_func=no" | |
4887 | fi | |
4888 | rm -f conftest* | |
4889 | fi | |
4890 | ||
4891 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4892 | echo "$ac_t""yes" 1>&6 | |
4893 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4894 | cat >> confdefs.h <<EOF | |
4895 | #define $ac_tr_func 1 | |
4896 | EOF | |
4897 | ||
4898 | else | |
4899 | echo "$ac_t""no" 1>&6 | |
4900 | fi | |
4901 | done | |
4902 | ||
4903 | fi | |
4904 | ||
4905 | ||
421173e6 PE |
4906 | echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6 |
4907 | echo "configure:4908: checking for qfpclass declaration" >&5 | |
4908 | if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then | |
4909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4910 | else | |
38bd7296 | 4911 | |
421173e6 PE |
4912 | |
4913 | ac_ext=C | |
38bd7296 BK |
4914 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4915 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4916 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4917 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4918 | cross_compiling=$ac_cv_prog_cxx_cross | |
4919 | ||
421173e6 PE |
4920 | cat > conftest.$ac_ext <<EOF |
4921 | #line 4922 "configure" | |
38bd7296 BK |
4922 | #include "confdefs.h" |
4923 | #include <math.h> | |
4924 | int main() { | |
4925 | qfpclass(0); | |
4926 | ; return 0; } | |
4927 | EOF | |
421173e6 | 4928 | if { (eval echo configure:4929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 4929 | rm -rf conftest* |
421173e6 | 4930 | glibcpp_cv_func_qfpclass_use=yes |
38bd7296 BK |
4931 | else |
4932 | echo "configure: failed program was:" >&5 | |
4933 | cat conftest.$ac_ext >&5 | |
4934 | rm -rf conftest* | |
421173e6 | 4935 | glibcpp_cv_func_qfpclass_use=no |
38bd7296 BK |
4936 | fi |
4937 | rm -f conftest* | |
421173e6 | 4938 | ac_ext=c |
38bd7296 BK |
4939 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4940 | ac_cpp='$CPP $CPPFLAGS' | |
4941 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
4942 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
4943 | cross_compiling=$ac_cv_prog_cc_cross | |
4944 | ||
421173e6 PE |
4945 | |
4946 | fi | |
4947 | ||
4948 | echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6 | |
4949 | if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then | |
38bd7296 BK |
4950 | for ac_func in qfpclass |
4951 | do | |
4952 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 4953 | echo "configure:4954: checking for $ac_func" >&5 |
38bd7296 BK |
4954 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4956 | else | |
4957 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 4958 | #line 4959 "configure" |
38bd7296 BK |
4959 | #include "confdefs.h" |
4960 | /* System header to define __stub macros and hopefully few prototypes, | |
4961 | which can conflict with char $ac_func(); below. */ | |
4962 | #include <assert.h> | |
4963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4964 | /* We use char because int might match the return type of a gcc2 | |
4965 | builtin and then its argument prototype would still apply. */ | |
4966 | char $ac_func(); | |
4967 | ||
4968 | int main() { | |
4969 | ||
4970 | /* The GNU C library defines this for functions which it implements | |
4971 | to always fail with ENOSYS. Some functions are actually named | |
4972 | something starting with __ and the normal name is an alias. */ | |
4973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4974 | choke me | |
4975 | #else | |
4976 | $ac_func(); | |
4977 | #endif | |
4978 | ||
4979 | ; return 0; } | |
4980 | EOF | |
421173e6 | 4981 | if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
4982 | rm -rf conftest* |
4983 | eval "ac_cv_func_$ac_func=yes" | |
4984 | else | |
4985 | echo "configure: failed program was:" >&5 | |
4986 | cat conftest.$ac_ext >&5 | |
4987 | rm -rf conftest* | |
4988 | eval "ac_cv_func_$ac_func=no" | |
4989 | fi | |
4990 | rm -f conftest* | |
4991 | fi | |
4992 | ||
4993 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4994 | echo "$ac_t""yes" 1>&6 | |
4995 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4996 | cat >> confdefs.h <<EOF | |
4997 | #define $ac_tr_func 1 | |
4998 | EOF | |
4999 | ||
5000 | else | |
5001 | echo "$ac_t""no" 1>&6 | |
5002 | fi | |
5003 | done | |
5004 | ||
5005 | fi | |
5006 | ||
5007 | ||
5008 | ||
421173e6 PE |
5009 | echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6 |
5010 | echo "configure:5011: checking for isnanf declaration" >&5 | |
5011 | if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then | |
5012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5013 | else | |
38bd7296 | 5014 | |
421173e6 PE |
5015 | |
5016 | ac_ext=C | |
38bd7296 BK |
5017 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5018 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5019 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5020 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5021 | cross_compiling=$ac_cv_prog_cxx_cross | |
5022 | ||
421173e6 PE |
5023 | cat > conftest.$ac_ext <<EOF |
5024 | #line 5025 "configure" | |
38bd7296 BK |
5025 | #include "confdefs.h" |
5026 | #include <math.h> | |
5027 | int main() { | |
5028 | isnanf(0); | |
5029 | ; return 0; } | |
5030 | EOF | |
421173e6 | 5031 | if { (eval echo configure:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5032 | rm -rf conftest* |
421173e6 | 5033 | glibcpp_cv_func_isnanf_use=yes |
38bd7296 BK |
5034 | else |
5035 | echo "configure: failed program was:" >&5 | |
5036 | cat conftest.$ac_ext >&5 | |
5037 | rm -rf conftest* | |
421173e6 | 5038 | glibcpp_cv_func_isnanf_use=no |
38bd7296 BK |
5039 | fi |
5040 | rm -f conftest* | |
421173e6 | 5041 | ac_ext=c |
38bd7296 BK |
5042 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5043 | ac_cpp='$CPP $CPPFLAGS' | |
5044 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5045 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5046 | cross_compiling=$ac_cv_prog_cc_cross | |
5047 | ||
421173e6 PE |
5048 | |
5049 | fi | |
5050 | ||
5051 | echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6 | |
5052 | if test x$glibcpp_cv_func_isnanf_use = x"yes"; then | |
38bd7296 BK |
5053 | for ac_func in isnanf |
5054 | do | |
5055 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5056 | echo "configure:5057: checking for $ac_func" >&5 |
38bd7296 BK |
5057 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5059 | else | |
5060 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5061 | #line 5062 "configure" |
38bd7296 BK |
5062 | #include "confdefs.h" |
5063 | /* System header to define __stub macros and hopefully few prototypes, | |
5064 | which can conflict with char $ac_func(); below. */ | |
5065 | #include <assert.h> | |
5066 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5067 | /* We use char because int might match the return type of a gcc2 | |
5068 | builtin and then its argument prototype would still apply. */ | |
5069 | char $ac_func(); | |
5070 | ||
5071 | int main() { | |
5072 | ||
5073 | /* The GNU C library defines this for functions which it implements | |
5074 | to always fail with ENOSYS. Some functions are actually named | |
5075 | something starting with __ and the normal name is an alias. */ | |
5076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5077 | choke me | |
5078 | #else | |
5079 | $ac_func(); | |
5080 | #endif | |
5081 | ||
5082 | ; return 0; } | |
5083 | EOF | |
421173e6 | 5084 | if { (eval echo configure:5085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
5085 | rm -rf conftest* |
5086 | eval "ac_cv_func_$ac_func=yes" | |
5087 | else | |
5088 | echo "configure: failed program was:" >&5 | |
5089 | cat conftest.$ac_ext >&5 | |
5090 | rm -rf conftest* | |
5091 | eval "ac_cv_func_$ac_func=no" | |
5092 | fi | |
5093 | rm -f conftest* | |
5094 | fi | |
5095 | ||
5096 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5097 | echo "$ac_t""yes" 1>&6 | |
5098 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5099 | cat >> confdefs.h <<EOF | |
5100 | #define $ac_tr_func 1 | |
5101 | EOF | |
5102 | ||
5103 | else | |
5104 | echo "$ac_t""no" 1>&6 | |
5105 | fi | |
5106 | done | |
5107 | ||
5108 | fi | |
5109 | ||
5110 | ||
421173e6 PE |
5111 | echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6 |
5112 | echo "configure:5113: checking for isinff declaration" >&5 | |
5113 | if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then | |
5114 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5115 | else | |
38bd7296 | 5116 | |
421173e6 PE |
5117 | |
5118 | ac_ext=C | |
38bd7296 BK |
5119 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5120 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5121 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5122 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5123 | cross_compiling=$ac_cv_prog_cxx_cross | |
5124 | ||
421173e6 PE |
5125 | cat > conftest.$ac_ext <<EOF |
5126 | #line 5127 "configure" | |
38bd7296 BK |
5127 | #include "confdefs.h" |
5128 | #include <math.h> | |
5129 | int main() { | |
5130 | isinff(0); | |
5131 | ; return 0; } | |
5132 | EOF | |
421173e6 | 5133 | if { (eval echo configure:5134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5134 | rm -rf conftest* |
421173e6 | 5135 | glibcpp_cv_func_isinff_use=yes |
38bd7296 BK |
5136 | else |
5137 | echo "configure: failed program was:" >&5 | |
5138 | cat conftest.$ac_ext >&5 | |
5139 | rm -rf conftest* | |
421173e6 | 5140 | glibcpp_cv_func_isinff_use=no |
38bd7296 BK |
5141 | fi |
5142 | rm -f conftest* | |
421173e6 | 5143 | ac_ext=c |
38bd7296 BK |
5144 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5145 | ac_cpp='$CPP $CPPFLAGS' | |
5146 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5147 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5148 | cross_compiling=$ac_cv_prog_cc_cross | |
5149 | ||
421173e6 PE |
5150 | |
5151 | fi | |
5152 | ||
5153 | echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6 | |
5154 | if test x$glibcpp_cv_func_isinff_use = x"yes"; then | |
38bd7296 BK |
5155 | for ac_func in isinff |
5156 | do | |
5157 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5158 | echo "configure:5159: checking for $ac_func" >&5 |
38bd7296 BK |
5159 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5161 | else | |
5162 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5163 | #line 5164 "configure" |
38bd7296 BK |
5164 | #include "confdefs.h" |
5165 | /* System header to define __stub macros and hopefully few prototypes, | |
5166 | which can conflict with char $ac_func(); below. */ | |
5167 | #include <assert.h> | |
5168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5169 | /* We use char because int might match the return type of a gcc2 | |
5170 | builtin and then its argument prototype would still apply. */ | |
5171 | char $ac_func(); | |
5172 | ||
5173 | int main() { | |
5174 | ||
5175 | /* The GNU C library defines this for functions which it implements | |
5176 | to always fail with ENOSYS. Some functions are actually named | |
5177 | something starting with __ and the normal name is an alias. */ | |
5178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5179 | choke me | |
5180 | #else | |
5181 | $ac_func(); | |
5182 | #endif | |
5183 | ||
5184 | ; return 0; } | |
5185 | EOF | |
421173e6 | 5186 | if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
5187 | rm -rf conftest* |
5188 | eval "ac_cv_func_$ac_func=yes" | |
5189 | else | |
5190 | echo "configure: failed program was:" >&5 | |
5191 | cat conftest.$ac_ext >&5 | |
5192 | rm -rf conftest* | |
5193 | eval "ac_cv_func_$ac_func=no" | |
5194 | fi | |
5195 | rm -f conftest* | |
5196 | fi | |
5197 | ||
5198 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5199 | echo "$ac_t""yes" 1>&6 | |
5200 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5201 | cat >> confdefs.h <<EOF | |
5202 | #define $ac_tr_func 1 | |
5203 | EOF | |
5204 | ||
5205 | else | |
5206 | echo "$ac_t""no" 1>&6 | |
5207 | fi | |
5208 | done | |
5209 | ||
5210 | fi | |
5211 | ||
5212 | ||
421173e6 PE |
5213 | echo $ac_n "checking for acosf declaration""... $ac_c" 1>&6 |
5214 | echo "configure:5215: checking for acosf declaration" >&5 | |
5215 | if eval "test \"`echo '$''{'glibcpp_cv_func_acosf_use'+set}'`\" = set"; then | |
5216 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5217 | else | |
38bd7296 | 5218 | |
421173e6 PE |
5219 | |
5220 | ac_ext=C | |
38bd7296 BK |
5221 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5222 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5223 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5224 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5225 | cross_compiling=$ac_cv_prog_cxx_cross | |
5226 | ||
421173e6 PE |
5227 | cat > conftest.$ac_ext <<EOF |
5228 | #line 5229 "configure" | |
38bd7296 BK |
5229 | #include "confdefs.h" |
5230 | #include <math.h> | |
5231 | int main() { | |
5232 | acosf(0); | |
5233 | ; return 0; } | |
5234 | EOF | |
421173e6 | 5235 | if { (eval echo configure:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5236 | rm -rf conftest* |
421173e6 | 5237 | glibcpp_cv_func_acosf_use=yes |
38bd7296 BK |
5238 | else |
5239 | echo "configure: failed program was:" >&5 | |
5240 | cat conftest.$ac_ext >&5 | |
5241 | rm -rf conftest* | |
421173e6 | 5242 | glibcpp_cv_func_acosf_use=no |
38bd7296 BK |
5243 | fi |
5244 | rm -f conftest* | |
421173e6 | 5245 | ac_ext=c |
38bd7296 BK |
5246 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5247 | ac_cpp='$CPP $CPPFLAGS' | |
5248 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5249 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5250 | cross_compiling=$ac_cv_prog_cc_cross | |
5251 | ||
421173e6 PE |
5252 | |
5253 | fi | |
5254 | ||
5255 | echo "$ac_t""$glibcpp_cv_func_acosf_use" 1>&6 | |
5256 | if test x$glibcpp_cv_func_acosf_use = x"yes"; then | |
38bd7296 BK |
5257 | for ac_func in acosf |
5258 | do | |
5259 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5260 | echo "configure:5261: checking for $ac_func" >&5 |
38bd7296 BK |
5261 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5263 | else | |
5264 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5265 | #line 5266 "configure" |
38bd7296 BK |
5266 | #include "confdefs.h" |
5267 | /* System header to define __stub macros and hopefully few prototypes, | |
5268 | which can conflict with char $ac_func(); below. */ | |
5269 | #include <assert.h> | |
5270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5271 | /* We use char because int might match the return type of a gcc2 | |
5272 | builtin and then its argument prototype would still apply. */ | |
5273 | char $ac_func(); | |
5274 | ||
5275 | int main() { | |
5276 | ||
5277 | /* The GNU C library defines this for functions which it implements | |
5278 | to always fail with ENOSYS. Some functions are actually named | |
5279 | something starting with __ and the normal name is an alias. */ | |
5280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5281 | choke me | |
5282 | #else | |
5283 | $ac_func(); | |
5284 | #endif | |
5285 | ||
5286 | ; return 0; } | |
5287 | EOF | |
421173e6 | 5288 | if { (eval echo configure:5289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
5289 | rm -rf conftest* |
5290 | eval "ac_cv_func_$ac_func=yes" | |
5291 | else | |
5292 | echo "configure: failed program was:" >&5 | |
5293 | cat conftest.$ac_ext >&5 | |
5294 | rm -rf conftest* | |
5295 | eval "ac_cv_func_$ac_func=no" | |
5296 | fi | |
5297 | rm -f conftest* | |
5298 | fi | |
5299 | ||
5300 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5301 | echo "$ac_t""yes" 1>&6 | |
5302 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5303 | cat >> confdefs.h <<EOF | |
5304 | #define $ac_tr_func 1 | |
5305 | EOF | |
5306 | ||
5307 | else | |
5308 | echo "$ac_t""no" 1>&6 | |
5309 | fi | |
5310 | done | |
5311 | ||
5312 | fi | |
5313 | ||
5314 | ||
421173e6 PE |
5315 | echo $ac_n "checking for asinf declaration""... $ac_c" 1>&6 |
5316 | echo "configure:5317: checking for asinf declaration" >&5 | |
5317 | if eval "test \"`echo '$''{'glibcpp_cv_func_asinf_use'+set}'`\" = set"; then | |
5318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5319 | else | |
38bd7296 | 5320 | |
421173e6 PE |
5321 | |
5322 | ac_ext=C | |
38bd7296 BK |
5323 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5324 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5325 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5326 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5327 | cross_compiling=$ac_cv_prog_cxx_cross | |
5328 | ||
421173e6 PE |
5329 | cat > conftest.$ac_ext <<EOF |
5330 | #line 5331 "configure" | |
38bd7296 BK |
5331 | #include "confdefs.h" |
5332 | #include <math.h> | |
5333 | int main() { | |
5334 | asinf(0); | |
5335 | ; return 0; } | |
5336 | EOF | |
421173e6 | 5337 | if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5338 | rm -rf conftest* |
421173e6 | 5339 | glibcpp_cv_func_asinf_use=yes |
38bd7296 BK |
5340 | else |
5341 | echo "configure: failed program was:" >&5 | |
5342 | cat conftest.$ac_ext >&5 | |
5343 | rm -rf conftest* | |
421173e6 | 5344 | glibcpp_cv_func_asinf_use=no |
38bd7296 BK |
5345 | fi |
5346 | rm -f conftest* | |
421173e6 | 5347 | ac_ext=c |
38bd7296 BK |
5348 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5349 | ac_cpp='$CPP $CPPFLAGS' | |
5350 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5351 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5352 | cross_compiling=$ac_cv_prog_cc_cross | |
5353 | ||
421173e6 PE |
5354 | |
5355 | fi | |
5356 | ||
5357 | echo "$ac_t""$glibcpp_cv_func_asinf_use" 1>&6 | |
5358 | if test x$glibcpp_cv_func_asinf_use = x"yes"; then | |
38bd7296 BK |
5359 | for ac_func in asinf |
5360 | do | |
5361 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5362 | echo "configure:5363: checking for $ac_func" >&5 |
38bd7296 BK |
5363 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5365 | else | |
5366 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5367 | #line 5368 "configure" |
38bd7296 BK |
5368 | #include "confdefs.h" |
5369 | /* System header to define __stub macros and hopefully few prototypes, | |
5370 | which can conflict with char $ac_func(); below. */ | |
5371 | #include <assert.h> | |
5372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5373 | /* We use char because int might match the return type of a gcc2 | |
5374 | builtin and then its argument prototype would still apply. */ | |
5375 | char $ac_func(); | |
5376 | ||
5377 | int main() { | |
5378 | ||
5379 | /* The GNU C library defines this for functions which it implements | |
5380 | to always fail with ENOSYS. Some functions are actually named | |
5381 | something starting with __ and the normal name is an alias. */ | |
5382 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5383 | choke me | |
5384 | #else | |
5385 | $ac_func(); | |
5386 | #endif | |
5387 | ||
5388 | ; return 0; } | |
5389 | EOF | |
421173e6 | 5390 | if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
5391 | rm -rf conftest* |
5392 | eval "ac_cv_func_$ac_func=yes" | |
5393 | else | |
5394 | echo "configure: failed program was:" >&5 | |
5395 | cat conftest.$ac_ext >&5 | |
5396 | rm -rf conftest* | |
5397 | eval "ac_cv_func_$ac_func=no" | |
5398 | fi | |
5399 | rm -f conftest* | |
5400 | fi | |
5401 | ||
5402 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5403 | echo "$ac_t""yes" 1>&6 | |
5404 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5405 | cat >> confdefs.h <<EOF | |
5406 | #define $ac_tr_func 1 | |
5407 | EOF | |
5408 | ||
5409 | else | |
5410 | echo "$ac_t""no" 1>&6 | |
5411 | fi | |
5412 | done | |
5413 | ||
5414 | fi | |
5415 | ||
5416 | ||
421173e6 PE |
5417 | echo $ac_n "checking for atanf declaration""... $ac_c" 1>&6 |
5418 | echo "configure:5419: checking for atanf declaration" >&5 | |
5419 | if eval "test \"`echo '$''{'glibcpp_cv_func_atanf_use'+set}'`\" = set"; then | |
5420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5421 | else | |
38bd7296 | 5422 | |
421173e6 PE |
5423 | |
5424 | ac_ext=C | |
38bd7296 BK |
5425 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5426 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5427 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5428 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5429 | cross_compiling=$ac_cv_prog_cxx_cross | |
5430 | ||
421173e6 PE |
5431 | cat > conftest.$ac_ext <<EOF |
5432 | #line 5433 "configure" | |
38bd7296 BK |
5433 | #include "confdefs.h" |
5434 | #include <math.h> | |
5435 | int main() { | |
5436 | atanf(0); | |
5437 | ; return 0; } | |
5438 | EOF | |
421173e6 | 5439 | if { (eval echo configure:5440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5440 | rm -rf conftest* |
421173e6 | 5441 | glibcpp_cv_func_atanf_use=yes |
38bd7296 BK |
5442 | else |
5443 | echo "configure: failed program was:" >&5 | |
5444 | cat conftest.$ac_ext >&5 | |
5445 | rm -rf conftest* | |
421173e6 | 5446 | glibcpp_cv_func_atanf_use=no |
38bd7296 BK |
5447 | fi |
5448 | rm -f conftest* | |
421173e6 | 5449 | ac_ext=c |
38bd7296 BK |
5450 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5451 | ac_cpp='$CPP $CPPFLAGS' | |
5452 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5453 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5454 | cross_compiling=$ac_cv_prog_cc_cross | |
5455 | ||
421173e6 PE |
5456 | |
5457 | fi | |
5458 | ||
5459 | echo "$ac_t""$glibcpp_cv_func_atanf_use" 1>&6 | |
5460 | if test x$glibcpp_cv_func_atanf_use = x"yes"; then | |
38bd7296 BK |
5461 | for ac_func in atanf |
5462 | do | |
5463 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5464 | echo "configure:5465: checking for $ac_func" >&5 |
38bd7296 BK |
5465 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5467 | else | |
5468 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5469 | #line 5470 "configure" |
38bd7296 BK |
5470 | #include "confdefs.h" |
5471 | /* System header to define __stub macros and hopefully few prototypes, | |
5472 | which can conflict with char $ac_func(); below. */ | |
5473 | #include <assert.h> | |
5474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5475 | /* We use char because int might match the return type of a gcc2 | |
5476 | builtin and then its argument prototype would still apply. */ | |
5477 | char $ac_func(); | |
5478 | ||
5479 | int main() { | |
5480 | ||
5481 | /* The GNU C library defines this for functions which it implements | |
5482 | to always fail with ENOSYS. Some functions are actually named | |
5483 | something starting with __ and the normal name is an alias. */ | |
5484 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5485 | choke me | |
5486 | #else | |
5487 | $ac_func(); | |
5488 | #endif | |
5489 | ||
5490 | ; return 0; } | |
5491 | EOF | |
421173e6 | 5492 | if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
5493 | rm -rf conftest* |
5494 | eval "ac_cv_func_$ac_func=yes" | |
5495 | else | |
5496 | echo "configure: failed program was:" >&5 | |
5497 | cat conftest.$ac_ext >&5 | |
5498 | rm -rf conftest* | |
5499 | eval "ac_cv_func_$ac_func=no" | |
5500 | fi | |
5501 | rm -f conftest* | |
5502 | fi | |
5503 | ||
5504 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5505 | echo "$ac_t""yes" 1>&6 | |
5506 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5507 | cat >> confdefs.h <<EOF | |
5508 | #define $ac_tr_func 1 | |
5509 | EOF | |
5510 | ||
5511 | else | |
5512 | echo "$ac_t""no" 1>&6 | |
5513 | fi | |
5514 | done | |
5515 | ||
5516 | fi | |
5517 | ||
5518 | ||
421173e6 PE |
5519 | echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6 |
5520 | echo "configure:5521: checking for atan2f declaration" >&5 | |
5521 | if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then | |
5522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5523 | else | |
38bd7296 | 5524 | |
421173e6 PE |
5525 | |
5526 | ac_ext=C | |
38bd7296 BK |
5527 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5528 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5529 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5530 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5531 | cross_compiling=$ac_cv_prog_cxx_cross | |
5532 | ||
421173e6 PE |
5533 | cat > conftest.$ac_ext <<EOF |
5534 | #line 5535 "configure" | |
38bd7296 BK |
5535 | #include "confdefs.h" |
5536 | #include <math.h> | |
5537 | int main() { | |
5538 | atan2f(0, 0); | |
5539 | ; return 0; } | |
5540 | EOF | |
421173e6 | 5541 | if { (eval echo configure:5542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5542 | rm -rf conftest* |
421173e6 | 5543 | glibcpp_cv_func_atan2f_use=yes |
38bd7296 BK |
5544 | else |
5545 | echo "configure: failed program was:" >&5 | |
5546 | cat conftest.$ac_ext >&5 | |
5547 | rm -rf conftest* | |
421173e6 | 5548 | glibcpp_cv_func_atan2f_use=no |
38bd7296 BK |
5549 | fi |
5550 | rm -f conftest* | |
421173e6 | 5551 | ac_ext=c |
38bd7296 BK |
5552 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5553 | ac_cpp='$CPP $CPPFLAGS' | |
5554 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5555 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5556 | cross_compiling=$ac_cv_prog_cc_cross | |
5557 | ||
421173e6 PE |
5558 | |
5559 | fi | |
5560 | ||
5561 | echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6 | |
5562 | if test x$glibcpp_cv_func_atan2f_use = x"yes"; then | |
38bd7296 BK |
5563 | for ac_func in atan2f |
5564 | do | |
5565 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5566 | echo "configure:5567: checking for $ac_func" >&5 |
38bd7296 BK |
5567 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5569 | else | |
5570 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5571 | #line 5572 "configure" |
38bd7296 BK |
5572 | #include "confdefs.h" |
5573 | /* System header to define __stub macros and hopefully few prototypes, | |
5574 | which can conflict with char $ac_func(); below. */ | |
5575 | #include <assert.h> | |
5576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5577 | /* We use char because int might match the return type of a gcc2 | |
5578 | builtin and then its argument prototype would still apply. */ | |
5579 | char $ac_func(); | |
5580 | ||
5581 | int main() { | |
5582 | ||
5583 | /* The GNU C library defines this for functions which it implements | |
5584 | to always fail with ENOSYS. Some functions are actually named | |
5585 | something starting with __ and the normal name is an alias. */ | |
5586 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5587 | choke me | |
5588 | #else | |
5589 | $ac_func(); | |
5590 | #endif | |
5591 | ||
5592 | ; return 0; } | |
5593 | EOF | |
421173e6 | 5594 | if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
5595 | rm -rf conftest* |
5596 | eval "ac_cv_func_$ac_func=yes" | |
5597 | else | |
5598 | echo "configure: failed program was:" >&5 | |
5599 | cat conftest.$ac_ext >&5 | |
5600 | rm -rf conftest* | |
5601 | eval "ac_cv_func_$ac_func=no" | |
5602 | fi | |
5603 | rm -f conftest* | |
5604 | fi | |
5605 | ||
5606 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5607 | echo "$ac_t""yes" 1>&6 | |
5608 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5609 | cat >> confdefs.h <<EOF | |
5610 | #define $ac_tr_func 1 | |
5611 | EOF | |
5612 | ||
5613 | else | |
5614 | echo "$ac_t""no" 1>&6 | |
5615 | fi | |
5616 | done | |
5617 | ||
5618 | fi | |
5619 | ||
5620 | ||
421173e6 PE |
5621 | echo $ac_n "checking for ceilf declaration""... $ac_c" 1>&6 |
5622 | echo "configure:5623: checking for ceilf declaration" >&5 | |
5623 | if eval "test \"`echo '$''{'glibcpp_cv_func_ceilf_use'+set}'`\" = set"; then | |
5624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5625 | else | |
38bd7296 | 5626 | |
421173e6 PE |
5627 | |
5628 | ac_ext=C | |
38bd7296 BK |
5629 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5630 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5631 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5632 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5633 | cross_compiling=$ac_cv_prog_cxx_cross | |
5634 | ||
421173e6 PE |
5635 | cat > conftest.$ac_ext <<EOF |
5636 | #line 5637 "configure" | |
38bd7296 BK |
5637 | #include "confdefs.h" |
5638 | #include <math.h> | |
5639 | int main() { | |
5640 | ceilf(0); | |
5641 | ; return 0; } | |
5642 | EOF | |
421173e6 | 5643 | if { (eval echo configure:5644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5644 | rm -rf conftest* |
421173e6 | 5645 | glibcpp_cv_func_ceilf_use=yes |
38bd7296 BK |
5646 | else |
5647 | echo "configure: failed program was:" >&5 | |
5648 | cat conftest.$ac_ext >&5 | |
5649 | rm -rf conftest* | |
421173e6 | 5650 | glibcpp_cv_func_ceilf_use=no |
38bd7296 BK |
5651 | fi |
5652 | rm -f conftest* | |
421173e6 | 5653 | ac_ext=c |
38bd7296 BK |
5654 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5655 | ac_cpp='$CPP $CPPFLAGS' | |
5656 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5657 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5658 | cross_compiling=$ac_cv_prog_cc_cross | |
5659 | ||
421173e6 PE |
5660 | |
5661 | fi | |
5662 | ||
5663 | echo "$ac_t""$glibcpp_cv_func_ceilf_use" 1>&6 | |
5664 | if test x$glibcpp_cv_func_ceilf_use = x"yes"; then | |
38bd7296 BK |
5665 | for ac_func in ceilf |
5666 | do | |
5667 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5668 | echo "configure:5669: checking for $ac_func" >&5 |
38bd7296 BK |
5669 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5671 | else | |
5672 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5673 | #line 5674 "configure" |
38bd7296 BK |
5674 | #include "confdefs.h" |
5675 | /* System header to define __stub macros and hopefully few prototypes, | |
5676 | which can conflict with char $ac_func(); below. */ | |
5677 | #include <assert.h> | |
5678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5679 | /* We use char because int might match the return type of a gcc2 | |
5680 | builtin and then its argument prototype would still apply. */ | |
5681 | char $ac_func(); | |
5682 | ||
5683 | int main() { | |
5684 | ||
5685 | /* The GNU C library defines this for functions which it implements | |
5686 | to always fail with ENOSYS. Some functions are actually named | |
5687 | something starting with __ and the normal name is an alias. */ | |
5688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5689 | choke me | |
5690 | #else | |
5691 | $ac_func(); | |
5692 | #endif | |
5693 | ||
5694 | ; return 0; } | |
5695 | EOF | |
421173e6 | 5696 | if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
5697 | rm -rf conftest* |
5698 | eval "ac_cv_func_$ac_func=yes" | |
5699 | else | |
5700 | echo "configure: failed program was:" >&5 | |
5701 | cat conftest.$ac_ext >&5 | |
5702 | rm -rf conftest* | |
5703 | eval "ac_cv_func_$ac_func=no" | |
5704 | fi | |
5705 | rm -f conftest* | |
5706 | fi | |
5707 | ||
5708 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5709 | echo "$ac_t""yes" 1>&6 | |
5710 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5711 | cat >> confdefs.h <<EOF | |
5712 | #define $ac_tr_func 1 | |
5713 | EOF | |
5714 | ||
5715 | else | |
5716 | echo "$ac_t""no" 1>&6 | |
5717 | fi | |
5718 | done | |
5719 | ||
5720 | fi | |
5721 | ||
5722 | ||
421173e6 PE |
5723 | echo $ac_n "checking for cosf declaration""... $ac_c" 1>&6 |
5724 | echo "configure:5725: checking for cosf declaration" >&5 | |
5725 | if eval "test \"`echo '$''{'glibcpp_cv_func_cosf_use'+set}'`\" = set"; then | |
5726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5727 | else | |
38bd7296 | 5728 | |
421173e6 PE |
5729 | |
5730 | ac_ext=C | |
38bd7296 BK |
5731 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5732 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5733 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5734 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5735 | cross_compiling=$ac_cv_prog_cxx_cross | |
5736 | ||
421173e6 PE |
5737 | cat > conftest.$ac_ext <<EOF |
5738 | #line 5739 "configure" | |
38bd7296 BK |
5739 | #include "confdefs.h" |
5740 | #include <math.h> | |
5741 | int main() { | |
5742 | cosf(0); | |
5743 | ; return 0; } | |
5744 | EOF | |
421173e6 | 5745 | if { (eval echo configure:5746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5746 | rm -rf conftest* |
421173e6 | 5747 | glibcpp_cv_func_cosf_use=yes |
38bd7296 BK |
5748 | else |
5749 | echo "configure: failed program was:" >&5 | |
5750 | cat conftest.$ac_ext >&5 | |
5751 | rm -rf conftest* | |
421173e6 | 5752 | glibcpp_cv_func_cosf_use=no |
38bd7296 BK |
5753 | fi |
5754 | rm -f conftest* | |
421173e6 | 5755 | ac_ext=c |
38bd7296 BK |
5756 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5757 | ac_cpp='$CPP $CPPFLAGS' | |
5758 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5759 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5760 | cross_compiling=$ac_cv_prog_cc_cross | |
5761 | ||
421173e6 PE |
5762 | |
5763 | fi | |
5764 | ||
5765 | echo "$ac_t""$glibcpp_cv_func_cosf_use" 1>&6 | |
5766 | if test x$glibcpp_cv_func_cosf_use = x"yes"; then | |
38bd7296 BK |
5767 | for ac_func in cosf |
5768 | do | |
5769 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5770 | echo "configure:5771: checking for $ac_func" >&5 |
38bd7296 BK |
5771 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5773 | else | |
5774 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5775 | #line 5776 "configure" |
38bd7296 BK |
5776 | #include "confdefs.h" |
5777 | /* System header to define __stub macros and hopefully few prototypes, | |
5778 | which can conflict with char $ac_func(); below. */ | |
5779 | #include <assert.h> | |
5780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5781 | /* We use char because int might match the return type of a gcc2 | |
5782 | builtin and then its argument prototype would still apply. */ | |
5783 | char $ac_func(); | |
5784 | ||
5785 | int main() { | |
5786 | ||
5787 | /* The GNU C library defines this for functions which it implements | |
5788 | to always fail with ENOSYS. Some functions are actually named | |
5789 | something starting with __ and the normal name is an alias. */ | |
5790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5791 | choke me | |
5792 | #else | |
5793 | $ac_func(); | |
5794 | #endif | |
5795 | ||
5796 | ; return 0; } | |
5797 | EOF | |
421173e6 | 5798 | if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
5799 | rm -rf conftest* |
5800 | eval "ac_cv_func_$ac_func=yes" | |
5801 | else | |
5802 | echo "configure: failed program was:" >&5 | |
5803 | cat conftest.$ac_ext >&5 | |
5804 | rm -rf conftest* | |
5805 | eval "ac_cv_func_$ac_func=no" | |
5806 | fi | |
5807 | rm -f conftest* | |
5808 | fi | |
5809 | ||
5810 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5811 | echo "$ac_t""yes" 1>&6 | |
5812 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5813 | cat >> confdefs.h <<EOF | |
5814 | #define $ac_tr_func 1 | |
5815 | EOF | |
5816 | ||
5817 | else | |
5818 | echo "$ac_t""no" 1>&6 | |
5819 | fi | |
5820 | done | |
5821 | ||
5822 | fi | |
5823 | ||
5824 | ||
421173e6 PE |
5825 | echo $ac_n "checking for coshf declaration""... $ac_c" 1>&6 |
5826 | echo "configure:5827: checking for coshf declaration" >&5 | |
5827 | if eval "test \"`echo '$''{'glibcpp_cv_func_coshf_use'+set}'`\" = set"; then | |
5828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5829 | else | |
38bd7296 | 5830 | |
421173e6 PE |
5831 | |
5832 | ac_ext=C | |
38bd7296 BK |
5833 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5834 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5835 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5836 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5837 | cross_compiling=$ac_cv_prog_cxx_cross | |
5838 | ||
421173e6 PE |
5839 | cat > conftest.$ac_ext <<EOF |
5840 | #line 5841 "configure" | |
38bd7296 BK |
5841 | #include "confdefs.h" |
5842 | #include <math.h> | |
5843 | int main() { | |
5844 | coshf(0); | |
5845 | ; return 0; } | |
5846 | EOF | |
421173e6 | 5847 | if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5848 | rm -rf conftest* |
421173e6 | 5849 | glibcpp_cv_func_coshf_use=yes |
38bd7296 BK |
5850 | else |
5851 | echo "configure: failed program was:" >&5 | |
5852 | cat conftest.$ac_ext >&5 | |
5853 | rm -rf conftest* | |
421173e6 | 5854 | glibcpp_cv_func_coshf_use=no |
38bd7296 BK |
5855 | fi |
5856 | rm -f conftest* | |
421173e6 | 5857 | ac_ext=c |
38bd7296 BK |
5858 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5859 | ac_cpp='$CPP $CPPFLAGS' | |
5860 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5861 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5862 | cross_compiling=$ac_cv_prog_cc_cross | |
5863 | ||
421173e6 PE |
5864 | |
5865 | fi | |
5866 | ||
5867 | echo "$ac_t""$glibcpp_cv_func_coshf_use" 1>&6 | |
5868 | if test x$glibcpp_cv_func_coshf_use = x"yes"; then | |
38bd7296 BK |
5869 | for ac_func in coshf |
5870 | do | |
5871 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5872 | echo "configure:5873: checking for $ac_func" >&5 |
38bd7296 BK |
5873 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5875 | else | |
5876 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5877 | #line 5878 "configure" |
38bd7296 BK |
5878 | #include "confdefs.h" |
5879 | /* System header to define __stub macros and hopefully few prototypes, | |
5880 | which can conflict with char $ac_func(); below. */ | |
5881 | #include <assert.h> | |
5882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5883 | /* We use char because int might match the return type of a gcc2 | |
5884 | builtin and then its argument prototype would still apply. */ | |
5885 | char $ac_func(); | |
5886 | ||
5887 | int main() { | |
5888 | ||
5889 | /* The GNU C library defines this for functions which it implements | |
5890 | to always fail with ENOSYS. Some functions are actually named | |
5891 | something starting with __ and the normal name is an alias. */ | |
5892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5893 | choke me | |
5894 | #else | |
5895 | $ac_func(); | |
5896 | #endif | |
5897 | ||
5898 | ; return 0; } | |
5899 | EOF | |
421173e6 | 5900 | if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
5901 | rm -rf conftest* |
5902 | eval "ac_cv_func_$ac_func=yes" | |
5903 | else | |
5904 | echo "configure: failed program was:" >&5 | |
5905 | cat conftest.$ac_ext >&5 | |
5906 | rm -rf conftest* | |
5907 | eval "ac_cv_func_$ac_func=no" | |
5908 | fi | |
5909 | rm -f conftest* | |
5910 | fi | |
5911 | ||
5912 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5913 | echo "$ac_t""yes" 1>&6 | |
5914 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5915 | cat >> confdefs.h <<EOF | |
5916 | #define $ac_tr_func 1 | |
5917 | EOF | |
5918 | ||
5919 | else | |
5920 | echo "$ac_t""no" 1>&6 | |
5921 | fi | |
5922 | done | |
5923 | ||
5924 | fi | |
5925 | ||
5926 | ||
421173e6 PE |
5927 | echo $ac_n "checking for expf declaration""... $ac_c" 1>&6 |
5928 | echo "configure:5929: checking for expf declaration" >&5 | |
5929 | if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then | |
5930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5931 | else | |
38bd7296 | 5932 | |
421173e6 PE |
5933 | |
5934 | ac_ext=C | |
38bd7296 BK |
5935 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5936 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5937 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5938 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5939 | cross_compiling=$ac_cv_prog_cxx_cross | |
5940 | ||
421173e6 PE |
5941 | cat > conftest.$ac_ext <<EOF |
5942 | #line 5943 "configure" | |
38bd7296 BK |
5943 | #include "confdefs.h" |
5944 | #include <math.h> | |
5945 | int main() { | |
5946 | expf(0); | |
5947 | ; return 0; } | |
5948 | EOF | |
421173e6 | 5949 | if { (eval echo configure:5950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 5950 | rm -rf conftest* |
421173e6 | 5951 | glibcpp_cv_func_expf_use=yes |
38bd7296 BK |
5952 | else |
5953 | echo "configure: failed program was:" >&5 | |
5954 | cat conftest.$ac_ext >&5 | |
5955 | rm -rf conftest* | |
421173e6 | 5956 | glibcpp_cv_func_expf_use=no |
38bd7296 BK |
5957 | fi |
5958 | rm -f conftest* | |
421173e6 | 5959 | ac_ext=c |
38bd7296 BK |
5960 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5961 | ac_cpp='$CPP $CPPFLAGS' | |
5962 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5963 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5964 | cross_compiling=$ac_cv_prog_cc_cross | |
5965 | ||
421173e6 PE |
5966 | |
5967 | fi | |
5968 | ||
5969 | echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6 | |
5970 | if test x$glibcpp_cv_func_expf_use = x"yes"; then | |
38bd7296 BK |
5971 | for ac_func in expf |
5972 | do | |
5973 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 5974 | echo "configure:5975: checking for $ac_func" >&5 |
38bd7296 BK |
5975 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5977 | else | |
5978 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 5979 | #line 5980 "configure" |
38bd7296 BK |
5980 | #include "confdefs.h" |
5981 | /* System header to define __stub macros and hopefully few prototypes, | |
5982 | which can conflict with char $ac_func(); below. */ | |
5983 | #include <assert.h> | |
5984 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5985 | /* We use char because int might match the return type of a gcc2 | |
5986 | builtin and then its argument prototype would still apply. */ | |
5987 | char $ac_func(); | |
5988 | ||
5989 | int main() { | |
5990 | ||
5991 | /* The GNU C library defines this for functions which it implements | |
5992 | to always fail with ENOSYS. Some functions are actually named | |
5993 | something starting with __ and the normal name is an alias. */ | |
5994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5995 | choke me | |
5996 | #else | |
5997 | $ac_func(); | |
5998 | #endif | |
5999 | ||
6000 | ; return 0; } | |
6001 | EOF | |
421173e6 | 6002 | if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6003 | rm -rf conftest* |
6004 | eval "ac_cv_func_$ac_func=yes" | |
6005 | else | |
6006 | echo "configure: failed program was:" >&5 | |
6007 | cat conftest.$ac_ext >&5 | |
6008 | rm -rf conftest* | |
6009 | eval "ac_cv_func_$ac_func=no" | |
6010 | fi | |
6011 | rm -f conftest* | |
6012 | fi | |
6013 | ||
6014 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6015 | echo "$ac_t""yes" 1>&6 | |
6016 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6017 | cat >> confdefs.h <<EOF | |
6018 | #define $ac_tr_func 1 | |
6019 | EOF | |
6020 | ||
6021 | else | |
6022 | echo "$ac_t""no" 1>&6 | |
6023 | fi | |
6024 | done | |
6025 | ||
6026 | fi | |
6027 | ||
6028 | ||
421173e6 PE |
6029 | echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6 |
6030 | echo "configure:6031: checking for fabsf declaration" >&5 | |
6031 | if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then | |
6032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6033 | else | |
38bd7296 | 6034 | |
421173e6 PE |
6035 | |
6036 | ac_ext=C | |
38bd7296 BK |
6037 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6039 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6040 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6041 | cross_compiling=$ac_cv_prog_cxx_cross | |
6042 | ||
421173e6 PE |
6043 | cat > conftest.$ac_ext <<EOF |
6044 | #line 6045 "configure" | |
38bd7296 BK |
6045 | #include "confdefs.h" |
6046 | #include <math.h> | |
6047 | int main() { | |
6048 | fabsf(0); | |
6049 | ; return 0; } | |
6050 | EOF | |
421173e6 | 6051 | if { (eval echo configure:6052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6052 | rm -rf conftest* |
421173e6 | 6053 | glibcpp_cv_func_fabsf_use=yes |
38bd7296 BK |
6054 | else |
6055 | echo "configure: failed program was:" >&5 | |
6056 | cat conftest.$ac_ext >&5 | |
6057 | rm -rf conftest* | |
421173e6 | 6058 | glibcpp_cv_func_fabsf_use=no |
38bd7296 BK |
6059 | fi |
6060 | rm -f conftest* | |
421173e6 | 6061 | ac_ext=c |
38bd7296 BK |
6062 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6063 | ac_cpp='$CPP $CPPFLAGS' | |
6064 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6065 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6066 | cross_compiling=$ac_cv_prog_cc_cross | |
6067 | ||
421173e6 PE |
6068 | |
6069 | fi | |
6070 | ||
6071 | echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6 | |
6072 | if test x$glibcpp_cv_func_fabsf_use = x"yes"; then | |
38bd7296 BK |
6073 | for ac_func in fabsf |
6074 | do | |
6075 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6076 | echo "configure:6077: checking for $ac_func" >&5 |
38bd7296 BK |
6077 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6079 | else | |
6080 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6081 | #line 6082 "configure" |
38bd7296 BK |
6082 | #include "confdefs.h" |
6083 | /* System header to define __stub macros and hopefully few prototypes, | |
6084 | which can conflict with char $ac_func(); below. */ | |
6085 | #include <assert.h> | |
6086 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6087 | /* We use char because int might match the return type of a gcc2 | |
6088 | builtin and then its argument prototype would still apply. */ | |
6089 | char $ac_func(); | |
6090 | ||
6091 | int main() { | |
6092 | ||
6093 | /* The GNU C library defines this for functions which it implements | |
6094 | to always fail with ENOSYS. Some functions are actually named | |
6095 | something starting with __ and the normal name is an alias. */ | |
6096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6097 | choke me | |
6098 | #else | |
6099 | $ac_func(); | |
6100 | #endif | |
6101 | ||
6102 | ; return 0; } | |
6103 | EOF | |
421173e6 | 6104 | if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6105 | rm -rf conftest* |
6106 | eval "ac_cv_func_$ac_func=yes" | |
6107 | else | |
6108 | echo "configure: failed program was:" >&5 | |
6109 | cat conftest.$ac_ext >&5 | |
6110 | rm -rf conftest* | |
6111 | eval "ac_cv_func_$ac_func=no" | |
6112 | fi | |
6113 | rm -f conftest* | |
6114 | fi | |
6115 | ||
6116 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6117 | echo "$ac_t""yes" 1>&6 | |
6118 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6119 | cat >> confdefs.h <<EOF | |
6120 | #define $ac_tr_func 1 | |
6121 | EOF | |
6122 | ||
6123 | else | |
6124 | echo "$ac_t""no" 1>&6 | |
6125 | fi | |
6126 | done | |
6127 | ||
6128 | fi | |
6129 | ||
6130 | ||
421173e6 PE |
6131 | echo $ac_n "checking for floorf declaration""... $ac_c" 1>&6 |
6132 | echo "configure:6133: checking for floorf declaration" >&5 | |
6133 | if eval "test \"`echo '$''{'glibcpp_cv_func_floorf_use'+set}'`\" = set"; then | |
6134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6135 | else | |
38bd7296 | 6136 | |
421173e6 PE |
6137 | |
6138 | ac_ext=C | |
38bd7296 BK |
6139 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6140 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6141 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6142 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6143 | cross_compiling=$ac_cv_prog_cxx_cross | |
6144 | ||
421173e6 PE |
6145 | cat > conftest.$ac_ext <<EOF |
6146 | #line 6147 "configure" | |
38bd7296 BK |
6147 | #include "confdefs.h" |
6148 | #include <math.h> | |
6149 | int main() { | |
6150 | floorf(0); | |
6151 | ; return 0; } | |
6152 | EOF | |
421173e6 | 6153 | if { (eval echo configure:6154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6154 | rm -rf conftest* |
421173e6 | 6155 | glibcpp_cv_func_floorf_use=yes |
38bd7296 BK |
6156 | else |
6157 | echo "configure: failed program was:" >&5 | |
6158 | cat conftest.$ac_ext >&5 | |
6159 | rm -rf conftest* | |
421173e6 | 6160 | glibcpp_cv_func_floorf_use=no |
38bd7296 BK |
6161 | fi |
6162 | rm -f conftest* | |
421173e6 | 6163 | ac_ext=c |
38bd7296 BK |
6164 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6165 | ac_cpp='$CPP $CPPFLAGS' | |
6166 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6167 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6168 | cross_compiling=$ac_cv_prog_cc_cross | |
6169 | ||
421173e6 PE |
6170 | |
6171 | fi | |
6172 | ||
6173 | echo "$ac_t""$glibcpp_cv_func_floorf_use" 1>&6 | |
6174 | if test x$glibcpp_cv_func_floorf_use = x"yes"; then | |
38bd7296 BK |
6175 | for ac_func in floorf |
6176 | do | |
6177 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6178 | echo "configure:6179: checking for $ac_func" >&5 |
38bd7296 BK |
6179 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6181 | else | |
6182 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6183 | #line 6184 "configure" |
38bd7296 BK |
6184 | #include "confdefs.h" |
6185 | /* System header to define __stub macros and hopefully few prototypes, | |
6186 | which can conflict with char $ac_func(); below. */ | |
6187 | #include <assert.h> | |
6188 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6189 | /* We use char because int might match the return type of a gcc2 | |
6190 | builtin and then its argument prototype would still apply. */ | |
6191 | char $ac_func(); | |
6192 | ||
6193 | int main() { | |
6194 | ||
6195 | /* The GNU C library defines this for functions which it implements | |
6196 | to always fail with ENOSYS. Some functions are actually named | |
6197 | something starting with __ and the normal name is an alias. */ | |
6198 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6199 | choke me | |
6200 | #else | |
6201 | $ac_func(); | |
6202 | #endif | |
6203 | ||
6204 | ; return 0; } | |
6205 | EOF | |
421173e6 | 6206 | if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6207 | rm -rf conftest* |
6208 | eval "ac_cv_func_$ac_func=yes" | |
6209 | else | |
6210 | echo "configure: failed program was:" >&5 | |
6211 | cat conftest.$ac_ext >&5 | |
6212 | rm -rf conftest* | |
6213 | eval "ac_cv_func_$ac_func=no" | |
6214 | fi | |
6215 | rm -f conftest* | |
6216 | fi | |
6217 | ||
6218 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6219 | echo "$ac_t""yes" 1>&6 | |
6220 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6221 | cat >> confdefs.h <<EOF | |
6222 | #define $ac_tr_func 1 | |
6223 | EOF | |
6224 | ||
6225 | else | |
6226 | echo "$ac_t""no" 1>&6 | |
6227 | fi | |
6228 | done | |
6229 | ||
6230 | fi | |
6231 | ||
6232 | ||
421173e6 PE |
6233 | echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6 |
6234 | echo "configure:6235: checking for fmodf declaration" >&5 | |
6235 | if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then | |
6236 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6237 | else | |
38bd7296 | 6238 | |
421173e6 PE |
6239 | |
6240 | ac_ext=C | |
38bd7296 BK |
6241 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6242 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6243 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6244 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6245 | cross_compiling=$ac_cv_prog_cxx_cross | |
6246 | ||
421173e6 PE |
6247 | cat > conftest.$ac_ext <<EOF |
6248 | #line 6249 "configure" | |
38bd7296 BK |
6249 | #include "confdefs.h" |
6250 | #include <math.h> | |
6251 | int main() { | |
6252 | fmodf(0, 0); | |
6253 | ; return 0; } | |
6254 | EOF | |
421173e6 | 6255 | if { (eval echo configure:6256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6256 | rm -rf conftest* |
421173e6 | 6257 | glibcpp_cv_func_fmodf_use=yes |
38bd7296 BK |
6258 | else |
6259 | echo "configure: failed program was:" >&5 | |
6260 | cat conftest.$ac_ext >&5 | |
6261 | rm -rf conftest* | |
421173e6 | 6262 | glibcpp_cv_func_fmodf_use=no |
38bd7296 BK |
6263 | fi |
6264 | rm -f conftest* | |
421173e6 | 6265 | ac_ext=c |
38bd7296 BK |
6266 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6267 | ac_cpp='$CPP $CPPFLAGS' | |
6268 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6269 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6270 | cross_compiling=$ac_cv_prog_cc_cross | |
6271 | ||
421173e6 PE |
6272 | |
6273 | fi | |
6274 | ||
6275 | echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6 | |
6276 | if test x$glibcpp_cv_func_fmodf_use = x"yes"; then | |
38bd7296 BK |
6277 | for ac_func in fmodf |
6278 | do | |
6279 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6280 | echo "configure:6281: checking for $ac_func" >&5 |
38bd7296 BK |
6281 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6282 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6283 | else | |
6284 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6285 | #line 6286 "configure" |
38bd7296 BK |
6286 | #include "confdefs.h" |
6287 | /* System header to define __stub macros and hopefully few prototypes, | |
6288 | which can conflict with char $ac_func(); below. */ | |
6289 | #include <assert.h> | |
6290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6291 | /* We use char because int might match the return type of a gcc2 | |
6292 | builtin and then its argument prototype would still apply. */ | |
6293 | char $ac_func(); | |
6294 | ||
6295 | int main() { | |
6296 | ||
6297 | /* The GNU C library defines this for functions which it implements | |
6298 | to always fail with ENOSYS. Some functions are actually named | |
6299 | something starting with __ and the normal name is an alias. */ | |
6300 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6301 | choke me | |
6302 | #else | |
6303 | $ac_func(); | |
6304 | #endif | |
6305 | ||
6306 | ; return 0; } | |
6307 | EOF | |
421173e6 | 6308 | if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6309 | rm -rf conftest* |
6310 | eval "ac_cv_func_$ac_func=yes" | |
6311 | else | |
6312 | echo "configure: failed program was:" >&5 | |
6313 | cat conftest.$ac_ext >&5 | |
6314 | rm -rf conftest* | |
6315 | eval "ac_cv_func_$ac_func=no" | |
6316 | fi | |
6317 | rm -f conftest* | |
6318 | fi | |
6319 | ||
6320 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6321 | echo "$ac_t""yes" 1>&6 | |
6322 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6323 | cat >> confdefs.h <<EOF | |
6324 | #define $ac_tr_func 1 | |
6325 | EOF | |
6326 | ||
6327 | else | |
6328 | echo "$ac_t""no" 1>&6 | |
6329 | fi | |
6330 | done | |
6331 | ||
6332 | fi | |
6333 | ||
6334 | ||
421173e6 PE |
6335 | echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6 |
6336 | echo "configure:6337: checking for frexpf declaration" >&5 | |
6337 | if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then | |
6338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6339 | else | |
38bd7296 | 6340 | |
421173e6 PE |
6341 | |
6342 | ac_ext=C | |
38bd7296 BK |
6343 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6344 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6345 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6346 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6347 | cross_compiling=$ac_cv_prog_cxx_cross | |
6348 | ||
421173e6 PE |
6349 | cat > conftest.$ac_ext <<EOF |
6350 | #line 6351 "configure" | |
38bd7296 BK |
6351 | #include "confdefs.h" |
6352 | #include <math.h> | |
6353 | int main() { | |
6354 | frexpf(0, 0); | |
6355 | ; return 0; } | |
6356 | EOF | |
421173e6 | 6357 | if { (eval echo configure:6358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6358 | rm -rf conftest* |
421173e6 | 6359 | glibcpp_cv_func_frexpf_use=yes |
38bd7296 BK |
6360 | else |
6361 | echo "configure: failed program was:" >&5 | |
6362 | cat conftest.$ac_ext >&5 | |
6363 | rm -rf conftest* | |
421173e6 | 6364 | glibcpp_cv_func_frexpf_use=no |
38bd7296 BK |
6365 | fi |
6366 | rm -f conftest* | |
421173e6 | 6367 | ac_ext=c |
38bd7296 BK |
6368 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6369 | ac_cpp='$CPP $CPPFLAGS' | |
6370 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6371 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6372 | cross_compiling=$ac_cv_prog_cc_cross | |
6373 | ||
421173e6 PE |
6374 | |
6375 | fi | |
6376 | ||
6377 | echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6 | |
6378 | if test x$glibcpp_cv_func_frexpf_use = x"yes"; then | |
38bd7296 BK |
6379 | for ac_func in frexpf |
6380 | do | |
6381 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6382 | echo "configure:6383: checking for $ac_func" >&5 |
38bd7296 BK |
6383 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6385 | else | |
6386 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6387 | #line 6388 "configure" |
38bd7296 BK |
6388 | #include "confdefs.h" |
6389 | /* System header to define __stub macros and hopefully few prototypes, | |
6390 | which can conflict with char $ac_func(); below. */ | |
6391 | #include <assert.h> | |
6392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6393 | /* We use char because int might match the return type of a gcc2 | |
6394 | builtin and then its argument prototype would still apply. */ | |
6395 | char $ac_func(); | |
6396 | ||
6397 | int main() { | |
6398 | ||
6399 | /* The GNU C library defines this for functions which it implements | |
6400 | to always fail with ENOSYS. Some functions are actually named | |
6401 | something starting with __ and the normal name is an alias. */ | |
6402 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6403 | choke me | |
6404 | #else | |
6405 | $ac_func(); | |
6406 | #endif | |
6407 | ||
6408 | ; return 0; } | |
6409 | EOF | |
421173e6 | 6410 | if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6411 | rm -rf conftest* |
6412 | eval "ac_cv_func_$ac_func=yes" | |
6413 | else | |
6414 | echo "configure: failed program was:" >&5 | |
6415 | cat conftest.$ac_ext >&5 | |
6416 | rm -rf conftest* | |
6417 | eval "ac_cv_func_$ac_func=no" | |
6418 | fi | |
6419 | rm -f conftest* | |
6420 | fi | |
6421 | ||
6422 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6423 | echo "$ac_t""yes" 1>&6 | |
6424 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6425 | cat >> confdefs.h <<EOF | |
6426 | #define $ac_tr_func 1 | |
6427 | EOF | |
6428 | ||
6429 | else | |
6430 | echo "$ac_t""no" 1>&6 | |
6431 | fi | |
6432 | done | |
6433 | ||
6434 | fi | |
6435 | ||
6436 | ||
421173e6 PE |
6437 | echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6 |
6438 | echo "configure:6439: checking for ldexpf declaration" >&5 | |
6439 | if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then | |
6440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6441 | else | |
38bd7296 | 6442 | |
421173e6 PE |
6443 | |
6444 | ac_ext=C | |
38bd7296 BK |
6445 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6446 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6447 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6448 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6449 | cross_compiling=$ac_cv_prog_cxx_cross | |
6450 | ||
421173e6 PE |
6451 | cat > conftest.$ac_ext <<EOF |
6452 | #line 6453 "configure" | |
38bd7296 BK |
6453 | #include "confdefs.h" |
6454 | #include <math.h> | |
6455 | int main() { | |
6456 | ldexpf(0, 0); | |
6457 | ; return 0; } | |
6458 | EOF | |
421173e6 | 6459 | if { (eval echo configure:6460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6460 | rm -rf conftest* |
421173e6 | 6461 | glibcpp_cv_func_ldexpf_use=yes |
38bd7296 BK |
6462 | else |
6463 | echo "configure: failed program was:" >&5 | |
6464 | cat conftest.$ac_ext >&5 | |
6465 | rm -rf conftest* | |
421173e6 | 6466 | glibcpp_cv_func_ldexpf_use=no |
38bd7296 BK |
6467 | fi |
6468 | rm -f conftest* | |
421173e6 | 6469 | ac_ext=c |
38bd7296 BK |
6470 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6471 | ac_cpp='$CPP $CPPFLAGS' | |
6472 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6473 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6474 | cross_compiling=$ac_cv_prog_cc_cross | |
6475 | ||
421173e6 PE |
6476 | |
6477 | fi | |
6478 | ||
6479 | echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6 | |
6480 | if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then | |
38bd7296 BK |
6481 | for ac_func in ldexpf |
6482 | do | |
6483 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6484 | echo "configure:6485: checking for $ac_func" >&5 |
38bd7296 BK |
6485 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6487 | else | |
6488 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6489 | #line 6490 "configure" |
38bd7296 BK |
6490 | #include "confdefs.h" |
6491 | /* System header to define __stub macros and hopefully few prototypes, | |
6492 | which can conflict with char $ac_func(); below. */ | |
6493 | #include <assert.h> | |
6494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6495 | /* We use char because int might match the return type of a gcc2 | |
6496 | builtin and then its argument prototype would still apply. */ | |
6497 | char $ac_func(); | |
6498 | ||
6499 | int main() { | |
6500 | ||
6501 | /* The GNU C library defines this for functions which it implements | |
6502 | to always fail with ENOSYS. Some functions are actually named | |
6503 | something starting with __ and the normal name is an alias. */ | |
6504 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6505 | choke me | |
6506 | #else | |
6507 | $ac_func(); | |
6508 | #endif | |
6509 | ||
6510 | ; return 0; } | |
6511 | EOF | |
421173e6 | 6512 | if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6513 | rm -rf conftest* |
6514 | eval "ac_cv_func_$ac_func=yes" | |
6515 | else | |
6516 | echo "configure: failed program was:" >&5 | |
6517 | cat conftest.$ac_ext >&5 | |
6518 | rm -rf conftest* | |
6519 | eval "ac_cv_func_$ac_func=no" | |
6520 | fi | |
6521 | rm -f conftest* | |
6522 | fi | |
6523 | ||
6524 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6525 | echo "$ac_t""yes" 1>&6 | |
6526 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6527 | cat >> confdefs.h <<EOF | |
6528 | #define $ac_tr_func 1 | |
6529 | EOF | |
6530 | ||
6531 | else | |
6532 | echo "$ac_t""no" 1>&6 | |
6533 | fi | |
6534 | done | |
6535 | ||
6536 | fi | |
6537 | ||
6538 | ||
421173e6 PE |
6539 | echo $ac_n "checking for logf declaration""... $ac_c" 1>&6 |
6540 | echo "configure:6541: checking for logf declaration" >&5 | |
6541 | if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then | |
6542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6543 | else | |
38bd7296 | 6544 | |
421173e6 PE |
6545 | |
6546 | ac_ext=C | |
38bd7296 BK |
6547 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6548 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6549 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6550 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6551 | cross_compiling=$ac_cv_prog_cxx_cross | |
6552 | ||
421173e6 PE |
6553 | cat > conftest.$ac_ext <<EOF |
6554 | #line 6555 "configure" | |
38bd7296 BK |
6555 | #include "confdefs.h" |
6556 | #include <math.h> | |
6557 | int main() { | |
6558 | logf(0); | |
6559 | ; return 0; } | |
6560 | EOF | |
421173e6 | 6561 | if { (eval echo configure:6562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6562 | rm -rf conftest* |
421173e6 | 6563 | glibcpp_cv_func_logf_use=yes |
38bd7296 BK |
6564 | else |
6565 | echo "configure: failed program was:" >&5 | |
6566 | cat conftest.$ac_ext >&5 | |
6567 | rm -rf conftest* | |
421173e6 | 6568 | glibcpp_cv_func_logf_use=no |
38bd7296 BK |
6569 | fi |
6570 | rm -f conftest* | |
421173e6 | 6571 | ac_ext=c |
38bd7296 BK |
6572 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6573 | ac_cpp='$CPP $CPPFLAGS' | |
6574 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6575 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6576 | cross_compiling=$ac_cv_prog_cc_cross | |
6577 | ||
421173e6 PE |
6578 | |
6579 | fi | |
6580 | ||
6581 | echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6 | |
6582 | if test x$glibcpp_cv_func_logf_use = x"yes"; then | |
38bd7296 BK |
6583 | for ac_func in logf |
6584 | do | |
6585 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6586 | echo "configure:6587: checking for $ac_func" >&5 |
38bd7296 BK |
6587 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6589 | else | |
6590 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6591 | #line 6592 "configure" |
38bd7296 BK |
6592 | #include "confdefs.h" |
6593 | /* System header to define __stub macros and hopefully few prototypes, | |
6594 | which can conflict with char $ac_func(); below. */ | |
6595 | #include <assert.h> | |
6596 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6597 | /* We use char because int might match the return type of a gcc2 | |
6598 | builtin and then its argument prototype would still apply. */ | |
6599 | char $ac_func(); | |
6600 | ||
6601 | int main() { | |
6602 | ||
6603 | /* The GNU C library defines this for functions which it implements | |
6604 | to always fail with ENOSYS. Some functions are actually named | |
6605 | something starting with __ and the normal name is an alias. */ | |
6606 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6607 | choke me | |
6608 | #else | |
6609 | $ac_func(); | |
6610 | #endif | |
6611 | ||
6612 | ; return 0; } | |
6613 | EOF | |
421173e6 | 6614 | if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6615 | rm -rf conftest* |
6616 | eval "ac_cv_func_$ac_func=yes" | |
6617 | else | |
6618 | echo "configure: failed program was:" >&5 | |
6619 | cat conftest.$ac_ext >&5 | |
6620 | rm -rf conftest* | |
6621 | eval "ac_cv_func_$ac_func=no" | |
6622 | fi | |
6623 | rm -f conftest* | |
6624 | fi | |
6625 | ||
6626 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6627 | echo "$ac_t""yes" 1>&6 | |
6628 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6629 | cat >> confdefs.h <<EOF | |
6630 | #define $ac_tr_func 1 | |
6631 | EOF | |
6632 | ||
6633 | else | |
6634 | echo "$ac_t""no" 1>&6 | |
6635 | fi | |
6636 | done | |
6637 | ||
6638 | fi | |
6639 | ||
6640 | ||
421173e6 PE |
6641 | echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6 |
6642 | echo "configure:6643: checking for log10f declaration" >&5 | |
6643 | if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then | |
6644 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6645 | else | |
38bd7296 | 6646 | |
421173e6 PE |
6647 | |
6648 | ac_ext=C | |
38bd7296 BK |
6649 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6650 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6651 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6652 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6653 | cross_compiling=$ac_cv_prog_cxx_cross | |
6654 | ||
421173e6 PE |
6655 | cat > conftest.$ac_ext <<EOF |
6656 | #line 6657 "configure" | |
38bd7296 BK |
6657 | #include "confdefs.h" |
6658 | #include <math.h> | |
6659 | int main() { | |
6660 | log10f(0); | |
6661 | ; return 0; } | |
6662 | EOF | |
421173e6 | 6663 | if { (eval echo configure:6664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6664 | rm -rf conftest* |
421173e6 | 6665 | glibcpp_cv_func_log10f_use=yes |
38bd7296 BK |
6666 | else |
6667 | echo "configure: failed program was:" >&5 | |
6668 | cat conftest.$ac_ext >&5 | |
6669 | rm -rf conftest* | |
421173e6 | 6670 | glibcpp_cv_func_log10f_use=no |
38bd7296 BK |
6671 | fi |
6672 | rm -f conftest* | |
421173e6 | 6673 | ac_ext=c |
38bd7296 BK |
6674 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6675 | ac_cpp='$CPP $CPPFLAGS' | |
6676 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6677 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6678 | cross_compiling=$ac_cv_prog_cc_cross | |
6679 | ||
421173e6 PE |
6680 | |
6681 | fi | |
6682 | ||
6683 | echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6 | |
6684 | if test x$glibcpp_cv_func_log10f_use = x"yes"; then | |
38bd7296 BK |
6685 | for ac_func in log10f |
6686 | do | |
6687 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6688 | echo "configure:6689: checking for $ac_func" >&5 |
38bd7296 BK |
6689 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6691 | else | |
6692 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6693 | #line 6694 "configure" |
38bd7296 BK |
6694 | #include "confdefs.h" |
6695 | /* System header to define __stub macros and hopefully few prototypes, | |
6696 | which can conflict with char $ac_func(); below. */ | |
6697 | #include <assert.h> | |
6698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6699 | /* We use char because int might match the return type of a gcc2 | |
6700 | builtin and then its argument prototype would still apply. */ | |
6701 | char $ac_func(); | |
6702 | ||
6703 | int main() { | |
6704 | ||
6705 | /* The GNU C library defines this for functions which it implements | |
6706 | to always fail with ENOSYS. Some functions are actually named | |
6707 | something starting with __ and the normal name is an alias. */ | |
6708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6709 | choke me | |
6710 | #else | |
6711 | $ac_func(); | |
6712 | #endif | |
6713 | ||
6714 | ; return 0; } | |
6715 | EOF | |
421173e6 | 6716 | if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6717 | rm -rf conftest* |
6718 | eval "ac_cv_func_$ac_func=yes" | |
6719 | else | |
6720 | echo "configure: failed program was:" >&5 | |
6721 | cat conftest.$ac_ext >&5 | |
6722 | rm -rf conftest* | |
6723 | eval "ac_cv_func_$ac_func=no" | |
6724 | fi | |
6725 | rm -f conftest* | |
6726 | fi | |
6727 | ||
6728 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6729 | echo "$ac_t""yes" 1>&6 | |
6730 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6731 | cat >> confdefs.h <<EOF | |
6732 | #define $ac_tr_func 1 | |
6733 | EOF | |
6734 | ||
6735 | else | |
6736 | echo "$ac_t""no" 1>&6 | |
6737 | fi | |
6738 | done | |
6739 | ||
6740 | fi | |
6741 | ||
6742 | ||
421173e6 PE |
6743 | echo $ac_n "checking for modff declaration""... $ac_c" 1>&6 |
6744 | echo "configure:6745: checking for modff declaration" >&5 | |
6745 | if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then | |
6746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6747 | else | |
38bd7296 | 6748 | |
421173e6 PE |
6749 | |
6750 | ac_ext=C | |
38bd7296 BK |
6751 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6752 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6753 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6754 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6755 | cross_compiling=$ac_cv_prog_cxx_cross | |
6756 | ||
421173e6 PE |
6757 | cat > conftest.$ac_ext <<EOF |
6758 | #line 6759 "configure" | |
38bd7296 BK |
6759 | #include "confdefs.h" |
6760 | #include <math.h> | |
6761 | int main() { | |
6762 | modff(0, 0); | |
6763 | ; return 0; } | |
6764 | EOF | |
421173e6 | 6765 | if { (eval echo configure:6766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6766 | rm -rf conftest* |
421173e6 | 6767 | glibcpp_cv_func_modff_use=yes |
38bd7296 BK |
6768 | else |
6769 | echo "configure: failed program was:" >&5 | |
6770 | cat conftest.$ac_ext >&5 | |
6771 | rm -rf conftest* | |
421173e6 | 6772 | glibcpp_cv_func_modff_use=no |
38bd7296 BK |
6773 | fi |
6774 | rm -f conftest* | |
421173e6 | 6775 | ac_ext=c |
38bd7296 BK |
6776 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6777 | ac_cpp='$CPP $CPPFLAGS' | |
6778 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6779 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6780 | cross_compiling=$ac_cv_prog_cc_cross | |
6781 | ||
421173e6 PE |
6782 | |
6783 | fi | |
6784 | ||
6785 | echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6 | |
6786 | if test x$glibcpp_cv_func_modff_use = x"yes"; then | |
38bd7296 BK |
6787 | for ac_func in modff |
6788 | do | |
6789 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6790 | echo "configure:6791: checking for $ac_func" >&5 |
38bd7296 BK |
6791 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6793 | else | |
6794 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6795 | #line 6796 "configure" |
38bd7296 BK |
6796 | #include "confdefs.h" |
6797 | /* System header to define __stub macros and hopefully few prototypes, | |
6798 | which can conflict with char $ac_func(); below. */ | |
6799 | #include <assert.h> | |
6800 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6801 | /* We use char because int might match the return type of a gcc2 | |
6802 | builtin and then its argument prototype would still apply. */ | |
6803 | char $ac_func(); | |
6804 | ||
6805 | int main() { | |
6806 | ||
6807 | /* The GNU C library defines this for functions which it implements | |
6808 | to always fail with ENOSYS. Some functions are actually named | |
6809 | something starting with __ and the normal name is an alias. */ | |
6810 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6811 | choke me | |
6812 | #else | |
6813 | $ac_func(); | |
6814 | #endif | |
6815 | ||
6816 | ; return 0; } | |
6817 | EOF | |
421173e6 | 6818 | if { (eval echo configure:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6819 | rm -rf conftest* |
6820 | eval "ac_cv_func_$ac_func=yes" | |
6821 | else | |
6822 | echo "configure: failed program was:" >&5 | |
6823 | cat conftest.$ac_ext >&5 | |
6824 | rm -rf conftest* | |
6825 | eval "ac_cv_func_$ac_func=no" | |
6826 | fi | |
6827 | rm -f conftest* | |
6828 | fi | |
6829 | ||
6830 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6831 | echo "$ac_t""yes" 1>&6 | |
6832 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6833 | cat >> confdefs.h <<EOF | |
6834 | #define $ac_tr_func 1 | |
6835 | EOF | |
6836 | ||
6837 | else | |
6838 | echo "$ac_t""no" 1>&6 | |
6839 | fi | |
6840 | done | |
6841 | ||
6842 | fi | |
6843 | ||
6844 | ||
421173e6 PE |
6845 | echo $ac_n "checking for powf declaration""... $ac_c" 1>&6 |
6846 | echo "configure:6847: checking for powf declaration" >&5 | |
6847 | if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then | |
6848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6849 | else | |
38bd7296 | 6850 | |
421173e6 PE |
6851 | |
6852 | ac_ext=C | |
38bd7296 BK |
6853 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6854 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6855 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6856 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6857 | cross_compiling=$ac_cv_prog_cxx_cross | |
6858 | ||
421173e6 PE |
6859 | cat > conftest.$ac_ext <<EOF |
6860 | #line 6861 "configure" | |
38bd7296 BK |
6861 | #include "confdefs.h" |
6862 | #include <math.h> | |
6863 | int main() { | |
6864 | powf(0, 0); | |
6865 | ; return 0; } | |
6866 | EOF | |
421173e6 | 6867 | if { (eval echo configure:6868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6868 | rm -rf conftest* |
421173e6 | 6869 | glibcpp_cv_func_powf_use=yes |
38bd7296 BK |
6870 | else |
6871 | echo "configure: failed program was:" >&5 | |
6872 | cat conftest.$ac_ext >&5 | |
6873 | rm -rf conftest* | |
421173e6 | 6874 | glibcpp_cv_func_powf_use=no |
38bd7296 BK |
6875 | fi |
6876 | rm -f conftest* | |
421173e6 | 6877 | ac_ext=c |
38bd7296 BK |
6878 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6879 | ac_cpp='$CPP $CPPFLAGS' | |
6880 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6881 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6882 | cross_compiling=$ac_cv_prog_cc_cross | |
6883 | ||
421173e6 PE |
6884 | |
6885 | fi | |
6886 | ||
6887 | echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6 | |
6888 | if test x$glibcpp_cv_func_powf_use = x"yes"; then | |
38bd7296 BK |
6889 | for ac_func in powf |
6890 | do | |
6891 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6892 | echo "configure:6893: checking for $ac_func" >&5 |
38bd7296 BK |
6893 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6895 | else | |
6896 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6897 | #line 6898 "configure" |
38bd7296 BK |
6898 | #include "confdefs.h" |
6899 | /* System header to define __stub macros and hopefully few prototypes, | |
6900 | which can conflict with char $ac_func(); below. */ | |
6901 | #include <assert.h> | |
6902 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6903 | /* We use char because int might match the return type of a gcc2 | |
6904 | builtin and then its argument prototype would still apply. */ | |
6905 | char $ac_func(); | |
6906 | ||
6907 | int main() { | |
6908 | ||
6909 | /* The GNU C library defines this for functions which it implements | |
6910 | to always fail with ENOSYS. Some functions are actually named | |
6911 | something starting with __ and the normal name is an alias. */ | |
6912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6913 | choke me | |
6914 | #else | |
6915 | $ac_func(); | |
6916 | #endif | |
6917 | ||
6918 | ; return 0; } | |
6919 | EOF | |
421173e6 | 6920 | if { (eval echo configure:6921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
6921 | rm -rf conftest* |
6922 | eval "ac_cv_func_$ac_func=yes" | |
6923 | else | |
6924 | echo "configure: failed program was:" >&5 | |
6925 | cat conftest.$ac_ext >&5 | |
6926 | rm -rf conftest* | |
6927 | eval "ac_cv_func_$ac_func=no" | |
6928 | fi | |
6929 | rm -f conftest* | |
6930 | fi | |
6931 | ||
6932 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6933 | echo "$ac_t""yes" 1>&6 | |
6934 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6935 | cat >> confdefs.h <<EOF | |
6936 | #define $ac_tr_func 1 | |
6937 | EOF | |
6938 | ||
6939 | else | |
6940 | echo "$ac_t""no" 1>&6 | |
6941 | fi | |
6942 | done | |
6943 | ||
6944 | fi | |
6945 | ||
6946 | ||
421173e6 PE |
6947 | echo $ac_n "checking for sinf declaration""... $ac_c" 1>&6 |
6948 | echo "configure:6949: checking for sinf declaration" >&5 | |
6949 | if eval "test \"`echo '$''{'glibcpp_cv_func_sinf_use'+set}'`\" = set"; then | |
6950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6951 | else | |
38bd7296 | 6952 | |
421173e6 PE |
6953 | |
6954 | ac_ext=C | |
38bd7296 BK |
6955 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6956 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6957 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6958 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6959 | cross_compiling=$ac_cv_prog_cxx_cross | |
6960 | ||
421173e6 PE |
6961 | cat > conftest.$ac_ext <<EOF |
6962 | #line 6963 "configure" | |
38bd7296 BK |
6963 | #include "confdefs.h" |
6964 | #include <math.h> | |
6965 | int main() { | |
6966 | sinf(0); | |
6967 | ; return 0; } | |
6968 | EOF | |
421173e6 | 6969 | if { (eval echo configure:6970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 6970 | rm -rf conftest* |
421173e6 | 6971 | glibcpp_cv_func_sinf_use=yes |
38bd7296 BK |
6972 | else |
6973 | echo "configure: failed program was:" >&5 | |
6974 | cat conftest.$ac_ext >&5 | |
6975 | rm -rf conftest* | |
421173e6 | 6976 | glibcpp_cv_func_sinf_use=no |
38bd7296 BK |
6977 | fi |
6978 | rm -f conftest* | |
421173e6 | 6979 | ac_ext=c |
38bd7296 BK |
6980 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6981 | ac_cpp='$CPP $CPPFLAGS' | |
6982 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6983 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6984 | cross_compiling=$ac_cv_prog_cc_cross | |
6985 | ||
421173e6 PE |
6986 | |
6987 | fi | |
6988 | ||
6989 | echo "$ac_t""$glibcpp_cv_func_sinf_use" 1>&6 | |
6990 | if test x$glibcpp_cv_func_sinf_use = x"yes"; then | |
38bd7296 BK |
6991 | for ac_func in sinf |
6992 | do | |
6993 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 6994 | echo "configure:6995: checking for $ac_func" >&5 |
38bd7296 BK |
6995 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6997 | else | |
6998 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 6999 | #line 7000 "configure" |
38bd7296 BK |
7000 | #include "confdefs.h" |
7001 | /* System header to define __stub macros and hopefully few prototypes, | |
7002 | which can conflict with char $ac_func(); below. */ | |
7003 | #include <assert.h> | |
7004 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7005 | /* We use char because int might match the return type of a gcc2 | |
7006 | builtin and then its argument prototype would still apply. */ | |
7007 | char $ac_func(); | |
7008 | ||
7009 | int main() { | |
7010 | ||
7011 | /* The GNU C library defines this for functions which it implements | |
7012 | to always fail with ENOSYS. Some functions are actually named | |
7013 | something starting with __ and the normal name is an alias. */ | |
7014 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7015 | choke me | |
7016 | #else | |
7017 | $ac_func(); | |
7018 | #endif | |
7019 | ||
7020 | ; return 0; } | |
7021 | EOF | |
421173e6 | 7022 | if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7023 | rm -rf conftest* |
7024 | eval "ac_cv_func_$ac_func=yes" | |
7025 | else | |
7026 | echo "configure: failed program was:" >&5 | |
7027 | cat conftest.$ac_ext >&5 | |
7028 | rm -rf conftest* | |
7029 | eval "ac_cv_func_$ac_func=no" | |
7030 | fi | |
7031 | rm -f conftest* | |
7032 | fi | |
7033 | ||
7034 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7035 | echo "$ac_t""yes" 1>&6 | |
7036 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7037 | cat >> confdefs.h <<EOF | |
7038 | #define $ac_tr_func 1 | |
7039 | EOF | |
7040 | ||
7041 | else | |
7042 | echo "$ac_t""no" 1>&6 | |
7043 | fi | |
7044 | done | |
7045 | ||
7046 | fi | |
7047 | ||
7048 | ||
421173e6 PE |
7049 | echo $ac_n "checking for sinhf declaration""... $ac_c" 1>&6 |
7050 | echo "configure:7051: checking for sinhf declaration" >&5 | |
7051 | if eval "test \"`echo '$''{'glibcpp_cv_func_sinhf_use'+set}'`\" = set"; then | |
7052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7053 | else | |
38bd7296 | 7054 | |
421173e6 PE |
7055 | |
7056 | ac_ext=C | |
38bd7296 BK |
7057 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7058 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7059 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7060 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7061 | cross_compiling=$ac_cv_prog_cxx_cross | |
7062 | ||
421173e6 PE |
7063 | cat > conftest.$ac_ext <<EOF |
7064 | #line 7065 "configure" | |
38bd7296 BK |
7065 | #include "confdefs.h" |
7066 | #include <math.h> | |
7067 | int main() { | |
7068 | sinhf(0); | |
7069 | ; return 0; } | |
7070 | EOF | |
421173e6 | 7071 | if { (eval echo configure:7072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7072 | rm -rf conftest* |
421173e6 | 7073 | glibcpp_cv_func_sinhf_use=yes |
38bd7296 BK |
7074 | else |
7075 | echo "configure: failed program was:" >&5 | |
7076 | cat conftest.$ac_ext >&5 | |
7077 | rm -rf conftest* | |
421173e6 | 7078 | glibcpp_cv_func_sinhf_use=no |
38bd7296 BK |
7079 | fi |
7080 | rm -f conftest* | |
421173e6 | 7081 | ac_ext=c |
38bd7296 BK |
7082 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7083 | ac_cpp='$CPP $CPPFLAGS' | |
7084 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7085 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7086 | cross_compiling=$ac_cv_prog_cc_cross | |
7087 | ||
421173e6 PE |
7088 | |
7089 | fi | |
7090 | ||
7091 | echo "$ac_t""$glibcpp_cv_func_sinhf_use" 1>&6 | |
7092 | if test x$glibcpp_cv_func_sinhf_use = x"yes"; then | |
38bd7296 BK |
7093 | for ac_func in sinhf |
7094 | do | |
7095 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 7096 | echo "configure:7097: checking for $ac_func" >&5 |
38bd7296 BK |
7097 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7099 | else | |
7100 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 7101 | #line 7102 "configure" |
38bd7296 BK |
7102 | #include "confdefs.h" |
7103 | /* System header to define __stub macros and hopefully few prototypes, | |
7104 | which can conflict with char $ac_func(); below. */ | |
7105 | #include <assert.h> | |
7106 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7107 | /* We use char because int might match the return type of a gcc2 | |
7108 | builtin and then its argument prototype would still apply. */ | |
7109 | char $ac_func(); | |
7110 | ||
7111 | int main() { | |
7112 | ||
7113 | /* The GNU C library defines this for functions which it implements | |
7114 | to always fail with ENOSYS. Some functions are actually named | |
7115 | something starting with __ and the normal name is an alias. */ | |
7116 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7117 | choke me | |
7118 | #else | |
7119 | $ac_func(); | |
7120 | #endif | |
7121 | ||
7122 | ; return 0; } | |
7123 | EOF | |
421173e6 | 7124 | if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7125 | rm -rf conftest* |
7126 | eval "ac_cv_func_$ac_func=yes" | |
7127 | else | |
7128 | echo "configure: failed program was:" >&5 | |
7129 | cat conftest.$ac_ext >&5 | |
7130 | rm -rf conftest* | |
7131 | eval "ac_cv_func_$ac_func=no" | |
7132 | fi | |
7133 | rm -f conftest* | |
7134 | fi | |
7135 | ||
7136 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7137 | echo "$ac_t""yes" 1>&6 | |
7138 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7139 | cat >> confdefs.h <<EOF | |
7140 | #define $ac_tr_func 1 | |
7141 | EOF | |
7142 | ||
7143 | else | |
7144 | echo "$ac_t""no" 1>&6 | |
7145 | fi | |
7146 | done | |
7147 | ||
7148 | fi | |
7149 | ||
7150 | ||
421173e6 PE |
7151 | echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6 |
7152 | echo "configure:7153: checking for sqrtf declaration" >&5 | |
7153 | if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then | |
7154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7155 | else | |
38bd7296 | 7156 | |
421173e6 PE |
7157 | |
7158 | ac_ext=C | |
38bd7296 BK |
7159 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7160 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7161 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7162 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7163 | cross_compiling=$ac_cv_prog_cxx_cross | |
7164 | ||
421173e6 PE |
7165 | cat > conftest.$ac_ext <<EOF |
7166 | #line 7167 "configure" | |
38bd7296 BK |
7167 | #include "confdefs.h" |
7168 | #include <math.h> | |
7169 | int main() { | |
7170 | sqrtf(0); | |
7171 | ; return 0; } | |
7172 | EOF | |
421173e6 | 7173 | if { (eval echo configure:7174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7174 | rm -rf conftest* |
421173e6 | 7175 | glibcpp_cv_func_sqrtf_use=yes |
38bd7296 BK |
7176 | else |
7177 | echo "configure: failed program was:" >&5 | |
7178 | cat conftest.$ac_ext >&5 | |
7179 | rm -rf conftest* | |
421173e6 | 7180 | glibcpp_cv_func_sqrtf_use=no |
38bd7296 BK |
7181 | fi |
7182 | rm -f conftest* | |
421173e6 | 7183 | ac_ext=c |
38bd7296 BK |
7184 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7185 | ac_cpp='$CPP $CPPFLAGS' | |
7186 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7187 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7188 | cross_compiling=$ac_cv_prog_cc_cross | |
7189 | ||
421173e6 PE |
7190 | |
7191 | fi | |
7192 | ||
7193 | echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6 | |
7194 | if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then | |
38bd7296 BK |
7195 | for ac_func in sqrtf |
7196 | do | |
7197 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 7198 | echo "configure:7199: checking for $ac_func" >&5 |
38bd7296 BK |
7199 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7201 | else | |
7202 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 7203 | #line 7204 "configure" |
38bd7296 BK |
7204 | #include "confdefs.h" |
7205 | /* System header to define __stub macros and hopefully few prototypes, | |
7206 | which can conflict with char $ac_func(); below. */ | |
7207 | #include <assert.h> | |
7208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7209 | /* We use char because int might match the return type of a gcc2 | |
7210 | builtin and then its argument prototype would still apply. */ | |
7211 | char $ac_func(); | |
7212 | ||
7213 | int main() { | |
7214 | ||
7215 | /* The GNU C library defines this for functions which it implements | |
7216 | to always fail with ENOSYS. Some functions are actually named | |
7217 | something starting with __ and the normal name is an alias. */ | |
7218 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7219 | choke me | |
7220 | #else | |
7221 | $ac_func(); | |
7222 | #endif | |
7223 | ||
7224 | ; return 0; } | |
7225 | EOF | |
421173e6 | 7226 | if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7227 | rm -rf conftest* |
7228 | eval "ac_cv_func_$ac_func=yes" | |
7229 | else | |
7230 | echo "configure: failed program was:" >&5 | |
7231 | cat conftest.$ac_ext >&5 | |
7232 | rm -rf conftest* | |
7233 | eval "ac_cv_func_$ac_func=no" | |
7234 | fi | |
7235 | rm -f conftest* | |
7236 | fi | |
7237 | ||
7238 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7239 | echo "$ac_t""yes" 1>&6 | |
7240 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7241 | cat >> confdefs.h <<EOF | |
7242 | #define $ac_tr_func 1 | |
7243 | EOF | |
7244 | ||
7245 | else | |
7246 | echo "$ac_t""no" 1>&6 | |
7247 | fi | |
7248 | done | |
7249 | ||
7250 | fi | |
7251 | ||
7252 | ||
421173e6 PE |
7253 | echo $ac_n "checking for tanf declaration""... $ac_c" 1>&6 |
7254 | echo "configure:7255: checking for tanf declaration" >&5 | |
7255 | if eval "test \"`echo '$''{'glibcpp_cv_func_tanf_use'+set}'`\" = set"; then | |
7256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7257 | else | |
38bd7296 | 7258 | |
421173e6 PE |
7259 | |
7260 | ac_ext=C | |
38bd7296 BK |
7261 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7262 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7263 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7264 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7265 | cross_compiling=$ac_cv_prog_cxx_cross | |
7266 | ||
421173e6 PE |
7267 | cat > conftest.$ac_ext <<EOF |
7268 | #line 7269 "configure" | |
38bd7296 BK |
7269 | #include "confdefs.h" |
7270 | #include <math.h> | |
7271 | int main() { | |
7272 | tanf(0); | |
7273 | ; return 0; } | |
7274 | EOF | |
421173e6 | 7275 | if { (eval echo configure:7276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7276 | rm -rf conftest* |
421173e6 | 7277 | glibcpp_cv_func_tanf_use=yes |
38bd7296 BK |
7278 | else |
7279 | echo "configure: failed program was:" >&5 | |
7280 | cat conftest.$ac_ext >&5 | |
7281 | rm -rf conftest* | |
421173e6 | 7282 | glibcpp_cv_func_tanf_use=no |
38bd7296 BK |
7283 | fi |
7284 | rm -f conftest* | |
421173e6 | 7285 | ac_ext=c |
38bd7296 BK |
7286 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7287 | ac_cpp='$CPP $CPPFLAGS' | |
7288 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7289 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7290 | cross_compiling=$ac_cv_prog_cc_cross | |
7291 | ||
421173e6 PE |
7292 | |
7293 | fi | |
7294 | ||
7295 | echo "$ac_t""$glibcpp_cv_func_tanf_use" 1>&6 | |
7296 | if test x$glibcpp_cv_func_tanf_use = x"yes"; then | |
38bd7296 BK |
7297 | for ac_func in tanf |
7298 | do | |
7299 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 7300 | echo "configure:7301: checking for $ac_func" >&5 |
38bd7296 BK |
7301 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7303 | else | |
7304 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 7305 | #line 7306 "configure" |
38bd7296 BK |
7306 | #include "confdefs.h" |
7307 | /* System header to define __stub macros and hopefully few prototypes, | |
7308 | which can conflict with char $ac_func(); below. */ | |
7309 | #include <assert.h> | |
7310 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7311 | /* We use char because int might match the return type of a gcc2 | |
7312 | builtin and then its argument prototype would still apply. */ | |
7313 | char $ac_func(); | |
7314 | ||
7315 | int main() { | |
7316 | ||
7317 | /* The GNU C library defines this for functions which it implements | |
7318 | to always fail with ENOSYS. Some functions are actually named | |
7319 | something starting with __ and the normal name is an alias. */ | |
7320 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7321 | choke me | |
7322 | #else | |
7323 | $ac_func(); | |
7324 | #endif | |
7325 | ||
7326 | ; return 0; } | |
7327 | EOF | |
421173e6 | 7328 | if { (eval echo configure:7329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7329 | rm -rf conftest* |
7330 | eval "ac_cv_func_$ac_func=yes" | |
7331 | else | |
7332 | echo "configure: failed program was:" >&5 | |
7333 | cat conftest.$ac_ext >&5 | |
7334 | rm -rf conftest* | |
7335 | eval "ac_cv_func_$ac_func=no" | |
7336 | fi | |
7337 | rm -f conftest* | |
7338 | fi | |
7339 | ||
7340 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7341 | echo "$ac_t""yes" 1>&6 | |
7342 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7343 | cat >> confdefs.h <<EOF | |
7344 | #define $ac_tr_func 1 | |
7345 | EOF | |
7346 | ||
7347 | else | |
7348 | echo "$ac_t""no" 1>&6 | |
7349 | fi | |
7350 | done | |
7351 | ||
7352 | fi | |
7353 | ||
7354 | ||
421173e6 PE |
7355 | echo $ac_n "checking for tanhf declaration""... $ac_c" 1>&6 |
7356 | echo "configure:7357: checking for tanhf declaration" >&5 | |
7357 | if eval "test \"`echo '$''{'glibcpp_cv_func_tanhf_use'+set}'`\" = set"; then | |
7358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7359 | else | |
38bd7296 | 7360 | |
421173e6 PE |
7361 | |
7362 | ac_ext=C | |
38bd7296 BK |
7363 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7364 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7365 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7366 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7367 | cross_compiling=$ac_cv_prog_cxx_cross | |
7368 | ||
421173e6 PE |
7369 | cat > conftest.$ac_ext <<EOF |
7370 | #line 7371 "configure" | |
38bd7296 BK |
7371 | #include "confdefs.h" |
7372 | #include <math.h> | |
7373 | int main() { | |
7374 | tanhf(0); | |
7375 | ; return 0; } | |
7376 | EOF | |
421173e6 | 7377 | if { (eval echo configure:7378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7378 | rm -rf conftest* |
421173e6 | 7379 | glibcpp_cv_func_tanhf_use=yes |
38bd7296 BK |
7380 | else |
7381 | echo "configure: failed program was:" >&5 | |
7382 | cat conftest.$ac_ext >&5 | |
7383 | rm -rf conftest* | |
421173e6 | 7384 | glibcpp_cv_func_tanhf_use=no |
38bd7296 BK |
7385 | fi |
7386 | rm -f conftest* | |
421173e6 | 7387 | ac_ext=c |
38bd7296 BK |
7388 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7389 | ac_cpp='$CPP $CPPFLAGS' | |
7390 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7391 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7392 | cross_compiling=$ac_cv_prog_cc_cross | |
7393 | ||
421173e6 PE |
7394 | |
7395 | fi | |
7396 | ||
7397 | echo "$ac_t""$glibcpp_cv_func_tanhf_use" 1>&6 | |
7398 | if test x$glibcpp_cv_func_tanhf_use = x"yes"; then | |
38bd7296 BK |
7399 | for ac_func in tanhf |
7400 | do | |
7401 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 7402 | echo "configure:7403: checking for $ac_func" >&5 |
38bd7296 BK |
7403 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7405 | else | |
7406 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 7407 | #line 7408 "configure" |
38bd7296 BK |
7408 | #include "confdefs.h" |
7409 | /* System header to define __stub macros and hopefully few prototypes, | |
7410 | which can conflict with char $ac_func(); below. */ | |
7411 | #include <assert.h> | |
7412 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7413 | /* We use char because int might match the return type of a gcc2 | |
7414 | builtin and then its argument prototype would still apply. */ | |
7415 | char $ac_func(); | |
7416 | ||
7417 | int main() { | |
7418 | ||
7419 | /* The GNU C library defines this for functions which it implements | |
7420 | to always fail with ENOSYS. Some functions are actually named | |
7421 | something starting with __ and the normal name is an alias. */ | |
7422 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7423 | choke me | |
7424 | #else | |
7425 | $ac_func(); | |
7426 | #endif | |
7427 | ||
7428 | ; return 0; } | |
7429 | EOF | |
421173e6 | 7430 | if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7431 | rm -rf conftest* |
7432 | eval "ac_cv_func_$ac_func=yes" | |
7433 | else | |
7434 | echo "configure: failed program was:" >&5 | |
7435 | cat conftest.$ac_ext >&5 | |
7436 | rm -rf conftest* | |
7437 | eval "ac_cv_func_$ac_func=no" | |
7438 | fi | |
7439 | rm -f conftest* | |
7440 | fi | |
7441 | ||
7442 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7443 | echo "$ac_t""yes" 1>&6 | |
7444 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7445 | cat >> confdefs.h <<EOF | |
7446 | #define $ac_tr_func 1 | |
7447 | EOF | |
7448 | ||
7449 | else | |
7450 | echo "$ac_t""no" 1>&6 | |
7451 | fi | |
7452 | done | |
7453 | ||
7454 | fi | |
7455 | ||
7456 | ||
421173e6 PE |
7457 | echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6 |
7458 | echo "configure:7459: checking for sincosf declaration" >&5 | |
7459 | if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then | |
7460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7461 | else | |
38bd7296 | 7462 | |
421173e6 PE |
7463 | |
7464 | ac_ext=C | |
38bd7296 BK |
7465 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7466 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7467 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7468 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7469 | cross_compiling=$ac_cv_prog_cxx_cross | |
7470 | ||
421173e6 PE |
7471 | cat > conftest.$ac_ext <<EOF |
7472 | #line 7473 "configure" | |
38bd7296 BK |
7473 | #include "confdefs.h" |
7474 | #include <math.h> | |
7475 | int main() { | |
7476 | sincosf(0, 0, 0); | |
7477 | ; return 0; } | |
7478 | EOF | |
421173e6 | 7479 | if { (eval echo configure:7480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7480 | rm -rf conftest* |
421173e6 | 7481 | glibcpp_cv_func_sincosf_use=yes |
38bd7296 BK |
7482 | else |
7483 | echo "configure: failed program was:" >&5 | |
7484 | cat conftest.$ac_ext >&5 | |
7485 | rm -rf conftest* | |
421173e6 | 7486 | glibcpp_cv_func_sincosf_use=no |
38bd7296 BK |
7487 | fi |
7488 | rm -f conftest* | |
421173e6 | 7489 | ac_ext=c |
38bd7296 BK |
7490 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7491 | ac_cpp='$CPP $CPPFLAGS' | |
7492 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7493 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7494 | cross_compiling=$ac_cv_prog_cc_cross | |
7495 | ||
421173e6 PE |
7496 | |
7497 | fi | |
7498 | ||
7499 | echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6 | |
7500 | if test x$glibcpp_cv_func_sincosf_use = x"yes"; then | |
38bd7296 BK |
7501 | for ac_func in sincosf |
7502 | do | |
7503 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 7504 | echo "configure:7505: checking for $ac_func" >&5 |
38bd7296 BK |
7505 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7507 | else | |
7508 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 7509 | #line 7510 "configure" |
38bd7296 BK |
7510 | #include "confdefs.h" |
7511 | /* System header to define __stub macros and hopefully few prototypes, | |
7512 | which can conflict with char $ac_func(); below. */ | |
7513 | #include <assert.h> | |
7514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7515 | /* We use char because int might match the return type of a gcc2 | |
7516 | builtin and then its argument prototype would still apply. */ | |
7517 | char $ac_func(); | |
7518 | ||
7519 | int main() { | |
7520 | ||
7521 | /* The GNU C library defines this for functions which it implements | |
7522 | to always fail with ENOSYS. Some functions are actually named | |
7523 | something starting with __ and the normal name is an alias. */ | |
7524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7525 | choke me | |
7526 | #else | |
7527 | $ac_func(); | |
7528 | #endif | |
7529 | ||
7530 | ; return 0; } | |
7531 | EOF | |
421173e6 | 7532 | if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7533 | rm -rf conftest* |
7534 | eval "ac_cv_func_$ac_func=yes" | |
7535 | else | |
7536 | echo "configure: failed program was:" >&5 | |
7537 | cat conftest.$ac_ext >&5 | |
7538 | rm -rf conftest* | |
7539 | eval "ac_cv_func_$ac_func=no" | |
7540 | fi | |
7541 | rm -f conftest* | |
7542 | fi | |
7543 | ||
7544 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7545 | echo "$ac_t""yes" 1>&6 | |
7546 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7547 | cat >> confdefs.h <<EOF | |
7548 | #define $ac_tr_func 1 | |
7549 | EOF | |
7550 | ||
7551 | else | |
7552 | echo "$ac_t""no" 1>&6 | |
7553 | fi | |
7554 | done | |
7555 | ||
7556 | fi | |
7557 | ||
7558 | ||
421173e6 PE |
7559 | echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6 |
7560 | echo "configure:7561: checking for finitef declaration" >&5 | |
7561 | if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then | |
7562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7563 | else | |
38bd7296 | 7564 | |
421173e6 PE |
7565 | |
7566 | ac_ext=C | |
38bd7296 BK |
7567 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7568 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7569 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7570 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7571 | cross_compiling=$ac_cv_prog_cxx_cross | |
7572 | ||
421173e6 PE |
7573 | cat > conftest.$ac_ext <<EOF |
7574 | #line 7575 "configure" | |
38bd7296 BK |
7575 | #include "confdefs.h" |
7576 | #include <math.h> | |
7577 | int main() { | |
7578 | finitef(0); | |
7579 | ; return 0; } | |
7580 | EOF | |
421173e6 | 7581 | if { (eval echo configure:7582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7582 | rm -rf conftest* |
421173e6 | 7583 | glibcpp_cv_func_finitef_use=yes |
38bd7296 BK |
7584 | else |
7585 | echo "configure: failed program was:" >&5 | |
7586 | cat conftest.$ac_ext >&5 | |
7587 | rm -rf conftest* | |
421173e6 | 7588 | glibcpp_cv_func_finitef_use=no |
38bd7296 BK |
7589 | fi |
7590 | rm -f conftest* | |
421173e6 | 7591 | ac_ext=c |
38bd7296 BK |
7592 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7593 | ac_cpp='$CPP $CPPFLAGS' | |
7594 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7595 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7596 | cross_compiling=$ac_cv_prog_cc_cross | |
7597 | ||
421173e6 PE |
7598 | |
7599 | fi | |
7600 | ||
7601 | echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6 | |
7602 | if test x$glibcpp_cv_func_finitef_use = x"yes"; then | |
38bd7296 BK |
7603 | for ac_func in finitef |
7604 | do | |
7605 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 7606 | echo "configure:7607: checking for $ac_func" >&5 |
38bd7296 BK |
7607 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7608 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7609 | else | |
7610 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 7611 | #line 7612 "configure" |
38bd7296 BK |
7612 | #include "confdefs.h" |
7613 | /* System header to define __stub macros and hopefully few prototypes, | |
7614 | which can conflict with char $ac_func(); below. */ | |
7615 | #include <assert.h> | |
7616 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7617 | /* We use char because int might match the return type of a gcc2 | |
7618 | builtin and then its argument prototype would still apply. */ | |
7619 | char $ac_func(); | |
7620 | ||
7621 | int main() { | |
7622 | ||
7623 | /* The GNU C library defines this for functions which it implements | |
7624 | to always fail with ENOSYS. Some functions are actually named | |
7625 | something starting with __ and the normal name is an alias. */ | |
7626 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7627 | choke me | |
7628 | #else | |
7629 | $ac_func(); | |
7630 | #endif | |
7631 | ||
7632 | ; return 0; } | |
7633 | EOF | |
421173e6 | 7634 | if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7635 | rm -rf conftest* |
7636 | eval "ac_cv_func_$ac_func=yes" | |
7637 | else | |
7638 | echo "configure: failed program was:" >&5 | |
7639 | cat conftest.$ac_ext >&5 | |
7640 | rm -rf conftest* | |
7641 | eval "ac_cv_func_$ac_func=no" | |
7642 | fi | |
7643 | rm -f conftest* | |
7644 | fi | |
7645 | ||
7646 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7647 | echo "$ac_t""yes" 1>&6 | |
7648 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7649 | cat >> confdefs.h <<EOF | |
7650 | #define $ac_tr_func 1 | |
7651 | EOF | |
7652 | ||
7653 | else | |
7654 | echo "$ac_t""no" 1>&6 | |
7655 | fi | |
7656 | done | |
7657 | ||
7658 | fi | |
7659 | ||
7660 | ||
7661 | ||
421173e6 PE |
7662 | echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6 |
7663 | echo "configure:7664: checking for isnanl declaration" >&5 | |
7664 | if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then | |
7665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7666 | else | |
38bd7296 | 7667 | |
421173e6 PE |
7668 | |
7669 | ac_ext=C | |
38bd7296 BK |
7670 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7671 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7672 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7673 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7674 | cross_compiling=$ac_cv_prog_cxx_cross | |
7675 | ||
421173e6 PE |
7676 | cat > conftest.$ac_ext <<EOF |
7677 | #line 7678 "configure" | |
38bd7296 BK |
7678 | #include "confdefs.h" |
7679 | #include <math.h> | |
7680 | int main() { | |
7681 | isnanl(0); | |
7682 | ; return 0; } | |
7683 | EOF | |
421173e6 | 7684 | if { (eval echo configure:7685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7685 | rm -rf conftest* |
421173e6 | 7686 | glibcpp_cv_func_isnanl_use=yes |
38bd7296 BK |
7687 | else |
7688 | echo "configure: failed program was:" >&5 | |
7689 | cat conftest.$ac_ext >&5 | |
7690 | rm -rf conftest* | |
421173e6 | 7691 | glibcpp_cv_func_isnanl_use=no |
38bd7296 BK |
7692 | fi |
7693 | rm -f conftest* | |
421173e6 | 7694 | ac_ext=c |
38bd7296 BK |
7695 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7696 | ac_cpp='$CPP $CPPFLAGS' | |
7697 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7698 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7699 | cross_compiling=$ac_cv_prog_cc_cross | |
7700 | ||
421173e6 PE |
7701 | |
7702 | fi | |
7703 | ||
7704 | echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6 | |
7705 | if test x$glibcpp_cv_func_isnanl_use = x"yes"; then | |
38bd7296 BK |
7706 | for ac_func in isnanl |
7707 | do | |
7708 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 7709 | echo "configure:7710: checking for $ac_func" >&5 |
38bd7296 BK |
7710 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7712 | else | |
7713 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 7714 | #line 7715 "configure" |
38bd7296 BK |
7715 | #include "confdefs.h" |
7716 | /* System header to define __stub macros and hopefully few prototypes, | |
7717 | which can conflict with char $ac_func(); below. */ | |
7718 | #include <assert.h> | |
7719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7720 | /* We use char because int might match the return type of a gcc2 | |
7721 | builtin and then its argument prototype would still apply. */ | |
7722 | char $ac_func(); | |
7723 | ||
7724 | int main() { | |
7725 | ||
7726 | /* The GNU C library defines this for functions which it implements | |
7727 | to always fail with ENOSYS. Some functions are actually named | |
7728 | something starting with __ and the normal name is an alias. */ | |
7729 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7730 | choke me | |
7731 | #else | |
7732 | $ac_func(); | |
7733 | #endif | |
7734 | ||
7735 | ; return 0; } | |
7736 | EOF | |
421173e6 | 7737 | if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7738 | rm -rf conftest* |
7739 | eval "ac_cv_func_$ac_func=yes" | |
7740 | else | |
7741 | echo "configure: failed program was:" >&5 | |
7742 | cat conftest.$ac_ext >&5 | |
7743 | rm -rf conftest* | |
7744 | eval "ac_cv_func_$ac_func=no" | |
7745 | fi | |
7746 | rm -f conftest* | |
7747 | fi | |
7748 | ||
7749 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7750 | echo "$ac_t""yes" 1>&6 | |
7751 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7752 | cat >> confdefs.h <<EOF | |
7753 | #define $ac_tr_func 1 | |
7754 | EOF | |
7755 | ||
7756 | else | |
7757 | echo "$ac_t""no" 1>&6 | |
7758 | fi | |
7759 | done | |
7760 | ||
7761 | fi | |
7762 | ||
7763 | ||
421173e6 PE |
7764 | echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6 |
7765 | echo "configure:7766: checking for isinfl declaration" >&5 | |
7766 | if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then | |
7767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7768 | else | |
38bd7296 | 7769 | |
421173e6 PE |
7770 | |
7771 | ac_ext=C | |
38bd7296 BK |
7772 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7773 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7774 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7775 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7776 | cross_compiling=$ac_cv_prog_cxx_cross | |
7777 | ||
421173e6 PE |
7778 | cat > conftest.$ac_ext <<EOF |
7779 | #line 7780 "configure" | |
38bd7296 BK |
7780 | #include "confdefs.h" |
7781 | #include <math.h> | |
7782 | int main() { | |
7783 | isinfl(0); | |
7784 | ; return 0; } | |
7785 | EOF | |
421173e6 | 7786 | if { (eval echo configure:7787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7787 | rm -rf conftest* |
421173e6 | 7788 | glibcpp_cv_func_isinfl_use=yes |
38bd7296 BK |
7789 | else |
7790 | echo "configure: failed program was:" >&5 | |
7791 | cat conftest.$ac_ext >&5 | |
7792 | rm -rf conftest* | |
421173e6 | 7793 | glibcpp_cv_func_isinfl_use=no |
38bd7296 BK |
7794 | fi |
7795 | rm -f conftest* | |
421173e6 | 7796 | ac_ext=c |
38bd7296 BK |
7797 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7798 | ac_cpp='$CPP $CPPFLAGS' | |
7799 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7800 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7801 | cross_compiling=$ac_cv_prog_cc_cross | |
7802 | ||
421173e6 PE |
7803 | |
7804 | fi | |
7805 | ||
7806 | echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6 | |
7807 | if test x$glibcpp_cv_func_isinfl_use = x"yes"; then | |
38bd7296 BK |
7808 | for ac_func in isinfl |
7809 | do | |
7810 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 7811 | echo "configure:7812: checking for $ac_func" >&5 |
38bd7296 BK |
7812 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7814 | else | |
7815 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 7816 | #line 7817 "configure" |
38bd7296 BK |
7817 | #include "confdefs.h" |
7818 | /* System header to define __stub macros and hopefully few prototypes, | |
7819 | which can conflict with char $ac_func(); below. */ | |
7820 | #include <assert.h> | |
7821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7822 | /* We use char because int might match the return type of a gcc2 | |
7823 | builtin and then its argument prototype would still apply. */ | |
7824 | char $ac_func(); | |
7825 | ||
7826 | int main() { | |
7827 | ||
7828 | /* The GNU C library defines this for functions which it implements | |
7829 | to always fail with ENOSYS. Some functions are actually named | |
7830 | something starting with __ and the normal name is an alias. */ | |
7831 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7832 | choke me | |
7833 | #else | |
7834 | $ac_func(); | |
7835 | #endif | |
7836 | ||
7837 | ; return 0; } | |
7838 | EOF | |
421173e6 | 7839 | if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7840 | rm -rf conftest* |
7841 | eval "ac_cv_func_$ac_func=yes" | |
7842 | else | |
7843 | echo "configure: failed program was:" >&5 | |
7844 | cat conftest.$ac_ext >&5 | |
7845 | rm -rf conftest* | |
7846 | eval "ac_cv_func_$ac_func=no" | |
7847 | fi | |
7848 | rm -f conftest* | |
7849 | fi | |
7850 | ||
7851 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7852 | echo "$ac_t""yes" 1>&6 | |
7853 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7854 | cat >> confdefs.h <<EOF | |
7855 | #define $ac_tr_func 1 | |
7856 | EOF | |
7857 | ||
7858 | else | |
7859 | echo "$ac_t""no" 1>&6 | |
7860 | fi | |
7861 | done | |
7862 | ||
7863 | fi | |
7864 | ||
7865 | ||
421173e6 PE |
7866 | echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6 |
7867 | echo "configure:7868: checking for copysignl declaration" >&5 | |
7868 | if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then | |
7869 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7870 | else | |
38bd7296 | 7871 | |
421173e6 PE |
7872 | |
7873 | ac_ext=C | |
38bd7296 BK |
7874 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7875 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7876 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7877 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7878 | cross_compiling=$ac_cv_prog_cxx_cross | |
7879 | ||
421173e6 PE |
7880 | cat > conftest.$ac_ext <<EOF |
7881 | #line 7882 "configure" | |
38bd7296 BK |
7882 | #include "confdefs.h" |
7883 | #include <math.h> | |
7884 | int main() { | |
11fc1858 | 7885 | copysignl(0, 0); |
38bd7296 BK |
7886 | ; return 0; } |
7887 | EOF | |
421173e6 | 7888 | if { (eval echo configure:7889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7889 | rm -rf conftest* |
421173e6 | 7890 | glibcpp_cv_func_copysignl_use=yes |
38bd7296 BK |
7891 | else |
7892 | echo "configure: failed program was:" >&5 | |
7893 | cat conftest.$ac_ext >&5 | |
7894 | rm -rf conftest* | |
421173e6 | 7895 | glibcpp_cv_func_copysignl_use=no |
38bd7296 BK |
7896 | fi |
7897 | rm -f conftest* | |
421173e6 | 7898 | ac_ext=c |
38bd7296 BK |
7899 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7900 | ac_cpp='$CPP $CPPFLAGS' | |
7901 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7902 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7903 | cross_compiling=$ac_cv_prog_cc_cross | |
7904 | ||
421173e6 PE |
7905 | |
7906 | fi | |
7907 | ||
7908 | echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6 | |
7909 | if test x$glibcpp_cv_func_copysignl_use = x"yes"; then | |
38bd7296 BK |
7910 | for ac_func in copysignl |
7911 | do | |
7912 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 7913 | echo "configure:7914: checking for $ac_func" >&5 |
38bd7296 BK |
7914 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7916 | else | |
7917 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 7918 | #line 7919 "configure" |
38bd7296 BK |
7919 | #include "confdefs.h" |
7920 | /* System header to define __stub macros and hopefully few prototypes, | |
7921 | which can conflict with char $ac_func(); below. */ | |
7922 | #include <assert.h> | |
7923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7924 | /* We use char because int might match the return type of a gcc2 | |
7925 | builtin and then its argument prototype would still apply. */ | |
7926 | char $ac_func(); | |
7927 | ||
7928 | int main() { | |
7929 | ||
7930 | /* The GNU C library defines this for functions which it implements | |
7931 | to always fail with ENOSYS. Some functions are actually named | |
7932 | something starting with __ and the normal name is an alias. */ | |
7933 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7934 | choke me | |
7935 | #else | |
7936 | $ac_func(); | |
7937 | #endif | |
7938 | ||
7939 | ; return 0; } | |
7940 | EOF | |
421173e6 | 7941 | if { (eval echo configure:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
7942 | rm -rf conftest* |
7943 | eval "ac_cv_func_$ac_func=yes" | |
7944 | else | |
7945 | echo "configure: failed program was:" >&5 | |
7946 | cat conftest.$ac_ext >&5 | |
7947 | rm -rf conftest* | |
7948 | eval "ac_cv_func_$ac_func=no" | |
7949 | fi | |
7950 | rm -f conftest* | |
7951 | fi | |
7952 | ||
7953 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7954 | echo "$ac_t""yes" 1>&6 | |
7955 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7956 | cat >> confdefs.h <<EOF | |
7957 | #define $ac_tr_func 1 | |
7958 | EOF | |
7959 | ||
7960 | else | |
7961 | echo "$ac_t""no" 1>&6 | |
7962 | fi | |
7963 | done | |
7964 | ||
7965 | fi | |
7966 | ||
7967 | ||
421173e6 PE |
7968 | echo $ac_n "checking for acosl declaration""... $ac_c" 1>&6 |
7969 | echo "configure:7970: checking for acosl declaration" >&5 | |
7970 | if eval "test \"`echo '$''{'glibcpp_cv_func_acosl_use'+set}'`\" = set"; then | |
7971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7972 | else | |
38bd7296 | 7973 | |
421173e6 PE |
7974 | |
7975 | ac_ext=C | |
38bd7296 BK |
7976 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
7977 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7978 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7979 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7980 | cross_compiling=$ac_cv_prog_cxx_cross | |
7981 | ||
421173e6 PE |
7982 | cat > conftest.$ac_ext <<EOF |
7983 | #line 7984 "configure" | |
38bd7296 BK |
7984 | #include "confdefs.h" |
7985 | #include <math.h> | |
7986 | int main() { | |
7987 | acosl(0); | |
7988 | ; return 0; } | |
7989 | EOF | |
421173e6 | 7990 | if { (eval echo configure:7991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 7991 | rm -rf conftest* |
421173e6 | 7992 | glibcpp_cv_func_acosl_use=yes |
38bd7296 BK |
7993 | else |
7994 | echo "configure: failed program was:" >&5 | |
7995 | cat conftest.$ac_ext >&5 | |
7996 | rm -rf conftest* | |
421173e6 | 7997 | glibcpp_cv_func_acosl_use=no |
38bd7296 BK |
7998 | fi |
7999 | rm -f conftest* | |
421173e6 | 8000 | ac_ext=c |
38bd7296 BK |
8001 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8002 | ac_cpp='$CPP $CPPFLAGS' | |
8003 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8004 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8005 | cross_compiling=$ac_cv_prog_cc_cross | |
8006 | ||
421173e6 PE |
8007 | |
8008 | fi | |
8009 | ||
8010 | echo "$ac_t""$glibcpp_cv_func_acosl_use" 1>&6 | |
8011 | if test x$glibcpp_cv_func_acosl_use = x"yes"; then | |
38bd7296 BK |
8012 | for ac_func in acosl |
8013 | do | |
8014 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8015 | echo "configure:8016: checking for $ac_func" >&5 |
38bd7296 BK |
8016 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8018 | else | |
8019 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8020 | #line 8021 "configure" |
38bd7296 BK |
8021 | #include "confdefs.h" |
8022 | /* System header to define __stub macros and hopefully few prototypes, | |
8023 | which can conflict with char $ac_func(); below. */ | |
8024 | #include <assert.h> | |
8025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8026 | /* We use char because int might match the return type of a gcc2 | |
8027 | builtin and then its argument prototype would still apply. */ | |
8028 | char $ac_func(); | |
8029 | ||
8030 | int main() { | |
8031 | ||
8032 | /* The GNU C library defines this for functions which it implements | |
8033 | to always fail with ENOSYS. Some functions are actually named | |
8034 | something starting with __ and the normal name is an alias. */ | |
8035 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8036 | choke me | |
8037 | #else | |
8038 | $ac_func(); | |
8039 | #endif | |
8040 | ||
8041 | ; return 0; } | |
8042 | EOF | |
421173e6 | 8043 | if { (eval echo configure:8044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8044 | rm -rf conftest* |
8045 | eval "ac_cv_func_$ac_func=yes" | |
8046 | else | |
8047 | echo "configure: failed program was:" >&5 | |
8048 | cat conftest.$ac_ext >&5 | |
8049 | rm -rf conftest* | |
8050 | eval "ac_cv_func_$ac_func=no" | |
8051 | fi | |
8052 | rm -f conftest* | |
8053 | fi | |
8054 | ||
8055 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8056 | echo "$ac_t""yes" 1>&6 | |
8057 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8058 | cat >> confdefs.h <<EOF | |
8059 | #define $ac_tr_func 1 | |
8060 | EOF | |
8061 | ||
8062 | else | |
8063 | echo "$ac_t""no" 1>&6 | |
8064 | fi | |
8065 | done | |
8066 | ||
8067 | fi | |
8068 | ||
8069 | ||
421173e6 PE |
8070 | echo $ac_n "checking for asinl declaration""... $ac_c" 1>&6 |
8071 | echo "configure:8072: checking for asinl declaration" >&5 | |
8072 | if eval "test \"`echo '$''{'glibcpp_cv_func_asinl_use'+set}'`\" = set"; then | |
8073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8074 | else | |
38bd7296 | 8075 | |
421173e6 PE |
8076 | |
8077 | ac_ext=C | |
38bd7296 BK |
8078 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8079 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8080 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8081 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8082 | cross_compiling=$ac_cv_prog_cxx_cross | |
8083 | ||
421173e6 PE |
8084 | cat > conftest.$ac_ext <<EOF |
8085 | #line 8086 "configure" | |
38bd7296 BK |
8086 | #include "confdefs.h" |
8087 | #include <math.h> | |
8088 | int main() { | |
8089 | asinl(0); | |
8090 | ; return 0; } | |
8091 | EOF | |
421173e6 | 8092 | if { (eval echo configure:8093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 8093 | rm -rf conftest* |
421173e6 | 8094 | glibcpp_cv_func_asinl_use=yes |
38bd7296 BK |
8095 | else |
8096 | echo "configure: failed program was:" >&5 | |
8097 | cat conftest.$ac_ext >&5 | |
8098 | rm -rf conftest* | |
421173e6 | 8099 | glibcpp_cv_func_asinl_use=no |
38bd7296 BK |
8100 | fi |
8101 | rm -f conftest* | |
421173e6 | 8102 | ac_ext=c |
38bd7296 BK |
8103 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8104 | ac_cpp='$CPP $CPPFLAGS' | |
8105 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8106 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8107 | cross_compiling=$ac_cv_prog_cc_cross | |
8108 | ||
421173e6 PE |
8109 | |
8110 | fi | |
8111 | ||
8112 | echo "$ac_t""$glibcpp_cv_func_asinl_use" 1>&6 | |
8113 | if test x$glibcpp_cv_func_asinl_use = x"yes"; then | |
38bd7296 BK |
8114 | for ac_func in asinl |
8115 | do | |
8116 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8117 | echo "configure:8118: checking for $ac_func" >&5 |
38bd7296 BK |
8118 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8120 | else | |
8121 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8122 | #line 8123 "configure" |
38bd7296 BK |
8123 | #include "confdefs.h" |
8124 | /* System header to define __stub macros and hopefully few prototypes, | |
8125 | which can conflict with char $ac_func(); below. */ | |
8126 | #include <assert.h> | |
8127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8128 | /* We use char because int might match the return type of a gcc2 | |
8129 | builtin and then its argument prototype would still apply. */ | |
8130 | char $ac_func(); | |
8131 | ||
8132 | int main() { | |
8133 | ||
8134 | /* The GNU C library defines this for functions which it implements | |
8135 | to always fail with ENOSYS. Some functions are actually named | |
8136 | something starting with __ and the normal name is an alias. */ | |
8137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8138 | choke me | |
8139 | #else | |
8140 | $ac_func(); | |
8141 | #endif | |
8142 | ||
8143 | ; return 0; } | |
8144 | EOF | |
421173e6 | 8145 | if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8146 | rm -rf conftest* |
8147 | eval "ac_cv_func_$ac_func=yes" | |
8148 | else | |
8149 | echo "configure: failed program was:" >&5 | |
8150 | cat conftest.$ac_ext >&5 | |
8151 | rm -rf conftest* | |
8152 | eval "ac_cv_func_$ac_func=no" | |
8153 | fi | |
8154 | rm -f conftest* | |
8155 | fi | |
8156 | ||
8157 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8158 | echo "$ac_t""yes" 1>&6 | |
8159 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8160 | cat >> confdefs.h <<EOF | |
8161 | #define $ac_tr_func 1 | |
8162 | EOF | |
8163 | ||
8164 | else | |
8165 | echo "$ac_t""no" 1>&6 | |
8166 | fi | |
8167 | done | |
8168 | ||
8169 | fi | |
8170 | ||
8171 | ||
421173e6 PE |
8172 | echo $ac_n "checking for atanl declaration""... $ac_c" 1>&6 |
8173 | echo "configure:8174: checking for atanl declaration" >&5 | |
8174 | if eval "test \"`echo '$''{'glibcpp_cv_func_atanl_use'+set}'`\" = set"; then | |
8175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8176 | else | |
38bd7296 | 8177 | |
421173e6 PE |
8178 | |
8179 | ac_ext=C | |
38bd7296 BK |
8180 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8181 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8182 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8183 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8184 | cross_compiling=$ac_cv_prog_cxx_cross | |
8185 | ||
421173e6 PE |
8186 | cat > conftest.$ac_ext <<EOF |
8187 | #line 8188 "configure" | |
38bd7296 BK |
8188 | #include "confdefs.h" |
8189 | #include <math.h> | |
8190 | int main() { | |
8191 | atanl(0); | |
8192 | ; return 0; } | |
8193 | EOF | |
421173e6 | 8194 | if { (eval echo configure:8195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 8195 | rm -rf conftest* |
421173e6 | 8196 | glibcpp_cv_func_atanl_use=yes |
38bd7296 BK |
8197 | else |
8198 | echo "configure: failed program was:" >&5 | |
8199 | cat conftest.$ac_ext >&5 | |
8200 | rm -rf conftest* | |
421173e6 | 8201 | glibcpp_cv_func_atanl_use=no |
38bd7296 BK |
8202 | fi |
8203 | rm -f conftest* | |
421173e6 | 8204 | ac_ext=c |
38bd7296 BK |
8205 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8206 | ac_cpp='$CPP $CPPFLAGS' | |
8207 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8208 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8209 | cross_compiling=$ac_cv_prog_cc_cross | |
8210 | ||
421173e6 PE |
8211 | |
8212 | fi | |
8213 | ||
8214 | echo "$ac_t""$glibcpp_cv_func_atanl_use" 1>&6 | |
8215 | if test x$glibcpp_cv_func_atanl_use = x"yes"; then | |
38bd7296 BK |
8216 | for ac_func in atanl |
8217 | do | |
8218 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8219 | echo "configure:8220: checking for $ac_func" >&5 |
38bd7296 BK |
8220 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8222 | else | |
8223 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8224 | #line 8225 "configure" |
38bd7296 BK |
8225 | #include "confdefs.h" |
8226 | /* System header to define __stub macros and hopefully few prototypes, | |
8227 | which can conflict with char $ac_func(); below. */ | |
8228 | #include <assert.h> | |
8229 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8230 | /* We use char because int might match the return type of a gcc2 | |
8231 | builtin and then its argument prototype would still apply. */ | |
8232 | char $ac_func(); | |
8233 | ||
8234 | int main() { | |
8235 | ||
8236 | /* The GNU C library defines this for functions which it implements | |
8237 | to always fail with ENOSYS. Some functions are actually named | |
8238 | something starting with __ and the normal name is an alias. */ | |
8239 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8240 | choke me | |
8241 | #else | |
8242 | $ac_func(); | |
8243 | #endif | |
8244 | ||
8245 | ; return 0; } | |
8246 | EOF | |
421173e6 | 8247 | if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8248 | rm -rf conftest* |
8249 | eval "ac_cv_func_$ac_func=yes" | |
8250 | else | |
8251 | echo "configure: failed program was:" >&5 | |
8252 | cat conftest.$ac_ext >&5 | |
8253 | rm -rf conftest* | |
8254 | eval "ac_cv_func_$ac_func=no" | |
8255 | fi | |
8256 | rm -f conftest* | |
8257 | fi | |
8258 | ||
8259 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8260 | echo "$ac_t""yes" 1>&6 | |
8261 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8262 | cat >> confdefs.h <<EOF | |
8263 | #define $ac_tr_func 1 | |
8264 | EOF | |
8265 | ||
8266 | else | |
8267 | echo "$ac_t""no" 1>&6 | |
8268 | fi | |
8269 | done | |
8270 | ||
8271 | fi | |
8272 | ||
8273 | ||
421173e6 PE |
8274 | echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6 |
8275 | echo "configure:8276: checking for atan2l declaration" >&5 | |
8276 | if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then | |
8277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8278 | else | |
38bd7296 | 8279 | |
421173e6 PE |
8280 | |
8281 | ac_ext=C | |
38bd7296 BK |
8282 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8283 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8284 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8285 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8286 | cross_compiling=$ac_cv_prog_cxx_cross | |
8287 | ||
421173e6 PE |
8288 | cat > conftest.$ac_ext <<EOF |
8289 | #line 8290 "configure" | |
38bd7296 BK |
8290 | #include "confdefs.h" |
8291 | #include <math.h> | |
8292 | int main() { | |
8293 | atan2l(0, 0); | |
8294 | ; return 0; } | |
8295 | EOF | |
421173e6 | 8296 | if { (eval echo configure:8297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 8297 | rm -rf conftest* |
421173e6 | 8298 | glibcpp_cv_func_atan2l_use=yes |
38bd7296 BK |
8299 | else |
8300 | echo "configure: failed program was:" >&5 | |
8301 | cat conftest.$ac_ext >&5 | |
8302 | rm -rf conftest* | |
421173e6 | 8303 | glibcpp_cv_func_atan2l_use=no |
38bd7296 BK |
8304 | fi |
8305 | rm -f conftest* | |
421173e6 | 8306 | ac_ext=c |
38bd7296 BK |
8307 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8308 | ac_cpp='$CPP $CPPFLAGS' | |
8309 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8310 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8311 | cross_compiling=$ac_cv_prog_cc_cross | |
8312 | ||
421173e6 PE |
8313 | |
8314 | fi | |
8315 | ||
8316 | echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6 | |
8317 | if test x$glibcpp_cv_func_atan2l_use = x"yes"; then | |
38bd7296 BK |
8318 | for ac_func in atan2l |
8319 | do | |
8320 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8321 | echo "configure:8322: checking for $ac_func" >&5 |
38bd7296 BK |
8322 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8324 | else | |
8325 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8326 | #line 8327 "configure" |
38bd7296 BK |
8327 | #include "confdefs.h" |
8328 | /* System header to define __stub macros and hopefully few prototypes, | |
8329 | which can conflict with char $ac_func(); below. */ | |
8330 | #include <assert.h> | |
8331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8332 | /* We use char because int might match the return type of a gcc2 | |
8333 | builtin and then its argument prototype would still apply. */ | |
8334 | char $ac_func(); | |
8335 | ||
8336 | int main() { | |
8337 | ||
8338 | /* The GNU C library defines this for functions which it implements | |
8339 | to always fail with ENOSYS. Some functions are actually named | |
8340 | something starting with __ and the normal name is an alias. */ | |
8341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8342 | choke me | |
8343 | #else | |
8344 | $ac_func(); | |
8345 | #endif | |
8346 | ||
8347 | ; return 0; } | |
8348 | EOF | |
421173e6 | 8349 | if { (eval echo configure:8350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8350 | rm -rf conftest* |
8351 | eval "ac_cv_func_$ac_func=yes" | |
8352 | else | |
8353 | echo "configure: failed program was:" >&5 | |
8354 | cat conftest.$ac_ext >&5 | |
8355 | rm -rf conftest* | |
8356 | eval "ac_cv_func_$ac_func=no" | |
8357 | fi | |
8358 | rm -f conftest* | |
8359 | fi | |
8360 | ||
8361 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8362 | echo "$ac_t""yes" 1>&6 | |
8363 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8364 | cat >> confdefs.h <<EOF | |
8365 | #define $ac_tr_func 1 | |
8366 | EOF | |
8367 | ||
8368 | else | |
8369 | echo "$ac_t""no" 1>&6 | |
8370 | fi | |
8371 | done | |
8372 | ||
8373 | fi | |
8374 | ||
8375 | ||
421173e6 PE |
8376 | echo $ac_n "checking for ceill declaration""... $ac_c" 1>&6 |
8377 | echo "configure:8378: checking for ceill declaration" >&5 | |
8378 | if eval "test \"`echo '$''{'glibcpp_cv_func_ceill_use'+set}'`\" = set"; then | |
8379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8380 | else | |
38bd7296 | 8381 | |
421173e6 PE |
8382 | |
8383 | ac_ext=C | |
38bd7296 BK |
8384 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8385 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8386 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8387 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8388 | cross_compiling=$ac_cv_prog_cxx_cross | |
8389 | ||
421173e6 PE |
8390 | cat > conftest.$ac_ext <<EOF |
8391 | #line 8392 "configure" | |
38bd7296 BK |
8392 | #include "confdefs.h" |
8393 | #include <math.h> | |
8394 | int main() { | |
8395 | ceill(0); | |
8396 | ; return 0; } | |
8397 | EOF | |
421173e6 | 8398 | if { (eval echo configure:8399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 8399 | rm -rf conftest* |
421173e6 | 8400 | glibcpp_cv_func_ceill_use=yes |
38bd7296 BK |
8401 | else |
8402 | echo "configure: failed program was:" >&5 | |
8403 | cat conftest.$ac_ext >&5 | |
8404 | rm -rf conftest* | |
421173e6 | 8405 | glibcpp_cv_func_ceill_use=no |
38bd7296 BK |
8406 | fi |
8407 | rm -f conftest* | |
421173e6 | 8408 | ac_ext=c |
38bd7296 BK |
8409 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8410 | ac_cpp='$CPP $CPPFLAGS' | |
8411 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8412 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8413 | cross_compiling=$ac_cv_prog_cc_cross | |
8414 | ||
421173e6 PE |
8415 | |
8416 | fi | |
8417 | ||
8418 | echo "$ac_t""$glibcpp_cv_func_ceill_use" 1>&6 | |
8419 | if test x$glibcpp_cv_func_ceill_use = x"yes"; then | |
38bd7296 BK |
8420 | for ac_func in ceill |
8421 | do | |
8422 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8423 | echo "configure:8424: checking for $ac_func" >&5 |
38bd7296 BK |
8424 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8426 | else | |
8427 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8428 | #line 8429 "configure" |
38bd7296 BK |
8429 | #include "confdefs.h" |
8430 | /* System header to define __stub macros and hopefully few prototypes, | |
8431 | which can conflict with char $ac_func(); below. */ | |
8432 | #include <assert.h> | |
8433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8434 | /* We use char because int might match the return type of a gcc2 | |
8435 | builtin and then its argument prototype would still apply. */ | |
8436 | char $ac_func(); | |
8437 | ||
8438 | int main() { | |
8439 | ||
8440 | /* The GNU C library defines this for functions which it implements | |
8441 | to always fail with ENOSYS. Some functions are actually named | |
8442 | something starting with __ and the normal name is an alias. */ | |
8443 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8444 | choke me | |
8445 | #else | |
8446 | $ac_func(); | |
8447 | #endif | |
8448 | ||
8449 | ; return 0; } | |
8450 | EOF | |
421173e6 | 8451 | if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8452 | rm -rf conftest* |
8453 | eval "ac_cv_func_$ac_func=yes" | |
8454 | else | |
8455 | echo "configure: failed program was:" >&5 | |
8456 | cat conftest.$ac_ext >&5 | |
8457 | rm -rf conftest* | |
8458 | eval "ac_cv_func_$ac_func=no" | |
8459 | fi | |
8460 | rm -f conftest* | |
8461 | fi | |
8462 | ||
8463 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8464 | echo "$ac_t""yes" 1>&6 | |
8465 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8466 | cat >> confdefs.h <<EOF | |
8467 | #define $ac_tr_func 1 | |
8468 | EOF | |
8469 | ||
8470 | else | |
8471 | echo "$ac_t""no" 1>&6 | |
8472 | fi | |
8473 | done | |
8474 | ||
8475 | fi | |
8476 | ||
8477 | ||
421173e6 PE |
8478 | echo $ac_n "checking for cosl declaration""... $ac_c" 1>&6 |
8479 | echo "configure:8480: checking for cosl declaration" >&5 | |
8480 | if eval "test \"`echo '$''{'glibcpp_cv_func_cosl_use'+set}'`\" = set"; then | |
8481 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8482 | else | |
38bd7296 | 8483 | |
421173e6 PE |
8484 | |
8485 | ac_ext=C | |
38bd7296 BK |
8486 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8487 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8488 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8489 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8490 | cross_compiling=$ac_cv_prog_cxx_cross | |
8491 | ||
421173e6 PE |
8492 | cat > conftest.$ac_ext <<EOF |
8493 | #line 8494 "configure" | |
38bd7296 BK |
8494 | #include "confdefs.h" |
8495 | #include <math.h> | |
8496 | int main() { | |
8497 | cosl(0); | |
8498 | ; return 0; } | |
8499 | EOF | |
421173e6 | 8500 | if { (eval echo configure:8501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 8501 | rm -rf conftest* |
421173e6 | 8502 | glibcpp_cv_func_cosl_use=yes |
38bd7296 BK |
8503 | else |
8504 | echo "configure: failed program was:" >&5 | |
8505 | cat conftest.$ac_ext >&5 | |
8506 | rm -rf conftest* | |
421173e6 | 8507 | glibcpp_cv_func_cosl_use=no |
38bd7296 BK |
8508 | fi |
8509 | rm -f conftest* | |
421173e6 | 8510 | ac_ext=c |
38bd7296 BK |
8511 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8512 | ac_cpp='$CPP $CPPFLAGS' | |
8513 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8514 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8515 | cross_compiling=$ac_cv_prog_cc_cross | |
8516 | ||
421173e6 PE |
8517 | |
8518 | fi | |
8519 | ||
8520 | echo "$ac_t""$glibcpp_cv_func_cosl_use" 1>&6 | |
8521 | if test x$glibcpp_cv_func_cosl_use = x"yes"; then | |
38bd7296 BK |
8522 | for ac_func in cosl |
8523 | do | |
8524 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8525 | echo "configure:8526: checking for $ac_func" >&5 |
38bd7296 BK |
8526 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8528 | else | |
8529 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8530 | #line 8531 "configure" |
38bd7296 BK |
8531 | #include "confdefs.h" |
8532 | /* System header to define __stub macros and hopefully few prototypes, | |
8533 | which can conflict with char $ac_func(); below. */ | |
8534 | #include <assert.h> | |
8535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8536 | /* We use char because int might match the return type of a gcc2 | |
8537 | builtin and then its argument prototype would still apply. */ | |
8538 | char $ac_func(); | |
8539 | ||
8540 | int main() { | |
8541 | ||
8542 | /* The GNU C library defines this for functions which it implements | |
8543 | to always fail with ENOSYS. Some functions are actually named | |
8544 | something starting with __ and the normal name is an alias. */ | |
8545 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8546 | choke me | |
8547 | #else | |
8548 | $ac_func(); | |
8549 | #endif | |
8550 | ||
8551 | ; return 0; } | |
8552 | EOF | |
421173e6 | 8553 | if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8554 | rm -rf conftest* |
8555 | eval "ac_cv_func_$ac_func=yes" | |
8556 | else | |
8557 | echo "configure: failed program was:" >&5 | |
8558 | cat conftest.$ac_ext >&5 | |
8559 | rm -rf conftest* | |
8560 | eval "ac_cv_func_$ac_func=no" | |
8561 | fi | |
8562 | rm -f conftest* | |
8563 | fi | |
8564 | ||
8565 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8566 | echo "$ac_t""yes" 1>&6 | |
8567 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8568 | cat >> confdefs.h <<EOF | |
8569 | #define $ac_tr_func 1 | |
8570 | EOF | |
8571 | ||
8572 | else | |
8573 | echo "$ac_t""no" 1>&6 | |
8574 | fi | |
8575 | done | |
8576 | ||
8577 | fi | |
8578 | ||
8579 | ||
421173e6 PE |
8580 | echo $ac_n "checking for coshl declaration""... $ac_c" 1>&6 |
8581 | echo "configure:8582: checking for coshl declaration" >&5 | |
8582 | if eval "test \"`echo '$''{'glibcpp_cv_func_coshl_use'+set}'`\" = set"; then | |
8583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8584 | else | |
38bd7296 | 8585 | |
421173e6 PE |
8586 | |
8587 | ac_ext=C | |
38bd7296 BK |
8588 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8589 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8590 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8591 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8592 | cross_compiling=$ac_cv_prog_cxx_cross | |
8593 | ||
421173e6 PE |
8594 | cat > conftest.$ac_ext <<EOF |
8595 | #line 8596 "configure" | |
38bd7296 BK |
8596 | #include "confdefs.h" |
8597 | #include <math.h> | |
8598 | int main() { | |
8599 | coshl(0); | |
8600 | ; return 0; } | |
8601 | EOF | |
421173e6 | 8602 | if { (eval echo configure:8603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 8603 | rm -rf conftest* |
421173e6 | 8604 | glibcpp_cv_func_coshl_use=yes |
38bd7296 BK |
8605 | else |
8606 | echo "configure: failed program was:" >&5 | |
8607 | cat conftest.$ac_ext >&5 | |
8608 | rm -rf conftest* | |
421173e6 | 8609 | glibcpp_cv_func_coshl_use=no |
38bd7296 BK |
8610 | fi |
8611 | rm -f conftest* | |
421173e6 | 8612 | ac_ext=c |
38bd7296 BK |
8613 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8614 | ac_cpp='$CPP $CPPFLAGS' | |
8615 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8616 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8617 | cross_compiling=$ac_cv_prog_cc_cross | |
8618 | ||
421173e6 PE |
8619 | |
8620 | fi | |
8621 | ||
8622 | echo "$ac_t""$glibcpp_cv_func_coshl_use" 1>&6 | |
8623 | if test x$glibcpp_cv_func_coshl_use = x"yes"; then | |
38bd7296 BK |
8624 | for ac_func in coshl |
8625 | do | |
8626 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8627 | echo "configure:8628: checking for $ac_func" >&5 |
38bd7296 BK |
8628 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8630 | else | |
8631 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8632 | #line 8633 "configure" |
38bd7296 BK |
8633 | #include "confdefs.h" |
8634 | /* System header to define __stub macros and hopefully few prototypes, | |
8635 | which can conflict with char $ac_func(); below. */ | |
8636 | #include <assert.h> | |
8637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8638 | /* We use char because int might match the return type of a gcc2 | |
8639 | builtin and then its argument prototype would still apply. */ | |
8640 | char $ac_func(); | |
8641 | ||
8642 | int main() { | |
8643 | ||
8644 | /* The GNU C library defines this for functions which it implements | |
8645 | to always fail with ENOSYS. Some functions are actually named | |
8646 | something starting with __ and the normal name is an alias. */ | |
8647 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8648 | choke me | |
8649 | #else | |
8650 | $ac_func(); | |
8651 | #endif | |
8652 | ||
8653 | ; return 0; } | |
8654 | EOF | |
421173e6 | 8655 | if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8656 | rm -rf conftest* |
8657 | eval "ac_cv_func_$ac_func=yes" | |
8658 | else | |
8659 | echo "configure: failed program was:" >&5 | |
8660 | cat conftest.$ac_ext >&5 | |
8661 | rm -rf conftest* | |
8662 | eval "ac_cv_func_$ac_func=no" | |
8663 | fi | |
8664 | rm -f conftest* | |
8665 | fi | |
8666 | ||
8667 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8668 | echo "$ac_t""yes" 1>&6 | |
8669 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8670 | cat >> confdefs.h <<EOF | |
8671 | #define $ac_tr_func 1 | |
8672 | EOF | |
8673 | ||
8674 | else | |
8675 | echo "$ac_t""no" 1>&6 | |
8676 | fi | |
8677 | done | |
8678 | ||
8679 | fi | |
8680 | ||
8681 | ||
421173e6 PE |
8682 | echo $ac_n "checking for expl declaration""... $ac_c" 1>&6 |
8683 | echo "configure:8684: checking for expl declaration" >&5 | |
8684 | if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then | |
8685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8686 | else | |
38bd7296 | 8687 | |
421173e6 PE |
8688 | |
8689 | ac_ext=C | |
38bd7296 BK |
8690 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8691 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8692 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8693 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8694 | cross_compiling=$ac_cv_prog_cxx_cross | |
8695 | ||
421173e6 PE |
8696 | cat > conftest.$ac_ext <<EOF |
8697 | #line 8698 "configure" | |
38bd7296 BK |
8698 | #include "confdefs.h" |
8699 | #include <math.h> | |
8700 | int main() { | |
8701 | expl(0); | |
8702 | ; return 0; } | |
8703 | EOF | |
421173e6 | 8704 | if { (eval echo configure:8705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 8705 | rm -rf conftest* |
421173e6 | 8706 | glibcpp_cv_func_expl_use=yes |
38bd7296 BK |
8707 | else |
8708 | echo "configure: failed program was:" >&5 | |
8709 | cat conftest.$ac_ext >&5 | |
8710 | rm -rf conftest* | |
421173e6 | 8711 | glibcpp_cv_func_expl_use=no |
38bd7296 BK |
8712 | fi |
8713 | rm -f conftest* | |
421173e6 | 8714 | ac_ext=c |
38bd7296 BK |
8715 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8716 | ac_cpp='$CPP $CPPFLAGS' | |
8717 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8718 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8719 | cross_compiling=$ac_cv_prog_cc_cross | |
8720 | ||
421173e6 PE |
8721 | |
8722 | fi | |
8723 | ||
8724 | echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6 | |
8725 | if test x$glibcpp_cv_func_expl_use = x"yes"; then | |
38bd7296 BK |
8726 | for ac_func in expl |
8727 | do | |
8728 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8729 | echo "configure:8730: checking for $ac_func" >&5 |
38bd7296 BK |
8730 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8732 | else | |
8733 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8734 | #line 8735 "configure" |
38bd7296 BK |
8735 | #include "confdefs.h" |
8736 | /* System header to define __stub macros and hopefully few prototypes, | |
8737 | which can conflict with char $ac_func(); below. */ | |
8738 | #include <assert.h> | |
8739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8740 | /* We use char because int might match the return type of a gcc2 | |
8741 | builtin and then its argument prototype would still apply. */ | |
8742 | char $ac_func(); | |
8743 | ||
8744 | int main() { | |
8745 | ||
8746 | /* The GNU C library defines this for functions which it implements | |
8747 | to always fail with ENOSYS. Some functions are actually named | |
8748 | something starting with __ and the normal name is an alias. */ | |
8749 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8750 | choke me | |
8751 | #else | |
8752 | $ac_func(); | |
8753 | #endif | |
8754 | ||
8755 | ; return 0; } | |
8756 | EOF | |
421173e6 | 8757 | if { (eval echo configure:8758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8758 | rm -rf conftest* |
8759 | eval "ac_cv_func_$ac_func=yes" | |
8760 | else | |
8761 | echo "configure: failed program was:" >&5 | |
8762 | cat conftest.$ac_ext >&5 | |
8763 | rm -rf conftest* | |
8764 | eval "ac_cv_func_$ac_func=no" | |
8765 | fi | |
8766 | rm -f conftest* | |
8767 | fi | |
8768 | ||
8769 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8770 | echo "$ac_t""yes" 1>&6 | |
8771 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8772 | cat >> confdefs.h <<EOF | |
8773 | #define $ac_tr_func 1 | |
8774 | EOF | |
8775 | ||
8776 | else | |
8777 | echo "$ac_t""no" 1>&6 | |
8778 | fi | |
8779 | done | |
8780 | ||
8781 | fi | |
8782 | ||
8783 | ||
421173e6 PE |
8784 | echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6 |
8785 | echo "configure:8786: checking for fabsl declaration" >&5 | |
8786 | if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then | |
8787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8788 | else | |
38bd7296 | 8789 | |
421173e6 PE |
8790 | |
8791 | ac_ext=C | |
38bd7296 BK |
8792 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8793 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8794 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8795 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8796 | cross_compiling=$ac_cv_prog_cxx_cross | |
8797 | ||
421173e6 PE |
8798 | cat > conftest.$ac_ext <<EOF |
8799 | #line 8800 "configure" | |
38bd7296 BK |
8800 | #include "confdefs.h" |
8801 | #include <math.h> | |
8802 | int main() { | |
8803 | fabsl(0); | |
8804 | ; return 0; } | |
8805 | EOF | |
421173e6 | 8806 | if { (eval echo configure:8807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 8807 | rm -rf conftest* |
421173e6 | 8808 | glibcpp_cv_func_fabsl_use=yes |
38bd7296 BK |
8809 | else |
8810 | echo "configure: failed program was:" >&5 | |
8811 | cat conftest.$ac_ext >&5 | |
8812 | rm -rf conftest* | |
421173e6 | 8813 | glibcpp_cv_func_fabsl_use=no |
38bd7296 BK |
8814 | fi |
8815 | rm -f conftest* | |
421173e6 | 8816 | ac_ext=c |
38bd7296 BK |
8817 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8818 | ac_cpp='$CPP $CPPFLAGS' | |
8819 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8820 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8821 | cross_compiling=$ac_cv_prog_cc_cross | |
8822 | ||
421173e6 PE |
8823 | |
8824 | fi | |
8825 | ||
8826 | echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6 | |
8827 | if test x$glibcpp_cv_func_fabsl_use = x"yes"; then | |
38bd7296 BK |
8828 | for ac_func in fabsl |
8829 | do | |
8830 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8831 | echo "configure:8832: checking for $ac_func" >&5 |
38bd7296 BK |
8832 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8834 | else | |
8835 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8836 | #line 8837 "configure" |
38bd7296 BK |
8837 | #include "confdefs.h" |
8838 | /* System header to define __stub macros and hopefully few prototypes, | |
8839 | which can conflict with char $ac_func(); below. */ | |
8840 | #include <assert.h> | |
8841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8842 | /* We use char because int might match the return type of a gcc2 | |
8843 | builtin and then its argument prototype would still apply. */ | |
8844 | char $ac_func(); | |
8845 | ||
8846 | int main() { | |
8847 | ||
8848 | /* The GNU C library defines this for functions which it implements | |
8849 | to always fail with ENOSYS. Some functions are actually named | |
8850 | something starting with __ and the normal name is an alias. */ | |
8851 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8852 | choke me | |
8853 | #else | |
8854 | $ac_func(); | |
8855 | #endif | |
8856 | ||
8857 | ; return 0; } | |
8858 | EOF | |
421173e6 | 8859 | if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8860 | rm -rf conftest* |
8861 | eval "ac_cv_func_$ac_func=yes" | |
8862 | else | |
8863 | echo "configure: failed program was:" >&5 | |
8864 | cat conftest.$ac_ext >&5 | |
8865 | rm -rf conftest* | |
8866 | eval "ac_cv_func_$ac_func=no" | |
8867 | fi | |
8868 | rm -f conftest* | |
8869 | fi | |
8870 | ||
8871 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8872 | echo "$ac_t""yes" 1>&6 | |
8873 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8874 | cat >> confdefs.h <<EOF | |
8875 | #define $ac_tr_func 1 | |
8876 | EOF | |
8877 | ||
8878 | else | |
8879 | echo "$ac_t""no" 1>&6 | |
8880 | fi | |
8881 | done | |
8882 | ||
8883 | fi | |
8884 | ||
8885 | ||
421173e6 PE |
8886 | echo $ac_n "checking for floorl declaration""... $ac_c" 1>&6 |
8887 | echo "configure:8888: checking for floorl declaration" >&5 | |
8888 | if eval "test \"`echo '$''{'glibcpp_cv_func_floorl_use'+set}'`\" = set"; then | |
8889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8890 | else | |
38bd7296 | 8891 | |
421173e6 PE |
8892 | |
8893 | ac_ext=C | |
38bd7296 BK |
8894 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8895 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8896 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8897 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8898 | cross_compiling=$ac_cv_prog_cxx_cross | |
8899 | ||
421173e6 PE |
8900 | cat > conftest.$ac_ext <<EOF |
8901 | #line 8902 "configure" | |
38bd7296 BK |
8902 | #include "confdefs.h" |
8903 | #include <math.h> | |
8904 | int main() { | |
8905 | floorl(0); | |
8906 | ; return 0; } | |
8907 | EOF | |
421173e6 | 8908 | if { (eval echo configure:8909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 8909 | rm -rf conftest* |
421173e6 | 8910 | glibcpp_cv_func_floorl_use=yes |
38bd7296 BK |
8911 | else |
8912 | echo "configure: failed program was:" >&5 | |
8913 | cat conftest.$ac_ext >&5 | |
8914 | rm -rf conftest* | |
421173e6 | 8915 | glibcpp_cv_func_floorl_use=no |
38bd7296 BK |
8916 | fi |
8917 | rm -f conftest* | |
421173e6 | 8918 | ac_ext=c |
38bd7296 BK |
8919 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8920 | ac_cpp='$CPP $CPPFLAGS' | |
8921 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8922 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8923 | cross_compiling=$ac_cv_prog_cc_cross | |
8924 | ||
421173e6 PE |
8925 | |
8926 | fi | |
8927 | ||
8928 | echo "$ac_t""$glibcpp_cv_func_floorl_use" 1>&6 | |
8929 | if test x$glibcpp_cv_func_floorl_use = x"yes"; then | |
38bd7296 BK |
8930 | for ac_func in floorl |
8931 | do | |
8932 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 8933 | echo "configure:8934: checking for $ac_func" >&5 |
38bd7296 BK |
8934 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8936 | else | |
8937 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 8938 | #line 8939 "configure" |
38bd7296 BK |
8939 | #include "confdefs.h" |
8940 | /* System header to define __stub macros and hopefully few prototypes, | |
8941 | which can conflict with char $ac_func(); below. */ | |
8942 | #include <assert.h> | |
8943 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8944 | /* We use char because int might match the return type of a gcc2 | |
8945 | builtin and then its argument prototype would still apply. */ | |
8946 | char $ac_func(); | |
8947 | ||
8948 | int main() { | |
8949 | ||
8950 | /* The GNU C library defines this for functions which it implements | |
8951 | to always fail with ENOSYS. Some functions are actually named | |
8952 | something starting with __ and the normal name is an alias. */ | |
8953 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8954 | choke me | |
8955 | #else | |
8956 | $ac_func(); | |
8957 | #endif | |
8958 | ||
8959 | ; return 0; } | |
8960 | EOF | |
421173e6 | 8961 | if { (eval echo configure:8962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
8962 | rm -rf conftest* |
8963 | eval "ac_cv_func_$ac_func=yes" | |
8964 | else | |
8965 | echo "configure: failed program was:" >&5 | |
8966 | cat conftest.$ac_ext >&5 | |
8967 | rm -rf conftest* | |
8968 | eval "ac_cv_func_$ac_func=no" | |
8969 | fi | |
8970 | rm -f conftest* | |
8971 | fi | |
8972 | ||
8973 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8974 | echo "$ac_t""yes" 1>&6 | |
8975 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8976 | cat >> confdefs.h <<EOF | |
8977 | #define $ac_tr_func 1 | |
8978 | EOF | |
8979 | ||
8980 | else | |
8981 | echo "$ac_t""no" 1>&6 | |
8982 | fi | |
8983 | done | |
8984 | ||
8985 | fi | |
8986 | ||
8987 | ||
421173e6 PE |
8988 | echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6 |
8989 | echo "configure:8990: checking for fmodl declaration" >&5 | |
8990 | if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then | |
8991 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8992 | else | |
38bd7296 | 8993 | |
421173e6 PE |
8994 | |
8995 | ac_ext=C | |
38bd7296 BK |
8996 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8997 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8998 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8999 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9000 | cross_compiling=$ac_cv_prog_cxx_cross | |
9001 | ||
421173e6 PE |
9002 | cat > conftest.$ac_ext <<EOF |
9003 | #line 9004 "configure" | |
38bd7296 BK |
9004 | #include "confdefs.h" |
9005 | #include <math.h> | |
9006 | int main() { | |
9007 | fmodl(0, 0); | |
9008 | ; return 0; } | |
9009 | EOF | |
421173e6 | 9010 | if { (eval echo configure:9011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9011 | rm -rf conftest* |
421173e6 | 9012 | glibcpp_cv_func_fmodl_use=yes |
38bd7296 BK |
9013 | else |
9014 | echo "configure: failed program was:" >&5 | |
9015 | cat conftest.$ac_ext >&5 | |
9016 | rm -rf conftest* | |
421173e6 | 9017 | glibcpp_cv_func_fmodl_use=no |
38bd7296 BK |
9018 | fi |
9019 | rm -f conftest* | |
421173e6 | 9020 | ac_ext=c |
38bd7296 BK |
9021 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9022 | ac_cpp='$CPP $CPPFLAGS' | |
9023 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9024 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9025 | cross_compiling=$ac_cv_prog_cc_cross | |
9026 | ||
421173e6 PE |
9027 | |
9028 | fi | |
9029 | ||
9030 | echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6 | |
9031 | if test x$glibcpp_cv_func_fmodl_use = x"yes"; then | |
38bd7296 BK |
9032 | for ac_func in fmodl |
9033 | do | |
9034 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9035 | echo "configure:9036: checking for $ac_func" >&5 |
38bd7296 BK |
9036 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9037 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9038 | else | |
9039 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9040 | #line 9041 "configure" |
38bd7296 BK |
9041 | #include "confdefs.h" |
9042 | /* System header to define __stub macros and hopefully few prototypes, | |
9043 | which can conflict with char $ac_func(); below. */ | |
9044 | #include <assert.h> | |
9045 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9046 | /* We use char because int might match the return type of a gcc2 | |
9047 | builtin and then its argument prototype would still apply. */ | |
9048 | char $ac_func(); | |
9049 | ||
9050 | int main() { | |
9051 | ||
9052 | /* The GNU C library defines this for functions which it implements | |
9053 | to always fail with ENOSYS. Some functions are actually named | |
9054 | something starting with __ and the normal name is an alias. */ | |
9055 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9056 | choke me | |
9057 | #else | |
9058 | $ac_func(); | |
9059 | #endif | |
9060 | ||
9061 | ; return 0; } | |
9062 | EOF | |
421173e6 | 9063 | if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9064 | rm -rf conftest* |
9065 | eval "ac_cv_func_$ac_func=yes" | |
9066 | else | |
9067 | echo "configure: failed program was:" >&5 | |
9068 | cat conftest.$ac_ext >&5 | |
9069 | rm -rf conftest* | |
9070 | eval "ac_cv_func_$ac_func=no" | |
9071 | fi | |
9072 | rm -f conftest* | |
9073 | fi | |
9074 | ||
9075 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9076 | echo "$ac_t""yes" 1>&6 | |
9077 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9078 | cat >> confdefs.h <<EOF | |
9079 | #define $ac_tr_func 1 | |
9080 | EOF | |
9081 | ||
9082 | else | |
9083 | echo "$ac_t""no" 1>&6 | |
9084 | fi | |
9085 | done | |
9086 | ||
9087 | fi | |
9088 | ||
9089 | ||
421173e6 PE |
9090 | echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6 |
9091 | echo "configure:9092: checking for frexpl declaration" >&5 | |
9092 | if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then | |
9093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9094 | else | |
38bd7296 | 9095 | |
421173e6 PE |
9096 | |
9097 | ac_ext=C | |
38bd7296 BK |
9098 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9099 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9100 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9101 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9102 | cross_compiling=$ac_cv_prog_cxx_cross | |
9103 | ||
421173e6 PE |
9104 | cat > conftest.$ac_ext <<EOF |
9105 | #line 9106 "configure" | |
38bd7296 BK |
9106 | #include "confdefs.h" |
9107 | #include <math.h> | |
9108 | int main() { | |
9109 | frexpl(0, 0); | |
9110 | ; return 0; } | |
9111 | EOF | |
421173e6 | 9112 | if { (eval echo configure:9113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9113 | rm -rf conftest* |
421173e6 | 9114 | glibcpp_cv_func_frexpl_use=yes |
38bd7296 BK |
9115 | else |
9116 | echo "configure: failed program was:" >&5 | |
9117 | cat conftest.$ac_ext >&5 | |
9118 | rm -rf conftest* | |
421173e6 | 9119 | glibcpp_cv_func_frexpl_use=no |
38bd7296 BK |
9120 | fi |
9121 | rm -f conftest* | |
421173e6 | 9122 | ac_ext=c |
38bd7296 BK |
9123 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9124 | ac_cpp='$CPP $CPPFLAGS' | |
9125 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9126 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9127 | cross_compiling=$ac_cv_prog_cc_cross | |
9128 | ||
421173e6 PE |
9129 | |
9130 | fi | |
9131 | ||
9132 | echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6 | |
9133 | if test x$glibcpp_cv_func_frexpl_use = x"yes"; then | |
38bd7296 BK |
9134 | for ac_func in frexpl |
9135 | do | |
9136 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9137 | echo "configure:9138: checking for $ac_func" >&5 |
38bd7296 BK |
9138 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9140 | else | |
9141 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9142 | #line 9143 "configure" |
38bd7296 BK |
9143 | #include "confdefs.h" |
9144 | /* System header to define __stub macros and hopefully few prototypes, | |
9145 | which can conflict with char $ac_func(); below. */ | |
9146 | #include <assert.h> | |
9147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9148 | /* We use char because int might match the return type of a gcc2 | |
9149 | builtin and then its argument prototype would still apply. */ | |
9150 | char $ac_func(); | |
9151 | ||
9152 | int main() { | |
9153 | ||
9154 | /* The GNU C library defines this for functions which it implements | |
9155 | to always fail with ENOSYS. Some functions are actually named | |
9156 | something starting with __ and the normal name is an alias. */ | |
9157 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9158 | choke me | |
9159 | #else | |
9160 | $ac_func(); | |
9161 | #endif | |
9162 | ||
9163 | ; return 0; } | |
9164 | EOF | |
421173e6 | 9165 | if { (eval echo configure:9166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9166 | rm -rf conftest* |
9167 | eval "ac_cv_func_$ac_func=yes" | |
9168 | else | |
9169 | echo "configure: failed program was:" >&5 | |
9170 | cat conftest.$ac_ext >&5 | |
9171 | rm -rf conftest* | |
9172 | eval "ac_cv_func_$ac_func=no" | |
9173 | fi | |
9174 | rm -f conftest* | |
9175 | fi | |
9176 | ||
9177 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9178 | echo "$ac_t""yes" 1>&6 | |
9179 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9180 | cat >> confdefs.h <<EOF | |
9181 | #define $ac_tr_func 1 | |
9182 | EOF | |
9183 | ||
9184 | else | |
9185 | echo "$ac_t""no" 1>&6 | |
9186 | fi | |
9187 | done | |
9188 | ||
9189 | fi | |
9190 | ||
9191 | ||
421173e6 PE |
9192 | echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6 |
9193 | echo "configure:9194: checking for ldexpl declaration" >&5 | |
9194 | if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then | |
9195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9196 | else | |
38bd7296 | 9197 | |
421173e6 PE |
9198 | |
9199 | ac_ext=C | |
38bd7296 BK |
9200 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9201 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9202 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9203 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9204 | cross_compiling=$ac_cv_prog_cxx_cross | |
9205 | ||
421173e6 PE |
9206 | cat > conftest.$ac_ext <<EOF |
9207 | #line 9208 "configure" | |
38bd7296 BK |
9208 | #include "confdefs.h" |
9209 | #include <math.h> | |
9210 | int main() { | |
9211 | ldexpl(0, 0); | |
9212 | ; return 0; } | |
9213 | EOF | |
421173e6 | 9214 | if { (eval echo configure:9215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9215 | rm -rf conftest* |
421173e6 | 9216 | glibcpp_cv_func_ldexpl_use=yes |
38bd7296 BK |
9217 | else |
9218 | echo "configure: failed program was:" >&5 | |
9219 | cat conftest.$ac_ext >&5 | |
9220 | rm -rf conftest* | |
421173e6 | 9221 | glibcpp_cv_func_ldexpl_use=no |
38bd7296 BK |
9222 | fi |
9223 | rm -f conftest* | |
421173e6 | 9224 | ac_ext=c |
38bd7296 BK |
9225 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9226 | ac_cpp='$CPP $CPPFLAGS' | |
9227 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9228 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9229 | cross_compiling=$ac_cv_prog_cc_cross | |
9230 | ||
421173e6 PE |
9231 | |
9232 | fi | |
9233 | ||
9234 | echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6 | |
9235 | if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then | |
38bd7296 BK |
9236 | for ac_func in ldexpl |
9237 | do | |
9238 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9239 | echo "configure:9240: checking for $ac_func" >&5 |
38bd7296 BK |
9240 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9242 | else | |
9243 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9244 | #line 9245 "configure" |
38bd7296 BK |
9245 | #include "confdefs.h" |
9246 | /* System header to define __stub macros and hopefully few prototypes, | |
9247 | which can conflict with char $ac_func(); below. */ | |
9248 | #include <assert.h> | |
9249 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9250 | /* We use char because int might match the return type of a gcc2 | |
9251 | builtin and then its argument prototype would still apply. */ | |
9252 | char $ac_func(); | |
9253 | ||
9254 | int main() { | |
9255 | ||
9256 | /* The GNU C library defines this for functions which it implements | |
9257 | to always fail with ENOSYS. Some functions are actually named | |
9258 | something starting with __ and the normal name is an alias. */ | |
9259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9260 | choke me | |
9261 | #else | |
9262 | $ac_func(); | |
9263 | #endif | |
9264 | ||
9265 | ; return 0; } | |
9266 | EOF | |
421173e6 | 9267 | if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9268 | rm -rf conftest* |
9269 | eval "ac_cv_func_$ac_func=yes" | |
9270 | else | |
9271 | echo "configure: failed program was:" >&5 | |
9272 | cat conftest.$ac_ext >&5 | |
9273 | rm -rf conftest* | |
9274 | eval "ac_cv_func_$ac_func=no" | |
9275 | fi | |
9276 | rm -f conftest* | |
9277 | fi | |
9278 | ||
9279 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9280 | echo "$ac_t""yes" 1>&6 | |
9281 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9282 | cat >> confdefs.h <<EOF | |
9283 | #define $ac_tr_func 1 | |
9284 | EOF | |
9285 | ||
9286 | else | |
9287 | echo "$ac_t""no" 1>&6 | |
9288 | fi | |
9289 | done | |
9290 | ||
9291 | fi | |
9292 | ||
9293 | ||
421173e6 PE |
9294 | echo $ac_n "checking for logl declaration""... $ac_c" 1>&6 |
9295 | echo "configure:9296: checking for logl declaration" >&5 | |
9296 | if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then | |
9297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9298 | else | |
38bd7296 | 9299 | |
421173e6 PE |
9300 | |
9301 | ac_ext=C | |
38bd7296 BK |
9302 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9303 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9304 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9305 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9306 | cross_compiling=$ac_cv_prog_cxx_cross | |
9307 | ||
421173e6 PE |
9308 | cat > conftest.$ac_ext <<EOF |
9309 | #line 9310 "configure" | |
38bd7296 BK |
9310 | #include "confdefs.h" |
9311 | #include <math.h> | |
9312 | int main() { | |
9313 | logl(0); | |
9314 | ; return 0; } | |
9315 | EOF | |
421173e6 | 9316 | if { (eval echo configure:9317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9317 | rm -rf conftest* |
421173e6 | 9318 | glibcpp_cv_func_logl_use=yes |
38bd7296 BK |
9319 | else |
9320 | echo "configure: failed program was:" >&5 | |
9321 | cat conftest.$ac_ext >&5 | |
9322 | rm -rf conftest* | |
421173e6 | 9323 | glibcpp_cv_func_logl_use=no |
38bd7296 BK |
9324 | fi |
9325 | rm -f conftest* | |
421173e6 | 9326 | ac_ext=c |
38bd7296 BK |
9327 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9328 | ac_cpp='$CPP $CPPFLAGS' | |
9329 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9330 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9331 | cross_compiling=$ac_cv_prog_cc_cross | |
9332 | ||
421173e6 PE |
9333 | |
9334 | fi | |
9335 | ||
9336 | echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6 | |
9337 | if test x$glibcpp_cv_func_logl_use = x"yes"; then | |
38bd7296 BK |
9338 | for ac_func in logl |
9339 | do | |
9340 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9341 | echo "configure:9342: checking for $ac_func" >&5 |
38bd7296 BK |
9342 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9344 | else | |
9345 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9346 | #line 9347 "configure" |
38bd7296 BK |
9347 | #include "confdefs.h" |
9348 | /* System header to define __stub macros and hopefully few prototypes, | |
9349 | which can conflict with char $ac_func(); below. */ | |
9350 | #include <assert.h> | |
9351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9352 | /* We use char because int might match the return type of a gcc2 | |
9353 | builtin and then its argument prototype would still apply. */ | |
9354 | char $ac_func(); | |
9355 | ||
9356 | int main() { | |
9357 | ||
9358 | /* The GNU C library defines this for functions which it implements | |
9359 | to always fail with ENOSYS. Some functions are actually named | |
9360 | something starting with __ and the normal name is an alias. */ | |
9361 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9362 | choke me | |
9363 | #else | |
9364 | $ac_func(); | |
9365 | #endif | |
9366 | ||
9367 | ; return 0; } | |
9368 | EOF | |
421173e6 | 9369 | if { (eval echo configure:9370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9370 | rm -rf conftest* |
9371 | eval "ac_cv_func_$ac_func=yes" | |
9372 | else | |
9373 | echo "configure: failed program was:" >&5 | |
9374 | cat conftest.$ac_ext >&5 | |
9375 | rm -rf conftest* | |
9376 | eval "ac_cv_func_$ac_func=no" | |
9377 | fi | |
9378 | rm -f conftest* | |
9379 | fi | |
9380 | ||
9381 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9382 | echo "$ac_t""yes" 1>&6 | |
9383 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9384 | cat >> confdefs.h <<EOF | |
9385 | #define $ac_tr_func 1 | |
9386 | EOF | |
9387 | ||
9388 | else | |
9389 | echo "$ac_t""no" 1>&6 | |
9390 | fi | |
9391 | done | |
9392 | ||
9393 | fi | |
9394 | ||
9395 | ||
421173e6 PE |
9396 | echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6 |
9397 | echo "configure:9398: checking for log10l declaration" >&5 | |
9398 | if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then | |
9399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9400 | else | |
38bd7296 | 9401 | |
421173e6 PE |
9402 | |
9403 | ac_ext=C | |
38bd7296 BK |
9404 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9405 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9406 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9407 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9408 | cross_compiling=$ac_cv_prog_cxx_cross | |
9409 | ||
421173e6 PE |
9410 | cat > conftest.$ac_ext <<EOF |
9411 | #line 9412 "configure" | |
38bd7296 BK |
9412 | #include "confdefs.h" |
9413 | #include <math.h> | |
9414 | int main() { | |
9415 | log10l(0); | |
9416 | ; return 0; } | |
9417 | EOF | |
421173e6 | 9418 | if { (eval echo configure:9419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9419 | rm -rf conftest* |
421173e6 | 9420 | glibcpp_cv_func_log10l_use=yes |
38bd7296 BK |
9421 | else |
9422 | echo "configure: failed program was:" >&5 | |
9423 | cat conftest.$ac_ext >&5 | |
9424 | rm -rf conftest* | |
421173e6 | 9425 | glibcpp_cv_func_log10l_use=no |
38bd7296 BK |
9426 | fi |
9427 | rm -f conftest* | |
421173e6 | 9428 | ac_ext=c |
38bd7296 BK |
9429 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9430 | ac_cpp='$CPP $CPPFLAGS' | |
9431 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9432 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9433 | cross_compiling=$ac_cv_prog_cc_cross | |
9434 | ||
421173e6 PE |
9435 | |
9436 | fi | |
9437 | ||
9438 | echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6 | |
9439 | if test x$glibcpp_cv_func_log10l_use = x"yes"; then | |
38bd7296 BK |
9440 | for ac_func in log10l |
9441 | do | |
9442 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9443 | echo "configure:9444: checking for $ac_func" >&5 |
38bd7296 BK |
9444 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9446 | else | |
9447 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9448 | #line 9449 "configure" |
38bd7296 BK |
9449 | #include "confdefs.h" |
9450 | /* System header to define __stub macros and hopefully few prototypes, | |
9451 | which can conflict with char $ac_func(); below. */ | |
9452 | #include <assert.h> | |
9453 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9454 | /* We use char because int might match the return type of a gcc2 | |
9455 | builtin and then its argument prototype would still apply. */ | |
9456 | char $ac_func(); | |
9457 | ||
9458 | int main() { | |
9459 | ||
9460 | /* The GNU C library defines this for functions which it implements | |
9461 | to always fail with ENOSYS. Some functions are actually named | |
9462 | something starting with __ and the normal name is an alias. */ | |
9463 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9464 | choke me | |
9465 | #else | |
9466 | $ac_func(); | |
9467 | #endif | |
9468 | ||
9469 | ; return 0; } | |
9470 | EOF | |
421173e6 | 9471 | if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9472 | rm -rf conftest* |
9473 | eval "ac_cv_func_$ac_func=yes" | |
9474 | else | |
9475 | echo "configure: failed program was:" >&5 | |
9476 | cat conftest.$ac_ext >&5 | |
9477 | rm -rf conftest* | |
9478 | eval "ac_cv_func_$ac_func=no" | |
9479 | fi | |
9480 | rm -f conftest* | |
9481 | fi | |
9482 | ||
9483 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9484 | echo "$ac_t""yes" 1>&6 | |
9485 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9486 | cat >> confdefs.h <<EOF | |
9487 | #define $ac_tr_func 1 | |
9488 | EOF | |
9489 | ||
9490 | else | |
9491 | echo "$ac_t""no" 1>&6 | |
9492 | fi | |
9493 | done | |
9494 | ||
9495 | fi | |
9496 | ||
9497 | ||
421173e6 PE |
9498 | echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6 |
9499 | echo "configure:9500: checking for modfl declaration" >&5 | |
9500 | if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then | |
9501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9502 | else | |
38bd7296 | 9503 | |
421173e6 PE |
9504 | |
9505 | ac_ext=C | |
38bd7296 BK |
9506 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9507 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9508 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9509 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9510 | cross_compiling=$ac_cv_prog_cxx_cross | |
9511 | ||
421173e6 PE |
9512 | cat > conftest.$ac_ext <<EOF |
9513 | #line 9514 "configure" | |
38bd7296 BK |
9514 | #include "confdefs.h" |
9515 | #include <math.h> | |
9516 | int main() { | |
9517 | modfl(0, 0); | |
9518 | ; return 0; } | |
9519 | EOF | |
421173e6 | 9520 | if { (eval echo configure:9521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9521 | rm -rf conftest* |
421173e6 | 9522 | glibcpp_cv_func_modfl_use=yes |
38bd7296 BK |
9523 | else |
9524 | echo "configure: failed program was:" >&5 | |
9525 | cat conftest.$ac_ext >&5 | |
9526 | rm -rf conftest* | |
421173e6 | 9527 | glibcpp_cv_func_modfl_use=no |
38bd7296 BK |
9528 | fi |
9529 | rm -f conftest* | |
421173e6 | 9530 | ac_ext=c |
38bd7296 BK |
9531 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9532 | ac_cpp='$CPP $CPPFLAGS' | |
9533 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9534 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9535 | cross_compiling=$ac_cv_prog_cc_cross | |
9536 | ||
421173e6 PE |
9537 | |
9538 | fi | |
9539 | ||
9540 | echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6 | |
9541 | if test x$glibcpp_cv_func_modfl_use = x"yes"; then | |
38bd7296 BK |
9542 | for ac_func in modfl |
9543 | do | |
9544 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9545 | echo "configure:9546: checking for $ac_func" >&5 |
38bd7296 BK |
9546 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9547 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9548 | else | |
9549 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9550 | #line 9551 "configure" |
38bd7296 BK |
9551 | #include "confdefs.h" |
9552 | /* System header to define __stub macros and hopefully few prototypes, | |
9553 | which can conflict with char $ac_func(); below. */ | |
9554 | #include <assert.h> | |
9555 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9556 | /* We use char because int might match the return type of a gcc2 | |
9557 | builtin and then its argument prototype would still apply. */ | |
9558 | char $ac_func(); | |
9559 | ||
9560 | int main() { | |
9561 | ||
9562 | /* The GNU C library defines this for functions which it implements | |
9563 | to always fail with ENOSYS. Some functions are actually named | |
9564 | something starting with __ and the normal name is an alias. */ | |
9565 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9566 | choke me | |
9567 | #else | |
9568 | $ac_func(); | |
9569 | #endif | |
9570 | ||
9571 | ; return 0; } | |
9572 | EOF | |
421173e6 | 9573 | if { (eval echo configure:9574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9574 | rm -rf conftest* |
9575 | eval "ac_cv_func_$ac_func=yes" | |
9576 | else | |
9577 | echo "configure: failed program was:" >&5 | |
9578 | cat conftest.$ac_ext >&5 | |
9579 | rm -rf conftest* | |
9580 | eval "ac_cv_func_$ac_func=no" | |
9581 | fi | |
9582 | rm -f conftest* | |
9583 | fi | |
9584 | ||
9585 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9586 | echo "$ac_t""yes" 1>&6 | |
9587 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9588 | cat >> confdefs.h <<EOF | |
9589 | #define $ac_tr_func 1 | |
9590 | EOF | |
9591 | ||
9592 | else | |
9593 | echo "$ac_t""no" 1>&6 | |
9594 | fi | |
9595 | done | |
9596 | ||
9597 | fi | |
9598 | ||
9599 | ||
421173e6 PE |
9600 | echo $ac_n "checking for powl declaration""... $ac_c" 1>&6 |
9601 | echo "configure:9602: checking for powl declaration" >&5 | |
9602 | if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then | |
9603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9604 | else | |
38bd7296 | 9605 | |
421173e6 PE |
9606 | |
9607 | ac_ext=C | |
38bd7296 BK |
9608 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9609 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9610 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9611 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9612 | cross_compiling=$ac_cv_prog_cxx_cross | |
9613 | ||
421173e6 PE |
9614 | cat > conftest.$ac_ext <<EOF |
9615 | #line 9616 "configure" | |
38bd7296 BK |
9616 | #include "confdefs.h" |
9617 | #include <math.h> | |
9618 | int main() { | |
9619 | powl(0, 0); | |
9620 | ; return 0; } | |
9621 | EOF | |
421173e6 | 9622 | if { (eval echo configure:9623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9623 | rm -rf conftest* |
421173e6 | 9624 | glibcpp_cv_func_powl_use=yes |
38bd7296 BK |
9625 | else |
9626 | echo "configure: failed program was:" >&5 | |
9627 | cat conftest.$ac_ext >&5 | |
9628 | rm -rf conftest* | |
421173e6 | 9629 | glibcpp_cv_func_powl_use=no |
38bd7296 BK |
9630 | fi |
9631 | rm -f conftest* | |
421173e6 | 9632 | ac_ext=c |
38bd7296 BK |
9633 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9634 | ac_cpp='$CPP $CPPFLAGS' | |
9635 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9636 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9637 | cross_compiling=$ac_cv_prog_cc_cross | |
9638 | ||
421173e6 PE |
9639 | |
9640 | fi | |
9641 | ||
9642 | echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6 | |
9643 | if test x$glibcpp_cv_func_powl_use = x"yes"; then | |
38bd7296 BK |
9644 | for ac_func in powl |
9645 | do | |
9646 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9647 | echo "configure:9648: checking for $ac_func" >&5 |
38bd7296 BK |
9648 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9649 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9650 | else | |
9651 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9652 | #line 9653 "configure" |
38bd7296 BK |
9653 | #include "confdefs.h" |
9654 | /* System header to define __stub macros and hopefully few prototypes, | |
9655 | which can conflict with char $ac_func(); below. */ | |
9656 | #include <assert.h> | |
9657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9658 | /* We use char because int might match the return type of a gcc2 | |
9659 | builtin and then its argument prototype would still apply. */ | |
9660 | char $ac_func(); | |
9661 | ||
9662 | int main() { | |
9663 | ||
9664 | /* The GNU C library defines this for functions which it implements | |
9665 | to always fail with ENOSYS. Some functions are actually named | |
9666 | something starting with __ and the normal name is an alias. */ | |
9667 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9668 | choke me | |
9669 | #else | |
9670 | $ac_func(); | |
9671 | #endif | |
9672 | ||
9673 | ; return 0; } | |
9674 | EOF | |
421173e6 | 9675 | if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9676 | rm -rf conftest* |
9677 | eval "ac_cv_func_$ac_func=yes" | |
9678 | else | |
9679 | echo "configure: failed program was:" >&5 | |
9680 | cat conftest.$ac_ext >&5 | |
9681 | rm -rf conftest* | |
9682 | eval "ac_cv_func_$ac_func=no" | |
9683 | fi | |
9684 | rm -f conftest* | |
9685 | fi | |
9686 | ||
9687 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9688 | echo "$ac_t""yes" 1>&6 | |
9689 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9690 | cat >> confdefs.h <<EOF | |
9691 | #define $ac_tr_func 1 | |
9692 | EOF | |
9693 | ||
9694 | else | |
9695 | echo "$ac_t""no" 1>&6 | |
9696 | fi | |
9697 | done | |
9698 | ||
9699 | fi | |
9700 | ||
9701 | ||
421173e6 PE |
9702 | echo $ac_n "checking for sinl declaration""... $ac_c" 1>&6 |
9703 | echo "configure:9704: checking for sinl declaration" >&5 | |
9704 | if eval "test \"`echo '$''{'glibcpp_cv_func_sinl_use'+set}'`\" = set"; then | |
9705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9706 | else | |
38bd7296 | 9707 | |
421173e6 PE |
9708 | |
9709 | ac_ext=C | |
38bd7296 BK |
9710 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9711 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9712 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9713 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9714 | cross_compiling=$ac_cv_prog_cxx_cross | |
9715 | ||
421173e6 PE |
9716 | cat > conftest.$ac_ext <<EOF |
9717 | #line 9718 "configure" | |
38bd7296 BK |
9718 | #include "confdefs.h" |
9719 | #include <math.h> | |
9720 | int main() { | |
11fc1858 | 9721 | sinl(0); |
38bd7296 BK |
9722 | ; return 0; } |
9723 | EOF | |
421173e6 | 9724 | if { (eval echo configure:9725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9725 | rm -rf conftest* |
421173e6 | 9726 | glibcpp_cv_func_sinl_use=yes |
38bd7296 BK |
9727 | else |
9728 | echo "configure: failed program was:" >&5 | |
9729 | cat conftest.$ac_ext >&5 | |
9730 | rm -rf conftest* | |
421173e6 | 9731 | glibcpp_cv_func_sinl_use=no |
38bd7296 BK |
9732 | fi |
9733 | rm -f conftest* | |
421173e6 | 9734 | ac_ext=c |
38bd7296 BK |
9735 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9736 | ac_cpp='$CPP $CPPFLAGS' | |
9737 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9738 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9739 | cross_compiling=$ac_cv_prog_cc_cross | |
9740 | ||
421173e6 PE |
9741 | |
9742 | fi | |
9743 | ||
9744 | echo "$ac_t""$glibcpp_cv_func_sinl_use" 1>&6 | |
9745 | if test x$glibcpp_cv_func_sinl_use = x"yes"; then | |
38bd7296 BK |
9746 | for ac_func in sinl |
9747 | do | |
9748 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9749 | echo "configure:9750: checking for $ac_func" >&5 |
38bd7296 BK |
9750 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9752 | else | |
9753 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9754 | #line 9755 "configure" |
38bd7296 BK |
9755 | #include "confdefs.h" |
9756 | /* System header to define __stub macros and hopefully few prototypes, | |
9757 | which can conflict with char $ac_func(); below. */ | |
9758 | #include <assert.h> | |
9759 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9760 | /* We use char because int might match the return type of a gcc2 | |
9761 | builtin and then its argument prototype would still apply. */ | |
9762 | char $ac_func(); | |
9763 | ||
9764 | int main() { | |
9765 | ||
9766 | /* The GNU C library defines this for functions which it implements | |
9767 | to always fail with ENOSYS. Some functions are actually named | |
9768 | something starting with __ and the normal name is an alias. */ | |
9769 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9770 | choke me | |
9771 | #else | |
9772 | $ac_func(); | |
9773 | #endif | |
9774 | ||
9775 | ; return 0; } | |
9776 | EOF | |
421173e6 | 9777 | if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9778 | rm -rf conftest* |
9779 | eval "ac_cv_func_$ac_func=yes" | |
9780 | else | |
9781 | echo "configure: failed program was:" >&5 | |
9782 | cat conftest.$ac_ext >&5 | |
9783 | rm -rf conftest* | |
9784 | eval "ac_cv_func_$ac_func=no" | |
9785 | fi | |
9786 | rm -f conftest* | |
9787 | fi | |
9788 | ||
9789 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9790 | echo "$ac_t""yes" 1>&6 | |
9791 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9792 | cat >> confdefs.h <<EOF | |
9793 | #define $ac_tr_func 1 | |
9794 | EOF | |
9795 | ||
9796 | else | |
9797 | echo "$ac_t""no" 1>&6 | |
9798 | fi | |
9799 | done | |
9800 | ||
9801 | fi | |
9802 | ||
9803 | ||
421173e6 PE |
9804 | echo $ac_n "checking for sinhl declaration""... $ac_c" 1>&6 |
9805 | echo "configure:9806: checking for sinhl declaration" >&5 | |
9806 | if eval "test \"`echo '$''{'glibcpp_cv_func_sinhl_use'+set}'`\" = set"; then | |
9807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9808 | else | |
38bd7296 | 9809 | |
421173e6 PE |
9810 | |
9811 | ac_ext=C | |
38bd7296 BK |
9812 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9813 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9814 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9815 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9816 | cross_compiling=$ac_cv_prog_cxx_cross | |
9817 | ||
421173e6 PE |
9818 | cat > conftest.$ac_ext <<EOF |
9819 | #line 9820 "configure" | |
38bd7296 BK |
9820 | #include "confdefs.h" |
9821 | #include <math.h> | |
9822 | int main() { | |
9823 | sinhl(0); | |
9824 | ; return 0; } | |
9825 | EOF | |
421173e6 | 9826 | if { (eval echo configure:9827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9827 | rm -rf conftest* |
421173e6 | 9828 | glibcpp_cv_func_sinhl_use=yes |
38bd7296 BK |
9829 | else |
9830 | echo "configure: failed program was:" >&5 | |
9831 | cat conftest.$ac_ext >&5 | |
9832 | rm -rf conftest* | |
421173e6 | 9833 | glibcpp_cv_func_sinhl_use=no |
38bd7296 BK |
9834 | fi |
9835 | rm -f conftest* | |
421173e6 | 9836 | ac_ext=c |
38bd7296 BK |
9837 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9838 | ac_cpp='$CPP $CPPFLAGS' | |
9839 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9840 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9841 | cross_compiling=$ac_cv_prog_cc_cross | |
9842 | ||
421173e6 PE |
9843 | |
9844 | fi | |
9845 | ||
9846 | echo "$ac_t""$glibcpp_cv_func_sinhl_use" 1>&6 | |
9847 | if test x$glibcpp_cv_func_sinhl_use = x"yes"; then | |
38bd7296 BK |
9848 | for ac_func in sinhl |
9849 | do | |
9850 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9851 | echo "configure:9852: checking for $ac_func" >&5 |
38bd7296 BK |
9852 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9854 | else | |
9855 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9856 | #line 9857 "configure" |
38bd7296 BK |
9857 | #include "confdefs.h" |
9858 | /* System header to define __stub macros and hopefully few prototypes, | |
9859 | which can conflict with char $ac_func(); below. */ | |
9860 | #include <assert.h> | |
9861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9862 | /* We use char because int might match the return type of a gcc2 | |
9863 | builtin and then its argument prototype would still apply. */ | |
9864 | char $ac_func(); | |
9865 | ||
9866 | int main() { | |
9867 | ||
9868 | /* The GNU C library defines this for functions which it implements | |
9869 | to always fail with ENOSYS. Some functions are actually named | |
9870 | something starting with __ and the normal name is an alias. */ | |
9871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9872 | choke me | |
9873 | #else | |
9874 | $ac_func(); | |
9875 | #endif | |
9876 | ||
9877 | ; return 0; } | |
9878 | EOF | |
421173e6 | 9879 | if { (eval echo configure:9880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9880 | rm -rf conftest* |
9881 | eval "ac_cv_func_$ac_func=yes" | |
9882 | else | |
9883 | echo "configure: failed program was:" >&5 | |
9884 | cat conftest.$ac_ext >&5 | |
9885 | rm -rf conftest* | |
9886 | eval "ac_cv_func_$ac_func=no" | |
9887 | fi | |
9888 | rm -f conftest* | |
9889 | fi | |
9890 | ||
9891 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9892 | echo "$ac_t""yes" 1>&6 | |
9893 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9894 | cat >> confdefs.h <<EOF | |
9895 | #define $ac_tr_func 1 | |
9896 | EOF | |
9897 | ||
9898 | else | |
9899 | echo "$ac_t""no" 1>&6 | |
9900 | fi | |
9901 | done | |
9902 | ||
9903 | fi | |
9904 | ||
9905 | ||
421173e6 PE |
9906 | echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6 |
9907 | echo "configure:9908: checking for sqrtl declaration" >&5 | |
9908 | if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then | |
9909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9910 | else | |
38bd7296 | 9911 | |
421173e6 PE |
9912 | |
9913 | ac_ext=C | |
38bd7296 BK |
9914 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9915 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9916 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9917 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9918 | cross_compiling=$ac_cv_prog_cxx_cross | |
9919 | ||
421173e6 PE |
9920 | cat > conftest.$ac_ext <<EOF |
9921 | #line 9922 "configure" | |
38bd7296 BK |
9922 | #include "confdefs.h" |
9923 | #include <math.h> | |
9924 | int main() { | |
9925 | sqrtl(0); | |
9926 | ; return 0; } | |
9927 | EOF | |
421173e6 | 9928 | if { (eval echo configure:9929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 9929 | rm -rf conftest* |
421173e6 | 9930 | glibcpp_cv_func_sqrtl_use=yes |
38bd7296 BK |
9931 | else |
9932 | echo "configure: failed program was:" >&5 | |
9933 | cat conftest.$ac_ext >&5 | |
9934 | rm -rf conftest* | |
421173e6 | 9935 | glibcpp_cv_func_sqrtl_use=no |
38bd7296 BK |
9936 | fi |
9937 | rm -f conftest* | |
421173e6 | 9938 | ac_ext=c |
38bd7296 BK |
9939 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
9940 | ac_cpp='$CPP $CPPFLAGS' | |
9941 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9942 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9943 | cross_compiling=$ac_cv_prog_cc_cross | |
9944 | ||
421173e6 PE |
9945 | |
9946 | fi | |
9947 | ||
9948 | echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6 | |
9949 | if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then | |
38bd7296 BK |
9950 | for ac_func in sqrtl |
9951 | do | |
9952 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 9953 | echo "configure:9954: checking for $ac_func" >&5 |
38bd7296 BK |
9954 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9956 | else | |
9957 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 9958 | #line 9959 "configure" |
38bd7296 BK |
9959 | #include "confdefs.h" |
9960 | /* System header to define __stub macros and hopefully few prototypes, | |
9961 | which can conflict with char $ac_func(); below. */ | |
9962 | #include <assert.h> | |
9963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9964 | /* We use char because int might match the return type of a gcc2 | |
9965 | builtin and then its argument prototype would still apply. */ | |
9966 | char $ac_func(); | |
9967 | ||
9968 | int main() { | |
9969 | ||
9970 | /* The GNU C library defines this for functions which it implements | |
9971 | to always fail with ENOSYS. Some functions are actually named | |
9972 | something starting with __ and the normal name is an alias. */ | |
9973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9974 | choke me | |
9975 | #else | |
9976 | $ac_func(); | |
9977 | #endif | |
9978 | ||
9979 | ; return 0; } | |
9980 | EOF | |
421173e6 | 9981 | if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
9982 | rm -rf conftest* |
9983 | eval "ac_cv_func_$ac_func=yes" | |
9984 | else | |
9985 | echo "configure: failed program was:" >&5 | |
9986 | cat conftest.$ac_ext >&5 | |
9987 | rm -rf conftest* | |
9988 | eval "ac_cv_func_$ac_func=no" | |
9989 | fi | |
9990 | rm -f conftest* | |
9991 | fi | |
9992 | ||
9993 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9994 | echo "$ac_t""yes" 1>&6 | |
9995 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9996 | cat >> confdefs.h <<EOF | |
9997 | #define $ac_tr_func 1 | |
9998 | EOF | |
9999 | ||
10000 | else | |
10001 | echo "$ac_t""no" 1>&6 | |
10002 | fi | |
10003 | done | |
10004 | ||
10005 | fi | |
10006 | ||
10007 | ||
421173e6 PE |
10008 | echo $ac_n "checking for tanl declaration""... $ac_c" 1>&6 |
10009 | echo "configure:10010: checking for tanl declaration" >&5 | |
10010 | if eval "test \"`echo '$''{'glibcpp_cv_func_tanl_use'+set}'`\" = set"; then | |
10011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10012 | else | |
38bd7296 | 10013 | |
421173e6 PE |
10014 | |
10015 | ac_ext=C | |
38bd7296 BK |
10016 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10018 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10019 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10020 | cross_compiling=$ac_cv_prog_cxx_cross | |
10021 | ||
421173e6 PE |
10022 | cat > conftest.$ac_ext <<EOF |
10023 | #line 10024 "configure" | |
38bd7296 BK |
10024 | #include "confdefs.h" |
10025 | #include <math.h> | |
10026 | int main() { | |
10027 | tanl(0); | |
10028 | ; return 0; } | |
10029 | EOF | |
421173e6 | 10030 | if { (eval echo configure:10031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10031 | rm -rf conftest* |
421173e6 | 10032 | glibcpp_cv_func_tanl_use=yes |
38bd7296 BK |
10033 | else |
10034 | echo "configure: failed program was:" >&5 | |
10035 | cat conftest.$ac_ext >&5 | |
10036 | rm -rf conftest* | |
421173e6 | 10037 | glibcpp_cv_func_tanl_use=no |
38bd7296 BK |
10038 | fi |
10039 | rm -f conftest* | |
421173e6 | 10040 | ac_ext=c |
38bd7296 BK |
10041 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10042 | ac_cpp='$CPP $CPPFLAGS' | |
10043 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10044 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10045 | cross_compiling=$ac_cv_prog_cc_cross | |
10046 | ||
421173e6 PE |
10047 | |
10048 | fi | |
10049 | ||
10050 | echo "$ac_t""$glibcpp_cv_func_tanl_use" 1>&6 | |
10051 | if test x$glibcpp_cv_func_tanl_use = x"yes"; then | |
38bd7296 BK |
10052 | for ac_func in tanl |
10053 | do | |
10054 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10055 | echo "configure:10056: checking for $ac_func" >&5 |
38bd7296 BK |
10056 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10058 | else | |
10059 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10060 | #line 10061 "configure" |
38bd7296 BK |
10061 | #include "confdefs.h" |
10062 | /* System header to define __stub macros and hopefully few prototypes, | |
10063 | which can conflict with char $ac_func(); below. */ | |
10064 | #include <assert.h> | |
10065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10066 | /* We use char because int might match the return type of a gcc2 | |
10067 | builtin and then its argument prototype would still apply. */ | |
10068 | char $ac_func(); | |
10069 | ||
10070 | int main() { | |
10071 | ||
10072 | /* The GNU C library defines this for functions which it implements | |
10073 | to always fail with ENOSYS. Some functions are actually named | |
10074 | something starting with __ and the normal name is an alias. */ | |
10075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10076 | choke me | |
10077 | #else | |
10078 | $ac_func(); | |
10079 | #endif | |
10080 | ||
10081 | ; return 0; } | |
10082 | EOF | |
421173e6 | 10083 | if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
10084 | rm -rf conftest* |
10085 | eval "ac_cv_func_$ac_func=yes" | |
10086 | else | |
10087 | echo "configure: failed program was:" >&5 | |
10088 | cat conftest.$ac_ext >&5 | |
10089 | rm -rf conftest* | |
10090 | eval "ac_cv_func_$ac_func=no" | |
10091 | fi | |
10092 | rm -f conftest* | |
10093 | fi | |
10094 | ||
10095 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10096 | echo "$ac_t""yes" 1>&6 | |
10097 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10098 | cat >> confdefs.h <<EOF | |
10099 | #define $ac_tr_func 1 | |
10100 | EOF | |
10101 | ||
10102 | else | |
10103 | echo "$ac_t""no" 1>&6 | |
10104 | fi | |
10105 | done | |
10106 | ||
10107 | fi | |
10108 | ||
10109 | ||
421173e6 PE |
10110 | echo $ac_n "checking for tanhl declaration""... $ac_c" 1>&6 |
10111 | echo "configure:10112: checking for tanhl declaration" >&5 | |
10112 | if eval "test \"`echo '$''{'glibcpp_cv_func_tanhl_use'+set}'`\" = set"; then | |
10113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10114 | else | |
38bd7296 | 10115 | |
421173e6 PE |
10116 | |
10117 | ac_ext=C | |
38bd7296 BK |
10118 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10119 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10120 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10121 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10122 | cross_compiling=$ac_cv_prog_cxx_cross | |
10123 | ||
421173e6 PE |
10124 | cat > conftest.$ac_ext <<EOF |
10125 | #line 10126 "configure" | |
38bd7296 BK |
10126 | #include "confdefs.h" |
10127 | #include <math.h> | |
10128 | int main() { | |
10129 | tanhl(0); | |
10130 | ; return 0; } | |
10131 | EOF | |
421173e6 | 10132 | if { (eval echo configure:10133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10133 | rm -rf conftest* |
421173e6 | 10134 | glibcpp_cv_func_tanhl_use=yes |
38bd7296 BK |
10135 | else |
10136 | echo "configure: failed program was:" >&5 | |
10137 | cat conftest.$ac_ext >&5 | |
10138 | rm -rf conftest* | |
421173e6 | 10139 | glibcpp_cv_func_tanhl_use=no |
38bd7296 BK |
10140 | fi |
10141 | rm -f conftest* | |
421173e6 | 10142 | ac_ext=c |
38bd7296 BK |
10143 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10144 | ac_cpp='$CPP $CPPFLAGS' | |
10145 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10146 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10147 | cross_compiling=$ac_cv_prog_cc_cross | |
10148 | ||
421173e6 PE |
10149 | |
10150 | fi | |
10151 | ||
10152 | echo "$ac_t""$glibcpp_cv_func_tanhl_use" 1>&6 | |
10153 | if test x$glibcpp_cv_func_tanhl_use = x"yes"; then | |
38bd7296 BK |
10154 | for ac_func in tanhl |
10155 | do | |
10156 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10157 | echo "configure:10158: checking for $ac_func" >&5 |
38bd7296 BK |
10158 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10159 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10160 | else | |
10161 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10162 | #line 10163 "configure" |
38bd7296 BK |
10163 | #include "confdefs.h" |
10164 | /* System header to define __stub macros and hopefully few prototypes, | |
10165 | which can conflict with char $ac_func(); below. */ | |
10166 | #include <assert.h> | |
10167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10168 | /* We use char because int might match the return type of a gcc2 | |
10169 | builtin and then its argument prototype would still apply. */ | |
10170 | char $ac_func(); | |
10171 | ||
10172 | int main() { | |
10173 | ||
10174 | /* The GNU C library defines this for functions which it implements | |
10175 | to always fail with ENOSYS. Some functions are actually named | |
10176 | something starting with __ and the normal name is an alias. */ | |
10177 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10178 | choke me | |
10179 | #else | |
10180 | $ac_func(); | |
10181 | #endif | |
10182 | ||
10183 | ; return 0; } | |
10184 | EOF | |
421173e6 | 10185 | if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
10186 | rm -rf conftest* |
10187 | eval "ac_cv_func_$ac_func=yes" | |
10188 | else | |
10189 | echo "configure: failed program was:" >&5 | |
10190 | cat conftest.$ac_ext >&5 | |
10191 | rm -rf conftest* | |
10192 | eval "ac_cv_func_$ac_func=no" | |
10193 | fi | |
10194 | rm -f conftest* | |
10195 | fi | |
10196 | ||
10197 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10198 | echo "$ac_t""yes" 1>&6 | |
10199 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10200 | cat >> confdefs.h <<EOF | |
10201 | #define $ac_tr_func 1 | |
10202 | EOF | |
10203 | ||
10204 | else | |
10205 | echo "$ac_t""no" 1>&6 | |
10206 | fi | |
10207 | done | |
10208 | ||
10209 | fi | |
10210 | ||
10211 | ||
421173e6 PE |
10212 | echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6 |
10213 | echo "configure:10214: checking for sincosl declaration" >&5 | |
10214 | if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then | |
10215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10216 | else | |
38bd7296 | 10217 | |
421173e6 PE |
10218 | |
10219 | ac_ext=C | |
38bd7296 BK |
10220 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10221 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10222 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10223 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10224 | cross_compiling=$ac_cv_prog_cxx_cross | |
10225 | ||
421173e6 PE |
10226 | cat > conftest.$ac_ext <<EOF |
10227 | #line 10228 "configure" | |
38bd7296 BK |
10228 | #include "confdefs.h" |
10229 | #include <math.h> | |
10230 | int main() { | |
10231 | sincosl(0, 0, 0); | |
10232 | ; return 0; } | |
10233 | EOF | |
421173e6 | 10234 | if { (eval echo configure:10235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10235 | rm -rf conftest* |
421173e6 | 10236 | glibcpp_cv_func_sincosl_use=yes |
38bd7296 BK |
10237 | else |
10238 | echo "configure: failed program was:" >&5 | |
10239 | cat conftest.$ac_ext >&5 | |
10240 | rm -rf conftest* | |
421173e6 | 10241 | glibcpp_cv_func_sincosl_use=no |
38bd7296 BK |
10242 | fi |
10243 | rm -f conftest* | |
421173e6 | 10244 | ac_ext=c |
38bd7296 BK |
10245 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10246 | ac_cpp='$CPP $CPPFLAGS' | |
10247 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10248 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10249 | cross_compiling=$ac_cv_prog_cc_cross | |
10250 | ||
421173e6 PE |
10251 | |
10252 | fi | |
10253 | ||
10254 | echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6 | |
10255 | if test x$glibcpp_cv_func_sincosl_use = x"yes"; then | |
38bd7296 BK |
10256 | for ac_func in sincosl |
10257 | do | |
10258 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10259 | echo "configure:10260: checking for $ac_func" >&5 |
38bd7296 BK |
10260 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10262 | else | |
10263 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10264 | #line 10265 "configure" |
38bd7296 BK |
10265 | #include "confdefs.h" |
10266 | /* System header to define __stub macros and hopefully few prototypes, | |
10267 | which can conflict with char $ac_func(); below. */ | |
10268 | #include <assert.h> | |
10269 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10270 | /* We use char because int might match the return type of a gcc2 | |
10271 | builtin and then its argument prototype would still apply. */ | |
10272 | char $ac_func(); | |
10273 | ||
10274 | int main() { | |
10275 | ||
10276 | /* The GNU C library defines this for functions which it implements | |
10277 | to always fail with ENOSYS. Some functions are actually named | |
10278 | something starting with __ and the normal name is an alias. */ | |
10279 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10280 | choke me | |
10281 | #else | |
10282 | $ac_func(); | |
10283 | #endif | |
10284 | ||
10285 | ; return 0; } | |
10286 | EOF | |
421173e6 | 10287 | if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
10288 | rm -rf conftest* |
10289 | eval "ac_cv_func_$ac_func=yes" | |
10290 | else | |
10291 | echo "configure: failed program was:" >&5 | |
10292 | cat conftest.$ac_ext >&5 | |
10293 | rm -rf conftest* | |
10294 | eval "ac_cv_func_$ac_func=no" | |
10295 | fi | |
10296 | rm -f conftest* | |
10297 | fi | |
10298 | ||
10299 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10300 | echo "$ac_t""yes" 1>&6 | |
10301 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10302 | cat >> confdefs.h <<EOF | |
10303 | #define $ac_tr_func 1 | |
10304 | EOF | |
10305 | ||
10306 | else | |
10307 | echo "$ac_t""no" 1>&6 | |
10308 | fi | |
10309 | done | |
10310 | ||
10311 | fi | |
10312 | ||
10313 | ||
421173e6 PE |
10314 | echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6 |
10315 | echo "configure:10316: checking for finitel declaration" >&5 | |
10316 | if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then | |
10317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10318 | else | |
38bd7296 | 10319 | |
421173e6 PE |
10320 | |
10321 | ac_ext=C | |
38bd7296 BK |
10322 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10323 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10324 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10325 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10326 | cross_compiling=$ac_cv_prog_cxx_cross | |
10327 | ||
421173e6 PE |
10328 | cat > conftest.$ac_ext <<EOF |
10329 | #line 10330 "configure" | |
38bd7296 BK |
10330 | #include "confdefs.h" |
10331 | #include <math.h> | |
10332 | int main() { | |
10333 | finitel(0); | |
10334 | ; return 0; } | |
10335 | EOF | |
421173e6 | 10336 | if { (eval echo configure:10337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10337 | rm -rf conftest* |
421173e6 | 10338 | glibcpp_cv_func_finitel_use=yes |
38bd7296 BK |
10339 | else |
10340 | echo "configure: failed program was:" >&5 | |
10341 | cat conftest.$ac_ext >&5 | |
10342 | rm -rf conftest* | |
421173e6 | 10343 | glibcpp_cv_func_finitel_use=no |
38bd7296 BK |
10344 | fi |
10345 | rm -f conftest* | |
421173e6 | 10346 | ac_ext=c |
38bd7296 BK |
10347 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10348 | ac_cpp='$CPP $CPPFLAGS' | |
10349 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10350 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10351 | cross_compiling=$ac_cv_prog_cc_cross | |
10352 | ||
421173e6 PE |
10353 | |
10354 | fi | |
10355 | ||
10356 | echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6 | |
10357 | if test x$glibcpp_cv_func_finitel_use = x"yes"; then | |
38bd7296 BK |
10358 | for ac_func in finitel |
10359 | do | |
10360 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10361 | echo "configure:10362: checking for $ac_func" >&5 |
38bd7296 BK |
10362 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10364 | else | |
10365 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10366 | #line 10367 "configure" |
38bd7296 BK |
10367 | #include "confdefs.h" |
10368 | /* System header to define __stub macros and hopefully few prototypes, | |
10369 | which can conflict with char $ac_func(); below. */ | |
10370 | #include <assert.h> | |
10371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10372 | /* We use char because int might match the return type of a gcc2 | |
10373 | builtin and then its argument prototype would still apply. */ | |
10374 | char $ac_func(); | |
10375 | ||
10376 | int main() { | |
10377 | ||
10378 | /* The GNU C library defines this for functions which it implements | |
10379 | to always fail with ENOSYS. Some functions are actually named | |
10380 | something starting with __ and the normal name is an alias. */ | |
10381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10382 | choke me | |
10383 | #else | |
10384 | $ac_func(); | |
10385 | #endif | |
10386 | ||
10387 | ; return 0; } | |
10388 | EOF | |
421173e6 | 10389 | if { (eval echo configure:10390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
10390 | rm -rf conftest* |
10391 | eval "ac_cv_func_$ac_func=yes" | |
10392 | else | |
10393 | echo "configure: failed program was:" >&5 | |
10394 | cat conftest.$ac_ext >&5 | |
10395 | rm -rf conftest* | |
10396 | eval "ac_cv_func_$ac_func=no" | |
10397 | fi | |
10398 | rm -f conftest* | |
10399 | fi | |
10400 | ||
10401 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10402 | echo "$ac_t""yes" 1>&6 | |
10403 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10404 | cat >> confdefs.h <<EOF | |
10405 | #define $ac_tr_func 1 | |
10406 | EOF | |
10407 | ||
10408 | else | |
10409 | echo "$ac_t""no" 1>&6 | |
10410 | fi | |
10411 | done | |
10412 | ||
10413 | fi | |
10414 | ||
10415 | ||
10416 | ||
421173e6 PE |
10417 | echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6 |
10418 | echo "configure:10419: checking for _isinf declaration" >&5 | |
10419 | if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then | |
10420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10421 | else | |
38bd7296 | 10422 | |
421173e6 PE |
10423 | |
10424 | ac_ext=C | |
38bd7296 BK |
10425 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10426 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10427 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10428 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10429 | cross_compiling=$ac_cv_prog_cxx_cross | |
10430 | ||
421173e6 PE |
10431 | cat > conftest.$ac_ext <<EOF |
10432 | #line 10433 "configure" | |
38bd7296 BK |
10433 | #include "confdefs.h" |
10434 | #include <math.h> | |
10435 | int main() { | |
10436 | _isinf(0); | |
10437 | ; return 0; } | |
10438 | EOF | |
421173e6 | 10439 | if { (eval echo configure:10440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10440 | rm -rf conftest* |
421173e6 | 10441 | glibcpp_cv_func__isinf_use=yes |
38bd7296 BK |
10442 | else |
10443 | echo "configure: failed program was:" >&5 | |
10444 | cat conftest.$ac_ext >&5 | |
10445 | rm -rf conftest* | |
421173e6 | 10446 | glibcpp_cv_func__isinf_use=no |
38bd7296 BK |
10447 | fi |
10448 | rm -f conftest* | |
421173e6 | 10449 | ac_ext=c |
38bd7296 BK |
10450 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10451 | ac_cpp='$CPP $CPPFLAGS' | |
10452 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10453 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10454 | cross_compiling=$ac_cv_prog_cc_cross | |
10455 | ||
421173e6 PE |
10456 | |
10457 | fi | |
10458 | ||
10459 | echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6 | |
10460 | if test x$glibcpp_cv_func__isinf_use = x"yes"; then | |
38bd7296 BK |
10461 | for ac_func in _isinf |
10462 | do | |
10463 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10464 | echo "configure:10465: checking for $ac_func" >&5 |
38bd7296 BK |
10465 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10467 | else | |
10468 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10469 | #line 10470 "configure" |
38bd7296 BK |
10470 | #include "confdefs.h" |
10471 | /* System header to define __stub macros and hopefully few prototypes, | |
10472 | which can conflict with char $ac_func(); below. */ | |
10473 | #include <assert.h> | |
10474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10475 | /* We use char because int might match the return type of a gcc2 | |
10476 | builtin and then its argument prototype would still apply. */ | |
10477 | char $ac_func(); | |
10478 | ||
10479 | int main() { | |
10480 | ||
10481 | /* The GNU C library defines this for functions which it implements | |
10482 | to always fail with ENOSYS. Some functions are actually named | |
10483 | something starting with __ and the normal name is an alias. */ | |
10484 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10485 | choke me | |
10486 | #else | |
10487 | $ac_func(); | |
10488 | #endif | |
10489 | ||
10490 | ; return 0; } | |
10491 | EOF | |
421173e6 | 10492 | if { (eval echo configure:10493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
10493 | rm -rf conftest* |
10494 | eval "ac_cv_func_$ac_func=yes" | |
10495 | else | |
10496 | echo "configure: failed program was:" >&5 | |
10497 | cat conftest.$ac_ext >&5 | |
10498 | rm -rf conftest* | |
10499 | eval "ac_cv_func_$ac_func=no" | |
10500 | fi | |
10501 | rm -f conftest* | |
10502 | fi | |
10503 | ||
10504 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10505 | echo "$ac_t""yes" 1>&6 | |
10506 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10507 | cat >> confdefs.h <<EOF | |
10508 | #define $ac_tr_func 1 | |
10509 | EOF | |
10510 | ||
10511 | else | |
10512 | echo "$ac_t""no" 1>&6 | |
10513 | fi | |
10514 | done | |
10515 | ||
10516 | fi | |
10517 | ||
10518 | ||
421173e6 PE |
10519 | echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6 |
10520 | echo "configure:10521: checking for _isnan declaration" >&5 | |
10521 | if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then | |
10522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10523 | else | |
38bd7296 | 10524 | |
421173e6 PE |
10525 | |
10526 | ac_ext=C | |
38bd7296 BK |
10527 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10528 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10529 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10530 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10531 | cross_compiling=$ac_cv_prog_cxx_cross | |
10532 | ||
421173e6 PE |
10533 | cat > conftest.$ac_ext <<EOF |
10534 | #line 10535 "configure" | |
38bd7296 BK |
10535 | #include "confdefs.h" |
10536 | #include <math.h> | |
10537 | int main() { | |
10538 | _isnan(0); | |
10539 | ; return 0; } | |
10540 | EOF | |
421173e6 | 10541 | if { (eval echo configure:10542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10542 | rm -rf conftest* |
421173e6 | 10543 | glibcpp_cv_func__isnan_use=yes |
38bd7296 BK |
10544 | else |
10545 | echo "configure: failed program was:" >&5 | |
10546 | cat conftest.$ac_ext >&5 | |
10547 | rm -rf conftest* | |
421173e6 | 10548 | glibcpp_cv_func__isnan_use=no |
38bd7296 BK |
10549 | fi |
10550 | rm -f conftest* | |
421173e6 | 10551 | ac_ext=c |
38bd7296 BK |
10552 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10553 | ac_cpp='$CPP $CPPFLAGS' | |
10554 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10555 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10556 | cross_compiling=$ac_cv_prog_cc_cross | |
10557 | ||
421173e6 PE |
10558 | |
10559 | fi | |
10560 | ||
10561 | echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6 | |
10562 | if test x$glibcpp_cv_func__isnan_use = x"yes"; then | |
38bd7296 BK |
10563 | for ac_func in _isnan |
10564 | do | |
10565 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10566 | echo "configure:10567: checking for $ac_func" >&5 |
38bd7296 BK |
10567 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10569 | else | |
10570 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10571 | #line 10572 "configure" |
38bd7296 BK |
10572 | #include "confdefs.h" |
10573 | /* System header to define __stub macros and hopefully few prototypes, | |
10574 | which can conflict with char $ac_func(); below. */ | |
10575 | #include <assert.h> | |
10576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10577 | /* We use char because int might match the return type of a gcc2 | |
10578 | builtin and then its argument prototype would still apply. */ | |
10579 | char $ac_func(); | |
10580 | ||
10581 | int main() { | |
10582 | ||
10583 | /* The GNU C library defines this for functions which it implements | |
10584 | to always fail with ENOSYS. Some functions are actually named | |
10585 | something starting with __ and the normal name is an alias. */ | |
10586 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10587 | choke me | |
10588 | #else | |
10589 | $ac_func(); | |
10590 | #endif | |
10591 | ||
10592 | ; return 0; } | |
10593 | EOF | |
421173e6 | 10594 | if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
10595 | rm -rf conftest* |
10596 | eval "ac_cv_func_$ac_func=yes" | |
10597 | else | |
10598 | echo "configure: failed program was:" >&5 | |
10599 | cat conftest.$ac_ext >&5 | |
10600 | rm -rf conftest* | |
10601 | eval "ac_cv_func_$ac_func=no" | |
10602 | fi | |
10603 | rm -f conftest* | |
10604 | fi | |
10605 | ||
10606 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10607 | echo "$ac_t""yes" 1>&6 | |
10608 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10609 | cat >> confdefs.h <<EOF | |
10610 | #define $ac_tr_func 1 | |
10611 | EOF | |
10612 | ||
10613 | else | |
10614 | echo "$ac_t""no" 1>&6 | |
10615 | fi | |
10616 | done | |
10617 | ||
10618 | fi | |
10619 | ||
10620 | ||
421173e6 PE |
10621 | echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6 |
10622 | echo "configure:10623: checking for _finite declaration" >&5 | |
10623 | if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then | |
10624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10625 | else | |
38bd7296 | 10626 | |
421173e6 PE |
10627 | |
10628 | ac_ext=C | |
38bd7296 BK |
10629 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10630 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10631 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10632 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10633 | cross_compiling=$ac_cv_prog_cxx_cross | |
10634 | ||
421173e6 PE |
10635 | cat > conftest.$ac_ext <<EOF |
10636 | #line 10637 "configure" | |
38bd7296 BK |
10637 | #include "confdefs.h" |
10638 | #include <math.h> | |
10639 | int main() { | |
10640 | _finite(0); | |
10641 | ; return 0; } | |
10642 | EOF | |
421173e6 | 10643 | if { (eval echo configure:10644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10644 | rm -rf conftest* |
421173e6 | 10645 | glibcpp_cv_func__finite_use=yes |
38bd7296 BK |
10646 | else |
10647 | echo "configure: failed program was:" >&5 | |
10648 | cat conftest.$ac_ext >&5 | |
10649 | rm -rf conftest* | |
421173e6 | 10650 | glibcpp_cv_func__finite_use=no |
38bd7296 BK |
10651 | fi |
10652 | rm -f conftest* | |
421173e6 | 10653 | ac_ext=c |
38bd7296 BK |
10654 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10655 | ac_cpp='$CPP $CPPFLAGS' | |
10656 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10657 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10658 | cross_compiling=$ac_cv_prog_cc_cross | |
10659 | ||
421173e6 PE |
10660 | |
10661 | fi | |
10662 | ||
10663 | echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6 | |
10664 | if test x$glibcpp_cv_func__finite_use = x"yes"; then | |
38bd7296 BK |
10665 | for ac_func in _finite |
10666 | do | |
10667 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10668 | echo "configure:10669: checking for $ac_func" >&5 |
38bd7296 BK |
10669 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10671 | else | |
10672 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10673 | #line 10674 "configure" |
38bd7296 BK |
10674 | #include "confdefs.h" |
10675 | /* System header to define __stub macros and hopefully few prototypes, | |
10676 | which can conflict with char $ac_func(); below. */ | |
10677 | #include <assert.h> | |
10678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10679 | /* We use char because int might match the return type of a gcc2 | |
10680 | builtin and then its argument prototype would still apply. */ | |
10681 | char $ac_func(); | |
10682 | ||
10683 | int main() { | |
10684 | ||
10685 | /* The GNU C library defines this for functions which it implements | |
10686 | to always fail with ENOSYS. Some functions are actually named | |
10687 | something starting with __ and the normal name is an alias. */ | |
10688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10689 | choke me | |
10690 | #else | |
10691 | $ac_func(); | |
10692 | #endif | |
10693 | ||
10694 | ; return 0; } | |
10695 | EOF | |
421173e6 | 10696 | if { (eval echo configure:10697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
10697 | rm -rf conftest* |
10698 | eval "ac_cv_func_$ac_func=yes" | |
10699 | else | |
10700 | echo "configure: failed program was:" >&5 | |
10701 | cat conftest.$ac_ext >&5 | |
10702 | rm -rf conftest* | |
10703 | eval "ac_cv_func_$ac_func=no" | |
10704 | fi | |
10705 | rm -f conftest* | |
10706 | fi | |
10707 | ||
10708 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10709 | echo "$ac_t""yes" 1>&6 | |
10710 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10711 | cat >> confdefs.h <<EOF | |
10712 | #define $ac_tr_func 1 | |
10713 | EOF | |
10714 | ||
10715 | else | |
10716 | echo "$ac_t""no" 1>&6 | |
10717 | fi | |
10718 | done | |
10719 | ||
10720 | fi | |
10721 | ||
10722 | ||
421173e6 PE |
10723 | echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6 |
10724 | echo "configure:10725: checking for _copysign declaration" >&5 | |
10725 | if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then | |
10726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10727 | else | |
38bd7296 | 10728 | |
421173e6 PE |
10729 | |
10730 | ac_ext=C | |
38bd7296 BK |
10731 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10732 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10733 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10734 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10735 | cross_compiling=$ac_cv_prog_cxx_cross | |
10736 | ||
421173e6 PE |
10737 | cat > conftest.$ac_ext <<EOF |
10738 | #line 10739 "configure" | |
38bd7296 BK |
10739 | #include "confdefs.h" |
10740 | #include <math.h> | |
10741 | int main() { | |
10742 | _copysign(0, 0); | |
10743 | ; return 0; } | |
10744 | EOF | |
421173e6 | 10745 | if { (eval echo configure:10746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10746 | rm -rf conftest* |
421173e6 | 10747 | glibcpp_cv_func__copysign_use=yes |
38bd7296 BK |
10748 | else |
10749 | echo "configure: failed program was:" >&5 | |
10750 | cat conftest.$ac_ext >&5 | |
10751 | rm -rf conftest* | |
421173e6 | 10752 | glibcpp_cv_func__copysign_use=no |
38bd7296 BK |
10753 | fi |
10754 | rm -f conftest* | |
421173e6 | 10755 | ac_ext=c |
38bd7296 BK |
10756 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10757 | ac_cpp='$CPP $CPPFLAGS' | |
10758 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10759 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10760 | cross_compiling=$ac_cv_prog_cc_cross | |
10761 | ||
421173e6 PE |
10762 | |
10763 | fi | |
10764 | ||
10765 | echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6 | |
10766 | if test x$glibcpp_cv_func__copysign_use = x"yes"; then | |
38bd7296 BK |
10767 | for ac_func in _copysign |
10768 | do | |
10769 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10770 | echo "configure:10771: checking for $ac_func" >&5 |
38bd7296 BK |
10771 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10773 | else | |
10774 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10775 | #line 10776 "configure" |
38bd7296 BK |
10776 | #include "confdefs.h" |
10777 | /* System header to define __stub macros and hopefully few prototypes, | |
10778 | which can conflict with char $ac_func(); below. */ | |
10779 | #include <assert.h> | |
10780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10781 | /* We use char because int might match the return type of a gcc2 | |
10782 | builtin and then its argument prototype would still apply. */ | |
10783 | char $ac_func(); | |
10784 | ||
10785 | int main() { | |
10786 | ||
10787 | /* The GNU C library defines this for functions which it implements | |
10788 | to always fail with ENOSYS. Some functions are actually named | |
10789 | something starting with __ and the normal name is an alias. */ | |
10790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10791 | choke me | |
10792 | #else | |
10793 | $ac_func(); | |
10794 | #endif | |
10795 | ||
10796 | ; return 0; } | |
10797 | EOF | |
421173e6 | 10798 | if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
10799 | rm -rf conftest* |
10800 | eval "ac_cv_func_$ac_func=yes" | |
10801 | else | |
10802 | echo "configure: failed program was:" >&5 | |
10803 | cat conftest.$ac_ext >&5 | |
10804 | rm -rf conftest* | |
10805 | eval "ac_cv_func_$ac_func=no" | |
10806 | fi | |
10807 | rm -f conftest* | |
10808 | fi | |
10809 | ||
10810 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10811 | echo "$ac_t""yes" 1>&6 | |
10812 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10813 | cat >> confdefs.h <<EOF | |
10814 | #define $ac_tr_func 1 | |
10815 | EOF | |
10816 | ||
10817 | else | |
10818 | echo "$ac_t""no" 1>&6 | |
10819 | fi | |
10820 | done | |
10821 | ||
10822 | fi | |
10823 | ||
10824 | ||
421173e6 PE |
10825 | echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6 |
10826 | echo "configure:10827: checking for _sincos declaration" >&5 | |
10827 | if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then | |
10828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10829 | else | |
38bd7296 | 10830 | |
421173e6 PE |
10831 | |
10832 | ac_ext=C | |
38bd7296 BK |
10833 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10834 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10835 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10836 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10837 | cross_compiling=$ac_cv_prog_cxx_cross | |
10838 | ||
421173e6 PE |
10839 | cat > conftest.$ac_ext <<EOF |
10840 | #line 10841 "configure" | |
38bd7296 BK |
10841 | #include "confdefs.h" |
10842 | #include <math.h> | |
10843 | int main() { | |
10844 | _sincos(0, 0, 0); | |
10845 | ; return 0; } | |
10846 | EOF | |
421173e6 | 10847 | if { (eval echo configure:10848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10848 | rm -rf conftest* |
421173e6 | 10849 | glibcpp_cv_func__sincos_use=yes |
38bd7296 BK |
10850 | else |
10851 | echo "configure: failed program was:" >&5 | |
10852 | cat conftest.$ac_ext >&5 | |
10853 | rm -rf conftest* | |
421173e6 | 10854 | glibcpp_cv_func__sincos_use=no |
38bd7296 BK |
10855 | fi |
10856 | rm -f conftest* | |
421173e6 | 10857 | ac_ext=c |
38bd7296 BK |
10858 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10859 | ac_cpp='$CPP $CPPFLAGS' | |
10860 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10861 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10862 | cross_compiling=$ac_cv_prog_cc_cross | |
10863 | ||
421173e6 PE |
10864 | |
10865 | fi | |
10866 | ||
10867 | echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6 | |
10868 | if test x$glibcpp_cv_func__sincos_use = x"yes"; then | |
38bd7296 BK |
10869 | for ac_func in _sincos |
10870 | do | |
10871 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10872 | echo "configure:10873: checking for $ac_func" >&5 |
38bd7296 BK |
10873 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10875 | else | |
10876 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10877 | #line 10878 "configure" |
38bd7296 BK |
10878 | #include "confdefs.h" |
10879 | /* System header to define __stub macros and hopefully few prototypes, | |
10880 | which can conflict with char $ac_func(); below. */ | |
10881 | #include <assert.h> | |
10882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10883 | /* We use char because int might match the return type of a gcc2 | |
10884 | builtin and then its argument prototype would still apply. */ | |
10885 | char $ac_func(); | |
10886 | ||
10887 | int main() { | |
10888 | ||
10889 | /* The GNU C library defines this for functions which it implements | |
10890 | to always fail with ENOSYS. Some functions are actually named | |
10891 | something starting with __ and the normal name is an alias. */ | |
10892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10893 | choke me | |
10894 | #else | |
10895 | $ac_func(); | |
10896 | #endif | |
10897 | ||
10898 | ; return 0; } | |
10899 | EOF | |
421173e6 | 10900 | if { (eval echo configure:10901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
10901 | rm -rf conftest* |
10902 | eval "ac_cv_func_$ac_func=yes" | |
10903 | else | |
10904 | echo "configure: failed program was:" >&5 | |
10905 | cat conftest.$ac_ext >&5 | |
10906 | rm -rf conftest* | |
10907 | eval "ac_cv_func_$ac_func=no" | |
10908 | fi | |
10909 | rm -f conftest* | |
10910 | fi | |
10911 | ||
10912 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10913 | echo "$ac_t""yes" 1>&6 | |
10914 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10915 | cat >> confdefs.h <<EOF | |
10916 | #define $ac_tr_func 1 | |
10917 | EOF | |
10918 | ||
10919 | else | |
10920 | echo "$ac_t""no" 1>&6 | |
10921 | fi | |
10922 | done | |
10923 | ||
10924 | fi | |
10925 | ||
10926 | ||
421173e6 PE |
10927 | echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6 |
10928 | echo "configure:10929: checking for _fpclass declaration" >&5 | |
10929 | if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then | |
10930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10931 | else | |
38bd7296 | 10932 | |
421173e6 PE |
10933 | |
10934 | ac_ext=C | |
38bd7296 BK |
10935 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10936 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10937 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10938 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10939 | cross_compiling=$ac_cv_prog_cxx_cross | |
10940 | ||
421173e6 PE |
10941 | cat > conftest.$ac_ext <<EOF |
10942 | #line 10943 "configure" | |
38bd7296 BK |
10943 | #include "confdefs.h" |
10944 | #include <math.h> | |
10945 | int main() { | |
10946 | _fpclass(0); | |
10947 | ; return 0; } | |
10948 | EOF | |
421173e6 | 10949 | if { (eval echo configure:10950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 10950 | rm -rf conftest* |
421173e6 | 10951 | glibcpp_cv_func__fpclass_use=yes |
38bd7296 BK |
10952 | else |
10953 | echo "configure: failed program was:" >&5 | |
10954 | cat conftest.$ac_ext >&5 | |
10955 | rm -rf conftest* | |
421173e6 | 10956 | glibcpp_cv_func__fpclass_use=no |
38bd7296 BK |
10957 | fi |
10958 | rm -f conftest* | |
421173e6 | 10959 | ac_ext=c |
38bd7296 BK |
10960 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10961 | ac_cpp='$CPP $CPPFLAGS' | |
10962 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10963 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10964 | cross_compiling=$ac_cv_prog_cc_cross | |
10965 | ||
421173e6 PE |
10966 | |
10967 | fi | |
10968 | ||
10969 | echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6 | |
10970 | if test x$glibcpp_cv_func__fpclass_use = x"yes"; then | |
38bd7296 BK |
10971 | for ac_func in _fpclass |
10972 | do | |
10973 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 10974 | echo "configure:10975: checking for $ac_func" >&5 |
38bd7296 BK |
10975 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10977 | else | |
10978 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 10979 | #line 10980 "configure" |
38bd7296 BK |
10980 | #include "confdefs.h" |
10981 | /* System header to define __stub macros and hopefully few prototypes, | |
10982 | which can conflict with char $ac_func(); below. */ | |
10983 | #include <assert.h> | |
10984 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10985 | /* We use char because int might match the return type of a gcc2 | |
10986 | builtin and then its argument prototype would still apply. */ | |
10987 | char $ac_func(); | |
10988 | ||
10989 | int main() { | |
10990 | ||
10991 | /* The GNU C library defines this for functions which it implements | |
10992 | to always fail with ENOSYS. Some functions are actually named | |
10993 | something starting with __ and the normal name is an alias. */ | |
10994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10995 | choke me | |
10996 | #else | |
10997 | $ac_func(); | |
10998 | #endif | |
10999 | ||
11000 | ; return 0; } | |
11001 | EOF | |
421173e6 | 11002 | if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11003 | rm -rf conftest* |
11004 | eval "ac_cv_func_$ac_func=yes" | |
11005 | else | |
11006 | echo "configure: failed program was:" >&5 | |
11007 | cat conftest.$ac_ext >&5 | |
11008 | rm -rf conftest* | |
11009 | eval "ac_cv_func_$ac_func=no" | |
11010 | fi | |
11011 | rm -f conftest* | |
11012 | fi | |
11013 | ||
11014 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11015 | echo "$ac_t""yes" 1>&6 | |
11016 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11017 | cat >> confdefs.h <<EOF | |
11018 | #define $ac_tr_func 1 | |
11019 | EOF | |
11020 | ||
11021 | else | |
11022 | echo "$ac_t""no" 1>&6 | |
11023 | fi | |
11024 | done | |
11025 | ||
11026 | fi | |
11027 | ||
11028 | ||
421173e6 PE |
11029 | echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6 |
11030 | echo "configure:11031: checking for _qfpclass declaration" >&5 | |
11031 | if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then | |
11032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11033 | else | |
38bd7296 | 11034 | |
421173e6 PE |
11035 | |
11036 | ac_ext=C | |
38bd7296 BK |
11037 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11039 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11040 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11041 | cross_compiling=$ac_cv_prog_cxx_cross | |
11042 | ||
421173e6 PE |
11043 | cat > conftest.$ac_ext <<EOF |
11044 | #line 11045 "configure" | |
38bd7296 BK |
11045 | #include "confdefs.h" |
11046 | #include <math.h> | |
11047 | int main() { | |
11048 | _qfpclass(0); | |
11049 | ; return 0; } | |
11050 | EOF | |
421173e6 | 11051 | if { (eval echo configure:11052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11052 | rm -rf conftest* |
421173e6 | 11053 | glibcpp_cv_func__qfpclass_use=yes |
38bd7296 BK |
11054 | else |
11055 | echo "configure: failed program was:" >&5 | |
11056 | cat conftest.$ac_ext >&5 | |
11057 | rm -rf conftest* | |
421173e6 | 11058 | glibcpp_cv_func__qfpclass_use=no |
38bd7296 BK |
11059 | fi |
11060 | rm -f conftest* | |
421173e6 | 11061 | ac_ext=c |
38bd7296 BK |
11062 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11063 | ac_cpp='$CPP $CPPFLAGS' | |
11064 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11065 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11066 | cross_compiling=$ac_cv_prog_cc_cross | |
11067 | ||
421173e6 PE |
11068 | |
11069 | fi | |
11070 | ||
11071 | echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6 | |
11072 | if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then | |
38bd7296 BK |
11073 | for ac_func in _qfpclass |
11074 | do | |
11075 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11076 | echo "configure:11077: checking for $ac_func" >&5 |
38bd7296 BK |
11077 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11079 | else | |
11080 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 11081 | #line 11082 "configure" |
38bd7296 BK |
11082 | #include "confdefs.h" |
11083 | /* System header to define __stub macros and hopefully few prototypes, | |
11084 | which can conflict with char $ac_func(); below. */ | |
11085 | #include <assert.h> | |
11086 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11087 | /* We use char because int might match the return type of a gcc2 | |
11088 | builtin and then its argument prototype would still apply. */ | |
11089 | char $ac_func(); | |
11090 | ||
11091 | int main() { | |
11092 | ||
11093 | /* The GNU C library defines this for functions which it implements | |
11094 | to always fail with ENOSYS. Some functions are actually named | |
11095 | something starting with __ and the normal name is an alias. */ | |
11096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11097 | choke me | |
11098 | #else | |
11099 | $ac_func(); | |
11100 | #endif | |
11101 | ||
11102 | ; return 0; } | |
11103 | EOF | |
421173e6 | 11104 | if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11105 | rm -rf conftest* |
11106 | eval "ac_cv_func_$ac_func=yes" | |
11107 | else | |
11108 | echo "configure: failed program was:" >&5 | |
11109 | cat conftest.$ac_ext >&5 | |
11110 | rm -rf conftest* | |
11111 | eval "ac_cv_func_$ac_func=no" | |
11112 | fi | |
11113 | rm -f conftest* | |
11114 | fi | |
11115 | ||
11116 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11117 | echo "$ac_t""yes" 1>&6 | |
11118 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11119 | cat >> confdefs.h <<EOF | |
11120 | #define $ac_tr_func 1 | |
11121 | EOF | |
11122 | ||
11123 | else | |
11124 | echo "$ac_t""no" 1>&6 | |
11125 | fi | |
11126 | done | |
11127 | ||
11128 | fi | |
11129 | ||
11130 | ||
11131 | ||
421173e6 PE |
11132 | echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6 |
11133 | echo "configure:11134: checking for _isnanf declaration" >&5 | |
11134 | if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then | |
11135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11136 | else | |
38bd7296 | 11137 | |
421173e6 PE |
11138 | |
11139 | ac_ext=C | |
38bd7296 BK |
11140 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11141 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11142 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11143 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11144 | cross_compiling=$ac_cv_prog_cxx_cross | |
11145 | ||
421173e6 PE |
11146 | cat > conftest.$ac_ext <<EOF |
11147 | #line 11148 "configure" | |
38bd7296 BK |
11148 | #include "confdefs.h" |
11149 | #include <math.h> | |
11150 | int main() { | |
11151 | _isnanf(0); | |
11152 | ; return 0; } | |
11153 | EOF | |
421173e6 | 11154 | if { (eval echo configure:11155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11155 | rm -rf conftest* |
421173e6 | 11156 | glibcpp_cv_func__isnanf_use=yes |
38bd7296 BK |
11157 | else |
11158 | echo "configure: failed program was:" >&5 | |
11159 | cat conftest.$ac_ext >&5 | |
11160 | rm -rf conftest* | |
421173e6 | 11161 | glibcpp_cv_func__isnanf_use=no |
38bd7296 BK |
11162 | fi |
11163 | rm -f conftest* | |
421173e6 | 11164 | ac_ext=c |
38bd7296 BK |
11165 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11166 | ac_cpp='$CPP $CPPFLAGS' | |
11167 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11168 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11169 | cross_compiling=$ac_cv_prog_cc_cross | |
11170 | ||
421173e6 PE |
11171 | |
11172 | fi | |
11173 | ||
11174 | echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6 | |
11175 | if test x$glibcpp_cv_func__isnanf_use = x"yes"; then | |
38bd7296 BK |
11176 | for ac_func in _isnanf |
11177 | do | |
11178 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11179 | echo "configure:11180: checking for $ac_func" >&5 |
38bd7296 BK |
11180 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11182 | else | |
11183 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 11184 | #line 11185 "configure" |
38bd7296 BK |
11185 | #include "confdefs.h" |
11186 | /* System header to define __stub macros and hopefully few prototypes, | |
11187 | which can conflict with char $ac_func(); below. */ | |
11188 | #include <assert.h> | |
11189 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11190 | /* We use char because int might match the return type of a gcc2 | |
11191 | builtin and then its argument prototype would still apply. */ | |
11192 | char $ac_func(); | |
11193 | ||
11194 | int main() { | |
11195 | ||
11196 | /* The GNU C library defines this for functions which it implements | |
11197 | to always fail with ENOSYS. Some functions are actually named | |
11198 | something starting with __ and the normal name is an alias. */ | |
11199 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11200 | choke me | |
11201 | #else | |
11202 | $ac_func(); | |
11203 | #endif | |
11204 | ||
11205 | ; return 0; } | |
11206 | EOF | |
421173e6 | 11207 | if { (eval echo configure:11208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11208 | rm -rf conftest* |
11209 | eval "ac_cv_func_$ac_func=yes" | |
11210 | else | |
11211 | echo "configure: failed program was:" >&5 | |
11212 | cat conftest.$ac_ext >&5 | |
11213 | rm -rf conftest* | |
11214 | eval "ac_cv_func_$ac_func=no" | |
11215 | fi | |
11216 | rm -f conftest* | |
11217 | fi | |
11218 | ||
11219 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11220 | echo "$ac_t""yes" 1>&6 | |
11221 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11222 | cat >> confdefs.h <<EOF | |
11223 | #define $ac_tr_func 1 | |
11224 | EOF | |
11225 | ||
11226 | else | |
11227 | echo "$ac_t""no" 1>&6 | |
11228 | fi | |
11229 | done | |
11230 | ||
11231 | fi | |
11232 | ||
11233 | ||
421173e6 PE |
11234 | echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6 |
11235 | echo "configure:11236: checking for _isinff declaration" >&5 | |
11236 | if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then | |
11237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11238 | else | |
38bd7296 | 11239 | |
421173e6 PE |
11240 | |
11241 | ac_ext=C | |
38bd7296 BK |
11242 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11243 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11244 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11245 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11246 | cross_compiling=$ac_cv_prog_cxx_cross | |
11247 | ||
421173e6 PE |
11248 | cat > conftest.$ac_ext <<EOF |
11249 | #line 11250 "configure" | |
38bd7296 BK |
11250 | #include "confdefs.h" |
11251 | #include <math.h> | |
11252 | int main() { | |
11253 | _isinff(0); | |
11254 | ; return 0; } | |
11255 | EOF | |
421173e6 | 11256 | if { (eval echo configure:11257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11257 | rm -rf conftest* |
421173e6 | 11258 | glibcpp_cv_func__isinff_use=yes |
38bd7296 BK |
11259 | else |
11260 | echo "configure: failed program was:" >&5 | |
11261 | cat conftest.$ac_ext >&5 | |
11262 | rm -rf conftest* | |
421173e6 | 11263 | glibcpp_cv_func__isinff_use=no |
38bd7296 BK |
11264 | fi |
11265 | rm -f conftest* | |
421173e6 | 11266 | ac_ext=c |
38bd7296 BK |
11267 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11268 | ac_cpp='$CPP $CPPFLAGS' | |
11269 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11270 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11271 | cross_compiling=$ac_cv_prog_cc_cross | |
11272 | ||
421173e6 PE |
11273 | |
11274 | fi | |
11275 | ||
11276 | echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6 | |
11277 | if test x$glibcpp_cv_func__isinff_use = x"yes"; then | |
38bd7296 BK |
11278 | for ac_func in _isinff |
11279 | do | |
11280 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11281 | echo "configure:11282: checking for $ac_func" >&5 |
38bd7296 BK |
11282 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11284 | else | |
11285 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 11286 | #line 11287 "configure" |
38bd7296 BK |
11287 | #include "confdefs.h" |
11288 | /* System header to define __stub macros and hopefully few prototypes, | |
11289 | which can conflict with char $ac_func(); below. */ | |
11290 | #include <assert.h> | |
11291 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11292 | /* We use char because int might match the return type of a gcc2 | |
11293 | builtin and then its argument prototype would still apply. */ | |
11294 | char $ac_func(); | |
11295 | ||
11296 | int main() { | |
11297 | ||
11298 | /* The GNU C library defines this for functions which it implements | |
11299 | to always fail with ENOSYS. Some functions are actually named | |
11300 | something starting with __ and the normal name is an alias. */ | |
11301 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11302 | choke me | |
11303 | #else | |
11304 | $ac_func(); | |
11305 | #endif | |
11306 | ||
11307 | ; return 0; } | |
11308 | EOF | |
421173e6 | 11309 | if { (eval echo configure:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11310 | rm -rf conftest* |
11311 | eval "ac_cv_func_$ac_func=yes" | |
11312 | else | |
11313 | echo "configure: failed program was:" >&5 | |
11314 | cat conftest.$ac_ext >&5 | |
11315 | rm -rf conftest* | |
11316 | eval "ac_cv_func_$ac_func=no" | |
11317 | fi | |
11318 | rm -f conftest* | |
11319 | fi | |
11320 | ||
11321 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11322 | echo "$ac_t""yes" 1>&6 | |
11323 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11324 | cat >> confdefs.h <<EOF | |
11325 | #define $ac_tr_func 1 | |
11326 | EOF | |
11327 | ||
11328 | else | |
11329 | echo "$ac_t""no" 1>&6 | |
11330 | fi | |
11331 | done | |
11332 | ||
11333 | fi | |
11334 | ||
11335 | ||
421173e6 PE |
11336 | echo $ac_n "checking for _acosf declaration""... $ac_c" 1>&6 |
11337 | echo "configure:11338: checking for _acosf declaration" >&5 | |
11338 | if eval "test \"`echo '$''{'glibcpp_cv_func__acosf_use'+set}'`\" = set"; then | |
11339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11340 | else | |
38bd7296 | 11341 | |
421173e6 PE |
11342 | |
11343 | ac_ext=C | |
38bd7296 BK |
11344 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11345 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11346 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11347 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11348 | cross_compiling=$ac_cv_prog_cxx_cross | |
11349 | ||
421173e6 PE |
11350 | cat > conftest.$ac_ext <<EOF |
11351 | #line 11352 "configure" | |
38bd7296 BK |
11352 | #include "confdefs.h" |
11353 | #include <math.h> | |
11354 | int main() { | |
11355 | _acosf(0); | |
11356 | ; return 0; } | |
11357 | EOF | |
421173e6 | 11358 | if { (eval echo configure:11359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11359 | rm -rf conftest* |
421173e6 | 11360 | glibcpp_cv_func__acosf_use=yes |
38bd7296 BK |
11361 | else |
11362 | echo "configure: failed program was:" >&5 | |
11363 | cat conftest.$ac_ext >&5 | |
11364 | rm -rf conftest* | |
421173e6 | 11365 | glibcpp_cv_func__acosf_use=no |
38bd7296 BK |
11366 | fi |
11367 | rm -f conftest* | |
421173e6 | 11368 | ac_ext=c |
38bd7296 BK |
11369 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11370 | ac_cpp='$CPP $CPPFLAGS' | |
11371 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11372 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11373 | cross_compiling=$ac_cv_prog_cc_cross | |
11374 | ||
421173e6 PE |
11375 | |
11376 | fi | |
11377 | ||
11378 | echo "$ac_t""$glibcpp_cv_func__acosf_use" 1>&6 | |
11379 | if test x$glibcpp_cv_func__acosf_use = x"yes"; then | |
38bd7296 BK |
11380 | for ac_func in _acosf |
11381 | do | |
11382 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11383 | echo "configure:11384: checking for $ac_func" >&5 |
38bd7296 BK |
11384 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11386 | else | |
11387 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 11388 | #line 11389 "configure" |
38bd7296 BK |
11389 | #include "confdefs.h" |
11390 | /* System header to define __stub macros and hopefully few prototypes, | |
11391 | which can conflict with char $ac_func(); below. */ | |
11392 | #include <assert.h> | |
11393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11394 | /* We use char because int might match the return type of a gcc2 | |
11395 | builtin and then its argument prototype would still apply. */ | |
11396 | char $ac_func(); | |
11397 | ||
11398 | int main() { | |
11399 | ||
11400 | /* The GNU C library defines this for functions which it implements | |
11401 | to always fail with ENOSYS. Some functions are actually named | |
11402 | something starting with __ and the normal name is an alias. */ | |
11403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11404 | choke me | |
11405 | #else | |
11406 | $ac_func(); | |
11407 | #endif | |
11408 | ||
11409 | ; return 0; } | |
11410 | EOF | |
421173e6 | 11411 | if { (eval echo configure:11412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11412 | rm -rf conftest* |
11413 | eval "ac_cv_func_$ac_func=yes" | |
11414 | else | |
11415 | echo "configure: failed program was:" >&5 | |
11416 | cat conftest.$ac_ext >&5 | |
11417 | rm -rf conftest* | |
11418 | eval "ac_cv_func_$ac_func=no" | |
11419 | fi | |
11420 | rm -f conftest* | |
11421 | fi | |
11422 | ||
11423 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11424 | echo "$ac_t""yes" 1>&6 | |
11425 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11426 | cat >> confdefs.h <<EOF | |
11427 | #define $ac_tr_func 1 | |
11428 | EOF | |
11429 | ||
11430 | else | |
11431 | echo "$ac_t""no" 1>&6 | |
11432 | fi | |
11433 | done | |
11434 | ||
11435 | fi | |
11436 | ||
11437 | ||
421173e6 PE |
11438 | echo $ac_n "checking for _asinf declaration""... $ac_c" 1>&6 |
11439 | echo "configure:11440: checking for _asinf declaration" >&5 | |
11440 | if eval "test \"`echo '$''{'glibcpp_cv_func__asinf_use'+set}'`\" = set"; then | |
11441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11442 | else | |
38bd7296 | 11443 | |
421173e6 PE |
11444 | |
11445 | ac_ext=C | |
38bd7296 BK |
11446 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11447 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11448 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11449 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11450 | cross_compiling=$ac_cv_prog_cxx_cross | |
11451 | ||
421173e6 PE |
11452 | cat > conftest.$ac_ext <<EOF |
11453 | #line 11454 "configure" | |
38bd7296 BK |
11454 | #include "confdefs.h" |
11455 | #include <math.h> | |
11456 | int main() { | |
11457 | _asinf(0); | |
11458 | ; return 0; } | |
11459 | EOF | |
421173e6 | 11460 | if { (eval echo configure:11461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11461 | rm -rf conftest* |
421173e6 | 11462 | glibcpp_cv_func__asinf_use=yes |
38bd7296 BK |
11463 | else |
11464 | echo "configure: failed program was:" >&5 | |
11465 | cat conftest.$ac_ext >&5 | |
11466 | rm -rf conftest* | |
421173e6 | 11467 | glibcpp_cv_func__asinf_use=no |
38bd7296 BK |
11468 | fi |
11469 | rm -f conftest* | |
421173e6 | 11470 | ac_ext=c |
38bd7296 BK |
11471 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11472 | ac_cpp='$CPP $CPPFLAGS' | |
11473 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11474 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11475 | cross_compiling=$ac_cv_prog_cc_cross | |
11476 | ||
421173e6 PE |
11477 | |
11478 | fi | |
11479 | ||
11480 | echo "$ac_t""$glibcpp_cv_func__asinf_use" 1>&6 | |
11481 | if test x$glibcpp_cv_func__asinf_use = x"yes"; then | |
38bd7296 BK |
11482 | for ac_func in _asinf |
11483 | do | |
11484 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11485 | echo "configure:11486: checking for $ac_func" >&5 |
38bd7296 BK |
11486 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11488 | else | |
11489 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 11490 | #line 11491 "configure" |
38bd7296 BK |
11491 | #include "confdefs.h" |
11492 | /* System header to define __stub macros and hopefully few prototypes, | |
11493 | which can conflict with char $ac_func(); below. */ | |
11494 | #include <assert.h> | |
11495 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11496 | /* We use char because int might match the return type of a gcc2 | |
11497 | builtin and then its argument prototype would still apply. */ | |
11498 | char $ac_func(); | |
11499 | ||
11500 | int main() { | |
11501 | ||
11502 | /* The GNU C library defines this for functions which it implements | |
11503 | to always fail with ENOSYS. Some functions are actually named | |
11504 | something starting with __ and the normal name is an alias. */ | |
11505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11506 | choke me | |
11507 | #else | |
11508 | $ac_func(); | |
11509 | #endif | |
11510 | ||
11511 | ; return 0; } | |
11512 | EOF | |
421173e6 | 11513 | if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11514 | rm -rf conftest* |
11515 | eval "ac_cv_func_$ac_func=yes" | |
11516 | else | |
11517 | echo "configure: failed program was:" >&5 | |
11518 | cat conftest.$ac_ext >&5 | |
11519 | rm -rf conftest* | |
11520 | eval "ac_cv_func_$ac_func=no" | |
11521 | fi | |
11522 | rm -f conftest* | |
11523 | fi | |
11524 | ||
11525 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11526 | echo "$ac_t""yes" 1>&6 | |
11527 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11528 | cat >> confdefs.h <<EOF | |
11529 | #define $ac_tr_func 1 | |
11530 | EOF | |
11531 | ||
11532 | else | |
11533 | echo "$ac_t""no" 1>&6 | |
11534 | fi | |
11535 | done | |
11536 | ||
11537 | fi | |
11538 | ||
11539 | ||
421173e6 PE |
11540 | echo $ac_n "checking for _atanf declaration""... $ac_c" 1>&6 |
11541 | echo "configure:11542: checking for _atanf declaration" >&5 | |
11542 | if eval "test \"`echo '$''{'glibcpp_cv_func__atanf_use'+set}'`\" = set"; then | |
11543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11544 | else | |
38bd7296 | 11545 | |
421173e6 PE |
11546 | |
11547 | ac_ext=C | |
38bd7296 BK |
11548 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11549 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11550 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11551 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11552 | cross_compiling=$ac_cv_prog_cxx_cross | |
11553 | ||
421173e6 PE |
11554 | cat > conftest.$ac_ext <<EOF |
11555 | #line 11556 "configure" | |
38bd7296 BK |
11556 | #include "confdefs.h" |
11557 | #include <math.h> | |
11558 | int main() { | |
11559 | _atanf(0); | |
11560 | ; return 0; } | |
11561 | EOF | |
421173e6 | 11562 | if { (eval echo configure:11563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11563 | rm -rf conftest* |
421173e6 | 11564 | glibcpp_cv_func__atanf_use=yes |
38bd7296 BK |
11565 | else |
11566 | echo "configure: failed program was:" >&5 | |
11567 | cat conftest.$ac_ext >&5 | |
11568 | rm -rf conftest* | |
421173e6 | 11569 | glibcpp_cv_func__atanf_use=no |
38bd7296 BK |
11570 | fi |
11571 | rm -f conftest* | |
421173e6 | 11572 | ac_ext=c |
38bd7296 BK |
11573 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11574 | ac_cpp='$CPP $CPPFLAGS' | |
11575 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11576 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11577 | cross_compiling=$ac_cv_prog_cc_cross | |
11578 | ||
421173e6 PE |
11579 | |
11580 | fi | |
11581 | ||
11582 | echo "$ac_t""$glibcpp_cv_func__atanf_use" 1>&6 | |
11583 | if test x$glibcpp_cv_func__atanf_use = x"yes"; then | |
38bd7296 BK |
11584 | for ac_func in _atanf |
11585 | do | |
11586 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11587 | echo "configure:11588: checking for $ac_func" >&5 |
38bd7296 BK |
11588 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11589 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11590 | else | |
11591 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 11592 | #line 11593 "configure" |
38bd7296 BK |
11593 | #include "confdefs.h" |
11594 | /* System header to define __stub macros and hopefully few prototypes, | |
11595 | which can conflict with char $ac_func(); below. */ | |
11596 | #include <assert.h> | |
11597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11598 | /* We use char because int might match the return type of a gcc2 | |
11599 | builtin and then its argument prototype would still apply. */ | |
11600 | char $ac_func(); | |
11601 | ||
11602 | int main() { | |
11603 | ||
11604 | /* The GNU C library defines this for functions which it implements | |
11605 | to always fail with ENOSYS. Some functions are actually named | |
11606 | something starting with __ and the normal name is an alias. */ | |
11607 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11608 | choke me | |
11609 | #else | |
11610 | $ac_func(); | |
11611 | #endif | |
11612 | ||
11613 | ; return 0; } | |
11614 | EOF | |
421173e6 | 11615 | if { (eval echo configure:11616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11616 | rm -rf conftest* |
11617 | eval "ac_cv_func_$ac_func=yes" | |
11618 | else | |
11619 | echo "configure: failed program was:" >&5 | |
11620 | cat conftest.$ac_ext >&5 | |
11621 | rm -rf conftest* | |
11622 | eval "ac_cv_func_$ac_func=no" | |
11623 | fi | |
11624 | rm -f conftest* | |
11625 | fi | |
11626 | ||
11627 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11628 | echo "$ac_t""yes" 1>&6 | |
11629 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11630 | cat >> confdefs.h <<EOF | |
11631 | #define $ac_tr_func 1 | |
11632 | EOF | |
11633 | ||
11634 | else | |
11635 | echo "$ac_t""no" 1>&6 | |
11636 | fi | |
11637 | done | |
11638 | ||
11639 | fi | |
11640 | ||
11641 | ||
421173e6 PE |
11642 | echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6 |
11643 | echo "configure:11644: checking for _atan2f declaration" >&5 | |
11644 | if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then | |
11645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11646 | else | |
38bd7296 | 11647 | |
421173e6 PE |
11648 | |
11649 | ac_ext=C | |
38bd7296 BK |
11650 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11651 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11652 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11653 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11654 | cross_compiling=$ac_cv_prog_cxx_cross | |
11655 | ||
421173e6 PE |
11656 | cat > conftest.$ac_ext <<EOF |
11657 | #line 11658 "configure" | |
38bd7296 BK |
11658 | #include "confdefs.h" |
11659 | #include <math.h> | |
11660 | int main() { | |
11661 | _atan2f(0, 0); | |
11662 | ; return 0; } | |
11663 | EOF | |
421173e6 | 11664 | if { (eval echo configure:11665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11665 | rm -rf conftest* |
421173e6 | 11666 | glibcpp_cv_func__atan2f_use=yes |
38bd7296 BK |
11667 | else |
11668 | echo "configure: failed program was:" >&5 | |
11669 | cat conftest.$ac_ext >&5 | |
11670 | rm -rf conftest* | |
421173e6 | 11671 | glibcpp_cv_func__atan2f_use=no |
38bd7296 BK |
11672 | fi |
11673 | rm -f conftest* | |
421173e6 | 11674 | ac_ext=c |
38bd7296 BK |
11675 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11676 | ac_cpp='$CPP $CPPFLAGS' | |
11677 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11678 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11679 | cross_compiling=$ac_cv_prog_cc_cross | |
11680 | ||
421173e6 PE |
11681 | |
11682 | fi | |
11683 | ||
11684 | echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6 | |
11685 | if test x$glibcpp_cv_func__atan2f_use = x"yes"; then | |
38bd7296 BK |
11686 | for ac_func in _atan2f |
11687 | do | |
11688 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11689 | echo "configure:11690: checking for $ac_func" >&5 |
38bd7296 BK |
11690 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11692 | else | |
11693 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 11694 | #line 11695 "configure" |
38bd7296 BK |
11695 | #include "confdefs.h" |
11696 | /* System header to define __stub macros and hopefully few prototypes, | |
11697 | which can conflict with char $ac_func(); below. */ | |
11698 | #include <assert.h> | |
11699 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11700 | /* We use char because int might match the return type of a gcc2 | |
11701 | builtin and then its argument prototype would still apply. */ | |
11702 | char $ac_func(); | |
11703 | ||
11704 | int main() { | |
11705 | ||
11706 | /* The GNU C library defines this for functions which it implements | |
11707 | to always fail with ENOSYS. Some functions are actually named | |
11708 | something starting with __ and the normal name is an alias. */ | |
11709 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11710 | choke me | |
11711 | #else | |
11712 | $ac_func(); | |
11713 | #endif | |
11714 | ||
11715 | ; return 0; } | |
11716 | EOF | |
421173e6 | 11717 | if { (eval echo configure:11718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11718 | rm -rf conftest* |
11719 | eval "ac_cv_func_$ac_func=yes" | |
11720 | else | |
11721 | echo "configure: failed program was:" >&5 | |
11722 | cat conftest.$ac_ext >&5 | |
11723 | rm -rf conftest* | |
11724 | eval "ac_cv_func_$ac_func=no" | |
11725 | fi | |
11726 | rm -f conftest* | |
11727 | fi | |
11728 | ||
11729 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11730 | echo "$ac_t""yes" 1>&6 | |
11731 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11732 | cat >> confdefs.h <<EOF | |
11733 | #define $ac_tr_func 1 | |
11734 | EOF | |
11735 | ||
11736 | else | |
11737 | echo "$ac_t""no" 1>&6 | |
11738 | fi | |
11739 | done | |
11740 | ||
11741 | fi | |
11742 | ||
11743 | ||
421173e6 PE |
11744 | echo $ac_n "checking for _ceilf declaration""... $ac_c" 1>&6 |
11745 | echo "configure:11746: checking for _ceilf declaration" >&5 | |
11746 | if eval "test \"`echo '$''{'glibcpp_cv_func__ceilf_use'+set}'`\" = set"; then | |
11747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11748 | else | |
38bd7296 | 11749 | |
421173e6 PE |
11750 | |
11751 | ac_ext=C | |
38bd7296 BK |
11752 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11753 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11754 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11755 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11756 | cross_compiling=$ac_cv_prog_cxx_cross | |
11757 | ||
421173e6 PE |
11758 | cat > conftest.$ac_ext <<EOF |
11759 | #line 11760 "configure" | |
38bd7296 BK |
11760 | #include "confdefs.h" |
11761 | #include <math.h> | |
11762 | int main() { | |
11763 | _ceilf(0); | |
11764 | ; return 0; } | |
11765 | EOF | |
421173e6 | 11766 | if { (eval echo configure:11767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11767 | rm -rf conftest* |
421173e6 | 11768 | glibcpp_cv_func__ceilf_use=yes |
38bd7296 BK |
11769 | else |
11770 | echo "configure: failed program was:" >&5 | |
11771 | cat conftest.$ac_ext >&5 | |
11772 | rm -rf conftest* | |
421173e6 | 11773 | glibcpp_cv_func__ceilf_use=no |
38bd7296 BK |
11774 | fi |
11775 | rm -f conftest* | |
421173e6 | 11776 | ac_ext=c |
38bd7296 BK |
11777 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11778 | ac_cpp='$CPP $CPPFLAGS' | |
11779 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11780 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11781 | cross_compiling=$ac_cv_prog_cc_cross | |
11782 | ||
421173e6 PE |
11783 | |
11784 | fi | |
11785 | ||
11786 | echo "$ac_t""$glibcpp_cv_func__ceilf_use" 1>&6 | |
11787 | if test x$glibcpp_cv_func__ceilf_use = x"yes"; then | |
38bd7296 BK |
11788 | for ac_func in _ceilf |
11789 | do | |
11790 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11791 | echo "configure:11792: checking for $ac_func" >&5 |
38bd7296 BK |
11792 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11794 | else | |
11795 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 11796 | #line 11797 "configure" |
38bd7296 BK |
11797 | #include "confdefs.h" |
11798 | /* System header to define __stub macros and hopefully few prototypes, | |
11799 | which can conflict with char $ac_func(); below. */ | |
11800 | #include <assert.h> | |
11801 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11802 | /* We use char because int might match the return type of a gcc2 | |
11803 | builtin and then its argument prototype would still apply. */ | |
11804 | char $ac_func(); | |
11805 | ||
11806 | int main() { | |
11807 | ||
11808 | /* The GNU C library defines this for functions which it implements | |
11809 | to always fail with ENOSYS. Some functions are actually named | |
11810 | something starting with __ and the normal name is an alias. */ | |
11811 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11812 | choke me | |
11813 | #else | |
11814 | $ac_func(); | |
11815 | #endif | |
11816 | ||
11817 | ; return 0; } | |
11818 | EOF | |
421173e6 | 11819 | if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11820 | rm -rf conftest* |
11821 | eval "ac_cv_func_$ac_func=yes" | |
11822 | else | |
11823 | echo "configure: failed program was:" >&5 | |
11824 | cat conftest.$ac_ext >&5 | |
11825 | rm -rf conftest* | |
11826 | eval "ac_cv_func_$ac_func=no" | |
11827 | fi | |
11828 | rm -f conftest* | |
11829 | fi | |
11830 | ||
11831 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11832 | echo "$ac_t""yes" 1>&6 | |
11833 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11834 | cat >> confdefs.h <<EOF | |
11835 | #define $ac_tr_func 1 | |
11836 | EOF | |
11837 | ||
11838 | else | |
11839 | echo "$ac_t""no" 1>&6 | |
11840 | fi | |
11841 | done | |
11842 | ||
11843 | fi | |
11844 | ||
11845 | ||
421173e6 PE |
11846 | echo $ac_n "checking for _cosf declaration""... $ac_c" 1>&6 |
11847 | echo "configure:11848: checking for _cosf declaration" >&5 | |
11848 | if eval "test \"`echo '$''{'glibcpp_cv_func__cosf_use'+set}'`\" = set"; then | |
11849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11850 | else | |
38bd7296 | 11851 | |
421173e6 PE |
11852 | |
11853 | ac_ext=C | |
38bd7296 BK |
11854 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11855 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11856 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11857 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11858 | cross_compiling=$ac_cv_prog_cxx_cross | |
11859 | ||
421173e6 PE |
11860 | cat > conftest.$ac_ext <<EOF |
11861 | #line 11862 "configure" | |
38bd7296 BK |
11862 | #include "confdefs.h" |
11863 | #include <math.h> | |
11864 | int main() { | |
11865 | _cosf(0); | |
11866 | ; return 0; } | |
11867 | EOF | |
421173e6 | 11868 | if { (eval echo configure:11869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11869 | rm -rf conftest* |
421173e6 | 11870 | glibcpp_cv_func__cosf_use=yes |
38bd7296 BK |
11871 | else |
11872 | echo "configure: failed program was:" >&5 | |
11873 | cat conftest.$ac_ext >&5 | |
11874 | rm -rf conftest* | |
421173e6 | 11875 | glibcpp_cv_func__cosf_use=no |
38bd7296 BK |
11876 | fi |
11877 | rm -f conftest* | |
421173e6 | 11878 | ac_ext=c |
38bd7296 BK |
11879 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11880 | ac_cpp='$CPP $CPPFLAGS' | |
11881 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11882 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11883 | cross_compiling=$ac_cv_prog_cc_cross | |
11884 | ||
421173e6 PE |
11885 | |
11886 | fi | |
11887 | ||
11888 | echo "$ac_t""$glibcpp_cv_func__cosf_use" 1>&6 | |
11889 | if test x$glibcpp_cv_func__cosf_use = x"yes"; then | |
38bd7296 BK |
11890 | for ac_func in _cosf |
11891 | do | |
11892 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11893 | echo "configure:11894: checking for $ac_func" >&5 |
38bd7296 BK |
11894 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11895 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11896 | else | |
11897 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 11898 | #line 11899 "configure" |
38bd7296 BK |
11899 | #include "confdefs.h" |
11900 | /* System header to define __stub macros and hopefully few prototypes, | |
11901 | which can conflict with char $ac_func(); below. */ | |
11902 | #include <assert.h> | |
11903 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11904 | /* We use char because int might match the return type of a gcc2 | |
11905 | builtin and then its argument prototype would still apply. */ | |
11906 | char $ac_func(); | |
11907 | ||
11908 | int main() { | |
11909 | ||
11910 | /* The GNU C library defines this for functions which it implements | |
11911 | to always fail with ENOSYS. Some functions are actually named | |
11912 | something starting with __ and the normal name is an alias. */ | |
11913 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11914 | choke me | |
11915 | #else | |
11916 | $ac_func(); | |
11917 | #endif | |
11918 | ||
11919 | ; return 0; } | |
11920 | EOF | |
421173e6 | 11921 | if { (eval echo configure:11922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
11922 | rm -rf conftest* |
11923 | eval "ac_cv_func_$ac_func=yes" | |
11924 | else | |
11925 | echo "configure: failed program was:" >&5 | |
11926 | cat conftest.$ac_ext >&5 | |
11927 | rm -rf conftest* | |
11928 | eval "ac_cv_func_$ac_func=no" | |
11929 | fi | |
11930 | rm -f conftest* | |
11931 | fi | |
11932 | ||
11933 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11934 | echo "$ac_t""yes" 1>&6 | |
11935 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11936 | cat >> confdefs.h <<EOF | |
11937 | #define $ac_tr_func 1 | |
11938 | EOF | |
11939 | ||
11940 | else | |
11941 | echo "$ac_t""no" 1>&6 | |
11942 | fi | |
11943 | done | |
11944 | ||
11945 | fi | |
11946 | ||
11947 | ||
421173e6 PE |
11948 | echo $ac_n "checking for _coshf declaration""... $ac_c" 1>&6 |
11949 | echo "configure:11950: checking for _coshf declaration" >&5 | |
11950 | if eval "test \"`echo '$''{'glibcpp_cv_func__coshf_use'+set}'`\" = set"; then | |
11951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11952 | else | |
38bd7296 | 11953 | |
421173e6 PE |
11954 | |
11955 | ac_ext=C | |
38bd7296 BK |
11956 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11957 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11958 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11959 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11960 | cross_compiling=$ac_cv_prog_cxx_cross | |
11961 | ||
421173e6 PE |
11962 | cat > conftest.$ac_ext <<EOF |
11963 | #line 11964 "configure" | |
38bd7296 BK |
11964 | #include "confdefs.h" |
11965 | #include <math.h> | |
11966 | int main() { | |
11967 | _coshf(0); | |
11968 | ; return 0; } | |
11969 | EOF | |
421173e6 | 11970 | if { (eval echo configure:11971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 11971 | rm -rf conftest* |
421173e6 | 11972 | glibcpp_cv_func__coshf_use=yes |
38bd7296 BK |
11973 | else |
11974 | echo "configure: failed program was:" >&5 | |
11975 | cat conftest.$ac_ext >&5 | |
11976 | rm -rf conftest* | |
421173e6 | 11977 | glibcpp_cv_func__coshf_use=no |
38bd7296 BK |
11978 | fi |
11979 | rm -f conftest* | |
421173e6 | 11980 | ac_ext=c |
38bd7296 BK |
11981 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11982 | ac_cpp='$CPP $CPPFLAGS' | |
11983 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11984 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11985 | cross_compiling=$ac_cv_prog_cc_cross | |
11986 | ||
421173e6 PE |
11987 | |
11988 | fi | |
11989 | ||
11990 | echo "$ac_t""$glibcpp_cv_func__coshf_use" 1>&6 | |
11991 | if test x$glibcpp_cv_func__coshf_use = x"yes"; then | |
38bd7296 BK |
11992 | for ac_func in _coshf |
11993 | do | |
11994 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 11995 | echo "configure:11996: checking for $ac_func" >&5 |
38bd7296 BK |
11996 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11998 | else | |
11999 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12000 | #line 12001 "configure" |
38bd7296 BK |
12001 | #include "confdefs.h" |
12002 | /* System header to define __stub macros and hopefully few prototypes, | |
12003 | which can conflict with char $ac_func(); below. */ | |
12004 | #include <assert.h> | |
12005 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12006 | /* We use char because int might match the return type of a gcc2 | |
12007 | builtin and then its argument prototype would still apply. */ | |
12008 | char $ac_func(); | |
12009 | ||
12010 | int main() { | |
12011 | ||
12012 | /* The GNU C library defines this for functions which it implements | |
12013 | to always fail with ENOSYS. Some functions are actually named | |
12014 | something starting with __ and the normal name is an alias. */ | |
12015 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12016 | choke me | |
12017 | #else | |
12018 | $ac_func(); | |
12019 | #endif | |
12020 | ||
12021 | ; return 0; } | |
12022 | EOF | |
421173e6 | 12023 | if { (eval echo configure:12024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12024 | rm -rf conftest* |
12025 | eval "ac_cv_func_$ac_func=yes" | |
12026 | else | |
12027 | echo "configure: failed program was:" >&5 | |
12028 | cat conftest.$ac_ext >&5 | |
12029 | rm -rf conftest* | |
12030 | eval "ac_cv_func_$ac_func=no" | |
12031 | fi | |
12032 | rm -f conftest* | |
12033 | fi | |
12034 | ||
12035 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12036 | echo "$ac_t""yes" 1>&6 | |
12037 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12038 | cat >> confdefs.h <<EOF | |
12039 | #define $ac_tr_func 1 | |
12040 | EOF | |
12041 | ||
12042 | else | |
12043 | echo "$ac_t""no" 1>&6 | |
12044 | fi | |
12045 | done | |
12046 | ||
12047 | fi | |
12048 | ||
12049 | ||
421173e6 PE |
12050 | echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6 |
12051 | echo "configure:12052: checking for _expf declaration" >&5 | |
12052 | if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then | |
12053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12054 | else | |
38bd7296 | 12055 | |
421173e6 PE |
12056 | |
12057 | ac_ext=C | |
38bd7296 BK |
12058 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12059 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12060 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12061 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12062 | cross_compiling=$ac_cv_prog_cxx_cross | |
12063 | ||
421173e6 PE |
12064 | cat > conftest.$ac_ext <<EOF |
12065 | #line 12066 "configure" | |
38bd7296 BK |
12066 | #include "confdefs.h" |
12067 | #include <math.h> | |
12068 | int main() { | |
12069 | _expf(0); | |
12070 | ; return 0; } | |
12071 | EOF | |
421173e6 | 12072 | if { (eval echo configure:12073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12073 | rm -rf conftest* |
421173e6 | 12074 | glibcpp_cv_func__expf_use=yes |
38bd7296 BK |
12075 | else |
12076 | echo "configure: failed program was:" >&5 | |
12077 | cat conftest.$ac_ext >&5 | |
12078 | rm -rf conftest* | |
421173e6 | 12079 | glibcpp_cv_func__expf_use=no |
38bd7296 BK |
12080 | fi |
12081 | rm -f conftest* | |
421173e6 | 12082 | ac_ext=c |
38bd7296 BK |
12083 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12084 | ac_cpp='$CPP $CPPFLAGS' | |
12085 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12086 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12087 | cross_compiling=$ac_cv_prog_cc_cross | |
12088 | ||
421173e6 PE |
12089 | |
12090 | fi | |
12091 | ||
12092 | echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6 | |
12093 | if test x$glibcpp_cv_func__expf_use = x"yes"; then | |
38bd7296 BK |
12094 | for ac_func in _expf |
12095 | do | |
12096 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 12097 | echo "configure:12098: checking for $ac_func" >&5 |
38bd7296 BK |
12098 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12100 | else | |
12101 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12102 | #line 12103 "configure" |
38bd7296 BK |
12103 | #include "confdefs.h" |
12104 | /* System header to define __stub macros and hopefully few prototypes, | |
12105 | which can conflict with char $ac_func(); below. */ | |
12106 | #include <assert.h> | |
12107 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12108 | /* We use char because int might match the return type of a gcc2 | |
12109 | builtin and then its argument prototype would still apply. */ | |
12110 | char $ac_func(); | |
12111 | ||
12112 | int main() { | |
12113 | ||
12114 | /* The GNU C library defines this for functions which it implements | |
12115 | to always fail with ENOSYS. Some functions are actually named | |
12116 | something starting with __ and the normal name is an alias. */ | |
12117 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12118 | choke me | |
12119 | #else | |
12120 | $ac_func(); | |
12121 | #endif | |
12122 | ||
12123 | ; return 0; } | |
12124 | EOF | |
421173e6 | 12125 | if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12126 | rm -rf conftest* |
12127 | eval "ac_cv_func_$ac_func=yes" | |
12128 | else | |
12129 | echo "configure: failed program was:" >&5 | |
12130 | cat conftest.$ac_ext >&5 | |
12131 | rm -rf conftest* | |
12132 | eval "ac_cv_func_$ac_func=no" | |
12133 | fi | |
12134 | rm -f conftest* | |
12135 | fi | |
12136 | ||
12137 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12138 | echo "$ac_t""yes" 1>&6 | |
12139 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12140 | cat >> confdefs.h <<EOF | |
12141 | #define $ac_tr_func 1 | |
12142 | EOF | |
12143 | ||
12144 | else | |
12145 | echo "$ac_t""no" 1>&6 | |
12146 | fi | |
12147 | done | |
12148 | ||
12149 | fi | |
12150 | ||
12151 | ||
421173e6 PE |
12152 | echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6 |
12153 | echo "configure:12154: checking for _fabsf declaration" >&5 | |
12154 | if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then | |
12155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12156 | else | |
38bd7296 | 12157 | |
421173e6 PE |
12158 | |
12159 | ac_ext=C | |
38bd7296 BK |
12160 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12161 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12162 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12163 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12164 | cross_compiling=$ac_cv_prog_cxx_cross | |
12165 | ||
421173e6 PE |
12166 | cat > conftest.$ac_ext <<EOF |
12167 | #line 12168 "configure" | |
38bd7296 BK |
12168 | #include "confdefs.h" |
12169 | #include <math.h> | |
12170 | int main() { | |
12171 | _fabsf(0); | |
12172 | ; return 0; } | |
12173 | EOF | |
421173e6 | 12174 | if { (eval echo configure:12175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12175 | rm -rf conftest* |
421173e6 | 12176 | glibcpp_cv_func__fabsf_use=yes |
38bd7296 BK |
12177 | else |
12178 | echo "configure: failed program was:" >&5 | |
12179 | cat conftest.$ac_ext >&5 | |
12180 | rm -rf conftest* | |
421173e6 | 12181 | glibcpp_cv_func__fabsf_use=no |
38bd7296 BK |
12182 | fi |
12183 | rm -f conftest* | |
421173e6 | 12184 | ac_ext=c |
38bd7296 BK |
12185 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12186 | ac_cpp='$CPP $CPPFLAGS' | |
12187 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12188 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12189 | cross_compiling=$ac_cv_prog_cc_cross | |
12190 | ||
421173e6 PE |
12191 | |
12192 | fi | |
12193 | ||
12194 | echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6 | |
12195 | if test x$glibcpp_cv_func__fabsf_use = x"yes"; then | |
38bd7296 BK |
12196 | for ac_func in _fabsf |
12197 | do | |
12198 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 12199 | echo "configure:12200: checking for $ac_func" >&5 |
38bd7296 BK |
12200 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12202 | else | |
12203 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12204 | #line 12205 "configure" |
38bd7296 BK |
12205 | #include "confdefs.h" |
12206 | /* System header to define __stub macros and hopefully few prototypes, | |
12207 | which can conflict with char $ac_func(); below. */ | |
12208 | #include <assert.h> | |
12209 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12210 | /* We use char because int might match the return type of a gcc2 | |
12211 | builtin and then its argument prototype would still apply. */ | |
12212 | char $ac_func(); | |
12213 | ||
12214 | int main() { | |
12215 | ||
12216 | /* The GNU C library defines this for functions which it implements | |
12217 | to always fail with ENOSYS. Some functions are actually named | |
12218 | something starting with __ and the normal name is an alias. */ | |
12219 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12220 | choke me | |
12221 | #else | |
12222 | $ac_func(); | |
12223 | #endif | |
12224 | ||
12225 | ; return 0; } | |
12226 | EOF | |
421173e6 | 12227 | if { (eval echo configure:12228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12228 | rm -rf conftest* |
12229 | eval "ac_cv_func_$ac_func=yes" | |
12230 | else | |
12231 | echo "configure: failed program was:" >&5 | |
12232 | cat conftest.$ac_ext >&5 | |
12233 | rm -rf conftest* | |
12234 | eval "ac_cv_func_$ac_func=no" | |
12235 | fi | |
12236 | rm -f conftest* | |
12237 | fi | |
12238 | ||
12239 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12240 | echo "$ac_t""yes" 1>&6 | |
12241 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12242 | cat >> confdefs.h <<EOF | |
12243 | #define $ac_tr_func 1 | |
12244 | EOF | |
12245 | ||
12246 | else | |
12247 | echo "$ac_t""no" 1>&6 | |
12248 | fi | |
12249 | done | |
12250 | ||
12251 | fi | |
12252 | ||
12253 | ||
421173e6 PE |
12254 | echo $ac_n "checking for _floorf declaration""... $ac_c" 1>&6 |
12255 | echo "configure:12256: checking for _floorf declaration" >&5 | |
12256 | if eval "test \"`echo '$''{'glibcpp_cv_func__floorf_use'+set}'`\" = set"; then | |
12257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12258 | else | |
38bd7296 | 12259 | |
421173e6 PE |
12260 | |
12261 | ac_ext=C | |
38bd7296 BK |
12262 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12263 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12264 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12265 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12266 | cross_compiling=$ac_cv_prog_cxx_cross | |
12267 | ||
421173e6 PE |
12268 | cat > conftest.$ac_ext <<EOF |
12269 | #line 12270 "configure" | |
38bd7296 BK |
12270 | #include "confdefs.h" |
12271 | #include <math.h> | |
12272 | int main() { | |
12273 | _floorf(0); | |
12274 | ; return 0; } | |
12275 | EOF | |
421173e6 | 12276 | if { (eval echo configure:12277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12277 | rm -rf conftest* |
421173e6 | 12278 | glibcpp_cv_func__floorf_use=yes |
38bd7296 BK |
12279 | else |
12280 | echo "configure: failed program was:" >&5 | |
12281 | cat conftest.$ac_ext >&5 | |
12282 | rm -rf conftest* | |
421173e6 | 12283 | glibcpp_cv_func__floorf_use=no |
38bd7296 BK |
12284 | fi |
12285 | rm -f conftest* | |
421173e6 | 12286 | ac_ext=c |
38bd7296 BK |
12287 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12288 | ac_cpp='$CPP $CPPFLAGS' | |
12289 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12290 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12291 | cross_compiling=$ac_cv_prog_cc_cross | |
12292 | ||
421173e6 PE |
12293 | |
12294 | fi | |
12295 | ||
12296 | echo "$ac_t""$glibcpp_cv_func__floorf_use" 1>&6 | |
12297 | if test x$glibcpp_cv_func__floorf_use = x"yes"; then | |
38bd7296 BK |
12298 | for ac_func in _floorf |
12299 | do | |
12300 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 12301 | echo "configure:12302: checking for $ac_func" >&5 |
38bd7296 BK |
12302 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12303 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12304 | else | |
12305 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12306 | #line 12307 "configure" |
38bd7296 BK |
12307 | #include "confdefs.h" |
12308 | /* System header to define __stub macros and hopefully few prototypes, | |
12309 | which can conflict with char $ac_func(); below. */ | |
12310 | #include <assert.h> | |
12311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12312 | /* We use char because int might match the return type of a gcc2 | |
12313 | builtin and then its argument prototype would still apply. */ | |
12314 | char $ac_func(); | |
12315 | ||
12316 | int main() { | |
12317 | ||
12318 | /* The GNU C library defines this for functions which it implements | |
12319 | to always fail with ENOSYS. Some functions are actually named | |
12320 | something starting with __ and the normal name is an alias. */ | |
12321 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12322 | choke me | |
12323 | #else | |
12324 | $ac_func(); | |
12325 | #endif | |
12326 | ||
12327 | ; return 0; } | |
12328 | EOF | |
421173e6 | 12329 | if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12330 | rm -rf conftest* |
12331 | eval "ac_cv_func_$ac_func=yes" | |
12332 | else | |
12333 | echo "configure: failed program was:" >&5 | |
12334 | cat conftest.$ac_ext >&5 | |
12335 | rm -rf conftest* | |
12336 | eval "ac_cv_func_$ac_func=no" | |
12337 | fi | |
12338 | rm -f conftest* | |
12339 | fi | |
12340 | ||
12341 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12342 | echo "$ac_t""yes" 1>&6 | |
12343 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12344 | cat >> confdefs.h <<EOF | |
12345 | #define $ac_tr_func 1 | |
12346 | EOF | |
12347 | ||
12348 | else | |
12349 | echo "$ac_t""no" 1>&6 | |
12350 | fi | |
12351 | done | |
12352 | ||
12353 | fi | |
12354 | ||
12355 | ||
421173e6 PE |
12356 | echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6 |
12357 | echo "configure:12358: checking for _fmodf declaration" >&5 | |
12358 | if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then | |
12359 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12360 | else | |
38bd7296 | 12361 | |
421173e6 PE |
12362 | |
12363 | ac_ext=C | |
38bd7296 BK |
12364 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12365 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12366 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12367 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12368 | cross_compiling=$ac_cv_prog_cxx_cross | |
12369 | ||
421173e6 PE |
12370 | cat > conftest.$ac_ext <<EOF |
12371 | #line 12372 "configure" | |
38bd7296 BK |
12372 | #include "confdefs.h" |
12373 | #include <math.h> | |
12374 | int main() { | |
12375 | _fmodf(0, 0); | |
12376 | ; return 0; } | |
12377 | EOF | |
421173e6 | 12378 | if { (eval echo configure:12379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12379 | rm -rf conftest* |
421173e6 | 12380 | glibcpp_cv_func__fmodf_use=yes |
38bd7296 BK |
12381 | else |
12382 | echo "configure: failed program was:" >&5 | |
12383 | cat conftest.$ac_ext >&5 | |
12384 | rm -rf conftest* | |
421173e6 | 12385 | glibcpp_cv_func__fmodf_use=no |
38bd7296 BK |
12386 | fi |
12387 | rm -f conftest* | |
421173e6 | 12388 | ac_ext=c |
38bd7296 BK |
12389 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12390 | ac_cpp='$CPP $CPPFLAGS' | |
12391 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12392 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12393 | cross_compiling=$ac_cv_prog_cc_cross | |
12394 | ||
421173e6 PE |
12395 | |
12396 | fi | |
12397 | ||
12398 | echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6 | |
12399 | if test x$glibcpp_cv_func__fmodf_use = x"yes"; then | |
38bd7296 BK |
12400 | for ac_func in _fmodf |
12401 | do | |
12402 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 12403 | echo "configure:12404: checking for $ac_func" >&5 |
38bd7296 BK |
12404 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12406 | else | |
12407 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12408 | #line 12409 "configure" |
38bd7296 BK |
12409 | #include "confdefs.h" |
12410 | /* System header to define __stub macros and hopefully few prototypes, | |
12411 | which can conflict with char $ac_func(); below. */ | |
12412 | #include <assert.h> | |
12413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12414 | /* We use char because int might match the return type of a gcc2 | |
12415 | builtin and then its argument prototype would still apply. */ | |
12416 | char $ac_func(); | |
12417 | ||
12418 | int main() { | |
12419 | ||
12420 | /* The GNU C library defines this for functions which it implements | |
12421 | to always fail with ENOSYS. Some functions are actually named | |
12422 | something starting with __ and the normal name is an alias. */ | |
12423 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12424 | choke me | |
12425 | #else | |
12426 | $ac_func(); | |
12427 | #endif | |
12428 | ||
12429 | ; return 0; } | |
12430 | EOF | |
421173e6 | 12431 | if { (eval echo configure:12432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12432 | rm -rf conftest* |
12433 | eval "ac_cv_func_$ac_func=yes" | |
12434 | else | |
12435 | echo "configure: failed program was:" >&5 | |
12436 | cat conftest.$ac_ext >&5 | |
12437 | rm -rf conftest* | |
12438 | eval "ac_cv_func_$ac_func=no" | |
12439 | fi | |
12440 | rm -f conftest* | |
12441 | fi | |
12442 | ||
12443 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12444 | echo "$ac_t""yes" 1>&6 | |
12445 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12446 | cat >> confdefs.h <<EOF | |
12447 | #define $ac_tr_func 1 | |
12448 | EOF | |
12449 | ||
12450 | else | |
12451 | echo "$ac_t""no" 1>&6 | |
12452 | fi | |
12453 | done | |
12454 | ||
12455 | fi | |
12456 | ||
12457 | ||
421173e6 PE |
12458 | echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6 |
12459 | echo "configure:12460: checking for _frexpf declaration" >&5 | |
12460 | if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then | |
12461 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12462 | else | |
38bd7296 | 12463 | |
421173e6 PE |
12464 | |
12465 | ac_ext=C | |
38bd7296 BK |
12466 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12467 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12468 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12469 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12470 | cross_compiling=$ac_cv_prog_cxx_cross | |
12471 | ||
421173e6 PE |
12472 | cat > conftest.$ac_ext <<EOF |
12473 | #line 12474 "configure" | |
38bd7296 BK |
12474 | #include "confdefs.h" |
12475 | #include <math.h> | |
12476 | int main() { | |
12477 | _frexpf(0, 0); | |
12478 | ; return 0; } | |
12479 | EOF | |
421173e6 | 12480 | if { (eval echo configure:12481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12481 | rm -rf conftest* |
421173e6 | 12482 | glibcpp_cv_func__frexpf_use=yes |
38bd7296 BK |
12483 | else |
12484 | echo "configure: failed program was:" >&5 | |
12485 | cat conftest.$ac_ext >&5 | |
12486 | rm -rf conftest* | |
421173e6 | 12487 | glibcpp_cv_func__frexpf_use=no |
38bd7296 BK |
12488 | fi |
12489 | rm -f conftest* | |
421173e6 | 12490 | ac_ext=c |
38bd7296 BK |
12491 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12492 | ac_cpp='$CPP $CPPFLAGS' | |
12493 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12494 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12495 | cross_compiling=$ac_cv_prog_cc_cross | |
12496 | ||
421173e6 PE |
12497 | |
12498 | fi | |
12499 | ||
12500 | echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6 | |
12501 | if test x$glibcpp_cv_func__frexpf_use = x"yes"; then | |
38bd7296 BK |
12502 | for ac_func in _frexpf |
12503 | do | |
12504 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 12505 | echo "configure:12506: checking for $ac_func" >&5 |
38bd7296 BK |
12506 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12508 | else | |
12509 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12510 | #line 12511 "configure" |
38bd7296 BK |
12511 | #include "confdefs.h" |
12512 | /* System header to define __stub macros and hopefully few prototypes, | |
12513 | which can conflict with char $ac_func(); below. */ | |
12514 | #include <assert.h> | |
12515 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12516 | /* We use char because int might match the return type of a gcc2 | |
12517 | builtin and then its argument prototype would still apply. */ | |
12518 | char $ac_func(); | |
12519 | ||
12520 | int main() { | |
12521 | ||
12522 | /* The GNU C library defines this for functions which it implements | |
12523 | to always fail with ENOSYS. Some functions are actually named | |
12524 | something starting with __ and the normal name is an alias. */ | |
12525 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12526 | choke me | |
12527 | #else | |
12528 | $ac_func(); | |
12529 | #endif | |
12530 | ||
12531 | ; return 0; } | |
12532 | EOF | |
421173e6 | 12533 | if { (eval echo configure:12534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12534 | rm -rf conftest* |
12535 | eval "ac_cv_func_$ac_func=yes" | |
12536 | else | |
12537 | echo "configure: failed program was:" >&5 | |
12538 | cat conftest.$ac_ext >&5 | |
12539 | rm -rf conftest* | |
12540 | eval "ac_cv_func_$ac_func=no" | |
12541 | fi | |
12542 | rm -f conftest* | |
12543 | fi | |
12544 | ||
12545 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12546 | echo "$ac_t""yes" 1>&6 | |
12547 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12548 | cat >> confdefs.h <<EOF | |
12549 | #define $ac_tr_func 1 | |
12550 | EOF | |
12551 | ||
12552 | else | |
12553 | echo "$ac_t""no" 1>&6 | |
12554 | fi | |
12555 | done | |
12556 | ||
12557 | fi | |
12558 | ||
12559 | ||
421173e6 PE |
12560 | echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6 |
12561 | echo "configure:12562: checking for _ldexpf declaration" >&5 | |
12562 | if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then | |
12563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12564 | else | |
38bd7296 | 12565 | |
421173e6 PE |
12566 | |
12567 | ac_ext=C | |
38bd7296 BK |
12568 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12569 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12570 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12571 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12572 | cross_compiling=$ac_cv_prog_cxx_cross | |
12573 | ||
421173e6 PE |
12574 | cat > conftest.$ac_ext <<EOF |
12575 | #line 12576 "configure" | |
38bd7296 BK |
12576 | #include "confdefs.h" |
12577 | #include <math.h> | |
12578 | int main() { | |
12579 | _ldexpf(0, 0); | |
12580 | ; return 0; } | |
12581 | EOF | |
421173e6 | 12582 | if { (eval echo configure:12583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12583 | rm -rf conftest* |
421173e6 | 12584 | glibcpp_cv_func__ldexpf_use=yes |
38bd7296 BK |
12585 | else |
12586 | echo "configure: failed program was:" >&5 | |
12587 | cat conftest.$ac_ext >&5 | |
12588 | rm -rf conftest* | |
421173e6 | 12589 | glibcpp_cv_func__ldexpf_use=no |
38bd7296 BK |
12590 | fi |
12591 | rm -f conftest* | |
421173e6 | 12592 | ac_ext=c |
38bd7296 BK |
12593 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12594 | ac_cpp='$CPP $CPPFLAGS' | |
12595 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12596 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12597 | cross_compiling=$ac_cv_prog_cc_cross | |
12598 | ||
421173e6 PE |
12599 | |
12600 | fi | |
12601 | ||
12602 | echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6 | |
12603 | if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then | |
38bd7296 BK |
12604 | for ac_func in _ldexpf |
12605 | do | |
12606 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 12607 | echo "configure:12608: checking for $ac_func" >&5 |
38bd7296 BK |
12608 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12610 | else | |
12611 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12612 | #line 12613 "configure" |
38bd7296 BK |
12613 | #include "confdefs.h" |
12614 | /* System header to define __stub macros and hopefully few prototypes, | |
12615 | which can conflict with char $ac_func(); below. */ | |
12616 | #include <assert.h> | |
12617 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12618 | /* We use char because int might match the return type of a gcc2 | |
12619 | builtin and then its argument prototype would still apply. */ | |
12620 | char $ac_func(); | |
12621 | ||
12622 | int main() { | |
12623 | ||
12624 | /* The GNU C library defines this for functions which it implements | |
12625 | to always fail with ENOSYS. Some functions are actually named | |
12626 | something starting with __ and the normal name is an alias. */ | |
12627 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12628 | choke me | |
12629 | #else | |
12630 | $ac_func(); | |
12631 | #endif | |
12632 | ||
12633 | ; return 0; } | |
12634 | EOF | |
421173e6 | 12635 | if { (eval echo configure:12636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12636 | rm -rf conftest* |
12637 | eval "ac_cv_func_$ac_func=yes" | |
12638 | else | |
12639 | echo "configure: failed program was:" >&5 | |
12640 | cat conftest.$ac_ext >&5 | |
12641 | rm -rf conftest* | |
12642 | eval "ac_cv_func_$ac_func=no" | |
12643 | fi | |
12644 | rm -f conftest* | |
12645 | fi | |
12646 | ||
12647 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12648 | echo "$ac_t""yes" 1>&6 | |
12649 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12650 | cat >> confdefs.h <<EOF | |
12651 | #define $ac_tr_func 1 | |
12652 | EOF | |
12653 | ||
12654 | else | |
12655 | echo "$ac_t""no" 1>&6 | |
12656 | fi | |
12657 | done | |
12658 | ||
12659 | fi | |
12660 | ||
12661 | ||
421173e6 PE |
12662 | echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6 |
12663 | echo "configure:12664: checking for _logf declaration" >&5 | |
12664 | if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then | |
12665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12666 | else | |
38bd7296 | 12667 | |
421173e6 PE |
12668 | |
12669 | ac_ext=C | |
38bd7296 BK |
12670 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12671 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12672 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12673 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12674 | cross_compiling=$ac_cv_prog_cxx_cross | |
12675 | ||
421173e6 PE |
12676 | cat > conftest.$ac_ext <<EOF |
12677 | #line 12678 "configure" | |
38bd7296 BK |
12678 | #include "confdefs.h" |
12679 | #include <math.h> | |
12680 | int main() { | |
12681 | _logf(0); | |
12682 | ; return 0; } | |
12683 | EOF | |
421173e6 | 12684 | if { (eval echo configure:12685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12685 | rm -rf conftest* |
421173e6 | 12686 | glibcpp_cv_func__logf_use=yes |
38bd7296 BK |
12687 | else |
12688 | echo "configure: failed program was:" >&5 | |
12689 | cat conftest.$ac_ext >&5 | |
12690 | rm -rf conftest* | |
421173e6 | 12691 | glibcpp_cv_func__logf_use=no |
38bd7296 BK |
12692 | fi |
12693 | rm -f conftest* | |
421173e6 | 12694 | ac_ext=c |
38bd7296 BK |
12695 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12696 | ac_cpp='$CPP $CPPFLAGS' | |
12697 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12698 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12699 | cross_compiling=$ac_cv_prog_cc_cross | |
12700 | ||
421173e6 PE |
12701 | |
12702 | fi | |
12703 | ||
12704 | echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6 | |
12705 | if test x$glibcpp_cv_func__logf_use = x"yes"; then | |
38bd7296 BK |
12706 | for ac_func in _logf |
12707 | do | |
12708 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 12709 | echo "configure:12710: checking for $ac_func" >&5 |
38bd7296 BK |
12710 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12712 | else | |
12713 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12714 | #line 12715 "configure" |
38bd7296 BK |
12715 | #include "confdefs.h" |
12716 | /* System header to define __stub macros and hopefully few prototypes, | |
12717 | which can conflict with char $ac_func(); below. */ | |
12718 | #include <assert.h> | |
12719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12720 | /* We use char because int might match the return type of a gcc2 | |
12721 | builtin and then its argument prototype would still apply. */ | |
12722 | char $ac_func(); | |
12723 | ||
12724 | int main() { | |
12725 | ||
12726 | /* The GNU C library defines this for functions which it implements | |
12727 | to always fail with ENOSYS. Some functions are actually named | |
12728 | something starting with __ and the normal name is an alias. */ | |
12729 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12730 | choke me | |
12731 | #else | |
12732 | $ac_func(); | |
12733 | #endif | |
12734 | ||
12735 | ; return 0; } | |
12736 | EOF | |
421173e6 | 12737 | if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12738 | rm -rf conftest* |
12739 | eval "ac_cv_func_$ac_func=yes" | |
12740 | else | |
12741 | echo "configure: failed program was:" >&5 | |
12742 | cat conftest.$ac_ext >&5 | |
12743 | rm -rf conftest* | |
12744 | eval "ac_cv_func_$ac_func=no" | |
12745 | fi | |
12746 | rm -f conftest* | |
12747 | fi | |
12748 | ||
12749 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12750 | echo "$ac_t""yes" 1>&6 | |
12751 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12752 | cat >> confdefs.h <<EOF | |
12753 | #define $ac_tr_func 1 | |
12754 | EOF | |
12755 | ||
12756 | else | |
12757 | echo "$ac_t""no" 1>&6 | |
12758 | fi | |
12759 | done | |
12760 | ||
12761 | fi | |
12762 | ||
12763 | ||
421173e6 PE |
12764 | echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6 |
12765 | echo "configure:12766: checking for _log10f declaration" >&5 | |
12766 | if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then | |
12767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12768 | else | |
38bd7296 | 12769 | |
421173e6 PE |
12770 | |
12771 | ac_ext=C | |
38bd7296 BK |
12772 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12773 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12774 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12775 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12776 | cross_compiling=$ac_cv_prog_cxx_cross | |
12777 | ||
421173e6 PE |
12778 | cat > conftest.$ac_ext <<EOF |
12779 | #line 12780 "configure" | |
38bd7296 BK |
12780 | #include "confdefs.h" |
12781 | #include <math.h> | |
12782 | int main() { | |
12783 | _log10f(0); | |
12784 | ; return 0; } | |
12785 | EOF | |
421173e6 | 12786 | if { (eval echo configure:12787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12787 | rm -rf conftest* |
421173e6 | 12788 | glibcpp_cv_func__log10f_use=yes |
38bd7296 BK |
12789 | else |
12790 | echo "configure: failed program was:" >&5 | |
12791 | cat conftest.$ac_ext >&5 | |
12792 | rm -rf conftest* | |
421173e6 | 12793 | glibcpp_cv_func__log10f_use=no |
38bd7296 BK |
12794 | fi |
12795 | rm -f conftest* | |
421173e6 | 12796 | ac_ext=c |
38bd7296 BK |
12797 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12798 | ac_cpp='$CPP $CPPFLAGS' | |
12799 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12800 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12801 | cross_compiling=$ac_cv_prog_cc_cross | |
12802 | ||
421173e6 PE |
12803 | |
12804 | fi | |
12805 | ||
12806 | echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6 | |
12807 | if test x$glibcpp_cv_func__log10f_use = x"yes"; then | |
38bd7296 BK |
12808 | for ac_func in _log10f |
12809 | do | |
12810 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 12811 | echo "configure:12812: checking for $ac_func" >&5 |
38bd7296 BK |
12812 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12814 | else | |
12815 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12816 | #line 12817 "configure" |
38bd7296 BK |
12817 | #include "confdefs.h" |
12818 | /* System header to define __stub macros and hopefully few prototypes, | |
12819 | which can conflict with char $ac_func(); below. */ | |
12820 | #include <assert.h> | |
12821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12822 | /* We use char because int might match the return type of a gcc2 | |
12823 | builtin and then its argument prototype would still apply. */ | |
12824 | char $ac_func(); | |
12825 | ||
12826 | int main() { | |
12827 | ||
12828 | /* The GNU C library defines this for functions which it implements | |
12829 | to always fail with ENOSYS. Some functions are actually named | |
12830 | something starting with __ and the normal name is an alias. */ | |
12831 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12832 | choke me | |
12833 | #else | |
12834 | $ac_func(); | |
12835 | #endif | |
12836 | ||
12837 | ; return 0; } | |
12838 | EOF | |
421173e6 | 12839 | if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12840 | rm -rf conftest* |
12841 | eval "ac_cv_func_$ac_func=yes" | |
12842 | else | |
12843 | echo "configure: failed program was:" >&5 | |
12844 | cat conftest.$ac_ext >&5 | |
12845 | rm -rf conftest* | |
12846 | eval "ac_cv_func_$ac_func=no" | |
12847 | fi | |
12848 | rm -f conftest* | |
12849 | fi | |
12850 | ||
12851 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12852 | echo "$ac_t""yes" 1>&6 | |
12853 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12854 | cat >> confdefs.h <<EOF | |
12855 | #define $ac_tr_func 1 | |
12856 | EOF | |
12857 | ||
12858 | else | |
12859 | echo "$ac_t""no" 1>&6 | |
12860 | fi | |
12861 | done | |
12862 | ||
12863 | fi | |
12864 | ||
12865 | ||
421173e6 PE |
12866 | echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6 |
12867 | echo "configure:12868: checking for _modff declaration" >&5 | |
12868 | if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then | |
12869 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12870 | else | |
38bd7296 | 12871 | |
421173e6 PE |
12872 | |
12873 | ac_ext=C | |
38bd7296 BK |
12874 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12875 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12876 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12877 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12878 | cross_compiling=$ac_cv_prog_cxx_cross | |
12879 | ||
421173e6 PE |
12880 | cat > conftest.$ac_ext <<EOF |
12881 | #line 12882 "configure" | |
38bd7296 BK |
12882 | #include "confdefs.h" |
12883 | #include <math.h> | |
12884 | int main() { | |
12885 | _modff(0, 0); | |
12886 | ; return 0; } | |
12887 | EOF | |
421173e6 | 12888 | if { (eval echo configure:12889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12889 | rm -rf conftest* |
421173e6 | 12890 | glibcpp_cv_func__modff_use=yes |
38bd7296 BK |
12891 | else |
12892 | echo "configure: failed program was:" >&5 | |
12893 | cat conftest.$ac_ext >&5 | |
12894 | rm -rf conftest* | |
421173e6 | 12895 | glibcpp_cv_func__modff_use=no |
38bd7296 BK |
12896 | fi |
12897 | rm -f conftest* | |
421173e6 | 12898 | ac_ext=c |
38bd7296 BK |
12899 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12900 | ac_cpp='$CPP $CPPFLAGS' | |
12901 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12902 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12903 | cross_compiling=$ac_cv_prog_cc_cross | |
12904 | ||
421173e6 PE |
12905 | |
12906 | fi | |
12907 | ||
12908 | echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6 | |
12909 | if test x$glibcpp_cv_func__modff_use = x"yes"; then | |
38bd7296 BK |
12910 | for ac_func in _modff |
12911 | do | |
12912 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 12913 | echo "configure:12914: checking for $ac_func" >&5 |
38bd7296 BK |
12914 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12916 | else | |
12917 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 12918 | #line 12919 "configure" |
38bd7296 BK |
12919 | #include "confdefs.h" |
12920 | /* System header to define __stub macros and hopefully few prototypes, | |
12921 | which can conflict with char $ac_func(); below. */ | |
12922 | #include <assert.h> | |
12923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12924 | /* We use char because int might match the return type of a gcc2 | |
12925 | builtin and then its argument prototype would still apply. */ | |
12926 | char $ac_func(); | |
12927 | ||
12928 | int main() { | |
12929 | ||
12930 | /* The GNU C library defines this for functions which it implements | |
12931 | to always fail with ENOSYS. Some functions are actually named | |
12932 | something starting with __ and the normal name is an alias. */ | |
12933 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12934 | choke me | |
12935 | #else | |
12936 | $ac_func(); | |
12937 | #endif | |
12938 | ||
12939 | ; return 0; } | |
12940 | EOF | |
421173e6 | 12941 | if { (eval echo configure:12942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
12942 | rm -rf conftest* |
12943 | eval "ac_cv_func_$ac_func=yes" | |
12944 | else | |
12945 | echo "configure: failed program was:" >&5 | |
12946 | cat conftest.$ac_ext >&5 | |
12947 | rm -rf conftest* | |
12948 | eval "ac_cv_func_$ac_func=no" | |
12949 | fi | |
12950 | rm -f conftest* | |
12951 | fi | |
12952 | ||
12953 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12954 | echo "$ac_t""yes" 1>&6 | |
12955 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12956 | cat >> confdefs.h <<EOF | |
12957 | #define $ac_tr_func 1 | |
12958 | EOF | |
12959 | ||
12960 | else | |
12961 | echo "$ac_t""no" 1>&6 | |
12962 | fi | |
12963 | done | |
12964 | ||
12965 | fi | |
12966 | ||
12967 | ||
421173e6 PE |
12968 | echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6 |
12969 | echo "configure:12970: checking for _powf declaration" >&5 | |
12970 | if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then | |
12971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12972 | else | |
38bd7296 | 12973 | |
421173e6 PE |
12974 | |
12975 | ac_ext=C | |
38bd7296 BK |
12976 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12977 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12978 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12979 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12980 | cross_compiling=$ac_cv_prog_cxx_cross | |
12981 | ||
421173e6 PE |
12982 | cat > conftest.$ac_ext <<EOF |
12983 | #line 12984 "configure" | |
38bd7296 BK |
12984 | #include "confdefs.h" |
12985 | #include <math.h> | |
12986 | int main() { | |
12987 | _powf(0, 0); | |
12988 | ; return 0; } | |
12989 | EOF | |
421173e6 | 12990 | if { (eval echo configure:12991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 12991 | rm -rf conftest* |
421173e6 | 12992 | glibcpp_cv_func__powf_use=yes |
38bd7296 BK |
12993 | else |
12994 | echo "configure: failed program was:" >&5 | |
12995 | cat conftest.$ac_ext >&5 | |
12996 | rm -rf conftest* | |
421173e6 | 12997 | glibcpp_cv_func__powf_use=no |
38bd7296 BK |
12998 | fi |
12999 | rm -f conftest* | |
421173e6 | 13000 | ac_ext=c |
38bd7296 BK |
13001 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13002 | ac_cpp='$CPP $CPPFLAGS' | |
13003 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13004 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13005 | cross_compiling=$ac_cv_prog_cc_cross | |
13006 | ||
421173e6 PE |
13007 | |
13008 | fi | |
13009 | ||
13010 | echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6 | |
13011 | if test x$glibcpp_cv_func__powf_use = x"yes"; then | |
38bd7296 BK |
13012 | for ac_func in _powf |
13013 | do | |
13014 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13015 | echo "configure:13016: checking for $ac_func" >&5 |
38bd7296 BK |
13016 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13018 | else | |
13019 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13020 | #line 13021 "configure" |
38bd7296 BK |
13021 | #include "confdefs.h" |
13022 | /* System header to define __stub macros and hopefully few prototypes, | |
13023 | which can conflict with char $ac_func(); below. */ | |
13024 | #include <assert.h> | |
13025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13026 | /* We use char because int might match the return type of a gcc2 | |
13027 | builtin and then its argument prototype would still apply. */ | |
13028 | char $ac_func(); | |
13029 | ||
13030 | int main() { | |
13031 | ||
13032 | /* The GNU C library defines this for functions which it implements | |
13033 | to always fail with ENOSYS. Some functions are actually named | |
13034 | something starting with __ and the normal name is an alias. */ | |
13035 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13036 | choke me | |
13037 | #else | |
13038 | $ac_func(); | |
13039 | #endif | |
13040 | ||
13041 | ; return 0; } | |
13042 | EOF | |
421173e6 | 13043 | if { (eval echo configure:13044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13044 | rm -rf conftest* |
13045 | eval "ac_cv_func_$ac_func=yes" | |
13046 | else | |
13047 | echo "configure: failed program was:" >&5 | |
13048 | cat conftest.$ac_ext >&5 | |
13049 | rm -rf conftest* | |
13050 | eval "ac_cv_func_$ac_func=no" | |
13051 | fi | |
13052 | rm -f conftest* | |
13053 | fi | |
13054 | ||
13055 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13056 | echo "$ac_t""yes" 1>&6 | |
13057 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13058 | cat >> confdefs.h <<EOF | |
13059 | #define $ac_tr_func 1 | |
13060 | EOF | |
13061 | ||
13062 | else | |
13063 | echo "$ac_t""no" 1>&6 | |
13064 | fi | |
13065 | done | |
13066 | ||
13067 | fi | |
13068 | ||
13069 | ||
421173e6 PE |
13070 | echo $ac_n "checking for _sinf declaration""... $ac_c" 1>&6 |
13071 | echo "configure:13072: checking for _sinf declaration" >&5 | |
13072 | if eval "test \"`echo '$''{'glibcpp_cv_func__sinf_use'+set}'`\" = set"; then | |
13073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13074 | else | |
38bd7296 | 13075 | |
421173e6 PE |
13076 | |
13077 | ac_ext=C | |
38bd7296 BK |
13078 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13079 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13080 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13081 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13082 | cross_compiling=$ac_cv_prog_cxx_cross | |
13083 | ||
421173e6 PE |
13084 | cat > conftest.$ac_ext <<EOF |
13085 | #line 13086 "configure" | |
38bd7296 BK |
13086 | #include "confdefs.h" |
13087 | #include <math.h> | |
13088 | int main() { | |
13089 | _sinf(0); | |
13090 | ; return 0; } | |
13091 | EOF | |
421173e6 | 13092 | if { (eval echo configure:13093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 13093 | rm -rf conftest* |
421173e6 | 13094 | glibcpp_cv_func__sinf_use=yes |
38bd7296 BK |
13095 | else |
13096 | echo "configure: failed program was:" >&5 | |
13097 | cat conftest.$ac_ext >&5 | |
13098 | rm -rf conftest* | |
421173e6 | 13099 | glibcpp_cv_func__sinf_use=no |
38bd7296 BK |
13100 | fi |
13101 | rm -f conftest* | |
421173e6 | 13102 | ac_ext=c |
38bd7296 BK |
13103 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13104 | ac_cpp='$CPP $CPPFLAGS' | |
13105 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13106 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13107 | cross_compiling=$ac_cv_prog_cc_cross | |
13108 | ||
421173e6 PE |
13109 | |
13110 | fi | |
13111 | ||
13112 | echo "$ac_t""$glibcpp_cv_func__sinf_use" 1>&6 | |
13113 | if test x$glibcpp_cv_func__sinf_use = x"yes"; then | |
38bd7296 BK |
13114 | for ac_func in _sinf |
13115 | do | |
13116 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13117 | echo "configure:13118: checking for $ac_func" >&5 |
38bd7296 BK |
13118 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13120 | else | |
13121 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13122 | #line 13123 "configure" |
38bd7296 BK |
13123 | #include "confdefs.h" |
13124 | /* System header to define __stub macros and hopefully few prototypes, | |
13125 | which can conflict with char $ac_func(); below. */ | |
13126 | #include <assert.h> | |
13127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13128 | /* We use char because int might match the return type of a gcc2 | |
13129 | builtin and then its argument prototype would still apply. */ | |
13130 | char $ac_func(); | |
13131 | ||
13132 | int main() { | |
13133 | ||
13134 | /* The GNU C library defines this for functions which it implements | |
13135 | to always fail with ENOSYS. Some functions are actually named | |
13136 | something starting with __ and the normal name is an alias. */ | |
13137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13138 | choke me | |
13139 | #else | |
13140 | $ac_func(); | |
13141 | #endif | |
13142 | ||
13143 | ; return 0; } | |
13144 | EOF | |
421173e6 | 13145 | if { (eval echo configure:13146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13146 | rm -rf conftest* |
13147 | eval "ac_cv_func_$ac_func=yes" | |
13148 | else | |
13149 | echo "configure: failed program was:" >&5 | |
13150 | cat conftest.$ac_ext >&5 | |
13151 | rm -rf conftest* | |
13152 | eval "ac_cv_func_$ac_func=no" | |
13153 | fi | |
13154 | rm -f conftest* | |
13155 | fi | |
13156 | ||
13157 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13158 | echo "$ac_t""yes" 1>&6 | |
13159 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13160 | cat >> confdefs.h <<EOF | |
13161 | #define $ac_tr_func 1 | |
13162 | EOF | |
13163 | ||
13164 | else | |
13165 | echo "$ac_t""no" 1>&6 | |
13166 | fi | |
13167 | done | |
13168 | ||
13169 | fi | |
13170 | ||
13171 | ||
421173e6 PE |
13172 | echo $ac_n "checking for _sinhf declaration""... $ac_c" 1>&6 |
13173 | echo "configure:13174: checking for _sinhf declaration" >&5 | |
13174 | if eval "test \"`echo '$''{'glibcpp_cv_func__sinhf_use'+set}'`\" = set"; then | |
13175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13176 | else | |
38bd7296 | 13177 | |
421173e6 PE |
13178 | |
13179 | ac_ext=C | |
38bd7296 BK |
13180 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13181 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13182 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13183 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13184 | cross_compiling=$ac_cv_prog_cxx_cross | |
13185 | ||
421173e6 PE |
13186 | cat > conftest.$ac_ext <<EOF |
13187 | #line 13188 "configure" | |
38bd7296 BK |
13188 | #include "confdefs.h" |
13189 | #include <math.h> | |
13190 | int main() { | |
13191 | _sinhf(0); | |
13192 | ; return 0; } | |
13193 | EOF | |
421173e6 | 13194 | if { (eval echo configure:13195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 13195 | rm -rf conftest* |
421173e6 | 13196 | glibcpp_cv_func__sinhf_use=yes |
38bd7296 BK |
13197 | else |
13198 | echo "configure: failed program was:" >&5 | |
13199 | cat conftest.$ac_ext >&5 | |
13200 | rm -rf conftest* | |
421173e6 | 13201 | glibcpp_cv_func__sinhf_use=no |
38bd7296 BK |
13202 | fi |
13203 | rm -f conftest* | |
421173e6 | 13204 | ac_ext=c |
38bd7296 BK |
13205 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13206 | ac_cpp='$CPP $CPPFLAGS' | |
13207 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13208 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13209 | cross_compiling=$ac_cv_prog_cc_cross | |
13210 | ||
421173e6 PE |
13211 | |
13212 | fi | |
13213 | ||
13214 | echo "$ac_t""$glibcpp_cv_func__sinhf_use" 1>&6 | |
13215 | if test x$glibcpp_cv_func__sinhf_use = x"yes"; then | |
38bd7296 BK |
13216 | for ac_func in _sinhf |
13217 | do | |
13218 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13219 | echo "configure:13220: checking for $ac_func" >&5 |
38bd7296 BK |
13220 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13222 | else | |
13223 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13224 | #line 13225 "configure" |
38bd7296 BK |
13225 | #include "confdefs.h" |
13226 | /* System header to define __stub macros and hopefully few prototypes, | |
13227 | which can conflict with char $ac_func(); below. */ | |
13228 | #include <assert.h> | |
13229 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13230 | /* We use char because int might match the return type of a gcc2 | |
13231 | builtin and then its argument prototype would still apply. */ | |
13232 | char $ac_func(); | |
13233 | ||
13234 | int main() { | |
13235 | ||
13236 | /* The GNU C library defines this for functions which it implements | |
13237 | to always fail with ENOSYS. Some functions are actually named | |
13238 | something starting with __ and the normal name is an alias. */ | |
13239 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13240 | choke me | |
13241 | #else | |
13242 | $ac_func(); | |
13243 | #endif | |
13244 | ||
13245 | ; return 0; } | |
13246 | EOF | |
421173e6 | 13247 | if { (eval echo configure:13248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13248 | rm -rf conftest* |
13249 | eval "ac_cv_func_$ac_func=yes" | |
13250 | else | |
13251 | echo "configure: failed program was:" >&5 | |
13252 | cat conftest.$ac_ext >&5 | |
13253 | rm -rf conftest* | |
13254 | eval "ac_cv_func_$ac_func=no" | |
13255 | fi | |
13256 | rm -f conftest* | |
13257 | fi | |
13258 | ||
13259 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13260 | echo "$ac_t""yes" 1>&6 | |
13261 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13262 | cat >> confdefs.h <<EOF | |
13263 | #define $ac_tr_func 1 | |
13264 | EOF | |
13265 | ||
13266 | else | |
13267 | echo "$ac_t""no" 1>&6 | |
13268 | fi | |
13269 | done | |
13270 | ||
13271 | fi | |
13272 | ||
13273 | ||
421173e6 PE |
13274 | echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6 |
13275 | echo "configure:13276: checking for _sqrtf declaration" >&5 | |
13276 | if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then | |
13277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13278 | else | |
38bd7296 | 13279 | |
421173e6 PE |
13280 | |
13281 | ac_ext=C | |
38bd7296 BK |
13282 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13283 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13284 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13285 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13286 | cross_compiling=$ac_cv_prog_cxx_cross | |
13287 | ||
421173e6 PE |
13288 | cat > conftest.$ac_ext <<EOF |
13289 | #line 13290 "configure" | |
38bd7296 BK |
13290 | #include "confdefs.h" |
13291 | #include <math.h> | |
13292 | int main() { | |
13293 | _sqrtf(0); | |
13294 | ; return 0; } | |
13295 | EOF | |
421173e6 | 13296 | if { (eval echo configure:13297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 13297 | rm -rf conftest* |
421173e6 | 13298 | glibcpp_cv_func__sqrtf_use=yes |
38bd7296 BK |
13299 | else |
13300 | echo "configure: failed program was:" >&5 | |
13301 | cat conftest.$ac_ext >&5 | |
13302 | rm -rf conftest* | |
421173e6 | 13303 | glibcpp_cv_func__sqrtf_use=no |
38bd7296 BK |
13304 | fi |
13305 | rm -f conftest* | |
421173e6 | 13306 | ac_ext=c |
38bd7296 BK |
13307 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13308 | ac_cpp='$CPP $CPPFLAGS' | |
13309 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13310 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13311 | cross_compiling=$ac_cv_prog_cc_cross | |
13312 | ||
421173e6 PE |
13313 | |
13314 | fi | |
13315 | ||
13316 | echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6 | |
13317 | if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then | |
38bd7296 BK |
13318 | for ac_func in _sqrtf |
13319 | do | |
13320 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13321 | echo "configure:13322: checking for $ac_func" >&5 |
38bd7296 BK |
13322 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13324 | else | |
13325 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13326 | #line 13327 "configure" |
38bd7296 BK |
13327 | #include "confdefs.h" |
13328 | /* System header to define __stub macros and hopefully few prototypes, | |
13329 | which can conflict with char $ac_func(); below. */ | |
13330 | #include <assert.h> | |
13331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13332 | /* We use char because int might match the return type of a gcc2 | |
13333 | builtin and then its argument prototype would still apply. */ | |
13334 | char $ac_func(); | |
13335 | ||
13336 | int main() { | |
13337 | ||
13338 | /* The GNU C library defines this for functions which it implements | |
13339 | to always fail with ENOSYS. Some functions are actually named | |
13340 | something starting with __ and the normal name is an alias. */ | |
13341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13342 | choke me | |
13343 | #else | |
13344 | $ac_func(); | |
13345 | #endif | |
13346 | ||
13347 | ; return 0; } | |
13348 | EOF | |
421173e6 | 13349 | if { (eval echo configure:13350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13350 | rm -rf conftest* |
13351 | eval "ac_cv_func_$ac_func=yes" | |
13352 | else | |
13353 | echo "configure: failed program was:" >&5 | |
13354 | cat conftest.$ac_ext >&5 | |
13355 | rm -rf conftest* | |
13356 | eval "ac_cv_func_$ac_func=no" | |
13357 | fi | |
13358 | rm -f conftest* | |
13359 | fi | |
13360 | ||
13361 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13362 | echo "$ac_t""yes" 1>&6 | |
13363 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13364 | cat >> confdefs.h <<EOF | |
13365 | #define $ac_tr_func 1 | |
13366 | EOF | |
13367 | ||
13368 | else | |
13369 | echo "$ac_t""no" 1>&6 | |
13370 | fi | |
13371 | done | |
13372 | ||
13373 | fi | |
13374 | ||
13375 | ||
421173e6 PE |
13376 | echo $ac_n "checking for _tanf declaration""... $ac_c" 1>&6 |
13377 | echo "configure:13378: checking for _tanf declaration" >&5 | |
13378 | if eval "test \"`echo '$''{'glibcpp_cv_func__tanf_use'+set}'`\" = set"; then | |
13379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13380 | else | |
38bd7296 | 13381 | |
421173e6 PE |
13382 | |
13383 | ac_ext=C | |
38bd7296 BK |
13384 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13385 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13386 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13387 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13388 | cross_compiling=$ac_cv_prog_cxx_cross | |
13389 | ||
421173e6 PE |
13390 | cat > conftest.$ac_ext <<EOF |
13391 | #line 13392 "configure" | |
38bd7296 BK |
13392 | #include "confdefs.h" |
13393 | #include <math.h> | |
13394 | int main() { | |
13395 | _tanf(0); | |
13396 | ; return 0; } | |
13397 | EOF | |
421173e6 | 13398 | if { (eval echo configure:13399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 13399 | rm -rf conftest* |
421173e6 | 13400 | glibcpp_cv_func__tanf_use=yes |
38bd7296 BK |
13401 | else |
13402 | echo "configure: failed program was:" >&5 | |
13403 | cat conftest.$ac_ext >&5 | |
13404 | rm -rf conftest* | |
421173e6 | 13405 | glibcpp_cv_func__tanf_use=no |
38bd7296 BK |
13406 | fi |
13407 | rm -f conftest* | |
421173e6 | 13408 | ac_ext=c |
38bd7296 BK |
13409 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13410 | ac_cpp='$CPP $CPPFLAGS' | |
13411 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13412 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13413 | cross_compiling=$ac_cv_prog_cc_cross | |
13414 | ||
421173e6 PE |
13415 | |
13416 | fi | |
13417 | ||
13418 | echo "$ac_t""$glibcpp_cv_func__tanf_use" 1>&6 | |
13419 | if test x$glibcpp_cv_func__tanf_use = x"yes"; then | |
38bd7296 BK |
13420 | for ac_func in _tanf |
13421 | do | |
13422 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13423 | echo "configure:13424: checking for $ac_func" >&5 |
38bd7296 BK |
13424 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13426 | else | |
13427 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13428 | #line 13429 "configure" |
38bd7296 BK |
13429 | #include "confdefs.h" |
13430 | /* System header to define __stub macros and hopefully few prototypes, | |
13431 | which can conflict with char $ac_func(); below. */ | |
13432 | #include <assert.h> | |
13433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13434 | /* We use char because int might match the return type of a gcc2 | |
13435 | builtin and then its argument prototype would still apply. */ | |
13436 | char $ac_func(); | |
13437 | ||
13438 | int main() { | |
13439 | ||
13440 | /* The GNU C library defines this for functions which it implements | |
13441 | to always fail with ENOSYS. Some functions are actually named | |
13442 | something starting with __ and the normal name is an alias. */ | |
13443 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13444 | choke me | |
13445 | #else | |
13446 | $ac_func(); | |
13447 | #endif | |
13448 | ||
13449 | ; return 0; } | |
13450 | EOF | |
421173e6 | 13451 | if { (eval echo configure:13452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13452 | rm -rf conftest* |
13453 | eval "ac_cv_func_$ac_func=yes" | |
13454 | else | |
13455 | echo "configure: failed program was:" >&5 | |
13456 | cat conftest.$ac_ext >&5 | |
13457 | rm -rf conftest* | |
13458 | eval "ac_cv_func_$ac_func=no" | |
13459 | fi | |
13460 | rm -f conftest* | |
13461 | fi | |
13462 | ||
13463 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13464 | echo "$ac_t""yes" 1>&6 | |
13465 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13466 | cat >> confdefs.h <<EOF | |
13467 | #define $ac_tr_func 1 | |
13468 | EOF | |
13469 | ||
13470 | else | |
13471 | echo "$ac_t""no" 1>&6 | |
13472 | fi | |
13473 | done | |
13474 | ||
13475 | fi | |
13476 | ||
13477 | ||
421173e6 PE |
13478 | echo $ac_n "checking for _tanhf declaration""... $ac_c" 1>&6 |
13479 | echo "configure:13480: checking for _tanhf declaration" >&5 | |
13480 | if eval "test \"`echo '$''{'glibcpp_cv_func__tanhf_use'+set}'`\" = set"; then | |
13481 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13482 | else | |
38bd7296 | 13483 | |
421173e6 PE |
13484 | |
13485 | ac_ext=C | |
38bd7296 BK |
13486 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13487 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13488 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13489 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13490 | cross_compiling=$ac_cv_prog_cxx_cross | |
13491 | ||
421173e6 PE |
13492 | cat > conftest.$ac_ext <<EOF |
13493 | #line 13494 "configure" | |
38bd7296 BK |
13494 | #include "confdefs.h" |
13495 | #include <math.h> | |
13496 | int main() { | |
13497 | _tanhf(0); | |
13498 | ; return 0; } | |
13499 | EOF | |
421173e6 | 13500 | if { (eval echo configure:13501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 13501 | rm -rf conftest* |
421173e6 | 13502 | glibcpp_cv_func__tanhf_use=yes |
38bd7296 BK |
13503 | else |
13504 | echo "configure: failed program was:" >&5 | |
13505 | cat conftest.$ac_ext >&5 | |
13506 | rm -rf conftest* | |
421173e6 | 13507 | glibcpp_cv_func__tanhf_use=no |
38bd7296 BK |
13508 | fi |
13509 | rm -f conftest* | |
421173e6 | 13510 | ac_ext=c |
38bd7296 BK |
13511 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13512 | ac_cpp='$CPP $CPPFLAGS' | |
13513 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13514 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13515 | cross_compiling=$ac_cv_prog_cc_cross | |
13516 | ||
421173e6 PE |
13517 | |
13518 | fi | |
13519 | ||
13520 | echo "$ac_t""$glibcpp_cv_func__tanhf_use" 1>&6 | |
13521 | if test x$glibcpp_cv_func__tanhf_use = x"yes"; then | |
38bd7296 BK |
13522 | for ac_func in _tanhf |
13523 | do | |
13524 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13525 | echo "configure:13526: checking for $ac_func" >&5 |
38bd7296 BK |
13526 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13528 | else | |
13529 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13530 | #line 13531 "configure" |
38bd7296 BK |
13531 | #include "confdefs.h" |
13532 | /* System header to define __stub macros and hopefully few prototypes, | |
13533 | which can conflict with char $ac_func(); below. */ | |
13534 | #include <assert.h> | |
13535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13536 | /* We use char because int might match the return type of a gcc2 | |
13537 | builtin and then its argument prototype would still apply. */ | |
13538 | char $ac_func(); | |
13539 | ||
13540 | int main() { | |
13541 | ||
13542 | /* The GNU C library defines this for functions which it implements | |
13543 | to always fail with ENOSYS. Some functions are actually named | |
13544 | something starting with __ and the normal name is an alias. */ | |
13545 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13546 | choke me | |
13547 | #else | |
13548 | $ac_func(); | |
13549 | #endif | |
13550 | ||
13551 | ; return 0; } | |
13552 | EOF | |
421173e6 | 13553 | if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13554 | rm -rf conftest* |
13555 | eval "ac_cv_func_$ac_func=yes" | |
13556 | else | |
13557 | echo "configure: failed program was:" >&5 | |
13558 | cat conftest.$ac_ext >&5 | |
13559 | rm -rf conftest* | |
13560 | eval "ac_cv_func_$ac_func=no" | |
13561 | fi | |
13562 | rm -f conftest* | |
13563 | fi | |
13564 | ||
13565 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13566 | echo "$ac_t""yes" 1>&6 | |
13567 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13568 | cat >> confdefs.h <<EOF | |
13569 | #define $ac_tr_func 1 | |
13570 | EOF | |
13571 | ||
13572 | else | |
13573 | echo "$ac_t""no" 1>&6 | |
13574 | fi | |
13575 | done | |
13576 | ||
13577 | fi | |
13578 | ||
13579 | ||
421173e6 PE |
13580 | echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6 |
13581 | echo "configure:13582: checking for _sincosf declaration" >&5 | |
13582 | if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then | |
13583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13584 | else | |
38bd7296 | 13585 | |
421173e6 PE |
13586 | |
13587 | ac_ext=C | |
38bd7296 BK |
13588 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13589 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13590 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13591 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13592 | cross_compiling=$ac_cv_prog_cxx_cross | |
13593 | ||
421173e6 PE |
13594 | cat > conftest.$ac_ext <<EOF |
13595 | #line 13596 "configure" | |
38bd7296 BK |
13596 | #include "confdefs.h" |
13597 | #include <math.h> | |
13598 | int main() { | |
13599 | _sincosf(0, 0, 0); | |
13600 | ; return 0; } | |
13601 | EOF | |
421173e6 | 13602 | if { (eval echo configure:13603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 13603 | rm -rf conftest* |
421173e6 | 13604 | glibcpp_cv_func__sincosf_use=yes |
38bd7296 BK |
13605 | else |
13606 | echo "configure: failed program was:" >&5 | |
13607 | cat conftest.$ac_ext >&5 | |
13608 | rm -rf conftest* | |
421173e6 | 13609 | glibcpp_cv_func__sincosf_use=no |
38bd7296 BK |
13610 | fi |
13611 | rm -f conftest* | |
421173e6 | 13612 | ac_ext=c |
38bd7296 BK |
13613 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13614 | ac_cpp='$CPP $CPPFLAGS' | |
13615 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13616 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13617 | cross_compiling=$ac_cv_prog_cc_cross | |
13618 | ||
421173e6 PE |
13619 | |
13620 | fi | |
13621 | ||
13622 | echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6 | |
13623 | if test x$glibcpp_cv_func__sincosf_use = x"yes"; then | |
38bd7296 BK |
13624 | for ac_func in _sincosf |
13625 | do | |
13626 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13627 | echo "configure:13628: checking for $ac_func" >&5 |
38bd7296 BK |
13628 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13630 | else | |
13631 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13632 | #line 13633 "configure" |
38bd7296 BK |
13633 | #include "confdefs.h" |
13634 | /* System header to define __stub macros and hopefully few prototypes, | |
13635 | which can conflict with char $ac_func(); below. */ | |
13636 | #include <assert.h> | |
13637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13638 | /* We use char because int might match the return type of a gcc2 | |
13639 | builtin and then its argument prototype would still apply. */ | |
13640 | char $ac_func(); | |
13641 | ||
13642 | int main() { | |
13643 | ||
13644 | /* The GNU C library defines this for functions which it implements | |
13645 | to always fail with ENOSYS. Some functions are actually named | |
13646 | something starting with __ and the normal name is an alias. */ | |
13647 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13648 | choke me | |
13649 | #else | |
13650 | $ac_func(); | |
13651 | #endif | |
13652 | ||
13653 | ; return 0; } | |
13654 | EOF | |
421173e6 | 13655 | if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13656 | rm -rf conftest* |
13657 | eval "ac_cv_func_$ac_func=yes" | |
13658 | else | |
13659 | echo "configure: failed program was:" >&5 | |
13660 | cat conftest.$ac_ext >&5 | |
13661 | rm -rf conftest* | |
13662 | eval "ac_cv_func_$ac_func=no" | |
13663 | fi | |
13664 | rm -f conftest* | |
13665 | fi | |
13666 | ||
13667 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13668 | echo "$ac_t""yes" 1>&6 | |
13669 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13670 | cat >> confdefs.h <<EOF | |
13671 | #define $ac_tr_func 1 | |
13672 | EOF | |
13673 | ||
13674 | else | |
13675 | echo "$ac_t""no" 1>&6 | |
13676 | fi | |
13677 | done | |
13678 | ||
13679 | fi | |
13680 | ||
13681 | ||
421173e6 PE |
13682 | echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6 |
13683 | echo "configure:13684: checking for _finitef declaration" >&5 | |
13684 | if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then | |
13685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13686 | else | |
38bd7296 | 13687 | |
421173e6 PE |
13688 | |
13689 | ac_ext=C | |
38bd7296 BK |
13690 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13691 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13692 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13693 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13694 | cross_compiling=$ac_cv_prog_cxx_cross | |
13695 | ||
421173e6 PE |
13696 | cat > conftest.$ac_ext <<EOF |
13697 | #line 13698 "configure" | |
38bd7296 BK |
13698 | #include "confdefs.h" |
13699 | #include <math.h> | |
13700 | int main() { | |
13701 | _finitef(0); | |
13702 | ; return 0; } | |
13703 | EOF | |
421173e6 | 13704 | if { (eval echo configure:13705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 13705 | rm -rf conftest* |
421173e6 | 13706 | glibcpp_cv_func__finitef_use=yes |
38bd7296 BK |
13707 | else |
13708 | echo "configure: failed program was:" >&5 | |
13709 | cat conftest.$ac_ext >&5 | |
13710 | rm -rf conftest* | |
421173e6 | 13711 | glibcpp_cv_func__finitef_use=no |
38bd7296 BK |
13712 | fi |
13713 | rm -f conftest* | |
421173e6 | 13714 | ac_ext=c |
38bd7296 BK |
13715 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13716 | ac_cpp='$CPP $CPPFLAGS' | |
13717 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13718 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13719 | cross_compiling=$ac_cv_prog_cc_cross | |
13720 | ||
421173e6 PE |
13721 | |
13722 | fi | |
13723 | ||
13724 | echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6 | |
13725 | if test x$glibcpp_cv_func__finitef_use = x"yes"; then | |
38bd7296 BK |
13726 | for ac_func in _finitef |
13727 | do | |
13728 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13729 | echo "configure:13730: checking for $ac_func" >&5 |
38bd7296 BK |
13730 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13732 | else | |
13733 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13734 | #line 13735 "configure" |
38bd7296 BK |
13735 | #include "confdefs.h" |
13736 | /* System header to define __stub macros and hopefully few prototypes, | |
13737 | which can conflict with char $ac_func(); below. */ | |
13738 | #include <assert.h> | |
13739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13740 | /* We use char because int might match the return type of a gcc2 | |
13741 | builtin and then its argument prototype would still apply. */ | |
13742 | char $ac_func(); | |
13743 | ||
13744 | int main() { | |
13745 | ||
13746 | /* The GNU C library defines this for functions which it implements | |
13747 | to always fail with ENOSYS. Some functions are actually named | |
13748 | something starting with __ and the normal name is an alias. */ | |
13749 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13750 | choke me | |
13751 | #else | |
13752 | $ac_func(); | |
13753 | #endif | |
13754 | ||
13755 | ; return 0; } | |
13756 | EOF | |
421173e6 | 13757 | if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13758 | rm -rf conftest* |
13759 | eval "ac_cv_func_$ac_func=yes" | |
13760 | else | |
13761 | echo "configure: failed program was:" >&5 | |
13762 | cat conftest.$ac_ext >&5 | |
13763 | rm -rf conftest* | |
13764 | eval "ac_cv_func_$ac_func=no" | |
13765 | fi | |
13766 | rm -f conftest* | |
13767 | fi | |
13768 | ||
13769 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13770 | echo "$ac_t""yes" 1>&6 | |
13771 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13772 | cat >> confdefs.h <<EOF | |
13773 | #define $ac_tr_func 1 | |
13774 | EOF | |
13775 | ||
13776 | else | |
13777 | echo "$ac_t""no" 1>&6 | |
13778 | fi | |
13779 | done | |
13780 | ||
13781 | fi | |
13782 | ||
13783 | ||
13784 | ||
421173e6 PE |
13785 | echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6 |
13786 | echo "configure:13787: checking for _isnanl declaration" >&5 | |
13787 | if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then | |
13788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13789 | else | |
38bd7296 | 13790 | |
421173e6 PE |
13791 | |
13792 | ac_ext=C | |
38bd7296 BK |
13793 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13794 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13795 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13796 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13797 | cross_compiling=$ac_cv_prog_cxx_cross | |
13798 | ||
421173e6 PE |
13799 | cat > conftest.$ac_ext <<EOF |
13800 | #line 13801 "configure" | |
38bd7296 BK |
13801 | #include "confdefs.h" |
13802 | #include <math.h> | |
13803 | int main() { | |
13804 | _isnanl(0); | |
13805 | ; return 0; } | |
13806 | EOF | |
421173e6 | 13807 | if { (eval echo configure:13808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 13808 | rm -rf conftest* |
421173e6 | 13809 | glibcpp_cv_func__isnanl_use=yes |
38bd7296 BK |
13810 | else |
13811 | echo "configure: failed program was:" >&5 | |
13812 | cat conftest.$ac_ext >&5 | |
13813 | rm -rf conftest* | |
421173e6 | 13814 | glibcpp_cv_func__isnanl_use=no |
38bd7296 BK |
13815 | fi |
13816 | rm -f conftest* | |
421173e6 | 13817 | ac_ext=c |
38bd7296 BK |
13818 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13819 | ac_cpp='$CPP $CPPFLAGS' | |
13820 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13821 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13822 | cross_compiling=$ac_cv_prog_cc_cross | |
13823 | ||
421173e6 PE |
13824 | |
13825 | fi | |
13826 | ||
13827 | echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6 | |
13828 | if test x$glibcpp_cv_func__isnanl_use = x"yes"; then | |
38bd7296 BK |
13829 | for ac_func in _isnanl |
13830 | do | |
13831 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13832 | echo "configure:13833: checking for $ac_func" >&5 |
38bd7296 BK |
13833 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13834 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13835 | else | |
13836 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13837 | #line 13838 "configure" |
38bd7296 BK |
13838 | #include "confdefs.h" |
13839 | /* System header to define __stub macros and hopefully few prototypes, | |
13840 | which can conflict with char $ac_func(); below. */ | |
13841 | #include <assert.h> | |
13842 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13843 | /* We use char because int might match the return type of a gcc2 | |
13844 | builtin and then its argument prototype would still apply. */ | |
13845 | char $ac_func(); | |
13846 | ||
13847 | int main() { | |
13848 | ||
13849 | /* The GNU C library defines this for functions which it implements | |
13850 | to always fail with ENOSYS. Some functions are actually named | |
13851 | something starting with __ and the normal name is an alias. */ | |
13852 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13853 | choke me | |
13854 | #else | |
13855 | $ac_func(); | |
13856 | #endif | |
13857 | ||
13858 | ; return 0; } | |
13859 | EOF | |
421173e6 | 13860 | if { (eval echo configure:13861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13861 | rm -rf conftest* |
13862 | eval "ac_cv_func_$ac_func=yes" | |
13863 | else | |
13864 | echo "configure: failed program was:" >&5 | |
13865 | cat conftest.$ac_ext >&5 | |
13866 | rm -rf conftest* | |
13867 | eval "ac_cv_func_$ac_func=no" | |
13868 | fi | |
13869 | rm -f conftest* | |
13870 | fi | |
13871 | ||
13872 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13873 | echo "$ac_t""yes" 1>&6 | |
13874 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13875 | cat >> confdefs.h <<EOF | |
13876 | #define $ac_tr_func 1 | |
13877 | EOF | |
13878 | ||
13879 | else | |
13880 | echo "$ac_t""no" 1>&6 | |
13881 | fi | |
13882 | done | |
13883 | ||
13884 | fi | |
13885 | ||
13886 | ||
421173e6 PE |
13887 | echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6 |
13888 | echo "configure:13889: checking for _isinfl declaration" >&5 | |
13889 | if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then | |
13890 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13891 | else | |
38bd7296 | 13892 | |
421173e6 PE |
13893 | |
13894 | ac_ext=C | |
38bd7296 BK |
13895 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13896 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13897 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13898 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13899 | cross_compiling=$ac_cv_prog_cxx_cross | |
13900 | ||
421173e6 PE |
13901 | cat > conftest.$ac_ext <<EOF |
13902 | #line 13903 "configure" | |
38bd7296 BK |
13903 | #include "confdefs.h" |
13904 | #include <math.h> | |
13905 | int main() { | |
13906 | _isinfl(0); | |
13907 | ; return 0; } | |
13908 | EOF | |
421173e6 | 13909 | if { (eval echo configure:13910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 13910 | rm -rf conftest* |
421173e6 | 13911 | glibcpp_cv_func__isinfl_use=yes |
38bd7296 BK |
13912 | else |
13913 | echo "configure: failed program was:" >&5 | |
13914 | cat conftest.$ac_ext >&5 | |
13915 | rm -rf conftest* | |
421173e6 | 13916 | glibcpp_cv_func__isinfl_use=no |
38bd7296 BK |
13917 | fi |
13918 | rm -f conftest* | |
421173e6 | 13919 | ac_ext=c |
38bd7296 BK |
13920 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13921 | ac_cpp='$CPP $CPPFLAGS' | |
13922 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13923 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13924 | cross_compiling=$ac_cv_prog_cc_cross | |
13925 | ||
421173e6 PE |
13926 | |
13927 | fi | |
13928 | ||
13929 | echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6 | |
13930 | if test x$glibcpp_cv_func__isinfl_use = x"yes"; then | |
38bd7296 BK |
13931 | for ac_func in _isinfl |
13932 | do | |
13933 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 13934 | echo "configure:13935: checking for $ac_func" >&5 |
38bd7296 BK |
13935 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13937 | else | |
13938 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 13939 | #line 13940 "configure" |
38bd7296 BK |
13940 | #include "confdefs.h" |
13941 | /* System header to define __stub macros and hopefully few prototypes, | |
13942 | which can conflict with char $ac_func(); below. */ | |
13943 | #include <assert.h> | |
13944 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13945 | /* We use char because int might match the return type of a gcc2 | |
13946 | builtin and then its argument prototype would still apply. */ | |
13947 | char $ac_func(); | |
13948 | ||
13949 | int main() { | |
13950 | ||
13951 | /* The GNU C library defines this for functions which it implements | |
13952 | to always fail with ENOSYS. Some functions are actually named | |
13953 | something starting with __ and the normal name is an alias. */ | |
13954 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13955 | choke me | |
13956 | #else | |
13957 | $ac_func(); | |
13958 | #endif | |
13959 | ||
13960 | ; return 0; } | |
13961 | EOF | |
421173e6 | 13962 | if { (eval echo configure:13963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
13963 | rm -rf conftest* |
13964 | eval "ac_cv_func_$ac_func=yes" | |
13965 | else | |
13966 | echo "configure: failed program was:" >&5 | |
13967 | cat conftest.$ac_ext >&5 | |
13968 | rm -rf conftest* | |
13969 | eval "ac_cv_func_$ac_func=no" | |
13970 | fi | |
13971 | rm -f conftest* | |
13972 | fi | |
13973 | ||
13974 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13975 | echo "$ac_t""yes" 1>&6 | |
13976 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13977 | cat >> confdefs.h <<EOF | |
13978 | #define $ac_tr_func 1 | |
13979 | EOF | |
13980 | ||
13981 | else | |
13982 | echo "$ac_t""no" 1>&6 | |
13983 | fi | |
13984 | done | |
13985 | ||
13986 | fi | |
13987 | ||
13988 | ||
421173e6 PE |
13989 | echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6 |
13990 | echo "configure:13991: checking for _copysignl declaration" >&5 | |
13991 | if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then | |
13992 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13993 | else | |
38bd7296 | 13994 | |
421173e6 PE |
13995 | |
13996 | ac_ext=C | |
38bd7296 BK |
13997 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13998 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13999 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14000 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14001 | cross_compiling=$ac_cv_prog_cxx_cross | |
14002 | ||
421173e6 PE |
14003 | cat > conftest.$ac_ext <<EOF |
14004 | #line 14005 "configure" | |
38bd7296 BK |
14005 | #include "confdefs.h" |
14006 | #include <math.h> | |
14007 | int main() { | |
11fc1858 | 14008 | _copysignl(0, 0); |
38bd7296 BK |
14009 | ; return 0; } |
14010 | EOF | |
421173e6 | 14011 | if { (eval echo configure:14012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14012 | rm -rf conftest* |
421173e6 | 14013 | glibcpp_cv_func__copysignl_use=yes |
38bd7296 BK |
14014 | else |
14015 | echo "configure: failed program was:" >&5 | |
14016 | cat conftest.$ac_ext >&5 | |
14017 | rm -rf conftest* | |
421173e6 | 14018 | glibcpp_cv_func__copysignl_use=no |
38bd7296 BK |
14019 | fi |
14020 | rm -f conftest* | |
421173e6 | 14021 | ac_ext=c |
38bd7296 BK |
14022 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14023 | ac_cpp='$CPP $CPPFLAGS' | |
14024 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14025 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14026 | cross_compiling=$ac_cv_prog_cc_cross | |
14027 | ||
421173e6 PE |
14028 | |
14029 | fi | |
14030 | ||
14031 | echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6 | |
14032 | if test x$glibcpp_cv_func__copysignl_use = x"yes"; then | |
38bd7296 BK |
14033 | for ac_func in _copysignl |
14034 | do | |
14035 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14036 | echo "configure:14037: checking for $ac_func" >&5 |
38bd7296 BK |
14037 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14039 | else | |
14040 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14041 | #line 14042 "configure" |
38bd7296 BK |
14042 | #include "confdefs.h" |
14043 | /* System header to define __stub macros and hopefully few prototypes, | |
14044 | which can conflict with char $ac_func(); below. */ | |
14045 | #include <assert.h> | |
14046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14047 | /* We use char because int might match the return type of a gcc2 | |
14048 | builtin and then its argument prototype would still apply. */ | |
14049 | char $ac_func(); | |
14050 | ||
14051 | int main() { | |
14052 | ||
14053 | /* The GNU C library defines this for functions which it implements | |
14054 | to always fail with ENOSYS. Some functions are actually named | |
14055 | something starting with __ and the normal name is an alias. */ | |
14056 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14057 | choke me | |
14058 | #else | |
14059 | $ac_func(); | |
14060 | #endif | |
14061 | ||
14062 | ; return 0; } | |
14063 | EOF | |
421173e6 | 14064 | if { (eval echo configure:14065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14065 | rm -rf conftest* |
14066 | eval "ac_cv_func_$ac_func=yes" | |
14067 | else | |
14068 | echo "configure: failed program was:" >&5 | |
14069 | cat conftest.$ac_ext >&5 | |
14070 | rm -rf conftest* | |
14071 | eval "ac_cv_func_$ac_func=no" | |
14072 | fi | |
14073 | rm -f conftest* | |
14074 | fi | |
14075 | ||
14076 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14077 | echo "$ac_t""yes" 1>&6 | |
14078 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14079 | cat >> confdefs.h <<EOF | |
14080 | #define $ac_tr_func 1 | |
14081 | EOF | |
14082 | ||
14083 | else | |
14084 | echo "$ac_t""no" 1>&6 | |
14085 | fi | |
14086 | done | |
14087 | ||
14088 | fi | |
14089 | ||
14090 | ||
421173e6 PE |
14091 | echo $ac_n "checking for _acosl declaration""... $ac_c" 1>&6 |
14092 | echo "configure:14093: checking for _acosl declaration" >&5 | |
14093 | if eval "test \"`echo '$''{'glibcpp_cv_func__acosl_use'+set}'`\" = set"; then | |
14094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14095 | else | |
38bd7296 | 14096 | |
421173e6 PE |
14097 | |
14098 | ac_ext=C | |
38bd7296 BK |
14099 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14100 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14101 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14102 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14103 | cross_compiling=$ac_cv_prog_cxx_cross | |
14104 | ||
421173e6 PE |
14105 | cat > conftest.$ac_ext <<EOF |
14106 | #line 14107 "configure" | |
38bd7296 BK |
14107 | #include "confdefs.h" |
14108 | #include <math.h> | |
14109 | int main() { | |
14110 | _acosl(0); | |
14111 | ; return 0; } | |
14112 | EOF | |
421173e6 | 14113 | if { (eval echo configure:14114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14114 | rm -rf conftest* |
421173e6 | 14115 | glibcpp_cv_func__acosl_use=yes |
38bd7296 BK |
14116 | else |
14117 | echo "configure: failed program was:" >&5 | |
14118 | cat conftest.$ac_ext >&5 | |
14119 | rm -rf conftest* | |
421173e6 | 14120 | glibcpp_cv_func__acosl_use=no |
38bd7296 BK |
14121 | fi |
14122 | rm -f conftest* | |
421173e6 | 14123 | ac_ext=c |
38bd7296 BK |
14124 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14125 | ac_cpp='$CPP $CPPFLAGS' | |
14126 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14127 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14128 | cross_compiling=$ac_cv_prog_cc_cross | |
14129 | ||
421173e6 PE |
14130 | |
14131 | fi | |
14132 | ||
14133 | echo "$ac_t""$glibcpp_cv_func__acosl_use" 1>&6 | |
14134 | if test x$glibcpp_cv_func__acosl_use = x"yes"; then | |
38bd7296 BK |
14135 | for ac_func in _acosl |
14136 | do | |
14137 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14138 | echo "configure:14139: checking for $ac_func" >&5 |
38bd7296 BK |
14139 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14141 | else | |
14142 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14143 | #line 14144 "configure" |
38bd7296 BK |
14144 | #include "confdefs.h" |
14145 | /* System header to define __stub macros and hopefully few prototypes, | |
14146 | which can conflict with char $ac_func(); below. */ | |
14147 | #include <assert.h> | |
14148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14149 | /* We use char because int might match the return type of a gcc2 | |
14150 | builtin and then its argument prototype would still apply. */ | |
14151 | char $ac_func(); | |
14152 | ||
14153 | int main() { | |
14154 | ||
14155 | /* The GNU C library defines this for functions which it implements | |
14156 | to always fail with ENOSYS. Some functions are actually named | |
14157 | something starting with __ and the normal name is an alias. */ | |
14158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14159 | choke me | |
14160 | #else | |
14161 | $ac_func(); | |
14162 | #endif | |
14163 | ||
14164 | ; return 0; } | |
14165 | EOF | |
421173e6 | 14166 | if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14167 | rm -rf conftest* |
14168 | eval "ac_cv_func_$ac_func=yes" | |
14169 | else | |
14170 | echo "configure: failed program was:" >&5 | |
14171 | cat conftest.$ac_ext >&5 | |
14172 | rm -rf conftest* | |
14173 | eval "ac_cv_func_$ac_func=no" | |
14174 | fi | |
14175 | rm -f conftest* | |
14176 | fi | |
14177 | ||
14178 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14179 | echo "$ac_t""yes" 1>&6 | |
14180 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14181 | cat >> confdefs.h <<EOF | |
14182 | #define $ac_tr_func 1 | |
14183 | EOF | |
14184 | ||
14185 | else | |
14186 | echo "$ac_t""no" 1>&6 | |
14187 | fi | |
14188 | done | |
14189 | ||
14190 | fi | |
14191 | ||
14192 | ||
421173e6 PE |
14193 | echo $ac_n "checking for _asinl declaration""... $ac_c" 1>&6 |
14194 | echo "configure:14195: checking for _asinl declaration" >&5 | |
14195 | if eval "test \"`echo '$''{'glibcpp_cv_func__asinl_use'+set}'`\" = set"; then | |
14196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14197 | else | |
38bd7296 | 14198 | |
421173e6 PE |
14199 | |
14200 | ac_ext=C | |
38bd7296 BK |
14201 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14202 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14203 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14204 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14205 | cross_compiling=$ac_cv_prog_cxx_cross | |
14206 | ||
421173e6 PE |
14207 | cat > conftest.$ac_ext <<EOF |
14208 | #line 14209 "configure" | |
38bd7296 BK |
14209 | #include "confdefs.h" |
14210 | #include <math.h> | |
14211 | int main() { | |
14212 | _asinl(0); | |
14213 | ; return 0; } | |
14214 | EOF | |
421173e6 | 14215 | if { (eval echo configure:14216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14216 | rm -rf conftest* |
421173e6 | 14217 | glibcpp_cv_func__asinl_use=yes |
38bd7296 BK |
14218 | else |
14219 | echo "configure: failed program was:" >&5 | |
14220 | cat conftest.$ac_ext >&5 | |
14221 | rm -rf conftest* | |
421173e6 | 14222 | glibcpp_cv_func__asinl_use=no |
38bd7296 BK |
14223 | fi |
14224 | rm -f conftest* | |
421173e6 | 14225 | ac_ext=c |
38bd7296 BK |
14226 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14227 | ac_cpp='$CPP $CPPFLAGS' | |
14228 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14229 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14230 | cross_compiling=$ac_cv_prog_cc_cross | |
14231 | ||
421173e6 PE |
14232 | |
14233 | fi | |
14234 | ||
14235 | echo "$ac_t""$glibcpp_cv_func__asinl_use" 1>&6 | |
14236 | if test x$glibcpp_cv_func__asinl_use = x"yes"; then | |
38bd7296 BK |
14237 | for ac_func in _asinl |
14238 | do | |
14239 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14240 | echo "configure:14241: checking for $ac_func" >&5 |
38bd7296 BK |
14241 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14243 | else | |
14244 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14245 | #line 14246 "configure" |
38bd7296 BK |
14246 | #include "confdefs.h" |
14247 | /* System header to define __stub macros and hopefully few prototypes, | |
14248 | which can conflict with char $ac_func(); below. */ | |
14249 | #include <assert.h> | |
14250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14251 | /* We use char because int might match the return type of a gcc2 | |
14252 | builtin and then its argument prototype would still apply. */ | |
14253 | char $ac_func(); | |
14254 | ||
14255 | int main() { | |
14256 | ||
14257 | /* The GNU C library defines this for functions which it implements | |
14258 | to always fail with ENOSYS. Some functions are actually named | |
14259 | something starting with __ and the normal name is an alias. */ | |
14260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14261 | choke me | |
14262 | #else | |
14263 | $ac_func(); | |
14264 | #endif | |
14265 | ||
14266 | ; return 0; } | |
14267 | EOF | |
421173e6 | 14268 | if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14269 | rm -rf conftest* |
14270 | eval "ac_cv_func_$ac_func=yes" | |
14271 | else | |
14272 | echo "configure: failed program was:" >&5 | |
14273 | cat conftest.$ac_ext >&5 | |
14274 | rm -rf conftest* | |
14275 | eval "ac_cv_func_$ac_func=no" | |
14276 | fi | |
14277 | rm -f conftest* | |
14278 | fi | |
14279 | ||
14280 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14281 | echo "$ac_t""yes" 1>&6 | |
14282 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14283 | cat >> confdefs.h <<EOF | |
14284 | #define $ac_tr_func 1 | |
14285 | EOF | |
14286 | ||
14287 | else | |
14288 | echo "$ac_t""no" 1>&6 | |
14289 | fi | |
14290 | done | |
14291 | ||
14292 | fi | |
14293 | ||
14294 | ||
421173e6 PE |
14295 | echo $ac_n "checking for _atanl declaration""... $ac_c" 1>&6 |
14296 | echo "configure:14297: checking for _atanl declaration" >&5 | |
14297 | if eval "test \"`echo '$''{'glibcpp_cv_func__atanl_use'+set}'`\" = set"; then | |
14298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14299 | else | |
38bd7296 | 14300 | |
421173e6 PE |
14301 | |
14302 | ac_ext=C | |
38bd7296 BK |
14303 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14304 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14305 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14306 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14307 | cross_compiling=$ac_cv_prog_cxx_cross | |
14308 | ||
421173e6 PE |
14309 | cat > conftest.$ac_ext <<EOF |
14310 | #line 14311 "configure" | |
38bd7296 BK |
14311 | #include "confdefs.h" |
14312 | #include <math.h> | |
14313 | int main() { | |
14314 | _atanl(0); | |
14315 | ; return 0; } | |
14316 | EOF | |
421173e6 | 14317 | if { (eval echo configure:14318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14318 | rm -rf conftest* |
421173e6 | 14319 | glibcpp_cv_func__atanl_use=yes |
38bd7296 BK |
14320 | else |
14321 | echo "configure: failed program was:" >&5 | |
14322 | cat conftest.$ac_ext >&5 | |
14323 | rm -rf conftest* | |
421173e6 | 14324 | glibcpp_cv_func__atanl_use=no |
38bd7296 BK |
14325 | fi |
14326 | rm -f conftest* | |
421173e6 | 14327 | ac_ext=c |
38bd7296 BK |
14328 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14329 | ac_cpp='$CPP $CPPFLAGS' | |
14330 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14331 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14332 | cross_compiling=$ac_cv_prog_cc_cross | |
14333 | ||
421173e6 PE |
14334 | |
14335 | fi | |
14336 | ||
14337 | echo "$ac_t""$glibcpp_cv_func__atanl_use" 1>&6 | |
14338 | if test x$glibcpp_cv_func__atanl_use = x"yes"; then | |
38bd7296 BK |
14339 | for ac_func in _atanl |
14340 | do | |
14341 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14342 | echo "configure:14343: checking for $ac_func" >&5 |
38bd7296 BK |
14343 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14345 | else | |
14346 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14347 | #line 14348 "configure" |
38bd7296 BK |
14348 | #include "confdefs.h" |
14349 | /* System header to define __stub macros and hopefully few prototypes, | |
14350 | which can conflict with char $ac_func(); below. */ | |
14351 | #include <assert.h> | |
14352 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14353 | /* We use char because int might match the return type of a gcc2 | |
14354 | builtin and then its argument prototype would still apply. */ | |
14355 | char $ac_func(); | |
14356 | ||
14357 | int main() { | |
14358 | ||
14359 | /* The GNU C library defines this for functions which it implements | |
14360 | to always fail with ENOSYS. Some functions are actually named | |
14361 | something starting with __ and the normal name is an alias. */ | |
14362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14363 | choke me | |
14364 | #else | |
14365 | $ac_func(); | |
14366 | #endif | |
14367 | ||
14368 | ; return 0; } | |
14369 | EOF | |
421173e6 | 14370 | if { (eval echo configure:14371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14371 | rm -rf conftest* |
14372 | eval "ac_cv_func_$ac_func=yes" | |
14373 | else | |
14374 | echo "configure: failed program was:" >&5 | |
14375 | cat conftest.$ac_ext >&5 | |
14376 | rm -rf conftest* | |
14377 | eval "ac_cv_func_$ac_func=no" | |
14378 | fi | |
14379 | rm -f conftest* | |
14380 | fi | |
14381 | ||
14382 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14383 | echo "$ac_t""yes" 1>&6 | |
14384 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14385 | cat >> confdefs.h <<EOF | |
14386 | #define $ac_tr_func 1 | |
14387 | EOF | |
14388 | ||
14389 | else | |
14390 | echo "$ac_t""no" 1>&6 | |
14391 | fi | |
14392 | done | |
14393 | ||
14394 | fi | |
14395 | ||
14396 | ||
421173e6 PE |
14397 | echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6 |
14398 | echo "configure:14399: checking for _atan2l declaration" >&5 | |
14399 | if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then | |
14400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14401 | else | |
38bd7296 | 14402 | |
421173e6 PE |
14403 | |
14404 | ac_ext=C | |
38bd7296 BK |
14405 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14406 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14407 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14408 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14409 | cross_compiling=$ac_cv_prog_cxx_cross | |
14410 | ||
421173e6 PE |
14411 | cat > conftest.$ac_ext <<EOF |
14412 | #line 14413 "configure" | |
38bd7296 BK |
14413 | #include "confdefs.h" |
14414 | #include <math.h> | |
14415 | int main() { | |
14416 | _atan2l(0, 0); | |
14417 | ; return 0; } | |
14418 | EOF | |
421173e6 | 14419 | if { (eval echo configure:14420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14420 | rm -rf conftest* |
421173e6 | 14421 | glibcpp_cv_func__atan2l_use=yes |
38bd7296 BK |
14422 | else |
14423 | echo "configure: failed program was:" >&5 | |
14424 | cat conftest.$ac_ext >&5 | |
14425 | rm -rf conftest* | |
421173e6 | 14426 | glibcpp_cv_func__atan2l_use=no |
38bd7296 BK |
14427 | fi |
14428 | rm -f conftest* | |
421173e6 | 14429 | ac_ext=c |
38bd7296 BK |
14430 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14431 | ac_cpp='$CPP $CPPFLAGS' | |
14432 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14433 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14434 | cross_compiling=$ac_cv_prog_cc_cross | |
14435 | ||
421173e6 PE |
14436 | |
14437 | fi | |
14438 | ||
14439 | echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6 | |
14440 | if test x$glibcpp_cv_func__atan2l_use = x"yes"; then | |
38bd7296 BK |
14441 | for ac_func in _atan2l |
14442 | do | |
14443 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14444 | echo "configure:14445: checking for $ac_func" >&5 |
38bd7296 BK |
14445 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14447 | else | |
14448 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14449 | #line 14450 "configure" |
38bd7296 BK |
14450 | #include "confdefs.h" |
14451 | /* System header to define __stub macros and hopefully few prototypes, | |
14452 | which can conflict with char $ac_func(); below. */ | |
14453 | #include <assert.h> | |
14454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14455 | /* We use char because int might match the return type of a gcc2 | |
14456 | builtin and then its argument prototype would still apply. */ | |
14457 | char $ac_func(); | |
14458 | ||
14459 | int main() { | |
14460 | ||
14461 | /* The GNU C library defines this for functions which it implements | |
14462 | to always fail with ENOSYS. Some functions are actually named | |
14463 | something starting with __ and the normal name is an alias. */ | |
14464 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14465 | choke me | |
14466 | #else | |
14467 | $ac_func(); | |
14468 | #endif | |
14469 | ||
14470 | ; return 0; } | |
14471 | EOF | |
421173e6 | 14472 | if { (eval echo configure:14473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14473 | rm -rf conftest* |
14474 | eval "ac_cv_func_$ac_func=yes" | |
14475 | else | |
14476 | echo "configure: failed program was:" >&5 | |
14477 | cat conftest.$ac_ext >&5 | |
14478 | rm -rf conftest* | |
14479 | eval "ac_cv_func_$ac_func=no" | |
14480 | fi | |
14481 | rm -f conftest* | |
14482 | fi | |
14483 | ||
14484 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14485 | echo "$ac_t""yes" 1>&6 | |
14486 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14487 | cat >> confdefs.h <<EOF | |
14488 | #define $ac_tr_func 1 | |
14489 | EOF | |
14490 | ||
14491 | else | |
14492 | echo "$ac_t""no" 1>&6 | |
14493 | fi | |
14494 | done | |
14495 | ||
14496 | fi | |
14497 | ||
14498 | ||
421173e6 PE |
14499 | echo $ac_n "checking for _ceill declaration""... $ac_c" 1>&6 |
14500 | echo "configure:14501: checking for _ceill declaration" >&5 | |
14501 | if eval "test \"`echo '$''{'glibcpp_cv_func__ceill_use'+set}'`\" = set"; then | |
14502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14503 | else | |
38bd7296 | 14504 | |
421173e6 PE |
14505 | |
14506 | ac_ext=C | |
38bd7296 BK |
14507 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14508 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14509 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14510 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14511 | cross_compiling=$ac_cv_prog_cxx_cross | |
14512 | ||
421173e6 PE |
14513 | cat > conftest.$ac_ext <<EOF |
14514 | #line 14515 "configure" | |
38bd7296 BK |
14515 | #include "confdefs.h" |
14516 | #include <math.h> | |
14517 | int main() { | |
14518 | _ceill(0); | |
14519 | ; return 0; } | |
14520 | EOF | |
421173e6 | 14521 | if { (eval echo configure:14522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14522 | rm -rf conftest* |
421173e6 | 14523 | glibcpp_cv_func__ceill_use=yes |
38bd7296 BK |
14524 | else |
14525 | echo "configure: failed program was:" >&5 | |
14526 | cat conftest.$ac_ext >&5 | |
14527 | rm -rf conftest* | |
421173e6 | 14528 | glibcpp_cv_func__ceill_use=no |
38bd7296 BK |
14529 | fi |
14530 | rm -f conftest* | |
421173e6 | 14531 | ac_ext=c |
38bd7296 BK |
14532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14533 | ac_cpp='$CPP $CPPFLAGS' | |
14534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14535 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14536 | cross_compiling=$ac_cv_prog_cc_cross | |
14537 | ||
421173e6 PE |
14538 | |
14539 | fi | |
14540 | ||
14541 | echo "$ac_t""$glibcpp_cv_func__ceill_use" 1>&6 | |
14542 | if test x$glibcpp_cv_func__ceill_use = x"yes"; then | |
38bd7296 BK |
14543 | for ac_func in _ceill |
14544 | do | |
14545 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14546 | echo "configure:14547: checking for $ac_func" >&5 |
38bd7296 BK |
14547 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14549 | else | |
14550 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14551 | #line 14552 "configure" |
38bd7296 BK |
14552 | #include "confdefs.h" |
14553 | /* System header to define __stub macros and hopefully few prototypes, | |
14554 | which can conflict with char $ac_func(); below. */ | |
14555 | #include <assert.h> | |
14556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14557 | /* We use char because int might match the return type of a gcc2 | |
14558 | builtin and then its argument prototype would still apply. */ | |
14559 | char $ac_func(); | |
14560 | ||
14561 | int main() { | |
14562 | ||
14563 | /* The GNU C library defines this for functions which it implements | |
14564 | to always fail with ENOSYS. Some functions are actually named | |
14565 | something starting with __ and the normal name is an alias. */ | |
14566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14567 | choke me | |
14568 | #else | |
14569 | $ac_func(); | |
14570 | #endif | |
14571 | ||
14572 | ; return 0; } | |
14573 | EOF | |
421173e6 | 14574 | if { (eval echo configure:14575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14575 | rm -rf conftest* |
14576 | eval "ac_cv_func_$ac_func=yes" | |
14577 | else | |
14578 | echo "configure: failed program was:" >&5 | |
14579 | cat conftest.$ac_ext >&5 | |
14580 | rm -rf conftest* | |
14581 | eval "ac_cv_func_$ac_func=no" | |
14582 | fi | |
14583 | rm -f conftest* | |
14584 | fi | |
14585 | ||
14586 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14587 | echo "$ac_t""yes" 1>&6 | |
14588 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14589 | cat >> confdefs.h <<EOF | |
14590 | #define $ac_tr_func 1 | |
14591 | EOF | |
14592 | ||
14593 | else | |
14594 | echo "$ac_t""no" 1>&6 | |
14595 | fi | |
14596 | done | |
14597 | ||
14598 | fi | |
14599 | ||
14600 | ||
421173e6 PE |
14601 | echo $ac_n "checking for _cosl declaration""... $ac_c" 1>&6 |
14602 | echo "configure:14603: checking for _cosl declaration" >&5 | |
14603 | if eval "test \"`echo '$''{'glibcpp_cv_func__cosl_use'+set}'`\" = set"; then | |
14604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14605 | else | |
38bd7296 | 14606 | |
421173e6 PE |
14607 | |
14608 | ac_ext=C | |
38bd7296 BK |
14609 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14610 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14611 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14612 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14613 | cross_compiling=$ac_cv_prog_cxx_cross | |
14614 | ||
421173e6 PE |
14615 | cat > conftest.$ac_ext <<EOF |
14616 | #line 14617 "configure" | |
38bd7296 BK |
14617 | #include "confdefs.h" |
14618 | #include <math.h> | |
14619 | int main() { | |
14620 | _cosl(0); | |
14621 | ; return 0; } | |
14622 | EOF | |
421173e6 | 14623 | if { (eval echo configure:14624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14624 | rm -rf conftest* |
421173e6 | 14625 | glibcpp_cv_func__cosl_use=yes |
38bd7296 BK |
14626 | else |
14627 | echo "configure: failed program was:" >&5 | |
14628 | cat conftest.$ac_ext >&5 | |
14629 | rm -rf conftest* | |
421173e6 | 14630 | glibcpp_cv_func__cosl_use=no |
38bd7296 BK |
14631 | fi |
14632 | rm -f conftest* | |
421173e6 | 14633 | ac_ext=c |
38bd7296 BK |
14634 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14635 | ac_cpp='$CPP $CPPFLAGS' | |
14636 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14637 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14638 | cross_compiling=$ac_cv_prog_cc_cross | |
14639 | ||
421173e6 PE |
14640 | |
14641 | fi | |
14642 | ||
14643 | echo "$ac_t""$glibcpp_cv_func__cosl_use" 1>&6 | |
14644 | if test x$glibcpp_cv_func__cosl_use = x"yes"; then | |
38bd7296 BK |
14645 | for ac_func in _cosl |
14646 | do | |
14647 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14648 | echo "configure:14649: checking for $ac_func" >&5 |
38bd7296 BK |
14649 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14651 | else | |
14652 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14653 | #line 14654 "configure" |
38bd7296 BK |
14654 | #include "confdefs.h" |
14655 | /* System header to define __stub macros and hopefully few prototypes, | |
14656 | which can conflict with char $ac_func(); below. */ | |
14657 | #include <assert.h> | |
14658 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14659 | /* We use char because int might match the return type of a gcc2 | |
14660 | builtin and then its argument prototype would still apply. */ | |
14661 | char $ac_func(); | |
14662 | ||
14663 | int main() { | |
14664 | ||
14665 | /* The GNU C library defines this for functions which it implements | |
14666 | to always fail with ENOSYS. Some functions are actually named | |
14667 | something starting with __ and the normal name is an alias. */ | |
14668 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14669 | choke me | |
14670 | #else | |
14671 | $ac_func(); | |
14672 | #endif | |
14673 | ||
14674 | ; return 0; } | |
14675 | EOF | |
421173e6 | 14676 | if { (eval echo configure:14677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14677 | rm -rf conftest* |
14678 | eval "ac_cv_func_$ac_func=yes" | |
14679 | else | |
14680 | echo "configure: failed program was:" >&5 | |
14681 | cat conftest.$ac_ext >&5 | |
14682 | rm -rf conftest* | |
14683 | eval "ac_cv_func_$ac_func=no" | |
14684 | fi | |
14685 | rm -f conftest* | |
14686 | fi | |
14687 | ||
14688 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14689 | echo "$ac_t""yes" 1>&6 | |
14690 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14691 | cat >> confdefs.h <<EOF | |
14692 | #define $ac_tr_func 1 | |
14693 | EOF | |
14694 | ||
14695 | else | |
14696 | echo "$ac_t""no" 1>&6 | |
14697 | fi | |
14698 | done | |
14699 | ||
14700 | fi | |
14701 | ||
14702 | ||
421173e6 PE |
14703 | echo $ac_n "checking for _coshl declaration""... $ac_c" 1>&6 |
14704 | echo "configure:14705: checking for _coshl declaration" >&5 | |
14705 | if eval "test \"`echo '$''{'glibcpp_cv_func__coshl_use'+set}'`\" = set"; then | |
14706 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14707 | else | |
38bd7296 | 14708 | |
421173e6 PE |
14709 | |
14710 | ac_ext=C | |
38bd7296 BK |
14711 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14712 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14713 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14714 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14715 | cross_compiling=$ac_cv_prog_cxx_cross | |
14716 | ||
421173e6 PE |
14717 | cat > conftest.$ac_ext <<EOF |
14718 | #line 14719 "configure" | |
38bd7296 BK |
14719 | #include "confdefs.h" |
14720 | #include <math.h> | |
14721 | int main() { | |
14722 | _coshl(0); | |
14723 | ; return 0; } | |
14724 | EOF | |
421173e6 | 14725 | if { (eval echo configure:14726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14726 | rm -rf conftest* |
421173e6 | 14727 | glibcpp_cv_func__coshl_use=yes |
38bd7296 BK |
14728 | else |
14729 | echo "configure: failed program was:" >&5 | |
14730 | cat conftest.$ac_ext >&5 | |
14731 | rm -rf conftest* | |
421173e6 | 14732 | glibcpp_cv_func__coshl_use=no |
38bd7296 BK |
14733 | fi |
14734 | rm -f conftest* | |
421173e6 | 14735 | ac_ext=c |
38bd7296 BK |
14736 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14737 | ac_cpp='$CPP $CPPFLAGS' | |
14738 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14739 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14740 | cross_compiling=$ac_cv_prog_cc_cross | |
14741 | ||
421173e6 PE |
14742 | |
14743 | fi | |
14744 | ||
14745 | echo "$ac_t""$glibcpp_cv_func__coshl_use" 1>&6 | |
14746 | if test x$glibcpp_cv_func__coshl_use = x"yes"; then | |
38bd7296 BK |
14747 | for ac_func in _coshl |
14748 | do | |
14749 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14750 | echo "configure:14751: checking for $ac_func" >&5 |
38bd7296 BK |
14751 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14753 | else | |
14754 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14755 | #line 14756 "configure" |
38bd7296 BK |
14756 | #include "confdefs.h" |
14757 | /* System header to define __stub macros and hopefully few prototypes, | |
14758 | which can conflict with char $ac_func(); below. */ | |
14759 | #include <assert.h> | |
14760 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14761 | /* We use char because int might match the return type of a gcc2 | |
14762 | builtin and then its argument prototype would still apply. */ | |
14763 | char $ac_func(); | |
14764 | ||
14765 | int main() { | |
14766 | ||
14767 | /* The GNU C library defines this for functions which it implements | |
14768 | to always fail with ENOSYS. Some functions are actually named | |
14769 | something starting with __ and the normal name is an alias. */ | |
14770 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14771 | choke me | |
14772 | #else | |
14773 | $ac_func(); | |
14774 | #endif | |
14775 | ||
14776 | ; return 0; } | |
14777 | EOF | |
421173e6 | 14778 | if { (eval echo configure:14779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14779 | rm -rf conftest* |
14780 | eval "ac_cv_func_$ac_func=yes" | |
14781 | else | |
14782 | echo "configure: failed program was:" >&5 | |
14783 | cat conftest.$ac_ext >&5 | |
14784 | rm -rf conftest* | |
14785 | eval "ac_cv_func_$ac_func=no" | |
14786 | fi | |
14787 | rm -f conftest* | |
14788 | fi | |
14789 | ||
14790 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14791 | echo "$ac_t""yes" 1>&6 | |
14792 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14793 | cat >> confdefs.h <<EOF | |
14794 | #define $ac_tr_func 1 | |
14795 | EOF | |
14796 | ||
14797 | else | |
14798 | echo "$ac_t""no" 1>&6 | |
14799 | fi | |
14800 | done | |
14801 | ||
14802 | fi | |
14803 | ||
14804 | ||
421173e6 PE |
14805 | echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6 |
14806 | echo "configure:14807: checking for _expl declaration" >&5 | |
14807 | if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then | |
14808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14809 | else | |
38bd7296 | 14810 | |
421173e6 PE |
14811 | |
14812 | ac_ext=C | |
38bd7296 BK |
14813 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14814 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14815 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14816 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14817 | cross_compiling=$ac_cv_prog_cxx_cross | |
14818 | ||
421173e6 PE |
14819 | cat > conftest.$ac_ext <<EOF |
14820 | #line 14821 "configure" | |
38bd7296 BK |
14821 | #include "confdefs.h" |
14822 | #include <math.h> | |
14823 | int main() { | |
14824 | _expl(0); | |
14825 | ; return 0; } | |
14826 | EOF | |
421173e6 | 14827 | if { (eval echo configure:14828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14828 | rm -rf conftest* |
421173e6 | 14829 | glibcpp_cv_func__expl_use=yes |
38bd7296 BK |
14830 | else |
14831 | echo "configure: failed program was:" >&5 | |
14832 | cat conftest.$ac_ext >&5 | |
14833 | rm -rf conftest* | |
421173e6 | 14834 | glibcpp_cv_func__expl_use=no |
38bd7296 BK |
14835 | fi |
14836 | rm -f conftest* | |
421173e6 | 14837 | ac_ext=c |
38bd7296 BK |
14838 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14839 | ac_cpp='$CPP $CPPFLAGS' | |
14840 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14841 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14842 | cross_compiling=$ac_cv_prog_cc_cross | |
14843 | ||
421173e6 PE |
14844 | |
14845 | fi | |
14846 | ||
14847 | echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6 | |
14848 | if test x$glibcpp_cv_func__expl_use = x"yes"; then | |
38bd7296 BK |
14849 | for ac_func in _expl |
14850 | do | |
14851 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14852 | echo "configure:14853: checking for $ac_func" >&5 |
38bd7296 BK |
14853 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14855 | else | |
14856 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14857 | #line 14858 "configure" |
38bd7296 BK |
14858 | #include "confdefs.h" |
14859 | /* System header to define __stub macros and hopefully few prototypes, | |
14860 | which can conflict with char $ac_func(); below. */ | |
14861 | #include <assert.h> | |
14862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14863 | /* We use char because int might match the return type of a gcc2 | |
14864 | builtin and then its argument prototype would still apply. */ | |
14865 | char $ac_func(); | |
14866 | ||
14867 | int main() { | |
14868 | ||
14869 | /* The GNU C library defines this for functions which it implements | |
14870 | to always fail with ENOSYS. Some functions are actually named | |
14871 | something starting with __ and the normal name is an alias. */ | |
14872 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14873 | choke me | |
14874 | #else | |
14875 | $ac_func(); | |
14876 | #endif | |
14877 | ||
14878 | ; return 0; } | |
14879 | EOF | |
421173e6 | 14880 | if { (eval echo configure:14881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14881 | rm -rf conftest* |
14882 | eval "ac_cv_func_$ac_func=yes" | |
14883 | else | |
14884 | echo "configure: failed program was:" >&5 | |
14885 | cat conftest.$ac_ext >&5 | |
14886 | rm -rf conftest* | |
14887 | eval "ac_cv_func_$ac_func=no" | |
14888 | fi | |
14889 | rm -f conftest* | |
14890 | fi | |
14891 | ||
14892 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14893 | echo "$ac_t""yes" 1>&6 | |
14894 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14895 | cat >> confdefs.h <<EOF | |
14896 | #define $ac_tr_func 1 | |
14897 | EOF | |
14898 | ||
14899 | else | |
14900 | echo "$ac_t""no" 1>&6 | |
14901 | fi | |
14902 | done | |
14903 | ||
14904 | fi | |
14905 | ||
14906 | ||
421173e6 PE |
14907 | echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6 |
14908 | echo "configure:14909: checking for _fabsl declaration" >&5 | |
14909 | if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then | |
14910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14911 | else | |
38bd7296 | 14912 | |
421173e6 PE |
14913 | |
14914 | ac_ext=C | |
38bd7296 BK |
14915 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14916 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14917 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14918 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14919 | cross_compiling=$ac_cv_prog_cxx_cross | |
14920 | ||
421173e6 PE |
14921 | cat > conftest.$ac_ext <<EOF |
14922 | #line 14923 "configure" | |
38bd7296 BK |
14923 | #include "confdefs.h" |
14924 | #include <math.h> | |
14925 | int main() { | |
14926 | _fabsl(0); | |
14927 | ; return 0; } | |
14928 | EOF | |
421173e6 | 14929 | if { (eval echo configure:14930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 14930 | rm -rf conftest* |
421173e6 | 14931 | glibcpp_cv_func__fabsl_use=yes |
38bd7296 BK |
14932 | else |
14933 | echo "configure: failed program was:" >&5 | |
14934 | cat conftest.$ac_ext >&5 | |
14935 | rm -rf conftest* | |
421173e6 | 14936 | glibcpp_cv_func__fabsl_use=no |
38bd7296 BK |
14937 | fi |
14938 | rm -f conftest* | |
421173e6 | 14939 | ac_ext=c |
38bd7296 BK |
14940 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14941 | ac_cpp='$CPP $CPPFLAGS' | |
14942 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14943 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14944 | cross_compiling=$ac_cv_prog_cc_cross | |
14945 | ||
421173e6 PE |
14946 | |
14947 | fi | |
14948 | ||
14949 | echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6 | |
14950 | if test x$glibcpp_cv_func__fabsl_use = x"yes"; then | |
38bd7296 BK |
14951 | for ac_func in _fabsl |
14952 | do | |
14953 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 14954 | echo "configure:14955: checking for $ac_func" >&5 |
38bd7296 BK |
14955 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14956 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14957 | else | |
14958 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 14959 | #line 14960 "configure" |
38bd7296 BK |
14960 | #include "confdefs.h" |
14961 | /* System header to define __stub macros and hopefully few prototypes, | |
14962 | which can conflict with char $ac_func(); below. */ | |
14963 | #include <assert.h> | |
14964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14965 | /* We use char because int might match the return type of a gcc2 | |
14966 | builtin and then its argument prototype would still apply. */ | |
14967 | char $ac_func(); | |
14968 | ||
14969 | int main() { | |
14970 | ||
14971 | /* The GNU C library defines this for functions which it implements | |
14972 | to always fail with ENOSYS. Some functions are actually named | |
14973 | something starting with __ and the normal name is an alias. */ | |
14974 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14975 | choke me | |
14976 | #else | |
14977 | $ac_func(); | |
14978 | #endif | |
14979 | ||
14980 | ; return 0; } | |
14981 | EOF | |
421173e6 | 14982 | if { (eval echo configure:14983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
14983 | rm -rf conftest* |
14984 | eval "ac_cv_func_$ac_func=yes" | |
14985 | else | |
14986 | echo "configure: failed program was:" >&5 | |
14987 | cat conftest.$ac_ext >&5 | |
14988 | rm -rf conftest* | |
14989 | eval "ac_cv_func_$ac_func=no" | |
14990 | fi | |
14991 | rm -f conftest* | |
14992 | fi | |
14993 | ||
14994 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14995 | echo "$ac_t""yes" 1>&6 | |
14996 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14997 | cat >> confdefs.h <<EOF | |
14998 | #define $ac_tr_func 1 | |
14999 | EOF | |
15000 | ||
15001 | else | |
15002 | echo "$ac_t""no" 1>&6 | |
15003 | fi | |
15004 | done | |
15005 | ||
15006 | fi | |
15007 | ||
15008 | ||
421173e6 PE |
15009 | echo $ac_n "checking for _floorl declaration""... $ac_c" 1>&6 |
15010 | echo "configure:15011: checking for _floorl declaration" >&5 | |
15011 | if eval "test \"`echo '$''{'glibcpp_cv_func__floorl_use'+set}'`\" = set"; then | |
15012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15013 | else | |
38bd7296 | 15014 | |
421173e6 PE |
15015 | |
15016 | ac_ext=C | |
38bd7296 BK |
15017 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15018 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15019 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15020 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15021 | cross_compiling=$ac_cv_prog_cxx_cross | |
15022 | ||
421173e6 PE |
15023 | cat > conftest.$ac_ext <<EOF |
15024 | #line 15025 "configure" | |
38bd7296 BK |
15025 | #include "confdefs.h" |
15026 | #include <math.h> | |
15027 | int main() { | |
15028 | _floorl(0); | |
15029 | ; return 0; } | |
15030 | EOF | |
421173e6 | 15031 | if { (eval echo configure:15032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15032 | rm -rf conftest* |
421173e6 | 15033 | glibcpp_cv_func__floorl_use=yes |
38bd7296 BK |
15034 | else |
15035 | echo "configure: failed program was:" >&5 | |
15036 | cat conftest.$ac_ext >&5 | |
15037 | rm -rf conftest* | |
421173e6 | 15038 | glibcpp_cv_func__floorl_use=no |
38bd7296 BK |
15039 | fi |
15040 | rm -f conftest* | |
421173e6 | 15041 | ac_ext=c |
38bd7296 BK |
15042 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15043 | ac_cpp='$CPP $CPPFLAGS' | |
15044 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15045 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15046 | cross_compiling=$ac_cv_prog_cc_cross | |
15047 | ||
421173e6 PE |
15048 | |
15049 | fi | |
15050 | ||
15051 | echo "$ac_t""$glibcpp_cv_func__floorl_use" 1>&6 | |
15052 | if test x$glibcpp_cv_func__floorl_use = x"yes"; then | |
38bd7296 BK |
15053 | for ac_func in _floorl |
15054 | do | |
15055 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15056 | echo "configure:15057: checking for $ac_func" >&5 |
38bd7296 BK |
15057 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15059 | else | |
15060 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15061 | #line 15062 "configure" |
38bd7296 BK |
15062 | #include "confdefs.h" |
15063 | /* System header to define __stub macros and hopefully few prototypes, | |
15064 | which can conflict with char $ac_func(); below. */ | |
15065 | #include <assert.h> | |
15066 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15067 | /* We use char because int might match the return type of a gcc2 | |
15068 | builtin and then its argument prototype would still apply. */ | |
15069 | char $ac_func(); | |
15070 | ||
15071 | int main() { | |
15072 | ||
15073 | /* The GNU C library defines this for functions which it implements | |
15074 | to always fail with ENOSYS. Some functions are actually named | |
15075 | something starting with __ and the normal name is an alias. */ | |
15076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15077 | choke me | |
15078 | #else | |
15079 | $ac_func(); | |
15080 | #endif | |
15081 | ||
15082 | ; return 0; } | |
15083 | EOF | |
421173e6 | 15084 | if { (eval echo configure:15085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
15085 | rm -rf conftest* |
15086 | eval "ac_cv_func_$ac_func=yes" | |
15087 | else | |
15088 | echo "configure: failed program was:" >&5 | |
15089 | cat conftest.$ac_ext >&5 | |
15090 | rm -rf conftest* | |
15091 | eval "ac_cv_func_$ac_func=no" | |
15092 | fi | |
15093 | rm -f conftest* | |
15094 | fi | |
15095 | ||
15096 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15097 | echo "$ac_t""yes" 1>&6 | |
15098 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15099 | cat >> confdefs.h <<EOF | |
15100 | #define $ac_tr_func 1 | |
15101 | EOF | |
15102 | ||
15103 | else | |
15104 | echo "$ac_t""no" 1>&6 | |
15105 | fi | |
15106 | done | |
15107 | ||
15108 | fi | |
15109 | ||
15110 | ||
421173e6 PE |
15111 | echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6 |
15112 | echo "configure:15113: checking for _fmodl declaration" >&5 | |
15113 | if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then | |
15114 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15115 | else | |
38bd7296 | 15116 | |
421173e6 PE |
15117 | |
15118 | ac_ext=C | |
38bd7296 BK |
15119 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15120 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15121 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15122 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15123 | cross_compiling=$ac_cv_prog_cxx_cross | |
15124 | ||
421173e6 PE |
15125 | cat > conftest.$ac_ext <<EOF |
15126 | #line 15127 "configure" | |
38bd7296 BK |
15127 | #include "confdefs.h" |
15128 | #include <math.h> | |
15129 | int main() { | |
15130 | _fmodl(0, 0); | |
15131 | ; return 0; } | |
15132 | EOF | |
421173e6 | 15133 | if { (eval echo configure:15134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15134 | rm -rf conftest* |
421173e6 | 15135 | glibcpp_cv_func__fmodl_use=yes |
38bd7296 BK |
15136 | else |
15137 | echo "configure: failed program was:" >&5 | |
15138 | cat conftest.$ac_ext >&5 | |
15139 | rm -rf conftest* | |
421173e6 | 15140 | glibcpp_cv_func__fmodl_use=no |
38bd7296 BK |
15141 | fi |
15142 | rm -f conftest* | |
421173e6 | 15143 | ac_ext=c |
38bd7296 BK |
15144 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15145 | ac_cpp='$CPP $CPPFLAGS' | |
15146 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15147 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15148 | cross_compiling=$ac_cv_prog_cc_cross | |
15149 | ||
421173e6 PE |
15150 | |
15151 | fi | |
15152 | ||
15153 | echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6 | |
15154 | if test x$glibcpp_cv_func__fmodl_use = x"yes"; then | |
38bd7296 BK |
15155 | for ac_func in _fmodl |
15156 | do | |
15157 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15158 | echo "configure:15159: checking for $ac_func" >&5 |
38bd7296 BK |
15159 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15161 | else | |
15162 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15163 | #line 15164 "configure" |
38bd7296 BK |
15164 | #include "confdefs.h" |
15165 | /* System header to define __stub macros and hopefully few prototypes, | |
15166 | which can conflict with char $ac_func(); below. */ | |
15167 | #include <assert.h> | |
15168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15169 | /* We use char because int might match the return type of a gcc2 | |
15170 | builtin and then its argument prototype would still apply. */ | |
15171 | char $ac_func(); | |
15172 | ||
15173 | int main() { | |
15174 | ||
15175 | /* The GNU C library defines this for functions which it implements | |
15176 | to always fail with ENOSYS. Some functions are actually named | |
15177 | something starting with __ and the normal name is an alias. */ | |
15178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15179 | choke me | |
15180 | #else | |
15181 | $ac_func(); | |
15182 | #endif | |
15183 | ||
15184 | ; return 0; } | |
15185 | EOF | |
421173e6 | 15186 | if { (eval echo configure:15187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
15187 | rm -rf conftest* |
15188 | eval "ac_cv_func_$ac_func=yes" | |
15189 | else | |
15190 | echo "configure: failed program was:" >&5 | |
15191 | cat conftest.$ac_ext >&5 | |
15192 | rm -rf conftest* | |
15193 | eval "ac_cv_func_$ac_func=no" | |
15194 | fi | |
15195 | rm -f conftest* | |
15196 | fi | |
15197 | ||
15198 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15199 | echo "$ac_t""yes" 1>&6 | |
15200 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15201 | cat >> confdefs.h <<EOF | |
15202 | #define $ac_tr_func 1 | |
15203 | EOF | |
15204 | ||
15205 | else | |
15206 | echo "$ac_t""no" 1>&6 | |
15207 | fi | |
15208 | done | |
15209 | ||
15210 | fi | |
15211 | ||
15212 | ||
421173e6 PE |
15213 | echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6 |
15214 | echo "configure:15215: checking for _frexpl declaration" >&5 | |
15215 | if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then | |
15216 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15217 | else | |
38bd7296 | 15218 | |
421173e6 PE |
15219 | |
15220 | ac_ext=C | |
38bd7296 BK |
15221 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15222 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15223 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15224 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15225 | cross_compiling=$ac_cv_prog_cxx_cross | |
15226 | ||
421173e6 PE |
15227 | cat > conftest.$ac_ext <<EOF |
15228 | #line 15229 "configure" | |
38bd7296 BK |
15229 | #include "confdefs.h" |
15230 | #include <math.h> | |
15231 | int main() { | |
15232 | _frexpl(0, 0); | |
15233 | ; return 0; } | |
15234 | EOF | |
421173e6 | 15235 | if { (eval echo configure:15236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15236 | rm -rf conftest* |
421173e6 | 15237 | glibcpp_cv_func__frexpl_use=yes |
38bd7296 BK |
15238 | else |
15239 | echo "configure: failed program was:" >&5 | |
15240 | cat conftest.$ac_ext >&5 | |
15241 | rm -rf conftest* | |
421173e6 | 15242 | glibcpp_cv_func__frexpl_use=no |
38bd7296 BK |
15243 | fi |
15244 | rm -f conftest* | |
421173e6 | 15245 | ac_ext=c |
38bd7296 BK |
15246 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15247 | ac_cpp='$CPP $CPPFLAGS' | |
15248 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15249 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15250 | cross_compiling=$ac_cv_prog_cc_cross | |
15251 | ||
421173e6 PE |
15252 | |
15253 | fi | |
15254 | ||
15255 | echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6 | |
15256 | if test x$glibcpp_cv_func__frexpl_use = x"yes"; then | |
38bd7296 BK |
15257 | for ac_func in _frexpl |
15258 | do | |
15259 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15260 | echo "configure:15261: checking for $ac_func" >&5 |
38bd7296 BK |
15261 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15263 | else | |
15264 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15265 | #line 15266 "configure" |
38bd7296 BK |
15266 | #include "confdefs.h" |
15267 | /* System header to define __stub macros and hopefully few prototypes, | |
15268 | which can conflict with char $ac_func(); below. */ | |
15269 | #include <assert.h> | |
15270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15271 | /* We use char because int might match the return type of a gcc2 | |
15272 | builtin and then its argument prototype would still apply. */ | |
15273 | char $ac_func(); | |
15274 | ||
15275 | int main() { | |
15276 | ||
15277 | /* The GNU C library defines this for functions which it implements | |
15278 | to always fail with ENOSYS. Some functions are actually named | |
15279 | something starting with __ and the normal name is an alias. */ | |
15280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15281 | choke me | |
15282 | #else | |
15283 | $ac_func(); | |
15284 | #endif | |
15285 | ||
15286 | ; return 0; } | |
15287 | EOF | |
421173e6 | 15288 | if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
15289 | rm -rf conftest* |
15290 | eval "ac_cv_func_$ac_func=yes" | |
15291 | else | |
15292 | echo "configure: failed program was:" >&5 | |
15293 | cat conftest.$ac_ext >&5 | |
15294 | rm -rf conftest* | |
15295 | eval "ac_cv_func_$ac_func=no" | |
15296 | fi | |
15297 | rm -f conftest* | |
15298 | fi | |
15299 | ||
15300 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15301 | echo "$ac_t""yes" 1>&6 | |
15302 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15303 | cat >> confdefs.h <<EOF | |
15304 | #define $ac_tr_func 1 | |
15305 | EOF | |
15306 | ||
15307 | else | |
15308 | echo "$ac_t""no" 1>&6 | |
15309 | fi | |
15310 | done | |
15311 | ||
15312 | fi | |
15313 | ||
15314 | ||
421173e6 PE |
15315 | echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6 |
15316 | echo "configure:15317: checking for _ldexpl declaration" >&5 | |
15317 | if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then | |
15318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15319 | else | |
38bd7296 | 15320 | |
421173e6 PE |
15321 | |
15322 | ac_ext=C | |
38bd7296 BK |
15323 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15324 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15325 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15326 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15327 | cross_compiling=$ac_cv_prog_cxx_cross | |
15328 | ||
421173e6 PE |
15329 | cat > conftest.$ac_ext <<EOF |
15330 | #line 15331 "configure" | |
38bd7296 BK |
15331 | #include "confdefs.h" |
15332 | #include <math.h> | |
15333 | int main() { | |
15334 | _ldexpl(0, 0); | |
15335 | ; return 0; } | |
15336 | EOF | |
421173e6 | 15337 | if { (eval echo configure:15338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15338 | rm -rf conftest* |
421173e6 | 15339 | glibcpp_cv_func__ldexpl_use=yes |
38bd7296 BK |
15340 | else |
15341 | echo "configure: failed program was:" >&5 | |
15342 | cat conftest.$ac_ext >&5 | |
15343 | rm -rf conftest* | |
421173e6 | 15344 | glibcpp_cv_func__ldexpl_use=no |
38bd7296 BK |
15345 | fi |
15346 | rm -f conftest* | |
421173e6 | 15347 | ac_ext=c |
38bd7296 BK |
15348 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15349 | ac_cpp='$CPP $CPPFLAGS' | |
15350 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15351 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15352 | cross_compiling=$ac_cv_prog_cc_cross | |
15353 | ||
421173e6 PE |
15354 | |
15355 | fi | |
15356 | ||
15357 | echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6 | |
15358 | if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then | |
38bd7296 BK |
15359 | for ac_func in _ldexpl |
15360 | do | |
15361 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15362 | echo "configure:15363: checking for $ac_func" >&5 |
38bd7296 BK |
15363 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15365 | else | |
15366 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15367 | #line 15368 "configure" |
38bd7296 BK |
15368 | #include "confdefs.h" |
15369 | /* System header to define __stub macros and hopefully few prototypes, | |
15370 | which can conflict with char $ac_func(); below. */ | |
15371 | #include <assert.h> | |
15372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15373 | /* We use char because int might match the return type of a gcc2 | |
15374 | builtin and then its argument prototype would still apply. */ | |
15375 | char $ac_func(); | |
15376 | ||
15377 | int main() { | |
15378 | ||
15379 | /* The GNU C library defines this for functions which it implements | |
15380 | to always fail with ENOSYS. Some functions are actually named | |
15381 | something starting with __ and the normal name is an alias. */ | |
15382 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15383 | choke me | |
15384 | #else | |
15385 | $ac_func(); | |
15386 | #endif | |
15387 | ||
15388 | ; return 0; } | |
15389 | EOF | |
421173e6 | 15390 | if { (eval echo configure:15391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
15391 | rm -rf conftest* |
15392 | eval "ac_cv_func_$ac_func=yes" | |
15393 | else | |
15394 | echo "configure: failed program was:" >&5 | |
15395 | cat conftest.$ac_ext >&5 | |
15396 | rm -rf conftest* | |
15397 | eval "ac_cv_func_$ac_func=no" | |
15398 | fi | |
15399 | rm -f conftest* | |
15400 | fi | |
15401 | ||
15402 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15403 | echo "$ac_t""yes" 1>&6 | |
15404 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15405 | cat >> confdefs.h <<EOF | |
15406 | #define $ac_tr_func 1 | |
15407 | EOF | |
15408 | ||
15409 | else | |
15410 | echo "$ac_t""no" 1>&6 | |
15411 | fi | |
15412 | done | |
15413 | ||
15414 | fi | |
15415 | ||
15416 | ||
421173e6 PE |
15417 | echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6 |
15418 | echo "configure:15419: checking for _logl declaration" >&5 | |
15419 | if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then | |
15420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15421 | else | |
38bd7296 | 15422 | |
421173e6 PE |
15423 | |
15424 | ac_ext=C | |
38bd7296 BK |
15425 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15426 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15427 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15428 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15429 | cross_compiling=$ac_cv_prog_cxx_cross | |
15430 | ||
421173e6 PE |
15431 | cat > conftest.$ac_ext <<EOF |
15432 | #line 15433 "configure" | |
38bd7296 BK |
15433 | #include "confdefs.h" |
15434 | #include <math.h> | |
15435 | int main() { | |
15436 | _logl(0); | |
15437 | ; return 0; } | |
15438 | EOF | |
421173e6 | 15439 | if { (eval echo configure:15440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15440 | rm -rf conftest* |
421173e6 | 15441 | glibcpp_cv_func__logl_use=yes |
38bd7296 BK |
15442 | else |
15443 | echo "configure: failed program was:" >&5 | |
15444 | cat conftest.$ac_ext >&5 | |
15445 | rm -rf conftest* | |
421173e6 | 15446 | glibcpp_cv_func__logl_use=no |
38bd7296 BK |
15447 | fi |
15448 | rm -f conftest* | |
421173e6 | 15449 | ac_ext=c |
38bd7296 BK |
15450 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15451 | ac_cpp='$CPP $CPPFLAGS' | |
15452 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15453 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15454 | cross_compiling=$ac_cv_prog_cc_cross | |
15455 | ||
421173e6 PE |
15456 | |
15457 | fi | |
15458 | ||
15459 | echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6 | |
15460 | if test x$glibcpp_cv_func__logl_use = x"yes"; then | |
38bd7296 BK |
15461 | for ac_func in _logl |
15462 | do | |
15463 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15464 | echo "configure:15465: checking for $ac_func" >&5 |
38bd7296 BK |
15465 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15467 | else | |
15468 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15469 | #line 15470 "configure" |
38bd7296 BK |
15470 | #include "confdefs.h" |
15471 | /* System header to define __stub macros and hopefully few prototypes, | |
15472 | which can conflict with char $ac_func(); below. */ | |
15473 | #include <assert.h> | |
15474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15475 | /* We use char because int might match the return type of a gcc2 | |
15476 | builtin and then its argument prototype would still apply. */ | |
15477 | char $ac_func(); | |
15478 | ||
15479 | int main() { | |
15480 | ||
15481 | /* The GNU C library defines this for functions which it implements | |
15482 | to always fail with ENOSYS. Some functions are actually named | |
15483 | something starting with __ and the normal name is an alias. */ | |
15484 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15485 | choke me | |
15486 | #else | |
15487 | $ac_func(); | |
15488 | #endif | |
15489 | ||
15490 | ; return 0; } | |
15491 | EOF | |
421173e6 | 15492 | if { (eval echo configure:15493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
15493 | rm -rf conftest* |
15494 | eval "ac_cv_func_$ac_func=yes" | |
15495 | else | |
15496 | echo "configure: failed program was:" >&5 | |
15497 | cat conftest.$ac_ext >&5 | |
15498 | rm -rf conftest* | |
15499 | eval "ac_cv_func_$ac_func=no" | |
15500 | fi | |
15501 | rm -f conftest* | |
15502 | fi | |
15503 | ||
15504 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15505 | echo "$ac_t""yes" 1>&6 | |
15506 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15507 | cat >> confdefs.h <<EOF | |
15508 | #define $ac_tr_func 1 | |
15509 | EOF | |
15510 | ||
15511 | else | |
15512 | echo "$ac_t""no" 1>&6 | |
15513 | fi | |
15514 | done | |
15515 | ||
15516 | fi | |
15517 | ||
15518 | ||
421173e6 PE |
15519 | echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6 |
15520 | echo "configure:15521: checking for _log10l declaration" >&5 | |
15521 | if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then | |
15522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15523 | else | |
38bd7296 | 15524 | |
421173e6 PE |
15525 | |
15526 | ac_ext=C | |
38bd7296 BK |
15527 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15528 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15529 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15530 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15531 | cross_compiling=$ac_cv_prog_cxx_cross | |
15532 | ||
421173e6 PE |
15533 | cat > conftest.$ac_ext <<EOF |
15534 | #line 15535 "configure" | |
38bd7296 BK |
15535 | #include "confdefs.h" |
15536 | #include <math.h> | |
15537 | int main() { | |
15538 | _log10l(0); | |
15539 | ; return 0; } | |
15540 | EOF | |
421173e6 | 15541 | if { (eval echo configure:15542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15542 | rm -rf conftest* |
421173e6 | 15543 | glibcpp_cv_func__log10l_use=yes |
38bd7296 BK |
15544 | else |
15545 | echo "configure: failed program was:" >&5 | |
15546 | cat conftest.$ac_ext >&5 | |
15547 | rm -rf conftest* | |
421173e6 | 15548 | glibcpp_cv_func__log10l_use=no |
38bd7296 BK |
15549 | fi |
15550 | rm -f conftest* | |
421173e6 | 15551 | ac_ext=c |
38bd7296 BK |
15552 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15553 | ac_cpp='$CPP $CPPFLAGS' | |
15554 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15555 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15556 | cross_compiling=$ac_cv_prog_cc_cross | |
15557 | ||
421173e6 PE |
15558 | |
15559 | fi | |
15560 | ||
15561 | echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6 | |
15562 | if test x$glibcpp_cv_func__log10l_use = x"yes"; then | |
38bd7296 BK |
15563 | for ac_func in _log10l |
15564 | do | |
15565 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15566 | echo "configure:15567: checking for $ac_func" >&5 |
38bd7296 BK |
15567 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15569 | else | |
15570 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15571 | #line 15572 "configure" |
38bd7296 BK |
15572 | #include "confdefs.h" |
15573 | /* System header to define __stub macros and hopefully few prototypes, | |
15574 | which can conflict with char $ac_func(); below. */ | |
15575 | #include <assert.h> | |
15576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15577 | /* We use char because int might match the return type of a gcc2 | |
15578 | builtin and then its argument prototype would still apply. */ | |
15579 | char $ac_func(); | |
15580 | ||
15581 | int main() { | |
15582 | ||
15583 | /* The GNU C library defines this for functions which it implements | |
15584 | to always fail with ENOSYS. Some functions are actually named | |
15585 | something starting with __ and the normal name is an alias. */ | |
15586 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15587 | choke me | |
15588 | #else | |
15589 | $ac_func(); | |
15590 | #endif | |
15591 | ||
15592 | ; return 0; } | |
15593 | EOF | |
421173e6 | 15594 | if { (eval echo configure:15595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
15595 | rm -rf conftest* |
15596 | eval "ac_cv_func_$ac_func=yes" | |
15597 | else | |
15598 | echo "configure: failed program was:" >&5 | |
15599 | cat conftest.$ac_ext >&5 | |
15600 | rm -rf conftest* | |
15601 | eval "ac_cv_func_$ac_func=no" | |
15602 | fi | |
15603 | rm -f conftest* | |
15604 | fi | |
15605 | ||
15606 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15607 | echo "$ac_t""yes" 1>&6 | |
15608 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15609 | cat >> confdefs.h <<EOF | |
15610 | #define $ac_tr_func 1 | |
15611 | EOF | |
15612 | ||
15613 | else | |
15614 | echo "$ac_t""no" 1>&6 | |
15615 | fi | |
15616 | done | |
15617 | ||
15618 | fi | |
15619 | ||
15620 | ||
421173e6 PE |
15621 | echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6 |
15622 | echo "configure:15623: checking for _modfl declaration" >&5 | |
15623 | if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then | |
15624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15625 | else | |
38bd7296 | 15626 | |
421173e6 PE |
15627 | |
15628 | ac_ext=C | |
38bd7296 BK |
15629 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15630 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15631 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15632 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15633 | cross_compiling=$ac_cv_prog_cxx_cross | |
15634 | ||
421173e6 PE |
15635 | cat > conftest.$ac_ext <<EOF |
15636 | #line 15637 "configure" | |
38bd7296 BK |
15637 | #include "confdefs.h" |
15638 | #include <math.h> | |
15639 | int main() { | |
15640 | _modfl(0, 0); | |
15641 | ; return 0; } | |
15642 | EOF | |
421173e6 | 15643 | if { (eval echo configure:15644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15644 | rm -rf conftest* |
421173e6 | 15645 | glibcpp_cv_func__modfl_use=yes |
38bd7296 BK |
15646 | else |
15647 | echo "configure: failed program was:" >&5 | |
15648 | cat conftest.$ac_ext >&5 | |
15649 | rm -rf conftest* | |
421173e6 | 15650 | glibcpp_cv_func__modfl_use=no |
38bd7296 BK |
15651 | fi |
15652 | rm -f conftest* | |
421173e6 | 15653 | ac_ext=c |
38bd7296 BK |
15654 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15655 | ac_cpp='$CPP $CPPFLAGS' | |
15656 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15657 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15658 | cross_compiling=$ac_cv_prog_cc_cross | |
15659 | ||
421173e6 PE |
15660 | |
15661 | fi | |
15662 | ||
15663 | echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6 | |
15664 | if test x$glibcpp_cv_func__modfl_use = x"yes"; then | |
38bd7296 BK |
15665 | for ac_func in _modfl |
15666 | do | |
15667 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15668 | echo "configure:15669: checking for $ac_func" >&5 |
38bd7296 BK |
15669 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15671 | else | |
15672 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15673 | #line 15674 "configure" |
38bd7296 BK |
15674 | #include "confdefs.h" |
15675 | /* System header to define __stub macros and hopefully few prototypes, | |
15676 | which can conflict with char $ac_func(); below. */ | |
15677 | #include <assert.h> | |
15678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15679 | /* We use char because int might match the return type of a gcc2 | |
15680 | builtin and then its argument prototype would still apply. */ | |
15681 | char $ac_func(); | |
15682 | ||
15683 | int main() { | |
15684 | ||
15685 | /* The GNU C library defines this for functions which it implements | |
15686 | to always fail with ENOSYS. Some functions are actually named | |
15687 | something starting with __ and the normal name is an alias. */ | |
15688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15689 | choke me | |
15690 | #else | |
15691 | $ac_func(); | |
15692 | #endif | |
15693 | ||
15694 | ; return 0; } | |
15695 | EOF | |
421173e6 | 15696 | if { (eval echo configure:15697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
15697 | rm -rf conftest* |
15698 | eval "ac_cv_func_$ac_func=yes" | |
15699 | else | |
15700 | echo "configure: failed program was:" >&5 | |
15701 | cat conftest.$ac_ext >&5 | |
15702 | rm -rf conftest* | |
15703 | eval "ac_cv_func_$ac_func=no" | |
15704 | fi | |
15705 | rm -f conftest* | |
15706 | fi | |
15707 | ||
15708 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15709 | echo "$ac_t""yes" 1>&6 | |
15710 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15711 | cat >> confdefs.h <<EOF | |
15712 | #define $ac_tr_func 1 | |
15713 | EOF | |
15714 | ||
15715 | else | |
15716 | echo "$ac_t""no" 1>&6 | |
15717 | fi | |
15718 | done | |
15719 | ||
15720 | fi | |
15721 | ||
15722 | ||
421173e6 PE |
15723 | echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6 |
15724 | echo "configure:15725: checking for _powl declaration" >&5 | |
15725 | if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then | |
15726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15727 | else | |
38bd7296 | 15728 | |
421173e6 PE |
15729 | |
15730 | ac_ext=C | |
38bd7296 BK |
15731 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15732 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15733 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15734 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15735 | cross_compiling=$ac_cv_prog_cxx_cross | |
15736 | ||
421173e6 PE |
15737 | cat > conftest.$ac_ext <<EOF |
15738 | #line 15739 "configure" | |
38bd7296 BK |
15739 | #include "confdefs.h" |
15740 | #include <math.h> | |
15741 | int main() { | |
15742 | _powl(0, 0); | |
15743 | ; return 0; } | |
15744 | EOF | |
421173e6 | 15745 | if { (eval echo configure:15746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15746 | rm -rf conftest* |
421173e6 | 15747 | glibcpp_cv_func__powl_use=yes |
38bd7296 BK |
15748 | else |
15749 | echo "configure: failed program was:" >&5 | |
15750 | cat conftest.$ac_ext >&5 | |
15751 | rm -rf conftest* | |
421173e6 | 15752 | glibcpp_cv_func__powl_use=no |
38bd7296 BK |
15753 | fi |
15754 | rm -f conftest* | |
421173e6 | 15755 | ac_ext=c |
38bd7296 BK |
15756 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15757 | ac_cpp='$CPP $CPPFLAGS' | |
15758 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15759 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15760 | cross_compiling=$ac_cv_prog_cc_cross | |
15761 | ||
421173e6 PE |
15762 | |
15763 | fi | |
15764 | ||
15765 | echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6 | |
15766 | if test x$glibcpp_cv_func__powl_use = x"yes"; then | |
38bd7296 BK |
15767 | for ac_func in _powl |
15768 | do | |
15769 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15770 | echo "configure:15771: checking for $ac_func" >&5 |
38bd7296 BK |
15771 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15773 | else | |
15774 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15775 | #line 15776 "configure" |
38bd7296 BK |
15776 | #include "confdefs.h" |
15777 | /* System header to define __stub macros and hopefully few prototypes, | |
15778 | which can conflict with char $ac_func(); below. */ | |
15779 | #include <assert.h> | |
15780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
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 $ac_func(); | |
15784 | ||
15785 | int main() { | |
15786 | ||
15787 | /* The GNU C library defines this for functions which it implements | |
15788 | to always fail with ENOSYS. Some functions are actually named | |
15789 | something starting with __ and the normal name is an alias. */ | |
15790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15791 | choke me | |
15792 | #else | |
15793 | $ac_func(); | |
15794 | #endif | |
15795 | ||
15796 | ; return 0; } | |
15797 | EOF | |
421173e6 | 15798 | if { (eval echo configure:15799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
15799 | rm -rf conftest* |
15800 | eval "ac_cv_func_$ac_func=yes" | |
15801 | else | |
15802 | echo "configure: failed program was:" >&5 | |
15803 | cat conftest.$ac_ext >&5 | |
15804 | rm -rf conftest* | |
15805 | eval "ac_cv_func_$ac_func=no" | |
15806 | fi | |
15807 | rm -f conftest* | |
15808 | fi | |
15809 | ||
15810 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15811 | echo "$ac_t""yes" 1>&6 | |
15812 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15813 | cat >> confdefs.h <<EOF | |
15814 | #define $ac_tr_func 1 | |
15815 | EOF | |
15816 | ||
15817 | else | |
15818 | echo "$ac_t""no" 1>&6 | |
15819 | fi | |
15820 | done | |
15821 | ||
15822 | fi | |
15823 | ||
15824 | ||
421173e6 PE |
15825 | echo $ac_n "checking for _sinl declaration""... $ac_c" 1>&6 |
15826 | echo "configure:15827: checking for _sinl declaration" >&5 | |
15827 | if eval "test \"`echo '$''{'glibcpp_cv_func__sinl_use'+set}'`\" = set"; then | |
15828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15829 | else | |
38bd7296 | 15830 | |
421173e6 PE |
15831 | |
15832 | ac_ext=C | |
38bd7296 BK |
15833 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15834 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15835 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15836 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15837 | cross_compiling=$ac_cv_prog_cxx_cross | |
15838 | ||
421173e6 PE |
15839 | cat > conftest.$ac_ext <<EOF |
15840 | #line 15841 "configure" | |
38bd7296 BK |
15841 | #include "confdefs.h" |
15842 | #include <math.h> | |
15843 | int main() { | |
11fc1858 | 15844 | _sinl(0); |
38bd7296 BK |
15845 | ; return 0; } |
15846 | EOF | |
421173e6 | 15847 | if { (eval echo configure:15848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15848 | rm -rf conftest* |
421173e6 | 15849 | glibcpp_cv_func__sinl_use=yes |
38bd7296 BK |
15850 | else |
15851 | echo "configure: failed program was:" >&5 | |
15852 | cat conftest.$ac_ext >&5 | |
15853 | rm -rf conftest* | |
421173e6 | 15854 | glibcpp_cv_func__sinl_use=no |
38bd7296 BK |
15855 | fi |
15856 | rm -f conftest* | |
421173e6 | 15857 | ac_ext=c |
38bd7296 BK |
15858 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15859 | ac_cpp='$CPP $CPPFLAGS' | |
15860 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15861 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15862 | cross_compiling=$ac_cv_prog_cc_cross | |
15863 | ||
421173e6 PE |
15864 | |
15865 | fi | |
15866 | ||
15867 | echo "$ac_t""$glibcpp_cv_func__sinl_use" 1>&6 | |
15868 | if test x$glibcpp_cv_func__sinl_use = x"yes"; then | |
38bd7296 BK |
15869 | for ac_func in _sinl |
15870 | do | |
15871 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15872 | echo "configure:15873: checking for $ac_func" >&5 |
38bd7296 BK |
15873 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15875 | else | |
15876 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15877 | #line 15878 "configure" |
38bd7296 BK |
15878 | #include "confdefs.h" |
15879 | /* System header to define __stub macros and hopefully few prototypes, | |
15880 | which can conflict with char $ac_func(); below. */ | |
15881 | #include <assert.h> | |
15882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15883 | /* We use char because int might match the return type of a gcc2 | |
15884 | builtin and then its argument prototype would still apply. */ | |
15885 | char $ac_func(); | |
15886 | ||
15887 | int main() { | |
15888 | ||
15889 | /* The GNU C library defines this for functions which it implements | |
15890 | to always fail with ENOSYS. Some functions are actually named | |
15891 | something starting with __ and the normal name is an alias. */ | |
15892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15893 | choke me | |
15894 | #else | |
15895 | $ac_func(); | |
15896 | #endif | |
15897 | ||
15898 | ; return 0; } | |
15899 | EOF | |
421173e6 | 15900 | if { (eval echo configure:15901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
15901 | rm -rf conftest* |
15902 | eval "ac_cv_func_$ac_func=yes" | |
15903 | else | |
15904 | echo "configure: failed program was:" >&5 | |
15905 | cat conftest.$ac_ext >&5 | |
15906 | rm -rf conftest* | |
15907 | eval "ac_cv_func_$ac_func=no" | |
15908 | fi | |
15909 | rm -f conftest* | |
15910 | fi | |
15911 | ||
15912 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15913 | echo "$ac_t""yes" 1>&6 | |
15914 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15915 | cat >> confdefs.h <<EOF | |
15916 | #define $ac_tr_func 1 | |
15917 | EOF | |
15918 | ||
15919 | else | |
15920 | echo "$ac_t""no" 1>&6 | |
15921 | fi | |
15922 | done | |
15923 | ||
15924 | fi | |
15925 | ||
15926 | ||
421173e6 PE |
15927 | echo $ac_n "checking for _sinhl declaration""... $ac_c" 1>&6 |
15928 | echo "configure:15929: checking for _sinhl declaration" >&5 | |
15929 | if eval "test \"`echo '$''{'glibcpp_cv_func__sinhl_use'+set}'`\" = set"; then | |
15930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15931 | else | |
38bd7296 | 15932 | |
421173e6 PE |
15933 | |
15934 | ac_ext=C | |
38bd7296 BK |
15935 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15936 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15937 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15938 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15939 | cross_compiling=$ac_cv_prog_cxx_cross | |
15940 | ||
421173e6 PE |
15941 | cat > conftest.$ac_ext <<EOF |
15942 | #line 15943 "configure" | |
38bd7296 BK |
15943 | #include "confdefs.h" |
15944 | #include <math.h> | |
15945 | int main() { | |
15946 | _sinhl(0); | |
15947 | ; return 0; } | |
15948 | EOF | |
421173e6 | 15949 | if { (eval echo configure:15950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 15950 | rm -rf conftest* |
421173e6 | 15951 | glibcpp_cv_func__sinhl_use=yes |
38bd7296 BK |
15952 | else |
15953 | echo "configure: failed program was:" >&5 | |
15954 | cat conftest.$ac_ext >&5 | |
15955 | rm -rf conftest* | |
421173e6 | 15956 | glibcpp_cv_func__sinhl_use=no |
38bd7296 BK |
15957 | fi |
15958 | rm -f conftest* | |
421173e6 | 15959 | ac_ext=c |
38bd7296 BK |
15960 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15961 | ac_cpp='$CPP $CPPFLAGS' | |
15962 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15963 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15964 | cross_compiling=$ac_cv_prog_cc_cross | |
15965 | ||
421173e6 PE |
15966 | |
15967 | fi | |
15968 | ||
15969 | echo "$ac_t""$glibcpp_cv_func__sinhl_use" 1>&6 | |
15970 | if test x$glibcpp_cv_func__sinhl_use = x"yes"; then | |
38bd7296 BK |
15971 | for ac_func in _sinhl |
15972 | do | |
15973 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 15974 | echo "configure:15975: checking for $ac_func" >&5 |
38bd7296 BK |
15975 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15977 | else | |
15978 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 15979 | #line 15980 "configure" |
38bd7296 BK |
15980 | #include "confdefs.h" |
15981 | /* System header to define __stub macros and hopefully few prototypes, | |
15982 | which can conflict with char $ac_func(); below. */ | |
15983 | #include <assert.h> | |
15984 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15985 | /* We use char because int might match the return type of a gcc2 | |
15986 | builtin and then its argument prototype would still apply. */ | |
15987 | char $ac_func(); | |
15988 | ||
15989 | int main() { | |
15990 | ||
15991 | /* The GNU C library defines this for functions which it implements | |
15992 | to always fail with ENOSYS. Some functions are actually named | |
15993 | something starting with __ and the normal name is an alias. */ | |
15994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15995 | choke me | |
15996 | #else | |
15997 | $ac_func(); | |
15998 | #endif | |
15999 | ||
16000 | ; return 0; } | |
16001 | EOF | |
421173e6 | 16002 | if { (eval echo configure:16003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
16003 | rm -rf conftest* |
16004 | eval "ac_cv_func_$ac_func=yes" | |
16005 | else | |
16006 | echo "configure: failed program was:" >&5 | |
16007 | cat conftest.$ac_ext >&5 | |
16008 | rm -rf conftest* | |
16009 | eval "ac_cv_func_$ac_func=no" | |
16010 | fi | |
16011 | rm -f conftest* | |
16012 | fi | |
16013 | ||
16014 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16015 | echo "$ac_t""yes" 1>&6 | |
16016 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16017 | cat >> confdefs.h <<EOF | |
16018 | #define $ac_tr_func 1 | |
16019 | EOF | |
16020 | ||
16021 | else | |
16022 | echo "$ac_t""no" 1>&6 | |
16023 | fi | |
16024 | done | |
16025 | ||
16026 | fi | |
16027 | ||
16028 | ||
421173e6 PE |
16029 | echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6 |
16030 | echo "configure:16031: checking for _sqrtl declaration" >&5 | |
16031 | if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then | |
16032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16033 | else | |
38bd7296 | 16034 | |
421173e6 PE |
16035 | |
16036 | ac_ext=C | |
38bd7296 BK |
16037 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16039 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16040 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16041 | cross_compiling=$ac_cv_prog_cxx_cross | |
16042 | ||
421173e6 PE |
16043 | cat > conftest.$ac_ext <<EOF |
16044 | #line 16045 "configure" | |
38bd7296 BK |
16045 | #include "confdefs.h" |
16046 | #include <math.h> | |
16047 | int main() { | |
16048 | _sqrtl(0); | |
16049 | ; return 0; } | |
16050 | EOF | |
421173e6 | 16051 | if { (eval echo configure:16052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 16052 | rm -rf conftest* |
421173e6 | 16053 | glibcpp_cv_func__sqrtl_use=yes |
38bd7296 BK |
16054 | else |
16055 | echo "configure: failed program was:" >&5 | |
16056 | cat conftest.$ac_ext >&5 | |
16057 | rm -rf conftest* | |
421173e6 | 16058 | glibcpp_cv_func__sqrtl_use=no |
38bd7296 BK |
16059 | fi |
16060 | rm -f conftest* | |
421173e6 | 16061 | ac_ext=c |
38bd7296 BK |
16062 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16063 | ac_cpp='$CPP $CPPFLAGS' | |
16064 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16065 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16066 | cross_compiling=$ac_cv_prog_cc_cross | |
16067 | ||
421173e6 PE |
16068 | |
16069 | fi | |
16070 | ||
16071 | echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6 | |
16072 | if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then | |
38bd7296 BK |
16073 | for ac_func in _sqrtl |
16074 | do | |
16075 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 16076 | echo "configure:16077: checking for $ac_func" >&5 |
38bd7296 BK |
16077 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16079 | else | |
16080 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16081 | #line 16082 "configure" |
38bd7296 BK |
16082 | #include "confdefs.h" |
16083 | /* System header to define __stub macros and hopefully few prototypes, | |
16084 | which can conflict with char $ac_func(); below. */ | |
16085 | #include <assert.h> | |
16086 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16087 | /* We use char because int might match the return type of a gcc2 | |
16088 | builtin and then its argument prototype would still apply. */ | |
16089 | char $ac_func(); | |
16090 | ||
16091 | int main() { | |
16092 | ||
16093 | /* The GNU C library defines this for functions which it implements | |
16094 | to always fail with ENOSYS. Some functions are actually named | |
16095 | something starting with __ and the normal name is an alias. */ | |
16096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16097 | choke me | |
16098 | #else | |
16099 | $ac_func(); | |
16100 | #endif | |
16101 | ||
16102 | ; return 0; } | |
16103 | EOF | |
421173e6 | 16104 | if { (eval echo configure:16105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
16105 | rm -rf conftest* |
16106 | eval "ac_cv_func_$ac_func=yes" | |
16107 | else | |
16108 | echo "configure: failed program was:" >&5 | |
16109 | cat conftest.$ac_ext >&5 | |
16110 | rm -rf conftest* | |
16111 | eval "ac_cv_func_$ac_func=no" | |
16112 | fi | |
16113 | rm -f conftest* | |
16114 | fi | |
16115 | ||
16116 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16117 | echo "$ac_t""yes" 1>&6 | |
16118 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16119 | cat >> confdefs.h <<EOF | |
16120 | #define $ac_tr_func 1 | |
16121 | EOF | |
16122 | ||
16123 | else | |
16124 | echo "$ac_t""no" 1>&6 | |
16125 | fi | |
16126 | done | |
16127 | ||
16128 | fi | |
16129 | ||
16130 | ||
421173e6 PE |
16131 | echo $ac_n "checking for _tanl declaration""... $ac_c" 1>&6 |
16132 | echo "configure:16133: checking for _tanl declaration" >&5 | |
16133 | if eval "test \"`echo '$''{'glibcpp_cv_func__tanl_use'+set}'`\" = set"; then | |
16134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16135 | else | |
38bd7296 | 16136 | |
421173e6 PE |
16137 | |
16138 | ac_ext=C | |
38bd7296 BK |
16139 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16140 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16141 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16142 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16143 | cross_compiling=$ac_cv_prog_cxx_cross | |
16144 | ||
421173e6 PE |
16145 | cat > conftest.$ac_ext <<EOF |
16146 | #line 16147 "configure" | |
38bd7296 BK |
16147 | #include "confdefs.h" |
16148 | #include <math.h> | |
16149 | int main() { | |
16150 | _tanl(0); | |
16151 | ; return 0; } | |
16152 | EOF | |
421173e6 | 16153 | if { (eval echo configure:16154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 16154 | rm -rf conftest* |
421173e6 | 16155 | glibcpp_cv_func__tanl_use=yes |
38bd7296 BK |
16156 | else |
16157 | echo "configure: failed program was:" >&5 | |
16158 | cat conftest.$ac_ext >&5 | |
16159 | rm -rf conftest* | |
421173e6 | 16160 | glibcpp_cv_func__tanl_use=no |
38bd7296 BK |
16161 | fi |
16162 | rm -f conftest* | |
421173e6 | 16163 | ac_ext=c |
38bd7296 BK |
16164 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16165 | ac_cpp='$CPP $CPPFLAGS' | |
16166 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16167 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16168 | cross_compiling=$ac_cv_prog_cc_cross | |
16169 | ||
421173e6 PE |
16170 | |
16171 | fi | |
16172 | ||
16173 | echo "$ac_t""$glibcpp_cv_func__tanl_use" 1>&6 | |
16174 | if test x$glibcpp_cv_func__tanl_use = x"yes"; then | |
38bd7296 BK |
16175 | for ac_func in _tanl |
16176 | do | |
16177 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 16178 | echo "configure:16179: checking for $ac_func" >&5 |
38bd7296 BK |
16179 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16181 | else | |
16182 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16183 | #line 16184 "configure" |
38bd7296 BK |
16184 | #include "confdefs.h" |
16185 | /* System header to define __stub macros and hopefully few prototypes, | |
16186 | which can conflict with char $ac_func(); below. */ | |
16187 | #include <assert.h> | |
16188 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16189 | /* We use char because int might match the return type of a gcc2 | |
16190 | builtin and then its argument prototype would still apply. */ | |
16191 | char $ac_func(); | |
16192 | ||
16193 | int main() { | |
16194 | ||
16195 | /* The GNU C library defines this for functions which it implements | |
16196 | to always fail with ENOSYS. Some functions are actually named | |
16197 | something starting with __ and the normal name is an alias. */ | |
16198 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16199 | choke me | |
16200 | #else | |
16201 | $ac_func(); | |
16202 | #endif | |
16203 | ||
16204 | ; return 0; } | |
16205 | EOF | |
421173e6 | 16206 | if { (eval echo configure:16207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
16207 | rm -rf conftest* |
16208 | eval "ac_cv_func_$ac_func=yes" | |
16209 | else | |
16210 | echo "configure: failed program was:" >&5 | |
16211 | cat conftest.$ac_ext >&5 | |
16212 | rm -rf conftest* | |
16213 | eval "ac_cv_func_$ac_func=no" | |
16214 | fi | |
16215 | rm -f conftest* | |
16216 | fi | |
16217 | ||
16218 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16219 | echo "$ac_t""yes" 1>&6 | |
16220 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16221 | cat >> confdefs.h <<EOF | |
16222 | #define $ac_tr_func 1 | |
16223 | EOF | |
16224 | ||
16225 | else | |
16226 | echo "$ac_t""no" 1>&6 | |
16227 | fi | |
16228 | done | |
16229 | ||
16230 | fi | |
16231 | ||
16232 | ||
421173e6 PE |
16233 | echo $ac_n "checking for _tanhl declaration""... $ac_c" 1>&6 |
16234 | echo "configure:16235: checking for _tanhl declaration" >&5 | |
16235 | if eval "test \"`echo '$''{'glibcpp_cv_func__tanhl_use'+set}'`\" = set"; then | |
16236 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16237 | else | |
38bd7296 | 16238 | |
421173e6 PE |
16239 | |
16240 | ac_ext=C | |
38bd7296 BK |
16241 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16242 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16243 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16244 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16245 | cross_compiling=$ac_cv_prog_cxx_cross | |
16246 | ||
421173e6 PE |
16247 | cat > conftest.$ac_ext <<EOF |
16248 | #line 16249 "configure" | |
38bd7296 BK |
16249 | #include "confdefs.h" |
16250 | #include <math.h> | |
16251 | int main() { | |
16252 | _tanhl(0); | |
16253 | ; return 0; } | |
16254 | EOF | |
421173e6 | 16255 | if { (eval echo configure:16256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 16256 | rm -rf conftest* |
421173e6 | 16257 | glibcpp_cv_func__tanhl_use=yes |
38bd7296 BK |
16258 | else |
16259 | echo "configure: failed program was:" >&5 | |
16260 | cat conftest.$ac_ext >&5 | |
16261 | rm -rf conftest* | |
421173e6 | 16262 | glibcpp_cv_func__tanhl_use=no |
38bd7296 BK |
16263 | fi |
16264 | rm -f conftest* | |
421173e6 | 16265 | ac_ext=c |
38bd7296 BK |
16266 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16267 | ac_cpp='$CPP $CPPFLAGS' | |
16268 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16269 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16270 | cross_compiling=$ac_cv_prog_cc_cross | |
16271 | ||
421173e6 PE |
16272 | |
16273 | fi | |
16274 | ||
16275 | echo "$ac_t""$glibcpp_cv_func__tanhl_use" 1>&6 | |
16276 | if test x$glibcpp_cv_func__tanhl_use = x"yes"; then | |
38bd7296 BK |
16277 | for ac_func in _tanhl |
16278 | do | |
16279 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 16280 | echo "configure:16281: checking for $ac_func" >&5 |
38bd7296 BK |
16281 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16282 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16283 | else | |
16284 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16285 | #line 16286 "configure" |
38bd7296 BK |
16286 | #include "confdefs.h" |
16287 | /* System header to define __stub macros and hopefully few prototypes, | |
16288 | which can conflict with char $ac_func(); below. */ | |
16289 | #include <assert.h> | |
16290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16291 | /* We use char because int might match the return type of a gcc2 | |
16292 | builtin and then its argument prototype would still apply. */ | |
16293 | char $ac_func(); | |
16294 | ||
16295 | int main() { | |
16296 | ||
16297 | /* The GNU C library defines this for functions which it implements | |
16298 | to always fail with ENOSYS. Some functions are actually named | |
16299 | something starting with __ and the normal name is an alias. */ | |
16300 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16301 | choke me | |
16302 | #else | |
16303 | $ac_func(); | |
16304 | #endif | |
16305 | ||
16306 | ; return 0; } | |
16307 | EOF | |
421173e6 | 16308 | if { (eval echo configure:16309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
16309 | rm -rf conftest* |
16310 | eval "ac_cv_func_$ac_func=yes" | |
16311 | else | |
16312 | echo "configure: failed program was:" >&5 | |
16313 | cat conftest.$ac_ext >&5 | |
16314 | rm -rf conftest* | |
16315 | eval "ac_cv_func_$ac_func=no" | |
16316 | fi | |
16317 | rm -f conftest* | |
16318 | fi | |
16319 | ||
16320 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16321 | echo "$ac_t""yes" 1>&6 | |
16322 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16323 | cat >> confdefs.h <<EOF | |
16324 | #define $ac_tr_func 1 | |
16325 | EOF | |
16326 | ||
16327 | else | |
16328 | echo "$ac_t""no" 1>&6 | |
16329 | fi | |
16330 | done | |
16331 | ||
16332 | fi | |
16333 | ||
16334 | ||
421173e6 PE |
16335 | echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6 |
16336 | echo "configure:16337: checking for _sincosl declaration" >&5 | |
16337 | if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then | |
16338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16339 | else | |
38bd7296 | 16340 | |
421173e6 PE |
16341 | |
16342 | ac_ext=C | |
38bd7296 BK |
16343 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16344 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16345 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16346 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16347 | cross_compiling=$ac_cv_prog_cxx_cross | |
16348 | ||
421173e6 PE |
16349 | cat > conftest.$ac_ext <<EOF |
16350 | #line 16351 "configure" | |
38bd7296 BK |
16351 | #include "confdefs.h" |
16352 | #include <math.h> | |
16353 | int main() { | |
16354 | _sincosl(0, 0, 0); | |
16355 | ; return 0; } | |
16356 | EOF | |
421173e6 | 16357 | if { (eval echo configure:16358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 16358 | rm -rf conftest* |
421173e6 | 16359 | glibcpp_cv_func__sincosl_use=yes |
38bd7296 BK |
16360 | else |
16361 | echo "configure: failed program was:" >&5 | |
16362 | cat conftest.$ac_ext >&5 | |
16363 | rm -rf conftest* | |
421173e6 | 16364 | glibcpp_cv_func__sincosl_use=no |
38bd7296 BK |
16365 | fi |
16366 | rm -f conftest* | |
421173e6 | 16367 | ac_ext=c |
38bd7296 BK |
16368 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16369 | ac_cpp='$CPP $CPPFLAGS' | |
16370 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16371 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16372 | cross_compiling=$ac_cv_prog_cc_cross | |
16373 | ||
421173e6 PE |
16374 | |
16375 | fi | |
16376 | ||
16377 | echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6 | |
16378 | if test x$glibcpp_cv_func__sincosl_use = x"yes"; then | |
38bd7296 BK |
16379 | for ac_func in _sincosl |
16380 | do | |
16381 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 16382 | echo "configure:16383: checking for $ac_func" >&5 |
38bd7296 BK |
16383 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16385 | else | |
16386 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16387 | #line 16388 "configure" |
38bd7296 BK |
16388 | #include "confdefs.h" |
16389 | /* System header to define __stub macros and hopefully few prototypes, | |
16390 | which can conflict with char $ac_func(); below. */ | |
16391 | #include <assert.h> | |
16392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16393 | /* We use char because int might match the return type of a gcc2 | |
16394 | builtin and then its argument prototype would still apply. */ | |
16395 | char $ac_func(); | |
16396 | ||
16397 | int main() { | |
16398 | ||
16399 | /* The GNU C library defines this for functions which it implements | |
16400 | to always fail with ENOSYS. Some functions are actually named | |
16401 | something starting with __ and the normal name is an alias. */ | |
16402 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16403 | choke me | |
16404 | #else | |
16405 | $ac_func(); | |
16406 | #endif | |
16407 | ||
16408 | ; return 0; } | |
16409 | EOF | |
421173e6 | 16410 | if { (eval echo configure:16411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
16411 | rm -rf conftest* |
16412 | eval "ac_cv_func_$ac_func=yes" | |
16413 | else | |
16414 | echo "configure: failed program was:" >&5 | |
16415 | cat conftest.$ac_ext >&5 | |
16416 | rm -rf conftest* | |
16417 | eval "ac_cv_func_$ac_func=no" | |
16418 | fi | |
16419 | rm -f conftest* | |
16420 | fi | |
16421 | ||
16422 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16423 | echo "$ac_t""yes" 1>&6 | |
16424 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16425 | cat >> confdefs.h <<EOF | |
16426 | #define $ac_tr_func 1 | |
16427 | EOF | |
16428 | ||
16429 | else | |
16430 | echo "$ac_t""no" 1>&6 | |
16431 | fi | |
16432 | done | |
16433 | ||
16434 | fi | |
16435 | ||
16436 | ||
421173e6 PE |
16437 | echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6 |
16438 | echo "configure:16439: checking for _finitel declaration" >&5 | |
16439 | if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then | |
16440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16441 | else | |
38bd7296 | 16442 | |
421173e6 PE |
16443 | |
16444 | ac_ext=C | |
38bd7296 BK |
16445 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16446 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16447 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16448 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16449 | cross_compiling=$ac_cv_prog_cxx_cross | |
16450 | ||
421173e6 PE |
16451 | cat > conftest.$ac_ext <<EOF |
16452 | #line 16453 "configure" | |
38bd7296 BK |
16453 | #include "confdefs.h" |
16454 | #include <math.h> | |
16455 | int main() { | |
16456 | _finitel(0); | |
16457 | ; return 0; } | |
16458 | EOF | |
421173e6 | 16459 | if { (eval echo configure:16460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 | 16460 | rm -rf conftest* |
421173e6 | 16461 | glibcpp_cv_func__finitel_use=yes |
38bd7296 BK |
16462 | else |
16463 | echo "configure: failed program was:" >&5 | |
16464 | cat conftest.$ac_ext >&5 | |
16465 | rm -rf conftest* | |
421173e6 | 16466 | glibcpp_cv_func__finitel_use=no |
38bd7296 BK |
16467 | fi |
16468 | rm -f conftest* | |
421173e6 | 16469 | ac_ext=c |
38bd7296 BK |
16470 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
16471 | ac_cpp='$CPP $CPPFLAGS' | |
16472 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16473 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16474 | cross_compiling=$ac_cv_prog_cc_cross | |
16475 | ||
421173e6 PE |
16476 | |
16477 | fi | |
16478 | ||
16479 | echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6 | |
16480 | if test x$glibcpp_cv_func__finitel_use = x"yes"; then | |
38bd7296 BK |
16481 | for ac_func in _finitel |
16482 | do | |
16483 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 16484 | echo "configure:16485: checking for $ac_func" >&5 |
38bd7296 BK |
16485 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16487 | else | |
16488 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16489 | #line 16490 "configure" |
38bd7296 BK |
16490 | #include "confdefs.h" |
16491 | /* System header to define __stub macros and hopefully few prototypes, | |
16492 | which can conflict with char $ac_func(); below. */ | |
16493 | #include <assert.h> | |
16494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16495 | /* We use char because int might match the return type of a gcc2 | |
16496 | builtin and then its argument prototype would still apply. */ | |
16497 | char $ac_func(); | |
16498 | ||
16499 | int main() { | |
16500 | ||
16501 | /* The GNU C library defines this for functions which it implements | |
16502 | to always fail with ENOSYS. Some functions are actually named | |
16503 | something starting with __ and the normal name is an alias. */ | |
16504 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16505 | choke me | |
16506 | #else | |
16507 | $ac_func(); | |
16508 | #endif | |
16509 | ||
16510 | ; return 0; } | |
16511 | EOF | |
421173e6 | 16512 | if { (eval echo configure:16513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
16513 | rm -rf conftest* |
16514 | eval "ac_cv_func_$ac_func=yes" | |
16515 | else | |
16516 | echo "configure: failed program was:" >&5 | |
16517 | cat conftest.$ac_ext >&5 | |
16518 | rm -rf conftest* | |
16519 | eval "ac_cv_func_$ac_func=no" | |
16520 | fi | |
16521 | rm -f conftest* | |
16522 | fi | |
16523 | ||
16524 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16525 | echo "$ac_t""yes" 1>&6 | |
16526 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16527 | cat >> confdefs.h <<EOF | |
16528 | #define $ac_tr_func 1 | |
16529 | EOF | |
16530 | ||
16531 | else | |
16532 | echo "$ac_t""no" 1>&6 | |
16533 | fi | |
16534 | done | |
16535 | ||
16536 | fi | |
16537 | ||
16538 | ||
16539 | LIBS="$ac_save_LIBS" | |
16540 | CXXFLAGS="$ac_save_CXXFLAGS" | |
16541 | ||
16542 | ||
16543 | for ac_hdr in complex.h | |
16544 | do | |
16545 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
16546 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
421173e6 | 16547 | echo "configure:16548: checking for $ac_hdr" >&5 |
38bd7296 BK |
16548 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16549 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16550 | else | |
16551 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16552 | #line 16553 "configure" |
38bd7296 BK |
16553 | #include "confdefs.h" |
16554 | #include <$ac_hdr> | |
16555 | EOF | |
16556 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
421173e6 | 16557 | { (eval echo configure:16558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
38bd7296 BK |
16558 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16559 | if test -z "$ac_err"; then | |
16560 | rm -rf conftest* | |
16561 | eval "ac_cv_header_$ac_safe=yes" | |
16562 | else | |
16563 | echo "$ac_err" >&5 | |
16564 | echo "configure: failed program was:" >&5 | |
16565 | cat conftest.$ac_ext >&5 | |
16566 | rm -rf conftest* | |
16567 | eval "ac_cv_header_$ac_safe=no" | |
16568 | fi | |
16569 | rm -f conftest* | |
16570 | fi | |
16571 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16572 | echo "$ac_t""yes" 1>&6 | |
16573 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16574 | cat >> confdefs.h <<EOF | |
16575 | #define $ac_tr_hdr 1 | |
16576 | EOF | |
16577 | ||
16578 | else | |
16579 | echo "$ac_t""no" 1>&6 | |
16580 | fi | |
16581 | done | |
16582 | ||
16583 | for ac_func in ccos ccosf ccosh ccoshf cexp cexpf c_log c_logf \ | |
16584 | clog10 clog10f cpow cpowf csin csinf csinh csinhf csqrt csqrtf \ | |
11fc1858 | 16585 | ctan ctanf ctanh ctanhf carg cargf nan hypot hypotf atan2f expf copysignf |
38bd7296 BK |
16586 | do |
16587 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 16588 | echo "configure:16589: checking for $ac_func" >&5 |
38bd7296 BK |
16589 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16591 | else | |
16592 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16593 | #line 16594 "configure" |
38bd7296 BK |
16594 | #include "confdefs.h" |
16595 | /* System header to define __stub macros and hopefully few prototypes, | |
16596 | which can conflict with char $ac_func(); below. */ | |
16597 | #include <assert.h> | |
16598 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16599 | /* We use char because int might match the return type of a gcc2 | |
16600 | builtin and then its argument prototype would still apply. */ | |
16601 | char $ac_func(); | |
16602 | ||
16603 | int main() { | |
16604 | ||
16605 | /* The GNU C library defines this for functions which it implements | |
16606 | to always fail with ENOSYS. Some functions are actually named | |
16607 | something starting with __ and the normal name is an alias. */ | |
16608 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16609 | choke me | |
16610 | #else | |
16611 | $ac_func(); | |
16612 | #endif | |
16613 | ||
16614 | ; return 0; } | |
16615 | EOF | |
421173e6 | 16616 | if { (eval echo configure:16617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
16617 | rm -rf conftest* |
16618 | eval "ac_cv_func_$ac_func=yes" | |
16619 | else | |
16620 | echo "configure: failed program was:" >&5 | |
16621 | cat conftest.$ac_ext >&5 | |
16622 | rm -rf conftest* | |
16623 | eval "ac_cv_func_$ac_func=no" | |
16624 | fi | |
16625 | rm -f conftest* | |
16626 | fi | |
16627 | ||
16628 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16629 | echo "$ac_t""yes" 1>&6 | |
16630 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16631 | cat >> confdefs.h <<EOF | |
16632 | #define $ac_tr_func 1 | |
16633 | EOF | |
16634 | ||
16635 | else | |
16636 | echo "$ac_t""no" 1>&6 | |
16637 | LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" | |
16638 | fi | |
16639 | done | |
16640 | ||
16641 | ||
16642 | ||
11fc1858 BK |
16643 | USE_COMPLEX_LONG_DOUBLE=no |
16644 | if test x$ac_cv_func_atan2l = x"yes" \ | |
16645 | && test x$ac_cv_func_copysignl = x"yes"; then | |
16646 | USE_COMPLEX_LONG_DOUBLE=yes | |
16647 | for ac_func in ccoshl ccosl cexpl cpowl csinhl csinl \ | |
16648 | csqrtl ctanhl ctanl cargl hypotl signbitl c_logl clog10l | |
38bd7296 BK |
16649 | do |
16650 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 16651 | echo "configure:16652: checking for $ac_func" >&5 |
38bd7296 BK |
16652 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16654 | else | |
16655 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16656 | #line 16657 "configure" |
38bd7296 BK |
16657 | #include "confdefs.h" |
16658 | /* System header to define __stub macros and hopefully few prototypes, | |
16659 | which can conflict with char $ac_func(); below. */ | |
16660 | #include <assert.h> | |
16661 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16662 | /* We use char because int might match the return type of a gcc2 | |
16663 | builtin and then its argument prototype would still apply. */ | |
16664 | char $ac_func(); | |
16665 | ||
16666 | int main() { | |
16667 | ||
16668 | /* The GNU C library defines this for functions which it implements | |
16669 | to always fail with ENOSYS. Some functions are actually named | |
16670 | something starting with __ and the normal name is an alias. */ | |
16671 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16672 | choke me | |
16673 | #else | |
16674 | $ac_func(); | |
16675 | #endif | |
16676 | ||
16677 | ; return 0; } | |
16678 | EOF | |
421173e6 | 16679 | if { (eval echo configure:16680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
38bd7296 BK |
16680 | rm -rf conftest* |
16681 | eval "ac_cv_func_$ac_func=yes" | |
16682 | else | |
16683 | echo "configure: failed program was:" >&5 | |
16684 | cat conftest.$ac_ext >&5 | |
16685 | rm -rf conftest* | |
16686 | eval "ac_cv_func_$ac_func=no" | |
16687 | fi | |
16688 | rm -f conftest* | |
16689 | fi | |
16690 | ||
16691 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16692 | echo "$ac_t""yes" 1>&6 | |
16693 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16694 | cat >> confdefs.h <<EOF | |
16695 | #define $ac_tr_func 1 | |
16696 | EOF | |
16697 | ||
16698 | else | |
16699 | echo "$ac_t""no" 1>&6 | |
16700 | LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" | |
16701 | fi | |
16702 | done | |
16703 | ||
16704 | ||
11fc1858 | 16705 | fi |
38bd7296 BK |
16706 | |
16707 | ||
16708 | ||
16709 | ||
16710 | ||
16711 | ||
16712 | echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6 | |
421173e6 | 16713 | echo "configure:16714: checking for GNU C++ __complex__ support" >&5 |
38bd7296 BK |
16714 | if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then |
16715 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16716 | else | |
16717 | ||
16718 | ||
16719 | ac_ext=C | |
16720 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16721 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16722 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16723 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16724 | cross_compiling=$ac_cv_prog_cxx_cross | |
16725 | ||
16726 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16727 | #line 16728 "configure" |
38bd7296 BK |
16728 | #include "confdefs.h" |
16729 | struct dcomplex { __complex__ double x; }; \ | |
16730 | dcomplex f(const dcomplex& x) { return dcomplex(x); } | |
16731 | int main() { | |
16732 | \ | |
16733 | dcomplex x; f(x); | |
16734 | ; return 0; } | |
16735 | EOF | |
421173e6 | 16736 | if { (eval echo configure:16737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
38bd7296 BK |
16737 | rm -rf conftest* |
16738 | glibcpp_cv_complex=ok | |
2f103494 BK |
16739 | else |
16740 | echo "configure: failed program was:" >&5 | |
16741 | cat conftest.$ac_ext >&5 | |
16742 | rm -rf conftest* | |
16743 | glibcpp_cv_complex=buggy | |
16744 | ||
16745 | fi | |
16746 | rm -f conftest* | |
16747 | ac_ext=c | |
16748 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16749 | ac_cpp='$CPP $CPPFLAGS' | |
16750 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16751 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16752 | cross_compiling=$ac_cv_prog_cc_cross | |
16753 | ||
16754 | ||
16755 | fi | |
16756 | ||
16757 | echo "$ac_t""$glibcpp_cv_complex" 1>&6 | |
16758 | if test $glibcpp_cv_complex = buggy; then | |
16759 | cat >> confdefs.h <<\EOF | |
16760 | #define _GLIBCPP_BUGGY_COMPLEX 1 | |
16761 | EOF | |
16762 | ||
16763 | fi | |
16764 | ||
16765 | echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6 | |
421173e6 | 16766 | echo "configure:16767: checking for GNU C++ __complex__ float support" >&5 |
2f103494 BK |
16767 | if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then |
16768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16769 | else | |
16770 | ||
16771 | ||
16772 | ac_ext=C | |
16773 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16774 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16775 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16776 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16777 | cross_compiling=$ac_cv_prog_cxx_cross | |
16778 | ||
16779 | rm -f conftest.h | |
16780 | cat > conftest.h <<EOB | |
16781 | // | |
16782 | // Check for buggy __complex__ that causes ICE in most versions of egcs | |
16783 | // and gcc-2.95.x on certain platforms (eg., x86-win32). | |
16784 | // | |
16785 | // See http://egcs.cygnus.com/ml/gcc-bugs/1999-07/msg00845.html for | |
16786 | // more info on the bug itself. | |
16787 | // | |
16788 | struct | |
16789 | float_complex | |
16790 | { | |
16791 | __complex__ float m_value; | |
16792 | float_complex (float = 0.0f, float = 0.0f); | |
16793 | float_complex (__complex__ float val) : m_value (val) {} | |
16794 | float_complex foo (const float_complex &val) | |
16795 | { return float_complex (~val.m_value); } | |
16796 | }; | |
16797 | EOB | |
16798 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16799 | #line 16800 "configure" |
2f103494 BK |
16800 | #include "confdefs.h" |
16801 | #include "conftest.h" | |
16802 | int main() { | |
16803 | ||
16804 | ; return 0; } | |
16805 | EOF | |
421173e6 | 16806 | if { (eval echo configure:16807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2f103494 BK |
16807 | rm -rf conftest* |
16808 | glibcpp_cv_float_complex=ok | |
16809 | else | |
16810 | echo "configure: failed program was:" >&5 | |
16811 | cat conftest.$ac_ext >&5 | |
16812 | rm -rf conftest* | |
16813 | glibcpp_cv_float_complex=buggy | |
16814 | ||
16815 | fi | |
16816 | rm -f conftest* | |
16817 | ac_ext=c | |
16818 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16819 | ac_cpp='$CPP $CPPFLAGS' | |
16820 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16821 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16822 | cross_compiling=$ac_cv_prog_cc_cross | |
16823 | ||
16824 | ||
16825 | fi | |
16826 | ||
16827 | echo "$ac_t""$glibcpp_cv_float_complex" 1>&6 | |
16828 | if test $glibcpp_cv_float_complex = buggy; then | |
16829 | cat >> confdefs.h <<\EOF | |
16830 | #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1 | |
16831 | EOF | |
16832 | ||
16833 | fi | |
b2dad0e3 BK |
16834 | |
16835 | ||
3840fa2a BK |
16836 | |
16837 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` | |
b2dad0e3 | 16838 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
421173e6 | 16839 | echo "configure:16840: checking for wchar.h" >&5 |
b2dad0e3 BK |
16840 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16842 | else | |
16843 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16844 | #line 16845 "configure" |
b2dad0e3 BK |
16845 | #include "confdefs.h" |
16846 | #include <wchar.h> | |
16847 | EOF | |
16848 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
421173e6 | 16849 | { (eval echo configure:16850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b2dad0e3 BK |
16850 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16851 | if test -z "$ac_err"; then | |
16852 | rm -rf conftest* | |
16853 | eval "ac_cv_header_$ac_safe=yes" | |
16854 | else | |
16855 | echo "$ac_err" >&5 | |
16856 | echo "configure: failed program was:" >&5 | |
16857 | cat conftest.$ac_ext >&5 | |
16858 | rm -rf conftest* | |
16859 | eval "ac_cv_header_$ac_safe=no" | |
16860 | fi | |
16861 | rm -f conftest* | |
16862 | fi | |
16863 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16864 | echo "$ac_t""yes" 1>&6 | |
3840fa2a BK |
16865 | ac_has_wchar_h=yes |
16866 | else | |
16867 | echo "$ac_t""no" 1>&6 | |
16868 | ac_has_wchar_h=no | |
16869 | fi | |
16870 | ||
16871 | ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'` | |
16872 | echo $ac_n "checking for wctype.h""... $ac_c" 1>&6 | |
421173e6 | 16873 | echo "configure:16874: checking for wctype.h" >&5 |
3840fa2a BK |
16874 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16876 | else | |
b2dad0e3 | 16877 | cat > conftest.$ac_ext <<EOF |
421173e6 | 16878 | #line 16879 "configure" |
3840fa2a BK |
16879 | #include "confdefs.h" |
16880 | #include <wctype.h> | |
16881 | EOF | |
16882 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
421173e6 | 16883 | { (eval echo configure:16884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3840fa2a BK |
16884 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16885 | if test -z "$ac_err"; then | |
16886 | rm -rf conftest* | |
16887 | eval "ac_cv_header_$ac_safe=yes" | |
16888 | else | |
16889 | echo "$ac_err" >&5 | |
16890 | echo "configure: failed program was:" >&5 | |
16891 | cat conftest.$ac_ext >&5 | |
16892 | rm -rf conftest* | |
16893 | eval "ac_cv_header_$ac_safe=no" | |
16894 | fi | |
16895 | rm -f conftest* | |
16896 | fi | |
16897 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16898 | echo "$ac_t""yes" 1>&6 | |
16899 | ac_has_wctype_h=yes | |
16900 | else | |
16901 | echo "$ac_t""no" 1>&6 | |
16902 | ac_has_wctype_h=no | |
16903 | fi | |
16904 | ||
16905 | ||
16906 | if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes; then | |
16907 | ||
16908 | echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 | |
421173e6 | 16909 | echo "configure:16910: checking for mbstate_t" >&5 |
3840fa2a | 16910 | cat > conftest.$ac_ext <<EOF |
421173e6 | 16911 | #line 16912 "configure" |
b2dad0e3 BK |
16912 | #include "confdefs.h" |
16913 | #include <wchar.h> | |
16914 | int main() { | |
16915 | mbstate_t teststate; | |
16916 | ; return 0; } | |
16917 | EOF | |
421173e6 | 16918 | if { (eval echo configure:16919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
16919 | rm -rf conftest* |
16920 | use_native_mbstatet=yes | |
16921 | else | |
16922 | echo "configure: failed program was:" >&5 | |
16923 | cat conftest.$ac_ext >&5 | |
16924 | rm -rf conftest* | |
16925 | use_native_mbstatet=no | |
16926 | fi | |
16927 | rm -f conftest* | |
3840fa2a BK |
16928 | echo "$ac_t""$use_native_mbstatet" 1>&6 |
16929 | if test x"$use_native_mbstatet" = xno; then | |
16930 | cat >> confdefs.h <<\EOF | |
b2dad0e3 BK |
16931 | #define _GLIBCPP_NEED_MBSTATE_T 1 |
16932 | EOF | |
16933 | ||
3840fa2a | 16934 | fi |
b2dad0e3 | 16935 | |
3840fa2a | 16936 | echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6 |
421173e6 | 16937 | echo "configure:16938: checking for WCHAR_MIN and WCHAR_MAX" >&5 |
3840fa2a | 16938 | cat > conftest.$ac_ext <<EOF |
421173e6 | 16939 | #line 16940 "configure" |
b2dad0e3 BK |
16940 | #include "confdefs.h" |
16941 | #include <wchar.h> | |
16942 | int main() { | |
16943 | int i = WCHAR_MIN; int j = WCHAR_MAX; | |
16944 | ; return 0; } | |
16945 | EOF | |
421173e6 | 16946 | if { (eval echo configure:16947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
16947 | rm -rf conftest* |
16948 | has_wchar_minmax=yes | |
16949 | else | |
16950 | echo "configure: failed program was:" >&5 | |
16951 | cat conftest.$ac_ext >&5 | |
16952 | rm -rf conftest* | |
16953 | has_wchar_minmax=no | |
16954 | fi | |
16955 | rm -f conftest* | |
3840fa2a | 16956 | echo "$ac_t""$has_wchar_minmax" 1>&6 |
b2dad0e3 | 16957 | |
3840fa2a | 16958 | echo $ac_n "checking for WEOF""... $ac_c" 1>&6 |
421173e6 | 16959 | echo "configure:16960: checking for WEOF" >&5 |
3840fa2a | 16960 | cat > conftest.$ac_ext <<EOF |
421173e6 | 16961 | #line 16962 "configure" |
b2dad0e3 BK |
16962 | #include "confdefs.h" |
16963 | ||
3840fa2a BK |
16964 | #include <wchar.h> |
16965 | #include <stddef.h> | |
b2dad0e3 BK |
16966 | int main() { |
16967 | wint_t i = WEOF; | |
16968 | ; return 0; } | |
16969 | EOF | |
421173e6 | 16970 | if { (eval echo configure:16971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
16971 | rm -rf conftest* |
16972 | has_weof=yes | |
16973 | else | |
16974 | echo "configure: failed program was:" >&5 | |
16975 | cat conftest.$ac_ext >&5 | |
16976 | rm -rf conftest* | |
16977 | has_weof=no | |
16978 | fi | |
16979 | rm -f conftest* | |
3840fa2a | 16980 | echo "$ac_t""$has_weof" 1>&6 |
b2dad0e3 | 16981 | |
3840fa2a | 16982 | for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset |
b2dad0e3 BK |
16983 | do |
16984 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 16985 | echo "configure:16986: checking for $ac_func" >&5 |
b2dad0e3 BK |
16986 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16987 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16988 | else | |
16989 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 16990 | #line 16991 "configure" |
b2dad0e3 BK |
16991 | #include "confdefs.h" |
16992 | /* System header to define __stub macros and hopefully few prototypes, | |
16993 | which can conflict with char $ac_func(); below. */ | |
16994 | #include <assert.h> | |
16995 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16996 | /* We use char because int might match the return type of a gcc2 | |
16997 | builtin and then its argument prototype would still apply. */ | |
16998 | char $ac_func(); | |
16999 | ||
17000 | int main() { | |
17001 | ||
17002 | /* The GNU C library defines this for functions which it implements | |
17003 | to always fail with ENOSYS. Some functions are actually named | |
17004 | something starting with __ and the normal name is an alias. */ | |
17005 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17006 | choke me | |
17007 | #else | |
17008 | $ac_func(); | |
17009 | #endif | |
17010 | ||
17011 | ; return 0; } | |
17012 | EOF | |
421173e6 | 17013 | if { (eval echo configure:17014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 BK |
17014 | rm -rf conftest* |
17015 | eval "ac_cv_func_$ac_func=yes" | |
17016 | else | |
17017 | echo "configure: failed program was:" >&5 | |
17018 | cat conftest.$ac_ext >&5 | |
17019 | rm -rf conftest* | |
17020 | eval "ac_cv_func_$ac_func=no" | |
17021 | fi | |
17022 | rm -f conftest* | |
17023 | fi | |
17024 | ||
17025 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17026 | echo "$ac_t""yes" 1>&6 | |
17027 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17028 | cat >> confdefs.h <<EOF | |
17029 | #define $ac_tr_func 1 | |
17030 | EOF | |
3840fa2a | 17031 | ac_wfuncs=yes |
b2dad0e3 BK |
17032 | else |
17033 | echo "$ac_t""no" 1>&6 | |
3840fa2a | 17034 | ac_wfuncs=no |
b2dad0e3 BK |
17035 | fi |
17036 | done | |
17037 | ||
17038 | ||
3840fa2a | 17039 | echo $ac_n "checking for ISO C9X wchar_t support""... $ac_c" 1>&6 |
421173e6 | 17040 | echo "configure:17041: checking for ISO C9X wchar_t support" >&5 |
3840fa2a BK |
17041 | if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes && test x"$ac_wfuncs" = xyes; then |
17042 | ac_isoC9X_wchar_t=yes | |
17043 | else | |
17044 | ac_isoC9X_wchar_t=no | |
17045 | fi | |
17046 | echo "$ac_t""$ac_isoC9X_wchar_t" 1>&6 | |
b2dad0e3 | 17047 | |
3840fa2a BK |
17048 | ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'` |
17049 | echo $ac_n "checking for iconv.h""... $ac_c" 1>&6 | |
421173e6 | 17050 | echo "configure:17051: checking for iconv.h" >&5 |
3840fa2a BK |
17051 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17053 | else | |
17054 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 17055 | #line 17056 "configure" |
3840fa2a BK |
17056 | #include "confdefs.h" |
17057 | #include <iconv.h> | |
b2dad0e3 | 17058 | EOF |
3840fa2a | 17059 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
421173e6 | 17060 | { (eval echo configure:17061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3840fa2a BK |
17061 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17062 | if test -z "$ac_err"; then | |
17063 | rm -rf conftest* | |
17064 | eval "ac_cv_header_$ac_safe=yes" | |
17065 | else | |
17066 | echo "$ac_err" >&5 | |
17067 | echo "configure: failed program was:" >&5 | |
17068 | cat conftest.$ac_ext >&5 | |
17069 | rm -rf conftest* | |
17070 | eval "ac_cv_header_$ac_safe=no" | |
17071 | fi | |
17072 | rm -f conftest* | |
17073 | fi | |
17074 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17075 | echo "$ac_t""yes" 1>&6 | |
17076 | ac_has_iconv_h=yes | |
b2dad0e3 BK |
17077 | else |
17078 | echo "$ac_t""no" 1>&6 | |
3840fa2a BK |
17079 | ac_has_iconv_h=no |
17080 | fi | |
b2dad0e3 | 17081 | |
3840fa2a BK |
17082 | for ac_func in iconv_open iconv_close iconv |
17083 | do | |
17084 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 17085 | echo "configure:17086: checking for $ac_func" >&5 |
3840fa2a BK |
17086 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17088 | else | |
17089 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 17090 | #line 17091 "configure" |
3840fa2a BK |
17091 | #include "confdefs.h" |
17092 | /* System header to define __stub macros and hopefully few prototypes, | |
17093 | which can conflict with char $ac_func(); below. */ | |
17094 | #include <assert.h> | |
17095 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17096 | /* We use char because int might match the return type of a gcc2 | |
17097 | builtin and then its argument prototype would still apply. */ | |
17098 | char $ac_func(); | |
17099 | ||
17100 | int main() { | |
17101 | ||
17102 | /* The GNU C library defines this for functions which it implements | |
17103 | to always fail with ENOSYS. Some functions are actually named | |
17104 | something starting with __ and the normal name is an alias. */ | |
17105 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17106 | choke me | |
17107 | #else | |
17108 | $ac_func(); | |
17109 | #endif | |
17110 | ||
17111 | ; return 0; } | |
b2dad0e3 | 17112 | EOF |
421173e6 | 17113 | if { (eval echo configure:17114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3840fa2a BK |
17114 | rm -rf conftest* |
17115 | eval "ac_cv_func_$ac_func=yes" | |
17116 | else | |
17117 | echo "configure: failed program was:" >&5 | |
17118 | cat conftest.$ac_ext >&5 | |
17119 | rm -rf conftest* | |
17120 | eval "ac_cv_func_$ac_func=no" | |
17121 | fi | |
17122 | rm -f conftest* | |
17123 | fi | |
b2dad0e3 | 17124 | |
3840fa2a BK |
17125 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17126 | echo "$ac_t""yes" 1>&6 | |
17127 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17128 | cat >> confdefs.h <<EOF | |
17129 | #define $ac_tr_func 1 | |
17130 | EOF | |
17131 | ac_XPG2funcs=yes | |
17132 | else | |
17133 | echo "$ac_t""no" 1>&6 | |
17134 | ac_XPG2funcs=no | |
b2dad0e3 | 17135 | fi |
3840fa2a BK |
17136 | done |
17137 | ||
17138 | ||
17139 | echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6 | |
421173e6 | 17140 | echo "configure:17141: checking for XPG2 wchar_t support" >&5 |
3840fa2a BK |
17141 | if test x"$ac_has_iconv_h" = xyes && test x"$ac_XPG2funcs" = xyes; then |
17142 | ac_XPG2_wchar_t=yes | |
17143 | else | |
17144 | ac_XPG2_wchar_t=no | |
17145 | fi | |
17146 | echo "$ac_t""$ac_XPG2_wchar_t" 1>&6 | |
17147 | ||
dd75251f BK |
17148 | # ac_isoC9X_wchar_t=no |
17149 | ||
17150 | echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6 | |
421173e6 | 17151 | echo "configure:17152: checking for enabled wchar_t specializations" >&5 |
3840fa2a BK |
17152 | if test x"$ac_isoC9X_wchar_t" = xyes && test x"$ac_XPG2_wchar_t" = xyes; then |
17153 | libinst_wstring_la="libinst-wstring.la" | |
17154 | cat >> confdefs.h <<\EOF | |
17155 | #define _GLIBCPP_USE_WCHAR_T 1 | |
17156 | EOF | |
17157 | ||
17158 | echo "$ac_t"""yes"" 1>&6 | |
17159 | else | |
17160 | libinst_wstring_la="" | |
17161 | echo "$ac_t"""no"" 1>&6 | |
17162 | fi | |
17163 | ||
b2dad0e3 | 17164 | |
3840fa2a BK |
17165 | else |
17166 | echo "configure: warning: <wchar.h> not found" 1>&2 | |
17167 | cat >> confdefs.h <<\EOF | |
17168 | #define _GLIBCPP_NEED_MBSTATE_T 1 | |
17169 | EOF | |
17170 | ||
17171 | fi | |
b2dad0e3 BK |
17172 | |
17173 | ||
17174 | ac_safe=`echo "ctype.h" | sed 'y%./+-%__p_%'` | |
17175 | echo $ac_n "checking for ctype.h""... $ac_c" 1>&6 | |
421173e6 | 17176 | echo "configure:17177: checking for ctype.h" >&5 |
b2dad0e3 BK |
17177 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17179 | else | |
17180 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 17181 | #line 17182 "configure" |
b2dad0e3 BK |
17182 | #include "confdefs.h" |
17183 | #include <ctype.h> | |
17184 | EOF | |
17185 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
421173e6 | 17186 | { (eval echo configure:17187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b2dad0e3 BK |
17187 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17188 | if test -z "$ac_err"; then | |
17189 | rm -rf conftest* | |
17190 | eval "ac_cv_header_$ac_safe=yes" | |
17191 | else | |
17192 | echo "$ac_err" >&5 | |
17193 | echo "configure: failed program was:" >&5 | |
17194 | cat conftest.$ac_ext >&5 | |
17195 | rm -rf conftest* | |
17196 | eval "ac_cv_header_$ac_safe=no" | |
17197 | fi | |
17198 | rm -f conftest* | |
17199 | fi | |
17200 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17201 | echo "$ac_t""yes" 1>&6 | |
17202 | ||
17203 | ||
17204 | ctype_default=yes | |
17205 | ||
8445e42a | 17206 | echo $ac_n "checking <ctype> for gnu-linux ""... $ac_c" 1>&6 |
421173e6 | 17207 | echo "configure:17208: checking <ctype> for gnu-linux " >&5 |
b2dad0e3 | 17208 | cat > conftest.$ac_ext <<EOF |
421173e6 | 17209 | #line 17210 "configure" |
b2dad0e3 BK |
17210 | #include "confdefs.h" |
17211 | #include <ctype.h> | |
17212 | int main() { | |
17213 | int | |
17214 | foo (int a) | |
17215 | { return _ISspace + _ISprint + _IScntrl + _ISupper + _ISlower + _ISalpha \ | |
17216 | + _ISdigit + _ISpunct + _ISxdigit + _ISalnum + _ISgraph \ | |
17217 | + __ctype_tolower[a] + __ctype_toupper[a] + __ctype_b[a];} | |
17218 | ; return 0; } | |
17219 | EOF | |
421173e6 | 17220 | if { (eval echo configure:17221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
17221 | rm -rf conftest* |
17222 | \ | |
17223 | ctype_linux=yes | |
17224 | else | |
17225 | echo "configure: failed program was:" >&5 | |
17226 | cat conftest.$ac_ext >&5 | |
17227 | rm -rf conftest* | |
17228 | ctype_linux=no | |
17229 | fi | |
17230 | rm -f conftest* | |
17231 | echo "$ac_t""$ctype_linux" 1>&6 | |
17232 | if test $ctype_linux = "yes"; then | |
17233 | ctype_include_dir="config/gnu-linux" | |
17234 | ctype_default=no | |
17235 | fi | |
17236 | ||
65dd21b7 LR |
17237 | if test $ctype_default = "yes"; then |
17238 | echo $ac_n "checking <ctype> for freebsd 4.0 ""... $ac_c" 1>&6 | |
421173e6 | 17239 | echo "configure:17240: checking <ctype> for freebsd 4.0 " >&5 |
7b267e3e | 17240 | cat > conftest.$ac_ext <<EOF |
421173e6 | 17241 | #line 17242 "configure" |
7b267e3e BK |
17242 | #include "confdefs.h" |
17243 | #include <ctype.h> | |
17244 | int main() { | |
17245 | int | |
17246 | foo (int a) | |
17247 | { return _CTYPE_S + _CTYPE_R + _CTYPE_C + _CTYPE_U + _CTYPE_L + _CTYPE_A \ | |
17248 | + _CTYPE_D + _CTYPE_P + _CTYPE_X + _CTYPE_G ;} | |
17249 | ; return 0; } | |
17250 | EOF | |
421173e6 | 17251 | if { (eval echo configure:17252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7b267e3e BK |
17252 | rm -rf conftest* |
17253 | \ | |
17254 | ctype_bsd=yes | |
17255 | else | |
17256 | echo "configure: failed program was:" >&5 | |
17257 | cat conftest.$ac_ext >&5 | |
17258 | rm -rf conftest* | |
17259 | ctype_bsd=no | |
17260 | fi | |
17261 | rm -f conftest* | |
17262 | echo "$ac_t""$ctype_bsd" 1>&6 | |
17263 | if test $ctype_bsd = "yes"; then | |
17264 | ctype_include_dir="config/bsd" | |
17265 | ctype_default=no | |
65dd21b7 | 17266 | fi |
7b267e3e BK |
17267 | fi |
17268 | ||
65dd21b7 LR |
17269 | if test $ctype_default = "yes"; then |
17270 | echo $ac_n "checking <ctype> for freebsd 3.4 ""... $ac_c" 1>&6 | |
421173e6 | 17271 | echo "configure:17272: checking <ctype> for freebsd 3.4 " >&5 |
6ad50467 | 17272 | cat > conftest.$ac_ext <<EOF |
421173e6 | 17273 | #line 17274 "configure" |
6ad50467 BK |
17274 | #include "confdefs.h" |
17275 | #include <ctype.h> | |
17276 | int main() { | |
17277 | int | |
17278 | foo (int a) | |
17279 | { return _S + _R + _C + _U + _L + _A \ | |
17280 | + _D + _P + _X + _G + __istype (a, 0);} | |
17281 | ; return 0; } | |
17282 | EOF | |
421173e6 | 17283 | if { (eval echo configure:17284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6ad50467 BK |
17284 | rm -rf conftest* |
17285 | \ | |
17286 | ctype_freebsd34=yes | |
17287 | else | |
17288 | echo "configure: failed program was:" >&5 | |
17289 | cat conftest.$ac_ext >&5 | |
17290 | rm -rf conftest* | |
17291 | ctype_freebsd34=no | |
17292 | fi | |
17293 | rm -f conftest* | |
17294 | echo "$ac_t""$ctype_freebsd34" 1>&6 | |
17295 | if test $ctype_freebsd34 = "yes"; then | |
17296 | ctype_include_dir="config/bsd" | |
17297 | ctype_default=no | |
65dd21b7 | 17298 | fi |
6ad50467 BK |
17299 | fi |
17300 | ||
b2dad0e3 | 17301 | if test $ctype_default = "yes"; then |
8445e42a | 17302 | echo $ac_n "checking <ctype> for solaris 2.6,7,8 ""... $ac_c" 1>&6 |
421173e6 | 17303 | echo "configure:17304: checking <ctype> for solaris 2.6,7,8 " >&5 |
b2dad0e3 | 17304 | cat > conftest.$ac_ext <<EOF |
421173e6 | 17305 | #line 17306 "configure" |
b2dad0e3 BK |
17306 | #include "confdefs.h" |
17307 | #include <ctype.h> | |
17308 | int main() { | |
17309 | int | |
17310 | foo (int a) | |
17311 | { return _ISSPACE + _ISPRINT + _ISCNTRL + _ISUPPER + _ISLOWER + _ISALPHA \ | |
17312 | + _ISDIGIT + _ISPUNCT + _ISXDIGIT + _ISALNUM + _ISGRAPH \ | |
17313 | + __trans_lower[a] + __trans_upper[a] + __ctype_mask[a];} | |
17314 | ; return 0; } | |
17315 | EOF | |
421173e6 | 17316 | if { (eval echo configure:17317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
17317 | rm -rf conftest* |
17318 | \ | |
17319 | ctype_solaris=yes | |
17320 | else | |
17321 | echo "configure: failed program was:" >&5 | |
17322 | cat conftest.$ac_ext >&5 | |
17323 | rm -rf conftest* | |
17324 | ctype_solaris=no | |
17325 | fi | |
17326 | rm -f conftest* | |
17327 | echo "$ac_t""$ctype_solaris" 1>&6 | |
17328 | ||
17329 | if test $ctype_solaris = "yes"; then | |
17330 | echo $ac_n "checking for version""... $ac_c" 1>&6 | |
421173e6 | 17331 | echo "configure:17332: checking for version" >&5 |
b2dad0e3 BK |
17332 | ac_ext=C |
17333 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17334 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17335 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17336 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17337 | cross_compiling=$ac_cv_prog_cxx_cross | |
17338 | ||
17339 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 17340 | #line 17341 "configure" |
b2dad0e3 BK |
17341 | #include "confdefs.h" |
17342 | #include <ctype.h> | |
17343 | int main() { | |
17344 | typedef long* __to_type; __to_type const& _M_toupper = __trans_upper; | |
17345 | ; return 0; } | |
17346 | EOF | |
421173e6 | 17347 | if { (eval echo configure:17348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
17348 | rm -rf conftest* |
17349 | \ | |
17350 | ctype_solaris26=yes | |
17351 | else | |
17352 | echo "configure: failed program was:" >&5 | |
17353 | cat conftest.$ac_ext >&5 | |
17354 | rm -rf conftest* | |
17355 | ctype_solaris26=no | |
17356 | fi | |
17357 | rm -f conftest* | |
17358 | ac_ext=c | |
17359 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17360 | ac_cpp='$CPP $CPPFLAGS' | |
17361 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17362 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17363 | cross_compiling=$ac_cv_prog_cc_cross | |
17364 | ||
17365 | if test $ctype_solaris26 = "yes"; then | |
17366 | ctype_include_dir="config/solaris/solaris2.6" | |
17367 | echo "$ac_t"""solaris2.6"" 1>&6 | |
17368 | ctype_default=no | |
17369 | else | |
17370 | ctype_include_dir="config/solaris/solaris2.7" | |
32a4595e | 17371 | echo "$ac_t"""solaris2.7,8"" 1>&6 |
b2dad0e3 BK |
17372 | ctype_default=no |
17373 | fi | |
17374 | fi | |
17375 | fi | |
17376 | ||
17377 | if test $ctype_default = "yes"; then | |
8445e42a | 17378 | echo $ac_n "checking <ctype> for solaris 2.5.1 ""... $ac_c" 1>&6 |
421173e6 | 17379 | echo "configure:17380: checking <ctype> for solaris 2.5.1 " >&5 |
b2dad0e3 | 17380 | cat > conftest.$ac_ext <<EOF |
421173e6 | 17381 | #line 17382 "configure" |
b2dad0e3 BK |
17382 | #include "confdefs.h" |
17383 | #include <ctype.h> | |
17384 | int main() { | |
17385 | int | |
17386 | foo (int a) | |
17387 | { return _U + _L + _N + _S + _P + _C + _X + _B \ | |
17388 | + __ctype[a];} | |
17389 | ; return 0; } | |
17390 | EOF | |
421173e6 | 17391 | if { (eval echo configure:17392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
17392 | rm -rf conftest* |
17393 | \ | |
17394 | ctype_solaris25=yes | |
17395 | else | |
17396 | echo "configure: failed program was:" >&5 | |
17397 | cat conftest.$ac_ext >&5 | |
17398 | rm -rf conftest* | |
17399 | ctype_solaris25=no | |
17400 | fi | |
17401 | rm -f conftest* | |
17402 | echo "$ac_t""$ctype_solaris25" 1>&6 | |
17403 | if test $ctype_solaris25 = "yes"; then | |
17404 | ctype_include_dir="config/solaris/solaris2.5" | |
17405 | ctype_default=no | |
17406 | fi | |
17407 | fi | |
17408 | ||
17409 | if test $ctype_default = "yes"; then | |
8445e42a | 17410 | echo $ac_n "checking <ctype> for aix ""... $ac_c" 1>&6 |
421173e6 | 17411 | echo "configure:17412: checking <ctype> for aix " >&5 |
b2dad0e3 | 17412 | cat > conftest.$ac_ext <<EOF |
421173e6 | 17413 | #line 17414 "configure" |
b2dad0e3 BK |
17414 | #include "confdefs.h" |
17415 | #include <ctype.h> | |
17416 | int main() { | |
17417 | int | |
17418 | foo (int a) | |
17419 | { return _ISSPACE + _ISPRINT + _ISCNTRL + _ISUPPER + _ISLOWER + _ISALPHA \ | |
17420 | + _ISDIGIT + _ISPUNCT + _ISXDIGIT + _ISALNUM + _ISGRAPH \ | |
17421 | + _VALC('a') + _IS('c', 0);} | |
17422 | ; return 0; } | |
17423 | EOF | |
421173e6 | 17424 | if { (eval echo configure:17425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
17425 | rm -rf conftest* |
17426 | \ | |
17427 | ctype_aix=yes | |
17428 | else | |
17429 | echo "configure: failed program was:" >&5 | |
17430 | cat conftest.$ac_ext >&5 | |
17431 | rm -rf conftest* | |
17432 | ctype_aix=no | |
17433 | fi | |
17434 | rm -f conftest* | |
17435 | echo "$ac_t""$ctype_aix" 1>&6 | |
17436 | if test $ctype_aix = "yes"; then | |
17437 | ctype_include_dir="config/aix" | |
17438 | ctype_default=no | |
17439 | fi | |
17440 | fi | |
17441 | ||
17442 | if test $ctype_default = "yes"; then | |
8445e42a | 17443 | echo $ac_n "checking <ctype> for newlib ""... $ac_c" 1>&6 |
421173e6 | 17444 | echo "configure:17445: checking <ctype> for newlib " >&5 |
b2dad0e3 | 17445 | cat > conftest.$ac_ext <<EOF |
421173e6 | 17446 | #line 17447 "configure" |
b2dad0e3 BK |
17447 | #include "confdefs.h" |
17448 | #include <ctype.h> | |
17449 | int main() { | |
17450 | int | |
17451 | foo (int a) | |
17452 | { return _U + _L + _N + _S + _P + _C + _X + _B \ | |
17453 | + _ctype_[a];} | |
17454 | ; return 0; } | |
17455 | EOF | |
421173e6 | 17456 | if { (eval echo configure:17457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b2dad0e3 BK |
17457 | rm -rf conftest* |
17458 | \ | |
17459 | ctype_newlib=yes | |
17460 | else | |
17461 | echo "configure: failed program was:" >&5 | |
17462 | cat conftest.$ac_ext >&5 | |
17463 | rm -rf conftest* | |
17464 | ctype_newlib=no | |
17465 | fi | |
17466 | rm -f conftest* | |
17467 | echo "$ac_t""$ctype_newlib" 1>&6 | |
17468 | if test $ctype_newlib = "yes"; then | |
17469 | ctype_include_dir="config/newlib" | |
17470 | ctype_default=no | |
17471 | fi | |
17472 | fi | |
17473 | ||
17474 | if test $ctype_default = "yes"; then | |
17475 | ctype_include_dir="config/generic" | |
17476 | echo "configure: warning: "Using default ctype headers."" 1>&2 | |
17477 | fi | |
17478 | ||
17479 | ||
17480 | else | |
17481 | echo "$ac_t""no" 1>&6 | |
17482 | fi | |
17483 | ||
17484 | ||
17485 | ||
17486 | for ac_hdr in unistd.h | |
17487 | do | |
17488 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17489 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
421173e6 | 17490 | echo "configure:17491: checking for $ac_hdr" >&5 |
b2dad0e3 BK |
17491 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17493 | else | |
17494 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 17495 | #line 17496 "configure" |
b2dad0e3 BK |
17496 | #include "confdefs.h" |
17497 | #include <$ac_hdr> | |
17498 | EOF | |
17499 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
421173e6 | 17500 | { (eval echo configure:17501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b2dad0e3 BK |
17501 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17502 | if test -z "$ac_err"; then | |
17503 | rm -rf conftest* | |
17504 | eval "ac_cv_header_$ac_safe=yes" | |
17505 | else | |
17506 | echo "$ac_err" >&5 | |
17507 | echo "configure: failed program was:" >&5 | |
17508 | cat conftest.$ac_ext >&5 | |
17509 | rm -rf conftest* | |
17510 | eval "ac_cv_header_$ac_safe=no" | |
17511 | fi | |
17512 | rm -f conftest* | |
17513 | fi | |
17514 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17515 | echo "$ac_t""yes" 1>&6 | |
17516 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17517 | cat >> confdefs.h <<EOF | |
17518 | #define $ac_tr_hdr 1 | |
17519 | EOF | |
17520 | ||
17521 | else | |
17522 | echo "$ac_t""no" 1>&6 | |
17523 | fi | |
17524 | done | |
17525 | ||
17526 | for ac_func in getpagesize | |
17527 | do | |
17528 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
421173e6 | 17529 | echo "configure:17530: checking for $ac_func" >&5 |
b2dad0e3 BK |
17530 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17532 | else | |
17533 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 17534 | #line 17535 "configure" |
b2dad0e3 BK |
17535 | #include "confdefs.h" |
17536 | /* System header to define __stub macros and hopefully few prototypes, | |
17537 | which can conflict with char $ac_func(); below. */ | |
17538 | #include <assert.h> | |
17539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17540 | /* We use char because int might match the return type of a gcc2 | |
17541 | builtin and then its argument prototype would still apply. */ | |
17542 | char $ac_func(); | |
17543 | ||
17544 | int main() { | |
17545 | ||
17546 | /* The GNU C library defines this for functions which it implements | |
17547 | to always fail with ENOSYS. Some functions are actually named | |
17548 | something starting with __ and the normal name is an alias. */ | |
17549 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17550 | choke me | |
17551 | #else | |
17552 | $ac_func(); | |
17553 | #endif | |
17554 | ||
17555 | ; return 0; } | |
17556 | EOF | |
421173e6 | 17557 | if { (eval echo configure:17558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 BK |
17558 | rm -rf conftest* |
17559 | eval "ac_cv_func_$ac_func=yes" | |
17560 | else | |
17561 | echo "configure: failed program was:" >&5 | |
17562 | cat conftest.$ac_ext >&5 | |
17563 | rm -rf conftest* | |
17564 | eval "ac_cv_func_$ac_func=no" | |
17565 | fi | |
17566 | rm -f conftest* | |
17567 | fi | |
17568 | ||
17569 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17570 | echo "$ac_t""yes" 1>&6 | |
17571 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17572 | cat >> confdefs.h <<EOF | |
17573 | #define $ac_tr_func 1 | |
17574 | EOF | |
17575 | ||
17576 | else | |
17577 | echo "$ac_t""no" 1>&6 | |
17578 | fi | |
17579 | done | |
17580 | ||
17581 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
421173e6 | 17582 | echo "configure:17583: checking for working mmap" >&5 |
b2dad0e3 BK |
17583 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
17584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17585 | else | |
17586 | if test "$cross_compiling" = yes; then | |
17587 | ac_cv_func_mmap_fixed_mapped=no | |
17588 | else | |
17589 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 17590 | #line 17591 "configure" |
b2dad0e3 BK |
17591 | #include "confdefs.h" |
17592 | ||
17593 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
17594 | Here is a matrix of mmap possibilities: | |
17595 | mmap private not fixed | |
17596 | mmap private fixed at somewhere currently unmapped | |
17597 | mmap private fixed at somewhere already mapped | |
17598 | mmap shared not fixed | |
17599 | mmap shared fixed at somewhere currently unmapped | |
17600 | mmap shared fixed at somewhere already mapped | |
17601 | For private mappings, we should verify that changes cannot be read() | |
17602 | back from the file, nor mmap's back from the file at a different | |
17603 | address. (There have been systems where private was not correctly | |
17604 | implemented like the infamous i386 svr4.0, and systems where the | |
17605 | VM page cache was not coherent with the filesystem buffer cache | |
17606 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
17607 | For shared mappings, we should conversely verify that changes get | |
17608 | propogated back to all the places they're supposed to be. | |
17609 | ||
17610 | Grep wants private fixed already mapped. | |
17611 | The main things grep needs to know about mmap are: | |
17612 | * does it exist and is it safe to write into the mmap'd area | |
17613 | * how to use it (BSD variants) */ | |
17614 | #include <sys/types.h> | |
17615 | #include <fcntl.h> | |
17616 | #include <sys/mman.h> | |
17617 | ||
17618 | /* This mess was copied from the GNU getpagesize.h. */ | |
17619 | #ifndef HAVE_GETPAGESIZE | |
17620 | # ifdef HAVE_UNISTD_H | |
17621 | # include <unistd.h> | |
17622 | # endif | |
17623 | ||
17624 | /* Assume that all systems that can run configure have sys/param.h. */ | |
17625 | # ifndef HAVE_SYS_PARAM_H | |
17626 | # define HAVE_SYS_PARAM_H 1 | |
17627 | # endif | |
17628 | ||
17629 | # ifdef _SC_PAGESIZE | |
17630 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
17631 | # else /* no _SC_PAGESIZE */ | |
17632 | # ifdef HAVE_SYS_PARAM_H | |
17633 | # include <sys/param.h> | |
17634 | # ifdef EXEC_PAGESIZE | |
17635 | # define getpagesize() EXEC_PAGESIZE | |
17636 | # else /* no EXEC_PAGESIZE */ | |
17637 | # ifdef NBPG | |
17638 | # define getpagesize() NBPG * CLSIZE | |
17639 | # ifndef CLSIZE | |
17640 | # define CLSIZE 1 | |
17641 | # endif /* no CLSIZE */ | |
17642 | # else /* no NBPG */ | |
17643 | # ifdef NBPC | |
17644 | # define getpagesize() NBPC | |
17645 | # else /* no NBPC */ | |
17646 | # ifdef PAGESIZE | |
17647 | # define getpagesize() PAGESIZE | |
17648 | # endif /* PAGESIZE */ | |
17649 | # endif /* no NBPC */ | |
17650 | # endif /* no NBPG */ | |
17651 | # endif /* no EXEC_PAGESIZE */ | |
17652 | # else /* no HAVE_SYS_PARAM_H */ | |
17653 | # define getpagesize() 8192 /* punt totally */ | |
17654 | # endif /* no HAVE_SYS_PARAM_H */ | |
17655 | # endif /* no _SC_PAGESIZE */ | |
17656 | ||
17657 | #endif /* no HAVE_GETPAGESIZE */ | |
17658 | ||
17659 | #ifdef __cplusplus | |
17660 | extern "C" { void *malloc(unsigned); } | |
17661 | #else | |
17662 | char *malloc(); | |
17663 | #endif | |
17664 | ||
17665 | int | |
17666 | main() | |
17667 | { | |
17668 | char *data, *data2, *data3; | |
17669 | int i, pagesize; | |
17670 | int fd; | |
17671 | ||
17672 | pagesize = getpagesize(); | |
17673 | ||
17674 | /* | |
17675 | * First, make a file with some known garbage in it. | |
17676 | */ | |
17677 | data = malloc(pagesize); | |
17678 | if (!data) | |
17679 | exit(1); | |
17680 | for (i = 0; i < pagesize; ++i) | |
17681 | *(data + i) = rand(); | |
17682 | umask(0); | |
17683 | fd = creat("conftestmmap", 0600); | |
17684 | if (fd < 0) | |
17685 | exit(1); | |
17686 | if (write(fd, data, pagesize) != pagesize) | |
17687 | exit(1); | |
17688 | close(fd); | |
17689 | ||
17690 | /* | |
17691 | * Next, try to mmap the file at a fixed address which | |
17692 | * already has something else allocated at it. If we can, | |
17693 | * also make sure that we see the same garbage. | |
17694 | */ | |
17695 | fd = open("conftestmmap", O_RDWR); | |
17696 | if (fd < 0) | |
17697 | exit(1); | |
17698 | data2 = malloc(2 * pagesize); | |
17699 | if (!data2) | |
17700 | exit(1); | |
17701 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
17702 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
17703 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
17704 | exit(1); | |
17705 | for (i = 0; i < pagesize; ++i) | |
17706 | if (*(data + i) != *(data2 + i)) | |
17707 | exit(1); | |
17708 | ||
17709 | /* | |
17710 | * Finally, make sure that changes to the mapped area | |
17711 | * do not percolate back to the file as seen by read(). | |
17712 | * (This is a bug on some variants of i386 svr4.0.) | |
17713 | */ | |
17714 | for (i = 0; i < pagesize; ++i) | |
17715 | *(data2 + i) = *(data2 + i) + 1; | |
17716 | data3 = malloc(pagesize); | |
17717 | if (!data3) | |
17718 | exit(1); | |
17719 | if (read(fd, data3, pagesize) != pagesize) | |
17720 | exit(1); | |
17721 | for (i = 0; i < pagesize; ++i) | |
17722 | if (*(data + i) != *(data3 + i)) | |
17723 | exit(1); | |
17724 | close(fd); | |
17725 | unlink("conftestmmap"); | |
17726 | exit(0); | |
17727 | } | |
17728 | ||
17729 | EOF | |
421173e6 | 17730 | if { (eval echo configure:17731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
b2dad0e3 BK |
17731 | then |
17732 | ac_cv_func_mmap_fixed_mapped=yes | |
17733 | else | |
17734 | echo "configure: failed program was:" >&5 | |
17735 | cat conftest.$ac_ext >&5 | |
17736 | rm -fr conftest* | |
17737 | ac_cv_func_mmap_fixed_mapped=no | |
17738 | fi | |
17739 | rm -fr conftest* | |
17740 | fi | |
17741 | ||
17742 | fi | |
17743 | ||
17744 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
17745 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
17746 | cat >> confdefs.h <<\EOF | |
17747 | #define HAVE_MMAP 1 | |
17748 | EOF | |
17749 | ||
17750 | fi | |
17751 | ||
17752 | fi | |
17753 | ||
17754 | ||
17755 | ||
17756 | if test "$CANADIAN" = yes; then | |
17757 | CANADIAN_TRUE= | |
17758 | CANADIAN_FALSE='#' | |
17759 | else | |
17760 | CANADIAN_TRUE='#' | |
17761 | CANADIAN_FALSE= | |
17762 | fi | |
17763 | ||
17764 | ||
17765 | if test "$NULL_TARGET" = yes; then | |
17766 | NULL_TARGET_TRUE= | |
17767 | NULL_TARGET_FALSE='#' | |
17768 | else | |
17769 | NULL_TARGET_TRUE='#' | |
17770 | NULL_TARGET_FALSE= | |
17771 | fi | |
17772 | ||
17773 | ||
17774 | if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then | |
17775 | NATIVE_TRUE= | |
17776 | NATIVE_FALSE='#' | |
17777 | else | |
17778 | NATIVE_TRUE='#' | |
17779 | NATIVE_FALSE= | |
17780 | fi | |
17781 | ||
17782 | ||
17783 | if test -z "$with_cross_host"; then | |
17784 | USE_LIBDIR_TRUE= | |
17785 | USE_LIBDIR_FALSE='#' | |
17786 | else | |
17787 | USE_LIBDIR_TRUE='#' | |
17788 | USE_LIBDIR_FALSE= | |
17789 | fi | |
17790 | ||
17791 | if test $ac_cv_header_locale_h = yes; then | |
17792 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
421173e6 | 17793 | echo "configure:17794: checking for LC_MESSAGES" >&5 |
b2dad0e3 BK |
17794 | if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
17795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17796 | else | |
17797 | cat > conftest.$ac_ext <<EOF | |
421173e6 | 17798 | #line 17799 "configure" |
b2dad0e3 BK |
17799 | #include "confdefs.h" |
17800 | #include <locale.h> | |
17801 | int main() { | |
17802 | return LC_MESSAGES | |
17803 | ; return 0; } | |
17804 | EOF | |
421173e6 | 17805 | if { (eval echo configure:17806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b2dad0e3 BK |
17806 | rm -rf conftest* |
17807 | ac_cv_val_LC_MESSAGES=yes | |
17808 | else | |
17809 | echo "configure: failed program was:" >&5 | |
17810 | cat conftest.$ac_ext >&5 | |
17811 | rm -rf conftest* | |
17812 | ac_cv_val_LC_MESSAGES=no | |
17813 | fi | |
17814 | rm -f conftest* | |
17815 | fi | |
17816 | ||
17817 | echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6 | |
17818 | if test $ac_cv_val_LC_MESSAGES = yes; then | |
17819 | cat >> confdefs.h <<\EOF | |
17820 | #define HAVE_LC_MESSAGES 1 | |
17821 | EOF | |
17822 | ||
17823 | fi | |
17824 | fi | |
17825 | ||
17826 | ||
b2dad0e3 BK |
17827 | if test "${multilib}" = "yes"; then |
17828 | multilib_arg="--enable-multilib" | |
17829 | else | |
17830 | multilib_arg= | |
17831 | fi | |
17832 | ||
17833 | ||
17834 | # Generate the various Makefiles, include files, and scripts. | |
17835 | ||
17836 | # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am | |
17837 | # so that multilib installs will end up installed in the correct | |
17838 | # place. To work around this not being passed down from config-ml.in | |
17839 | # -> top_srcdir/Makefile.am -> top_srcdir/src/Makefile.am, manually | |
17840 | # append it here. | |
17841 | ||
17842 | trap '' 1 2 15 | |
17843 | cat > confcache <<\EOF | |
17844 | # This file is a shell script that caches the results of configure | |
17845 | # tests run on this system so they can be shared between configure | |
17846 | # scripts and configure runs. It is not useful on other systems. | |
17847 | # If it contains results you don't want to keep, you may remove or edit it. | |
17848 | # | |
17849 | # By default, configure uses ./config.cache as the cache file, | |
17850 | # creating it if it does not exist already. You can give configure | |
17851 | # the --cache-file=FILE option to use a different cache file; that is | |
17852 | # what configure does when it calls configure scripts in | |
17853 | # subdirectories, so they share the cache. | |
17854 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17855 | # config.status only pays attention to the cache file if you give it the | |
17856 | # --recheck option to rerun configure. | |
17857 | # | |
17858 | EOF | |
17859 | # The following way of writing the cache mishandles newlines in values, | |
17860 | # but we know of no workaround that is simple, portable, and efficient. | |
17861 | # So, don't put newlines in cache variables' values. | |
17862 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17863 | # and sets the high bit in the cache file unless we assign to the vars. | |
17864 | (set) 2>&1 | | |
17865 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17866 | *ac_space=\ *) | |
17867 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17868 | # turns \\\\ into \\, and sed turns \\ into \). | |
17869 | sed -n \ | |
17870 | -e "s/'/'\\\\''/g" \ | |
17871 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17872 | ;; | |
17873 | *) | |
17874 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17875 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17876 | ;; | |
17877 | esac >> confcache | |
17878 | if cmp -s $cache_file confcache; then | |
17879 | : | |
17880 | else | |
17881 | if test -w $cache_file; then | |
17882 | echo "updating cache $cache_file" | |
17883 | cat confcache > $cache_file | |
17884 | else | |
17885 | echo "not updating unwritable cache $cache_file" | |
17886 | fi | |
17887 | fi | |
17888 | rm -f confcache | |
17889 | ||
17890 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
17891 | ||
17892 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17893 | # Let make expand exec_prefix. | |
17894 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17895 | ||
17896 | # Any assignment to VPATH causes Sun make to only execute | |
17897 | # the first set of double-colon rules, so remove it if not needed. | |
17898 | # If there is a colon in the path, we need to keep it. | |
17899 | if test "x$srcdir" = x.; then | |
17900 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
17901 | fi | |
17902 | ||
17903 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
17904 | ||
17905 | DEFS=-DHAVE_CONFIG_H | |
17906 | ||
17907 | # Without the "./", some shells look in PATH for config.status. | |
17908 | : ${CONFIG_STATUS=./config.status} | |
17909 | ||
17910 | echo creating $CONFIG_STATUS | |
17911 | rm -f $CONFIG_STATUS | |
17912 | cat > $CONFIG_STATUS <<EOF | |
17913 | #! /bin/sh | |
17914 | # Generated automatically by configure. | |
17915 | # Run this file to recreate the current configuration. | |
17916 | # This directory was configured as follows, | |
17917 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17918 | # | |
17919 | # $0 $ac_configure_args | |
17920 | # | |
17921 | # Compiler output produced by configure, useful for debugging | |
17922 | # configure, is in ./config.log if it exists. | |
17923 | ||
17924 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
17925 | for ac_option | |
17926 | do | |
17927 | case "\$ac_option" in | |
17928 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17929 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
17930 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17931 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17932 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17933 | exit 0 ;; | |
17934 | -help | --help | --hel | --he | --h) | |
17935 | echo "\$ac_cs_usage"; exit 0 ;; | |
17936 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
17937 | esac | |
17938 | done | |
17939 | ||
17940 | ac_given_srcdir=$srcdir | |
17941 | ac_given_INSTALL="$INSTALL" | |
17942 | ||
17943 | trap 'rm -fr `echo "mkcheck Makefile src/Makefile math/Makefile libio/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
17944 | EOF | |
17945 | cat >> $CONFIG_STATUS <<EOF | |
17946 | ||
17947 | # Protect against being on the right side of a sed subst in config.status. | |
17948 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17949 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17950 | $ac_vpsub | |
17951 | $extrasub | |
17952 | s%@SHELL@%$SHELL%g | |
17953 | s%@CFLAGS@%$CFLAGS%g | |
17954 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17955 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17956 | s%@FFLAGS@%$FFLAGS%g | |
17957 | s%@DEFS@%$DEFS%g | |
17958 | s%@LDFLAGS@%$LDFLAGS%g | |
17959 | s%@LIBS@%$LIBS%g | |
17960 | s%@exec_prefix@%$exec_prefix%g | |
17961 | s%@prefix@%$prefix%g | |
17962 | s%@program_transform_name@%$program_transform_name%g | |
17963 | s%@bindir@%$bindir%g | |
17964 | s%@sbindir@%$sbindir%g | |
17965 | s%@libexecdir@%$libexecdir%g | |
17966 | s%@datadir@%$datadir%g | |
17967 | s%@sysconfdir@%$sysconfdir%g | |
17968 | s%@sharedstatedir@%$sharedstatedir%g | |
17969 | s%@localstatedir@%$localstatedir%g | |
17970 | s%@libdir@%$libdir%g | |
17971 | s%@includedir@%$includedir%g | |
17972 | s%@oldincludedir@%$oldincludedir%g | |
17973 | s%@infodir@%$infodir%g | |
17974 | s%@mandir@%$mandir%g | |
17975 | s%@host@%$host%g | |
17976 | s%@host_alias@%$host_alias%g | |
17977 | s%@host_cpu@%$host_cpu%g | |
17978 | s%@host_vendor@%$host_vendor%g | |
17979 | s%@host_os@%$host_os%g | |
17980 | s%@target@%$target%g | |
17981 | s%@target_alias@%$target_alias%g | |
17982 | s%@target_cpu@%$target_cpu%g | |
17983 | s%@target_vendor@%$target_vendor%g | |
17984 | s%@target_os@%$target_os%g | |
17985 | s%@build@%$build%g | |
17986 | s%@build_alias@%$build_alias%g | |
17987 | s%@build_cpu@%$build_cpu%g | |
17988 | s%@build_vendor@%$build_vendor%g | |
17989 | s%@build_os@%$build_os%g | |
17990 | s%@glibcpp_basedir@%$glibcpp_basedir%g | |
17991 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17992 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17993 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17994 | s%@PACKAGE@%$PACKAGE%g | |
17995 | s%@VERSION@%$VERSION%g | |
17996 | s%@ACLOCAL@%$ACLOCAL%g | |
17997 | s%@AUTOCONF@%$AUTOCONF%g | |
17998 | s%@AUTOMAKE@%$AUTOMAKE%g | |
17999 | s%@AUTOHEADER@%$AUTOHEADER%g | |
18000 | s%@MAKEINFO@%$MAKEINFO%g | |
18001 | s%@SET_MAKE@%$SET_MAKE%g | |
18002 | s%@CC@%$CC%g | |
18003 | s%@CXX@%$CXX%g | |
18004 | s%@AS@%$AS%g | |
18005 | s%@AR@%$AR%g | |
18006 | s%@RANLIB@%$RANLIB%g | |
18007 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
18008 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
18009 | s%@MAINT@%$MAINT%g | |
18010 | s%@EXEEXT@%$EXEEXT%g | |
18011 | s%@GLIBCPP_CFLAGS@%$GLIBCPP_CFLAGS%g | |
18012 | s%@GLIBCPP_CXXFLAGS@%$GLIBCPP_CXXFLAGS%g | |
18013 | s%@LN_S@%$LN_S%g | |
18014 | s%@LIBTOOL@%$LIBTOOL%g | |
5780a46b | 18015 | s%@ifGNUmake@%$ifGNUmake%g |
a4e99046 | 18016 | s%@CPP@%$CPP%g |
c470c17d BK |
18017 | s%@cpu_include_dir@%$cpu_include_dir%g |
18018 | s%@CPU_FLAGS@%$CPU_FLAGS%g | |
18019 | s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g | |
b2dad0e3 BK |
18020 | s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g |
18021 | s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g | |
dd75251f BK |
18022 | s%@GLIBCPP_NEED_XTRA_LIBIO_TRUE@%$GLIBCPP_NEED_XTRA_LIBIO_TRUE%g |
18023 | s%@GLIBCPP_NEED_XTRA_LIBIO_FALSE@%$GLIBCPP_NEED_XTRA_LIBIO_FALSE%g | |
20427c6b BK |
18024 | s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g |
18025 | s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g | |
5b80666b | 18026 | s%@CSHADOWFLAGS@%$CSHADOWFLAGS%g |
5b80666b BK |
18027 | s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g |
18028 | s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g | |
b2dad0e3 BK |
18029 | s%@THREADLIBS@%$THREADLIBS%g |
18030 | s%@THREADINCS@%$THREADINCS%g | |
18031 | s%@THREADDEPS@%$THREADDEPS%g | |
18032 | s%@THREADOBJS@%$THREADOBJS%g | |
18033 | s%@THREADSPEC@%$THREADSPEC%g | |
dcfa0bc8 | 18034 | s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g |
b2dad0e3 | 18035 | s%@ctype_include_dir@%$ctype_include_dir%g |
c470c17d BK |
18036 | s%@WERROR@%$WERROR%g |
18037 | s%@WFMT_FLAGS@%$WFMT_FLAGS%g | |
18038 | s%@SECTION_FLAGS@%$SECTION_FLAGS%g | |
18039 | s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g | |
421173e6 | 18040 | s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g |
b2dad0e3 | 18041 | s%@LIBMATHOBJS@%$LIBMATHOBJS%g |
2f103494 | 18042 | s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g |
5d89258a | 18043 | s%@libinst_wstring_la@%$libinst_wstring_la%g |
b2dad0e3 BK |
18044 | s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g |
18045 | s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g | |
18046 | s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g | |
18047 | s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g | |
18048 | s%@NATIVE_TRUE@%$NATIVE_TRUE%g | |
18049 | s%@NATIVE_FALSE@%$NATIVE_FALSE%g | |
18050 | s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g | |
18051 | s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g | |
18052 | ||
18053 | CEOF | |
18054 | EOF | |
18055 | ||
18056 | cat >> $CONFIG_STATUS <<\EOF | |
18057 | ||
18058 | # Split the substitutions into bite-sized pieces for seds with | |
18059 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18060 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18061 | ac_file=1 # Number of current file. | |
18062 | ac_beg=1 # First line for current file. | |
18063 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18064 | ac_more_lines=: | |
18065 | ac_sed_cmds="" | |
18066 | while $ac_more_lines; do | |
18067 | if test $ac_beg -gt 1; then | |
18068 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18069 | else | |
18070 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18071 | fi | |
18072 | if test ! -s conftest.s$ac_file; then | |
18073 | ac_more_lines=false | |
18074 | rm -f conftest.s$ac_file | |
18075 | else | |
18076 | if test -z "$ac_sed_cmds"; then | |
18077 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
18078 | else | |
18079 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
18080 | fi | |
18081 | ac_file=`expr $ac_file + 1` | |
18082 | ac_beg=$ac_end | |
18083 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
18084 | fi | |
18085 | done | |
18086 | if test -z "$ac_sed_cmds"; then | |
18087 | ac_sed_cmds=cat | |
18088 | fi | |
18089 | EOF | |
18090 | ||
18091 | cat >> $CONFIG_STATUS <<EOF | |
18092 | ||
18093 | CONFIG_FILES=\${CONFIG_FILES-"mkcheck Makefile src/Makefile math/Makefile libio/Makefile"} | |
18094 | EOF | |
18095 | cat >> $CONFIG_STATUS <<\EOF | |
18096 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
18097 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
18098 | case "$ac_file" in | |
18099 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18100 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18101 | *) ac_file_in="${ac_file}.in" ;; | |
18102 | esac | |
18103 | ||
18104 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
18105 | ||
18106 | # Remove last slash and all that follows it. Not all systems have dirname. | |
18107 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18108 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18109 | # The file is in a subdirectory. | |
18110 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18111 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
18112 | # A "../" for each directory in $ac_dir_suffix. | |
18113 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
18114 | else | |
18115 | ac_dir_suffix= ac_dots= | |
18116 | fi | |
18117 | ||
18118 | case "$ac_given_srcdir" in | |
18119 | .) srcdir=. | |
18120 | if test -z "$ac_dots"; then top_srcdir=. | |
18121 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18122 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
18123 | *) # Relative path. | |
18124 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
18125 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
18126 | esac | |
18127 | ||
18128 | case "$ac_given_INSTALL" in | |
18129 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18130 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18131 | esac | |
18132 | ||
18133 | echo creating "$ac_file" | |
18134 | rm -f "$ac_file" | |
18135 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18136 | case "$ac_file" in | |
18137 | *Makefile*) ac_comsub="1i\\ | |
18138 | # $configure_input" ;; | |
18139 | *) ac_comsub= ;; | |
18140 | esac | |
18141 | ||
18142 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18143 | sed -e "$ac_comsub | |
18144 | s%@configure_input@%$configure_input%g | |
18145 | s%@srcdir@%$srcdir%g | |
18146 | s%@top_srcdir@%$top_srcdir%g | |
18147 | s%@INSTALL@%$INSTALL%g | |
18148 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18149 | fi; done | |
18150 | rm -f conftest.s* | |
18151 | ||
18152 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18153 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18154 | # | |
18155 | # ac_d sets the value in "#define NAME VALUE" lines. | |
18156 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
18157 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18158 | ac_dC='\3' | |
18159 | ac_dD='%g' | |
18160 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18161 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18162 | ac_uB='\([ ]\)%\1#\2define\3' | |
18163 | ac_uC=' ' | |
18164 | ac_uD='\4%g' | |
18165 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18166 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18167 | ac_eB='$%\1#\2define\3' | |
18168 | ac_eC=' ' | |
18169 | ac_eD='%g' | |
18170 | ||
18171 | if test "${CONFIG_HEADERS+set}" != set; then | |
18172 | EOF | |
18173 | cat >> $CONFIG_STATUS <<EOF | |
18174 | CONFIG_HEADERS="config.h" | |
18175 | EOF | |
18176 | cat >> $CONFIG_STATUS <<\EOF | |
18177 | fi | |
18178 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
18179 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
18180 | case "$ac_file" in | |
18181 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18182 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18183 | *) ac_file_in="${ac_file}.in" ;; | |
18184 | esac | |
18185 | ||
18186 | echo creating $ac_file | |
18187 | ||
18188 | rm -f conftest.frag conftest.in conftest.out | |
18189 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18190 | cat $ac_file_inputs > conftest.in | |
18191 | ||
18192 | EOF | |
18193 | ||
18194 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18195 | # the proper values into config.h.in to produce config.h. And first: | |
18196 | # Protect against being on the right side of a sed subst in config.status. | |
18197 | # Protect against being in an unquoted here document in config.status. | |
18198 | rm -f conftest.vals | |
18199 | cat > conftest.hdr <<\EOF | |
18200 | s/[\\&%]/\\&/g | |
18201 | s%[\\$`]%\\&%g | |
18202 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18203 | s%ac_d%ac_u%gp | |
18204 | s%ac_u%ac_e%gp | |
18205 | EOF | |
18206 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18207 | rm -f conftest.hdr | |
18208 | ||
18209 | # This sed command replaces #undef with comments. This is necessary, for | |
18210 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18211 | # on some systems where configure will not decide to define it. | |
18212 | cat >> conftest.vals <<\EOF | |
18213 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
18214 | EOF | |
18215 | ||
18216 | # Break up conftest.vals because some shells have a limit on | |
18217 | # the size of here documents, and old seds have small limits too. | |
18218 | ||
18219 | rm -f conftest.tail | |
18220 | while : | |
18221 | do | |
18222 | ac_lines=`grep -c . conftest.vals` | |
18223 | # grep -c gives empty output for an empty file on some AIX systems. | |
18224 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18225 | # Write a limited-size here document to conftest.frag. | |
18226 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18227 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
18228 | echo 'CEOF | |
18229 | sed -f conftest.frag conftest.in > conftest.out | |
18230 | rm -f conftest.in | |
18231 | mv conftest.out conftest.in | |
18232 | ' >> $CONFIG_STATUS | |
18233 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18234 | rm -f conftest.vals | |
18235 | mv conftest.tail conftest.vals | |
18236 | done | |
18237 | rm -f conftest.vals | |
18238 | ||
18239 | cat >> $CONFIG_STATUS <<\EOF | |
18240 | rm -f conftest.frag conftest.h | |
18241 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18242 | cat conftest.in >> conftest.h | |
18243 | rm -f conftest.in | |
18244 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18245 | echo "$ac_file is unchanged" | |
18246 | rm -f conftest.h | |
18247 | else | |
18248 | # Remove last slash and all that follows it. Not all systems have dirname. | |
18249 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18250 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18251 | # The file is in a subdirectory. | |
18252 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18253 | fi | |
18254 | rm -f $ac_file | |
18255 | mv conftest.h $ac_file | |
18256 | fi | |
18257 | fi; done | |
18258 | ||
c4561450 BK |
18259 | EOF |
18260 | ||
18261 | cat >> $CONFIG_STATUS <<EOF | |
18262 | ac_sources="$CSTDIO_H $CSTDIO_CC config/$THREADH" | |
18263 | ac_dests="bits/c++io.h src/c++io.cc bits/c++threads.h" | |
18264 | EOF | |
18265 | ||
18266 | cat >> $CONFIG_STATUS <<\EOF | |
18267 | srcdir=$ac_given_srcdir | |
18268 | while test -n "$ac_sources"; do | |
18269 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
18270 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
18271 | ||
18272 | echo "linking $srcdir/$ac_source to $ac_dest" | |
18273 | ||
18274 | if test ! -r $srcdir/$ac_source; then | |
18275 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
18276 | fi | |
18277 | rm -f $ac_dest | |
18278 | ||
18279 | # Make relative symlinks. | |
18280 | # Remove last slash and all that follows it. Not all systems have dirname. | |
18281 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
18282 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
18283 | # The dest file is in a subdirectory. | |
18284 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
18285 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
18286 | # A "../" for each directory in $ac_dest_dir_suffix. | |
18287 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
18288 | else | |
18289 | ac_dest_dir_suffix= ac_dots= | |
18290 | fi | |
18291 | ||
18292 | case "$srcdir" in | |
18293 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
18294 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
18295 | esac | |
18296 | ||
18297 | # Make a symlink if possible; otherwise try a hard link. | |
18298 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
18299 | ln $srcdir/$ac_source $ac_dest; then : | |
18300 | else | |
18301 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
18302 | fi | |
18303 | done | |
b2dad0e3 BK |
18304 | EOF |
18305 | cat >> $CONFIG_STATUS <<EOF | |
18306 | ||
18307 | srcdir=${srcdir} | |
18308 | host=${host} | |
18309 | target=${target} | |
18310 | with_multisubdir=${with_multisubdir} | |
18311 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
18312 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
18313 | glibcpp_basedir=${glibcpp_basedir} | |
18314 | CC="${CC}" | |
18315 | CXX="${CXX}" | |
18316 | ||
18317 | EOF | |
18318 | cat >> $CONFIG_STATUS <<\EOF | |
18319 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
18320 | if test -n "$CONFIG_FILES"; then | |
18321 | ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in | |
18322 | grep '^MULTISUBDIR =' Makefile >> src/Makefile | |
18323 | fi | |
18324 | exit 0 | |
18325 | EOF | |
18326 | chmod +x $CONFIG_STATUS | |
18327 | rm -fr confdefs* $ac_clean_files | |
18328 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
18329 | ||
18330 | ||
18331 | ||
18332 | blddir=`pwd` | |
b2dad0e3 BK |
18333 | # Generate bits/c++config.h |
18334 | # NB: This must be the first generated file as others include it. . . | |
18335 | ||
18336 | ||
18337 | # Generate bits/std_limits.h and src/limitsMEMBERS.cc | |
18338 | ||
29bd52c8 PE |
18339 | |
18340 | ||
18341 | # Sanity checking & User-visible messages. | |
18342 | # Checks down here, otherwise they get scrolled off before | |
18343 | # the user will notice. | |
18344 | if test "$enable_namespaces" = "yes" && test "$enable_libgcc_rebuild" = "no" | |
18345 | then | |
18346 | echo "configure: warning: libgcc.a will not match mangled symbols unless it is rebuilt" 1>&2 | |
18347 | fi | |
18348 | if test "$enable_namespaces" = "no" && test "$enable_libgcc_rebuild" != "no" | |
18349 | then | |
18350 | # Other things besides namespaces can make this true as well, but none | |
18351 | # of them are done automatically... yet | |
18352 | echo "configure: warning: no point in rebuilding libgcc.a if namespaces aren't used" 1>&2 | |
18353 | fi | |
18354 | ||
5780a46b BK |
18355 | # Trying to get more people to read documentation. Possibly remove |
18356 | # check and warn all the time. There is no "informational" AC_MSG_ | |
18357 | # macro, so these are going to be printed even when --quiet/--silent | |
18358 | # is given. | |
99b51359 BK |
18359 | if test ! -f stamp-sanity-warned; then |
18360 | touch stamp-sanity-warned | |
5780a46b BK |
18361 | echo "" |
18362 | echo "Please make certain that you read the installation information here:" | |
29bd52c8 | 18363 | echo " faster => ${srcdir}/docs/install.html" |
5780a46b BK |
18364 | echo " slower => <URL:http://sources.redhat.com/libstdc++/install.html>" |
18365 | echo "" | |
18366 | echo "and the configuration information here:" | |
29bd52c8 | 18367 | echo " faster => ${srcdir}/docs/configopts.html" |
5780a46b BK |
18368 | echo " slower => <URL:http://sources.redhat.com/libstdc++/configopts.html>" |
18369 | echo "" | |
421173e6 | 18370 | echo "before proceeding with ${_cv_gnu_make_command}." |
5780a46b | 18371 | echo "" |
29bd52c8 PE |
18372 | fi |
18373 | ||
18374 | ||
b2dad0e3 BK |
18375 | $srcdir/mkc++config $blddir $srcdir |
18376 | $srcdir/mknumeric_limits $blddir $srcdir $xcompiling | |
b2dad0e3 BK |
18377 | |
18378 |