]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
regenerate configure files
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
6de9cd9a
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
6de9cd9a 8#
6de9cd9a
DN
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
6de9cd9a 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
6de9cd9a 31fi
6de9cd9a 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
6de9cd9a
DN
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
6de9cd9a
DN
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
21be0a5a 199test \$(( 1 + 1 )) = 2 || exit 1
43e02a8a
RW
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
21be0a5a 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
5213506e
RW
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6de9cd9a 219do
5213506e
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
5213506e
RW
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
6de9cd9a 274 else
5213506e
RW
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
6de9cd9a 279 fi
5213506e
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
5213506e
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
5213506e
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
5213506e
RW
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
5213506e
RW
424 as_fn_exit $as_status
425} # as_fn_error
6de9cd9a 426
5213506e
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
429 as_expr=expr
430else
431 as_expr=false
432fi
433
5213506e 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
435 as_basename=basename
436else
437 as_basename=false
438fi
439
5213506e
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
6de9cd9a 445
5213506e 446as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
5213506e
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
c0e7e2bf 464
38d24731
RW
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
f489fba1 471
6de9cd9a 472
5213506e
RW
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
6de9cd9a 482 sed '
5213506e
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
6de9cd9a 487 N
5213506e
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6de9cd9a 490 t loop
5213506e 491 s/-\n.*//
6de9cd9a 492 ' >$as_me.lineno &&
5213506e
RW
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
6de9cd9a 495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
6de9cd9a
DN
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
6de9cd9a
DN
504 # Exit status is that of the last command.
505 exit
506}
507
5213506e
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
6de9cd9a
DN
519esac
520
5213506e
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
6de9cd9a 524else
5213506e
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
6de9cd9a 527fi
5213506e
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 530 as_ln_s='ln -s'
5213506e
RW
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
5213506e 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
5213506e
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
38d24731 541 fi
6de9cd9a 542else
22e05272 543 as_ln_s='cp -pR'
6de9cd9a 544fi
5213506e
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
6de9cd9a
DN
547
548if mkdir -p . 2>/dev/null; then
5213506e 549 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
6de9cd9a
DN
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
1cf3d07d
SE
564SHELL=${CONFIG_SHELL-/bin/sh}
565
1cf3d07d 566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
5213506e 569
6de9cd9a 570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
6de9cd9a
DN
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
6de9cd9a
DN
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
5213506e 579ac_clean_files=
6de9cd9a 580ac_config_libobj_dir=.
5213506e 581LIBOBJS=
6de9cd9a
DN
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
38d24731 586
6de9cd9a
DN
587# Identity of this package.
588PACKAGE_NAME='GNU Fortran Runtime Library'
589PACKAGE_TARNAME='libgfortran'
0dce3ca1
FXC
590PACKAGE_VERSION='0.3'
591PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
6de9cd9a 592PACKAGE_BUGREPORT=''
5213506e 593PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
6de9cd9a
DN
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
5213506e 598#ifdef HAVE_SYS_TYPES_H
6de9cd9a
DN
599# include <sys/types.h>
600#endif
5213506e 601#ifdef HAVE_SYS_STAT_H
6de9cd9a
DN
602# include <sys/stat.h>
603#endif
5213506e 604#ifdef STDC_HEADERS
6de9cd9a
DN
605# include <stdlib.h>
606# include <stddef.h>
607#else
5213506e 608# ifdef HAVE_STDLIB_H
6de9cd9a
DN
609# include <stdlib.h>
610# endif
611#endif
5213506e
RW
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6de9cd9a
DN
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
5213506e 618#ifdef HAVE_STRINGS_H
6de9cd9a
DN
619# include <strings.h>
620#endif
5213506e 621#ifdef HAVE_INTTYPES_H
6de9cd9a 622# include <inttypes.h>
6de9cd9a 623#endif
5213506e
RW
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
6de9cd9a
DN
628# include <unistd.h>
629#endif"
630
74544378
JB
631ac_header_list=
632ac_func_list=
1ec601bf 633ac_c_werror_flag=
828012a5 634ac_c_werror_flag=
5213506e
RW
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
3c36aa6b 639get_gcc_base_ver
1d5cf7fc
TK
640HAVE_AVX128_FALSE
641HAVE_AVX128_TRUE
47ddb895 642tmake_file
5213506e 643IEEE_FLAGS
8b198102
FXC
644IEEE_SUPPORT
645IEEE_SUPPORT_FALSE
646IEEE_SUPPORT_TRUE
5213506e 647FPU_HOST_HEADER
133d0d42 648USE_IEC_60559
1ec601bf
FXC
649LIBQUADINCLUDE
650LIBQUADLIB_DEP
651LIBQUADLIB
652LIBQUADSPEC
5213506e
RW
653extra_ldflags_libgfortran
654ac_ct_FC
655FCFLAGS
656FC
657enable_static
658enable_shared
7de6ba7a 659lt_host_flags
9b025925 660LIBM
5213506e
RW
661OTOOL64
662OTOOL
663LIPO
664NMEDIT
665DSYMUTIL
5213506e
RW
666OBJDUMP
667LN_S
668NM
669ac_ct_DUMPBIN
670DUMPBIN
5213506e
RW
671LIBTOOL
672RANLIB
673AR
674AS
66dbcf2d
RO
675HAVE_HWCAP_FALSE
676HAVE_HWCAP_TRUE
677HWCAP_LDFLAGS
678LD
679FGREP
680SED
5213506e 681SECTION_FLAGS
2e764ae1
TB
682LIBGOMP_CHECKED_REAL_KINDS
683LIBGOMP_CHECKED_INT_KINDS
ee95f928
BS
684LIBGFOR_MINIMAL_FALSE
685LIBGFOR_MINIMAL_TRUE
49ea7a0e
RO
686LIBGFOR_USE_SYMVER_SUN_FALSE
687LIBGFOR_USE_SYMVER_SUN_TRUE
688LIBGFOR_USE_SYMVER_GNU_FALSE
689LIBGFOR_USE_SYMVER_GNU_TRUE
5213506e
RW
690LIBGFOR_USE_SYMVER_FALSE
691LIBGFOR_USE_SYMVER_TRUE
692AM_CFLAGS
693AM_FCFLAGS
49ad4d2c
TK
694HAVE_REAL_17_FALSE
695HAVE_REAL_17_TRUE
21be0a5a
JB
696toolexeclibdir
697toolexecdir
698EGREP
699GREP
700CPP
5213506e
RW
701am__fastdepCC_FALSE
702am__fastdepCC_TRUE
703CCDEPMODE
c20fdb91 704am__nodep
5213506e
RW
705AMDEPBACKSLASH
706AMDEP_FALSE
707AMDEP_TRUE
708am__quote
709am__include
710DEPDIR
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
5213506e
RW
718multi_basedir
719MAINT
720MAINTAINER_MODE_FALSE
721MAINTAINER_MODE_TRUE
22e05272
JM
722AM_BACKSLASH
723AM_DEFAULT_VERBOSITY
724AM_DEFAULT_V
725AM_V
5213506e
RW
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
60858d8a 749target_noncanonical
5213506e
RW
750target_os
751target_vendor
752target_cpu
753target
754host_os
755host_vendor
756host_cpu
757host
758onestep
759onestep_FALSE
760onestep_TRUE
761target_subdir
762host_subdir
763build_subdir
764build_libsubdir
765build_os
766build_vendor
767build_cpu
768build
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL'
6de9cd9a 807ac_subst_files=''
5213506e
RW
808ac_user_opts='
809enable_option_checking
810with_build_libsubdir
811enable_version_specific_runtime_libs
812enable_intermodule
22e05272 813enable_silent_rules
5213506e
RW
814enable_maintainer_mode
815enable_multilib
816enable_dependency_tracking
e8e66971 817with_toolexeclibdir
26724ef9 818enable_cet
bf382f5f 819enable_symvers
66dbcf2d 820with_gnu_ld
5213506e
RW
821enable_shared
822enable_static
823with_pic
824enable_fast_install
5213506e
RW
825enable_libtool_lock
826enable_largefile
87e6d9dc 827enable_libquadmath_support
3c36aa6b 828with_gcc_major_version_only
5213506e
RW
829'
830 ac_precious_vars='build_alias
831host_alias
832target_alias
21be0a5a
JB
833CC
834CFLAGS
835LDFLAGS
836LIBS
5213506e 837CPPFLAGS
21be0a5a 838CPP
5213506e 839FC
21be0a5a 840FCFLAGS'
5213506e 841
6de9cd9a
DN
842
843# Initialize some variables set by options.
844ac_init_help=
845ac_init_version=false
5213506e
RW
846ac_unrecognized_opts=
847ac_unrecognized_sep=
6de9cd9a
DN
848# The variables have the same names as the options, with
849# dashes changed to underlines.
850cache_file=/dev/null
851exec_prefix=NONE
852no_create=
853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
861verbose=
862x_includes=NONE
863x_libraries=NONE
864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 870# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
5213506e
RW
874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
6de9cd9a
DN
876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
6de9cd9a
DN
879includedir='${prefix}/include'
880oldincludedir='/usr/include'
5213506e
RW
881docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882infodir='${datarootdir}/info'
883htmldir='${docdir}'
884dvidir='${docdir}'
885pdfdir='${docdir}'
886psdir='${docdir}'
887libdir='${exec_prefix}/lib'
888localedir='${datarootdir}/locale'
889mandir='${datarootdir}/man'
6de9cd9a
DN
890
891ac_prev=
5213506e 892ac_dashdash=
6de9cd9a
DN
893for ac_option
894do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
5213506e 897 eval $ac_prev=\$ac_option
6de9cd9a
DN
898 ac_prev=
899 continue
900 fi
901
5213506e 902 case $ac_option in
22e05272
JM
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
5213506e 906 esac
6de9cd9a
DN
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
5213506e
RW
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
6de9cd9a
DN
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
5213506e 934 -datadir | --datadir | --datadi | --datad)
6de9cd9a 935 ac_prev=datadir ;;
5213506e 936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
937 datadir=$ac_optarg ;;
938
5213506e
RW
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
6de9cd9a 946 -disable-* | --disable-*)
5213506e 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 948 # Reject names that are not valid shell variable names.
5213506e 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 950 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955"enable_$ac_useropt"
956"*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
6de9cd9a
DN
971
972 -enable-* | --enable-*)
5213506e 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 974 # Reject names that are not valid shell variable names.
5213506e 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 976 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981"enable_$ac_useropt"
982"*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
38d24731 985 esac
5213506e 986 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
5213506e
RW
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
6de9cd9a
DN
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
5213506e
RW
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
6de9cd9a 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1049 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
5213506e
RW
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
6de9cd9a
DN
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1175
1176 -with-* | --with-*)
5213506e 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1178 # Reject names that are not valid shell variable names.
5213506e 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1180 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
38d24731 1189 esac
5213506e 1190 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1191
1192 -without-* | --without-*)
5213506e 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1194 # Reject names that are not valid shell variable names.
5213506e 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1196 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1225
22e05272
JM
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227Try \`$0 --help' for more information"
6de9cd9a
DN
1228 ;;
1229
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
5213506e
RW
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1236 esac
1237 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1238 export $ac_envvar ;;
1239
1240 *)
1241 # FIXME: should be removed in autoconf 3.0.
5213506e 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
6de9cd9a
DN
1246 ;;
1247
1248 esac
1249done
1250
1251if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1253 as_fn_error $? "missing argument to $ac_option"
6de9cd9a
DN
1254fi
1255
5213506e
RW
1256if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
22e05272 1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1261 esac
5213506e 1262fi
38d24731 1263
5213506e
RW
1264# Check all directory arguments for consistency.
1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e9085da5 1268 libdir localedir mandir
38d24731 1269do
5213506e
RW
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
38d24731 1278 case $ac_val in
5213506e
RW
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1281 esac
22e05272 1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1283done
1284
1285# There might be people who depend on the old broken behavior: `$host'
1286# used to hold the argument of --host etc.
1287# FIXME: To remove some day.
1288build=$build_alias
1289host=$host_alias
1290target=$target_alias
1291
1292# FIXME: To remove some day.
1293if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
6de9cd9a
DN
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299fi
1300
1301ac_tool_prefix=
1302test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304test "$silent" = yes && exec 6>/dev/null
1305
1306
5213506e
RW
1307ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308ac_ls_di=`ls -di .` &&
1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1310 as_fn_error $? "working directory cannot be determined"
5213506e 1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1312 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1313
1314
6de9cd9a
DN
1315# Find the source files, if location was not specified.
1316if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
5213506e
RW
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324$as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
6de9cd9a 1342 srcdir=$ac_confdir
5213506e 1343 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1344 srcdir=..
1345 fi
1346else
1347 ac_srcdir_defaulted=no
1348fi
5213506e
RW
1349if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1352fi
1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354ac_abs_confdir=`(
22e05272 1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1356 pwd)`
1357# When building in place, set srcdir=.
1358if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360fi
1361# Remove unnecessary trailing slashes from srcdir.
1362# Double slashes in file names in object file debugging info
1363# mess up M-x gdb in Emacs.
1364case $srcdir in
1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366esac
1367for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372done
6de9cd9a
DN
1373
1374#
1375# Report the --help message.
1376#
1377if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
0dce3ca1 1381\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1382
1383Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386VAR=VALUE. See below for descriptions of some of the useful variables.
1387
1388Defaults for the options are specified in brackets.
1389
1390Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
22e05272 1395 -q, --quiet, --silent do not print \`checking ...' messages
6de9cd9a
DN
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400
6de9cd9a
DN
1401Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1403 [$ac_default_prefix]
6de9cd9a 1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1405 [PREFIX]
6de9cd9a
DN
1406
1407By default, \`make install' will install all the files in
1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410for instance \`--prefix=\$HOME'.
1411
1412For better control, use the options below.
1413
1414Fine tuning of the installation directories:
5213506e
RW
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1434_ACEOF
1435
1436 cat <<\_ACEOF
1437
1438Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442
1443System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1446 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1447_ACEOF
1448fi
1449
1450if test -n "$ac_init_help"; then
1451 case $ac_init_help in
0dce3ca1 1452 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1453 esac
1454 cat <<\_ACEOF
1455
1456Optional Features:
5213506e 1457 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1460 --enable-version-specific-runtime-libs
1461 specify that runtime libraries should be installed
1462 in a compiler-specific directory
b808ac33 1463 --enable-intermodule build the library in one step
22e05272
JM
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-maintainer-mode
1467 enable make rules and dependencies not useful (and
1468 sometimes confusing) to the casual installer
96b8a615 1469 --enable-multilib build many library versions (default)
22e05272
JM
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
8d286dd1 1474 --enable-cet enable Intel CET in target libraries [default=auto]
bf382f5f 1475 --disable-symvers disable symbol versioning for libgfortran
5213506e
RW
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
6de9cd9a 1480 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1481 --disable-largefile omit support for large files
87e6d9dc
TB
1482 --disable-libquadmath-support
1483 disable libquadmath support for Fortran
6de9cd9a
DN
1484
1485Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1488 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8e66971
MR
1489 --with-toolexeclibdir=DIR
1490 install libraries built with a cross compiler within
1491 DIR
66dbcf2d 1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1cf3d07d
SE
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
3c36aa6b
JJ
1495 --with-gcc-major-version-only
1496 use only GCC major number in filesystem paths
6de9cd9a
DN
1497
1498Some influential environment variables:
1499 CC C compiler command
1500 CFLAGS C compiler flags
1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1502 nonstandard directory <lib dir>
5213506e 1503 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1505 you have headers in a nonstandard directory <include dir>
1cf3d07d 1506 CPP C preprocessor
c7a35fe9
AS
1507 FC Fortran compiler command
1508 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
5213506e
RW
1513Report bugs to the package provider.
1514GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1515General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1516_ACEOF
5213506e 1517ac_status=$?
6de9cd9a
DN
1518fi
1519
1520if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
6de9cd9a 1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 continue
6de9cd9a
DN
1526 ac_builddir=.
1527
5213506e
RW
1528case "$ac_dir" in
1529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530*)
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538esac
1539ac_abs_top_builddir=$ac_pwd
1540ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541# for backward compatibility:
1542ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1543
1544case $srcdir in
5213506e 1545 .) # We are building in place.
6de9cd9a 1546 ac_srcdir=.
5213506e
RW
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1550 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1557esac
5213506e
RW
1558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1568 else
5213506e
RW
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1572 done
1573fi
1574
5213506e 1575test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1576if $ac_init_version; then
1577 cat <<\_ACEOF
0dce3ca1 1578GNU Fortran Runtime Library configure 0.3
22e05272 1579generated by GNU Autoconf 2.69
6de9cd9a 1580
22e05272 1581Copyright (C) 2012 Free Software Foundation, Inc.
6de9cd9a
DN
1582This configure script is free software; the Free Software Foundation
1583gives unlimited permission to copy, distribute and modify it.
1584_ACEOF
5213506e 1585 exit
6de9cd9a 1586fi
6de9cd9a 1587
5213506e
RW
1588## ------------------------ ##
1589## Autoconf initialization. ##
1590## ------------------------ ##
6de9cd9a 1591
5213506e
RW
1592# ac_fn_c_try_compile LINENO
1593# --------------------------
1594# Try to compile conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_compile ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619else
1620 $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1622
5213506e
RW
1623 ac_retval=1
1624fi
22e05272
JM
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
5213506e
RW
1627
1628} # ac_fn_c_try_compile
1629
21be0a5a
JB
1630# ac_fn_c_try_cpp LINENO
1631# ----------------------
1632# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_cpp ()
6de9cd9a 1634{
5213506e 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1637case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
21be0a5a 1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1651 test $ac_status = 0; } > conftest.i && {
21be0a5a 1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1653 test ! -s conftest.err
5213506e
RW
1654 }; then :
1655 ac_retval=0
1656else
1657 $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1659
21be0a5a 1660 ac_retval=1
5213506e 1661fi
22e05272
JM
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
6de9cd9a 1664
21be0a5a 1665} # ac_fn_c_try_cpp
6de9cd9a 1666
21be0a5a 1667# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1668# -------------------------------------------------------
21be0a5a
JB
1669# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1670# the include files in INCLUDES and setting the cache variable VAR
1671# accordingly.
1672ac_fn_c_check_header_mongrel ()
5213506e
RW
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1675 if eval \${$3+:} false; then :
5213506e
RW
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677$as_echo_n "checking for $2... " >&6; }
22e05272 1678if eval \${$3+:} false; then :
5213506e 1679 $as_echo_n "(cached) " >&6
21be0a5a
JB
1680fi
1681eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
5213506e 1684else
21be0a5a
JB
1685 # Is the header compilable?
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1687$as_echo_n "checking $2 usability... " >&6; }
1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1689/* end confdefs.h. */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1694 ac_header_compiler=yes
5213506e 1695else
21be0a5a 1696 ac_header_compiler=no
5213506e
RW
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1700$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1701
21be0a5a
JB
1702# Is the header present?
1703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1704$as_echo_n "checking $2 presence... " >&6; }
1705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h. */
1707#include <$2>
1708_ACEOF
1709if ac_fn_c_try_cpp "$LINENO"; then :
1710 ac_header_preproc=yes
1711else
1712 ac_header_preproc=no
1713fi
22e05272 1714rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
1715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1716$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1717
21be0a5a
JB
1718# So? What about this header?
1719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1720 yes:no: )
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1722$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 ;;
1726 no:yes:* )
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1728$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1730$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1732$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1734$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 ;;
5213506e 1738esac
21be0a5a
JB
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
22e05272 1741if eval \${$3+:} false; then :
21be0a5a 1742 $as_echo_n "(cached) " >&6
5213506e 1743else
21be0a5a
JB
1744 eval "$3=\$ac_header_compiler"
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
5213506e 1749fi
22e05272 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 1751
21be0a5a 1752} # ac_fn_c_check_header_mongrel
6de9cd9a 1753
5213506e
RW
1754# ac_fn_c_try_run LINENO
1755# ----------------------
1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757# that executables *can* be run.
1758ac_fn_c_try_run ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1782 ac_retval=0
1783else
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1787
5213506e
RW
1788 ac_retval=$ac_status
1789fi
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
6de9cd9a 1793
5213506e 1794} # ac_fn_c_try_run
6de9cd9a 1795
21be0a5a
JB
1796# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797# -------------------------------------------------------
1798# Tests whether HEADER exists and can be compiled using the include files in
1799# INCLUDES, setting the cache variable VAR accordingly.
1800ac_fn_c_check_header_compile ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
22e05272 1805if eval \${$3+:} false; then :
21be0a5a
JB
1806 $as_echo_n "(cached) " >&6
1807else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h. */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"; then :
1814 eval "$3=yes"
1815else
1816 eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
22e05272 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21be0a5a
JB
1824
1825} # ac_fn_c_check_header_compile
1826
1827# ac_fn_c_try_link LINENO
1828# -----------------------
1829# Try to link conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_c_try_link ()
1831{
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1835case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1847 fi
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
22e05272 1854 test -x conftest$ac_exeext
21be0a5a
JB
1855 }; then :
1856 ac_retval=0
1857else
1858 $as_echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1860
1861 ac_retval=1
1862fi
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
21be0a5a
JB
1870
1871} # ac_fn_c_try_link
1872
5213506e
RW
1873# ac_fn_c_check_func LINENO FUNC VAR
1874# ----------------------------------
1875# Tests whether FUNC exists, setting the cache variable VAR accordingly
1876ac_fn_c_check_func ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
22e05272 1881if eval \${$3+:} false; then :
5213506e
RW
1882 $as_echo_n "(cached) " >&6
1883else
1884 if test x$gcc_no_link = xyes; then
22e05272 1885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
1886fi
1887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891#define $2 innocuous_$2
6de9cd9a 1892
5213506e
RW
1893/* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1897
5213506e
RW
1898#ifdef __STDC__
1899# include <limits.h>
1900#else
1901# include <assert.h>
1902#endif
6de9cd9a 1903
5213506e
RW
1904#undef $2
1905
1906/* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1909#ifdef __cplusplus
1910extern "C"
1911#endif
1912char $2 ();
1913/* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916#if defined __stub_$2 || defined __stub___$2
1917choke me
1918#endif
1919
1920int
1921main ()
38d24731 1922{
5213506e
RW
1923return $2 ();
1924 ;
1925 return 0;
38d24731 1926}
5213506e
RW
1927_ACEOF
1928if ac_fn_c_try_link "$LINENO"; then :
1929 eval "$3=yes"
1930else
1931 eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext conftest.$ac_ext
1935fi
1936eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
22e05272 1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 1940
5213506e 1941} # ac_fn_c_check_func
6de9cd9a 1942
5213506e
RW
1943# ac_fn_fc_try_compile LINENO
1944# ---------------------------
1945# Try to compile conftest.$ac_ext, and return whether this succeeded.
1946ac_fn_fc_try_compile ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext
1950 if { { ac_try="$ac_compile"
1951case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_compile") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_fc_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest.$ac_objext; then :
1969 ac_retval=0
1970else
1971 $as_echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1973
5213506e
RW
1974 ac_retval=1
1975fi
22e05272
JM
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
6de9cd9a 1978
5213506e 1979} # ac_fn_fc_try_compile
6de9cd9a 1980
5213506e
RW
1981# ac_fn_fc_try_link LINENO
1982# ------------------------
1983# Try to link conftest.$ac_ext, and return whether this succeeded.
1984ac_fn_fc_try_link ()
1985{
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { { ac_try="$ac_link"
1989case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992esac
1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994$as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2001 fi
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_fc_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
22e05272 2008 test -x conftest$ac_exeext
5213506e
RW
2009 }; then :
2010 ac_retval=0
2011else
2012 $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 2014
5213506e
RW
2015 ac_retval=1
2016fi
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
6de9cd9a 2024
5213506e 2025} # ac_fn_fc_try_link
6de9cd9a 2026
5213506e
RW
2027# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2028# -------------------------------------------
2029# Tests whether TYPE exists after having included INCLUDES, setting cache
2030# variable VAR accordingly.
2031ac_fn_c_check_type ()
2032{
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035$as_echo_n "checking for $2... " >&6; }
22e05272 2036if eval \${$3+:} false; then :
5213506e
RW
2037 $as_echo_n "(cached) " >&6
2038else
2039 eval "$3=no"
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h. */
2042$4
2043int
2044main ()
2045{
2046if (sizeof ($2))
2047 return 0;
2048 ;
2049 return 0;
2050}
6de9cd9a 2051_ACEOF
5213506e
RW
2052if ac_fn_c_try_compile "$LINENO"; then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h. */
2055$4
2056int
2057main ()
2058{
2059if (sizeof (($2)))
2060 return 0;
2061 ;
2062 return 0;
2063}
6de9cd9a 2064_ACEOF
5213506e 2065if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 2066
5213506e
RW
2067else
2068 eval "$3=yes"
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
22e05272 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 2078
5213506e 2079} # ac_fn_c_check_type
6de9cd9a 2080
21be0a5a
JB
2081# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2082# --------------------------------------------
2083# Tries to find the compile-time value of EXPR in a program that includes
2084# INCLUDES, setting VAR accordingly. Returns whether the value could be
2085# computed
2086ac_fn_c_compute_int ()
5213506e
RW
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2089 if test "$cross_compiling" = yes; then
2090 # Depending upon the size, compute the lo and hi bounds.
2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2092/* end confdefs.h. */
c13e029b 2093$4
5213506e
RW
2094int
2095main ()
2096{
c13e029b 2097static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
2098test_array [0] = 0;
2099return test_array [0];
6de9cd9a 2100
5213506e
RW
2101 ;
2102 return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2106 ac_lo=0 ac_mid=0
2107 while :; do
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2109/* end confdefs.h. */
c13e029b 2110$4
5213506e
RW
2111int
2112main ()
2113{
c13e029b 2114static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2115test_array [0] = 0;
2116return test_array [0];
6de9cd9a 2117
5213506e
RW
2118 ;
2119 return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2123 ac_hi=$ac_mid; break
5213506e 2124else
c13e029b
PB
2125 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2126 if test $ac_lo -le $ac_mid; then
2127 ac_lo= ac_hi=
2128 break
2129 fi
2130 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2131fi
2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2133 done
2134else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2142test_array [0] = 0;
2143return test_array [0];
c13e029b
PB
2144
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=-1 ac_mid=-1
2151 while :; do
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h. */
2154$4
2155int
2156main ()
2157{
2158static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2159test_array [0] = 0;
2160return test_array [0];
c13e029b
PB
2161
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_lo=$ac_mid; break
2168else
2169 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2170 if test $ac_mid -le $ac_hi; then
2171 ac_lo= ac_hi=
2172 break
2173 fi
2174 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2177 done
d72a3ac1 2178else
c13e029b 2179 ac_lo= ac_hi=
5213506e 2180fi
c13e029b 2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2182fi
c13e029b
PB
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184# Binary search between lo and hi bounds.
2185while test "x$ac_lo" != "x$ac_hi"; do
2186 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2188/* end confdefs.h. */
c13e029b 2189$4
5213506e
RW
2190int
2191main ()
2192{
c13e029b 2193static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2194test_array [0] = 0;
2195return test_array [0];
6de9cd9a 2196
5213506e
RW
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2202 ac_hi=$ac_mid
2203else
2204 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2207done
2208case $ac_lo in #((
2209?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2210'') ac_retval=1 ;;
2211esac
2212 else
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h. */
2215$4
2216static long int longval () { return $2; }
2217static unsigned long int ulongval () { return $2; }
2218#include <stdio.h>
2219#include <stdlib.h>
2220int
2221main ()
2222{
6de9cd9a 2223
c13e029b
PB
2224 FILE *f = fopen ("conftest.val", "w");
2225 if (! f)
2226 return 1;
2227 if (($2) < 0)
2228 {
2229 long int i = longval ();
2230 if (i != ($2))
2231 return 1;
2232 fprintf (f, "%ld", i);
2233 }
2234 else
2235 {
2236 unsigned long int i = ulongval ();
2237 if (i != ($2))
2238 return 1;
2239 fprintf (f, "%lu", i);
2240 }
2241 /* Do not output a trailing newline, as this causes \r\n confusion
2242 on some platforms. */
2243 return ferror (f) || fclose (f) != 0;
2244
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_run "$LINENO"; then :
2250 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2251else
c13e029b 2252 ac_retval=1
d72a3ac1 2253fi
c13e029b
PB
2254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2255 conftest.$ac_objext conftest.beam conftest.$ac_ext
2256rm -f conftest.val
2257
2258 fi
22e05272
JM
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 as_fn_set_status $ac_retval
6de9cd9a 2261
c13e029b 2262} # ac_fn_c_compute_int
6de9cd9a 2263
5213506e
RW
2264# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2265# ----------------------------------------------------
2266# Tries to find if the field MEMBER exists in type AGGR, after including
2267# INCLUDES, setting cache variable VAR accordingly.
2268ac_fn_c_check_member ()
2269{
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2272$as_echo_n "checking for $2.$3... " >&6; }
22e05272 2273if eval \${$4+:} false; then :
5213506e
RW
2274 $as_echo_n "(cached) " >&6
2275else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h. */
2278$5
2279int
2280main ()
2281{
2282static $2 ac_aggr;
2283if (ac_aggr.$3)
2284return 0;
2285 ;
2286 return 0;
2287}
2288_ACEOF
2289if ac_fn_c_try_compile "$LINENO"; then :
2290 eval "$4=yes"
2291else
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293/* end confdefs.h. */
2294$5
2295int
2296main ()
2297{
2298static $2 ac_aggr;
2299if (sizeof ac_aggr.$3)
2300return 0;
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$4=yes"
2307else
2308 eval "$4=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311fi
2312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313fi
2314eval ac_res=\$$4
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316$as_echo "$ac_res" >&6; }
22e05272 2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6de9cd9a 2318
5213506e
RW
2319} # ac_fn_c_check_member
2320cat >config.log <<_ACEOF
2321This file contains any messages produced by compilers while
2322running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2323
5213506e 2324It was created by GNU Fortran Runtime Library $as_me 0.3, which was
22e05272 2325generated by GNU Autoconf 2.69. Invocation command line was
6de9cd9a 2326
5213506e 2327 $ $0 $@
6de9cd9a 2328
5213506e
RW
2329_ACEOF
2330exec 5>>config.log
2331{
2332cat <<_ASUNAME
2333## --------- ##
2334## Platform. ##
2335## --------- ##
6de9cd9a 2336
5213506e
RW
2337hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2338uname -m = `(uname -m) 2>/dev/null || echo unknown`
2339uname -r = `(uname -r) 2>/dev/null || echo unknown`
2340uname -s = `(uname -s) 2>/dev/null || echo unknown`
2341uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2342
5213506e
RW
2343/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2344/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2345
5213506e
RW
2346/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2347/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2348/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2349/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2350/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2351/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2352/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2353
5213506e 2354_ASUNAME
18c04407 2355
5213506e
RW
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 $as_echo "PATH: $as_dir"
2362 done
2363IFS=$as_save_IFS
18c04407 2364
5213506e 2365} >&5
18c04407 2366
5213506e 2367cat >&5 <<_ACEOF
6de9cd9a
DN
2368
2369
5213506e
RW
2370## ----------- ##
2371## Core tests. ##
2372## ----------- ##
78511f8b 2373
5213506e 2374_ACEOF
38d24731 2375
96b8a615 2376
5213506e
RW
2377# Keep a trace of the command line.
2378# Strip out --no-create and --no-recursion so they do not pile up.
2379# Strip out --silent because we don't want to record it for future runs.
2380# Also quote any args containing shell meta-characters.
2381# Make two passes to allow for proper duplicate-argument suppression.
2382ac_configure_args=
2383ac_configure_args0=
2384ac_configure_args1=
2385ac_must_keep_next=false
2386for ac_pass in 1 2
2387do
2388 for ac_arg
2389 do
2390 case $ac_arg in
2391 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2393 | -silent | --silent | --silen | --sile | --sil)
2394 continue ;;
2395 *\'*)
2396 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2397 esac
2398 case $ac_pass in
2399 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2400 2)
2401 as_fn_append ac_configure_args1 " '$ac_arg'"
2402 if test $ac_must_keep_next = true; then
2403 ac_must_keep_next=false # Got value, back to normal.
2404 else
2405 case $ac_arg in
2406 *=* | --config-cache | -C | -disable-* | --disable-* \
2407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2409 | -with-* | --with-* | -without-* | --without-* | --x)
2410 case "$ac_configure_args0 " in
2411 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2412 esac
2413 ;;
2414 -* ) ac_must_keep_next=true ;;
2415 esac
2416 fi
2417 as_fn_append ac_configure_args " '$ac_arg'"
2418 ;;
2419 esac
2420 done
6de9cd9a 2421done
5213506e
RW
2422{ ac_configure_args0=; unset ac_configure_args0;}
2423{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2424
5213506e
RW
2425# When interrupted or exit'd, cleanup temporary files, and complete
2426# config.log. We remove comments because anyway the quotes in there
2427# would cause problems or look ugly.
2428# WARNING: Use '\'' to represent an apostrophe within the trap.
2429# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2430trap 'exit_status=$?
2431 # Save into config.log some information that might help in debugging.
2432 {
2433 echo
96b8a615 2434
22e05272 2435 $as_echo "## ---------------- ##
5213506e 2436## Cache variables. ##
22e05272 2437## ---------------- ##"
5213506e
RW
2438 echo
2439 # The following way of writing the cache mishandles newlines in values,
2440(
2441 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2442 eval ac_val=\$$ac_var
2443 case $ac_val in #(
2444 *${as_nl}*)
2445 case $ac_var in #(
2446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2447$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2448 esac
2449 case $ac_var in #(
2450 _ | IFS | as_nl) ;; #(
2451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2452 *) { eval $ac_var=; unset $ac_var;} ;;
2453 esac ;;
2454 esac
2455 done
2456 (set) 2>&1 |
2457 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2458 *${as_nl}ac_space=\ *)
2459 sed -n \
2460 "s/'\''/'\''\\\\'\'''\''/g;
2461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2462 ;; #(
2463 *)
2464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2465 ;;
2466 esac |
2467 sort
2468)
2469 echo
2470
22e05272 2471 $as_echo "## ----------------- ##
5213506e 2472## Output variables. ##
22e05272 2473## ----------------- ##"
5213506e
RW
2474 echo
2475 for ac_var in $ac_subst_vars
2476 do
2477 eval ac_val=\$$ac_var
2478 case $ac_val in
2479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2480 esac
2481 $as_echo "$ac_var='\''$ac_val'\''"
2482 done | sort
2483 echo
2484
2485 if test -n "$ac_subst_files"; then
22e05272 2486 $as_echo "## ------------------- ##
5213506e 2487## File substitutions. ##
22e05272 2488## ------------------- ##"
5213506e
RW
2489 echo
2490 for ac_var in $ac_subst_files
2491 do
2492 eval ac_val=\$$ac_var
2493 case $ac_val in
2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 esac
2496 $as_echo "$ac_var='\''$ac_val'\''"
2497 done | sort
2498 echo
2499 fi
2500
2501 if test -s confdefs.h; then
22e05272 2502 $as_echo "## ----------- ##
5213506e 2503## confdefs.h. ##
22e05272 2504## ----------- ##"
5213506e
RW
2505 echo
2506 cat confdefs.h
2507 echo
2508 fi
2509 test "$ac_signal" != 0 &&
2510 $as_echo "$as_me: caught signal $ac_signal"
2511 $as_echo "$as_me: exit $exit_status"
2512 } >&5
2513 rm -f core *.core core.conftest.* &&
2514 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515 exit $exit_status
2516' 0
2517for ac_signal in 1 2 13 15; do
2518 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2519done
2520ac_signal=0
2521
2522# confdefs.h avoids OS command line length limits that DEFS can exceed.
2523rm -f -r conftest* confdefs.h
2524
2525$as_echo "/* confdefs.h */" > confdefs.h
2526
2527# Predefined preprocessor variables.
2528
2529cat >>confdefs.h <<_ACEOF
2530#define PACKAGE_NAME "$PACKAGE_NAME"
2531_ACEOF
2532
2533cat >>confdefs.h <<_ACEOF
2534#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535_ACEOF
2536
2537cat >>confdefs.h <<_ACEOF
2538#define PACKAGE_VERSION "$PACKAGE_VERSION"
2539_ACEOF
2540
2541cat >>confdefs.h <<_ACEOF
2542#define PACKAGE_STRING "$PACKAGE_STRING"
2543_ACEOF
2544
2545cat >>confdefs.h <<_ACEOF
2546#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547_ACEOF
2548
2549cat >>confdefs.h <<_ACEOF
2550#define PACKAGE_URL "$PACKAGE_URL"
2551_ACEOF
2552
2553
2554# Let the site file select an alternate cache file if it wants to.
2555# Prefer an explicitly selected file to automatically selected ones.
2556ac_site_file1=NONE
2557ac_site_file2=NONE
2558if test -n "$CONFIG_SITE"; then
22e05272
JM
2559 # We do not want a PATH search for config.site.
2560 case $CONFIG_SITE in #((
2561 -*) ac_site_file1=./$CONFIG_SITE;;
2562 */*) ac_site_file1=$CONFIG_SITE;;
2563 *) ac_site_file1=./$CONFIG_SITE;;
2564 esac
5213506e
RW
2565elif test "x$prefix" != xNONE; then
2566 ac_site_file1=$prefix/share/config.site
2567 ac_site_file2=$prefix/etc/config.site
2568else
2569 ac_site_file1=$ac_default_prefix/share/config.site
2570 ac_site_file2=$ac_default_prefix/etc/config.site
2571fi
2572for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2573do
2574 test "x$ac_site_file" = xNONE && continue
22e05272 2575 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2577$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2578 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2579 . "$ac_site_file" \
2580 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582as_fn_error $? "failed to load site script $ac_site_file
2583See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
2584 fi
2585done
2586
2587if test -r "$cache_file"; then
22e05272
JM
2588 # Some versions of bash will fail to source /dev/null (special files
2589 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2590 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2592$as_echo "$as_me: loading cache $cache_file" >&6;}
2593 case $cache_file in
2594 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2595 *) . "./$cache_file";;
2596 esac
2597 fi
2598else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2600$as_echo "$as_me: creating cache $cache_file" >&6;}
2601 >$cache_file
2602fi
2603
74544378 2604as_fn_append ac_header_list " unistd.h"
864c28e1 2605as_fn_append ac_header_list " sys/random.h"
74544378
JB
2606as_fn_append ac_header_list " sys/time.h"
2607as_fn_append ac_header_list " sys/times.h"
2608as_fn_append ac_header_list " sys/resource.h"
2609as_fn_append ac_header_list " sys/types.h"
2610as_fn_append ac_header_list " sys/stat.h"
edaaef60 2611as_fn_append ac_header_list " sys/uio.h"
74544378
JB
2612as_fn_append ac_header_list " sys/wait.h"
2613as_fn_append ac_header_list " floatingpoint.h"
2614as_fn_append ac_header_list " ieeefp.h"
2615as_fn_append ac_header_list " fenv.h"
2616as_fn_append ac_header_list " fptrap.h"
fa86f4f9 2617as_fn_append ac_header_list " fpxcp.h"
74544378
JB
2618as_fn_append ac_header_list " pwd.h"
2619as_fn_append ac_header_list " complex.h"
9cbecd06 2620as_fn_append ac_header_list " xlocale.h"
74544378
JB
2621as_fn_append ac_func_list " getrusage"
2622as_fn_append ac_func_list " times"
2623as_fn_append ac_func_list " mkstemp"
2624as_fn_append ac_func_list " strtof"
2625as_fn_append ac_func_list " strtold"
2626as_fn_append ac_func_list " snprintf"
2627as_fn_append ac_func_list " ftruncate"
2628as_fn_append ac_func_list " chsize"
2629as_fn_append ac_func_list " chdir"
d66d6d15 2630as_fn_append ac_func_list " getentropy"
74544378
JB
2631as_fn_append ac_func_list " getlogin"
2632as_fn_append ac_func_list " gethostname"
2633as_fn_append ac_func_list " kill"
2634as_fn_append ac_func_list " link"
2635as_fn_append ac_func_list " symlink"
2636as_fn_append ac_func_list " sleep"
2637as_fn_append ac_func_list " ttyname"
ef536b41
JB
2638as_fn_append ac_func_list " sigaction"
2639as_fn_append ac_func_list " waitpid"
74544378
JB
2640as_fn_append ac_func_list " alarm"
2641as_fn_append ac_func_list " access"
2642as_fn_append ac_func_list " fork"
f8886038 2643as_fn_append ac_func_list " posix_spawn"
74544378 2644as_fn_append ac_func_list " setmode"
b5b58343 2645as_fn_append ac_func_list " fcntl"
edaaef60 2646as_fn_append ac_func_list " writev"
74544378
JB
2647as_fn_append ac_func_list " gettimeofday"
2648as_fn_append ac_func_list " stat"
2649as_fn_append ac_func_list " fstat"
2650as_fn_append ac_func_list " lstat"
2651as_fn_append ac_func_list " getpwuid"
2652as_fn_append ac_func_list " vsnprintf"
2653as_fn_append ac_func_list " dup"
2654as_fn_append ac_func_list " getcwd"
2655as_fn_append ac_func_list " localtime_r"
2656as_fn_append ac_func_list " gmtime_r"
74544378
JB
2657as_fn_append ac_func_list " getpwuid_r"
2658as_fn_append ac_func_list " ttyname_r"
2659as_fn_append ac_func_list " clock_gettime"
74544378
JB
2660as_fn_append ac_func_list " getgid"
2661as_fn_append ac_func_list " getpid"
74544378
JB
2662as_fn_append ac_func_list " getuid"
2663as_fn_append ac_func_list " geteuid"
8ecd1c0d 2664as_fn_append ac_func_list " umask"
68ee9c08 2665as_fn_append ac_func_list " getegid"
227e441f 2666as_fn_append ac_func_list " secure_getenv"
68ee9c08 2667as_fn_append ac_func_list " __secure_getenv"
c20fdb91 2668as_fn_append ac_func_list " mkostemp"
4269f19c
JB
2669as_fn_append ac_func_list " strnlen"
2670as_fn_append ac_func_list " strndup"
9cbecd06
JB
2671as_fn_append ac_func_list " newlocale"
2672as_fn_append ac_func_list " freelocale"
2673as_fn_append ac_func_list " uselocale"
2674as_fn_append ac_func_list " strerror_l"
133d0d42
JJ
2675as_fn_append ac_func_list " strtof128"
2676as_fn_append ac_func_list " strfromf128"
db9f46a9 2677as_fn_append ac_header_list " math.h"
5213506e
RW
2678# Check that the precious variables saved in the cache have kept the same
2679# value.
2680ac_cache_corrupted=false
2681for ac_var in $ac_precious_vars; do
2682 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2683 eval ac_new_set=\$ac_env_${ac_var}_set
2684 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2685 eval ac_new_val=\$ac_env_${ac_var}_value
2686 case $ac_old_set,$ac_new_set in
2687 set,)
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2689$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2690 ac_cache_corrupted=: ;;
2691 ,set)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2693$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2694 ac_cache_corrupted=: ;;
2695 ,);;
2696 *)
2697 if test "x$ac_old_val" != "x$ac_new_val"; then
2698 # differences in whitespace do not lead to failure.
2699 ac_old_val_w=`echo x $ac_old_val`
2700 ac_new_val_w=`echo x $ac_new_val`
2701 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2703$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2704 ac_cache_corrupted=:
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2707$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2708 eval $ac_var=\$ac_old_val
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2711$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2713$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2714 fi;;
2715 esac
2716 # Pass precious variables to config.status.
2717 if test "$ac_new_set" = set; then
2718 case $ac_new_val in
2719 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2720 *) ac_arg=$ac_var=$ac_new_val ;;
2721 esac
2722 case " $ac_configure_args " in
2723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2724 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2725 esac
2726 fi
2727done
2728if $ac_cache_corrupted; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2732$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2733 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5213506e
RW
2734fi
2735## -------------------- ##
2736## Main body of script. ##
2737## -------------------- ##
2738
2739ac_ext=c
2740ac_cpp='$CPP $CPPFLAGS'
2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
2745
2746
2747
2748
2749ac_config_headers="$ac_config_headers config.h"
2750
2751ac_aux_dir=
2752for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2753 if test -f "$ac_dir/install-sh"; then
2754 ac_aux_dir=$ac_dir
2755 ac_install_sh="$ac_aux_dir/install-sh -c"
2756 break
2757 elif test -f "$ac_dir/install.sh"; then
2758 ac_aux_dir=$ac_dir
2759 ac_install_sh="$ac_aux_dir/install.sh -c"
2760 break
2761 elif test -f "$ac_dir/shtool"; then
2762 ac_aux_dir=$ac_dir
2763 ac_install_sh="$ac_aux_dir/shtool install -c"
2764 break
2765 fi
5213506e
RW
2766done
2767if test -z "$ac_aux_dir"; then
22e05272 2768 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5213506e
RW
2769fi
2770
2771# These three variables are undocumented and unsupported,
2772# and are intended to be withdrawn in a future Autoconf release.
2773# They can cause serious problems if a builder's source tree is in a directory
2774# whose full name contains unusual characters.
2775ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2776ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2777ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2778
2779
2780# Make sure we can run config.sub.
2781$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2782 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2783
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2785$as_echo_n "checking build system type... " >&6; }
22e05272 2786if ${ac_cv_build+:} false; then :
5213506e
RW
2787 $as_echo_n "(cached) " >&6
2788else
2789 ac_build_alias=$build_alias
2790test "x$ac_build_alias" = x &&
2791 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2792test "x$ac_build_alias" = x &&
22e05272 2793 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2794ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2796
2797fi
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2799$as_echo "$ac_cv_build" >&6; }
2800case $ac_cv_build in
2801*-*-*) ;;
22e05272 2802*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e
RW
2803esac
2804build=$ac_cv_build
2805ac_save_IFS=$IFS; IFS='-'
2806set x $ac_cv_build
2807shift
2808build_cpu=$1
2809build_vendor=$2
2810shift; shift
2811# Remember, the first character of IFS is used to create $*,
2812# except with old shells:
2813build_os=$*
2814IFS=$ac_save_IFS
2815case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2816
2817
2818 case ${build_alias} in
2819 "") build_noncanonical=${build} ;;
2820 *) build_noncanonical=${build_alias} ;;
2821esac
891c05b1
JJ
2822
2823 case ${host_alias} in
2824 "") host_noncanonical=${build_noncanonical} ;;
2825 *) host_noncanonical=${host_alias} ;;
2826esac
2827
2828 case ${target_alias} in
2829 "") target_noncanonical=${host_noncanonical} ;;
2830 *) target_noncanonical=${target_alias} ;;
2831esac
2832
57255173
PB
2833
2834# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2835# have matching libraries, they should use host libraries: Makefile.tpl
2836# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2837# However, they still use the build modules, because the corresponding
2838# host modules (e.g. bison) are only built for the host when bootstrap
2839# finishes. So:
2840# - build_subdir is where we find build modules, and never changes.
2841# - build_libsubdir is where we find build libraries, and can be overridden.
2842
2843# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2844build_subdir="build-${build_noncanonical}"
57255173 2845
5213506e
RW
2846# Check whether --with-build-libsubdir was given.
2847if test "${with_build_libsubdir+set}" = set; then :
2848 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2849else
2850 build_libsubdir="$build_subdir"
5213506e
RW
2851fi
2852
891c05b1
JJ
2853# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2854if ( test $srcdir = . && test -d gcc ) \
2855 || test -d $srcdir/../host-${host_noncanonical}; then
2856 host_subdir="host-${host_noncanonical}"
2857else
2858 host_subdir=.
2859fi
2860# No prefix.
2861target_subdir=${target_noncanonical}
2862
2863
2864# -------
2865# Options
2866# -------
2867
5213506e
RW
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2869$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2870# Check whether --enable-version-specific-runtime-libs was given.
2871if test "${enable_version_specific_runtime_libs+set}" = set; then :
2872 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2873 yes) version_specific_libs=yes ;;
2874 no) version_specific_libs=no ;;
22e05272 2875 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2876 esac
2877else
2878 version_specific_libs=no
5213506e
RW
2879fi
2880
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2882$as_echo "$version_specific_libs" >&6; }
891c05b1 2883
b808ac33 2884# Build with intermodule optimisations
5213506e
RW
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2886$as_echo_n "checking for --enable-intermodule... " >&6; }
2887# Check whether --enable-intermodule was given.
2888if test "${enable_intermodule+set}" = set; then :
2889 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2890 yes) onestep="-onestep";;
2891 *) onestep="";;
2892esac
2893else
2894 onestep=""
5213506e 2895fi
b808ac33 2896
5213506e
RW
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2898$as_echo "$enable_intermodule" >&6; }
2899 if test x$onestep = x-onestep; then
b808ac33
BF
2900 onestep_TRUE=
2901 onestep_FALSE='#'
2902else
2903 onestep_TRUE='#'
2904 onestep_FALSE=
2905fi
2906
2907
891c05b1
JJ
2908
2909# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2910#
2911# You will slowly go insane if you do not grok the following fact: when
2912# building this library, the top-level /target/ becomes the library's /host/.
2913#
2914# configure then causes --target to default to --host, exactly like any
2915# other package using autoconf. Therefore, 'target' and 'host' will
2916# always be the same. This makes sense both for native and cross compilers
2917# just think about it for a little while. :-)
2918#
2919# Also, if this library is being configured as part of a cross compiler, the
2920# top-level configure script will pass the "real" host as $with_cross_host.
2921#
2922# Do not delete or change the following two lines. For why, see
2923# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2925$as_echo_n "checking host system type... " >&6; }
22e05272 2926if ${ac_cv_host+:} false; then :
5213506e
RW
2927 $as_echo_n "(cached) " >&6
2928else
2929 if test "x$host_alias" = x; then
2930 ac_cv_host=$ac_cv_build
2931else
2932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2933 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e
RW
2934fi
2935
2936fi
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2938$as_echo "$ac_cv_host" >&6; }
2939case $ac_cv_host in
2940*-*-*) ;;
22e05272 2941*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2942esac
96b8a615 2943host=$ac_cv_host
5213506e
RW
2944ac_save_IFS=$IFS; IFS='-'
2945set x $ac_cv_host
2946shift
2947host_cpu=$1
2948host_vendor=$2
2949shift; shift
2950# Remember, the first character of IFS is used to create $*,
2951# except with old shells:
2952host_os=$*
2953IFS=$ac_save_IFS
2954case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2955
2956
5213506e
RW
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2958$as_echo_n "checking target system type... " >&6; }
22e05272 2959if ${ac_cv_target+:} false; then :
5213506e 2960 $as_echo_n "(cached) " >&6
96b8a615 2961else
5213506e
RW
2962 if test "x$target_alias" = x; then
2963 ac_cv_target=$ac_cv_host
2964else
2965 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2966 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2967fi
96b8a615
AJ
2968
2969fi
5213506e
RW
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2971$as_echo "$ac_cv_target" >&6; }
2972case $ac_cv_target in
2973*-*-*) ;;
22e05272 2974*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2975esac
96b8a615 2976target=$ac_cv_target
5213506e
RW
2977ac_save_IFS=$IFS; IFS='-'
2978set x $ac_cv_target
2979shift
2980target_cpu=$1
2981target_vendor=$2
2982shift; shift
2983# Remember, the first character of IFS is used to create $*,
2984# except with old shells:
2985target_os=$*
2986IFS=$ac_save_IFS
2987case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2988
2989
2990# The aliases save the names the user supplied, while $host etc.
2991# will get canonicalized.
2992test -n "$target_alias" &&
2993 test "$program_prefix$program_suffix$program_transform_name" = \
2994 NONENONEs,x,x, &&
2995 program_prefix=${target_alias}-
5213506e 2996
60858d8a
TB
2997
2998
2999
96b8a615
AJ
3000target_alias=${target_alias-$host_alias}
3001
60858d8a 3002
96b8a615
AJ
3003# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3004# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 3005# 1.9.6: minimum required version
96b8a615
AJ
3006# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3007# of other PACKAGE_* variables will, however, and there's nothing
3008# we can do about that; they come from AC_INIT).
3009# foreign: we don't follow the normal rules for GNU packages (no COPYING
3010# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 3011# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
3012# -Wall: turns on all automake warnings...
3013# -Wno-portability: ...except this one, since GNU make is required.
22e05272 3014am__api_version='1.15'
5213506e 3015
6de9cd9a
DN
3016# Find a good install program. We prefer a C program (faster),
3017# so one script is as good as another. But avoid the broken or
3018# incompatible versions:
3019# SysV /etc/install, /usr/sbin/install
3020# SunOS /usr/etc/install
3021# IRIX /sbin/install
3022# AIX /bin/install
3023# AmigaOS /C/install, which installs bootblocks on floppy discs
3024# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3025# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3026# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3027# OS/2's system install, which has a completely different semantic
3028# ./install, which can be erroneously created by make from ./install.sh.
38d24731 3029# Reject install programs that cannot install multiple files.
5213506e
RW
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3031$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 3032if test -z "$INSTALL"; then
22e05272 3033if ${ac_cv_path_install+:} false; then :
5213506e 3034 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3035else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
5213506e
RW
3041 # Account for people who put trailing slashes in PATH elements.
3042case $as_dir/ in #((
3043 ./ | .// | /[cC]/* | \
6de9cd9a 3044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 3045 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
3046 /usr/ucb/* ) ;;
3047 *)
3048 # OSF1 and SCO ODT 3.0 have their own names for install.
3049 # Don't use installbsd from OSF since it installs stuff as root
3050 # by default.
3051 for ac_prog in ginstall scoinst install; do
3052 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3053 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6de9cd9a
DN
3054 if test $ac_prog = install &&
3055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3056 # AIX install. It has an incompatible calling convention.
3057 :
3058 elif test $ac_prog = install &&
3059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3060 # program-specific install script used by HP pwplus--don't use.
3061 :
3062 else
38d24731
RW
3063 rm -rf conftest.one conftest.two conftest.dir
3064 echo one > conftest.one
3065 echo two > conftest.two
3066 mkdir conftest.dir
3067 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3068 test -s conftest.one && test -s conftest.two &&
3069 test -s conftest.dir/conftest.one &&
3070 test -s conftest.dir/conftest.two
3071 then
3072 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3073 break 3
3074 fi
6de9cd9a
DN
3075 fi
3076 fi
3077 done
3078 done
3079 ;;
3080esac
5213506e
RW
3081
3082 done
3083IFS=$as_save_IFS
6de9cd9a 3084
38d24731 3085rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3086
3087fi
3088 if test "${ac_cv_path_install+set}" = set; then
3089 INSTALL=$ac_cv_path_install
3090 else
f489fba1
FXC
3091 # As a last resort, use the slow shell script. Don't cache a
3092 # value for INSTALL within a source directory, because that will
6de9cd9a 3093 # break other packages using the cache if that directory is
f489fba1 3094 # removed, or if the value is a relative name.
6de9cd9a
DN
3095 INSTALL=$ac_install_sh
3096 fi
3097fi
5213506e
RW
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3099$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
3100
3101# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3102# It thinks the first close brace ends the variable substitution.
3103test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3104
3105test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3106
3107test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3108
5213506e
RW
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3110$as_echo_n "checking whether build environment is sane... " >&6; }
5213506e
RW
3111# Reject unsafe characters in $srcdir or the absolute working directory
3112# name. Accept space and tab only in the latter.
3113am_lf='
3114'
3115case `pwd` in
3116 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 3117 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5213506e
RW
3118esac
3119case $srcdir in
3120 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 3121 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5213506e
RW
3122esac
3123
22e05272 3124# Do 'set' in a subshell so we don't clobber the current shell's
6de9cd9a
DN
3125# arguments. Must try -L first in case configure is actually a
3126# symlink; some systems play weird games with the mod time of symlinks
3127# (eg FreeBSD returns the mod time of the symlink's containing
3128# directory).
3129if (
22e05272
JM
3130 am_has_slept=no
3131 for am_try in 1 2; do
3132 echo "timestamp, slept: $am_has_slept" > conftest.file
3133 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3134 if test "$*" = "X"; then
3135 # -L didn't work.
3136 set X `ls -t "$srcdir/configure" conftest.file`
3137 fi
3138 if test "$*" != "X $srcdir/configure conftest.file" \
3139 && test "$*" != "X conftest.file $srcdir/configure"; then
3140
3141 # If neither matched, then we have a broken ls. This can happen
3142 # if, for instance, CONFIG_SHELL is bash and it inherits a
3143 # broken ls alias from the environment. This has actually
3144 # happened. Such a system could not be considered "sane".
3145 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3146 alias in your environment" "$LINENO" 5
3147 fi
3148 if test "$2" = conftest.file || test $am_try -eq 2; then
3149 break
3150 fi
3151 # Just in case.
3152 sleep 1
3153 am_has_slept=yes
3154 done
6de9cd9a
DN
3155 test "$2" = conftest.file
3156 )
3157then
3158 # Ok.
3159 :
3160else
22e05272 3161 as_fn_error $? "newly created file is older than distributed files!
5213506e 3162Check your system clock" "$LINENO" 5
6de9cd9a 3163fi
5213506e
RW
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165$as_echo "yes" >&6; }
22e05272
JM
3166# If we didn't sleep, we still need to ensure time stamps of config.status and
3167# generated files are strictly newer.
3168am_sleep_pid=
3169if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3170 ( sleep 1 ) &
3171 am_sleep_pid=$!
3172fi
3173
3174rm -f conftest.file
3175
6de9cd9a 3176test "$program_prefix" != NONE &&
5213506e 3177 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3178# Use a double $ so make ignores it.
3179test "$program_suffix" != NONE &&
5213506e
RW
3180 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3181# Double any \ or $.
6de9cd9a 3182# By default was `s,x,x', remove it if useless.
5213506e
RW
3183ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3184program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a 3185
22e05272
JM
3186# Expand $ac_aux_dir to an absolute path.
3187am_aux_dir=`cd "$ac_aux_dir" && pwd`
6de9cd9a 3188
5213506e
RW
3189if test x"${MISSING+set}" != xset; then
3190 case $am_aux_dir in
3191 *\ * | *\ *)
3192 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3193 *)
3194 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3195 esac
3196fi
6de9cd9a 3197# Use eval to expand $SHELL
22e05272
JM
3198if eval "$MISSING --is-lightweight"; then
3199 am_missing_run="$MISSING "
6de9cd9a
DN
3200else
3201 am_missing_run=
22e05272
JM
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3203$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6de9cd9a
DN
3204fi
3205
22e05272 3206if test x"${install_sh+set}" != xset; then
5213506e
RW
3207 case $am_aux_dir in
3208 *\ * | *\ *)
3209 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3210 *)
3211 install_sh="\${SHELL} $am_aux_dir/install-sh"
3212 esac
3213fi
3214
22e05272
JM
3215# Installed binaries are usually stripped using 'strip' when the user
3216# run "make install-strip". However 'strip' might not be the right
5213506e 3217# tool to use in cross-compilation environments, therefore Automake
22e05272 3218# will honor the 'STRIP' environment variable to overrule this program.
5213506e
RW
3219if test "$cross_compiling" != no; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3222set dummy ${ac_tool_prefix}strip; ac_word=$2
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3225if ${ac_cv_prog_STRIP+:} false; then :
5213506e 3226 $as_echo_n "(cached) " >&6
6de9cd9a 3227else
5213506e
RW
3228 if test -n "$STRIP"; then
3229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
5213506e 3236 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3240 break 2
3241 fi
3242done
5213506e
RW
3243 done
3244IFS=$as_save_IFS
6de9cd9a
DN
3245
3246fi
3247fi
5213506e
RW
3248STRIP=$ac_cv_prog_STRIP
3249if test -n "$STRIP"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3251$as_echo "$STRIP" >&6; }
6de9cd9a 3252else
5213506e
RW
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
6de9cd9a
DN
3255fi
3256
6de9cd9a 3257
5213506e
RW
3258fi
3259if test -z "$ac_cv_prog_STRIP"; then
3260 ac_ct_STRIP=$STRIP
3261 # Extract the first word of "strip", so it can be a program name with args.
3262set dummy strip; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3265if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 3266 $as_echo_n "(cached) " >&6
6de9cd9a 3267else
5213506e
RW
3268 if test -n "$ac_ct_STRIP"; then
3269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3270else
5213506e
RW
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3278 ac_cv_prog_ac_ct_STRIP="strip"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282done
3283 done
3284IFS=$as_save_IFS
3285
38d24731 3286fi
6de9cd9a 3287fi
5213506e
RW
3288ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3289if test -n "$ac_ct_STRIP"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3291$as_echo "$ac_ct_STRIP" >&6; }
3292else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
3296
3297 if test "x$ac_ct_STRIP" = x; then
3298 STRIP=":"
3299 else
3300 case $cross_compiling:$ac_tool_warned in
3301yes:)
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304ac_tool_warned=yes ;;
3305esac
3306 STRIP=$ac_ct_STRIP
3307 fi
3308else
3309 STRIP="$ac_cv_prog_STRIP"
3310fi
3311
3312fi
3313INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3314
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3316$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3317if test -z "$MKDIR_P"; then
22e05272 3318 if ${ac_cv_path_mkdir+:} false; then :
5213506e
RW
3319 $as_echo_n "(cached) " >&6
3320else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3323do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_prog in mkdir gmkdir; do
3327 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3328 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5213506e
RW
3329 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3330 'mkdir (GNU coreutils) '* | \
3331 'mkdir (coreutils) '* | \
3332 'mkdir (fileutils) '4.1*)
3333 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3334 break 3;;
3335 esac
3336 done
3337 done
3338 done
3339IFS=$as_save_IFS
3340
3341fi
3342
22e05272 3343 test -d ./--version && rmdir ./--version
5213506e
RW
3344 if test "${ac_cv_path_mkdir+set}" = set; then
3345 MKDIR_P="$ac_cv_path_mkdir -p"
3346 else
3347 # As a last resort, use the slow shell script. Don't cache a
3348 # value for MKDIR_P within a source directory, because that will
3349 # break other packages using the cache if that directory is
3350 # removed, or if the value is a relative name.
5213506e
RW
3351 MKDIR_P="$ac_install_sh -d"
3352 fi
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3355$as_echo "$MKDIR_P" >&6; }
3356
5213506e
RW
3357for ac_prog in gawk mawk nawk awk
3358do
3359 # Extract the first word of "$ac_prog", so it can be a program name with args.
3360set dummy $ac_prog; ac_word=$2
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3363if ${ac_cv_prog_AWK+:} false; then :
5213506e
RW
3364 $as_echo_n "(cached) " >&6
3365else
3366 if test -n "$AWK"; then
3367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3376 ac_cv_prog_AWK="$ac_prog"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3379 fi
3380done
3381 done
3382IFS=$as_save_IFS
3383
3384fi
3385fi
3386AWK=$ac_cv_prog_AWK
3387if test -n "$AWK"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3389$as_echo "$AWK" >&6; }
3390else
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392$as_echo "no" >&6; }
3393fi
3394
3395
3396 test -n "$AWK" && break
3397done
3398
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3400$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3401set x ${MAKE-make}
3402ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3403if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5213506e
RW
3404 $as_echo_n "(cached) " >&6
3405else
3406 cat >conftest.make <<\_ACEOF
3407SHELL = /bin/sh
3408all:
3409 @echo '@@@%%%=$(MAKE)=@@@%%%'
3410_ACEOF
22e05272 3411# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5213506e
RW
3412case `${MAKE-make} -f conftest.make 2>/dev/null` in
3413 *@@@%%%=?*=@@@%%%*)
3414 eval ac_cv_prog_make_${ac_make}_set=yes;;
3415 *)
3416 eval ac_cv_prog_make_${ac_make}_set=no;;
3417esac
3418rm -f conftest.make
3419fi
3420if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3422$as_echo "yes" >&6; }
6de9cd9a
DN
3423 SET_MAKE=
3424else
5213506e
RW
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426$as_echo "no" >&6; }
6de9cd9a
DN
3427 SET_MAKE="MAKE=${MAKE-make}"
3428fi
3429
3430rm -rf .tst 2>/dev/null
3431mkdir .tst 2>/dev/null
3432if test -d .tst; then
3433 am__leading_dot=.
3434else
3435 am__leading_dot=_
3436fi
3437rmdir .tst 2>/dev/null
3438
22e05272
JM
3439# Check whether --enable-silent-rules was given.
3440if test "${enable_silent_rules+set}" = set; then :
3441 enableval=$enable_silent_rules;
3442fi
3443
3444case $enable_silent_rules in # (((
3445 yes) AM_DEFAULT_VERBOSITY=0;;
3446 no) AM_DEFAULT_VERBOSITY=1;;
3447 *) AM_DEFAULT_VERBOSITY=1;;
3448esac
3449am_make=${MAKE-make}
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3451$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3452if ${am_cv_make_support_nested_variables+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454else
3455 if $as_echo 'TRUE=$(BAR$(V))
3456BAR0=false
3457BAR1=true
3458V=1
3459am__doit:
3460 @$(TRUE)
3461.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3462 am_cv_make_support_nested_variables=yes
3463else
3464 am_cv_make_support_nested_variables=no
3465fi
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3468$as_echo "$am_cv_make_support_nested_variables" >&6; }
3469if test $am_cv_make_support_nested_variables = yes; then
3470 AM_V='$(V)'
3471 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3472else
3473 AM_V=$AM_DEFAULT_VERBOSITY
3474 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3475fi
3476AM_BACKSLASH='\'
3477
5213506e
RW
3478if test "`cd $srcdir && pwd`" != "`pwd`"; then
3479 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3480 # is not polluted with repeated "-I."
3481 am__isrc=' -I$(srcdir)'
3482 # test to see if srcdir already configured
3483 if test -f $srcdir/config.status; then
22e05272 3484 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5213506e 3485 fi
6de9cd9a
DN
3486fi
3487
3488# test whether we have cygpath
3489if test -z "$CYGPATH_W"; then
3490 if (cygpath --version) >/dev/null 2>/dev/null; then
3491 CYGPATH_W='cygpath -w'
3492 else
3493 CYGPATH_W=echo
3494 fi
3495fi
3496
3497
3498# Define the identity of the package.
3499 PACKAGE='libgfortran'
0dce3ca1 3500 VERSION='0.3'
6de9cd9a
DN
3501
3502
6de9cd9a
DN
3503# Some tools Automake needs.
3504
3505ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3506
3507
3508AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3509
3510
3511AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3512
3513
3514AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3515
3516
3517MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3518
22e05272
JM
3519# For better backward compatibility. To be removed once Automake 1.9.x
3520# dies out for good. For more background, see:
3521# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3522# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3523mkdir_p='$(MKDIR_P)'
3524
3525# We need awk for the "check" target (and possibly the TAP driver). The
3526# system "awk" is bad on some platforms.
c20fdb91
JB
3527# Always define AMTAR for backward compatibility. Yes, it's still used
3528# in the wild :-( We should find a proper way to deprecate it ...
3529AMTAR='$${TAR-tar}'
d49ec2d1 3530
22e05272
JM
3531
3532# We'll loop over all known methods to create a tar archive until one works.
3533_am_tools='gnutar pax cpio none'
3534
c20fdb91 3535am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d49ec2d1
KC
3536
3537
6de9cd9a
DN
3538
3539
3540
6de9cd9a 3541
22e05272
JM
3542# POSIX will say in a future version that running "rm -f" with no argument
3543# is OK; and we want to be able to make that assumption in our Makefile
3544# recipes. So use an aggressive probe to check that the usage we want is
3545# actually supported "in the wild" to an acceptable degree.
3546# See automake bug#10828.
3547# To make any issue more visible, cause the running configure to be aborted
3548# by default if the 'rm' program in use doesn't match our expectations; the
3549# user can still override this though.
3550if rm -f && rm -fr && rm -rf; then : OK; else
3551 cat >&2 <<'END'
3552Oops!
3553
3554Your 'rm' program seems unable to run without file operands specified
3555on the command line, even when the '-f' option is present. This is contrary
3556to the behaviour of most rm programs out there, and not conforming with
3557the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3558
3559Please tell bug-automake@gnu.org about your system, including the value
3560of your $PATH and any error possibly output before this message. This
3561can help us improve future automake versions.
3562
3563END
3564 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3565 echo 'Configuration will proceed anyway, since you have set the' >&2
3566 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3567 echo >&2
3568 else
3569 cat >&2 <<'END'
3570Aborting the configuration process, to ensure you take notice of the issue.
3571
3572You can download and install GNU coreutils to get an 'rm' implementation
3573that behaves properly: <http://www.gnu.org/software/coreutils/>.
3574
3575If you want to complete the configuration process using your problematic
3576'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3577to "yes", and re-run configure.
3578
3579END
3580 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3581 fi
3582fi
3583
3584
5213506e
RW
3585
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3587$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3588 # Check whether --enable-maintainer-mode was given.
3589if test "${enable_maintainer_mode+set}" = set; then :
3590 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3591else
3592 USE_MAINTAINER_MODE=no
5213506e 3593fi
6de9cd9a 3594
5213506e
RW
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3596$as_echo "$USE_MAINTAINER_MODE" >&6; }
3597 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3598 MAINTAINER_MODE_TRUE=
3599 MAINTAINER_MODE_FALSE='#'
3600else
3601 MAINTAINER_MODE_TRUE='#'
3602 MAINTAINER_MODE_FALSE=
3603fi
3604
3605 MAINT=$MAINTAINER_MODE_TRUE
3606
3607
96b8a615 3608# Default to --enable-multilib
5213506e
RW
3609# Check whether --enable-multilib was given.
3610if test "${enable_multilib+set}" = set; then :
3611 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3612 yes) multilib=yes ;;
3613 no) multilib=no ;;
22e05272 3614 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3615 esac
3616else
3617 multilib=yes
5213506e
RW
3618fi
3619
96b8a615
AJ
3620
3621# We may get other options which we leave undocumented:
3622# --with-target-subdir, --with-multisrctop, --with-multisubdir
3623# See config-ml.in if you want the gory details.
3624
3625if test "$srcdir" = "."; then
3626 if test "$with_target_subdir" != "."; then
3627 multi_basedir="$srcdir/$with_multisrctop../.."
3628 else
3629 multi_basedir="$srcdir/$with_multisrctop.."
3630 fi
3631else
3632 multi_basedir="$srcdir/.."
3633fi
3634
3635
9f9ef303
FXC
3636# Even if the default multilib is not a cross compilation,
3637# it may be that some of the other multilibs are.
3638if test $cross_compiling = no && test $multilib = yes \
3639 && test "x${with_multisubdir}" != x ; then
3640 cross_compiling=maybe
3641fi
3642
5213506e 3643ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3644
3645
3646# Handy for debugging:
3647#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3648
3649# Are we being configured with some form of cross compiler?
3650# NB: We don't actually need to know this just now, but when, say, a test
3651# suite is included, we'll have to know.
3652if test "$build" != "$host"; then
3653 LIBGFOR_IS_NATIVE=false
f02d008e 3654
96b8a615
AJ
3655else
3656 LIBGFOR_IS_NATIVE=true
3657fi
3658
21be0a5a 3659DEPDIR="${am__leading_dot}deps"
96b8a615 3660
21be0a5a 3661ac_config_commands="$ac_config_commands depfiles"
96b8a615 3662
6de9cd9a 3663
21be0a5a
JB
3664am_make=${MAKE-make}
3665cat > confinc << 'END'
3666am__doit:
3667 @echo this is the am__doit target
3668.PHONY: am__doit
3669END
3670# If we don't find an include directive, just comment out the code.
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3672$as_echo_n "checking for style of include used by $am_make... " >&6; }
3673am__include="#"
3674am__quote=
3675_am_result=none
3676# First try GNU make style include.
3677echo "include confinc" > confmf
22e05272 3678# Ignore all kinds of additional output from 'make'.
21be0a5a
JB
3679case `$am_make -s -f confmf 2> /dev/null` in #(
3680*the\ am__doit\ target*)
3681 am__include=include
3682 am__quote=
3683 _am_result=GNU
3684 ;;
3685esac
3686# Now try BSD make style include.
3687if test "$am__include" = "#"; then
3688 echo '.include "confinc"' > confmf
3689 case `$am_make -s -f confmf 2> /dev/null` in #(
3690 *the\ am__doit\ target*)
3691 am__include=.include
3692 am__quote="\""
3693 _am_result=BSD
3694 ;;
3695 esac
3696fi
1ec601bf 3697
6de9cd9a 3698
21be0a5a
JB
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3700$as_echo "$_am_result" >&6; }
3701rm -f confinc confmf
3702
3703# Check whether --enable-dependency-tracking was given.
3704if test "${enable_dependency_tracking+set}" = set; then :
3705 enableval=$enable_dependency_tracking;
3706fi
3707
3708if test "x$enable_dependency_tracking" != xno; then
3709 am_depcomp="$ac_aux_dir/depcomp"
3710 AMDEPBACKSLASH='\'
c20fdb91 3711 am__nodep='_no'
21be0a5a
JB
3712fi
3713 if test "x$enable_dependency_tracking" != xno; then
3714 AMDEP_TRUE=
3715 AMDEP_FALSE='#'
3716else
3717 AMDEP_TRUE='#'
3718 AMDEP_FALSE=
3719fi
6de9cd9a
DN
3720
3721
6de9cd9a
DN
3722ac_ext=c
3723ac_cpp='$CPP $CPPFLAGS'
3724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3729set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3732if ${ac_cv_prog_CC+:} false; then :
5213506e 3733 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3734else
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC="$CC" # Let the user override the test.
3737else
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
5213506e 3743 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3747 break 2
3748 fi
3749done
5213506e
RW
3750 done
3751IFS=$as_save_IFS
6de9cd9a
DN
3752
3753fi
3754fi
3755CC=$ac_cv_prog_CC
3756if test -n "$CC"; then
5213506e
RW
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758$as_echo "$CC" >&6; }
6de9cd9a 3759else
5213506e
RW
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761$as_echo "no" >&6; }
6de9cd9a
DN
3762fi
3763
5213506e 3764
6de9cd9a
DN
3765fi
3766if test -z "$ac_cv_prog_CC"; then
3767 ac_ct_CC=$CC
3768 # Extract the first word of "gcc", so it can be a program name with args.
3769set dummy gcc; ac_word=$2
5213506e
RW
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3772if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3773 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3774else
3775 if test -n "$ac_ct_CC"; then
3776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
5213506e 3783 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3785 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3787 break 2
3788 fi
3789done
5213506e
RW
3790 done
3791IFS=$as_save_IFS
6de9cd9a
DN
3792
3793fi
3794fi
3795ac_ct_CC=$ac_cv_prog_ac_ct_CC
3796if test -n "$ac_ct_CC"; then
5213506e
RW
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3798$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3799else
5213506e
RW
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801$as_echo "no" >&6; }
6de9cd9a
DN
3802fi
3803
5213506e
RW
3804 if test "x$ac_ct_CC" = x; then
3805 CC=""
3806 else
3807 case $cross_compiling:$ac_tool_warned in
3808yes:)
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811ac_tool_warned=yes ;;
3812esac
3813 CC=$ac_ct_CC
3814 fi
6de9cd9a
DN
3815else
3816 CC="$ac_cv_prog_CC"
3817fi
3818
3819if test -z "$CC"; then
5213506e
RW
3820 if test -n "$ac_tool_prefix"; then
3821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3822set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3825if ${ac_cv_prog_CC+:} false; then :
5213506e 3826 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3827else
3828 if test -n "$CC"; then
3829 ac_cv_prog_CC="$CC" # Let the user override the test.
3830else
3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832for as_dir in $PATH
3833do
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
5213506e 3836 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3838 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3840 break 2
3841 fi
3842done
5213506e
RW
3843 done
3844IFS=$as_save_IFS
6de9cd9a
DN
3845
3846fi
3847fi
3848CC=$ac_cv_prog_CC
3849if test -n "$CC"; then
5213506e
RW
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3851$as_echo "$CC" >&6; }
38d24731 3852else
5213506e
RW
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854$as_echo "no" >&6; }
38d24731
RW
3855fi
3856
38d24731 3857
5213506e 3858 fi
6de9cd9a
DN
3859fi
3860if test -z "$CC"; then
3861 # Extract the first word of "cc", so it can be a program name with args.
3862set dummy cc; ac_word=$2
5213506e
RW
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3865if ${ac_cv_prog_CC+:} false; then :
5213506e 3866 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3867else
3868 if test -n "$CC"; then
3869 ac_cv_prog_CC="$CC" # Let the user override the test.
3870else
3871 ac_prog_rejected=no
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
5213506e 3877 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a
DN
3879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3880 ac_prog_rejected=yes
3881 continue
3882 fi
3883 ac_cv_prog_CC="cc"
5213506e 3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3885 break 2
3886 fi
3887done
5213506e
RW
3888 done
3889IFS=$as_save_IFS
6de9cd9a
DN
3890
3891if test $ac_prog_rejected = yes; then
3892 # We found a bogon in the path, so make sure we never use it.
3893 set dummy $ac_cv_prog_CC
3894 shift
3895 if test $# != 0; then
3896 # We chose a different compiler from the bogus one.
3897 # However, it has the same basename, so the bogon will be chosen
3898 # first if we set CC to just the basename; use the full file name.
3899 shift
3900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3901 fi
3902fi
3903fi
3904fi
3905CC=$ac_cv_prog_CC
3906if test -n "$CC"; then
5213506e
RW
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3908$as_echo "$CC" >&6; }
6de9cd9a 3909else
5213506e
RW
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
6de9cd9a
DN
3912fi
3913
5213506e 3914
6de9cd9a
DN
3915fi
3916if test -z "$CC"; then
3917 if test -n "$ac_tool_prefix"; then
5213506e 3918 for ac_prog in cl.exe
6de9cd9a
DN
3919 do
3920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3921set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3924if ${ac_cv_prog_CC+:} false; then :
5213506e 3925 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3926else
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
5213506e 3935 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3939 break 2
3940 fi
3941done
5213506e
RW
3942 done
3943IFS=$as_save_IFS
6de9cd9a
DN
3944
3945fi
3946fi
3947CC=$ac_cv_prog_CC
3948if test -n "$CC"; then
5213506e
RW
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950$as_echo "$CC" >&6; }
6de9cd9a 3951else
5213506e
RW
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
6de9cd9a
DN
3954fi
3955
5213506e 3956
6de9cd9a
DN
3957 test -n "$CC" && break
3958 done
3959fi
3960if test -z "$CC"; then
3961 ac_ct_CC=$CC
5213506e 3962 for ac_prog in cl.exe
6de9cd9a
DN
3963do
3964 # Extract the first word of "$ac_prog", so it can be a program name with args.
3965set dummy $ac_prog; ac_word=$2
5213506e
RW
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3968if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3969 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3970else
3971 if test -n "$ac_ct_CC"; then
3972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3973else
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
5213506e 3979 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6de9cd9a 3981 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3983 break 2
3984 fi
3985done
5213506e
RW
3986 done
3987IFS=$as_save_IFS
6de9cd9a
DN
3988
3989fi
3990fi
3991ac_ct_CC=$ac_cv_prog_ac_ct_CC
3992if test -n "$ac_ct_CC"; then
5213506e
RW
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3994$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3995else
5213506e
RW
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
6de9cd9a
DN
3998fi
3999
5213506e 4000
6de9cd9a
DN
4001 test -n "$ac_ct_CC" && break
4002done
4003
5213506e
RW
4004 if test "x$ac_ct_CC" = x; then
4005 CC=""
4006 else
4007 case $cross_compiling:$ac_tool_warned in
4008yes:)
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4011ac_tool_warned=yes ;;
4012esac
4013 CC=$ac_ct_CC
4014 fi
6de9cd9a
DN
4015fi
4016
4017fi
4018
4019
5213506e
RW
4020test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4022as_fn_error $? "no acceptable C compiler found in \$PATH
4023See \`config.log' for more details" "$LINENO" 5; }
6de9cd9a
DN
4024
4025# Provide some information about the compiler.
5213506e
RW
4026$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4027set X $ac_compile
4028ac_compiler=$2
4029for ac_option in --version -v -V -qversion; do
4030 { { ac_try="$ac_compiler $ac_option >&5"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036$as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 4038 ac_status=$?
5213506e
RW
4039 if test -s conftest.err; then
4040 sed '10a\
4041... rest of stderr output deleted ...
4042 10q' conftest.err >conftest.er1
4043 cat conftest.er1 >&5
5213506e 4044 fi
22e05272 4045 rm -f conftest.er1 conftest.err
5213506e
RW
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048done
6de9cd9a 4049
5213506e 4050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4051/* end confdefs.h. */
02ce382c 4052#include <stdio.h>
f02d008e
JD
4053int
4054main ()
4055{
02ce382c 4056printf ("hello world\n");
f02d008e
JD
4057 ;
4058 return 0;
4059}
4060_ACEOF
4061# FIXME: Cleanup?
5213506e 4062if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
4063 (eval $ac_link) 2>&5
4064 ac_status=$?
5213506e
RW
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }; then :
f02d008e
JD
4067 gcc_no_link=no
4068else
4069 gcc_no_link=yes
4070fi
f02d008e
JD
4071if test x$gcc_no_link = xyes; then
4072 # Setting cross_compile will disable run tests; it will
4073 # also disable AC_CHECK_FILE but that's generally
4074 # correct if we can't link.
4075 cross_compiling=yes
4076 EXEEXT=
4077else
5213506e 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
4079/* end confdefs.h. */
4080
6de9cd9a
DN
4081int
4082main ()
4083{
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089ac_clean_files_save=$ac_clean_files
22e05272 4090ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6de9cd9a
DN
4091# Try to create an executable without -o first, disregard a.out.
4092# It will help us diagnose broken compilers, and finding out an intuition
4093# of exeext.
22e05272
JM
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4095$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4096ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4097
4098# The possible output files:
4099ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4100
4101ac_rmfiles=
4102for ac_file in $ac_files
4103do
4104 case $ac_file in
4105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4106 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4107 esac
4108done
4109rm -f $ac_rmfiles
4110
4111if { { ac_try="$ac_link_default"
4112case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115esac
4116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117$as_echo "$ac_try_echo"; } >&5
4118 (eval "$ac_link_default") 2>&5
4119 ac_status=$?
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }; then :
4122 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4123# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4124# in a Makefile. We should not override ac_cv_exeext if it was cached,
4125# so that the user can short-circuit this test for compilers unknown to
4126# Autoconf.
4127for ac_file in $ac_files ''
6de9cd9a
DN
4128do
4129 test -f "$ac_file" || continue
4130 case $ac_file in
5213506e 4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
4132 ;;
4133 [ab].out )
4134 # We found the default executable, but exeext='' is most
4135 # certainly right.
4136 break;;
4137 *.* )
5213506e
RW
4138 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4139 then :; else
4140 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4141 fi
4142 # We set ac_cv_exeext here because the later test for it is not
4143 # safe: cross compilers may not add the suffix if given an `-o'
4144 # argument, so we may need to know it at that point already.
4145 # Even if this section looks crufty: it has the advantage of
4146 # actually working.
6de9cd9a
DN
4147 break;;
4148 * )
4149 break;;
4150 esac
4151done
5213506e
RW
4152test "$ac_cv_exeext" = no && ac_cv_exeext=
4153
6de9cd9a 4154else
5213506e
RW
4155 ac_file=''
4156fi
5213506e 4157if test -z "$ac_file"; then :
22e05272
JM
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159$as_echo "no" >&6; }
4160$as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4161sed 's/^/| /' conftest.$ac_ext >&5
4162
5213506e
RW
4163{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4165as_fn_error 77 "C compiler cannot create executables
4166See \`config.log' for more details" "$LINENO" 5; }
4167else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169$as_echo "yes" >&6; }
6de9cd9a 4170fi
22e05272
JM
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4172$as_echo_n "checking for C compiler default output file name... " >&6; }
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4174$as_echo "$ac_file" >&6; }
6de9cd9a 4175ac_exeext=$ac_cv_exeext
6de9cd9a 4176
22e05272 4177rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6de9cd9a 4178ac_clean_files=$ac_clean_files_save
5213506e
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4180$as_echo_n "checking for suffix of executables... " >&6; }
4181if { { ac_try="$ac_link"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187$as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_link") 2>&5
6de9cd9a 4189 ac_status=$?
5213506e
RW
4190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191 test $ac_status = 0; }; then :
6de9cd9a
DN
4192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4193# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4194# work properly (i.e., refer to `conftest.exe'), while it won't with
4195# `rm'.
4196for ac_file in conftest.exe conftest conftest.*; do
4197 test -f "$ac_file" || continue
4198 case $ac_file in
5213506e 4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 4200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
4201 break;;
4202 * ) break;;
4203 esac
4204done
4205else
5213506e
RW
4206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4208as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4209See \`config.log' for more details" "$LINENO" 5; }
6de9cd9a 4210fi
22e05272 4211rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4213$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
4214
4215rm -f conftest.$ac_ext
4216EXEEXT=$ac_cv_exeext
4217ac_exeext=$EXEEXT
22e05272
JM
4218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h. */
4220#include <stdio.h>
4221int
4222main ()
4223{
4224FILE *f = fopen ("conftest.out", "w");
4225 return ferror (f) || fclose (f) != 0;
4226
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231ac_clean_files="$ac_clean_files conftest.out"
4232# Check that the compiler produces executables we can run. If not, either
4233# the compiler is broken, or we cross compile.
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4235$as_echo_n "checking whether we are cross compiling... " >&6; }
4236if test "$cross_compiling" != yes; then
4237 { { ac_try="$ac_link"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243$as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_link") 2>&5
4245 ac_status=$?
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }
4248 if { ac_try='./conftest$ac_cv_exeext'
4249 { { case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254$as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; }; }; then
4259 cross_compiling=no
4260 else
4261 if test "$cross_compiling" = maybe; then
4262 cross_compiling=yes
4263 else
4264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266as_fn_error $? "cannot run C compiled programs.
4267If you meant to cross compile, use \`--host'.
4268See \`config.log' for more details" "$LINENO" 5; }
4269 fi
4270 fi
4271fi
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4273$as_echo "$cross_compiling" >&6; }
4274
4275rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4276ac_clean_files=$ac_clean_files_save
f02d008e 4277fi
5213506e
RW
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4279$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4280if ${ac_cv_objext+:} false; then :
5213506e 4281 $as_echo_n "(cached) " >&6
6de9cd9a 4282else
5213506e 4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
4284/* end confdefs.h. */
4285
4286int
4287main ()
4288{
4289
4290 ;
4291 return 0;
4292}
4293_ACEOF
4294rm -f conftest.o conftest.obj
5213506e
RW
4295if { { ac_try="$ac_compile"
4296case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301$as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compile") 2>&5
4303 ac_status=$?
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }; then :
4306 for ac_file in conftest.o conftest.obj conftest.*; do
4307 test -f "$ac_file" || continue;
6de9cd9a 4308 case $ac_file in
5213506e 4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4311 break;;
4312 esac
4313done
4314else
5213506e 4315 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4316sed 's/^/| /' conftest.$ac_ext >&5
4317
5213506e
RW
4318{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4320as_fn_error $? "cannot compute suffix of object files: cannot compile
4321See \`config.log' for more details" "$LINENO" 5; }
78511f8b 4322fi
78511f8b
JB
4323rm -f conftest.$ac_cv_objext conftest.$ac_ext
4324fi
5213506e
RW
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4326$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4327OBJEXT=$ac_cv_objext
4328ac_objext=$OBJEXT
5213506e
RW
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4330$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4331if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4332 $as_echo_n "(cached) " >&6
78511f8b 4333else
5213506e 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4335/* end confdefs.h. */
6de9cd9a 4336
6de9cd9a
DN
4337int
4338main ()
4339{
78511f8b
JB
4340#ifndef __GNUC__
4341 choke me
4342#endif
c0e7e2bf 4343
6de9cd9a
DN
4344 ;
4345 return 0;
4346}
4347_ACEOF
5213506e 4348if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4349 ac_compiler_gnu=yes
6de9cd9a 4350else
5213506e 4351 ac_compiler_gnu=no
78511f8b 4352fi
5213506e 4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4354ac_cv_c_compiler_gnu=$ac_compiler_gnu
4355
4356fi
5213506e
RW
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4358$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4359if test $ac_compiler_gnu = yes; then
4360 GCC=yes
4361else
4362 GCC=
4363fi
78511f8b
JB
4364ac_test_CFLAGS=${CFLAGS+set}
4365ac_save_CFLAGS=$CFLAGS
5213506e
RW
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4368if ${ac_cv_prog_cc_g+:} false; then :
5213506e 4369 $as_echo_n "(cached) " >&6
78511f8b 4370else
5213506e
RW
4371 ac_save_c_werror_flag=$ac_c_werror_flag
4372 ac_c_werror_flag=yes
4373 ac_cv_prog_cc_g=no
4374 CFLAGS="-g"
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4376/* end confdefs.h. */
c0e7e2bf 4377
6de9cd9a
DN
4378int
4379main ()
4380{
c0e7e2bf 4381
6de9cd9a
DN
4382 ;
4383 return 0;
4384}
4385_ACEOF
5213506e 4386if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4387 ac_cv_prog_cc_g=yes
4388else
5213506e
RW
4389 CFLAGS=""
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391/* end confdefs.h. */
4392
4393int
4394main ()
4395{
4396
4397 ;
4398 return 0;
4399}
4400_ACEOF
4401if ac_fn_c_try_compile "$LINENO"; then :
4402
4403else
4404 ac_c_werror_flag=$ac_save_c_werror_flag
4405 CFLAGS="-g"
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h. */
f489fba1 4408
5213506e
RW
4409int
4410main ()
4411{
4412
4413 ;
4414 return 0;
4415}
4416_ACEOF
4417if ac_fn_c_try_compile "$LINENO"; then :
4418 ac_cv_prog_cc_g=yes
4419fi
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4421fi
5213506e 4422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4423fi
5213506e
RW
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_c_werror_flag=$ac_save_c_werror_flag
4426fi
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4428$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4429if test "$ac_test_CFLAGS" = set; then
4430 CFLAGS=$ac_save_CFLAGS
4431elif test $ac_cv_prog_cc_g = yes; then
4432 if test "$GCC" = yes; then
4433 CFLAGS="-g -O2"
4434 else
4435 CFLAGS="-g"
4436 fi
4437else
4438 if test "$GCC" = yes; then
4439 CFLAGS="-O2"
4440 else
4441 CFLAGS=
4442 fi
4443fi
5213506e
RW
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4445$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4446if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4447 $as_echo_n "(cached) " >&6
38d24731 4448else
5213506e 4449 ac_cv_prog_cc_c89=no
38d24731 4450ac_save_CC=$CC
5213506e 4451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4452/* end confdefs.h. */
38d24731
RW
4453#include <stdarg.h>
4454#include <stdio.h>
22e05272 4455struct stat;
38d24731
RW
4456/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4457struct buf { int x; };
4458FILE * (*rcsopen) (struct buf *, struct stat *, int);
4459static char *e (p, i)
4460 char **p;
4461 int i;
4462{
4463 return p[i];
4464}
4465static char *f (char * (*g) (char **, int), char **p, ...)
4466{
4467 char *s;
4468 va_list v;
4469 va_start (v,p);
4470 s = g (p, va_arg (v,int));
4471 va_end (v);
4472 return s;
4473}
f489fba1 4474
38d24731
RW
4475/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4476 function prototypes and stuff, but not '\xHH' hex character constants.
4477 These don't provoke an error unfortunately, instead are silently treated
5213506e 4478 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4479 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4480 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4481 that's true only with -std. */
38d24731
RW
4482int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4483
5213506e
RW
4484/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4485 inside strings and character constants. */
4486#define FOO(x) 'x'
4487int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4488
38d24731
RW
4489int test (int i, double x);
4490struct s1 {int (*f) (int a);};
4491struct s2 {int (*f) (double a);};
4492int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4493int argc;
4494char **argv;
f489fba1
FXC
4495int
4496main ()
4497{
38d24731 4498return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4499 ;
4500 return 0;
4501}
4502_ACEOF
5213506e
RW
4503for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4504 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4505do
4506 CC="$ac_save_CC $ac_arg"
5213506e
RW
4507 if ac_fn_c_try_compile "$LINENO"; then :
4508 ac_cv_prog_cc_c89=$ac_arg
38d24731 4509fi
5213506e
RW
4510rm -f core conftest.err conftest.$ac_objext
4511 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4512done
5213506e 4513rm -f conftest.$ac_ext
38d24731
RW
4514CC=$ac_save_CC
4515
4516fi
5213506e
RW
4517# AC_CACHE_VAL
4518case "x$ac_cv_prog_cc_c89" in
4519 x)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4521$as_echo "none needed" >&6; } ;;
4522 xno)
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4524$as_echo "unsupported" >&6; } ;;
38d24731 4525 *)
5213506e
RW
4526 CC="$CC $ac_cv_prog_cc_c89"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4528$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4529esac
5213506e 4530if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4531
4532fi
6de9cd9a 4533
6de9cd9a
DN
4534ac_ext=c
4535ac_cpp='$CPP $CPPFLAGS'
4536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4539
22e05272
JM
4540ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4546$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4547if ${am_cv_prog_cc_c_o+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549else
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h. */
4552
4553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
4561 # Make sure it works both with $CC and with simple cc.
4562 # Following AC_PROG_CC_C_O, we do the test twice because some
4563 # compilers refuse to overwrite an existing .o file with -o,
4564 # though they will create one.
4565 am_cv_prog_cc_c_o=yes
4566 for am_i in 1 2; do
4567 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4568 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } \
4572 && test -f conftest2.$ac_objext; then
4573 : OK
4574 else
4575 am_cv_prog_cc_c_o=no
4576 break
4577 fi
4578 done
4579 rm -f core conftest*
4580 unset am_i
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4583$as_echo "$am_cv_prog_cc_c_o" >&6; }
4584if test "$am_cv_prog_cc_c_o" != yes; then
4585 # Losing compiler, so override with the script.
4586 # FIXME: It is wrong to rewrite CC.
4587 # But if we don't then we get into trouble of one sort or another.
4588 # A longer-term fix would be to have automake use am__CC in this case,
4589 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4590 CC="$am_aux_dir/compile $CC"
4591fi
4592ac_ext=c
4593ac_cpp='$CPP $CPPFLAGS'
4594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
4598
679c0f9a
TT
4599depcc="$CC" am_compiler_list=
4600
5213506e
RW
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4602$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4603if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5213506e 4604 $as_echo_n "(cached) " >&6
679c0f9a
TT
4605else
4606 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4607 # We make a subdir and do the tests there. Otherwise we can end up
4608 # making bogus files that we don't know about and never remove. For
4609 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4610 # making a dummy file named 'D' -- because '-MD' means "put the output
4611 # in D".
c20fdb91 4612 rm -rf conftest.dir
679c0f9a
TT
4613 mkdir conftest.dir
4614 # Copy depcomp to subdir because otherwise we won't find it if we're
4615 # using a relative directory.
4616 cp "$am_depcomp" conftest.dir
4617 cd conftest.dir
4618 # We will build objects and dependencies in a subdirectory because
4619 # it helps to detect inapplicable dependency modes. For instance
4620 # both Tru64's cc and ICC support -MD to output dependencies as a
4621 # side effect of compilation, but ICC will put the dependencies in
4622 # the current directory while Tru64 will put them in the object
4623 # directory.
4624 mkdir sub
4625
4626 am_cv_CC_dependencies_compiler_type=none
4627 if test "$am_compiler_list" = ""; then
4628 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4629 fi
5213506e
RW
4630 am__universal=false
4631 case " $depcc " in #(
4632 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4633 esac
4634
679c0f9a
TT
4635 for depmode in $am_compiler_list; do
4636 # Setup a source with many dependencies, because some compilers
4637 # like to wrap large dependency lists on column 80 (with \), and
4638 # we should not choose a depcomp mode which is confused by this.
4639 #
4640 # We need to recreate these files for each test, as the compiler may
4641 # overwrite some of them when testing with obscure command lines.
4642 # This happens at least with the AIX C compiler.
4643 : > sub/conftest.c
4644 for i in 1 2 3 4 5 6; do
4645 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4646 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4647 # Solaris 10 /bin/sh.
4648 echo '/* dummy */' > sub/conftst$i.h
679c0f9a
TT
4649 done
4650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4651
22e05272 4652 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5213506e 4653 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4654 # handle '-M -o', and we need to detect this. Also, some Intel
4655 # versions had trouble with output in subdirs.
5213506e
RW
4656 am__obj=sub/conftest.${OBJEXT-o}
4657 am__minus_obj="-o $am__obj"
679c0f9a 4658 case $depmode in
5213506e
RW
4659 gcc)
4660 # This depmode causes a compiler race in universal mode.
4661 test "$am__universal" = false || continue
4662 ;;
679c0f9a 4663 nosideeffect)
22e05272
JM
4664 # After this tag, mechanisms are not by side-effect, so they'll
4665 # only be used when explicitly requested.
679c0f9a
TT
4666 if test "x$enable_dependency_tracking" = xyes; then
4667 continue
4668 else
4669 break
4670 fi
4671 ;;
c20fdb91 4672 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4673 # This compiler won't grok '-c -o', but also, the minuso test has
5213506e
RW
4674 # not run yet. These depmodes are late enough in the game, and
4675 # so weak that their functioning should not be impacted.
4676 am__obj=conftest.${OBJEXT-o}
4677 am__minus_obj=
4678 ;;
679c0f9a
TT
4679 none) break ;;
4680 esac
679c0f9a 4681 if depmode=$depmode \
5213506e 4682 source=sub/conftest.c object=$am__obj \
679c0f9a 4683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4684 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4685 >/dev/null 2>conftest.err &&
5213506e 4686 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4687 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4688 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4689 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4690 # icc doesn't choke on unknown options, it will just issue warnings
4691 # or remarks (even with -Werror). So we grep stderr for any message
4692 # that says an option was ignored or not supported.
4693 # When given -MP, icc 7.0 and 7.1 complain thusly:
4694 # icc: Command line warning: ignoring option '-M'; no argument required
4695 # The diagnosis changed in icc 8.0:
4696 # icc: Command line remark: option '-MP' not supported
4697 if (grep 'ignoring option' conftest.err ||
4698 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4699 am_cv_CC_dependencies_compiler_type=$depmode
4700 break
4701 fi
4702 fi
4703 done
4704
4705 cd ..
4706 rm -rf conftest.dir
4707else
4708 am_cv_CC_dependencies_compiler_type=none
4709fi
4710
4711fi
5213506e
RW
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4713$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4714CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4715
5213506e 4716 if
679c0f9a
TT
4717 test "x$enable_dependency_tracking" != xno \
4718 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4719 am__fastdepCC_TRUE=
4720 am__fastdepCC_FALSE='#'
4721else
4722 am__fastdepCC_TRUE='#'
4723 am__fastdepCC_FALSE=
4724fi
4725
6de9cd9a 4726
6de9cd9a 4727
21be0a5a
JB
4728ac_ext=c
4729ac_cpp='$CPP $CPPFLAGS'
4730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4734$as_echo_n "checking how to run the C preprocessor... " >&6; }
4735# On Suns, sometimes $CPP names a directory.
4736if test -n "$CPP" && test -d "$CPP"; then
4737 CPP=
6de9cd9a 4738fi
21be0a5a 4739if test -z "$CPP"; then
22e05272 4740 if ${ac_cv_prog_CPP+:} false; then :
21be0a5a
JB
4741 $as_echo_n "(cached) " >&6
4742else
4743 # Double quotes because CPP needs to be expanded
4744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4745 do
4746 ac_preproc_ok=false
4747for ac_c_preproc_warn_flag in '' yes
4748do
4749 # Use a header file that comes with gcc, so configuring glibc
4750 # with a fresh cross-compiler works.
4751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752 # <limits.h> exists even on freestanding compilers.
4753 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4756/* end confdefs.h. */
21be0a5a
JB
4757#ifdef __STDC__
4758# include <limits.h>
4759#else
4760# include <assert.h>
4761#endif
4762 Syntax error
c0e7e2bf 4763_ACEOF
21be0a5a
JB
4764if ac_fn_c_try_cpp "$LINENO"; then :
4765
49ea7a0e 4766else
21be0a5a
JB
4767 # Broken: fails on valid input.
4768continue
49ea7a0e 4769fi
22e05272 4770rm -f conftest.err conftest.i conftest.$ac_ext
49ea7a0e 4771
21be0a5a
JB
4772 # OK, works on sane cases. Now check whether nonexistent headers
4773 # can be detected and how.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h. */
4776#include <ac_nonexistent.h>
49ea7a0e 4777_ACEOF
21be0a5a
JB
4778if ac_fn_c_try_cpp "$LINENO"; then :
4779 # Broken: success on invalid input.
4780continue
c0e7e2bf 4781else
21be0a5a
JB
4782 # Passes both tests.
4783ac_preproc_ok=:
4784break
49ea7a0e 4785fi
22e05272 4786rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
4787
4788done
4789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4790rm -f conftest.i conftest.err conftest.$ac_ext
21be0a5a
JB
4791if $ac_preproc_ok; then :
4792 break
c0e7e2bf
JB
4793fi
4794
21be0a5a
JB
4795 done
4796 ac_cv_prog_CPP=$CPP
4797
4798fi
4799 CPP=$ac_cv_prog_CPP
49ea7a0e 4800else
21be0a5a 4801 ac_cv_prog_CPP=$CPP
49ea7a0e 4802fi
21be0a5a
JB
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4804$as_echo "$CPP" >&6; }
4805ac_preproc_ok=false
4806for ac_c_preproc_warn_flag in '' yes
4807do
4808 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works.
4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811 # <limits.h> exists even on freestanding compilers.
4812 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815/* end confdefs.h. */
4816#ifdef __STDC__
4817# include <limits.h>
4818#else
4819# include <assert.h>
4820#endif
4821 Syntax error
4822_ACEOF
4823if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4824
49ea7a0e 4825else
21be0a5a
JB
4826 # Broken: fails on valid input.
4827continue
49ea7a0e 4828fi
22e05272 4829rm -f conftest.err conftest.i conftest.$ac_ext
49ea7a0e 4830
21be0a5a
JB
4831 # OK, works on sane cases. Now check whether nonexistent headers
4832 # can be detected and how.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4834/* end confdefs.h. */
21be0a5a 4835#include <ac_nonexistent.h>
c049309d 4836_ACEOF
21be0a5a
JB
4837if ac_fn_c_try_cpp "$LINENO"; then :
4838 # Broken: success on invalid input.
4839continue
c049309d 4840else
21be0a5a
JB
4841 # Passes both tests.
4842ac_preproc_ok=:
4843break
c049309d 4844fi
22e05272 4845rm -f conftest.err conftest.i conftest.$ac_ext
21be0a5a
JB
4846
4847done
4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4849rm -f conftest.i conftest.err conftest.$ac_ext
21be0a5a
JB
4850if $ac_preproc_ok; then :
4851
c049309d 4852else
21be0a5a
JB
4853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4855as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4856See \`config.log' for more details" "$LINENO" 5; }
c049309d 4857fi
c049309d 4858
21be0a5a
JB
4859ac_ext=c
4860ac_cpp='$CPP $CPPFLAGS'
4861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863ac_compiler_gnu=$ac_cv_c_compiler_gnu
c049309d 4864
21be0a5a
JB
4865
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4867$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4868if ${ac_cv_path_GREP+:} false; then :
5213506e 4869 $as_echo_n "(cached) " >&6
6de9cd9a 4870else
21be0a5a
JB
4871 if test -z "$GREP"; then
4872 ac_path_GREP_found=false
4873 # Loop through the user's path and test for each of PROGNAME-LIST
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
21be0a5a 4879 for ac_prog in grep ggrep; do
5213506e 4880 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a 4881 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4882 as_fn_executable_p "$ac_path_GREP" || continue
21be0a5a
JB
4883# Check for GNU ac_path_GREP and select it if it is found.
4884 # Check for GNU $ac_path_GREP
4885case `"$ac_path_GREP" --version 2>&1` in
4886*GNU*)
4887 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4888*)
4889 ac_count=0
4890 $as_echo_n 0123456789 >"conftest.in"
4891 while :
4892 do
4893 cat "conftest.in" "conftest.in" >"conftest.tmp"
4894 mv "conftest.tmp" "conftest.in"
4895 cp "conftest.in" "conftest.nl"
4896 $as_echo 'GREP' >> "conftest.nl"
4897 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899 as_fn_arith $ac_count + 1 && ac_count=$as_val
4900 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4901 # Best one so far, save it but keep looking for a better one
4902 ac_cv_path_GREP="$ac_path_GREP"
4903 ac_path_GREP_max=$ac_count
4904 fi
4905 # 10*(2^10) chars as input seems more than enough
4906 test $ac_count -gt 10 && break
5213506e 4907 done
21be0a5a
JB
4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909esac
6de9cd9a 4910
21be0a5a
JB
4911 $ac_path_GREP_found && break 3
4912 done
4913 done
4914 done
4915IFS=$as_save_IFS
4916 if test -z "$ac_cv_path_GREP"; then
22e05272 4917 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21be0a5a 4918 fi
6de9cd9a 4919else
21be0a5a 4920 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4921fi
4922
6de9cd9a 4923fi
21be0a5a
JB
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4925$as_echo "$ac_cv_path_GREP" >&6; }
4926 GREP="$ac_cv_path_GREP"
6de9cd9a 4927
21be0a5a
JB
4928
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4930$as_echo_n "checking for egrep... " >&6; }
22e05272 4931if ${ac_cv_path_EGREP+:} false; then :
5213506e 4932 $as_echo_n "(cached) " >&6
6de9cd9a 4933else
21be0a5a
JB
4934 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4935 then ac_cv_path_EGREP="$GREP -E"
4936 else
4937 if test -z "$EGREP"; then
4938 ac_path_EGREP_found=false
4939 # Loop through the user's path and test for each of PROGNAME-LIST
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4942do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
21be0a5a 4945 for ac_prog in egrep; do
5213506e 4946 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a 4947 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4948 as_fn_executable_p "$ac_path_EGREP" || continue
21be0a5a
JB
4949# Check for GNU ac_path_EGREP and select it if it is found.
4950 # Check for GNU $ac_path_EGREP
4951case `"$ac_path_EGREP" --version 2>&1` in
4952*GNU*)
4953 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4954*)
4955 ac_count=0
4956 $as_echo_n 0123456789 >"conftest.in"
4957 while :
4958 do
4959 cat "conftest.in" "conftest.in" >"conftest.tmp"
4960 mv "conftest.tmp" "conftest.in"
4961 cp "conftest.in" "conftest.nl"
4962 $as_echo 'EGREP' >> "conftest.nl"
4963 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965 as_fn_arith $ac_count + 1 && ac_count=$as_val
4966 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4967 # Best one so far, save it but keep looking for a better one
4968 ac_cv_path_EGREP="$ac_path_EGREP"
4969 ac_path_EGREP_max=$ac_count
4970 fi
4971 # 10*(2^10) chars as input seems more than enough
4972 test $ac_count -gt 10 && break
5213506e 4973 done
21be0a5a
JB
4974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975esac
6de9cd9a 4976
21be0a5a
JB
4977 $ac_path_EGREP_found && break 3
4978 done
4979 done
4980 done
4981IFS=$as_save_IFS
4982 if test -z "$ac_cv_path_EGREP"; then
22e05272 4983 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21be0a5a 4984 fi
6de9cd9a 4985else
21be0a5a 4986 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4987fi
4988
21be0a5a 4989 fi
6de9cd9a 4990fi
21be0a5a
JB
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4992$as_echo "$ac_cv_path_EGREP" >&6; }
4993 EGREP="$ac_cv_path_EGREP"
4994
4995
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4997$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4998if ${ac_cv_header_stdc+:} false; then :
5213506e 4999 $as_echo_n "(cached) " >&6
6de9cd9a 5000else
21be0a5a
JB
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002/* end confdefs.h. */
5003#include <stdlib.h>
5004#include <stdarg.h>
5005#include <string.h>
5006#include <float.h>
5007
5008int
5009main ()
5010{
5011
5012 ;
5013 return 0;
5014}
5015_ACEOF
5016if ac_fn_c_try_compile "$LINENO"; then :
5017 ac_cv_header_stdc=yes
6de9cd9a 5018else
21be0a5a
JB
5019 ac_cv_header_stdc=no
5020fi
5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5022
21be0a5a
JB
5023if test $ac_cv_header_stdc = yes; then
5024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h. */
5027#include <string.h>
5028
5029_ACEOF
5030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "memchr" >/dev/null 2>&1; then :
5032
5033else
5034 ac_cv_header_stdc=no
6de9cd9a 5035fi
21be0a5a
JB
5036rm -f conftest*
5037
6de9cd9a 5038fi
21be0a5a
JB
5039
5040if test $ac_cv_header_stdc = yes; then
5041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h. */
5044#include <stdlib.h>
5045
5046_ACEOF
5047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048 $EGREP "free" >/dev/null 2>&1; then :
5049
6de9cd9a 5050else
21be0a5a 5051 ac_cv_header_stdc=no
6de9cd9a 5052fi
21be0a5a 5053rm -f conftest*
6de9cd9a 5054
6de9cd9a
DN
5055fi
5056
21be0a5a
JB
5057if test $ac_cv_header_stdc = yes; then
5058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5059 if test "$cross_compiling" = yes; then :
5060 :
5061else
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063/* end confdefs.h. */
5064#include <ctype.h>
5065#include <stdlib.h>
5066#if ((' ' & 0x0FF) == 0x020)
5067# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5068# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5069#else
5070# define ISLOWER(c) \
5071 (('a' <= (c) && (c) <= 'i') \
5072 || ('j' <= (c) && (c) <= 'r') \
5073 || ('s' <= (c) && (c) <= 'z'))
5074# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5075#endif
5076
5077#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5078int
5079main ()
5080{
5081 int i;
5082 for (i = 0; i < 256; i++)
5083 if (XOR (islower (i), ISLOWER (i))
5084 || toupper (i) != TOUPPER (i))
5085 return 2;
5086 return 0;
5087}
5088_ACEOF
5089if ac_fn_c_try_run "$LINENO"; then :
5090
5091else
5092 ac_cv_header_stdc=no
5093fi
5094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5095 conftest.$ac_objext conftest.beam conftest.$ac_ext
5096fi
5097
5098fi
5099fi
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5101$as_echo "$ac_cv_header_stdc" >&6; }
5102if test $ac_cv_header_stdc = yes; then
5103
5104$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5105
5106fi
5107
5108# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5109for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5110 inttypes.h stdint.h unistd.h
5111do :
5112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5113ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5114"
22e05272 5115if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21be0a5a
JB
5116 cat >>confdefs.h <<_ACEOF
5117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5118_ACEOF
5119
5120fi
5121
5122done
5123
5124
5125
5126 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 5127if test "x$ac_cv_header_minix_config_h" = xyes; then :
21be0a5a
JB
5128 MINIX=yes
5129else
5130 MINIX=
5131fi
5132
5133
5134 if test "$MINIX" = yes; then
5135
5136$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5137
5138
5139$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5140
5141
5142$as_echo "#define _MINIX 1" >>confdefs.h
5143
5144 fi
5145
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5148$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 5149if ${ac_cv_safe_to_define___extensions__+:} false; then :
21be0a5a
JB
5150 $as_echo_n "(cached) " >&6
5151else
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h. */
5154
22e05272
JM
5155# define __EXTENSIONS__ 1
5156 $ac_includes_default
21be0a5a
JB
5157int
5158main ()
5159{
5160
5161 ;
5162 return 0;
5163}
5164_ACEOF
5165if ac_fn_c_try_compile "$LINENO"; then :
5166 ac_cv_safe_to_define___extensions__=yes
5167else
5168 ac_cv_safe_to_define___extensions__=no
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5173$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5174 test $ac_cv_safe_to_define___extensions__ = yes &&
5175 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5176
5177 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5178
5179 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5180
5181 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5182
5183 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5184
5185
5186
e8e66971
MR
5187
5188# Check whether --with-toolexeclibdir was given.
5189if test "${with_toolexeclibdir+set}" = set; then :
5190 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5191 /)
5192 ;;
5193 */)
5194 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5195 ;;
5196esac
5197else
5198 with_toolexeclibdir=no
5199fi
5200
5201
5202
21be0a5a
JB
5203# Calculate toolexeclibdir
5204# Also toolexecdir, though it's only used in toolexeclibdir
5205case ${version_specific_libs} in
5206 yes)
5207 # Need the gcc compiler version to know where to install libraries
5208 # and header files if --enable-version-specific-runtime-libs option
5209 # is selected.
5210 toolexecdir='$(libdir)/gcc/$(target_alias)'
5211 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5212 ;;
5213 no)
5214 if test -n "$with_cross_host" &&
5215 test x"$with_cross_host" != x"no"; then
5216 # Install a library built with a cross compiler in tooldir, not libdir.
5217 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
5218 case ${with_toolexeclibdir} in
5219 no)
5220 toolexeclibdir='$(toolexecdir)/lib'
5221 ;;
5222 *)
5223 toolexeclibdir=${with_toolexeclibdir}
5224 ;;
5225 esac
21be0a5a
JB
5226 else
5227 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5228 toolexeclibdir='$(libdir)'
5229 fi
5230 multi_os_directory=`$CC -print-multi-os-directory`
5231 case $multi_os_directory in
5232 .) ;; # Avoid trailing /.
5233 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5234 esac
5235 ;;
5236esac
5237
5238
5239
5240# Create a spec file, so that compile/link tests don't fail
5241test -f libgfortran.spec || touch libgfortran.spec
5242
60858d8a
TB
5243ac_ext=c
5244ac_cpp='$CPP $CPPFLAGS'
5245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248
21be0a5a
JB
5249# Check the compiler.
5250# The same as in boehm-gc and libstdc++. Have to borrow it from there.
5251# We must force CC to /not/ be precious variables; otherwise
5252# the wrong, non-multilib-adjusted value will be used in multilibs.
5253# As a side effect, we have to subst CFLAGS ourselves.
5254
5255
5256
5257ac_ext=c
5258ac_cpp='$CPP $CPPFLAGS'
5259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5264set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5267if ${ac_cv_prog_CC+:} false; then :
5213506e 5268 $as_echo_n "(cached) " >&6
6de9cd9a 5269else
21be0a5a
JB
5270 if test -n "$CC"; then
5271 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5272else
96b8a615
AJ
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5213506e 5278 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 5280 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5282 break 2
5283 fi
5284done
5213506e
RW
5285 done
5286IFS=$as_save_IFS
6de9cd9a 5287
6de9cd9a 5288fi
96b8a615 5289fi
21be0a5a
JB
5290CC=$ac_cv_prog_CC
5291if test -n "$CC"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5293$as_echo "$CC" >&6; }
96b8a615 5294else
5213506e
RW
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
96b8a615 5297fi
6de9cd9a 5298
5213506e 5299
6de9cd9a 5300fi
21be0a5a
JB
5301if test -z "$ac_cv_prog_CC"; then
5302 ac_ct_CC=$CC
5303 # Extract the first word of "gcc", so it can be a program name with args.
5304set dummy gcc; ac_word=$2
5213506e
RW
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5307if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 5308 $as_echo_n "(cached) " >&6
6de9cd9a 5309else
21be0a5a
JB
5310 if test -n "$ac_ct_CC"; then
5311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 5312else
96b8a615
AJ
5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5213506e 5318 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 5320 ac_cv_prog_ac_ct_CC="gcc"
5213506e 5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5322 break 2
5323 fi
5324done
5213506e
RW
5325 done
5326IFS=$as_save_IFS
6de9cd9a 5327
6de9cd9a 5328fi
6de9cd9a 5329fi
21be0a5a
JB
5330ac_ct_CC=$ac_cv_prog_ac_ct_CC
5331if test -n "$ac_ct_CC"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5333$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 5334else
5213506e
RW
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336$as_echo "no" >&6; }
6de9cd9a
DN
5337fi
5338
21be0a5a
JB
5339 if test "x$ac_ct_CC" = x; then
5340 CC=""
5213506e
RW
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343yes:)
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346ac_tool_warned=yes ;;
5347esac
21be0a5a 5348 CC=$ac_ct_CC
5213506e 5349 fi
96b8a615 5350else
21be0a5a 5351 CC="$ac_cv_prog_CC"
6de9cd9a 5352fi
96b8a615 5353
21be0a5a
JB
5354if test -z "$CC"; then
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5357set dummy ${ac_tool_prefix}cc; ac_word=$2
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5360if ${ac_cv_prog_CC+:} false; then :
5213506e 5361 $as_echo_n "(cached) " >&6
6de9cd9a 5362else
21be0a5a
JB
5363 if test -n "$CC"; then
5364 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5365else
21be0a5a
JB
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5373 ac_cv_prog_CC="${ac_tool_prefix}cc"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377done
5378 done
5379IFS=$as_save_IFS
5380
5381fi
5382fi
5383CC=$ac_cv_prog_CC
5384if test -n "$CC"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5386$as_echo "$CC" >&6; }
5387else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389$as_echo "no" >&6; }
5390fi
5391
5392
5393 fi
5394fi
5395if test -z "$CC"; then
5396 # Extract the first word of "cc", so it can be a program name with args.
5397set dummy cc; ac_word=$2
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5400if ${ac_cv_prog_CC+:} false; then :
21be0a5a
JB
5401 $as_echo_n "(cached) " >&6
5402else
5403 if test -n "$CC"; then
5404 ac_cv_prog_CC="$CC" # Let the user override the test.
5405else
5406 ac_prog_rejected=no
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5415 ac_prog_rejected=yes
5416 continue
5417 fi
5418 ac_cv_prog_CC="cc"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422done
5423 done
5424IFS=$as_save_IFS
5425
5426if test $ac_prog_rejected = yes; then
5427 # We found a bogon in the path, so make sure we never use it.
5428 set dummy $ac_cv_prog_CC
5429 shift
5430 if test $# != 0; then
5431 # We chose a different compiler from the bogus one.
5432 # However, it has the same basename, so the bogon will be chosen
5433 # first if we set CC to just the basename; use the full file name.
5434 shift
5435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5436 fi
5437fi
5438fi
5439fi
5440CC=$ac_cv_prog_CC
5441if test -n "$CC"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5443$as_echo "$CC" >&6; }
5444else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446$as_echo "no" >&6; }
5447fi
5448
5449
5450fi
5451if test -z "$CC"; then
5452 if test -n "$ac_tool_prefix"; then
5453 for ac_prog in cl.exe
5454 do
5455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5456set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5459if ${ac_cv_prog_CC+:} false; then :
21be0a5a
JB
5460 $as_echo_n "(cached) " >&6
5461else
5462 if test -n "$CC"; then
5463 ac_cv_prog_CC="$CC" # Let the user override the test.
5464else
5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466for as_dir in $PATH
5467do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476done
5477 done
5478IFS=$as_save_IFS
5479
5480fi
5481fi
5482CC=$ac_cv_prog_CC
5483if test -n "$CC"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5485$as_echo "$CC" >&6; }
5486else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488$as_echo "no" >&6; }
5489fi
5490
5491
5492 test -n "$CC" && break
5493 done
5494fi
5495if test -z "$CC"; then
5496 ac_ct_CC=$CC
5497 for ac_prog in cl.exe
5498do
5499 # Extract the first word of "$ac_prog", so it can be a program name with args.
5500set dummy $ac_prog; ac_word=$2
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5503if ${ac_cv_prog_ac_ct_CC+:} false; then :
21be0a5a
JB
5504 $as_echo_n "(cached) " >&6
5505else
5506 if test -n "$ac_ct_CC"; then
5507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5508else
5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH
5511do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
5516 ac_cv_prog_ac_ct_CC="$ac_prog"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520done
5521 done
5522IFS=$as_save_IFS
5523
5524fi
5525fi
5526ac_ct_CC=$ac_cv_prog_ac_ct_CC
5527if test -n "$ac_ct_CC"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5529$as_echo "$ac_ct_CC" >&6; }
5530else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532$as_echo "no" >&6; }
5533fi
5534
5535
5536 test -n "$ac_ct_CC" && break
5537done
5538
5539 if test "x$ac_ct_CC" = x; then
5540 CC=""
5541 else
5542 case $cross_compiling:$ac_tool_warned in
5543yes:)
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546ac_tool_warned=yes ;;
5547esac
5548 CC=$ac_ct_CC
5549 fi
5550fi
5551
5552fi
5553
5554
5555test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
5557as_fn_error $? "no acceptable C compiler found in \$PATH
5558See \`config.log' for more details" "$LINENO" 5; }
21be0a5a
JB
5559
5560# Provide some information about the compiler.
5561$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5562set X $ac_compile
5563ac_compiler=$2
5564for ac_option in --version -v -V -qversion; do
5565 { { ac_try="$ac_compiler $ac_option >&5"
5566case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569esac
5570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5571$as_echo "$ac_try_echo"; } >&5
5572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5573 ac_status=$?
5574 if test -s conftest.err; then
5575 sed '10a\
5576... rest of stderr output deleted ...
5577 10q' conftest.err >conftest.er1
5578 cat conftest.er1 >&5
21be0a5a 5579 fi
22e05272 5580 rm -f conftest.er1 conftest.err
21be0a5a
JB
5581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5582 test $ac_status = 0; }
5583done
5584
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5586$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 5587if ${ac_cv_c_compiler_gnu+:} false; then :
21be0a5a
JB
5588 $as_echo_n "(cached) " >&6
5589else
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h. */
5592
5593int
5594main ()
5595{
5596#ifndef __GNUC__
5597 choke me
5598#endif
5599
5600 ;
5601 return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_compile "$LINENO"; then :
5605 ac_compiler_gnu=yes
5606else
5607 ac_compiler_gnu=no
5608fi
5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610ac_cv_c_compiler_gnu=$ac_compiler_gnu
5611
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5614$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5615if test $ac_compiler_gnu = yes; then
5616 GCC=yes
5617else
5618 GCC=
5619fi
5620ac_test_CFLAGS=${CFLAGS+set}
5621ac_save_CFLAGS=$CFLAGS
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5623$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5624if ${ac_cv_prog_cc_g+:} false; then :
21be0a5a
JB
5625 $as_echo_n "(cached) " >&6
5626else
5627 ac_save_c_werror_flag=$ac_c_werror_flag
5628 ac_c_werror_flag=yes
5629 ac_cv_prog_cc_g=no
5630 CFLAGS="-g"
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632/* end confdefs.h. */
5633
5634int
5635main ()
5636{
5637
5638 ;
5639 return 0;
5640}
5641_ACEOF
5642if ac_fn_c_try_compile "$LINENO"; then :
5643 ac_cv_prog_cc_g=yes
5644else
5645 CFLAGS=""
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
5658
5659else
5660 ac_c_werror_flag=$ac_save_c_werror_flag
5661 CFLAGS="-g"
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664
5665int
5666main ()
5667{
5668
5669 ;
5670 return 0;
5671}
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"; then :
5674 ac_cv_prog_cc_g=yes
5675fi
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677fi
5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679fi
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_c_werror_flag=$ac_save_c_werror_flag
5682fi
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5684$as_echo "$ac_cv_prog_cc_g" >&6; }
5685if test "$ac_test_CFLAGS" = set; then
5686 CFLAGS=$ac_save_CFLAGS
5687elif test $ac_cv_prog_cc_g = yes; then
5688 if test "$GCC" = yes; then
5689 CFLAGS="-g -O2"
5690 else
5691 CFLAGS="-g"
5692 fi
5693else
5694 if test "$GCC" = yes; then
5695 CFLAGS="-O2"
5696 else
5697 CFLAGS=
5698 fi
5699fi
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5702if ${ac_cv_prog_cc_c89+:} false; then :
21be0a5a
JB
5703 $as_echo_n "(cached) " >&6
5704else
5705 ac_cv_prog_cc_c89=no
5706ac_save_CC=$CC
5707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h. */
5709#include <stdarg.h>
5710#include <stdio.h>
22e05272 5711struct stat;
21be0a5a
JB
5712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5713struct buf { int x; };
5714FILE * (*rcsopen) (struct buf *, struct stat *, int);
5715static char *e (p, i)
5716 char **p;
5717 int i;
5718{
5719 return p[i];
5720}
5721static char *f (char * (*g) (char **, int), char **p, ...)
5722{
5723 char *s;
5724 va_list v;
5725 va_start (v,p);
5726 s = g (p, va_arg (v,int));
5727 va_end (v);
5728 return s;
5729}
5730
5731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5732 function prototypes and stuff, but not '\xHH' hex character constants.
5733 These don't provoke an error unfortunately, instead are silently treated
5734 as 'x'. The following induces an error, until -std is added to get
5735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5736 array size at least. It's necessary to write '\x00'==0 to get something
5737 that's true only with -std. */
5738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5739
5740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5741 inside strings and character constants. */
5742#define FOO(x) 'x'
5743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5744
5745int test (int i, double x);
5746struct s1 {int (*f) (int a);};
5747struct s2 {int (*f) (double a);};
5748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5749int argc;
5750char **argv;
5751int
5752main ()
5753{
5754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5755 ;
5756 return 0;
5757}
5758_ACEOF
5759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5761do
5762 CC="$ac_save_CC $ac_arg"
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 ac_cv_prog_cc_c89=$ac_arg
5765fi
5766rm -f core conftest.err conftest.$ac_objext
5767 test "x$ac_cv_prog_cc_c89" != "xno" && break
5768done
5769rm -f conftest.$ac_ext
5770CC=$ac_save_CC
5771
5772fi
5773# AC_CACHE_VAL
5774case "x$ac_cv_prog_cc_c89" in
5775 x)
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5777$as_echo "none needed" >&6; } ;;
5778 xno)
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5780$as_echo "unsupported" >&6; } ;;
5781 *)
5782 CC="$CC $ac_cv_prog_cc_c89"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5785esac
5786if test "x$ac_cv_prog_cc_c89" != xno; then :
5787
5788fi
5789
5790ac_ext=c
5791ac_cpp='$CPP $CPPFLAGS'
5792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795
22e05272
JM
5796ac_ext=c
5797ac_cpp='$CPP $CPPFLAGS'
5798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800ac_compiler_gnu=$ac_cv_c_compiler_gnu
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5802$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5803if ${am_cv_prog_cc_c_o+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805else
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h. */
5808
5809int
5810main ()
5811{
5812
5813 ;
5814 return 0;
5815}
5816_ACEOF
5817 # Make sure it works both with $CC and with simple cc.
5818 # Following AC_PROG_CC_C_O, we do the test twice because some
5819 # compilers refuse to overwrite an existing .o file with -o,
5820 # though they will create one.
5821 am_cv_prog_cc_c_o=yes
5822 for am_i in 1 2; do
5823 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5824 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } \
5828 && test -f conftest2.$ac_objext; then
5829 : OK
5830 else
5831 am_cv_prog_cc_c_o=no
5832 break
5833 fi
5834 done
5835 rm -f core conftest*
5836 unset am_i
5837fi
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5839$as_echo "$am_cv_prog_cc_c_o" >&6; }
5840if test "$am_cv_prog_cc_c_o" != yes; then
5841 # Losing compiler, so override with the script.
5842 # FIXME: It is wrong to rewrite CC.
5843 # But if we don't then we get into trouble of one sort or another.
5844 # A longer-term fix would be to have automake use am__CC in this case,
5845 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5846 CC="$am_aux_dir/compile $CC"
5847fi
5848ac_ext=c
5849ac_cpp='$CPP $CPPFLAGS'
5850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853
5854
21be0a5a
JB
5855depcc="$CC" am_compiler_list=
5856
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5858$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5859if ${am_cv_CC_dependencies_compiler_type+:} false; then :
21be0a5a
JB
5860 $as_echo_n "(cached) " >&6
5861else
5862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5863 # We make a subdir and do the tests there. Otherwise we can end up
5864 # making bogus files that we don't know about and never remove. For
5865 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5866 # making a dummy file named 'D' -- because '-MD' means "put the output
5867 # in D".
c20fdb91 5868 rm -rf conftest.dir
21be0a5a
JB
5869 mkdir conftest.dir
5870 # Copy depcomp to subdir because otherwise we won't find it if we're
5871 # using a relative directory.
5872 cp "$am_depcomp" conftest.dir
5873 cd conftest.dir
5874 # We will build objects and dependencies in a subdirectory because
5875 # it helps to detect inapplicable dependency modes. For instance
5876 # both Tru64's cc and ICC support -MD to output dependencies as a
5877 # side effect of compilation, but ICC will put the dependencies in
5878 # the current directory while Tru64 will put them in the object
5879 # directory.
5880 mkdir sub
5881
5882 am_cv_CC_dependencies_compiler_type=none
5883 if test "$am_compiler_list" = ""; then
5884 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5885 fi
5886 am__universal=false
5887 case " $depcc " in #(
5888 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5889 esac
5890
5891 for depmode in $am_compiler_list; do
5892 # Setup a source with many dependencies, because some compilers
5893 # like to wrap large dependency lists on column 80 (with \), and
5894 # we should not choose a depcomp mode which is confused by this.
5895 #
5896 # We need to recreate these files for each test, as the compiler may
5897 # overwrite some of them when testing with obscure command lines.
5898 # This happens at least with the AIX C compiler.
5899 : > sub/conftest.c
5900 for i in 1 2 3 4 5 6; do
5901 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5902 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5903 # Solaris 10 /bin/sh.
5904 echo '/* dummy */' > sub/conftst$i.h
21be0a5a
JB
5905 done
5906 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5907
22e05272 5908 # We check with '-c' and '-o' for the sake of the "dashmstdout"
21be0a5a 5909 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5910 # handle '-M -o', and we need to detect this. Also, some Intel
5911 # versions had trouble with output in subdirs.
21be0a5a
JB
5912 am__obj=sub/conftest.${OBJEXT-o}
5913 am__minus_obj="-o $am__obj"
5914 case $depmode in
5915 gcc)
5916 # This depmode causes a compiler race in universal mode.
5917 test "$am__universal" = false || continue
5918 ;;
5919 nosideeffect)
22e05272
JM
5920 # After this tag, mechanisms are not by side-effect, so they'll
5921 # only be used when explicitly requested.
21be0a5a
JB
5922 if test "x$enable_dependency_tracking" = xyes; then
5923 continue
5924 else
5925 break
5926 fi
5927 ;;
c20fdb91 5928 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5929 # This compiler won't grok '-c -o', but also, the minuso test has
21be0a5a
JB
5930 # not run yet. These depmodes are late enough in the game, and
5931 # so weak that their functioning should not be impacted.
5932 am__obj=conftest.${OBJEXT-o}
5933 am__minus_obj=
5934 ;;
5935 none) break ;;
5936 esac
5937 if depmode=$depmode \
5938 source=sub/conftest.c object=$am__obj \
5939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5940 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5941 >/dev/null 2>conftest.err &&
5942 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5943 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5944 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5945 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5946 # icc doesn't choke on unknown options, it will just issue warnings
5947 # or remarks (even with -Werror). So we grep stderr for any message
5948 # that says an option was ignored or not supported.
5949 # When given -MP, icc 7.0 and 7.1 complain thusly:
5950 # icc: Command line warning: ignoring option '-M'; no argument required
5951 # The diagnosis changed in icc 8.0:
5952 # icc: Command line remark: option '-MP' not supported
5953 if (grep 'ignoring option' conftest.err ||
5954 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5955 am_cv_CC_dependencies_compiler_type=$depmode
5956 break
5957 fi
5958 fi
5959 done
5960
5961 cd ..
5962 rm -rf conftest.dir
5963else
5964 am_cv_CC_dependencies_compiler_type=none
5965fi
5966
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5969$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5970CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5971
5972 if
5973 test "x$enable_dependency_tracking" != xno \
5974 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5975 am__fastdepCC_TRUE=
5976 am__fastdepCC_FALSE='#'
5977else
5978 am__fastdepCC_TRUE='#'
5979 am__fastdepCC_FALSE=
5980fi
5981
5982
5983
5984
60858d8a
TB
5985
5986
60858d8a
TB
5987
5988
21be0a5a 5989# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
49ad4d2c 5990have_real_17=no
21be0a5a 5991if test "x$GCC" = "xyes"; then
83aac698 5992 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
f7b6856f
JB
5993 ## We like to use C11 and C99 routines when available. This makes
5994 ## sure that
21be0a5a 5995 ## __STDC_VERSION__ is set such that libc includes make them available.
581d2326 5996 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
21be0a5a
JB
5997 ## Compile the following tests with the same system header contents
5998 ## that we'll encounter when compiling our own source files.
f7b6856f 5999 CFLAGS="-std=gnu11 $CFLAGS"
49ad4d2c
TK
6000
6001 case x$target in
6002 xpowerpc64le*-linux*)
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004/* end confdefs.h. */
6005#if __SIZEOF_LONG_DOUBLE__ != 16
6006 #error long double is double
6007 #endif
6008int
6009main ()
6010{
6011(void) 0;
6012 ;
6013 return 0;
6014}
6015_ACEOF
6016if ac_fn_c_try_cpp "$LINENO"; then :
a8fea8cd
TK
6017 AM_FCFLAGS="$AM_FCFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
6018 AM_CFLAGS="$AM_CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
6019 CFLAGS="$CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
49ad4d2c
TK
6020 have_real_17=yes
6021fi
6022rm -f conftest.err conftest.i conftest.$ac_ext
6023 ;;
6024 *)
6025 ;;
6026 esac
6027fi
6028 if test "x$have_real_17" != xno; then
6029 HAVE_REAL_17_TRUE=
6030 HAVE_REAL_17_FALSE='#'
6031else
6032 HAVE_REAL_17_TRUE='#'
6033 HAVE_REAL_17_FALSE=
21be0a5a
JB
6034fi
6035
6f4977fc 6036
26724ef9
IT
6037# Add CET specific flags if CET is enabled
6038 # Check whether --enable-cet was given.
6039if test "${enable_cet+set}" = set; then :
6040 enableval=$enable_cet;
6041 case "$enableval" in
a0e1df88 6042 yes|no|auto) ;;
22e05272 6043 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
26724ef9
IT
6044 esac
6045
6046else
8d286dd1 6047 enable_cet=auto
26724ef9
IT
6048fi
6049
6050
14e335ed
IT
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
6052$as_echo_n "checking for CET support... " >&6; }
6053
9051b548 6054# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
26724ef9
IT
6055case "$host" in
6056 i[34567]86-*-linux* | x86_64-*-linux*)
6057 case "$enable_cet" in
a0e1df88 6058 auto)
14e335ed 6059 # Check if target supports multi-byte NOPs
c0f8c22a 6060 # and if compiler and assembler support CET insn.
9051b548 6061 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 6062 CFLAGS="$CFLAGS -fcf-protection"
26724ef9
IT
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h. */
6065
6066int
6067main ()
6068{
14e335ed
IT
6069
6070#if !defined(__SSE2__)
6071#error target does not support multi-byte NOPs
6072#else
26724ef9 6073asm ("setssbsy");
14e335ed
IT
6074#endif
6075
26724ef9
IT
6076 ;
6077 return 0;
6078}
6079_ACEOF
6080if ac_fn_c_try_compile "$LINENO"; then :
6081 enable_cet=yes
6082else
6083 enable_cet=no
6084fi
6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 6086 CFLAGS="$cet_save_CFLAGS"
26724ef9
IT
6087 ;;
6088 yes)
6089 # Check if assembler supports CET.
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h. */
6092
6093int
6094main ()
6095{
6096asm ("setssbsy");
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101if ac_fn_c_try_compile "$LINENO"; then :
6102
6103else
22e05272 6104 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
26724ef9
IT
6105fi
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 ;;
6108 esac
6109 ;;
6110 *)
6111 enable_cet=no
6112 ;;
6113esac
6114if test x$enable_cet = xyes; then
7b47ecf2 6115 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6117$as_echo "yes" >&6; }
6118else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
26724ef9
IT
6121fi
6122
6123AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6124AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6125CFLAGS="$CFLAGS $CET_FLAGS"
6126
6127
21be0a5a
JB
6128
6129
6130
6131# Check for symbol versioning (copied from libssp).
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6133$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
6134# Check whether --enable-symvers was given.
6135if test "${enable_symvers+set}" = set; then :
6136 enableval=$enable_symvers; gfortran_use_symver=$enableval
6137else
6138 gfortran_use_symver=yes
6139fi
6140
19af62db 6141if test "x$gfortran_use_symver" != xno; then
bf382f5f
RO
6142 save_LDFLAGS="$LDFLAGS"
6143 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6144 cat > conftest.map <<EOF
21be0a5a
JB
6145FOO_1.0 {
6146 global: *foo*; bar; local: *;
6147};
6148EOF
bf382f5f 6149 if test x$gcc_no_link = xyes; then
22e05272 6150 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
6151fi
6152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h. */
6154int foo;
6155int
6156main ()
6157{
6158
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_link "$LINENO"; then :
6164 gfortran_use_symver=gnu
6165else
6166 gfortran_use_symver=no
6167fi
6168rm -f core conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
6170 if test x$gfortran_use_symver = xno; then
6171 case "$target_os" in
6172 solaris2*)
6173 LDFLAGS="$save_LDFLAGS"
6174 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6175 # Sun ld cannot handle wildcards and treats all entries as undefined.
6176 cat > conftest.map <<EOF
21be0a5a
JB
6177FOO_1.0 {
6178 global: foo; local: *;
6179};
6180EOF
bf382f5f 6181 if test x$gcc_no_link = xyes; then
22e05272 6182 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
6183fi
6184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h. */
6186int foo;
6187int
6188main ()
6189{
6190
6191 ;
6192 return 0;
6193}
6194_ACEOF
6195if ac_fn_c_try_link "$LINENO"; then :
6196 gfortran_use_symver=sun
6197else
6198 gfortran_use_symver=no
6199fi
6200rm -f core conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
6202 ;;
6203 esac
6204 fi
6205 LDFLAGS="$save_LDFLAGS"
21be0a5a 6206fi
21be0a5a
JB
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6208$as_echo "$gfortran_use_symver" >&6; }
6209 if test "x$gfortran_use_symver" != xno; then
6210 LIBGFOR_USE_SYMVER_TRUE=
6211 LIBGFOR_USE_SYMVER_FALSE='#'
6212else
6213 LIBGFOR_USE_SYMVER_TRUE='#'
6214 LIBGFOR_USE_SYMVER_FALSE=
6215fi
6216
6217 if test "x$gfortran_use_symver" = xgnu; then
6218 LIBGFOR_USE_SYMVER_GNU_TRUE=
6219 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6220else
6221 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6222 LIBGFOR_USE_SYMVER_GNU_FALSE=
6223fi
6224
6225 if test "x$gfortran_use_symver" = xsun; then
6226 LIBGFOR_USE_SYMVER_SUN_TRUE=
6227 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6228else
6229 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6230 LIBGFOR_USE_SYMVER_SUN_FALSE=
6231fi
6232
6233
ee95f928
BS
6234# For GPU offloading, not everything in libfortran can be supported.
6235# Currently, the only target that has this problem is nvptx. The
6236# following is a (partial) list of features that are unsupportable on
6237# this particular target:
6238# * Constructors
6239# * alloca
6240# * C library support for I/O, with printf as the one notable exception
6241# * C library support for other features such as signal, environment
6242# variables, time functions
6243
b1e86e33 6244 if test "x${target_cpu}" = xnvptx; then
ee95f928
BS
6245 LIBGFOR_MINIMAL_TRUE=
6246 LIBGFOR_MINIMAL_FALSE='#'
6247else
6248 LIBGFOR_MINIMAL_TRUE='#'
6249 LIBGFOR_MINIMAL_FALSE=
6250fi
6251
6252
2e764ae1
TB
6253# Some compiler target support may have limited support for integer
6254# or floating point numbers – or may want to reduce the libgfortran size
6255# although they do have the support.
6256LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16"
6257LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16"
6258
2e764ae1
TB
6259
6260
6261
21be0a5a
JB
6262# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6263# similarly to how libstdc++ does it
6264ac_test_CFLAGS="${CFLAGS+set}"
6265ac_save_CFLAGS="$CFLAGS"
6266
6267# Check for -ffunction-sections -fdata-sections
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6269$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6270CFLAGS='-Werror -ffunction-sections -fdata-sections'
6271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h. */
6273
6274int
6275main ()
6276{
6277int foo;
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282if ac_fn_c_try_compile "$LINENO"; then :
6283 ac_fdsections=yes
6284else
6285 ac_fdsections=no
6286fi
6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288if test "$ac_test_CFLAGS" = set; then
6289 CFLAGS="$ac_save_CFLAGS"
6290else
6291 # this is the suspicious part
6292 CFLAGS=""
6293fi
6294if test x"$ac_fdsections" = x"yes"; then
6295 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6298$as_echo "$ac_fdsections" >&6; }
6299
6300
66dbcf2d
RO
6301# Check linker hardware capability support.
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6303$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6304if ${ac_cv_path_SED+:} false; then :
21be0a5a
JB
6305 $as_echo_n "(cached) " >&6
6306else
66dbcf2d
RO
6307 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6308 for ac_i in 1 2 3 4 5 6 7; do
6309 ac_script="$ac_script$as_nl$ac_script"
6310 done
6311 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6312 { ac_script=; unset ac_script;}
6313 if test -z "$SED"; then
6314 ac_path_SED_found=false
6315 # Loop through the user's path and test for each of PROGNAME-LIST
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a
JB
6317for as_dir in $PATH
6318do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
66dbcf2d 6321 for ac_prog in sed gsed; do
21be0a5a 6322 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d 6323 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6324 as_fn_executable_p "$ac_path_SED" || continue
66dbcf2d
RO
6325# Check for GNU ac_path_SED and select it if it is found.
6326 # Check for GNU $ac_path_SED
6327case `"$ac_path_SED" --version 2>&1` in
6328*GNU*)
6329 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6330*)
6331 ac_count=0
6332 $as_echo_n 0123456789 >"conftest.in"
6333 while :
6334 do
6335 cat "conftest.in" "conftest.in" >"conftest.tmp"
6336 mv "conftest.tmp" "conftest.in"
6337 cp "conftest.in" "conftest.nl"
6338 $as_echo '' >> "conftest.nl"
6339 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6341 as_fn_arith $ac_count + 1 && ac_count=$as_val
6342 if test $ac_count -gt ${ac_path_SED_max-0}; then
6343 # Best one so far, save it but keep looking for a better one
6344 ac_cv_path_SED="$ac_path_SED"
6345 ac_path_SED_max=$ac_count
6346 fi
6347 # 10*(2^10) chars as input seems more than enough
6348 test $ac_count -gt 10 && break
21be0a5a 6349 done
66dbcf2d
RO
6350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6351esac
21be0a5a 6352
66dbcf2d
RO
6353 $ac_path_SED_found && break 3
6354 done
6355 done
21be0a5a
JB
6356 done
6357IFS=$as_save_IFS
66dbcf2d 6358 if test -z "$ac_cv_path_SED"; then
22e05272 6359 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
66dbcf2d 6360 fi
21be0a5a 6361else
66dbcf2d 6362 ac_cv_path_SED=$SED
21be0a5a
JB
6363fi
6364
21be0a5a 6365fi
66dbcf2d
RO
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6367$as_echo "$ac_cv_path_SED" >&6; }
6368 SED="$ac_cv_path_SED"
6369 rm -f conftest.sed
21be0a5a 6370
66dbcf2d
RO
6371test -z "$SED" && SED=sed
6372Xsed="$SED -e 1s/^X//"
21be0a5a 6373
21be0a5a
JB
6374
6375
66dbcf2d
RO
6376
6377
6378
6379
6380
6381
6382
6383
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6385$as_echo_n "checking for fgrep... " >&6; }
22e05272 6386if ${ac_cv_path_FGREP+:} false; then :
21be0a5a
JB
6387 $as_echo_n "(cached) " >&6
6388else
66dbcf2d
RO
6389 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6390 then ac_cv_path_FGREP="$GREP -F"
6391 else
6392 if test -z "$FGREP"; then
6393 ac_path_FGREP_found=false
6394 # Loop through the user's path and test for each of PROGNAME-LIST
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21be0a5a
JB
6397do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
66dbcf2d 6400 for ac_prog in fgrep; do
21be0a5a 6401 for ac_exec_ext in '' $ac_executable_extensions; do
66dbcf2d 6402 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6403 as_fn_executable_p "$ac_path_FGREP" || continue
66dbcf2d
RO
6404# Check for GNU ac_path_FGREP and select it if it is found.
6405 # Check for GNU $ac_path_FGREP
6406case `"$ac_path_FGREP" --version 2>&1` in
6407*GNU*)
6408 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6409*)
6410 ac_count=0
6411 $as_echo_n 0123456789 >"conftest.in"
6412 while :
6413 do
6414 cat "conftest.in" "conftest.in" >"conftest.tmp"
6415 mv "conftest.tmp" "conftest.in"
6416 cp "conftest.in" "conftest.nl"
6417 $as_echo 'FGREP' >> "conftest.nl"
6418 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6420 as_fn_arith $ac_count + 1 && ac_count=$as_val
6421 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6422 # Best one so far, save it but keep looking for a better one
6423 ac_cv_path_FGREP="$ac_path_FGREP"
6424 ac_path_FGREP_max=$ac_count
6425 fi
6426 # 10*(2^10) chars as input seems more than enough
6427 test $ac_count -gt 10 && break
6428 done
6429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6430esac
6431
6432 $ac_path_FGREP_found && break 3
6433 done
6434 done
21be0a5a
JB
6435 done
6436IFS=$as_save_IFS
66dbcf2d 6437 if test -z "$ac_cv_path_FGREP"; then
22e05272 6438 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
66dbcf2d
RO
6439 fi
6440else
6441 ac_cv_path_FGREP=$FGREP
6442fi
21be0a5a 6443
66dbcf2d 6444 fi
21be0a5a 6445fi
66dbcf2d
RO
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6447$as_echo "$ac_cv_path_FGREP" >&6; }
6448 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6449
6450
66dbcf2d 6451test -z "$GREP" && GREP=grep
1cf3d07d
SE
6452
6453
6454
6455
6de9cd9a 6456
1cf3d07d
SE
6457
6458
6459
6460
6461
6462
6463
43e02a8a 6464
43e02a8a 6465
43e02a8a 6466
43e02a8a 6467
43e02a8a
RW
6468
6469ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6470ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6471ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6472
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6474$as_echo_n "checking how to print strings... " >&6; }
6475# Test print first, because it will be a builtin if present.
6476if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6477 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6478 ECHO='print -r --'
6479elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6480 ECHO='printf %s\n'
6481else
6482 # Use this function as a fallback that always works.
6483 func_fallback_echo ()
6484 {
6485 eval 'cat <<_LTECHO_EOF
6486$1
6487_LTECHO_EOF'
6488 }
6489 ECHO='func_fallback_echo'
6490fi
6491
6492# func_echo_all arg...
6493# Invoke $ECHO with all args, space-separated.
6494func_echo_all ()
6495{
6496 $ECHO ""
6497}
6498
6499case "$ECHO" in
6500 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6501$as_echo "printf" >&6; } ;;
6502 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6503$as_echo "print -r" >&6; } ;;
6504 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6505$as_echo "cat" >&6; } ;;
6506esac
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
21be0a5a
JB
6519
6520
5213506e 6521
5213506e 6522
66dbcf2d
RO
6523# Check whether --with-gnu-ld was given.
6524if test "${with_gnu_ld+set}" = set; then :
6525 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6526else
6527 with_gnu_ld=no
1cf3d07d 6528fi
21be0a5a 6529
66dbcf2d
RO
6530ac_prog=ld
6531if test "$GCC" = yes; then
6532 # Check if gcc -print-prog-name=ld gives a path.
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6534$as_echo_n "checking for ld used by $CC... " >&6; }
6535 case $host in
6536 *-*-mingw*)
6537 # gcc leaves a trailing carriage return which upsets mingw
6538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6539 *)
6540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6541 esac
6542 case $ac_prog in
6543 # Accept absolute paths.
6544 [\\/]* | ?:[\\/]*)
6545 re_direlt='/[^/][^/]*/\.\./'
6546 # Canonicalize the pathname of ld
6547 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6548 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6549 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6550 done
6551 test -z "$LD" && LD="$ac_prog"
6552 ;;
6553 "")
6554 # If it fails, then pretend we aren't using GCC.
6555 ac_prog=ld
6556 ;;
6557 *)
6558 # If it is relative, then search for the first ld in PATH.
6559 with_gnu_ld=unknown
6560 ;;
6561 esac
6562elif test "$with_gnu_ld" = yes; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6564$as_echo_n "checking for GNU ld... " >&6; }
6565else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6567$as_echo_n "checking for non-GNU ld... " >&6; }
6568fi
22e05272 6569if ${lt_cv_path_LD+:} false; then :
66dbcf2d
RO
6570 $as_echo_n "(cached) " >&6
6571else
6572 if test -z "$LD"; then
6573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6574 for ac_dir in $PATH; do
6575 IFS="$lt_save_ifs"
6576 test -z "$ac_dir" && ac_dir=.
6577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6578 lt_cv_path_LD="$ac_dir/$ac_prog"
6579 # Check to see if the program is GNU ld. I'd rather use --version,
6580 # but apparently some variants of GNU ld only accept -v.
6581 # Break only if it was the GNU/non-GNU ld that we prefer.
6582 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6583 *GNU* | *'with BFD'*)
6584 test "$with_gnu_ld" != no && break
6585 ;;
6586 *)
6587 test "$with_gnu_ld" != yes && break
6588 ;;
6589 esac
6590 fi
6591 done
6592 IFS="$lt_save_ifs"
6593else
6594 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6595fi
6596fi
6597
6598LD="$lt_cv_path_LD"
6599if test -n "$LD"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6601$as_echo "$LD" >&6; }
6602else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
6605fi
22e05272 6606test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
66dbcf2d
RO
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6608$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6609if ${lt_cv_prog_gnu_ld+:} false; then :
66dbcf2d
RO
6610 $as_echo_n "(cached) " >&6
6611else
6612 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6613case `$LD -v 2>&1 </dev/null` in
6614*GNU* | *'with BFD'*)
6615 lt_cv_prog_gnu_ld=yes
6616 ;;
6617*)
6618 lt_cv_prog_gnu_ld=no
6619 ;;
6620esac
6621fi
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6623$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6624with_gnu_ld=$lt_cv_prog_gnu_ld
21be0a5a
JB
6625
6626
6627
6628
6629
6630
6631
6632
1cf3d07d
SE
6633
6634
66dbcf2d
RO
6635 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6636
6637
6638 ac_save_LDFLAGS="$LDFLAGS"
6639 LDFLAGS="$LFLAGS -mclear-hwcap"
6640
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6642$as_echo_n "checking for -mclear-hwcap... " >&6; }
6643 if test x$gcc_no_link = xyes; then
22e05272 6644 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
66dbcf2d
RO
6645fi
6646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647/* end confdefs.h. */
6648
6649int
6650main ()
6651{
6652return 0;
6653 ;
6654 return 0;
6655}
6656_ACEOF
6657if ac_fn_c_try_link "$LINENO"; then :
6658 ac_hwcap_ldflags=yes
6659else
6660 ac_hwcap_ldflags=no
6661fi
6662rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6664 if test "$ac_hwcap_ldflags" = "yes"; then
6665 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6668$as_echo "$ac_hwcap_ldflags" >&6; }
6669
6670 LDFLAGS="$ac_save_LDFLAGS"
6671
6672
6673
6674 if test $ac_hwcap_ldflags != no; then
6675 HAVE_HWCAP_TRUE=
6676 HAVE_HWCAP_FALSE='#'
6677else
6678 HAVE_HWCAP_TRUE='#'
6679 HAVE_HWCAP_FALSE=
6680fi
6681
6682
6683
6684# Find other programs we need.
6685if test -n "$ac_tool_prefix"; then
6686 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6687set dummy ${ac_tool_prefix}as; ac_word=$2
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6690if ${ac_cv_prog_AS+:} false; then :
5213506e 6691 $as_echo_n "(cached) " >&6
38d24731 6692else
66dbcf2d
RO
6693 if test -n "$AS"; then
6694 ac_cv_prog_AS="$AS" # Let the user override the test.
6695else
6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
5213506e
RW
6698do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
5213506e 6701 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6703 ac_cv_prog_AS="${ac_tool_prefix}as"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707done
5213506e 6708 done
66dbcf2d
RO
6709IFS=$as_save_IFS
6710
6711fi
6712fi
6713AS=$ac_cv_prog_AS
6714if test -n "$AS"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6716$as_echo "$AS" >&6; }
6717else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719$as_echo "no" >&6; }
6720fi
6721
6722
6723fi
6724if test -z "$ac_cv_prog_AS"; then
6725 ac_ct_AS=$AS
6726 # Extract the first word of "as", so it can be a program name with args.
6727set dummy as; ac_word=$2
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6730if ${ac_cv_prog_ac_ct_AS+:} false; then :
66dbcf2d
RO
6731 $as_echo_n "(cached) " >&6
6732else
6733 if test -n "$ac_ct_AS"; then
6734 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6743 ac_cv_prog_ac_ct_AS="as"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747done
6748 done
6749IFS=$as_save_IFS
6750
6751fi
6752fi
6753ac_ct_AS=$ac_cv_prog_ac_ct_AS
6754if test -n "$ac_ct_AS"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6756$as_echo "$ac_ct_AS" >&6; }
6757else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759$as_echo "no" >&6; }
6760fi
6761
6762 if test "x$ac_ct_AS" = x; then
6763 AS=""
6764 else
6765 case $cross_compiling:$ac_tool_warned in
6766yes:)
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769ac_tool_warned=yes ;;
5213506e 6770esac
66dbcf2d
RO
6771 AS=$ac_ct_AS
6772 fi
6773else
6774 AS="$ac_cv_prog_AS"
6775fi
5213506e 6776
66dbcf2d
RO
6777if test -n "$ac_tool_prefix"; then
6778 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6779set dummy ${ac_tool_prefix}ar; ac_word=$2
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6782if ${ac_cv_prog_AR+:} false; then :
66dbcf2d
RO
6783 $as_echo_n "(cached) " >&6
6784else
6785 if test -n "$AR"; then
6786 ac_cv_prog_AR="$AR" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6795 ac_cv_prog_AR="${ac_tool_prefix}ar"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799done
5213506e 6800 done
66dbcf2d
RO
6801IFS=$as_save_IFS
6802
6803fi
6804fi
6805AR=$ac_cv_prog_AR
6806if test -n "$AR"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6808$as_echo "$AR" >&6; }
6809else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811$as_echo "no" >&6; }
6812fi
6813
6814
6815fi
6816if test -z "$ac_cv_prog_AR"; then
6817 ac_ct_AR=$AR
6818 # Extract the first word of "ar", so it can be a program name with args.
6819set dummy ar; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6822if ${ac_cv_prog_ac_ct_AR+:} false; then :
66dbcf2d
RO
6823 $as_echo_n "(cached) " >&6
6824else
6825 if test -n "$ac_ct_AR"; then
6826 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6835 ac_cv_prog_ac_ct_AR="ar"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839done
6840 done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845ac_ct_AR=$ac_cv_prog_ac_ct_AR
6846if test -n "$ac_ct_AR"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6848$as_echo "$ac_ct_AR" >&6; }
6849else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854 if test "x$ac_ct_AR" = x; then
6855 AR=""
6856 else
6857 case $cross_compiling:$ac_tool_warned in
6858yes:)
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861ac_tool_warned=yes ;;
6862esac
6863 AR=$ac_ct_AR
6864 fi
6865else
6866 AR="$ac_cv_prog_AR"
6867fi
6868
6869if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6871set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6874if ${ac_cv_prog_RANLIB+:} false; then :
66dbcf2d
RO
6875 $as_echo_n "(cached) " >&6
6876else
6877 if test -n "$RANLIB"; then
6878 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6879else
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891done
6892 done
6893IFS=$as_save_IFS
6894
6895fi
6896fi
6897RANLIB=$ac_cv_prog_RANLIB
6898if test -n "$RANLIB"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6900$as_echo "$RANLIB" >&6; }
6901else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
6904fi
6905
6906
6907fi
6908if test -z "$ac_cv_prog_RANLIB"; then
6909 ac_ct_RANLIB=$RANLIB
6910 # Extract the first word of "ranlib", so it can be a program name with args.
6911set dummy ranlib; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6914if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
66dbcf2d
RO
6915 $as_echo_n "(cached) " >&6
6916else
6917 if test -n "$ac_ct_RANLIB"; then
6918 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66dbcf2d
RO
6927 ac_cv_prog_ac_ct_RANLIB="ranlib"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931done
5213506e
RW
6932 done
6933IFS=$as_save_IFS
66dbcf2d
RO
6934
6935fi
6936fi
6937ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6938if test -n "$ac_ct_RANLIB"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6940$as_echo "$ac_ct_RANLIB" >&6; }
5213506e 6941else
66dbcf2d
RO
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
1cf3d07d 6944fi
5213506e 6945
66dbcf2d
RO
6946 if test "x$ac_ct_RANLIB" = x; then
6947 RANLIB="ranlib-not-found-in-path-error"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950yes:)
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953ac_tool_warned=yes ;;
6954esac
6955 RANLIB=$ac_ct_RANLIB
6956 fi
6957else
6958 RANLIB="$ac_cv_prog_RANLIB"
5213506e 6959fi
1cf3d07d 6960
66dbcf2d
RO
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6962$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6963set x ${MAKE-make}
6964ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 6965if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
66dbcf2d
RO
6966 $as_echo_n "(cached) " >&6
6967else
6968 cat >conftest.make <<\_ACEOF
6969SHELL = /bin/sh
6970all:
6971 @echo '@@@%%%=$(MAKE)=@@@%%%'
6972_ACEOF
22e05272 6973# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
66dbcf2d
RO
6974case `${MAKE-make} -f conftest.make 2>/dev/null` in
6975 *@@@%%%=?*=@@@%%%*)
6976 eval ac_cv_prog_make_${ac_make}_set=yes;;
6977 *)
6978 eval ac_cv_prog_make_${ac_make}_set=no;;
6979esac
6980rm -f conftest.make
6981fi
6982if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6984$as_echo "yes" >&6; }
6985 SET_MAKE=
6986else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988$as_echo "no" >&6; }
6989 SET_MAKE="MAKE=${MAKE-make}"
6990fi
1cf3d07d
SE
6991
6992
6993
66dbcf2d
RO
6994# Configure libtool
6995#AC_MSG_NOTICE([====== Starting libtool configuration])
6996enable_dlopen=yes
1cf3d07d
SE
6997
6998
6999
66dbcf2d
RO
7000case `pwd` in
7001 *\ * | *\ *)
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7003$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7004esac
1cf3d07d
SE
7005
7006
7007
66dbcf2d
RO
7008macro_version='2.2.7a'
7009macro_revision='1.3134'
1cf3d07d
SE
7010
7011
7012
7013
7014
7015
7016
7017
5213506e 7018
96b8a615 7019
96b8a615
AJ
7020
7021
96b8a615 7022
66dbcf2d 7023ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 7024
66dbcf2d
RO
7025# Backslashify metacharacters that are still active within
7026# double-quoted strings.
7027sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1cf3d07d 7028
66dbcf2d
RO
7029# Same as above, but do not quote variable references.
7030double_quote_subst='s/\(["`\\]\)/\\\1/g'
1cf3d07d 7031
66dbcf2d
RO
7032# Sed substitution to delay expansion of an escaped shell variable in a
7033# double_quote_subst'ed string.
7034delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1cf3d07d 7035
66dbcf2d
RO
7036# Sed substitution to delay expansion of an escaped single quote.
7037delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1cf3d07d 7038
66dbcf2d
RO
7039# Sed substitution to avoid accidental globbing in evaled expressions
7040no_glob_subst='s/\*/\\\*/g'
1cf3d07d 7041
5213506e
RW
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7043$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 7044if ${lt_cv_path_NM+:} false; then :
5213506e 7045 $as_echo_n "(cached) " >&6
96b8a615
AJ
7046else
7047 if test -n "$NM"; then
7048 # Let the user override the test.
7049 lt_cv_path_NM="$NM"
7050else
1cf3d07d
SE
7051 lt_nm_to_check="${ac_tool_prefix}nm"
7052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7053 lt_nm_to_check="$lt_nm_to_check nm"
7054 fi
7055 for lt_tmp_nm in $lt_nm_to_check; do
7056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7057 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7058 IFS="$lt_save_ifs"
7059 test -z "$ac_dir" && ac_dir=.
7060 tmp_nm="$ac_dir/$lt_tmp_nm"
7061 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7062 # Check to see if the nm accepts a BSD-compat flag.
7063 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7064 # nm: unknown option "B" ignored
7065 # Tru64's nm complains that /dev/null is an invalid object file
7066 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7067 */dev/null* | *'Invalid file or object type'*)
7068 lt_cv_path_NM="$tmp_nm -B"
7069 break
7070 ;;
7071 *)
7072 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7073 */dev/null*)
7074 lt_cv_path_NM="$tmp_nm -p"
7075 break
7076 ;;
7077 *)
7078 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7079 continue # so that we can try to find one that supports BSD flags
7080 ;;
7081 esac
7082 ;;
7083 esac
7084 fi
7085 done
7086 IFS="$lt_save_ifs"
7087 done
7088 : ${lt_cv_path_NM=no}
7089fi
7090fi
5213506e
RW
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7092$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
7093if test "$lt_cv_path_NM" != "no"; then
7094 NM="$lt_cv_path_NM"
7095else
7096 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
7097 if test -n "$DUMPBIN"; then :
7098 # Let the user override the test.
7099 else
7100 if test -n "$ac_tool_prefix"; then
7101 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7102 do
7103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7107if ${ac_cv_prog_DUMPBIN+:} false; then :
5213506e 7108 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7109else
7110 if test -n "$DUMPBIN"; then
7111 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
5213506e 7118 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7120 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7122 break 2
7123 fi
7124done
5213506e
RW
7125 done
7126IFS=$as_save_IFS
1cf3d07d
SE
7127
7128fi
7129fi
7130DUMPBIN=$ac_cv_prog_DUMPBIN
7131if test -n "$DUMPBIN"; then
5213506e
RW
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7133$as_echo "$DUMPBIN" >&6; }
1cf3d07d 7134else
5213506e
RW
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
1cf3d07d
SE
7137fi
7138
5213506e 7139
1cf3d07d
SE
7140 test -n "$DUMPBIN" && break
7141 done
7142fi
7143if test -z "$DUMPBIN"; then
7144 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 7145 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
7146do
7147 # Extract the first word of "$ac_prog", so it can be a program name with args.
7148set dummy $ac_prog; ac_word=$2
5213506e
RW
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7151if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5213506e 7152 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7153else
7154 if test -n "$ac_ct_DUMPBIN"; then
7155 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7156else
7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
5213506e 7162 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7164 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7166 break 2
7167 fi
7168done
5213506e
RW
7169 done
7170IFS=$as_save_IFS
1cf3d07d
SE
7171
7172fi
7173fi
7174ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7175if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7177$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 7178else
5213506e
RW
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180$as_echo "no" >&6; }
1cf3d07d
SE
7181fi
7182
5213506e 7183
1cf3d07d
SE
7184 test -n "$ac_ct_DUMPBIN" && break
7185done
1cf3d07d 7186
5213506e
RW
7187 if test "x$ac_ct_DUMPBIN" = x; then
7188 DUMPBIN=":"
7189 else
7190 case $cross_compiling:$ac_tool_warned in
7191yes:)
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7194ac_tool_warned=yes ;;
7195esac
7196 DUMPBIN=$ac_ct_DUMPBIN
7197 fi
96b8a615 7198fi
1cf3d07d 7199
43e02a8a
RW
7200 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7201 *COFF*)
7202 DUMPBIN="$DUMPBIN -symbols"
7203 ;;
7204 *)
7205 DUMPBIN=:
7206 ;;
7207 esac
7208 fi
1cf3d07d
SE
7209
7210 if test "$DUMPBIN" != ":"; then
7211 NM="$DUMPBIN"
7212 fi
96b8a615 7213fi
1cf3d07d
SE
7214test -z "$NM" && NM=nm
7215
7216
96b8a615 7217
1cf3d07d
SE
7218
7219
7220
5213506e
RW
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7222$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 7223if ${lt_cv_nm_interface+:} false; then :
5213506e 7224 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7225else
7226 lt_cv_nm_interface="BSD nm"
7227 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 7228 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
7229 (eval "$ac_compile" 2>conftest.err)
7230 cat conftest.err >&5
43e02a8a 7231 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
7232 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7233 cat conftest.err >&5
43e02a8a 7234 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
7235 cat conftest.out >&5
7236 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7237 lt_cv_nm_interface="MS dumpbin"
7238 fi
7239 rm -f conftest*
7240fi
5213506e
RW
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7242$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 7243
5213506e
RW
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7245$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
7246LN_S=$as_ln_s
7247if test "$LN_S" = "ln -s"; then
5213506e
RW
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7249$as_echo "yes" >&6; }
96b8a615 7250else
5213506e
RW
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7252$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
7253fi
7254
1cf3d07d 7255# find the maximum length of command line arguments
5213506e
RW
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7257$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 7258if ${lt_cv_sys_max_cmd_len+:} false; then :
5213506e 7259 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7260else
7261 i=0
7262 teststring="ABCD"
7263
7264 case $build_os in
7265 msdosdjgpp*)
7266 # On DJGPP, this test can blow up pretty badly due to problems in libc
7267 # (any single argument exceeding 2000 bytes causes a buffer overrun
7268 # during glob expansion). Even if it were fixed, the result of this
7269 # check would be larger than it should be.
7270 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7271 ;;
7272
7273 gnu*)
7274 # Under GNU Hurd, this test is not required because there is
7275 # no limit to the length of command line arguments.
7276 # Libtool will interpret -1 as no limit whatsoever
7277 lt_cv_sys_max_cmd_len=-1;
7278 ;;
7279
d58dead8 7280 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
7281 # On Win9x/ME, this test blows up -- it succeeds, but takes
7282 # about 5 minutes as the teststring grows exponentially.
7283 # Worse, since 9x/ME are not pre-emptively multitasking,
7284 # you end up with a "frozen" computer, even though with patience
7285 # the test eventually succeeds (with a max line length of 256k).
7286 # Instead, let's just punt: use the minimum linelength reported by
7287 # all of the supported platforms: 8192 (on NT/2K/XP).
7288 lt_cv_sys_max_cmd_len=8192;
7289 ;;
7290
43e02a8a
RW
7291 mint*)
7292 # On MiNT this can take a long time and run out of memory.
7293 lt_cv_sys_max_cmd_len=8192;
7294 ;;
7295
1cf3d07d
SE
7296 amigaos*)
7297 # On AmigaOS with pdksh, this test takes hours, literally.
7298 # So we just punt and use a minimum line length of 8192.
7299 lt_cv_sys_max_cmd_len=8192;
7300 ;;
7301
7302 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7303 # This has been around since 386BSD, at least. Likely further.
7304 if test -x /sbin/sysctl; then
7305 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7306 elif test -x /usr/sbin/sysctl; then
7307 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7308 else
7309 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7310 fi
7311 # And add a safety zone
7312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7314 ;;
7315
7316 interix*)
7317 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7318 lt_cv_sys_max_cmd_len=196608
7319 ;;
7320
7321 osf*)
7322 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7323 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7324 # nice to cause kernel panics so lets avoid the loop below.
7325 # First set a reasonable default.
7326 lt_cv_sys_max_cmd_len=16384
7327 #
7328 if test -x /sbin/sysconfig; then
7329 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7330 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7331 esac
7332 fi
7333 ;;
7334 sco3.2v5*)
7335 lt_cv_sys_max_cmd_len=102400
7336 ;;
7337 sysv5* | sco5v6* | sysv4.2uw2*)
7338 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7339 if test -n "$kargmax"; then
7340 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7341 else
7342 lt_cv_sys_max_cmd_len=32768
7343 fi
7344 ;;
7345 *)
d58dead8
PG
7346 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7347 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
7348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7350 else
7351 # Make teststring a little bigger before we do anything with it.
7352 # a 1K string should be a reasonable start.
7353 for i in 1 2 3 4 5 6 7 8 ; do
7354 teststring=$teststring$teststring
7355 done
7356 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7357 # If test is not a shell built-in, we'll probably end up computing a
7358 # maximum length that is only half of the actual maximum length, but
7359 # we can't tell.
43e02a8a
RW
7360 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7361 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
7362 test $i != 17 # 1/2 MB should be enough
7363 do
7364 i=`expr $i + 1`
7365 teststring=$teststring$teststring
7366 done
7367 # Only check the string length outside the loop.
7368 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7369 teststring=
7370 # Add a significant safety factor because C++ compilers can tack on
7371 # massive amounts of additional arguments before passing them to the
7372 # linker. It appears as though 1/2 is a usable value.
7373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7374 fi
1cf3d07d
SE
7375 ;;
7376 esac
7377
7378fi
7379
7380if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7382$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 7383else
5213506e
RW
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7385$as_echo "none" >&6; }
1cf3d07d
SE
7386fi
7387max_cmd_len=$lt_cv_sys_max_cmd_len
7388
7389
7390
7391
7392
7393
1cf3d07d
SE
7394: ${CP="cp -f"}
7395: ${MV="mv -f"}
7396: ${RM="rm -f"}
7397
5213506e
RW
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7399$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
7400# Try some XSI features
7401xsi_shell=no
7402( _lt_dummy="a/b/c"
7403 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
7404 = c,a/b,, \
7405 && eval 'test $(( 1 + 1 )) -eq 2 \
7406 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 7407 && xsi_shell=yes
5213506e
RW
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7409$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
7410
7411
5213506e
RW
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7413$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
7414lt_shell_append=no
7415( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7416 >/dev/null 2>&1 \
7417 && lt_shell_append=yes
5213506e
RW
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7419$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
7420
7421
7422if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7423 lt_unset=unset
7424else
7425 lt_unset=false
7426fi
7427
7428
7429
7430
7431
7432# test EBCDIC or ASCII
7433case `echo X|tr X '\101'` in
7434 A) # ASCII based system
7435 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7436 lt_SP2NL='tr \040 \012'
7437 lt_NL2SP='tr \015\012 \040\040'
7438 ;;
7439 *) # EBCDIC based system
7440 lt_SP2NL='tr \100 \n'
7441 lt_NL2SP='tr \r\n \100\100'
7442 ;;
7443esac
7444
7445
7446
7447
7448
7449
7450
7451
7452
5213506e
RW
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7454$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 7455if ${lt_cv_ld_reload_flag+:} false; then :
5213506e 7456 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7457else
7458 lt_cv_ld_reload_flag='-r'
7459fi
5213506e
RW
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7461$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7462reload_flag=$lt_cv_ld_reload_flag
7463case $reload_flag in
7464"" | " "*) ;;
7465*) reload_flag=" $reload_flag" ;;
7466esac
7467reload_cmds='$LD$reload_flag -o $output$reload_objs'
7468case $host_os in
7469 darwin*)
7470 if test "$GCC" = yes; then
7471 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7472 else
7473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7474 fi
7475 ;;
7476esac
7477
7478
7479
7480
7481
7482
7483
7484
7485
d58dead8
PG
7486if test -n "$ac_tool_prefix"; then
7487 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7488set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7491if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 7492 $as_echo_n "(cached) " >&6
d58dead8
PG
7493else
7494 if test -n "$OBJDUMP"; then
7495 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
5213506e 7502 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 7504 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7506 break 2
7507 fi
7508done
5213506e
RW
7509 done
7510IFS=$as_save_IFS
d58dead8
PG
7511
7512fi
7513fi
7514OBJDUMP=$ac_cv_prog_OBJDUMP
7515if test -n "$OBJDUMP"; then
5213506e
RW
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7517$as_echo "$OBJDUMP" >&6; }
d58dead8 7518else
5213506e
RW
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520$as_echo "no" >&6; }
d58dead8
PG
7521fi
7522
5213506e 7523
d58dead8
PG
7524fi
7525if test -z "$ac_cv_prog_OBJDUMP"; then
7526 ac_ct_OBJDUMP=$OBJDUMP
7527 # Extract the first word of "objdump", so it can be a program name with args.
7528set dummy objdump; ac_word=$2
5213506e
RW
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7531if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5213506e 7532 $as_echo_n "(cached) " >&6
d58dead8
PG
7533else
7534 if test -n "$ac_ct_OBJDUMP"; then
7535 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7536else
7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
5213506e 7542 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 7544 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7546 break 2
7547 fi
7548done
5213506e
RW
7549 done
7550IFS=$as_save_IFS
d58dead8 7551
d58dead8
PG
7552fi
7553fi
7554ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7555if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7557$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 7558else
5213506e
RW
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
d58dead8
PG
7561fi
7562
5213506e
RW
7563 if test "x$ac_ct_OBJDUMP" = x; then
7564 OBJDUMP="false"
7565 else
7566 case $cross_compiling:$ac_tool_warned in
7567yes:)
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7570ac_tool_warned=yes ;;
7571esac
7572 OBJDUMP=$ac_ct_OBJDUMP
7573 fi
d58dead8
PG
7574else
7575 OBJDUMP="$ac_cv_prog_OBJDUMP"
7576fi
7577
7578test -z "$OBJDUMP" && OBJDUMP=objdump
7579
7580
7581
7582
7583
7584
7585
7586
1cf3d07d 7587
5213506e
RW
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7589$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 7590if ${lt_cv_deplibs_check_method+:} false; then :
5213506e 7591 $as_echo_n "(cached) " >&6
96b8a615
AJ
7592else
7593 lt_cv_file_magic_cmd='$MAGIC_CMD'
7594lt_cv_file_magic_test_file=
7595lt_cv_deplibs_check_method='unknown'
7596# Need to set the preceding variable on all platforms that support
7597# interlibrary dependencies.
7598# 'none' -- dependencies not supported.
7599# `unknown' -- same as none, but documents that we really don't know.
7600# 'pass_all' -- all dependencies passed with no checks.
7601# 'test_compile' -- check by making test program.
1cf3d07d
SE
7602# 'file_magic [[regex]]' -- check by looking for files in library path
7603# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
7604# If you have `file' or equivalent on your system and you're not sure
7605# whether `pass_all' will *always* work, you probably want this one.
7606
7607case $host_os in
4f6bebc3 7608aix[4-9]*)
96b8a615
AJ
7609 lt_cv_deplibs_check_method=pass_all
7610 ;;
7611
7612beos*)
7613 lt_cv_deplibs_check_method=pass_all
7614 ;;
7615
1cf3d07d 7616bsdi[45]*)
96b8a615
AJ
7617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7618 lt_cv_file_magic_cmd='/usr/bin/file -L'
7619 lt_cv_file_magic_test_file=/shlib/libc.so
7620 ;;
7621
1cf3d07d
SE
7622cygwin*)
7623 # func_win32_libid is a shell function defined in ltmain.sh
7624 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7625 lt_cv_file_magic_cmd='func_win32_libid'
7626 ;;
7627
7628mingw* | pw32*)
7629 # Base MSYS/MinGW do not provide the 'file' command needed by
7630 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7631 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7632 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7633 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7634 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7635 lt_cv_file_magic_cmd='func_win32_libid'
7636 else
7637 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7638 lt_cv_file_magic_cmd='$OBJDUMP -f'
7639 fi
96b8a615
AJ
7640 ;;
7641
43e02a8a 7642cegcc*)
d58dead8
PG
7643 # use the weaker test based on 'objdump'. See mingw*.
7644 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7645 lt_cv_file_magic_cmd='$OBJDUMP -f'
7646 ;;
7647
96b8a615 7648darwin* | rhapsody*)
96b8a615
AJ
7649 lt_cv_deplibs_check_method=pass_all
7650 ;;
7651
1cf3d07d
SE
7652freebsd* | dragonfly*)
7653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
7654 case $host_cpu in
7655 i*86 )
7656 # Not sure whether the presence of OpenBSD here was a mistake.
7657 # Let's accept both of them until this is cleared up.
1cf3d07d 7658 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7659 lt_cv_file_magic_cmd=/usr/bin/file
7660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7661 ;;
7662 esac
7663 else
7664 lt_cv_deplibs_check_method=pass_all
7665 fi
7666 ;;
7667
7668gnu*)
7669 lt_cv_deplibs_check_method=pass_all
7670 ;;
7671
43e02a8a
RW
7672haiku*)
7673 lt_cv_deplibs_check_method=pass_all
7674 ;;
7675
1cf3d07d
SE
7676hpux10.20* | hpux11*)
7677 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7678 case $host_cpu in
96b8a615
AJ
7679 ia64*)
7680 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
96b8a615
AJ
7681 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7682 ;;
1cf3d07d 7683 hppa*64*)
43e02a8a 7684 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
1cf3d07d 7685 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7686 ;;
7687 *)
43e02a8a 7688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7689 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7690 ;;
7691 esac
1cf3d07d
SE
7692 ;;
7693
7694interix[3-9]*)
7695 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7697 ;;
7698
7699irix5* | irix6* | nonstopux*)
7700 case $LD in
7701 *-32|*"-32 ") libmagic=32-bit;;
7702 *-n32|*"-n32 ") libmagic=N32;;
7703 *-64|*"-64 ") libmagic=64-bit;;
7704 *) libmagic=never-match;;
7705 esac
96b8a615
AJ
7706 lt_cv_deplibs_check_method=pass_all
7707 ;;
7708
7709# This must be Linux ELF.
e9085da5 7710linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
2c92e90f 7711 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7712 ;;
7713
1cf3d07d
SE
7714netbsd*)
7715 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7717 else
1cf3d07d 7718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7719 fi
7720 ;;
7721
1cf3d07d 7722newos6*)
96b8a615
AJ
7723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7724 lt_cv_file_magic_cmd=/usr/bin/file
7725 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7726 ;;
7727
1cf3d07d
SE
7728*nto* | *qnx*)
7729 lt_cv_deplibs_check_method=pass_all
7730 ;;
7731
7732openbsd*)
7733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7735 else
7736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7737 fi
7738 ;;
7739
96b8a615 7740osf3* | osf4* | osf5*)
96b8a615
AJ
7741 lt_cv_deplibs_check_method=pass_all
7742 ;;
7743
1cf3d07d 7744rdos*)
96b8a615
AJ
7745 lt_cv_deplibs_check_method=pass_all
7746 ;;
7747
7748solaris*)
7749 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7750 ;;
7751
1cf3d07d 7752sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7753 lt_cv_deplibs_check_method=pass_all
7754 ;;
7755
1cf3d07d 7756sysv4 | sysv4.3*)
96b8a615 7757 case $host_vendor in
96b8a615
AJ
7758 motorola)
7759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7761 ;;
1cf3d07d
SE
7762 ncr)
7763 lt_cv_deplibs_check_method=pass_all
7764 ;;
7765 sequent)
7766 lt_cv_file_magic_cmd='/bin/file'
7767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7768 ;;
7769 sni)
7770 lt_cv_file_magic_cmd='/bin/file'
7771 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7772 lt_cv_file_magic_test_file=/lib/libc.so
7773 ;;
7774 siemens)
7775 lt_cv_deplibs_check_method=pass_all
7776 ;;
7777 pc)
7778 lt_cv_deplibs_check_method=pass_all
7779 ;;
96b8a615
AJ
7780 esac
7781 ;;
1cf3d07d
SE
7782
7783tpf*)
7784 lt_cv_deplibs_check_method=pass_all
7785 ;;
0ecd0f1c
OH
7786vxworks*)
7787 # Assume VxWorks cross toolchains are built on Linux, possibly
7788 # as canadian for Windows hosts.
7789 lt_cv_deplibs_check_method=pass_all
7790 ;;
96b8a615
AJ
7791esac
7792
7793fi
5213506e
RW
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7795$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7796file_magic_cmd=$lt_cv_file_magic_cmd
7797deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7798test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7799
7800
7801
7802
96b8a615 7803
96b8a615 7804
96b8a615 7805
96b8a615 7806
6de9cd9a 7807
6de9cd9a 7808
6de9cd9a 7809
6de9cd9a 7810
96b8a615 7811if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7812 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7813set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7816if ${ac_cv_prog_AR+:} false; then :
5213506e 7817 $as_echo_n "(cached) " >&6
6de9cd9a 7818else
1cf3d07d
SE
7819 if test -n "$AR"; then
7820 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
5213506e 7827 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7829 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7831 break 2
7832 fi
7833done
5213506e
RW
7834 done
7835IFS=$as_save_IFS
6de9cd9a 7836
96b8a615
AJ
7837fi
7838fi
1cf3d07d
SE
7839AR=$ac_cv_prog_AR
7840if test -n "$AR"; then
5213506e
RW
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7842$as_echo "$AR" >&6; }
96b8a615 7843else
5213506e
RW
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
6de9cd9a
DN
7846fi
7847
5213506e 7848
96b8a615 7849fi
1cf3d07d
SE
7850if test -z "$ac_cv_prog_AR"; then
7851 ac_ct_AR=$AR
7852 # Extract the first word of "ar", so it can be a program name with args.
7853set dummy ar; ac_word=$2
5213506e
RW
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7856if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213506e 7857 $as_echo_n "(cached) " >&6
96b8a615 7858else
1cf3d07d
SE
7859 if test -n "$ac_ct_AR"; then
7860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7861else
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
5213506e 7867 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 7869 ac_cv_prog_ac_ct_AR="ar"
5213506e 7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7871 break 2
7872 fi
7873done
5213506e
RW
7874 done
7875IFS=$as_save_IFS
6de9cd9a 7876
96b8a615
AJ
7877fi
7878fi
1cf3d07d
SE
7879ac_ct_AR=$ac_cv_prog_ac_ct_AR
7880if test -n "$ac_ct_AR"; then
5213506e
RW
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7882$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7883else
5213506e
RW
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
6de9cd9a 7886fi
6de9cd9a 7887
5213506e
RW
7888 if test "x$ac_ct_AR" = x; then
7889 AR="false"
7890 else
7891 case $cross_compiling:$ac_tool_warned in
7892yes:)
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895ac_tool_warned=yes ;;
7896esac
7897 AR=$ac_ct_AR
7898 fi
96b8a615 7899else
1cf3d07d 7900 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7901fi
7902
1cf3d07d
SE
7903test -z "$AR" && AR=ar
7904test -z "$AR_FLAGS" && AR_FLAGS=cru
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
96b8a615
AJ
7916if test -n "$ac_tool_prefix"; then
7917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7918set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7921if ${ac_cv_prog_STRIP+:} false; then :
5213506e 7922 $as_echo_n "(cached) " >&6
6de9cd9a 7923else
96b8a615
AJ
7924 if test -n "$STRIP"; then
7925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7926else
7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH
7929do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
5213506e 7932 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 7934 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7936 break 2
7937 fi
7938done
5213506e
RW
7939 done
7940IFS=$as_save_IFS
6de9cd9a 7941
96b8a615
AJ
7942fi
7943fi
7944STRIP=$ac_cv_prog_STRIP
7945if test -n "$STRIP"; then
5213506e
RW
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7947$as_echo "$STRIP" >&6; }
6de9cd9a 7948else
5213506e
RW
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950$as_echo "no" >&6; }
96b8a615 7951fi
6de9cd9a 7952
5213506e 7953
6de9cd9a 7954fi
96b8a615
AJ
7955if test -z "$ac_cv_prog_STRIP"; then
7956 ac_ct_STRIP=$STRIP
7957 # Extract the first word of "strip", so it can be a program name with args.
7958set dummy strip; ac_word=$2
5213506e
RW
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7961if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 7962 $as_echo_n "(cached) " >&6
96b8a615
AJ
7963else
7964 if test -n "$ac_ct_STRIP"; then
7965 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7966else
7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
5213506e 7972 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 7974 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7976 break 2
7977 fi
7978done
5213506e
RW
7979 done
7980IFS=$as_save_IFS
96b8a615 7981
6de9cd9a
DN
7982fi
7983fi
96b8a615
AJ
7984ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7985if test -n "$ac_ct_STRIP"; then
5213506e
RW
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7987$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7988else
5213506e
RW
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990$as_echo "no" >&6; }
6de9cd9a 7991fi
6de9cd9a 7992
5213506e
RW
7993 if test "x$ac_ct_STRIP" = x; then
7994 STRIP=":"
7995 else
7996 case $cross_compiling:$ac_tool_warned in
7997yes:)
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8000ac_tool_warned=yes ;;
8001esac
8002 STRIP=$ac_ct_STRIP
8003 fi
96b8a615
AJ
8004else
8005 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
8006fi
8007
1cf3d07d 8008test -z "$STRIP" && STRIP=:
6de9cd9a
DN
8009
8010
8011
8012
8013
8014
1cf3d07d
SE
8015if test -n "$ac_tool_prefix"; then
8016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8017set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8020if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 8021 $as_echo_n "(cached) " >&6
6de9cd9a 8022else
1cf3d07d
SE
8023 if test -n "$RANLIB"; then
8024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
5213506e 8031 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 8033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
8035 break 2
8036 fi
8037done
5213506e
RW
8038 done
8039IFS=$as_save_IFS
1cf3d07d
SE
8040
8041fi
8042fi
8043RANLIB=$ac_cv_prog_RANLIB
8044if test -n "$RANLIB"; then
5213506e
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8046$as_echo "$RANLIB" >&6; }
1cf3d07d 8047else
5213506e
RW
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
1cf3d07d
SE
8050fi
8051
5213506e 8052
1cf3d07d
SE
8053fi
8054if test -z "$ac_cv_prog_RANLIB"; then
8055 ac_ct_RANLIB=$RANLIB
8056 # Extract the first word of "ranlib", so it can be a program name with args.
8057set dummy ranlib; ac_word=$2
5213506e
RW
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8060if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 8061 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8062else
8063 if test -n "$ac_ct_RANLIB"; then
8064 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
5213506e 8071 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 8073 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
8075 break 2
8076 fi
8077done
5213506e
RW
8078 done
8079IFS=$as_save_IFS
1cf3d07d 8080
1cf3d07d
SE
8081fi
8082fi
8083ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8084if test -n "$ac_ct_RANLIB"; then
5213506e
RW
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8086$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 8087else
5213506e
RW
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
1cf3d07d
SE
8090fi
8091
5213506e
RW
8092 if test "x$ac_ct_RANLIB" = x; then
8093 RANLIB=":"
8094 else
8095 case $cross_compiling:$ac_tool_warned in
8096yes:)
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099ac_tool_warned=yes ;;
8100esac
8101 RANLIB=$ac_ct_RANLIB
8102 fi
1cf3d07d
SE
8103else
8104 RANLIB="$ac_cv_prog_RANLIB"
8105fi
8106
8107test -z "$RANLIB" && RANLIB=:
8108
8109
8110
8111
8112
8113
8114# Determine commands to create old-style static archives.
d58dead8 8115old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
8116old_postinstall_cmds='chmod 644 $oldlib'
8117old_postuninstall_cmds=
8118
8119if test -n "$RANLIB"; then
8120 case $host_os in
8121 openbsd*)
8122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8123 ;;
8124 *)
8125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8126 ;;
8127 esac
8128 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8129fi
8130
43e02a8a
RW
8131case $host_os in
8132 darwin*)
8133 lock_old_archive_extraction=yes ;;
8134 *)
8135 lock_old_archive_extraction=no ;;
8136esac
8137
8138
8139
8140
8141
8142
1cf3d07d
SE
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176# If no C compiler was specified, use CC.
8177LTCC=${LTCC-"$CC"}
8178
8179# If no C compiler flags were specified, use CFLAGS.
8180LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8181
8182# Allow CC to be a program name with arguments.
8183compiler=$CC
8184
8185
8186# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8188$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 8189if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5213506e 8190 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8191else
8192
8193# These are sane defaults that work on at least a few old systems.
8194# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8195
8196# Character class describing NM global symbol codes.
8197symcode='[BCDEGRST]'
8198
8199# Regexp to match symbols that can be accessed directly from C.
8200sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8201
8202# Define system-specific variables.
8203case $host_os in
8204aix*)
8205 symcode='[BCDT]'
8206 ;;
d58dead8 8207cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8208 symcode='[ABCDGISTW]'
8209 ;;
8210hpux*)
8211 if test "$host_cpu" = ia64; then
8212 symcode='[ABCDEGRST]'
8213 fi
8214 ;;
8215irix* | nonstopux*)
8216 symcode='[BCDEGRST]'
8217 ;;
8218osf*)
8219 symcode='[BCDEGQRST]'
8220 ;;
8221solaris*)
8222 symcode='[BDRT]'
8223 ;;
8224sco3.2v5*)
8225 symcode='[DT]'
8226 ;;
8227sysv4.2uw2*)
8228 symcode='[DT]'
8229 ;;
8230sysv5* | sco5v6* | unixware* | OpenUNIX*)
8231 symcode='[ABDT]'
8232 ;;
8233sysv4)
8234 symcode='[DFNSTU]'
8235 ;;
8236esac
8237
8238# If we're using GNU nm, then use its standard symbol codes.
8239case `$NM -V 2>&1` in
8240*GNU* | *'with BFD'*)
8241 symcode='[ABCDGIRSTW]' ;;
8242esac
8243
8244# Transform an extracted symbol line into a proper C declaration.
8245# Some systems (esp. on ia64) link data and code symbols differently,
8246# so use this general approach.
8247lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8248
8249# Transform an extracted symbol line into symbol name and symbol address
8250lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 8251lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1cf3d07d
SE
8252
8253# Handle CRLF in mingw tool chain
8254opt_cr=
8255case $build_os in
8256mingw*)
8257 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8258 ;;
8259esac
8260
8261# Try without a prefix underscore, then with it.
8262for ac_symprfx in "" "_"; do
8263
8264 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8265 symxfrm="\\1 $ac_symprfx\\2 \\2"
8266
8267 # Write the raw and C identifiers.
8268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8269 # Fake it for dumpbin and say T for any non-static function
8270 # and D for any global variable.
8271 # Also find C++ and __fastcall symbols from MSVC++,
8272 # which start with @ or ?.
8273 lt_cv_sys_global_symbol_pipe="$AWK '"\
8274" {last_section=section; section=\$ 3};"\
8275" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8276" \$ 0!~/External *\|/{next};"\
8277" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8278" {if(hide[section]) next};"\
8279" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8280" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8281" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8282" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8283" ' prfx=^$ac_symprfx"
8284 else
8285 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8286 fi
8287
8288 # Check to see that the pipe works correctly.
8289 pipe_works=no
8290
8291 rm -f conftest*
8292 cat > conftest.$ac_ext <<_LT_EOF
8293#ifdef __cplusplus
8294extern "C" {
8295#endif
8296char nm_test_var;
8297void nm_test_func(void);
8298void nm_test_func(void){}
8299#ifdef __cplusplus
8300}
8301#endif
8302int main(){nm_test_var='a';nm_test_func();return(0);}
8303_LT_EOF
8304
5213506e 8305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8306 (eval $ac_compile) 2>&5
8307 ac_status=$?
5213506e
RW
8308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8309 test $ac_status = 0; }; then
1cf3d07d
SE
8310 # Now try to grab the symbols.
8311 nlist=conftest.nm
43e02a8a
RW
8312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8313 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 8314 ac_status=$?
5213506e
RW
8315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8316 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
8317 # Try sorting and uniquifying the output.
8318 if sort "$nlist" | uniq > "$nlist"T; then
8319 mv -f "$nlist"T "$nlist"
8320 else
8321 rm -f "$nlist"T
8322 fi
8323
8324 # Make sure that we snagged all the symbols we need.
8325 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8326 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8327 cat <<_LT_EOF > conftest.$ac_ext
8328#ifdef __cplusplus
8329extern "C" {
8330#endif
8331
8332_LT_EOF
8333 # Now generate the symbol file.
8334 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8335
8336 cat <<_LT_EOF >> conftest.$ac_ext
8337
8338/* The mapping between symbol names and symbols. */
8339const struct {
8340 const char *name;
8341 void *address;
8342}
8343lt__PROGRAM__LTX_preloaded_symbols[] =
8344{
8345 { "@PROGRAM@", (void *) 0 },
8346_LT_EOF
8347 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8348 cat <<\_LT_EOF >> conftest.$ac_ext
8349 {0, (void *) 0}
8350};
8351
8352/* This works around a problem in FreeBSD linker */
8353#ifdef FREEBSD_WORKAROUND
8354static const void *lt_preloaded_setup() {
8355 return lt__PROGRAM__LTX_preloaded_symbols;
8356}
8357#endif
8358
8359#ifdef __cplusplus
8360}
8361#endif
8362_LT_EOF
8363 # Now try linking the two files.
8364 mv conftest.$ac_objext conftstm.$ac_objext
8365 lt_save_LIBS="$LIBS"
8366 lt_save_CFLAGS="$CFLAGS"
8367 LIBS="conftstm.$ac_objext"
8368 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 8369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
8370 (eval $ac_link) 2>&5
8371 ac_status=$?
5213506e
RW
8372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8373 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
8374 pipe_works=yes
8375 fi
8376 LIBS="$lt_save_LIBS"
8377 CFLAGS="$lt_save_CFLAGS"
8378 else
8379 echo "cannot find nm_test_func in $nlist" >&5
8380 fi
8381 else
8382 echo "cannot find nm_test_var in $nlist" >&5
8383 fi
8384 else
8385 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8386 fi
8387 else
8388 echo "$progname: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8390 fi
d58dead8 8391 rm -rf conftest* conftst*
1cf3d07d
SE
8392
8393 # Do not use the global_symbol_pipe unless it works.
8394 if test "$pipe_works" = yes; then
8395 break
8396 else
8397 lt_cv_sys_global_symbol_pipe=
8398 fi
8399done
8400
8401fi
8402
8403if test -z "$lt_cv_sys_global_symbol_pipe"; then
8404 lt_cv_sys_global_symbol_to_cdecl=
8405fi
8406if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8408$as_echo "failed" >&6; }
1cf3d07d 8409else
5213506e
RW
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8411$as_echo "ok" >&6; }
1cf3d07d
SE
8412fi
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
d58dead8
PG
8428
8429
8430
8431
8432
1cf3d07d
SE
8433
8434
5213506e
RW
8435# Check whether --enable-libtool-lock was given.
8436if test "${enable_libtool_lock+set}" = set; then :
8437 enableval=$enable_libtool_lock;
8438fi
1cf3d07d 8439
1cf3d07d 8440test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 8441
96b8a615
AJ
8442# Some flags need to be propagated to the compiler or linker for good
8443# libtool support.
8444case $host in
1cf3d07d 8445ia64-*-hpux*)
96b8a615 8446 # Find out which ABI we are using.
1cf3d07d 8447 echo 'int i;' > conftest.$ac_ext
5213506e 8448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8449 (eval $ac_compile) 2>&5
6de9cd9a 8450 ac_status=$?
5213506e
RW
8451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8452 test $ac_status = 0; }; then
96b8a615 8453 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
8454 *ELF-32*)
8455 HPUX_IA64_MODE="32"
8456 ;;
8457 *ELF-64*)
8458 HPUX_IA64_MODE="64"
8459 ;;
96b8a615 8460 esac
96b8a615
AJ
8461 fi
8462 rm -rf conftest*
8463 ;;
1cf3d07d 8464*-*-irix6*)
96b8a615 8465 # Find out which ABI we are using.
43e02a8a 8466 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8468 (eval $ac_compile) 2>&5
6de9cd9a 8469 ac_status=$?
5213506e
RW
8470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8471 test $ac_status = 0; }; then
1cf3d07d
SE
8472 if test "$lt_cv_prog_gnu_ld" = yes; then
8473 case `/usr/bin/file conftest.$ac_objext` in
8474 *32-bit*)
8475 LD="${LD-ld} -melf32bsmip"
8476 ;;
8477 *N32*)
8478 LD="${LD-ld} -melf32bmipn32"
8479 ;;
8480 *64-bit*)
8481 LD="${LD-ld} -melf64bmip"
8482 ;;
8483 esac
8484 else
8485 case `/usr/bin/file conftest.$ac_objext` in
8486 *32-bit*)
8487 LD="${LD-ld} -32"
8488 ;;
8489 *N32*)
8490 LD="${LD-ld} -n32"
8491 ;;
8492 *64-bit*)
8493 LD="${LD-ld} -64"
8494 ;;
8495 esac
8496 fi
96b8a615
AJ
8497 fi
8498 rm -rf conftest*
8499 ;;
6de9cd9a 8500
3cbe17f7 8501x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d 8502s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
8503 # Find out which ABI we are using.
8504 echo 'int i;' > conftest.$ac_ext
5213506e 8505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8506 (eval $ac_compile) 2>&5
6de9cd9a 8507 ac_status=$?
5213506e
RW
8508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8509 test $ac_status = 0; }; then
1cf3d07d
SE
8510 case `/usr/bin/file conftest.o` in
8511 *32-bit*)
8512 case $host in
8513 x86_64-*kfreebsd*-gnu)
8514 LD="${LD-ld} -m elf_i386_fbsd"
8515 ;;
8516 x86_64-*linux*)
e6d5f8c9
L
8517 case `/usr/bin/file conftest.o` in
8518 *x86-64*)
8519 LD="${LD-ld} -m elf32_x86_64"
8520 ;;
8521 *)
8522 LD="${LD-ld} -m elf_i386"
8523 ;;
8524 esac
1cf3d07d 8525 ;;
3cbe17f7
AM
8526 powerpc64le-*linux*)
8527 LD="${LD-ld} -m elf32lppclinux"
8528 ;;
8529 powerpc64-*linux*)
1cf3d07d
SE
8530 LD="${LD-ld} -m elf32ppclinux"
8531 ;;
8532 s390x-*linux*)
8533 LD="${LD-ld} -m elf_s390"
8534 ;;
8535 sparc64-*linux*)
8536 LD="${LD-ld} -m elf32_sparc"
8537 ;;
8538 esac
8539 ;;
8540 *64-bit*)
8541 case $host in
8542 x86_64-*kfreebsd*-gnu)
8543 LD="${LD-ld} -m elf_x86_64_fbsd"
8544 ;;
8545 x86_64-*linux*)
8546 LD="${LD-ld} -m elf_x86_64"
8547 ;;
3cbe17f7
AM
8548 powerpcle-*linux*)
8549 LD="${LD-ld} -m elf64lppc"
8550 ;;
8551 powerpc-*linux*)
1cf3d07d
SE
8552 LD="${LD-ld} -m elf64ppc"
8553 ;;
8554 s390*-*linux*|s390*-*tpf*)
8555 LD="${LD-ld} -m elf64_s390"
8556 ;;
8557 sparc*-*linux*)
8558 LD="${LD-ld} -m elf64_sparc"
8559 ;;
8560 esac
8561 ;;
96b8a615 8562 esac
6de9cd9a 8563 fi
96b8a615
AJ
8564 rm -rf conftest*
8565 ;;
6de9cd9a 8566
96b8a615
AJ
8567*-*-sco3.2v5*)
8568 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8569 SAVE_CFLAGS="$CFLAGS"
8570 CFLAGS="$CFLAGS -belf"
5213506e
RW
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8572$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 8573if ${lt_cv_cc_needs_belf+:} false; then :
5213506e 8574 $as_echo_n "(cached) " >&6
6de9cd9a 8575else
1cf3d07d 8576 ac_ext=c
96b8a615
AJ
8577ac_cpp='$CPP $CPPFLAGS'
8578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8580ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 8581
f02d008e 8582 if test x$gcc_no_link = xyes; then
22e05272 8583 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 8584fi
5213506e 8585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 8586/* end confdefs.h. */
6de9cd9a
DN
8587
8588int
8589main ()
8590{
96b8a615 8591
6de9cd9a
DN
8592 ;
8593 return 0;
8594}
8595_ACEOF
5213506e 8596if ac_fn_c_try_link "$LINENO"; then :
96b8a615 8597 lt_cv_cc_needs_belf=yes
6de9cd9a 8598else
5213506e 8599 lt_cv_cc_needs_belf=no
6de9cd9a 8600fi
5213506e
RW
8601rm -f core conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
8603 ac_ext=c
8604ac_cpp='$CPP $CPPFLAGS'
8605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8607ac_compiler_gnu=$ac_cv_c_compiler_gnu
8608
6de9cd9a 8609fi
5213506e
RW
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8611$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
8612 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8613 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8614 CFLAGS="$SAVE_CFLAGS"
8615 fi
8616 ;;
1cf3d07d
SE
8617sparc*-*solaris*)
8618 # Find out which ABI we are using.
8619 echo 'int i;' > conftest.$ac_ext
5213506e 8620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8621 (eval $ac_compile) 2>&5
8622 ac_status=$?
5213506e
RW
8623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8624 test $ac_status = 0; }; then
1cf3d07d
SE
8625 case `/usr/bin/file conftest.o` in
8626 *64-bit*)
8627 case $lt_cv_prog_gnu_ld in
8628 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
8629 *)
8630 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8631 LD="${LD-ld} -64"
8632 fi
8633 ;;
1cf3d07d
SE
8634 esac
8635 ;;
8636 esac
8637 fi
8638 rm -rf conftest*
8639 ;;
96b8a615
AJ
8640esac
8641
1cf3d07d 8642need_locks="$enable_libtool_lock"
96b8a615 8643
d58dead8
PG
8644
8645 case $host_os in
8646 rhapsody* | darwin*)
8647 if test -n "$ac_tool_prefix"; then
8648 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8649set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8652if ${ac_cv_prog_DSYMUTIL+:} false; then :
5213506e 8653 $as_echo_n "(cached) " >&6
d58dead8
PG
8654else
8655 if test -n "$DSYMUTIL"; then
8656 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8657else
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
5213506e 8663 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d58dead8 8665 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8667 break 2
8668 fi
8669done
5213506e
RW
8670 done
8671IFS=$as_save_IFS
d58dead8
PG
8672
8673fi
8674fi
8675DSYMUTIL=$ac_cv_prog_DSYMUTIL
8676if test -n "$DSYMUTIL"; then
5213506e
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8678$as_echo "$DSYMUTIL" >&6; }
d58dead8 8679else
5213506e
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681$as_echo "no" >&6; }
d58dead8
PG
8682fi
8683
5213506e 8684
d58dead8
PG
8685fi
8686if test -z "$ac_cv_prog_DSYMUTIL"; then
8687 ac_ct_DSYMUTIL=$DSYMUTIL
8688 # Extract the first word of "dsymutil", so it can be a program name with args.
8689set dummy dsymutil; ac_word=$2
5213506e
RW
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8692if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5213506e 8693 $as_echo_n "(cached) " >&6
d58dead8 8694else
21be0a5a
JB
8695 if test -n "$ac_ct_DSYMUTIL"; then
8696 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8697else
8698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699for as_dir in $PATH
8700do
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
5213506e 8703 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8705 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8707 break 2
8708 fi
8709done
5213506e
RW
8710 done
8711IFS=$as_save_IFS
d58dead8 8712
d58dead8
PG
8713fi
8714fi
21be0a5a
JB
8715ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8716if test -n "$ac_ct_DSYMUTIL"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8718$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8719else
5213506e
RW
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721$as_echo "no" >&6; }
d58dead8
PG
8722fi
8723
21be0a5a
JB
8724 if test "x$ac_ct_DSYMUTIL" = x; then
8725 DSYMUTIL=":"
5213506e
RW
8726 else
8727 case $cross_compiling:$ac_tool_warned in
8728yes:)
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731ac_tool_warned=yes ;;
8732esac
21be0a5a 8733 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8734 fi
d58dead8 8735else
21be0a5a 8736 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8737fi
8738
8739 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8740 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8741set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8744if ${ac_cv_prog_NMEDIT+:} false; then :
5213506e 8745 $as_echo_n "(cached) " >&6
d58dead8 8746else
21be0a5a
JB
8747 if test -n "$NMEDIT"; then
8748 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8749else
8750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751for as_dir in $PATH
8752do
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
5213506e 8755 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8757 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8759 break 2
8760 fi
8761done
5213506e
RW
8762 done
8763IFS=$as_save_IFS
d58dead8
PG
8764
8765fi
8766fi
21be0a5a
JB
8767NMEDIT=$ac_cv_prog_NMEDIT
8768if test -n "$NMEDIT"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8770$as_echo "$NMEDIT" >&6; }
d58dead8 8771else
5213506e
RW
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773$as_echo "no" >&6; }
d58dead8
PG
8774fi
8775
5213506e 8776
d58dead8 8777fi
21be0a5a
JB
8778if test -z "$ac_cv_prog_NMEDIT"; then
8779 ac_ct_NMEDIT=$NMEDIT
8780 # Extract the first word of "nmedit", so it can be a program name with args.
8781set dummy nmedit; ac_word=$2
5213506e
RW
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8784if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5213506e 8785 $as_echo_n "(cached) " >&6
d58dead8 8786else
21be0a5a
JB
8787 if test -n "$ac_ct_NMEDIT"; then
8788 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8789else
8790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791for as_dir in $PATH
8792do
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
5213506e 8795 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8797 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8799 break 2
8800 fi
8801done
5213506e
RW
8802 done
8803IFS=$as_save_IFS
d58dead8 8804
d58dead8
PG
8805fi
8806fi
21be0a5a
JB
8807ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8808if test -n "$ac_ct_NMEDIT"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8810$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8811else
5213506e
RW
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813$as_echo "no" >&6; }
d58dead8
PG
8814fi
8815
21be0a5a
JB
8816 if test "x$ac_ct_NMEDIT" = x; then
8817 NMEDIT=":"
5213506e
RW
8818 else
8819 case $cross_compiling:$ac_tool_warned in
8820yes:)
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8823ac_tool_warned=yes ;;
8824esac
21be0a5a 8825 NMEDIT=$ac_ct_NMEDIT
5213506e 8826 fi
d58dead8 8827else
21be0a5a 8828 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8829fi
8830
8831 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8832 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8833set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8836if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8837 $as_echo_n "(cached) " >&6
d58dead8 8838else
21be0a5a
JB
8839 if test -n "$LIPO"; then
8840 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
5213506e 8847 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8849 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8851 break 2
8852 fi
8853done
5213506e
RW
8854 done
8855IFS=$as_save_IFS
d58dead8
PG
8856
8857fi
8858fi
21be0a5a
JB
8859LIPO=$ac_cv_prog_LIPO
8860if test -n "$LIPO"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8862$as_echo "$LIPO" >&6; }
d58dead8 8863else
5213506e
RW
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
d58dead8
PG
8866fi
8867
5213506e 8868
d58dead8 8869fi
21be0a5a
JB
8870if test -z "$ac_cv_prog_LIPO"; then
8871 ac_ct_LIPO=$LIPO
8872 # Extract the first word of "lipo", so it can be a program name with args.
8873set dummy lipo; ac_word=$2
5213506e
RW
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8876if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5213506e 8877 $as_echo_n "(cached) " >&6
d58dead8 8878else
21be0a5a
JB
8879 if test -n "$ac_ct_LIPO"; then
8880 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
5213506e 8887 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a 8889 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8891 break 2
8892 fi
8893done
5213506e
RW
8894 done
8895IFS=$as_save_IFS
d58dead8 8896
d58dead8
PG
8897fi
8898fi
21be0a5a
JB
8899ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8900if test -n "$ac_ct_LIPO"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8902$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8903else
5213506e
RW
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905$as_echo "no" >&6; }
d58dead8
PG
8906fi
8907
21be0a5a
JB
8908 if test "x$ac_ct_LIPO" = x; then
8909 LIPO=":"
5213506e
RW
8910 else
8911 case $cross_compiling:$ac_tool_warned in
8912yes:)
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915ac_tool_warned=yes ;;
8916esac
21be0a5a 8917 LIPO=$ac_ct_LIPO
5213506e 8918 fi
d58dead8 8919else
21be0a5a 8920 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8921fi
8922
21be0a5a
JB
8923 if test -n "$ac_tool_prefix"; then
8924 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8925set dummy ${ac_tool_prefix}otool; ac_word=$2
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8928if ${ac_cv_prog_OTOOL+:} false; then :
5213506e 8929 $as_echo_n "(cached) " >&6
d58dead8 8930else
21be0a5a
JB
8931 if test -n "$OTOOL"; then
8932 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8933else
21be0a5a
JB
8934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935for as_dir in $PATH
8936do
8937 IFS=$as_save_IFS
8938 test -z "$as_dir" && as_dir=.
8939 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
8941 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 break 2
8944 fi
8945done
8946 done
8947IFS=$as_save_IFS
43e02a8a
RW
8948
8949fi
21be0a5a
JB
8950fi
8951OTOOL=$ac_cv_prog_OTOOL
8952if test -n "$OTOOL"; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8954$as_echo "$OTOOL" >&6; }
8955else
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957$as_echo "no" >&6; }
8958fi
8959
d58dead8 8960
1cf3d07d 8961fi
21be0a5a
JB
8962if test -z "$ac_cv_prog_OTOOL"; then
8963 ac_ct_OTOOL=$OTOOL
8964 # Extract the first word of "otool", so it can be a program name with args.
8965set dummy otool; ac_word=$2
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8968if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5213506e 8969 $as_echo_n "(cached) " >&6
1cf3d07d 8970else
21be0a5a
JB
8971 if test -n "$ac_ct_OTOOL"; then
8972 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8973else
8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
1cf3d07d 8976do
21be0a5a
JB
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
8981 ac_cv_prog_ac_ct_OTOOL="otool"
8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8984 fi
8985done
8986 done
8987IFS=$as_save_IFS
6de9cd9a 8988
21be0a5a
JB
8989fi
8990fi
8991ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8992if test -n "$ac_ct_OTOOL"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8994$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8995else
21be0a5a
JB
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997$as_echo "no" >&6; }
1cf3d07d 8998fi
96b8a615 8999
21be0a5a
JB
9000 if test "x$ac_ct_OTOOL" = x; then
9001 OTOOL=":"
9002 else
9003 case $cross_compiling:$ac_tool_warned in
9004yes:)
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9007ac_tool_warned=yes ;;
9008esac
9009 OTOOL=$ac_ct_OTOOL
9010 fi
1cf3d07d 9011else
21be0a5a 9012 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 9013fi
6de9cd9a 9014
21be0a5a
JB
9015 if test -n "$ac_tool_prefix"; then
9016 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9017set dummy ${ac_tool_prefix}otool64; ac_word=$2
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9020if ${ac_cv_prog_OTOOL64+:} false; then :
21be0a5a
JB
9021 $as_echo_n "(cached) " >&6
9022else
9023 if test -n "$OTOOL64"; then
9024 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9025else
9026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027for as_dir in $PATH
9028do
9029 IFS=$as_save_IFS
9030 test -z "$as_dir" && as_dir=.
9031 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
9033 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035 break 2
9036 fi
1cf3d07d 9037done
21be0a5a
JB
9038 done
9039IFS=$as_save_IFS
9040
9041fi
9042fi
9043OTOOL64=$ac_cv_prog_OTOOL64
9044if test -n "$OTOOL64"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9046$as_echo "$OTOOL64" >&6; }
9047else
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049$as_echo "no" >&6; }
1cf3d07d 9050fi
6de9cd9a 9051
96b8a615 9052
1cf3d07d 9053fi
21be0a5a
JB
9054if test -z "$ac_cv_prog_OTOOL64"; then
9055 ac_ct_OTOOL64=$OTOOL64
9056 # Extract the first word of "otool64", so it can be a program name with args.
9057set dummy otool64; ac_word=$2
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9060if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
21be0a5a 9061 $as_echo_n "(cached) " >&6
96b8a615 9062else
21be0a5a
JB
9063 if test -n "$ac_ct_OTOOL64"; then
9064 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9065else
9066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067for as_dir in $PATH
96b8a615 9068do
21be0a5a
JB
9069 IFS=$as_save_IFS
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21be0a5a
JB
9073 ac_cv_prog_ac_ct_OTOOL64="otool64"
9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075 break 2
9076 fi
9077done
9078 done
9079IFS=$as_save_IFS
96b8a615 9080
21be0a5a
JB
9081fi
9082fi
9083ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9084if test -n "$ac_ct_OTOOL64"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9086$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 9087else
21be0a5a
JB
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089$as_echo "no" >&6; }
96b8a615
AJ
9090fi
9091
21be0a5a
JB
9092 if test "x$ac_ct_OTOOL64" = x; then
9093 OTOOL64=":"
9094 else
9095 case $cross_compiling:$ac_tool_warned in
9096yes:)
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9099ac_tool_warned=yes ;;
9100esac
9101 OTOOL64=$ac_ct_OTOOL64
9102 fi
6de9cd9a 9103else
21be0a5a 9104 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 9105fi
6de9cd9a 9106
5213506e 9107
1cf3d07d 9108
1cf3d07d
SE
9109
9110
6de9cd9a 9111
1cf3d07d 9112
6de9cd9a 9113
1cf3d07d 9114
5213506e 9115
6de9cd9a 9116
e87045f3 9117
15e92535 9118
5213506e 9119
15e92535 9120
15e92535 9121
21be0a5a
JB
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9134$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 9135if ${lt_cv_apple_cc_single_mod+:} false; then :
21be0a5a 9136 $as_echo_n "(cached) " >&6
1cf3d07d 9137else
21be0a5a
JB
9138 lt_cv_apple_cc_single_mod=no
9139 if test -z "${LT_MULTI_MODULE}"; then
9140 # By default we will add the -single_module flag. You can override
9141 # by either setting the environment variable LT_MULTI_MODULE
9142 # non-empty at configure time, or by adding -multi_module to the
9143 # link flags.
9144 rm -rf libconftest.dylib*
9145 echo "int foo(void){return 1;}" > conftest.c
9146 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9147-dynamiclib -Wl,-single_module conftest.c" >&5
9148 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9149 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9150 _lt_result=$?
9151 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9152 lt_cv_apple_cc_single_mod=yes
9153 else
9154 cat conftest.err >&5
9155 fi
9156 rm -rf libconftest.dylib*
9157 rm -f conftest.*
9158 fi
9159fi
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9161$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9163$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 9164if ${lt_cv_ld_exported_symbols_list+:} false; then :
21be0a5a
JB
9165 $as_echo_n "(cached) " >&6
9166else
9167 lt_cv_ld_exported_symbols_list=no
9168 save_LDFLAGS=$LDFLAGS
9169 echo "_main" > conftest.sym
9170 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9171 if test x$gcc_no_link = xyes; then
22e05272 9172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21be0a5a
JB
9173fi
9174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 9175/* end confdefs.h. */
15e92535 9176
1cf3d07d
SE
9177int
9178main ()
9179{
21be0a5a
JB
9180
9181 ;
5213506e 9182 return 0;
1cf3d07d 9183}
15e92535 9184_ACEOF
21be0a5a
JB
9185if ac_fn_c_try_link "$LINENO"; then :
9186 lt_cv_ld_exported_symbols_list=yes
5213506e 9187else
21be0a5a 9188 lt_cv_ld_exported_symbols_list=no
1cf3d07d 9189fi
21be0a5a
JB
9190rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
9193
9194fi
21be0a5a
JB
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9196$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9198$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 9199if ${lt_cv_ld_force_load+:} false; then :
21be0a5a
JB
9200 $as_echo_n "(cached) " >&6
9201else
9202 lt_cv_ld_force_load=no
9203 cat > conftest.c << _LT_EOF
9204int forced_loaded() { return 2;}
9205_LT_EOF
9206 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9207 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9208 echo "$AR cru libconftest.a conftest.o" >&5
9209 $AR cru libconftest.a conftest.o 2>&5
9210 cat > conftest.c << _LT_EOF
9211int main() { return 0;}
9212_LT_EOF
9213 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9214 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9215 _lt_result=$?
9216 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9217 lt_cv_ld_force_load=yes
9218 else
9219 cat conftest.err >&5
9220 fi
9221 rm -f conftest.err libconftest.a conftest conftest.c
9222 rm -rf conftest.dSYM
1cf3d07d
SE
9223
9224fi
21be0a5a
JB
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9226$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
9227 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9228 # build without first building modern cctools / linker.
9229 case $host_cpu-$host_os in
9230 *-rhapsody* | *-darwin1.[012])
21be0a5a 9231 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 9232 *-darwin1.*)
21be0a5a 9233 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
9234 *-darwin*)
9235 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9236 # deployment target is forced to an earlier version.
9237 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9238 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9239 ;;
ebf6d33b 9240 10.[012][,.]*)
1352bc88
IS
9241 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9242 ;;
9243 *)
9244 ;;
9245 esac
21be0a5a
JB
9246 ;;
9247 esac
9248 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9249 _lt_dar_single_mod='$single_module'
9250 fi
9251 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9252 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9253 else
9254 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9255 fi
9256 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9257 _lt_dsymutil='~$DSYMUTIL $lib || :'
9258 else
9259 _lt_dsymutil=
9260 fi
9261 ;;
9262 esac
1cf3d07d 9263
1cf3d07d 9264for ac_header in dlfcn.h
5213506e
RW
9265do :
9266 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9267"
22e05272 9268if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1cf3d07d 9269 cat >>confdefs.h <<_ACEOF
5213506e 9270#define HAVE_DLFCN_H 1
9cdc381b 9271_ACEOF
9cdc381b 9272
1cf3d07d
SE
9273fi
9274
9275done
9276
9277
9278
43e02a8a
RW
9279
9280
d58dead8
PG
9281# Set options
9282
9283
9284
9285
9286 enable_win32_dll=no
9287
9288
5213506e
RW
9289 # Check whether --enable-shared was given.
9290if test "${enable_shared+set}" = set; then :
9291 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
9292 case $enableval in
9293 yes) enable_shared=yes ;;
9294 no) enable_shared=no ;;
9295 *)
9296 enable_shared=no
9297 # Look at the argument we got. We use all the common list separators.
9298 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9299 for pkg in $enableval; do
9300 IFS="$lt_save_ifs"
9301 if test "X$pkg" = "X$p"; then
9302 enable_shared=yes
9303 fi
9304 done
9305 IFS="$lt_save_ifs"
9306 ;;
9307 esac
9308else
9309 enable_shared=yes
5213506e
RW
9310fi
9311
d58dead8
PG
9312
9313
9314
9315
9316
9317
9318
9319
5213506e
RW
9320 # Check whether --enable-static was given.
9321if test "${enable_static+set}" = set; then :
9322 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
9323 case $enableval in
9324 yes) enable_static=yes ;;
9325 no) enable_static=no ;;
9326 *)
9327 enable_static=no
9328 # Look at the argument we got. We use all the common list separators.
9329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9330 for pkg in $enableval; do
9331 IFS="$lt_save_ifs"
9332 if test "X$pkg" = "X$p"; then
9333 enable_static=yes
9334 fi
9335 done
9336 IFS="$lt_save_ifs"
9337 ;;
9338 esac
9339else
9340 enable_static=yes
5213506e
RW
9341fi
9342
d58dead8
PG
9343
9344
9345
9346
9347
9348
9349
9350
9351
5213506e
RW
9352# Check whether --with-pic was given.
9353if test "${with_pic+set}" = set; then :
9354 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
9355else
9356 pic_mode=default
5213506e
RW
9357fi
9358
d58dead8
PG
9359
9360test -z "$pic_mode" && pic_mode=default
9361
9362
9363
9364
9365
9366
9367
5213506e
RW
9368 # Check whether --enable-fast-install was given.
9369if test "${enable_fast_install+set}" = set; then :
9370 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
9371 case $enableval in
9372 yes) enable_fast_install=yes ;;
9373 no) enable_fast_install=no ;;
9374 *)
9375 enable_fast_install=no
9376 # Look at the argument we got. We use all the common list separators.
9377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9378 for pkg in $enableval; do
9379 IFS="$lt_save_ifs"
9380 if test "X$pkg" = "X$p"; then
9381 enable_fast_install=yes
9382 fi
9383 done
9384 IFS="$lt_save_ifs"
9385 ;;
9386 esac
9387else
9388 enable_fast_install=yes
5213506e
RW
9389fi
9390
d58dead8
PG
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
1cf3d07d
SE
9401# This can be used to rebuild libtool when needed
9402LIBTOOL_DEPS="$ltmain"
9403
9404# Always use our own libtool.
9405LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
43e02a8a 9429
1cf3d07d
SE
9430
9431
9432test -z "$LN_S" && LN_S="ln -s"
9433
9434
9435
9436
9437
9cdc381b 9438
1cf3d07d
SE
9439
9440
9441
9442
9443
9444
9445
9446
9447if test -n "${ZSH_VERSION+set}" ; then
9448 setopt NO_GLOB_SUBST
9cdc381b 9449fi
9cdc381b 9450
5213506e
RW
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9452$as_echo_n "checking for objdir... " >&6; }
22e05272 9453if ${lt_cv_objdir+:} false; then :
5213506e 9454 $as_echo_n "(cached) " >&6
9cdc381b 9455else
1cf3d07d
SE
9456 rm -f .libs 2>/dev/null
9457mkdir .libs 2>/dev/null
9458if test -d .libs; then
9459 lt_cv_objdir=.libs
9460else
9461 # MS-DOS does not allow filenames that begin with a dot.
9462 lt_cv_objdir=_libs
9cdc381b 9463fi
1cf3d07d 9464rmdir .libs 2>/dev/null
9cdc381b 9465fi
5213506e
RW
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9467$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
9468objdir=$lt_cv_objdir
9469
9470
9471
9472
9cdc381b
BD
9473
9474cat >>confdefs.h <<_ACEOF
1cf3d07d 9475#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
9476_ACEOF
9477
1cf3d07d
SE
9478
9479
9480
1cf3d07d
SE
9481case $host_os in
9482aix3*)
9483 # AIX sometimes has problems with the GCC collect2 program. For some
9484 # reason, if we set the COLLECT_NAMES environment variable, the problems
9485 # vanish in a puff of smoke.
9486 if test "X${COLLECT_NAMES+set}" != Xset; then
9487 COLLECT_NAMES=
9488 export COLLECT_NAMES
9489 fi
9490 ;;
9491esac
9492
1cf3d07d
SE
9493# Global variables:
9494ofile=libtool
9495can_build_shared=yes
9496
9497# All known linkers require a `.a' archive for static linking (except MSVC,
9498# which needs '.lib').
9499libext=a
9500
9501with_gnu_ld="$lt_cv_prog_gnu_ld"
9502
9503old_CC="$CC"
9504old_CFLAGS="$CFLAGS"
9505
9506# Set sane defaults for various variables
9507test -z "$CC" && CC=cc
9508test -z "$LTCC" && LTCC=$CC
9509test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9510test -z "$LD" && LD=ld
9511test -z "$ac_objext" && ac_objext=o
9512
9513for cc_temp in $compiler""; do
9514 case $cc_temp in
9515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9517 \-*) ;;
9518 *) break;;
9519 esac
9520done
43e02a8a 9521cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
9522
9523
9524# Only perform the check for file, if the check method requires it
9525test -z "$MAGIC_CMD" && MAGIC_CMD=file
9526case $deplibs_check_method in
9527file_magic*)
9528 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9530$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 9531if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 9532 $as_echo_n "(cached) " >&6
9cdc381b 9533else
1cf3d07d
SE
9534 case $MAGIC_CMD in
9535[\\/*] | ?:[\\/]*)
9536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9537 ;;
9538*)
9539 lt_save_MAGIC_CMD="$MAGIC_CMD"
9540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9542 for ac_dir in $ac_dummy; do
9543 IFS="$lt_save_ifs"
9544 test -z "$ac_dir" && ac_dir=.
9545 if test -f $ac_dir/${ac_tool_prefix}file; then
9546 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9547 if test -n "$file_magic_test_file"; then
9548 case $deplibs_check_method in
9549 "file_magic "*)
9550 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9553 $EGREP "$file_magic_regex" > /dev/null; then
9554 :
9555 else
9556 cat <<_LT_EOF 1>&2
9cdc381b 9557
1cf3d07d
SE
9558*** Warning: the command libtool uses to detect shared libraries,
9559*** $file_magic_cmd, produces output that libtool cannot recognize.
9560*** The result is that libtool may fail to recognize shared libraries
9561*** as such. This will affect the creation of libtool libraries that
9562*** depend on shared libraries, but programs linked with such libtool
9563*** libraries will work regardless of this problem. Nevertheless, you
9564*** may want to report the problem to your system manager and/or to
9565*** bug-libtool@gnu.org
9566
9567_LT_EOF
9568 fi ;;
9569 esac
9570 fi
9571 break
9572 fi
9573 done
9574 IFS="$lt_save_ifs"
9575 MAGIC_CMD="$lt_save_MAGIC_CMD"
9576 ;;
9577esac
9578fi
9579
9580MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9581if test -n "$MAGIC_CMD"; then
5213506e
RW
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9583$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9584else
5213506e
RW
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586$as_echo "no" >&6; }
1cf3d07d
SE
9587fi
9588
9589
9590
9591
9592
9593if test -z "$lt_cv_path_MAGIC_CMD"; then
9594 if test -n "$ac_tool_prefix"; then
5213506e
RW
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9596$as_echo_n "checking for file... " >&6; }
22e05272 9597if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 9598 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9599else
9600 case $MAGIC_CMD in
9601[\\/*] | ?:[\\/]*)
9602 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9603 ;;
9604*)
9605 lt_save_MAGIC_CMD="$MAGIC_CMD"
9606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9607 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9608 for ac_dir in $ac_dummy; do
9609 IFS="$lt_save_ifs"
9610 test -z "$ac_dir" && ac_dir=.
9611 if test -f $ac_dir/file; then
9612 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9613 if test -n "$file_magic_test_file"; then
9614 case $deplibs_check_method in
9615 "file_magic "*)
9616 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9619 $EGREP "$file_magic_regex" > /dev/null; then
9620 :
9621 else
9622 cat <<_LT_EOF 1>&2
9623
9624*** Warning: the command libtool uses to detect shared libraries,
9625*** $file_magic_cmd, produces output that libtool cannot recognize.
9626*** The result is that libtool may fail to recognize shared libraries
9627*** as such. This will affect the creation of libtool libraries that
9628*** depend on shared libraries, but programs linked with such libtool
9629*** libraries will work regardless of this problem. Nevertheless, you
9630*** may want to report the problem to your system manager and/or to
9631*** bug-libtool@gnu.org
9632
9633_LT_EOF
9634 fi ;;
9635 esac
9636 fi
9637 break
9638 fi
9639 done
9640 IFS="$lt_save_ifs"
9641 MAGIC_CMD="$lt_save_MAGIC_CMD"
9642 ;;
9643esac
9644fi
9645
9646MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9647if test -n "$MAGIC_CMD"; then
5213506e
RW
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9649$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9650else
5213506e
RW
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9652$as_echo "no" >&6; }
1cf3d07d
SE
9653fi
9654
9655
9656 else
9657 MAGIC_CMD=:
9658 fi
9659fi
9660
9661 fi
9662 ;;
9663esac
9664
9665# Use C for the default configuration in the libtool script
9666
9667lt_save_CC="$CC"
9668ac_ext=c
9669ac_cpp='$CPP $CPPFLAGS'
9670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9672ac_compiler_gnu=$ac_cv_c_compiler_gnu
9673
9674
9675# Source file extension for C test sources.
9676ac_ext=c
9677
9678# Object file extension for compiled C test sources.
9679objext=o
9680objext=$objext
9681
9682# Code to be used in simple compile tests
9683lt_simple_compile_test_code="int some_variable = 0;"
9684
9685# Code to be used in simple link tests
9686lt_simple_link_test_code='int main(){return(0);}'
9687
9688
9689
9690
9691
9692
9693
9694# If no C compiler was specified, use CC.
9695LTCC=${LTCC-"$CC"}
9696
9697# If no C compiler flags were specified, use CFLAGS.
9698LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9699
9700# Allow CC to be a program name with arguments.
9701compiler=$CC
9702
9703# Save the default compiler, since it gets overwritten when the other
9704# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9705compiler_DEFAULT=$CC
9706
9707# save warnings/boilerplate of simple test code
9708ac_outfile=conftest.$ac_objext
9709echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9710eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9711_lt_compiler_boilerplate=`cat conftest.err`
9712$RM conftest*
9713
9714ac_outfile=conftest.$ac_objext
9715echo "$lt_simple_link_test_code" >conftest.$ac_ext
9716eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9717_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9718$RM -r conftest*
1cf3d07d
SE
9719
9720
9721## CAVEAT EMPTOR:
9722## There is no encapsulation within the following macros, do not change
9723## the running order or otherwise move them around unless you know exactly
9724## what you are doing...
9725if test -n "$compiler"; then
9726
9727lt_prog_compiler_no_builtin_flag=
9728
9729if test "$GCC" = yes; then
43e02a8a
RW
9730 case $cc_basename in
9731 nvcc*)
9732 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9733 *)
9734 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9735 esac
1cf3d07d 9736
5213506e
RW
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9738$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9739if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5213506e 9740 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9741else
9742 lt_cv_prog_compiler_rtti_exceptions=no
9743 ac_outfile=conftest.$ac_objext
9744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9745 lt_compiler_flag="-fno-rtti -fno-exceptions"
9746 # Insert the option either (1) after the last *FLAGS variable, or
9747 # (2) before a word containing "conftest.", or (3) at the end.
9748 # Note that $ac_compile itself does not contain backslashes and begins
9749 # with a dollar sign (not a hyphen), so the echo should work correctly.
9750 # The option is referenced via a variable to avoid confusing sed.
9751 lt_compile=`echo "$ac_compile" | $SED \
9752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9754 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9756 (eval "$lt_compile" 2>conftest.err)
9757 ac_status=$?
9758 cat conftest.err >&5
43e02a8a 9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9760 if (exit $ac_status) && test -s "$ac_outfile"; then
9761 # The compiler can only warn and ignore the option if not recognized
9762 # So say no if there are warnings other than the usual output.
43e02a8a 9763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9765 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9766 lt_cv_prog_compiler_rtti_exceptions=yes
9767 fi
9768 fi
9769 $RM conftest*
9770
9771fi
5213506e
RW
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9773$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9774
9775if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9776 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9777else
9778 :
9779fi
9780
9781fi
9782
9783
9784
9785
9786
9787
9788 lt_prog_compiler_wl=
9789lt_prog_compiler_pic=
9790lt_prog_compiler_static=
9791
5213506e
RW
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9793$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9794
9795 if test "$GCC" = yes; then
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_static='-static'
9798
9799 case $host_os in
9800 aix*)
9801 # All AIX code is PIC.
9802 if test "$host_cpu" = ia64; then
9803 # AIX 5 now supports IA64 processor
9804 lt_prog_compiler_static='-Bstatic'
9805 fi
bad8a4a7 9806 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
9807 ;;
9808
9809 amigaos*)
d58dead8
PG
9810 case $host_cpu in
9811 powerpc)
9812 # see comment about AmigaOS4 .so support
9813 lt_prog_compiler_pic='-fPIC'
9814 ;;
9815 m68k)
9816 # FIXME: we need at least 68020 code to build shared libraries, but
9817 # adding the `-m68020' flag to GCC prevents building anything better,
9818 # like `-m68040'.
9819 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9820 ;;
9821 esac
1cf3d07d
SE
9822 ;;
9823
9824 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9825 # PIC is the default for these OSes.
9826 ;;
9827
d58dead8 9828 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9829 # This hack is so that the source file can tell whether it is being
9830 # built for inclusion in a dll (and should export symbols for example).
9831 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9832 # (--disable-auto-import) libraries
9833 lt_prog_compiler_pic='-DDLL_EXPORT'
9834 ;;
9835
9836 darwin* | rhapsody*)
9837 # PIC is the default on this platform
9838 # Common symbols not allowed in MH_DYLIB files
9839 lt_prog_compiler_pic='-fno-common'
9840 ;;
9841
43e02a8a
RW
9842 haiku*)
9843 # PIC is the default for Haiku.
9844 # The "-static" flag exists, but is broken.
9845 lt_prog_compiler_static=
9846 ;;
9847
1cf3d07d 9848 hpux*)
d58dead8
PG
9849 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9850 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9851 # sets the default TLS model and affects inlining.
1cf3d07d 9852 case $host_cpu in
d58dead8 9853 hppa*64*)
1cf3d07d
SE
9854 # +Z the default
9855 ;;
9856 *)
9857 lt_prog_compiler_pic='-fPIC'
9858 ;;
9859 esac
9860 ;;
9861
9862 interix[3-9]*)
9863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9864 # Instead, we relocate shared libraries at runtime.
9865 ;;
9866
9867 msdosdjgpp*)
9868 # Just because we use GCC doesn't mean we suddenly get shared libraries
9869 # on systems that don't support them.
9870 lt_prog_compiler_can_build_shared=no
9871 enable_shared=no
9872 ;;
9873
9874 *nto* | *qnx*)
9875 # QNX uses GNU C++, but need to define -shared option too, otherwise
9876 # it will coredump.
9877 lt_prog_compiler_pic='-fPIC -shared'
9878 ;;
9879
9880 sysv4*MP*)
9881 if test -d /usr/nec; then
9882 lt_prog_compiler_pic=-Kconform_pic
9883 fi
9884 ;;
9885
9886 *)
9887 lt_prog_compiler_pic='-fPIC'
9888 ;;
9889 esac
43e02a8a
RW
9890
9891 case $cc_basename in
9892 nvcc*) # Cuda Compiler Driver 2.2
9893 lt_prog_compiler_wl='-Xlinker '
9894 lt_prog_compiler_pic='-Xcompiler -fPIC'
9895 ;;
9896 esac
1cf3d07d
SE
9897 else
9898 # PORTME Check for flag to pass linker flags through the system compiler.
9899 case $host_os in
9900 aix*)
9901 lt_prog_compiler_wl='-Wl,'
9902 if test "$host_cpu" = ia64; then
9903 # AIX 5 now supports IA64 processor
9904 lt_prog_compiler_static='-Bstatic'
9905 else
9906 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9907 fi
9908 ;;
1cf3d07d 9909
d58dead8 9910 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9911 # This hack is so that the source file can tell whether it is being
9912 # built for inclusion in a dll (and should export symbols for example).
9913 lt_prog_compiler_pic='-DDLL_EXPORT'
9914 ;;
9915
9916 hpux9* | hpux10* | hpux11*)
9917 lt_prog_compiler_wl='-Wl,'
9918 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9919 # not for PA HP-UX.
9920 case $host_cpu in
9921 hppa*64*|ia64*)
9922 # +Z the default
9923 ;;
9924 *)
9925 lt_prog_compiler_pic='+Z'
9926 ;;
9927 esac
9928 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9929 lt_prog_compiler_static='${wl}-a ${wl}archive'
9930 ;;
9931
9932 irix5* | irix6* | nonstopux*)
9933 lt_prog_compiler_wl='-Wl,'
9934 # PIC (with -KPIC) is the default.
9935 lt_prog_compiler_static='-non_shared'
9936 ;;
9937
7a9d3fe8 9938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9939 case $cc_basename in
d58dead8
PG
9940 # old Intel for x86_64 which still supported -KPIC.
9941 ecc*)
1cf3d07d
SE
9942 lt_prog_compiler_wl='-Wl,'
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-static'
9945 ;;
d58dead8
PG
9946 # icc used to be incompatible with GCC.
9947 # ICC 10 doesn't accept -KPIC any more.
9948 icc* | ifort*)
9949 lt_prog_compiler_wl='-Wl,'
9950 lt_prog_compiler_pic='-fPIC'
9951 lt_prog_compiler_static='-static'
9952 ;;
9953 # Lahey Fortran 8.1.
9954 lf95*)
9955 lt_prog_compiler_wl='-Wl,'
9956 lt_prog_compiler_pic='--shared'
9957 lt_prog_compiler_static='--static'
9958 ;;
43e02a8a 9959 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9960 # Portland Group compilers (*not* the Pentium gcc compiler,
9961 # which looks to be a dead project)
9962 lt_prog_compiler_wl='-Wl,'
9963 lt_prog_compiler_pic='-fpic'
9964 lt_prog_compiler_static='-Bstatic'
9965 ;;
9966 ccc*)
9967 lt_prog_compiler_wl='-Wl,'
9968 # All Alpha code is PIC.
9969 lt_prog_compiler_static='-non_shared'
9970 ;;
43e02a8a
RW
9971 xl* | bgxl* | bgf* | mpixl*)
9972 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9973 lt_prog_compiler_wl='-Wl,'
9974 lt_prog_compiler_pic='-qpic'
9975 lt_prog_compiler_static='-qstaticlink'
9976 ;;
1cf3d07d
SE
9977 *)
9978 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9979 *Sun\ F* | *Sun*Fortran*)
9980 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9981 lt_prog_compiler_pic='-KPIC'
9982 lt_prog_compiler_static='-Bstatic'
43e02a8a 9983 lt_prog_compiler_wl=''
1cf3d07d 9984 ;;
43e02a8a
RW
9985 *Sun\ C*)
9986 # Sun C 5.9
1cf3d07d
SE
9987 lt_prog_compiler_pic='-KPIC'
9988 lt_prog_compiler_static='-Bstatic'
43e02a8a 9989 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9990 ;;
9991 esac
9992 ;;
9993 esac
9994 ;;
9995
9996 newsos6)
9997 lt_prog_compiler_pic='-KPIC'
9998 lt_prog_compiler_static='-Bstatic'
9999 ;;
10000
10001 *nto* | *qnx*)
10002 # QNX uses GNU C++, but need to define -shared option too, otherwise
10003 # it will coredump.
10004 lt_prog_compiler_pic='-fPIC -shared'
10005 ;;
10006
10007 osf3* | osf4* | osf5*)
10008 lt_prog_compiler_wl='-Wl,'
10009 # All OSF/1 code is PIC.
10010 lt_prog_compiler_static='-non_shared'
10011 ;;
10012
10013 rdos*)
10014 lt_prog_compiler_static='-non_shared'
10015 ;;
10016
10017 solaris*)
10018 lt_prog_compiler_pic='-KPIC'
10019 lt_prog_compiler_static='-Bstatic'
10020 case $cc_basename in
10021 f77* | f90* | f95*)
10022 lt_prog_compiler_wl='-Qoption ld ';;
10023 *)
10024 lt_prog_compiler_wl='-Wl,';;
10025 esac
10026 ;;
10027
10028 sunos4*)
10029 lt_prog_compiler_wl='-Qoption ld '
10030 lt_prog_compiler_pic='-PIC'
10031 lt_prog_compiler_static='-Bstatic'
10032 ;;
10033
10034 sysv4 | sysv4.2uw2* | sysv4.3*)
10035 lt_prog_compiler_wl='-Wl,'
10036 lt_prog_compiler_pic='-KPIC'
10037 lt_prog_compiler_static='-Bstatic'
10038 ;;
10039
10040 sysv4*MP*)
10041 if test -d /usr/nec ;then
10042 lt_prog_compiler_pic='-Kconform_pic'
10043 lt_prog_compiler_static='-Bstatic'
10044 fi
10045 ;;
10046
10047 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10048 lt_prog_compiler_wl='-Wl,'
10049 lt_prog_compiler_pic='-KPIC'
10050 lt_prog_compiler_static='-Bstatic'
10051 ;;
10052
10053 unicos*)
10054 lt_prog_compiler_wl='-Wl,'
10055 lt_prog_compiler_can_build_shared=no
10056 ;;
10057
10058 uts4*)
10059 lt_prog_compiler_pic='-pic'
10060 lt_prog_compiler_static='-Bstatic'
10061 ;;
10062
10063 *)
10064 lt_prog_compiler_can_build_shared=no
10065 ;;
10066 esac
10067 fi
10068
10069case $host_os in
10070 # For platforms which do not support PIC, -DPIC is meaningless:
10071 *djgpp*)
10072 lt_prog_compiler_pic=
10073 ;;
10074 *)
10075 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10076 ;;
10077esac
5213506e
RW
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10079$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
10080
10081
10082
10083
10084
10085
10086#
10087# Check to make sure the PIC flag actually works.
10088#
10089if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10091$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 10092if ${lt_cv_prog_compiler_pic_works+:} false; then :
5213506e 10093 $as_echo_n "(cached) " >&6
1cf3d07d 10094else
d58dead8 10095 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
10096 ac_outfile=conftest.$ac_objext
10097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10098 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10099 # Insert the option either (1) after the last *FLAGS variable, or
10100 # (2) before a word containing "conftest.", or (3) at the end.
10101 # Note that $ac_compile itself does not contain backslashes and begins
10102 # with a dollar sign (not a hyphen), so the echo should work correctly.
10103 # The option is referenced via a variable to avoid confusing sed.
10104 lt_compile=`echo "$ac_compile" | $SED \
10105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10107 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10109 (eval "$lt_compile" 2>conftest.err)
10110 ac_status=$?
10111 cat conftest.err >&5
43e02a8a 10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10113 if (exit $ac_status) && test -s "$ac_outfile"; then
10114 # The compiler can only warn and ignore the option if not recognized
10115 # So say no if there are warnings other than the usual output.
43e02a8a 10116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
10117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 10119 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
10120 fi
10121 fi
10122 $RM conftest*
10123
10124fi
5213506e
RW
10125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10126$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 10127
d58dead8 10128if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
10129 case $lt_prog_compiler_pic in
10130 "" | " "*) ;;
10131 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10132 esac
10133else
10134 lt_prog_compiler_pic=
10135 lt_prog_compiler_can_build_shared=no
10136fi
10137
10138fi
10139
10140
10141
10142
10143
10144
10145#
10146# Check to make sure the static flag actually works.
10147#
10148wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10150$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 10151if ${lt_cv_prog_compiler_static_works+:} false; then :
5213506e 10152 $as_echo_n "(cached) " >&6
1cf3d07d 10153else
d58dead8 10154 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
10155 save_LDFLAGS="$LDFLAGS"
10156 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10157 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10158 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10159 # The linker can only warn and ignore the option if not recognized
10160 # So say no if there are warnings
10161 if test -s conftest.err; then
10162 # Append any errors to the config.log.
10163 cat conftest.err 1>&5
43e02a8a 10164 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
10165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10166 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 10167 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10168 fi
10169 else
d58dead8 10170 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
10171 fi
10172 fi
d58dead8 10173 $RM -r conftest*
1cf3d07d
SE
10174 LDFLAGS="$save_LDFLAGS"
10175
10176fi
5213506e
RW
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10178$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 10179
d58dead8 10180if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
10181 :
10182else
10183 lt_prog_compiler_static=
10184fi
10185
10186
10187
10188
10189
10190
10191
5213506e
RW
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 10194if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 10195 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10196else
10197 lt_cv_prog_compiler_c_o=no
10198 $RM -r conftest 2>/dev/null
10199 mkdir conftest
10200 cd conftest
10201 mkdir out
10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10203
10204 lt_compiler_flag="-o out/conftest2.$ac_objext"
10205 # Insert the option either (1) after the last *FLAGS variable, or
10206 # (2) before a word containing "conftest.", or (3) at the end.
10207 # Note that $ac_compile itself does not contain backslashes and begins
10208 # with a dollar sign (not a hyphen), so the echo should work correctly.
10209 lt_compile=`echo "$ac_compile" | $SED \
10210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10212 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10214 (eval "$lt_compile" 2>out/conftest.err)
10215 ac_status=$?
10216 cat out/conftest.err >&5
43e02a8a 10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10219 then
10220 # The compiler can only warn and ignore the option if not recognized
10221 # So say no if there are warnings
43e02a8a 10222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10225 lt_cv_prog_compiler_c_o=yes
10226 fi
10227 fi
10228 chmod u+w . 2>&5
10229 $RM conftest*
10230 # SGI C++ compiler will create directory out/ii_files/ for
10231 # template instantiation
10232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10233 $RM out/* && rmdir out
10234 cd ..
10235 $RM -r conftest
10236 $RM conftest*
10237
10238fi
5213506e
RW
10239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10240$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10241
10242
10243
10244
10245
10246
5213506e
RW
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10248$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 10249if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 10250 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10251else
10252 lt_cv_prog_compiler_c_o=no
10253 $RM -r conftest 2>/dev/null
10254 mkdir conftest
10255 cd conftest
10256 mkdir out
10257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10258
10259 lt_compiler_flag="-o out/conftest2.$ac_objext"
10260 # Insert the option either (1) after the last *FLAGS variable, or
10261 # (2) before a word containing "conftest.", or (3) at the end.
10262 # Note that $ac_compile itself does not contain backslashes and begins
10263 # with a dollar sign (not a hyphen), so the echo should work correctly.
10264 lt_compile=`echo "$ac_compile" | $SED \
10265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10267 -e 's:$: $lt_compiler_flag:'`
43e02a8a 10268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
10269 (eval "$lt_compile" 2>out/conftest.err)
10270 ac_status=$?
10271 cat out/conftest.err >&5
43e02a8a 10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10273 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10274 then
10275 # The compiler can only warn and ignore the option if not recognized
10276 # So say no if there are warnings
43e02a8a 10277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
10278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10280 lt_cv_prog_compiler_c_o=yes
10281 fi
10282 fi
10283 chmod u+w . 2>&5
10284 $RM conftest*
10285 # SGI C++ compiler will create directory out/ii_files/ for
10286 # template instantiation
10287 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10288 $RM out/* && rmdir out
10289 cd ..
10290 $RM -r conftest
10291 $RM conftest*
10292
10293fi
5213506e
RW
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10295$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
10296
10297
10298
10299
10300hard_links="nottested"
10301if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10302 # do not overwrite the value of need_locks provided by the user
5213506e
RW
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10304$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
10305 hard_links=yes
10306 $RM conftest*
10307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10308 touch conftest.a
10309 ln conftest.a conftest.b 2>&5 || hard_links=no
10310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10312$as_echo "$hard_links" >&6; }
1cf3d07d 10313 if test "$hard_links" = no; then
5213506e
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10315$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
10316 need_locks=warn
10317 fi
10318else
10319 need_locks=no
10320fi
10321
10322
10323
10324
10325
10326
5213506e
RW
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10328$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
10329
10330 runpath_var=
10331 allow_undefined_flag=
10332 always_export_symbols=no
10333 archive_cmds=
10334 archive_expsym_cmds=
10335 compiler_needs_object=no
10336 enable_shared_with_static_runtimes=no
10337 export_dynamic_flag_spec=
10338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10339 hardcode_automatic=no
10340 hardcode_direct=no
10341 hardcode_direct_absolute=no
10342 hardcode_libdir_flag_spec=
10343 hardcode_libdir_flag_spec_ld=
10344 hardcode_libdir_separator=
10345 hardcode_minus_L=no
10346 hardcode_shlibpath_var=unsupported
10347 inherit_rpath=no
10348 link_all_deplibs=unknown
10349 module_cmds=
10350 module_expsym_cmds=
10351 old_archive_from_new_cmds=
10352 old_archive_from_expsyms_cmds=
10353 thread_safe_flag_spec=
10354 whole_archive_flag_spec=
10355 # include_expsyms should be a list of space-separated symbols to be *always*
10356 # included in the symbol list
10357 include_expsyms=
10358 # exclude_expsyms can be an extended regexp of symbols to exclude
10359 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10360 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10361 # as well as any symbol that contains `d'.
d58dead8 10362 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
10363 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10364 # platforms (ab)use it in PIC code, but their linkers get confused if
10365 # the symbol is explicitly referenced. Since portable code cannot
10366 # rely on this symbol name, it's probably fine to never include it in
10367 # preloaded symbol tables.
d58dead8 10368 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
10369 extract_expsyms_cmds=
10370
10371 case $host_os in
d58dead8 10372 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10374 # When not using gcc, we currently assume that we are using
10375 # Microsoft Visual C++.
10376 if test "$GCC" != yes; then
10377 with_gnu_ld=no
10378 fi
10379 ;;
10380 interix*)
10381 # we just hope/assume this is gcc and not c89 (= MSVC++)
10382 with_gnu_ld=yes
10383 ;;
10384 openbsd*)
10385 with_gnu_ld=no
10386 ;;
10387 esac
10388
10389 ld_shlibs=yes
43e02a8a
RW
10390
10391 # On some targets, GNU ld is compatible enough with the native linker
10392 # that we're better off using the native interface for both.
10393 lt_use_gnu_ld_interface=no
1cf3d07d 10394 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
10395 case $host_os in
10396 aix*)
10397 # The AIX port of GNU ld has always aspired to compatibility
10398 # with the native linker. However, as the warning in the GNU ld
10399 # block says, versions before 2.19.5* couldn't really create working
10400 # shared libraries, regardless of the interface used.
10401 case `$LD -v 2>&1` in
10402 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10403 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10404 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10405 *)
10406 lt_use_gnu_ld_interface=yes
10407 ;;
10408 esac
10409 ;;
10410 *)
10411 lt_use_gnu_ld_interface=yes
10412 ;;
10413 esac
10414 fi
10415
10416 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
10417 # If archive_cmds runs LD, not CC, wlarc should be empty
10418 wlarc='${wl}'
10419
10420 # Set some defaults for GNU ld with shared library support. These
10421 # are reset later if shared libraries are not supported. Putting them
10422 # here allows them to be overridden if necessary.
10423 runpath_var=LD_RUN_PATH
10424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10425 export_dynamic_flag_spec='${wl}--export-dynamic'
10426 # ancient GNU ld didn't support --whole-archive et. al.
10427 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10428 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10429 else
10430 whole_archive_flag_spec=
10431 fi
10432 supports_anon_versioning=no
10433 case `$LD -v 2>&1` in
43e02a8a 10434 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
10435 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10436 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10437 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10438 *\ 2.11.*) ;; # other 2.11 versions
10439 *) supports_anon_versioning=yes ;;
10440 esac
10441
10442 # See if GNU ld supports shared libraries.
10443 case $host_os in
4f6bebc3 10444 aix[3-9]*)
1cf3d07d
SE
10445 # On AIX/PPC, the GNU linker is very broken
10446 if test "$host_cpu" != ia64; then
10447 ld_shlibs=no
10448 cat <<_LT_EOF 1>&2
10449
43e02a8a 10450*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
10451*** to be unable to reliably create shared libraries on AIX.
10452*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
10453*** really care for shared libraries, you may want to install binutils
10454*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10455*** You will then need to restart the configuration process.
1cf3d07d
SE
10456
10457_LT_EOF
10458 fi
10459 ;;
10460
10461 amigaos*)
d58dead8
PG
10462 case $host_cpu in
10463 powerpc)
10464 # see comment about AmigaOS4 .so support
10465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10466 archive_expsym_cmds=''
10467 ;;
10468 m68k)
10469 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10470 hardcode_libdir_flag_spec='-L$libdir'
10471 hardcode_minus_L=yes
10472 ;;
10473 esac
1cf3d07d
SE
10474 ;;
10475
10476 beos*)
10477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10478 allow_undefined_flag=unsupported
10479 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10480 # support --undefined. This deserves some investigation. FIXME
10481 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10482 else
10483 ld_shlibs=no
10484 fi
10485 ;;
10486
d58dead8 10487 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10488 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10489 # as there is no search path for DLLs.
10490 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 10491 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
10492 allow_undefined_flag=unsupported
10493 always_export_symbols=no
10494 enable_shared_with_static_runtimes=yes
10495 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10496
10497 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10499 # If the export-symbols file already is a .def file (1st line
10500 # is EXPORTS), use it as is; otherwise, prepend...
10501 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10502 cp $export_symbols $output_objdir/$soname.def;
10503 else
10504 echo EXPORTS > $output_objdir/$soname.def;
10505 cat $export_symbols >> $output_objdir/$soname.def;
10506 fi~
10507 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10508 else
10509 ld_shlibs=no
10510 fi
10511 ;;
10512
43e02a8a
RW
10513 haiku*)
10514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10515 link_all_deplibs=yes
10516 ;;
10517
1cf3d07d
SE
10518 interix[3-9]*)
10519 hardcode_direct=no
10520 hardcode_shlibpath_var=no
10521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10522 export_dynamic_flag_spec='${wl}-E'
10523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10524 # Instead, shared libraries are loaded at an image base (0x10000000 by
10525 # default) and relocated if they conflict, which is a slow very memory
10526 # consuming and fragmenting process. To avoid this, we pick a random,
10527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10528 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10530 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10531 ;;
10532
e9085da5 10533 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
10534 tmp_diet=no
10535 if test "$host_os" = linux-dietlibc; then
10536 case $cc_basename in
10537 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10538 esac
10539 fi
10540 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10541 && test "$tmp_diet" = no
10542 then
a699d672 10543 tmp_addflag=' $pic_flag'
d58dead8 10544 tmp_sharedflag='-shared'
1cf3d07d
SE
10545 case $cc_basename,$host_cpu in
10546 pgcc*) # Portland Group C compiler
43e02a8a 10547 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
10548 tmp_addflag=' $pic_flag'
10549 ;;
43e02a8a
RW
10550 pgf77* | pgf90* | pgf95* | pgfortran*)
10551 # Portland Group f77 and f90 compilers
10552 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
10553 tmp_addflag=' $pic_flag -Mnomain' ;;
10554 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10555 tmp_addflag=' -i_dynamic' ;;
10556 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10557 tmp_addflag=' -i_dynamic -nofor_main' ;;
10558 ifc* | ifort*) # Intel Fortran compiler
10559 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
10560 lf95*) # Lahey Fortran 8.1
10561 whole_archive_flag_spec=
10562 tmp_sharedflag='--shared' ;;
43e02a8a 10563 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
10564 tmp_sharedflag='-qmkshrobj'
10565 tmp_addflag= ;;
43e02a8a
RW
10566 nvcc*) # Cuda Compiler Driver 2.2
10567 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10568 compiler_needs_object=yes
10569 ;;
1cf3d07d
SE
10570 esac
10571 case `$CC -V 2>&1 | sed 5q` in
10572 *Sun\ C*) # Sun C 5.9
43e02a8a 10573 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
10574 compiler_needs_object=yes
10575 tmp_sharedflag='-G' ;;
10576 *Sun\ F*) # Sun Fortran 8.3
10577 tmp_sharedflag='-G' ;;
1cf3d07d
SE
10578 esac
10579 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580
10581 if test "x$supports_anon_versioning" = xyes; then
10582 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10584 echo "local: *; };" >> $output_objdir/$libname.ver~
10585 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10586 fi
d58dead8
PG
10587
10588 case $cc_basename in
43e02a8a 10589 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
10590 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10591 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10592 hardcode_libdir_flag_spec=
10593 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10594 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10595 if test "x$supports_anon_versioning" = xyes; then
10596 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10597 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10598 echo "local: *; };" >> $output_objdir/$libname.ver~
10599 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10600 fi
10601 ;;
10602 esac
1cf3d07d
SE
10603 else
10604 ld_shlibs=no
10605 fi
10606 ;;
10607
10608 netbsd*)
10609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10610 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10611 wlarc=
10612 else
10613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10614 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10615 fi
10616 ;;
10617
10618 solaris*)
10619 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10620 ld_shlibs=no
10621 cat <<_LT_EOF 1>&2
10622
10623*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10624*** create shared libraries on Solaris systems. Therefore, libtool
10625*** is disabling shared libraries support. We urge you to upgrade GNU
10626*** binutils to release 2.9.1 or newer. Another option is to modify
10627*** your PATH or compiler configuration so that the native linker is
10628*** used, and then restart.
10629
10630_LT_EOF
10631 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10634 else
10635 ld_shlibs=no
10636 fi
10637 ;;
10638
10639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10640 case `$LD -v 2>&1` in
10641 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10642 ld_shlibs=no
10643 cat <<_LT_EOF 1>&2
10644
10645*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10646*** reliably create shared libraries on SCO systems. Therefore, libtool
10647*** is disabling shared libraries support. We urge you to upgrade GNU
10648*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10649*** your PATH or compiler configuration so that the native linker is
10650*** used, and then restart.
10651
10652_LT_EOF
10653 ;;
10654 *)
10655 # For security reasons, it is highly recommended that you always
10656 # use absolute paths for naming shared libraries, and exclude the
10657 # DT_RUNPATH tag from executables and libraries. But doing so
10658 # requires that you compile everything twice, which is a pain.
10659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10663 else
10664 ld_shlibs=no
10665 fi
10666 ;;
10667 esac
10668 ;;
10669
10670 sunos4*)
10671 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10672 wlarc=
10673 hardcode_direct=yes
10674 hardcode_shlibpath_var=no
10675 ;;
10676
10677 *)
10678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10681 else
10682 ld_shlibs=no
10683 fi
10684 ;;
10685 esac
10686
10687 if test "$ld_shlibs" = no; then
10688 runpath_var=
10689 hardcode_libdir_flag_spec=
10690 export_dynamic_flag_spec=
10691 whole_archive_flag_spec=
10692 fi
10693 else
10694 # PORTME fill in a description of your system's linker (not GNU ld)
10695 case $host_os in
10696 aix3*)
10697 allow_undefined_flag=unsupported
10698 always_export_symbols=yes
10699 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10700 # Note: this linker hardcodes the directories in LIBPATH if there
10701 # are no directories specified by -L.
10702 hardcode_minus_L=yes
10703 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10704 # Neither direct hardcoding nor static linking is supported with a
10705 # broken collect2.
10706 hardcode_direct=unsupported
10707 fi
10708 ;;
10709
4f6bebc3 10710 aix[4-9]*)
1cf3d07d
SE
10711 if test "$host_cpu" = ia64; then
10712 # On IA64, the linker does run time linking by default, so we don't
10713 # have to do anything special.
10714 aix_use_runtimelinking=no
10715 exp_sym_flag='-Bexport'
10716 no_entry_flag=""
10717 else
10718 # If we're using GNU nm, then we don't want the "-C" option.
10719 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10720 # Also, AIX nm treats weak defined symbols like other global
10721 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10722 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10723 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d 10724 else
d3ca2257 10725 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
10726 fi
10727 aix_use_runtimelinking=no
10728
10729 # Test if we are trying to use run time linking or normal
10730 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10731 # need to do runtime linking.
4f6bebc3 10732 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10733 for ld_flag in $LDFLAGS; do
10734 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10735 aix_use_runtimelinking=yes
10736 break
10737 fi
10738 done
10739 ;;
10740 esac
10741
10742 exp_sym_flag='-bexport'
10743 no_entry_flag='-bnoentry'
10744 fi
10745
10746 # When large executables or shared objects are built, AIX ld can
10747 # have problems creating the table of contents. If linking a library
10748 # or program results in "error TOC overflow" add -mminimal-toc to
10749 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10750 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10751
10752 archive_cmds=''
10753 hardcode_direct=yes
10754 hardcode_direct_absolute=yes
10755 hardcode_libdir_separator=':'
10756 link_all_deplibs=yes
10757 file_list_spec='${wl}-f,'
10758
10759 if test "$GCC" = yes; then
10760 case $host_os in aix4.[012]|aix4.[012].*)
10761 # We only want to do this on AIX 4.2 and lower, the check
10762 # below for broken collect2 doesn't work under 4.3+
10763 collect2name=`${CC} -print-prog-name=collect2`
10764 if test -f "$collect2name" &&
10765 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10766 then
10767 # We have reworked collect2
10768 :
10769 else
10770 # We have old collect2
10771 hardcode_direct=unsupported
10772 # It fails to find uninstalled libraries when the uninstalled
10773 # path is not listed in the libpath. Setting hardcode_minus_L
10774 # to unsupported forces relinking
10775 hardcode_minus_L=yes
10776 hardcode_libdir_flag_spec='-L$libdir'
10777 hardcode_libdir_separator=
10778 fi
10779 ;;
10780 esac
10781 shared_flag='-shared'
10782 if test "$aix_use_runtimelinking" = yes; then
10783 shared_flag="$shared_flag "'${wl}-G'
10784 fi
10785 else
10786 # not using gcc
10787 if test "$host_cpu" = ia64; then
10788 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10789 # chokes on -Wl,-G. The following line is correct:
10790 shared_flag='-G'
10791 else
10792 if test "$aix_use_runtimelinking" = yes; then
10793 shared_flag='${wl}-G'
10794 else
10795 shared_flag='${wl}-bM:SRE'
10796 fi
10797 fi
10798 fi
10799
d58dead8 10800 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10801 # It seems that -bexpall does not export symbols beginning with
10802 # underscore (_), so it is better to generate a list of symbols to export.
10803 always_export_symbols=yes
10804 if test "$aix_use_runtimelinking" = yes; then
10805 # Warning - without using the other runtime loading flags (-brtl),
10806 # -berok will link without error, but may produce a broken library.
10807 allow_undefined_flag='-berok'
10808 # Determine the default libpath from the value encoded in an
10809 # empty executable.
10810 if test x$gcc_no_link = xyes; then
22e05272 10811 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10812fi
5213506e 10813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10814/* end confdefs.h. */
10815
10816int
10817main ()
10818{
10819
10820 ;
10821 return 0;
10822}
10823_ACEOF
5213506e 10824if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10825
10826lt_aix_libpath_sed='
10827 /Import File Strings/,/^$/ {
10828 /^0/ {
10829 s/^0 *\(.*\)$/\1/
10830 p
10831 }
10832 }'
10833aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10834# Check for a 64-bit object if we didn't find anything.
10835if test -z "$aix_libpath"; then
10836 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10837fi
1cf3d07d 10838fi
5213506e
RW
10839rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10842
10843 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10844 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
10845 else
10846 if test "$host_cpu" = ia64; then
10847 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10848 allow_undefined_flag="-z nodefs"
10849 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10850 else
10851 # Determine the default libpath from the value encoded in an
10852 # empty executable.
10853 if test x$gcc_no_link = xyes; then
22e05272 10854 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10855fi
5213506e 10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10857/* end confdefs.h. */
10858
10859int
10860main ()
10861{
10862
10863 ;
10864 return 0;
10865}
10866_ACEOF
5213506e 10867if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10868
10869lt_aix_libpath_sed='
10870 /Import File Strings/,/^$/ {
10871 /^0/ {
10872 s/^0 *\(.*\)$/\1/
10873 p
10874 }
10875 }'
10876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10877# Check for a 64-bit object if we didn't find anything.
10878if test -z "$aix_libpath"; then
10879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10880fi
1cf3d07d 10881fi
5213506e
RW
10882rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10885
10886 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10887 # Warning - without using the other run time loading flags,
10888 # -berok will link without error, but may produce a broken library.
10889 no_undefined_flag=' ${wl}-bernotok'
10890 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10891 if test "$with_gnu_ld" = yes; then
10892 # We only use this code for GNU lds that support --whole-archive.
10893 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10894 else
10895 # Exported symbols can be pulled into shared objects from archives
10896 whole_archive_flag_spec='$convenience'
10897 fi
1cf3d07d
SE
10898 archive_cmds_need_lc=yes
10899 # This is similar to how AIX traditionally builds its shared libraries.
10900 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10901 fi
10902 fi
10903 ;;
10904
10905 amigaos*)
d58dead8
PG
10906 case $host_cpu in
10907 powerpc)
10908 # see comment about AmigaOS4 .so support
10909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10910 archive_expsym_cmds=''
10911 ;;
10912 m68k)
10913 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10914 hardcode_libdir_flag_spec='-L$libdir'
10915 hardcode_minus_L=yes
10916 ;;
10917 esac
1cf3d07d
SE
10918 ;;
10919
10920 bsdi[45]*)
10921 export_dynamic_flag_spec=-rdynamic
10922 ;;
10923
d58dead8 10924 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10925 # When not using gcc, we currently assume that we are using
10926 # Microsoft Visual C++.
10927 # hardcode_libdir_flag_spec is actually meaningless, as there is
10928 # no search path for DLLs.
10929 hardcode_libdir_flag_spec=' '
10930 allow_undefined_flag=unsupported
10931 # Tell ltmain to make .lib files, not .a files.
10932 libext=lib
10933 # Tell ltmain to make .dll files, not .so files.
10934 shrext_cmds=".dll"
10935 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10936 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10937 # The linker will automatically build a .lib file if we build a DLL.
10938 old_archive_from_new_cmds='true'
10939 # FIXME: Should let the user specify the lib program.
10940 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10941 fix_srcfile_path='`cygpath -w "$srcfile"`'
10942 enable_shared_with_static_runtimes=yes
10943 ;;
10944
10945 darwin* | rhapsody*)
1cf3d07d 10946
d58dead8
PG
10947
10948 archive_cmds_need_lc=no
10949 hardcode_direct=no
10950 hardcode_automatic=yes
10951 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10952 if test "$lt_cv_ld_force_load" = "yes"; then
10953 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10954 else
10955 whole_archive_flag_spec=''
10956 fi
d58dead8
PG
10957 link_all_deplibs=yes
10958 allow_undefined_flag="$_lt_dar_allow_undefined"
10959 case $cc_basename in
10960 ifort*) _lt_dar_can_shared=yes ;;
10961 *) _lt_dar_can_shared=$GCC ;;
10962 esac
10963 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10964 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10965 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10966 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10967 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10968 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10969
10970 else
10971 ld_shlibs=no
10972 fi
10973
1cf3d07d
SE
10974 ;;
10975
10976 dgux*)
10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978 hardcode_libdir_flag_spec='-L$libdir'
10979 hardcode_shlibpath_var=no
10980 ;;
10981
1cf3d07d
SE
10982 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10983 # support. Future versions do this automatically, but an explicit c++rt0.o
10984 # does not break anything, and helps significantly (at the cost of a little
10985 # extra space).
10986 freebsd2.2*)
10987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10988 hardcode_libdir_flag_spec='-R$libdir'
10989 hardcode_direct=yes
10990 hardcode_shlibpath_var=no
10991 ;;
10992
10993 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10994 freebsd2.*)
1cf3d07d
SE
10995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10996 hardcode_direct=yes
10997 hardcode_minus_L=yes
10998 hardcode_shlibpath_var=no
10999 ;;
11000
11001 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11002 freebsd* | dragonfly*)
11003 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11004 hardcode_libdir_flag_spec='-R$libdir'
11005 hardcode_direct=yes
11006 hardcode_shlibpath_var=no
11007 ;;
11008
11009 hpux9*)
11010 if test "$GCC" = yes; then
11011 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11012 else
11013 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11014 fi
11015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11016 hardcode_libdir_separator=:
11017 hardcode_direct=yes
11018
11019 # hardcode_minus_L: Not really in the search PATH,
11020 # but as the default location of the library.
11021 hardcode_minus_L=yes
11022 export_dynamic_flag_spec='${wl}-E'
11023 ;;
11024
11025 hpux10*)
43e02a8a 11026 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11027 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11028 else
11029 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11030 fi
11031 if test "$with_gnu_ld" = no; then
11032 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11033 hardcode_libdir_flag_spec_ld='+b $libdir'
11034 hardcode_libdir_separator=:
11035 hardcode_direct=yes
11036 hardcode_direct_absolute=yes
11037 export_dynamic_flag_spec='${wl}-E'
11038 # hardcode_minus_L: Not really in the search PATH,
11039 # but as the default location of the library.
11040 hardcode_minus_L=yes
11041 fi
11042 ;;
11043
11044 hpux11*)
43e02a8a 11045 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
11046 case $host_cpu in
11047 hppa*64*)
4e4ba647 11048 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11049 ;;
11050 ia64*)
d58dead8 11051 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11052 ;;
11053 *)
11054 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11055 ;;
11056 esac
11057 else
11058 case $host_cpu in
11059 hppa*64*)
4e4ba647 11060 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
11061 ;;
11062 ia64*)
11063 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11064 ;;
11065 *)
43e02a8a
RW
11066
11067 # Older versions of the 11.00 compiler do not understand -b yet
11068 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11070$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 11071if ${lt_cv_prog_compiler__b+:} false; then :
43e02a8a
RW
11072 $as_echo_n "(cached) " >&6
11073else
11074 lt_cv_prog_compiler__b=no
11075 save_LDFLAGS="$LDFLAGS"
11076 LDFLAGS="$LDFLAGS -b"
11077 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11078 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11079 # The linker can only warn and ignore the option if not recognized
11080 # So say no if there are warnings
11081 if test -s conftest.err; then
11082 # Append any errors to the config.log.
11083 cat conftest.err 1>&5
11084 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11086 if diff conftest.exp conftest.er2 >/dev/null; then
11087 lt_cv_prog_compiler__b=yes
11088 fi
11089 else
11090 lt_cv_prog_compiler__b=yes
11091 fi
11092 fi
11093 $RM -r conftest*
11094 LDFLAGS="$save_LDFLAGS"
11095
11096fi
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11098$as_echo "$lt_cv_prog_compiler__b" >&6; }
11099
11100if test x"$lt_cv_prog_compiler__b" = xyes; then
11101 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11102else
11103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11104fi
11105
1cf3d07d
SE
11106 ;;
11107 esac
11108 fi
11109 if test "$with_gnu_ld" = no; then
11110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11111 hardcode_libdir_separator=:
11112
11113 case $host_cpu in
11114 hppa*64*|ia64*)
11115 hardcode_direct=no
11116 hardcode_shlibpath_var=no
11117 ;;
11118 *)
11119 hardcode_direct=yes
11120 hardcode_direct_absolute=yes
11121 export_dynamic_flag_spec='${wl}-E'
11122
11123 # hardcode_minus_L: Not really in the search PATH,
11124 # but as the default location of the library.
11125 hardcode_minus_L=yes
11126 ;;
11127 esac
11128 fi
11129 ;;
11130
11131 irix5* | irix6* | nonstopux*)
11132 if test "$GCC" = yes; then
43e02a8a 11133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11134 # Try to use the -exported_symbol ld option, if it does not
11135 # work, assume that -exports_file does not work either and
11136 # implicitly export all symbols.
11137 save_LDFLAGS="$LDFLAGS"
11138 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11139 if test x$gcc_no_link = xyes; then
22e05272 11140 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11141fi
5213506e
RW
11142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143/* end confdefs.h. */
1cf3d07d
SE
11144int foo(void) {}
11145_ACEOF
5213506e 11146if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 11147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 11148
1cf3d07d 11149fi
5213506e
RW
11150rm -f core conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11152 LDFLAGS="$save_LDFLAGS"
11153 else
43e02a8a
RW
11154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
11156 fi
11157 archive_cmds_need_lc='no'
11158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11159 hardcode_libdir_separator=:
11160 inherit_rpath=yes
11161 link_all_deplibs=yes
11162 ;;
11163
11164 netbsd*)
11165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11167 else
11168 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11169 fi
11170 hardcode_libdir_flag_spec='-R$libdir'
11171 hardcode_direct=yes
11172 hardcode_shlibpath_var=no
11173 ;;
11174
11175 newsos6)
11176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11177 hardcode_direct=yes
11178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11179 hardcode_libdir_separator=:
11180 hardcode_shlibpath_var=no
11181 ;;
11182
11183 *nto* | *qnx*)
11184 ;;
11185
11186 openbsd*)
d58dead8
PG
11187 if test -f /usr/libexec/ld.so; then
11188 hardcode_direct=yes
11189 hardcode_shlibpath_var=no
11190 hardcode_direct_absolute=yes
11191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 11192 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 11193 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 11194 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
11195 export_dynamic_flag_spec='${wl}-E'
11196 else
11197 case $host_os in
11198 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11200 hardcode_libdir_flag_spec='-R$libdir'
11201 ;;
11202 *)
11203 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11205 ;;
11206 esac
11207 fi
11208 else
11209 ld_shlibs=no
1cf3d07d
SE
11210 fi
11211 ;;
11212
11213 os2*)
11214 hardcode_libdir_flag_spec='-L$libdir'
11215 hardcode_minus_L=yes
11216 allow_undefined_flag=unsupported
43e02a8a 11217 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1cf3d07d
SE
11218 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11219 ;;
11220
11221 osf3*)
11222 if test "$GCC" = yes; then
11223 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11224 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11225 else
11226 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11227 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11228 fi
11229 archive_cmds_need_lc='no'
11230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11231 hardcode_libdir_separator=:
11232 ;;
11233
11234 osf4* | osf5*) # as osf3* with the addition of -msym flag
11235 if test "$GCC" = yes; then
11236 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 11237 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
11238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11239 else
11240 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 11241 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 11242 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
43e02a8a 11243 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
11244
11245 # Both c and cxx compiler support -rpath directly
11246 hardcode_libdir_flag_spec='-rpath $libdir'
11247 fi
11248 archive_cmds_need_lc='no'
11249 hardcode_libdir_separator=:
11250 ;;
11251
11252 solaris*)
11253 no_undefined_flag=' -z defs'
11254 if test "$GCC" = yes; then
11255 wlarc='${wl}'
11256 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11257 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11258 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11259 else
11260 case `$CC -V 2>&1` in
11261 *"Compilers 5.0"*)
11262 wlarc=''
11263 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11265 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11266 ;;
11267 *)
11268 wlarc='${wl}'
11269 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11270 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11271 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11272 ;;
11273 esac
11274 fi
11275 hardcode_libdir_flag_spec='-R$libdir'
11276 hardcode_shlibpath_var=no
11277 case $host_os in
11278 solaris2.[0-5] | solaris2.[0-5].*) ;;
11279 *)
11280 # The compiler driver will combine and reorder linker options,
11281 # but understands `-z linker_flag'. GCC discards it without `$wl',
11282 # but is careful enough not to reorder.
11283 # Supported since Solaris 2.6 (maybe 2.5.1?)
11284 if test "$GCC" = yes; then
11285 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11286 else
11287 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11288 fi
11289 ;;
11290 esac
11291 link_all_deplibs=yes
11292 ;;
11293
11294 sunos4*)
11295 if test "x$host_vendor" = xsequent; then
11296 # Use $CC to link under sequent, because it throws in some extra .o
11297 # files that make .init and .fini sections work.
11298 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11299 else
11300 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11301 fi
11302 hardcode_libdir_flag_spec='-L$libdir'
11303 hardcode_direct=yes
11304 hardcode_minus_L=yes
11305 hardcode_shlibpath_var=no
11306 ;;
11307
11308 sysv4)
11309 case $host_vendor in
11310 sni)
11311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11312 hardcode_direct=yes # is this really true???
11313 ;;
11314 siemens)
11315 ## LD is ld it makes a PLAMLIB
11316 ## CC just makes a GrossModule.
11317 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11318 reload_cmds='$CC -r -o $output$reload_objs'
11319 hardcode_direct=no
11320 ;;
11321 motorola)
11322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11324 ;;
11325 esac
11326 runpath_var='LD_RUN_PATH'
11327 hardcode_shlibpath_var=no
11328 ;;
11329
11330 sysv4.3*)
11331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11332 hardcode_shlibpath_var=no
11333 export_dynamic_flag_spec='-Bexport'
11334 ;;
11335
11336 sysv4*MP*)
11337 if test -d /usr/nec; then
11338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11339 hardcode_shlibpath_var=no
11340 runpath_var=LD_RUN_PATH
11341 hardcode_runpath_var=yes
11342 ld_shlibs=yes
11343 fi
11344 ;;
11345
11346 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11347 no_undefined_flag='${wl}-z,text'
11348 archive_cmds_need_lc=no
11349 hardcode_shlibpath_var=no
11350 runpath_var='LD_RUN_PATH'
11351
11352 if test "$GCC" = yes; then
11353 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11354 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11355 else
11356 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11357 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11358 fi
11359 ;;
11360
11361 sysv5* | sco3.2v5* | sco5v6*)
11362 # Note: We can NOT use -z defs as we might desire, because we do not
11363 # link with -lc, and that would cause any symbols used from libc to
11364 # always be unresolved, which means just about no library would
11365 # ever link correctly. If we're not using GNU ld we use -z text
11366 # though, which does catch some bad symbols but isn't as heavy-handed
11367 # as -z defs.
11368 no_undefined_flag='${wl}-z,text'
11369 allow_undefined_flag='${wl}-z,nodefs'
11370 archive_cmds_need_lc=no
11371 hardcode_shlibpath_var=no
11372 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11373 hardcode_libdir_separator=':'
11374 link_all_deplibs=yes
11375 export_dynamic_flag_spec='${wl}-Bexport'
11376 runpath_var='LD_RUN_PATH'
11377
11378 if test "$GCC" = yes; then
11379 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11381 else
11382 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11383 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384 fi
11385 ;;
11386
11387 uts4*)
11388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11389 hardcode_libdir_flag_spec='-L$libdir'
11390 hardcode_shlibpath_var=no
11391 ;;
11392
11393 *)
11394 ld_shlibs=no
11395 ;;
11396 esac
11397
11398 if test x$host_vendor = xsni; then
11399 case $host in
11400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11401 export_dynamic_flag_spec='${wl}-Blargedynsym'
11402 ;;
11403 esac
11404 fi
11405 fi
11406
5213506e
RW
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11408$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
11409test "$ld_shlibs" = no && can_build_shared=no
11410
11411with_gnu_ld=$with_gnu_ld
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427#
11428# Do we need to explicitly link libc?
11429#
11430case "x$archive_cmds_need_lc" in
11431x|xyes)
11432 # Assume -lc should be added
11433 archive_cmds_need_lc=yes
11434
11435 if test "$enable_shared" = yes && test "$GCC" = yes; then
11436 case $archive_cmds in
11437 *'~'*)
11438 # FIXME: we may have to deal with multi-command sequences.
11439 ;;
11440 '$CC '*)
11441 # Test whether the compiler implicitly links with -lc since on some
11442 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11443 # to ld, don't add -lc before -lgcc.
5213506e
RW
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11445$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 11446if ${lt_cv_archive_cmds_need_lc+:} false; then :
5213506e 11447 $as_echo_n "(cached) " >&6
baafc534
RW
11448else
11449 $RM conftest*
11450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 11451
5213506e 11452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
11453 (eval $ac_compile) 2>&5
11454 ac_status=$?
5213506e
RW
11455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11456 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
11457 soname=conftest
11458 lib=conftest
11459 libobjs=conftest.$ac_objext
11460 deplibs=
11461 wl=$lt_prog_compiler_wl
11462 pic_flag=$lt_prog_compiler_pic
11463 compiler_flags=-v
11464 linker_flags=-v
11465 verstring=
11466 output_objdir=.
11467 libname=conftest
11468 lt_save_allow_undefined_flag=$allow_undefined_flag
11469 allow_undefined_flag=
5213506e 11470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
11471 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11472 ac_status=$?
5213506e
RW
11473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474 test $ac_status = 0; }
baafc534
RW
11475 then
11476 lt_cv_archive_cmds_need_lc=no
11477 else
11478 lt_cv_archive_cmds_need_lc=yes
11479 fi
11480 allow_undefined_flag=$lt_save_allow_undefined_flag
11481 else
11482 cat conftest.err 1>&5
11483 fi
11484 $RM conftest*
11485
11486fi
5213506e
RW
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11488$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 11489 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
11490 ;;
11491 esac
11492 fi
11493 ;;
11494esac
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
5213506e
RW
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11653$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
11654
11655if test "$GCC" = yes; then
1cf3d07d
SE
11656 case $host_os in
11657 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11658 *) lt_awk_arg="/^libraries:/" ;;
11659 esac
43e02a8a
RW
11660 case $host_os in
11661 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11662 *) lt_sed_strip_eq="s,=/,/,g" ;;
11663 esac
11664 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11665 case $lt_search_path_spec in
11666 *\;*)
1cf3d07d
SE
11667 # if the path contains ";" then we assume it to be the separator
11668 # otherwise default to the standard path separator (i.e. ":") - it is
11669 # assumed that no part of a normal pathname contains ";" but that should
11670 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
11671 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11672 ;;
11673 *)
11674 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11675 ;;
11676 esac
1cf3d07d
SE
11677 # Ok, now we have the path, separated by spaces, we can step through it
11678 # and add multilib dir if necessary.
11679 lt_tmp_lt_search_path_spec=
11680 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11681 for lt_sys_path in $lt_search_path_spec; do
11682 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11684 else
11685 test -d "$lt_sys_path" && \
11686 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11687 fi
11688 done
43e02a8a 11689 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11690BEGIN {RS=" "; FS="/|\n";} {
11691 lt_foo="";
11692 lt_count=0;
11693 for (lt_i = NF; lt_i > 0; lt_i--) {
11694 if ($lt_i != "" && $lt_i != ".") {
11695 if ($lt_i == "..") {
11696 lt_count++;
11697 } else {
11698 if (lt_count == 0) {
11699 lt_foo="/" $lt_i lt_foo;
11700 } else {
11701 lt_count--;
11702 }
11703 }
11704 }
11705 }
11706 if (lt_foo != "") { lt_freq[lt_foo]++; }
11707 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11708}'`
43e02a8a
RW
11709 # AWK program above erroneously prepends '/' to C:/dos/paths
11710 # for these hosts.
11711 case $host_os in
11712 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11713 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11714 esac
11715 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11716else
11717 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11718fi
11719library_names_spec=
11720libname_spec='lib$name'
11721soname_spec=
11722shrext_cmds=".so"
11723postinstall_cmds=
11724postuninstall_cmds=
11725finish_cmds=
11726finish_eval=
11727shlibpath_var=
11728shlibpath_overrides_runpath=unknown
11729version_type=none
11730dynamic_linker="$host_os ld.so"
11731sys_lib_dlsearch_path_spec="/lib /usr/lib"
11732need_lib_prefix=unknown
11733hardcode_into_libs=no
11734
11735# when you set need_version to no, make sure it does not cause -set_version
11736# flags to be left without arguments
11737need_version=unknown
11738
11739case $host_os in
11740aix3*)
11741 version_type=linux
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11743 shlibpath_var=LIBPATH
11744
11745 # AIX 3 has no versioning support, so we append a major version to the name.
11746 soname_spec='${libname}${release}${shared_ext}$major'
11747 ;;
11748
4f6bebc3 11749aix[4-9]*)
1cf3d07d
SE
11750 version_type=linux
11751 need_lib_prefix=no
11752 need_version=no
11753 hardcode_into_libs=yes
11754 if test "$host_cpu" = ia64; then
11755 # AIX 5 supports IA64
11756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 else
11759 # With GCC up to 2.95.x, collect2 would create an import file
11760 # for dependence libraries. The import file would start with
11761 # the line `#! .'. This would cause the generated library to
11762 # depend on `.', always an invalid library. This was fixed in
11763 # development snapshots of GCC prior to 3.0.
11764 case $host_os in
11765 aix4 | aix4.[01] | aix4.[01].*)
11766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11767 echo ' yes '
11768 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11769 :
11770 else
11771 can_build_shared=no
11772 fi
11773 ;;
11774 esac
11775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11776 # soname into executable. Probably we can add versioning support to
11777 # collect2, so additional links can be useful in future.
11778 if test "$aix_use_runtimelinking" = yes; then
11779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11780 # instead of lib<name>.a to let people know that these are not
11781 # typical AIX shared libraries.
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11783 else
11784 # We preserve .a as extension for shared libraries through AIX4.2
11785 # and later when we are not doing run time linking.
11786 library_names_spec='${libname}${release}.a $libname.a'
11787 soname_spec='${libname}${release}${shared_ext}$major'
11788 fi
11789 shlibpath_var=LIBPATH
11790 fi
11791 ;;
11792
11793amigaos*)
d58dead8
PG
11794 case $host_cpu in
11795 powerpc)
11796 # Since July 2007 AmigaOS4 officially supports .so libraries.
11797 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 ;;
11800 m68k)
1cf3d07d
SE
11801 library_names_spec='$libname.ixlibrary $libname.a'
11802 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11803 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d58dead8
PG
11804 ;;
11805 esac
1cf3d07d
SE
11806 ;;
11807
11808beos*)
11809 library_names_spec='${libname}${shared_ext}'
11810 dynamic_linker="$host_os ld.so"
11811 shlibpath_var=LIBRARY_PATH
11812 ;;
11813
11814bsdi[45]*)
11815 version_type=linux
11816 need_version=no
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11822 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11823 # the default ld.so.conf also contains /usr/contrib/lib and
11824 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11825 # libtool to hard-code these into programs
11826 ;;
11827
d58dead8 11828cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11829 version_type=windows
11830 shrext_cmds=".dll"
11831 need_version=no
11832 need_lib_prefix=no
11833
d58dead8
PG
11834 case $GCC,$host_os in
11835 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11836 library_names_spec='$libname.dll.a'
11837 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11838 postinstall_cmds='base_file=`basename \${file}`~
11839 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11840 dldir=$destdir/`dirname \$dlpath`~
11841 test -d \$dldir || mkdir -p \$dldir~
11842 $install_prog $dir/$dlname \$dldir/$dlname~
11843 chmod a+x \$dldir/$dlname~
11844 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11845 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11846 fi'
11847 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11848 dlpath=$dir/\$dldll~
11849 $RM \$dlpath'
11850 shlibpath_overrides_runpath=yes
11851
11852 case $host_os in
11853 cygwin*)
11854 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11855 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11856
11857 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11858 ;;
d58dead8 11859 mingw* | cegcc*)
1cf3d07d
SE
11860 # MinGW DLLs use traditional 'lib' prefix
11861 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11862 ;;
11863 pw32*)
11864 # pw32 DLLs use 'pw' prefix rather than 'lib'
11865 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11866 ;;
11867 esac
11868 ;;
11869
11870 *)
11871 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11872 ;;
11873 esac
11874 dynamic_linker='Win32 ld.exe'
11875 # FIXME: first we should search . and the directory the executable is in
11876 shlibpath_var=PATH
11877 ;;
11878
11879darwin* | rhapsody*)
11880 dynamic_linker="$host_os dyld"
11881 version_type=darwin
11882 need_lib_prefix=no
11883 need_version=no
11884 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11885 soname_spec='${libname}${release}${major}$shared_ext'
11886 shlibpath_overrides_runpath=yes
11887 shlibpath_var=DYLD_LIBRARY_PATH
11888 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11889
11890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11891 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11892 ;;
11893
11894dgux*)
11895 version_type=linux
11896 need_lib_prefix=no
11897 need_version=no
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11899 soname_spec='${libname}${release}${shared_ext}$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 ;;
11902
1cf3d07d
SE
11903freebsd* | dragonfly*)
11904 # DragonFly does not have aout. When/if they implement a new
11905 # versioning mechanism, adjust this.
11906 if test -x /usr/bin/objformat; then
11907 objformat=`/usr/bin/objformat`
11908 else
11909 case $host_os in
c6084f68 11910 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
11911 *) objformat=elf ;;
11912 esac
11913 fi
11914 version_type=freebsd-$objformat
11915 case $version_type in
11916 freebsd-elf*)
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11918 need_version=no
11919 need_lib_prefix=no
11920 ;;
11921 freebsd-*)
11922 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11923 need_version=yes
11924 ;;
11925 esac
11926 shlibpath_var=LD_LIBRARY_PATH
11927 case $host_os in
c6084f68 11928 freebsd2.*)
1cf3d07d
SE
11929 shlibpath_overrides_runpath=yes
11930 ;;
11931 freebsd3.[01]* | freebsdelf3.[01]*)
11932 shlibpath_overrides_runpath=yes
11933 hardcode_into_libs=yes
11934 ;;
11935 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11936 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11937 shlibpath_overrides_runpath=no
11938 hardcode_into_libs=yes
11939 ;;
11940 *) # from 4.6 on, and DragonFly
11941 shlibpath_overrides_runpath=yes
11942 hardcode_into_libs=yes
11943 ;;
11944 esac
11945 ;;
11946
43e02a8a
RW
11947haiku*)
11948 version_type=linux
11949 need_lib_prefix=no
11950 need_version=no
11951 dynamic_linker="$host_os runtime_loader"
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11953 soname_spec='${libname}${release}${shared_ext}$major'
11954 shlibpath_var=LIBRARY_PATH
11955 shlibpath_overrides_runpath=yes
11956 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11957 hardcode_into_libs=yes
11958 ;;
11959
1cf3d07d
SE
11960hpux9* | hpux10* | hpux11*)
11961 # Give a soname corresponding to the major version so that dld.sl refuses to
11962 # link against other versions.
11963 version_type=sunos
11964 need_lib_prefix=no
11965 need_version=no
11966 case $host_cpu in
11967 ia64*)
11968 shrext_cmds='.so'
11969 hardcode_into_libs=yes
11970 dynamic_linker="$host_os dld.so"
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 soname_spec='${libname}${release}${shared_ext}$major'
11975 if test "X$HPUX_IA64_MODE" = X32; then
11976 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11977 else
11978 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11979 fi
11980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11981 ;;
11982 hppa*64*)
11983 shrext_cmds='.sl'
11984 hardcode_into_libs=yes
11985 dynamic_linker="$host_os dld.sl"
11986 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989 soname_spec='${libname}${release}${shared_ext}$major'
11990 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11992 ;;
11993 *)
11994 shrext_cmds='.sl'
11995 dynamic_linker="$host_os dld.sl"
11996 shlibpath_var=SHLIB_PATH
11997 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999 soname_spec='${libname}${release}${shared_ext}$major'
12000 ;;
12001 esac
43e02a8a 12002 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 12003 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
12004 # or fails outright, so override atomically:
12005 install_override_mode=555
1cf3d07d
SE
12006 ;;
12007
12008interix[3-9]*)
12009 version_type=linux
12010 need_lib_prefix=no
12011 need_version=no
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12013 soname_spec='${libname}${release}${shared_ext}$major'
12014 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12015 shlibpath_var=LD_LIBRARY_PATH
12016 shlibpath_overrides_runpath=no
12017 hardcode_into_libs=yes
12018 ;;
12019
12020irix5* | irix6* | nonstopux*)
12021 case $host_os in
12022 nonstopux*) version_type=nonstopux ;;
12023 *)
12024 if test "$lt_cv_prog_gnu_ld" = yes; then
12025 version_type=linux
12026 else
12027 version_type=irix
12028 fi ;;
12029 esac
12030 need_lib_prefix=no
12031 need_version=no
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12034 case $host_os in
12035 irix5* | nonstopux*)
12036 libsuff= shlibsuff=
12037 ;;
12038 *)
12039 case $LD in # libtool.m4 will add one of these switches to LD
12040 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12041 libsuff= shlibsuff= libmagic=32-bit;;
12042 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12043 libsuff=32 shlibsuff=N32 libmagic=N32;;
12044 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12045 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12046 *) libsuff= shlibsuff= libmagic=never-match;;
12047 esac
12048 ;;
12049 esac
12050 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12051 shlibpath_overrides_runpath=no
12052 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12053 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12054 hardcode_into_libs=yes
12055 ;;
12056
12057# No shared lib support for Linux oldld, aout, or coff.
12058linux*oldld* | linux*aout* | linux*coff*)
12059 dynamic_linker=no
12060 ;;
12061
12062# This must be Linux ELF.
e9085da5
MR
12063
12064# uclinux* changes (here and below) have been submitted to the libtool
12065# project, but have not yet been accepted: they are GCC-local changes
12066# for the time being. (See
12067# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 12068linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
1cf3d07d
SE
12069 version_type=linux
12070 need_lib_prefix=no
12071 need_version=no
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073 soname_spec='${libname}${release}${shared_ext}$major'
12074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12075 shlibpath_var=LD_LIBRARY_PATH
12076 shlibpath_overrides_runpath=no
baafc534 12077
1cf3d07d 12078 # Some binutils ld are patched to set DT_RUNPATH
22e05272 12079 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 12080 $as_echo_n "(cached) " >&6
baafc534
RW
12081else
12082 lt_cv_shlibpath_overrides_runpath=no
12083 save_LDFLAGS=$LDFLAGS
12084 save_libdir=$libdir
12085 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12086 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12087 if test x$gcc_no_link = xyes; then
22e05272 12088 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12089fi
5213506e 12090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12091/* end confdefs.h. */
12092
12093int
12094main ()
12095{
12096
12097 ;
12098 return 0;
12099}
12100_ACEOF
5213506e
RW
12101if ac_fn_c_try_link "$LINENO"; then :
12102 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 12103 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 12104fi
1cf3d07d 12105fi
5213506e
RW
12106rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
12108 LDFLAGS=$save_LDFLAGS
12109 libdir=$save_libdir
12110
12111fi
12112
12113 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
12114
12115 # This implies no fast_install, which is unacceptable.
12116 # Some rework will be needed to allow for fast_install
12117 # before this can be enabled.
12118 hardcode_into_libs=yes
12119
12120 # Append ld.so.conf contents to the search path
12121 if test -f /etc/ld.so.conf; then
43e02a8a 12122 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
12123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12124 fi
12125
12126 # We used to test for /lib/ld.so.1 and disable shared libraries on
12127 # powerpc, because MkLinux only supported shared libraries with the
12128 # GNU dynamic linker. Since this was broken with cross compilers,
12129 # most powerpc-linux boxes support dynamic linking these days and
12130 # people can always --disable-shared, the test was removed, and we
12131 # assume the GNU/Linux dynamic linker is in use.
12132 dynamic_linker='GNU/Linux ld.so'
12133 ;;
12134
12135netbsd*)
12136 version_type=sunos
12137 need_lib_prefix=no
12138 need_version=no
12139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12142 dynamic_linker='NetBSD (a.out) ld.so'
12143 else
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12145 soname_spec='${libname}${release}${shared_ext}$major'
12146 dynamic_linker='NetBSD ld.elf_so'
12147 fi
12148 shlibpath_var=LD_LIBRARY_PATH
12149 shlibpath_overrides_runpath=yes
12150 hardcode_into_libs=yes
12151 ;;
12152
12153newsos6)
12154 version_type=linux
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 shlibpath_overrides_runpath=yes
12158 ;;
12159
12160*nto* | *qnx*)
12161 version_type=qnx
12162 need_lib_prefix=no
12163 need_version=no
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12165 soname_spec='${libname}${release}${shared_ext}$major'
12166 shlibpath_var=LD_LIBRARY_PATH
12167 shlibpath_overrides_runpath=no
12168 hardcode_into_libs=yes
12169 dynamic_linker='ldqnx.so'
12170 ;;
12171
12172openbsd*)
12173 version_type=sunos
12174 sys_lib_dlsearch_path_spec="/usr/lib"
12175 need_lib_prefix=no
12176 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12177 case $host_os in
12178 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12179 *) need_version=no ;;
12180 esac
12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12183 shlibpath_var=LD_LIBRARY_PATH
12184 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12185 case $host_os in
12186 openbsd2.[89] | openbsd2.[89].*)
12187 shlibpath_overrides_runpath=no
12188 ;;
12189 *)
12190 shlibpath_overrides_runpath=yes
12191 ;;
12192 esac
12193 else
12194 shlibpath_overrides_runpath=yes
12195 fi
12196 ;;
12197
12198os2*)
12199 libname_spec='$name'
12200 shrext_cmds=".dll"
12201 need_lib_prefix=no
12202 library_names_spec='$libname${shared_ext} $libname.a'
12203 dynamic_linker='OS/2 ld.exe'
12204 shlibpath_var=LIBPATH
12205 ;;
12206
12207osf3* | osf4* | osf5*)
12208 version_type=osf
12209 need_lib_prefix=no
12210 need_version=no
12211 soname_spec='${libname}${release}${shared_ext}$major'
12212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213 shlibpath_var=LD_LIBRARY_PATH
12214 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12215 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12216 ;;
12217
12218rdos*)
12219 dynamic_linker=no
12220 ;;
12221
12222solaris*)
12223 version_type=linux
12224 need_lib_prefix=no
12225 need_version=no
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12227 soname_spec='${libname}${release}${shared_ext}$major'
12228 shlibpath_var=LD_LIBRARY_PATH
12229 shlibpath_overrides_runpath=yes
12230 hardcode_into_libs=yes
12231 # ldd complains unless libraries are executable
12232 postinstall_cmds='chmod +x $lib'
12233 ;;
12234
12235sunos4*)
12236 version_type=sunos
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12239 shlibpath_var=LD_LIBRARY_PATH
12240 shlibpath_overrides_runpath=yes
12241 if test "$with_gnu_ld" = yes; then
12242 need_lib_prefix=no
12243 fi
12244 need_version=yes
12245 ;;
12246
12247sysv4 | sysv4.3*)
12248 version_type=linux
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250 soname_spec='${libname}${release}${shared_ext}$major'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 case $host_vendor in
12253 sni)
12254 shlibpath_overrides_runpath=no
12255 need_lib_prefix=no
12256 runpath_var=LD_RUN_PATH
12257 ;;
12258 siemens)
12259 need_lib_prefix=no
12260 ;;
12261 motorola)
12262 need_lib_prefix=no
12263 need_version=no
12264 shlibpath_overrides_runpath=no
12265 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12266 ;;
12267 esac
12268 ;;
12269
12270sysv4*MP*)
12271 if test -d /usr/nec ;then
12272 version_type=linux
12273 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12274 soname_spec='$libname${shared_ext}.$major'
12275 shlibpath_var=LD_LIBRARY_PATH
12276 fi
12277 ;;
12278
12279sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12280 version_type=freebsd-elf
12281 need_lib_prefix=no
12282 need_version=no
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12284 soname_spec='${libname}${release}${shared_ext}$major'
12285 shlibpath_var=LD_LIBRARY_PATH
12286 shlibpath_overrides_runpath=yes
12287 hardcode_into_libs=yes
12288 if test "$with_gnu_ld" = yes; then
12289 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12290 else
12291 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12292 case $host_os in
12293 sco3.2v5*)
12294 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12295 ;;
12296 esac
12297 fi
12298 sys_lib_dlsearch_path_spec='/usr/lib'
12299 ;;
12300
12301tpf*)
12302 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12303 version_type=linux
12304 need_lib_prefix=no
12305 need_version=no
d58dead8 12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
12307 shlibpath_var=LD_LIBRARY_PATH
12308 shlibpath_overrides_runpath=no
12309 hardcode_into_libs=yes
12310 ;;
12311
12312uts4*)
12313 version_type=linux
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315 soname_spec='${libname}${release}${shared_ext}$major'
12316 shlibpath_var=LD_LIBRARY_PATH
12317 ;;
12318
0ecd0f1c
OH
12319# Shared libraries for VwWorks, >= 7 only at this stage
12320# and (fpic) still incompatible with "large" code models
12321# in a few configurations. Only for RTP mode in any case,
12322# and upon explicit request at configure time.
12323vxworks7*)
12324 dynamic_linker=no
12325 case ${with_multisubdir}-${enable_shared} in
12326 *large*)
12327 ;;
12328 *mrtp*-yes)
12329 version_type=linux
12330 need_lib_prefix=no
12331 need_version=no
12332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12333 soname_spec='${libname}${release}${shared_ext}$major'
12334 dynamic_linker="$host_os module_loader"
12335 ;;
12336 esac
12337 ;;
1cf3d07d
SE
12338*)
12339 dynamic_linker=no
12340 ;;
12341esac
5213506e
RW
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12343$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
12344test "$dynamic_linker" = no && can_build_shared=no
12345
12346variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12347if test "$GCC" = yes; then
12348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12349fi
12350
d58dead8
PG
12351if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12352 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12353fi
12354if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12355 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12356fi
12357
1cf3d07d
SE
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
43e02a8a
RW
12438
12439
12440
12441
12442
1cf3d07d
SE
12443
12444
12445
12446
12447
12448
5213506e
RW
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12450$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
12451hardcode_action=
12452if test -n "$hardcode_libdir_flag_spec" ||
12453 test -n "$runpath_var" ||
12454 test "X$hardcode_automatic" = "Xyes" ; then
12455
12456 # We can hardcode non-existent directories.
12457 if test "$hardcode_direct" != no &&
12458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12459 # have to relink, otherwise we might link with an installed library
12460 # when we should be linking with a yet-to-be-installed one
12461 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12462 test "$hardcode_minus_L" != no; then
12463 # Linking always hardcodes the temporary library directory.
12464 hardcode_action=relink
12465 else
12466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12467 hardcode_action=immediate
12468 fi
12469else
12470 # We cannot hardcode anything, or else we can only hardcode existing
12471 # directories.
12472 hardcode_action=unsupported
12473fi
5213506e
RW
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12475$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
12476
12477if test "$hardcode_action" = relink ||
12478 test "$inherit_rpath" = yes; then
12479 # Fast installation is not supported
12480 enable_fast_install=no
12481elif test "$shlibpath_overrides_runpath" = yes ||
12482 test "$enable_shared" = no; then
12483 # Fast installation is not necessary
12484 enable_fast_install=needless
12485fi
12486
12487
12488
12489
12490
12491
12492 if test "x$enable_dlopen" != xyes; then
12493 enable_dlopen=unknown
12494 enable_dlopen_self=unknown
12495 enable_dlopen_self_static=unknown
12496else
12497 lt_cv_dlopen=no
12498 lt_cv_dlopen_libs=
12499
12500 case $host_os in
12501 beos*)
12502 lt_cv_dlopen="load_add_on"
12503 lt_cv_dlopen_libs=
12504 lt_cv_dlopen_self=yes
12505 ;;
12506
d58dead8 12507 mingw* | pw32* | cegcc*)
1cf3d07d
SE
12508 lt_cv_dlopen="LoadLibrary"
12509 lt_cv_dlopen_libs=
12510 ;;
12511
12512 cygwin*)
12513 lt_cv_dlopen="dlopen"
12514 lt_cv_dlopen_libs=
12515 ;;
12516
12517 darwin*)
12518 # if libdl is installed we need to link against it
5213506e
RW
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12520$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12521if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 12522 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12523else
12524 ac_check_lib_save_LIBS=$LIBS
12525LIBS="-ldl $LIBS"
12526if test x$gcc_no_link = xyes; then
22e05272 12527 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12528fi
5213506e 12529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12530/* end confdefs.h. */
12531
5213506e
RW
12532/* Override any GCC internal prototype to avoid an error.
12533 Use char because int might match the return type of a GCC
12534 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12535#ifdef __cplusplus
12536extern "C"
12537#endif
1cf3d07d
SE
12538char dlopen ();
12539int
12540main ()
12541{
5213506e 12542return dlopen ();
1cf3d07d
SE
12543 ;
12544 return 0;
12545}
12546_ACEOF
5213506e 12547if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12548 ac_cv_lib_dl_dlopen=yes
12549else
5213506e 12550 ac_cv_lib_dl_dlopen=no
1cf3d07d 12551fi
5213506e
RW
12552rm -f core conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12554LIBS=$ac_check_lib_save_LIBS
12555fi
5213506e
RW
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12557$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12558if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
12559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12560else
12561
12562 lt_cv_dlopen="dyld"
12563 lt_cv_dlopen_libs=
12564 lt_cv_dlopen_self=yes
12565
12566fi
12567
12568 ;;
12569
12570 *)
5213506e 12571 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 12572if test "x$ac_cv_func_shl_load" = xyes; then :
1cf3d07d
SE
12573 lt_cv_dlopen="shl_load"
12574else
5213506e
RW
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12576$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 12577if ${ac_cv_lib_dld_shl_load+:} false; then :
5213506e 12578 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12579else
12580 ac_check_lib_save_LIBS=$LIBS
12581LIBS="-ldld $LIBS"
12582if test x$gcc_no_link = xyes; then
22e05272 12583 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12584fi
5213506e 12585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12586/* end confdefs.h. */
12587
5213506e
RW
12588/* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12591#ifdef __cplusplus
12592extern "C"
12593#endif
1cf3d07d
SE
12594char shl_load ();
12595int
12596main ()
12597{
5213506e 12598return shl_load ();
1cf3d07d
SE
12599 ;
12600 return 0;
12601}
12602_ACEOF
5213506e 12603if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12604 ac_cv_lib_dld_shl_load=yes
12605else
5213506e 12606 ac_cv_lib_dld_shl_load=no
1cf3d07d 12607fi
5213506e
RW
12608rm -f core conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12610LIBS=$ac_check_lib_save_LIBS
12611fi
5213506e
RW
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12613$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 12614if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d58dead8 12615 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 12616else
5213506e 12617 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 12618if test "x$ac_cv_func_dlopen" = xyes; then :
1cf3d07d
SE
12619 lt_cv_dlopen="dlopen"
12620else
5213506e
RW
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12622$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12623if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 12624 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12625else
12626 ac_check_lib_save_LIBS=$LIBS
12627LIBS="-ldl $LIBS"
12628if test x$gcc_no_link = xyes; then
22e05272 12629 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12630fi
5213506e 12631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12632/* end confdefs.h. */
12633
5213506e
RW
12634/* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12637#ifdef __cplusplus
12638extern "C"
12639#endif
1cf3d07d
SE
12640char dlopen ();
12641int
12642main ()
12643{
5213506e 12644return dlopen ();
1cf3d07d
SE
12645 ;
12646 return 0;
12647}
12648_ACEOF
5213506e 12649if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12650 ac_cv_lib_dl_dlopen=yes
12651else
5213506e 12652 ac_cv_lib_dl_dlopen=no
1cf3d07d 12653fi
5213506e
RW
12654rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12656LIBS=$ac_check_lib_save_LIBS
12657fi
5213506e
RW
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12659$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12660if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
12661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12662else
5213506e
RW
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12664$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12665if ${ac_cv_lib_svld_dlopen+:} false; then :
5213506e 12666 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12667else
12668 ac_check_lib_save_LIBS=$LIBS
12669LIBS="-lsvld $LIBS"
12670if test x$gcc_no_link = xyes; then
22e05272 12671 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12672fi
5213506e 12673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12674/* end confdefs.h. */
12675
5213506e
RW
12676/* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12679#ifdef __cplusplus
12680extern "C"
12681#endif
1cf3d07d
SE
12682char dlopen ();
12683int
12684main ()
12685{
5213506e 12686return dlopen ();
1cf3d07d
SE
12687 ;
12688 return 0;
12689}
12690_ACEOF
5213506e 12691if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12692 ac_cv_lib_svld_dlopen=yes
12693else
5213506e 12694 ac_cv_lib_svld_dlopen=no
1cf3d07d 12695fi
5213506e
RW
12696rm -f core conftest.err conftest.$ac_objext \
12697 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12698LIBS=$ac_check_lib_save_LIBS
12699fi
5213506e
RW
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12701$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12702if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1cf3d07d
SE
12703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12704else
5213506e
RW
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12706$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12707if ${ac_cv_lib_dld_dld_link+:} false; then :
5213506e 12708 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12709else
12710 ac_check_lib_save_LIBS=$LIBS
12711LIBS="-ldld $LIBS"
12712if test x$gcc_no_link = xyes; then
22e05272 12713 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12714fi
5213506e 12715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12716/* end confdefs.h. */
12717
5213506e
RW
12718/* Override any GCC internal prototype to avoid an error.
12719 Use char because int might match the return type of a GCC
12720 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12721#ifdef __cplusplus
12722extern "C"
12723#endif
1cf3d07d
SE
12724char dld_link ();
12725int
12726main ()
12727{
5213506e 12728return dld_link ();
1cf3d07d
SE
12729 ;
12730 return 0;
12731}
12732_ACEOF
5213506e 12733if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12734 ac_cv_lib_dld_dld_link=yes
12735else
5213506e 12736 ac_cv_lib_dld_dld_link=no
1cf3d07d 12737fi
5213506e
RW
12738rm -f core conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12740LIBS=$ac_check_lib_save_LIBS
12741fi
5213506e
RW
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12743$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12744if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d58dead8 12745 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12746fi
12747
12748
12749fi
12750
12751
12752fi
12753
12754
12755fi
12756
12757
12758fi
12759
12760
12761fi
12762
12763 ;;
12764 esac
12765
12766 if test "x$lt_cv_dlopen" != xno; then
12767 enable_dlopen=yes
12768 else
12769 enable_dlopen=no
12770 fi
12771
12772 case $lt_cv_dlopen in
12773 dlopen)
12774 save_CPPFLAGS="$CPPFLAGS"
12775 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12776
12777 save_LDFLAGS="$LDFLAGS"
12778 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12779
12780 save_LIBS="$LIBS"
12781 LIBS="$lt_cv_dlopen_libs $LIBS"
12782
5213506e
RW
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12784$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12785if ${lt_cv_dlopen_self+:} false; then :
5213506e 12786 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12787else
12788 if test "$cross_compiling" = yes; then :
12789 lt_cv_dlopen_self=cross
12790else
12791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12792 lt_status=$lt_dlunknown
12793 cat > conftest.$ac_ext <<_LT_EOF
6d2294a8 12794#line 12794 "configure"
1cf3d07d
SE
12795#include "confdefs.h"
12796
12797#if HAVE_DLFCN_H
12798#include <dlfcn.h>
12799#endif
12800
12801#include <stdio.h>
12802
12803#ifdef RTLD_GLOBAL
12804# define LT_DLGLOBAL RTLD_GLOBAL
12805#else
12806# ifdef DL_GLOBAL
12807# define LT_DLGLOBAL DL_GLOBAL
12808# else
12809# define LT_DLGLOBAL 0
12810# endif
12811#endif
12812
12813/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12814 find out it does not work in some platform. */
12815#ifndef LT_DLLAZY_OR_NOW
12816# ifdef RTLD_LAZY
12817# define LT_DLLAZY_OR_NOW RTLD_LAZY
12818# else
12819# ifdef DL_LAZY
12820# define LT_DLLAZY_OR_NOW DL_LAZY
12821# else
12822# ifdef RTLD_NOW
12823# define LT_DLLAZY_OR_NOW RTLD_NOW
12824# else
12825# ifdef DL_NOW
12826# define LT_DLLAZY_OR_NOW DL_NOW
12827# else
12828# define LT_DLLAZY_OR_NOW 0
12829# endif
12830# endif
12831# endif
12832# endif
12833#endif
12834
43e02a8a
RW
12835/* When -fvisbility=hidden is used, assume the code has been annotated
12836 correspondingly for the symbols needed. */
12837#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12838void fnord () __attribute__((visibility("default")));
12839#endif
12840
12841void fnord () { int i=42; }
1cf3d07d
SE
12842int main ()
12843{
12844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12845 int status = $lt_dlunknown;
12846
12847 if (self)
12848 {
12849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12850 else
12851 {
12852 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12853 else puts (dlerror ());
12854 }
1cf3d07d
SE
12855 /* dlclose (self); */
12856 }
12857 else
12858 puts (dlerror ());
12859
d58dead8 12860 return status;
1cf3d07d
SE
12861}
12862_LT_EOF
5213506e 12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12864 (eval $ac_link) 2>&5
12865 ac_status=$?
5213506e
RW
12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12868 (./conftest; exit; ) >&5 2>/dev/null
12869 lt_status=$?
12870 case x$lt_status in
12871 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12872 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12873 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12874 esac
12875 else :
12876 # compilation failed
12877 lt_cv_dlopen_self=no
12878 fi
12879fi
12880rm -fr conftest*
12881
12882
12883fi
5213506e
RW
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12885$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12886
12887 if test "x$lt_cv_dlopen_self" = xyes; then
12888 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12890$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12891if ${lt_cv_dlopen_self_static+:} false; then :
5213506e 12892 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12893else
12894 if test "$cross_compiling" = yes; then :
12895 lt_cv_dlopen_self_static=cross
12896else
12897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12898 lt_status=$lt_dlunknown
12899 cat > conftest.$ac_ext <<_LT_EOF
6d2294a8 12900#line 12900 "configure"
1cf3d07d
SE
12901#include "confdefs.h"
12902
12903#if HAVE_DLFCN_H
12904#include <dlfcn.h>
12905#endif
12906
12907#include <stdio.h>
12908
12909#ifdef RTLD_GLOBAL
12910# define LT_DLGLOBAL RTLD_GLOBAL
12911#else
12912# ifdef DL_GLOBAL
12913# define LT_DLGLOBAL DL_GLOBAL
12914# else
12915# define LT_DLGLOBAL 0
12916# endif
12917#endif
12918
12919/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12920 find out it does not work in some platform. */
12921#ifndef LT_DLLAZY_OR_NOW
12922# ifdef RTLD_LAZY
12923# define LT_DLLAZY_OR_NOW RTLD_LAZY
12924# else
12925# ifdef DL_LAZY
12926# define LT_DLLAZY_OR_NOW DL_LAZY
12927# else
12928# ifdef RTLD_NOW
12929# define LT_DLLAZY_OR_NOW RTLD_NOW
12930# else
12931# ifdef DL_NOW
12932# define LT_DLLAZY_OR_NOW DL_NOW
12933# else
12934# define LT_DLLAZY_OR_NOW 0
12935# endif
12936# endif
12937# endif
12938# endif
12939#endif
12940
43e02a8a
RW
12941/* When -fvisbility=hidden is used, assume the code has been annotated
12942 correspondingly for the symbols needed. */
12943#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12944void fnord () __attribute__((visibility("default")));
12945#endif
12946
12947void fnord () { int i=42; }
1cf3d07d
SE
12948int main ()
12949{
12950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12951 int status = $lt_dlunknown;
12952
12953 if (self)
12954 {
12955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12956 else
12957 {
12958 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12959 else puts (dlerror ());
12960 }
1cf3d07d
SE
12961 /* dlclose (self); */
12962 }
12963 else
12964 puts (dlerror ());
12965
d58dead8 12966 return status;
1cf3d07d
SE
12967}
12968_LT_EOF
5213506e 12969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12970 (eval $ac_link) 2>&5
12971 ac_status=$?
5213506e
RW
12972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12973 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12974 (./conftest; exit; ) >&5 2>/dev/null
12975 lt_status=$?
12976 case x$lt_status in
12977 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12978 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12979 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12980 esac
12981 else :
12982 # compilation failed
12983 lt_cv_dlopen_self_static=no
12984 fi
12985fi
12986rm -fr conftest*
12987
12988
12989fi
5213506e
RW
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12991$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12992 fi
12993
12994 CPPFLAGS="$save_CPPFLAGS"
12995 LDFLAGS="$save_LDFLAGS"
12996 LIBS="$save_LIBS"
12997 ;;
12998 esac
12999
13000 case $lt_cv_dlopen_self in
13001 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13002 *) enable_dlopen_self=unknown ;;
13003 esac
13004
13005 case $lt_cv_dlopen_self_static in
13006 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13007 *) enable_dlopen_self_static=unknown ;;
13008 esac
13009fi
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027striplib=
13028old_striplib=
5213506e
RW
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13030$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
13031if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13032 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13033 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13035$as_echo "yes" >&6; }
1cf3d07d
SE
13036else
13037# FIXME - insert some real tests, host_os isn't really good enough
13038 case $host_os in
13039 darwin*)
13040 if test -n "$STRIP" ; then
13041 striplib="$STRIP -x"
13042 old_striplib="$STRIP -S"
5213506e
RW
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13044$as_echo "yes" >&6; }
1cf3d07d 13045 else
5213506e
RW
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047$as_echo "no" >&6; }
1cf3d07d
SE
13048 fi
13049 ;;
13050 *)
5213506e
RW
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
1cf3d07d
SE
13053 ;;
13054 esac
13055fi
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
43e02a8a
RW
13068 # Report which library types will actually be built
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13070$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13072$as_echo "$can_build_shared" >&6; }
1cf3d07d 13073
43e02a8a
RW
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13075$as_echo_n "checking whether to build shared libraries... " >&6; }
13076 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 13077
43e02a8a
RW
13078 # On AIX, shared libraries and static libraries use the same namespace, and
13079 # are all built from PIC.
13080 case $host_os in
13081 aix3*)
13082 test "$enable_shared" = yes && enable_static=no
13083 if test -n "$RANLIB"; then
13084 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13085 postinstall_cmds='$RANLIB $lib'
13086 fi
13087 ;;
1cf3d07d 13088
43e02a8a
RW
13089 aix[4-9]*)
13090 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13091 test "$enable_shared" = yes && enable_static=no
13092 fi
13093 ;;
13094 esac
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13096$as_echo "$enable_shared" >&6; }
1cf3d07d 13097
43e02a8a
RW
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13099$as_echo_n "checking whether to build static libraries... " >&6; }
13100 # Make sure either enable_shared or enable_static is yes.
13101 test "$enable_shared" = yes || enable_static=yes
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13103$as_echo "$enable_static" >&6; }
1cf3d07d 13104
1cf3d07d 13105
1cf3d07d 13106
1cf3d07d
SE
13107
13108fi
1cf3d07d
SE
13109ac_ext=c
13110ac_cpp='$CPP $CPPFLAGS'
13111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13113ac_compiler_gnu=$ac_cv_c_compiler_gnu
13114
43e02a8a
RW
13115CC="$lt_save_CC"
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129 ac_config_commands="$ac_config_commands libtool"
13130
13131
13132
13133
13134# Only expand once:
13135
13136
9b025925
IS
13137LIBM=
13138case $host in
13139*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13140 # These system don't have libm, or don't need it
13141 ;;
13142*-ncr-sysv4.3*)
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13144$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13145if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13146 $as_echo_n "(cached) " >&6
13147else
13148 ac_check_lib_save_LIBS=$LIBS
13149LIBS="-lmw $LIBS"
13150if test x$gcc_no_link = xyes; then
13151 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13152fi
13153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154/* end confdefs.h. */
13155
13156/* Override any GCC internal prototype to avoid an error.
13157 Use char because int might match the return type of a GCC
13158 builtin and then its argument prototype would still apply. */
13159#ifdef __cplusplus
13160extern "C"
13161#endif
13162char _mwvalidcheckl ();
13163int
13164main ()
13165{
13166return _mwvalidcheckl ();
13167 ;
13168 return 0;
13169}
13170_ACEOF
13171if ac_fn_c_try_link "$LINENO"; then :
13172 ac_cv_lib_mw__mwvalidcheckl=yes
13173else
13174 ac_cv_lib_mw__mwvalidcheckl=no
13175fi
13176rm -f core conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178LIBS=$ac_check_lib_save_LIBS
13179fi
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13181$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13182if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13183 LIBM="-lmw"
13184fi
13185
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13187$as_echo_n "checking for cos in -lm... " >&6; }
13188if ${ac_cv_lib_m_cos+:} false; then :
13189 $as_echo_n "(cached) " >&6
13190else
13191 ac_check_lib_save_LIBS=$LIBS
13192LIBS="-lm $LIBS"
13193if test x$gcc_no_link = xyes; then
13194 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13195fi
13196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197/* end confdefs.h. */
13198
13199/* Override any GCC internal prototype to avoid an error.
13200 Use char because int might match the return type of a GCC
13201 builtin and then its argument prototype would still apply. */
13202#ifdef __cplusplus
13203extern "C"
13204#endif
13205char cos ();
13206int
13207main ()
13208{
13209return cos ();
13210 ;
13211 return 0;
13212}
13213_ACEOF
13214if ac_fn_c_try_link "$LINENO"; then :
13215 ac_cv_lib_m_cos=yes
13216else
13217 ac_cv_lib_m_cos=no
13218fi
13219rm -f core conftest.err conftest.$ac_objext \
13220 conftest$ac_exeext conftest.$ac_ext
13221LIBS=$ac_check_lib_save_LIBS
13222fi
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13224$as_echo "$ac_cv_lib_m_cos" >&6; }
13225if test "x$ac_cv_lib_m_cos" = xyes; then :
13226 LIBM="$LIBM -lm"
13227fi
13228
13229 ;;
13230*)
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13232$as_echo_n "checking for cos in -lm... " >&6; }
13233if ${ac_cv_lib_m_cos+:} false; then :
13234 $as_echo_n "(cached) " >&6
13235else
13236 ac_check_lib_save_LIBS=$LIBS
13237LIBS="-lm $LIBS"
13238if test x$gcc_no_link = xyes; then
13239 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13240fi
13241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242/* end confdefs.h. */
13243
13244/* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13247#ifdef __cplusplus
13248extern "C"
13249#endif
13250char cos ();
13251int
13252main ()
13253{
13254return cos ();
13255 ;
13256 return 0;
13257}
13258_ACEOF
13259if ac_fn_c_try_link "$LINENO"; then :
13260 ac_cv_lib_m_cos=yes
13261else
13262 ac_cv_lib_m_cos=no
13263fi
13264rm -f core conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266LIBS=$ac_check_lib_save_LIBS
13267fi
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13269$as_echo "$ac_cv_lib_m_cos" >&6; }
13270if test "x$ac_cv_lib_m_cos" = xyes; then :
13271 LIBM="-lm"
13272fi
13273
13274 ;;
13275esac
13276
13277
43e02a8a
RW
13278
13279
7de6ba7a
DK
13280
13281case $host in
13282 *-cygwin* | *-mingw*)
13283 # 'host' will be top-level target in the case of a target lib,
13284 # we must compare to with_cross_host to decide if this is a native
13285 # or cross-compiler and select where to install dlls appropriately.
13286 if test -n "$with_cross_host" &&
13287 test x"$with_cross_host" != x"no"; then
13288 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13289 else
13290 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13291 fi
13292 ;;
13293 *)
13294 lt_host_flags=
13295 ;;
13296esac
13297
13298
13299
13300
13301
43e02a8a 13302#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 13303
43e02a8a
RW
13304# We need gfortran to compile parts of the library
13305#AC_PROG_FC(gfortran)
13306FC="$GFORTRAN"
5213506e
RW
13307ac_ext=${ac_fc_srcext-f}
13308ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13309ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13310ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13311if test -n "$ac_tool_prefix"; then
43e02a8a 13312 for ac_prog in gfortran
1cf3d07d
SE
13313 do
13314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13318if ${ac_cv_prog_FC+:} false; then :
5213506e 13319 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13320else
13321 if test -n "$FC"; then
13322 ac_cv_prog_FC="$FC" # Let the user override the test.
13323else
13324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
5213506e 13329 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 13331 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
13333 break 2
13334 fi
13335done
5213506e
RW
13336 done
13337IFS=$as_save_IFS
1cf3d07d
SE
13338
13339fi
13340fi
13341FC=$ac_cv_prog_FC
13342if test -n "$FC"; then
5213506e
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13344$as_echo "$FC" >&6; }
1cf3d07d 13345else
5213506e
RW
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
1cf3d07d
SE
13348fi
13349
5213506e 13350
1cf3d07d
SE
13351 test -n "$FC" && break
13352 done
13353fi
13354if test -z "$FC"; then
13355 ac_ct_FC=$FC
43e02a8a 13356 for ac_prog in gfortran
1cf3d07d
SE
13357do
13358 # Extract the first word of "$ac_prog", so it can be a program name with args.
13359set dummy $ac_prog; ac_word=$2
5213506e
RW
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13362if ${ac_cv_prog_ac_ct_FC+:} false; then :
5213506e 13363 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13364else
13365 if test -n "$ac_ct_FC"; then
13366 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13367else
13368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369for as_dir in $PATH
13370do
13371 IFS=$as_save_IFS
13372 test -z "$as_dir" && as_dir=.
5213506e 13373 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 13375 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 13376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
13377 break 2
13378 fi
13379done
5213506e
RW
13380 done
13381IFS=$as_save_IFS
1cf3d07d
SE
13382
13383fi
13384fi
13385ac_ct_FC=$ac_cv_prog_ac_ct_FC
13386if test -n "$ac_ct_FC"; then
5213506e
RW
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13388$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 13389else
5213506e
RW
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391$as_echo "no" >&6; }
1cf3d07d
SE
13392fi
13393
5213506e 13394
1cf3d07d 13395 test -n "$ac_ct_FC" && break
38d24731
RW
13396done
13397
5213506e
RW
13398 if test "x$ac_ct_FC" = x; then
13399 FC=""
13400 else
13401 case $cross_compiling:$ac_tool_warned in
13402yes:)
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13405ac_tool_warned=yes ;;
13406esac
13407 FC=$ac_ct_FC
13408 fi
1cf3d07d
SE
13409fi
13410
13411
13412# Provide some information about the compiler.
5213506e
RW
13413$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13414set X $ac_compile
13415ac_compiler=$2
13416for ac_option in --version -v -V -qversion; do
13417 { { ac_try="$ac_compiler $ac_option >&5"
13418case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421esac
13422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13423$as_echo "$ac_try_echo"; } >&5
13424 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 13425 ac_status=$?
5213506e
RW
13426 if test -s conftest.err; then
13427 sed '10a\
13428... rest of stderr output deleted ...
13429 10q' conftest.err >conftest.er1
13430 cat conftest.er1 >&5
5213506e 13431 fi
22e05272 13432 rm -f conftest.er1 conftest.err
5213506e
RW
13433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13434 test $ac_status = 0; }
13435done
1cf3d07d
SE
13436rm -f a.out
13437
13438# If we don't use `.F' as extension, the preprocessor is not run on the
13439# input file. (Note that this only needs to work for GNU compilers.)
13440ac_save_ext=$ac_ext
13441ac_ext=F
5213506e
RW
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13443$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
22e05272 13444if ${ac_cv_fc_compiler_gnu+:} false; then :
5213506e 13445 $as_echo_n "(cached) " >&6
1cf3d07d 13446else
5213506e 13447 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13448 program main
13449#ifndef __GNUC__
13450 choke me
13451#endif
13452
13453 end
13454_ACEOF
5213506e 13455if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13456 ac_compiler_gnu=yes
13457else
5213506e 13458 ac_compiler_gnu=no
1cf3d07d 13459fi
5213506e 13460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13461ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13462
13463fi
5213506e
RW
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13465$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 13466ac_ext=$ac_save_ext
5213506e
RW
13467ac_test_FCFLAGS=${FCFLAGS+set}
13468ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 13469FCFLAGS=
5213506e
RW
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13471$as_echo_n "checking whether $FC accepts -g... " >&6; }
22e05272 13472if ${ac_cv_prog_fc_g+:} false; then :
5213506e 13473 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13474else
13475 FCFLAGS=-g
5213506e 13476cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13477 program main
13478
13479 end
13480_ACEOF
5213506e 13481if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
13482 ac_cv_prog_fc_g=yes
13483else
5213506e 13484 ac_cv_prog_fc_g=no
1cf3d07d 13485fi
5213506e 13486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
13487
13488fi
5213506e
RW
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13490$as_echo "$ac_cv_prog_fc_g" >&6; }
13491if test "$ac_test_FCFLAGS" = set; then
13492 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
13493elif test $ac_cv_prog_fc_g = yes; then
13494 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13495 FCFLAGS="-g -O2"
13496 else
13497 FCFLAGS="-g"
13498 fi
13499else
13500 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13501 FCFLAGS="-O2"
13502 else
13503 FCFLAGS=
13504 fi
13505fi
13506
22e05272
JM
13507if test $ac_compiler_gnu = yes; then
13508 GFC=yes
13509else
13510 GFC=
13511fi
1cf3d07d
SE
13512ac_ext=c
13513ac_cpp='$CPP $CPPFLAGS'
13514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13516ac_compiler_gnu=$ac_cv_c_compiler_gnu
13517
5213506e
RW
13518 ac_ext=${ac_fc_srcext-f}
13519ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13520ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
13521ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13522
13523
43e02a8a
RW
13524if test -z "$FC" || test "X$FC" = "Xno"; then
13525 _lt_disable_FC=yes
13526fi
13527
1cf3d07d
SE
13528archive_cmds_need_lc_FC=no
13529allow_undefined_flag_FC=
13530always_export_symbols_FC=no
13531archive_expsym_cmds_FC=
13532export_dynamic_flag_spec_FC=
13533hardcode_direct_FC=no
13534hardcode_direct_absolute_FC=no
13535hardcode_libdir_flag_spec_FC=
13536hardcode_libdir_flag_spec_ld_FC=
13537hardcode_libdir_separator_FC=
13538hardcode_minus_L_FC=no
13539hardcode_automatic_FC=no
13540inherit_rpath_FC=no
13541module_cmds_FC=
13542module_expsym_cmds_FC=
13543link_all_deplibs_FC=unknown
13544old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
13545reload_flag_FC=$reload_flag
13546reload_cmds_FC=$reload_cmds
1cf3d07d
SE
13547no_undefined_flag_FC=
13548whole_archive_flag_spec_FC=
13549enable_shared_with_static_runtimes_FC=no
13550
13551# Source file extension for fc test sources.
13552ac_ext=${ac_fc_srcext-f}
13553
13554# Object file extension for compiled fc test sources.
13555objext=o
13556objext_FC=$objext
13557
13558# No sense in running all these tests if we already determined that
13559# the FC compiler isn't working. Some variables (like enable_shared)
13560# are currently assumed to apply to all compilers on this platform,
13561# and will be corrupted by setting them based on a non-working compiler.
13562if test "$_lt_disable_FC" != yes; then
13563 # Code to be used in simple compile tests
13564 lt_simple_compile_test_code="\
13565 subroutine t
13566 return
13567 end
13568"
13569
13570 # Code to be used in simple link tests
13571 lt_simple_link_test_code="\
13572 program t
13573 end
13574"
13575
13576 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13577
13578
13579
13580
13581
13582
13583# If no C compiler was specified, use CC.
13584LTCC=${LTCC-"$CC"}
13585
13586# If no C compiler flags were specified, use CFLAGS.
13587LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13588
13589# Allow CC to be a program name with arguments.
13590compiler=$CC
13591
13592
13593 # save warnings/boilerplate of simple test code
13594 ac_outfile=conftest.$ac_objext
13595echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13596eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13597_lt_compiler_boilerplate=`cat conftest.err`
13598$RM conftest*
13599
13600 ac_outfile=conftest.$ac_objext
13601echo "$lt_simple_link_test_code" >conftest.$ac_ext
13602eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13603_lt_linker_boilerplate=`cat conftest.err`
d58dead8 13604$RM -r conftest*
1cf3d07d
SE
13605
13606
13607 # Allow CC to be a program name with arguments.
13608 lt_save_CC="$CC"
d58dead8 13609 lt_save_GCC=$GCC
1cf3d07d
SE
13610 CC=${FC-"f95"}
13611 compiler=$CC
d58dead8
PG
13612 GCC=$ac_cv_fc_compiler_gnu
13613
1cf3d07d
SE
13614 compiler_FC=$CC
13615 for cc_temp in $compiler""; do
13616 case $cc_temp in
13617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13619 \-*) ;;
13620 *) break;;
13621 esac
13622done
43e02a8a 13623cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13624
13625
13626 if test -n "$compiler"; then
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13628$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13630$as_echo "$can_build_shared" >&6; }
1cf3d07d 13631
5213506e
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13633$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13634 test "$can_build_shared" = "no" && enable_shared=no
13635
13636 # On AIX, shared libraries and static libraries use the same namespace, and
13637 # are all built from PIC.
13638 case $host_os in
13639 aix3*)
13640 test "$enable_shared" = yes && enable_static=no
13641 if test -n "$RANLIB"; then
13642 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13643 postinstall_cmds='$RANLIB $lib'
13644 fi
13645 ;;
4f6bebc3 13646 aix[4-9]*)
1cf3d07d
SE
13647 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13648 test "$enable_shared" = yes && enable_static=no
13649 fi
13650 ;;
13651 esac
5213506e
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13653$as_echo "$enable_shared" >&6; }
1cf3d07d 13654
5213506e
RW
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13656$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13657 # Make sure either enable_shared or enable_static is yes.
13658 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13660$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13661
13662 GCC_FC="$ac_cv_fc_compiler_gnu"
13663 LD_FC="$LD"
13664
13665 ## CAVEAT EMPTOR:
13666 ## There is no encapsulation within the following macros, do not change
13667 ## the running order or otherwise move them around unless you know exactly
13668 ## what you are doing...
13669 # Dependencies to place before and after the object being linked:
13670predep_objects_FC=
13671postdep_objects_FC=
13672predeps_FC=
13673postdeps_FC=
13674compiler_lib_search_path_FC=
13675
13676cat > conftest.$ac_ext <<_LT_EOF
13677 subroutine foo
13678 implicit none
13679 integer a
13680 a=0
13681 return
13682 end
13683_LT_EOF
13684
5213506e 13685if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13686 (eval $ac_compile) 2>&5
13687 ac_status=$?
5213506e
RW
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }; then
1cf3d07d
SE
13690 # Parse the compiler output and extract the necessary
13691 # objects, libraries and library flags.
13692
13693 # Sentinel used to keep track of whether or not we are before
13694 # the conftest object file.
13695 pre_test_object_deps_done=no
13696
d58dead8 13697 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13698 case $p in
13699
13700 -L* | -R* | -l*)
13701 # Some compilers place space between "-{L,R}" and the path.
13702 # Remove the space.
13703 if test $p = "-L" ||
13704 test $p = "-R"; then
13705 prev=$p
13706 continue
13707 else
13708 prev=
13709 fi
13710
13711 if test "$pre_test_object_deps_done" = no; then
13712 case $p in
13713 -L* | -R*)
13714 # Internal compiler library paths should come after those
13715 # provided the user. The postdeps already come after the
13716 # user supplied libs so there is no need to process them.
13717 if test -z "$compiler_lib_search_path_FC"; then
13718 compiler_lib_search_path_FC="${prev}${p}"
13719 else
13720 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13721 fi
13722 ;;
13723 # The "-l" case would never come before the object being
13724 # linked, so don't bother handling this case.
13725 esac
13726 else
13727 if test -z "$postdeps_FC"; then
13728 postdeps_FC="${prev}${p}"
13729 else
13730 postdeps_FC="${postdeps_FC} ${prev}${p}"
13731 fi
13732 fi
13733 ;;
13734
13735 *.$objext)
13736 # This assumes that the test object file only shows up
13737 # once in the compiler output.
13738 if test "$p" = "conftest.$objext"; then
13739 pre_test_object_deps_done=yes
13740 continue
13741 fi
13742
13743 if test "$pre_test_object_deps_done" = no; then
13744 if test -z "$predep_objects_FC"; then
13745 predep_objects_FC="$p"
13746 else
13747 predep_objects_FC="$predep_objects_FC $p"
13748 fi
13749 else
13750 if test -z "$postdep_objects_FC"; then
13751 postdep_objects_FC="$p"
13752 else
13753 postdep_objects_FC="$postdep_objects_FC $p"
13754 fi
13755 fi
13756 ;;
13757
13758 *) ;; # Ignore the rest.
13759
13760 esac
13761 done
13762
13763 # Clean up.
13764 rm -f a.out a.exe
13765else
13766 echo "libtool.m4: error: problem compiling FC test program"
13767fi
13768
13769$RM -f confest.$objext
13770
13771# PORTME: override above test on systems where it is broken
13772
13773
13774case " $postdeps_FC " in
13775*" -lc "*) archive_cmds_need_lc_FC=no ;;
13776esac
d58dead8
PG
13777 compiler_lib_search_dirs_FC=
13778if test -n "${compiler_lib_search_path_FC}"; then
13779 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13780fi
13781
13782
13783
13784
13785
1cf3d07d
SE
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812 lt_prog_compiler_wl_FC=
13813lt_prog_compiler_pic_FC=
13814lt_prog_compiler_static_FC=
13815
5213506e
RW
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13817$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13818
13819 if test "$GCC" = yes; then
13820 lt_prog_compiler_wl_FC='-Wl,'
13821 lt_prog_compiler_static_FC='-static'
13822
13823 case $host_os in
13824 aix*)
13825 # All AIX code is PIC.
13826 if test "$host_cpu" = ia64; then
13827 # AIX 5 now supports IA64 processor
13828 lt_prog_compiler_static_FC='-Bstatic'
13829 fi
bad8a4a7 13830 lt_prog_compiler_pic_FC='-fPIC'
1cf3d07d
SE
13831 ;;
13832
13833 amigaos*)
d58dead8
PG
13834 case $host_cpu in
13835 powerpc)
13836 # see comment about AmigaOS4 .so support
13837 lt_prog_compiler_pic_FC='-fPIC'
13838 ;;
13839 m68k)
13840 # FIXME: we need at least 68020 code to build shared libraries, but
13841 # adding the `-m68020' flag to GCC prevents building anything better,
13842 # like `-m68040'.
13843 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13844 ;;
13845 esac
1cf3d07d
SE
13846 ;;
13847
13848 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13849 # PIC is the default for these OSes.
13850 ;;
13851
d58dead8 13852 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13853 # This hack is so that the source file can tell whether it is being
13854 # built for inclusion in a dll (and should export symbols for example).
13855 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13856 # (--disable-auto-import) libraries
13857 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13858 ;;
13859
13860 darwin* | rhapsody*)
13861 # PIC is the default on this platform
13862 # Common symbols not allowed in MH_DYLIB files
13863 lt_prog_compiler_pic_FC='-fno-common'
13864 ;;
13865
43e02a8a
RW
13866 haiku*)
13867 # PIC is the default for Haiku.
13868 # The "-static" flag exists, but is broken.
13869 lt_prog_compiler_static_FC=
13870 ;;
13871
1cf3d07d 13872 hpux*)
d58dead8
PG
13873 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13874 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13875 # sets the default TLS model and affects inlining.
1cf3d07d 13876 case $host_cpu in
d58dead8 13877 hppa*64*)
1cf3d07d
SE
13878 # +Z the default
13879 ;;
13880 *)
13881 lt_prog_compiler_pic_FC='-fPIC'
13882 ;;
13883 esac
13884 ;;
13885
13886 interix[3-9]*)
13887 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13888 # Instead, we relocate shared libraries at runtime.
13889 ;;
13890
13891 msdosdjgpp*)
13892 # Just because we use GCC doesn't mean we suddenly get shared libraries
13893 # on systems that don't support them.
13894 lt_prog_compiler_can_build_shared_FC=no
13895 enable_shared=no
13896 ;;
13897
13898 *nto* | *qnx*)
13899 # QNX uses GNU C++, but need to define -shared option too, otherwise
13900 # it will coredump.
13901 lt_prog_compiler_pic_FC='-fPIC -shared'
13902 ;;
13903
13904 sysv4*MP*)
13905 if test -d /usr/nec; then
13906 lt_prog_compiler_pic_FC=-Kconform_pic
13907 fi
13908 ;;
13909
13910 *)
13911 lt_prog_compiler_pic_FC='-fPIC'
13912 ;;
13913 esac
43e02a8a
RW
13914
13915 case $cc_basename in
13916 nvcc*) # Cuda Compiler Driver 2.2
13917 lt_prog_compiler_wl_FC='-Xlinker '
13918 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13919 ;;
13920 esac
1cf3d07d
SE
13921 else
13922 # PORTME Check for flag to pass linker flags through the system compiler.
13923 case $host_os in
13924 aix*)
13925 lt_prog_compiler_wl_FC='-Wl,'
13926 if test "$host_cpu" = ia64; then
13927 # AIX 5 now supports IA64 processor
13928 lt_prog_compiler_static_FC='-Bstatic'
13929 else
13930 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13931 fi
13932 ;;
1cf3d07d 13933
d58dead8 13934 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13935 # This hack is so that the source file can tell whether it is being
13936 # built for inclusion in a dll (and should export symbols for example).
13937 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13938 ;;
13939
13940 hpux9* | hpux10* | hpux11*)
13941 lt_prog_compiler_wl_FC='-Wl,'
13942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13943 # not for PA HP-UX.
13944 case $host_cpu in
13945 hppa*64*|ia64*)
13946 # +Z the default
13947 ;;
13948 *)
13949 lt_prog_compiler_pic_FC='+Z'
13950 ;;
13951 esac
13952 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13953 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13954 ;;
13955
13956 irix5* | irix6* | nonstopux*)
13957 lt_prog_compiler_wl_FC='-Wl,'
13958 # PIC (with -KPIC) is the default.
13959 lt_prog_compiler_static_FC='-non_shared'
13960 ;;
13961
7a9d3fe8 13962 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13963 case $cc_basename in
d58dead8
PG
13964 # old Intel for x86_64 which still supported -KPIC.
13965 ecc*)
1cf3d07d
SE
13966 lt_prog_compiler_wl_FC='-Wl,'
13967 lt_prog_compiler_pic_FC='-KPIC'
13968 lt_prog_compiler_static_FC='-static'
13969 ;;
d58dead8
PG
13970 # icc used to be incompatible with GCC.
13971 # ICC 10 doesn't accept -KPIC any more.
13972 icc* | ifort*)
13973 lt_prog_compiler_wl_FC='-Wl,'
13974 lt_prog_compiler_pic_FC='-fPIC'
13975 lt_prog_compiler_static_FC='-static'
13976 ;;
13977 # Lahey Fortran 8.1.
13978 lf95*)
13979 lt_prog_compiler_wl_FC='-Wl,'
13980 lt_prog_compiler_pic_FC='--shared'
13981 lt_prog_compiler_static_FC='--static'
13982 ;;
43e02a8a 13983 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13984 # Portland Group compilers (*not* the Pentium gcc compiler,
13985 # which looks to be a dead project)
13986 lt_prog_compiler_wl_FC='-Wl,'
13987 lt_prog_compiler_pic_FC='-fpic'
13988 lt_prog_compiler_static_FC='-Bstatic'
13989 ;;
13990 ccc*)
13991 lt_prog_compiler_wl_FC='-Wl,'
13992 # All Alpha code is PIC.
13993 lt_prog_compiler_static_FC='-non_shared'
13994 ;;
43e02a8a
RW
13995 xl* | bgxl* | bgf* | mpixl*)
13996 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13997 lt_prog_compiler_wl_FC='-Wl,'
13998 lt_prog_compiler_pic_FC='-qpic'
13999 lt_prog_compiler_static_FC='-qstaticlink'
14000 ;;
1cf3d07d
SE
14001 *)
14002 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
14003 *Sun\ F* | *Sun*Fortran*)
14004 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
14005 lt_prog_compiler_pic_FC='-KPIC'
14006 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 14007 lt_prog_compiler_wl_FC=''
1cf3d07d 14008 ;;
43e02a8a
RW
14009 *Sun\ C*)
14010 # Sun C 5.9
1cf3d07d
SE
14011 lt_prog_compiler_pic_FC='-KPIC'
14012 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 14013 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
14014 ;;
14015 esac
14016 ;;
14017 esac
14018 ;;
14019
14020 newsos6)
14021 lt_prog_compiler_pic_FC='-KPIC'
14022 lt_prog_compiler_static_FC='-Bstatic'
14023 ;;
14024
14025 *nto* | *qnx*)
14026 # QNX uses GNU C++, but need to define -shared option too, otherwise
14027 # it will coredump.
14028 lt_prog_compiler_pic_FC='-fPIC -shared'
14029 ;;
14030
14031 osf3* | osf4* | osf5*)
14032 lt_prog_compiler_wl_FC='-Wl,'
14033 # All OSF/1 code is PIC.
14034 lt_prog_compiler_static_FC='-non_shared'
14035 ;;
14036
14037 rdos*)
14038 lt_prog_compiler_static_FC='-non_shared'
14039 ;;
14040
14041 solaris*)
14042 lt_prog_compiler_pic_FC='-KPIC'
14043 lt_prog_compiler_static_FC='-Bstatic'
14044 case $cc_basename in
14045 f77* | f90* | f95*)
14046 lt_prog_compiler_wl_FC='-Qoption ld ';;
14047 *)
14048 lt_prog_compiler_wl_FC='-Wl,';;
14049 esac
14050 ;;
14051
14052 sunos4*)
14053 lt_prog_compiler_wl_FC='-Qoption ld '
14054 lt_prog_compiler_pic_FC='-PIC'
14055 lt_prog_compiler_static_FC='-Bstatic'
14056 ;;
14057
14058 sysv4 | sysv4.2uw2* | sysv4.3*)
14059 lt_prog_compiler_wl_FC='-Wl,'
14060 lt_prog_compiler_pic_FC='-KPIC'
14061 lt_prog_compiler_static_FC='-Bstatic'
14062 ;;
14063
14064 sysv4*MP*)
14065 if test -d /usr/nec ;then
14066 lt_prog_compiler_pic_FC='-Kconform_pic'
14067 lt_prog_compiler_static_FC='-Bstatic'
14068 fi
14069 ;;
14070
14071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14072 lt_prog_compiler_wl_FC='-Wl,'
14073 lt_prog_compiler_pic_FC='-KPIC'
14074 lt_prog_compiler_static_FC='-Bstatic'
14075 ;;
14076
14077 unicos*)
14078 lt_prog_compiler_wl_FC='-Wl,'
14079 lt_prog_compiler_can_build_shared_FC=no
14080 ;;
14081
14082 uts4*)
14083 lt_prog_compiler_pic_FC='-pic'
14084 lt_prog_compiler_static_FC='-Bstatic'
14085 ;;
14086
14087 *)
14088 lt_prog_compiler_can_build_shared_FC=no
14089 ;;
14090 esac
14091 fi
14092
14093case $host_os in
14094 # For platforms which do not support PIC, -DPIC is meaningless:
14095 *djgpp*)
14096 lt_prog_compiler_pic_FC=
14097 ;;
14098 *)
14099 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
14100 ;;
14101esac
5213506e
RW
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
14103$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
14104
14105
14106
14107#
14108# Check to make sure the PIC flag actually works.
14109#
14110if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
14112$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
22e05272 14113if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
5213506e 14114 $as_echo_n "(cached) " >&6
1cf3d07d 14115else
d58dead8 14116 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
14117 ac_outfile=conftest.$ac_objext
14118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14119 lt_compiler_flag="$lt_prog_compiler_pic_FC"
14120 # Insert the option either (1) after the last *FLAGS variable, or
14121 # (2) before a word containing "conftest.", or (3) at the end.
14122 # Note that $ac_compile itself does not contain backslashes and begins
14123 # with a dollar sign (not a hyphen), so the echo should work correctly.
14124 # The option is referenced via a variable to avoid confusing sed.
14125 lt_compile=`echo "$ac_compile" | $SED \
14126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14128 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14130 (eval "$lt_compile" 2>conftest.err)
14131 ac_status=$?
14132 cat conftest.err >&5
43e02a8a 14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14134 if (exit $ac_status) && test -s "$ac_outfile"; then
14135 # The compiler can only warn and ignore the option if not recognized
14136 # So say no if there are warnings other than the usual output.
43e02a8a 14137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
14138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 14140 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
14141 fi
14142 fi
14143 $RM conftest*
14144
14145fi
5213506e
RW
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
14147$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 14148
d58dead8 14149if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
14150 case $lt_prog_compiler_pic_FC in
14151 "" | " "*) ;;
14152 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
14153 esac
14154else
14155 lt_prog_compiler_pic_FC=
14156 lt_prog_compiler_can_build_shared_FC=no
14157fi
14158
14159fi
14160
14161
14162
14163#
14164# Check to make sure the static flag actually works.
14165#
14166wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14168$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 14169if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
5213506e 14170 $as_echo_n "(cached) " >&6
1cf3d07d 14171else
d58dead8 14172 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
14173 save_LDFLAGS="$LDFLAGS"
14174 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14175 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14176 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14177 # The linker can only warn and ignore the option if not recognized
14178 # So say no if there are warnings
14179 if test -s conftest.err; then
14180 # Append any errors to the config.log.
14181 cat conftest.err 1>&5
43e02a8a 14182 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
14183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14184 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 14185 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
14186 fi
14187 else
d58dead8 14188 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
14189 fi
14190 fi
d58dead8 14191 $RM -r conftest*
1cf3d07d
SE
14192 LDFLAGS="$save_LDFLAGS"
14193
14194fi
5213506e
RW
14195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
14196$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 14197
d58dead8 14198if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
14199 :
14200else
14201 lt_prog_compiler_static_FC=
14202fi
14203
14204
14205
14206
5213506e
RW
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14208$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14209if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 14210 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14211else
14212 lt_cv_prog_compiler_c_o_FC=no
14213 $RM -r conftest 2>/dev/null
14214 mkdir conftest
14215 cd conftest
14216 mkdir out
14217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14218
14219 lt_compiler_flag="-o out/conftest2.$ac_objext"
14220 # Insert the option either (1) after the last *FLAGS variable, or
14221 # (2) before a word containing "conftest.", or (3) at the end.
14222 # Note that $ac_compile itself does not contain backslashes and begins
14223 # with a dollar sign (not a hyphen), so the echo should work correctly.
14224 lt_compile=`echo "$ac_compile" | $SED \
14225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14227 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14229 (eval "$lt_compile" 2>out/conftest.err)
14230 ac_status=$?
14231 cat out/conftest.err >&5
43e02a8a 14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14234 then
14235 # The compiler can only warn and ignore the option if not recognized
14236 # So say no if there are warnings
43e02a8a 14237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
14238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14240 lt_cv_prog_compiler_c_o_FC=yes
14241 fi
14242 fi
14243 chmod u+w . 2>&5
14244 $RM conftest*
14245 # SGI C++ compiler will create directory out/ii_files/ for
14246 # template instantiation
14247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14248 $RM out/* && rmdir out
14249 cd ..
14250 $RM -r conftest
14251 $RM conftest*
14252
14253fi
5213506e
RW
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14255$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
14256
14257
14258
5213506e
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14260$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14261if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 14262 $as_echo_n "(cached) " >&6
1cf3d07d
SE
14263else
14264 lt_cv_prog_compiler_c_o_FC=no
14265 $RM -r conftest 2>/dev/null
14266 mkdir conftest
14267 cd conftest
14268 mkdir out
14269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14270
14271 lt_compiler_flag="-o out/conftest2.$ac_objext"
14272 # Insert the option either (1) after the last *FLAGS variable, or
14273 # (2) before a word containing "conftest.", or (3) at the end.
14274 # Note that $ac_compile itself does not contain backslashes and begins
14275 # with a dollar sign (not a hyphen), so the echo should work correctly.
14276 lt_compile=`echo "$ac_compile" | $SED \
14277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14279 -e 's:$: $lt_compiler_flag:'`
43e02a8a 14280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
14281 (eval "$lt_compile" 2>out/conftest.err)
14282 ac_status=$?
14283 cat out/conftest.err >&5
43e02a8a 14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
14285 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14286 then
14287 # The compiler can only warn and ignore the option if not recognized
14288 # So say no if there are warnings
43e02a8a 14289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
14290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14292 lt_cv_prog_compiler_c_o_FC=yes
14293 fi
14294 fi
14295 chmod u+w . 2>&5
14296 $RM conftest*
14297 # SGI C++ compiler will create directory out/ii_files/ for
14298 # template instantiation
14299 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14300 $RM out/* && rmdir out
14301 cd ..
14302 $RM -r conftest
14303 $RM conftest*
14304
14305fi
5213506e
RW
14306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14307$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
14308
14309
14310
14311
14312hard_links="nottested"
14313if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14314 # do not overwrite the value of need_locks provided by the user
5213506e
RW
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14316$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
14317 hard_links=yes
14318 $RM conftest*
14319 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14320 touch conftest.a
14321 ln conftest.a conftest.b 2>&5 || hard_links=no
14322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14324$as_echo "$hard_links" >&6; }
1cf3d07d 14325 if test "$hard_links" = no; then
5213506e
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14327$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
14328 need_locks=warn
14329 fi
14330else
14331 need_locks=no
14332fi
14333
14334
14335
5213506e
RW
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14337$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
14338
14339 runpath_var=
14340 allow_undefined_flag_FC=
14341 always_export_symbols_FC=no
14342 archive_cmds_FC=
14343 archive_expsym_cmds_FC=
14344 compiler_needs_object_FC=no
14345 enable_shared_with_static_runtimes_FC=no
14346 export_dynamic_flag_spec_FC=
14347 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14348 hardcode_automatic_FC=no
14349 hardcode_direct_FC=no
14350 hardcode_direct_absolute_FC=no
14351 hardcode_libdir_flag_spec_FC=
14352 hardcode_libdir_flag_spec_ld_FC=
14353 hardcode_libdir_separator_FC=
14354 hardcode_minus_L_FC=no
14355 hardcode_shlibpath_var_FC=unsupported
14356 inherit_rpath_FC=no
14357 link_all_deplibs_FC=unknown
14358 module_cmds_FC=
14359 module_expsym_cmds_FC=
14360 old_archive_from_new_cmds_FC=
14361 old_archive_from_expsyms_cmds_FC=
14362 thread_safe_flag_spec_FC=
14363 whole_archive_flag_spec_FC=
14364 # include_expsyms should be a list of space-separated symbols to be *always*
14365 # included in the symbol list
14366 include_expsyms_FC=
14367 # exclude_expsyms can be an extended regexp of symbols to exclude
14368 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14369 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14370 # as well as any symbol that contains `d'.
d58dead8 14371 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
14372 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14373 # platforms (ab)use it in PIC code, but their linkers get confused if
14374 # the symbol is explicitly referenced. Since portable code cannot
14375 # rely on this symbol name, it's probably fine to never include it in
14376 # preloaded symbol tables.
d58dead8 14377 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
14378 extract_expsyms_cmds=
14379
14380 case $host_os in
d58dead8 14381 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14382 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14383 # When not using gcc, we currently assume that we are using
14384 # Microsoft Visual C++.
14385 if test "$GCC" != yes; then
14386 with_gnu_ld=no
14387 fi
14388 ;;
14389 interix*)
14390 # we just hope/assume this is gcc and not c89 (= MSVC++)
14391 with_gnu_ld=yes
14392 ;;
14393 openbsd*)
14394 with_gnu_ld=no
14395 ;;
14396 esac
14397
14398 ld_shlibs_FC=yes
43e02a8a
RW
14399
14400 # On some targets, GNU ld is compatible enough with the native linker
14401 # that we're better off using the native interface for both.
14402 lt_use_gnu_ld_interface=no
1cf3d07d 14403 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
14404 case $host_os in
14405 aix*)
14406 # The AIX port of GNU ld has always aspired to compatibility
14407 # with the native linker. However, as the warning in the GNU ld
14408 # block says, versions before 2.19.5* couldn't really create working
14409 # shared libraries, regardless of the interface used.
14410 case `$LD -v 2>&1` in
14411 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14412 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14413 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14414 *)
14415 lt_use_gnu_ld_interface=yes
14416 ;;
14417 esac
14418 ;;
14419 *)
14420 lt_use_gnu_ld_interface=yes
14421 ;;
14422 esac
14423 fi
14424
14425 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
14426 # If archive_cmds runs LD, not CC, wlarc should be empty
14427 wlarc='${wl}'
14428
14429 # Set some defaults for GNU ld with shared library support. These
14430 # are reset later if shared libraries are not supported. Putting them
14431 # here allows them to be overridden if necessary.
14432 runpath_var=LD_RUN_PATH
14433 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14434 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14435 # ancient GNU ld didn't support --whole-archive et. al.
14436 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14437 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14438 else
14439 whole_archive_flag_spec_FC=
14440 fi
14441 supports_anon_versioning=no
14442 case `$LD -v 2>&1` in
43e02a8a 14443 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
14444 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14447 *\ 2.11.*) ;; # other 2.11 versions
14448 *) supports_anon_versioning=yes ;;
14449 esac
14450
14451 # See if GNU ld supports shared libraries.
14452 case $host_os in
4f6bebc3 14453 aix[3-9]*)
1cf3d07d
SE
14454 # On AIX/PPC, the GNU linker is very broken
14455 if test "$host_cpu" != ia64; then
14456 ld_shlibs_FC=no
14457 cat <<_LT_EOF 1>&2
14458
43e02a8a 14459*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
14460*** to be unable to reliably create shared libraries on AIX.
14461*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
14462*** really care for shared libraries, you may want to install binutils
14463*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14464*** You will then need to restart the configuration process.
1cf3d07d
SE
14465
14466_LT_EOF
14467 fi
14468 ;;
14469
14470 amigaos*)
d58dead8
PG
14471 case $host_cpu in
14472 powerpc)
14473 # see comment about AmigaOS4 .so support
14474 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14475 archive_expsym_cmds_FC=''
14476 ;;
14477 m68k)
14478 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14479 hardcode_libdir_flag_spec_FC='-L$libdir'
14480 hardcode_minus_L_FC=yes
14481 ;;
14482 esac
1cf3d07d
SE
14483 ;;
14484
14485 beos*)
14486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14487 allow_undefined_flag_FC=unsupported
14488 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14489 # support --undefined. This deserves some investigation. FIXME
14490 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491 else
14492 ld_shlibs_FC=no
14493 fi
14494 ;;
14495
d58dead8 14496 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14497 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14498 # as there is no search path for DLLs.
14499 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 14500 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
14501 allow_undefined_flag_FC=unsupported
14502 always_export_symbols_FC=no
14503 enable_shared_with_static_runtimes_FC=yes
14504 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14505
14506 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14507 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14508 # If the export-symbols file already is a .def file (1st line
14509 # is EXPORTS), use it as is; otherwise, prepend...
14510 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14511 cp $export_symbols $output_objdir/$soname.def;
14512 else
14513 echo EXPORTS > $output_objdir/$soname.def;
14514 cat $export_symbols >> $output_objdir/$soname.def;
14515 fi~
14516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14517 else
14518 ld_shlibs_FC=no
14519 fi
14520 ;;
14521
43e02a8a
RW
14522 haiku*)
14523 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14524 link_all_deplibs_FC=yes
14525 ;;
14526
1cf3d07d
SE
14527 interix[3-9]*)
14528 hardcode_direct_FC=no
14529 hardcode_shlibpath_var_FC=no
14530 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14531 export_dynamic_flag_spec_FC='${wl}-E'
14532 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14533 # Instead, shared libraries are loaded at an image base (0x10000000 by
14534 # default) and relocated if they conflict, which is a slow very memory
14535 # consuming and fragmenting process. To avoid this, we pick a random,
14536 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14537 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14538 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14539 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14540 ;;
14541
e9085da5 14542 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
14543 tmp_diet=no
14544 if test "$host_os" = linux-dietlibc; then
14545 case $cc_basename in
14546 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14547 esac
14548 fi
14549 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14550 && test "$tmp_diet" = no
14551 then
a699d672 14552 tmp_addflag=' $pic_flag'
d58dead8 14553 tmp_sharedflag='-shared'
1cf3d07d
SE
14554 case $cc_basename,$host_cpu in
14555 pgcc*) # Portland Group C compiler
43e02a8a 14556 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
14557 tmp_addflag=' $pic_flag'
14558 ;;
43e02a8a
RW
14559 pgf77* | pgf90* | pgf95* | pgfortran*)
14560 # Portland Group f77 and f90 compilers
14561 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
14562 tmp_addflag=' $pic_flag -Mnomain' ;;
14563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14564 tmp_addflag=' -i_dynamic' ;;
14565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14566 tmp_addflag=' -i_dynamic -nofor_main' ;;
14567 ifc* | ifort*) # Intel Fortran compiler
14568 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
14569 lf95*) # Lahey Fortran 8.1
14570 whole_archive_flag_spec_FC=
14571 tmp_sharedflag='--shared' ;;
43e02a8a 14572 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
14573 tmp_sharedflag='-qmkshrobj'
14574 tmp_addflag= ;;
43e02a8a
RW
14575 nvcc*) # Cuda Compiler Driver 2.2
14576 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14577 compiler_needs_object_FC=yes
14578 ;;
1cf3d07d
SE
14579 esac
14580 case `$CC -V 2>&1 | sed 5q` in
14581 *Sun\ C*) # Sun C 5.9
43e02a8a 14582 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
14583 compiler_needs_object_FC=yes
14584 tmp_sharedflag='-G' ;;
14585 *Sun\ F*) # Sun Fortran 8.3
14586 tmp_sharedflag='-G' ;;
1cf3d07d
SE
14587 esac
14588 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14589
14590 if test "x$supports_anon_versioning" = xyes; then
14591 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14592 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14593 echo "local: *; };" >> $output_objdir/$libname.ver~
14594 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14595 fi
d58dead8
PG
14596
14597 case $cc_basename in
43e02a8a 14598 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
14599 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14600 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14601 hardcode_libdir_flag_spec_FC=
14602 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14603 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14604 if test "x$supports_anon_versioning" = xyes; then
14605 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14606 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14607 echo "local: *; };" >> $output_objdir/$libname.ver~
14608 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14609 fi
14610 ;;
14611 esac
1cf3d07d
SE
14612 else
14613 ld_shlibs_FC=no
14614 fi
14615 ;;
14616
14617 netbsd*)
14618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14619 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14620 wlarc=
14621 else
14622 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14623 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14624 fi
14625 ;;
14626
14627 solaris*)
14628 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14629 ld_shlibs_FC=no
14630 cat <<_LT_EOF 1>&2
14631
14632*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14633*** create shared libraries on Solaris systems. Therefore, libtool
14634*** is disabling shared libraries support. We urge you to upgrade GNU
14635*** binutils to release 2.9.1 or newer. Another option is to modify
14636*** your PATH or compiler configuration so that the native linker is
14637*** used, and then restart.
14638
14639_LT_EOF
14640 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14641 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14642 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14643 else
14644 ld_shlibs_FC=no
14645 fi
14646 ;;
14647
14648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14649 case `$LD -v 2>&1` in
14650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14651 ld_shlibs_FC=no
14652 cat <<_LT_EOF 1>&2
14653
14654*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14655*** reliably create shared libraries on SCO systems. Therefore, libtool
14656*** is disabling shared libraries support. We urge you to upgrade GNU
14657*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14658*** your PATH or compiler configuration so that the native linker is
14659*** used, and then restart.
14660
14661_LT_EOF
14662 ;;
14663 *)
14664 # For security reasons, it is highly recommended that you always
14665 # use absolute paths for naming shared libraries, and exclude the
14666 # DT_RUNPATH tag from executables and libraries. But doing so
14667 # requires that you compile everything twice, which is a pain.
14668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14669 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14670 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14671 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14672 else
14673 ld_shlibs_FC=no
14674 fi
14675 ;;
14676 esac
14677 ;;
14678
14679 sunos4*)
14680 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14681 wlarc=
14682 hardcode_direct_FC=yes
14683 hardcode_shlibpath_var_FC=no
14684 ;;
14685
14686 *)
14687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14688 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14689 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14690 else
14691 ld_shlibs_FC=no
14692 fi
14693 ;;
14694 esac
14695
14696 if test "$ld_shlibs_FC" = no; then
14697 runpath_var=
14698 hardcode_libdir_flag_spec_FC=
14699 export_dynamic_flag_spec_FC=
14700 whole_archive_flag_spec_FC=
14701 fi
14702 else
14703 # PORTME fill in a description of your system's linker (not GNU ld)
14704 case $host_os in
14705 aix3*)
14706 allow_undefined_flag_FC=unsupported
14707 always_export_symbols_FC=yes
14708 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14709 # Note: this linker hardcodes the directories in LIBPATH if there
14710 # are no directories specified by -L.
14711 hardcode_minus_L_FC=yes
14712 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14713 # Neither direct hardcoding nor static linking is supported with a
14714 # broken collect2.
14715 hardcode_direct_FC=unsupported
14716 fi
14717 ;;
14718
4f6bebc3 14719 aix[4-9]*)
1cf3d07d
SE
14720 if test "$host_cpu" = ia64; then
14721 # On IA64, the linker does run time linking by default, so we don't
14722 # have to do anything special.
14723 aix_use_runtimelinking=no
14724 exp_sym_flag='-Bexport'
14725 no_entry_flag=""
14726 else
14727 # If we're using GNU nm, then we don't want the "-C" option.
14728 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
14729 # Also, AIX nm treats weak defined symbols like other global
14730 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 14731 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 14732 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d 14733 else
d3ca2257 14734 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
14735 fi
14736 aix_use_runtimelinking=no
14737
14738 # Test if we are trying to use run time linking or normal
14739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14740 # need to do runtime linking.
4f6bebc3 14741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14742 for ld_flag in $LDFLAGS; do
14743 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14744 aix_use_runtimelinking=yes
14745 break
14746 fi
14747 done
14748 ;;
14749 esac
14750
14751 exp_sym_flag='-bexport'
14752 no_entry_flag='-bnoentry'
14753 fi
14754
14755 # When large executables or shared objects are built, AIX ld can
14756 # have problems creating the table of contents. If linking a library
14757 # or program results in "error TOC overflow" add -mminimal-toc to
14758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14760
14761 archive_cmds_FC=''
14762 hardcode_direct_FC=yes
14763 hardcode_direct_absolute_FC=yes
14764 hardcode_libdir_separator_FC=':'
14765 link_all_deplibs_FC=yes
14766 file_list_spec_FC='${wl}-f,'
14767
14768 if test "$GCC" = yes; then
14769 case $host_os in aix4.[012]|aix4.[012].*)
14770 # We only want to do this on AIX 4.2 and lower, the check
14771 # below for broken collect2 doesn't work under 4.3+
14772 collect2name=`${CC} -print-prog-name=collect2`
14773 if test -f "$collect2name" &&
14774 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14775 then
14776 # We have reworked collect2
14777 :
14778 else
14779 # We have old collect2
14780 hardcode_direct_FC=unsupported
14781 # It fails to find uninstalled libraries when the uninstalled
14782 # path is not listed in the libpath. Setting hardcode_minus_L
14783 # to unsupported forces relinking
14784 hardcode_minus_L_FC=yes
14785 hardcode_libdir_flag_spec_FC='-L$libdir'
14786 hardcode_libdir_separator_FC=
14787 fi
14788 ;;
14789 esac
14790 shared_flag='-shared'
14791 if test "$aix_use_runtimelinking" = yes; then
14792 shared_flag="$shared_flag "'${wl}-G'
14793 fi
14794 else
14795 # not using gcc
14796 if test "$host_cpu" = ia64; then
14797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14798 # chokes on -Wl,-G. The following line is correct:
14799 shared_flag='-G'
14800 else
14801 if test "$aix_use_runtimelinking" = yes; then
14802 shared_flag='${wl}-G'
14803 else
14804 shared_flag='${wl}-bM:SRE'
14805 fi
14806 fi
14807 fi
14808
d58dead8 14809 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
14810 # It seems that -bexpall does not export symbols beginning with
14811 # underscore (_), so it is better to generate a list of symbols to export.
14812 always_export_symbols_FC=yes
14813 if test "$aix_use_runtimelinking" = yes; then
14814 # Warning - without using the other runtime loading flags (-brtl),
14815 # -berok will link without error, but may produce a broken library.
14816 allow_undefined_flag_FC='-berok'
14817 # Determine the default libpath from the value encoded in an
14818 # empty executable.
14819 if test x$gcc_no_link = xyes; then
22e05272 14820 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14821fi
5213506e 14822cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14823 program main
14824
14825 end
14826_ACEOF
5213506e 14827if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14828
14829lt_aix_libpath_sed='
14830 /Import File Strings/,/^$/ {
14831 /^0/ {
14832 s/^0 *\(.*\)$/\1/
14833 p
14834 }
14835 }'
14836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14837# Check for a 64-bit object if we didn't find anything.
14838if test -z "$aix_libpath"; then
14839 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14840fi
1cf3d07d 14841fi
5213506e
RW
14842rm -f core conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14844if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14845
14846 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14847 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
14848 else
14849 if test "$host_cpu" = ia64; then
14850 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14851 allow_undefined_flag_FC="-z nodefs"
14852 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14853 else
14854 # Determine the default libpath from the value encoded in an
14855 # empty executable.
14856 if test x$gcc_no_link = xyes; then
22e05272 14857 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14858fi
5213506e 14859cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14860 program main
14861
14862 end
14863_ACEOF
5213506e 14864if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14865
14866lt_aix_libpath_sed='
14867 /Import File Strings/,/^$/ {
14868 /^0/ {
14869 s/^0 *\(.*\)$/\1/
14870 p
14871 }
14872 }'
14873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14874# Check for a 64-bit object if we didn't find anything.
14875if test -z "$aix_libpath"; then
14876 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14877fi
1cf3d07d 14878fi
5213506e
RW
14879rm -f core conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14881if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14882
14883 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14884 # Warning - without using the other run time loading flags,
14885 # -berok will link without error, but may produce a broken library.
14886 no_undefined_flag_FC=' ${wl}-bernotok'
14887 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14888 if test "$with_gnu_ld" = yes; then
14889 # We only use this code for GNU lds that support --whole-archive.
14890 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14891 else
14892 # Exported symbols can be pulled into shared objects from archives
14893 whole_archive_flag_spec_FC='$convenience'
14894 fi
1cf3d07d
SE
14895 archive_cmds_need_lc_FC=yes
14896 # This is similar to how AIX traditionally builds its shared libraries.
14897 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14898 fi
14899 fi
14900 ;;
14901
14902 amigaos*)
d58dead8
PG
14903 case $host_cpu in
14904 powerpc)
14905 # see comment about AmigaOS4 .so support
14906 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14907 archive_expsym_cmds_FC=''
14908 ;;
14909 m68k)
14910 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14911 hardcode_libdir_flag_spec_FC='-L$libdir'
14912 hardcode_minus_L_FC=yes
14913 ;;
14914 esac
1cf3d07d
SE
14915 ;;
14916
14917 bsdi[45]*)
14918 export_dynamic_flag_spec_FC=-rdynamic
14919 ;;
14920
d58dead8 14921 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14922 # When not using gcc, we currently assume that we are using
14923 # Microsoft Visual C++.
14924 # hardcode_libdir_flag_spec is actually meaningless, as there is
14925 # no search path for DLLs.
14926 hardcode_libdir_flag_spec_FC=' '
14927 allow_undefined_flag_FC=unsupported
14928 # Tell ltmain to make .lib files, not .a files.
14929 libext=lib
14930 # Tell ltmain to make .dll files, not .so files.
14931 shrext_cmds=".dll"
14932 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14933 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14934 # The linker will automatically build a .lib file if we build a DLL.
14935 old_archive_from_new_cmds_FC='true'
14936 # FIXME: Should let the user specify the lib program.
14937 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14938 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14939 enable_shared_with_static_runtimes_FC=yes
14940 ;;
14941
14942 darwin* | rhapsody*)
1cf3d07d 14943
d58dead8
PG
14944
14945 archive_cmds_need_lc_FC=no
14946 hardcode_direct_FC=no
14947 hardcode_automatic_FC=yes
14948 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14949 if test "$lt_cv_ld_force_load" = "yes"; then
14950 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14951 else
14952 whole_archive_flag_spec_FC=''
14953 fi
d58dead8
PG
14954 link_all_deplibs_FC=yes
14955 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14956 case $cc_basename in
14957 ifort*) _lt_dar_can_shared=yes ;;
14958 *) _lt_dar_can_shared=$GCC ;;
14959 esac
14960 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14961 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14962 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14963 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14964 archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14965 module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14966
14967 else
14968 ld_shlibs_FC=no
14969 fi
14970
1cf3d07d
SE
14971 ;;
14972
14973 dgux*)
14974 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14975 hardcode_libdir_flag_spec_FC='-L$libdir'
14976 hardcode_shlibpath_var_FC=no
14977 ;;
14978
1cf3d07d
SE
14979 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14980 # support. Future versions do this automatically, but an explicit c++rt0.o
14981 # does not break anything, and helps significantly (at the cost of a little
14982 # extra space).
14983 freebsd2.2*)
14984 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14985 hardcode_libdir_flag_spec_FC='-R$libdir'
14986 hardcode_direct_FC=yes
14987 hardcode_shlibpath_var_FC=no
14988 ;;
14989
14990 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 14991 freebsd2.*)
1cf3d07d
SE
14992 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_direct_FC=yes
14994 hardcode_minus_L_FC=yes
14995 hardcode_shlibpath_var_FC=no
14996 ;;
14997
14998 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14999 freebsd* | dragonfly*)
15000 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15001 hardcode_libdir_flag_spec_FC='-R$libdir'
15002 hardcode_direct_FC=yes
15003 hardcode_shlibpath_var_FC=no
15004 ;;
15005
15006 hpux9*)
15007 if test "$GCC" = yes; then
15008 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15009 else
15010 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15011 fi
15012 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
15013 hardcode_libdir_separator_FC=:
15014 hardcode_direct_FC=yes
15015
15016 # hardcode_minus_L: Not really in the search PATH,
15017 # but as the default location of the library.
15018 hardcode_minus_L_FC=yes
15019 export_dynamic_flag_spec_FC='${wl}-E'
15020 ;;
15021
15022 hpux10*)
43e02a8a 15023 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
15024 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15025 else
15026 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15027 fi
15028 if test "$with_gnu_ld" = no; then
15029 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
15030 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
15031 hardcode_libdir_separator_FC=:
15032 hardcode_direct_FC=yes
15033 hardcode_direct_absolute_FC=yes
15034 export_dynamic_flag_spec_FC='${wl}-E'
15035 # hardcode_minus_L: Not really in the search PATH,
15036 # but as the default location of the library.
15037 hardcode_minus_L_FC=yes
15038 fi
15039 ;;
15040
15041 hpux11*)
43e02a8a 15042 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
15043 case $host_cpu in
15044 hppa*64*)
4e4ba647 15045 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15046 ;;
15047 ia64*)
d58dead8 15048 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15049 ;;
15050 *)
15051 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15052 ;;
15053 esac
15054 else
15055 case $host_cpu in
15056 hppa*64*)
4e4ba647 15057 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15058 ;;
15059 ia64*)
15060 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15061 ;;
15062 *)
43e02a8a 15063 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
15064 ;;
15065 esac
15066 fi
15067 if test "$with_gnu_ld" = no; then
15068 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
15069 hardcode_libdir_separator_FC=:
15070
15071 case $host_cpu in
15072 hppa*64*|ia64*)
15073 hardcode_direct_FC=no
15074 hardcode_shlibpath_var_FC=no
15075 ;;
15076 *)
15077 hardcode_direct_FC=yes
15078 hardcode_direct_absolute_FC=yes
15079 export_dynamic_flag_spec_FC='${wl}-E'
15080
15081 # hardcode_minus_L: Not really in the search PATH,
15082 # but as the default location of the library.
15083 hardcode_minus_L_FC=yes
15084 ;;
15085 esac
15086 fi
15087 ;;
15088
15089 irix5* | irix6* | nonstopux*)
15090 if test "$GCC" = yes; then
43e02a8a 15091 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
15092 # Try to use the -exported_symbol ld option, if it does not
15093 # work, assume that -exports_file does not work either and
15094 # implicitly export all symbols.
15095 save_LDFLAGS="$LDFLAGS"
15096 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15097 if test x$gcc_no_link = xyes; then
22e05272 15098 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15099fi
5213506e 15100cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15101int foo(void) {}
15102_ACEOF
5213506e 15103if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 15104 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 15105
1cf3d07d 15106fi
5213506e
RW
15107rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
15109 LDFLAGS="$save_LDFLAGS"
15110 else
43e02a8a
RW
15111 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15112 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
15113 fi
15114 archive_cmds_need_lc_FC='no'
15115 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15116 hardcode_libdir_separator_FC=:
15117 inherit_rpath_FC=yes
15118 link_all_deplibs_FC=yes
15119 ;;
15120
15121 netbsd*)
15122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15123 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15124 else
15125 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15126 fi
15127 hardcode_libdir_flag_spec_FC='-R$libdir'
15128 hardcode_direct_FC=yes
15129 hardcode_shlibpath_var_FC=no
15130 ;;
15131
15132 newsos6)
15133 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134 hardcode_direct_FC=yes
15135 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15136 hardcode_libdir_separator_FC=:
15137 hardcode_shlibpath_var_FC=no
15138 ;;
15139
15140 *nto* | *qnx*)
15141 ;;
15142
15143 openbsd*)
d58dead8
PG
15144 if test -f /usr/libexec/ld.so; then
15145 hardcode_direct_FC=yes
15146 hardcode_shlibpath_var_FC=no
15147 hardcode_direct_absolute_FC=yes
15148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 15149 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 15150 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 15151 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
15152 export_dynamic_flag_spec_FC='${wl}-E'
15153 else
15154 case $host_os in
15155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15156 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15157 hardcode_libdir_flag_spec_FC='-R$libdir'
15158 ;;
15159 *)
15160 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15161 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
15162 ;;
15163 esac
15164 fi
15165 else
15166 ld_shlibs_FC=no
1cf3d07d
SE
15167 fi
15168 ;;
15169
15170 os2*)
15171 hardcode_libdir_flag_spec_FC='-L$libdir'
15172 hardcode_minus_L_FC=yes
15173 allow_undefined_flag_FC=unsupported
43e02a8a 15174 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1cf3d07d
SE
15175 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15176 ;;
15177
15178 osf3*)
15179 if test "$GCC" = yes; then
15180 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 15181 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
15182 else
15183 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 15184 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
15185 fi
15186 archive_cmds_need_lc_FC='no'
15187 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15188 hardcode_libdir_separator_FC=:
15189 ;;
15190
15191 osf4* | osf5*) # as osf3* with the addition of -msym flag
15192 if test "$GCC" = yes; then
15193 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 15194 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
15195 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
15196 else
15197 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 15198 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 15199 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
43e02a8a 15200 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
15201
15202 # Both c and cxx compiler support -rpath directly
15203 hardcode_libdir_flag_spec_FC='-rpath $libdir'
15204 fi
15205 archive_cmds_need_lc_FC='no'
15206 hardcode_libdir_separator_FC=:
15207 ;;
15208
15209 solaris*)
15210 no_undefined_flag_FC=' -z defs'
15211 if test "$GCC" = yes; then
15212 wlarc='${wl}'
15213 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15214 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15215 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15216 else
15217 case `$CC -V 2>&1` in
15218 *"Compilers 5.0"*)
15219 wlarc=''
15220 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15221 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15223 ;;
15224 *)
15225 wlarc='${wl}'
15226 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15227 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15228 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15229 ;;
15230 esac
15231 fi
15232 hardcode_libdir_flag_spec_FC='-R$libdir'
15233 hardcode_shlibpath_var_FC=no
15234 case $host_os in
15235 solaris2.[0-5] | solaris2.[0-5].*) ;;
15236 *)
15237 # The compiler driver will combine and reorder linker options,
15238 # but understands `-z linker_flag'. GCC discards it without `$wl',
15239 # but is careful enough not to reorder.
15240 # Supported since Solaris 2.6 (maybe 2.5.1?)
15241 if test "$GCC" = yes; then
15242 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15243 else
15244 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15245 fi
15246 ;;
15247 esac
15248 link_all_deplibs_FC=yes
15249 ;;
15250
15251 sunos4*)
15252 if test "x$host_vendor" = xsequent; then
15253 # Use $CC to link under sequent, because it throws in some extra .o
15254 # files that make .init and .fini sections work.
15255 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15256 else
15257 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15258 fi
15259 hardcode_libdir_flag_spec_FC='-L$libdir'
15260 hardcode_direct_FC=yes
15261 hardcode_minus_L_FC=yes
15262 hardcode_shlibpath_var_FC=no
15263 ;;
15264
15265 sysv4)
15266 case $host_vendor in
15267 sni)
15268 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15269 hardcode_direct_FC=yes # is this really true???
15270 ;;
15271 siemens)
15272 ## LD is ld it makes a PLAMLIB
15273 ## CC just makes a GrossModule.
15274 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15275 reload_cmds_FC='$CC -r -o $output$reload_objs'
15276 hardcode_direct_FC=no
15277 ;;
15278 motorola)
15279 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15280 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15281 ;;
15282 esac
15283 runpath_var='LD_RUN_PATH'
15284 hardcode_shlibpath_var_FC=no
15285 ;;
15286
15287 sysv4.3*)
15288 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15289 hardcode_shlibpath_var_FC=no
15290 export_dynamic_flag_spec_FC='-Bexport'
15291 ;;
15292
15293 sysv4*MP*)
15294 if test -d /usr/nec; then
15295 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15296 hardcode_shlibpath_var_FC=no
15297 runpath_var=LD_RUN_PATH
15298 hardcode_runpath_var=yes
15299 ld_shlibs_FC=yes
15300 fi
15301 ;;
15302
15303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15304 no_undefined_flag_FC='${wl}-z,text'
15305 archive_cmds_need_lc_FC=no
15306 hardcode_shlibpath_var_FC=no
15307 runpath_var='LD_RUN_PATH'
15308
15309 if test "$GCC" = yes; then
15310 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15311 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15312 else
15313 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15314 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15315 fi
15316 ;;
15317
15318 sysv5* | sco3.2v5* | sco5v6*)
15319 # Note: We can NOT use -z defs as we might desire, because we do not
15320 # link with -lc, and that would cause any symbols used from libc to
15321 # always be unresolved, which means just about no library would
15322 # ever link correctly. If we're not using GNU ld we use -z text
15323 # though, which does catch some bad symbols but isn't as heavy-handed
15324 # as -z defs.
15325 no_undefined_flag_FC='${wl}-z,text'
15326 allow_undefined_flag_FC='${wl}-z,nodefs'
15327 archive_cmds_need_lc_FC=no
15328 hardcode_shlibpath_var_FC=no
15329 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15330 hardcode_libdir_separator_FC=':'
15331 link_all_deplibs_FC=yes
15332 export_dynamic_flag_spec_FC='${wl}-Bexport'
15333 runpath_var='LD_RUN_PATH'
15334
15335 if test "$GCC" = yes; then
15336 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15337 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15338 else
15339 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15340 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15341 fi
15342 ;;
15343
15344 uts4*)
15345 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15346 hardcode_libdir_flag_spec_FC='-L$libdir'
15347 hardcode_shlibpath_var_FC=no
15348 ;;
15349
15350 *)
15351 ld_shlibs_FC=no
15352 ;;
15353 esac
15354
15355 if test x$host_vendor = xsni; then
15356 case $host in
15357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15358 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15359 ;;
15360 esac
15361 fi
15362 fi
15363
5213506e
RW
15364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15365$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
15366test "$ld_shlibs_FC" = no && can_build_shared=no
15367
15368with_gnu_ld_FC=$with_gnu_ld
15369
15370
15371
15372
15373
15374
15375#
15376# Do we need to explicitly link libc?
15377#
15378case "x$archive_cmds_need_lc_FC" in
15379x|xyes)
15380 # Assume -lc should be added
15381 archive_cmds_need_lc_FC=yes
15382
15383 if test "$enable_shared" = yes && test "$GCC" = yes; then
15384 case $archive_cmds_FC in
15385 *'~'*)
15386 # FIXME: we may have to deal with multi-command sequences.
15387 ;;
15388 '$CC '*)
15389 # Test whether the compiler implicitly links with -lc since on some
15390 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15391 # to ld, don't add -lc before -lgcc.
5213506e
RW
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15393$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 15394if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
5213506e 15395 $as_echo_n "(cached) " >&6
baafc534
RW
15396else
15397 $RM conftest*
15398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 15399
5213506e 15400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
15401 (eval $ac_compile) 2>&5
15402 ac_status=$?
5213506e
RW
15403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15404 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
15405 soname=conftest
15406 lib=conftest
15407 libobjs=conftest.$ac_objext
15408 deplibs=
15409 wl=$lt_prog_compiler_wl_FC
15410 pic_flag=$lt_prog_compiler_pic_FC
15411 compiler_flags=-v
15412 linker_flags=-v
15413 verstring=
15414 output_objdir=.
15415 libname=conftest
15416 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15417 allow_undefined_flag_FC=
5213506e 15418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 15419 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 15420 ac_status=$?
5213506e
RW
15421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15422 test $ac_status = 0; }
baafc534
RW
15423 then
15424 lt_cv_archive_cmds_need_lc_FC=no
15425 else
15426 lt_cv_archive_cmds_need_lc_FC=yes
15427 fi
15428 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15429 else
15430 cat conftest.err 1>&5
15431 fi
15432 $RM conftest*
15433
15434fi
5213506e
RW
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15436$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 15437 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
15438 ;;
15439 esac
15440 fi
15441 ;;
15442esac
9cdc381b 15443
9cdc381b 15444
1cf3d07d
SE
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
5213506e
RW
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15508$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 15509
1cf3d07d
SE
15510library_names_spec=
15511libname_spec='lib$name'
15512soname_spec=
15513shrext_cmds=".so"
15514postinstall_cmds=
15515postuninstall_cmds=
15516finish_cmds=
15517finish_eval=
15518shlibpath_var=
15519shlibpath_overrides_runpath=unknown
15520version_type=none
15521dynamic_linker="$host_os ld.so"
15522sys_lib_dlsearch_path_spec="/lib /usr/lib"
15523need_lib_prefix=unknown
15524hardcode_into_libs=no
15525
15526# when you set need_version to no, make sure it does not cause -set_version
15527# flags to be left without arguments
15528need_version=unknown
15529
15530case $host_os in
15531aix3*)
15532 version_type=linux
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15534 shlibpath_var=LIBPATH
15535
15536 # AIX 3 has no versioning support, so we append a major version to the name.
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 ;;
15539
4f6bebc3 15540aix[4-9]*)
1cf3d07d
SE
15541 version_type=linux
15542 need_lib_prefix=no
15543 need_version=no
15544 hardcode_into_libs=yes
15545 if test "$host_cpu" = ia64; then
15546 # AIX 5 supports IA64
15547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 else
15550 # With GCC up to 2.95.x, collect2 would create an import file
15551 # for dependence libraries. The import file would start with
15552 # the line `#! .'. This would cause the generated library to
15553 # depend on `.', always an invalid library. This was fixed in
15554 # development snapshots of GCC prior to 3.0.
15555 case $host_os in
15556 aix4 | aix4.[01] | aix4.[01].*)
15557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15558 echo ' yes '
15559 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15560 :
15561 else
15562 can_build_shared=no
15563 fi
15564 ;;
15565 esac
15566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15567 # soname into executable. Probably we can add versioning support to
15568 # collect2, so additional links can be useful in future.
15569 if test "$aix_use_runtimelinking" = yes; then
15570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15571 # instead of lib<name>.a to let people know that these are not
15572 # typical AIX shared libraries.
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15574 else
15575 # We preserve .a as extension for shared libraries through AIX4.2
15576 # and later when we are not doing run time linking.
15577 library_names_spec='${libname}${release}.a $libname.a'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 fi
15580 shlibpath_var=LIBPATH
15581 fi
15582 ;;
15583
15584amigaos*)
d58dead8
PG
15585 case $host_cpu in
15586 powerpc)
15587 # Since July 2007 AmigaOS4 officially supports .so libraries.
15588 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590 ;;
15591 m68k)
1cf3d07d
SE
15592 library_names_spec='$libname.ixlibrary $libname.a'
15593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 15594 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d58dead8
PG
15595 ;;
15596 esac
1cf3d07d
SE
15597 ;;
15598
15599beos*)
15600 library_names_spec='${libname}${shared_ext}'
15601 dynamic_linker="$host_os ld.so"
15602 shlibpath_var=LIBRARY_PATH
15603 ;;
15604
15605bsdi[45]*)
15606 version_type=linux
15607 need_version=no
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15611 shlibpath_var=LD_LIBRARY_PATH
15612 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15613 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15614 # the default ld.so.conf also contains /usr/contrib/lib and
15615 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15616 # libtool to hard-code these into programs
15617 ;;
15618
d58dead8 15619cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
15620 version_type=windows
15621 shrext_cmds=".dll"
15622 need_version=no
15623 need_lib_prefix=no
15624
d58dead8
PG
15625 case $GCC,$host_os in
15626 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
15627 library_names_spec='$libname.dll.a'
15628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15629 postinstall_cmds='base_file=`basename \${file}`~
15630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15631 dldir=$destdir/`dirname \$dlpath`~
15632 test -d \$dldir || mkdir -p \$dldir~
15633 $install_prog $dir/$dlname \$dldir/$dlname~
15634 chmod a+x \$dldir/$dlname~
15635 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15636 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15637 fi'
15638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15639 dlpath=$dir/\$dldll~
15640 $RM \$dlpath'
15641 shlibpath_overrides_runpath=yes
15642
15643 case $host_os in
15644 cygwin*)
15645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 15647
1cf3d07d 15648 ;;
d58dead8 15649 mingw* | cegcc*)
1cf3d07d
SE
15650 # MinGW DLLs use traditional 'lib' prefix
15651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
15652 ;;
15653 pw32*)
15654 # pw32 DLLs use 'pw' prefix rather than 'lib'
15655 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15656 ;;
15657 esac
15658 ;;
15659
15660 *)
15661 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15662 ;;
15663 esac
15664 dynamic_linker='Win32 ld.exe'
15665 # FIXME: first we should search . and the directory the executable is in
15666 shlibpath_var=PATH
15667 ;;
15668
15669darwin* | rhapsody*)
15670 dynamic_linker="$host_os dyld"
15671 version_type=darwin
15672 need_lib_prefix=no
15673 need_version=no
15674 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15675 soname_spec='${libname}${release}${major}$shared_ext'
15676 shlibpath_overrides_runpath=yes
15677 shlibpath_var=DYLD_LIBRARY_PATH
15678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15679
15680 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15681 ;;
15682
15683dgux*)
15684 version_type=linux
15685 need_lib_prefix=no
15686 need_version=no
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 ;;
15691
1cf3d07d
SE
15692freebsd* | dragonfly*)
15693 # DragonFly does not have aout. When/if they implement a new
15694 # versioning mechanism, adjust this.
15695 if test -x /usr/bin/objformat; then
15696 objformat=`/usr/bin/objformat`
15697 else
15698 case $host_os in
c6084f68 15699 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
15700 *) objformat=elf ;;
15701 esac
15702 fi
15703 version_type=freebsd-$objformat
15704 case $version_type in
15705 freebsd-elf*)
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15707 need_version=no
15708 need_lib_prefix=no
15709 ;;
15710 freebsd-*)
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15712 need_version=yes
15713 ;;
15714 esac
15715 shlibpath_var=LD_LIBRARY_PATH
15716 case $host_os in
c6084f68 15717 freebsd2.*)
1cf3d07d
SE
15718 shlibpath_overrides_runpath=yes
15719 ;;
15720 freebsd3.[01]* | freebsdelf3.[01]*)
15721 shlibpath_overrides_runpath=yes
15722 hardcode_into_libs=yes
15723 ;;
15724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15726 shlibpath_overrides_runpath=no
15727 hardcode_into_libs=yes
15728 ;;
15729 *) # from 4.6 on, and DragonFly
15730 shlibpath_overrides_runpath=yes
15731 hardcode_into_libs=yes
15732 ;;
15733 esac
15734 ;;
15735
43e02a8a
RW
15736haiku*)
15737 version_type=linux
15738 need_lib_prefix=no
15739 need_version=no
15740 dynamic_linker="$host_os runtime_loader"
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15742 soname_spec='${libname}${release}${shared_ext}$major'
15743 shlibpath_var=LIBRARY_PATH
15744 shlibpath_overrides_runpath=yes
15745 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15746 hardcode_into_libs=yes
15747 ;;
15748
1cf3d07d
SE
15749hpux9* | hpux10* | hpux11*)
15750 # Give a soname corresponding to the major version so that dld.sl refuses to
15751 # link against other versions.
15752 version_type=sunos
15753 need_lib_prefix=no
15754 need_version=no
15755 case $host_cpu in
15756 ia64*)
15757 shrext_cmds='.so'
15758 hardcode_into_libs=yes
15759 dynamic_linker="$host_os dld.so"
15760 shlibpath_var=LD_LIBRARY_PATH
15761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 soname_spec='${libname}${release}${shared_ext}$major'
15764 if test "X$HPUX_IA64_MODE" = X32; then
15765 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15766 else
15767 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15768 fi
15769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15770 ;;
15771 hppa*64*)
15772 shrext_cmds='.sl'
15773 hardcode_into_libs=yes
15774 dynamic_linker="$host_os dld.sl"
15775 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15781 ;;
15782 *)
15783 shrext_cmds='.sl'
15784 dynamic_linker="$host_os dld.sl"
15785 shlibpath_var=SHLIB_PATH
15786 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 ;;
15790 esac
43e02a8a 15791 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 15792 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
15793 # or fails outright, so override atomically:
15794 install_override_mode=555
1cf3d07d
SE
15795 ;;
15796
15797interix[3-9]*)
15798 version_type=linux
15799 need_lib_prefix=no
15800 need_version=no
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15802 soname_spec='${libname}${release}${shared_ext}$major'
15803 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15804 shlibpath_var=LD_LIBRARY_PATH
15805 shlibpath_overrides_runpath=no
15806 hardcode_into_libs=yes
15807 ;;
15808
15809irix5* | irix6* | nonstopux*)
15810 case $host_os in
15811 nonstopux*) version_type=nonstopux ;;
15812 *)
15813 if test "$lt_cv_prog_gnu_ld" = yes; then
15814 version_type=linux
15815 else
15816 version_type=irix
15817 fi ;;
15818 esac
15819 need_lib_prefix=no
15820 need_version=no
15821 soname_spec='${libname}${release}${shared_ext}$major'
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15823 case $host_os in
15824 irix5* | nonstopux*)
15825 libsuff= shlibsuff=
15826 ;;
15827 *)
15828 case $LD in # libtool.m4 will add one of these switches to LD
15829 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15830 libsuff= shlibsuff= libmagic=32-bit;;
15831 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15832 libsuff=32 shlibsuff=N32 libmagic=N32;;
15833 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15834 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15835 *) libsuff= shlibsuff= libmagic=never-match;;
15836 esac
15837 ;;
15838 esac
15839 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15840 shlibpath_overrides_runpath=no
15841 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15842 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15843 hardcode_into_libs=yes
15844 ;;
15845
15846# No shared lib support for Linux oldld, aout, or coff.
15847linux*oldld* | linux*aout* | linux*coff*)
15848 dynamic_linker=no
15849 ;;
15850
15851# This must be Linux ELF.
e9085da5
MR
15852
15853# uclinux* changes (here and below) have been submitted to the libtool
15854# project, but have not yet been accepted: they are GCC-local changes
15855# for the time being. (See
15856# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
c0f8c22a 15857linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
1cf3d07d
SE
15858 version_type=linux
15859 need_lib_prefix=no
15860 need_version=no
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862 soname_spec='${libname}${release}${shared_ext}$major'
15863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15864 shlibpath_var=LD_LIBRARY_PATH
15865 shlibpath_overrides_runpath=no
baafc534 15866
1cf3d07d 15867 # Some binutils ld are patched to set DT_RUNPATH
22e05272 15868 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 15869 $as_echo_n "(cached) " >&6
baafc534
RW
15870else
15871 lt_cv_shlibpath_overrides_runpath=no
15872 save_LDFLAGS=$LDFLAGS
15873 save_libdir=$libdir
15874 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15875 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15876 if test x$gcc_no_link = xyes; then
22e05272 15877 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15878fi
5213506e 15879cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15880 program main
15881
15882 end
9cdc381b 15883_ACEOF
5213506e
RW
15884if ac_fn_fc_try_link "$LINENO"; then :
15885 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15886 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15887fi
9cdc381b 15888fi
5213506e
RW
15889rm -f core conftest.err conftest.$ac_objext \
15890 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15891 LDFLAGS=$save_LDFLAGS
15892 libdir=$save_libdir
15893
15894fi
15895
15896 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15897
15898 # This implies no fast_install, which is unacceptable.
15899 # Some rework will be needed to allow for fast_install
15900 # before this can be enabled.
15901 hardcode_into_libs=yes
15902
15903 # Append ld.so.conf contents to the search path
15904 if test -f /etc/ld.so.conf; then
43e02a8a 15905 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
15906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15907 fi
15908
15909 # We used to test for /lib/ld.so.1 and disable shared libraries on
15910 # powerpc, because MkLinux only supported shared libraries with the
15911 # GNU dynamic linker. Since this was broken with cross compilers,
15912 # most powerpc-linux boxes support dynamic linking these days and
15913 # people can always --disable-shared, the test was removed, and we
15914 # assume the GNU/Linux dynamic linker is in use.
15915 dynamic_linker='GNU/Linux ld.so'
15916 ;;
15917
15918netbsd*)
15919 version_type=sunos
15920 need_lib_prefix=no
15921 need_version=no
15922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15925 dynamic_linker='NetBSD (a.out) ld.so'
15926 else
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 dynamic_linker='NetBSD ld.elf_so'
15930 fi
15931 shlibpath_var=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath=yes
15933 hardcode_into_libs=yes
15934 ;;
15935
15936newsos6)
15937 version_type=linux
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939 shlibpath_var=LD_LIBRARY_PATH
15940 shlibpath_overrides_runpath=yes
15941 ;;
15942
15943*nto* | *qnx*)
15944 version_type=qnx
15945 need_lib_prefix=no
15946 need_version=no
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=no
15951 hardcode_into_libs=yes
15952 dynamic_linker='ldqnx.so'
15953 ;;
15954
15955openbsd*)
15956 version_type=sunos
15957 sys_lib_dlsearch_path_spec="/usr/lib"
15958 need_lib_prefix=no
15959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15960 case $host_os in
15961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15962 *) need_version=no ;;
15963 esac
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15968 case $host_os in
15969 openbsd2.[89] | openbsd2.[89].*)
15970 shlibpath_overrides_runpath=no
15971 ;;
15972 *)
15973 shlibpath_overrides_runpath=yes
15974 ;;
15975 esac
15976 else
15977 shlibpath_overrides_runpath=yes
15978 fi
15979 ;;
15980
15981os2*)
15982 libname_spec='$name'
15983 shrext_cmds=".dll"
15984 need_lib_prefix=no
15985 library_names_spec='$libname${shared_ext} $libname.a'
15986 dynamic_linker='OS/2 ld.exe'
15987 shlibpath_var=LIBPATH
15988 ;;
15989
15990osf3* | osf4* | osf5*)
15991 version_type=osf
15992 need_lib_prefix=no
15993 need_version=no
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15999 ;;
16000
16001rdos*)
16002 dynamic_linker=no
16003 ;;
16004
16005solaris*)
16006 version_type=linux
16007 need_lib_prefix=no
16008 need_version=no
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 shlibpath_overrides_runpath=yes
16013 hardcode_into_libs=yes
16014 # ldd complains unless libraries are executable
16015 postinstall_cmds='chmod +x $lib'
16016 ;;
16017
16018sunos4*)
16019 version_type=sunos
16020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16022 shlibpath_var=LD_LIBRARY_PATH
16023 shlibpath_overrides_runpath=yes
16024 if test "$with_gnu_ld" = yes; then
16025 need_lib_prefix=no
16026 fi
16027 need_version=yes
16028 ;;
16029
16030sysv4 | sysv4.3*)
16031 version_type=linux
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033 soname_spec='${libname}${release}${shared_ext}$major'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 case $host_vendor in
16036 sni)
16037 shlibpath_overrides_runpath=no
16038 need_lib_prefix=no
16039 runpath_var=LD_RUN_PATH
16040 ;;
16041 siemens)
16042 need_lib_prefix=no
16043 ;;
16044 motorola)
16045 need_lib_prefix=no
16046 need_version=no
16047 shlibpath_overrides_runpath=no
16048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16049 ;;
16050 esac
16051 ;;
16052
16053sysv4*MP*)
16054 if test -d /usr/nec ;then
16055 version_type=linux
16056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16057 soname_spec='$libname${shared_ext}.$major'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 fi
16060 ;;
16061
16062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16063 version_type=freebsd-elf
16064 need_lib_prefix=no
16065 need_version=no
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 shlibpath_overrides_runpath=yes
16070 hardcode_into_libs=yes
16071 if test "$with_gnu_ld" = yes; then
16072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16073 else
16074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16075 case $host_os in
16076 sco3.2v5*)
16077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16078 ;;
16079 esac
16080 fi
16081 sys_lib_dlsearch_path_spec='/usr/lib'
16082 ;;
16083
16084tpf*)
16085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16086 version_type=linux
16087 need_lib_prefix=no
16088 need_version=no
d58dead8 16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
16090 shlibpath_var=LD_LIBRARY_PATH
16091 shlibpath_overrides_runpath=no
16092 hardcode_into_libs=yes
16093 ;;
16094
16095uts4*)
16096 version_type=linux
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 ;;
16101
0ecd0f1c
OH
16102# Shared libraries for VwWorks, >= 7 only at this stage
16103# and (fpic) still incompatible with "large" code models
16104# in a few configurations. Only for RTP mode in any case,
16105# and upon explicit request at configure time.
16106vxworks7*)
16107 dynamic_linker=no
16108 case ${with_multisubdir}-${enable_shared} in
16109 *large*)
16110 ;;
16111 *mrtp*-yes)
16112 version_type=linux
16113 need_lib_prefix=no
16114 need_version=no
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 dynamic_linker="$host_os module_loader"
16118 ;;
16119 esac
16120 ;;
1cf3d07d
SE
16121*)
16122 dynamic_linker=no
16123 ;;
16124esac
5213506e
RW
16125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16126$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
16127test "$dynamic_linker" = no && can_build_shared=no
16128
16129variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16130if test "$GCC" = yes; then
16131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 16132fi
9cdc381b 16133
d58dead8
PG
16134if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16135 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16136fi
16137if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16138 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16139fi
16140
9cdc381b 16141
1cf3d07d
SE
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
43e02a8a
RW
16173
16174
1cf3d07d
SE
16175
16176
16177
5213506e
RW
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16179$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
16180hardcode_action_FC=
16181if test -n "$hardcode_libdir_flag_spec_FC" ||
16182 test -n "$runpath_var_FC" ||
16183 test "X$hardcode_automatic_FC" = "Xyes" ; then
16184
16185 # We can hardcode non-existent directories.
16186 if test "$hardcode_direct_FC" != no &&
16187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16188 # have to relink, otherwise we might link with an installed library
16189 # when we should be linking with a yet-to-be-installed one
16190 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
16191 test "$hardcode_minus_L_FC" != no; then
16192 # Linking always hardcodes the temporary library directory.
16193 hardcode_action_FC=relink
16194 else
16195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16196 hardcode_action_FC=immediate
16197 fi
16198else
16199 # We cannot hardcode anything, or else we can only hardcode existing
16200 # directories.
16201 hardcode_action_FC=unsupported
9cdc381b 16202fi
5213506e
RW
16203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
16204$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
16205
16206if test "$hardcode_action_FC" = relink ||
16207 test "$inherit_rpath_FC" = yes; then
16208 # Fast installation is not supported
16209 enable_fast_install=no
16210elif test "$shlibpath_overrides_runpath" = yes ||
16211 test "$enable_shared" = no; then
16212 # Fast installation is not necessary
16213 enable_fast_install=needless
9cdc381b
BD
16214fi
16215
1cf3d07d
SE
16216
16217
16218
16219
16220
16221
16222 fi # test -n "$compiler"
16223
d58dead8 16224 GCC=$lt_save_GCC
1cf3d07d
SE
16225 CC="$lt_save_CC"
16226fi # test "$_lt_disable_FC" != yes
16227
dd46a4de 16228ac_ext=c
96b8a615
AJ
16229ac_cpp='$CPP $CPPFLAGS'
16230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16232ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
16233
16234
16235
16236# extra LD Flags which are required for targets
16237case "${host}" in
16238 *-darwin*)
16239 # Darwin needs -single_module when linking libgfortran
16240 extra_ldflags_libgfortran=-Wl,-single_module
16241 ;;
16242esac
16243
16244
16245# We need a working compiler at that point, otherwise give a clear
16246# error message and bail out.
16247
5213506e
RW
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16249$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16250ac_ext=${ac_fc_srcext-f}
16251ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16252ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
16253ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16254
5213506e 16255cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
16256
16257 program foo
16258 real, parameter :: bar = sin (12.34 / 2.5)
16259 end program foo
6de9cd9a 16260_ACEOF
5213506e
RW
16261if ac_fn_fc_try_compile "$LINENO"; then :
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16263$as_echo "yes" >&6; }
6de9cd9a 16264else
5213506e
RW
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266$as_echo "no" >&6; }
22e05272 16267 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
6de9cd9a 16268
96b8a615 16269fi
5213506e 16270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
16271ac_ext=c
16272ac_cpp='$CPP $CPPFLAGS'
16273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16275ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 16276
96b8a615 16277
1cf3d07d 16278
5213506e
RW
16279# Check whether --enable-largefile was given.
16280if test "${enable_largefile+set}" = set; then :
16281 enableval=$enable_largefile;
16282fi
1cf3d07d 16283
1cf3d07d
SE
16284if test "$enable_largefile" != no; then
16285
5213506e
RW
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16287$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 16288if ${ac_cv_sys_largefile_CC+:} false; then :
5213506e 16289 $as_echo_n "(cached) " >&6
96b8a615 16290else
1cf3d07d
SE
16291 ac_cv_sys_largefile_CC=no
16292 if test "$GCC" != yes; then
16293 ac_save_CC=$CC
16294 while :; do
5213506e
RW
16295 # IRIX 6.2 and later do not support large files by default,
16296 # so use the C compiler's -n32 option if that helps.
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 16298/* end confdefs.h. */
1cf3d07d
SE
16299#include <sys/types.h>
16300 /* Check that off_t can represent 2**63 - 1 correctly.
16301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16302 since some C++ compilers masquerading as C compilers
16303 incorrectly reject 9223372036854775807. */
e9085da5 16304#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16306 && LARGE_OFF_T % 2147483647 == 1)
16307 ? 1 : -1];
4c4b3eb0
PB
16308int
16309main ()
16310{
4c4b3eb0
PB
16311
16312 ;
16313 return 0;
16314}
16315_ACEOF
5213506e
RW
16316 if ac_fn_c_try_compile "$LINENO"; then :
16317 break
4c4b3eb0 16318fi
5213506e
RW
16319rm -f core conftest.err conftest.$ac_objext
16320 CC="$CC -n32"
16321 if ac_fn_c_try_compile "$LINENO"; then :
16322 ac_cv_sys_largefile_CC=' -n32'; break
16323fi
16324rm -f core conftest.err conftest.$ac_objext
16325 break
16326 done
16327 CC=$ac_save_CC
16328 rm -f conftest.$ac_ext
16329 fi
16330fi
16331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16332$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16333 if test "$ac_cv_sys_largefile_CC" != no; then
16334 CC=$CC$ac_cv_sys_largefile_CC
16335 fi
4c4b3eb0 16336
5213506e
RW
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16338$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 16339if ${ac_cv_sys_file_offset_bits+:} false; then :
5213506e
RW
16340 $as_echo_n "(cached) " >&6
16341else
16342 while :; do
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16344/* end confdefs.h. */
5213506e
RW
16345#include <sys/types.h>
16346 /* Check that off_t can represent 2**63 - 1 correctly.
16347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16348 since some C++ compilers masquerading as C compilers
16349 incorrectly reject 9223372036854775807. */
e9085da5 16350#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16352 && LARGE_OFF_T % 2147483647 == 1)
16353 ? 1 : -1];
4c4b3eb0
PB
16354int
16355main ()
16356{
4c4b3eb0
PB
16357
16358 ;
16359 return 0;
16360}
16361_ACEOF
5213506e
RW
16362if ac_fn_c_try_compile "$LINENO"; then :
16363 ac_cv_sys_file_offset_bits=no; break
16364fi
16365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16367/* end confdefs.h. */
5213506e
RW
16368#define _FILE_OFFSET_BITS 64
16369#include <sys/types.h>
16370 /* Check that off_t can represent 2**63 - 1 correctly.
16371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16372 since some C++ compilers masquerading as C compilers
16373 incorrectly reject 9223372036854775807. */
e9085da5 16374#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16376 && LARGE_OFF_T % 2147483647 == 1)
16377 ? 1 : -1];
4c4b3eb0
PB
16378int
16379main ()
16380{
4c4b3eb0
PB
16381
16382 ;
16383 return 0;
16384}
16385_ACEOF
5213506e
RW
16386if ac_fn_c_try_compile "$LINENO"; then :
16387 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 16388fi
5213506e
RW
16389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 ac_cv_sys_file_offset_bits=unknown
16391 break
16392done
4c4b3eb0 16393fi
5213506e
RW
16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16395$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16396case $ac_cv_sys_file_offset_bits in #(
16397 no | unknown) ;;
16398 *)
16399cat >>confdefs.h <<_ACEOF
16400#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 16401_ACEOF
5213506e
RW
16402;;
16403esac
16404rm -rf conftest*
16405 if test $ac_cv_sys_file_offset_bits = unknown; then
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16407$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 16408if ${ac_cv_sys_large_files+:} false; then :
5213506e
RW
16409 $as_echo_n "(cached) " >&6
16410else
16411 while :; do
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16413/* end confdefs.h. */
5213506e
RW
16414#include <sys/types.h>
16415 /* Check that off_t can represent 2**63 - 1 correctly.
16416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16417 since some C++ compilers masquerading as C compilers
16418 incorrectly reject 9223372036854775807. */
e9085da5 16419#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16421 && LARGE_OFF_T % 2147483647 == 1)
16422 ? 1 : -1];
4c4b3eb0
PB
16423int
16424main ()
16425{
4c4b3eb0
PB
16426
16427 ;
16428 return 0;
16429}
16430_ACEOF
5213506e
RW
16431if ac_fn_c_try_compile "$LINENO"; then :
16432 ac_cv_sys_large_files=no; break
4c4b3eb0 16433fi
5213506e
RW
16434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 16436/* end confdefs.h. */
5213506e
RW
16437#define _LARGE_FILES 1
16438#include <sys/types.h>
16439 /* Check that off_t can represent 2**63 - 1 correctly.
16440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16441 since some C++ compilers masquerading as C compilers
16442 incorrectly reject 9223372036854775807. */
e9085da5 16443#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
16444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16445 && LARGE_OFF_T % 2147483647 == 1)
16446 ? 1 : -1];
4c4b3eb0
PB
16447int
16448main ()
16449{
16450
4c4b3eb0
PB
16451 ;
16452 return 0;
16453}
16454_ACEOF
5213506e
RW
16455if ac_fn_c_try_compile "$LINENO"; then :
16456 ac_cv_sys_large_files=1; break
4c4b3eb0 16457fi
5213506e
RW
16458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459 ac_cv_sys_large_files=unknown
16460 break
16461done
38d24731 16462fi
5213506e
RW
16463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16464$as_echo "$ac_cv_sys_large_files" >&6; }
16465case $ac_cv_sys_large_files in #(
16466 no | unknown) ;;
16467 *)
4c4b3eb0 16468cat >>confdefs.h <<_ACEOF
5213506e 16469#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 16470_ACEOF
5213506e
RW
16471;;
16472esac
16473rm -rf conftest*
16474 fi
22e05272
JM
16475
16476
4c4b3eb0
PB
16477fi
16478
44720bef
JB
16479
16480# Types
5213506e 16481ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22e05272 16482if test "x$ac_cv_type_off_t" = xyes; then :
4c4b3eb0 16483
5213506e 16484else
4c4b3eb0 16485
5213506e
RW
16486cat >>confdefs.h <<_ACEOF
16487#define off_t long int
16488_ACEOF
4c4b3eb0 16489
44720bef
JB
16490fi
16491
16492
16493 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22e05272 16494if test "x$ac_cv_type_intptr_t" = xyes; then :
44720bef
JB
16495
16496$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16497
16498else
16499 for ac_type in 'int' 'long int' 'long long int'; do
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501/* end confdefs.h. */
16502$ac_includes_default
16503int
16504main ()
16505{
16506static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22e05272
JM
16507test_array [0] = 0;
16508return test_array [0];
44720bef
JB
16509
16510 ;
16511 return 0;
16512}
16513_ACEOF
16514if ac_fn_c_try_compile "$LINENO"; then :
16515
16516cat >>confdefs.h <<_ACEOF
16517#define intptr_t $ac_type
16518_ACEOF
16519
16520 ac_type=
16521fi
16522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523 test -z "$ac_type" && break
16524 done
16525fi
16526
16527
16528
16529 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22e05272 16530if test "x$ac_cv_type_uintptr_t" = xyes; then :
44720bef
JB
16531
16532$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16533
16534else
16535 for ac_type in 'unsigned int' 'unsigned long int' \
16536 'unsigned long long int'; do
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538/* end confdefs.h. */
16539$ac_includes_default
16540int
16541main ()
16542{
16543static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22e05272
JM
16544test_array [0] = 0;
16545return test_array [0];
44720bef
JB
16546
16547 ;
16548 return 0;
16549}
16550_ACEOF
16551if ac_fn_c_try_compile "$LINENO"; then :
16552
16553cat >>confdefs.h <<_ACEOF
16554#define uintptr_t $ac_type
16555_ACEOF
16556
16557 ac_type=
16558fi
16559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560 test -z "$ac_type" && break
16561 done
16562fi
16563
16564
16565ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22e05272 16566if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
44720bef
JB
16567
16568cat >>confdefs.h <<_ACEOF
16569#define HAVE_PTRDIFF_T 1
16570_ACEOF
16571
16572
4c4b3eb0
PB
16573fi
16574
4c4b3eb0 16575
74544378 16576# check header files (we assume C89 is available, so don't check for that)
df65f093 16577
5213506e 16578
df65f093 16579
74544378
JB
16580 for ac_header in $ac_header_list
16581do :
16582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16583ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16584"
22e05272 16585if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
74544378
JB
16586 cat >>confdefs.h <<_ACEOF
16587#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
df65f093
SK
16588_ACEOF
16589
5213506e 16590fi
df65f093 16591
74544378 16592done
864c28e1
RO
16593
16594
df65f093 16595
5213506e 16596
5213506e 16597
df65f093 16598
5213506e 16599
5213506e 16600
df65f093 16601
df65f093 16602
df65f093
SK
16603
16604
df65f093 16605
df65f093 16606
df65f093
SK
16607
16608
df65f093
SK
16609
16610
41724e6a 16611
2cbcdeba 16612
3969c39f 16613
1fb2002d
FXC
16614
16615
32aa3bff 16616
f77b6ca3 16617
f77b6ca3 16618
f77b6ca3 16619
f77b6ca3 16620
f77b6ca3 16621
f77b6ca3 16622
fa86f4f9
TB
16623
16624
9cbecd06
JB
16625
16626
edaaef60
JB
16627
16628
f77b6ca3 16629
f77b6ca3 16630
6de9cd9a 16631
c13e029b 16632inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 16633
c13e029b
PB
16634acx_cv_header_stdint=stddef.h
16635acx_cv_header_stdint_kind="(already complete)"
16636for i in stdint.h $inttype_headers; do
16637 unset ac_cv_type_uintptr_t
16638 unset ac_cv_type_uintmax_t
16639 unset ac_cv_type_int_least32_t
16640 unset ac_cv_type_int_fast32_t
16641 unset ac_cv_type_uint64_t
16642 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16643 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16644#include <$i>
16645"
22e05272 16646if test "x$ac_cv_type_uintmax_t" = xyes; then :
c13e029b 16647 acx_cv_header_stdint=$i
5213506e 16648else
c13e029b 16649 continue
5213506e 16650fi
6de9cd9a 16651
c13e029b
PB
16652 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16653#include <$i>
16654"
22e05272 16655if test "x$ac_cv_type_uintptr_t" = xyes; then :
96b8a615 16656
5213506e 16657else
c13e029b 16658 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16659fi
96b8a615 16660
c13e029b
PB
16661 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16662#include <$i>
16663"
22e05272 16664if test "x$ac_cv_type_int_least32_t" = xyes; then :
c13e029b 16665
f77b6ca3 16666else
c13e029b 16667 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16668fi
5213506e 16669
c13e029b
PB
16670 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16671#include <$i>
16672"
22e05272 16673if test "x$ac_cv_type_int_fast32_t" = xyes; then :
f77b6ca3 16674
c13e029b
PB
16675else
16676 acx_cv_header_stdint_kind="(mostly complete)"
16677fi
d72a3ac1 16678
c13e029b
PB
16679 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16680#include <$i>
16681"
22e05272 16682if test "x$ac_cv_type_uint64_t" = xyes; then :
d72a3ac1 16683
5213506e 16684else
c13e029b
PB
16685 acx_cv_header_stdint_kind="(lacks uint64_t)"
16686fi
f77b6ca3 16687
c13e029b
PB
16688 break
16689done
16690if test "$acx_cv_header_stdint" = stddef.h; then
16691 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16692 for i in stdint.h $inttype_headers; do
16693 unset ac_cv_type_uintptr_t
16694 unset ac_cv_type_uint32_t
16695 unset ac_cv_type_uint64_t
16696 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16697 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16698#include <$i>
16699"
22e05272 16700if test "x$ac_cv_type_uint32_t" = xyes; then :
c13e029b
PB
16701 acx_cv_header_stdint=$i
16702else
16703 continue
5213506e 16704fi
f77b6ca3 16705
c13e029b
PB
16706 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16707#include <$i>
16708"
22e05272 16709if test "x$ac_cv_type_uint64_t" = xyes; then :
8845001b 16710
c13e029b 16711fi
185d7d97 16712
c13e029b
PB
16713 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16714#include <$i>
16715"
22e05272 16716if test "x$ac_cv_type_uintptr_t" = xyes; then :
185d7d97 16717
c13e029b 16718fi
35059811 16719
c13e029b
PB
16720 break
16721 done
16722fi
16723if test "$acx_cv_header_stdint" = stddef.h; then
16724 acx_cv_header_stdint_kind="(u_intXX_t style)"
16725 for i in sys/types.h $inttype_headers; do
16726 unset ac_cv_type_u_int32_t
16727 unset ac_cv_type_u_int64_t
16728 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16729 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16730#include <$i>
16731"
22e05272 16732if test "x$ac_cv_type_u_int32_t" = xyes; then :
c13e029b 16733 acx_cv_header_stdint=$i
d72a3ac1 16734else
c13e029b
PB
16735 continue
16736fi
a119fc1c 16737
c13e029b
PB
16738 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16739#include <$i>
16740"
22e05272 16741if test "x$ac_cv_type_u_int64_t" = xyes; then :
a119fc1c 16742
c13e029b 16743fi
a119fc1c 16744
c13e029b
PB
16745 break
16746 done
a119fc1c 16747fi
c13e029b
PB
16748if test "$acx_cv_header_stdint" = stddef.h; then
16749 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 16750fi
a119fc1c 16751
c13e029b
PB
16752test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16753test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16754test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16755test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16756test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 16757
c13e029b 16758# ----------------- Summarize what we found so far
5213506e 16759
c13e029b
PB
16760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16761$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 16762
c13e029b
PB
16763case `$as_basename -- gstdint.h ||
16764$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16765 Xgstdint.h : 'X\(//\)$' \| \
16766 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16767$as_echo X/gstdint.h |
16768 sed '/^.*\/\([^/][^/]*\)\/*$/{
16769 s//\1/
16770 q
16771 }
16772 /^X\/\(\/\/\)$/{
16773 s//\1/
16774 q
16775 }
16776 /^X\/\(\/\).*/{
16777 s//\1/
16778 q
16779 }
16780 s/.*/./; q'` in
16781 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16782$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16783 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16784$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16785 *) ;;
16786esac
a119fc1c 16787
c13e029b
PB
16788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16789$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16790
c13e029b 16791# ----------------- done included file, check C basic types --------
868d75db 16792
c13e029b
PB
16793# Lacking an uintptr_t? Test size of void *
16794case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16795 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16798# This bug is HP SR number 8606223364.
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16800$as_echo_n "checking size of void *... " >&6; }
22e05272 16801if ${ac_cv_sizeof_void_p+:} false; then :
c13e029b
PB
16802 $as_echo_n "(cached) " >&6
16803else
16804 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16805
c13e029b
PB
16806else
16807 if test "$ac_cv_type_void_p" = yes; then
16808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16810as_fn_error 77 "cannot compute sizeof (void *)
16811See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16812 else
16813 ac_cv_sizeof_void_p=0
16814 fi
16815fi
d72a3ac1 16816
c13e029b
PB
16817fi
16818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16819$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16820
868d75db
FXC
16821
16822
d72a3ac1 16823cat >>confdefs.h <<_ACEOF
c13e029b 16824#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16825_ACEOF
d72a3ac1 16826
c13e029b
PB
16827 ;;
16828esac
d72a3ac1 16829
c13e029b
PB
16830# Lacking an uint64_t? Test size of long
16831case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16832 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16833# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16834# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16835# This bug is HP SR number 8606223364.
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16837$as_echo_n "checking size of long... " >&6; }
22e05272 16838if ${ac_cv_sizeof_long+:} false; then :
5213506e
RW
16839 $as_echo_n "(cached) " >&6
16840else
c13e029b 16841 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16842
7f483eec 16843else
c13e029b
PB
16844 if test "$ac_cv_type_long" = yes; then
16845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16847as_fn_error 77 "cannot compute sizeof (long)
16848See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16849 else
16850 ac_cv_sizeof_long=0
16851 fi
5213506e 16852fi
7f483eec 16853
c13e029b
PB
16854fi
16855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16856$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16857
7f483eec 16858
d72a3ac1
PB
16859
16860cat >>confdefs.h <<_ACEOF
c13e029b 16861#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16862_ACEOF
7f483eec 16863
c13e029b
PB
16864 ;;
16865esac
29e86cb0 16866
c13e029b
PB
16867if test $acx_cv_header_stdint = stddef.h; then
16868 # Lacking a good header? Test size of everything and deduce all types.
16869 # The cast to long int works around a bug in the HP C Compiler
16870# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16871# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16872# This bug is HP SR number 8606223364.
16873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16874$as_echo_n "checking size of int... " >&6; }
22e05272 16875if ${ac_cv_sizeof_int+:} false; then :
c13e029b
PB
16876 $as_echo_n "(cached) " >&6
16877else
16878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16879
c13e029b
PB
16880else
16881 if test "$ac_cv_type_int" = yes; then
16882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16884as_fn_error 77 "cannot compute sizeof (int)
16885See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16886 else
16887 ac_cv_sizeof_int=0
16888 fi
16889fi
d8163f5c 16890
c13e029b
PB
16891fi
16892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16893$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16894
16895
868d75db 16896
d72a3ac1 16897cat >>confdefs.h <<_ACEOF
c13e029b 16898#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16899_ACEOF
16900
d72a3ac1 16901
c13e029b
PB
16902 # The cast to long int works around a bug in the HP C Compiler
16903# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16904# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16905# This bug is HP SR number 8606223364.
16906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16907$as_echo_n "checking size of short... " >&6; }
22e05272 16908if ${ac_cv_sizeof_short+:} false; then :
c13e029b
PB
16909 $as_echo_n "(cached) " >&6
16910else
16911 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16912
c13e029b
PB
16913else
16914 if test "$ac_cv_type_short" = yes; then
16915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16917as_fn_error 77 "cannot compute sizeof (short)
16918See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16919 else
16920 ac_cv_sizeof_short=0
16921 fi
16922fi
d72a3ac1 16923
c13e029b
PB
16924fi
16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16926$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16927
16928
16929
c13e029b
PB
16930cat >>confdefs.h <<_ACEOF
16931#define SIZEOF_SHORT $ac_cv_sizeof_short
16932_ACEOF
d72a3ac1
PB
16933
16934
c13e029b
PB
16935 # The cast to long int works around a bug in the HP C Compiler
16936# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16937# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16938# This bug is HP SR number 8606223364.
16939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16940$as_echo_n "checking size of char... " >&6; }
22e05272 16941if ${ac_cv_sizeof_char+:} false; then :
c13e029b
PB
16942 $as_echo_n "(cached) " >&6
16943else
16944 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16945
c13e029b
PB
16946else
16947 if test "$ac_cv_type_char" = yes; then
16948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16950as_fn_error 77 "cannot compute sizeof (char)
16951See \`config.log' for more details" "$LINENO" 5; }
c13e029b
PB
16952 else
16953 ac_cv_sizeof_char=0
16954 fi
16955fi
d72a3ac1 16956
c13e029b
PB
16957fi
16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16959$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16960
16961
d72a3ac1 16962
5213506e 16963cat >>confdefs.h <<_ACEOF
c13e029b 16964#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16965_ACEOF
868d75db 16966
868d75db 16967
2017c370 16968
c13e029b
PB
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16970$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16971 case "$ac_cv_sizeof_char" in
16972 1) acx_cv_type_int8_t=char ;;
22e05272 16973 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16974 esac
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16976$as_echo "$acx_cv_type_int8_t" >&6; }
16977
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16979$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16980 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16981 2:*) acx_cv_type_int16_t=int ;;
16982 *:2) acx_cv_type_int16_t=short ;;
22e05272 16983 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16984 esac
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16986$as_echo "$acx_cv_type_int16_t" >&6; }
16987
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16989$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16990 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16991 4:*) acx_cv_type_int32_t=int ;;
16992 *:4) acx_cv_type_int32_t=long ;;
22e05272 16993 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16994 esac
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16996$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16997fi
16998
c13e029b 16999# These tests are here to make the output prettier
d72a3ac1 17000
c13e029b
PB
17001if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17002 case "$ac_cv_sizeof_long" in
17003 8) acx_cv_type_int64_t=long ;;
17004 esac
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
17006$as_echo_n "checking for type equivalent to int64_t... " >&6; }
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17008$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
17009fi
17010
17011# Now we can use the above types
17012
17013if test "$ac_cv_type_uintptr_t" != yes; then
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
17015$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
17016 case $ac_cv_sizeof_void_p in
17017 2) acx_cv_type_intptr_t=int16_t ;;
17018 4) acx_cv_type_intptr_t=int32_t ;;
17019 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 17020 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
17021 esac
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
17023$as_echo "$acx_cv_type_intptr_t" >&6; }
17024fi
d72a3ac1 17025
c13e029b 17026# ----------------- done all checks, emit header -------------
5213506e 17027ac_config_commands="$ac_config_commands gstdint.h"
2017c370 17028
2017c370 17029
5213506e
RW
17030
17031
17032ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22e05272 17033if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
5213506e
RW
17034
17035cat >>confdefs.h <<_ACEOF
17036#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 17037_ACEOF
2017c370 17038
5213506e 17039
2017c370 17040fi
5213506e 17041ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
22e05272 17042if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
5213506e
RW
17043
17044cat >>confdefs.h <<_ACEOF
17045#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
17046_ACEOF
17047
5213506e 17048
2017c370 17049fi
5213506e 17050ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
22e05272 17051if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
2017c370 17052
5213506e
RW
17053cat >>confdefs.h <<_ACEOF
17054#define HAVE_STRUCT_STAT_ST_RDEV 1
17055_ACEOF
868d75db
FXC
17056
17057
f02d008e 17058fi
5213506e
RW
17059
17060
bd459d0b
JG
17061case "${host}--x${with_newlib}" in
17062 mips*--xyes)
17063 hardwire_newlib=1;;
d3ca2257
NS
17064 nvptx*--xyes)
17065 hardwire_newlib=1;;
bd459d0b
JG
17066esac
17067
5213506e 17068# Check for library functions.
bd459d0b 17069if test "${hardwire_newlib:-0}" -eq 1; then
b4005c71
SE
17070 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
17071 # may not work correctly, because the compiler may not be able to
17072 # link executables.
17073
17074$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
17075
17076
17077$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
17078
17079
b4005c71
SE
17080$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17081
17082
b4005c71
SE
17083$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17084
17085
17086$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17087
17088
17089$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17090
cb83df66 17091
ebfedee6
HPN
17092$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
17093
17094
17095$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
17096
17097
cb83df66
SE
17098 # At some point, we should differentiate between architectures
17099 # like x86, which have long double versions, and alpha/powerpc/etc.,
17100 # which don't. For the time being, punt.
17101 if test x"long_double_math_on_this_cpu" = x"yes"; then
17102
17103$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
17104
17105 fi
b4005c71 17106else
f77b6ca3 17107
f77b6ca3 17108
74544378
JB
17109
17110 for ac_func in $ac_func_list
5213506e
RW
17111do :
17112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 17114if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5213506e
RW
17115 cat >>confdefs.h <<_ACEOF
17116#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17117_ACEOF
f77b6ca3 17118
5213506e
RW
17119fi
17120done
f77b6ca3 17121
f77b6ca3 17122
5213506e 17123
96b8a615 17124
5213506e 17125
5213506e 17126
5213506e 17127
6de9cd9a 17128
6de9cd9a 17129
b6e7a3d1 17130
b6e7a3d1 17131
6de9cd9a 17132
4c0c6b9f 17133
4c0c6b9f 17134
4c0c6b9f 17135
4c0c6b9f 17136
4c0c6b9f 17137
4c0c6b9f 17138
4c0c6b9f 17139
4c0c6b9f 17140
868d75db 17141
868d75db 17142
868d75db 17143
868d75db 17144
4c0c6b9f 17145
4c0c6b9f 17146
4c0c6b9f 17147
4c0c6b9f 17148
6422c112 17149
6422c112 17150
6422c112 17151
74544378
JB
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
68ee9c08 17208
227e441f 17209
9cbecd06
JB
17210
17211
4269f19c
JB
17212
17213
b5b58343
UW
17214
17215
70480968
JB
17216
17217
d66d6d15
JB
17218
17219
edaaef60
JB
17220
17221
ef536b41
JB
17222
17223
17224
17225
133d0d42
JJ
17226
17227
17228
17229
f8886038
JB
17230
17231
227e441f 17232
8ecd1c0d
TB
17233
17234
b4005c71 17235fi
74544378 17236
4179e59a
TB
17237# Check strerror_r, cannot be above as versions with two and three arguments exist
17238
17239 ac_save_CFLAGS="$CFLAGS"
17240 CFLAGS="-Wimplicit-function-declaration -Werror"
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242/* end confdefs.h. */
17243#define _GNU_SOURCE 1
17244 #include <string.h>
17245 #include <locale.h>
17246int
17247main ()
17248{
17249char s[128]; strerror_r(5, s, 128);
17250 ;
17251 return 0;
17252}
17253_ACEOF
17254if ac_fn_c_try_compile "$LINENO"; then :
17255
17256$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17257
17258fi
17259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260 CFLAGS="$ac_save_CFLAGS"
17261
17262 ac_save_CFLAGS="$CFLAGS"
17263 CFLAGS="-Wimplicit-function-declaration -Werror"
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265/* end confdefs.h. */
17266#define _GNU_SOURCE 1
17267 #include <string.h>
17268 #include <locale.h>
17269int
17270main ()
17271{
17272char s[128]; strerror_r(5, s);
17273 ;
17274 return 0;
17275}
17276_ACEOF
17277if ac_fn_c_try_compile "$LINENO"; then :
17278
17279$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17280
17281fi
17282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283 CFLAGS="$ac_save_CFLAGS"
6422c112 17284
4c0c6b9f 17285
453310d8 17286# Check for C99 (and other IEEE) math functions
db9f46a9
TG
17287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17288$as_echo_n "checking for sin in -lm... " >&6; }
22e05272 17289if ${ac_cv_lib_m_sin+:} false; then :
5213506e 17290 $as_echo_n "(cached) " >&6
453310d8
RS
17291else
17292 ac_check_lib_save_LIBS=$LIBS
17293LIBS="-lm $LIBS"
f02d008e 17294if test x$gcc_no_link = xyes; then
22e05272 17295 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17296fi
5213506e 17297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17298/* end confdefs.h. */
17299
5213506e
RW
17300/* Override any GCC internal prototype to avoid an error.
17301 Use char because int might match the return type of a GCC
17302 builtin and then its argument prototype would still apply. */
453310d8
RS
17303#ifdef __cplusplus
17304extern "C"
17305#endif
db9f46a9 17306char sin ();
453310d8
RS
17307int
17308main ()
17309{
db9f46a9 17310return sin ();
453310d8
RS
17311 ;
17312 return 0;
17313}
17314_ACEOF
5213506e 17315if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17316 ac_cv_lib_m_sin=yes
453310d8 17317else
db9f46a9 17318 ac_cv_lib_m_sin=no
453310d8 17319fi
5213506e
RW
17320rm -f core conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17322LIBS=$ac_check_lib_save_LIBS
17323fi
db9f46a9
TG
17324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17325$as_echo "$ac_cv_lib_m_sin" >&6; }
22e05272 17326if test "x$ac_cv_lib_m_sin" = xyes; then :
db9f46a9
TG
17327 cat >>confdefs.h <<_ACEOF
17328#define HAVE_LIBM 1
17329_ACEOF
453310d8 17330
db9f46a9 17331 LIBS="-lm $LIBS"
453310d8
RS
17332
17333fi
17334
db9f46a9
TG
17335
17336
17337
17338
17339
17340
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17342$as_echo_n "checking for acosf... " >&6; }
22e05272 17343if ${gcc_cv_math_func_acosf+:} false; then :
5213506e 17344 $as_echo_n "(cached) " >&6
f02d008e 17345else
db9f46a9 17346 if test x$gcc_no_link = xyes; then
22e05272 17347 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17348fi
5213506e 17349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17350/* end confdefs.h. */
17351
db9f46a9
TG
17352#ifdef HAVE_COMPLEX_H
17353#include <complex.h>
17354#endif
17355#ifdef HAVE_MATH_H
17356#include <math.h>
f02d008e 17357#endif
db9f46a9
TG
17358
17359int (*ptr)() = (int (*)())acosf;
17360
f02d008e
JD
17361int
17362main ()
17363{
f02d008e
JD
17364 return 0;
17365}
db9f46a9 17366
f02d008e 17367_ACEOF
5213506e 17368if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17369 gcc_cv_math_func_acosf=yes
f02d008e 17370else
db9f46a9 17371 gcc_cv_math_func_acosf=no
f02d008e 17372fi
5213506e
RW
17373rm -f core conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
f02d008e 17375fi
db9f46a9
TG
17376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17377$as_echo "$gcc_cv_math_func_acosf" >&6; }
17378 if test $gcc_cv_math_func_acosf = yes; then
f1cdfa01 17379
f38a14ca
TG
17380cat >>confdefs.h <<_ACEOF
17381#define HAVE_ACOSF 1
17382_ACEOF
db9f46a9
TG
17383
17384 fi
f02d008e 17385
f02d008e 17386
f02d008e 17387
db9f46a9
TG
17388
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17390$as_echo_n "checking for acos... " >&6; }
22e05272 17391if ${gcc_cv_math_func_acos+:} false; then :
5213506e 17392 $as_echo_n "(cached) " >&6
453310d8 17393else
db9f46a9 17394 if test x$gcc_no_link = xyes; then
22e05272 17395 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17396fi
5213506e 17397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17398/* end confdefs.h. */
17399
db9f46a9
TG
17400#ifdef HAVE_COMPLEX_H
17401#include <complex.h>
453310d8 17402#endif
db9f46a9
TG
17403#ifdef HAVE_MATH_H
17404#include <math.h>
17405#endif
17406
17407int (*ptr)() = (int (*)())acos;
17408
453310d8
RS
17409int
17410main ()
17411{
453310d8
RS
17412 return 0;
17413}
db9f46a9 17414
453310d8 17415_ACEOF
5213506e 17416if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17417 gcc_cv_math_func_acos=yes
453310d8 17418else
db9f46a9 17419 gcc_cv_math_func_acos=no
453310d8 17420fi
5213506e
RW
17421rm -f core conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
453310d8 17423fi
db9f46a9
TG
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17425$as_echo "$gcc_cv_math_func_acos" >&6; }
17426 if test $gcc_cv_math_func_acos = yes; then
f1cdfa01 17427
f38a14ca
TG
17428cat >>confdefs.h <<_ACEOF
17429#define HAVE_ACOS 1
17430_ACEOF
db9f46a9
TG
17431
17432 fi
17433
453310d8 17434
453310d8 17435
453310d8 17436
db9f46a9
TG
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17438$as_echo_n "checking for acosl... " >&6; }
22e05272 17439if ${gcc_cv_math_func_acosl+:} false; then :
5213506e 17440 $as_echo_n "(cached) " >&6
f02d008e 17441else
db9f46a9 17442 if test x$gcc_no_link = xyes; then
22e05272 17443 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17444fi
5213506e 17445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17446/* end confdefs.h. */
17447
db9f46a9
TG
17448#ifdef HAVE_COMPLEX_H
17449#include <complex.h>
17450#endif
17451#ifdef HAVE_MATH_H
17452#include <math.h>
f02d008e 17453#endif
db9f46a9
TG
17454
17455int (*ptr)() = (int (*)())acosl;
17456
f02d008e
JD
17457int
17458main ()
17459{
f02d008e
JD
17460 return 0;
17461}
db9f46a9 17462
f02d008e 17463_ACEOF
5213506e 17464if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17465 gcc_cv_math_func_acosl=yes
f02d008e 17466else
db9f46a9 17467 gcc_cv_math_func_acosl=no
f02d008e 17468fi
5213506e
RW
17469rm -f core conftest.err conftest.$ac_objext \
17470 conftest$ac_exeext conftest.$ac_ext
f02d008e 17471fi
db9f46a9
TG
17472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17473$as_echo "$gcc_cv_math_func_acosl" >&6; }
17474 if test $gcc_cv_math_func_acosl = yes; then
f1cdfa01 17475
f38a14ca
TG
17476cat >>confdefs.h <<_ACEOF
17477#define HAVE_ACOSL 1
17478_ACEOF
db9f46a9
TG
17479
17480 fi
f02d008e 17481
f02d008e 17482
f02d008e 17483
db9f46a9
TG
17484
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17486$as_echo_n "checking for acoshf... " >&6; }
22e05272 17487if ${gcc_cv_math_func_acoshf+:} false; then :
5213506e 17488 $as_echo_n "(cached) " >&6
453310d8 17489else
db9f46a9 17490 if test x$gcc_no_link = xyes; then
22e05272 17491 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17492fi
5213506e 17493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17494/* end confdefs.h. */
17495
db9f46a9
TG
17496#ifdef HAVE_COMPLEX_H
17497#include <complex.h>
453310d8 17498#endif
db9f46a9
TG
17499#ifdef HAVE_MATH_H
17500#include <math.h>
17501#endif
17502
17503int (*ptr)() = (int (*)())acoshf;
17504
453310d8
RS
17505int
17506main ()
17507{
453310d8
RS
17508 return 0;
17509}
db9f46a9 17510
453310d8 17511_ACEOF
5213506e 17512if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17513 gcc_cv_math_func_acoshf=yes
453310d8 17514else
db9f46a9 17515 gcc_cv_math_func_acoshf=no
453310d8 17516fi
5213506e
RW
17517rm -f core conftest.err conftest.$ac_objext \
17518 conftest$ac_exeext conftest.$ac_ext
453310d8 17519fi
db9f46a9
TG
17520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17521$as_echo "$gcc_cv_math_func_acoshf" >&6; }
17522 if test $gcc_cv_math_func_acoshf = yes; then
f1cdfa01 17523
f38a14ca
TG
17524cat >>confdefs.h <<_ACEOF
17525#define HAVE_ACOSHF 1
17526_ACEOF
453310d8 17527
db9f46a9 17528 fi
453310d8 17529
453310d8 17530
db9f46a9
TG
17531
17532
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17534$as_echo_n "checking for acosh... " >&6; }
22e05272 17535if ${gcc_cv_math_func_acosh+:} false; then :
5213506e 17536 $as_echo_n "(cached) " >&6
453310d8 17537else
db9f46a9 17538 if test x$gcc_no_link = xyes; then
22e05272 17539 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17540fi
5213506e 17541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17542/* end confdefs.h. */
17543
db9f46a9
TG
17544#ifdef HAVE_COMPLEX_H
17545#include <complex.h>
17546#endif
17547#ifdef HAVE_MATH_H
17548#include <math.h>
453310d8 17549#endif
db9f46a9
TG
17550
17551int (*ptr)() = (int (*)())acosh;
17552
453310d8
RS
17553int
17554main ()
17555{
5213506e
RW
17556 return 0;
17557}
db9f46a9 17558
5213506e
RW
17559_ACEOF
17560if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17561 gcc_cv_math_func_acosh=yes
453310d8 17562else
db9f46a9 17563 gcc_cv_math_func_acosh=no
453310d8 17564fi
5213506e
RW
17565rm -f core conftest.err conftest.$ac_objext \
17566 conftest$ac_exeext conftest.$ac_ext
453310d8 17567fi
db9f46a9
TG
17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17569$as_echo "$gcc_cv_math_func_acosh" >&6; }
17570 if test $gcc_cv_math_func_acosh = yes; then
f1cdfa01 17571
f38a14ca
TG
17572cat >>confdefs.h <<_ACEOF
17573#define HAVE_ACOSH 1
17574_ACEOF
db9f46a9
TG
17575
17576 fi
453310d8 17577
453310d8 17578
453310d8 17579
db9f46a9
TG
17580
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17582$as_echo_n "checking for acoshl... " >&6; }
22e05272 17583if ${gcc_cv_math_func_acoshl+:} false; then :
5213506e 17584 $as_echo_n "(cached) " >&6
f02d008e 17585else
db9f46a9 17586 if test x$gcc_no_link = xyes; then
22e05272 17587 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17588fi
5213506e 17589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
17590/* end confdefs.h. */
17591
db9f46a9
TG
17592#ifdef HAVE_COMPLEX_H
17593#include <complex.h>
f02d008e 17594#endif
db9f46a9
TG
17595#ifdef HAVE_MATH_H
17596#include <math.h>
17597#endif
17598
17599int (*ptr)() = (int (*)())acoshl;
17600
f02d008e
JD
17601int
17602main ()
17603{
f02d008e
JD
17604 return 0;
17605}
db9f46a9 17606
f02d008e 17607_ACEOF
5213506e 17608if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17609 gcc_cv_math_func_acoshl=yes
f02d008e 17610else
db9f46a9 17611 gcc_cv_math_func_acoshl=no
f02d008e 17612fi
5213506e
RW
17613rm -f core conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
f02d008e 17615fi
db9f46a9
TG
17616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17617$as_echo "$gcc_cv_math_func_acoshl" >&6; }
17618 if test $gcc_cv_math_func_acoshl = yes; then
f1cdfa01 17619
f38a14ca
TG
17620cat >>confdefs.h <<_ACEOF
17621#define HAVE_ACOSHL 1
17622_ACEOF
db9f46a9
TG
17623
17624 fi
17625
f02d008e 17626
f02d008e 17627
f02d008e 17628
db9f46a9
TG
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17630$as_echo_n "checking for asinf... " >&6; }
22e05272 17631if ${gcc_cv_math_func_asinf+:} false; then :
5213506e 17632 $as_echo_n "(cached) " >&6
453310d8 17633else
db9f46a9 17634 if test x$gcc_no_link = xyes; then
22e05272 17635 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17636fi
5213506e 17637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17638/* end confdefs.h. */
17639
db9f46a9
TG
17640#ifdef HAVE_COMPLEX_H
17641#include <complex.h>
17642#endif
17643#ifdef HAVE_MATH_H
17644#include <math.h>
453310d8 17645#endif
db9f46a9
TG
17646
17647int (*ptr)() = (int (*)())asinf;
17648
453310d8
RS
17649int
17650main ()
17651{
453310d8
RS
17652 return 0;
17653}
db9f46a9 17654
453310d8 17655_ACEOF
5213506e 17656if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17657 gcc_cv_math_func_asinf=yes
453310d8 17658else
db9f46a9 17659 gcc_cv_math_func_asinf=no
453310d8 17660fi
5213506e
RW
17661rm -f core conftest.err conftest.$ac_objext \
17662 conftest$ac_exeext conftest.$ac_ext
453310d8 17663fi
db9f46a9
TG
17664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17665$as_echo "$gcc_cv_math_func_asinf" >&6; }
17666 if test $gcc_cv_math_func_asinf = yes; then
f1cdfa01 17667
f38a14ca
TG
17668cat >>confdefs.h <<_ACEOF
17669#define HAVE_ASINF 1
17670_ACEOF
db9f46a9
TG
17671
17672 fi
453310d8 17673
453310d8 17674
453310d8 17675
db9f46a9
TG
17676
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17678$as_echo_n "checking for asin... " >&6; }
22e05272 17679if ${gcc_cv_math_func_asin+:} false; then :
5213506e 17680 $as_echo_n "(cached) " >&6
453310d8 17681else
db9f46a9 17682 if test x$gcc_no_link = xyes; then
22e05272 17683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17684fi
5213506e 17685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17686/* end confdefs.h. */
17687
db9f46a9
TG
17688#ifdef HAVE_COMPLEX_H
17689#include <complex.h>
453310d8 17690#endif
db9f46a9
TG
17691#ifdef HAVE_MATH_H
17692#include <math.h>
17693#endif
17694
17695int (*ptr)() = (int (*)())asin;
17696
453310d8
RS
17697int
17698main ()
17699{
453310d8
RS
17700 return 0;
17701}
db9f46a9 17702
453310d8 17703_ACEOF
5213506e 17704if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17705 gcc_cv_math_func_asin=yes
453310d8 17706else
db9f46a9 17707 gcc_cv_math_func_asin=no
453310d8 17708fi
5213506e
RW
17709rm -f core conftest.err conftest.$ac_objext \
17710 conftest$ac_exeext conftest.$ac_ext
453310d8 17711fi
db9f46a9
TG
17712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17713$as_echo "$gcc_cv_math_func_asin" >&6; }
17714 if test $gcc_cv_math_func_asin = yes; then
f1cdfa01 17715
f38a14ca
TG
17716cat >>confdefs.h <<_ACEOF
17717#define HAVE_ASIN 1
17718_ACEOF
453310d8 17719
db9f46a9 17720 fi
453310d8 17721
453310d8 17722
db9f46a9
TG
17723
17724
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17726$as_echo_n "checking for asinl... " >&6; }
22e05272 17727if ${gcc_cv_math_func_asinl+:} false; then :
5213506e 17728 $as_echo_n "(cached) " >&6
453310d8 17729else
db9f46a9 17730 if test x$gcc_no_link = xyes; then
22e05272 17731 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17732fi
5213506e 17733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17734/* end confdefs.h. */
17735
db9f46a9
TG
17736#ifdef HAVE_COMPLEX_H
17737#include <complex.h>
17738#endif
17739#ifdef HAVE_MATH_H
17740#include <math.h>
453310d8 17741#endif
db9f46a9
TG
17742
17743int (*ptr)() = (int (*)())asinl;
17744
453310d8
RS
17745int
17746main ()
17747{
453310d8
RS
17748 return 0;
17749}
db9f46a9 17750
453310d8 17751_ACEOF
5213506e 17752if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17753 gcc_cv_math_func_asinl=yes
453310d8 17754else
db9f46a9 17755 gcc_cv_math_func_asinl=no
453310d8 17756fi
5213506e
RW
17757rm -f core conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
453310d8 17759fi
db9f46a9
TG
17760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17761$as_echo "$gcc_cv_math_func_asinl" >&6; }
17762 if test $gcc_cv_math_func_asinl = yes; then
f1cdfa01 17763
f38a14ca
TG
17764cat >>confdefs.h <<_ACEOF
17765#define HAVE_ASINL 1
17766_ACEOF
db9f46a9
TG
17767
17768 fi
453310d8 17769
453310d8 17770
453310d8 17771
db9f46a9
TG
17772
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17774$as_echo_n "checking for asinhf... " >&6; }
22e05272 17775if ${gcc_cv_math_func_asinhf+:} false; then :
5213506e 17776 $as_echo_n "(cached) " >&6
453310d8 17777else
db9f46a9 17778 if test x$gcc_no_link = xyes; then
22e05272 17779 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17780fi
5213506e 17781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17782/* end confdefs.h. */
17783
db9f46a9
TG
17784#ifdef HAVE_COMPLEX_H
17785#include <complex.h>
453310d8 17786#endif
db9f46a9
TG
17787#ifdef HAVE_MATH_H
17788#include <math.h>
17789#endif
17790
17791int (*ptr)() = (int (*)())asinhf;
17792
453310d8
RS
17793int
17794main ()
17795{
453310d8
RS
17796 return 0;
17797}
db9f46a9 17798
453310d8 17799_ACEOF
5213506e 17800if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17801 gcc_cv_math_func_asinhf=yes
453310d8 17802else
db9f46a9 17803 gcc_cv_math_func_asinhf=no
453310d8 17804fi
5213506e
RW
17805rm -f core conftest.err conftest.$ac_objext \
17806 conftest$ac_exeext conftest.$ac_ext
453310d8 17807fi
db9f46a9
TG
17808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17809$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17810 if test $gcc_cv_math_func_asinhf = yes; then
f1cdfa01 17811
f38a14ca
TG
17812cat >>confdefs.h <<_ACEOF
17813#define HAVE_ASINHF 1
17814_ACEOF
db9f46a9
TG
17815
17816 fi
17817
453310d8 17818
453310d8 17819
453310d8 17820
db9f46a9
TG
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17822$as_echo_n "checking for asinh... " >&6; }
22e05272 17823if ${gcc_cv_math_func_asinh+:} false; then :
5213506e 17824 $as_echo_n "(cached) " >&6
453310d8 17825else
db9f46a9 17826 if test x$gcc_no_link = xyes; then
22e05272 17827 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17828fi
5213506e 17829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17830/* end confdefs.h. */
17831
db9f46a9
TG
17832#ifdef HAVE_COMPLEX_H
17833#include <complex.h>
17834#endif
17835#ifdef HAVE_MATH_H
17836#include <math.h>
453310d8 17837#endif
db9f46a9
TG
17838
17839int (*ptr)() = (int (*)())asinh;
17840
453310d8
RS
17841int
17842main ()
17843{
453310d8
RS
17844 return 0;
17845}
db9f46a9 17846
453310d8 17847_ACEOF
5213506e 17848if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17849 gcc_cv_math_func_asinh=yes
453310d8 17850else
db9f46a9 17851 gcc_cv_math_func_asinh=no
453310d8 17852fi
5213506e
RW
17853rm -f core conftest.err conftest.$ac_objext \
17854 conftest$ac_exeext conftest.$ac_ext
453310d8 17855fi
db9f46a9
TG
17856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17857$as_echo "$gcc_cv_math_func_asinh" >&6; }
17858 if test $gcc_cv_math_func_asinh = yes; then
f1cdfa01 17859
f38a14ca
TG
17860cat >>confdefs.h <<_ACEOF
17861#define HAVE_ASINH 1
17862_ACEOF
db9f46a9
TG
17863
17864 fi
453310d8 17865
453310d8 17866
453310d8 17867
db9f46a9
TG
17868
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17870$as_echo_n "checking for asinhl... " >&6; }
22e05272 17871if ${gcc_cv_math_func_asinhl+:} false; then :
5213506e 17872 $as_echo_n "(cached) " >&6
6e4d9244 17873else
db9f46a9 17874 if test x$gcc_no_link = xyes; then
22e05272 17875 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17876fi
5213506e 17877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17878/* end confdefs.h. */
17879
db9f46a9
TG
17880#ifdef HAVE_COMPLEX_H
17881#include <complex.h>
6e4d9244 17882#endif
db9f46a9
TG
17883#ifdef HAVE_MATH_H
17884#include <math.h>
17885#endif
17886
17887int (*ptr)() = (int (*)())asinhl;
17888
6e4d9244
EB
17889int
17890main ()
17891{
6e4d9244
EB
17892 return 0;
17893}
db9f46a9 17894
6e4d9244 17895_ACEOF
5213506e 17896if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17897 gcc_cv_math_func_asinhl=yes
6e4d9244 17898else
db9f46a9 17899 gcc_cv_math_func_asinhl=no
6e4d9244 17900fi
5213506e
RW
17901rm -f core conftest.err conftest.$ac_objext \
17902 conftest$ac_exeext conftest.$ac_ext
6e4d9244 17903fi
db9f46a9
TG
17904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17905$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17906 if test $gcc_cv_math_func_asinhl = yes; then
f1cdfa01 17907
f38a14ca
TG
17908cat >>confdefs.h <<_ACEOF
17909#define HAVE_ASINHL 1
17910_ACEOF
6e4d9244 17911
db9f46a9 17912 fi
6e4d9244 17913
6e4d9244 17914
db9f46a9
TG
17915
17916
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17918$as_echo_n "checking for atan2f... " >&6; }
22e05272 17919if ${gcc_cv_math_func_atan2f+:} false; then :
5213506e 17920 $as_echo_n "(cached) " >&6
453310d8 17921else
db9f46a9 17922 if test x$gcc_no_link = xyes; then
22e05272 17923 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17924fi
5213506e 17925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17926/* end confdefs.h. */
17927
db9f46a9
TG
17928#ifdef HAVE_COMPLEX_H
17929#include <complex.h>
453310d8 17930#endif
db9f46a9
TG
17931#ifdef HAVE_MATH_H
17932#include <math.h>
17933#endif
17934
17935int (*ptr)() = (int (*)())atan2f;
17936
17937int
453310d8
RS
17938main ()
17939{
453310d8
RS
17940 return 0;
17941}
db9f46a9 17942
453310d8 17943_ACEOF
5213506e 17944if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17945 gcc_cv_math_func_atan2f=yes
453310d8 17946else
db9f46a9 17947 gcc_cv_math_func_atan2f=no
453310d8 17948fi
5213506e
RW
17949rm -f core conftest.err conftest.$ac_objext \
17950 conftest$ac_exeext conftest.$ac_ext
453310d8 17951fi
db9f46a9
TG
17952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17953$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17954 if test $gcc_cv_math_func_atan2f = yes; then
f1cdfa01 17955
f38a14ca
TG
17956cat >>confdefs.h <<_ACEOF
17957#define HAVE_ATAN2F 1
17958_ACEOF
db9f46a9
TG
17959
17960 fi
453310d8 17961
453310d8 17962
453310d8 17963
db9f46a9
TG
17964
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17966$as_echo_n "checking for atan2... " >&6; }
22e05272 17967if ${gcc_cv_math_func_atan2+:} false; then :
5213506e 17968 $as_echo_n "(cached) " >&6
453310d8 17969else
db9f46a9 17970 if test x$gcc_no_link = xyes; then
22e05272 17971 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17972fi
5213506e 17973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17974/* end confdefs.h. */
17975
db9f46a9
TG
17976#ifdef HAVE_COMPLEX_H
17977#include <complex.h>
453310d8 17978#endif
db9f46a9
TG
17979#ifdef HAVE_MATH_H
17980#include <math.h>
17981#endif
17982
17983int (*ptr)() = (int (*)())atan2;
17984
453310d8
RS
17985int
17986main ()
17987{
453310d8
RS
17988 return 0;
17989}
db9f46a9 17990
453310d8 17991_ACEOF
5213506e 17992if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17993 gcc_cv_math_func_atan2=yes
453310d8 17994else
db9f46a9 17995 gcc_cv_math_func_atan2=no
453310d8 17996fi
5213506e
RW
17997rm -f core conftest.err conftest.$ac_objext \
17998 conftest$ac_exeext conftest.$ac_ext
453310d8 17999fi
db9f46a9
TG
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
18001$as_echo "$gcc_cv_math_func_atan2" >&6; }
18002 if test $gcc_cv_math_func_atan2 = yes; then
f1cdfa01 18003
f38a14ca
TG
18004cat >>confdefs.h <<_ACEOF
18005#define HAVE_ATAN2 1
18006_ACEOF
453310d8 18007
db9f46a9 18008 fi
453310d8 18009
453310d8 18010
db9f46a9
TG
18011
18012
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
18014$as_echo_n "checking for atan2l... " >&6; }
22e05272 18015if ${gcc_cv_math_func_atan2l+:} false; then :
5213506e 18016 $as_echo_n "(cached) " >&6
453310d8 18017else
db9f46a9 18018 if test x$gcc_no_link = xyes; then
22e05272 18019 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18020fi
5213506e 18021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18022/* end confdefs.h. */
18023
db9f46a9
TG
18024#ifdef HAVE_COMPLEX_H
18025#include <complex.h>
18026#endif
18027#ifdef HAVE_MATH_H
18028#include <math.h>
453310d8 18029#endif
db9f46a9
TG
18030
18031int (*ptr)() = (int (*)())atan2l;
18032
453310d8
RS
18033int
18034main ()
18035{
453310d8
RS
18036 return 0;
18037}
db9f46a9 18038
453310d8 18039_ACEOF
5213506e 18040if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18041 gcc_cv_math_func_atan2l=yes
453310d8 18042else
db9f46a9 18043 gcc_cv_math_func_atan2l=no
453310d8 18044fi
5213506e
RW
18045rm -f core conftest.err conftest.$ac_objext \
18046 conftest$ac_exeext conftest.$ac_ext
453310d8 18047fi
db9f46a9
TG
18048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
18049$as_echo "$gcc_cv_math_func_atan2l" >&6; }
18050 if test $gcc_cv_math_func_atan2l = yes; then
f1cdfa01 18051
f38a14ca
TG
18052cat >>confdefs.h <<_ACEOF
18053#define HAVE_ATAN2L 1
18054_ACEOF
db9f46a9
TG
18055
18056 fi
453310d8 18057
453310d8 18058
453310d8 18059
db9f46a9
TG
18060
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
18062$as_echo_n "checking for atanf... " >&6; }
22e05272 18063if ${gcc_cv_math_func_atanf+:} false; then :
5213506e 18064 $as_echo_n "(cached) " >&6
453310d8 18065else
db9f46a9 18066 if test x$gcc_no_link = xyes; then
22e05272 18067 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18068fi
5213506e 18069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18070/* end confdefs.h. */
18071
db9f46a9
TG
18072#ifdef HAVE_COMPLEX_H
18073#include <complex.h>
453310d8 18074#endif
db9f46a9
TG
18075#ifdef HAVE_MATH_H
18076#include <math.h>
18077#endif
18078
18079int (*ptr)() = (int (*)())atanf;
18080
453310d8
RS
18081int
18082main ()
18083{
453310d8
RS
18084 return 0;
18085}
db9f46a9 18086
453310d8 18087_ACEOF
5213506e 18088if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18089 gcc_cv_math_func_atanf=yes
453310d8 18090else
db9f46a9 18091 gcc_cv_math_func_atanf=no
453310d8 18092fi
5213506e
RW
18093rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
453310d8 18095fi
db9f46a9
TG
18096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
18097$as_echo "$gcc_cv_math_func_atanf" >&6; }
18098 if test $gcc_cv_math_func_atanf = yes; then
f1cdfa01 18099
f38a14ca
TG
18100cat >>confdefs.h <<_ACEOF
18101#define HAVE_ATANF 1
18102_ACEOF
db9f46a9
TG
18103
18104 fi
18105
453310d8 18106
453310d8 18107
453310d8 18108
db9f46a9
TG
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
18110$as_echo_n "checking for atan... " >&6; }
22e05272 18111if ${gcc_cv_math_func_atan+:} false; then :
5213506e 18112 $as_echo_n "(cached) " >&6
453310d8 18113else
db9f46a9 18114 if test x$gcc_no_link = xyes; then
22e05272 18115 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18116fi
5213506e 18117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18118/* end confdefs.h. */
18119
db9f46a9
TG
18120#ifdef HAVE_COMPLEX_H
18121#include <complex.h>
18122#endif
18123#ifdef HAVE_MATH_H
18124#include <math.h>
453310d8 18125#endif
db9f46a9
TG
18126
18127int (*ptr)() = (int (*)())atan;
18128
453310d8
RS
18129int
18130main ()
18131{
453310d8
RS
18132 return 0;
18133}
db9f46a9 18134
453310d8 18135_ACEOF
5213506e 18136if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18137 gcc_cv_math_func_atan=yes
453310d8 18138else
db9f46a9 18139 gcc_cv_math_func_atan=no
453310d8 18140fi
5213506e
RW
18141rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
453310d8 18143fi
db9f46a9
TG
18144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
18145$as_echo "$gcc_cv_math_func_atan" >&6; }
18146 if test $gcc_cv_math_func_atan = yes; then
f1cdfa01 18147
f38a14ca
TG
18148cat >>confdefs.h <<_ACEOF
18149#define HAVE_ATAN 1
18150_ACEOF
db9f46a9
TG
18151
18152 fi
453310d8 18153
453310d8 18154
453310d8 18155
db9f46a9
TG
18156
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
18158$as_echo_n "checking for atanl... " >&6; }
22e05272 18159if ${gcc_cv_math_func_atanl+:} false; then :
5213506e 18160 $as_echo_n "(cached) " >&6
32aa3bff 18161else
db9f46a9 18162 if test x$gcc_no_link = xyes; then
22e05272 18163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18164fi
5213506e 18165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
18166/* end confdefs.h. */
18167
db9f46a9
TG
18168#ifdef HAVE_COMPLEX_H
18169#include <complex.h>
32aa3bff 18170#endif
db9f46a9
TG
18171#ifdef HAVE_MATH_H
18172#include <math.h>
18173#endif
18174
18175int (*ptr)() = (int (*)())atanl;
18176
32aa3bff
FXC
18177int
18178main ()
18179{
32aa3bff
FXC
18180 return 0;
18181}
db9f46a9 18182
32aa3bff 18183_ACEOF
5213506e 18184if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18185 gcc_cv_math_func_atanl=yes
32aa3bff 18186else
db9f46a9 18187 gcc_cv_math_func_atanl=no
32aa3bff 18188fi
5213506e
RW
18189rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
32aa3bff 18191fi
db9f46a9
TG
18192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
18193$as_echo "$gcc_cv_math_func_atanl" >&6; }
18194 if test $gcc_cv_math_func_atanl = yes; then
f1cdfa01 18195
f38a14ca
TG
18196cat >>confdefs.h <<_ACEOF
18197#define HAVE_ATANL 1
18198_ACEOF
32aa3bff 18199
db9f46a9 18200 fi
32aa3bff 18201
32aa3bff 18202
db9f46a9
TG
18203
18204
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
18206$as_echo_n "checking for atanhf... " >&6; }
22e05272 18207if ${gcc_cv_math_func_atanhf+:} false; then :
5213506e 18208 $as_echo_n "(cached) " >&6
453310d8 18209else
db9f46a9 18210 if test x$gcc_no_link = xyes; then
22e05272 18211 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18212fi
5213506e 18213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18214/* end confdefs.h. */
18215
db9f46a9
TG
18216#ifdef HAVE_COMPLEX_H
18217#include <complex.h>
18218#endif
18219#ifdef HAVE_MATH_H
18220#include <math.h>
453310d8 18221#endif
db9f46a9
TG
18222
18223int (*ptr)() = (int (*)())atanhf;
18224
453310d8
RS
18225int
18226main ()
18227{
453310d8
RS
18228 return 0;
18229}
db9f46a9 18230
453310d8 18231_ACEOF
5213506e 18232if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18233 gcc_cv_math_func_atanhf=yes
453310d8 18234else
db9f46a9 18235 gcc_cv_math_func_atanhf=no
453310d8 18236fi
5213506e
RW
18237rm -f core conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
453310d8 18239fi
db9f46a9
TG
18240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
18241$as_echo "$gcc_cv_math_func_atanhf" >&6; }
18242 if test $gcc_cv_math_func_atanhf = yes; then
f1cdfa01 18243
f38a14ca
TG
18244cat >>confdefs.h <<_ACEOF
18245#define HAVE_ATANHF 1
18246_ACEOF
db9f46a9
TG
18247
18248 fi
453310d8 18249
453310d8 18250
453310d8 18251
db9f46a9
TG
18252
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18254$as_echo_n "checking for atanh... " >&6; }
22e05272 18255if ${gcc_cv_math_func_atanh+:} false; then :
5213506e 18256 $as_echo_n "(cached) " >&6
453310d8 18257else
db9f46a9 18258 if test x$gcc_no_link = xyes; then
22e05272 18259 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18260fi
5213506e 18261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18262/* end confdefs.h. */
18263
db9f46a9
TG
18264#ifdef HAVE_COMPLEX_H
18265#include <complex.h>
453310d8 18266#endif
db9f46a9
TG
18267#ifdef HAVE_MATH_H
18268#include <math.h>
18269#endif
18270
18271int (*ptr)() = (int (*)())atanh;
18272
453310d8
RS
18273int
18274main ()
18275{
453310d8
RS
18276 return 0;
18277}
db9f46a9 18278
453310d8 18279_ACEOF
5213506e 18280if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18281 gcc_cv_math_func_atanh=yes
453310d8 18282else
db9f46a9 18283 gcc_cv_math_func_atanh=no
453310d8 18284fi
5213506e
RW
18285rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
453310d8 18287fi
db9f46a9
TG
18288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18289$as_echo "$gcc_cv_math_func_atanh" >&6; }
18290 if test $gcc_cv_math_func_atanh = yes; then
f1cdfa01 18291
f38a14ca
TG
18292cat >>confdefs.h <<_ACEOF
18293#define HAVE_ATANH 1
18294_ACEOF
db9f46a9
TG
18295
18296 fi
18297
453310d8 18298
453310d8 18299
453310d8 18300
db9f46a9
TG
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18302$as_echo_n "checking for atanhl... " >&6; }
22e05272 18303if ${gcc_cv_math_func_atanhl+:} false; then :
5213506e 18304 $as_echo_n "(cached) " >&6
bf4d99cf 18305else
db9f46a9 18306 if test x$gcc_no_link = xyes; then
22e05272 18307 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18308fi
5213506e 18309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
18310/* end confdefs.h. */
18311
db9f46a9
TG
18312#ifdef HAVE_COMPLEX_H
18313#include <complex.h>
18314#endif
18315#ifdef HAVE_MATH_H
18316#include <math.h>
bf4d99cf 18317#endif
db9f46a9
TG
18318
18319int (*ptr)() = (int (*)())atanhl;
18320
bf4d99cf
TS
18321int
18322main ()
18323{
bf4d99cf
TS
18324 return 0;
18325}
db9f46a9 18326
bf4d99cf 18327_ACEOF
5213506e 18328if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18329 gcc_cv_math_func_atanhl=yes
bf4d99cf 18330else
db9f46a9 18331 gcc_cv_math_func_atanhl=no
bf4d99cf 18332fi
5213506e
RW
18333rm -f core conftest.err conftest.$ac_objext \
18334 conftest$ac_exeext conftest.$ac_ext
bf4d99cf 18335fi
db9f46a9
TG
18336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18337$as_echo "$gcc_cv_math_func_atanhl" >&6; }
18338 if test $gcc_cv_math_func_atanhl = yes; then
f1cdfa01 18339
f38a14ca
TG
18340cat >>confdefs.h <<_ACEOF
18341#define HAVE_ATANHL 1
18342_ACEOF
db9f46a9
TG
18343
18344 fi
bf4d99cf 18345
bf4d99cf 18346
bf4d99cf 18347
db9f46a9
TG
18348
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18350$as_echo_n "checking for cargf... " >&6; }
22e05272 18351if ${gcc_cv_math_func_cargf+:} false; then :
5213506e 18352 $as_echo_n "(cached) " >&6
a2a2059f 18353else
db9f46a9 18354 if test x$gcc_no_link = xyes; then
22e05272 18355 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18356fi
5213506e 18357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
18358/* end confdefs.h. */
18359
db9f46a9
TG
18360#ifdef HAVE_COMPLEX_H
18361#include <complex.h>
a2a2059f 18362#endif
db9f46a9
TG
18363#ifdef HAVE_MATH_H
18364#include <math.h>
18365#endif
18366
18367int (*ptr)() = (int (*)())cargf;
18368
453310d8
RS
18369int
18370main ()
18371{
453310d8
RS
18372 return 0;
18373}
db9f46a9 18374
453310d8 18375_ACEOF
5213506e 18376if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18377 gcc_cv_math_func_cargf=yes
453310d8 18378else
db9f46a9 18379 gcc_cv_math_func_cargf=no
453310d8 18380fi
5213506e
RW
18381rm -f core conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
453310d8 18383fi
db9f46a9
TG
18384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18385$as_echo "$gcc_cv_math_func_cargf" >&6; }
18386 if test $gcc_cv_math_func_cargf = yes; then
f1cdfa01 18387
f38a14ca
TG
18388cat >>confdefs.h <<_ACEOF
18389#define HAVE_CARGF 1
18390_ACEOF
453310d8 18391
db9f46a9 18392 fi
453310d8 18393
453310d8 18394
db9f46a9
TG
18395
18396
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18398$as_echo_n "checking for carg... " >&6; }
22e05272 18399if ${gcc_cv_math_func_carg+:} false; then :
5213506e 18400 $as_echo_n "(cached) " >&6
453310d8 18401else
db9f46a9 18402 if test x$gcc_no_link = xyes; then
22e05272 18403 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18404fi
5213506e 18405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18406/* end confdefs.h. */
18407
db9f46a9
TG
18408#ifdef HAVE_COMPLEX_H
18409#include <complex.h>
18410#endif
18411#ifdef HAVE_MATH_H
18412#include <math.h>
453310d8 18413#endif
db9f46a9
TG
18414
18415int (*ptr)() = (int (*)())carg;
18416
a2a2059f
BD
18417int
18418main ()
18419{
a2a2059f
BD
18420 return 0;
18421}
db9f46a9 18422
a2a2059f 18423_ACEOF
5213506e 18424if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18425 gcc_cv_math_func_carg=yes
a2a2059f 18426else
db9f46a9 18427 gcc_cv_math_func_carg=no
a2a2059f 18428fi
5213506e
RW
18429rm -f core conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
a2a2059f 18431fi
db9f46a9
TG
18432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18433$as_echo "$gcc_cv_math_func_carg" >&6; }
18434 if test $gcc_cv_math_func_carg = yes; then
f1cdfa01 18435
f38a14ca
TG
18436cat >>confdefs.h <<_ACEOF
18437#define HAVE_CARG 1
18438_ACEOF
db9f46a9
TG
18439
18440 fi
a2a2059f 18441
a2a2059f 18442
a2a2059f 18443
db9f46a9
TG
18444
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18446$as_echo_n "checking for cargl... " >&6; }
22e05272 18447if ${gcc_cv_math_func_cargl+:} false; then :
5213506e 18448 $as_echo_n "(cached) " >&6
a2a2059f 18449else
db9f46a9 18450 if test x$gcc_no_link = xyes; then
22e05272 18451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18452fi
5213506e 18453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
18454/* end confdefs.h. */
18455
db9f46a9
TG
18456#ifdef HAVE_COMPLEX_H
18457#include <complex.h>
a2a2059f 18458#endif
db9f46a9
TG
18459#ifdef HAVE_MATH_H
18460#include <math.h>
18461#endif
18462
18463int (*ptr)() = (int (*)())cargl;
18464
a2a2059f
BD
18465int
18466main ()
18467{
a2a2059f
BD
18468 return 0;
18469}
db9f46a9 18470
a2a2059f 18471_ACEOF
5213506e 18472if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18473 gcc_cv_math_func_cargl=yes
a2a2059f 18474else
db9f46a9 18475 gcc_cv_math_func_cargl=no
a2a2059f 18476fi
5213506e
RW
18477rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
a2a2059f 18479fi
db9f46a9
TG
18480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18481$as_echo "$gcc_cv_math_func_cargl" >&6; }
18482 if test $gcc_cv_math_func_cargl = yes; then
f1cdfa01 18483
f38a14ca
TG
18484cat >>confdefs.h <<_ACEOF
18485#define HAVE_CARGL 1
18486_ACEOF
db9f46a9
TG
18487
18488 fi
18489
a2a2059f 18490
a2a2059f 18491
a2a2059f 18492
db9f46a9
TG
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18494$as_echo_n "checking for ceilf... " >&6; }
22e05272 18495if ${gcc_cv_math_func_ceilf+:} false; then :
5213506e 18496 $as_echo_n "(cached) " >&6
ae973d6a 18497else
db9f46a9 18498 if test x$gcc_no_link = xyes; then
22e05272 18499 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18500fi
5213506e 18501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
18502/* end confdefs.h. */
18503
db9f46a9
TG
18504#ifdef HAVE_COMPLEX_H
18505#include <complex.h>
18506#endif
18507#ifdef HAVE_MATH_H
18508#include <math.h>
ae973d6a 18509#endif
db9f46a9
TG
18510
18511int (*ptr)() = (int (*)())ceilf;
18512
ae973d6a
FXC
18513int
18514main ()
18515{
ae973d6a
FXC
18516 return 0;
18517}
db9f46a9 18518
ae973d6a 18519_ACEOF
5213506e 18520if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18521 gcc_cv_math_func_ceilf=yes
ae973d6a 18522else
db9f46a9 18523 gcc_cv_math_func_ceilf=no
ae973d6a 18524fi
5213506e
RW
18525rm -f core conftest.err conftest.$ac_objext \
18526 conftest$ac_exeext conftest.$ac_ext
ae973d6a 18527fi
db9f46a9
TG
18528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18529$as_echo "$gcc_cv_math_func_ceilf" >&6; }
18530 if test $gcc_cv_math_func_ceilf = yes; then
f1cdfa01 18531
f38a14ca
TG
18532cat >>confdefs.h <<_ACEOF
18533#define HAVE_CEILF 1
18534_ACEOF
db9f46a9
TG
18535
18536 fi
ae973d6a 18537
ae973d6a 18538
ae973d6a 18539
db9f46a9
TG
18540
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18542$as_echo_n "checking for ceil... " >&6; }
22e05272 18543if ${gcc_cv_math_func_ceil+:} false; then :
5213506e 18544 $as_echo_n "(cached) " >&6
a9e7b9d3 18545else
db9f46a9 18546 if test x$gcc_no_link = xyes; then
22e05272 18547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18548fi
5213506e 18549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18550/* end confdefs.h. */
18551
db9f46a9
TG
18552#ifdef HAVE_COMPLEX_H
18553#include <complex.h>
a9e7b9d3 18554#endif
db9f46a9
TG
18555#ifdef HAVE_MATH_H
18556#include <math.h>
18557#endif
18558
18559int (*ptr)() = (int (*)())ceil;
18560
a9e7b9d3
PB
18561int
18562main ()
18563{
a9e7b9d3
PB
18564 return 0;
18565}
db9f46a9 18566
a9e7b9d3 18567_ACEOF
5213506e 18568if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18569 gcc_cv_math_func_ceil=yes
a9e7b9d3 18570else
db9f46a9 18571 gcc_cv_math_func_ceil=no
a9e7b9d3 18572fi
5213506e
RW
18573rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18575fi
db9f46a9
TG
18576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18577$as_echo "$gcc_cv_math_func_ceil" >&6; }
18578 if test $gcc_cv_math_func_ceil = yes; then
f1cdfa01 18579
f38a14ca
TG
18580cat >>confdefs.h <<_ACEOF
18581#define HAVE_CEIL 1
18582_ACEOF
a9e7b9d3 18583
db9f46a9 18584 fi
a9e7b9d3 18585
a9e7b9d3 18586
db9f46a9
TG
18587
18588
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18590$as_echo_n "checking for ceill... " >&6; }
22e05272 18591if ${gcc_cv_math_func_ceill+:} false; then :
5213506e 18592 $as_echo_n "(cached) " >&6
a9e7b9d3 18593else
db9f46a9 18594 if test x$gcc_no_link = xyes; then
22e05272 18595 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18596fi
5213506e 18597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
18598/* end confdefs.h. */
18599
db9f46a9
TG
18600#ifdef HAVE_COMPLEX_H
18601#include <complex.h>
18602#endif
18603#ifdef HAVE_MATH_H
18604#include <math.h>
a9e7b9d3 18605#endif
db9f46a9
TG
18606
18607int (*ptr)() = (int (*)())ceill;
18608
a9e7b9d3
PB
18609int
18610main ()
18611{
a9e7b9d3
PB
18612 return 0;
18613}
db9f46a9 18614
a9e7b9d3 18615_ACEOF
5213506e 18616if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18617 gcc_cv_math_func_ceill=yes
a9e7b9d3 18618else
db9f46a9 18619 gcc_cv_math_func_ceill=no
a9e7b9d3 18620fi
5213506e
RW
18621rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 18623fi
db9f46a9
TG
18624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18625$as_echo "$gcc_cv_math_func_ceill" >&6; }
18626 if test $gcc_cv_math_func_ceill = yes; then
f1cdfa01 18627
f38a14ca
TG
18628cat >>confdefs.h <<_ACEOF
18629#define HAVE_CEILL 1
18630_ACEOF
db9f46a9
TG
18631
18632 fi
a9e7b9d3 18633
453310d8 18634
453310d8 18635
db9f46a9
TG
18636
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18638$as_echo_n "checking for copysignf... " >&6; }
22e05272 18639if ${gcc_cv_math_func_copysignf+:} false; then :
5213506e 18640 $as_echo_n "(cached) " >&6
453310d8 18641else
db9f46a9 18642 if test x$gcc_no_link = xyes; then
22e05272 18643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18644fi
5213506e 18645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18646/* end confdefs.h. */
18647
db9f46a9
TG
18648#ifdef HAVE_COMPLEX_H
18649#include <complex.h>
453310d8 18650#endif
db9f46a9
TG
18651#ifdef HAVE_MATH_H
18652#include <math.h>
18653#endif
18654
18655int (*ptr)() = (int (*)())copysignf;
18656
453310d8
RS
18657int
18658main ()
18659{
453310d8
RS
18660 return 0;
18661}
db9f46a9 18662
453310d8 18663_ACEOF
5213506e 18664if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18665 gcc_cv_math_func_copysignf=yes
453310d8 18666else
db9f46a9 18667 gcc_cv_math_func_copysignf=no
453310d8 18668fi
5213506e
RW
18669rm -f core conftest.err conftest.$ac_objext \
18670 conftest$ac_exeext conftest.$ac_ext
453310d8 18671fi
db9f46a9
TG
18672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18673$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18674 if test $gcc_cv_math_func_copysignf = yes; then
f1cdfa01 18675
f38a14ca
TG
18676cat >>confdefs.h <<_ACEOF
18677#define HAVE_COPYSIGNF 1
18678_ACEOF
db9f46a9
TG
18679
18680 fi
18681
453310d8 18682
453310d8 18683
453310d8 18684
db9f46a9
TG
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18686$as_echo_n "checking for copysign... " >&6; }
22e05272 18687if ${gcc_cv_math_func_copysign+:} false; then :
5213506e 18688 $as_echo_n "(cached) " >&6
453310d8 18689else
db9f46a9 18690 if test x$gcc_no_link = xyes; then
22e05272 18691 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18692fi
5213506e 18693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18694/* end confdefs.h. */
18695
db9f46a9
TG
18696#ifdef HAVE_COMPLEX_H
18697#include <complex.h>
18698#endif
18699#ifdef HAVE_MATH_H
18700#include <math.h>
453310d8 18701#endif
db9f46a9
TG
18702
18703int (*ptr)() = (int (*)())copysign;
18704
453310d8
RS
18705int
18706main ()
18707{
453310d8
RS
18708 return 0;
18709}
db9f46a9 18710
453310d8 18711_ACEOF
5213506e 18712if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18713 gcc_cv_math_func_copysign=yes
453310d8 18714else
db9f46a9 18715 gcc_cv_math_func_copysign=no
453310d8 18716fi
5213506e
RW
18717rm -f core conftest.err conftest.$ac_objext \
18718 conftest$ac_exeext conftest.$ac_ext
453310d8 18719fi
db9f46a9
TG
18720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18721$as_echo "$gcc_cv_math_func_copysign" >&6; }
18722 if test $gcc_cv_math_func_copysign = yes; then
f1cdfa01 18723
f38a14ca
TG
18724cat >>confdefs.h <<_ACEOF
18725#define HAVE_COPYSIGN 1
18726_ACEOF
db9f46a9
TG
18727
18728 fi
453310d8 18729
453310d8 18730
453310d8 18731
db9f46a9
TG
18732
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18734$as_echo_n "checking for copysignl... " >&6; }
22e05272 18735if ${gcc_cv_math_func_copysignl+:} false; then :
5213506e 18736 $as_echo_n "(cached) " >&6
453310d8 18737else
db9f46a9 18738 if test x$gcc_no_link = xyes; then
22e05272 18739 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18740fi
5213506e 18741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18742/* end confdefs.h. */
18743
db9f46a9
TG
18744#ifdef HAVE_COMPLEX_H
18745#include <complex.h>
453310d8 18746#endif
db9f46a9
TG
18747#ifdef HAVE_MATH_H
18748#include <math.h>
18749#endif
18750
18751int (*ptr)() = (int (*)())copysignl;
18752
453310d8
RS
18753int
18754main ()
18755{
5213506e
RW
18756 return 0;
18757}
db9f46a9 18758
5213506e
RW
18759_ACEOF
18760if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18761 gcc_cv_math_func_copysignl=yes
453310d8 18762else
db9f46a9 18763 gcc_cv_math_func_copysignl=no
453310d8 18764fi
5213506e
RW
18765rm -f core conftest.err conftest.$ac_objext \
18766 conftest$ac_exeext conftest.$ac_ext
453310d8 18767fi
db9f46a9
TG
18768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18769$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18770 if test $gcc_cv_math_func_copysignl = yes; then
f1cdfa01 18771
f38a14ca
TG
18772cat >>confdefs.h <<_ACEOF
18773#define HAVE_COPYSIGNL 1
18774_ACEOF
453310d8 18775
db9f46a9 18776 fi
a9e7b9d3 18777
a9e7b9d3 18778
db9f46a9
TG
18779
18780
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18782$as_echo_n "checking for cosf... " >&6; }
22e05272 18783if ${gcc_cv_math_func_cosf+:} false; then :
5213506e 18784 $as_echo_n "(cached) " >&6
69a2d125 18785else
db9f46a9 18786 if test x$gcc_no_link = xyes; then
22e05272 18787 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18788fi
5213506e 18789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18790/* end confdefs.h. */
18791
db9f46a9
TG
18792#ifdef HAVE_COMPLEX_H
18793#include <complex.h>
18794#endif
18795#ifdef HAVE_MATH_H
18796#include <math.h>
69a2d125 18797#endif
db9f46a9
TG
18798
18799int (*ptr)() = (int (*)())cosf;
18800
69a2d125
EB
18801int
18802main ()
18803{
69a2d125
EB
18804 return 0;
18805}
db9f46a9 18806
69a2d125 18807_ACEOF
5213506e 18808if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18809 gcc_cv_math_func_cosf=yes
69a2d125 18810else
db9f46a9 18811 gcc_cv_math_func_cosf=no
69a2d125 18812fi
5213506e
RW
18813rm -f core conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
69a2d125 18815fi
db9f46a9
TG
18816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18817$as_echo "$gcc_cv_math_func_cosf" >&6; }
18818 if test $gcc_cv_math_func_cosf = yes; then
f1cdfa01 18819
f38a14ca
TG
18820cat >>confdefs.h <<_ACEOF
18821#define HAVE_COSF 1
18822_ACEOF
db9f46a9
TG
18823
18824 fi
69a2d125 18825
1409cd0b 18826
1409cd0b 18827
db9f46a9
TG
18828
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18830$as_echo_n "checking for cos... " >&6; }
22e05272 18831if ${gcc_cv_math_func_cos+:} false; then :
5213506e 18832 $as_echo_n "(cached) " >&6
1409cd0b 18833else
db9f46a9 18834 if test x$gcc_no_link = xyes; then
22e05272 18835 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18836fi
5213506e 18837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18838/* end confdefs.h. */
18839
db9f46a9
TG
18840#ifdef HAVE_COMPLEX_H
18841#include <complex.h>
1409cd0b 18842#endif
db9f46a9
TG
18843#ifdef HAVE_MATH_H
18844#include <math.h>
18845#endif
18846
18847int (*ptr)() = (int (*)())cos;
18848
1409cd0b
FXC
18849int
18850main ()
18851{
1409cd0b
FXC
18852 return 0;
18853}
db9f46a9 18854
1409cd0b 18855_ACEOF
5213506e 18856if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18857 gcc_cv_math_func_cos=yes
1409cd0b 18858else
db9f46a9 18859 gcc_cv_math_func_cos=no
1409cd0b 18860fi
5213506e
RW
18861rm -f core conftest.err conftest.$ac_objext \
18862 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18863fi
db9f46a9
TG
18864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18865$as_echo "$gcc_cv_math_func_cos" >&6; }
18866 if test $gcc_cv_math_func_cos = yes; then
f1cdfa01 18867
f38a14ca
TG
18868cat >>confdefs.h <<_ACEOF
18869#define HAVE_COS 1
18870_ACEOF
db9f46a9
TG
18871
18872 fi
18873
1409cd0b 18874
1409cd0b 18875
1409cd0b 18876
db9f46a9
TG
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18878$as_echo_n "checking for cosl... " >&6; }
22e05272 18879if ${gcc_cv_math_func_cosl+:} false; then :
5213506e 18880 $as_echo_n "(cached) " >&6
1409cd0b 18881else
db9f46a9 18882 if test x$gcc_no_link = xyes; then
22e05272 18883 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18884fi
5213506e 18885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18886/* end confdefs.h. */
18887
db9f46a9
TG
18888#ifdef HAVE_COMPLEX_H
18889#include <complex.h>
18890#endif
18891#ifdef HAVE_MATH_H
18892#include <math.h>
1409cd0b 18893#endif
db9f46a9
TG
18894
18895int (*ptr)() = (int (*)())cosl;
18896
1409cd0b
FXC
18897int
18898main ()
18899{
1409cd0b
FXC
18900 return 0;
18901}
db9f46a9 18902
1409cd0b 18903_ACEOF
5213506e 18904if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18905 gcc_cv_math_func_cosl=yes
1409cd0b 18906else
db9f46a9 18907 gcc_cv_math_func_cosl=no
1409cd0b 18908fi
5213506e
RW
18909rm -f core conftest.err conftest.$ac_objext \
18910 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18911fi
db9f46a9
TG
18912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18913$as_echo "$gcc_cv_math_func_cosl" >&6; }
18914 if test $gcc_cv_math_func_cosl = yes; then
f1cdfa01 18915
f38a14ca
TG
18916cat >>confdefs.h <<_ACEOF
18917#define HAVE_COSL 1
18918_ACEOF
db9f46a9
TG
18919
18920 fi
1409cd0b 18921
1409cd0b 18922
1409cd0b 18923
db9f46a9
TG
18924
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18926$as_echo_n "checking for ccosf... " >&6; }
22e05272 18927if ${gcc_cv_math_func_ccosf+:} false; then :
5213506e 18928 $as_echo_n "(cached) " >&6
1409cd0b 18929else
db9f46a9 18930 if test x$gcc_no_link = xyes; then
22e05272 18931 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18932fi
5213506e 18933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18934/* end confdefs.h. */
18935
db9f46a9
TG
18936#ifdef HAVE_COMPLEX_H
18937#include <complex.h>
1409cd0b 18938#endif
db9f46a9
TG
18939#ifdef HAVE_MATH_H
18940#include <math.h>
18941#endif
18942
18943int (*ptr)() = (int (*)())ccosf;
18944
1409cd0b
FXC
18945int
18946main ()
18947{
1409cd0b
FXC
18948 return 0;
18949}
db9f46a9 18950
1409cd0b 18951_ACEOF
5213506e 18952if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18953 gcc_cv_math_func_ccosf=yes
1409cd0b 18954else
db9f46a9 18955 gcc_cv_math_func_ccosf=no
1409cd0b 18956fi
5213506e
RW
18957rm -f core conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18959fi
db9f46a9
TG
18960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18961$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18962 if test $gcc_cv_math_func_ccosf = yes; then
f1cdfa01 18963
f38a14ca
TG
18964cat >>confdefs.h <<_ACEOF
18965#define HAVE_CCOSF 1
18966_ACEOF
1409cd0b 18967
db9f46a9 18968 fi
1409cd0b 18969
1409cd0b 18970
db9f46a9
TG
18971
18972
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18974$as_echo_n "checking for ccos... " >&6; }
22e05272 18975if ${gcc_cv_math_func_ccos+:} false; then :
5213506e 18976 $as_echo_n "(cached) " >&6
1409cd0b 18977else
db9f46a9 18978 if test x$gcc_no_link = xyes; then
22e05272 18979 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18980fi
5213506e 18981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18982/* end confdefs.h. */
18983
db9f46a9
TG
18984#ifdef HAVE_COMPLEX_H
18985#include <complex.h>
18986#endif
18987#ifdef HAVE_MATH_H
18988#include <math.h>
1409cd0b 18989#endif
db9f46a9
TG
18990
18991int (*ptr)() = (int (*)())ccos;
18992
1409cd0b
FXC
18993int
18994main ()
18995{
1409cd0b
FXC
18996 return 0;
18997}
db9f46a9 18998
1409cd0b 18999_ACEOF
5213506e 19000if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19001 gcc_cv_math_func_ccos=yes
1409cd0b 19002else
db9f46a9 19003 gcc_cv_math_func_ccos=no
1409cd0b 19004fi
5213506e
RW
19005rm -f core conftest.err conftest.$ac_objext \
19006 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19007fi
db9f46a9
TG
19008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
19009$as_echo "$gcc_cv_math_func_ccos" >&6; }
19010 if test $gcc_cv_math_func_ccos = yes; then
f1cdfa01 19011
f38a14ca
TG
19012cat >>confdefs.h <<_ACEOF
19013#define HAVE_CCOS 1
19014_ACEOF
db9f46a9
TG
19015
19016 fi
1409cd0b 19017
1409cd0b 19018
1409cd0b 19019
db9f46a9
TG
19020
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
19022$as_echo_n "checking for ccosl... " >&6; }
22e05272 19023if ${gcc_cv_math_func_ccosl+:} false; then :
5213506e 19024 $as_echo_n "(cached) " >&6
1409cd0b 19025else
db9f46a9 19026 if test x$gcc_no_link = xyes; then
22e05272 19027 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19028fi
5213506e 19029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19030/* end confdefs.h. */
19031
db9f46a9
TG
19032#ifdef HAVE_COMPLEX_H
19033#include <complex.h>
1409cd0b 19034#endif
db9f46a9
TG
19035#ifdef HAVE_MATH_H
19036#include <math.h>
19037#endif
19038
19039int (*ptr)() = (int (*)())ccosl;
19040
1409cd0b
FXC
19041int
19042main ()
19043{
1409cd0b
FXC
19044 return 0;
19045}
db9f46a9 19046
1409cd0b 19047_ACEOF
5213506e 19048if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19049 gcc_cv_math_func_ccosl=yes
1409cd0b 19050else
db9f46a9 19051 gcc_cv_math_func_ccosl=no
1409cd0b 19052fi
5213506e
RW
19053rm -f core conftest.err conftest.$ac_objext \
19054 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19055fi
db9f46a9
TG
19056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
19057$as_echo "$gcc_cv_math_func_ccosl" >&6; }
19058 if test $gcc_cv_math_func_ccosl = yes; then
f1cdfa01 19059
f38a14ca
TG
19060cat >>confdefs.h <<_ACEOF
19061#define HAVE_CCOSL 1
19062_ACEOF
db9f46a9
TG
19063
19064 fi
19065
1409cd0b 19066
1409cd0b 19067
1409cd0b 19068
db9f46a9
TG
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
19070$as_echo_n "checking for coshf... " >&6; }
22e05272 19071if ${gcc_cv_math_func_coshf+:} false; then :
5213506e 19072 $as_echo_n "(cached) " >&6
1409cd0b 19073else
db9f46a9 19074 if test x$gcc_no_link = xyes; then
22e05272 19075 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19076fi
5213506e 19077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19078/* end confdefs.h. */
19079
db9f46a9
TG
19080#ifdef HAVE_COMPLEX_H
19081#include <complex.h>
19082#endif
19083#ifdef HAVE_MATH_H
19084#include <math.h>
1409cd0b 19085#endif
db9f46a9
TG
19086
19087int (*ptr)() = (int (*)())coshf;
19088
1409cd0b
FXC
19089int
19090main ()
19091{
1409cd0b
FXC
19092 return 0;
19093}
db9f46a9 19094
1409cd0b 19095_ACEOF
5213506e 19096if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19097 gcc_cv_math_func_coshf=yes
1409cd0b 19098else
db9f46a9 19099 gcc_cv_math_func_coshf=no
1409cd0b 19100fi
5213506e
RW
19101rm -f core conftest.err conftest.$ac_objext \
19102 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19103fi
db9f46a9
TG
19104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
19105$as_echo "$gcc_cv_math_func_coshf" >&6; }
19106 if test $gcc_cv_math_func_coshf = yes; then
f1cdfa01 19107
f38a14ca
TG
19108cat >>confdefs.h <<_ACEOF
19109#define HAVE_COSHF 1
19110_ACEOF
db9f46a9
TG
19111
19112 fi
1409cd0b 19113
1409cd0b 19114
1409cd0b 19115
db9f46a9
TG
19116
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
19118$as_echo_n "checking for cosh... " >&6; }
22e05272 19119if ${gcc_cv_math_func_cosh+:} false; then :
5213506e 19120 $as_echo_n "(cached) " >&6
1409cd0b 19121else
db9f46a9 19122 if test x$gcc_no_link = xyes; then
22e05272 19123 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19124fi
5213506e 19125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19126/* end confdefs.h. */
19127
db9f46a9
TG
19128#ifdef HAVE_COMPLEX_H
19129#include <complex.h>
1409cd0b 19130#endif
db9f46a9
TG
19131#ifdef HAVE_MATH_H
19132#include <math.h>
19133#endif
19134
19135int (*ptr)() = (int (*)())cosh;
19136
1409cd0b
FXC
19137int
19138main ()
19139{
1409cd0b
FXC
19140 return 0;
19141}
db9f46a9 19142
1409cd0b 19143_ACEOF
5213506e 19144if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19145 gcc_cv_math_func_cosh=yes
1409cd0b 19146else
db9f46a9 19147 gcc_cv_math_func_cosh=no
1409cd0b 19148fi
5213506e
RW
19149rm -f core conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19151fi
db9f46a9
TG
19152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
19153$as_echo "$gcc_cv_math_func_cosh" >&6; }
19154 if test $gcc_cv_math_func_cosh = yes; then
f1cdfa01 19155
f38a14ca
TG
19156cat >>confdefs.h <<_ACEOF
19157#define HAVE_COSH 1
19158_ACEOF
1409cd0b 19159
db9f46a9 19160 fi
1409cd0b 19161
1409cd0b 19162
db9f46a9
TG
19163
19164
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
19166$as_echo_n "checking for coshl... " >&6; }
22e05272 19167if ${gcc_cv_math_func_coshl+:} false; then :
5213506e 19168 $as_echo_n "(cached) " >&6
1409cd0b 19169else
db9f46a9 19170 if test x$gcc_no_link = xyes; then
22e05272 19171 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19172fi
5213506e 19173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19174/* end confdefs.h. */
19175
db9f46a9
TG
19176#ifdef HAVE_COMPLEX_H
19177#include <complex.h>
19178#endif
19179#ifdef HAVE_MATH_H
19180#include <math.h>
1409cd0b 19181#endif
db9f46a9
TG
19182
19183int (*ptr)() = (int (*)())coshl;
19184
1409cd0b
FXC
19185int
19186main ()
19187{
1409cd0b
FXC
19188 return 0;
19189}
db9f46a9 19190
1409cd0b 19191_ACEOF
5213506e 19192if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19193 gcc_cv_math_func_coshl=yes
1409cd0b 19194else
db9f46a9 19195 gcc_cv_math_func_coshl=no
1409cd0b 19196fi
5213506e
RW
19197rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19199fi
db9f46a9
TG
19200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
19201$as_echo "$gcc_cv_math_func_coshl" >&6; }
19202 if test $gcc_cv_math_func_coshl = yes; then
f1cdfa01 19203
f38a14ca
TG
19204cat >>confdefs.h <<_ACEOF
19205#define HAVE_COSHL 1
19206_ACEOF
db9f46a9
TG
19207
19208 fi
1409cd0b 19209
1409cd0b 19210
1409cd0b 19211
db9f46a9
TG
19212
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
19214$as_echo_n "checking for ccoshf... " >&6; }
22e05272 19215if ${gcc_cv_math_func_ccoshf+:} false; then :
5213506e 19216 $as_echo_n "(cached) " >&6
1409cd0b 19217else
db9f46a9 19218 if test x$gcc_no_link = xyes; then
22e05272 19219 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19220fi
5213506e 19221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19222/* end confdefs.h. */
19223
db9f46a9
TG
19224#ifdef HAVE_COMPLEX_H
19225#include <complex.h>
1409cd0b 19226#endif
db9f46a9
TG
19227#ifdef HAVE_MATH_H
19228#include <math.h>
19229#endif
19230
19231int (*ptr)() = (int (*)())ccoshf;
19232
1409cd0b
FXC
19233int
19234main ()
19235{
1409cd0b
FXC
19236 return 0;
19237}
db9f46a9 19238
1409cd0b 19239_ACEOF
5213506e 19240if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19241 gcc_cv_math_func_ccoshf=yes
1409cd0b 19242else
db9f46a9 19243 gcc_cv_math_func_ccoshf=no
1409cd0b 19244fi
5213506e
RW
19245rm -f core conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19247fi
db9f46a9
TG
19248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
19249$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19250 if test $gcc_cv_math_func_ccoshf = yes; then
f1cdfa01 19251
f38a14ca
TG
19252cat >>confdefs.h <<_ACEOF
19253#define HAVE_CCOSHF 1
19254_ACEOF
db9f46a9
TG
19255
19256 fi
19257
1409cd0b 19258
1409cd0b 19259
1409cd0b 19260
db9f46a9
TG
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19262$as_echo_n "checking for ccosh... " >&6; }
22e05272 19263if ${gcc_cv_math_func_ccosh+:} false; then :
5213506e 19264 $as_echo_n "(cached) " >&6
1409cd0b 19265else
db9f46a9 19266 if test x$gcc_no_link = xyes; then
22e05272 19267 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19268fi
5213506e 19269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19270/* end confdefs.h. */
19271
db9f46a9
TG
19272#ifdef HAVE_COMPLEX_H
19273#include <complex.h>
19274#endif
19275#ifdef HAVE_MATH_H
19276#include <math.h>
1409cd0b 19277#endif
db9f46a9
TG
19278
19279int (*ptr)() = (int (*)())ccosh;
19280
1409cd0b
FXC
19281int
19282main ()
19283{
1409cd0b
FXC
19284 return 0;
19285}
db9f46a9 19286
1409cd0b 19287_ACEOF
5213506e 19288if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19289 gcc_cv_math_func_ccosh=yes
1409cd0b 19290else
db9f46a9 19291 gcc_cv_math_func_ccosh=no
1409cd0b 19292fi
5213506e
RW
19293rm -f core conftest.err conftest.$ac_objext \
19294 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19295fi
db9f46a9
TG
19296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19297$as_echo "$gcc_cv_math_func_ccosh" >&6; }
19298 if test $gcc_cv_math_func_ccosh = yes; then
f1cdfa01 19299
f38a14ca
TG
19300cat >>confdefs.h <<_ACEOF
19301#define HAVE_CCOSH 1
19302_ACEOF
db9f46a9
TG
19303
19304 fi
1409cd0b 19305
1409cd0b 19306
1409cd0b 19307
db9f46a9
TG
19308
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19310$as_echo_n "checking for ccoshl... " >&6; }
22e05272 19311if ${gcc_cv_math_func_ccoshl+:} false; then :
5213506e 19312 $as_echo_n "(cached) " >&6
1409cd0b 19313else
db9f46a9 19314 if test x$gcc_no_link = xyes; then
22e05272 19315 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19316fi
5213506e 19317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19318/* end confdefs.h. */
19319
db9f46a9
TG
19320#ifdef HAVE_COMPLEX_H
19321#include <complex.h>
1409cd0b 19322#endif
db9f46a9
TG
19323#ifdef HAVE_MATH_H
19324#include <math.h>
19325#endif
19326
19327int (*ptr)() = (int (*)())ccoshl;
19328
1409cd0b
FXC
19329int
19330main ()
19331{
1409cd0b
FXC
19332 return 0;
19333}
db9f46a9 19334
1409cd0b 19335_ACEOF
5213506e 19336if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19337 gcc_cv_math_func_ccoshl=yes
1409cd0b 19338else
db9f46a9 19339 gcc_cv_math_func_ccoshl=no
1409cd0b 19340fi
5213506e
RW
19341rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19343fi
db9f46a9
TG
19344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19345$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19346 if test $gcc_cv_math_func_ccoshl = yes; then
f1cdfa01 19347
f38a14ca
TG
19348cat >>confdefs.h <<_ACEOF
19349#define HAVE_CCOSHL 1
19350_ACEOF
1409cd0b 19351
db9f46a9 19352 fi
1409cd0b 19353
1409cd0b 19354
db9f46a9
TG
19355
19356
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19358$as_echo_n "checking for expf... " >&6; }
22e05272 19359if ${gcc_cv_math_func_expf+:} false; then :
5213506e 19360 $as_echo_n "(cached) " >&6
1409cd0b 19361else
db9f46a9 19362 if test x$gcc_no_link = xyes; then
22e05272 19363 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19364fi
5213506e 19365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19366/* end confdefs.h. */
19367
db9f46a9
TG
19368#ifdef HAVE_COMPLEX_H
19369#include <complex.h>
19370#endif
19371#ifdef HAVE_MATH_H
19372#include <math.h>
1409cd0b 19373#endif
db9f46a9
TG
19374
19375int (*ptr)() = (int (*)())expf;
19376
1409cd0b
FXC
19377int
19378main ()
19379{
1409cd0b
FXC
19380 return 0;
19381}
db9f46a9 19382
1409cd0b 19383_ACEOF
5213506e 19384if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19385 gcc_cv_math_func_expf=yes
1409cd0b 19386else
db9f46a9 19387 gcc_cv_math_func_expf=no
1409cd0b 19388fi
5213506e
RW
19389rm -f core conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19391fi
db9f46a9
TG
19392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19393$as_echo "$gcc_cv_math_func_expf" >&6; }
19394 if test $gcc_cv_math_func_expf = yes; then
f1cdfa01 19395
f38a14ca
TG
19396cat >>confdefs.h <<_ACEOF
19397#define HAVE_EXPF 1
19398_ACEOF
db9f46a9
TG
19399
19400 fi
1409cd0b 19401
1409cd0b 19402
1409cd0b 19403
db9f46a9
TG
19404
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19406$as_echo_n "checking for exp... " >&6; }
22e05272 19407if ${gcc_cv_math_func_exp+:} false; then :
5213506e 19408 $as_echo_n "(cached) " >&6
1409cd0b 19409else
db9f46a9 19410 if test x$gcc_no_link = xyes; then
22e05272 19411 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19412fi
5213506e 19413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19414/* end confdefs.h. */
19415
db9f46a9
TG
19416#ifdef HAVE_COMPLEX_H
19417#include <complex.h>
1409cd0b 19418#endif
db9f46a9
TG
19419#ifdef HAVE_MATH_H
19420#include <math.h>
19421#endif
19422
19423int (*ptr)() = (int (*)())exp;
19424
1409cd0b
FXC
19425int
19426main ()
19427{
1409cd0b
FXC
19428 return 0;
19429}
db9f46a9 19430
1409cd0b 19431_ACEOF
5213506e 19432if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19433 gcc_cv_math_func_exp=yes
1409cd0b 19434else
db9f46a9 19435 gcc_cv_math_func_exp=no
1409cd0b 19436fi
5213506e
RW
19437rm -f core conftest.err conftest.$ac_objext \
19438 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19439fi
db9f46a9
TG
19440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19441$as_echo "$gcc_cv_math_func_exp" >&6; }
19442 if test $gcc_cv_math_func_exp = yes; then
f1cdfa01 19443
f38a14ca
TG
19444cat >>confdefs.h <<_ACEOF
19445#define HAVE_EXP 1
19446_ACEOF
db9f46a9
TG
19447
19448 fi
19449
1409cd0b 19450
1409cd0b 19451
1409cd0b 19452
db9f46a9
TG
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19454$as_echo_n "checking for expl... " >&6; }
22e05272 19455if ${gcc_cv_math_func_expl+:} false; then :
5213506e 19456 $as_echo_n "(cached) " >&6
1409cd0b 19457else
db9f46a9 19458 if test x$gcc_no_link = xyes; then
22e05272 19459 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19460fi
5213506e 19461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19462/* end confdefs.h. */
19463
db9f46a9
TG
19464#ifdef HAVE_COMPLEX_H
19465#include <complex.h>
19466#endif
19467#ifdef HAVE_MATH_H
19468#include <math.h>
1409cd0b 19469#endif
db9f46a9
TG
19470
19471int (*ptr)() = (int (*)())expl;
19472
1409cd0b
FXC
19473int
19474main ()
19475{
1409cd0b
FXC
19476 return 0;
19477}
db9f46a9 19478
1409cd0b 19479_ACEOF
5213506e 19480if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19481 gcc_cv_math_func_expl=yes
1409cd0b 19482else
db9f46a9 19483 gcc_cv_math_func_expl=no
1409cd0b 19484fi
5213506e
RW
19485rm -f core conftest.err conftest.$ac_objext \
19486 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19487fi
db9f46a9
TG
19488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19489$as_echo "$gcc_cv_math_func_expl" >&6; }
19490 if test $gcc_cv_math_func_expl = yes; then
f1cdfa01 19491
f38a14ca
TG
19492cat >>confdefs.h <<_ACEOF
19493#define HAVE_EXPL 1
19494_ACEOF
db9f46a9
TG
19495
19496 fi
1409cd0b 19497
1409cd0b 19498
1409cd0b 19499
db9f46a9
TG
19500
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19502$as_echo_n "checking for cexpf... " >&6; }
22e05272 19503if ${gcc_cv_math_func_cexpf+:} false; then :
5213506e 19504 $as_echo_n "(cached) " >&6
1409cd0b 19505else
db9f46a9 19506 if test x$gcc_no_link = xyes; then
22e05272 19507 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19508fi
5213506e 19509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19510/* end confdefs.h. */
19511
db9f46a9
TG
19512#ifdef HAVE_COMPLEX_H
19513#include <complex.h>
1409cd0b 19514#endif
db9f46a9
TG
19515#ifdef HAVE_MATH_H
19516#include <math.h>
19517#endif
19518
19519int (*ptr)() = (int (*)())cexpf;
19520
1409cd0b
FXC
19521int
19522main ()
19523{
1409cd0b
FXC
19524 return 0;
19525}
db9f46a9 19526
1409cd0b 19527_ACEOF
5213506e 19528if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19529 gcc_cv_math_func_cexpf=yes
1409cd0b 19530else
db9f46a9 19531 gcc_cv_math_func_cexpf=no
1409cd0b 19532fi
5213506e
RW
19533rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19535fi
db9f46a9
TG
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19537$as_echo "$gcc_cv_math_func_cexpf" >&6; }
19538 if test $gcc_cv_math_func_cexpf = yes; then
f1cdfa01 19539
f38a14ca
TG
19540cat >>confdefs.h <<_ACEOF
19541#define HAVE_CEXPF 1
19542_ACEOF
1409cd0b 19543
db9f46a9 19544 fi
1409cd0b 19545
1409cd0b 19546
db9f46a9
TG
19547
19548
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19550$as_echo_n "checking for cexp... " >&6; }
22e05272 19551if ${gcc_cv_math_func_cexp+:} false; then :
5213506e 19552 $as_echo_n "(cached) " >&6
1409cd0b 19553else
db9f46a9 19554 if test x$gcc_no_link = xyes; then
22e05272 19555 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19556fi
5213506e 19557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19558/* end confdefs.h. */
19559
db9f46a9
TG
19560#ifdef HAVE_COMPLEX_H
19561#include <complex.h>
19562#endif
19563#ifdef HAVE_MATH_H
19564#include <math.h>
1409cd0b 19565#endif
db9f46a9
TG
19566
19567int (*ptr)() = (int (*)())cexp;
19568
1409cd0b
FXC
19569int
19570main ()
19571{
1409cd0b
FXC
19572 return 0;
19573}
db9f46a9 19574
1409cd0b 19575_ACEOF
5213506e 19576if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19577 gcc_cv_math_func_cexp=yes
1409cd0b 19578else
db9f46a9 19579 gcc_cv_math_func_cexp=no
1409cd0b 19580fi
5213506e
RW
19581rm -f core conftest.err conftest.$ac_objext \
19582 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19583fi
db9f46a9
TG
19584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19585$as_echo "$gcc_cv_math_func_cexp" >&6; }
19586 if test $gcc_cv_math_func_cexp = yes; then
f1cdfa01 19587
f38a14ca
TG
19588cat >>confdefs.h <<_ACEOF
19589#define HAVE_CEXP 1
19590_ACEOF
db9f46a9
TG
19591
19592 fi
1409cd0b 19593
1409cd0b 19594
1409cd0b 19595
db9f46a9
TG
19596
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19598$as_echo_n "checking for cexpl... " >&6; }
22e05272 19599if ${gcc_cv_math_func_cexpl+:} false; then :
5213506e 19600 $as_echo_n "(cached) " >&6
1409cd0b 19601else
db9f46a9 19602 if test x$gcc_no_link = xyes; then
22e05272 19603 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19604fi
5213506e 19605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19606/* end confdefs.h. */
19607
db9f46a9
TG
19608#ifdef HAVE_COMPLEX_H
19609#include <complex.h>
1409cd0b 19610#endif
db9f46a9
TG
19611#ifdef HAVE_MATH_H
19612#include <math.h>
19613#endif
19614
19615int (*ptr)() = (int (*)())cexpl;
19616
1409cd0b
FXC
19617int
19618main ()
19619{
1409cd0b
FXC
19620 return 0;
19621}
db9f46a9 19622
1409cd0b 19623_ACEOF
5213506e 19624if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19625 gcc_cv_math_func_cexpl=yes
1409cd0b 19626else
db9f46a9 19627 gcc_cv_math_func_cexpl=no
1409cd0b 19628fi
5213506e
RW
19629rm -f core conftest.err conftest.$ac_objext \
19630 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19631fi
db9f46a9
TG
19632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19633$as_echo "$gcc_cv_math_func_cexpl" >&6; }
19634 if test $gcc_cv_math_func_cexpl = yes; then
f1cdfa01 19635
f38a14ca
TG
19636cat >>confdefs.h <<_ACEOF
19637#define HAVE_CEXPL 1
19638_ACEOF
db9f46a9
TG
19639
19640 fi
19641
1409cd0b 19642
1409cd0b 19643
1409cd0b 19644
db9f46a9
TG
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19646$as_echo_n "checking for fabsf... " >&6; }
22e05272 19647if ${gcc_cv_math_func_fabsf+:} false; then :
5213506e 19648 $as_echo_n "(cached) " >&6
1409cd0b 19649else
db9f46a9 19650 if test x$gcc_no_link = xyes; then
22e05272 19651 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19652fi
5213506e 19653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19654/* end confdefs.h. */
19655
db9f46a9
TG
19656#ifdef HAVE_COMPLEX_H
19657#include <complex.h>
19658#endif
19659#ifdef HAVE_MATH_H
19660#include <math.h>
1409cd0b 19661#endif
db9f46a9
TG
19662
19663int (*ptr)() = (int (*)())fabsf;
19664
1409cd0b
FXC
19665int
19666main ()
19667{
1409cd0b
FXC
19668 return 0;
19669}
db9f46a9 19670
1409cd0b 19671_ACEOF
5213506e 19672if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19673 gcc_cv_math_func_fabsf=yes
1409cd0b 19674else
db9f46a9 19675 gcc_cv_math_func_fabsf=no
1409cd0b 19676fi
5213506e
RW
19677rm -f core conftest.err conftest.$ac_objext \
19678 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19679fi
db9f46a9
TG
19680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19681$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19682 if test $gcc_cv_math_func_fabsf = yes; then
f1cdfa01 19683
f38a14ca
TG
19684cat >>confdefs.h <<_ACEOF
19685#define HAVE_FABSF 1
19686_ACEOF
db9f46a9
TG
19687
19688 fi
1409cd0b 19689
1409cd0b 19690
1409cd0b 19691
db9f46a9
TG
19692
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19694$as_echo_n "checking for fabs... " >&6; }
22e05272 19695if ${gcc_cv_math_func_fabs+:} false; then :
5213506e 19696 $as_echo_n "(cached) " >&6
1409cd0b 19697else
db9f46a9 19698 if test x$gcc_no_link = xyes; then
22e05272 19699 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19700fi
5213506e 19701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19702/* end confdefs.h. */
19703
db9f46a9
TG
19704#ifdef HAVE_COMPLEX_H
19705#include <complex.h>
1409cd0b 19706#endif
db9f46a9
TG
19707#ifdef HAVE_MATH_H
19708#include <math.h>
19709#endif
19710
19711int (*ptr)() = (int (*)())fabs;
19712
1409cd0b
FXC
19713int
19714main ()
19715{
1409cd0b
FXC
19716 return 0;
19717}
db9f46a9 19718
1409cd0b 19719_ACEOF
5213506e 19720if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19721 gcc_cv_math_func_fabs=yes
1409cd0b 19722else
db9f46a9 19723 gcc_cv_math_func_fabs=no
1409cd0b 19724fi
5213506e
RW
19725rm -f core conftest.err conftest.$ac_objext \
19726 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19727fi
db9f46a9
TG
19728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19729$as_echo "$gcc_cv_math_func_fabs" >&6; }
19730 if test $gcc_cv_math_func_fabs = yes; then
f1cdfa01 19731
f38a14ca
TG
19732cat >>confdefs.h <<_ACEOF
19733#define HAVE_FABS 1
19734_ACEOF
1409cd0b 19735
db9f46a9 19736 fi
1409cd0b 19737
1409cd0b 19738
db9f46a9
TG
19739
19740
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19742$as_echo_n "checking for fabsl... " >&6; }
22e05272 19743if ${gcc_cv_math_func_fabsl+:} false; then :
5213506e 19744 $as_echo_n "(cached) " >&6
1409cd0b 19745else
db9f46a9 19746 if test x$gcc_no_link = xyes; then
22e05272 19747 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19748fi
5213506e 19749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19750/* end confdefs.h. */
19751
db9f46a9
TG
19752#ifdef HAVE_COMPLEX_H
19753#include <complex.h>
19754#endif
19755#ifdef HAVE_MATH_H
19756#include <math.h>
1409cd0b 19757#endif
db9f46a9
TG
19758
19759int (*ptr)() = (int (*)())fabsl;
19760
1409cd0b
FXC
19761int
19762main ()
19763{
1409cd0b
FXC
19764 return 0;
19765}
db9f46a9 19766
1409cd0b 19767_ACEOF
5213506e 19768if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19769 gcc_cv_math_func_fabsl=yes
1409cd0b 19770else
db9f46a9 19771 gcc_cv_math_func_fabsl=no
1409cd0b 19772fi
5213506e
RW
19773rm -f core conftest.err conftest.$ac_objext \
19774 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19775fi
db9f46a9
TG
19776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19777$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19778 if test $gcc_cv_math_func_fabsl = yes; then
f1cdfa01 19779
f38a14ca
TG
19780cat >>confdefs.h <<_ACEOF
19781#define HAVE_FABSL 1
19782_ACEOF
db9f46a9
TG
19783
19784 fi
1409cd0b 19785
1409cd0b 19786
1409cd0b 19787
db9f46a9
TG
19788
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19790$as_echo_n "checking for cabsf... " >&6; }
22e05272 19791if ${gcc_cv_math_func_cabsf+:} false; then :
5213506e 19792 $as_echo_n "(cached) " >&6
1409cd0b 19793else
db9f46a9 19794 if test x$gcc_no_link = xyes; then
22e05272 19795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19796fi
5213506e 19797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19798/* end confdefs.h. */
19799
db9f46a9
TG
19800#ifdef HAVE_COMPLEX_H
19801#include <complex.h>
1409cd0b 19802#endif
db9f46a9
TG
19803#ifdef HAVE_MATH_H
19804#include <math.h>
19805#endif
19806
19807int (*ptr)() = (int (*)())cabsf;
19808
1409cd0b
FXC
19809int
19810main ()
19811{
1409cd0b
FXC
19812 return 0;
19813}
db9f46a9 19814
1409cd0b 19815_ACEOF
5213506e 19816if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19817 gcc_cv_math_func_cabsf=yes
1409cd0b 19818else
db9f46a9 19819 gcc_cv_math_func_cabsf=no
1409cd0b 19820fi
5213506e
RW
19821rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19823fi
db9f46a9
TG
19824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19825$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19826 if test $gcc_cv_math_func_cabsf = yes; then
f1cdfa01 19827
f38a14ca
TG
19828cat >>confdefs.h <<_ACEOF
19829#define HAVE_CABSF 1
19830_ACEOF
db9f46a9
TG
19831
19832 fi
19833
1409cd0b 19834
1409cd0b 19835
1409cd0b 19836
db9f46a9
TG
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19838$as_echo_n "checking for cabs... " >&6; }
22e05272 19839if ${gcc_cv_math_func_cabs+:} false; then :
5213506e 19840 $as_echo_n "(cached) " >&6
1409cd0b 19841else
db9f46a9 19842 if test x$gcc_no_link = xyes; then
22e05272 19843 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19844fi
5213506e 19845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19846/* end confdefs.h. */
19847
db9f46a9
TG
19848#ifdef HAVE_COMPLEX_H
19849#include <complex.h>
19850#endif
19851#ifdef HAVE_MATH_H
19852#include <math.h>
1409cd0b 19853#endif
db9f46a9
TG
19854
19855int (*ptr)() = (int (*)())cabs;
19856
1409cd0b
FXC
19857int
19858main ()
19859{
1409cd0b
FXC
19860 return 0;
19861}
db9f46a9 19862
1409cd0b 19863_ACEOF
5213506e 19864if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19865 gcc_cv_math_func_cabs=yes
1409cd0b 19866else
db9f46a9 19867 gcc_cv_math_func_cabs=no
1409cd0b 19868fi
5213506e
RW
19869rm -f core conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19871fi
db9f46a9
TG
19872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19873$as_echo "$gcc_cv_math_func_cabs" >&6; }
19874 if test $gcc_cv_math_func_cabs = yes; then
f1cdfa01 19875
f38a14ca
TG
19876cat >>confdefs.h <<_ACEOF
19877#define HAVE_CABS 1
19878_ACEOF
db9f46a9
TG
19879
19880 fi
1409cd0b 19881
1409cd0b 19882
1409cd0b 19883
db9f46a9
TG
19884
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19886$as_echo_n "checking for cabsl... " >&6; }
22e05272 19887if ${gcc_cv_math_func_cabsl+:} false; then :
5213506e 19888 $as_echo_n "(cached) " >&6
1409cd0b 19889else
db9f46a9 19890 if test x$gcc_no_link = xyes; then
22e05272 19891 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19892fi
5213506e 19893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19894/* end confdefs.h. */
19895
db9f46a9
TG
19896#ifdef HAVE_COMPLEX_H
19897#include <complex.h>
1409cd0b 19898#endif
db9f46a9
TG
19899#ifdef HAVE_MATH_H
19900#include <math.h>
19901#endif
19902
19903int (*ptr)() = (int (*)())cabsl;
19904
1409cd0b
FXC
19905int
19906main ()
19907{
1409cd0b
FXC
19908 return 0;
19909}
db9f46a9 19910
1409cd0b 19911_ACEOF
5213506e 19912if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19913 gcc_cv_math_func_cabsl=yes
1409cd0b 19914else
db9f46a9 19915 gcc_cv_math_func_cabsl=no
1409cd0b 19916fi
5213506e
RW
19917rm -f core conftest.err conftest.$ac_objext \
19918 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19919fi
db9f46a9
TG
19920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19921$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19922 if test $gcc_cv_math_func_cabsl = yes; then
f1cdfa01 19923
f38a14ca
TG
19924cat >>confdefs.h <<_ACEOF
19925#define HAVE_CABSL 1
19926_ACEOF
1409cd0b 19927
db9f46a9 19928 fi
1409cd0b 19929
1409cd0b 19930
db9f46a9
TG
19931
19932
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19934$as_echo_n "checking for floorf... " >&6; }
22e05272 19935if ${gcc_cv_math_func_floorf+:} false; then :
5213506e 19936 $as_echo_n "(cached) " >&6
1409cd0b 19937else
db9f46a9 19938 if test x$gcc_no_link = xyes; then
22e05272 19939 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19940fi
5213506e 19941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19942/* end confdefs.h. */
19943
db9f46a9
TG
19944#ifdef HAVE_COMPLEX_H
19945#include <complex.h>
19946#endif
19947#ifdef HAVE_MATH_H
19948#include <math.h>
1409cd0b 19949#endif
db9f46a9
TG
19950
19951int (*ptr)() = (int (*)())floorf;
19952
1409cd0b
FXC
19953int
19954main ()
19955{
5213506e
RW
19956 return 0;
19957}
db9f46a9 19958
5213506e
RW
19959_ACEOF
19960if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19961 gcc_cv_math_func_floorf=yes
1409cd0b 19962else
db9f46a9 19963 gcc_cv_math_func_floorf=no
1409cd0b 19964fi
5213506e
RW
19965rm -f core conftest.err conftest.$ac_objext \
19966 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19967fi
db9f46a9
TG
19968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19969$as_echo "$gcc_cv_math_func_floorf" >&6; }
19970 if test $gcc_cv_math_func_floorf = yes; then
f1cdfa01 19971
f38a14ca
TG
19972cat >>confdefs.h <<_ACEOF
19973#define HAVE_FLOORF 1
19974_ACEOF
db9f46a9
TG
19975
19976 fi
1409cd0b 19977
1409cd0b 19978
1409cd0b 19979
db9f46a9
TG
19980
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19982$as_echo_n "checking for floor... " >&6; }
22e05272 19983if ${gcc_cv_math_func_floor+:} false; then :
5213506e 19984 $as_echo_n "(cached) " >&6
1409cd0b 19985else
db9f46a9 19986 if test x$gcc_no_link = xyes; then
22e05272 19987 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19988fi
5213506e 19989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19990/* end confdefs.h. */
19991
db9f46a9
TG
19992#ifdef HAVE_COMPLEX_H
19993#include <complex.h>
1409cd0b 19994#endif
db9f46a9
TG
19995#ifdef HAVE_MATH_H
19996#include <math.h>
19997#endif
19998
19999int (*ptr)() = (int (*)())floor;
20000
1409cd0b
FXC
20001int
20002main ()
20003{
1409cd0b
FXC
20004 return 0;
20005}
db9f46a9 20006
1409cd0b 20007_ACEOF
5213506e 20008if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20009 gcc_cv_math_func_floor=yes
1409cd0b 20010else
db9f46a9 20011 gcc_cv_math_func_floor=no
1409cd0b 20012fi
5213506e
RW
20013rm -f core conftest.err conftest.$ac_objext \
20014 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20015fi
db9f46a9
TG
20016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
20017$as_echo "$gcc_cv_math_func_floor" >&6; }
20018 if test $gcc_cv_math_func_floor = yes; then
f1cdfa01 20019
f38a14ca
TG
20020cat >>confdefs.h <<_ACEOF
20021#define HAVE_FLOOR 1
20022_ACEOF
db9f46a9
TG
20023
20024 fi
20025
1409cd0b 20026
1409cd0b 20027
1409cd0b 20028
db9f46a9
TG
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
20030$as_echo_n "checking for floorl... " >&6; }
22e05272 20031if ${gcc_cv_math_func_floorl+:} false; then :
5213506e 20032 $as_echo_n "(cached) " >&6
eb647f7d 20033else
db9f46a9 20034 if test x$gcc_no_link = xyes; then
22e05272 20035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 20036fi
5213506e 20037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
20038/* end confdefs.h. */
20039
db9f46a9
TG
20040#ifdef HAVE_COMPLEX_H
20041#include <complex.h>
20042#endif
20043#ifdef HAVE_MATH_H
20044#include <math.h>
eb647f7d 20045#endif
db9f46a9
TG
20046
20047int (*ptr)() = (int (*)())floorl;
20048
eb647f7d
FXC
20049int
20050main ()
20051{
eb647f7d
FXC
20052 return 0;
20053}
db9f46a9 20054
eb647f7d 20055_ACEOF
5213506e 20056if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20057 gcc_cv_math_func_floorl=yes
eb647f7d 20058else
db9f46a9 20059 gcc_cv_math_func_floorl=no
eb647f7d 20060fi
5213506e
RW
20061rm -f core conftest.err conftest.$ac_objext \
20062 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20063fi
db9f46a9
TG
20064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
20065$as_echo "$gcc_cv_math_func_floorl" >&6; }
20066 if test $gcc_cv_math_func_floorl = yes; then
f1cdfa01 20067
f38a14ca
TG
20068cat >>confdefs.h <<_ACEOF
20069#define HAVE_FLOORL 1
20070_ACEOF
db9f46a9
TG
20071
20072 fi
eb647f7d 20073
eb647f7d 20074
eb647f7d 20075
db9f46a9 20076
1868599f
JJ
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5
20078$as_echo_n "checking for fmaf... " >&6; }
20079if ${gcc_cv_math_func_fmaf+:} false; then :
20080 $as_echo_n "(cached) " >&6
20081else
20082 if test x$gcc_no_link = xyes; then
20083 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20084fi
20085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086/* end confdefs.h. */
20087
20088#ifdef HAVE_COMPLEX_H
20089#include <complex.h>
20090#endif
20091#ifdef HAVE_MATH_H
20092#include <math.h>
20093#endif
20094
20095int (*ptr)() = (int (*)())fmaf;
20096
20097int
20098main ()
20099{
20100 return 0;
20101}
20102
20103_ACEOF
20104if ac_fn_c_try_link "$LINENO"; then :
20105 gcc_cv_math_func_fmaf=yes
20106else
20107 gcc_cv_math_func_fmaf=no
20108fi
20109rm -f core conftest.err conftest.$ac_objext \
20110 conftest$ac_exeext conftest.$ac_ext
20111fi
20112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5
20113$as_echo "$gcc_cv_math_func_fmaf" >&6; }
20114 if test $gcc_cv_math_func_fmaf = yes; then
20115
20116cat >>confdefs.h <<_ACEOF
20117#define HAVE_FMAF 1
20118_ACEOF
20119
20120 fi
20121
20122
20123
20124
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5
20126$as_echo_n "checking for fma... " >&6; }
20127if ${gcc_cv_math_func_fma+:} false; then :
20128 $as_echo_n "(cached) " >&6
20129else
20130 if test x$gcc_no_link = xyes; then
20131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20132fi
20133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134/* end confdefs.h. */
20135
20136#ifdef HAVE_COMPLEX_H
20137#include <complex.h>
20138#endif
20139#ifdef HAVE_MATH_H
20140#include <math.h>
20141#endif
20142
20143int (*ptr)() = (int (*)())fma;
20144
20145int
20146main ()
20147{
20148 return 0;
20149}
20150
20151_ACEOF
20152if ac_fn_c_try_link "$LINENO"; then :
20153 gcc_cv_math_func_fma=yes
20154else
20155 gcc_cv_math_func_fma=no
20156fi
20157rm -f core conftest.err conftest.$ac_objext \
20158 conftest$ac_exeext conftest.$ac_ext
20159fi
20160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5
20161$as_echo "$gcc_cv_math_func_fma" >&6; }
20162 if test $gcc_cv_math_func_fma = yes; then
20163
20164cat >>confdefs.h <<_ACEOF
20165#define HAVE_FMA 1
20166_ACEOF
20167
20168 fi
20169
20170
20171
20172
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5
20174$as_echo_n "checking for fmal... " >&6; }
20175if ${gcc_cv_math_func_fmal+:} false; then :
20176 $as_echo_n "(cached) " >&6
20177else
20178 if test x$gcc_no_link = xyes; then
20179 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20180fi
20181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20182/* end confdefs.h. */
20183
20184#ifdef HAVE_COMPLEX_H
20185#include <complex.h>
20186#endif
20187#ifdef HAVE_MATH_H
20188#include <math.h>
20189#endif
20190
20191int (*ptr)() = (int (*)())fmal;
20192
20193int
20194main ()
20195{
20196 return 0;
20197}
20198
20199_ACEOF
20200if ac_fn_c_try_link "$LINENO"; then :
20201 gcc_cv_math_func_fmal=yes
20202else
20203 gcc_cv_math_func_fmal=no
20204fi
20205rm -f core conftest.err conftest.$ac_objext \
20206 conftest$ac_exeext conftest.$ac_ext
20207fi
20208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5
20209$as_echo "$gcc_cv_math_func_fmal" >&6; }
20210 if test $gcc_cv_math_func_fmal = yes; then
20211
20212cat >>confdefs.h <<_ACEOF
20213#define HAVE_FMAL 1
20214_ACEOF
20215
20216 fi
20217
20218
20219
20220
db9f46a9
TG
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
20222$as_echo_n "checking for fmodf... " >&6; }
22e05272 20223if ${gcc_cv_math_func_fmodf+:} false; then :
5213506e 20224 $as_echo_n "(cached) " >&6
eb647f7d 20225else
db9f46a9 20226 if test x$gcc_no_link = xyes; then
22e05272 20227 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 20228fi
5213506e 20229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
20230/* end confdefs.h. */
20231
db9f46a9
TG
20232#ifdef HAVE_COMPLEX_H
20233#include <complex.h>
eb647f7d 20234#endif
db9f46a9
TG
20235#ifdef HAVE_MATH_H
20236#include <math.h>
20237#endif
20238
20239int (*ptr)() = (int (*)())fmodf;
20240
eb647f7d
FXC
20241int
20242main ()
20243{
eb647f7d
FXC
20244 return 0;
20245}
db9f46a9 20246
eb647f7d 20247_ACEOF
5213506e 20248if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20249 gcc_cv_math_func_fmodf=yes
eb647f7d 20250else
db9f46a9 20251 gcc_cv_math_func_fmodf=no
eb647f7d 20252fi
5213506e
RW
20253rm -f core conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20255fi
db9f46a9
TG
20256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
20257$as_echo "$gcc_cv_math_func_fmodf" >&6; }
20258 if test $gcc_cv_math_func_fmodf = yes; then
f1cdfa01 20259
f38a14ca
TG
20260cat >>confdefs.h <<_ACEOF
20261#define HAVE_FMODF 1
20262_ACEOF
eb647f7d 20263
db9f46a9 20264 fi
eb647f7d 20265
eb647f7d 20266
db9f46a9
TG
20267
20268
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
20270$as_echo_n "checking for fmod... " >&6; }
22e05272 20271if ${gcc_cv_math_func_fmod+:} false; then :
5213506e 20272 $as_echo_n "(cached) " >&6
eb647f7d 20273else
db9f46a9 20274 if test x$gcc_no_link = xyes; then
22e05272 20275 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 20276fi
5213506e 20277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
20278/* end confdefs.h. */
20279
db9f46a9
TG
20280#ifdef HAVE_COMPLEX_H
20281#include <complex.h>
20282#endif
20283#ifdef HAVE_MATH_H
20284#include <math.h>
eb647f7d 20285#endif
db9f46a9
TG
20286
20287int (*ptr)() = (int (*)())fmod;
20288
eb647f7d
FXC
20289int
20290main ()
20291{
eb647f7d
FXC
20292 return 0;
20293}
db9f46a9 20294
eb647f7d 20295_ACEOF
5213506e 20296if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20297 gcc_cv_math_func_fmod=yes
eb647f7d 20298else
db9f46a9 20299 gcc_cv_math_func_fmod=no
eb647f7d 20300fi
5213506e
RW
20301rm -f core conftest.err conftest.$ac_objext \
20302 conftest$ac_exeext conftest.$ac_ext
eb647f7d 20303fi
db9f46a9
TG
20304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
20305$as_echo "$gcc_cv_math_func_fmod" >&6; }
20306 if test $gcc_cv_math_func_fmod = yes; then
f1cdfa01 20307
f38a14ca
TG
20308cat >>confdefs.h <<_ACEOF
20309#define HAVE_FMOD 1
20310_ACEOF
db9f46a9
TG
20311
20312 fi
eb647f7d 20313
eb647f7d 20314
eb647f7d 20315
db9f46a9
TG
20316
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
20318$as_echo_n "checking for fmodl... " >&6; }
22e05272 20319if ${gcc_cv_math_func_fmodl+:} false; then :
5213506e 20320 $as_echo_n "(cached) " >&6
1409cd0b 20321else
db9f46a9 20322 if test x$gcc_no_link = xyes; then
22e05272 20323 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20324fi
5213506e 20325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20326/* end confdefs.h. */
20327
db9f46a9
TG
20328#ifdef HAVE_COMPLEX_H
20329#include <complex.h>
1409cd0b 20330#endif
db9f46a9
TG
20331#ifdef HAVE_MATH_H
20332#include <math.h>
20333#endif
20334
20335int (*ptr)() = (int (*)())fmodl;
20336
1409cd0b
FXC
20337int
20338main ()
20339{
1409cd0b
FXC
20340 return 0;
20341}
db9f46a9 20342
1409cd0b 20343_ACEOF
5213506e 20344if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20345 gcc_cv_math_func_fmodl=yes
1409cd0b 20346else
db9f46a9 20347 gcc_cv_math_func_fmodl=no
1409cd0b 20348fi
5213506e
RW
20349rm -f core conftest.err conftest.$ac_objext \
20350 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20351fi
db9f46a9
TG
20352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
20353$as_echo "$gcc_cv_math_func_fmodl" >&6; }
20354 if test $gcc_cv_math_func_fmodl = yes; then
f1cdfa01 20355
f38a14ca
TG
20356cat >>confdefs.h <<_ACEOF
20357#define HAVE_FMODL 1
20358_ACEOF
db9f46a9
TG
20359
20360 fi
20361
1409cd0b 20362
1409cd0b 20363
1409cd0b 20364
db9f46a9
TG
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
20366$as_echo_n "checking for frexpf... " >&6; }
22e05272 20367if ${gcc_cv_math_func_frexpf+:} false; then :
5213506e 20368 $as_echo_n "(cached) " >&6
1409cd0b 20369else
db9f46a9 20370 if test x$gcc_no_link = xyes; then
22e05272 20371 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20372fi
5213506e 20373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20374/* end confdefs.h. */
20375
db9f46a9
TG
20376#ifdef HAVE_COMPLEX_H
20377#include <complex.h>
20378#endif
20379#ifdef HAVE_MATH_H
20380#include <math.h>
1409cd0b 20381#endif
db9f46a9
TG
20382
20383int (*ptr)() = (int (*)())frexpf;
20384
1409cd0b
FXC
20385int
20386main ()
20387{
1409cd0b
FXC
20388 return 0;
20389}
db9f46a9 20390
1409cd0b 20391_ACEOF
5213506e 20392if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20393 gcc_cv_math_func_frexpf=yes
1409cd0b 20394else
db9f46a9 20395 gcc_cv_math_func_frexpf=no
1409cd0b 20396fi
5213506e
RW
20397rm -f core conftest.err conftest.$ac_objext \
20398 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20399fi
db9f46a9
TG
20400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20401$as_echo "$gcc_cv_math_func_frexpf" >&6; }
20402 if test $gcc_cv_math_func_frexpf = yes; then
f1cdfa01 20403
f38a14ca
TG
20404cat >>confdefs.h <<_ACEOF
20405#define HAVE_FREXPF 1
20406_ACEOF
db9f46a9
TG
20407
20408 fi
1409cd0b 20409
1409cd0b 20410
1409cd0b 20411
db9f46a9
TG
20412
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20414$as_echo_n "checking for frexp... " >&6; }
22e05272 20415if ${gcc_cv_math_func_frexp+:} false; then :
5213506e 20416 $as_echo_n "(cached) " >&6
1409cd0b 20417else
db9f46a9 20418 if test x$gcc_no_link = xyes; then
22e05272 20419 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20420fi
5213506e 20421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20422/* end confdefs.h. */
20423
db9f46a9
TG
20424#ifdef HAVE_COMPLEX_H
20425#include <complex.h>
1409cd0b 20426#endif
db9f46a9
TG
20427#ifdef HAVE_MATH_H
20428#include <math.h>
20429#endif
20430
20431int (*ptr)() = (int (*)())frexp;
20432
1409cd0b
FXC
20433int
20434main ()
20435{
1409cd0b
FXC
20436 return 0;
20437}
db9f46a9 20438
1409cd0b 20439_ACEOF
5213506e 20440if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20441 gcc_cv_math_func_frexp=yes
1409cd0b 20442else
db9f46a9 20443 gcc_cv_math_func_frexp=no
1409cd0b 20444fi
5213506e
RW
20445rm -f core conftest.err conftest.$ac_objext \
20446 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20447fi
db9f46a9
TG
20448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20449$as_echo "$gcc_cv_math_func_frexp" >&6; }
20450 if test $gcc_cv_math_func_frexp = yes; then
f1cdfa01 20451
f38a14ca
TG
20452cat >>confdefs.h <<_ACEOF
20453#define HAVE_FREXP 1
20454_ACEOF
1409cd0b 20455
db9f46a9 20456 fi
1409cd0b 20457
1409cd0b 20458
db9f46a9
TG
20459
20460
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20462$as_echo_n "checking for frexpl... " >&6; }
22e05272 20463if ${gcc_cv_math_func_frexpl+:} false; then :
5213506e 20464 $as_echo_n "(cached) " >&6
1409cd0b 20465else
db9f46a9 20466 if test x$gcc_no_link = xyes; then
22e05272 20467 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20468fi
5213506e 20469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20470/* end confdefs.h. */
20471
db9f46a9
TG
20472#ifdef HAVE_COMPLEX_H
20473#include <complex.h>
20474#endif
20475#ifdef HAVE_MATH_H
20476#include <math.h>
1409cd0b 20477#endif
db9f46a9
TG
20478
20479int (*ptr)() = (int (*)())frexpl;
20480
1409cd0b
FXC
20481int
20482main ()
20483{
1409cd0b
FXC
20484 return 0;
20485}
db9f46a9 20486
1409cd0b 20487_ACEOF
5213506e 20488if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20489 gcc_cv_math_func_frexpl=yes
1409cd0b 20490else
db9f46a9 20491 gcc_cv_math_func_frexpl=no
1409cd0b 20492fi
5213506e
RW
20493rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20495fi
db9f46a9
TG
20496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20497$as_echo "$gcc_cv_math_func_frexpl" >&6; }
20498 if test $gcc_cv_math_func_frexpl = yes; then
f1cdfa01 20499
f38a14ca
TG
20500cat >>confdefs.h <<_ACEOF
20501#define HAVE_FREXPL 1
20502_ACEOF
db9f46a9
TG
20503
20504 fi
1409cd0b 20505
1409cd0b 20506
1409cd0b 20507
db9f46a9
TG
20508
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20510$as_echo_n "checking for hypotf... " >&6; }
22e05272 20511if ${gcc_cv_math_func_hypotf+:} false; then :
5213506e 20512 $as_echo_n "(cached) " >&6
1409cd0b 20513else
db9f46a9 20514 if test x$gcc_no_link = xyes; then
22e05272 20515 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20516fi
5213506e 20517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20518/* end confdefs.h. */
20519
db9f46a9
TG
20520#ifdef HAVE_COMPLEX_H
20521#include <complex.h>
1409cd0b 20522#endif
db9f46a9
TG
20523#ifdef HAVE_MATH_H
20524#include <math.h>
20525#endif
20526
20527int (*ptr)() = (int (*)())hypotf;
20528
1409cd0b
FXC
20529int
20530main ()
20531{
1409cd0b
FXC
20532 return 0;
20533}
db9f46a9 20534
1409cd0b 20535_ACEOF
5213506e 20536if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20537 gcc_cv_math_func_hypotf=yes
1409cd0b 20538else
db9f46a9 20539 gcc_cv_math_func_hypotf=no
1409cd0b 20540fi
5213506e
RW
20541rm -f core conftest.err conftest.$ac_objext \
20542 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20543fi
db9f46a9
TG
20544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20545$as_echo "$gcc_cv_math_func_hypotf" >&6; }
20546 if test $gcc_cv_math_func_hypotf = yes; then
f1cdfa01 20547
f38a14ca
TG
20548cat >>confdefs.h <<_ACEOF
20549#define HAVE_HYPOTF 1
20550_ACEOF
db9f46a9
TG
20551
20552 fi
20553
1409cd0b 20554
1409cd0b 20555
1409cd0b 20556
db9f46a9
TG
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20558$as_echo_n "checking for hypot... " >&6; }
22e05272 20559if ${gcc_cv_math_func_hypot+:} false; then :
5213506e 20560 $as_echo_n "(cached) " >&6
1409cd0b 20561else
db9f46a9 20562 if test x$gcc_no_link = xyes; then
22e05272 20563 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20564fi
5213506e 20565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20566/* end confdefs.h. */
20567
db9f46a9
TG
20568#ifdef HAVE_COMPLEX_H
20569#include <complex.h>
20570#endif
20571#ifdef HAVE_MATH_H
20572#include <math.h>
1409cd0b 20573#endif
db9f46a9
TG
20574
20575int (*ptr)() = (int (*)())hypot;
20576
1409cd0b
FXC
20577int
20578main ()
20579{
1409cd0b
FXC
20580 return 0;
20581}
db9f46a9 20582
1409cd0b 20583_ACEOF
5213506e 20584if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20585 gcc_cv_math_func_hypot=yes
1409cd0b 20586else
db9f46a9 20587 gcc_cv_math_func_hypot=no
1409cd0b 20588fi
5213506e
RW
20589rm -f core conftest.err conftest.$ac_objext \
20590 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20591fi
db9f46a9
TG
20592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20593$as_echo "$gcc_cv_math_func_hypot" >&6; }
20594 if test $gcc_cv_math_func_hypot = yes; then
f1cdfa01 20595
f38a14ca
TG
20596cat >>confdefs.h <<_ACEOF
20597#define HAVE_HYPOT 1
20598_ACEOF
db9f46a9
TG
20599
20600 fi
1409cd0b 20601
1409cd0b 20602
1409cd0b 20603
db9f46a9
TG
20604
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20606$as_echo_n "checking for hypotl... " >&6; }
22e05272 20607if ${gcc_cv_math_func_hypotl+:} false; then :
5213506e 20608 $as_echo_n "(cached) " >&6
cc6d3bde 20609else
db9f46a9 20610 if test x$gcc_no_link = xyes; then
22e05272 20611 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20612fi
5213506e 20613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20614/* end confdefs.h. */
20615
db9f46a9
TG
20616#ifdef HAVE_COMPLEX_H
20617#include <complex.h>
cc6d3bde 20618#endif
db9f46a9
TG
20619#ifdef HAVE_MATH_H
20620#include <math.h>
20621#endif
20622
20623int (*ptr)() = (int (*)())hypotl;
20624
cc6d3bde
SK
20625int
20626main ()
20627{
cc6d3bde
SK
20628 return 0;
20629}
db9f46a9 20630
cc6d3bde 20631_ACEOF
5213506e 20632if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20633 gcc_cv_math_func_hypotl=yes
cc6d3bde 20634else
db9f46a9 20635 gcc_cv_math_func_hypotl=no
cc6d3bde 20636fi
5213506e
RW
20637rm -f core conftest.err conftest.$ac_objext \
20638 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20639fi
db9f46a9
TG
20640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20641$as_echo "$gcc_cv_math_func_hypotl" >&6; }
20642 if test $gcc_cv_math_func_hypotl = yes; then
f1cdfa01 20643
f38a14ca
TG
20644cat >>confdefs.h <<_ACEOF
20645#define HAVE_HYPOTL 1
20646_ACEOF
cc6d3bde 20647
db9f46a9 20648 fi
cc6d3bde 20649
cc6d3bde 20650
db9f46a9
TG
20651
20652
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20654$as_echo_n "checking for ldexpf... " >&6; }
22e05272 20655if ${gcc_cv_math_func_ldexpf+:} false; then :
5213506e 20656 $as_echo_n "(cached) " >&6
cc6d3bde 20657else
db9f46a9 20658 if test x$gcc_no_link = xyes; then
22e05272 20659 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20660fi
5213506e 20661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20662/* end confdefs.h. */
20663
db9f46a9
TG
20664#ifdef HAVE_COMPLEX_H
20665#include <complex.h>
20666#endif
20667#ifdef HAVE_MATH_H
20668#include <math.h>
cc6d3bde 20669#endif
db9f46a9
TG
20670
20671int (*ptr)() = (int (*)())ldexpf;
20672
cc6d3bde
SK
20673int
20674main ()
20675{
cc6d3bde
SK
20676 return 0;
20677}
db9f46a9 20678
cc6d3bde 20679_ACEOF
5213506e 20680if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20681 gcc_cv_math_func_ldexpf=yes
cc6d3bde 20682else
db9f46a9 20683 gcc_cv_math_func_ldexpf=no
cc6d3bde 20684fi
5213506e
RW
20685rm -f core conftest.err conftest.$ac_objext \
20686 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20687fi
db9f46a9
TG
20688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20689$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20690 if test $gcc_cv_math_func_ldexpf = yes; then
f1cdfa01 20691
f38a14ca
TG
20692cat >>confdefs.h <<_ACEOF
20693#define HAVE_LDEXPF 1
20694_ACEOF
db9f46a9
TG
20695
20696 fi
cc6d3bde 20697
cc6d3bde 20698
cc6d3bde 20699
db9f46a9
TG
20700
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20702$as_echo_n "checking for ldexp... " >&6; }
22e05272 20703if ${gcc_cv_math_func_ldexp+:} false; then :
5213506e 20704 $as_echo_n "(cached) " >&6
cc6d3bde 20705else
db9f46a9 20706 if test x$gcc_no_link = xyes; then
22e05272 20707 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 20708fi
5213506e 20709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
20710/* end confdefs.h. */
20711
db9f46a9
TG
20712#ifdef HAVE_COMPLEX_H
20713#include <complex.h>
cc6d3bde 20714#endif
db9f46a9
TG
20715#ifdef HAVE_MATH_H
20716#include <math.h>
20717#endif
20718
20719int (*ptr)() = (int (*)())ldexp;
20720
cc6d3bde
SK
20721int
20722main ()
20723{
cc6d3bde
SK
20724 return 0;
20725}
db9f46a9 20726
cc6d3bde 20727_ACEOF
5213506e 20728if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20729 gcc_cv_math_func_ldexp=yes
cc6d3bde 20730else
db9f46a9 20731 gcc_cv_math_func_ldexp=no
cc6d3bde 20732fi
5213506e
RW
20733rm -f core conftest.err conftest.$ac_objext \
20734 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 20735fi
db9f46a9
TG
20736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20737$as_echo "$gcc_cv_math_func_ldexp" >&6; }
20738 if test $gcc_cv_math_func_ldexp = yes; then
f1cdfa01 20739
f38a14ca
TG
20740cat >>confdefs.h <<_ACEOF
20741#define HAVE_LDEXP 1
20742_ACEOF
db9f46a9
TG
20743
20744 fi
20745
cc6d3bde 20746
cc6d3bde 20747
cc6d3bde 20748
db9f46a9
TG
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20750$as_echo_n "checking for ldexpl... " >&6; }
22e05272 20751if ${gcc_cv_math_func_ldexpl+:} false; then :
5213506e 20752 $as_echo_n "(cached) " >&6
1409cd0b 20753else
db9f46a9 20754 if test x$gcc_no_link = xyes; then
22e05272 20755 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20756fi
5213506e 20757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20758/* end confdefs.h. */
20759
db9f46a9
TG
20760#ifdef HAVE_COMPLEX_H
20761#include <complex.h>
20762#endif
20763#ifdef HAVE_MATH_H
20764#include <math.h>
1409cd0b 20765#endif
db9f46a9
TG
20766
20767int (*ptr)() = (int (*)())ldexpl;
20768
1409cd0b
FXC
20769int
20770main ()
20771{
1409cd0b
FXC
20772 return 0;
20773}
db9f46a9 20774
1409cd0b 20775_ACEOF
5213506e 20776if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20777 gcc_cv_math_func_ldexpl=yes
1409cd0b 20778else
db9f46a9 20779 gcc_cv_math_func_ldexpl=no
1409cd0b 20780fi
5213506e
RW
20781rm -f core conftest.err conftest.$ac_objext \
20782 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20783fi
db9f46a9
TG
20784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20785$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20786 if test $gcc_cv_math_func_ldexpl = yes; then
f1cdfa01 20787
f38a14ca
TG
20788cat >>confdefs.h <<_ACEOF
20789#define HAVE_LDEXPL 1
20790_ACEOF
db9f46a9
TG
20791
20792 fi
1409cd0b 20793
1409cd0b 20794
1409cd0b 20795
db9f46a9
TG
20796
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20798$as_echo_n "checking for logf... " >&6; }
22e05272 20799if ${gcc_cv_math_func_logf+:} false; then :
5213506e 20800 $as_echo_n "(cached) " >&6
1409cd0b 20801else
db9f46a9 20802 if test x$gcc_no_link = xyes; then
22e05272 20803 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20804fi
5213506e 20805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20806/* end confdefs.h. */
20807
db9f46a9
TG
20808#ifdef HAVE_COMPLEX_H
20809#include <complex.h>
1409cd0b 20810#endif
db9f46a9
TG
20811#ifdef HAVE_MATH_H
20812#include <math.h>
20813#endif
20814
20815int (*ptr)() = (int (*)())logf;
20816
1409cd0b
FXC
20817int
20818main ()
20819{
1409cd0b
FXC
20820 return 0;
20821}
db9f46a9 20822
1409cd0b 20823_ACEOF
5213506e 20824if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20825 gcc_cv_math_func_logf=yes
1409cd0b 20826else
db9f46a9 20827 gcc_cv_math_func_logf=no
1409cd0b 20828fi
5213506e
RW
20829rm -f core conftest.err conftest.$ac_objext \
20830 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20831fi
db9f46a9
TG
20832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20833$as_echo "$gcc_cv_math_func_logf" >&6; }
20834 if test $gcc_cv_math_func_logf = yes; then
f1cdfa01 20835
f38a14ca
TG
20836cat >>confdefs.h <<_ACEOF
20837#define HAVE_LOGF 1
20838_ACEOF
1409cd0b 20839
db9f46a9 20840 fi
1409cd0b 20841
1409cd0b 20842
db9f46a9
TG
20843
20844
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20846$as_echo_n "checking for log... " >&6; }
22e05272 20847if ${gcc_cv_math_func_log+:} false; then :
5213506e 20848 $as_echo_n "(cached) " >&6
1409cd0b 20849else
db9f46a9 20850 if test x$gcc_no_link = xyes; then
22e05272 20851 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20852fi
5213506e 20853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20854/* end confdefs.h. */
20855
db9f46a9
TG
20856#ifdef HAVE_COMPLEX_H
20857#include <complex.h>
20858#endif
20859#ifdef HAVE_MATH_H
20860#include <math.h>
1409cd0b 20861#endif
db9f46a9
TG
20862
20863int (*ptr)() = (int (*)())log;
20864
1409cd0b
FXC
20865int
20866main ()
20867{
1409cd0b
FXC
20868 return 0;
20869}
db9f46a9 20870
1409cd0b 20871_ACEOF
5213506e 20872if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20873 gcc_cv_math_func_log=yes
1409cd0b 20874else
db9f46a9 20875 gcc_cv_math_func_log=no
1409cd0b 20876fi
5213506e
RW
20877rm -f core conftest.err conftest.$ac_objext \
20878 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20879fi
db9f46a9
TG
20880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20881$as_echo "$gcc_cv_math_func_log" >&6; }
20882 if test $gcc_cv_math_func_log = yes; then
f1cdfa01 20883
f38a14ca
TG
20884cat >>confdefs.h <<_ACEOF
20885#define HAVE_LOG 1
20886_ACEOF
db9f46a9
TG
20887
20888 fi
1409cd0b 20889
1409cd0b 20890
1409cd0b 20891
db9f46a9
TG
20892
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20894$as_echo_n "checking for logl... " >&6; }
22e05272 20895if ${gcc_cv_math_func_logl+:} false; then :
5213506e 20896 $as_echo_n "(cached) " >&6
1409cd0b 20897else
db9f46a9 20898 if test x$gcc_no_link = xyes; then
22e05272 20899 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20900fi
5213506e 20901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20902/* end confdefs.h. */
20903
db9f46a9
TG
20904#ifdef HAVE_COMPLEX_H
20905#include <complex.h>
1409cd0b 20906#endif
db9f46a9
TG
20907#ifdef HAVE_MATH_H
20908#include <math.h>
20909#endif
20910
20911int (*ptr)() = (int (*)())logl;
20912
1409cd0b
FXC
20913int
20914main ()
20915{
1409cd0b
FXC
20916 return 0;
20917}
db9f46a9 20918
1409cd0b 20919_ACEOF
5213506e 20920if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20921 gcc_cv_math_func_logl=yes
1409cd0b 20922else
db9f46a9 20923 gcc_cv_math_func_logl=no
1409cd0b 20924fi
5213506e
RW
20925rm -f core conftest.err conftest.$ac_objext \
20926 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20927fi
db9f46a9
TG
20928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20929$as_echo "$gcc_cv_math_func_logl" >&6; }
20930 if test $gcc_cv_math_func_logl = yes; then
f1cdfa01 20931
f38a14ca
TG
20932cat >>confdefs.h <<_ACEOF
20933#define HAVE_LOGL 1
20934_ACEOF
db9f46a9
TG
20935
20936 fi
20937
1409cd0b 20938
1409cd0b 20939
1409cd0b 20940
db9f46a9
TG
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20942$as_echo_n "checking for clogf... " >&6; }
22e05272 20943if ${gcc_cv_math_func_clogf+:} false; then :
5213506e 20944 $as_echo_n "(cached) " >&6
1409cd0b 20945else
db9f46a9 20946 if test x$gcc_no_link = xyes; then
22e05272 20947 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20948fi
5213506e 20949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20950/* end confdefs.h. */
20951
db9f46a9
TG
20952#ifdef HAVE_COMPLEX_H
20953#include <complex.h>
20954#endif
20955#ifdef HAVE_MATH_H
20956#include <math.h>
1409cd0b 20957#endif
db9f46a9
TG
20958
20959int (*ptr)() = (int (*)())clogf;
20960
1409cd0b
FXC
20961int
20962main ()
20963{
1409cd0b
FXC
20964 return 0;
20965}
db9f46a9 20966
1409cd0b 20967_ACEOF
5213506e 20968if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20969 gcc_cv_math_func_clogf=yes
1409cd0b 20970else
db9f46a9 20971 gcc_cv_math_func_clogf=no
1409cd0b 20972fi
5213506e
RW
20973rm -f core conftest.err conftest.$ac_objext \
20974 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20975fi
db9f46a9
TG
20976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20977$as_echo "$gcc_cv_math_func_clogf" >&6; }
20978 if test $gcc_cv_math_func_clogf = yes; then
f1cdfa01 20979
f38a14ca
TG
20980cat >>confdefs.h <<_ACEOF
20981#define HAVE_CLOGF 1
20982_ACEOF
db9f46a9
TG
20983
20984 fi
1409cd0b 20985
1409cd0b 20986
1409cd0b 20987
db9f46a9
TG
20988
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20990$as_echo_n "checking for clog... " >&6; }
22e05272 20991if ${gcc_cv_math_func_clog+:} false; then :
5213506e 20992 $as_echo_n "(cached) " >&6
1409cd0b 20993else
db9f46a9 20994 if test x$gcc_no_link = xyes; then
22e05272 20995 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20996fi
5213506e 20997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20998/* end confdefs.h. */
20999
db9f46a9
TG
21000#ifdef HAVE_COMPLEX_H
21001#include <complex.h>
1409cd0b 21002#endif
db9f46a9
TG
21003#ifdef HAVE_MATH_H
21004#include <math.h>
21005#endif
21006
21007int (*ptr)() = (int (*)())clog;
21008
1409cd0b
FXC
21009int
21010main ()
21011{
1409cd0b
FXC
21012 return 0;
21013}
db9f46a9 21014
1409cd0b 21015_ACEOF
5213506e 21016if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21017 gcc_cv_math_func_clog=yes
1409cd0b 21018else
db9f46a9 21019 gcc_cv_math_func_clog=no
1409cd0b 21020fi
5213506e
RW
21021rm -f core conftest.err conftest.$ac_objext \
21022 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21023fi
db9f46a9
TG
21024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
21025$as_echo "$gcc_cv_math_func_clog" >&6; }
21026 if test $gcc_cv_math_func_clog = yes; then
f1cdfa01 21027
f38a14ca
TG
21028cat >>confdefs.h <<_ACEOF
21029#define HAVE_CLOG 1
21030_ACEOF
1409cd0b 21031
db9f46a9 21032 fi
1409cd0b 21033
1409cd0b 21034
db9f46a9
TG
21035
21036
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
21038$as_echo_n "checking for clogl... " >&6; }
22e05272 21039if ${gcc_cv_math_func_clogl+:} false; then :
5213506e 21040 $as_echo_n "(cached) " >&6
1409cd0b 21041else
db9f46a9 21042 if test x$gcc_no_link = xyes; then
22e05272 21043 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21044fi
5213506e 21045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21046/* end confdefs.h. */
21047
db9f46a9
TG
21048#ifdef HAVE_COMPLEX_H
21049#include <complex.h>
21050#endif
21051#ifdef HAVE_MATH_H
21052#include <math.h>
1409cd0b 21053#endif
db9f46a9
TG
21054
21055int (*ptr)() = (int (*)())clogl;
21056
1409cd0b
FXC
21057int
21058main ()
21059{
1409cd0b
FXC
21060 return 0;
21061}
db9f46a9 21062
1409cd0b 21063_ACEOF
5213506e 21064if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21065 gcc_cv_math_func_clogl=yes
1409cd0b 21066else
db9f46a9 21067 gcc_cv_math_func_clogl=no
1409cd0b 21068fi
5213506e
RW
21069rm -f core conftest.err conftest.$ac_objext \
21070 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21071fi
db9f46a9
TG
21072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
21073$as_echo "$gcc_cv_math_func_clogl" >&6; }
21074 if test $gcc_cv_math_func_clogl = yes; then
f1cdfa01 21075
f38a14ca
TG
21076cat >>confdefs.h <<_ACEOF
21077#define HAVE_CLOGL 1
21078_ACEOF
db9f46a9
TG
21079
21080 fi
1409cd0b 21081
1409cd0b 21082
1409cd0b 21083
db9f46a9
TG
21084
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
21086$as_echo_n "checking for log10f... " >&6; }
22e05272 21087if ${gcc_cv_math_func_log10f+:} false; then :
5213506e 21088 $as_echo_n "(cached) " >&6
1409cd0b 21089else
db9f46a9 21090 if test x$gcc_no_link = xyes; then
22e05272 21091 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21092fi
5213506e 21093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21094/* end confdefs.h. */
21095
db9f46a9
TG
21096#ifdef HAVE_COMPLEX_H
21097#include <complex.h>
1409cd0b 21098#endif
db9f46a9
TG
21099#ifdef HAVE_MATH_H
21100#include <math.h>
21101#endif
21102
21103int (*ptr)() = (int (*)())log10f;
21104
1409cd0b
FXC
21105int
21106main ()
21107{
1409cd0b
FXC
21108 return 0;
21109}
db9f46a9 21110
1409cd0b 21111_ACEOF
5213506e 21112if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21113 gcc_cv_math_func_log10f=yes
1409cd0b 21114else
db9f46a9 21115 gcc_cv_math_func_log10f=no
1409cd0b 21116fi
5213506e
RW
21117rm -f core conftest.err conftest.$ac_objext \
21118 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21119fi
db9f46a9
TG
21120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
21121$as_echo "$gcc_cv_math_func_log10f" >&6; }
21122 if test $gcc_cv_math_func_log10f = yes; then
f1cdfa01 21123
f38a14ca
TG
21124cat >>confdefs.h <<_ACEOF
21125#define HAVE_LOG10F 1
21126_ACEOF
db9f46a9
TG
21127
21128 fi
21129
1409cd0b 21130
1409cd0b 21131
1409cd0b 21132
db9f46a9
TG
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
21134$as_echo_n "checking for log10... " >&6; }
22e05272 21135if ${gcc_cv_math_func_log10+:} false; then :
5213506e 21136 $as_echo_n "(cached) " >&6
1409cd0b 21137else
db9f46a9 21138 if test x$gcc_no_link = xyes; then
22e05272 21139 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21140fi
5213506e 21141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21142/* end confdefs.h. */
21143
db9f46a9
TG
21144#ifdef HAVE_COMPLEX_H
21145#include <complex.h>
21146#endif
21147#ifdef HAVE_MATH_H
21148#include <math.h>
1409cd0b 21149#endif
db9f46a9
TG
21150
21151int (*ptr)() = (int (*)())log10;
21152
1409cd0b
FXC
21153int
21154main ()
21155{
1409cd0b
FXC
21156 return 0;
21157}
db9f46a9 21158
1409cd0b 21159_ACEOF
5213506e 21160if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21161 gcc_cv_math_func_log10=yes
1409cd0b 21162else
db9f46a9 21163 gcc_cv_math_func_log10=no
1409cd0b 21164fi
5213506e
RW
21165rm -f core conftest.err conftest.$ac_objext \
21166 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21167fi
db9f46a9
TG
21168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
21169$as_echo "$gcc_cv_math_func_log10" >&6; }
21170 if test $gcc_cv_math_func_log10 = yes; then
f1cdfa01 21171
f38a14ca
TG
21172cat >>confdefs.h <<_ACEOF
21173#define HAVE_LOG10 1
21174_ACEOF
db9f46a9
TG
21175
21176 fi
1409cd0b 21177
1409cd0b 21178
1409cd0b 21179
db9f46a9
TG
21180
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
21182$as_echo_n "checking for log10l... " >&6; }
22e05272 21183if ${gcc_cv_math_func_log10l+:} false; then :
5213506e 21184 $as_echo_n "(cached) " >&6
1409cd0b 21185else
db9f46a9 21186 if test x$gcc_no_link = xyes; then
22e05272 21187 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21188fi
5213506e 21189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21190/* end confdefs.h. */
21191
db9f46a9
TG
21192#ifdef HAVE_COMPLEX_H
21193#include <complex.h>
1409cd0b 21194#endif
db9f46a9
TG
21195#ifdef HAVE_MATH_H
21196#include <math.h>
21197#endif
21198
21199int (*ptr)() = (int (*)())log10l;
21200
1409cd0b
FXC
21201int
21202main ()
21203{
1409cd0b
FXC
21204 return 0;
21205}
db9f46a9 21206
1409cd0b 21207_ACEOF
5213506e 21208if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21209 gcc_cv_math_func_log10l=yes
1409cd0b 21210else
db9f46a9 21211 gcc_cv_math_func_log10l=no
1409cd0b 21212fi
5213506e
RW
21213rm -f core conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21215fi
db9f46a9
TG
21216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
21217$as_echo "$gcc_cv_math_func_log10l" >&6; }
21218 if test $gcc_cv_math_func_log10l = yes; then
f1cdfa01 21219
f38a14ca
TG
21220cat >>confdefs.h <<_ACEOF
21221#define HAVE_LOG10L 1
21222_ACEOF
1409cd0b 21223
db9f46a9 21224 fi
1409cd0b 21225
1409cd0b 21226
db9f46a9
TG
21227
21228
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
21230$as_echo_n "checking for clog10f... " >&6; }
22e05272 21231if ${gcc_cv_math_func_clog10f+:} false; then :
5213506e 21232 $as_echo_n "(cached) " >&6
1409cd0b 21233else
db9f46a9 21234 if test x$gcc_no_link = xyes; then
22e05272 21235 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21236fi
5213506e 21237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21238/* end confdefs.h. */
21239
db9f46a9
TG
21240#ifdef HAVE_COMPLEX_H
21241#include <complex.h>
21242#endif
21243#ifdef HAVE_MATH_H
21244#include <math.h>
1409cd0b 21245#endif
db9f46a9
TG
21246
21247int (*ptr)() = (int (*)())clog10f;
21248
1409cd0b
FXC
21249int
21250main ()
21251{
1409cd0b
FXC
21252 return 0;
21253}
db9f46a9 21254
1409cd0b 21255_ACEOF
5213506e 21256if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21257 gcc_cv_math_func_clog10f=yes
1409cd0b 21258else
db9f46a9 21259 gcc_cv_math_func_clog10f=no
1409cd0b 21260fi
5213506e
RW
21261rm -f core conftest.err conftest.$ac_objext \
21262 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21263fi
db9f46a9
TG
21264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
21265$as_echo "$gcc_cv_math_func_clog10f" >&6; }
21266 if test $gcc_cv_math_func_clog10f = yes; then
f1cdfa01 21267
f38a14ca
TG
21268cat >>confdefs.h <<_ACEOF
21269#define HAVE_CLOG10F 1
21270_ACEOF
db9f46a9
TG
21271
21272 fi
1409cd0b 21273
1409cd0b 21274
1409cd0b 21275
db9f46a9
TG
21276
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
21278$as_echo_n "checking for clog10... " >&6; }
22e05272 21279if ${gcc_cv_math_func_clog10+:} false; then :
5213506e 21280 $as_echo_n "(cached) " >&6
1409cd0b 21281else
db9f46a9 21282 if test x$gcc_no_link = xyes; then
22e05272 21283 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21284fi
5213506e 21285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21286/* end confdefs.h. */
21287
db9f46a9
TG
21288#ifdef HAVE_COMPLEX_H
21289#include <complex.h>
1409cd0b 21290#endif
db9f46a9
TG
21291#ifdef HAVE_MATH_H
21292#include <math.h>
21293#endif
21294
21295int (*ptr)() = (int (*)())clog10;
21296
1409cd0b
FXC
21297int
21298main ()
21299{
5213506e
RW
21300 return 0;
21301}
db9f46a9 21302
5213506e
RW
21303_ACEOF
21304if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21305 gcc_cv_math_func_clog10=yes
1409cd0b 21306else
db9f46a9 21307 gcc_cv_math_func_clog10=no
1409cd0b 21308fi
5213506e
RW
21309rm -f core conftest.err conftest.$ac_objext \
21310 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21311fi
db9f46a9
TG
21312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
21313$as_echo "$gcc_cv_math_func_clog10" >&6; }
21314 if test $gcc_cv_math_func_clog10 = yes; then
f1cdfa01 21315
f38a14ca
TG
21316cat >>confdefs.h <<_ACEOF
21317#define HAVE_CLOG10 1
21318_ACEOF
db9f46a9
TG
21319
21320 fi
21321
1409cd0b 21322
1409cd0b 21323
1409cd0b 21324
db9f46a9
TG
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
21326$as_echo_n "checking for clog10l... " >&6; }
22e05272 21327if ${gcc_cv_math_func_clog10l+:} false; then :
5213506e 21328 $as_echo_n "(cached) " >&6
1409cd0b 21329else
db9f46a9 21330 if test x$gcc_no_link = xyes; then
22e05272 21331 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21332fi
5213506e 21333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21334/* end confdefs.h. */
21335
db9f46a9
TG
21336#ifdef HAVE_COMPLEX_H
21337#include <complex.h>
21338#endif
21339#ifdef HAVE_MATH_H
21340#include <math.h>
1409cd0b 21341#endif
db9f46a9
TG
21342
21343int (*ptr)() = (int (*)())clog10l;
21344
1409cd0b
FXC
21345int
21346main ()
21347{
1409cd0b
FXC
21348 return 0;
21349}
db9f46a9 21350
1409cd0b 21351_ACEOF
5213506e 21352if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21353 gcc_cv_math_func_clog10l=yes
1409cd0b 21354else
db9f46a9 21355 gcc_cv_math_func_clog10l=no
1409cd0b 21356fi
5213506e
RW
21357rm -f core conftest.err conftest.$ac_objext \
21358 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21359fi
db9f46a9
TG
21360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
21361$as_echo "$gcc_cv_math_func_clog10l" >&6; }
21362 if test $gcc_cv_math_func_clog10l = yes; then
f1cdfa01 21363
f38a14ca
TG
21364cat >>confdefs.h <<_ACEOF
21365#define HAVE_CLOG10L 1
21366_ACEOF
db9f46a9
TG
21367
21368 fi
1409cd0b 21369
1409cd0b 21370
1409cd0b 21371
db9f46a9
TG
21372
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
21374$as_echo_n "checking for nextafterf... " >&6; }
22e05272 21375if ${gcc_cv_math_func_nextafterf+:} false; then :
5213506e 21376 $as_echo_n "(cached) " >&6
1409cd0b 21377else
db9f46a9 21378 if test x$gcc_no_link = xyes; then
22e05272 21379 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21380fi
5213506e 21381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21382/* end confdefs.h. */
21383
db9f46a9
TG
21384#ifdef HAVE_COMPLEX_H
21385#include <complex.h>
1409cd0b 21386#endif
db9f46a9
TG
21387#ifdef HAVE_MATH_H
21388#include <math.h>
21389#endif
21390
21391int (*ptr)() = (int (*)())nextafterf;
21392
1409cd0b
FXC
21393int
21394main ()
21395{
1409cd0b
FXC
21396 return 0;
21397}
db9f46a9 21398
1409cd0b 21399_ACEOF
5213506e 21400if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21401 gcc_cv_math_func_nextafterf=yes
1409cd0b 21402else
db9f46a9 21403 gcc_cv_math_func_nextafterf=no
1409cd0b 21404fi
5213506e
RW
21405rm -f core conftest.err conftest.$ac_objext \
21406 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21407fi
db9f46a9
TG
21408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21409$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21410 if test $gcc_cv_math_func_nextafterf = yes; then
f1cdfa01 21411
f38a14ca
TG
21412cat >>confdefs.h <<_ACEOF
21413#define HAVE_NEXTAFTERF 1
21414_ACEOF
1409cd0b 21415
db9f46a9 21416 fi
1409cd0b 21417
1409cd0b 21418
db9f46a9
TG
21419
21420
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21422$as_echo_n "checking for nextafter... " >&6; }
22e05272 21423if ${gcc_cv_math_func_nextafter+:} false; then :
5213506e 21424 $as_echo_n "(cached) " >&6
1409cd0b 21425else
db9f46a9 21426 if test x$gcc_no_link = xyes; then
22e05272 21427 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21428fi
5213506e 21429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21430/* end confdefs.h. */
21431
db9f46a9
TG
21432#ifdef HAVE_COMPLEX_H
21433#include <complex.h>
21434#endif
21435#ifdef HAVE_MATH_H
21436#include <math.h>
1409cd0b 21437#endif
db9f46a9
TG
21438
21439int (*ptr)() = (int (*)())nextafter;
21440
1409cd0b
FXC
21441int
21442main ()
21443{
1409cd0b
FXC
21444 return 0;
21445}
db9f46a9 21446
1409cd0b 21447_ACEOF
5213506e 21448if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21449 gcc_cv_math_func_nextafter=yes
1409cd0b 21450else
db9f46a9 21451 gcc_cv_math_func_nextafter=no
1409cd0b 21452fi
5213506e
RW
21453rm -f core conftest.err conftest.$ac_objext \
21454 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21455fi
db9f46a9
TG
21456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21457$as_echo "$gcc_cv_math_func_nextafter" >&6; }
21458 if test $gcc_cv_math_func_nextafter = yes; then
f1cdfa01 21459
f38a14ca
TG
21460cat >>confdefs.h <<_ACEOF
21461#define HAVE_NEXTAFTER 1
21462_ACEOF
db9f46a9
TG
21463
21464 fi
1409cd0b 21465
1409cd0b 21466
1409cd0b 21467
db9f46a9
TG
21468
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21470$as_echo_n "checking for nextafterl... " >&6; }
22e05272 21471if ${gcc_cv_math_func_nextafterl+:} false; then :
5213506e 21472 $as_echo_n "(cached) " >&6
1409cd0b 21473else
db9f46a9 21474 if test x$gcc_no_link = xyes; then
22e05272 21475 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21476fi
5213506e 21477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21478/* end confdefs.h. */
21479
db9f46a9
TG
21480#ifdef HAVE_COMPLEX_H
21481#include <complex.h>
1409cd0b 21482#endif
db9f46a9
TG
21483#ifdef HAVE_MATH_H
21484#include <math.h>
21485#endif
21486
21487int (*ptr)() = (int (*)())nextafterl;
21488
1409cd0b
FXC
21489int
21490main ()
21491{
1409cd0b
FXC
21492 return 0;
21493}
db9f46a9 21494
1409cd0b 21495_ACEOF
5213506e 21496if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21497 gcc_cv_math_func_nextafterl=yes
1409cd0b 21498else
db9f46a9 21499 gcc_cv_math_func_nextafterl=no
1409cd0b 21500fi
5213506e
RW
21501rm -f core conftest.err conftest.$ac_objext \
21502 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21503fi
db9f46a9
TG
21504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21505$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21506 if test $gcc_cv_math_func_nextafterl = yes; then
f1cdfa01 21507
f38a14ca
TG
21508cat >>confdefs.h <<_ACEOF
21509#define HAVE_NEXTAFTERL 1
21510_ACEOF
db9f46a9
TG
21511
21512 fi
21513
1409cd0b 21514
1409cd0b 21515
1409cd0b 21516
db9f46a9
TG
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21518$as_echo_n "checking for powf... " >&6; }
22e05272 21519if ${gcc_cv_math_func_powf+:} false; then :
5213506e 21520 $as_echo_n "(cached) " >&6
1409cd0b 21521else
db9f46a9 21522 if test x$gcc_no_link = xyes; then
22e05272 21523 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21524fi
5213506e 21525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21526/* end confdefs.h. */
21527
db9f46a9
TG
21528#ifdef HAVE_COMPLEX_H
21529#include <complex.h>
21530#endif
21531#ifdef HAVE_MATH_H
21532#include <math.h>
1409cd0b 21533#endif
db9f46a9
TG
21534
21535int (*ptr)() = (int (*)())powf;
21536
1409cd0b
FXC
21537int
21538main ()
21539{
1409cd0b
FXC
21540 return 0;
21541}
db9f46a9 21542
1409cd0b 21543_ACEOF
5213506e 21544if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21545 gcc_cv_math_func_powf=yes
1409cd0b 21546else
db9f46a9 21547 gcc_cv_math_func_powf=no
1409cd0b 21548fi
5213506e
RW
21549rm -f core conftest.err conftest.$ac_objext \
21550 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21551fi
db9f46a9
TG
21552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21553$as_echo "$gcc_cv_math_func_powf" >&6; }
21554 if test $gcc_cv_math_func_powf = yes; then
f1cdfa01 21555
f38a14ca
TG
21556cat >>confdefs.h <<_ACEOF
21557#define HAVE_POWF 1
21558_ACEOF
db9f46a9
TG
21559
21560 fi
1409cd0b 21561
1409cd0b 21562
1409cd0b 21563
db9f46a9
TG
21564
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21566$as_echo_n "checking for pow... " >&6; }
22e05272 21567if ${gcc_cv_math_func_pow+:} false; then :
5213506e 21568 $as_echo_n "(cached) " >&6
1409cd0b 21569else
db9f46a9 21570 if test x$gcc_no_link = xyes; then
22e05272 21571 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21572fi
5213506e 21573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21574/* end confdefs.h. */
21575
db9f46a9
TG
21576#ifdef HAVE_COMPLEX_H
21577#include <complex.h>
1409cd0b 21578#endif
db9f46a9
TG
21579#ifdef HAVE_MATH_H
21580#include <math.h>
21581#endif
21582
21583int (*ptr)() = (int (*)())pow;
21584
1409cd0b
FXC
21585int
21586main ()
21587{
1409cd0b
FXC
21588 return 0;
21589}
db9f46a9 21590
1409cd0b 21591_ACEOF
5213506e 21592if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21593 gcc_cv_math_func_pow=yes
1409cd0b 21594else
db9f46a9 21595 gcc_cv_math_func_pow=no
1409cd0b 21596fi
5213506e
RW
21597rm -f core conftest.err conftest.$ac_objext \
21598 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21599fi
db9f46a9
TG
21600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21601$as_echo "$gcc_cv_math_func_pow" >&6; }
21602 if test $gcc_cv_math_func_pow = yes; then
f1cdfa01 21603
f38a14ca
TG
21604cat >>confdefs.h <<_ACEOF
21605#define HAVE_POW 1
21606_ACEOF
1409cd0b 21607
db9f46a9 21608 fi
1409cd0b 21609
1409cd0b 21610
db9f46a9
TG
21611
21612
db9f46a9
TG
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21614$as_echo_n "checking for cpowf... " >&6; }
22e05272 21615if ${gcc_cv_math_func_cpowf+:} false; then :
5213506e 21616 $as_echo_n "(cached) " >&6
1409cd0b 21617else
db9f46a9 21618 if test x$gcc_no_link = xyes; then
22e05272 21619 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21620fi
5213506e 21621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21622/* end confdefs.h. */
21623
db9f46a9
TG
21624#ifdef HAVE_COMPLEX_H
21625#include <complex.h>
1409cd0b 21626#endif
db9f46a9
TG
21627#ifdef HAVE_MATH_H
21628#include <math.h>
21629#endif
21630
21631int (*ptr)() = (int (*)())cpowf;
21632
1409cd0b
FXC
21633int
21634main ()
21635{
1409cd0b
FXC
21636 return 0;
21637}
db9f46a9 21638
1409cd0b 21639_ACEOF
5213506e 21640if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21641 gcc_cv_math_func_cpowf=yes
1409cd0b 21642else
db9f46a9 21643 gcc_cv_math_func_cpowf=no
1409cd0b 21644fi
5213506e
RW
21645rm -f core conftest.err conftest.$ac_objext \
21646 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21647fi
db9f46a9
TG
21648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21649$as_echo "$gcc_cv_math_func_cpowf" >&6; }
21650 if test $gcc_cv_math_func_cpowf = yes; then
f1cdfa01 21651
f38a14ca
TG
21652cat >>confdefs.h <<_ACEOF
21653#define HAVE_CPOWF 1
21654_ACEOF
db9f46a9
TG
21655
21656 fi
21657
1409cd0b 21658
1409cd0b 21659
1409cd0b 21660
db9f46a9
TG
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21662$as_echo_n "checking for cpow... " >&6; }
22e05272 21663if ${gcc_cv_math_func_cpow+:} false; then :
5213506e 21664 $as_echo_n "(cached) " >&6
1409cd0b 21665else
db9f46a9 21666 if test x$gcc_no_link = xyes; then
22e05272 21667 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21668fi
5213506e 21669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21670/* end confdefs.h. */
21671
db9f46a9
TG
21672#ifdef HAVE_COMPLEX_H
21673#include <complex.h>
21674#endif
21675#ifdef HAVE_MATH_H
21676#include <math.h>
1409cd0b 21677#endif
db9f46a9
TG
21678
21679int (*ptr)() = (int (*)())cpow;
21680
1409cd0b
FXC
21681int
21682main ()
21683{
1409cd0b
FXC
21684 return 0;
21685}
db9f46a9 21686
1409cd0b 21687_ACEOF
5213506e 21688if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21689 gcc_cv_math_func_cpow=yes
1409cd0b 21690else
db9f46a9 21691 gcc_cv_math_func_cpow=no
1409cd0b 21692fi
5213506e
RW
21693rm -f core conftest.err conftest.$ac_objext \
21694 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21695fi
db9f46a9
TG
21696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21697$as_echo "$gcc_cv_math_func_cpow" >&6; }
21698 if test $gcc_cv_math_func_cpow = yes; then
f1cdfa01 21699
f38a14ca
TG
21700cat >>confdefs.h <<_ACEOF
21701#define HAVE_CPOW 1
21702_ACEOF
db9f46a9
TG
21703
21704 fi
1409cd0b 21705
1409cd0b 21706
1409cd0b 21707
db9f46a9
TG
21708
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21710$as_echo_n "checking for cpowl... " >&6; }
22e05272 21711if ${gcc_cv_math_func_cpowl+:} false; then :
5213506e 21712 $as_echo_n "(cached) " >&6
1409cd0b 21713else
db9f46a9 21714 if test x$gcc_no_link = xyes; then
22e05272 21715 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21716fi
5213506e 21717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21718/* end confdefs.h. */
21719
db9f46a9
TG
21720#ifdef HAVE_COMPLEX_H
21721#include <complex.h>
1409cd0b 21722#endif
db9f46a9
TG
21723#ifdef HAVE_MATH_H
21724#include <math.h>
21725#endif
21726
21727int (*ptr)() = (int (*)())cpowl;
21728
1409cd0b
FXC
21729int
21730main ()
21731{
1409cd0b
FXC
21732 return 0;
21733}
db9f46a9 21734
1409cd0b 21735_ACEOF
5213506e 21736if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21737 gcc_cv_math_func_cpowl=yes
1409cd0b 21738else
db9f46a9 21739 gcc_cv_math_func_cpowl=no
1409cd0b 21740fi
5213506e
RW
21741rm -f core conftest.err conftest.$ac_objext \
21742 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21743fi
db9f46a9
TG
21744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21745$as_echo "$gcc_cv_math_func_cpowl" >&6; }
21746 if test $gcc_cv_math_func_cpowl = yes; then
f1cdfa01 21747
f38a14ca
TG
21748cat >>confdefs.h <<_ACEOF
21749#define HAVE_CPOWL 1
21750_ACEOF
1409cd0b 21751
db9f46a9 21752 fi
1409cd0b 21753
1409cd0b 21754
db9f46a9
TG
21755
21756
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21758$as_echo_n "checking for roundf... " >&6; }
22e05272 21759if ${gcc_cv_math_func_roundf+:} false; then :
5213506e 21760 $as_echo_n "(cached) " >&6
1409cd0b 21761else
db9f46a9 21762 if test x$gcc_no_link = xyes; then
22e05272 21763 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21764fi
5213506e 21765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21766/* end confdefs.h. */
21767
db9f46a9
TG
21768#ifdef HAVE_COMPLEX_H
21769#include <complex.h>
21770#endif
21771#ifdef HAVE_MATH_H
21772#include <math.h>
1409cd0b 21773#endif
db9f46a9
TG
21774
21775int (*ptr)() = (int (*)())roundf;
21776
1409cd0b
FXC
21777int
21778main ()
21779{
1409cd0b
FXC
21780 return 0;
21781}
db9f46a9 21782
1409cd0b 21783_ACEOF
5213506e 21784if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21785 gcc_cv_math_func_roundf=yes
1409cd0b 21786else
db9f46a9 21787 gcc_cv_math_func_roundf=no
1409cd0b 21788fi
5213506e
RW
21789rm -f core conftest.err conftest.$ac_objext \
21790 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21791fi
db9f46a9
TG
21792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21793$as_echo "$gcc_cv_math_func_roundf" >&6; }
21794 if test $gcc_cv_math_func_roundf = yes; then
f1cdfa01 21795
f38a14ca
TG
21796cat >>confdefs.h <<_ACEOF
21797#define HAVE_ROUNDF 1
21798_ACEOF
db9f46a9
TG
21799
21800 fi
1409cd0b 21801
1409cd0b 21802
1409cd0b 21803
db9f46a9
TG
21804
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21806$as_echo_n "checking for round... " >&6; }
22e05272 21807if ${gcc_cv_math_func_round+:} false; then :
5213506e 21808 $as_echo_n "(cached) " >&6
1409cd0b 21809else
db9f46a9 21810 if test x$gcc_no_link = xyes; then
22e05272 21811 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21812fi
5213506e 21813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21814/* end confdefs.h. */
21815
db9f46a9
TG
21816#ifdef HAVE_COMPLEX_H
21817#include <complex.h>
1409cd0b 21818#endif
db9f46a9
TG
21819#ifdef HAVE_MATH_H
21820#include <math.h>
21821#endif
21822
21823int (*ptr)() = (int (*)())round;
21824
1409cd0b
FXC
21825int
21826main ()
21827{
1409cd0b
FXC
21828 return 0;
21829}
db9f46a9 21830
1409cd0b 21831_ACEOF
5213506e 21832if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21833 gcc_cv_math_func_round=yes
1409cd0b 21834else
db9f46a9 21835 gcc_cv_math_func_round=no
1409cd0b 21836fi
5213506e
RW
21837rm -f core conftest.err conftest.$ac_objext \
21838 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21839fi
db9f46a9
TG
21840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21841$as_echo "$gcc_cv_math_func_round" >&6; }
21842 if test $gcc_cv_math_func_round = yes; then
f1cdfa01 21843
f38a14ca
TG
21844cat >>confdefs.h <<_ACEOF
21845#define HAVE_ROUND 1
21846_ACEOF
db9f46a9
TG
21847
21848 fi
21849
1409cd0b 21850
1409cd0b 21851
1409cd0b 21852
db9f46a9
TG
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21854$as_echo_n "checking for roundl... " >&6; }
22e05272 21855if ${gcc_cv_math_func_roundl+:} false; then :
5213506e 21856 $as_echo_n "(cached) " >&6
94f548c2 21857else
db9f46a9 21858 if test x$gcc_no_link = xyes; then
22e05272 21859 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21860fi
5213506e 21861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21862/* end confdefs.h. */
21863
db9f46a9
TG
21864#ifdef HAVE_COMPLEX_H
21865#include <complex.h>
21866#endif
21867#ifdef HAVE_MATH_H
21868#include <math.h>
94f548c2 21869#endif
db9f46a9
TG
21870
21871int (*ptr)() = (int (*)())roundl;
21872
94f548c2
FXC
21873int
21874main ()
21875{
94f548c2
FXC
21876 return 0;
21877}
db9f46a9 21878
94f548c2 21879_ACEOF
5213506e 21880if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21881 gcc_cv_math_func_roundl=yes
94f548c2 21882else
db9f46a9 21883 gcc_cv_math_func_roundl=no
94f548c2 21884fi
5213506e
RW
21885rm -f core conftest.err conftest.$ac_objext \
21886 conftest$ac_exeext conftest.$ac_ext
94f548c2 21887fi
db9f46a9
TG
21888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21889$as_echo "$gcc_cv_math_func_roundl" >&6; }
21890 if test $gcc_cv_math_func_roundl = yes; then
f1cdfa01 21891
f38a14ca
TG
21892cat >>confdefs.h <<_ACEOF
21893#define HAVE_ROUNDL 1
21894_ACEOF
db9f46a9
TG
21895
21896 fi
94f548c2 21897
94f548c2 21898
94f548c2 21899
db9f46a9
TG
21900
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21902$as_echo_n "checking for lroundf... " >&6; }
22e05272 21903if ${gcc_cv_math_func_lroundf+:} false; then :
5213506e 21904 $as_echo_n "(cached) " >&6
94f548c2 21905else
db9f46a9 21906 if test x$gcc_no_link = xyes; then
22e05272 21907 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21908fi
5213506e 21909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21910/* end confdefs.h. */
21911
db9f46a9
TG
21912#ifdef HAVE_COMPLEX_H
21913#include <complex.h>
94f548c2 21914#endif
db9f46a9
TG
21915#ifdef HAVE_MATH_H
21916#include <math.h>
21917#endif
21918
21919int (*ptr)() = (int (*)())lroundf;
21920
94f548c2
FXC
21921int
21922main ()
21923{
94f548c2
FXC
21924 return 0;
21925}
db9f46a9 21926
94f548c2 21927_ACEOF
5213506e 21928if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21929 gcc_cv_math_func_lroundf=yes
94f548c2 21930else
db9f46a9 21931 gcc_cv_math_func_lroundf=no
94f548c2 21932fi
5213506e
RW
21933rm -f core conftest.err conftest.$ac_objext \
21934 conftest$ac_exeext conftest.$ac_ext
94f548c2 21935fi
db9f46a9
TG
21936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21937$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21938 if test $gcc_cv_math_func_lroundf = yes; then
f1cdfa01 21939
f38a14ca
TG
21940cat >>confdefs.h <<_ACEOF
21941#define HAVE_LROUNDF 1
21942_ACEOF
94f548c2 21943
db9f46a9 21944 fi
94f548c2 21945
94f548c2 21946
db9f46a9
TG
21947
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21950$as_echo_n "checking for lround... " >&6; }
22e05272 21951if ${gcc_cv_math_func_lround+:} false; then :
5213506e 21952 $as_echo_n "(cached) " >&6
94f548c2 21953else
db9f46a9 21954 if test x$gcc_no_link = xyes; then
22e05272 21955 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21956fi
5213506e 21957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21958/* end confdefs.h. */
21959
db9f46a9
TG
21960#ifdef HAVE_COMPLEX_H
21961#include <complex.h>
21962#endif
21963#ifdef HAVE_MATH_H
21964#include <math.h>
94f548c2 21965#endif
db9f46a9
TG
21966
21967int (*ptr)() = (int (*)())lround;
21968
94f548c2
FXC
21969int
21970main ()
21971{
94f548c2
FXC
21972 return 0;
21973}
db9f46a9 21974
94f548c2 21975_ACEOF
5213506e 21976if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21977 gcc_cv_math_func_lround=yes
94f548c2 21978else
db9f46a9 21979 gcc_cv_math_func_lround=no
94f548c2 21980fi
5213506e
RW
21981rm -f core conftest.err conftest.$ac_objext \
21982 conftest$ac_exeext conftest.$ac_ext
94f548c2 21983fi
db9f46a9
TG
21984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21985$as_echo "$gcc_cv_math_func_lround" >&6; }
21986 if test $gcc_cv_math_func_lround = yes; then
f1cdfa01 21987
f38a14ca
TG
21988cat >>confdefs.h <<_ACEOF
21989#define HAVE_LROUND 1
21990_ACEOF
db9f46a9
TG
21991
21992 fi
21993
94f548c2 21994
94f548c2 21995
94f548c2 21996
db9f46a9
TG
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21998$as_echo_n "checking for lroundl... " >&6; }
22e05272 21999if ${gcc_cv_math_func_lroundl+:} false; then :
5213506e 22000 $as_echo_n "(cached) " >&6
94f548c2 22001else
db9f46a9 22002 if test x$gcc_no_link = xyes; then
22e05272 22003 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 22004fi
5213506e 22005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
22006/* end confdefs.h. */
22007
db9f46a9
TG
22008#ifdef HAVE_COMPLEX_H
22009#include <complex.h>
22010#endif
22011#ifdef HAVE_MATH_H
22012#include <math.h>
94f548c2 22013#endif
db9f46a9
TG
22014
22015int (*ptr)() = (int (*)())lroundl;
22016
94f548c2
FXC
22017int
22018main ()
22019{
94f548c2
FXC
22020 return 0;
22021}
db9f46a9 22022
94f548c2 22023_ACEOF
5213506e 22024if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22025 gcc_cv_math_func_lroundl=yes
94f548c2 22026else
db9f46a9 22027 gcc_cv_math_func_lroundl=no
94f548c2 22028fi
5213506e
RW
22029rm -f core conftest.err conftest.$ac_objext \
22030 conftest$ac_exeext conftest.$ac_ext
94f548c2 22031fi
db9f46a9
TG
22032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
22033$as_echo "$gcc_cv_math_func_lroundl" >&6; }
22034 if test $gcc_cv_math_func_lroundl = yes; then
f1cdfa01 22035
f38a14ca
TG
22036cat >>confdefs.h <<_ACEOF
22037#define HAVE_LROUNDL 1
22038_ACEOF
94f548c2 22039
db9f46a9 22040 fi
94f548c2 22041
94f548c2 22042
db9f46a9
TG
22043
22044
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
22046$as_echo_n "checking for llroundf... " >&6; }
22e05272 22047if ${gcc_cv_math_func_llroundf+:} false; then :
5213506e 22048 $as_echo_n "(cached) " >&6
94f548c2 22049else
db9f46a9 22050 if test x$gcc_no_link = xyes; then
22e05272 22051 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 22052fi
5213506e 22053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
22054/* end confdefs.h. */
22055
db9f46a9
TG
22056#ifdef HAVE_COMPLEX_H
22057#include <complex.h>
94f548c2 22058#endif
db9f46a9
TG
22059#ifdef HAVE_MATH_H
22060#include <math.h>
22061#endif
22062
22063int (*ptr)() = (int (*)())llroundf;
22064
94f548c2
FXC
22065int
22066main ()
22067{
94f548c2
FXC
22068 return 0;
22069}
db9f46a9 22070
94f548c2 22071_ACEOF
5213506e 22072if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22073 gcc_cv_math_func_llroundf=yes
94f548c2 22074else
db9f46a9 22075 gcc_cv_math_func_llroundf=no
94f548c2 22076fi
5213506e
RW
22077rm -f core conftest.err conftest.$ac_objext \
22078 conftest$ac_exeext conftest.$ac_ext
94f548c2 22079fi
db9f46a9
TG
22080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
22081$as_echo "$gcc_cv_math_func_llroundf" >&6; }
22082 if test $gcc_cv_math_func_llroundf = yes; then
f1cdfa01 22083
f38a14ca
TG
22084cat >>confdefs.h <<_ACEOF
22085#define HAVE_LLROUNDF 1
22086_ACEOF
94f548c2 22087
db9f46a9 22088 fi
94f548c2 22089
94f548c2 22090
db9f46a9
TG
22091
22092
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
22094$as_echo_n "checking for llround... " >&6; }
22e05272 22095if ${gcc_cv_math_func_llround+:} false; then :
5213506e 22096 $as_echo_n "(cached) " >&6
94f548c2 22097else
db9f46a9 22098 if test x$gcc_no_link = xyes; then
22e05272 22099 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 22100fi
5213506e 22101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
22102/* end confdefs.h. */
22103
db9f46a9
TG
22104#ifdef HAVE_COMPLEX_H
22105#include <complex.h>
22106#endif
22107#ifdef HAVE_MATH_H
22108#include <math.h>
94f548c2 22109#endif
db9f46a9
TG
22110
22111int (*ptr)() = (int (*)())llround;
22112
94f548c2
FXC
22113int
22114main ()
22115{
94f548c2
FXC
22116 return 0;
22117}
db9f46a9 22118
94f548c2 22119_ACEOF
5213506e 22120if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22121 gcc_cv_math_func_llround=yes
94f548c2 22122else
db9f46a9 22123 gcc_cv_math_func_llround=no
94f548c2 22124fi
5213506e
RW
22125rm -f core conftest.err conftest.$ac_objext \
22126 conftest$ac_exeext conftest.$ac_ext
94f548c2 22127fi
db9f46a9
TG
22128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
22129$as_echo "$gcc_cv_math_func_llround" >&6; }
22130 if test $gcc_cv_math_func_llround = yes; then
f1cdfa01 22131
f38a14ca
TG
22132cat >>confdefs.h <<_ACEOF
22133#define HAVE_LLROUND 1
22134_ACEOF
db9f46a9
TG
22135
22136 fi
22137
94f548c2 22138
94f548c2 22139
94f548c2 22140
db9f46a9
TG
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
22142$as_echo_n "checking for llroundl... " >&6; }
22e05272 22143if ${gcc_cv_math_func_llroundl+:} false; then :
5213506e 22144 $as_echo_n "(cached) " >&6
1409cd0b 22145else
db9f46a9 22146 if test x$gcc_no_link = xyes; then
22e05272 22147 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22148fi
5213506e 22149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22150/* end confdefs.h. */
22151
db9f46a9
TG
22152#ifdef HAVE_COMPLEX_H
22153#include <complex.h>
22154#endif
22155#ifdef HAVE_MATH_H
22156#include <math.h>
1409cd0b 22157#endif
db9f46a9
TG
22158
22159int (*ptr)() = (int (*)())llroundl;
22160
1409cd0b
FXC
22161int
22162main ()
22163{
1409cd0b
FXC
22164 return 0;
22165}
db9f46a9 22166
1409cd0b 22167_ACEOF
5213506e 22168if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22169 gcc_cv_math_func_llroundl=yes
1409cd0b 22170else
db9f46a9 22171 gcc_cv_math_func_llroundl=no
1409cd0b 22172fi
5213506e
RW
22173rm -f core conftest.err conftest.$ac_objext \
22174 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22175fi
db9f46a9
TG
22176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
22177$as_echo "$gcc_cv_math_func_llroundl" >&6; }
22178 if test $gcc_cv_math_func_llroundl = yes; then
f1cdfa01 22179
f38a14ca
TG
22180cat >>confdefs.h <<_ACEOF
22181#define HAVE_LLROUNDL 1
22182_ACEOF
1409cd0b 22183
db9f46a9 22184 fi
1409cd0b 22185
1409cd0b 22186
db9f46a9
TG
22187
22188
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
22190$as_echo_n "checking for scalbnf... " >&6; }
22e05272 22191if ${gcc_cv_math_func_scalbnf+:} false; then :
5213506e 22192 $as_echo_n "(cached) " >&6
1409cd0b 22193else
db9f46a9 22194 if test x$gcc_no_link = xyes; then
22e05272 22195 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22196fi
5213506e 22197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22198/* end confdefs.h. */
22199
db9f46a9
TG
22200#ifdef HAVE_COMPLEX_H
22201#include <complex.h>
1409cd0b 22202#endif
db9f46a9
TG
22203#ifdef HAVE_MATH_H
22204#include <math.h>
22205#endif
22206
22207int (*ptr)() = (int (*)())scalbnf;
22208
1409cd0b
FXC
22209int
22210main ()
22211{
1409cd0b
FXC
22212 return 0;
22213}
db9f46a9 22214
1409cd0b 22215_ACEOF
5213506e 22216if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22217 gcc_cv_math_func_scalbnf=yes
1409cd0b 22218else
db9f46a9 22219 gcc_cv_math_func_scalbnf=no
1409cd0b 22220fi
5213506e
RW
22221rm -f core conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22223fi
db9f46a9
TG
22224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
22225$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
22226 if test $gcc_cv_math_func_scalbnf = yes; then
f1cdfa01 22227
f38a14ca
TG
22228cat >>confdefs.h <<_ACEOF
22229#define HAVE_SCALBNF 1
22230_ACEOF
1409cd0b 22231
db9f46a9 22232 fi
1409cd0b 22233
1409cd0b 22234
db9f46a9
TG
22235
22236
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
22238$as_echo_n "checking for scalbn... " >&6; }
22e05272 22239if ${gcc_cv_math_func_scalbn+:} false; then :
5213506e 22240 $as_echo_n "(cached) " >&6
1409cd0b 22241else
db9f46a9 22242 if test x$gcc_no_link = xyes; then
22e05272 22243 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22244fi
5213506e 22245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22246/* end confdefs.h. */
22247
db9f46a9
TG
22248#ifdef HAVE_COMPLEX_H
22249#include <complex.h>
22250#endif
22251#ifdef HAVE_MATH_H
22252#include <math.h>
1409cd0b 22253#endif
db9f46a9
TG
22254
22255int (*ptr)() = (int (*)())scalbn;
22256
1409cd0b
FXC
22257int
22258main ()
22259{
1409cd0b
FXC
22260 return 0;
22261}
db9f46a9 22262
1409cd0b 22263_ACEOF
5213506e 22264if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22265 gcc_cv_math_func_scalbn=yes
1409cd0b 22266else
db9f46a9 22267 gcc_cv_math_func_scalbn=no
1409cd0b 22268fi
5213506e
RW
22269rm -f core conftest.err conftest.$ac_objext \
22270 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22271fi
db9f46a9
TG
22272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
22273$as_echo "$gcc_cv_math_func_scalbn" >&6; }
22274 if test $gcc_cv_math_func_scalbn = yes; then
f1cdfa01 22275
f38a14ca
TG
22276cat >>confdefs.h <<_ACEOF
22277#define HAVE_SCALBN 1
22278_ACEOF
db9f46a9
TG
22279
22280 fi
22281
1409cd0b 22282
1409cd0b 22283
1409cd0b 22284
db9f46a9
TG
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
22286$as_echo_n "checking for scalbnl... " >&6; }
22e05272 22287if ${gcc_cv_math_func_scalbnl+:} false; then :
5213506e 22288 $as_echo_n "(cached) " >&6
1409cd0b 22289else
db9f46a9 22290 if test x$gcc_no_link = xyes; then
22e05272 22291 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22292fi
5213506e 22293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22294/* end confdefs.h. */
22295
db9f46a9
TG
22296#ifdef HAVE_COMPLEX_H
22297#include <complex.h>
22298#endif
22299#ifdef HAVE_MATH_H
22300#include <math.h>
1409cd0b 22301#endif
db9f46a9
TG
22302
22303int (*ptr)() = (int (*)())scalbnl;
22304
1409cd0b
FXC
22305int
22306main ()
22307{
1409cd0b
FXC
22308 return 0;
22309}
db9f46a9 22310
1409cd0b 22311_ACEOF
5213506e 22312if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22313 gcc_cv_math_func_scalbnl=yes
1409cd0b 22314else
db9f46a9 22315 gcc_cv_math_func_scalbnl=no
1409cd0b 22316fi
5213506e
RW
22317rm -f core conftest.err conftest.$ac_objext \
22318 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22319fi
db9f46a9
TG
22320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
22321$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
22322 if test $gcc_cv_math_func_scalbnl = yes; then
f1cdfa01 22323
f38a14ca
TG
22324cat >>confdefs.h <<_ACEOF
22325#define HAVE_SCALBNL 1
22326_ACEOF
1409cd0b 22327
db9f46a9 22328 fi
1409cd0b 22329
1409cd0b 22330
db9f46a9
TG
22331
22332
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
22334$as_echo_n "checking for sinf... " >&6; }
22e05272 22335if ${gcc_cv_math_func_sinf+:} false; then :
5213506e 22336 $as_echo_n "(cached) " >&6
1409cd0b 22337else
db9f46a9 22338 if test x$gcc_no_link = xyes; then
22e05272 22339 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22340fi
5213506e 22341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22342/* end confdefs.h. */
22343
db9f46a9
TG
22344#ifdef HAVE_COMPLEX_H
22345#include <complex.h>
1409cd0b 22346#endif
db9f46a9
TG
22347#ifdef HAVE_MATH_H
22348#include <math.h>
22349#endif
22350
22351int (*ptr)() = (int (*)())sinf;
22352
1409cd0b
FXC
22353int
22354main ()
22355{
1409cd0b
FXC
22356 return 0;
22357}
db9f46a9 22358
1409cd0b 22359_ACEOF
5213506e 22360if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22361 gcc_cv_math_func_sinf=yes
1409cd0b 22362else
db9f46a9 22363 gcc_cv_math_func_sinf=no
1409cd0b 22364fi
5213506e
RW
22365rm -f core conftest.err conftest.$ac_objext \
22366 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22367fi
db9f46a9
TG
22368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
22369$as_echo "$gcc_cv_math_func_sinf" >&6; }
22370 if test $gcc_cv_math_func_sinf = yes; then
f1cdfa01 22371
f38a14ca
TG
22372cat >>confdefs.h <<_ACEOF
22373#define HAVE_SINF 1
22374_ACEOF
1409cd0b 22375
db9f46a9 22376 fi
1409cd0b 22377
1409cd0b 22378
db9f46a9
TG
22379
22380
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
22382$as_echo_n "checking for sin... " >&6; }
22e05272 22383if ${gcc_cv_math_func_sin+:} false; then :
5213506e 22384 $as_echo_n "(cached) " >&6
1409cd0b 22385else
db9f46a9 22386 if test x$gcc_no_link = xyes; then
22e05272 22387 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22388fi
5213506e 22389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22390/* end confdefs.h. */
22391
db9f46a9
TG
22392#ifdef HAVE_COMPLEX_H
22393#include <complex.h>
1409cd0b 22394#endif
db9f46a9
TG
22395#ifdef HAVE_MATH_H
22396#include <math.h>
22397#endif
22398
22399int (*ptr)() = (int (*)())sin;
22400
1409cd0b
FXC
22401int
22402main ()
22403{
1409cd0b
FXC
22404 return 0;
22405}
db9f46a9 22406
1409cd0b 22407_ACEOF
5213506e 22408if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22409 gcc_cv_math_func_sin=yes
1409cd0b 22410else
db9f46a9 22411 gcc_cv_math_func_sin=no
1409cd0b 22412fi
5213506e
RW
22413rm -f core conftest.err conftest.$ac_objext \
22414 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22415fi
db9f46a9
TG
22416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22417$as_echo "$gcc_cv_math_func_sin" >&6; }
22418 if test $gcc_cv_math_func_sin = yes; then
f1cdfa01 22419
f38a14ca
TG
22420cat >>confdefs.h <<_ACEOF
22421#define HAVE_SIN 1
22422_ACEOF
db9f46a9
TG
22423
22424 fi
22425
1409cd0b 22426
1409cd0b 22427
1409cd0b 22428
db9f46a9
TG
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22430$as_echo_n "checking for sinl... " >&6; }
22e05272 22431if ${gcc_cv_math_func_sinl+:} false; then :
5213506e 22432 $as_echo_n "(cached) " >&6
1409cd0b 22433else
db9f46a9 22434 if test x$gcc_no_link = xyes; then
22e05272 22435 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22436fi
5213506e 22437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22438/* end confdefs.h. */
22439
db9f46a9
TG
22440#ifdef HAVE_COMPLEX_H
22441#include <complex.h>
1409cd0b 22442#endif
db9f46a9
TG
22443#ifdef HAVE_MATH_H
22444#include <math.h>
22445#endif
22446
22447int (*ptr)() = (int (*)())sinl;
22448
1409cd0b
FXC
22449int
22450main ()
22451{
5213506e
RW
22452 return 0;
22453}
db9f46a9 22454
5213506e
RW
22455_ACEOF
22456if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22457 gcc_cv_math_func_sinl=yes
1409cd0b 22458else
db9f46a9 22459 gcc_cv_math_func_sinl=no
1409cd0b 22460fi
5213506e
RW
22461rm -f core conftest.err conftest.$ac_objext \
22462 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22463fi
db9f46a9
TG
22464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22465$as_echo "$gcc_cv_math_func_sinl" >&6; }
22466 if test $gcc_cv_math_func_sinl = yes; then
f1cdfa01 22467
f38a14ca
TG
22468cat >>confdefs.h <<_ACEOF
22469#define HAVE_SINL 1
22470_ACEOF
db9f46a9
TG
22471
22472 fi
1409cd0b 22473
1409cd0b 22474
1409cd0b 22475
db9f46a9
TG
22476
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22478$as_echo_n "checking for csinf... " >&6; }
22e05272 22479if ${gcc_cv_math_func_csinf+:} false; then :
5213506e 22480 $as_echo_n "(cached) " >&6
1409cd0b 22481else
db9f46a9 22482 if test x$gcc_no_link = xyes; then
22e05272 22483 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22484fi
5213506e 22485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22486/* end confdefs.h. */
22487
db9f46a9
TG
22488#ifdef HAVE_COMPLEX_H
22489#include <complex.h>
22490#endif
22491#ifdef HAVE_MATH_H
22492#include <math.h>
1409cd0b 22493#endif
db9f46a9
TG
22494
22495int (*ptr)() = (int (*)())csinf;
22496
1409cd0b
FXC
22497int
22498main ()
22499{
1409cd0b
FXC
22500 return 0;
22501}
db9f46a9 22502
1409cd0b 22503_ACEOF
5213506e 22504if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22505 gcc_cv_math_func_csinf=yes
1409cd0b 22506else
db9f46a9 22507 gcc_cv_math_func_csinf=no
1409cd0b 22508fi
5213506e
RW
22509rm -f core conftest.err conftest.$ac_objext \
22510 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22511fi
db9f46a9
TG
22512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22513$as_echo "$gcc_cv_math_func_csinf" >&6; }
22514 if test $gcc_cv_math_func_csinf = yes; then
f1cdfa01 22515
f38a14ca
TG
22516cat >>confdefs.h <<_ACEOF
22517#define HAVE_CSINF 1
22518_ACEOF
1409cd0b 22519
db9f46a9 22520 fi
1409cd0b 22521
1409cd0b 22522
db9f46a9
TG
22523
22524
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22526$as_echo_n "checking for csin... " >&6; }
22e05272 22527if ${gcc_cv_math_func_csin+:} false; then :
5213506e 22528 $as_echo_n "(cached) " >&6
1409cd0b 22529else
db9f46a9 22530 if test x$gcc_no_link = xyes; then
22e05272 22531 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22532fi
5213506e 22533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22534/* end confdefs.h. */
22535
db9f46a9
TG
22536#ifdef HAVE_COMPLEX_H
22537#include <complex.h>
1409cd0b 22538#endif
db9f46a9
TG
22539#ifdef HAVE_MATH_H
22540#include <math.h>
22541#endif
22542
22543int (*ptr)() = (int (*)())csin;
22544
1409cd0b
FXC
22545int
22546main ()
22547{
1409cd0b
FXC
22548 return 0;
22549}
db9f46a9 22550
1409cd0b 22551_ACEOF
5213506e 22552if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22553 gcc_cv_math_func_csin=yes
1409cd0b 22554else
db9f46a9 22555 gcc_cv_math_func_csin=no
1409cd0b 22556fi
5213506e
RW
22557rm -f core conftest.err conftest.$ac_objext \
22558 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22559fi
db9f46a9
TG
22560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22561$as_echo "$gcc_cv_math_func_csin" >&6; }
22562 if test $gcc_cv_math_func_csin = yes; then
f1cdfa01 22563
f38a14ca
TG
22564cat >>confdefs.h <<_ACEOF
22565#define HAVE_CSIN 1
22566_ACEOF
db9f46a9
TG
22567
22568 fi
22569
1409cd0b 22570
1409cd0b 22571
1409cd0b 22572
db9f46a9
TG
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22574$as_echo_n "checking for csinl... " >&6; }
22e05272 22575if ${gcc_cv_math_func_csinl+:} false; then :
5213506e 22576 $as_echo_n "(cached) " >&6
1409cd0b 22577else
db9f46a9 22578 if test x$gcc_no_link = xyes; then
22e05272 22579 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22580fi
5213506e 22581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22582/* end confdefs.h. */
22583
db9f46a9
TG
22584#ifdef HAVE_COMPLEX_H
22585#include <complex.h>
1409cd0b 22586#endif
db9f46a9
TG
22587#ifdef HAVE_MATH_H
22588#include <math.h>
22589#endif
22590
22591int (*ptr)() = (int (*)())csinl;
22592
1409cd0b
FXC
22593int
22594main ()
22595{
1409cd0b
FXC
22596 return 0;
22597}
db9f46a9 22598
1409cd0b 22599_ACEOF
5213506e 22600if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22601 gcc_cv_math_func_csinl=yes
1409cd0b 22602else
db9f46a9 22603 gcc_cv_math_func_csinl=no
1409cd0b 22604fi
5213506e
RW
22605rm -f core conftest.err conftest.$ac_objext \
22606 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22607fi
db9f46a9
TG
22608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22609$as_echo "$gcc_cv_math_func_csinl" >&6; }
22610 if test $gcc_cv_math_func_csinl = yes; then
f1cdfa01 22611
f38a14ca
TG
22612cat >>confdefs.h <<_ACEOF
22613#define HAVE_CSINL 1
22614_ACEOF
db9f46a9
TG
22615
22616 fi
1409cd0b 22617
1409cd0b 22618
1409cd0b 22619
db9f46a9
TG
22620
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22622$as_echo_n "checking for sinhf... " >&6; }
22e05272 22623if ${gcc_cv_math_func_sinhf+:} false; then :
5213506e 22624 $as_echo_n "(cached) " >&6
1409cd0b 22625else
db9f46a9 22626 if test x$gcc_no_link = xyes; then
22e05272 22627 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22628fi
5213506e 22629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22630/* end confdefs.h. */
22631
db9f46a9
TG
22632#ifdef HAVE_COMPLEX_H
22633#include <complex.h>
22634#endif
22635#ifdef HAVE_MATH_H
22636#include <math.h>
1409cd0b 22637#endif
db9f46a9
TG
22638
22639int (*ptr)() = (int (*)())sinhf;
22640
1409cd0b
FXC
22641int
22642main ()
22643{
1409cd0b
FXC
22644 return 0;
22645}
db9f46a9 22646
1409cd0b 22647_ACEOF
5213506e 22648if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22649 gcc_cv_math_func_sinhf=yes
1409cd0b 22650else
db9f46a9 22651 gcc_cv_math_func_sinhf=no
1409cd0b 22652fi
5213506e
RW
22653rm -f core conftest.err conftest.$ac_objext \
22654 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22655fi
db9f46a9
TG
22656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22657$as_echo "$gcc_cv_math_func_sinhf" >&6; }
22658 if test $gcc_cv_math_func_sinhf = yes; then
f1cdfa01 22659
f38a14ca
TG
22660cat >>confdefs.h <<_ACEOF
22661#define HAVE_SINHF 1
22662_ACEOF
1409cd0b 22663
db9f46a9 22664 fi
1409cd0b 22665
1409cd0b 22666
db9f46a9
TG
22667
22668
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22670$as_echo_n "checking for sinh... " >&6; }
22e05272 22671if ${gcc_cv_math_func_sinh+:} false; then :
5213506e 22672 $as_echo_n "(cached) " >&6
1409cd0b 22673else
db9f46a9 22674 if test x$gcc_no_link = xyes; then
22e05272 22675 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22676fi
5213506e 22677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22678/* end confdefs.h. */
22679
db9f46a9
TG
22680#ifdef HAVE_COMPLEX_H
22681#include <complex.h>
1409cd0b 22682#endif
db9f46a9
TG
22683#ifdef HAVE_MATH_H
22684#include <math.h>
22685#endif
22686
22687int (*ptr)() = (int (*)())sinh;
22688
1409cd0b
FXC
22689int
22690main ()
22691{
1409cd0b
FXC
22692 return 0;
22693}
db9f46a9 22694
1409cd0b 22695_ACEOF
5213506e 22696if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22697 gcc_cv_math_func_sinh=yes
1409cd0b 22698else
db9f46a9 22699 gcc_cv_math_func_sinh=no
1409cd0b 22700fi
5213506e
RW
22701rm -f core conftest.err conftest.$ac_objext \
22702 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22703fi
db9f46a9
TG
22704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22705$as_echo "$gcc_cv_math_func_sinh" >&6; }
22706 if test $gcc_cv_math_func_sinh = yes; then
f1cdfa01 22707
f38a14ca
TG
22708cat >>confdefs.h <<_ACEOF
22709#define HAVE_SINH 1
22710_ACEOF
db9f46a9
TG
22711
22712 fi
22713
1409cd0b 22714
1409cd0b 22715
1409cd0b 22716
db9f46a9
TG
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22718$as_echo_n "checking for sinhl... " >&6; }
22e05272 22719if ${gcc_cv_math_func_sinhl+:} false; then :
5213506e 22720 $as_echo_n "(cached) " >&6
1409cd0b 22721else
db9f46a9 22722 if test x$gcc_no_link = xyes; then
22e05272 22723 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22724fi
5213506e 22725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22726/* end confdefs.h. */
22727
db9f46a9
TG
22728#ifdef HAVE_COMPLEX_H
22729#include <complex.h>
1409cd0b 22730#endif
db9f46a9
TG
22731#ifdef HAVE_MATH_H
22732#include <math.h>
22733#endif
22734
22735int (*ptr)() = (int (*)())sinhl;
22736
1409cd0b
FXC
22737int
22738main ()
22739{
1409cd0b
FXC
22740 return 0;
22741}
db9f46a9 22742
1409cd0b 22743_ACEOF
5213506e 22744if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22745 gcc_cv_math_func_sinhl=yes
1409cd0b 22746else
db9f46a9 22747 gcc_cv_math_func_sinhl=no
1409cd0b 22748fi
5213506e
RW
22749rm -f core conftest.err conftest.$ac_objext \
22750 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22751fi
db9f46a9
TG
22752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22753$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22754 if test $gcc_cv_math_func_sinhl = yes; then
f1cdfa01 22755
f38a14ca
TG
22756cat >>confdefs.h <<_ACEOF
22757#define HAVE_SINHL 1
22758_ACEOF
db9f46a9
TG
22759
22760 fi
1409cd0b 22761
1409cd0b 22762
1409cd0b 22763
db9f46a9
TG
22764
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22766$as_echo_n "checking for csinhf... " >&6; }
22e05272 22767if ${gcc_cv_math_func_csinhf+:} false; then :
5213506e 22768 $as_echo_n "(cached) " >&6
1409cd0b 22769else
db9f46a9 22770 if test x$gcc_no_link = xyes; then
22e05272 22771 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22772fi
5213506e 22773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22774/* end confdefs.h. */
22775
db9f46a9
TG
22776#ifdef HAVE_COMPLEX_H
22777#include <complex.h>
22778#endif
22779#ifdef HAVE_MATH_H
22780#include <math.h>
1409cd0b 22781#endif
db9f46a9
TG
22782
22783int (*ptr)() = (int (*)())csinhf;
22784
1409cd0b
FXC
22785int
22786main ()
22787{
1409cd0b
FXC
22788 return 0;
22789}
db9f46a9 22790
1409cd0b 22791_ACEOF
5213506e 22792if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22793 gcc_cv_math_func_csinhf=yes
1409cd0b 22794else
db9f46a9 22795 gcc_cv_math_func_csinhf=no
1409cd0b 22796fi
5213506e
RW
22797rm -f core conftest.err conftest.$ac_objext \
22798 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22799fi
db9f46a9
TG
22800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22801$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22802 if test $gcc_cv_math_func_csinhf = yes; then
f1cdfa01 22803
f38a14ca
TG
22804cat >>confdefs.h <<_ACEOF
22805#define HAVE_CSINHF 1
22806_ACEOF
1409cd0b 22807
db9f46a9 22808 fi
1409cd0b 22809
1409cd0b 22810
db9f46a9
TG
22811
22812
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22814$as_echo_n "checking for csinh... " >&6; }
22e05272 22815if ${gcc_cv_math_func_csinh+:} false; then :
5213506e 22816 $as_echo_n "(cached) " >&6
1409cd0b 22817else
db9f46a9 22818 if test x$gcc_no_link = xyes; then
22e05272 22819 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22820fi
5213506e 22821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22822/* end confdefs.h. */
22823
db9f46a9
TG
22824#ifdef HAVE_COMPLEX_H
22825#include <complex.h>
1409cd0b 22826#endif
db9f46a9
TG
22827#ifdef HAVE_MATH_H
22828#include <math.h>
22829#endif
22830
22831int (*ptr)() = (int (*)())csinh;
22832
1409cd0b
FXC
22833int
22834main ()
22835{
1409cd0b
FXC
22836 return 0;
22837}
db9f46a9 22838
1409cd0b 22839_ACEOF
5213506e 22840if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22841 gcc_cv_math_func_csinh=yes
1409cd0b 22842else
db9f46a9 22843 gcc_cv_math_func_csinh=no
1409cd0b 22844fi
5213506e
RW
22845rm -f core conftest.err conftest.$ac_objext \
22846 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22847fi
db9f46a9
TG
22848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22849$as_echo "$gcc_cv_math_func_csinh" >&6; }
22850 if test $gcc_cv_math_func_csinh = yes; then
f1cdfa01 22851
f38a14ca
TG
22852cat >>confdefs.h <<_ACEOF
22853#define HAVE_CSINH 1
22854_ACEOF
db9f46a9
TG
22855
22856 fi
22857
1409cd0b 22858
1409cd0b 22859
1409cd0b 22860
db9f46a9
TG
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22862$as_echo_n "checking for csinhl... " >&6; }
22e05272 22863if ${gcc_cv_math_func_csinhl+:} false; then :
5213506e 22864 $as_echo_n "(cached) " >&6
1409cd0b 22865else
db9f46a9 22866 if test x$gcc_no_link = xyes; then
22e05272 22867 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22868fi
5213506e 22869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22870/* end confdefs.h. */
22871
db9f46a9
TG
22872#ifdef HAVE_COMPLEX_H
22873#include <complex.h>
1409cd0b 22874#endif
db9f46a9
TG
22875#ifdef HAVE_MATH_H
22876#include <math.h>
22877#endif
22878
22879int (*ptr)() = (int (*)())csinhl;
22880
1409cd0b
FXC
22881int
22882main ()
22883{
1409cd0b
FXC
22884 return 0;
22885}
db9f46a9 22886
1409cd0b 22887_ACEOF
5213506e 22888if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22889 gcc_cv_math_func_csinhl=yes
1409cd0b 22890else
db9f46a9 22891 gcc_cv_math_func_csinhl=no
1409cd0b 22892fi
5213506e
RW
22893rm -f core conftest.err conftest.$ac_objext \
22894 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22895fi
db9f46a9
TG
22896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22897$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22898 if test $gcc_cv_math_func_csinhl = yes; then
f1cdfa01 22899
f38a14ca
TG
22900cat >>confdefs.h <<_ACEOF
22901#define HAVE_CSINHL 1
22902_ACEOF
db9f46a9
TG
22903
22904 fi
1409cd0b 22905
1409cd0b 22906
1409cd0b 22907
db9f46a9
TG
22908
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22910$as_echo_n "checking for sqrtf... " >&6; }
22e05272 22911if ${gcc_cv_math_func_sqrtf+:} false; then :
5213506e 22912 $as_echo_n "(cached) " >&6
1409cd0b 22913else
db9f46a9 22914 if test x$gcc_no_link = xyes; then
22e05272 22915 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22916fi
5213506e 22917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22918/* end confdefs.h. */
22919
db9f46a9
TG
22920#ifdef HAVE_COMPLEX_H
22921#include <complex.h>
22922#endif
22923#ifdef HAVE_MATH_H
22924#include <math.h>
1409cd0b 22925#endif
db9f46a9
TG
22926
22927int (*ptr)() = (int (*)())sqrtf;
22928
1409cd0b
FXC
22929int
22930main ()
22931{
1409cd0b
FXC
22932 return 0;
22933}
db9f46a9 22934
1409cd0b 22935_ACEOF
5213506e 22936if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22937 gcc_cv_math_func_sqrtf=yes
1409cd0b 22938else
db9f46a9 22939 gcc_cv_math_func_sqrtf=no
1409cd0b 22940fi
5213506e
RW
22941rm -f core conftest.err conftest.$ac_objext \
22942 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22943fi
db9f46a9
TG
22944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22945$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22946 if test $gcc_cv_math_func_sqrtf = yes; then
f1cdfa01 22947
f38a14ca
TG
22948cat >>confdefs.h <<_ACEOF
22949#define HAVE_SQRTF 1
22950_ACEOF
db9f46a9
TG
22951
22952 fi
1409cd0b 22953
1409cd0b 22954
db9f46a9
TG
22955
22956
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22958$as_echo_n "checking for sqrt... " >&6; }
22e05272 22959if ${gcc_cv_math_func_sqrt+:} false; then :
db9f46a9
TG
22960 $as_echo_n "(cached) " >&6
22961else
22962 if test x$gcc_no_link = xyes; then
22e05272 22963 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22964fi
db9f46a9
TG
22965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22966/* end confdefs.h. */
22967
22968#ifdef HAVE_COMPLEX_H
22969#include <complex.h>
22970#endif
22971#ifdef HAVE_MATH_H
22972#include <math.h>
22973#endif
22974
22975int (*ptr)() = (int (*)())sqrt;
22976
22977int
22978main ()
22979{
22980 return 0;
22981}
22982
22983_ACEOF
22984if ac_fn_c_try_link "$LINENO"; then :
22985 gcc_cv_math_func_sqrt=yes
22986else
22987 gcc_cv_math_func_sqrt=no
22988fi
22989rm -f core conftest.err conftest.$ac_objext \
22990 conftest$ac_exeext conftest.$ac_ext
22991fi
22992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22993$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22994 if test $gcc_cv_math_func_sqrt = yes; then
f1cdfa01 22995
f38a14ca
TG
22996cat >>confdefs.h <<_ACEOF
22997#define HAVE_SQRT 1
22998_ACEOF
db9f46a9
TG
22999
23000 fi
1409cd0b 23001
db9f46a9
TG
23002
23003
23004
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
23006$as_echo_n "checking for sqrtl... " >&6; }
22e05272 23007if ${gcc_cv_math_func_sqrtl+:} false; then :
5213506e 23008 $as_echo_n "(cached) " >&6
1409cd0b 23009else
db9f46a9 23010 if test x$gcc_no_link = xyes; then
22e05272 23011 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23012fi
5213506e 23013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23014/* end confdefs.h. */
23015
db9f46a9
TG
23016#ifdef HAVE_COMPLEX_H
23017#include <complex.h>
23018#endif
23019#ifdef HAVE_MATH_H
23020#include <math.h>
1409cd0b 23021#endif
db9f46a9
TG
23022
23023int (*ptr)() = (int (*)())sqrtl;
23024
1409cd0b
FXC
23025int
23026main ()
23027{
1409cd0b
FXC
23028 return 0;
23029}
db9f46a9 23030
1409cd0b 23031_ACEOF
5213506e 23032if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23033 gcc_cv_math_func_sqrtl=yes
1409cd0b 23034else
db9f46a9 23035 gcc_cv_math_func_sqrtl=no
1409cd0b 23036fi
5213506e
RW
23037rm -f core conftest.err conftest.$ac_objext \
23038 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23039fi
db9f46a9
TG
23040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
23041$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
23042 if test $gcc_cv_math_func_sqrtl = yes; then
f1cdfa01 23043
f38a14ca
TG
23044cat >>confdefs.h <<_ACEOF
23045#define HAVE_SQRTL 1
23046_ACEOF
db9f46a9
TG
23047
23048 fi
1409cd0b 23049
1409cd0b 23050
1409cd0b 23051
db9f46a9
TG
23052
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
23054$as_echo_n "checking for csqrtf... " >&6; }
22e05272 23055if ${gcc_cv_math_func_csqrtf+:} false; then :
5213506e 23056 $as_echo_n "(cached) " >&6
1409cd0b 23057else
db9f46a9 23058 if test x$gcc_no_link = xyes; then
22e05272 23059 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23060fi
5213506e 23061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23062/* end confdefs.h. */
23063
db9f46a9
TG
23064#ifdef HAVE_COMPLEX_H
23065#include <complex.h>
1409cd0b 23066#endif
db9f46a9
TG
23067#ifdef HAVE_MATH_H
23068#include <math.h>
23069#endif
23070
23071int (*ptr)() = (int (*)())csqrtf;
23072
1409cd0b
FXC
23073int
23074main ()
23075{
1409cd0b
FXC
23076 return 0;
23077}
db9f46a9 23078
1409cd0b 23079_ACEOF
5213506e 23080if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23081 gcc_cv_math_func_csqrtf=yes
1409cd0b 23082else
db9f46a9 23083 gcc_cv_math_func_csqrtf=no
1409cd0b 23084fi
5213506e
RW
23085rm -f core conftest.err conftest.$ac_objext \
23086 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23087fi
db9f46a9
TG
23088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
23089$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
23090 if test $gcc_cv_math_func_csqrtf = yes; then
f1cdfa01 23091
f38a14ca
TG
23092cat >>confdefs.h <<_ACEOF
23093#define HAVE_CSQRTF 1
23094_ACEOF
1409cd0b 23095
db9f46a9 23096 fi
1409cd0b 23097
1409cd0b 23098
db9f46a9
TG
23099
23100
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
23102$as_echo_n "checking for csqrt... " >&6; }
22e05272 23103if ${gcc_cv_math_func_csqrt+:} false; then :
5213506e 23104 $as_echo_n "(cached) " >&6
1409cd0b 23105else
db9f46a9 23106 if test x$gcc_no_link = xyes; then
22e05272 23107 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23108fi
5213506e 23109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23110/* end confdefs.h. */
23111
db9f46a9
TG
23112#ifdef HAVE_COMPLEX_H
23113#include <complex.h>
23114#endif
23115#ifdef HAVE_MATH_H
23116#include <math.h>
1409cd0b 23117#endif
db9f46a9
TG
23118
23119int (*ptr)() = (int (*)())csqrt;
23120
1409cd0b
FXC
23121int
23122main ()
23123{
1409cd0b
FXC
23124 return 0;
23125}
db9f46a9 23126
1409cd0b 23127_ACEOF
5213506e 23128if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23129 gcc_cv_math_func_csqrt=yes
1409cd0b 23130else
db9f46a9 23131 gcc_cv_math_func_csqrt=no
1409cd0b 23132fi
5213506e
RW
23133rm -f core conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23135fi
db9f46a9
TG
23136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
23137$as_echo "$gcc_cv_math_func_csqrt" >&6; }
23138 if test $gcc_cv_math_func_csqrt = yes; then
f1cdfa01 23139
f38a14ca
TG
23140cat >>confdefs.h <<_ACEOF
23141#define HAVE_CSQRT 1
23142_ACEOF
db9f46a9
TG
23143
23144 fi
1409cd0b 23145
1409cd0b 23146
1409cd0b 23147
db9f46a9
TG
23148
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
23150$as_echo_n "checking for csqrtl... " >&6; }
22e05272 23151if ${gcc_cv_math_func_csqrtl+:} false; then :
5213506e 23152 $as_echo_n "(cached) " >&6
1409cd0b 23153else
db9f46a9 23154 if test x$gcc_no_link = xyes; then
22e05272 23155 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23156fi
5213506e 23157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23158/* end confdefs.h. */
23159
db9f46a9
TG
23160#ifdef HAVE_COMPLEX_H
23161#include <complex.h>
1409cd0b 23162#endif
db9f46a9
TG
23163#ifdef HAVE_MATH_H
23164#include <math.h>
23165#endif
23166
23167int (*ptr)() = (int (*)())csqrtl;
23168
1409cd0b
FXC
23169int
23170main ()
23171{
1409cd0b
FXC
23172 return 0;
23173}
db9f46a9 23174
1409cd0b 23175_ACEOF
5213506e 23176if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23177 gcc_cv_math_func_csqrtl=yes
1409cd0b 23178else
db9f46a9 23179 gcc_cv_math_func_csqrtl=no
1409cd0b 23180fi
5213506e
RW
23181rm -f core conftest.err conftest.$ac_objext \
23182 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23183fi
db9f46a9
TG
23184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
23185$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
23186 if test $gcc_cv_math_func_csqrtl = yes; then
f1cdfa01 23187
f38a14ca
TG
23188cat >>confdefs.h <<_ACEOF
23189#define HAVE_CSQRTL 1
23190_ACEOF
db9f46a9
TG
23191
23192 fi
23193
1409cd0b 23194
1409cd0b 23195
1409cd0b 23196
db9f46a9
TG
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
23198$as_echo_n "checking for tanf... " >&6; }
22e05272 23199if ${gcc_cv_math_func_tanf+:} false; then :
5213506e 23200 $as_echo_n "(cached) " >&6
1409cd0b 23201else
db9f46a9 23202 if test x$gcc_no_link = xyes; then
22e05272 23203 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23204fi
5213506e 23205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23206/* end confdefs.h. */
23207
db9f46a9
TG
23208#ifdef HAVE_COMPLEX_H
23209#include <complex.h>
23210#endif
23211#ifdef HAVE_MATH_H
23212#include <math.h>
1409cd0b 23213#endif
db9f46a9
TG
23214
23215int (*ptr)() = (int (*)())tanf;
23216
1409cd0b
FXC
23217int
23218main ()
23219{
1409cd0b
FXC
23220 return 0;
23221}
db9f46a9 23222
1409cd0b 23223_ACEOF
5213506e 23224if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23225 gcc_cv_math_func_tanf=yes
1409cd0b 23226else
db9f46a9 23227 gcc_cv_math_func_tanf=no
1409cd0b 23228fi
5213506e
RW
23229rm -f core conftest.err conftest.$ac_objext \
23230 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23231fi
db9f46a9
TG
23232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
23233$as_echo "$gcc_cv_math_func_tanf" >&6; }
23234 if test $gcc_cv_math_func_tanf = yes; then
f1cdfa01 23235
f38a14ca
TG
23236cat >>confdefs.h <<_ACEOF
23237#define HAVE_TANF 1
23238_ACEOF
db9f46a9
TG
23239
23240 fi
1409cd0b 23241
1409cd0b 23242
1409cd0b 23243
db9f46a9
TG
23244
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
23246$as_echo_n "checking for tan... " >&6; }
22e05272 23247if ${gcc_cv_math_func_tan+:} false; then :
5213506e 23248 $as_echo_n "(cached) " >&6
1409cd0b 23249else
db9f46a9 23250 if test x$gcc_no_link = xyes; then
22e05272 23251 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23252fi
5213506e 23253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23254/* end confdefs.h. */
23255
db9f46a9
TG
23256#ifdef HAVE_COMPLEX_H
23257#include <complex.h>
1409cd0b 23258#endif
db9f46a9
TG
23259#ifdef HAVE_MATH_H
23260#include <math.h>
23261#endif
23262
23263int (*ptr)() = (int (*)())tan;
23264
1409cd0b
FXC
23265int
23266main ()
23267{
1409cd0b
FXC
23268 return 0;
23269}
db9f46a9 23270
1409cd0b 23271_ACEOF
5213506e 23272if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23273 gcc_cv_math_func_tan=yes
1409cd0b 23274else
db9f46a9 23275 gcc_cv_math_func_tan=no
1409cd0b 23276fi
5213506e
RW
23277rm -f core conftest.err conftest.$ac_objext \
23278 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23279fi
db9f46a9
TG
23280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
23281$as_echo "$gcc_cv_math_func_tan" >&6; }
23282 if test $gcc_cv_math_func_tan = yes; then
f1cdfa01 23283
f38a14ca
TG
23284cat >>confdefs.h <<_ACEOF
23285#define HAVE_TAN 1
23286_ACEOF
1409cd0b 23287
db9f46a9 23288 fi
1409cd0b 23289
1409cd0b 23290
db9f46a9
TG
23291
23292
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
23294$as_echo_n "checking for tanl... " >&6; }
22e05272 23295if ${gcc_cv_math_func_tanl+:} false; then :
5213506e 23296 $as_echo_n "(cached) " >&6
1409cd0b 23297else
db9f46a9 23298 if test x$gcc_no_link = xyes; then
22e05272 23299 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23300fi
5213506e 23301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23302/* end confdefs.h. */
23303
db9f46a9
TG
23304#ifdef HAVE_COMPLEX_H
23305#include <complex.h>
23306#endif
23307#ifdef HAVE_MATH_H
23308#include <math.h>
1409cd0b 23309#endif
db9f46a9
TG
23310
23311int (*ptr)() = (int (*)())tanl;
23312
1409cd0b
FXC
23313int
23314main ()
23315{
1409cd0b
FXC
23316 return 0;
23317}
db9f46a9 23318
1409cd0b 23319_ACEOF
5213506e 23320if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23321 gcc_cv_math_func_tanl=yes
1409cd0b 23322else
db9f46a9 23323 gcc_cv_math_func_tanl=no
1409cd0b 23324fi
5213506e
RW
23325rm -f core conftest.err conftest.$ac_objext \
23326 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23327fi
db9f46a9
TG
23328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
23329$as_echo "$gcc_cv_math_func_tanl" >&6; }
23330 if test $gcc_cv_math_func_tanl = yes; then
f1cdfa01 23331
f38a14ca
TG
23332cat >>confdefs.h <<_ACEOF
23333#define HAVE_TANL 1
23334_ACEOF
db9f46a9
TG
23335
23336 fi
1409cd0b 23337
1409cd0b 23338
1409cd0b 23339
db9f46a9
TG
23340
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
23342$as_echo_n "checking for ctanf... " >&6; }
22e05272 23343if ${gcc_cv_math_func_ctanf+:} false; then :
5213506e 23344 $as_echo_n "(cached) " >&6
1409cd0b 23345else
db9f46a9 23346 if test x$gcc_no_link = xyes; then
22e05272 23347 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23348fi
5213506e 23349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23350/* end confdefs.h. */
23351
db9f46a9
TG
23352#ifdef HAVE_COMPLEX_H
23353#include <complex.h>
1409cd0b 23354#endif
db9f46a9
TG
23355#ifdef HAVE_MATH_H
23356#include <math.h>
23357#endif
23358
23359int (*ptr)() = (int (*)())ctanf;
23360
1409cd0b
FXC
23361int
23362main ()
23363{
1409cd0b
FXC
23364 return 0;
23365}
db9f46a9 23366
1409cd0b 23367_ACEOF
5213506e 23368if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23369 gcc_cv_math_func_ctanf=yes
1409cd0b 23370else
db9f46a9 23371 gcc_cv_math_func_ctanf=no
1409cd0b 23372fi
5213506e
RW
23373rm -f core conftest.err conftest.$ac_objext \
23374 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23375fi
db9f46a9
TG
23376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
23377$as_echo "$gcc_cv_math_func_ctanf" >&6; }
23378 if test $gcc_cv_math_func_ctanf = yes; then
f1cdfa01 23379
f38a14ca
TG
23380cat >>confdefs.h <<_ACEOF
23381#define HAVE_CTANF 1
23382_ACEOF
db9f46a9
TG
23383
23384 fi
23385
1409cd0b 23386
1409cd0b 23387
1409cd0b 23388
db9f46a9
TG
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
23390$as_echo_n "checking for ctan... " >&6; }
22e05272 23391if ${gcc_cv_math_func_ctan+:} false; then :
5213506e 23392 $as_echo_n "(cached) " >&6
1409cd0b 23393else
db9f46a9 23394 if test x$gcc_no_link = xyes; then
22e05272 23395 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23396fi
5213506e 23397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23398/* end confdefs.h. */
23399
db9f46a9
TG
23400#ifdef HAVE_COMPLEX_H
23401#include <complex.h>
23402#endif
23403#ifdef HAVE_MATH_H
23404#include <math.h>
1409cd0b 23405#endif
db9f46a9
TG
23406
23407int (*ptr)() = (int (*)())ctan;
23408
1409cd0b
FXC
23409int
23410main ()
23411{
1409cd0b
FXC
23412 return 0;
23413}
db9f46a9 23414
1409cd0b 23415_ACEOF
5213506e 23416if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23417 gcc_cv_math_func_ctan=yes
1409cd0b 23418else
db9f46a9 23419 gcc_cv_math_func_ctan=no
1409cd0b 23420fi
5213506e
RW
23421rm -f core conftest.err conftest.$ac_objext \
23422 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23423fi
db9f46a9
TG
23424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23425$as_echo "$gcc_cv_math_func_ctan" >&6; }
23426 if test $gcc_cv_math_func_ctan = yes; then
f1cdfa01 23427
f38a14ca
TG
23428cat >>confdefs.h <<_ACEOF
23429#define HAVE_CTAN 1
23430_ACEOF
db9f46a9
TG
23431
23432 fi
1409cd0b 23433
1409cd0b 23434
1409cd0b 23435
db9f46a9
TG
23436
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23438$as_echo_n "checking for ctanl... " >&6; }
22e05272 23439if ${gcc_cv_math_func_ctanl+:} false; then :
5213506e 23440 $as_echo_n "(cached) " >&6
1409cd0b 23441else
db9f46a9 23442 if test x$gcc_no_link = xyes; then
22e05272 23443 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23444fi
5213506e 23445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23446/* end confdefs.h. */
23447
db9f46a9
TG
23448#ifdef HAVE_COMPLEX_H
23449#include <complex.h>
1409cd0b 23450#endif
db9f46a9
TG
23451#ifdef HAVE_MATH_H
23452#include <math.h>
23453#endif
23454
23455int (*ptr)() = (int (*)())ctanl;
23456
1409cd0b
FXC
23457int
23458main ()
23459{
1409cd0b
FXC
23460 return 0;
23461}
db9f46a9 23462
1409cd0b 23463_ACEOF
5213506e 23464if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23465 gcc_cv_math_func_ctanl=yes
1409cd0b 23466else
db9f46a9 23467 gcc_cv_math_func_ctanl=no
1409cd0b 23468fi
5213506e
RW
23469rm -f core conftest.err conftest.$ac_objext \
23470 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23471fi
db9f46a9
TG
23472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23473$as_echo "$gcc_cv_math_func_ctanl" >&6; }
23474 if test $gcc_cv_math_func_ctanl = yes; then
f1cdfa01 23475
f38a14ca
TG
23476cat >>confdefs.h <<_ACEOF
23477#define HAVE_CTANL 1
23478_ACEOF
1409cd0b 23479
db9f46a9 23480 fi
1409cd0b 23481
1409cd0b 23482
db9f46a9
TG
23483
23484
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23486$as_echo_n "checking for tanhf... " >&6; }
22e05272 23487if ${gcc_cv_math_func_tanhf+:} false; then :
5213506e 23488 $as_echo_n "(cached) " >&6
1409cd0b 23489else
db9f46a9 23490 if test x$gcc_no_link = xyes; then
22e05272 23491 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23492fi
5213506e 23493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23494/* end confdefs.h. */
23495
db9f46a9
TG
23496#ifdef HAVE_COMPLEX_H
23497#include <complex.h>
23498#endif
23499#ifdef HAVE_MATH_H
23500#include <math.h>
1409cd0b 23501#endif
db9f46a9
TG
23502
23503int (*ptr)() = (int (*)())tanhf;
23504
1409cd0b
FXC
23505int
23506main ()
23507{
1409cd0b
FXC
23508 return 0;
23509}
db9f46a9 23510
1409cd0b 23511_ACEOF
5213506e 23512if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23513 gcc_cv_math_func_tanhf=yes
1409cd0b 23514else
db9f46a9 23515 gcc_cv_math_func_tanhf=no
1409cd0b 23516fi
5213506e
RW
23517rm -f core conftest.err conftest.$ac_objext \
23518 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23519fi
db9f46a9
TG
23520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23521$as_echo "$gcc_cv_math_func_tanhf" >&6; }
23522 if test $gcc_cv_math_func_tanhf = yes; then
f1cdfa01 23523
f38a14ca
TG
23524cat >>confdefs.h <<_ACEOF
23525#define HAVE_TANHF 1
23526_ACEOF
db9f46a9
TG
23527
23528 fi
1409cd0b 23529
1409cd0b 23530
1409cd0b 23531
db9f46a9
TG
23532
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23534$as_echo_n "checking for tanh... " >&6; }
22e05272 23535if ${gcc_cv_math_func_tanh+:} false; then :
5213506e 23536 $as_echo_n "(cached) " >&6
1409cd0b 23537else
db9f46a9 23538 if test x$gcc_no_link = xyes; then
22e05272 23539 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23540fi
5213506e 23541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23542/* end confdefs.h. */
23543
db9f46a9
TG
23544#ifdef HAVE_COMPLEX_H
23545#include <complex.h>
1409cd0b 23546#endif
db9f46a9
TG
23547#ifdef HAVE_MATH_H
23548#include <math.h>
23549#endif
23550
23551int (*ptr)() = (int (*)())tanh;
23552
1409cd0b
FXC
23553int
23554main ()
23555{
1409cd0b
FXC
23556 return 0;
23557}
db9f46a9 23558
1409cd0b 23559_ACEOF
5213506e 23560if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23561 gcc_cv_math_func_tanh=yes
1409cd0b 23562else
db9f46a9 23563 gcc_cv_math_func_tanh=no
1409cd0b 23564fi
5213506e
RW
23565rm -f core conftest.err conftest.$ac_objext \
23566 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23567fi
db9f46a9
TG
23568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23569$as_echo "$gcc_cv_math_func_tanh" >&6; }
23570 if test $gcc_cv_math_func_tanh = yes; then
f1cdfa01 23571
f38a14ca
TG
23572cat >>confdefs.h <<_ACEOF
23573#define HAVE_TANH 1
23574_ACEOF
db9f46a9
TG
23575
23576 fi
23577
1409cd0b 23578
1409cd0b 23579
1409cd0b 23580
db9f46a9
TG
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23582$as_echo_n "checking for tanhl... " >&6; }
22e05272 23583if ${gcc_cv_math_func_tanhl+:} false; then :
5213506e 23584 $as_echo_n "(cached) " >&6
1409cd0b 23585else
db9f46a9 23586 if test x$gcc_no_link = xyes; then
22e05272 23587 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23588fi
5213506e 23589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23590/* end confdefs.h. */
23591
db9f46a9
TG
23592#ifdef HAVE_COMPLEX_H
23593#include <complex.h>
23594#endif
23595#ifdef HAVE_MATH_H
23596#include <math.h>
1409cd0b 23597#endif
db9f46a9
TG
23598
23599int (*ptr)() = (int (*)())tanhl;
23600
1409cd0b
FXC
23601int
23602main ()
23603{
1409cd0b
FXC
23604 return 0;
23605}
db9f46a9 23606
1409cd0b 23607_ACEOF
5213506e 23608if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23609 gcc_cv_math_func_tanhl=yes
1409cd0b 23610else
db9f46a9 23611 gcc_cv_math_func_tanhl=no
1409cd0b 23612fi
5213506e
RW
23613rm -f core conftest.err conftest.$ac_objext \
23614 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23615fi
db9f46a9
TG
23616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23617$as_echo "$gcc_cv_math_func_tanhl" >&6; }
23618 if test $gcc_cv_math_func_tanhl = yes; then
f1cdfa01 23619
f38a14ca
TG
23620cat >>confdefs.h <<_ACEOF
23621#define HAVE_TANHL 1
23622_ACEOF
db9f46a9
TG
23623
23624 fi
1409cd0b 23625
1409cd0b 23626
1409cd0b 23627
db9f46a9
TG
23628
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23630$as_echo_n "checking for ctanhf... " >&6; }
22e05272 23631if ${gcc_cv_math_func_ctanhf+:} false; then :
5213506e 23632 $as_echo_n "(cached) " >&6
1409cd0b 23633else
db9f46a9 23634 if test x$gcc_no_link = xyes; then
22e05272 23635 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db9f46a9
TG
23636fi
23637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23638/* end confdefs.h. */
23639
23640#ifdef HAVE_COMPLEX_H
23641#include <complex.h>
1409cd0b 23642#endif
db9f46a9
TG
23643#ifdef HAVE_MATH_H
23644#include <math.h>
23645#endif
23646
23647int (*ptr)() = (int (*)())ctanhf;
23648
1409cd0b
FXC
23649int
23650main ()
23651{
1409cd0b
FXC
23652 return 0;
23653}
db9f46a9 23654
1409cd0b 23655_ACEOF
5213506e 23656if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23657 gcc_cv_math_func_ctanhf=yes
1409cd0b 23658else
db9f46a9 23659 gcc_cv_math_func_ctanhf=no
1409cd0b 23660fi
5213506e
RW
23661rm -f core conftest.err conftest.$ac_objext \
23662 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23663fi
db9f46a9
TG
23664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23665$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23666 if test $gcc_cv_math_func_ctanhf = yes; then
f1cdfa01 23667
f38a14ca
TG
23668cat >>confdefs.h <<_ACEOF
23669#define HAVE_CTANHF 1
23670_ACEOF
1409cd0b 23671
db9f46a9 23672 fi
1409cd0b 23673
1409cd0b 23674
db9f46a9
TG
23675
23676
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23678$as_echo_n "checking for ctanh... " >&6; }
22e05272 23679if ${gcc_cv_math_func_ctanh+:} false; then :
5213506e 23680 $as_echo_n "(cached) " >&6
1409cd0b 23681else
db9f46a9 23682 if test x$gcc_no_link = xyes; then
22e05272 23683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23684fi
5213506e 23685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23686/* end confdefs.h. */
23687
db9f46a9
TG
23688#ifdef HAVE_COMPLEX_H
23689#include <complex.h>
23690#endif
23691#ifdef HAVE_MATH_H
23692#include <math.h>
1409cd0b 23693#endif
db9f46a9
TG
23694
23695int (*ptr)() = (int (*)())ctanh;
23696
1409cd0b
FXC
23697int
23698main ()
23699{
5213506e
RW
23700 return 0;
23701}
db9f46a9 23702
5213506e
RW
23703_ACEOF
23704if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23705 gcc_cv_math_func_ctanh=yes
1409cd0b 23706else
db9f46a9 23707 gcc_cv_math_func_ctanh=no
1409cd0b 23708fi
5213506e
RW
23709rm -f core conftest.err conftest.$ac_objext \
23710 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23711fi
db9f46a9
TG
23712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23713$as_echo "$gcc_cv_math_func_ctanh" >&6; }
23714 if test $gcc_cv_math_func_ctanh = yes; then
f1cdfa01 23715
f38a14ca
TG
23716cat >>confdefs.h <<_ACEOF
23717#define HAVE_CTANH 1
23718_ACEOF
db9f46a9
TG
23719
23720 fi
1409cd0b 23721
1409cd0b 23722
1409cd0b 23723
db9f46a9
TG
23724
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23726$as_echo_n "checking for ctanhl... " >&6; }
22e05272 23727if ${gcc_cv_math_func_ctanhl+:} false; then :
5213506e 23728 $as_echo_n "(cached) " >&6
1409cd0b 23729else
db9f46a9 23730 if test x$gcc_no_link = xyes; then
22e05272 23731 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23732fi
5213506e 23733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23734/* end confdefs.h. */
23735
db9f46a9
TG
23736#ifdef HAVE_COMPLEX_H
23737#include <complex.h>
1409cd0b 23738#endif
db9f46a9
TG
23739#ifdef HAVE_MATH_H
23740#include <math.h>
23741#endif
23742
23743int (*ptr)() = (int (*)())ctanhl;
23744
1409cd0b
FXC
23745int
23746main ()
23747{
1409cd0b
FXC
23748 return 0;
23749}
db9f46a9 23750
1409cd0b 23751_ACEOF
5213506e 23752if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23753 gcc_cv_math_func_ctanhl=yes
1409cd0b 23754else
db9f46a9 23755 gcc_cv_math_func_ctanhl=no
1409cd0b 23756fi
5213506e
RW
23757rm -f core conftest.err conftest.$ac_objext \
23758 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23759fi
db9f46a9
TG
23760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23761$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23762 if test $gcc_cv_math_func_ctanhl = yes; then
f1cdfa01 23763
f38a14ca
TG
23764cat >>confdefs.h <<_ACEOF
23765#define HAVE_CTANHL 1
23766_ACEOF
db9f46a9
TG
23767
23768 fi
23769
1409cd0b 23770
69a2d125 23771
69a2d125 23772
db9f46a9
TG
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23774$as_echo_n "checking for truncf... " >&6; }
22e05272 23775if ${gcc_cv_math_func_truncf+:} false; then :
5213506e 23776 $as_echo_n "(cached) " >&6
69a2d125 23777else
db9f46a9 23778 if test x$gcc_no_link = xyes; then
22e05272 23779 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23780fi
5213506e 23781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
23782/* end confdefs.h. */
23783
db9f46a9
TG
23784#ifdef HAVE_COMPLEX_H
23785#include <complex.h>
23786#endif
23787#ifdef HAVE_MATH_H
23788#include <math.h>
69a2d125 23789#endif
db9f46a9
TG
23790
23791int (*ptr)() = (int (*)())truncf;
23792
1409cd0b
FXC
23793int
23794main ()
23795{
1409cd0b
FXC
23796 return 0;
23797}
db9f46a9 23798
1409cd0b 23799_ACEOF
5213506e 23800if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23801 gcc_cv_math_func_truncf=yes
1409cd0b 23802else
db9f46a9 23803 gcc_cv_math_func_truncf=no
1409cd0b 23804fi
5213506e
RW
23805rm -f core conftest.err conftest.$ac_objext \
23806 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23807fi
db9f46a9
TG
23808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23809$as_echo "$gcc_cv_math_func_truncf" >&6; }
23810 if test $gcc_cv_math_func_truncf = yes; then
f1cdfa01 23811
f38a14ca
TG
23812cat >>confdefs.h <<_ACEOF
23813#define HAVE_TRUNCF 1
23814_ACEOF
db9f46a9
TG
23815
23816 fi
1409cd0b 23817
1409cd0b 23818
1409cd0b 23819
db9f46a9
TG
23820
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23822$as_echo_n "checking for trunc... " >&6; }
22e05272 23823if ${gcc_cv_math_func_trunc+:} false; then :
5213506e 23824 $as_echo_n "(cached) " >&6
1409cd0b 23825else
db9f46a9 23826 if test x$gcc_no_link = xyes; then
22e05272 23827 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23828fi
5213506e 23829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23830/* end confdefs.h. */
23831
db9f46a9
TG
23832#ifdef HAVE_COMPLEX_H
23833#include <complex.h>
1409cd0b 23834#endif
db9f46a9
TG
23835#ifdef HAVE_MATH_H
23836#include <math.h>
23837#endif
23838
23839int (*ptr)() = (int (*)())trunc;
23840
1409cd0b
FXC
23841int
23842main ()
23843{
1409cd0b
FXC
23844 return 0;
23845}
db9f46a9 23846
1409cd0b 23847_ACEOF
5213506e 23848if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23849 gcc_cv_math_func_trunc=yes
1409cd0b 23850else
db9f46a9 23851 gcc_cv_math_func_trunc=no
1409cd0b 23852fi
5213506e
RW
23853rm -f core conftest.err conftest.$ac_objext \
23854 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23855fi
db9f46a9
TG
23856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23857$as_echo "$gcc_cv_math_func_trunc" >&6; }
23858 if test $gcc_cv_math_func_trunc = yes; then
f1cdfa01 23859
f38a14ca
TG
23860cat >>confdefs.h <<_ACEOF
23861#define HAVE_TRUNC 1
23862_ACEOF
1409cd0b 23863
db9f46a9 23864 fi
1409cd0b 23865
1409cd0b 23866
db9f46a9
TG
23867
23868
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23870$as_echo_n "checking for truncl... " >&6; }
22e05272 23871if ${gcc_cv_math_func_truncl+:} false; then :
5213506e 23872 $as_echo_n "(cached) " >&6
1409cd0b 23873else
db9f46a9 23874 if test x$gcc_no_link = xyes; then
22e05272 23875 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23876fi
5213506e 23877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23878/* end confdefs.h. */
23879
db9f46a9
TG
23880#ifdef HAVE_COMPLEX_H
23881#include <complex.h>
23882#endif
23883#ifdef HAVE_MATH_H
23884#include <math.h>
1409cd0b 23885#endif
db9f46a9
TG
23886
23887int (*ptr)() = (int (*)())truncl;
23888
1409cd0b
FXC
23889int
23890main ()
23891{
1409cd0b
FXC
23892 return 0;
23893}
db9f46a9 23894
1409cd0b 23895_ACEOF
5213506e 23896if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23897 gcc_cv_math_func_truncl=yes
1409cd0b 23898else
db9f46a9 23899 gcc_cv_math_func_truncl=no
1409cd0b 23900fi
5213506e
RW
23901rm -f core conftest.err conftest.$ac_objext \
23902 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23903fi
db9f46a9
TG
23904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23905$as_echo "$gcc_cv_math_func_truncl" >&6; }
23906 if test $gcc_cv_math_func_truncl = yes; then
f1cdfa01 23907
f38a14ca
TG
23908cat >>confdefs.h <<_ACEOF
23909#define HAVE_TRUNCL 1
23910_ACEOF
db9f46a9
TG
23911
23912 fi
1409cd0b 23913
1409cd0b 23914
1409cd0b 23915
db9f46a9
TG
23916
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23918$as_echo_n "checking for erff... " >&6; }
22e05272 23919if ${gcc_cv_math_func_erff+:} false; then :
5213506e 23920 $as_echo_n "(cached) " >&6
1409cd0b 23921else
db9f46a9 23922 if test x$gcc_no_link = xyes; then
22e05272 23923 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23924fi
5213506e 23925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23926/* end confdefs.h. */
23927
db9f46a9
TG
23928#ifdef HAVE_COMPLEX_H
23929#include <complex.h>
1409cd0b 23930#endif
db9f46a9
TG
23931#ifdef HAVE_MATH_H
23932#include <math.h>
23933#endif
23934
23935int (*ptr)() = (int (*)())erff;
23936
1409cd0b
FXC
23937int
23938main ()
23939{
1409cd0b
FXC
23940 return 0;
23941}
db9f46a9 23942
1409cd0b 23943_ACEOF
5213506e 23944if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23945 gcc_cv_math_func_erff=yes
1409cd0b 23946else
db9f46a9 23947 gcc_cv_math_func_erff=no
1409cd0b 23948fi
5213506e
RW
23949rm -f core conftest.err conftest.$ac_objext \
23950 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23951fi
db9f46a9
TG
23952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23953$as_echo "$gcc_cv_math_func_erff" >&6; }
23954 if test $gcc_cv_math_func_erff = yes; then
f1cdfa01 23955
f38a14ca
TG
23956cat >>confdefs.h <<_ACEOF
23957#define HAVE_ERFF 1
23958_ACEOF
db9f46a9
TG
23959
23960 fi
23961
1409cd0b 23962
1409cd0b 23963
1409cd0b 23964
db9f46a9
TG
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23966$as_echo_n "checking for erf... " >&6; }
22e05272 23967if ${gcc_cv_math_func_erf+:} false; then :
5213506e 23968 $as_echo_n "(cached) " >&6
1409cd0b 23969else
db9f46a9 23970 if test x$gcc_no_link = xyes; then
22e05272 23971 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23972fi
5213506e 23973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23974/* end confdefs.h. */
23975
db9f46a9
TG
23976#ifdef HAVE_COMPLEX_H
23977#include <complex.h>
23978#endif
23979#ifdef HAVE_MATH_H
23980#include <math.h>
1409cd0b 23981#endif
db9f46a9
TG
23982
23983int (*ptr)() = (int (*)())erf;
23984
1409cd0b
FXC
23985int
23986main ()
23987{
1409cd0b
FXC
23988 return 0;
23989}
db9f46a9 23990
1409cd0b 23991_ACEOF
5213506e 23992if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23993 gcc_cv_math_func_erf=yes
1409cd0b 23994else
db9f46a9 23995 gcc_cv_math_func_erf=no
1409cd0b 23996fi
5213506e
RW
23997rm -f core conftest.err conftest.$ac_objext \
23998 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23999fi
db9f46a9
TG
24000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
24001$as_echo "$gcc_cv_math_func_erf" >&6; }
24002 if test $gcc_cv_math_func_erf = yes; then
f1cdfa01 24003
f38a14ca
TG
24004cat >>confdefs.h <<_ACEOF
24005#define HAVE_ERF 1
24006_ACEOF
db9f46a9
TG
24007
24008 fi
1409cd0b 24009
1409cd0b 24010
1409cd0b 24011
db9f46a9 24012
db9f46a9
TG
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
24014$as_echo_n "checking for erfcf... " >&6; }
22e05272 24015if ${gcc_cv_math_func_erfcf+:} false; then :
5213506e 24016 $as_echo_n "(cached) " >&6
1409cd0b 24017else
db9f46a9 24018 if test x$gcc_no_link = xyes; then
22e05272 24019 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24020fi
5213506e 24021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24022/* end confdefs.h. */
24023
db9f46a9
TG
24024#ifdef HAVE_COMPLEX_H
24025#include <complex.h>
24026#endif
24027#ifdef HAVE_MATH_H
24028#include <math.h>
1409cd0b 24029#endif
db9f46a9
TG
24030
24031int (*ptr)() = (int (*)())erfcf;
24032
1409cd0b
FXC
24033int
24034main ()
24035{
1409cd0b
FXC
24036 return 0;
24037}
db9f46a9 24038
1409cd0b 24039_ACEOF
5213506e 24040if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24041 gcc_cv_math_func_erfcf=yes
1409cd0b 24042else
db9f46a9 24043 gcc_cv_math_func_erfcf=no
1409cd0b 24044fi
5213506e
RW
24045rm -f core conftest.err conftest.$ac_objext \
24046 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24047fi
db9f46a9
TG
24048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
24049$as_echo "$gcc_cv_math_func_erfcf" >&6; }
24050 if test $gcc_cv_math_func_erfcf = yes; then
f1cdfa01 24051
f38a14ca
TG
24052cat >>confdefs.h <<_ACEOF
24053#define HAVE_ERFCF 1
24054_ACEOF
db9f46a9
TG
24055
24056 fi
1409cd0b 24057
1409cd0b 24058
1409cd0b 24059
db9f46a9
TG
24060
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
24062$as_echo_n "checking for erfc... " >&6; }
22e05272 24063if ${gcc_cv_math_func_erfc+:} false; then :
5213506e 24064 $as_echo_n "(cached) " >&6
1409cd0b 24065else
db9f46a9 24066 if test x$gcc_no_link = xyes; then
22e05272 24067 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24068fi
5213506e 24069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24070/* end confdefs.h. */
24071
db9f46a9
TG
24072#ifdef HAVE_COMPLEX_H
24073#include <complex.h>
1409cd0b 24074#endif
db9f46a9
TG
24075#ifdef HAVE_MATH_H
24076#include <math.h>
24077#endif
24078
24079int (*ptr)() = (int (*)())erfc;
24080
69a2d125
EB
24081int
24082main ()
24083{
69a2d125
EB
24084 return 0;
24085}
db9f46a9 24086
69a2d125 24087_ACEOF
5213506e 24088if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24089 gcc_cv_math_func_erfc=yes
69a2d125 24090else
db9f46a9 24091 gcc_cv_math_func_erfc=no
69a2d125 24092fi
5213506e
RW
24093rm -f core conftest.err conftest.$ac_objext \
24094 conftest$ac_exeext conftest.$ac_ext
69a2d125 24095fi
db9f46a9
TG
24096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
24097$as_echo "$gcc_cv_math_func_erfc" >&6; }
24098 if test $gcc_cv_math_func_erfc = yes; then
f1cdfa01 24099
f38a14ca
TG
24100cat >>confdefs.h <<_ACEOF
24101#define HAVE_ERFC 1
24102_ACEOF
db9f46a9
TG
24103
24104 fi
24105
69a2d125 24106
69a2d125 24107
69a2d125 24108
db9f46a9
TG
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
24110$as_echo_n "checking for erfcl... " >&6; }
22e05272 24111if ${gcc_cv_math_func_erfcl+:} false; then :
5213506e 24112 $as_echo_n "(cached) " >&6
e8525382 24113else
db9f46a9 24114 if test x$gcc_no_link = xyes; then
22e05272 24115 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24116fi
5213506e 24117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24118/* end confdefs.h. */
24119
db9f46a9
TG
24120#ifdef HAVE_COMPLEX_H
24121#include <complex.h>
24122#endif
24123#ifdef HAVE_MATH_H
24124#include <math.h>
e8525382 24125#endif
db9f46a9
TG
24126
24127int (*ptr)() = (int (*)())erfcl;
24128
e8525382
SK
24129int
24130main ()
24131{
e8525382
SK
24132 return 0;
24133}
db9f46a9 24134
e8525382 24135_ACEOF
5213506e 24136if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24137 gcc_cv_math_func_erfcl=yes
e8525382 24138else
db9f46a9 24139 gcc_cv_math_func_erfcl=no
e8525382 24140fi
5213506e
RW
24141rm -f core conftest.err conftest.$ac_objext \
24142 conftest$ac_exeext conftest.$ac_ext
e8525382 24143fi
db9f46a9
TG
24144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
24145$as_echo "$gcc_cv_math_func_erfcl" >&6; }
24146 if test $gcc_cv_math_func_erfcl = yes; then
f1cdfa01 24147
f38a14ca
TG
24148cat >>confdefs.h <<_ACEOF
24149#define HAVE_ERFCL 1
24150_ACEOF
db9f46a9
TG
24151
24152 fi
e8525382 24153
e8525382 24154
e8525382 24155
db9f46a9
TG
24156
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
24158$as_echo_n "checking for j0f... " >&6; }
22e05272 24159if ${gcc_cv_math_func_j0f+:} false; then :
5213506e 24160 $as_echo_n "(cached) " >&6
e8525382 24161else
db9f46a9 24162 if test x$gcc_no_link = xyes; then
22e05272 24163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24164fi
5213506e 24165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24166/* end confdefs.h. */
24167
db9f46a9
TG
24168#ifdef HAVE_COMPLEX_H
24169#include <complex.h>
e8525382 24170#endif
db9f46a9
TG
24171#ifdef HAVE_MATH_H
24172#include <math.h>
24173#endif
24174
24175int (*ptr)() = (int (*)())j0f;
24176
e8525382
SK
24177int
24178main ()
24179{
e8525382
SK
24180 return 0;
24181}
db9f46a9 24182
e8525382 24183_ACEOF
5213506e 24184if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24185 gcc_cv_math_func_j0f=yes
e8525382 24186else
db9f46a9 24187 gcc_cv_math_func_j0f=no
1409cd0b 24188fi
5213506e
RW
24189rm -f core conftest.err conftest.$ac_objext \
24190 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24191fi
db9f46a9
TG
24192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
24193$as_echo "$gcc_cv_math_func_j0f" >&6; }
24194 if test $gcc_cv_math_func_j0f = yes; then
f1cdfa01 24195
f38a14ca
TG
24196cat >>confdefs.h <<_ACEOF
24197#define HAVE_J0F 1
24198_ACEOF
1409cd0b 24199
db9f46a9 24200 fi
1409cd0b 24201
1409cd0b 24202
db9f46a9
TG
24203
24204
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
24206$as_echo_n "checking for j0... " >&6; }
22e05272 24207if ${gcc_cv_math_func_j0+:} false; then :
5213506e 24208 $as_echo_n "(cached) " >&6
1409cd0b 24209else
db9f46a9 24210 if test x$gcc_no_link = xyes; then
22e05272 24211 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24212fi
5213506e 24213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24214/* end confdefs.h. */
24215
db9f46a9
TG
24216#ifdef HAVE_COMPLEX_H
24217#include <complex.h>
24218#endif
24219#ifdef HAVE_MATH_H
24220#include <math.h>
1409cd0b 24221#endif
db9f46a9
TG
24222
24223int (*ptr)() = (int (*)())j0;
24224
1409cd0b
FXC
24225int
24226main ()
24227{
1409cd0b
FXC
24228 return 0;
24229}
db9f46a9 24230
1409cd0b 24231_ACEOF
5213506e 24232if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24233 gcc_cv_math_func_j0=yes
1409cd0b 24234else
db9f46a9 24235 gcc_cv_math_func_j0=no
1409cd0b 24236fi
5213506e
RW
24237rm -f core conftest.err conftest.$ac_objext \
24238 conftest$ac_exeext conftest.$ac_ext
1409cd0b 24239fi
db9f46a9
TG
24240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
24241$as_echo "$gcc_cv_math_func_j0" >&6; }
24242 if test $gcc_cv_math_func_j0 = yes; then
f1cdfa01 24243
f38a14ca
TG
24244cat >>confdefs.h <<_ACEOF
24245#define HAVE_J0 1
24246_ACEOF
db9f46a9
TG
24247
24248 fi
1409cd0b 24249
1409cd0b 24250
1409cd0b 24251
db9f46a9 24252
db9f46a9
TG
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
24254$as_echo_n "checking for j1f... " >&6; }
22e05272 24255if ${gcc_cv_math_func_j1f+:} false; then :
5213506e 24256 $as_echo_n "(cached) " >&6
1409cd0b 24257else
db9f46a9 24258 if test x$gcc_no_link = xyes; then
22e05272 24259 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 24260fi
5213506e 24261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
24262/* end confdefs.h. */
24263
db9f46a9
TG
24264#ifdef HAVE_COMPLEX_H
24265#include <complex.h>
24266#endif
24267#ifdef HAVE_MATH_H
24268#include <math.h>
1409cd0b 24269#endif
db9f46a9
TG
24270
24271int (*ptr)() = (int (*)())j1f;
24272
1409cd0b
FXC
24273int
24274main ()
24275{
1409cd0b
FXC
24276 return 0;
24277}
db9f46a9 24278
1409cd0b 24279_ACEOF
5213506e 24280if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24281 gcc_cv_math_func_j1f=yes
1409cd0b 24282else
db9f46a9 24283 gcc_cv_math_func_j1f=no
e8525382 24284fi
5213506e
RW
24285rm -f core conftest.err conftest.$ac_objext \
24286 conftest$ac_exeext conftest.$ac_ext
e8525382 24287fi
db9f46a9
TG
24288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
24289$as_echo "$gcc_cv_math_func_j1f" >&6; }
24290 if test $gcc_cv_math_func_j1f = yes; then
f1cdfa01 24291
f38a14ca
TG
24292cat >>confdefs.h <<_ACEOF
24293#define HAVE_J1F 1
24294_ACEOF
db9f46a9
TG
24295
24296 fi
e8525382 24297
e8525382 24298
e8525382 24299
db9f46a9
TG
24300
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
24302$as_echo_n "checking for j1... " >&6; }
22e05272 24303if ${gcc_cv_math_func_j1+:} false; then :
5213506e 24304 $as_echo_n "(cached) " >&6
e8525382 24305else
db9f46a9 24306 if test x$gcc_no_link = xyes; then
22e05272 24307 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24308fi
5213506e 24309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24310/* end confdefs.h. */
24311
db9f46a9
TG
24312#ifdef HAVE_COMPLEX_H
24313#include <complex.h>
e8525382 24314#endif
db9f46a9
TG
24315#ifdef HAVE_MATH_H
24316#include <math.h>
24317#endif
24318
24319int (*ptr)() = (int (*)())j1;
24320
e8525382
SK
24321int
24322main ()
24323{
e8525382
SK
24324 return 0;
24325}
db9f46a9 24326
e8525382 24327_ACEOF
5213506e 24328if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24329 gcc_cv_math_func_j1=yes
e8525382 24330else
db9f46a9 24331 gcc_cv_math_func_j1=no
e8525382 24332fi
5213506e
RW
24333rm -f core conftest.err conftest.$ac_objext \
24334 conftest$ac_exeext conftest.$ac_ext
e8525382 24335fi
db9f46a9
TG
24336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
24337$as_echo "$gcc_cv_math_func_j1" >&6; }
24338 if test $gcc_cv_math_func_j1 = yes; then
f1cdfa01 24339
f38a14ca
TG
24340cat >>confdefs.h <<_ACEOF
24341#define HAVE_J1 1
24342_ACEOF
e8525382 24343
db9f46a9 24344 fi
e8525382 24345
e8525382 24346
db9f46a9
TG
24347
24348
db9f46a9
TG
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
24350$as_echo_n "checking for jnf... " >&6; }
22e05272 24351if ${gcc_cv_math_func_jnf+:} false; then :
5213506e 24352 $as_echo_n "(cached) " >&6
e8525382 24353else
db9f46a9 24354 if test x$gcc_no_link = xyes; then
22e05272 24355 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24356fi
5213506e 24357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24358/* end confdefs.h. */
24359
db9f46a9
TG
24360#ifdef HAVE_COMPLEX_H
24361#include <complex.h>
e8525382 24362#endif
db9f46a9
TG
24363#ifdef HAVE_MATH_H
24364#include <math.h>
24365#endif
24366
24367int (*ptr)() = (int (*)())jnf;
24368
e8525382
SK
24369int
24370main ()
24371{
e8525382
SK
24372 return 0;
24373}
db9f46a9 24374
e8525382 24375_ACEOF
5213506e 24376if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24377 gcc_cv_math_func_jnf=yes
e8525382 24378else
db9f46a9 24379 gcc_cv_math_func_jnf=no
e8525382 24380fi
5213506e
RW
24381rm -f core conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
e8525382 24383fi
db9f46a9
TG
24384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
24385$as_echo "$gcc_cv_math_func_jnf" >&6; }
24386 if test $gcc_cv_math_func_jnf = yes; then
f1cdfa01 24387
f38a14ca
TG
24388cat >>confdefs.h <<_ACEOF
24389#define HAVE_JNF 1
24390_ACEOF
db9f46a9
TG
24391
24392 fi
24393
e8525382 24394
e8525382 24395
e8525382 24396
db9f46a9
TG
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24398$as_echo_n "checking for jn... " >&6; }
22e05272 24399if ${gcc_cv_math_func_jn+:} false; then :
5213506e 24400 $as_echo_n "(cached) " >&6
e8525382 24401else
db9f46a9 24402 if test x$gcc_no_link = xyes; then
22e05272 24403 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24404fi
5213506e 24405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24406/* end confdefs.h. */
24407
db9f46a9
TG
24408#ifdef HAVE_COMPLEX_H
24409#include <complex.h>
24410#endif
24411#ifdef HAVE_MATH_H
24412#include <math.h>
e8525382 24413#endif
db9f46a9
TG
24414
24415int (*ptr)() = (int (*)())jn;
24416
e8525382
SK
24417int
24418main ()
24419{
e8525382
SK
24420 return 0;
24421}
db9f46a9 24422
e8525382 24423_ACEOF
5213506e 24424if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24425 gcc_cv_math_func_jn=yes
e8525382 24426else
db9f46a9 24427 gcc_cv_math_func_jn=no
e8525382 24428fi
5213506e
RW
24429rm -f core conftest.err conftest.$ac_objext \
24430 conftest$ac_exeext conftest.$ac_ext
e8525382 24431fi
db9f46a9
TG
24432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24433$as_echo "$gcc_cv_math_func_jn" >&6; }
24434 if test $gcc_cv_math_func_jn = yes; then
f1cdfa01 24435
f38a14ca
TG
24436cat >>confdefs.h <<_ACEOF
24437#define HAVE_JN 1
24438_ACEOF
db9f46a9
TG
24439
24440 fi
e8525382 24441
e8525382 24442
e8525382 24443
db9f46a9
TG
24444
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24446$as_echo_n "checking for jnl... " >&6; }
22e05272 24447if ${gcc_cv_math_func_jnl+:} false; then :
5213506e 24448 $as_echo_n "(cached) " >&6
e8525382 24449else
db9f46a9 24450 if test x$gcc_no_link = xyes; then
22e05272 24451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24452fi
5213506e 24453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24454/* end confdefs.h. */
24455
db9f46a9
TG
24456#ifdef HAVE_COMPLEX_H
24457#include <complex.h>
e8525382 24458#endif
db9f46a9
TG
24459#ifdef HAVE_MATH_H
24460#include <math.h>
24461#endif
24462
24463int (*ptr)() = (int (*)())jnl;
24464
e8525382
SK
24465int
24466main ()
24467{
e8525382
SK
24468 return 0;
24469}
db9f46a9 24470
e8525382 24471_ACEOF
5213506e 24472if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24473 gcc_cv_math_func_jnl=yes
e8525382 24474else
db9f46a9 24475 gcc_cv_math_func_jnl=no
e8525382 24476fi
5213506e
RW
24477rm -f core conftest.err conftest.$ac_objext \
24478 conftest$ac_exeext conftest.$ac_ext
e8525382 24479fi
db9f46a9
TG
24480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24481$as_echo "$gcc_cv_math_func_jnl" >&6; }
24482 if test $gcc_cv_math_func_jnl = yes; then
f1cdfa01 24483
f38a14ca
TG
24484cat >>confdefs.h <<_ACEOF
24485#define HAVE_JNL 1
24486_ACEOF
e8525382 24487
db9f46a9 24488 fi
e8525382 24489
e8525382 24490
db9f46a9
TG
24491
24492
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24494$as_echo_n "checking for y0f... " >&6; }
22e05272 24495if ${gcc_cv_math_func_y0f+:} false; then :
5213506e 24496 $as_echo_n "(cached) " >&6
e8525382 24497else
db9f46a9 24498 if test x$gcc_no_link = xyes; then
22e05272 24499 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24500fi
5213506e 24501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24502/* end confdefs.h. */
24503
db9f46a9
TG
24504#ifdef HAVE_COMPLEX_H
24505#include <complex.h>
24506#endif
24507#ifdef HAVE_MATH_H
24508#include <math.h>
e8525382 24509#endif
db9f46a9
TG
24510
24511int (*ptr)() = (int (*)())y0f;
24512
e8525382
SK
24513int
24514main ()
24515{
e8525382
SK
24516 return 0;
24517}
db9f46a9 24518
e8525382 24519_ACEOF
5213506e 24520if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24521 gcc_cv_math_func_y0f=yes
e8525382 24522else
db9f46a9 24523 gcc_cv_math_func_y0f=no
e8525382 24524fi
5213506e
RW
24525rm -f core conftest.err conftest.$ac_objext \
24526 conftest$ac_exeext conftest.$ac_ext
e8525382 24527fi
db9f46a9
TG
24528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24529$as_echo "$gcc_cv_math_func_y0f" >&6; }
24530 if test $gcc_cv_math_func_y0f = yes; then
f1cdfa01 24531
f38a14ca
TG
24532cat >>confdefs.h <<_ACEOF
24533#define HAVE_Y0F 1
24534_ACEOF
db9f46a9
TG
24535
24536 fi
e8525382 24537
e8525382 24538
e8525382 24539
db9f46a9
TG
24540
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24542$as_echo_n "checking for y0... " >&6; }
22e05272 24543if ${gcc_cv_math_func_y0+:} false; then :
5213506e 24544 $as_echo_n "(cached) " >&6
e8525382 24545else
db9f46a9 24546 if test x$gcc_no_link = xyes; then
22e05272 24547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24548fi
5213506e 24549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24550/* end confdefs.h. */
24551
db9f46a9
TG
24552#ifdef HAVE_COMPLEX_H
24553#include <complex.h>
e8525382 24554#endif
db9f46a9
TG
24555#ifdef HAVE_MATH_H
24556#include <math.h>
24557#endif
24558
24559int (*ptr)() = (int (*)())y0;
24560
e8525382
SK
24561int
24562main ()
24563{
e8525382
SK
24564 return 0;
24565}
db9f46a9 24566
e8525382 24567_ACEOF
5213506e 24568if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24569 gcc_cv_math_func_y0=yes
e8525382 24570else
db9f46a9 24571 gcc_cv_math_func_y0=no
e8525382 24572fi
5213506e
RW
24573rm -f core conftest.err conftest.$ac_objext \
24574 conftest$ac_exeext conftest.$ac_ext
e8525382 24575fi
db9f46a9
TG
24576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24577$as_echo "$gcc_cv_math_func_y0" >&6; }
24578 if test $gcc_cv_math_func_y0 = yes; then
f1cdfa01 24579
f38a14ca
TG
24580cat >>confdefs.h <<_ACEOF
24581#define HAVE_Y0 1
24582_ACEOF
db9f46a9
TG
24583
24584 fi
24585
e8525382 24586
e8525382 24587
e8525382 24588
db9f46a9
TG
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24590$as_echo_n "checking for y1f... " >&6; }
22e05272 24591if ${gcc_cv_math_func_y1f+:} false; then :
5213506e 24592 $as_echo_n "(cached) " >&6
e8525382 24593else
db9f46a9 24594 if test x$gcc_no_link = xyes; then
22e05272 24595 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24596fi
5213506e 24597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24598/* end confdefs.h. */
24599
db9f46a9
TG
24600#ifdef HAVE_COMPLEX_H
24601#include <complex.h>
e8525382 24602#endif
db9f46a9
TG
24603#ifdef HAVE_MATH_H
24604#include <math.h>
24605#endif
24606
24607int (*ptr)() = (int (*)())y1f;
24608
e8525382
SK
24609int
24610main ()
24611{
e8525382
SK
24612 return 0;
24613}
db9f46a9 24614
e8525382 24615_ACEOF
5213506e 24616if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24617 gcc_cv_math_func_y1f=yes
e8525382 24618else
db9f46a9 24619 gcc_cv_math_func_y1f=no
e8525382 24620fi
5213506e
RW
24621rm -f core conftest.err conftest.$ac_objext \
24622 conftest$ac_exeext conftest.$ac_ext
e8525382 24623fi
db9f46a9
TG
24624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24625$as_echo "$gcc_cv_math_func_y1f" >&6; }
24626 if test $gcc_cv_math_func_y1f = yes; then
f1cdfa01 24627
f38a14ca
TG
24628cat >>confdefs.h <<_ACEOF
24629#define HAVE_Y1F 1
24630_ACEOF
e8525382 24631
db9f46a9 24632 fi
e8525382 24633
e8525382 24634
db9f46a9
TG
24635
24636
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24638$as_echo_n "checking for y1... " >&6; }
22e05272 24639if ${gcc_cv_math_func_y1+:} false; then :
5213506e 24640 $as_echo_n "(cached) " >&6
e8525382 24641else
db9f46a9 24642 if test x$gcc_no_link = xyes; then
22e05272 24643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24644fi
5213506e 24645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24646/* end confdefs.h. */
24647
db9f46a9
TG
24648#ifdef HAVE_COMPLEX_H
24649#include <complex.h>
24650#endif
24651#ifdef HAVE_MATH_H
24652#include <math.h>
e8525382 24653#endif
db9f46a9
TG
24654
24655int (*ptr)() = (int (*)())y1;
24656
e8525382
SK
24657int
24658main ()
24659{
e8525382
SK
24660 return 0;
24661}
db9f46a9 24662
e8525382 24663_ACEOF
5213506e 24664if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24665 gcc_cv_math_func_y1=yes
e8525382 24666else
db9f46a9 24667 gcc_cv_math_func_y1=no
e8525382 24668fi
5213506e
RW
24669rm -f core conftest.err conftest.$ac_objext \
24670 conftest$ac_exeext conftest.$ac_ext
e8525382 24671fi
db9f46a9
TG
24672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24673$as_echo "$gcc_cv_math_func_y1" >&6; }
24674 if test $gcc_cv_math_func_y1 = yes; then
f1cdfa01 24675
f38a14ca
TG
24676cat >>confdefs.h <<_ACEOF
24677#define HAVE_Y1 1
24678_ACEOF
db9f46a9
TG
24679
24680 fi
e8525382 24681
e8525382 24682
e8525382 24683
db9f46a9 24684
db9f46a9
TG
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24686$as_echo_n "checking for ynf... " >&6; }
22e05272 24687if ${gcc_cv_math_func_ynf+:} false; then :
5213506e 24688 $as_echo_n "(cached) " >&6
db9f46a9
TG
24689else
24690 if test x$gcc_no_link = xyes; then
22e05272 24691 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24692fi
5213506e 24693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24694/* end confdefs.h. */
24695
db9f46a9
TG
24696#ifdef HAVE_COMPLEX_H
24697#include <complex.h>
24698#endif
24699#ifdef HAVE_MATH_H
24700#include <math.h>
e8525382 24701#endif
db9f46a9
TG
24702
24703int (*ptr)() = (int (*)())ynf;
24704
e8525382
SK
24705int
24706main ()
24707{
e8525382
SK
24708 return 0;
24709}
db9f46a9 24710
e8525382 24711_ACEOF
5213506e 24712if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24713 gcc_cv_math_func_ynf=yes
e8525382 24714else
db9f46a9 24715 gcc_cv_math_func_ynf=no
e8525382 24716fi
5213506e
RW
24717rm -f core conftest.err conftest.$ac_objext \
24718 conftest$ac_exeext conftest.$ac_ext
e8525382 24719fi
db9f46a9
TG
24720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24721$as_echo "$gcc_cv_math_func_ynf" >&6; }
24722 if test $gcc_cv_math_func_ynf = yes; then
f1cdfa01 24723
f38a14ca
TG
24724cat >>confdefs.h <<_ACEOF
24725#define HAVE_YNF 1
24726_ACEOF
db9f46a9
TG
24727
24728 fi
e8525382 24729
e8525382 24730
e8525382 24731
db9f46a9
TG
24732
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24734$as_echo_n "checking for yn... " >&6; }
22e05272 24735if ${gcc_cv_math_func_yn+:} false; then :
5213506e 24736 $as_echo_n "(cached) " >&6
e8525382 24737else
db9f46a9 24738 if test x$gcc_no_link = xyes; then
22e05272 24739 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24740fi
5213506e 24741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24742/* end confdefs.h. */
24743
db9f46a9
TG
24744#ifdef HAVE_COMPLEX_H
24745#include <complex.h>
e8525382 24746#endif
db9f46a9
TG
24747#ifdef HAVE_MATH_H
24748#include <math.h>
24749#endif
24750
24751int (*ptr)() = (int (*)())yn;
24752
e8525382
SK
24753int
24754main ()
24755{
e8525382
SK
24756 return 0;
24757}
db9f46a9 24758
e8525382 24759_ACEOF
5213506e 24760if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24761 gcc_cv_math_func_yn=yes
e8525382 24762else
db9f46a9 24763 gcc_cv_math_func_yn=no
e8525382 24764fi
5213506e
RW
24765rm -f core conftest.err conftest.$ac_objext \
24766 conftest$ac_exeext conftest.$ac_ext
e8525382 24767fi
db9f46a9
TG
24768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24769$as_echo "$gcc_cv_math_func_yn" >&6; }
24770 if test $gcc_cv_math_func_yn = yes; then
f1cdfa01 24771
f38a14ca
TG
24772cat >>confdefs.h <<_ACEOF
24773#define HAVE_YN 1
24774_ACEOF
db9f46a9
TG
24775
24776 fi
24777
e8525382 24778
e8525382 24779
e8525382 24780
db9f46a9
TG
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24782$as_echo_n "checking for ynl... " >&6; }
22e05272 24783if ${gcc_cv_math_func_ynl+:} false; then :
5213506e 24784 $as_echo_n "(cached) " >&6
e8525382 24785else
db9f46a9 24786 if test x$gcc_no_link = xyes; then
22e05272 24787 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24788fi
5213506e 24789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24790/* end confdefs.h. */
24791
db9f46a9
TG
24792#ifdef HAVE_COMPLEX_H
24793#include <complex.h>
24794#endif
24795#ifdef HAVE_MATH_H
24796#include <math.h>
e8525382 24797#endif
db9f46a9
TG
24798
24799int (*ptr)() = (int (*)())ynl;
24800
e8525382
SK
24801int
24802main ()
24803{
e8525382
SK
24804 return 0;
24805}
db9f46a9 24806
e8525382 24807_ACEOF
5213506e 24808if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24809 gcc_cv_math_func_ynl=yes
e8525382 24810else
db9f46a9 24811 gcc_cv_math_func_ynl=no
e8525382 24812fi
5213506e
RW
24813rm -f core conftest.err conftest.$ac_objext \
24814 conftest$ac_exeext conftest.$ac_ext
e8525382 24815fi
db9f46a9
TG
24816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24817$as_echo "$gcc_cv_math_func_ynl" >&6; }
24818 if test $gcc_cv_math_func_ynl = yes; then
f1cdfa01 24819
f38a14ca
TG
24820cat >>confdefs.h <<_ACEOF
24821#define HAVE_YNL 1
24822_ACEOF
db9f46a9
TG
24823
24824 fi
e8525382 24825
e8525382 24826
e8525382 24827
db9f46a9
TG
24828
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24830$as_echo_n "checking for tgamma... " >&6; }
22e05272 24831if ${gcc_cv_math_func_tgamma+:} false; then :
5213506e 24832 $as_echo_n "(cached) " >&6
fb0a0e15 24833else
db9f46a9 24834 if test x$gcc_no_link = xyes; then
22e05272 24835 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24836fi
5213506e 24837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24838/* end confdefs.h. */
24839
db9f46a9
TG
24840#ifdef HAVE_COMPLEX_H
24841#include <complex.h>
fb0a0e15 24842#endif
db9f46a9
TG
24843#ifdef HAVE_MATH_H
24844#include <math.h>
24845#endif
24846
24847int (*ptr)() = (int (*)())tgamma;
24848
fb0a0e15
FXC
24849int
24850main ()
24851{
fb0a0e15
FXC
24852 return 0;
24853}
db9f46a9 24854
fb0a0e15 24855_ACEOF
5213506e 24856if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24857 gcc_cv_math_func_tgamma=yes
fb0a0e15 24858else
db9f46a9 24859 gcc_cv_math_func_tgamma=no
fb0a0e15 24860fi
5213506e
RW
24861rm -f core conftest.err conftest.$ac_objext \
24862 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24863fi
db9f46a9
TG
24864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24865$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24866 if test $gcc_cv_math_func_tgamma = yes; then
f1cdfa01 24867
f38a14ca
TG
24868cat >>confdefs.h <<_ACEOF
24869#define HAVE_TGAMMA 1
24870_ACEOF
fb0a0e15 24871
db9f46a9 24872 fi
fb0a0e15 24873
fb0a0e15 24874
db9f46a9
TG
24875
24876
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24878$as_echo_n "checking for tgammaf... " >&6; }
22e05272 24879if ${gcc_cv_math_func_tgammaf+:} false; then :
5213506e 24880 $as_echo_n "(cached) " >&6
fb0a0e15 24881else
db9f46a9 24882 if test x$gcc_no_link = xyes; then
22e05272 24883 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24884fi
5213506e 24885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24886/* end confdefs.h. */
24887
db9f46a9
TG
24888#ifdef HAVE_COMPLEX_H
24889#include <complex.h>
24890#endif
24891#ifdef HAVE_MATH_H
24892#include <math.h>
fb0a0e15 24893#endif
db9f46a9
TG
24894
24895int (*ptr)() = (int (*)())tgammaf;
24896
fb0a0e15
FXC
24897int
24898main ()
24899{
fb0a0e15
FXC
24900 return 0;
24901}
db9f46a9 24902
fb0a0e15 24903_ACEOF
5213506e 24904if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24905 gcc_cv_math_func_tgammaf=yes
fb0a0e15 24906else
db9f46a9 24907 gcc_cv_math_func_tgammaf=no
fb0a0e15 24908fi
5213506e
RW
24909rm -f core conftest.err conftest.$ac_objext \
24910 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24911fi
db9f46a9
TG
24912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24913$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24914 if test $gcc_cv_math_func_tgammaf = yes; then
f1cdfa01 24915
f38a14ca
TG
24916cat >>confdefs.h <<_ACEOF
24917#define HAVE_TGAMMAF 1
24918_ACEOF
db9f46a9
TG
24919
24920 fi
fb0a0e15 24921
fb0a0e15 24922
fb0a0e15 24923
db9f46a9 24924
db9f46a9
TG
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24926$as_echo_n "checking for lgamma... " >&6; }
22e05272 24927if ${gcc_cv_math_func_lgamma+:} false; then :
5213506e 24928 $as_echo_n "(cached) " >&6
fb0a0e15 24929else
db9f46a9 24930 if test x$gcc_no_link = xyes; then
22e05272 24931 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24932fi
5213506e 24933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24934/* end confdefs.h. */
24935
db9f46a9
TG
24936#ifdef HAVE_COMPLEX_H
24937#include <complex.h>
24938#endif
24939#ifdef HAVE_MATH_H
24940#include <math.h>
fb0a0e15 24941#endif
db9f46a9
TG
24942
24943int (*ptr)() = (int (*)())lgamma;
24944
fb0a0e15
FXC
24945int
24946main ()
24947{
fb0a0e15
FXC
24948 return 0;
24949}
db9f46a9 24950
fb0a0e15 24951_ACEOF
5213506e 24952if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24953 gcc_cv_math_func_lgamma=yes
fb0a0e15 24954else
db9f46a9 24955 gcc_cv_math_func_lgamma=no
fb0a0e15 24956fi
5213506e
RW
24957rm -f core conftest.err conftest.$ac_objext \
24958 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24959fi
db9f46a9
TG
24960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24961$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24962 if test $gcc_cv_math_func_lgamma = yes; then
f1cdfa01 24963
f38a14ca
TG
24964cat >>confdefs.h <<_ACEOF
24965#define HAVE_LGAMMA 1
24966_ACEOF
db9f46a9
TG
24967
24968 fi
fb0a0e15 24969
fb0a0e15 24970
fb0a0e15 24971
db9f46a9
TG
24972
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24974$as_echo_n "checking for lgammaf... " >&6; }
22e05272 24975if ${gcc_cv_math_func_lgammaf+:} false; then :
5213506e 24976 $as_echo_n "(cached) " >&6
fb0a0e15 24977else
db9f46a9 24978 if test x$gcc_no_link = xyes; then
22e05272 24979 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24980fi
5213506e 24981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24982/* end confdefs.h. */
24983
db9f46a9
TG
24984#ifdef HAVE_COMPLEX_H
24985#include <complex.h>
fb0a0e15 24986#endif
db9f46a9
TG
24987#ifdef HAVE_MATH_H
24988#include <math.h>
24989#endif
24990
24991int (*ptr)() = (int (*)())lgammaf;
24992
fb0a0e15
FXC
24993int
24994main ()
24995{
fb0a0e15
FXC
24996 return 0;
24997}
db9f46a9 24998
fb0a0e15 24999_ACEOF
5213506e 25000if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25001 gcc_cv_math_func_lgammaf=yes
fb0a0e15 25002else
db9f46a9 25003 gcc_cv_math_func_lgammaf=no
fb0a0e15 25004fi
5213506e
RW
25005rm -f core conftest.err conftest.$ac_objext \
25006 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 25007fi
db9f46a9
TG
25008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
25009$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
25010 if test $gcc_cv_math_func_lgammaf = yes; then
f1cdfa01 25011
f38a14ca
TG
25012cat >>confdefs.h <<_ACEOF
25013#define HAVE_LGAMMAF 1
25014_ACEOF
fb0a0e15 25015
db9f46a9 25016 fi
fb0a0e15 25017
fb0a0e15 25018
db1cf15c 25019# Check for GFORTRAN_C99_1.1 funcs
db9f46a9
TG
25020
25021
25022
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
25024$as_echo_n "checking for cacos... " >&6; }
22e05272 25025if ${gcc_cv_math_func_cacos+:} false; then :
db1cf15c
IS
25026 $as_echo_n "(cached) " >&6
25027else
db9f46a9 25028 if test x$gcc_no_link = xyes; then
22e05272 25029 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25030fi
25031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25032/* end confdefs.h. */
25033
db9f46a9
TG
25034#ifdef HAVE_COMPLEX_H
25035#include <complex.h>
db1cf15c 25036#endif
db9f46a9
TG
25037#ifdef HAVE_MATH_H
25038#include <math.h>
25039#endif
25040
25041int (*ptr)() = (int (*)())cacos;
25042
db1cf15c
IS
25043int
25044main ()
25045{
db1cf15c
IS
25046 return 0;
25047}
db9f46a9 25048
db1cf15c
IS
25049_ACEOF
25050if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25051 gcc_cv_math_func_cacos=yes
db1cf15c 25052else
db9f46a9 25053 gcc_cv_math_func_cacos=no
db1cf15c
IS
25054fi
25055rm -f core conftest.err conftest.$ac_objext \
25056 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25057fi
db9f46a9
TG
25058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
25059$as_echo "$gcc_cv_math_func_cacos" >&6; }
25060 if test $gcc_cv_math_func_cacos = yes; then
f1cdfa01 25061
f38a14ca
TG
25062cat >>confdefs.h <<_ACEOF
25063#define HAVE_CACOS 1
25064_ACEOF
db1cf15c 25065
db9f46a9 25066 fi
db1cf15c 25067
db1cf15c 25068
db9f46a9
TG
25069
25070
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
25072$as_echo_n "checking for cacosf... " >&6; }
22e05272 25073if ${gcc_cv_math_func_cacosf+:} false; then :
db1cf15c
IS
25074 $as_echo_n "(cached) " >&6
25075else
db9f46a9 25076 if test x$gcc_no_link = xyes; then
22e05272 25077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25078fi
25079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25080/* end confdefs.h. */
25081
db9f46a9
TG
25082#ifdef HAVE_COMPLEX_H
25083#include <complex.h>
25084#endif
25085#ifdef HAVE_MATH_H
25086#include <math.h>
db1cf15c 25087#endif
db9f46a9
TG
25088
25089int (*ptr)() = (int (*)())cacosf;
25090
db1cf15c
IS
25091int
25092main ()
25093{
db1cf15c
IS
25094 return 0;
25095}
db9f46a9 25096
db1cf15c
IS
25097_ACEOF
25098if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25099 gcc_cv_math_func_cacosf=yes
db1cf15c 25100else
db9f46a9 25101 gcc_cv_math_func_cacosf=no
db1cf15c
IS
25102fi
25103rm -f core conftest.err conftest.$ac_objext \
25104 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25105fi
db9f46a9
TG
25106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
25107$as_echo "$gcc_cv_math_func_cacosf" >&6; }
25108 if test $gcc_cv_math_func_cacosf = yes; then
f1cdfa01 25109
f38a14ca
TG
25110cat >>confdefs.h <<_ACEOF
25111#define HAVE_CACOSF 1
25112_ACEOF
db9f46a9
TG
25113
25114 fi
db1cf15c 25115
db1cf15c 25116
db1cf15c 25117
db9f46a9
TG
25118
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
25120$as_echo_n "checking for cacosh... " >&6; }
22e05272 25121if ${gcc_cv_math_func_cacosh+:} false; then :
db1cf15c
IS
25122 $as_echo_n "(cached) " >&6
25123else
db9f46a9 25124 if test x$gcc_no_link = xyes; then
22e05272 25125 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25126fi
25127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25128/* end confdefs.h. */
25129
db9f46a9
TG
25130#ifdef HAVE_COMPLEX_H
25131#include <complex.h>
db1cf15c 25132#endif
db9f46a9
TG
25133#ifdef HAVE_MATH_H
25134#include <math.h>
25135#endif
25136
25137int (*ptr)() = (int (*)())cacosh;
25138
db1cf15c
IS
25139int
25140main ()
25141{
db1cf15c
IS
25142 return 0;
25143}
db9f46a9 25144
db1cf15c
IS
25145_ACEOF
25146if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25147 gcc_cv_math_func_cacosh=yes
db1cf15c 25148else
db9f46a9 25149 gcc_cv_math_func_cacosh=no
db1cf15c
IS
25150fi
25151rm -f core conftest.err conftest.$ac_objext \
25152 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25153fi
db9f46a9
TG
25154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
25155$as_echo "$gcc_cv_math_func_cacosh" >&6; }
25156 if test $gcc_cv_math_func_cacosh = yes; then
f1cdfa01 25157
f38a14ca
TG
25158cat >>confdefs.h <<_ACEOF
25159#define HAVE_CACOSH 1
25160_ACEOF
db9f46a9
TG
25161
25162 fi
25163
db1cf15c 25164
db1cf15c 25165
db1cf15c 25166
db9f46a9
TG
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
25168$as_echo_n "checking for cacoshf... " >&6; }
22e05272 25169if ${gcc_cv_math_func_cacoshf+:} false; then :
db1cf15c
IS
25170 $as_echo_n "(cached) " >&6
25171else
db9f46a9 25172 if test x$gcc_no_link = xyes; then
22e05272 25173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25174fi
25175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25176/* end confdefs.h. */
25177
db9f46a9
TG
25178#ifdef HAVE_COMPLEX_H
25179#include <complex.h>
25180#endif
25181#ifdef HAVE_MATH_H
25182#include <math.h>
db1cf15c 25183#endif
db9f46a9
TG
25184
25185int (*ptr)() = (int (*)())cacoshf;
25186
db1cf15c
IS
25187int
25188main ()
25189{
db1cf15c
IS
25190 return 0;
25191}
db9f46a9 25192
db1cf15c
IS
25193_ACEOF
25194if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25195 gcc_cv_math_func_cacoshf=yes
db1cf15c 25196else
db9f46a9 25197 gcc_cv_math_func_cacoshf=no
db1cf15c
IS
25198fi
25199rm -f core conftest.err conftest.$ac_objext \
25200 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25201fi
db9f46a9
TG
25202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
25203$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
25204 if test $gcc_cv_math_func_cacoshf = yes; then
f1cdfa01 25205
f38a14ca
TG
25206cat >>confdefs.h <<_ACEOF
25207#define HAVE_CACOSHF 1
25208_ACEOF
db9f46a9
TG
25209
25210 fi
db1cf15c 25211
db1cf15c 25212
db1cf15c 25213
db9f46a9
TG
25214
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
25216$as_echo_n "checking for cacoshl... " >&6; }
22e05272 25217if ${gcc_cv_math_func_cacoshl+:} false; then :
db1cf15c
IS
25218 $as_echo_n "(cached) " >&6
25219else
db9f46a9 25220 if test x$gcc_no_link = xyes; then
22e05272 25221 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25222fi
25223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224/* end confdefs.h. */
25225
db9f46a9
TG
25226#ifdef HAVE_COMPLEX_H
25227#include <complex.h>
db1cf15c 25228#endif
db9f46a9
TG
25229#ifdef HAVE_MATH_H
25230#include <math.h>
25231#endif
25232
25233int (*ptr)() = (int (*)())cacoshl;
25234
db1cf15c
IS
25235int
25236main ()
25237{
db1cf15c
IS
25238 return 0;
25239}
db9f46a9 25240
db1cf15c
IS
25241_ACEOF
25242if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25243 gcc_cv_math_func_cacoshl=yes
db1cf15c 25244else
db9f46a9 25245 gcc_cv_math_func_cacoshl=no
db1cf15c
IS
25246fi
25247rm -f core conftest.err conftest.$ac_objext \
25248 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25249fi
db9f46a9
TG
25250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
25251$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
25252 if test $gcc_cv_math_func_cacoshl = yes; then
f1cdfa01 25253
f38a14ca
TG
25254cat >>confdefs.h <<_ACEOF
25255#define HAVE_CACOSHL 1
25256_ACEOF
db1cf15c 25257
db9f46a9 25258 fi
db1cf15c 25259
db1cf15c 25260
db9f46a9
TG
25261
25262
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
25264$as_echo_n "checking for cacosl... " >&6; }
22e05272 25265if ${gcc_cv_math_func_cacosl+:} false; then :
db1cf15c
IS
25266 $as_echo_n "(cached) " >&6
25267else
db9f46a9 25268 if test x$gcc_no_link = xyes; then
22e05272 25269 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25270fi
25271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272/* end confdefs.h. */
25273
db9f46a9
TG
25274#ifdef HAVE_COMPLEX_H
25275#include <complex.h>
25276#endif
25277#ifdef HAVE_MATH_H
25278#include <math.h>
db1cf15c 25279#endif
db9f46a9
TG
25280
25281int (*ptr)() = (int (*)())cacosl;
25282
db1cf15c
IS
25283int
25284main ()
25285{
db1cf15c
IS
25286 return 0;
25287}
db9f46a9 25288
db1cf15c
IS
25289_ACEOF
25290if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25291 gcc_cv_math_func_cacosl=yes
db1cf15c 25292else
db9f46a9 25293 gcc_cv_math_func_cacosl=no
db1cf15c
IS
25294fi
25295rm -f core conftest.err conftest.$ac_objext \
25296 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25297fi
db9f46a9
TG
25298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
25299$as_echo "$gcc_cv_math_func_cacosl" >&6; }
25300 if test $gcc_cv_math_func_cacosl = yes; then
f1cdfa01 25301
f38a14ca
TG
25302cat >>confdefs.h <<_ACEOF
25303#define HAVE_CACOSL 1
25304_ACEOF
db9f46a9
TG
25305
25306 fi
db1cf15c 25307
db1cf15c 25308
db1cf15c 25309
db9f46a9
TG
25310
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
25312$as_echo_n "checking for casin... " >&6; }
22e05272 25313if ${gcc_cv_math_func_casin+:} false; then :
db1cf15c
IS
25314 $as_echo_n "(cached) " >&6
25315else
db9f46a9 25316 if test x$gcc_no_link = xyes; then
22e05272 25317 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25318fi
25319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25320/* end confdefs.h. */
25321
db9f46a9
TG
25322#ifdef HAVE_COMPLEX_H
25323#include <complex.h>
db1cf15c 25324#endif
db9f46a9
TG
25325#ifdef HAVE_MATH_H
25326#include <math.h>
25327#endif
25328
25329int (*ptr)() = (int (*)())casin;
25330
db1cf15c
IS
25331int
25332main ()
25333{
db1cf15c
IS
25334 return 0;
25335}
db9f46a9 25336
db1cf15c
IS
25337_ACEOF
25338if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25339 gcc_cv_math_func_casin=yes
db1cf15c 25340else
db9f46a9 25341 gcc_cv_math_func_casin=no
db1cf15c
IS
25342fi
25343rm -f core conftest.err conftest.$ac_objext \
25344 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25345fi
db9f46a9
TG
25346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
25347$as_echo "$gcc_cv_math_func_casin" >&6; }
25348 if test $gcc_cv_math_func_casin = yes; then
f1cdfa01 25349
f38a14ca
TG
25350cat >>confdefs.h <<_ACEOF
25351#define HAVE_CASIN 1
25352_ACEOF
db9f46a9
TG
25353
25354 fi
25355
db1cf15c 25356
db1cf15c 25357
db1cf15c 25358
db9f46a9
TG
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25360$as_echo_n "checking for casinf... " >&6; }
22e05272 25361if ${gcc_cv_math_func_casinf+:} false; then :
db1cf15c
IS
25362 $as_echo_n "(cached) " >&6
25363else
db9f46a9 25364 if test x$gcc_no_link = xyes; then
22e05272 25365 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25366fi
25367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368/* end confdefs.h. */
25369
db9f46a9
TG
25370#ifdef HAVE_COMPLEX_H
25371#include <complex.h>
25372#endif
25373#ifdef HAVE_MATH_H
25374#include <math.h>
db1cf15c 25375#endif
db9f46a9
TG
25376
25377int (*ptr)() = (int (*)())casinf;
25378
db1cf15c
IS
25379int
25380main ()
25381{
db1cf15c
IS
25382 return 0;
25383}
db9f46a9 25384
db1cf15c
IS
25385_ACEOF
25386if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25387 gcc_cv_math_func_casinf=yes
db1cf15c 25388else
db9f46a9 25389 gcc_cv_math_func_casinf=no
db1cf15c
IS
25390fi
25391rm -f core conftest.err conftest.$ac_objext \
25392 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25393fi
db9f46a9
TG
25394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25395$as_echo "$gcc_cv_math_func_casinf" >&6; }
25396 if test $gcc_cv_math_func_casinf = yes; then
f1cdfa01 25397
f38a14ca
TG
25398cat >>confdefs.h <<_ACEOF
25399#define HAVE_CASINF 1
25400_ACEOF
db9f46a9
TG
25401
25402 fi
db1cf15c 25403
db1cf15c 25404
db1cf15c 25405
db9f46a9
TG
25406
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25408$as_echo_n "checking for casinh... " >&6; }
22e05272 25409if ${gcc_cv_math_func_casinh+:} false; then :
db1cf15c
IS
25410 $as_echo_n "(cached) " >&6
25411else
db9f46a9 25412 if test x$gcc_no_link = xyes; then
22e05272 25413 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25414fi
25415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416/* end confdefs.h. */
25417
db9f46a9
TG
25418#ifdef HAVE_COMPLEX_H
25419#include <complex.h>
db1cf15c 25420#endif
db9f46a9
TG
25421#ifdef HAVE_MATH_H
25422#include <math.h>
25423#endif
25424
25425int (*ptr)() = (int (*)())casinh;
25426
db1cf15c
IS
25427int
25428main ()
25429{
db1cf15c
IS
25430 return 0;
25431}
db9f46a9 25432
db1cf15c
IS
25433_ACEOF
25434if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25435 gcc_cv_math_func_casinh=yes
db1cf15c 25436else
db9f46a9 25437 gcc_cv_math_func_casinh=no
db1cf15c
IS
25438fi
25439rm -f core conftest.err conftest.$ac_objext \
25440 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25441fi
db9f46a9
TG
25442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25443$as_echo "$gcc_cv_math_func_casinh" >&6; }
25444 if test $gcc_cv_math_func_casinh = yes; then
f1cdfa01 25445
f38a14ca
TG
25446cat >>confdefs.h <<_ACEOF
25447#define HAVE_CASINH 1
25448_ACEOF
db1cf15c 25449
db9f46a9 25450 fi
db1cf15c 25451
db1cf15c 25452
db9f46a9
TG
25453
25454
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25456$as_echo_n "checking for casinhf... " >&6; }
22e05272 25457if ${gcc_cv_math_func_casinhf+:} false; then :
db1cf15c
IS
25458 $as_echo_n "(cached) " >&6
25459else
db9f46a9 25460 if test x$gcc_no_link = xyes; then
22e05272 25461 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25462fi
25463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25464/* end confdefs.h. */
25465
db9f46a9
TG
25466#ifdef HAVE_COMPLEX_H
25467#include <complex.h>
25468#endif
25469#ifdef HAVE_MATH_H
25470#include <math.h>
db1cf15c 25471#endif
db9f46a9
TG
25472
25473int (*ptr)() = (int (*)())casinhf;
25474
db1cf15c
IS
25475int
25476main ()
25477{
db1cf15c
IS
25478 return 0;
25479}
db9f46a9 25480
db1cf15c
IS
25481_ACEOF
25482if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25483 gcc_cv_math_func_casinhf=yes
db1cf15c 25484else
db9f46a9 25485 gcc_cv_math_func_casinhf=no
db1cf15c
IS
25486fi
25487rm -f core conftest.err conftest.$ac_objext \
25488 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25489fi
db9f46a9
TG
25490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25491$as_echo "$gcc_cv_math_func_casinhf" >&6; }
25492 if test $gcc_cv_math_func_casinhf = yes; then
f1cdfa01 25493
f38a14ca
TG
25494cat >>confdefs.h <<_ACEOF
25495#define HAVE_CASINHF 1
25496_ACEOF
db9f46a9
TG
25497
25498 fi
db1cf15c 25499
db1cf15c 25500
db1cf15c 25501
db9f46a9
TG
25502
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25504$as_echo_n "checking for casinhl... " >&6; }
22e05272 25505if ${gcc_cv_math_func_casinhl+:} false; then :
db1cf15c
IS
25506 $as_echo_n "(cached) " >&6
25507else
db9f46a9 25508 if test x$gcc_no_link = xyes; then
22e05272 25509 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25510fi
25511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25512/* end confdefs.h. */
25513
db9f46a9
TG
25514#ifdef HAVE_COMPLEX_H
25515#include <complex.h>
db1cf15c 25516#endif
db9f46a9
TG
25517#ifdef HAVE_MATH_H
25518#include <math.h>
25519#endif
25520
25521int (*ptr)() = (int (*)())casinhl;
25522
db1cf15c
IS
25523int
25524main ()
25525{
db1cf15c
IS
25526 return 0;
25527}
db9f46a9 25528
db1cf15c
IS
25529_ACEOF
25530if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25531 gcc_cv_math_func_casinhl=yes
db1cf15c 25532else
db9f46a9 25533 gcc_cv_math_func_casinhl=no
db1cf15c
IS
25534fi
25535rm -f core conftest.err conftest.$ac_objext \
25536 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25537fi
db9f46a9
TG
25538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25539$as_echo "$gcc_cv_math_func_casinhl" >&6; }
25540 if test $gcc_cv_math_func_casinhl = yes; then
f1cdfa01 25541
f38a14ca
TG
25542cat >>confdefs.h <<_ACEOF
25543#define HAVE_CASINHL 1
25544_ACEOF
db9f46a9
TG
25545
25546 fi
25547
db1cf15c 25548
db1cf15c 25549
db1cf15c 25550
db9f46a9
TG
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25552$as_echo_n "checking for casinl... " >&6; }
22e05272 25553if ${gcc_cv_math_func_casinl+:} false; then :
db1cf15c
IS
25554 $as_echo_n "(cached) " >&6
25555else
db9f46a9 25556 if test x$gcc_no_link = xyes; then
22e05272 25557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25558fi
25559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25560/* end confdefs.h. */
25561
db9f46a9
TG
25562#ifdef HAVE_COMPLEX_H
25563#include <complex.h>
25564#endif
25565#ifdef HAVE_MATH_H
25566#include <math.h>
db1cf15c 25567#endif
db9f46a9
TG
25568
25569int (*ptr)() = (int (*)())casinl;
25570
db1cf15c
IS
25571int
25572main ()
25573{
db1cf15c
IS
25574 return 0;
25575}
db9f46a9 25576
db1cf15c
IS
25577_ACEOF
25578if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25579 gcc_cv_math_func_casinl=yes
db1cf15c 25580else
db9f46a9 25581 gcc_cv_math_func_casinl=no
db1cf15c
IS
25582fi
25583rm -f core conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25585fi
db9f46a9
TG
25586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25587$as_echo "$gcc_cv_math_func_casinl" >&6; }
25588 if test $gcc_cv_math_func_casinl = yes; then
f1cdfa01 25589
f38a14ca
TG
25590cat >>confdefs.h <<_ACEOF
25591#define HAVE_CASINL 1
25592_ACEOF
db9f46a9
TG
25593
25594 fi
db1cf15c 25595
db1cf15c 25596
db1cf15c 25597
db9f46a9
TG
25598
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25600$as_echo_n "checking for catan... " >&6; }
22e05272 25601if ${gcc_cv_math_func_catan+:} false; then :
db1cf15c
IS
25602 $as_echo_n "(cached) " >&6
25603else
db9f46a9 25604 if test x$gcc_no_link = xyes; then
22e05272 25605 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25606fi
25607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25608/* end confdefs.h. */
25609
db9f46a9
TG
25610#ifdef HAVE_COMPLEX_H
25611#include <complex.h>
db1cf15c 25612#endif
db9f46a9
TG
25613#ifdef HAVE_MATH_H
25614#include <math.h>
25615#endif
25616
25617int (*ptr)() = (int (*)())catan;
25618
db1cf15c
IS
25619int
25620main ()
25621{
db1cf15c
IS
25622 return 0;
25623}
db9f46a9 25624
db1cf15c
IS
25625_ACEOF
25626if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25627 gcc_cv_math_func_catan=yes
db1cf15c 25628else
db9f46a9 25629 gcc_cv_math_func_catan=no
db1cf15c
IS
25630fi
25631rm -f core conftest.err conftest.$ac_objext \
25632 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25633fi
db9f46a9
TG
25634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25635$as_echo "$gcc_cv_math_func_catan" >&6; }
25636 if test $gcc_cv_math_func_catan = yes; then
f1cdfa01 25637
f38a14ca
TG
25638cat >>confdefs.h <<_ACEOF
25639#define HAVE_CATAN 1
25640_ACEOF
db1cf15c 25641
db9f46a9 25642 fi
db1cf15c 25643
db1cf15c 25644
db9f46a9
TG
25645
25646
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25648$as_echo_n "checking for catanf... " >&6; }
22e05272 25649if ${gcc_cv_math_func_catanf+:} false; then :
db1cf15c
IS
25650 $as_echo_n "(cached) " >&6
25651else
db9f46a9 25652 if test x$gcc_no_link = xyes; then
22e05272 25653 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25654fi
25655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25656/* end confdefs.h. */
25657
db9f46a9
TG
25658#ifdef HAVE_COMPLEX_H
25659#include <complex.h>
25660#endif
25661#ifdef HAVE_MATH_H
25662#include <math.h>
db1cf15c 25663#endif
db9f46a9
TG
25664
25665int (*ptr)() = (int (*)())catanf;
25666
db1cf15c
IS
25667int
25668main ()
25669{
db1cf15c
IS
25670 return 0;
25671}
db9f46a9 25672
db1cf15c
IS
25673_ACEOF
25674if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25675 gcc_cv_math_func_catanf=yes
db1cf15c 25676else
db9f46a9 25677 gcc_cv_math_func_catanf=no
db1cf15c
IS
25678fi
25679rm -f core conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25681fi
db9f46a9
TG
25682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25683$as_echo "$gcc_cv_math_func_catanf" >&6; }
25684 if test $gcc_cv_math_func_catanf = yes; then
f1cdfa01 25685
f38a14ca
TG
25686cat >>confdefs.h <<_ACEOF
25687#define HAVE_CATANF 1
25688_ACEOF
db9f46a9
TG
25689
25690 fi
db1cf15c 25691
db1cf15c 25692
db1cf15c 25693
db9f46a9
TG
25694
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25696$as_echo_n "checking for catanh... " >&6; }
22e05272 25697if ${gcc_cv_math_func_catanh+:} false; then :
db1cf15c
IS
25698 $as_echo_n "(cached) " >&6
25699else
db9f46a9 25700 if test x$gcc_no_link = xyes; then
22e05272 25701 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25702fi
25703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25704/* end confdefs.h. */
25705
db9f46a9
TG
25706#ifdef HAVE_COMPLEX_H
25707#include <complex.h>
db1cf15c 25708#endif
db9f46a9
TG
25709#ifdef HAVE_MATH_H
25710#include <math.h>
25711#endif
25712
25713int (*ptr)() = (int (*)())catanh;
25714
db1cf15c
IS
25715int
25716main ()
25717{
db1cf15c
IS
25718 return 0;
25719}
db9f46a9 25720
db1cf15c
IS
25721_ACEOF
25722if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25723 gcc_cv_math_func_catanh=yes
db1cf15c 25724else
db9f46a9 25725 gcc_cv_math_func_catanh=no
db1cf15c
IS
25726fi
25727rm -f core conftest.err conftest.$ac_objext \
25728 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25729fi
db9f46a9
TG
25730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25731$as_echo "$gcc_cv_math_func_catanh" >&6; }
25732 if test $gcc_cv_math_func_catanh = yes; then
f1cdfa01 25733
f38a14ca
TG
25734cat >>confdefs.h <<_ACEOF
25735#define HAVE_CATANH 1
25736_ACEOF
db9f46a9
TG
25737
25738 fi
25739
db1cf15c 25740
db1cf15c 25741
db1cf15c 25742
db9f46a9
TG
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25744$as_echo_n "checking for catanhf... " >&6; }
22e05272 25745if ${gcc_cv_math_func_catanhf+:} false; then :
db1cf15c
IS
25746 $as_echo_n "(cached) " >&6
25747else
db9f46a9 25748 if test x$gcc_no_link = xyes; then
22e05272 25749 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25750fi
25751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25752/* end confdefs.h. */
25753
db9f46a9
TG
25754#ifdef HAVE_COMPLEX_H
25755#include <complex.h>
25756#endif
25757#ifdef HAVE_MATH_H
25758#include <math.h>
db1cf15c 25759#endif
db9f46a9
TG
25760
25761int (*ptr)() = (int (*)())catanhf;
25762
db1cf15c
IS
25763int
25764main ()
25765{
db1cf15c
IS
25766 return 0;
25767}
db9f46a9 25768
db1cf15c
IS
25769_ACEOF
25770if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25771 gcc_cv_math_func_catanhf=yes
db1cf15c 25772else
db9f46a9 25773 gcc_cv_math_func_catanhf=no
db1cf15c
IS
25774fi
25775rm -f core conftest.err conftest.$ac_objext \
25776 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25777fi
db9f46a9
TG
25778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25779$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25780 if test $gcc_cv_math_func_catanhf = yes; then
f1cdfa01 25781
f38a14ca
TG
25782cat >>confdefs.h <<_ACEOF
25783#define HAVE_CATANHF 1
25784_ACEOF
db9f46a9
TG
25785
25786 fi
db1cf15c 25787
db1cf15c 25788
db1cf15c 25789
db9f46a9
TG
25790
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25792$as_echo_n "checking for catanhl... " >&6; }
22e05272 25793if ${gcc_cv_math_func_catanhl+:} false; then :
db1cf15c
IS
25794 $as_echo_n "(cached) " >&6
25795else
db9f46a9 25796 if test x$gcc_no_link = xyes; then
22e05272 25797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25798fi
25799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800/* end confdefs.h. */
25801
db9f46a9
TG
25802#ifdef HAVE_COMPLEX_H
25803#include <complex.h>
db1cf15c 25804#endif
db9f46a9
TG
25805#ifdef HAVE_MATH_H
25806#include <math.h>
25807#endif
25808
25809int (*ptr)() = (int (*)())catanhl;
25810
db1cf15c
IS
25811int
25812main ()
25813{
db1cf15c
IS
25814 return 0;
25815}
db9f46a9 25816
db1cf15c
IS
25817_ACEOF
25818if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25819 gcc_cv_math_func_catanhl=yes
db1cf15c 25820else
db9f46a9 25821 gcc_cv_math_func_catanhl=no
db1cf15c
IS
25822fi
25823rm -f core conftest.err conftest.$ac_objext \
25824 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25825fi
db9f46a9
TG
25826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25827$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25828 if test $gcc_cv_math_func_catanhl = yes; then
f1cdfa01 25829
f38a14ca
TG
25830cat >>confdefs.h <<_ACEOF
25831#define HAVE_CATANHL 1
25832_ACEOF
db1cf15c 25833
db9f46a9 25834 fi
db1cf15c 25835
db1cf15c 25836
db9f46a9
TG
25837
25838
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25840$as_echo_n "checking for catanl... " >&6; }
22e05272 25841if ${gcc_cv_math_func_catanl+:} false; then :
db1cf15c
IS
25842 $as_echo_n "(cached) " >&6
25843else
db9f46a9 25844 if test x$gcc_no_link = xyes; then
22e05272 25845 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db1cf15c
IS
25846fi
25847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25848/* end confdefs.h. */
25849
db9f46a9
TG
25850#ifdef HAVE_COMPLEX_H
25851#include <complex.h>
25852#endif
25853#ifdef HAVE_MATH_H
25854#include <math.h>
db1cf15c 25855#endif
db9f46a9
TG
25856
25857int (*ptr)() = (int (*)())catanl;
25858
db1cf15c
IS
25859int
25860main ()
25861{
db1cf15c
IS
25862 return 0;
25863}
db9f46a9 25864
db1cf15c
IS
25865_ACEOF
25866if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25867 gcc_cv_math_func_catanl=yes
db1cf15c 25868else
db9f46a9 25869 gcc_cv_math_func_catanl=no
db1cf15c
IS
25870fi
25871rm -f core conftest.err conftest.$ac_objext \
25872 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25873fi
db9f46a9
TG
25874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25875$as_echo "$gcc_cv_math_func_catanl" >&6; }
25876 if test $gcc_cv_math_func_catanl = yes; then
f1cdfa01 25877
f38a14ca
TG
25878cat >>confdefs.h <<_ACEOF
25879#define HAVE_CATANL 1
25880_ACEOF
db1cf15c 25881
db9f46a9 25882 fi
db1cf15c
IS
25883
25884
6f4977fc
TK
25885# For POWER, check the ieee128 math functions
25886
25887if test "x$have_real_17" = "xyes"; then
25888
a8fea8cd
TK
25889cat >>confdefs.h <<_ACEOF
25890#define HAVE_REAL_17 1
25891_ACEOF
25892
25893
25894
6f4977fc
TK
25895
25896
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acoshieee128" >&5
25898$as_echo_n "checking for __acoshieee128... " >&6; }
25899if ${gcc_cv_math_func___acoshieee128+:} false; then :
25900 $as_echo_n "(cached) " >&6
25901else
25902 if test x$gcc_no_link = xyes; then
25903 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25904fi
25905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25906/* end confdefs.h. */
25907
5097cdf9
JJ
25908_Float128 __acoshieee128 (_Float128);
25909_Float128 (*ptr)(_Float128) = __acoshieee128;
6f4977fc
TK
25910
25911int
25912main ()
25913{
25914 return 0;
25915}
25916
25917_ACEOF
25918if ac_fn_c_try_link "$LINENO"; then :
25919 gcc_cv_math_func___acoshieee128=yes
25920else
25921 gcc_cv_math_func___acoshieee128=no
25922fi
25923rm -f core conftest.err conftest.$ac_objext \
25924 conftest$ac_exeext conftest.$ac_ext
25925fi
25926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acoshieee128" >&5
25927$as_echo "$gcc_cv_math_func___acoshieee128" >&6; }
25928 if test $gcc_cv_math_func___acoshieee128 = yes; then
25929
25930cat >>confdefs.h <<_ACEOF
25931#define HAVE___ACOSHIEEE128 1
25932_ACEOF
25933
25934 fi
25935
25936
25937
25938
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acosieee128" >&5
25940$as_echo_n "checking for __acosieee128... " >&6; }
25941if ${gcc_cv_math_func___acosieee128+:} false; then :
25942 $as_echo_n "(cached) " >&6
25943else
25944 if test x$gcc_no_link = xyes; then
25945 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25946fi
25947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25948/* end confdefs.h. */
25949
5097cdf9
JJ
25950_Float128 __acosieee128 (_Float128);
25951_Float128 (*ptr)(_Float128) = __acosieee128;
6f4977fc
TK
25952
25953int
25954main ()
25955{
25956 return 0;
25957}
25958
25959_ACEOF
25960if ac_fn_c_try_link "$LINENO"; then :
25961 gcc_cv_math_func___acosieee128=yes
25962else
25963 gcc_cv_math_func___acosieee128=no
25964fi
25965rm -f core conftest.err conftest.$ac_objext \
25966 conftest$ac_exeext conftest.$ac_ext
25967fi
25968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acosieee128" >&5
25969$as_echo "$gcc_cv_math_func___acosieee128" >&6; }
25970 if test $gcc_cv_math_func___acosieee128 = yes; then
25971
25972cat >>confdefs.h <<_ACEOF
25973#define HAVE___ACOSIEEE128 1
25974_ACEOF
25975
25976 fi
25977
25978
25979
25980
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinhieee128" >&5
25982$as_echo_n "checking for __asinhieee128... " >&6; }
25983if ${gcc_cv_math_func___asinhieee128+:} false; then :
25984 $as_echo_n "(cached) " >&6
25985else
25986 if test x$gcc_no_link = xyes; then
25987 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25988fi
25989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25990/* end confdefs.h. */
25991
5097cdf9
JJ
25992_Float128 __asinhieee128 (_Float128);
25993_Float128 (*ptr)(_Float128) = __asinhieee128;
6f4977fc
TK
25994
25995int
25996main ()
25997{
25998 return 0;
25999}
26000
26001_ACEOF
26002if ac_fn_c_try_link "$LINENO"; then :
26003 gcc_cv_math_func___asinhieee128=yes
26004else
26005 gcc_cv_math_func___asinhieee128=no
26006fi
26007rm -f core conftest.err conftest.$ac_objext \
26008 conftest$ac_exeext conftest.$ac_ext
26009fi
26010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinhieee128" >&5
26011$as_echo "$gcc_cv_math_func___asinhieee128" >&6; }
26012 if test $gcc_cv_math_func___asinhieee128 = yes; then
26013
26014cat >>confdefs.h <<_ACEOF
26015#define HAVE___ASINHIEEE128 1
26016_ACEOF
26017
26018 fi
26019
26020
26021
26022
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinieee128" >&5
26024$as_echo_n "checking for __asinieee128... " >&6; }
26025if ${gcc_cv_math_func___asinieee128+:} false; then :
26026 $as_echo_n "(cached) " >&6
26027else
26028 if test x$gcc_no_link = xyes; then
26029 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26030fi
26031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26032/* end confdefs.h. */
26033
5097cdf9
JJ
26034_Float128 __asinieee128 (_Float128);
26035_Float128 (*ptr)(_Float128) = __asinieee128;
6f4977fc
TK
26036
26037int
26038main ()
26039{
26040 return 0;
26041}
26042
26043_ACEOF
26044if ac_fn_c_try_link "$LINENO"; then :
26045 gcc_cv_math_func___asinieee128=yes
26046else
26047 gcc_cv_math_func___asinieee128=no
26048fi
26049rm -f core conftest.err conftest.$ac_objext \
26050 conftest$ac_exeext conftest.$ac_ext
26051fi
26052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinieee128" >&5
26053$as_echo "$gcc_cv_math_func___asinieee128" >&6; }
26054 if test $gcc_cv_math_func___asinieee128 = yes; then
26055
26056cat >>confdefs.h <<_ACEOF
26057#define HAVE___ASINIEEE128 1
26058_ACEOF
26059
26060 fi
26061
26062
26063
26064
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atan2ieee128" >&5
26066$as_echo_n "checking for __atan2ieee128... " >&6; }
26067if ${gcc_cv_math_func___atan2ieee128+:} false; then :
26068 $as_echo_n "(cached) " >&6
26069else
26070 if test x$gcc_no_link = xyes; then
26071 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26072fi
26073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26074/* end confdefs.h. */
26075
5097cdf9
JJ
26076_Float128 __atan2ieee128 (_Float128);
26077_Float128 (*ptr)(_Float128) = __atan2ieee128;
6f4977fc
TK
26078
26079int
26080main ()
26081{
26082 return 0;
26083}
26084
26085_ACEOF
26086if ac_fn_c_try_link "$LINENO"; then :
26087 gcc_cv_math_func___atan2ieee128=yes
26088else
26089 gcc_cv_math_func___atan2ieee128=no
26090fi
26091rm -f core conftest.err conftest.$ac_objext \
26092 conftest$ac_exeext conftest.$ac_ext
26093fi
26094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atan2ieee128" >&5
26095$as_echo "$gcc_cv_math_func___atan2ieee128" >&6; }
26096 if test $gcc_cv_math_func___atan2ieee128 = yes; then
26097
26098cat >>confdefs.h <<_ACEOF
26099#define HAVE___ATAN2IEEE128 1
26100_ACEOF
26101
26102 fi
26103
26104
26105
26106
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanhieee128" >&5
26108$as_echo_n "checking for __atanhieee128... " >&6; }
26109if ${gcc_cv_math_func___atanhieee128+:} false; then :
26110 $as_echo_n "(cached) " >&6
26111else
26112 if test x$gcc_no_link = xyes; then
26113 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26114fi
26115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26116/* end confdefs.h. */
26117
5097cdf9
JJ
26118_Float128 __atanhieee128 (_Float128);
26119_Float128 (*ptr)(_Float128) = __atanhieee128;
6f4977fc
TK
26120
26121int
26122main ()
26123{
26124 return 0;
26125}
26126
26127_ACEOF
26128if ac_fn_c_try_link "$LINENO"; then :
26129 gcc_cv_math_func___atanhieee128=yes
26130else
26131 gcc_cv_math_func___atanhieee128=no
26132fi
26133rm -f core conftest.err conftest.$ac_objext \
26134 conftest$ac_exeext conftest.$ac_ext
26135fi
26136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanhieee128" >&5
26137$as_echo "$gcc_cv_math_func___atanhieee128" >&6; }
26138 if test $gcc_cv_math_func___atanhieee128 = yes; then
26139
26140cat >>confdefs.h <<_ACEOF
26141#define HAVE___ATANHIEEE128 1
26142_ACEOF
26143
26144 fi
26145
26146
26147
26148
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanieee128" >&5
26150$as_echo_n "checking for __atanieee128... " >&6; }
26151if ${gcc_cv_math_func___atanieee128+:} false; then :
26152 $as_echo_n "(cached) " >&6
26153else
26154 if test x$gcc_no_link = xyes; then
26155 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26156fi
26157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26158/* end confdefs.h. */
26159
5097cdf9
JJ
26160_Float128 __atanieee128 (_Float128);
26161_Float128 (*ptr)(_Float128) = __atanieee128;
6f4977fc
TK
26162
26163int
26164main ()
26165{
26166 return 0;
26167}
26168
26169_ACEOF
26170if ac_fn_c_try_link "$LINENO"; then :
26171 gcc_cv_math_func___atanieee128=yes
26172else
26173 gcc_cv_math_func___atanieee128=no
26174fi
26175rm -f core conftest.err conftest.$ac_objext \
26176 conftest$ac_exeext conftest.$ac_ext
26177fi
26178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanieee128" >&5
26179$as_echo "$gcc_cv_math_func___atanieee128" >&6; }
26180 if test $gcc_cv_math_func___atanieee128 = yes; then
26181
26182cat >>confdefs.h <<_ACEOF
26183#define HAVE___ATANIEEE128 1
26184_ACEOF
26185
26186 fi
26187
26188
26189
26190
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __coshieee128" >&5
26192$as_echo_n "checking for __coshieee128... " >&6; }
26193if ${gcc_cv_math_func___coshieee128+:} false; then :
26194 $as_echo_n "(cached) " >&6
26195else
26196 if test x$gcc_no_link = xyes; then
26197 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26198fi
26199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200/* end confdefs.h. */
26201
5097cdf9
JJ
26202_Float128 __coshieee128 (_Float128);
26203_Float128 (*ptr)(_Float128) = __coshieee128;
6f4977fc
TK
26204
26205int
26206main ()
26207{
26208 return 0;
26209}
26210
26211_ACEOF
26212if ac_fn_c_try_link "$LINENO"; then :
26213 gcc_cv_math_func___coshieee128=yes
26214else
26215 gcc_cv_math_func___coshieee128=no
26216fi
26217rm -f core conftest.err conftest.$ac_objext \
26218 conftest$ac_exeext conftest.$ac_ext
26219fi
26220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___coshieee128" >&5
26221$as_echo "$gcc_cv_math_func___coshieee128" >&6; }
26222 if test $gcc_cv_math_func___coshieee128 = yes; then
26223
26224cat >>confdefs.h <<_ACEOF
26225#define HAVE___COSHIEEE128 1
26226_ACEOF
26227
26228 fi
26229
26230
26231
26232
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cosieee128" >&5
26234$as_echo_n "checking for __cosieee128... " >&6; }
26235if ${gcc_cv_math_func___cosieee128+:} false; then :
26236 $as_echo_n "(cached) " >&6
26237else
26238 if test x$gcc_no_link = xyes; then
26239 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26240fi
26241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26242/* end confdefs.h. */
26243
5097cdf9
JJ
26244_Float128 __cosieee128 (_Float128);
26245_Float128 (*ptr)(_Float128) = __cosieee128;
6f4977fc
TK
26246
26247int
26248main ()
26249{
26250 return 0;
26251}
26252
26253_ACEOF
26254if ac_fn_c_try_link "$LINENO"; then :
26255 gcc_cv_math_func___cosieee128=yes
26256else
26257 gcc_cv_math_func___cosieee128=no
26258fi
26259rm -f core conftest.err conftest.$ac_objext \
26260 conftest$ac_exeext conftest.$ac_ext
26261fi
26262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___cosieee128" >&5
26263$as_echo "$gcc_cv_math_func___cosieee128" >&6; }
26264 if test $gcc_cv_math_func___cosieee128 = yes; then
26265
26266cat >>confdefs.h <<_ACEOF
26267#define HAVE___COSIEEE128 1
26268_ACEOF
26269
26270 fi
26271
26272
26273
26274
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __erfieee128" >&5
26276$as_echo_n "checking for __erfieee128... " >&6; }
26277if ${gcc_cv_math_func___erfieee128+:} false; then :
26278 $as_echo_n "(cached) " >&6
26279else
26280 if test x$gcc_no_link = xyes; then
26281 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26282fi
26283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26284/* end confdefs.h. */
26285
5097cdf9
JJ
26286_Float128 __erfieee128 (_Float128);
26287_Float128 (*ptr)(_Float128) = __erfieee128;
6f4977fc
TK
26288
26289int
26290main ()
26291{
26292 return 0;
26293}
26294
26295_ACEOF
26296if ac_fn_c_try_link "$LINENO"; then :
26297 gcc_cv_math_func___erfieee128=yes
26298else
26299 gcc_cv_math_func___erfieee128=no
26300fi
26301rm -f core conftest.err conftest.$ac_objext \
26302 conftest$ac_exeext conftest.$ac_ext
26303fi
26304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___erfieee128" >&5
26305$as_echo "$gcc_cv_math_func___erfieee128" >&6; }
26306 if test $gcc_cv_math_func___erfieee128 = yes; then
26307
26308cat >>confdefs.h <<_ACEOF
26309#define HAVE___ERFIEEE128 1
26310_ACEOF
26311
26312 fi
26313
26314
26315
26316
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __expieee128" >&5
26318$as_echo_n "checking for __expieee128... " >&6; }
26319if ${gcc_cv_math_func___expieee128+:} false; then :
26320 $as_echo_n "(cached) " >&6
26321else
26322 if test x$gcc_no_link = xyes; then
26323 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26324fi
26325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26326/* end confdefs.h. */
26327
5097cdf9
JJ
26328_Float128 __expieee128 (_Float128);
26329_Float128 (*ptr)(_Float128) = __expieee128;
6f4977fc
TK
26330
26331int
26332main ()
26333{
26334 return 0;
26335}
26336
26337_ACEOF
26338if ac_fn_c_try_link "$LINENO"; then :
26339 gcc_cv_math_func___expieee128=yes
26340else
26341 gcc_cv_math_func___expieee128=no
26342fi
26343rm -f core conftest.err conftest.$ac_objext \
26344 conftest$ac_exeext conftest.$ac_ext
26345fi
26346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___expieee128" >&5
26347$as_echo "$gcc_cv_math_func___expieee128" >&6; }
26348 if test $gcc_cv_math_func___expieee128 = yes; then
26349
26350cat >>confdefs.h <<_ACEOF
26351#define HAVE___EXPIEEE128 1
26352_ACEOF
26353
26354 fi
26355
26356
26357
26358
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fabsieee128" >&5
26360$as_echo_n "checking for __fabsieee128... " >&6; }
26361if ${gcc_cv_math_func___fabsieee128+:} false; then :
26362 $as_echo_n "(cached) " >&6
26363else
26364 if test x$gcc_no_link = xyes; then
26365 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26366fi
26367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26368/* end confdefs.h. */
26369
5097cdf9
JJ
26370_Float128 __fabsieee128 (_Float128);
26371_Float128 (*ptr)(_Float128) = __fabsieee128;
6f4977fc
TK
26372
26373int
26374main ()
26375{
26376 return 0;
26377}
26378
26379_ACEOF
26380if ac_fn_c_try_link "$LINENO"; then :
26381 gcc_cv_math_func___fabsieee128=yes
26382else
26383 gcc_cv_math_func___fabsieee128=no
26384fi
26385rm -f core conftest.err conftest.$ac_objext \
26386 conftest$ac_exeext conftest.$ac_ext
26387fi
26388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___fabsieee128" >&5
26389$as_echo "$gcc_cv_math_func___fabsieee128" >&6; }
26390 if test $gcc_cv_math_func___fabsieee128 = yes; then
26391
26392cat >>confdefs.h <<_ACEOF
26393#define HAVE___FABSIEEE128 1
26394_ACEOF
26395
26396 fi
26397
26398
26399
26400
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __jnieee128" >&5
26402$as_echo_n "checking for __jnieee128... " >&6; }
26403if ${gcc_cv_math_func___jnieee128+:} false; then :
26404 $as_echo_n "(cached) " >&6
26405else
26406 if test x$gcc_no_link = xyes; then
26407 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26408fi
26409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410/* end confdefs.h. */
26411
5097cdf9
JJ
26412_Float128 __jnieee128 (_Float128);
26413_Float128 (*ptr)(_Float128) = __jnieee128;
6f4977fc
TK
26414
26415int
26416main ()
26417{
26418 return 0;
26419}
26420
26421_ACEOF
26422if ac_fn_c_try_link "$LINENO"; then :
26423 gcc_cv_math_func___jnieee128=yes
26424else
26425 gcc_cv_math_func___jnieee128=no
26426fi
26427rm -f core conftest.err conftest.$ac_objext \
26428 conftest$ac_exeext conftest.$ac_ext
26429fi
26430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___jnieee128" >&5
26431$as_echo "$gcc_cv_math_func___jnieee128" >&6; }
26432 if test $gcc_cv_math_func___jnieee128 = yes; then
26433
26434cat >>confdefs.h <<_ACEOF
26435#define HAVE___JNIEEE128 1
26436_ACEOF
26437
26438 fi
26439
26440
26441
26442
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __log10ieee128" >&5
26444$as_echo_n "checking for __log10ieee128... " >&6; }
26445if ${gcc_cv_math_func___log10ieee128+:} false; then :
26446 $as_echo_n "(cached) " >&6
26447else
26448 if test x$gcc_no_link = xyes; then
26449 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26450fi
26451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26452/* end confdefs.h. */
26453
5097cdf9
JJ
26454_Float128 __log10ieee128 (_Float128);
26455_Float128 (*ptr)(_Float128) = __log10ieee128;
6f4977fc
TK
26456
26457int
26458main ()
26459{
26460 return 0;
26461}
26462
26463_ACEOF
26464if ac_fn_c_try_link "$LINENO"; then :
26465 gcc_cv_math_func___log10ieee128=yes
26466else
26467 gcc_cv_math_func___log10ieee128=no
26468fi
26469rm -f core conftest.err conftest.$ac_objext \
26470 conftest$ac_exeext conftest.$ac_ext
26471fi
26472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___log10ieee128" >&5
26473$as_echo "$gcc_cv_math_func___log10ieee128" >&6; }
26474 if test $gcc_cv_math_func___log10ieee128 = yes; then
26475
26476cat >>confdefs.h <<_ACEOF
26477#define HAVE___LOG10IEEE128 1
26478_ACEOF
26479
26480 fi
26481
26482
26483
26484
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __logieee128" >&5
26486$as_echo_n "checking for __logieee128... " >&6; }
26487if ${gcc_cv_math_func___logieee128+:} false; then :
26488 $as_echo_n "(cached) " >&6
26489else
26490 if test x$gcc_no_link = xyes; then
26491 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26492fi
26493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26494/* end confdefs.h. */
26495
5097cdf9
JJ
26496_Float128 __logieee128 (_Float128);
26497_Float128 (*ptr)(_Float128) = __logieee128;
6f4977fc
TK
26498
26499int
26500main ()
26501{
26502 return 0;
26503}
26504
26505_ACEOF
26506if ac_fn_c_try_link "$LINENO"; then :
26507 gcc_cv_math_func___logieee128=yes
26508else
26509 gcc_cv_math_func___logieee128=no
26510fi
26511rm -f core conftest.err conftest.$ac_objext \
26512 conftest$ac_exeext conftest.$ac_ext
26513fi
26514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___logieee128" >&5
26515$as_echo "$gcc_cv_math_func___logieee128" >&6; }
26516 if test $gcc_cv_math_func___logieee128 = yes; then
26517
26518cat >>confdefs.h <<_ACEOF
26519#define HAVE___LOGIEEE128 1
26520_ACEOF
26521
26522 fi
26523
26524
26525
26526
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __powieee128" >&5
26528$as_echo_n "checking for __powieee128... " >&6; }
26529if ${gcc_cv_math_func___powieee128+:} false; then :
26530 $as_echo_n "(cached) " >&6
26531else
26532 if test x$gcc_no_link = xyes; then
26533 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26534fi
26535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26536/* end confdefs.h. */
26537
5097cdf9
JJ
26538_Float128 __powieee128 (_Float128);
26539_Float128 (*ptr)(_Float128) = __powieee128;
6f4977fc
TK
26540
26541int
26542main ()
26543{
26544 return 0;
26545}
26546
26547_ACEOF
26548if ac_fn_c_try_link "$LINENO"; then :
26549 gcc_cv_math_func___powieee128=yes
26550else
26551 gcc_cv_math_func___powieee128=no
26552fi
26553rm -f core conftest.err conftest.$ac_objext \
26554 conftest$ac_exeext conftest.$ac_ext
26555fi
26556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___powieee128" >&5
26557$as_echo "$gcc_cv_math_func___powieee128" >&6; }
26558 if test $gcc_cv_math_func___powieee128 = yes; then
26559
26560cat >>confdefs.h <<_ACEOF
26561#define HAVE___POWIEEE128 1
26562_ACEOF
26563
26564 fi
26565
26566
26567
26568
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinhieee128" >&5
26570$as_echo_n "checking for __sinhieee128... " >&6; }
26571if ${gcc_cv_math_func___sinhieee128+:} false; then :
26572 $as_echo_n "(cached) " >&6
26573else
26574 if test x$gcc_no_link = xyes; then
26575 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26576fi
26577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26578/* end confdefs.h. */
26579
5097cdf9
JJ
26580_Float128 __sinhieee128 (_Float128);
26581_Float128 (*ptr)(_Float128) = __sinhieee128;
6f4977fc
TK
26582
26583int
26584main ()
26585{
26586 return 0;
26587}
26588
26589_ACEOF
26590if ac_fn_c_try_link "$LINENO"; then :
26591 gcc_cv_math_func___sinhieee128=yes
26592else
26593 gcc_cv_math_func___sinhieee128=no
26594fi
26595rm -f core conftest.err conftest.$ac_objext \
26596 conftest$ac_exeext conftest.$ac_ext
26597fi
26598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinhieee128" >&5
26599$as_echo "$gcc_cv_math_func___sinhieee128" >&6; }
26600 if test $gcc_cv_math_func___sinhieee128 = yes; then
26601
26602cat >>confdefs.h <<_ACEOF
26603#define HAVE___SINHIEEE128 1
26604_ACEOF
26605
26606 fi
26607
26608
26609
26610
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinieee128" >&5
26612$as_echo_n "checking for __sinieee128... " >&6; }
26613if ${gcc_cv_math_func___sinieee128+:} false; then :
26614 $as_echo_n "(cached) " >&6
26615else
26616 if test x$gcc_no_link = xyes; then
26617 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26618fi
26619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26620/* end confdefs.h. */
26621
5097cdf9
JJ
26622_Float128 __sinieee128 (_Float128);
26623_Float128 (*ptr)(_Float128) = __sinieee128;
6f4977fc
TK
26624
26625int
26626main ()
26627{
26628 return 0;
26629}
26630
26631_ACEOF
26632if ac_fn_c_try_link "$LINENO"; then :
26633 gcc_cv_math_func___sinieee128=yes
26634else
26635 gcc_cv_math_func___sinieee128=no
26636fi
26637rm -f core conftest.err conftest.$ac_objext \
26638 conftest$ac_exeext conftest.$ac_ext
26639fi
26640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinieee128" >&5
26641$as_echo "$gcc_cv_math_func___sinieee128" >&6; }
26642 if test $gcc_cv_math_func___sinieee128 = yes; then
26643
26644cat >>confdefs.h <<_ACEOF
26645#define HAVE___SINIEEE128 1
26646_ACEOF
26647
26648 fi
26649
26650
26651
26652
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sqrtieee128" >&5
26654$as_echo_n "checking for __sqrtieee128... " >&6; }
26655if ${gcc_cv_math_func___sqrtieee128+:} false; then :
26656 $as_echo_n "(cached) " >&6
26657else
26658 if test x$gcc_no_link = xyes; then
26659 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26660fi
26661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26662/* end confdefs.h. */
26663
5097cdf9
JJ
26664_Float128 __sqrtieee128 (_Float128);
26665_Float128 (*ptr)(_Float128) = __sqrtieee128;
6f4977fc
TK
26666
26667int
26668main ()
26669{
26670 return 0;
26671}
26672
26673_ACEOF
26674if ac_fn_c_try_link "$LINENO"; then :
26675 gcc_cv_math_func___sqrtieee128=yes
26676else
26677 gcc_cv_math_func___sqrtieee128=no
26678fi
26679rm -f core conftest.err conftest.$ac_objext \
26680 conftest$ac_exeext conftest.$ac_ext
26681fi
26682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sqrtieee128" >&5
26683$as_echo "$gcc_cv_math_func___sqrtieee128" >&6; }
26684 if test $gcc_cv_math_func___sqrtieee128 = yes; then
26685
26686cat >>confdefs.h <<_ACEOF
26687#define HAVE___SQRTIEEE128 1
26688_ACEOF
26689
26690 fi
26691
26692
26693
26694
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanhieee128" >&5
26696$as_echo_n "checking for __tanhieee128... " >&6; }
26697if ${gcc_cv_math_func___tanhieee128+:} false; then :
26698 $as_echo_n "(cached) " >&6
26699else
26700 if test x$gcc_no_link = xyes; then
26701 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26702fi
26703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26704/* end confdefs.h. */
26705
5097cdf9
JJ
26706_Float128 __tanhieee128 (_Float128);
26707_Float128 (*ptr)(_Float128) = __tanhieee128;
6f4977fc
TK
26708
26709int
26710main ()
26711{
26712 return 0;
26713}
26714
26715_ACEOF
26716if ac_fn_c_try_link "$LINENO"; then :
26717 gcc_cv_math_func___tanhieee128=yes
26718else
26719 gcc_cv_math_func___tanhieee128=no
26720fi
26721rm -f core conftest.err conftest.$ac_objext \
26722 conftest$ac_exeext conftest.$ac_ext
26723fi
26724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanhieee128" >&5
26725$as_echo "$gcc_cv_math_func___tanhieee128" >&6; }
26726 if test $gcc_cv_math_func___tanhieee128 = yes; then
26727
26728cat >>confdefs.h <<_ACEOF
26729#define HAVE___TANHIEEE128 1
26730_ACEOF
26731
26732 fi
26733
26734
26735
26736
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanieee128" >&5
26738$as_echo_n "checking for __tanieee128... " >&6; }
26739if ${gcc_cv_math_func___tanieee128+:} false; then :
26740 $as_echo_n "(cached) " >&6
26741else
26742 if test x$gcc_no_link = xyes; then
26743 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26744fi
26745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26746/* end confdefs.h. */
26747
5097cdf9
JJ
26748_Float128 __tanieee128 (_Float128);
26749_Float128 (*ptr)(_Float128) = __tanieee128;
6f4977fc
TK
26750
26751int
26752main ()
26753{
26754 return 0;
26755}
26756
26757_ACEOF
26758if ac_fn_c_try_link "$LINENO"; then :
26759 gcc_cv_math_func___tanieee128=yes
26760else
26761 gcc_cv_math_func___tanieee128=no
26762fi
26763rm -f core conftest.err conftest.$ac_objext \
26764 conftest$ac_exeext conftest.$ac_ext
26765fi
26766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanieee128" >&5
26767$as_echo "$gcc_cv_math_func___tanieee128" >&6; }
26768 if test $gcc_cv_math_func___tanieee128 = yes; then
26769
26770cat >>confdefs.h <<_ACEOF
26771#define HAVE___TANIEEE128 1
26772_ACEOF
26773
26774 fi
26775
26776
26777
26778
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ynieee128" >&5
26780$as_echo_n "checking for __ynieee128... " >&6; }
26781if ${gcc_cv_math_func___ynieee128+:} false; then :
26782 $as_echo_n "(cached) " >&6
26783else
26784 if test x$gcc_no_link = xyes; then
26785 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26786fi
26787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26788/* end confdefs.h. */
26789
5097cdf9
JJ
26790_Float128 __ynieee128 (_Float128);
26791_Float128 (*ptr)(_Float128) = __ynieee128;
6f4977fc
TK
26792
26793int
26794main ()
26795{
26796 return 0;
26797}
26798
26799_ACEOF
26800if ac_fn_c_try_link "$LINENO"; then :
26801 gcc_cv_math_func___ynieee128=yes
26802else
26803 gcc_cv_math_func___ynieee128=no
26804fi
26805rm -f core conftest.err conftest.$ac_objext \
26806 conftest$ac_exeext conftest.$ac_ext
26807fi
26808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___ynieee128" >&5
26809$as_echo "$gcc_cv_math_func___ynieee128" >&6; }
26810 if test $gcc_cv_math_func___ynieee128 = yes; then
26811
26812cat >>confdefs.h <<_ACEOF
26813#define HAVE___YNIEEE128 1
26814_ACEOF
26815
26816 fi
26817
26818fi
26819
118ea208 26820# On AIX, clog is present in libm as __clog
5213506e
RW
26821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
26822$as_echo_n "checking for __clog in -lm... " >&6; }
22e05272 26823if ${ac_cv_lib_m___clog+:} false; then :
5213506e 26824 $as_echo_n "(cached) " >&6
e097b4f1
DE
26825else
26826 ac_check_lib_save_LIBS=$LIBS
26827LIBS="-lm $LIBS"
26828if test x$gcc_no_link = xyes; then
22e05272 26829 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 26830fi
5213506e 26831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
26832/* end confdefs.h. */
26833
5213506e
RW
26834/* Override any GCC internal prototype to avoid an error.
26835 Use char because int might match the return type of a GCC
26836 builtin and then its argument prototype would still apply. */
e097b4f1
DE
26837#ifdef __cplusplus
26838extern "C"
26839#endif
e097b4f1
DE
26840char __clog ();
26841int
26842main ()
26843{
5213506e 26844return __clog ();
e097b4f1
DE
26845 ;
26846 return 0;
26847}
26848_ACEOF
5213506e 26849if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
26850 ac_cv_lib_m___clog=yes
26851else
5213506e 26852 ac_cv_lib_m___clog=no
e097b4f1 26853fi
5213506e
RW
26854rm -f core conftest.err conftest.$ac_objext \
26855 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
26856LIBS=$ac_check_lib_save_LIBS
26857fi
5213506e
RW
26858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
26859$as_echo "$ac_cv_lib_m___clog" >&6; }
22e05272 26860if test "x$ac_cv_lib_m___clog" = xyes; then :
e097b4f1 26861
5213506e 26862$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
26863
26864fi
26865
26866
1868599f
JJ
26867
26868
26869if test $gcc_cv_math_func_copysign = no; then
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5
26871$as_echo_n "checking for inline __builtin_copysign... " >&6; }
26872if ${gcc_cv_math_inline_builtin_copysign+:} false; then :
26873 $as_echo_n "(cached) " >&6
26874else
26875 if test x$gcc_no_link = xyes; then
26876 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26877fi
26878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879/* end confdefs.h. */
26880
26881double
26882copysign_fallback (double x, double y)
26883{
26884 return __builtin_copysign (x, y);
26885}
26886
26887int
26888main ()
26889{
26890 return 0;
26891}
26892
26893_ACEOF
26894if ac_fn_c_try_link "$LINENO"; then :
26895 gcc_cv_math_inline_builtin_copysign=yes
26896else
26897 gcc_cv_math_inline_builtin_copysign=no
26898fi
26899rm -f core conftest.err conftest.$ac_objext \
26900 conftest$ac_exeext conftest.$ac_ext
26901fi
26902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5
26903$as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; }
26904 if test $gcc_cv_math_inline_builtin_copysign = yes; then
26905
26906cat >>confdefs.h <<_ACEOF
26907#define HAVE_INLINE_BUILTIN_COPYSIGN 1
26908_ACEOF
26909
26910 fi
26911fi
26912
26913
26914if test $gcc_cv_math_func_copysignl = no; then
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5
26916$as_echo_n "checking for inline __builtin_copysignl... " >&6; }
26917if ${gcc_cv_math_inline_builtin_copysignl+:} false; then :
26918 $as_echo_n "(cached) " >&6
26919else
26920 if test x$gcc_no_link = xyes; then
26921 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26922fi
26923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26924/* end confdefs.h. */
26925
26926long double
26927copysignl_fallback (long double x, long double y)
26928{
26929 return __builtin_copysignl (x, y);
26930}
26931
26932int
26933main ()
26934{
26935 return 0;
26936}
26937
26938_ACEOF
26939if ac_fn_c_try_link "$LINENO"; then :
26940 gcc_cv_math_inline_builtin_copysignl=yes
26941else
26942 gcc_cv_math_inline_builtin_copysignl=no
26943fi
26944rm -f core conftest.err conftest.$ac_objext \
26945 conftest$ac_exeext conftest.$ac_ext
26946fi
26947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5
26948$as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; }
26949 if test $gcc_cv_math_inline_builtin_copysignl = yes; then
26950
26951cat >>confdefs.h <<_ACEOF
26952#define HAVE_INLINE_BUILTIN_COPYSIGNL 1
26953_ACEOF
26954
26955 fi
26956fi
26957
26958
26959if test $gcc_cv_math_func_fabs = no; then
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5
26961$as_echo_n "checking for inline __builtin_fabs... " >&6; }
26962if ${gcc_cv_math_inline_builtin_fabs+:} false; then :
26963 $as_echo_n "(cached) " >&6
26964else
26965 if test x$gcc_no_link = xyes; then
26966 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26967fi
26968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26969/* end confdefs.h. */
26970
26971double
26972fabs_fallback (double x)
26973{
26974 return __builtin_fabs (x);
26975}
26976
26977int
26978main ()
26979{
26980 return 0;
26981}
26982
26983_ACEOF
26984if ac_fn_c_try_link "$LINENO"; then :
26985 gcc_cv_math_inline_builtin_fabs=yes
26986else
26987 gcc_cv_math_inline_builtin_fabs=no
26988fi
26989rm -f core conftest.err conftest.$ac_objext \
26990 conftest$ac_exeext conftest.$ac_ext
26991fi
26992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5
26993$as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; }
26994 if test $gcc_cv_math_inline_builtin_fabs = yes; then
26995
26996cat >>confdefs.h <<_ACEOF
26997#define HAVE_INLINE_BUILTIN_FABS 1
26998_ACEOF
26999
27000 fi
27001fi
27002
27003
27004if test $gcc_cv_math_func_fabsl = no; then
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5
27006$as_echo_n "checking for inline __builtin_fabsl... " >&6; }
27007if ${gcc_cv_math_inline_builtin_fabsl+:} false; then :
27008 $as_echo_n "(cached) " >&6
27009else
27010 if test x$gcc_no_link = xyes; then
27011 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27012fi
27013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014/* end confdefs.h. */
27015
27016long double
27017fabsl_fallback (long double x)
27018{
27019 return __builtin_fabsl (x);
27020}
27021
27022int
27023main ()
27024{
27025 return 0;
27026}
27027
27028_ACEOF
27029if ac_fn_c_try_link "$LINENO"; then :
27030 gcc_cv_math_inline_builtin_fabsl=yes
27031else
27032 gcc_cv_math_inline_builtin_fabsl=no
27033fi
27034rm -f core conftest.err conftest.$ac_objext \
27035 conftest$ac_exeext conftest.$ac_ext
27036fi
27037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5
27038$as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; }
27039 if test $gcc_cv_math_inline_builtin_fabsl = yes; then
27040
27041cat >>confdefs.h <<_ACEOF
27042#define HAVE_INLINE_BUILTIN_FABSL 1
27043_ACEOF
27044
27045 fi
27046fi
27047
ad238e4f 27048
ad238e4f 27049
ad238e4f 27050
133d0d42
JJ
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf128" >&5
27052$as_echo_n "checking for acosf128... " >&6; }
27053if ${gcc_cv_math_func_acosf128+:} false; then :
27054 $as_echo_n "(cached) " >&6
ad238e4f 27055else
133d0d42
JJ
27056 if test x$gcc_no_link = xyes; then
27057 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27058fi
27059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
27060/* end confdefs.h. */
27061
133d0d42
JJ
27062#ifdef HAVE_COMPLEX_H
27063#include <complex.h>
27064#endif
27065#ifdef HAVE_MATH_H
27066#include <math.h>
27067#endif
ad238e4f 27068
133d0d42 27069int (*ptr)() = (int (*)())acosf128;
ad238e4f 27070
133d0d42
JJ
27071int
27072main ()
27073{
ad238e4f
FXC
27074 return 0;
27075}
133d0d42 27076
ad238e4f 27077_ACEOF
133d0d42
JJ
27078if ac_fn_c_try_link "$LINENO"; then :
27079 gcc_cv_math_func_acosf128=yes
ad238e4f 27080else
133d0d42 27081 gcc_cv_math_func_acosf128=no
ad238e4f 27082fi
133d0d42
JJ
27083rm -f core conftest.err conftest.$ac_objext \
27084 conftest$ac_exeext conftest.$ac_ext
ad238e4f 27085fi
133d0d42
JJ
27086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf128" >&5
27087$as_echo "$gcc_cv_math_func_acosf128" >&6; }
27088 if test $gcc_cv_math_func_acosf128 = yes; then
5213506e 27089
133d0d42
JJ
27090cat >>confdefs.h <<_ACEOF
27091#define HAVE_ACOSF128 1
27092_ACEOF
ad238e4f 27093
133d0d42 27094 fi
ad238e4f 27095
ad238e4f 27096
db8092dc 27097
133d0d42
JJ
27098
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf128" >&5
27100$as_echo_n "checking for acoshf128... " >&6; }
27101if ${gcc_cv_math_func_acoshf128+:} false; then :
5213506e 27102 $as_echo_n "(cached) " >&6
db8092dc 27103else
133d0d42 27104 if test x$gcc_no_link = xyes; then
22e05272 27105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 27106fi
5213506e 27107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
27108/* end confdefs.h. */
27109
133d0d42
JJ
27110#ifdef HAVE_COMPLEX_H
27111#include <complex.h>
27112#endif
27113#ifdef HAVE_MATH_H
27114#include <math.h>
27115#endif
27116
27117int (*ptr)() = (int (*)())acoshf128;
db8092dc
FXC
27118
27119int
27120main ()
27121{
db8092dc
FXC
27122 return 0;
27123}
133d0d42 27124
db8092dc 27125_ACEOF
5213506e 27126if ac_fn_c_try_link "$LINENO"; then :
133d0d42 27127 gcc_cv_math_func_acoshf128=yes
db8092dc 27128else
133d0d42 27129 gcc_cv_math_func_acoshf128=no
db8092dc 27130fi
5213506e
RW
27131rm -f core conftest.err conftest.$ac_objext \
27132 conftest$ac_exeext conftest.$ac_ext
db8092dc 27133fi
133d0d42
JJ
27134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf128" >&5
27135$as_echo "$gcc_cv_math_func_acoshf128" >&6; }
27136 if test $gcc_cv_math_func_acoshf128 = yes; then
db8092dc 27137
133d0d42
JJ
27138cat >>confdefs.h <<_ACEOF
27139#define HAVE_ACOSHF128 1
27140_ACEOF
db8092dc
FXC
27141
27142 fi
27143
27144
1ec601bf 27145
87e6d9dc 27146
133d0d42
JJ
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf128" >&5
27148$as_echo_n "checking for asinf128... " >&6; }
27149if ${gcc_cv_math_func_asinf128+:} false; then :
1ec601bf
FXC
27150 $as_echo_n "(cached) " >&6
27151else
133d0d42
JJ
27152 if test x$gcc_no_link = xyes; then
27153 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27154fi
27155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
27156/* end confdefs.h. */
27157
133d0d42
JJ
27158#ifdef HAVE_COMPLEX_H
27159#include <complex.h>
27160#endif
27161#ifdef HAVE_MATH_H
27162#include <math.h>
27163#endif
69eb61d4 27164
133d0d42 27165int (*ptr)() = (int (*)())asinf128;
1ec601bf
FXC
27166
27167int
27168main ()
27169{
69eb61d4
TB
27170 return 0;
27171}
133d0d42 27172
69eb61d4 27173_ACEOF
133d0d42
JJ
27174if ac_fn_c_try_link "$LINENO"; then :
27175 gcc_cv_math_func_asinf128=yes
27176else
27177 gcc_cv_math_func_asinf128=no
27178fi
27179rm -f core conftest.err conftest.$ac_objext \
27180 conftest$ac_exeext conftest.$ac_ext
27181fi
27182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf128" >&5
27183$as_echo "$gcc_cv_math_func_asinf128" >&6; }
27184 if test $gcc_cv_math_func_asinf128 = yes; then
1ec601bf 27185
133d0d42
JJ
27186cat >>confdefs.h <<_ACEOF
27187#define HAVE_ASINF128 1
27188_ACEOF
1ec601bf 27189
133d0d42 27190 fi
69eb61d4 27191
69eb61d4 27192
133d0d42
JJ
27193
27194
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf128" >&5
27196$as_echo_n "checking for asinhf128... " >&6; }
27197if ${gcc_cv_math_func_asinhf128+:} false; then :
27198 $as_echo_n "(cached) " >&6
69eb61d4
TB
27199else
27200 if test x$gcc_no_link = xyes; then
22e05272 27201 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
69eb61d4
TB
27202fi
27203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27204/* end confdefs.h. */
27205
133d0d42
JJ
27206#ifdef HAVE_COMPLEX_H
27207#include <complex.h>
27208#endif
27209#ifdef HAVE_MATH_H
27210#include <math.h>
27211#endif
69eb61d4 27212
133d0d42 27213int (*ptr)() = (int (*)())asinhf128;
69eb61d4
TB
27214
27215int
27216main ()
27217{
1ec601bf
FXC
27218 return 0;
27219}
133d0d42 27220
1ec601bf
FXC
27221_ACEOF
27222if ac_fn_c_try_link "$LINENO"; then :
133d0d42 27223 gcc_cv_math_func_asinhf128=yes
1ec601bf 27224else
133d0d42 27225 gcc_cv_math_func_asinhf128=no
1ec601bf
FXC
27226fi
27227rm -f core conftest.err conftest.$ac_objext \
27228 conftest$ac_exeext conftest.$ac_ext
69eb61d4 27229fi
133d0d42
JJ
27230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf128" >&5
27231$as_echo "$gcc_cv_math_func_asinhf128" >&6; }
27232 if test $gcc_cv_math_func_asinhf128 = yes; then
1ec601bf 27233
133d0d42
JJ
27234cat >>confdefs.h <<_ACEOF
27235#define HAVE_ASINHF128 1
27236_ACEOF
1ec601bf 27237
133d0d42 27238 fi
1ec601bf
FXC
27239
27240
1ec601bf 27241
1ec601bf 27242
133d0d42
JJ
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f128" >&5
27244$as_echo_n "checking for atan2f128... " >&6; }
27245if ${gcc_cv_math_func_atan2f128+:} false; then :
27246 $as_echo_n "(cached) " >&6
27247else
27248 if test x$gcc_no_link = xyes; then
22e05272 27249 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1ec601bf
FXC
27250fi
27251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27252/* end confdefs.h. */
27253
133d0d42
JJ
27254#ifdef HAVE_COMPLEX_H
27255#include <complex.h>
27256#endif
27257#ifdef HAVE_MATH_H
27258#include <math.h>
27259#endif
27260
27261int (*ptr)() = (int (*)())atan2f128;
27262
1ec601bf
FXC
27263int
27264main ()
27265{
1ec601bf
FXC
27266 return 0;
27267}
133d0d42 27268
1ec601bf
FXC
27269_ACEOF
27270if ac_fn_c_try_link "$LINENO"; then :
133d0d42 27271 gcc_cv_math_func_atan2f128=yes
1ec601bf 27272else
133d0d42 27273 gcc_cv_math_func_atan2f128=no
1ec601bf
FXC
27274fi
27275rm -f core conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
133d0d42
JJ
27277fi
27278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f128" >&5
27279$as_echo "$gcc_cv_math_func_atan2f128" >&6; }
27280 if test $gcc_cv_math_func_atan2f128 = yes; then
828012a5 27281
133d0d42
JJ
27282cat >>confdefs.h <<_ACEOF
27283#define HAVE_ATAN2F128 1
27284_ACEOF
27285
27286 fi
27287
27288
27289
27290
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf128" >&5
27292$as_echo_n "checking for atanf128... " >&6; }
27293if ${gcc_cv_math_func_atanf128+:} false; then :
27294 $as_echo_n "(cached) " >&6
27295else
27296 if test x$gcc_no_link = xyes; then
22e05272 27297 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
828012a5
RO
27298fi
27299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27300/* end confdefs.h. */
27301
133d0d42
JJ
27302#ifdef HAVE_COMPLEX_H
27303#include <complex.h>
27304#endif
27305#ifdef HAVE_MATH_H
27306#include <math.h>
27307#endif
27308
27309int (*ptr)() = (int (*)())atanf128;
27310
828012a5
RO
27311int
27312main ()
27313{
133d0d42
JJ
27314 return 0;
27315}
27316
27317_ACEOF
27318if ac_fn_c_try_link "$LINENO"; then :
27319 gcc_cv_math_func_atanf128=yes
27320else
27321 gcc_cv_math_func_atanf128=no
27322fi
27323rm -f core conftest.err conftest.$ac_objext \
27324 conftest$ac_exeext conftest.$ac_ext
27325fi
27326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf128" >&5
27327$as_echo "$gcc_cv_math_func_atanf128" >&6; }
27328 if test $gcc_cv_math_func_atanf128 = yes; then
27329
27330cat >>confdefs.h <<_ACEOF
27331#define HAVE_ATANF128 1
27332_ACEOF
27333
27334 fi
27335
27336
27337
27338
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf128" >&5
27340$as_echo_n "checking for atanhf128... " >&6; }
27341if ${gcc_cv_math_func_atanhf128+:} false; then :
27342 $as_echo_n "(cached) " >&6
27343else
27344 if test x$gcc_no_link = xyes; then
27345 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27346fi
27347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27348/* end confdefs.h. */
27349
27350#ifdef HAVE_COMPLEX_H
27351#include <complex.h>
27352#endif
27353#ifdef HAVE_MATH_H
27354#include <math.h>
27355#endif
27356
27357int (*ptr)() = (int (*)())atanhf128;
27358
27359int
27360main ()
27361{
27362 return 0;
27363}
27364
27365_ACEOF
27366if ac_fn_c_try_link "$LINENO"; then :
27367 gcc_cv_math_func_atanhf128=yes
27368else
27369 gcc_cv_math_func_atanhf128=no
27370fi
27371rm -f core conftest.err conftest.$ac_objext \
27372 conftest$ac_exeext conftest.$ac_ext
27373fi
27374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf128" >&5
27375$as_echo "$gcc_cv_math_func_atanhf128" >&6; }
27376 if test $gcc_cv_math_func_atanhf128 = yes; then
27377
27378cat >>confdefs.h <<_ACEOF
27379#define HAVE_ATANHF128 1
27380_ACEOF
27381
27382 fi
27383
27384
27385
27386
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf128" >&5
27388$as_echo_n "checking for cargf128... " >&6; }
27389if ${gcc_cv_math_func_cargf128+:} false; then :
27390 $as_echo_n "(cached) " >&6
27391else
27392 if test x$gcc_no_link = xyes; then
27393 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27394fi
27395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27396/* end confdefs.h. */
27397
27398#ifdef HAVE_COMPLEX_H
27399#include <complex.h>
27400#endif
27401#ifdef HAVE_MATH_H
27402#include <math.h>
27403#endif
27404
27405int (*ptr)() = (int (*)())cargf128;
27406
27407int
27408main ()
27409{
27410 return 0;
27411}
27412
27413_ACEOF
27414if ac_fn_c_try_link "$LINENO"; then :
27415 gcc_cv_math_func_cargf128=yes
27416else
27417 gcc_cv_math_func_cargf128=no
27418fi
27419rm -f core conftest.err conftest.$ac_objext \
27420 conftest$ac_exeext conftest.$ac_ext
27421fi
27422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf128" >&5
27423$as_echo "$gcc_cv_math_func_cargf128" >&6; }
27424 if test $gcc_cv_math_func_cargf128 = yes; then
27425
27426cat >>confdefs.h <<_ACEOF
27427#define HAVE_CARGF128 1
27428_ACEOF
27429
27430 fi
27431
27432
27433
27434
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf128" >&5
27436$as_echo_n "checking for ceilf128... " >&6; }
27437if ${gcc_cv_math_func_ceilf128+:} false; then :
27438 $as_echo_n "(cached) " >&6
27439else
27440 if test x$gcc_no_link = xyes; then
27441 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27442fi
27443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27444/* end confdefs.h. */
27445
27446#ifdef HAVE_COMPLEX_H
27447#include <complex.h>
27448#endif
27449#ifdef HAVE_MATH_H
27450#include <math.h>
27451#endif
27452
27453int (*ptr)() = (int (*)())ceilf128;
27454
27455int
27456main ()
27457{
27458 return 0;
27459}
27460
27461_ACEOF
27462if ac_fn_c_try_link "$LINENO"; then :
27463 gcc_cv_math_func_ceilf128=yes
27464else
27465 gcc_cv_math_func_ceilf128=no
27466fi
27467rm -f core conftest.err conftest.$ac_objext \
27468 conftest$ac_exeext conftest.$ac_ext
27469fi
27470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf128" >&5
27471$as_echo "$gcc_cv_math_func_ceilf128" >&6; }
27472 if test $gcc_cv_math_func_ceilf128 = yes; then
27473
27474cat >>confdefs.h <<_ACEOF
27475#define HAVE_CEILF128 1
27476_ACEOF
27477
27478 fi
27479
27480
27481
27482
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf128" >&5
27484$as_echo_n "checking for copysignf128... " >&6; }
27485if ${gcc_cv_math_func_copysignf128+:} false; then :
27486 $as_echo_n "(cached) " >&6
27487else
27488 if test x$gcc_no_link = xyes; then
27489 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27490fi
27491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27492/* end confdefs.h. */
27493
27494#ifdef HAVE_COMPLEX_H
27495#include <complex.h>
27496#endif
27497#ifdef HAVE_MATH_H
27498#include <math.h>
27499#endif
27500
27501int (*ptr)() = (int (*)())copysignf128;
27502
27503int
27504main ()
27505{
27506 return 0;
27507}
27508
27509_ACEOF
27510if ac_fn_c_try_link "$LINENO"; then :
27511 gcc_cv_math_func_copysignf128=yes
27512else
27513 gcc_cv_math_func_copysignf128=no
27514fi
27515rm -f core conftest.err conftest.$ac_objext \
27516 conftest$ac_exeext conftest.$ac_ext
27517fi
27518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf128" >&5
27519$as_echo "$gcc_cv_math_func_copysignf128" >&6; }
27520 if test $gcc_cv_math_func_copysignf128 = yes; then
27521
27522cat >>confdefs.h <<_ACEOF
27523#define HAVE_COPYSIGNF128 1
27524_ACEOF
27525
27526 fi
27527
27528
27529
27530
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf128" >&5
27532$as_echo_n "checking for cosf128... " >&6; }
27533if ${gcc_cv_math_func_cosf128+:} false; then :
27534 $as_echo_n "(cached) " >&6
27535else
27536 if test x$gcc_no_link = xyes; then
27537 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27538fi
27539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27540/* end confdefs.h. */
27541
27542#ifdef HAVE_COMPLEX_H
27543#include <complex.h>
27544#endif
27545#ifdef HAVE_MATH_H
27546#include <math.h>
27547#endif
27548
27549int (*ptr)() = (int (*)())cosf128;
27550
27551int
27552main ()
27553{
27554 return 0;
27555}
27556
27557_ACEOF
27558if ac_fn_c_try_link "$LINENO"; then :
27559 gcc_cv_math_func_cosf128=yes
27560else
27561 gcc_cv_math_func_cosf128=no
27562fi
27563rm -f core conftest.err conftest.$ac_objext \
27564 conftest$ac_exeext conftest.$ac_ext
27565fi
27566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf128" >&5
27567$as_echo "$gcc_cv_math_func_cosf128" >&6; }
27568 if test $gcc_cv_math_func_cosf128 = yes; then
27569
27570cat >>confdefs.h <<_ACEOF
27571#define HAVE_COSF128 1
27572_ACEOF
27573
27574 fi
27575
27576
27577
27578
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf128" >&5
27580$as_echo_n "checking for ccosf128... " >&6; }
27581if ${gcc_cv_math_func_ccosf128+:} false; then :
27582 $as_echo_n "(cached) " >&6
27583else
27584 if test x$gcc_no_link = xyes; then
27585 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27586fi
27587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27588/* end confdefs.h. */
27589
27590#ifdef HAVE_COMPLEX_H
27591#include <complex.h>
27592#endif
27593#ifdef HAVE_MATH_H
27594#include <math.h>
27595#endif
27596
27597int (*ptr)() = (int (*)())ccosf128;
27598
27599int
27600main ()
27601{
27602 return 0;
27603}
27604
27605_ACEOF
27606if ac_fn_c_try_link "$LINENO"; then :
27607 gcc_cv_math_func_ccosf128=yes
27608else
27609 gcc_cv_math_func_ccosf128=no
27610fi
27611rm -f core conftest.err conftest.$ac_objext \
27612 conftest$ac_exeext conftest.$ac_ext
27613fi
27614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf128" >&5
27615$as_echo "$gcc_cv_math_func_ccosf128" >&6; }
27616 if test $gcc_cv_math_func_ccosf128 = yes; then
27617
27618cat >>confdefs.h <<_ACEOF
27619#define HAVE_CCOSF128 1
27620_ACEOF
27621
27622 fi
27623
27624
27625
27626
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf128" >&5
27628$as_echo_n "checking for coshf128... " >&6; }
27629if ${gcc_cv_math_func_coshf128+:} false; then :
27630 $as_echo_n "(cached) " >&6
27631else
27632 if test x$gcc_no_link = xyes; then
27633 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27634fi
27635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27636/* end confdefs.h. */
27637
27638#ifdef HAVE_COMPLEX_H
27639#include <complex.h>
27640#endif
27641#ifdef HAVE_MATH_H
27642#include <math.h>
27643#endif
27644
27645int (*ptr)() = (int (*)())coshf128;
27646
27647int
27648main ()
27649{
27650 return 0;
27651}
27652
27653_ACEOF
27654if ac_fn_c_try_link "$LINENO"; then :
27655 gcc_cv_math_func_coshf128=yes
27656else
27657 gcc_cv_math_func_coshf128=no
27658fi
27659rm -f core conftest.err conftest.$ac_objext \
27660 conftest$ac_exeext conftest.$ac_ext
27661fi
27662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf128" >&5
27663$as_echo "$gcc_cv_math_func_coshf128" >&6; }
27664 if test $gcc_cv_math_func_coshf128 = yes; then
27665
27666cat >>confdefs.h <<_ACEOF
27667#define HAVE_COSHF128 1
27668_ACEOF
27669
27670 fi
27671
27672
27673
27674
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf128" >&5
27676$as_echo_n "checking for ccoshf128... " >&6; }
27677if ${gcc_cv_math_func_ccoshf128+:} false; then :
27678 $as_echo_n "(cached) " >&6
27679else
27680 if test x$gcc_no_link = xyes; then
27681 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27682fi
27683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27684/* end confdefs.h. */
27685
27686#ifdef HAVE_COMPLEX_H
27687#include <complex.h>
27688#endif
27689#ifdef HAVE_MATH_H
27690#include <math.h>
27691#endif
27692
27693int (*ptr)() = (int (*)())ccoshf128;
27694
27695int
27696main ()
27697{
27698 return 0;
27699}
27700
27701_ACEOF
27702if ac_fn_c_try_link "$LINENO"; then :
27703 gcc_cv_math_func_ccoshf128=yes
27704else
27705 gcc_cv_math_func_ccoshf128=no
27706fi
27707rm -f core conftest.err conftest.$ac_objext \
27708 conftest$ac_exeext conftest.$ac_ext
27709fi
27710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf128" >&5
27711$as_echo "$gcc_cv_math_func_ccoshf128" >&6; }
27712 if test $gcc_cv_math_func_ccoshf128 = yes; then
27713
27714cat >>confdefs.h <<_ACEOF
27715#define HAVE_CCOSHF128 1
27716_ACEOF
27717
27718 fi
27719
27720
27721
27722
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf128" >&5
27724$as_echo_n "checking for expf128... " >&6; }
27725if ${gcc_cv_math_func_expf128+:} false; then :
27726 $as_echo_n "(cached) " >&6
27727else
27728 if test x$gcc_no_link = xyes; then
27729 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27730fi
27731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27732/* end confdefs.h. */
27733
27734#ifdef HAVE_COMPLEX_H
27735#include <complex.h>
27736#endif
27737#ifdef HAVE_MATH_H
27738#include <math.h>
27739#endif
27740
27741int (*ptr)() = (int (*)())expf128;
27742
27743int
27744main ()
27745{
27746 return 0;
27747}
27748
27749_ACEOF
27750if ac_fn_c_try_link "$LINENO"; then :
27751 gcc_cv_math_func_expf128=yes
27752else
27753 gcc_cv_math_func_expf128=no
27754fi
27755rm -f core conftest.err conftest.$ac_objext \
27756 conftest$ac_exeext conftest.$ac_ext
27757fi
27758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf128" >&5
27759$as_echo "$gcc_cv_math_func_expf128" >&6; }
27760 if test $gcc_cv_math_func_expf128 = yes; then
27761
27762cat >>confdefs.h <<_ACEOF
27763#define HAVE_EXPF128 1
27764_ACEOF
27765
27766 fi
27767
27768
27769
27770
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf128" >&5
27772$as_echo_n "checking for cexpf128... " >&6; }
27773if ${gcc_cv_math_func_cexpf128+:} false; then :
27774 $as_echo_n "(cached) " >&6
27775else
27776 if test x$gcc_no_link = xyes; then
27777 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27778fi
27779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27780/* end confdefs.h. */
27781
27782#ifdef HAVE_COMPLEX_H
27783#include <complex.h>
27784#endif
27785#ifdef HAVE_MATH_H
27786#include <math.h>
27787#endif
27788
27789int (*ptr)() = (int (*)())cexpf128;
27790
27791int
27792main ()
27793{
27794 return 0;
27795}
27796
27797_ACEOF
27798if ac_fn_c_try_link "$LINENO"; then :
27799 gcc_cv_math_func_cexpf128=yes
27800else
27801 gcc_cv_math_func_cexpf128=no
27802fi
27803rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
27805fi
27806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf128" >&5
27807$as_echo "$gcc_cv_math_func_cexpf128" >&6; }
27808 if test $gcc_cv_math_func_cexpf128 = yes; then
27809
27810cat >>confdefs.h <<_ACEOF
27811#define HAVE_CEXPF128 1
27812_ACEOF
27813
27814 fi
27815
27816
27817
27818
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf128" >&5
27820$as_echo_n "checking for fabsf128... " >&6; }
27821if ${gcc_cv_math_func_fabsf128+:} false; then :
27822 $as_echo_n "(cached) " >&6
27823else
27824 if test x$gcc_no_link = xyes; then
27825 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27826fi
27827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27828/* end confdefs.h. */
27829
27830#ifdef HAVE_COMPLEX_H
27831#include <complex.h>
27832#endif
27833#ifdef HAVE_MATH_H
27834#include <math.h>
27835#endif
27836
27837int (*ptr)() = (int (*)())fabsf128;
27838
27839int
27840main ()
27841{
27842 return 0;
27843}
27844
27845_ACEOF
27846if ac_fn_c_try_link "$LINENO"; then :
27847 gcc_cv_math_func_fabsf128=yes
27848else
27849 gcc_cv_math_func_fabsf128=no
27850fi
27851rm -f core conftest.err conftest.$ac_objext \
27852 conftest$ac_exeext conftest.$ac_ext
27853fi
27854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf128" >&5
27855$as_echo "$gcc_cv_math_func_fabsf128" >&6; }
27856 if test $gcc_cv_math_func_fabsf128 = yes; then
27857
27858cat >>confdefs.h <<_ACEOF
27859#define HAVE_FABSF128 1
27860_ACEOF
27861
27862 fi
27863
27864
27865
27866
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf128" >&5
27868$as_echo_n "checking for cabsf128... " >&6; }
27869if ${gcc_cv_math_func_cabsf128+:} false; then :
27870 $as_echo_n "(cached) " >&6
27871else
27872 if test x$gcc_no_link = xyes; then
27873 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27874fi
27875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27876/* end confdefs.h. */
27877
27878#ifdef HAVE_COMPLEX_H
27879#include <complex.h>
27880#endif
27881#ifdef HAVE_MATH_H
27882#include <math.h>
27883#endif
27884
27885int (*ptr)() = (int (*)())cabsf128;
27886
27887int
27888main ()
27889{
27890 return 0;
27891}
27892
27893_ACEOF
27894if ac_fn_c_try_link "$LINENO"; then :
27895 gcc_cv_math_func_cabsf128=yes
27896else
27897 gcc_cv_math_func_cabsf128=no
27898fi
27899rm -f core conftest.err conftest.$ac_objext \
27900 conftest$ac_exeext conftest.$ac_ext
27901fi
27902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf128" >&5
27903$as_echo "$gcc_cv_math_func_cabsf128" >&6; }
27904 if test $gcc_cv_math_func_cabsf128 = yes; then
27905
27906cat >>confdefs.h <<_ACEOF
27907#define HAVE_CABSF128 1
27908_ACEOF
27909
27910 fi
27911
27912
27913
27914
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf128" >&5
27916$as_echo_n "checking for floorf128... " >&6; }
27917if ${gcc_cv_math_func_floorf128+:} false; then :
27918 $as_echo_n "(cached) " >&6
27919else
27920 if test x$gcc_no_link = xyes; then
27921 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27922fi
27923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27924/* end confdefs.h. */
27925
27926#ifdef HAVE_COMPLEX_H
27927#include <complex.h>
27928#endif
27929#ifdef HAVE_MATH_H
27930#include <math.h>
27931#endif
27932
27933int (*ptr)() = (int (*)())floorf128;
27934
27935int
27936main ()
27937{
27938 return 0;
27939}
27940
27941_ACEOF
27942if ac_fn_c_try_link "$LINENO"; then :
27943 gcc_cv_math_func_floorf128=yes
27944else
27945 gcc_cv_math_func_floorf128=no
27946fi
27947rm -f core conftest.err conftest.$ac_objext \
27948 conftest$ac_exeext conftest.$ac_ext
27949fi
27950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf128" >&5
27951$as_echo "$gcc_cv_math_func_floorf128" >&6; }
27952 if test $gcc_cv_math_func_floorf128 = yes; then
27953
27954cat >>confdefs.h <<_ACEOF
27955#define HAVE_FLOORF128 1
27956_ACEOF
27957
27958 fi
27959
27960
27961
27962
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf128" >&5
27964$as_echo_n "checking for fmaf128... " >&6; }
27965if ${gcc_cv_math_func_fmaf128+:} false; then :
27966 $as_echo_n "(cached) " >&6
27967else
27968 if test x$gcc_no_link = xyes; then
27969 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27970fi
27971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27972/* end confdefs.h. */
27973
27974#ifdef HAVE_COMPLEX_H
27975#include <complex.h>
27976#endif
27977#ifdef HAVE_MATH_H
27978#include <math.h>
27979#endif
27980
27981int (*ptr)() = (int (*)())fmaf128;
27982
27983int
27984main ()
27985{
27986 return 0;
27987}
27988
27989_ACEOF
27990if ac_fn_c_try_link "$LINENO"; then :
27991 gcc_cv_math_func_fmaf128=yes
27992else
27993 gcc_cv_math_func_fmaf128=no
27994fi
27995rm -f core conftest.err conftest.$ac_objext \
27996 conftest$ac_exeext conftest.$ac_ext
27997fi
27998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf128" >&5
27999$as_echo "$gcc_cv_math_func_fmaf128" >&6; }
28000 if test $gcc_cv_math_func_fmaf128 = yes; then
28001
28002cat >>confdefs.h <<_ACEOF
28003#define HAVE_FMAF128 1
28004_ACEOF
28005
28006 fi
28007
28008
28009
28010
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf128" >&5
28012$as_echo_n "checking for fmodf128... " >&6; }
28013if ${gcc_cv_math_func_fmodf128+:} false; then :
28014 $as_echo_n "(cached) " >&6
28015else
28016 if test x$gcc_no_link = xyes; then
28017 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28018fi
28019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28020/* end confdefs.h. */
28021
28022#ifdef HAVE_COMPLEX_H
28023#include <complex.h>
28024#endif
28025#ifdef HAVE_MATH_H
28026#include <math.h>
28027#endif
28028
28029int (*ptr)() = (int (*)())fmodf128;
28030
28031int
28032main ()
28033{
28034 return 0;
28035}
28036
28037_ACEOF
28038if ac_fn_c_try_link "$LINENO"; then :
28039 gcc_cv_math_func_fmodf128=yes
28040else
28041 gcc_cv_math_func_fmodf128=no
28042fi
28043rm -f core conftest.err conftest.$ac_objext \
28044 conftest$ac_exeext conftest.$ac_ext
28045fi
28046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf128" >&5
28047$as_echo "$gcc_cv_math_func_fmodf128" >&6; }
28048 if test $gcc_cv_math_func_fmodf128 = yes; then
28049
28050cat >>confdefs.h <<_ACEOF
28051#define HAVE_FMODF128 1
28052_ACEOF
28053
28054 fi
28055
28056
28057
28058
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf128" >&5
28060$as_echo_n "checking for frexpf128... " >&6; }
28061if ${gcc_cv_math_func_frexpf128+:} false; then :
28062 $as_echo_n "(cached) " >&6
28063else
28064 if test x$gcc_no_link = xyes; then
28065 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28066fi
28067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28068/* end confdefs.h. */
28069
28070#ifdef HAVE_COMPLEX_H
28071#include <complex.h>
28072#endif
28073#ifdef HAVE_MATH_H
28074#include <math.h>
28075#endif
28076
28077int (*ptr)() = (int (*)())frexpf128;
28078
28079int
28080main ()
28081{
28082 return 0;
28083}
28084
28085_ACEOF
28086if ac_fn_c_try_link "$LINENO"; then :
28087 gcc_cv_math_func_frexpf128=yes
28088else
28089 gcc_cv_math_func_frexpf128=no
28090fi
28091rm -f core conftest.err conftest.$ac_objext \
28092 conftest$ac_exeext conftest.$ac_ext
28093fi
28094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf128" >&5
28095$as_echo "$gcc_cv_math_func_frexpf128" >&6; }
28096 if test $gcc_cv_math_func_frexpf128 = yes; then
28097
28098cat >>confdefs.h <<_ACEOF
28099#define HAVE_FREXPF128 1
28100_ACEOF
28101
28102 fi
28103
28104
28105
28106
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf128" >&5
28108$as_echo_n "checking for hypotf128... " >&6; }
28109if ${gcc_cv_math_func_hypotf128+:} false; then :
28110 $as_echo_n "(cached) " >&6
28111else
28112 if test x$gcc_no_link = xyes; then
28113 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28114fi
28115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28116/* end confdefs.h. */
28117
28118#ifdef HAVE_COMPLEX_H
28119#include <complex.h>
28120#endif
28121#ifdef HAVE_MATH_H
28122#include <math.h>
28123#endif
28124
28125int (*ptr)() = (int (*)())hypotf128;
28126
28127int
28128main ()
28129{
28130 return 0;
28131}
28132
28133_ACEOF
28134if ac_fn_c_try_link "$LINENO"; then :
28135 gcc_cv_math_func_hypotf128=yes
28136else
28137 gcc_cv_math_func_hypotf128=no
28138fi
28139rm -f core conftest.err conftest.$ac_objext \
28140 conftest$ac_exeext conftest.$ac_ext
28141fi
28142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf128" >&5
28143$as_echo "$gcc_cv_math_func_hypotf128" >&6; }
28144 if test $gcc_cv_math_func_hypotf128 = yes; then
28145
28146cat >>confdefs.h <<_ACEOF
28147#define HAVE_HYPOTF128 1
28148_ACEOF
28149
28150 fi
28151
28152
28153
28154
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf128" >&5
28156$as_echo_n "checking for ldexpf128... " >&6; }
28157if ${gcc_cv_math_func_ldexpf128+:} false; then :
28158 $as_echo_n "(cached) " >&6
28159else
28160 if test x$gcc_no_link = xyes; then
28161 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28162fi
28163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28164/* end confdefs.h. */
28165
28166#ifdef HAVE_COMPLEX_H
28167#include <complex.h>
28168#endif
28169#ifdef HAVE_MATH_H
28170#include <math.h>
28171#endif
28172
28173int (*ptr)() = (int (*)())ldexpf128;
28174
28175int
28176main ()
28177{
28178 return 0;
28179}
28180
28181_ACEOF
28182if ac_fn_c_try_link "$LINENO"; then :
28183 gcc_cv_math_func_ldexpf128=yes
28184else
28185 gcc_cv_math_func_ldexpf128=no
28186fi
28187rm -f core conftest.err conftest.$ac_objext \
28188 conftest$ac_exeext conftest.$ac_ext
28189fi
28190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf128" >&5
28191$as_echo "$gcc_cv_math_func_ldexpf128" >&6; }
28192 if test $gcc_cv_math_func_ldexpf128 = yes; then
28193
28194cat >>confdefs.h <<_ACEOF
28195#define HAVE_LDEXPF128 1
28196_ACEOF
28197
28198 fi
28199
28200
28201
28202
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf128" >&5
28204$as_echo_n "checking for logf128... " >&6; }
28205if ${gcc_cv_math_func_logf128+:} false; then :
28206 $as_echo_n "(cached) " >&6
28207else
28208 if test x$gcc_no_link = xyes; then
28209 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28210fi
28211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28212/* end confdefs.h. */
28213
28214#ifdef HAVE_COMPLEX_H
28215#include <complex.h>
28216#endif
28217#ifdef HAVE_MATH_H
28218#include <math.h>
28219#endif
28220
28221int (*ptr)() = (int (*)())logf128;
28222
28223int
28224main ()
28225{
28226 return 0;
28227}
28228
28229_ACEOF
28230if ac_fn_c_try_link "$LINENO"; then :
28231 gcc_cv_math_func_logf128=yes
28232else
28233 gcc_cv_math_func_logf128=no
28234fi
28235rm -f core conftest.err conftest.$ac_objext \
28236 conftest$ac_exeext conftest.$ac_ext
28237fi
28238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf128" >&5
28239$as_echo "$gcc_cv_math_func_logf128" >&6; }
28240 if test $gcc_cv_math_func_logf128 = yes; then
28241
28242cat >>confdefs.h <<_ACEOF
28243#define HAVE_LOGF128 1
28244_ACEOF
28245
28246 fi
28247
28248
28249
28250
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf128" >&5
28252$as_echo_n "checking for clogf128... " >&6; }
28253if ${gcc_cv_math_func_clogf128+:} false; then :
28254 $as_echo_n "(cached) " >&6
28255else
28256 if test x$gcc_no_link = xyes; then
28257 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28258fi
28259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28260/* end confdefs.h. */
28261
28262#ifdef HAVE_COMPLEX_H
28263#include <complex.h>
28264#endif
28265#ifdef HAVE_MATH_H
28266#include <math.h>
28267#endif
28268
28269int (*ptr)() = (int (*)())clogf128;
28270
28271int
28272main ()
28273{
28274 return 0;
28275}
28276
28277_ACEOF
28278if ac_fn_c_try_link "$LINENO"; then :
28279 gcc_cv_math_func_clogf128=yes
28280else
28281 gcc_cv_math_func_clogf128=no
28282fi
28283rm -f core conftest.err conftest.$ac_objext \
28284 conftest$ac_exeext conftest.$ac_ext
28285fi
28286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf128" >&5
28287$as_echo "$gcc_cv_math_func_clogf128" >&6; }
28288 if test $gcc_cv_math_func_clogf128 = yes; then
28289
28290cat >>confdefs.h <<_ACEOF
28291#define HAVE_CLOGF128 1
28292_ACEOF
28293
28294 fi
28295
28296
28297
28298
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f128" >&5
28300$as_echo_n "checking for log10f128... " >&6; }
28301if ${gcc_cv_math_func_log10f128+:} false; then :
28302 $as_echo_n "(cached) " >&6
28303else
28304 if test x$gcc_no_link = xyes; then
28305 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28306fi
28307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28308/* end confdefs.h. */
28309
28310#ifdef HAVE_COMPLEX_H
28311#include <complex.h>
28312#endif
28313#ifdef HAVE_MATH_H
28314#include <math.h>
28315#endif
28316
28317int (*ptr)() = (int (*)())log10f128;
28318
28319int
28320main ()
28321{
28322 return 0;
28323}
28324
28325_ACEOF
28326if ac_fn_c_try_link "$LINENO"; then :
28327 gcc_cv_math_func_log10f128=yes
28328else
28329 gcc_cv_math_func_log10f128=no
28330fi
28331rm -f core conftest.err conftest.$ac_objext \
28332 conftest$ac_exeext conftest.$ac_ext
28333fi
28334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f128" >&5
28335$as_echo "$gcc_cv_math_func_log10f128" >&6; }
28336 if test $gcc_cv_math_func_log10f128 = yes; then
28337
28338cat >>confdefs.h <<_ACEOF
28339#define HAVE_LOG10F128 1
28340_ACEOF
28341
28342 fi
28343
28344
28345
28346
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f128" >&5
28348$as_echo_n "checking for clog10f128... " >&6; }
28349if ${gcc_cv_math_func_clog10f128+:} false; then :
28350 $as_echo_n "(cached) " >&6
28351else
28352 if test x$gcc_no_link = xyes; then
28353 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28354fi
28355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28356/* end confdefs.h. */
28357
28358#ifdef HAVE_COMPLEX_H
28359#include <complex.h>
28360#endif
28361#ifdef HAVE_MATH_H
28362#include <math.h>
28363#endif
28364
28365int (*ptr)() = (int (*)())clog10f128;
28366
28367int
28368main ()
28369{
28370 return 0;
28371}
28372
28373_ACEOF
28374if ac_fn_c_try_link "$LINENO"; then :
28375 gcc_cv_math_func_clog10f128=yes
28376else
28377 gcc_cv_math_func_clog10f128=no
28378fi
28379rm -f core conftest.err conftest.$ac_objext \
28380 conftest$ac_exeext conftest.$ac_ext
28381fi
28382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f128" >&5
28383$as_echo "$gcc_cv_math_func_clog10f128" >&6; }
28384 if test $gcc_cv_math_func_clog10f128 = yes; then
28385
28386cat >>confdefs.h <<_ACEOF
28387#define HAVE_CLOG10F128 1
28388_ACEOF
28389
28390 fi
28391
28392
28393
28394
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf128" >&5
28396$as_echo_n "checking for nextafterf128... " >&6; }
28397if ${gcc_cv_math_func_nextafterf128+:} false; then :
28398 $as_echo_n "(cached) " >&6
28399else
28400 if test x$gcc_no_link = xyes; then
28401 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28402fi
28403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28404/* end confdefs.h. */
28405
28406#ifdef HAVE_COMPLEX_H
28407#include <complex.h>
28408#endif
28409#ifdef HAVE_MATH_H
28410#include <math.h>
28411#endif
28412
28413int (*ptr)() = (int (*)())nextafterf128;
28414
28415int
28416main ()
28417{
28418 return 0;
28419}
28420
28421_ACEOF
28422if ac_fn_c_try_link "$LINENO"; then :
28423 gcc_cv_math_func_nextafterf128=yes
28424else
28425 gcc_cv_math_func_nextafterf128=no
28426fi
28427rm -f core conftest.err conftest.$ac_objext \
28428 conftest$ac_exeext conftest.$ac_ext
28429fi
28430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf128" >&5
28431$as_echo "$gcc_cv_math_func_nextafterf128" >&6; }
28432 if test $gcc_cv_math_func_nextafterf128 = yes; then
28433
28434cat >>confdefs.h <<_ACEOF
28435#define HAVE_NEXTAFTERF128 1
28436_ACEOF
28437
28438 fi
28439
28440
28441
28442
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf128" >&5
28444$as_echo_n "checking for powf128... " >&6; }
28445if ${gcc_cv_math_func_powf128+:} false; then :
28446 $as_echo_n "(cached) " >&6
28447else
28448 if test x$gcc_no_link = xyes; then
28449 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28450fi
28451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28452/* end confdefs.h. */
28453
28454#ifdef HAVE_COMPLEX_H
28455#include <complex.h>
28456#endif
28457#ifdef HAVE_MATH_H
28458#include <math.h>
28459#endif
28460
28461int (*ptr)() = (int (*)())powf128;
28462
28463int
28464main ()
28465{
28466 return 0;
28467}
28468
28469_ACEOF
28470if ac_fn_c_try_link "$LINENO"; then :
28471 gcc_cv_math_func_powf128=yes
28472else
28473 gcc_cv_math_func_powf128=no
28474fi
28475rm -f core conftest.err conftest.$ac_objext \
28476 conftest$ac_exeext conftest.$ac_ext
28477fi
28478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf128" >&5
28479$as_echo "$gcc_cv_math_func_powf128" >&6; }
28480 if test $gcc_cv_math_func_powf128 = yes; then
28481
28482cat >>confdefs.h <<_ACEOF
28483#define HAVE_POWF128 1
28484_ACEOF
28485
28486 fi
28487
28488
28489
28490
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf128" >&5
28492$as_echo_n "checking for cpowf128... " >&6; }
28493if ${gcc_cv_math_func_cpowf128+:} false; then :
28494 $as_echo_n "(cached) " >&6
28495else
28496 if test x$gcc_no_link = xyes; then
28497 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28498fi
28499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28500/* end confdefs.h. */
28501
28502#ifdef HAVE_COMPLEX_H
28503#include <complex.h>
28504#endif
28505#ifdef HAVE_MATH_H
28506#include <math.h>
28507#endif
28508
28509int (*ptr)() = (int (*)())cpowf128;
28510
28511int
28512main ()
28513{
28514 return 0;
28515}
28516
28517_ACEOF
28518if ac_fn_c_try_link "$LINENO"; then :
28519 gcc_cv_math_func_cpowf128=yes
28520else
28521 gcc_cv_math_func_cpowf128=no
28522fi
28523rm -f core conftest.err conftest.$ac_objext \
28524 conftest$ac_exeext conftest.$ac_ext
28525fi
28526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf128" >&5
28527$as_echo "$gcc_cv_math_func_cpowf128" >&6; }
28528 if test $gcc_cv_math_func_cpowf128 = yes; then
28529
28530cat >>confdefs.h <<_ACEOF
28531#define HAVE_CPOWF128 1
28532_ACEOF
28533
28534 fi
28535
28536
28537
28538
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf128" >&5
28540$as_echo_n "checking for roundf128... " >&6; }
28541if ${gcc_cv_math_func_roundf128+:} false; then :
28542 $as_echo_n "(cached) " >&6
28543else
28544 if test x$gcc_no_link = xyes; then
28545 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28546fi
28547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28548/* end confdefs.h. */
28549
28550#ifdef HAVE_COMPLEX_H
28551#include <complex.h>
28552#endif
28553#ifdef HAVE_MATH_H
28554#include <math.h>
28555#endif
28556
28557int (*ptr)() = (int (*)())roundf128;
28558
28559int
28560main ()
28561{
28562 return 0;
28563}
28564
28565_ACEOF
28566if ac_fn_c_try_link "$LINENO"; then :
28567 gcc_cv_math_func_roundf128=yes
28568else
28569 gcc_cv_math_func_roundf128=no
28570fi
28571rm -f core conftest.err conftest.$ac_objext \
28572 conftest$ac_exeext conftest.$ac_ext
28573fi
28574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf128" >&5
28575$as_echo "$gcc_cv_math_func_roundf128" >&6; }
28576 if test $gcc_cv_math_func_roundf128 = yes; then
28577
28578cat >>confdefs.h <<_ACEOF
28579#define HAVE_ROUNDF128 1
28580_ACEOF
28581
28582 fi
28583
28584
28585
28586
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf128" >&5
28588$as_echo_n "checking for lroundf128... " >&6; }
28589if ${gcc_cv_math_func_lroundf128+:} false; then :
28590 $as_echo_n "(cached) " >&6
28591else
28592 if test x$gcc_no_link = xyes; then
28593 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28594fi
28595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28596/* end confdefs.h. */
28597
28598#ifdef HAVE_COMPLEX_H
28599#include <complex.h>
28600#endif
28601#ifdef HAVE_MATH_H
28602#include <math.h>
28603#endif
28604
28605int (*ptr)() = (int (*)())lroundf128;
28606
28607int
28608main ()
28609{
28610 return 0;
28611}
28612
28613_ACEOF
28614if ac_fn_c_try_link "$LINENO"; then :
28615 gcc_cv_math_func_lroundf128=yes
28616else
28617 gcc_cv_math_func_lroundf128=no
28618fi
28619rm -f core conftest.err conftest.$ac_objext \
28620 conftest$ac_exeext conftest.$ac_ext
28621fi
28622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf128" >&5
28623$as_echo "$gcc_cv_math_func_lroundf128" >&6; }
28624 if test $gcc_cv_math_func_lroundf128 = yes; then
28625
28626cat >>confdefs.h <<_ACEOF
28627#define HAVE_LROUNDF128 1
28628_ACEOF
28629
28630 fi
28631
28632
28633
28634
28635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf128" >&5
28636$as_echo_n "checking for llroundf128... " >&6; }
28637if ${gcc_cv_math_func_llroundf128+:} false; then :
28638 $as_echo_n "(cached) " >&6
28639else
28640 if test x$gcc_no_link = xyes; then
28641 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28642fi
28643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28644/* end confdefs.h. */
28645
28646#ifdef HAVE_COMPLEX_H
28647#include <complex.h>
28648#endif
28649#ifdef HAVE_MATH_H
28650#include <math.h>
28651#endif
28652
28653int (*ptr)() = (int (*)())llroundf128;
28654
28655int
28656main ()
28657{
28658 return 0;
28659}
28660
28661_ACEOF
28662if ac_fn_c_try_link "$LINENO"; then :
28663 gcc_cv_math_func_llroundf128=yes
28664else
28665 gcc_cv_math_func_llroundf128=no
28666fi
28667rm -f core conftest.err conftest.$ac_objext \
28668 conftest$ac_exeext conftest.$ac_ext
28669fi
28670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf128" >&5
28671$as_echo "$gcc_cv_math_func_llroundf128" >&6; }
28672 if test $gcc_cv_math_func_llroundf128 = yes; then
28673
28674cat >>confdefs.h <<_ACEOF
28675#define HAVE_LLROUNDF128 1
28676_ACEOF
28677
28678 fi
28679
28680
28681
28682
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf128" >&5
28684$as_echo_n "checking for scalbnf128... " >&6; }
28685if ${gcc_cv_math_func_scalbnf128+:} false; then :
28686 $as_echo_n "(cached) " >&6
28687else
28688 if test x$gcc_no_link = xyes; then
28689 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28690fi
28691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28692/* end confdefs.h. */
28693
28694#ifdef HAVE_COMPLEX_H
28695#include <complex.h>
28696#endif
28697#ifdef HAVE_MATH_H
28698#include <math.h>
28699#endif
28700
28701int (*ptr)() = (int (*)())scalbnf128;
28702
28703int
28704main ()
28705{
28706 return 0;
28707}
28708
28709_ACEOF
28710if ac_fn_c_try_link "$LINENO"; then :
28711 gcc_cv_math_func_scalbnf128=yes
28712else
28713 gcc_cv_math_func_scalbnf128=no
28714fi
28715rm -f core conftest.err conftest.$ac_objext \
28716 conftest$ac_exeext conftest.$ac_ext
28717fi
28718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf128" >&5
28719$as_echo "$gcc_cv_math_func_scalbnf128" >&6; }
28720 if test $gcc_cv_math_func_scalbnf128 = yes; then
28721
28722cat >>confdefs.h <<_ACEOF
28723#define HAVE_SCALBNF128 1
28724_ACEOF
28725
28726 fi
28727
28728
28729
28730
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf128" >&5
28732$as_echo_n "checking for sinf128... " >&6; }
28733if ${gcc_cv_math_func_sinf128+:} false; then :
28734 $as_echo_n "(cached) " >&6
28735else
28736 if test x$gcc_no_link = xyes; then
28737 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28738fi
28739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28740/* end confdefs.h. */
28741
28742#ifdef HAVE_COMPLEX_H
28743#include <complex.h>
28744#endif
28745#ifdef HAVE_MATH_H
28746#include <math.h>
28747#endif
28748
28749int (*ptr)() = (int (*)())sinf128;
28750
28751int
28752main ()
28753{
28754 return 0;
28755}
28756
28757_ACEOF
28758if ac_fn_c_try_link "$LINENO"; then :
28759 gcc_cv_math_func_sinf128=yes
28760else
28761 gcc_cv_math_func_sinf128=no
28762fi
28763rm -f core conftest.err conftest.$ac_objext \
28764 conftest$ac_exeext conftest.$ac_ext
28765fi
28766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf128" >&5
28767$as_echo "$gcc_cv_math_func_sinf128" >&6; }
28768 if test $gcc_cv_math_func_sinf128 = yes; then
28769
28770cat >>confdefs.h <<_ACEOF
28771#define HAVE_SINF128 1
28772_ACEOF
28773
28774 fi
28775
28776
28777
28778
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf128" >&5
28780$as_echo_n "checking for csinf128... " >&6; }
28781if ${gcc_cv_math_func_csinf128+:} false; then :
28782 $as_echo_n "(cached) " >&6
28783else
28784 if test x$gcc_no_link = xyes; then
28785 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28786fi
28787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28788/* end confdefs.h. */
28789
28790#ifdef HAVE_COMPLEX_H
28791#include <complex.h>
28792#endif
28793#ifdef HAVE_MATH_H
28794#include <math.h>
28795#endif
28796
28797int (*ptr)() = (int (*)())csinf128;
28798
28799int
28800main ()
28801{
28802 return 0;
28803}
28804
28805_ACEOF
28806if ac_fn_c_try_link "$LINENO"; then :
28807 gcc_cv_math_func_csinf128=yes
28808else
28809 gcc_cv_math_func_csinf128=no
28810fi
28811rm -f core conftest.err conftest.$ac_objext \
28812 conftest$ac_exeext conftest.$ac_ext
28813fi
28814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf128" >&5
28815$as_echo "$gcc_cv_math_func_csinf128" >&6; }
28816 if test $gcc_cv_math_func_csinf128 = yes; then
28817
28818cat >>confdefs.h <<_ACEOF
28819#define HAVE_CSINF128 1
28820_ACEOF
28821
28822 fi
28823
28824
28825
28826
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf128" >&5
28828$as_echo_n "checking for sinhf128... " >&6; }
28829if ${gcc_cv_math_func_sinhf128+:} false; then :
28830 $as_echo_n "(cached) " >&6
28831else
28832 if test x$gcc_no_link = xyes; then
28833 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28834fi
28835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28836/* end confdefs.h. */
28837
28838#ifdef HAVE_COMPLEX_H
28839#include <complex.h>
28840#endif
28841#ifdef HAVE_MATH_H
28842#include <math.h>
28843#endif
28844
28845int (*ptr)() = (int (*)())sinhf128;
28846
28847int
28848main ()
28849{
28850 return 0;
28851}
28852
28853_ACEOF
28854if ac_fn_c_try_link "$LINENO"; then :
28855 gcc_cv_math_func_sinhf128=yes
28856else
28857 gcc_cv_math_func_sinhf128=no
28858fi
28859rm -f core conftest.err conftest.$ac_objext \
28860 conftest$ac_exeext conftest.$ac_ext
28861fi
28862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf128" >&5
28863$as_echo "$gcc_cv_math_func_sinhf128" >&6; }
28864 if test $gcc_cv_math_func_sinhf128 = yes; then
28865
28866cat >>confdefs.h <<_ACEOF
28867#define HAVE_SINHF128 1
28868_ACEOF
28869
28870 fi
28871
28872
28873
28874
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf128" >&5
28876$as_echo_n "checking for csinhf128... " >&6; }
28877if ${gcc_cv_math_func_csinhf128+:} false; then :
28878 $as_echo_n "(cached) " >&6
28879else
28880 if test x$gcc_no_link = xyes; then
28881 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28882fi
28883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28884/* end confdefs.h. */
28885
28886#ifdef HAVE_COMPLEX_H
28887#include <complex.h>
28888#endif
28889#ifdef HAVE_MATH_H
28890#include <math.h>
28891#endif
28892
28893int (*ptr)() = (int (*)())csinhf128;
28894
28895int
28896main ()
28897{
28898 return 0;
28899}
28900
28901_ACEOF
28902if ac_fn_c_try_link "$LINENO"; then :
28903 gcc_cv_math_func_csinhf128=yes
28904else
28905 gcc_cv_math_func_csinhf128=no
28906fi
28907rm -f core conftest.err conftest.$ac_objext \
28908 conftest$ac_exeext conftest.$ac_ext
28909fi
28910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf128" >&5
28911$as_echo "$gcc_cv_math_func_csinhf128" >&6; }
28912 if test $gcc_cv_math_func_csinhf128 = yes; then
28913
28914cat >>confdefs.h <<_ACEOF
28915#define HAVE_CSINHF128 1
28916_ACEOF
28917
28918 fi
28919
28920
28921
28922
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf128" >&5
28924$as_echo_n "checking for sqrtf128... " >&6; }
28925if ${gcc_cv_math_func_sqrtf128+:} false; then :
28926 $as_echo_n "(cached) " >&6
28927else
28928 if test x$gcc_no_link = xyes; then
28929 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28930fi
28931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28932/* end confdefs.h. */
28933
28934#ifdef HAVE_COMPLEX_H
28935#include <complex.h>
28936#endif
28937#ifdef HAVE_MATH_H
28938#include <math.h>
28939#endif
28940
28941int (*ptr)() = (int (*)())sqrtf128;
28942
28943int
28944main ()
28945{
28946 return 0;
28947}
28948
28949_ACEOF
28950if ac_fn_c_try_link "$LINENO"; then :
28951 gcc_cv_math_func_sqrtf128=yes
28952else
28953 gcc_cv_math_func_sqrtf128=no
28954fi
28955rm -f core conftest.err conftest.$ac_objext \
28956 conftest$ac_exeext conftest.$ac_ext
28957fi
28958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf128" >&5
28959$as_echo "$gcc_cv_math_func_sqrtf128" >&6; }
28960 if test $gcc_cv_math_func_sqrtf128 = yes; then
28961
28962cat >>confdefs.h <<_ACEOF
28963#define HAVE_SQRTF128 1
28964_ACEOF
28965
28966 fi
28967
28968
28969
28970
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf128" >&5
28972$as_echo_n "checking for csqrtf128... " >&6; }
28973if ${gcc_cv_math_func_csqrtf128+:} false; then :
28974 $as_echo_n "(cached) " >&6
28975else
28976 if test x$gcc_no_link = xyes; then
28977 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28978fi
28979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28980/* end confdefs.h. */
28981
28982#ifdef HAVE_COMPLEX_H
28983#include <complex.h>
28984#endif
28985#ifdef HAVE_MATH_H
28986#include <math.h>
28987#endif
28988
28989int (*ptr)() = (int (*)())csqrtf128;
28990
28991int
28992main ()
28993{
28994 return 0;
28995}
28996
28997_ACEOF
28998if ac_fn_c_try_link "$LINENO"; then :
28999 gcc_cv_math_func_csqrtf128=yes
29000else
29001 gcc_cv_math_func_csqrtf128=no
29002fi
29003rm -f core conftest.err conftest.$ac_objext \
29004 conftest$ac_exeext conftest.$ac_ext
29005fi
29006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf128" >&5
29007$as_echo "$gcc_cv_math_func_csqrtf128" >&6; }
29008 if test $gcc_cv_math_func_csqrtf128 = yes; then
29009
29010cat >>confdefs.h <<_ACEOF
29011#define HAVE_CSQRTF128 1
29012_ACEOF
29013
29014 fi
29015
29016
29017
29018
29019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf128" >&5
29020$as_echo_n "checking for tanf128... " >&6; }
29021if ${gcc_cv_math_func_tanf128+:} false; then :
29022 $as_echo_n "(cached) " >&6
29023else
29024 if test x$gcc_no_link = xyes; then
29025 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29026fi
29027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29028/* end confdefs.h. */
29029
29030#ifdef HAVE_COMPLEX_H
29031#include <complex.h>
29032#endif
29033#ifdef HAVE_MATH_H
29034#include <math.h>
29035#endif
29036
29037int (*ptr)() = (int (*)())tanf128;
29038
29039int
29040main ()
29041{
29042 return 0;
29043}
29044
29045_ACEOF
29046if ac_fn_c_try_link "$LINENO"; then :
29047 gcc_cv_math_func_tanf128=yes
29048else
29049 gcc_cv_math_func_tanf128=no
29050fi
29051rm -f core conftest.err conftest.$ac_objext \
29052 conftest$ac_exeext conftest.$ac_ext
29053fi
29054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf128" >&5
29055$as_echo "$gcc_cv_math_func_tanf128" >&6; }
29056 if test $gcc_cv_math_func_tanf128 = yes; then
29057
29058cat >>confdefs.h <<_ACEOF
29059#define HAVE_TANF128 1
29060_ACEOF
29061
29062 fi
29063
29064
29065
29066
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf128" >&5
29068$as_echo_n "checking for ctanf128... " >&6; }
29069if ${gcc_cv_math_func_ctanf128+:} false; then :
29070 $as_echo_n "(cached) " >&6
29071else
29072 if test x$gcc_no_link = xyes; then
29073 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29074fi
29075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29076/* end confdefs.h. */
29077
29078#ifdef HAVE_COMPLEX_H
29079#include <complex.h>
29080#endif
29081#ifdef HAVE_MATH_H
29082#include <math.h>
29083#endif
29084
29085int (*ptr)() = (int (*)())ctanf128;
29086
29087int
29088main ()
29089{
29090 return 0;
29091}
29092
29093_ACEOF
29094if ac_fn_c_try_link "$LINENO"; then :
29095 gcc_cv_math_func_ctanf128=yes
29096else
29097 gcc_cv_math_func_ctanf128=no
29098fi
29099rm -f core conftest.err conftest.$ac_objext \
29100 conftest$ac_exeext conftest.$ac_ext
29101fi
29102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf128" >&5
29103$as_echo "$gcc_cv_math_func_ctanf128" >&6; }
29104 if test $gcc_cv_math_func_ctanf128 = yes; then
29105
29106cat >>confdefs.h <<_ACEOF
29107#define HAVE_CTANF128 1
29108_ACEOF
29109
29110 fi
29111
29112
29113
29114
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf128" >&5
29116$as_echo_n "checking for tanhf128... " >&6; }
29117if ${gcc_cv_math_func_tanhf128+:} false; then :
29118 $as_echo_n "(cached) " >&6
29119else
29120 if test x$gcc_no_link = xyes; then
29121 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29122fi
29123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29124/* end confdefs.h. */
29125
29126#ifdef HAVE_COMPLEX_H
29127#include <complex.h>
29128#endif
29129#ifdef HAVE_MATH_H
29130#include <math.h>
29131#endif
29132
29133int (*ptr)() = (int (*)())tanhf128;
29134
29135int
29136main ()
29137{
29138 return 0;
29139}
29140
29141_ACEOF
29142if ac_fn_c_try_link "$LINENO"; then :
29143 gcc_cv_math_func_tanhf128=yes
29144else
29145 gcc_cv_math_func_tanhf128=no
29146fi
29147rm -f core conftest.err conftest.$ac_objext \
29148 conftest$ac_exeext conftest.$ac_ext
29149fi
29150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf128" >&5
29151$as_echo "$gcc_cv_math_func_tanhf128" >&6; }
29152 if test $gcc_cv_math_func_tanhf128 = yes; then
29153
29154cat >>confdefs.h <<_ACEOF
29155#define HAVE_TANHF128 1
29156_ACEOF
29157
29158 fi
29159
29160
29161
29162
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf128" >&5
29164$as_echo_n "checking for ctanhf128... " >&6; }
29165if ${gcc_cv_math_func_ctanhf128+:} false; then :
29166 $as_echo_n "(cached) " >&6
29167else
29168 if test x$gcc_no_link = xyes; then
29169 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29170fi
29171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29172/* end confdefs.h. */
29173
29174#ifdef HAVE_COMPLEX_H
29175#include <complex.h>
29176#endif
29177#ifdef HAVE_MATH_H
29178#include <math.h>
29179#endif
29180
29181int (*ptr)() = (int (*)())ctanhf128;
29182
29183int
29184main ()
29185{
29186 return 0;
29187}
29188
29189_ACEOF
29190if ac_fn_c_try_link "$LINENO"; then :
29191 gcc_cv_math_func_ctanhf128=yes
29192else
29193 gcc_cv_math_func_ctanhf128=no
29194fi
29195rm -f core conftest.err conftest.$ac_objext \
29196 conftest$ac_exeext conftest.$ac_ext
29197fi
29198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf128" >&5
29199$as_echo "$gcc_cv_math_func_ctanhf128" >&6; }
29200 if test $gcc_cv_math_func_ctanhf128 = yes; then
29201
29202cat >>confdefs.h <<_ACEOF
29203#define HAVE_CTANHF128 1
29204_ACEOF
29205
29206 fi
29207
29208
29209
29210
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf128" >&5
29212$as_echo_n "checking for truncf128... " >&6; }
29213if ${gcc_cv_math_func_truncf128+:} false; then :
29214 $as_echo_n "(cached) " >&6
29215else
29216 if test x$gcc_no_link = xyes; then
29217 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29218fi
29219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29220/* end confdefs.h. */
29221
29222#ifdef HAVE_COMPLEX_H
29223#include <complex.h>
29224#endif
29225#ifdef HAVE_MATH_H
29226#include <math.h>
29227#endif
29228
29229int (*ptr)() = (int (*)())truncf128;
29230
29231int
29232main ()
29233{
29234 return 0;
29235}
29236
29237_ACEOF
29238if ac_fn_c_try_link "$LINENO"; then :
29239 gcc_cv_math_func_truncf128=yes
29240else
29241 gcc_cv_math_func_truncf128=no
29242fi
29243rm -f core conftest.err conftest.$ac_objext \
29244 conftest$ac_exeext conftest.$ac_ext
29245fi
29246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf128" >&5
29247$as_echo "$gcc_cv_math_func_truncf128" >&6; }
29248 if test $gcc_cv_math_func_truncf128 = yes; then
29249
29250cat >>confdefs.h <<_ACEOF
29251#define HAVE_TRUNCF128 1
29252_ACEOF
29253
29254 fi
29255
29256
29257
29258
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff128" >&5
29260$as_echo_n "checking for erff128... " >&6; }
29261if ${gcc_cv_math_func_erff128+:} false; then :
29262 $as_echo_n "(cached) " >&6
29263else
29264 if test x$gcc_no_link = xyes; then
29265 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29266fi
29267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29268/* end confdefs.h. */
29269
29270#ifdef HAVE_COMPLEX_H
29271#include <complex.h>
29272#endif
29273#ifdef HAVE_MATH_H
29274#include <math.h>
29275#endif
29276
29277int (*ptr)() = (int (*)())erff128;
29278
29279int
29280main ()
29281{
29282 return 0;
29283}
29284
29285_ACEOF
29286if ac_fn_c_try_link "$LINENO"; then :
29287 gcc_cv_math_func_erff128=yes
29288else
29289 gcc_cv_math_func_erff128=no
29290fi
29291rm -f core conftest.err conftest.$ac_objext \
29292 conftest$ac_exeext conftest.$ac_ext
29293fi
29294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff128" >&5
29295$as_echo "$gcc_cv_math_func_erff128" >&6; }
29296 if test $gcc_cv_math_func_erff128 = yes; then
29297
29298cat >>confdefs.h <<_ACEOF
29299#define HAVE_ERFF128 1
29300_ACEOF
29301
29302 fi
29303
29304
29305
29306
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf128" >&5
29308$as_echo_n "checking for erfcf128... " >&6; }
29309if ${gcc_cv_math_func_erfcf128+:} false; then :
29310 $as_echo_n "(cached) " >&6
29311else
29312 if test x$gcc_no_link = xyes; then
29313 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29314fi
29315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29316/* end confdefs.h. */
29317
29318#ifdef HAVE_COMPLEX_H
29319#include <complex.h>
29320#endif
29321#ifdef HAVE_MATH_H
29322#include <math.h>
29323#endif
29324
29325int (*ptr)() = (int (*)())erfcf128;
29326
29327int
29328main ()
29329{
29330 return 0;
29331}
29332
29333_ACEOF
29334if ac_fn_c_try_link "$LINENO"; then :
29335 gcc_cv_math_func_erfcf128=yes
29336else
29337 gcc_cv_math_func_erfcf128=no
29338fi
29339rm -f core conftest.err conftest.$ac_objext \
29340 conftest$ac_exeext conftest.$ac_ext
29341fi
29342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf128" >&5
29343$as_echo "$gcc_cv_math_func_erfcf128" >&6; }
29344 if test $gcc_cv_math_func_erfcf128 = yes; then
29345
29346cat >>confdefs.h <<_ACEOF
29347#define HAVE_ERFCF128 1
29348_ACEOF
29349
29350 fi
29351
29352
29353
29354
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f128" >&5
29356$as_echo_n "checking for j0f128... " >&6; }
29357if ${gcc_cv_math_func_j0f128+:} false; then :
29358 $as_echo_n "(cached) " >&6
29359else
29360 if test x$gcc_no_link = xyes; then
29361 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29362fi
29363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29364/* end confdefs.h. */
29365
29366#ifdef HAVE_COMPLEX_H
29367#include <complex.h>
29368#endif
29369#ifdef HAVE_MATH_H
29370#include <math.h>
29371#endif
29372
29373int (*ptr)() = (int (*)())j0f128;
29374
29375int
29376main ()
29377{
29378 return 0;
29379}
29380
29381_ACEOF
29382if ac_fn_c_try_link "$LINENO"; then :
29383 gcc_cv_math_func_j0f128=yes
29384else
29385 gcc_cv_math_func_j0f128=no
29386fi
29387rm -f core conftest.err conftest.$ac_objext \
29388 conftest$ac_exeext conftest.$ac_ext
29389fi
29390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f128" >&5
29391$as_echo "$gcc_cv_math_func_j0f128" >&6; }
29392 if test $gcc_cv_math_func_j0f128 = yes; then
29393
29394cat >>confdefs.h <<_ACEOF
29395#define HAVE_J0F128 1
29396_ACEOF
29397
29398 fi
29399
29400
29401
29402
29403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f128" >&5
29404$as_echo_n "checking for j1f128... " >&6; }
29405if ${gcc_cv_math_func_j1f128+:} false; then :
29406 $as_echo_n "(cached) " >&6
29407else
29408 if test x$gcc_no_link = xyes; then
29409 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29410fi
29411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29412/* end confdefs.h. */
29413
29414#ifdef HAVE_COMPLEX_H
29415#include <complex.h>
29416#endif
29417#ifdef HAVE_MATH_H
29418#include <math.h>
29419#endif
29420
29421int (*ptr)() = (int (*)())j1f128;
29422
29423int
29424main ()
29425{
29426 return 0;
29427}
29428
29429_ACEOF
29430if ac_fn_c_try_link "$LINENO"; then :
29431 gcc_cv_math_func_j1f128=yes
29432else
29433 gcc_cv_math_func_j1f128=no
29434fi
29435rm -f core conftest.err conftest.$ac_objext \
29436 conftest$ac_exeext conftest.$ac_ext
29437fi
29438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f128" >&5
29439$as_echo "$gcc_cv_math_func_j1f128" >&6; }
29440 if test $gcc_cv_math_func_j1f128 = yes; then
29441
29442cat >>confdefs.h <<_ACEOF
29443#define HAVE_J1F128 1
29444_ACEOF
29445
29446 fi
29447
29448
29449
29450
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf128" >&5
29452$as_echo_n "checking for jnf128... " >&6; }
29453if ${gcc_cv_math_func_jnf128+:} false; then :
29454 $as_echo_n "(cached) " >&6
29455else
29456 if test x$gcc_no_link = xyes; then
29457 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29458fi
29459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29460/* end confdefs.h. */
29461
29462#ifdef HAVE_COMPLEX_H
29463#include <complex.h>
29464#endif
29465#ifdef HAVE_MATH_H
29466#include <math.h>
29467#endif
29468
29469int (*ptr)() = (int (*)())jnf128;
29470
29471int
29472main ()
29473{
29474 return 0;
29475}
29476
29477_ACEOF
29478if ac_fn_c_try_link "$LINENO"; then :
29479 gcc_cv_math_func_jnf128=yes
29480else
29481 gcc_cv_math_func_jnf128=no
29482fi
29483rm -f core conftest.err conftest.$ac_objext \
29484 conftest$ac_exeext conftest.$ac_ext
29485fi
29486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf128" >&5
29487$as_echo "$gcc_cv_math_func_jnf128" >&6; }
29488 if test $gcc_cv_math_func_jnf128 = yes; then
29489
29490cat >>confdefs.h <<_ACEOF
29491#define HAVE_JNF128 1
29492_ACEOF
29493
29494 fi
29495
29496
29497
29498
29499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f128" >&5
29500$as_echo_n "checking for y0f128... " >&6; }
29501if ${gcc_cv_math_func_y0f128+:} false; then :
29502 $as_echo_n "(cached) " >&6
29503else
29504 if test x$gcc_no_link = xyes; then
29505 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29506fi
29507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29508/* end confdefs.h. */
29509
29510#ifdef HAVE_COMPLEX_H
29511#include <complex.h>
29512#endif
29513#ifdef HAVE_MATH_H
29514#include <math.h>
29515#endif
29516
29517int (*ptr)() = (int (*)())y0f128;
29518
29519int
29520main ()
29521{
29522 return 0;
29523}
29524
29525_ACEOF
29526if ac_fn_c_try_link "$LINENO"; then :
29527 gcc_cv_math_func_y0f128=yes
29528else
29529 gcc_cv_math_func_y0f128=no
29530fi
29531rm -f core conftest.err conftest.$ac_objext \
29532 conftest$ac_exeext conftest.$ac_ext
29533fi
29534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f128" >&5
29535$as_echo "$gcc_cv_math_func_y0f128" >&6; }
29536 if test $gcc_cv_math_func_y0f128 = yes; then
29537
29538cat >>confdefs.h <<_ACEOF
29539#define HAVE_Y0F128 1
29540_ACEOF
29541
29542 fi
29543
29544
29545
29546
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f128" >&5
29548$as_echo_n "checking for y1f128... " >&6; }
29549if ${gcc_cv_math_func_y1f128+:} false; then :
29550 $as_echo_n "(cached) " >&6
29551else
29552 if test x$gcc_no_link = xyes; then
29553 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29554fi
29555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29556/* end confdefs.h. */
29557
29558#ifdef HAVE_COMPLEX_H
29559#include <complex.h>
29560#endif
29561#ifdef HAVE_MATH_H
29562#include <math.h>
29563#endif
29564
29565int (*ptr)() = (int (*)())y1f128;
29566
29567int
29568main ()
29569{
29570 return 0;
29571}
29572
29573_ACEOF
29574if ac_fn_c_try_link "$LINENO"; then :
29575 gcc_cv_math_func_y1f128=yes
29576else
29577 gcc_cv_math_func_y1f128=no
29578fi
29579rm -f core conftest.err conftest.$ac_objext \
29580 conftest$ac_exeext conftest.$ac_ext
29581fi
29582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f128" >&5
29583$as_echo "$gcc_cv_math_func_y1f128" >&6; }
29584 if test $gcc_cv_math_func_y1f128 = yes; then
29585
29586cat >>confdefs.h <<_ACEOF
29587#define HAVE_Y1F128 1
29588_ACEOF
29589
29590 fi
29591
29592
29593
29594
29595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf128" >&5
29596$as_echo_n "checking for ynf128... " >&6; }
29597if ${gcc_cv_math_func_ynf128+:} false; then :
29598 $as_echo_n "(cached) " >&6
29599else
29600 if test x$gcc_no_link = xyes; then
29601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29602fi
29603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29604/* end confdefs.h. */
29605
29606#ifdef HAVE_COMPLEX_H
29607#include <complex.h>
29608#endif
29609#ifdef HAVE_MATH_H
29610#include <math.h>
29611#endif
29612
29613int (*ptr)() = (int (*)())ynf128;
29614
29615int
29616main ()
29617{
29618 return 0;
29619}
29620
29621_ACEOF
29622if ac_fn_c_try_link "$LINENO"; then :
29623 gcc_cv_math_func_ynf128=yes
29624else
29625 gcc_cv_math_func_ynf128=no
29626fi
29627rm -f core conftest.err conftest.$ac_objext \
29628 conftest$ac_exeext conftest.$ac_ext
29629fi
29630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf128" >&5
29631$as_echo "$gcc_cv_math_func_ynf128" >&6; }
29632 if test $gcc_cv_math_func_ynf128 = yes; then
29633
29634cat >>confdefs.h <<_ACEOF
29635#define HAVE_YNF128 1
29636_ACEOF
29637
29638 fi
29639
29640
29641
29642
29643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf128" >&5
29644$as_echo_n "checking for tgammaf128... " >&6; }
29645if ${gcc_cv_math_func_tgammaf128+:} false; then :
29646 $as_echo_n "(cached) " >&6
29647else
29648 if test x$gcc_no_link = xyes; then
29649 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29650fi
29651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29652/* end confdefs.h. */
29653
29654#ifdef HAVE_COMPLEX_H
29655#include <complex.h>
29656#endif
29657#ifdef HAVE_MATH_H
29658#include <math.h>
29659#endif
29660
29661int (*ptr)() = (int (*)())tgammaf128;
29662
29663int
29664main ()
29665{
29666 return 0;
29667}
29668
29669_ACEOF
29670if ac_fn_c_try_link "$LINENO"; then :
29671 gcc_cv_math_func_tgammaf128=yes
29672else
29673 gcc_cv_math_func_tgammaf128=no
29674fi
29675rm -f core conftest.err conftest.$ac_objext \
29676 conftest$ac_exeext conftest.$ac_ext
29677fi
29678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf128" >&5
29679$as_echo "$gcc_cv_math_func_tgammaf128" >&6; }
29680 if test $gcc_cv_math_func_tgammaf128 = yes; then
29681
29682cat >>confdefs.h <<_ACEOF
29683#define HAVE_TGAMMAF128 1
29684_ACEOF
29685
29686 fi
29687
29688
29689
29690
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf128" >&5
29692$as_echo_n "checking for lgammaf128... " >&6; }
29693if ${gcc_cv_math_func_lgammaf128+:} false; then :
29694 $as_echo_n "(cached) " >&6
29695else
29696 if test x$gcc_no_link = xyes; then
29697 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29698fi
29699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29700/* end confdefs.h. */
29701
29702#ifdef HAVE_COMPLEX_H
29703#include <complex.h>
29704#endif
29705#ifdef HAVE_MATH_H
29706#include <math.h>
29707#endif
29708
29709int (*ptr)() = (int (*)())lgammaf128;
29710
29711int
29712main ()
29713{
29714 return 0;
29715}
29716
29717_ACEOF
29718if ac_fn_c_try_link "$LINENO"; then :
29719 gcc_cv_math_func_lgammaf128=yes
29720else
29721 gcc_cv_math_func_lgammaf128=no
29722fi
29723rm -f core conftest.err conftest.$ac_objext \
29724 conftest$ac_exeext conftest.$ac_ext
29725fi
29726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf128" >&5
29727$as_echo "$gcc_cv_math_func_lgammaf128" >&6; }
29728 if test $gcc_cv_math_func_lgammaf128 = yes; then
29729
29730cat >>confdefs.h <<_ACEOF
29731#define HAVE_LGAMMAF128 1
29732_ACEOF
29733
29734 fi
29735
29736
29737
29738
29739
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf128" >&5
29741$as_echo_n "checking for cacosf128... " >&6; }
29742if ${gcc_cv_math_func_cacosf128+:} false; then :
29743 $as_echo_n "(cached) " >&6
29744else
29745 if test x$gcc_no_link = xyes; then
29746 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29747fi
29748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29749/* end confdefs.h. */
29750
29751#ifdef HAVE_COMPLEX_H
29752#include <complex.h>
29753#endif
29754#ifdef HAVE_MATH_H
29755#include <math.h>
29756#endif
29757
29758int (*ptr)() = (int (*)())cacosf128;
29759
29760int
29761main ()
29762{
29763 return 0;
29764}
29765
29766_ACEOF
29767if ac_fn_c_try_link "$LINENO"; then :
29768 gcc_cv_math_func_cacosf128=yes
29769else
29770 gcc_cv_math_func_cacosf128=no
29771fi
29772rm -f core conftest.err conftest.$ac_objext \
29773 conftest$ac_exeext conftest.$ac_ext
29774fi
29775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf128" >&5
29776$as_echo "$gcc_cv_math_func_cacosf128" >&6; }
29777 if test $gcc_cv_math_func_cacosf128 = yes; then
29778
29779cat >>confdefs.h <<_ACEOF
29780#define HAVE_CACOSF128 1
29781_ACEOF
29782
29783 fi
29784
29785
29786
29787
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf128" >&5
29789$as_echo_n "checking for cacoshf128... " >&6; }
29790if ${gcc_cv_math_func_cacoshf128+:} false; then :
29791 $as_echo_n "(cached) " >&6
29792else
29793 if test x$gcc_no_link = xyes; then
29794 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29795fi
29796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29797/* end confdefs.h. */
29798
29799#ifdef HAVE_COMPLEX_H
29800#include <complex.h>
29801#endif
29802#ifdef HAVE_MATH_H
29803#include <math.h>
29804#endif
29805
29806int (*ptr)() = (int (*)())cacoshf128;
29807
29808int
29809main ()
29810{
29811 return 0;
29812}
29813
29814_ACEOF
29815if ac_fn_c_try_link "$LINENO"; then :
29816 gcc_cv_math_func_cacoshf128=yes
29817else
29818 gcc_cv_math_func_cacoshf128=no
29819fi
29820rm -f core conftest.err conftest.$ac_objext \
29821 conftest$ac_exeext conftest.$ac_ext
29822fi
29823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf128" >&5
29824$as_echo "$gcc_cv_math_func_cacoshf128" >&6; }
29825 if test $gcc_cv_math_func_cacoshf128 = yes; then
29826
29827cat >>confdefs.h <<_ACEOF
29828#define HAVE_CACOSHF128 1
29829_ACEOF
29830
29831 fi
29832
29833
29834
29835
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf128" >&5
29837$as_echo_n "checking for casinf128... " >&6; }
29838if ${gcc_cv_math_func_casinf128+:} false; then :
29839 $as_echo_n "(cached) " >&6
29840else
29841 if test x$gcc_no_link = xyes; then
29842 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29843fi
29844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29845/* end confdefs.h. */
29846
29847#ifdef HAVE_COMPLEX_H
29848#include <complex.h>
29849#endif
29850#ifdef HAVE_MATH_H
29851#include <math.h>
29852#endif
29853
29854int (*ptr)() = (int (*)())casinf128;
29855
29856int
29857main ()
29858{
29859 return 0;
29860}
29861
29862_ACEOF
29863if ac_fn_c_try_link "$LINENO"; then :
29864 gcc_cv_math_func_casinf128=yes
29865else
29866 gcc_cv_math_func_casinf128=no
29867fi
29868rm -f core conftest.err conftest.$ac_objext \
29869 conftest$ac_exeext conftest.$ac_ext
29870fi
29871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf128" >&5
29872$as_echo "$gcc_cv_math_func_casinf128" >&6; }
29873 if test $gcc_cv_math_func_casinf128 = yes; then
29874
29875cat >>confdefs.h <<_ACEOF
29876#define HAVE_CASINF128 1
29877_ACEOF
29878
29879 fi
29880
29881
29882
29883
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf128" >&5
29885$as_echo_n "checking for casinhf128... " >&6; }
29886if ${gcc_cv_math_func_casinhf128+:} false; then :
29887 $as_echo_n "(cached) " >&6
29888else
29889 if test x$gcc_no_link = xyes; then
29890 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29891fi
29892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29893/* end confdefs.h. */
29894
29895#ifdef HAVE_COMPLEX_H
29896#include <complex.h>
29897#endif
29898#ifdef HAVE_MATH_H
29899#include <math.h>
29900#endif
29901
29902int (*ptr)() = (int (*)())casinhf128;
29903
29904int
29905main ()
29906{
29907 return 0;
29908}
29909
29910_ACEOF
29911if ac_fn_c_try_link "$LINENO"; then :
29912 gcc_cv_math_func_casinhf128=yes
29913else
29914 gcc_cv_math_func_casinhf128=no
29915fi
29916rm -f core conftest.err conftest.$ac_objext \
29917 conftest$ac_exeext conftest.$ac_ext
29918fi
29919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf128" >&5
29920$as_echo "$gcc_cv_math_func_casinhf128" >&6; }
29921 if test $gcc_cv_math_func_casinhf128 = yes; then
29922
29923cat >>confdefs.h <<_ACEOF
29924#define HAVE_CASINHF128 1
29925_ACEOF
29926
29927 fi
29928
29929
29930
29931
29932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf128" >&5
29933$as_echo_n "checking for catanf128... " >&6; }
29934if ${gcc_cv_math_func_catanf128+:} false; then :
29935 $as_echo_n "(cached) " >&6
29936else
29937 if test x$gcc_no_link = xyes; then
29938 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29939fi
29940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29941/* end confdefs.h. */
29942
29943#ifdef HAVE_COMPLEX_H
29944#include <complex.h>
29945#endif
29946#ifdef HAVE_MATH_H
29947#include <math.h>
29948#endif
29949
29950int (*ptr)() = (int (*)())catanf128;
29951
29952int
29953main ()
29954{
29955 return 0;
29956}
29957
29958_ACEOF
29959if ac_fn_c_try_link "$LINENO"; then :
29960 gcc_cv_math_func_catanf128=yes
29961else
29962 gcc_cv_math_func_catanf128=no
29963fi
29964rm -f core conftest.err conftest.$ac_objext \
29965 conftest$ac_exeext conftest.$ac_ext
29966fi
29967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf128" >&5
29968$as_echo "$gcc_cv_math_func_catanf128" >&6; }
29969 if test $gcc_cv_math_func_catanf128 = yes; then
29970
29971cat >>confdefs.h <<_ACEOF
29972#define HAVE_CATANF128 1
29973_ACEOF
29974
29975 fi
29976
29977
29978
29979
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf128" >&5
29981$as_echo_n "checking for catanhf128... " >&6; }
29982if ${gcc_cv_math_func_catanhf128+:} false; then :
29983 $as_echo_n "(cached) " >&6
29984else
29985 if test x$gcc_no_link = xyes; then
29986 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
29987fi
29988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29989/* end confdefs.h. */
29990
29991#ifdef HAVE_COMPLEX_H
29992#include <complex.h>
29993#endif
29994#ifdef HAVE_MATH_H
29995#include <math.h>
29996#endif
29997
29998int (*ptr)() = (int (*)())catanhf128;
29999
30000int
30001main ()
30002{
30003 return 0;
30004}
30005
30006_ACEOF
30007if ac_fn_c_try_link "$LINENO"; then :
30008 gcc_cv_math_func_catanhf128=yes
30009else
30010 gcc_cv_math_func_catanhf128=no
30011fi
30012rm -f core conftest.err conftest.$ac_objext \
30013 conftest$ac_exeext conftest.$ac_ext
30014fi
30015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf128" >&5
30016$as_echo "$gcc_cv_math_func_catanhf128" >&6; }
30017 if test $gcc_cv_math_func_catanhf128 = yes; then
30018
30019cat >>confdefs.h <<_ACEOF
30020#define HAVE_CATANHF128 1
30021_ACEOF
30022
30023 fi
30024
30025
30026# Check whether the system has a working stat()
30027
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
30029$as_echo_n "checking whether the target stat is reliable... " >&6; }
30030if ${libgfor_cv_have_working_stat+:} false; then :
30031 $as_echo_n "(cached) " >&6
30032else
30033
30034 if test "$cross_compiling" = yes; then :
30035
30036case "${target}" in
30037 *mingw*) libgfor_cv_have_working_stat=no ;;
30038 *) libgfor_cv_have_working_stat=yes;;
30039esac
30040else
30041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30042/* end confdefs.h. */
30043
30044#include <stdio.h>
30045#include <sys/types.h>
30046#include <sys/stat.h>
30047#include <unistd.h>
30048
30049int main ()
30050{
30051 FILE *f, *g;
30052 struct stat st1, st2;
30053
30054 f = fopen ("foo", "w");
30055 g = fopen ("bar", "w");
30056 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
30057 return 1;
30058 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
30059 return 1;
30060 fclose(f);
30061 fclose(g);
30062 return 0;
30063}
30064_ACEOF
30065if ac_fn_c_try_run "$LINENO"; then :
30066 libgfor_cv_have_working_stat=yes
30067else
30068 libgfor_cv_have_working_stat=no
30069fi
30070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30071 conftest.$ac_objext conftest.beam conftest.$ac_ext
30072fi
30073
30074fi
30075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
30076$as_echo "$libgfor_cv_have_working_stat" >&6; }
30077if test x"$libgfor_cv_have_working_stat" = xyes; then
30078
30079$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
30080
30081fi
30082
30083# Check whether __mingw_snprintf() is present
30084
30085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
30086$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
30087if ${libgfor_cv_have_mingw_snprintf+:} false; then :
30088 $as_echo_n "(cached) " >&6
30089else
30090
30091 if test x$gcc_no_link = xyes; then
30092 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
30093fi
30094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30095/* end confdefs.h. */
30096
30097#include <stdio.h>
30098extern int __mingw_snprintf (char *, size_t, const char *, ...);
30099
30100int
30101main ()
30102{
30103
30104__mingw_snprintf (NULL, 0, "%d\n", 1);
30105
30106 ;
30107 return 0;
30108}
30109_ACEOF
30110if ac_fn_c_try_link "$LINENO"; then :
30111 eval "libgfor_cv_have_mingw_snprintf=yes"
30112else
30113 eval "libgfor_cv_have_mingw_snprintf=no"
30114fi
30115rm -f core conftest.err conftest.$ac_objext \
30116 conftest$ac_exeext conftest.$ac_ext
30117
30118fi
30119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
30120$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
30121 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
30122
30123$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
30124
30125 fi
30126
30127
30128have_iec_60559_libc_support=no
30129if test "x$ac_cv_func_strtof128$ac_cv_func_strfromf128" = xyesyes \
30130 && test "x$gcc_cv_math_func_sinf128$gcc_cv_math_func_cacosf128" = xyesyes; then
30131 have_iec_60559_libc_support=yes
30132fi
30133
30134# Check whether libquadmath should be used
30135# Check whether --enable-libquadmath-support was given.
30136if test "${enable_libquadmath_support+set}" = set; then :
30137 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30138else
30139 if test "x$have_iec_60559_libc_support" = xyes; then
30140 ENABLE_LIBQUADMATH_SUPPORT=default
30141else
30142 ENABLE_LIBQUADMATH_SUPPORT=yes
30143fi
30144fi
30145
30146enable_libquadmath_support=
30147if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
30148 enable_libquadmath_support=no
30149elif test "${ENABLE_LIBQUADMATH_SUPPORT}" = "default" ; then
30150 enable_libquadmath_support=default
30151fi
30152
30153# Check whether we have a _Float128 type, depends on enable_libquadmath_support
30154# and have_iec_60559_libc_support.
30155
30156 LIBQUADSPEC=
30157 LIBQUADLIB=
30158 LIBQUADLIB_DEP=
30159 LIBQUADINCLUDE=
30160 USE_IEC_60559=no
30161
30162 if test "x$enable_libquadmath_support" != xno; then
30163
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable _Float128 type" >&5
30165$as_echo_n "checking whether we have a usable _Float128 type... " >&6; }
30166if ${libgfor_cv_have_float128+:} false; then :
30167 $as_echo_n "(cached) " >&6
30168else
30169
30170 if test x$gcc_no_link = xyes; then
30171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30172/* end confdefs.h. */
30173
30174 _Float128 foo (_Float128 x)
30175 {
133d0d42
JJ
30176 _Complex _Float128 z1, z2;
30177
30178 z1 = x;
30179 z2 = x / 7.F128;
30180 z2 /= z1;
30181
30182 return (_Float128) z2;
30183 }
30184
30185 _Float128 bar (_Float128 x)
30186 {
30187 return x * __builtin_huge_valf128 ();
30188 }
30189
c022c0de
JJ
30190 __float128 baz (__float128 x)
30191 {
30192 return x * __builtin_huge_valf128 ();
30193 }
30194
133d0d42
JJ
30195int
30196main ()
30197{
30198
30199 foo (1.2F128);
30200 bar (1.2F128);
c022c0de 30201 baz (1.2F128);
133d0d42
JJ
30202 foo (1.2Q);
30203 bar (1.2Q);
c022c0de 30204 baz (1.2Q);
133d0d42
JJ
30205
30206 ;
30207 return 0;
30208}
30209_ACEOF
30210if ac_fn_c_try_compile "$LINENO"; then :
30211
30212 libgfor_cv_have_float128=yes
30213
30214else
30215
30216 libgfor_cv_have_float128=no
30217
30218fi
30219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30220else
30221 if test x$gcc_no_link = xyes; then
30222 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
30223fi
30224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30225/* end confdefs.h. */
30226
30227 _Float128 foo (_Float128 x)
30228 {
133d0d42
JJ
30229 _Complex _Float128 z1, z2;
30230
30231 z1 = x;
30232 z2 = x / 7.F128;
30233 z2 /= z1;
30234
30235 return (_Float128) z2;
30236 }
30237
30238 _Float128 bar (_Float128 x)
30239 {
30240 return x * __builtin_huge_valf128 ();
30241 }
30242
c022c0de
JJ
30243 __float128 baz (__float128 x)
30244 {
30245 return x * __builtin_huge_valf128 ();
30246 }
30247
133d0d42
JJ
30248int
30249main ()
30250{
30251
30252 foo (1.2F128);
30253 bar (1.2F128);
c022c0de 30254 baz (1.2F128);
133d0d42
JJ
30255 foo (1.2Q);
30256 bar (1.2Q);
c022c0de 30257 baz (1.2Q);
133d0d42
JJ
30258
30259 ;
30260 return 0;
30261}
30262_ACEOF
30263if ac_fn_c_try_link "$LINENO"; then :
30264
30265 libgfor_cv_have_float128=yes
30266
30267else
30268
30269 libgfor_cv_have_float128=no
30270
30271fi
30272rm -f core conftest.err conftest.$ac_objext \
30273 conftest$ac_exeext conftest.$ac_ext
30274fi
30275fi
30276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
30277$as_echo "$libgfor_cv_have_float128" >&6; }
30278
30279 if test "x$have_iec_60559_libc_support$enable_libquadmath_support$libgfor_cv_have_float128" = xyesdefaultyes; then
30280 USE_IEC_60559=yes
30281 fi
30282
30283
30284 if test "x$libgfor_cv_have_float128" = xyes; then
30285 if test "x$USE_IEC_60559" = xyes; then
30286
30287$as_echo "#define USE_IEC_60559 1" >>confdefs.h
30288
30289 fi
30290
30291$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
30292
30293
30294 ac_xsave_c_werror_flag=$ac_c_werror_flag
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
30296$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
30297if ${libgfor_cv_have_as_needed+:} false; then :
30298 $as_echo_n "(cached) " >&6
30299else
30300
30301 # Test for native Solaris options first.
30302 # No whitespace after -z to pass it through -Wl.
30303 libgfor_cv_as_needed_option="-zignore"
30304 libgfor_cv_no_as_needed_option="-zrecord"
30305 save_LDFLAGS="$LDFLAGS"
30306 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
30307 libgfor_cv_have_as_needed=no
30308
30309ac_c_werror_flag=yes
30310 if test x$gcc_no_link = xyes; then
30311 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
30312fi
30313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30314/* end confdefs.h. */
30315
30316int
30317main ()
30318{
30319
30320 ;
30321 return 0;
30322}
30323_ACEOF
30324if ac_fn_c_try_link "$LINENO"; then :
30325 libgfor_cv_have_as_needed=yes
30326else
30327 libgfor_cv_have_as_needed=no
30328fi
30329rm -f core conftest.err conftest.$ac_objext \
30330 conftest$ac_exeext conftest.$ac_ext
30331 LDFLAGS="$save_LDFLAGS"
30332 if test "x$libgfor_cv_have_as_needed" = xno; then
30333 libgfor_cv_as_needed_option="--as-needed"
30334 libgfor_cv_no_as_needed_option="--no-as-needed"
30335 save_LDFLAGS="$LDFLAGS"
30336 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
30337 libgfor_cv_have_as_needed=no
30338
30339ac_c_werror_flag=yes
30340 if test x$gcc_no_link = xyes; then
30341 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
30342fi
30343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30344/* end confdefs.h. */
30345
30346int
30347main ()
30348{
30349
828012a5
RO
30350 ;
30351 return 0;
30352}
30353_ACEOF
30354if ac_fn_c_try_link "$LINENO"; then :
30355 libgfor_cv_have_as_needed=yes
30356else
30357 libgfor_cv_have_as_needed=no
30358fi
30359rm -f core conftest.err conftest.$ac_objext \
30360 conftest$ac_exeext conftest.$ac_ext
30361 LDFLAGS="$save_LDFLAGS"
30362 fi
1ec601bf
FXC
30363 ac_c_werror_flag=$ac_xsave_c_werror_flag
30364
30365fi
30366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
30367$as_echo "$libgfor_cv_have_as_needed" >&6; }
30368
745be54b
JJ
30369 touch conftest1.$ac_objext conftest2.$ac_objext
30370 LQUADMATH=-lquadmath
30371 $FC -static-libgfortran -### -o conftest \
30372 conftest1.$ac_objext -lgfortran conftest2.$ac_objext 2>&1 >/dev/null \
30373 | grep "conftest1.$ac_objext.*conftest2.$ac_objext" > conftest.cmd
30374 if grep "conftest1.$ac_objext.* -Bstatic -lgfortran -Bdynamic .*conftest2.$ac_objext" \
30375 conftest.cmd >/dev/null 2>&1; then
30376 LQUADMATH="%{static-libquadmath:-Bstatic} -lquadmath %{static-libquadmath:-Bdynamic}"
30377 elif grep "conftest1.$ac_objext.* -bstatic -lgfortran -bdynamic .*conftest2.$ac_objext" \
30378 conftest.cmd >/dev/null 2>&1; then
30379 LQUADMATH="%{static-libquadmath:-bstatic} -lquadmath %{static-libquadmath:-bdynamic}"
30380 elif grep "conftest1.$ac_objext.* -aarchive_shared -lgfortran -adefault .*conftest2.$ac_objext" \
30381 conftest.cmd >/dev/null 2>&1; then
30382 LQUADMATH="%{static-libquadmath:-aarchive_shared} -lquadmath %{static-libquadmath:-adefault}"
30383 elif grep "conftest1.$ac_objext.*libgfortran.a .*conftest2.$ac_objext" \
30384 conftest.cmd >/dev/null 2>&1; then
30385 LQUADMATH="%{static-libquadmath:libquadmath.a%s;:-lquadmath}"
30386 fi
30387 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest conftest.cmd
30388
133d0d42
JJ
30389 if test "x$libgfor_cv_have_as_needed" = xyes; then
30390 if test "x$USE_IEC_60559" = xyes; then
745be54b 30391 LIBQUADSPEC="$libgfor_cv_as_needed_option $LQUADMATH $libgfor_cv_no_as_needed_option"
133d0d42 30392 else
745be54b 30393 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} $LQUADMATH %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
133d0d42 30394 fi
1ec601bf 30395 else
745be54b 30396 LIBQUADSPEC="$LQUADMATH"
1ec601bf 30397 fi
133d0d42
JJ
30398 if test "x$USE_IEC_60559" != xyes; then
30399 if test -f ../libquadmath/libquadmath.la; then
30400 LIBQUADLIB=../libquadmath/libquadmath.la
30401 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
30402 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
30403 else
30404 LIBQUADLIB="-lquadmath"
30405 fi
1ec601bf 30406 fi
87e6d9dc 30407 else
133d0d42
JJ
30408 USE_IEC_60559=no
30409 fi
87e6d9dc 30410 fi
1ec601bf
FXC
30411
30412
30413
30414
30415
30416
1ec601bf
FXC
30417
30418
944b8b35 30419# Check for GNU libc feenableexcept
5213506e
RW
30420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
30421$as_echo_n "checking for feenableexcept in -lm... " >&6; }
22e05272 30422if ${ac_cv_lib_m_feenableexcept+:} false; then :
5213506e 30423 $as_echo_n "(cached) " >&6
944b8b35
FXC
30424else
30425 ac_check_lib_save_LIBS=$LIBS
30426LIBS="-lm $LIBS"
30427if test x$gcc_no_link = xyes; then
22e05272 30428 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 30429fi
5213506e 30430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
30431/* end confdefs.h. */
30432
5213506e
RW
30433/* Override any GCC internal prototype to avoid an error.
30434 Use char because int might match the return type of a GCC
30435 builtin and then its argument prototype would still apply. */
944b8b35
FXC
30436#ifdef __cplusplus
30437extern "C"
30438#endif
944b8b35
FXC
30439char feenableexcept ();
30440int
30441main ()
30442{
5213506e 30443return feenableexcept ();
944b8b35
FXC
30444 ;
30445 return 0;
30446}
30447_ACEOF
5213506e 30448if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
30449 ac_cv_lib_m_feenableexcept=yes
30450else
5213506e 30451 ac_cv_lib_m_feenableexcept=no
944b8b35 30452fi
5213506e
RW
30453rm -f core conftest.err conftest.$ac_objext \
30454 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
30455LIBS=$ac_check_lib_save_LIBS
30456fi
5213506e
RW
30457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
30458$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
22e05272 30459if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
944b8b35 30460 have_feenableexcept=yes
5213506e 30461$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
30462
30463fi
30464
3b14f664 30465
5c30094f 30466# At least for glibc, clock_gettime is in librt. But don't
2aadeae2
JB
30467# pull that in if it still doesn't give us the function we want. This
30468# test is copied from libgomp, and modified to not link in -lrt as
30469# libgfortran calls clock_gettime via a weak reference if it's found
30470# in librt.
deb9dd74 30471if test "$ac_cv_func_clock_gettime" = no; then
b6e7a3d1
JB
30472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
30473$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 30474if ${ac_cv_lib_rt_clock_gettime+:} false; then :
b6e7a3d1
JB
30475 $as_echo_n "(cached) " >&6
30476else
30477 ac_check_lib_save_LIBS=$LIBS
30478LIBS="-lrt $LIBS"
30479if test x$gcc_no_link = xyes; then
22e05272 30480 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b6e7a3d1
JB
30481fi
30482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30483/* end confdefs.h. */
30484
30485/* Override any GCC internal prototype to avoid an error.
30486 Use char because int might match the return type of a GCC
30487 builtin and then its argument prototype would still apply. */
30488#ifdef __cplusplus
30489extern "C"
30490#endif
30491char clock_gettime ();
30492int
30493main ()
30494{
30495return clock_gettime ();
30496 ;
30497 return 0;
30498}
30499_ACEOF
30500if ac_fn_c_try_link "$LINENO"; then :
30501 ac_cv_lib_rt_clock_gettime=yes
30502else
30503 ac_cv_lib_rt_clock_gettime=no
30504fi
30505rm -f core conftest.err conftest.$ac_objext \
30506 conftest$ac_exeext conftest.$ac_ext
30507LIBS=$ac_check_lib_save_LIBS
30508fi
30509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
30510$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 30511if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
b6e7a3d1 30512
2aadeae2 30513$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
b6e7a3d1
JB
30514
30515fi
30516
30517fi
30518
5213506e 30519# Check for SysV fpsetmask
3b14f664 30520
5213506e
RW
30521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
30522$as_echo_n "checking whether fpsetmask is present... " >&6; }
22e05272 30523if ${libgfor_cv_have_fpsetmask+:} false; then :
5213506e
RW
30524 $as_echo_n "(cached) " >&6
30525else
3b14f664 30526
5213506e 30527 if test x$gcc_no_link = xyes; then
22e05272 30528 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
30529fi
30530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30531/* end confdefs.h. */
3b14f664 30532
5213506e
RW
30533#if HAVE_FLOATINGPOINT_H
30534# include <floatingpoint.h>
30535#endif /* HAVE_FLOATINGPOINT_H */
30536#if HAVE_IEEEFP_H
30537# include <ieeefp.h>
30538#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
30539int
30540main ()
30541{
5213506e 30542fpsetmask(0);
3b14f664
FXC
30543 ;
30544 return 0;
30545}
30546_ACEOF
5213506e
RW
30547if ac_fn_c_try_link "$LINENO"; then :
30548 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 30549else
5213506e
RW
30550 eval "libgfor_cv_have_fpsetmask=no"
30551fi
30552rm -f core conftest.err conftest.$ac_objext \
30553 conftest$ac_exeext conftest.$ac_ext
3b14f664 30554
3b14f664 30555fi
5213506e
RW
30556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
30557$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
30558 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
1b9fef3e 30559 have_fpsetmask=yes
5213506e
RW
30560
30561$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
30562
30563 fi
30564
6faf4751 30565ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
67c4c164 30566#ifdef HAVE_IEEEFP_H
6faf4751 30567#include <ieeefp.h>
67c4c164 30568#endif
6faf4751
FXC
30569#include <math.h>
30570
7ae346c3 30571"
22e05272 30572if test "x$ac_cv_type_fp_except" = xyes; then :
7ae346c3
TB
30573
30574cat >>confdefs.h <<_ACEOF
30575#define HAVE_FP_EXCEPT 1
30576_ACEOF
30577
30578
30579fi
6faf4751 30580ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
67c4c164 30581#ifdef HAVE_IEEEFP_H
6faf4751 30582#include <ieeefp.h>
67c4c164 30583#endif
6faf4751
FXC
30584#include <math.h>
30585
7ae346c3 30586"
22e05272 30587if test "x$ac_cv_type_fp_except_t" = xyes; then :
7ae346c3
TB
30588
30589cat >>confdefs.h <<_ACEOF
30590#define HAVE_FP_EXCEPT_T 1
30591_ACEOF
30592
30593
82a4f54c
TB
30594fi
30595
6faf4751 30596ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
67c4c164 30597#ifdef HAVE_IEEEFP_H
6faf4751 30598#include <ieeefp.h>
67c4c164 30599#endif
6faf4751
FXC
30600#include <math.h>
30601
82a4f54c 30602"
22e05272 30603if test "x$ac_cv_type_fp_rnd" = xyes; then :
82a4f54c
TB
30604
30605cat >>confdefs.h <<_ACEOF
30606#define HAVE_FP_RND 1
30607_ACEOF
30608
30609
30610fi
6faf4751 30611ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
67c4c164 30612#ifdef HAVE_IEEEFP_H
6faf4751 30613#include <ieeefp.h>
67c4c164 30614#endif
6faf4751
FXC
30615#include <math.h>
30616
82a4f54c 30617"
22e05272 30618if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
82a4f54c
TB
30619
30620cat >>confdefs.h <<_ACEOF
30621#define HAVE_FP_RND_T 1
30622_ACEOF
30623
30624
7ae346c3
TB
30625fi
30626
5213506e 30627
de51fc1b
RO
30628# Check whether we have fpsetsticky or fpresetsticky
30629ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
22e05272 30630if test "x$ac_cv_func_fpsetsticky" = xyes; then :
de51fc1b
RO
30631 have_fpsetsticky=yes
30632$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
30633
30634fi
30635
30636ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
22e05272 30637if test "x$ac_cv_func_fpresetsticky" = xyes; then :
de51fc1b
RO
30638 have_fpresetsticky=yes
30639$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
30640
30641fi
30642
30643
5213506e
RW
30644# Check for AIX fp_trap and fp_enable
30645ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
22e05272 30646if test "x$ac_cv_func_fp_trap" = xyes; then :
5213506e
RW
30647 have_fp_trap=yes
30648$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
30649
3b14f664 30650fi
5213506e
RW
30651
30652ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
22e05272 30653if test "x$ac_cv_func_fp_enable" = xyes; then :
3b14f664 30654 have_fp_enable=yes
5213506e 30655$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
30656
30657fi
30658
30659
7b32a8f6
UB
30660# Check if _SOFT_FLOAT is defined
30661
30662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
30663$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
22e05272 30664if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
7b32a8f6
UB
30665 $as_echo_n "(cached) " >&6
30666else
30667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30668/* end confdefs.h. */
30669
30670int
30671main ()
30672{
30673
30674 #ifdef _SOFT_FLOAT
30675 int ok;
30676 #else
30677 choke me
30678 #endif
30679
30680 ;
30681 return 0;
30682}
30683_ACEOF
30684if ac_fn_c_try_compile "$LINENO"; then :
30685 ac_cv_defined__SOFT_FLOAT=yes
30686else
30687 ac_cv_defined__SOFT_FLOAT=no
30688fi
30689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30690fi
30691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
30692$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
30693if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
30694 have_soft_float=yes
30695fi
30696
944b8b35
FXC
30697# Runs configure.host to set up necessary host-dependent shell variables.
30698# We then display a message about it, and propagate them through the
30699# build chain.
30700. ${srcdir}/configure.host
5213506e
RW
30701{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
30702$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
8b198102
FXC
30703{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
30704$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
944b8b35
FXC
30705FPU_HOST_HEADER=config/${fpu_host}.h
30706
30707
8b198102
FXC
30708# Whether we will build the IEEE modules
30709 if test x${ieee_support} = xyes; then
30710 IEEE_SUPPORT_TRUE=
30711 IEEE_SUPPORT_FALSE='#'
30712else
30713 IEEE_SUPPORT_TRUE='#'
30714 IEEE_SUPPORT_FALSE=
30715fi
30716
30717
30718
9fc77574
KK
30719# Some targets require additional compiler options for IEEE compatibility.
30720IEEE_FLAGS="${ieee_flags}"
30721
30722
47ddb895
DE
30723# Conditionalize the makefile for this target machine.
30724tmake_file_=
30725for f in ${tmake_file}
30726do
30727 if test -f ${srcdir}/config/$f
30728 then
30729 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
30730 fi
30731done
30732tmake_file="${tmake_file_}"
30733
30734
23e6d4a5
JB
30735
30736# Check for POSIX getpwuid_r
30737#
30738# There are two versions of getpwuid_r, the POSIX one with 5
30739# arguments, and another one with 4 arguments used by at least HP-UX
30740# 10.2.
30741if test "$ac_cv_func_getpwuid_r" = "yes"; then
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
30743$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
22e05272 30744if ${libgfor_cv_posix_getpwuid_r+:} false; then :
23e6d4a5
JB
30745 $as_echo_n "(cached) " >&6
30746else
30747
30748 if test x$gcc_no_link = xyes; then
22e05272 30749 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23e6d4a5
JB
30750fi
30751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30752/* end confdefs.h. */
30753
30754#include <stdio.h>
30755#include <sys/types.h>
30756#include <pwd.h>
30757int
30758main ()
30759{
30760
30761 getpwuid_r(0, NULL, NULL, 0, NULL);
30762
30763 ;
30764 return 0;
30765}
30766_ACEOF
30767if ac_fn_c_try_link "$LINENO"; then :
30768 libgfor_cv_posix_getpwuid_r="yes"
30769else
30770 libgfor_cv_posix_getpwuid_r="no"
30771fi
30772rm -f core conftest.err conftest.$ac_objext \
30773 conftest$ac_exeext conftest.$ac_ext
30774fi
30775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
30776$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
30777fi
30778if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
30779
30780$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
30781
30782fi
30783
30784
7d7b8bfe
RH
30785# Check out attribute support.
30786
5213506e
RW
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
30788$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 30789if ${libgfor_cv_have_attribute_visibility+:} false; then :
5213506e 30790 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
30791else
30792
30793 save_CFLAGS="$CFLAGS"
30794 CFLAGS="$CFLAGS -Werror"
5213506e 30795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
30796/* end confdefs.h. */
30797void __attribute__((visibility("hidden"))) foo(void) { }
30798int
30799main ()
30800{
30801
30802 ;
30803 return 0;
30804}
30805_ACEOF
5213506e 30806if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 30807 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 30808else
5213506e 30809 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 30810fi
5213506e 30811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
30812 CFLAGS="$save_CFLAGS"
30813fi
5213506e
RW
30814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
30815$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 30816 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 30817
5213506e 30818$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
30819
30820 fi
30821
5213506e
RW
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
30823$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 30824if ${libgfor_cv_have_attribute_alias+:} false; then :
5213506e 30825 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
30826else
30827
f02d008e 30828 if test x$gcc_no_link = xyes; then
22e05272 30829 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 30830fi
5213506e 30831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
30832/* end confdefs.h. */
30833
7d7b8bfe 30834void foo(void) { }
16a314a9 30835extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
30836int
30837main ()
30838{
30839bar();
30840 ;
30841 return 0;
30842}
30843_ACEOF
5213506e 30844if ac_fn_c_try_link "$LINENO"; then :
6d26724a 30845 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 30846else
5213506e 30847 libgfor_cv_have_attribute_alias=no
7d7b8bfe 30848fi
5213506e
RW
30849rm -f core conftest.err conftest.$ac_objext \
30850 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 30851fi
5213506e
RW
30852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
30853$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 30854 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 30855
5213506e 30856$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
30857
30858 fi
30859
0536d5b3 30860# Check out atomic builtins support.
5e805e44 30861
0536d5b3
JB
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
30863$as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
30864if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
5213506e 30865 $as_echo_n "(cached) " >&6
5e805e44
JJ
30866else
30867
30868 if test x$gcc_no_link = xyes; then
22e05272 30869 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 30870fi
5213506e 30871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
30872/* end confdefs.h. */
30873int foovar = 0;
30874int
30875main ()
30876{
30877
0536d5b3
JB
30878if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
30879if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
5e805e44
JJ
30880 ;
30881 return 0;
30882}
30883_ACEOF
5213506e 30884if ac_fn_c_try_link "$LINENO"; then :
0536d5b3 30885 libgfor_cv_have_atomic_fetch_add=yes
5e805e44 30886else
0536d5b3 30887 libgfor_cv_have_atomic_fetch_add=no
5e805e44 30888fi
5213506e
RW
30889rm -f core conftest.err conftest.$ac_objext \
30890 conftest$ac_exeext conftest.$ac_ext
5e805e44 30891fi
0536d5b3
JB
30892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
30893$as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
30894 if test $libgfor_cv_have_atomic_fetch_add = yes; then
5e805e44 30895
0536d5b3 30896$as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
5e805e44
JJ
30897
30898 fi
30899
6a822a74
FXC
30900# Check out #pragma weak.
30901
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
30903$as_echo_n "checking whether pragma weak works... " >&6; }
22e05272 30904if ${libgfor_cv_have_pragma_weak+:} false; then :
6a822a74
FXC
30905 $as_echo_n "(cached) " >&6
30906else
30907
30908 gfor_save_CFLAGS="$CFLAGS"
30909 CFLAGS="$CFLAGS -Wunknown-pragmas"
30910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30911/* end confdefs.h. */
30912
30913void foo (void);
30914#pragma weak foo
30915
30916int
30917main ()
30918{
30919if (foo) foo ();
30920 ;
30921 return 0;
30922}
30923_ACEOF
30924if ac_fn_c_try_compile "$LINENO"; then :
30925 libgfor_cv_have_pragma_weak=yes
30926else
30927 libgfor_cv_have_pragma_weak=no
30928fi
30929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30930fi
30931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
30932$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
30933 if test $libgfor_cv_have_pragma_weak = yes; then
30934
30935$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
30936
30937 fi
30938 case "$host" in
30939 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
30940
30941$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
30942
30943 ;;
30944 esac
30945
e7854993 30946# Check out weakref support.
5e805e44 30947
e7854993
FXC
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
30949$as_echo_n "checking whether the target supports weakref... " >&6; }
22e05272 30950if ${libgfor_cv_have_weakref+:} false; then :
5213506e 30951 $as_echo_n "(cached) " >&6
5e805e44
JJ
30952else
30953
e7854993
FXC
30954 save_CFLAGS="$CFLAGS"
30955 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
30956 if test x$gcc_no_link = xyes; then
22e05272 30957 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e7854993
FXC
30958fi
30959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44 30960/* end confdefs.h. */
de15ea94 30961
e7854993 30962static int mytoto (int) __attribute__((__weakref__("toto")));
de15ea94 30963
5e805e44
JJ
30964int
30965main ()
30966{
e7854993 30967return (mytoto != 0);
5e805e44
JJ
30968 ;
30969 return 0;
30970}
30971_ACEOF
e7854993
FXC
30972if ac_fn_c_try_link "$LINENO"; then :
30973 libgfor_cv_have_weakref=yes
5e805e44 30974else
e7854993 30975 libgfor_cv_have_weakref=no
5e805e44 30976fi
e7854993
FXC
30977rm -f core conftest.err conftest.$ac_objext \
30978 conftest$ac_exeext conftest.$ac_ext
30979 CFLAGS="$save_CFLAGS"
5e805e44 30980fi
e7854993
FXC
30981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
30982$as_echo "$libgfor_cv_have_weakref" >&6; }
30983 if test $libgfor_cv_have_weakref = yes; then
5e805e44 30984
e7854993 30985$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
5e805e44
JJ
30986
30987 fi
30988
10c682a0
FXC
30989# Various other checks on target
30990
5213506e
RW
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
30992$as_echo_n "checking whether the target can unlink an open file... " >&6; }
22e05272 30993if ${libgfor_cv_have_unlink_open_file+:} false; then :
5213506e 30994 $as_echo_n "(cached) " >&6
10c682a0
FXC
30995else
30996
5213506e 30997 if test "$cross_compiling" = yes; then :
10c682a0
FXC
30998
30999case "${target}" in
6d26724a
RW
31000 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
31001 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
31002esac
31003else
5213506e 31004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
31005/* end confdefs.h. */
31006
31007#include <errno.h>
31008#include <fcntl.h>
31009#include <unistd.h>
31010#include <sys/stat.h>
31011
31012int main ()
31013{
31014 int fd;
31015
42dfafa9 31016 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
10c682a0
FXC
31017 if (fd <= 0)
31018 return 0;
31019 if (unlink ("testfile") == -1)
31020 return 1;
31021 write (fd, "This is a test\n", 15);
31022 close (fd);
31023
42dfafa9 31024 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
10c682a0
FXC
31025 return 0;
31026 else
31027 return 1;
31028}
31029_ACEOF
5213506e 31030if ac_fn_c_try_run "$LINENO"; then :
6d26724a 31031 libgfor_cv_have_unlink_open_file=yes
10c682a0 31032else
5213506e 31033 libgfor_cv_have_unlink_open_file=no
10c682a0 31034fi
5213506e
RW
31035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31036 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 31037fi
5213506e 31038
10c682a0 31039fi
5213506e
RW
31040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
31041$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 31042if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 31043
5213506e 31044$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
31045
31046fi
31047
3c127520
FXC
31048# Check whether line terminator is LF or CRLF
31049
5213506e
RW
31050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
31051$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
22e05272 31052if ${libgfor_cv_have_crlf+:} false; then :
5213506e 31053 $as_echo_n "(cached) " >&6
3c127520
FXC
31054else
31055
5213506e 31056 if test "$cross_compiling" = yes; then :
3c127520
FXC
31057
31058case "${target}" in
6d26724a
RW
31059 *mingw*) libgfor_cv_have_crlf=yes ;;
31060 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
31061esac
31062else
5213506e 31063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
31064/* end confdefs.h. */
31065
31066/* This test program should exit with status 0 if system uses a CRLF as
31067 line terminator, and status 1 otherwise.
31068 Since it is used to check for mingw systems, and should return 0 in any
31069 other case, in case of a failure we will not use CRLF. */
31070#include <sys/stat.h>
31071#include <stdlib.h>
31072#include <fcntl.h>
31073#include <stdio.h>
31074
31075int main ()
31076{
31077#ifndef O_BINARY
31078 exit(1);
31079#else
31080 int fd, bytes;
31081 char buff[5];
31082
31083 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
31084 if (fd < 0)
31085 exit(1);
31086 if (write (fd, "\n", 1) < 0)
31087 perror ("write");
31088
31089 close (fd);
31090
31091 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
31092 exit(1);
31093 bytes = read (fd, buff, 5);
31094 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
31095 exit(0);
31096 else
31097 exit(1);
31098#endif
31099}
31100_ACEOF
5213506e 31101if ac_fn_c_try_run "$LINENO"; then :
6d26724a 31102 libgfor_cv_have_crlf=yes
3c127520 31103else
5213506e 31104 libgfor_cv_have_crlf=no
3c127520 31105fi
5213506e
RW
31106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31107 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 31108fi
5213506e 31109
3c127520 31110fi
5213506e
RW
31111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
31112$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 31113if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 31114
5213506e 31115$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
31116
31117fi
31118
31cfd832
TK
31119# Check whether we support AVX extensions
31120
31121 ac_save_CFLAGS="$CFLAGS"
31122 CFLAGS="-O2 -mavx"
31123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31124/* end confdefs.h. */
31125
31126 void _mm256_zeroall (void)
31127 {
31128 __builtin_ia32_vzeroall ();
31129 }
31130int
31131main ()
31132{
31133
31134 ;
31135 return 0;
31136}
31137_ACEOF
31138if ac_fn_c_try_compile "$LINENO"; then :
31139
31140$as_echo "#define HAVE_AVX 1" >>confdefs.h
31141
31142fi
31143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31144 CFLAGS="$ac_save_CFLAGS"
31145
31146
49ad4d2c 31147# Check whether we support AVX2 extensions
31cfd832
TK
31148
31149 ac_save_CFLAGS="$CFLAGS"
31150 CFLAGS="-O2 -mavx2"
31151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31152/* end confdefs.h. */
31153
31154 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
31155 __v4di
31156 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
31157 {
31158 return __builtin_ia32_andnotsi256 (__X, __Y);
31159 }
31160int
31161main ()
31162{
31163
31164 ;
31165 return 0;
31166}
31167_ACEOF
31168if ac_fn_c_try_compile "$LINENO"; then :
31169
31170$as_echo "#define HAVE_AVX2 1" >>confdefs.h
31171
31172fi
31173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31174 CFLAGS="$ac_save_CFLAGS"
31175
31176
49ad4d2c 31177# Check whether we support AVX512f extensions
31cfd832
TK
31178
31179 ac_save_CFLAGS="$CFLAGS"
31180 CFLAGS="-O2 -mavx512f"
31181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31182/* end confdefs.h. */
31183
31184 typedef double __m512d __attribute__ ((__vector_size__ (64)));
31185 __m512d _mm512_add (__m512d a)
31186 {
9db0a8c2
JJ
31187 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
31188 /* For -m64/-mx32 also verify that code will work even if
31189 the target uses call saved zmm16+ and needs to emit
31190 unwind info for them (e.g. on mingw). See PR79127. */
31191#ifdef __x86_64__
31192 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
31193#endif
31194 return b;
31cfd832
TK
31195 }
31196int
31197main ()
31198{
31199
31200 ;
31201 return 0;
31202}
31203_ACEOF
31204if ac_fn_c_try_compile "$LINENO"; then :
31205
31206$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
31207
31208fi
31209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31210 CFLAGS="$ac_save_CFLAGS"
31211
31212
1d5cf7fc
TK
31213# Check for FMA3 extensions
31214
31215 ac_save_CFLAGS="$CFLAGS"
31216 CFLAGS="-O2 -mfma -mno-fma4"
31217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31218/* end confdefs.h. */
31219
9698e1bb
RO
31220 typedef float __m128 __attribute__ ((__vector_size__ (16)));
31221 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
31222 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 31223 {
9698e1bb
RO
31224 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
31225 (__v4sf)__B,
31226 (__v4sf)__C);
1d5cf7fc
TK
31227 }
31228int
31229main ()
31230{
31231
31232 ;
31233 return 0;
31234}
31235_ACEOF
31236if ac_fn_c_try_compile "$LINENO"; then :
31237
31238$as_echo "#define HAVE_FMA3 1" >>confdefs.h
31239
31240fi
31241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31242 CFLAGS="$ac_save_CFLAGS"
31243
31244
31245# Check for FMA4 extensions
31246
31247 ac_save_CFLAGS="$CFLAGS"
31248 CFLAGS="-O2 -mfma4 -mno-fma"
31249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31250/* end confdefs.h. */
31251
9698e1bb
RO
31252 typedef float __m128 __attribute__ ((__vector_size__ (16)));
31253 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
31254 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
1d5cf7fc 31255 {
9698e1bb
RO
31256 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
31257 (__v4sf)__B,
31258 (__v4sf)__C);
1d5cf7fc
TK
31259 }
31260int
31261main ()
31262{
31263
31264 ;
31265 return 0;
31266}
31267_ACEOF
31268if ac_fn_c_try_compile "$LINENO"; then :
31269
31270$as_echo "#define HAVE_FMA4 1" >>confdefs.h
31271
31272fi
31273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31274 CFLAGS="$ac_save_CFLAGS"
31275
31276
31277# Check if AVX128 works
31278
31279 ac_save_CFLAGS="$CFLAGS"
31280 CFLAGS="-O2 -mavx -mprefer-avx128"
31281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31282/* end confdefs.h. */
31283
31284 void foo()
31285 {
31286 }
31287int
31288main ()
31289{
31290
31291 ;
31292 return 0;
31293}
31294_ACEOF
31295if ac_fn_c_try_compile "$LINENO"; then :
31296
31297$as_echo "#define HAVE_AVX128 1" >>confdefs.h
31298
31299 if true; then
31300 HAVE_AVX128_TRUE=
31301 HAVE_AVX128_FALSE='#'
31302else
31303 HAVE_AVX128_TRUE='#'
31304 HAVE_AVX128_FALSE=
31305fi
31306
5596d26a
TK
31307else
31308 if false; then
31309 HAVE_AVX128_TRUE=
31310 HAVE_AVX128_FALSE='#'
31311else
31312 HAVE_AVX128_TRUE='#'
31313 HAVE_AVX128_FALSE=
31314fi
31315
1d5cf7fc
TK
31316fi
31317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31318 CFLAGS="$ac_save_CFLAGS"
31319
31320
3c36aa6b
JJ
31321# Determine what GCC version number to use in filesystem paths.
31322
31323 get_gcc_base_ver="cat"
31324
31325# Check whether --with-gcc-major-version-only was given.
31326if test "${with_gcc_major_version_only+set}" = set; then :
31327 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 31328 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
31329 fi
31330
31331fi
31332
31333
31334
31335
6de9cd9a
DN
31336cat >confcache <<\_ACEOF
31337# This file is a shell script that caches the results of configure
31338# tests run on this system so they can be shared between configure
31339# scripts and configure runs, see configure's option --config-cache.
31340# It is not useful on other systems. If it contains results you don't
31341# want to keep, you may remove or edit it.
31342#
31343# config.status only pays attention to the cache file if you give it
31344# the --recheck option to rerun configure.
31345#
31346# `ac_cv_env_foo' variables (set or unset) will be overridden when
31347# loading this file, other *unset* `ac_cv_foo' will be assigned the
31348# following values.
31349
31350_ACEOF
31351
31352# The following way of writing the cache mishandles newlines in values,
31353# but we know of no workaround that is simple, portable, and efficient.
5213506e 31354# So, we kill variables containing newlines.
6de9cd9a
DN
31355# Ultrix sh set writes to stderr and can't be redirected directly,
31356# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
31357(
31358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31359 eval ac_val=\$$ac_var
31360 case $ac_val in #(
31361 *${as_nl}*)
31362 case $ac_var in #(
31363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31364$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31365 esac
31366 case $ac_var in #(
31367 _ | IFS | as_nl) ;; #(
31368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31369 *) { eval $ac_var=; unset $ac_var;} ;;
31370 esac ;;
31371 esac
31372 done
31373
6de9cd9a 31374 (set) 2>&1 |
5213506e
RW
31375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31376 *${as_nl}ac_space=\ *)
31377 # `set' does not quote correctly, so add quotes: double-quote
31378 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
31379 sed -n \
31380 "s/'/'\\\\''/g;
31381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 31382 ;; #(
6de9cd9a
DN
31383 *)
31384 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 31385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 31386 ;;
5213506e
RW
31387 esac |
31388 sort
31389) |
6de9cd9a 31390 sed '
5213506e 31391 /^ac_cv_env_/b end
6de9cd9a 31392 t clear
5213506e 31393 :clear
6de9cd9a
DN
31394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31395 t end
5213506e
RW
31396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31397 :end' >>confcache
31398if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31399 if test -w "$cache_file"; then
22e05272 31400 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31402$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
31403 if test ! -f "$cache_file" || test -h "$cache_file"; then
31404 cat confcache >"$cache_file"
31405 else
31406 case $cache_file in #(
31407 */* | ?:*)
31408 mv -f confcache "$cache_file"$$ &&
31409 mv -f "$cache_file"$$ "$cache_file" ;; #(
31410 *)
31411 mv -f confcache "$cache_file" ;;
31412 esac
31413 fi
31414 fi
6de9cd9a 31415 else
5213506e
RW
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31417$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
31418 fi
31419fi
31420rm -f confcache
31421
96b8a615
AJ
31422if test ${multilib} = yes; then
31423 multilib_arg="--enable-multilib"
6de9cd9a 31424else
96b8a615 31425 multilib_arg=
6de9cd9a 31426fi
6de9cd9a 31427
1ec601bf
FXC
31428# Write our Makefile and spec file.
31429ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 31430
6de9cd9a
DN
31431cat >confcache <<\_ACEOF
31432# This file is a shell script that caches the results of configure
31433# tests run on this system so they can be shared between configure
31434# scripts and configure runs, see configure's option --config-cache.
31435# It is not useful on other systems. If it contains results you don't
31436# want to keep, you may remove or edit it.
31437#
31438# config.status only pays attention to the cache file if you give it
31439# the --recheck option to rerun configure.
31440#
31441# `ac_cv_env_foo' variables (set or unset) will be overridden when
31442# loading this file, other *unset* `ac_cv_foo' will be assigned the
31443# following values.
31444
31445_ACEOF
31446
31447# The following way of writing the cache mishandles newlines in values,
31448# but we know of no workaround that is simple, portable, and efficient.
5213506e 31449# So, we kill variables containing newlines.
6de9cd9a
DN
31450# Ultrix sh set writes to stderr and can't be redirected directly,
31451# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
31452(
31453 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31454 eval ac_val=\$$ac_var
31455 case $ac_val in #(
31456 *${as_nl}*)
31457 case $ac_var in #(
31458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31459$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31460 esac
31461 case $ac_var in #(
31462 _ | IFS | as_nl) ;; #(
31463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31464 *) { eval $ac_var=; unset $ac_var;} ;;
31465 esac ;;
31466 esac
31467 done
31468
6de9cd9a 31469 (set) 2>&1 |
5213506e
RW
31470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31471 *${as_nl}ac_space=\ *)
31472 # `set' does not quote correctly, so add quotes: double-quote
31473 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
31474 sed -n \
31475 "s/'/'\\\\''/g;
31476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 31477 ;; #(
6de9cd9a
DN
31478 *)
31479 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 31480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 31481 ;;
5213506e
RW
31482 esac |
31483 sort
31484) |
6de9cd9a 31485 sed '
5213506e 31486 /^ac_cv_env_/b end
6de9cd9a 31487 t clear
5213506e 31488 :clear
6de9cd9a
DN
31489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31490 t end
5213506e
RW
31491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31492 :end' >>confcache
31493if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31494 if test -w "$cache_file"; then
22e05272 31495 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31497$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
31498 if test ! -f "$cache_file" || test -h "$cache_file"; then
31499 cat confcache >"$cache_file"
31500 else
31501 case $cache_file in #(
31502 */* | ?:*)
31503 mv -f confcache "$cache_file"$$ &&
31504 mv -f "$cache_file"$$ "$cache_file" ;; #(
31505 *)
31506 mv -f confcache "$cache_file" ;;
31507 esac
31508 fi
31509 fi
6de9cd9a 31510 else
5213506e
RW
31511 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31512$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
31513 fi
31514fi
31515rm -f confcache
31516
31517test "x$prefix" = xNONE && prefix=$ac_default_prefix
31518# Let make expand exec_prefix.
31519test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31520
6de9cd9a
DN
31521DEFS=-DHAVE_CONFIG_H
31522
31523ac_libobjs=
31524ac_ltlibobjs=
22e05272 31525U=
6de9cd9a
DN
31526for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31527 # 1. Remove the extension, and $U if already installed.
5213506e
RW
31528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31529 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31531 # will be set to the directory where LIBOBJS objects are built.
31532 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31533 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
31534done
31535LIBOBJS=$ac_libobjs
31536
31537LTLIBOBJS=$ac_ltlibobjs
31538
31539
b808ac33 31540if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
22e05272 31541 as_fn_error $? "conditional \"onestep\" was never defined.
5213506e
RW
31542Usually this means the macro was only invoked conditionally." "$LINENO" 5
31543fi
22e05272
JM
31544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31545$as_echo_n "checking that generated files are newer than configure... " >&6; }
31546 if test -n "$am_sleep_pid"; then
31547 # Hide warnings about reused PIDs.
31548 wait $am_sleep_pid 2>/dev/null
31549 fi
31550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31551$as_echo "done" >&6; }
5213506e
RW
31552 if test -n "$EXEEXT"; then
31553 am__EXEEXT_TRUE=
31554 am__EXEEXT_FALSE='#'
31555else
31556 am__EXEEXT_TRUE='#'
31557 am__EXEEXT_FALSE=
b808ac33 31558fi
5213506e 31559
6de9cd9a 31560if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 31561 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5213506e 31562Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 31563fi
679c0f9a 31564if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 31565 as_fn_error $? "conditional \"AMDEP\" was never defined.
5213506e 31566Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
31567fi
31568if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 31569 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5213506e 31570Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 31571fi
21be0a5a 31572if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 31573 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21be0a5a
JB
31574Usually this means the macro was only invoked conditionally." "$LINENO" 5
31575fi
49ad4d2c
TK
31576if test -z "${HAVE_REAL_17_TRUE}" && test -z "${HAVE_REAL_17_FALSE}"; then
31577 as_fn_error $? "conditional \"HAVE_REAL_17\" was never defined.
31578Usually this means the macro was only invoked conditionally." "$LINENO" 5
31579fi
c0e7e2bf 31580if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
22e05272 31581 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
5213506e 31582Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 31583fi
49ea7a0e 31584if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
22e05272 31585 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
49ea7a0e
RO
31586Usually this means the macro was only invoked conditionally." "$LINENO" 5
31587fi
31588if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
22e05272 31589 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
49ea7a0e
RO
31590Usually this means the macro was only invoked conditionally." "$LINENO" 5
31591fi
ee95f928 31592if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
22e05272 31593 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
ee95f928
BS
31594Usually this means the macro was only invoked conditionally." "$LINENO" 5
31595fi
66dbcf2d 31596if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
22e05272 31597 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
66dbcf2d
RO
31598Usually this means the macro was only invoked conditionally." "$LINENO" 5
31599fi
8b198102 31600if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
22e05272 31601 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
8b198102
FXC
31602Usually this means the macro was only invoked conditionally." "$LINENO" 5
31603fi
1d5cf7fc 31604if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
22e05272 31605 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
1d5cf7fc
TK
31606Usually this means the macro was only invoked conditionally." "$LINENO" 5
31607fi
5596d26a 31608if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
22e05272 31609 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
5596d26a
TK
31610Usually this means the macro was only invoked conditionally." "$LINENO" 5
31611fi
6de9cd9a 31612
22e05272 31613: "${CONFIG_STATUS=./config.status}"
5213506e 31614ac_write_fail=0
6de9cd9a
DN
31615ac_clean_files_save=$ac_clean_files
31616ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
31617{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31618$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31619as_write_fail=0
31620cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
31621#! $SHELL
31622# Generated by $as_me.
31623# Run this file to recreate the current configuration.
31624# Compiler output produced by configure, useful for debugging
31625# configure, is in config.log if it exists.
31626
31627debug=false
31628ac_cs_recheck=false
31629ac_cs_silent=false
6de9cd9a 31630
5213506e
RW
31631SHELL=\${CONFIG_SHELL-$SHELL}
31632export SHELL
31633_ASEOF
31634cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31635## -------------------- ##
31636## M4sh Initialization. ##
31637## -------------------- ##
31638
31639# Be more Bourne compatible
31640DUALCASE=1; export DUALCASE # for MKS sh
31641if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
31642 emulate sh
31643 NULLCMD=:
5213506e 31644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
31645 # is contrary to our usage. Disable this feature.
31646 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
31647 setopt NO_GLOB_SUBST
31648else
31649 case `(set -o) 2>/dev/null` in #(
31650 *posix*) :
31651 set -o posix ;; #(
31652 *) :
31653 ;;
31654esac
6de9cd9a 31655fi
6de9cd9a 31656
5213506e
RW
31657
31658as_nl='
31659'
31660export as_nl
31661# Printing a long string crashes Solaris 7 /usr/bin/printf.
31662as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31663as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31664as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31665# Prefer a ksh shell builtin over an external printf program on Solaris,
31666# but without wasting forks for bash or zsh.
31667if test -z "$BASH_VERSION$ZSH_VERSION" \
31668 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31669 as_echo='print -r --'
31670 as_echo_n='print -rn --'
31671elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31672 as_echo='printf %s\n'
31673 as_echo_n='printf %s'
31674else
31675 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31676 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31677 as_echo_n='/usr/ucb/echo -n'
31678 else
31679 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31680 as_echo_n_body='eval
31681 arg=$1;
31682 case $arg in #(
31683 *"$as_nl"*)
31684 expr "X$arg" : "X\\(.*\\)$as_nl";
31685 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31686 esac;
31687 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31688 '
31689 export as_echo_n_body
31690 as_echo_n='sh -c $as_echo_n_body as_echo'
31691 fi
31692 export as_echo_body
31693 as_echo='sh -c $as_echo_body as_echo'
31694fi
31695
31696# The user is always right.
31697if test "${PATH_SEPARATOR+set}" != set; then
31698 PATH_SEPARATOR=:
31699 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31700 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31701 PATH_SEPARATOR=';'
31702 }
6de9cd9a
DN
31703fi
31704
31705
5213506e
RW
31706# IFS
31707# We need space, tab and new line, in precisely that order. Quoting is
31708# there to prevent editors from complaining about space-tab.
31709# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31710# splitting by setting IFS to empty value.)
31711IFS=" "" $as_nl"
31712
31713# Find who we are. Look in the path if we contain no directory separator.
22e05272 31714as_myself=
5213506e
RW
31715case $0 in #((
31716 *[\\/]* ) as_myself=$0 ;;
31717 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31718for as_dir in $PATH
31719do
31720 IFS=$as_save_IFS
31721 test -z "$as_dir" && as_dir=.
31722 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31723 done
31724IFS=$as_save_IFS
31725
31726 ;;
31727esac
31728# We did not find ourselves, most probably we were run as `sh COMMAND'
31729# in which case we are not to be found in the path.
31730if test "x$as_myself" = x; then
31731 as_myself=$0
31732fi
31733if test ! -f "$as_myself"; then
31734 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31735 exit 1
31736fi
31737
31738# Unset variables that we do not need and which cause bugs (e.g. in
31739# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31740# suppresses any "Segmentation fault" message there. '((' could
31741# trigger a bug in pdksh 5.2.14.
31742for as_var in BASH_ENV ENV MAIL MAILPATH
31743do eval test x\${$as_var+set} = xset \
31744 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31745done
6de9cd9a
DN
31746PS1='$ '
31747PS2='> '
31748PS4='+ '
31749
31750# NLS nuisances.
5213506e
RW
31751LC_ALL=C
31752export LC_ALL
31753LANGUAGE=C
31754export LANGUAGE
31755
31756# CDPATH.
31757(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31758
31759
22e05272
JM
31760# as_fn_error STATUS ERROR [LINENO LOG_FD]
31761# ----------------------------------------
5213506e
RW
31762# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31763# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 31764# script with STATUS, using 1 if that was 0.
5213506e
RW
31765as_fn_error ()
31766{
22e05272
JM
31767 as_status=$1; test $as_status -eq 0 && as_status=1
31768 if test "$4"; then
31769 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31770 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6de9cd9a 31771 fi
22e05272 31772 $as_echo "$as_me: error: $2" >&2
5213506e
RW
31773 as_fn_exit $as_status
31774} # as_fn_error
31775
31776
31777# as_fn_set_status STATUS
31778# -----------------------
31779# Set $? to STATUS, without forking.
31780as_fn_set_status ()
31781{
31782 return $1
31783} # as_fn_set_status
31784
31785# as_fn_exit STATUS
31786# -----------------
31787# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31788as_fn_exit ()
31789{
31790 set +e
31791 as_fn_set_status $1
31792 exit $1
31793} # as_fn_exit
31794
31795# as_fn_unset VAR
31796# ---------------
31797# Portably unset VAR.
31798as_fn_unset ()
31799{
31800 { eval $1=; unset $1;}
31801}
31802as_unset=as_fn_unset
31803# as_fn_append VAR VALUE
31804# ----------------------
31805# Append the text in VALUE to the end of the definition contained in VAR. Take
31806# advantage of any shell optimizations that allow amortized linear growth over
31807# repeated appends, instead of the typical quadratic growth present in naive
31808# implementations.
31809if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31810 eval 'as_fn_append ()
31811 {
31812 eval $1+=\$2
31813 }'
31814else
31815 as_fn_append ()
31816 {
31817 eval $1=\$$1\$2
31818 }
31819fi # as_fn_append
31820
31821# as_fn_arith ARG...
31822# ------------------
31823# Perform arithmetic evaluation on the ARGs, and store the result in the
31824# global $as_val. Take advantage of shells that can avoid forks. The arguments
31825# must be portable across $(()) and expr.
31826if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31827 eval 'as_fn_arith ()
31828 {
31829 as_val=$(( $* ))
31830 }'
31831else
31832 as_fn_arith ()
31833 {
31834 as_val=`expr "$@" || test $? -eq 1`
31835 }
31836fi # as_fn_arith
6de9cd9a 31837
5213506e
RW
31838
31839if expr a : '\(a\)' >/dev/null 2>&1 &&
31840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
31841 as_expr=expr
31842else
31843 as_expr=false
31844fi
31845
5213506e 31846if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
31847 as_basename=basename
31848else
31849 as_basename=false
31850fi
31851
5213506e
RW
31852if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31853 as_dirname=dirname
31854else
31855 as_dirname=false
31856fi
6de9cd9a 31857
5213506e 31858as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
31859$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31860 X"$0" : 'X\(//\)$' \| \
5213506e
RW
31861 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31862$as_echo X/"$0" |
31863 sed '/^.*\/\([^/][^/]*\)\/*$/{
31864 s//\1/
31865 q
31866 }
31867 /^X\/\(\/\/\)$/{
31868 s//\1/
31869 q
31870 }
31871 /^X\/\(\/\).*/{
31872 s//\1/
31873 q
31874 }
31875 s/.*/./; q'`
38d24731 31876
38d24731
RW
31877# Avoid depending upon Character Ranges.
31878as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31879as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31880as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31881as_cr_digits='0123456789'
31882as_cr_alnum=$as_cr_Letters$as_cr_digits
31883
5213506e
RW
31884ECHO_C= ECHO_N= ECHO_T=
31885case `echo -n x` in #(((((
31886-n*)
31887 case `echo 'xy\c'` in
31888 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31889 xy) ECHO_C='\c';;
31890 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31891 ECHO_T=' ';;
31892 esac;;
31893*)
31894 ECHO_N='-n';;
6de9cd9a
DN
31895esac
31896
5213506e
RW
31897rm -f conf$$ conf$$.exe conf$$.file
31898if test -d conf$$.dir; then
31899 rm -f conf$$.dir/conf$$.file
6de9cd9a 31900else
5213506e
RW
31901 rm -f conf$$.dir
31902 mkdir conf$$.dir 2>/dev/null
6de9cd9a 31903fi
5213506e
RW
31904if (echo >conf$$.file) 2>/dev/null; then
31905 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 31906 as_ln_s='ln -s'
5213506e
RW
31907 # ... but there are two gotchas:
31908 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31909 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 31910 # In both cases, we have to default to `cp -pR'.
5213506e 31911 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 31912 as_ln_s='cp -pR'
5213506e
RW
31913 elif ln conf$$.file conf$$ 2>/dev/null; then
31914 as_ln_s=ln
31915 else
22e05272 31916 as_ln_s='cp -pR'
38d24731 31917 fi
6de9cd9a 31918else
22e05272 31919 as_ln_s='cp -pR'
6de9cd9a 31920fi
5213506e
RW
31921rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31922rmdir conf$$.dir 2>/dev/null
31923
31924
31925# as_fn_mkdir_p
31926# -------------
31927# Create "$as_dir" as a directory, including parents if necessary.
31928as_fn_mkdir_p ()
31929{
31930
31931 case $as_dir in #(
31932 -*) as_dir=./$as_dir;;
31933 esac
31934 test -d "$as_dir" || eval $as_mkdir_p || {
31935 as_dirs=
31936 while :; do
31937 case $as_dir in #(
31938 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31939 *) as_qdir=$as_dir;;
31940 esac
31941 as_dirs="'$as_qdir' $as_dirs"
31942 as_dir=`$as_dirname -- "$as_dir" ||
31943$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31944 X"$as_dir" : 'X\(//\)[^/]' \| \
31945 X"$as_dir" : 'X\(//\)$' \| \
31946 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31947$as_echo X"$as_dir" |
31948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31949 s//\1/
31950 q
31951 }
31952 /^X\(\/\/\)[^/].*/{
31953 s//\1/
31954 q
31955 }
31956 /^X\(\/\/\)$/{
31957 s//\1/
31958 q
31959 }
31960 /^X\(\/\).*/{
31961 s//\1/
31962 q
31963 }
31964 s/.*/./; q'`
31965 test -d "$as_dir" && break
31966 done
31967 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 31968 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 31969
6de9cd9a 31970
5213506e 31971} # as_fn_mkdir_p
6de9cd9a 31972if mkdir -p . 2>/dev/null; then
5213506e 31973 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
31974else
31975 test -d ./-p && rmdir ./-p
31976 as_mkdir_p=false
31977fi
31978
22e05272
JM
31979
31980# as_fn_executable_p FILE
31981# -----------------------
31982# Test if FILE is an executable regular file.
31983as_fn_executable_p ()
31984{
31985 test -f "$1" && test -x "$1"
31986} # as_fn_executable_p
31987as_test_x='test -x'
31988as_executable_p=as_fn_executable_p
6de9cd9a
DN
31989
31990# Sed expression to map a string onto a valid CPP name.
31991as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31992
31993# Sed expression to map a string onto a valid variable name.
31994as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31995
31996
6de9cd9a 31997exec 6>&1
5213506e
RW
31998## ----------------------------------- ##
31999## Main body of $CONFIG_STATUS script. ##
32000## ----------------------------------- ##
32001_ASEOF
32002test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32003
32004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32005# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 32006# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
32007# values after options handling.
32008ac_log="
0dce3ca1 32009This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
22e05272 32010generated by GNU Autoconf 2.69. Invocation command line was
6de9cd9a
DN
32011
32012 CONFIG_FILES = $CONFIG_FILES
32013 CONFIG_HEADERS = $CONFIG_HEADERS
32014 CONFIG_LINKS = $CONFIG_LINKS
32015 CONFIG_COMMANDS = $CONFIG_COMMANDS
32016 $ $0 $@
32017
5213506e
RW
32018on `(hostname || uname -n) 2>/dev/null | sed 1q`
32019"
32020
6de9cd9a
DN
32021_ACEOF
32022
5213506e
RW
32023case $ac_config_files in *"
32024"*) set x $ac_config_files; shift; ac_config_files=$*;;
32025esac
78511f8b 32026
5213506e
RW
32027case $ac_config_headers in *"
32028"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32029esac
38d24731 32030
38d24731 32031
5213506e
RW
32032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32033# Files that config.status was made for.
32034config_files="$ac_config_files"
32035config_headers="$ac_config_headers"
32036config_commands="$ac_config_commands"
6de9cd9a 32037
5213506e 32038_ACEOF
38d24731 32039
5213506e 32040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 32041ac_cs_usage="\
5213506e
RW
32042\`$as_me' instantiates files and other configuration actions
32043from templates according to the current configuration. Unless the files
32044and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 32045
5213506e 32046Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
32047
32048 -h, --help print this help, then exit
5213506e 32049 -V, --version print version number and configuration settings, then exit
22e05272 32050 --config print configuration, then exit
5213506e
RW
32051 -q, --quiet, --silent
32052 do not print progress messages
6de9cd9a
DN
32053 -d, --debug don't remove temporary files
32054 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
32055 --file=FILE[:TEMPLATE]
32056 instantiate the configuration file FILE
32057 --header=FILE[:TEMPLATE]
32058 instantiate the configuration header FILE
6de9cd9a
DN
32059
32060Configuration files:
32061$config_files
32062
32063Configuration headers:
32064$config_headers
32065
32066Configuration commands:
32067$config_commands
32068
5213506e
RW
32069Report bugs to the package provider.
32070GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
32071General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 32072
5213506e
RW
32073_ACEOF
32074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 32075ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6de9cd9a 32076ac_cs_version="\\
0dce3ca1 32077GNU Fortran Runtime Library config.status 0.3
22e05272
JM
32078configured by $0, generated by GNU Autoconf 2.69,
32079 with options \\"\$ac_cs_config\\"
6de9cd9a 32080
22e05272 32081Copyright (C) 2012 Free Software Foundation, Inc.
6de9cd9a
DN
32082This config.status script is free software; the Free Software Foundation
32083gives unlimited permission to copy, distribute and modify it."
5213506e
RW
32084
32085ac_pwd='$ac_pwd'
32086srcdir='$srcdir'
32087INSTALL='$INSTALL'
32088MKDIR_P='$MKDIR_P'
32089AWK='$AWK'
32090test -n "\$AWK" || AWK=awk
6de9cd9a
DN
32091_ACEOF
32092
5213506e
RW
32093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32094# The default lists apply if the user does not specify any file.
6de9cd9a
DN
32095ac_need_defaults=:
32096while test $# != 0
32097do
32098 case $1 in
22e05272 32099 --*=?*)
5213506e
RW
32100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
32102 ac_shift=:
32103 ;;
22e05272
JM
32104 --*=)
32105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32106 ac_optarg=
32107 ac_shift=:
32108 ;;
5213506e 32109 *)
6de9cd9a
DN
32110 ac_option=$1
32111 ac_optarg=$2
32112 ac_shift=shift
32113 ;;
6de9cd9a
DN
32114 esac
32115
32116 case $ac_option in
32117 # Handling of the options.
6de9cd9a
DN
32118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32119 ac_cs_recheck=: ;;
5213506e
RW
32120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32121 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
32122 --config | --confi | --conf | --con | --co | --c )
32123 $as_echo "$ac_cs_config"; exit ;;
5213506e 32124 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
32125 debug=: ;;
32126 --file | --fil | --fi | --f )
32127 $ac_shift
5213506e
RW
32128 case $ac_optarg in
32129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 32130 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
32131 esac
32132 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
32133 ac_need_defaults=false;;
32134 --header | --heade | --head | --hea )
32135 $ac_shift
5213506e
RW
32136 case $ac_optarg in
32137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32138 esac
32139 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 32140 ac_need_defaults=false;;
5213506e
RW
32141 --he | --h)
32142 # Conflict between --help and --header
22e05272 32143 as_fn_error $? "ambiguous option: \`$1'
5213506e
RW
32144Try \`$0 --help' for more information.";;
32145 --help | --hel | -h )
32146 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
32147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32149 ac_cs_silent=: ;;
32150
32151 # This is an error.
22e05272 32152 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 32153Try \`$0 --help' for more information." ;;
6de9cd9a 32154
5213506e
RW
32155 *) as_fn_append ac_config_targets " $1"
32156 ac_need_defaults=false ;;
6de9cd9a
DN
32157
32158 esac
32159 shift
32160done
32161
32162ac_configure_extra_args=
32163
32164if $ac_cs_silent; then
32165 exec 6>/dev/null
32166 ac_configure_extra_args="$ac_configure_extra_args --silent"
32167fi
32168
32169_ACEOF
5213506e 32170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 32171if \$ac_cs_recheck; then
22e05272 32172 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
32173 shift
32174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32175 CONFIG_SHELL='$SHELL'
32176 export CONFIG_SHELL
32177 exec "\$@"
6de9cd9a
DN
32178fi
32179
1cf3d07d 32180_ACEOF
5213506e
RW
32181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32182exec 5>>config.log
32183{
32184 echo
32185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32186## Running $as_me. ##
32187_ASBOX
32188 $as_echo "$ac_log"
32189} >&5
1cf3d07d 32190
5213506e
RW
32191_ACEOF
32192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 32193#
5213506e 32194# INIT-COMMANDS
1cf3d07d
SE
32195#
32196
1cf3d07d
SE
32197srcdir="$srcdir"
32198host="$host"
32199target="$target"
32200with_multisubdir="$with_multisubdir"
32201with_multisrctop="$with_multisrctop"
32202with_target_subdir="$with_target_subdir"
32203ac_configure_args="${multilib_arg} ${ac_configure_args}"
32204multi_basedir="$multi_basedir"
32205CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
32206CC="$CC"
2017c370
JB
32207CXX="$CXX"
32208GFORTRAN="$GFORTRAN"
22e05272 32209GDC="$GDC"
1cf3d07d
SE
32210AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32211
32212
32213# The HP-UX ksh and POSIX shell print the target directory to stdout
32214# if CDPATH is set.
32215(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32216
32217sed_quote_subst='$sed_quote_subst'
32218double_quote_subst='$double_quote_subst'
32219delay_variable_subst='$delay_variable_subst'
66dbcf2d
RO
32220SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32221Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32222GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32223EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32224FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32225SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32226ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32227LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
32228macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32229macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32230enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32231enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32232pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32233enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
32234host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32235host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32236host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32237build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32238build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32239build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
43e02a8a
RW
32240NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32241LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32242max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32243ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32244exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32245lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32246lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32247lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32248reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32249reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32250OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32251deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32252file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32253AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32254AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32255STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32256RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32257old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32258old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32259old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32260lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32261CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32262CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32263compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32264GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32265lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32266lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32267lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32268lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
32269objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32270MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32271lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32272lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32273lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32274lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32275lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32276need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32277DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32278NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32279LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32280OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32281OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32282libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32283shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32284extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32285archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32286enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32287export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32288whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32289compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32290old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32291old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32292archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32293archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32294module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32295module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32296with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32297allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32298no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32299hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32300hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
32301hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32302hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32303hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32304hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32305hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32306hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32307inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32308link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32309fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
32310always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32311export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32312exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32313include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32314prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32315file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32316variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32317need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32318need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32319version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32320runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32321shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32322shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32323libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32324library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32325soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32326install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32327postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32328postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32329finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32330finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32331hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32332sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32333sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32334hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32335enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32336enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32337enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32338old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32339striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32340compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32341predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32342postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32343predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32344postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32345compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32346LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
32347reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
32348reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
32349old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
32350compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
32351GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
32352lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
32353lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
32354lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
32355lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
32356lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
32357archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
32358enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
32359export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
32360whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
32361compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
32362old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
32363old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
32364archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
32365archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
32366module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
32367module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
32368with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
32369allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
32370no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
32371hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
32372hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
32373hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
32374hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
32375hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
32376hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
32377hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
32378hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
32379inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
32380link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
32381fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
32382always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
32383export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
32384exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
32385include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
32386prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
32387file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
32388hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
32389compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
32390predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
32391postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
32392predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
32393postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
32394compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
32395
32396LTCC='$LTCC'
32397LTCFLAGS='$LTCFLAGS'
32398compiler='$compiler_DEFAULT'
32399
43e02a8a
RW
32400# A function that is used when there is no print builtin or printf.
32401func_fallback_echo ()
32402{
32403 eval 'cat <<_LTECHO_EOF
32404\$1
32405_LTECHO_EOF'
32406}
32407
1cf3d07d 32408# Quote evaled strings.
66dbcf2d 32409for var in SED \
1cf3d07d
SE
32410GREP \
32411EGREP \
32412FGREP \
66dbcf2d
RO
32413SHELL \
32414ECHO \
1cf3d07d
SE
32415LD \
32416NM \
32417LN_S \
32418lt_SP2NL \
32419lt_NL2SP \
32420reload_flag \
d58dead8 32421OBJDUMP \
1cf3d07d
SE
32422deplibs_check_method \
32423file_magic_cmd \
32424AR \
32425AR_FLAGS \
32426STRIP \
32427RANLIB \
32428CC \
32429CFLAGS \
32430compiler \
32431lt_cv_sys_global_symbol_pipe \
32432lt_cv_sys_global_symbol_to_cdecl \
32433lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 32434lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
32435lt_prog_compiler_no_builtin_flag \
32436lt_prog_compiler_wl \
32437lt_prog_compiler_pic \
32438lt_prog_compiler_static \
32439lt_cv_prog_compiler_c_o \
32440need_locks \
d58dead8
PG
32441DSYMUTIL \
32442NMEDIT \
32443LIPO \
32444OTOOL \
32445OTOOL64 \
1cf3d07d
SE
32446shrext_cmds \
32447export_dynamic_flag_spec \
32448whole_archive_flag_spec \
32449compiler_needs_object \
32450with_gnu_ld \
32451allow_undefined_flag \
32452no_undefined_flag \
32453hardcode_libdir_flag_spec \
32454hardcode_libdir_flag_spec_ld \
32455hardcode_libdir_separator \
32456fix_srcfile_path \
32457exclude_expsyms \
32458include_expsyms \
32459file_list_spec \
32460variables_saved_for_relink \
32461libname_spec \
32462library_names_spec \
32463soname_spec \
43e02a8a 32464install_override_mode \
1cf3d07d
SE
32465finish_eval \
32466old_striplib \
32467striplib \
d58dead8 32468compiler_lib_search_dirs \
1cf3d07d
SE
32469predep_objects \
32470postdep_objects \
32471predeps \
32472postdeps \
32473compiler_lib_search_path \
32474LD_FC \
43e02a8a 32475reload_flag_FC \
1cf3d07d
SE
32476compiler_FC \
32477lt_prog_compiler_no_builtin_flag_FC \
32478lt_prog_compiler_wl_FC \
32479lt_prog_compiler_pic_FC \
32480lt_prog_compiler_static_FC \
32481lt_cv_prog_compiler_c_o_FC \
32482export_dynamic_flag_spec_FC \
32483whole_archive_flag_spec_FC \
32484compiler_needs_object_FC \
32485with_gnu_ld_FC \
32486allow_undefined_flag_FC \
32487no_undefined_flag_FC \
32488hardcode_libdir_flag_spec_FC \
32489hardcode_libdir_flag_spec_ld_FC \
32490hardcode_libdir_separator_FC \
32491fix_srcfile_path_FC \
32492exclude_expsyms_FC \
32493include_expsyms_FC \
32494file_list_spec_FC \
d58dead8 32495compiler_lib_search_dirs_FC \
1cf3d07d
SE
32496predep_objects_FC \
32497postdep_objects_FC \
32498predeps_FC \
32499postdeps_FC \
32500compiler_lib_search_path_FC; do
43e02a8a 32501 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 32502 *[\\\\\\\`\\"\\\$]*)
43e02a8a 32503 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
32504 ;;
32505 *)
32506 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32507 ;;
32508 esac
32509done
32510
32511# Double-quote double-evaled strings.
32512for var in reload_cmds \
32513old_postinstall_cmds \
32514old_postuninstall_cmds \
32515old_archive_cmds \
32516extract_expsyms_cmds \
32517old_archive_from_new_cmds \
32518old_archive_from_expsyms_cmds \
32519archive_cmds \
32520archive_expsym_cmds \
32521module_cmds \
32522module_expsym_cmds \
32523export_symbols_cmds \
32524prelink_cmds \
32525postinstall_cmds \
32526postuninstall_cmds \
32527finish_cmds \
32528sys_lib_search_path_spec \
32529sys_lib_dlsearch_path_spec \
43e02a8a 32530reload_cmds_FC \
1cf3d07d
SE
32531old_archive_cmds_FC \
32532old_archive_from_new_cmds_FC \
32533old_archive_from_expsyms_cmds_FC \
32534archive_cmds_FC \
32535archive_expsym_cmds_FC \
32536module_cmds_FC \
32537module_expsym_cmds_FC \
32538export_symbols_cmds_FC \
32539prelink_cmds_FC; do
43e02a8a 32540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 32541 *[\\\\\\\`\\"\\\$]*)
43e02a8a 32542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
32543 ;;
32544 *)
32545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32546 ;;
32547 esac
32548done
32549
1cf3d07d
SE
32550ac_aux_dir='$ac_aux_dir'
32551xsi_shell='$xsi_shell'
32552lt_shell_append='$lt_shell_append'
32553
32554# See if we are running on zsh, and set the options which allow our
32555# commands through without removal of \ escapes INIT.
32556if test -n "\${ZSH_VERSION+set}" ; then
32557 setopt NO_GLOB_SUBST
32558fi
32559
32560
32561 PACKAGE='$PACKAGE'
32562 VERSION='$VERSION'
32563 TIMESTAMP='$TIMESTAMP'
32564 RM='$RM'
32565 ofile='$ofile'
32566
32567
6de9cd9a 32568
6de9cd9a 32569
78511f8b 32570
6de9cd9a 32571
c13e029b
PB
32572GCC="$GCC"
32573CC="$CC"
32574acx_cv_header_stdint="$acx_cv_header_stdint"
32575acx_cv_type_int8_t="$acx_cv_type_int8_t"
32576acx_cv_type_int16_t="$acx_cv_type_int16_t"
32577acx_cv_type_int32_t="$acx_cv_type_int32_t"
32578acx_cv_type_int64_t="$acx_cv_type_int64_t"
32579acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
32580ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
32581ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
32582ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
32583ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
32584ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
32585ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
32586ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 32587ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
32588
32589
6de9cd9a
DN
32590_ACEOF
32591
5213506e 32592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 32593
5213506e 32594# Handling of arguments.
6de9cd9a
DN
32595for ac_config_target in $ac_config_targets
32596do
5213506e
RW
32597 case $ac_config_target in
32598 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32599 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32600 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32601 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32602 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
32603 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 32604 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e 32605
22e05272 32606 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
32607 esac
32608done
32609
5213506e 32610
6de9cd9a
DN
32611# If the user did not use the arguments to specify the items to instantiate,
32612# then the envvar interface is used. Set only those that are not.
32613# We use the long form for the default assignment because of an extremely
32614# bizarre bug on SunOS 4.1.3.
32615if $ac_need_defaults; then
32616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32619fi
32620
32621# Have a temporary directory for convenience. Make it in the build tree
5213506e 32622# simply because there is no reason against having it here, and in addition,
6de9cd9a 32623# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
32624# Hook for its removal unless debugging.
32625# Note that there is a small window in which the directory will not be cleaned:
32626# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
32627$debug ||
32628{
22e05272 32629 tmp= ac_tmp=
5213506e 32630 trap 'exit_status=$?
22e05272
JM
32631 : "${ac_tmp:=$tmp}"
32632 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
32633' 0
32634 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 32635}
6de9cd9a
DN
32636# Create a (secure) tmp directory for tmp files.
32637
32638{
5213506e 32639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 32640 test -d "$tmp"
6de9cd9a
DN
32641} ||
32642{
5213506e
RW
32643 tmp=./conf$$-$RANDOM
32644 (umask 077 && mkdir "$tmp")
22e05272
JM
32645} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32646ac_tmp=$tmp
5213506e
RW
32647
32648# Set up the scripts for CONFIG_FILES section.
32649# No need to generate them if there are no CONFIG_FILES.
32650# This happens for instance with `./config.status config.h'.
32651if test -n "$CONFIG_FILES"; then
32652
32653
32654ac_cr=`echo X | tr X '\015'`
32655# On cygwin, bash can eat \r inside `` if the user requested igncr.
32656# But we know of no other shell where ac_cr would be empty at this
32657# point, so we can use a bashism as a fallback.
32658if test "x$ac_cr" = x; then
32659 eval ac_cr=\$\'\\r\'
32660fi
32661ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32662if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 32663 ac_cs_awk_cr='\\r'
5213506e
RW
32664else
32665 ac_cs_awk_cr=$ac_cr
32666fi
32667
22e05272 32668echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
32669_ACEOF
32670
32671
6de9cd9a 32672{
5213506e
RW
32673 echo "cat >conf$$subs.awk <<_ACEOF" &&
32674 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32675 echo "_ACEOF"
32676} >conf$$subs.sh ||
22e05272
JM
32677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32678ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
32679ac_delim='%!_!# '
32680for ac_last_try in false false false false false :; do
32681 . ./conf$$subs.sh ||
22e05272 32682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
32683
32684 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32685 if test $ac_delim_n = $ac_delim_num; then
32686 break
32687 elif $ac_last_try; then
22e05272 32688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
32689 else
32690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32691 fi
32692done
32693rm -f conf$$subs.sh
32694
32695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 32696cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5213506e
RW
32697_ACEOF
32698sed -n '
32699h
32700s/^/S["/; s/!.*/"]=/
32701p
32702g
32703s/^[^!]*!//
32704:repl
32705t repl
32706s/'"$ac_delim"'$//
32707t delim
32708:nl
32709h
22e05272 32710s/\(.\{148\}\)..*/\1/
5213506e
RW
32711t more1
32712s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32713p
32714n
32715b repl
32716:more1
32717s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32718p
32719g
32720s/.\{148\}//
32721t nl
32722:delim
32723h
22e05272 32724s/\(.\{148\}\)..*/\1/
5213506e
RW
32725t more2
32726s/["\\]/\\&/g; s/^/"/; s/$/"/
32727p
32728b
32729:more2
32730s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32731p
32732g
32733s/.\{148\}//
32734t delim
32735' <conf$$subs.awk | sed '
32736/^[^""]/{
32737 N
32738 s/\n//
32739}
32740' >>$CONFIG_STATUS || ac_write_fail=1
32741rm -f conf$$subs.awk
32742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32743_ACAWK
22e05272 32744cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
32745 for (key in S) S_is_set[key] = 1
32746 FS = "\a"
32747
32748}
32749{
32750 line = $ 0
32751 nfields = split(line, field, "@")
32752 substed = 0
32753 len = length(field[1])
32754 for (i = 2; i < nfields; i++) {
32755 key = field[i]
32756 keylen = length(key)
32757 if (S_is_set[key]) {
32758 value = S[key]
32759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32760 len += length(value) + length(field[++i])
32761 substed = 1
32762 } else
32763 len += 1 + keylen
32764 }
32765
32766 print line
6de9cd9a
DN
32767}
32768
5213506e
RW
32769_ACAWK
32770_ACEOF
32771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32772if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32774else
32775 cat
22e05272
JM
32776fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32777 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38d24731
RW
32778_ACEOF
32779
22e05272
JM
32780# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32781# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
32782# trailing colons and then remove the whole line if VPATH becomes empty
32783# (actually we leave an empty line to preserve line numbers).
32784if test "x$srcdir" = x.; then
22e05272
JM
32785 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32786h
32787s///
32788s/^/:/
32789s/[ ]*$/:/
32790s/:\$(srcdir):/:/g
32791s/:\${srcdir}:/:/g
32792s/:@srcdir@:/:/g
32793s/^:*//
5213506e 32794s/:*$//
22e05272
JM
32795x
32796s/\(=[ ]*\).*/\1/
32797G
32798s/\n//
5213506e
RW
32799s/^[^=]*=[ ]*$//
32800}'
32801fi
38d24731 32802
5213506e
RW
32803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32804fi # test -n "$CONFIG_FILES"
6de9cd9a 32805
5213506e
RW
32806# Set up the scripts for CONFIG_HEADERS section.
32807# No need to generate them if there are no CONFIG_HEADERS.
32808# This happens for instance with `./config.status Makefile'.
32809if test -n "$CONFIG_HEADERS"; then
22e05272 32810cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5213506e
RW
32811BEGIN {
32812_ACEOF
32813
32814# Transform confdefs.h into an awk script `defines.awk', embedded as
32815# here-document in config.status, that substitutes the proper values into
32816# config.h.in to produce config.h.
32817
32818# Create a delimiter string that does not exist in confdefs.h, to ease
32819# handling of long lines.
32820ac_delim='%!_!# '
32821for ac_last_try in false false :; do
22e05272
JM
32822 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32823 if test -z "$ac_tt"; then
5213506e
RW
32824 break
32825 elif $ac_last_try; then
22e05272 32826 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5213506e
RW
32827 else
32828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 32829 fi
5213506e 32830done
c0e7e2bf 32831
5213506e
RW
32832# For the awk script, D is an array of macro values keyed by name,
32833# likewise P contains macro parameters if any. Preserve backslash
32834# newline sequences.
32835
32836ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32837sed -n '
32838s/.\{148\}/&'"$ac_delim"'/g
32839t rset
32840:rset
32841s/^[ ]*#[ ]*define[ ][ ]*/ /
32842t def
32843d
32844:def
32845s/\\$//
32846t bsnl
32847s/["\\]/\\&/g
32848s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32849D["\1"]=" \3"/p
32850s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32851d
32852:bsnl
32853s/["\\]/\\&/g
32854s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32855D["\1"]=" \3\\\\\\n"\\/p
32856t cont
32857s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32858t cont
32859d
32860:cont
32861n
32862s/.\{148\}/&'"$ac_delim"'/g
32863t clear
32864:clear
32865s/\\$//
32866t bsnlc
32867s/["\\]/\\&/g; s/^/"/; s/$/"/p
32868d
32869:bsnlc
32870s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32871b cont
32872' <confdefs.h | sed '
32873s/'"$ac_delim"'/"\\\
32874"/g' >>$CONFIG_STATUS || ac_write_fail=1
32875
32876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32877 for (key in D) D_is_set[key] = 1
32878 FS = "\a"
32879}
32880/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32881 line = \$ 0
32882 split(line, arg, " ")
32883 if (arg[1] == "#") {
32884 defundef = arg[2]
32885 mac1 = arg[3]
32886 } else {
32887 defundef = substr(arg[1], 2)
32888 mac1 = arg[2]
32889 }
32890 split(mac1, mac2, "(") #)
32891 macro = mac2[1]
32892 prefix = substr(line, 1, index(line, defundef) - 1)
32893 if (D_is_set[macro]) {
32894 # Preserve the white space surrounding the "#".
32895 print prefix "define", macro P[macro] D[macro]
32896 next
32897 } else {
32898 # Replace #undef with comments. This is necessary, for example,
32899 # in the case of _POSIX_SOURCE, which is predefined and required
32900 # on some systems where configure will not decide to define it.
32901 if (defundef == "undef") {
32902 print "/*", prefix defundef, macro, "*/"
32903 next
32904 }
32905 }
32906}
32907{ print }
32908_ACAWK
6de9cd9a 32909_ACEOF
5213506e 32910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 32911 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5213506e
RW
32912fi # test -n "$CONFIG_HEADERS"
32913
32914
32915eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32916shift
32917for ac_tag
32918do
32919 case $ac_tag in
32920 :[FHLC]) ac_mode=$ac_tag; continue;;
32921 esac
32922 case $ac_mode$ac_tag in
32923 :[FHL]*:*);;
22e05272 32924 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
32925 :[FH]-) ac_tag=-:-;;
32926 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32927 esac
32928 ac_save_IFS=$IFS
32929 IFS=:
32930 set x $ac_tag
32931 IFS=$ac_save_IFS
32932 shift
32933 ac_file=$1
32934 shift
32935
32936 case $ac_mode in
32937 :L) ac_source=$1;;
32938 :[FH])
32939 ac_file_inputs=
32940 for ac_f
32941 do
32942 case $ac_f in
22e05272 32943 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
32944 *) # Look for the file first in the build tree, then in the source tree
32945 # (if the path is not absolute). The absolute path cannot be DOS-style,
32946 # because $ac_f cannot contain `:'.
32947 test -f "$ac_f" ||
32948 case $ac_f in
32949 [\\/$]*) false;;
32950 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32951 esac ||
22e05272 32952 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
32953 esac
32954 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32955 as_fn_append ac_file_inputs " '$ac_f'"
32956 done
32957
32958 # Let's still pretend it is `configure' which instantiates (i.e., don't
32959 # use $as_me), people would be surprised to read:
32960 # /* config.h. Generated by config.status. */
32961 configure_input='Generated from '`
32962 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32963 `' by configure.'
32964 if test x"$ac_file" != x-; then
32965 configure_input="$ac_file. $configure_input"
32966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32967$as_echo "$as_me: creating $ac_file" >&6;}
32968 fi
32969 # Neutralize special characters interpreted by sed in replacement strings.
32970 case $configure_input in #(
32971 *\&* | *\|* | *\\* )
32972 ac_sed_conf_input=`$as_echo "$configure_input" |
32973 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32974 *) ac_sed_conf_input=$configure_input;;
32975 esac
32976
32977 case $ac_tag in
22e05272
JM
32978 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
32980 esac
32981 ;;
6de9cd9a
DN
32982 esac
32983
5213506e 32984 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
32985$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32986 X"$ac_file" : 'X\(//\)[^/]' \| \
32987 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
32988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32989$as_echo X"$ac_file" |
32990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32991 s//\1/
32992 q
32993 }
32994 /^X\(\/\/\)[^/].*/{
32995 s//\1/
32996 q
32997 }
32998 /^X\(\/\/\)$/{
32999 s//\1/
33000 q
33001 }
33002 /^X\(\/\).*/{
33003 s//\1/
33004 q
33005 }
33006 s/.*/./; q'`
33007 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
33008 ac_builddir=.
33009
5213506e
RW
33010case "$ac_dir" in
33011.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33012*)
33013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33014 # A ".." for each directory in $ac_dir_suffix.
33015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33016 case $ac_top_builddir_sub in
33017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33019 esac ;;
33020esac
33021ac_abs_top_builddir=$ac_pwd
33022ac_abs_builddir=$ac_pwd$ac_dir_suffix
33023# for backward compatibility:
33024ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
33025
33026case $srcdir in
5213506e 33027 .) # We are building in place.
6de9cd9a 33028 ac_srcdir=.
5213506e
RW
33029 ac_top_srcdir=$ac_top_builddir_sub
33030 ac_abs_top_srcdir=$ac_pwd ;;
33031 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 33032 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
33033 ac_top_srcdir=$srcdir
33034 ac_abs_top_srcdir=$srcdir ;;
33035 *) # Relative name.
33036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33037 ac_top_srcdir=$ac_top_build_prefix$srcdir
33038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 33039esac
5213506e 33040ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 33041
6de9cd9a 33042
5213506e
RW
33043 case $ac_mode in
33044 :F)
33045 #
33046 # CONFIG_FILE
33047 #
6de9cd9a
DN
33048
33049 case $INSTALL in
33050 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
33051 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33052 esac
33053 ac_MKDIR_P=$MKDIR_P
33054 case $MKDIR_P in
33055 [\\/$]* | ?:[\\/]* ) ;;
33056 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 33057 esac
5213506e 33058_ACEOF
6de9cd9a 33059
5213506e
RW
33060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33061# If the template does not know about datarootdir, expand it.
33062# FIXME: This hack should be removed a few years after 2.60.
33063ac_datarootdir_hack=; ac_datarootdir_seen=
33064ac_sed_dataroot='
33065/datarootdir/ {
33066 p
33067 q
33068}
33069/@datadir@/p
33070/@docdir@/p
33071/@infodir@/p
33072/@localedir@/p
33073/@mandir@/p'
33074case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33075*datarootdir*) ac_datarootdir_seen=yes;;
33076*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33078$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33079_ACEOF
33080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33081 ac_datarootdir_hack='
33082 s&@datadir@&$datadir&g
33083 s&@docdir@&$docdir&g
33084 s&@infodir@&$infodir&g
33085 s&@localedir@&$localedir&g
33086 s&@mandir@&$mandir&g
33087 s&\\\${datarootdir}&$datarootdir&g' ;;
33088esac
78511f8b 33089_ACEOF
5213506e
RW
33090
33091# Neutralize VPATH when `$srcdir' = `.'.
33092# Shell code in configure.ac might set extrasub.
33093# FIXME: do we really want to maintain this feature?
33094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33095ac_sed_extra="$ac_vpsub
6de9cd9a
DN
33096$extrasub
33097_ACEOF
5213506e 33098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
33099:t
33100/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
33101s|@configure_input@|$ac_sed_conf_input|;t t
33102s&@top_builddir@&$ac_top_builddir_sub&;t t
33103s&@top_build_prefix@&$ac_top_build_prefix&;t t
33104s&@srcdir@&$ac_srcdir&;t t
33105s&@abs_srcdir@&$ac_abs_srcdir&;t t
33106s&@top_srcdir@&$ac_top_srcdir&;t t
33107s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33108s&@builddir@&$ac_builddir&;t t
33109s&@abs_builddir@&$ac_abs_builddir&;t t
33110s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33111s&@INSTALL@&$ac_INSTALL&;t t
33112s&@MKDIR_P@&$ac_MKDIR_P&;t t
33113$ac_datarootdir_hack
33114"
22e05272
JM
33115eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33116 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
33117
33118test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
33119 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33120 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33121 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 33122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 33123which seems to be undefined. Please make sure it is defined" >&5
5213506e 33124$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 33125which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 33126
22e05272 33127 rm -f "$ac_tmp/stdin"
6de9cd9a 33128 case $ac_file in
22e05272
JM
33129 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33130 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 33131 esac \
22e05272 33132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
33133 ;;
33134 :H)
33135 #
33136 # CONFIG_HEADER
33137 #
6de9cd9a 33138 if test x"$ac_file" != x-; then
5213506e
RW
33139 {
33140 $as_echo "/* $configure_input */" \
22e05272
JM
33141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33142 } >"$ac_tmp/config.h" \
33143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33144 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5213506e
RW
33145 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33146$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 33147 else
5213506e 33148 rm -f "$ac_file"
22e05272
JM
33149 mv "$ac_tmp/config.h" "$ac_file" \
33150 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
33151 fi
33152 else
5213506e 33153 $as_echo "/* $configure_input */" \
22e05272
JM
33154 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33155 || as_fn_error $? "could not create -" "$LINENO" 5
6de9cd9a 33156 fi
5213506e
RW
33157# Compute "$ac_file"'s index in $config_headers.
33158_am_arg="$ac_file"
6de9cd9a
DN
33159_am_stamp_count=1
33160for _am_header in $config_headers :; do
33161 case $_am_header in
5213506e 33162 $_am_arg | $_am_arg:* )
6de9cd9a
DN
33163 break ;;
33164 * )
33165 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33166 esac
33167done
5213506e
RW
33168echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33169$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33170 X"$_am_arg" : 'X\(//\)[^/]' \| \
33171 X"$_am_arg" : 'X\(//\)$' \| \
33172 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33173$as_echo X"$_am_arg" |
33174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33175 s//\1/
33176 q
33177 }
33178 /^X\(\/\/\)[^/].*/{
33179 s//\1/
33180 q
33181 }
33182 /^X\(\/\/\)$/{
33183 s//\1/
33184 q
33185 }
33186 /^X\(\/\).*/{
33187 s//\1/
33188 q
33189 }
33190 s/.*/./; q'`/stamp-h$_am_stamp_count
33191 ;;
38d24731 33192
5213506e
RW
33193 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33194$as_echo "$as_me: executing $ac_file commands" >&6;}
33195 ;;
33196 esac
6de9cd9a
DN
33197
33198
5213506e
RW
33199 case $ac_file$ac_mode in
33200 "default-1":C)
96b8a615
AJ
33201# Only add multilib support code if we just rebuilt the top-level
33202# Makefile.
33203case " $CONFIG_FILES " in
33204 *" Makefile "*)
33205 ac_file=Makefile . ${multi_basedir}/config-ml.in
33206 ;;
33207esac ;;
5213506e 33208 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 33209 # Older Autoconf quotes --file arguments for eval, but not when files
5213506e
RW
33210 # are listed without --file. Let's play safe and only enable the eval
33211 # if we detect the quoting.
33212 case $CONFIG_FILES in
33213 *\'*) eval set x "$CONFIG_FILES" ;;
33214 *) set x $CONFIG_FILES ;;
33215 esac
33216 shift
33217 for mf
33218 do
33219 # Strip MF so we end up with the name of the file.
33220 mf=`echo "$mf" | sed -e 's/:.*$//'`
33221 # Check whether this is an Automake generated Makefile or not.
22e05272 33222 # We used to match only the files named 'Makefile.in', but
5213506e
RW
33223 # some people rename them; so instead we look at the file content.
33224 # Grep'ing the first line is not enough: some people post-process
33225 # each Makefile.in and add a new line on top of each file to say so.
33226 # Grep'ing the whole file is not good either: AIX grep has a line
33227 # limit of 2048, but all sed's we know have understand at least 4000.
33228 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33229 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
33230$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33231 X"$mf" : 'X\(//\)[^/]' \| \
33232 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
33233 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33234$as_echo X"$mf" |
33235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33236 s//\1/
33237 q
33238 }
33239 /^X\(\/\/\)[^/].*/{
33240 s//\1/
33241 q
33242 }
33243 /^X\(\/\/\)$/{
33244 s//\1/
33245 q
33246 }
33247 /^X\(\/\).*/{
33248 s//\1/
33249 q
33250 }
33251 s/.*/./; q'`
33252 else
33253 continue
33254 fi
33255 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 33256 # from the Makefile without running 'make'.
5213506e
RW
33257 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33258 test -z "$DEPDIR" && continue
33259 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 33260 test -z "$am__include" && continue
5213506e 33261 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5213506e
RW
33262 # Find all dependency output files, they are included files with
33263 # $(DEPDIR) in their names. We invoke sed twice because it is the
33264 # simplest approach to changing $(DEPDIR) to its actual value in the
33265 # expansion.
33266 for file in `sed -n "
33267 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 33268 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5213506e
RW
33269 # Make sure the directory exists.
33270 test -f "$dirpart/$file" && continue
33271 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
33272$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33273 X"$file" : 'X\(//\)[^/]' \| \
33274 X"$file" : 'X\(//\)$' \| \
5213506e
RW
33275 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33276$as_echo X"$file" |
33277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33278 s//\1/
33279 q
33280 }
33281 /^X\(\/\/\)[^/].*/{
33282 s//\1/
33283 q
33284 }
33285 /^X\(\/\/\)$/{
33286 s//\1/
33287 q
33288 }
33289 /^X\(\/\).*/{
33290 s//\1/
33291 q
33292 }
33293 s/.*/./; q'`
33294 as_dir=$dirpart/$fdir; as_fn_mkdir_p
33295 # echo "creating $dirpart/$file"
33296 echo '# dummy' > "$dirpart/$file"
679c0f9a 33297 done
679c0f9a 33298 done
5213506e 33299}
1cf3d07d 33300 ;;
5213506e 33301 "libtool":C)
1cf3d07d
SE
33302
33303 # See if we are running on zsh, and set the options which allow our
33304 # commands through without removal of \ escapes.
33305 if test -n "${ZSH_VERSION+set}" ; then
33306 setopt NO_GLOB_SUBST
33307 fi
33308
33309 cfgfile="${ofile}T"
33310 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33311 $RM "$cfgfile"
33312
33313 cat <<_LT_EOF >> "$cfgfile"
33314#! $SHELL
33315
33316# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 33317# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
33318# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33319# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33320#
d58dead8 33321# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 33322# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 33323# Written by Gordon Matzigkeit, 1996
1cf3d07d 33324#
d58dead8 33325# This file is part of GNU Libtool.
1cf3d07d 33326#
d58dead8
PG
33327# GNU Libtool is free software; you can redistribute it and/or
33328# modify it under the terms of the GNU General Public License as
33329# published by the Free Software Foundation; either version 2 of
33330# the License, or (at your option) any later version.
1cf3d07d 33331#
d58dead8
PG
33332# As a special exception to the GNU General Public License,
33333# if you distribute this file as part of a program or library that
33334# is built using GNU Libtool, you may include this file under the
33335# same distribution terms that you use for the rest of that program.
1cf3d07d 33336#
d58dead8
PG
33337# GNU Libtool is distributed in the hope that it will be useful,
33338# but WITHOUT ANY WARRANTY; without even the implied warranty of
33339# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33340# GNU General Public License for more details.
1cf3d07d 33341#
d58dead8
PG
33342# You should have received a copy of the GNU General Public License
33343# along with GNU Libtool; see the file COPYING. If not, a copy
33344# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33345# obtained by writing to the Free Software Foundation, Inc.,
33346# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
33347
33348
33349# The names of the tagged configurations supported by this script.
33350available_tags="FC "
33351
33352# ### BEGIN LIBTOOL CONFIG
33353
66dbcf2d
RO
33354# A sed program that does not truncate output.
33355SED=$lt_SED
33356
33357# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33358Xsed="\$SED -e 1s/^X//"
33359
33360# A grep program that handles long lines.
33361GREP=$lt_GREP
33362
33363# An ERE matcher.
33364EGREP=$lt_EGREP
33365
33366# A literal string matcher.
33367FGREP=$lt_FGREP
33368
33369# Shell to use when invoking shell scripts.
33370SHELL=$lt_SHELL
33371
33372# An echo program that protects backslashes.
33373ECHO=$lt_ECHO
33374
1cf3d07d
SE
33375# Which release of libtool.m4 was used?
33376macro_version=$macro_version
33377macro_revision=$macro_revision
33378
33379# Whether or not to build shared libraries.
33380build_libtool_libs=$enable_shared
33381
33382# Whether or not to build static libraries.
33383build_old_libs=$enable_static
33384
33385# What type of objects to build.
33386pic_mode=$pic_mode
33387
33388# Whether or not to optimize for fast installation.
33389fast_install=$enable_fast_install
33390
33391# The host system.
33392host_alias=$host_alias
33393host=$host
33394host_os=$host_os
33395
33396# The build system.
33397build_alias=$build_alias
33398build=$build
33399build_os=$build_os
33400
1cf3d07d
SE
33401# A BSD- or MS-compatible name lister.
33402NM=$lt_NM
33403
33404# Whether we need soft or hard links.
33405LN_S=$lt_LN_S
33406
33407# What is the maximum length of a command?
33408max_cmd_len=$max_cmd_len
33409
33410# Object file suffix (normally "o").
33411objext=$ac_objext
33412
33413# Executable file suffix (normally "").
33414exeext=$exeext
33415
33416# whether the shell understands "unset".
33417lt_unset=$lt_unset
33418
33419# turn spaces into newlines.
33420SP2NL=$lt_lt_SP2NL
33421
33422# turn newlines into spaces.
33423NL2SP=$lt_lt_NL2SP
33424
d58dead8
PG
33425# An object symbol dumper.
33426OBJDUMP=$lt_OBJDUMP
33427
1cf3d07d
SE
33428# Method to check whether dependent libraries are shared objects.
33429deplibs_check_method=$lt_deplibs_check_method
33430
33431# Command to use when deplibs_check_method == "file_magic".
33432file_magic_cmd=$lt_file_magic_cmd
33433
33434# The archiver.
33435AR=$lt_AR
33436AR_FLAGS=$lt_AR_FLAGS
33437
33438# A symbol stripping program.
33439STRIP=$lt_STRIP
33440
33441# Commands used to install an old-style archive.
33442RANLIB=$lt_RANLIB
33443old_postinstall_cmds=$lt_old_postinstall_cmds
33444old_postuninstall_cmds=$lt_old_postuninstall_cmds
33445
43e02a8a
RW
33446# Whether to use a lock for old archive extraction.
33447lock_old_archive_extraction=$lock_old_archive_extraction
33448
1cf3d07d
SE
33449# A C compiler.
33450LTCC=$lt_CC
33451
33452# LTCC compiler flags.
33453LTCFLAGS=$lt_CFLAGS
33454
33455# Take the output of nm and produce a listing of raw symbols and C names.
33456global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33457
33458# Transform the output of nm in a proper C declaration.
33459global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33460
33461# Transform the output of nm in a C name address pair.
33462global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33463
d58dead8
PG
33464# Transform the output of nm in a C name address pair when lib prefix is needed.
33465global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33466
1cf3d07d
SE
33467# The name of the directory that contains temporary libtool files.
33468objdir=$objdir
33469
1cf3d07d
SE
33470# Used to examine libraries when file_magic_cmd begins with "file".
33471MAGIC_CMD=$MAGIC_CMD
33472
33473# Must we lock files when doing compilation?
33474need_locks=$lt_need_locks
33475
d58dead8
PG
33476# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33477DSYMUTIL=$lt_DSYMUTIL
33478
33479# Tool to change global to local symbols on Mac OS X.
33480NMEDIT=$lt_NMEDIT
33481
33482# Tool to manipulate fat objects and archives on Mac OS X.
33483LIPO=$lt_LIPO
33484
33485# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33486OTOOL=$lt_OTOOL
33487
33488# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33489OTOOL64=$lt_OTOOL64
33490
1cf3d07d
SE
33491# Old archive suffix (normally "a").
33492libext=$libext
33493
33494# Shared library suffix (normally ".so").
33495shrext_cmds=$lt_shrext_cmds
33496
33497# The commands to extract the exported symbol list from a shared archive.
33498extract_expsyms_cmds=$lt_extract_expsyms_cmds
33499
33500# Variables whose values should be saved in libtool wrapper scripts and
33501# restored at link time.
33502variables_saved_for_relink=$lt_variables_saved_for_relink
33503
33504# Do we need the "lib" prefix for modules?
33505need_lib_prefix=$need_lib_prefix
33506
33507# Do we need a version for libraries?
33508need_version=$need_version
33509
33510# Library versioning type.
33511version_type=$version_type
33512
33513# Shared library runtime path variable.
33514runpath_var=$runpath_var
33515
33516# Shared library path variable.
33517shlibpath_var=$shlibpath_var
33518
33519# Is shlibpath searched before the hard-coded library search path?
33520shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33521
33522# Format of library name prefix.
33523libname_spec=$lt_libname_spec
33524
33525# List of archive names. First name is the real one, the rest are links.
33526# The last name is the one that the linker finds with -lNAME
33527library_names_spec=$lt_library_names_spec
33528
33529# The coded name of the library, if different from the real name.
33530soname_spec=$lt_soname_spec
33531
43e02a8a
RW
33532# Permission mode override for installation of shared libraries.
33533install_override_mode=$lt_install_override_mode
33534
1cf3d07d
SE
33535# Command to use after installation of a shared archive.
33536postinstall_cmds=$lt_postinstall_cmds
33537
33538# Command to use after uninstallation of a shared archive.
33539postuninstall_cmds=$lt_postuninstall_cmds
33540
33541# Commands used to finish a libtool library installation in a directory.
33542finish_cmds=$lt_finish_cmds
33543
33544# As "finish_cmds", except a single script fragment to be evaled but
33545# not shown.
33546finish_eval=$lt_finish_eval
33547
33548# Whether we should hardcode library paths into libraries.
33549hardcode_into_libs=$hardcode_into_libs
33550
33551# Compile-time system search path for libraries.
33552sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33553
33554# Run-time system search path for libraries.
33555sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33556
33557# Whether dlopen is supported.
33558dlopen_support=$enable_dlopen
33559
33560# Whether dlopen of programs is supported.
33561dlopen_self=$enable_dlopen_self
33562
33563# Whether dlopen of statically linked programs is supported.
33564dlopen_self_static=$enable_dlopen_self_static
33565
33566# Commands to strip libraries.
33567old_striplib=$lt_old_striplib
33568striplib=$lt_striplib
33569
33570
33571# The linker used to build libraries.
33572LD=$lt_LD
33573
43e02a8a
RW
33574# How to create reloadable object files.
33575reload_flag=$lt_reload_flag
33576reload_cmds=$lt_reload_cmds
33577
1cf3d07d
SE
33578# Commands used to build an old-style archive.
33579old_archive_cmds=$lt_old_archive_cmds
33580
33581# A language specific compiler.
33582CC=$lt_compiler
33583
33584# Is the compiler the GNU compiler?
33585with_gcc=$GCC
33586
33587# Compiler flag to turn off builtin functions.
33588no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33589
33590# How to pass a linker flag through the compiler.
33591wl=$lt_lt_prog_compiler_wl
33592
33593# Additional compiler flags for building library objects.
33594pic_flag=$lt_lt_prog_compiler_pic
33595
33596# Compiler flag to prevent dynamic linking.
33597link_static_flag=$lt_lt_prog_compiler_static
33598
33599# Does compiler simultaneously support -c and -o options?
33600compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33601
33602# Whether or not to add -lc for building shared libraries.
33603build_libtool_need_lc=$archive_cmds_need_lc
33604
33605# Whether or not to disallow shared libs when runtime libs are static.
33606allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33607
33608# Compiler flag to allow reflexive dlopens.
33609export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33610
33611# Compiler flag to generate shared objects directly from archives.
33612whole_archive_flag_spec=$lt_whole_archive_flag_spec
33613
33614# Whether the compiler copes with passing no objects directly.
33615compiler_needs_object=$lt_compiler_needs_object
33616
33617# Create an old-style archive from a shared archive.
33618old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33619
33620# Create a temporary old-style archive to link instead of a shared archive.
33621old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33622
33623# Commands used to build a shared archive.
33624archive_cmds=$lt_archive_cmds
33625archive_expsym_cmds=$lt_archive_expsym_cmds
33626
33627# Commands used to build a loadable module if different from building
33628# a shared archive.
33629module_cmds=$lt_module_cmds
33630module_expsym_cmds=$lt_module_expsym_cmds
33631
33632# Whether we are building with GNU ld or not.
33633with_gnu_ld=$lt_with_gnu_ld
33634
33635# Flag that allows shared libraries with undefined symbols to be built.
33636allow_undefined_flag=$lt_allow_undefined_flag
33637
33638# Flag that enforces no undefined symbols.
33639no_undefined_flag=$lt_no_undefined_flag
33640
33641# Flag to hardcode \$libdir into a binary during linking.
33642# This must work even if \$libdir does not exist
33643hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33644
33645# If ld is used when linking, flag to hardcode \$libdir into a binary
33646# during linking. This must work even if \$libdir does not exist.
33647hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33648
33649# Whether we need a single "-rpath" flag with a separated argument.
33650hardcode_libdir_separator=$lt_hardcode_libdir_separator
33651
33652# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33653# DIR into the resulting binary.
33654hardcode_direct=$hardcode_direct
33655
33656# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33657# DIR into the resulting binary and the resulting library dependency is
33658# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33659# library is relocated.
33660hardcode_direct_absolute=$hardcode_direct_absolute
33661
33662# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33663# into the resulting binary.
33664hardcode_minus_L=$hardcode_minus_L
33665
33666# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33667# into the resulting binary.
33668hardcode_shlibpath_var=$hardcode_shlibpath_var
33669
33670# Set to "yes" if building a shared library automatically hardcodes DIR
33671# into the library and all subsequent libraries and executables linked
33672# against it.
33673hardcode_automatic=$hardcode_automatic
33674
33675# Set to yes if linker adds runtime paths of dependent libraries
33676# to runtime path list.
33677inherit_rpath=$inherit_rpath
33678
33679# Whether libtool must link a program against all its dependency libraries.
33680link_all_deplibs=$link_all_deplibs
33681
33682# Fix the shell variable \$srcfile for the compiler.
33683fix_srcfile_path=$lt_fix_srcfile_path
33684
33685# Set to "yes" if exported symbols are required.
33686always_export_symbols=$always_export_symbols
33687
33688# The commands to list exported symbols.
33689export_symbols_cmds=$lt_export_symbols_cmds
33690
33691# Symbols that should not be listed in the preloaded symbols.
33692exclude_expsyms=$lt_exclude_expsyms
33693
33694# Symbols that must always be exported.
33695include_expsyms=$lt_include_expsyms
33696
33697# Commands necessary for linking programs (against libraries) with templates.
33698prelink_cmds=$lt_prelink_cmds
33699
33700# Specify filename containing input files.
33701file_list_spec=$lt_file_list_spec
33702
33703# How to hardcode a shared library path into an executable.
33704hardcode_action=$hardcode_action
33705
d58dead8
PG
33706# The directories searched by this compiler when creating a shared library.
33707compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33708
1cf3d07d
SE
33709# Dependencies to place before and after the objects being linked to
33710# create a shared library.
33711predep_objects=$lt_predep_objects
33712postdep_objects=$lt_postdep_objects
33713predeps=$lt_predeps
33714postdeps=$lt_postdeps
33715
33716# The library search path used internally by the compiler when linking
33717# a shared library.
33718compiler_lib_search_path=$lt_compiler_lib_search_path
33719
33720# ### END LIBTOOL CONFIG
33721
33722_LT_EOF
33723
33724 case $host_os in
33725 aix3*)
33726 cat <<\_LT_EOF >> "$cfgfile"
33727# AIX sometimes has problems with the GCC collect2 program. For some
33728# reason, if we set the COLLECT_NAMES environment variable, the problems
33729# vanish in a puff of smoke.
33730if test "X${COLLECT_NAMES+set}" != Xset; then
33731 COLLECT_NAMES=
33732 export COLLECT_NAMES
33733fi
33734_LT_EOF
33735 ;;
33736 esac
33737
33738
33739ltmain="$ac_aux_dir/ltmain.sh"
33740
33741
33742 # We use sed instead of cat because bash on DJGPP gets confused if
33743 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33744 # text mode, it properly converts lines to CR/LF. This bash problem
33745 # is reportedly fixed, but why not run on old versions too?
33746 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33747 || (rm -f "$cfgfile"; exit 1)
33748
33749 case $xsi_shell in
33750 yes)
33751 cat << \_LT_EOF >> "$cfgfile"
d58dead8 33752
1cf3d07d
SE
33753# func_dirname file append nondir_replacement
33754# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33755# otherwise set result to NONDIR_REPLACEMENT.
33756func_dirname ()
33757{
33758 case ${1} in
33759 */*) func_dirname_result="${1%/*}${2}" ;;
33760 * ) func_dirname_result="${3}" ;;
33761 esac
33762}
33763
33764# func_basename file
33765func_basename ()
33766{
33767 func_basename_result="${1##*/}"
33768}
33769
d58dead8
PG
33770# func_dirname_and_basename file append nondir_replacement
33771# perform func_basename and func_dirname in a single function
33772# call:
33773# dirname: Compute the dirname of FILE. If nonempty,
33774# add APPEND to the result, otherwise set result
33775# to NONDIR_REPLACEMENT.
33776# value returned in "$func_dirname_result"
33777# basename: Compute filename of FILE.
33778# value retuned in "$func_basename_result"
33779# Implementation must be kept synchronized with func_dirname
33780# and func_basename. For efficiency, we do not delegate to
33781# those functions but instead duplicate the functionality here.
33782func_dirname_and_basename ()
33783{
33784 case ${1} in
33785 */*) func_dirname_result="${1%/*}${2}" ;;
33786 * ) func_dirname_result="${3}" ;;
33787 esac
33788 func_basename_result="${1##*/}"
33789}
33790
1cf3d07d
SE
33791# func_stripname prefix suffix name
33792# strip PREFIX and SUFFIX off of NAME.
33793# PREFIX and SUFFIX must not contain globbing or regex special
33794# characters, hashes, percent signs, but SUFFIX may contain a leading
33795# dot (in which case that matches only a dot).
33796func_stripname ()
33797{
33798 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33799 # positional parameters, so assign one to ordinary parameter first.
33800 func_stripname_result=${3}
33801 func_stripname_result=${func_stripname_result#"${1}"}
33802 func_stripname_result=${func_stripname_result%"${2}"}
33803}
33804
33805# func_opt_split
33806func_opt_split ()
33807{
33808 func_opt_split_opt=${1%%=*}
33809 func_opt_split_arg=${1#*=}
33810}
33811
33812# func_lo2o object
33813func_lo2o ()
33814{
33815 case ${1} in
33816 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33817 *) func_lo2o_result=${1} ;;
33818 esac
33819}
d58dead8
PG
33820
33821# func_xform libobj-or-source
33822func_xform ()
33823{
33824 func_xform_result=${1%.*}.lo
33825}
33826
33827# func_arith arithmetic-term...
33828func_arith ()
33829{
33830 func_arith_result=$(( $* ))
33831}
33832
33833# func_len string
33834# STRING may not start with a hyphen.
33835func_len ()
33836{
33837 func_len_result=${#1}
33838}
33839
1cf3d07d
SE
33840_LT_EOF
33841 ;;
33842 *) # Bourne compatible functions.
33843 cat << \_LT_EOF >> "$cfgfile"
d58dead8 33844
1cf3d07d
SE
33845# func_dirname file append nondir_replacement
33846# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33847# otherwise set result to NONDIR_REPLACEMENT.
33848func_dirname ()
33849{
33850 # Extract subdirectory from the argument.
43e02a8a 33851 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
33852 if test "X$func_dirname_result" = "X${1}"; then
33853 func_dirname_result="${3}"
33854 else
33855 func_dirname_result="$func_dirname_result${2}"
33856 fi
33857}
33858
33859# func_basename file
33860func_basename ()
33861{
43e02a8a 33862 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
33863}
33864
d58dead8 33865
1cf3d07d
SE
33866# func_stripname prefix suffix name
33867# strip PREFIX and SUFFIX off of NAME.
33868# PREFIX and SUFFIX must not contain globbing or regex special
33869# characters, hashes, percent signs, but SUFFIX may contain a leading
33870# dot (in which case that matches only a dot).
33871# func_strip_suffix prefix name
33872func_stripname ()
33873{
33874 case ${2} in
43e02a8a
RW
33875 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
33876 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
33877 esac
33878}
33879
33880# sed scripts:
33881my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33882my_sed_long_arg='1s/^-[^=]*=//'
33883
33884# func_opt_split
33885func_opt_split ()
33886{
43e02a8a
RW
33887 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
33888 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
33889}
33890
33891# func_lo2o object
33892func_lo2o ()
33893{
43e02a8a 33894 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 33895}
d58dead8
PG
33896
33897# func_xform libobj-or-source
33898func_xform ()
33899{
43e02a8a 33900 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
33901}
33902
33903# func_arith arithmetic-term...
33904func_arith ()
33905{
33906 func_arith_result=`expr "$@"`
33907}
33908
33909# func_len string
33910# STRING may not start with a hyphen.
33911func_len ()
33912{
33913 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33914}
33915
1cf3d07d
SE
33916_LT_EOF
33917esac
33918
33919case $lt_shell_append in
33920 yes)
33921 cat << \_LT_EOF >> "$cfgfile"
33922
33923# func_append var value
33924# Append VALUE to the end of shell variable VAR.
33925func_append ()
33926{
33927 eval "$1+=\$2"
33928}
33929_LT_EOF
33930 ;;
33931 *)
33932 cat << \_LT_EOF >> "$cfgfile"
33933
33934# func_append var value
33935# Append VALUE to the end of shell variable VAR.
33936func_append ()
33937{
33938 eval "$1=\$$1\$2"
33939}
d58dead8 33940
1cf3d07d
SE
33941_LT_EOF
33942 ;;
33943 esac
33944
33945
33946 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33947 || (rm -f "$cfgfile"; exit 1)
33948
33949 mv -f "$cfgfile" "$ofile" ||
33950 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33951 chmod +x "$ofile"
33952
33953
33954 cat <<_LT_EOF >> "$ofile"
33955
33956# ### BEGIN LIBTOOL TAG CONFIG: FC
33957
33958# The linker used to build libraries.
33959LD=$lt_LD_FC
33960
43e02a8a
RW
33961# How to create reloadable object files.
33962reload_flag=$lt_reload_flag_FC
33963reload_cmds=$lt_reload_cmds_FC
33964
1cf3d07d
SE
33965# Commands used to build an old-style archive.
33966old_archive_cmds=$lt_old_archive_cmds_FC
33967
33968# A language specific compiler.
33969CC=$lt_compiler_FC
33970
33971# Is the compiler the GNU compiler?
33972with_gcc=$GCC_FC
33973
33974# Compiler flag to turn off builtin functions.
33975no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
33976
33977# How to pass a linker flag through the compiler.
33978wl=$lt_lt_prog_compiler_wl_FC
33979
33980# Additional compiler flags for building library objects.
33981pic_flag=$lt_lt_prog_compiler_pic_FC
33982
33983# Compiler flag to prevent dynamic linking.
33984link_static_flag=$lt_lt_prog_compiler_static_FC
33985
33986# Does compiler simultaneously support -c and -o options?
33987compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
33988
33989# Whether or not to add -lc for building shared libraries.
33990build_libtool_need_lc=$archive_cmds_need_lc_FC
33991
33992# Whether or not to disallow shared libs when runtime libs are static.
33993allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
33994
33995# Compiler flag to allow reflexive dlopens.
33996export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
33997
33998# Compiler flag to generate shared objects directly from archives.
33999whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
34000
34001# Whether the compiler copes with passing no objects directly.
34002compiler_needs_object=$lt_compiler_needs_object_FC
34003
34004# Create an old-style archive from a shared archive.
34005old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
34006
34007# Create a temporary old-style archive to link instead of a shared archive.
34008old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
34009
34010# Commands used to build a shared archive.
34011archive_cmds=$lt_archive_cmds_FC
34012archive_expsym_cmds=$lt_archive_expsym_cmds_FC
34013
34014# Commands used to build a loadable module if different from building
34015# a shared archive.
34016module_cmds=$lt_module_cmds_FC
34017module_expsym_cmds=$lt_module_expsym_cmds_FC
34018
34019# Whether we are building with GNU ld or not.
34020with_gnu_ld=$lt_with_gnu_ld_FC
34021
34022# Flag that allows shared libraries with undefined symbols to be built.
34023allow_undefined_flag=$lt_allow_undefined_flag_FC
34024
34025# Flag that enforces no undefined symbols.
34026no_undefined_flag=$lt_no_undefined_flag_FC
34027
34028# Flag to hardcode \$libdir into a binary during linking.
34029# This must work even if \$libdir does not exist
34030hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
34031
34032# If ld is used when linking, flag to hardcode \$libdir into a binary
34033# during linking. This must work even if \$libdir does not exist.
34034hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
34035
34036# Whether we need a single "-rpath" flag with a separated argument.
34037hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
34038
34039# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34040# DIR into the resulting binary.
34041hardcode_direct=$hardcode_direct_FC
34042
34043# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34044# DIR into the resulting binary and the resulting library dependency is
34045# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34046# library is relocated.
34047hardcode_direct_absolute=$hardcode_direct_absolute_FC
34048
34049# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34050# into the resulting binary.
34051hardcode_minus_L=$hardcode_minus_L_FC
34052
34053# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34054# into the resulting binary.
34055hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
34056
34057# Set to "yes" if building a shared library automatically hardcodes DIR
34058# into the library and all subsequent libraries and executables linked
34059# against it.
34060hardcode_automatic=$hardcode_automatic_FC
34061
34062# Set to yes if linker adds runtime paths of dependent libraries
34063# to runtime path list.
34064inherit_rpath=$inherit_rpath_FC
34065
34066# Whether libtool must link a program against all its dependency libraries.
34067link_all_deplibs=$link_all_deplibs_FC
34068
34069# Fix the shell variable \$srcfile for the compiler.
34070fix_srcfile_path=$lt_fix_srcfile_path_FC
34071
34072# Set to "yes" if exported symbols are required.
34073always_export_symbols=$always_export_symbols_FC
34074
34075# The commands to list exported symbols.
34076export_symbols_cmds=$lt_export_symbols_cmds_FC
34077
34078# Symbols that should not be listed in the preloaded symbols.
34079exclude_expsyms=$lt_exclude_expsyms_FC
34080
34081# Symbols that must always be exported.
34082include_expsyms=$lt_include_expsyms_FC
34083
34084# Commands necessary for linking programs (against libraries) with templates.
34085prelink_cmds=$lt_prelink_cmds_FC
34086
34087# Specify filename containing input files.
34088file_list_spec=$lt_file_list_spec_FC
34089
34090# How to hardcode a shared library path into an executable.
34091hardcode_action=$hardcode_action_FC
34092
d58dead8
PG
34093# The directories searched by this compiler when creating a shared library.
34094compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
34095
1cf3d07d
SE
34096# Dependencies to place before and after the objects being linked to
34097# create a shared library.
34098predep_objects=$lt_predep_objects_FC
34099postdep_objects=$lt_postdep_objects_FC
34100predeps=$lt_predeps_FC
34101postdeps=$lt_postdeps_FC
34102
34103# The library search path used internally by the compiler when linking
34104# a shared library.
34105compiler_lib_search_path=$lt_compiler_lib_search_path_FC
34106
34107# ### END LIBTOOL TAG CONFIG: FC
34108_LT_EOF
34109
679c0f9a 34110 ;;
5213506e 34111 "gstdint.h":C)
c13e029b
PB
34112if test "$GCC" = yes; then
34113 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
34114else
34115 echo "/* generated for $CC */" > tmp-stdint.h
34116fi
4c4b3eb0 34117
c13e029b
PB
34118sed 's/^ *//' >> tmp-stdint.h <<EOF
34119
34120 #ifndef GCC_GENERATED_STDINT_H
34121 #define GCC_GENERATED_STDINT_H 1
34122
34123 #include <sys/types.h>
4c4b3eb0 34124EOF
4c4b3eb0 34125
c13e029b
PB
34126if test "$acx_cv_header_stdint" != stdint.h; then
34127 echo "#include <stddef.h>" >> tmp-stdint.h
34128fi
34129if test "$acx_cv_header_stdint" != stddef.h; then
34130 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
34131fi
34132
34133sed 's/^ *//' >> tmp-stdint.h <<EOF
34134 /* glibc uses these symbols as guards to prevent redefinitions. */
34135 #ifdef __int8_t_defined
34136 #define _INT8_T
34137 #define _INT16_T
34138 #define _INT32_T
34139 #endif
34140 #ifdef __uint32_t_defined
34141 #define _UINT32_T
34142 #endif
34143
34144EOF
34145
34146# ----------------- done header, emit basic int types -------------
34147if test "$acx_cv_header_stdint" = stddef.h; then
34148 sed 's/^ *//' >> tmp-stdint.h <<EOF
34149
34150 #ifndef _UINT8_T
34151 #define _UINT8_T
34152 #ifndef __uint8_t_defined
34153 #define __uint8_t_defined
b9497ab5 34154 #ifndef uint8_t
c13e029b
PB
34155 typedef unsigned $acx_cv_type_int8_t uint8_t;
34156 #endif
34157 #endif
b9497ab5 34158 #endif
c13e029b
PB
34159
34160 #ifndef _UINT16_T
34161 #define _UINT16_T
34162 #ifndef __uint16_t_defined
34163 #define __uint16_t_defined
b9497ab5 34164 #ifndef uint16_t
c13e029b
PB
34165 typedef unsigned $acx_cv_type_int16_t uint16_t;
34166 #endif
34167 #endif
b9497ab5 34168 #endif
c13e029b
PB
34169
34170 #ifndef _UINT32_T
34171 #define _UINT32_T
34172 #ifndef __uint32_t_defined
34173 #define __uint32_t_defined
b9497ab5 34174 #ifndef uint32_t
c13e029b
PB
34175 typedef unsigned $acx_cv_type_int32_t uint32_t;
34176 #endif
34177 #endif
b9497ab5 34178 #endif
c13e029b
PB
34179
34180 #ifndef _INT8_T
34181 #define _INT8_T
34182 #ifndef __int8_t_defined
34183 #define __int8_t_defined
b9497ab5 34184 #ifndef int8_t
c13e029b
PB
34185 typedef $acx_cv_type_int8_t int8_t;
34186 #endif
34187 #endif
b9497ab5 34188 #endif
c13e029b
PB
34189
34190 #ifndef _INT16_T
34191 #define _INT16_T
34192 #ifndef __int16_t_defined
34193 #define __int16_t_defined
b9497ab5 34194 #ifndef int16_t
c13e029b
PB
34195 typedef $acx_cv_type_int16_t int16_t;
34196 #endif
34197 #endif
b9497ab5 34198 #endif
c13e029b
PB
34199
34200 #ifndef _INT32_T
34201 #define _INT32_T
34202 #ifndef __int32_t_defined
34203 #define __int32_t_defined
b9497ab5 34204 #ifndef int32_t
c13e029b
PB
34205 typedef $acx_cv_type_int32_t int32_t;
34206 #endif
34207 #endif
b9497ab5 34208 #endif
c13e029b
PB
34209EOF
34210elif test "$ac_cv_type_u_int32_t" = yes; then
34211 sed 's/^ *//' >> tmp-stdint.h <<EOF
34212
34213 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
34214 #ifndef _INT8_T
34215 #define _INT8_T
34216 #endif
34217 #ifndef _INT16_T
34218 #define _INT16_T
34219 #endif
34220 #ifndef _INT32_T
34221 #define _INT32_T
34222 #endif
34223
34224 #ifndef _UINT8_T
34225 #define _UINT8_T
34226 #ifndef __uint8_t_defined
34227 #define __uint8_t_defined
b9497ab5 34228 #ifndef uint8_t
c13e029b
PB
34229 typedef u_int8_t uint8_t;
34230 #endif
34231 #endif
b9497ab5 34232 #endif
c13e029b
PB
34233
34234 #ifndef _UINT16_T
34235 #define _UINT16_T
34236 #ifndef __uint16_t_defined
34237 #define __uint16_t_defined
b9497ab5 34238 #ifndef uint16_t
c13e029b
PB
34239 typedef u_int16_t uint16_t;
34240 #endif
34241 #endif
b9497ab5 34242 #endif
c13e029b
PB
34243
34244 #ifndef _UINT32_T
34245 #define _UINT32_T
34246 #ifndef __uint32_t_defined
34247 #define __uint32_t_defined
b9497ab5 34248 #ifndef uint32_t
c13e029b
PB
34249 typedef u_int32_t uint32_t;
34250 #endif
34251 #endif
b9497ab5 34252 #endif
c13e029b
PB
34253EOF
34254else
34255 sed 's/^ *//' >> tmp-stdint.h <<EOF
34256
34257 /* Some systems have guard macros to prevent redefinitions, define them. */
34258 #ifndef _INT8_T
34259 #define _INT8_T
34260 #endif
34261 #ifndef _INT16_T
34262 #define _INT16_T
34263 #endif
34264 #ifndef _INT32_T
34265 #define _INT32_T
34266 #endif
34267 #ifndef _UINT8_T
34268 #define _UINT8_T
34269 #endif
34270 #ifndef _UINT16_T
34271 #define _UINT16_T
34272 #endif
34273 #ifndef _UINT32_T
34274 #define _UINT32_T
34275 #endif
34276EOF
34277fi
34278
34279# ------------- done basic int types, emit int64_t types ------------
34280if test "$ac_cv_type_uint64_t" = yes; then
34281 sed 's/^ *//' >> tmp-stdint.h <<EOF
34282
34283 /* system headers have good uint64_t and int64_t */
34284 #ifndef _INT64_T
34285 #define _INT64_T
34286 #endif
34287 #ifndef _UINT64_T
34288 #define _UINT64_T
34289 #endif
34290EOF
34291elif test "$ac_cv_type_u_int64_t" = yes; then
34292 sed 's/^ *//' >> tmp-stdint.h <<EOF
34293
34294 /* system headers have an u_int64_t (and int64_t) */
34295 #ifndef _INT64_T
34296 #define _INT64_T
34297 #endif
34298 #ifndef _UINT64_T
34299 #define _UINT64_T
34300 #ifndef __uint64_t_defined
34301 #define __uint64_t_defined
b9497ab5 34302 #ifndef uint64_t
c13e029b
PB
34303 typedef u_int64_t uint64_t;
34304 #endif
34305 #endif
b9497ab5 34306 #endif
c13e029b
PB
34307EOF
34308elif test -n "$acx_cv_type_int64_t"; then
34309 sed 's/^ *//' >> tmp-stdint.h <<EOF
34310
34311 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
34312 #ifndef _INT64_T
34313 #define _INT64_T
b9497ab5 34314 #ifndef int64_t
c13e029b
PB
34315 typedef $acx_cv_type_int64_t int64_t;
34316 #endif
b9497ab5 34317 #endif
c13e029b
PB
34318 #ifndef _UINT64_T
34319 #define _UINT64_T
34320 #ifndef __uint64_t_defined
34321 #define __uint64_t_defined
b9497ab5 34322 #ifndef uint64_t
c13e029b
PB
34323 typedef unsigned $acx_cv_type_int64_t uint64_t;
34324 #endif
34325 #endif
b9497ab5 34326 #endif
c13e029b
PB
34327EOF
34328else
34329 sed 's/^ *//' >> tmp-stdint.h <<EOF
34330
34331 /* some common heuristics for int64_t, using compiler-specific tests */
34332 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
34333 #ifndef _INT64_T
34334 #define _INT64_T
34335 #ifndef __int64_t_defined
b9497ab5 34336 #ifndef int64_t
c13e029b
PB
34337 typedef long long int64_t;
34338 #endif
34339 #endif
b9497ab5 34340 #endif
c13e029b
PB
34341 #ifndef _UINT64_T
34342 #define _UINT64_T
b9497ab5 34343 #ifndef uint64_t
c13e029b
PB
34344 typedef unsigned long long uint64_t;
34345 #endif
b9497ab5 34346 #endif
c13e029b
PB
34347
34348 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
34349 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
34350 does not implement __extension__. But that compiler doesn't define
34351 __GNUC_MINOR__. */
34352 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
34353 # define __extension__
34354 # endif
34355
34356 # ifndef _INT64_T
34357 # define _INT64_T
b9497ab5 34358 # ifndef int64_t
c13e029b
PB
34359 __extension__ typedef long long int64_t;
34360 # endif
b9497ab5 34361 # endif
c13e029b
PB
34362 # ifndef _UINT64_T
34363 # define _UINT64_T
b9497ab5 34364 # ifndef uint64_t
c13e029b
PB
34365 __extension__ typedef unsigned long long uint64_t;
34366 # endif
b9497ab5 34367 # endif
c13e029b
PB
34368
34369 #elif !defined __STRICT_ANSI__
34370 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
34371
34372 # ifndef _INT64_T
34373 # define _INT64_T
b9497ab5 34374 # ifndef int64_t
c13e029b
PB
34375 typedef __int64 int64_t;
34376 # endif
b9497ab5 34377 # endif
c13e029b
PB
34378 # ifndef _UINT64_T
34379 # define _UINT64_T
b9497ab5 34380 # ifndef uint64_t
c13e029b
PB
34381 typedef unsigned __int64 uint64_t;
34382 # endif
b9497ab5 34383 # endif
c13e029b
PB
34384 # endif /* compiler */
34385
34386 #endif /* ANSI version */
34387EOF
34388fi
34389
34390# ------------- done int64_t types, emit intptr types ------------
34391if test "$ac_cv_type_uintptr_t" != yes; then
34392 sed 's/^ *//' >> tmp-stdint.h <<EOF
34393
34394 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
34395 #ifndef __uintptr_t_defined
b9497ab5 34396 #ifndef uintptr_t
c13e029b
PB
34397 typedef u$acx_cv_type_intptr_t uintptr_t;
34398 #endif
b9497ab5 34399 #endif
c13e029b 34400 #ifndef __intptr_t_defined
b9497ab5 34401 #ifndef intptr_t
c13e029b
PB
34402 typedef $acx_cv_type_intptr_t intptr_t;
34403 #endif
b9497ab5 34404 #endif
c13e029b
PB
34405EOF
34406fi
34407
34408# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 34409if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 34410 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
34411
34412 /* Define int_least types */
34413 typedef int8_t int_least8_t;
34414 typedef int16_t int_least16_t;
34415 typedef int32_t int_least32_t;
c13e029b 34416 #ifdef _INT64_T
4c4b3eb0 34417 typedef int64_t int_least64_t;
c13e029b 34418 #endif
4c4b3eb0
PB
34419
34420 typedef uint8_t uint_least8_t;
34421 typedef uint16_t uint_least16_t;
34422 typedef uint32_t uint_least32_t;
c13e029b 34423 #ifdef _UINT64_T
4c4b3eb0 34424 typedef uint64_t uint_least64_t;
c13e029b 34425 #endif
4c4b3eb0
PB
34426EOF
34427fi
34428
c13e029b 34429# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 34430if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 34431 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
34432
34433 /* Define int_fast types. short is often slow */
34434 typedef int8_t int_fast8_t;
34435 typedef int int_fast16_t;
34436 typedef int32_t int_fast32_t;
c13e029b 34437 #ifdef _INT64_T
4c4b3eb0 34438 typedef int64_t int_fast64_t;
c13e029b 34439 #endif
4c4b3eb0
PB
34440
34441 typedef uint8_t uint_fast8_t;
34442 typedef unsigned int uint_fast16_t;
34443 typedef uint32_t uint_fast32_t;
c13e029b 34444 #ifdef _UINT64_T
4c4b3eb0 34445 typedef uint64_t uint_fast64_t;
c13e029b
PB
34446 #endif
34447EOF
34448fi
34449
34450if test "$ac_cv_type_uintmax_t" != yes; then
34451 sed 's/^ *//' >> tmp-stdint.h <<EOF
34452
34453 /* Define intmax based on what we found */
b9497ab5 34454 #ifndef intmax_t
c13e029b
PB
34455 #ifdef _INT64_T
34456 typedef int64_t intmax_t;
34457 #else
34458 typedef long intmax_t;
34459 #endif
b9497ab5
RO
34460 #endif
34461 #ifndef uintmax_t
c13e029b
PB
34462 #ifdef _UINT64_T
34463 typedef uint64_t uintmax_t;
34464 #else
34465 typedef unsigned long uintmax_t;
34466 #endif
b9497ab5 34467 #endif
4c4b3eb0
PB
34468EOF
34469fi
34470
c13e029b
PB
34471sed 's/^ *//' >> tmp-stdint.h <<EOF
34472
34473 #endif /* GCC_GENERATED_STDINT_H */
34474EOF
4c4b3eb0 34475
c13e029b
PB
34476if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
34477 rm -f tmp-stdint.h
4c4b3eb0 34478else
c13e029b 34479 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
34480fi
34481
34482 ;;
5213506e 34483
6de9cd9a 34484 esac
5213506e 34485done # for ac_tag
6de9cd9a 34486
6de9cd9a 34487
5213506e 34488as_fn_exit 0
6de9cd9a 34489_ACEOF
6de9cd9a
DN
34490ac_clean_files=$ac_clean_files_save
34491
5213506e 34492test $ac_write_fail = 0 ||
22e05272 34493 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 34494
6de9cd9a
DN
34495
34496# configure is writing to config.log, and then calls config.status.
34497# config.status does its own redirection, appending to config.log.
34498# Unfortunately, on DOS this fails, as config.log is still kept open
34499# by configure, so config.status won't be able to write to it; its
34500# output is simply discarded. So we exec the FD to /dev/null,
34501# effectively closing config.log, so it can be properly (re)opened and
34502# appended to by config.status. When coming back to configure, we
34503# need to make the FD available again.
34504if test "$no_create" != yes; then
34505 ac_cs_success=:
34506 ac_config_status_args=
34507 test "$silent" = yes &&
34508 ac_config_status_args="$ac_config_status_args --quiet"
34509 exec 5>/dev/null
34510 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34511 exec 5>>config.log
34512 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34513 # would make configure fail if this is the last instruction.
22e05272 34514 $ac_cs_success || as_fn_exit 1
5213506e
RW
34515fi
34516if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34518$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
34519fi
34520