]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
rs6000: New iterator CCEITHER
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
4ee9c684 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
f00f02a3 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.
cd9a469c 7#
4ee9c684 8#
4ee9c684 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
4ee9c684 14
cd9a469c 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 :
4ee9c684 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4ee9c684 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
4ee9c684 31fi
4ee9c684 32
cd9a469c 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 }
4ee9c684 79fi
80
81
cd9a469c 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.
f00f02a3 90as_myself=
cd9a469c 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
4ee9c684 122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
cd9a469c 127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
f00f02a3 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;}
cd9a469c 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
f00f02a3 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
cd9a469c 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
d5d92632 199test \$(( 1 + 1 )) = 2 || exit 1
e6408286 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\" \\
d5d92632 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cd9a469c 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
4ee9c684 219do
cd9a469c 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 :
f00f02a3 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
cd9a469c 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."
4ee9c684 274 else
cd9a469c 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."
4ee9c684 279 fi
cd9a469c 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"
f00f02a3 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cd9a469c 364
365
366} # as_fn_mkdir_p
f00f02a3 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
cd9a469c 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
f00f02a3 411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
cd9a469c 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
f00f02a3 415# script with STATUS, using 1 if that was 0.
cd9a469c 416as_fn_error ()
417{
f00f02a3 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
cd9a469c 422 fi
f00f02a3 423 $as_echo "$as_me: error: $2" >&2
cd9a469c 424 as_fn_exit $as_status
425} # as_fn_error
4ee9c684 426
cd9a469c 427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4ee9c684 429 as_expr=expr
430else
431 as_expr=false
432fi
433
cd9a469c 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4ee9c684 435 as_basename=basename
436else
437 as_basename=false
438fi
439
cd9a469c 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
4ee9c684 445
cd9a469c 446as_me=`$as_basename -- "$0" ||
4ee9c684 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
cd9a469c 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'`
ce1a737c 464
82eaf560 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
ff4425cf 471
4ee9c684 472
cd9a469c 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 |
4ee9c684 482 sed '
cd9a469c 483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
4ee9c684 487 N
cd9a469c 488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4ee9c684 490 t loop
cd9a469c 491 s/-\n.*//
4ee9c684 492 ' >$as_me.lineno &&
cd9a469c 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; }
4ee9c684 495
f00f02a3 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
4ee9c684 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
cd9a469c 502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
4ee9c684 504 # Exit status is that of the last command.
505 exit
506}
507
cd9a469c 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';;
4ee9c684 519esac
520
cd9a469c 521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
4ee9c684 524else
cd9a469c 525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
4ee9c684 527fi
cd9a469c 528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 530 as_ln_s='ln -s'
cd9a469c 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.
f00f02a3 534 # In both cases, we have to default to `cp -pR'.
cd9a469c 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 536 as_ln_s='cp -pR'
cd9a469c 537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
f00f02a3 540 as_ln_s='cp -pR'
82eaf560 541 fi
4ee9c684 542else
f00f02a3 543 as_ln_s='cp -pR'
4ee9c684 544fi
cd9a469c 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
4ee9c684 547
548if mkdir -p . 2>/dev/null; then
cd9a469c 549 as_mkdir_p='mkdir -p "$as_dir"'
4ee9c684 550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
f00f02a3 555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
4ee9c684 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
542f9784 564SHELL=${CONFIG_SHELL-/bin/sh}
565
542f9784 566
f00f02a3 567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
cd9a469c 569
4ee9c684 570# Name of the host.
f00f02a3 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
4ee9c684 572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
4ee9c684 575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
cd9a469c 579ac_clean_files=
4ee9c684 580ac_config_libobj_dir=.
cd9a469c 581LIBOBJS=
4ee9c684 582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
82eaf560 586
4ee9c684 587# Identity of this package.
588PACKAGE_NAME='GNU Fortran Runtime Library'
589PACKAGE_TARNAME='libgfortran'
76c0a846 590PACKAGE_VERSION='0.3'
591PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
4ee9c684 592PACKAGE_BUGREPORT=''
cd9a469c 593PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
4ee9c684 594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
cd9a469c 598#ifdef HAVE_SYS_TYPES_H
4ee9c684 599# include <sys/types.h>
600#endif
cd9a469c 601#ifdef HAVE_SYS_STAT_H
4ee9c684 602# include <sys/stat.h>
603#endif
cd9a469c 604#ifdef STDC_HEADERS
4ee9c684 605# include <stdlib.h>
606# include <stddef.h>
607#else
cd9a469c 608# ifdef HAVE_STDLIB_H
4ee9c684 609# include <stdlib.h>
610# endif
611#endif
cd9a469c 612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
4ee9c684 614# include <memory.h>
615# endif
616# include <string.h>
617#endif
cd9a469c 618#ifdef HAVE_STRINGS_H
4ee9c684 619# include <strings.h>
620#endif
cd9a469c 621#ifdef HAVE_INTTYPES_H
4ee9c684 622# include <inttypes.h>
4ee9c684 623#endif
cd9a469c 624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
4ee9c684 628# include <unistd.h>
629#endif"
630
a1aa1d30 631ac_header_list=
632ac_func_list=
87969c8c 633ac_c_werror_flag=
b14cf757 634ac_c_werror_flag=
cd9a469c 635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
0812bb06 639get_gcc_base_ver
b4e409cb 640HAVE_AVX128_FALSE
641HAVE_AVX128_TRUE
cd9a469c 642IEEE_FLAGS
d566c3e0 643IEEE_SUPPORT
644IEEE_SUPPORT_FALSE
645IEEE_SUPPORT_TRUE
cd9a469c 646FPU_HOST_HEADER
87969c8c 647LIBGFOR_BUILD_QUAD_FALSE
648LIBGFOR_BUILD_QUAD_TRUE
649LIBQUADINCLUDE
650LIBQUADLIB_DEP
651LIBQUADLIB
652LIBQUADSPEC
cd9a469c 653extra_ldflags_libgfortran
654ac_ct_FC
655FCFLAGS
656FC
657enable_static
658enable_shared
8c35d268 659lt_host_flags
cd9a469c 660OTOOL64
661OTOOL
662LIPO
663NMEDIT
664DSYMUTIL
cd9a469c 665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
cd9a469c 670LIBTOOL
671RANLIB
672AR
673AS
18ce903b 674HAVE_HWCAP_FALSE
675HAVE_HWCAP_TRUE
676HWCAP_LDFLAGS
677LD
678FGREP
679SED
cd9a469c 680SECTION_FLAGS
eb00e55c 681LIBGFOR_MINIMAL_FALSE
682LIBGFOR_MINIMAL_TRUE
019fb48a 683LIBGFOR_USE_SYMVER_SUN_FALSE
684LIBGFOR_USE_SYMVER_SUN_TRUE
685LIBGFOR_USE_SYMVER_GNU_FALSE
686LIBGFOR_USE_SYMVER_GNU_TRUE
cd9a469c 687LIBGFOR_USE_SYMVER_FALSE
688LIBGFOR_USE_SYMVER_TRUE
689AM_CFLAGS
690AM_FCFLAGS
d5d92632 691toolexeclibdir
692toolexecdir
693EGREP
694GREP
695CPP
cd9a469c 696am__fastdepCC_FALSE
697am__fastdepCC_TRUE
698CCDEPMODE
544db64f 699am__nodep
cd9a469c 700AMDEPBACKSLASH
701AMDEP_FALSE
702AMDEP_TRUE
703am__quote
704am__include
705DEPDIR
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
cd9a469c 713multi_basedir
714MAINT
715MAINTAINER_MODE_FALSE
716MAINTAINER_MODE_TRUE
f00f02a3 717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
cd9a469c 721am__untar
722am__tar
723AMTAR
724am__leading_dot
725SET_MAKE
726AWK
727mkdir_p
728MKDIR_P
729INSTALL_STRIP_PROGRAM
730STRIP
731install_sh
732MAKEINFO
733AUTOHEADER
734AUTOMAKE
735AUTOCONF
736ACLOCAL
737VERSION
738PACKAGE
739CYGPATH_W
740am__isrc
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
7eda0fb7 744target_noncanonical
cd9a469c 745target_os
746target_vendor
747target_cpu
748target
749host_os
750host_vendor
751host_cpu
752host
753onestep
754onestep_FALSE
755onestep_TRUE
756target_subdir
757host_subdir
758build_subdir
759build_libsubdir
760build_os
761build_vendor
762build_cpu
763build
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
e38e222d 783runstatedir
cd9a469c 784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_URL
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL'
4ee9c684 803ac_subst_files=''
cd9a469c 804ac_user_opts='
805enable_option_checking
806with_build_libsubdir
807enable_version_specific_runtime_libs
808enable_intermodule
f00f02a3 809enable_silent_rules
cd9a469c 810enable_maintainer_mode
811enable_multilib
812enable_dependency_tracking
42ea2de2 813enable_cet
bbb514dc 814enable_symvers
18ce903b 815with_gnu_ld
cd9a469c 816enable_shared
817enable_static
818with_pic
819enable_fast_install
cd9a469c 820enable_libtool_lock
821enable_largefile
d9d975ae 822enable_libquadmath_support
0812bb06 823with_gcc_major_version_only
cd9a469c 824'
825 ac_precious_vars='build_alias
826host_alias
827target_alias
d5d92632 828CC
829CFLAGS
830LDFLAGS
831LIBS
cd9a469c 832CPPFLAGS
d5d92632 833CPP
cd9a469c 834FC
d5d92632 835FCFLAGS'
cd9a469c 836
4ee9c684 837
838# Initialize some variables set by options.
839ac_init_help=
840ac_init_version=false
cd9a469c 841ac_unrecognized_opts=
842ac_unrecognized_sep=
4ee9c684 843# The variables have the same names as the options, with
844# dashes changed to underlines.
845cache_file=/dev/null
846exec_prefix=NONE
847no_create=
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
856verbose=
857x_includes=NONE
858x_libraries=NONE
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 865# (The list follows the same order as the GNU Coding Standards.)
4ee9c684 866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
cd9a469c 869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
4ee9c684 871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
e38e222d 874runstatedir='${localstatedir}/run'
4ee9c684 875includedir='${prefix}/include'
876oldincludedir='/usr/include'
cd9a469c 877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878infodir='${datarootdir}/info'
879htmldir='${docdir}'
880dvidir='${docdir}'
881pdfdir='${docdir}'
882psdir='${docdir}'
883libdir='${exec_prefix}/lib'
884localedir='${datarootdir}/locale'
885mandir='${datarootdir}/man'
4ee9c684 886
887ac_prev=
cd9a469c 888ac_dashdash=
4ee9c684 889for ac_option
890do
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
cd9a469c 893 eval $ac_prev=\$ac_option
4ee9c684 894 ac_prev=
895 continue
896 fi
897
cd9a469c 898 case $ac_option in
f00f02a3 899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *=) ac_optarg= ;;
901 *) ac_optarg=yes ;;
cd9a469c 902 esac
4ee9c684 903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
cd9a469c 906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
4ee9c684 909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
cd9a469c 930 -datadir | --datadir | --datadi | --datad)
4ee9c684 931 ac_prev=datadir ;;
cd9a469c 932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
4ee9c684 933 datadir=$ac_optarg ;;
934
cd9a469c 935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
4ee9c684 942 -disable-* | --disable-*)
cd9a469c 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
4ee9c684 944 # Reject names that are not valid shell variable names.
cd9a469c 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 946 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
4ee9c684 967
968 -enable-* | --enable-*)
cd9a469c 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
4ee9c684 970 # Reject names that are not valid shell variable names.
cd9a469c 971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 972 as_fn_error $? "invalid feature name: $ac_useropt"
cd9a469c 973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977"enable_$ac_useropt"
978"*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
82eaf560 981 esac
cd9a469c 982 eval enable_$ac_useropt=\$ac_optarg ;;
4ee9c684 983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
cd9a469c 1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
4ee9c684 1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
cd9a469c 1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
4ee9c684 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1045 | --localstate | --localstat | --localsta | --localst | --locals)
4ee9c684 1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
4ee9c684 1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
cd9a469c 1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
4ee9c684 1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
e38e222d 1127 -runstatedir | --runstatedir | --runstatedi | --runstated \
1128 | --runstate | --runstat | --runsta | --runst | --runs \
1129 | --run | --ru | --r)
1130 ac_prev=runstatedir ;;
1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133 | --run=* | --ru=* | --r=*)
1134 runstatedir=$ac_optarg ;;
1135
4ee9c684 1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
cd9a469c 1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
4ee9c684 1183 # Reject names that are not valid shell variable names.
cd9a469c 1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1185 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
82eaf560 1194 esac
cd9a469c 1195 eval with_$ac_useropt=\$ac_optarg ;;
4ee9c684 1196
1197 -without-* | --without-*)
cd9a469c 1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
4ee9c684 1199 # Reject names that are not valid shell variable names.
cd9a469c 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1201 as_fn_error $? "invalid package name: $ac_useropt"
cd9a469c 1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
4ee9c684 1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
f00f02a3 1231 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1232Try \`$0 --help' for more information"
4ee9c684 1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
cd9a469c 1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
f00f02a3 1240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cd9a469c 1241 esac
1242 eval $ac_envvar=\$ac_optarg
4ee9c684 1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
4ee9c684 1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f00f02a3 1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
4ee9c684 1251 ;;
1252
1253 esac
1254done
1255
1256if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f00f02a3 1258 as_fn_error $? "missing argument to $ac_option"
4ee9c684 1259fi
1260
cd9a469c 1261if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
f00f02a3 1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cd9a469c 1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
82eaf560 1266 esac
cd9a469c 1267fi
82eaf560 1268
cd9a469c 1269# Check all directory arguments for consistency.
1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e38e222d 1273 libdir localedir mandir runstatedir
82eaf560 1274do
cd9a469c 1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
82eaf560 1283 case $ac_val in
cd9a469c 1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
4ee9c684 1286 esac
f00f02a3 1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
4ee9c684 1288done
1289
1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
1296
1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
4ee9c684 1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
1310
1311
cd9a469c 1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f00f02a3 1315 as_fn_error $? "working directory cannot be determined"
cd9a469c 1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f00f02a3 1317 as_fn_error $? "pwd does not report name of working directory"
cd9a469c 1318
1319
4ee9c684 1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
cd9a469c 1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
4ee9c684 1347 srcdir=$ac_confdir
cd9a469c 1348 if test ! -r "$srcdir/$ac_unique_file"; then
4ee9c684 1349 srcdir=..
1350 fi
1351else
1352 ac_srcdir_defaulted=no
1353fi
cd9a469c 1354if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f00f02a3 1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cd9a469c 1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
f00f02a3 1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cd9a469c 1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
1372for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
4ee9c684 1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
76c0a846 1386\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
4ee9c684 1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
f00f02a3 1400 -q, --quiet, --silent do not print \`checking ...' messages
4ee9c684 1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
4ee9c684 1406Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1408 [$ac_default_prefix]
4ee9c684 1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1410 [PREFIX]
4ee9c684 1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
cd9a469c 1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
e38e222d 1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
cd9a469c 1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
4ee9c684 1440_ACEOF
1441
1442 cat <<\_ACEOF
1443
1444Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
90973b19 1452 --target=TARGET configure for building compilers for TARGET [HOST]
4ee9c684 1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457 case $ac_init_help in
76c0a846 1458 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
4ee9c684 1459 esac
1460 cat <<\_ACEOF
1461
1462Optional Features:
cd9a469c 1463 --disable-option-checking ignore unrecognized --enable/--with options
4ee9c684 1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d9d975ae 1466 --enable-version-specific-runtime-libs
1467 specify that runtime libraries should be installed
1468 in a compiler-specific directory
93773f82 1469 --enable-intermodule build the library in one step
f00f02a3 1470 --enable-silent-rules less verbose build output (undo: "make V=1")
1471 --disable-silent-rules verbose build output (undo: "make V=0")
1472 --enable-maintainer-mode
1473 enable make rules and dependencies not useful (and
1474 sometimes confusing) to the casual installer
90973b19 1475 --enable-multilib build many library versions (default)
f00f02a3 1476 --enable-dependency-tracking
1477 do not reject slow dependency extractors
1478 --disable-dependency-tracking
1479 speeds up one-time build
ee8fea81 1480 --enable-cet enable Intel CET in target libraries [default=no]
bbb514dc 1481 --disable-symvers disable symbol versioning for libgfortran
cd9a469c 1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
542f9784 1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
4ee9c684 1486 --disable-libtool-lock avoid locking (might break parallel builds)
90e67cff 1487 --disable-largefile omit support for large files
d9d975ae 1488 --disable-libquadmath-support
1489 disable libquadmath support for Fortran
4ee9c684 1490
1491Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3e427a9c 1494 --with-build-libsubdir=DIR Directory where to find libraries for build system
18ce903b 1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
542f9784 1496 --with-pic try to use only PIC/non-PIC objects [default=use
1497 both]
0812bb06 1498 --with-gcc-major-version-only
1499 use only GCC major number in filesystem paths
4ee9c684 1500
1501Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
cd9a469c 1506 LIBS libraries to pass to the linker, e.g. -l<library>
f00f02a3 1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cd9a469c 1508 you have headers in a nonstandard directory <include dir>
542f9784 1509 CPP C preprocessor
6d73cceb 1510 FC Fortran compiler command
1511 FCFLAGS Fortran compiler flags
4ee9c684 1512
1513Use these variables to override the choices made by `configure' or to help
1514it to find libraries and programs with nonstandard names/locations.
1515
cd9a469c 1516Report bugs to the package provider.
1517GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1518General help using GNU software: <http://www.gnu.org/gethelp/>.
4ee9c684 1519_ACEOF
cd9a469c 1520ac_status=$?
4ee9c684 1521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
4ee9c684 1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
4ee9c684 1529 ac_builddir=.
1530
cd9a469c 1531case "$ac_dir" in
1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533*)
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541esac
1542ac_abs_top_builddir=$ac_pwd
1543ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544# for backward compatibility:
1545ac_top_builddir=$ac_top_build_prefix
4ee9c684 1546
1547case $srcdir in
cd9a469c 1548 .) # We are building in place.
4ee9c684 1549 ac_srcdir=.
cd9a469c 1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
4ee9c684 1553 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a106dabe 1560esac
cd9a469c 1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
4ee9c684 1571 else
cd9a469c 1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
4ee9c684 1575 done
1576fi
1577
cd9a469c 1578test -n "$ac_init_help" && exit $ac_status
4ee9c684 1579if $ac_init_version; then
1580 cat <<\_ACEOF
76c0a846 1581GNU Fortran Runtime Library configure 0.3
f00f02a3 1582generated by GNU Autoconf 2.69
4ee9c684 1583
f00f02a3 1584Copyright (C) 2012 Free Software Foundation, Inc.
4ee9c684 1585This configure script is free software; the Free Software Foundation
1586gives unlimited permission to copy, distribute and modify it.
1587_ACEOF
cd9a469c 1588 exit
4ee9c684 1589fi
4ee9c684 1590
cd9a469c 1591## ------------------------ ##
1592## Autoconf initialization. ##
1593## ------------------------ ##
4ee9c684 1594
cd9a469c 1595# ac_fn_c_try_compile LINENO
1596# --------------------------
1597# Try to compile conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_compile ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622else
1623 $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1625
cd9a469c 1626 ac_retval=1
1627fi
f00f02a3 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
cd9a469c 1630
1631} # ac_fn_c_try_compile
1632
d5d92632 1633# ac_fn_c_try_cpp LINENO
1634# ----------------------
1635# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636ac_fn_c_try_cpp ()
4ee9c684 1637{
cd9a469c 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d5d92632 1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
cd9a469c 1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
d5d92632 1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
cd9a469c 1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f00f02a3 1654 test $ac_status = 0; } > conftest.i && {
d5d92632 1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
cd9a469c 1656 test ! -s conftest.err
cd9a469c 1657 }; then :
1658 ac_retval=0
1659else
1660 $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1662
d5d92632 1663 ac_retval=1
cd9a469c 1664fi
f00f02a3 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
4ee9c684 1667
d5d92632 1668} # ac_fn_c_try_cpp
4ee9c684 1669
d5d92632 1670# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
cd9a469c 1671# -------------------------------------------------------
d5d92632 1672# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1673# the include files in INCLUDES and setting the cache variable VAR
1674# accordingly.
1675ac_fn_c_check_header_mongrel ()
cd9a469c 1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
f00f02a3 1678 if eval \${$3+:} false; then :
cd9a469c 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680$as_echo_n "checking for $2... " >&6; }
f00f02a3 1681if eval \${$3+:} false; then :
cd9a469c 1682 $as_echo_n "(cached) " >&6
d5d92632 1683fi
1684eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686$as_echo "$ac_res" >&6; }
cd9a469c 1687else
d5d92632 1688 # Is the header compilable?
1689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1690$as_echo_n "checking $2 usability... " >&6; }
1691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 1692/* end confdefs.h. */
1693$4
1694#include <$2>
1695_ACEOF
1696if ac_fn_c_try_compile "$LINENO"; then :
d5d92632 1697 ac_header_compiler=yes
cd9a469c 1698else
d5d92632 1699 ac_header_compiler=no
cd9a469c 1700fi
1701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5d92632 1702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1703$as_echo "$ac_header_compiler" >&6; }
4ee9c684 1704
d5d92632 1705# Is the header present?
1706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1707$as_echo_n "checking $2 presence... " >&6; }
1708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h. */
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_cpp "$LINENO"; then :
1713 ac_header_preproc=yes
1714else
1715 ac_header_preproc=no
1716fi
f00f02a3 1717rm -f conftest.err conftest.i conftest.$ac_ext
d5d92632 1718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1719$as_echo "$ac_header_preproc" >&6; }
4ee9c684 1720
d5d92632 1721# So? What about this header?
1722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1723 yes:no: )
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1725$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1728 ;;
1729 no:yes:* )
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1731$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1733$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1735$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1737$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740 ;;
cd9a469c 1741esac
d5d92632 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
f00f02a3 1744if eval \${$3+:} false; then :
d5d92632 1745 $as_echo_n "(cached) " >&6
cd9a469c 1746else
d5d92632 1747 eval "$3=\$ac_header_compiler"
1748fi
1749eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751$as_echo "$ac_res" >&6; }
cd9a469c 1752fi
f00f02a3 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4ee9c684 1754
d5d92632 1755} # ac_fn_c_check_header_mongrel
4ee9c684 1756
cd9a469c 1757# ac_fn_c_try_run LINENO
1758# ----------------------
1759# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760# that executables *can* be run.
1761ac_fn_c_try_run ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_link"
1765case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775 { { case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_try") 2>&5
1782 ac_status=$?
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; }; }; then :
1785 ac_retval=0
1786else
1787 $as_echo "$as_me: program exited with status $ac_status" >&5
1788 $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1790
cd9a469c 1791 ac_retval=$ac_status
1792fi
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
4ee9c684 1796
cd9a469c 1797} # ac_fn_c_try_run
4ee9c684 1798
d5d92632 1799# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800# -------------------------------------------------------
1801# Tests whether HEADER exists and can be compiled using the include files in
1802# INCLUDES, setting the cache variable VAR accordingly.
1803ac_fn_c_check_header_compile ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
f00f02a3 1808if eval \${$3+:} false; then :
d5d92632 1809 $as_echo_n "(cached) " >&6
1810else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813$4
1814#include <$2>
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"; then :
1817 eval "$3=yes"
1818else
1819 eval "$3=no"
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
f00f02a3 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d5d92632 1827
1828} # ac_fn_c_check_header_compile
1829
1830# ac_fn_c_try_link LINENO
1831# -----------------------
1832# Try to link conftest.$ac_ext, and return whether this succeeded.
1833ac_fn_c_try_link ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext conftest$ac_exeext
1837 if { { ac_try="$ac_link"
1838case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>conftest.err
1845 ac_status=$?
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1850 fi
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest$ac_exeext && {
1856 test "$cross_compiling" = yes ||
f00f02a3 1857 test -x conftest$ac_exeext
d5d92632 1858 }; then :
1859 ac_retval=0
1860else
1861 $as_echo "$as_me: failed program was:" >&5
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=1
1865fi
1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868 # interfere with the next link command; also delete a directory that is
1869 # left behind by Apple's compiler. We do this before executing the actions.
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
d5d92632 1873
1874} # ac_fn_c_try_link
1875
cd9a469c 1876# ac_fn_c_check_func LINENO FUNC VAR
1877# ----------------------------------
1878# Tests whether FUNC exists, setting the cache variable VAR accordingly
1879ac_fn_c_check_func ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
f00f02a3 1884if eval \${$3+:} false; then :
cd9a469c 1885 $as_echo_n "(cached) " >&6
1886else
1887 if test x$gcc_no_link = xyes; then
f00f02a3 1888 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cd9a469c 1889fi
1890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h. */
1892/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1894#define $2 innocuous_$2
4ee9c684 1895
cd9a469c 1896/* System header to define __stub macros and hopefully few prototypes,
1897 which can conflict with char $2 (); below.
1898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899 <limits.h> exists even on freestanding compilers. */
4ee9c684 1900
cd9a469c 1901#ifdef __STDC__
1902# include <limits.h>
1903#else
1904# include <assert.h>
1905#endif
4ee9c684 1906
cd9a469c 1907#undef $2
1908
1909/* Override any GCC internal prototype to avoid an error.
1910 Use char because int might match the return type of a GCC
1911 builtin and then its argument prototype would still apply. */
1912#ifdef __cplusplus
1913extern "C"
1914#endif
1915char $2 ();
1916/* The GNU C library defines this for functions which it implements
1917 to always fail with ENOSYS. Some functions are actually named
1918 something starting with __ and the normal name is an alias. */
1919#if defined __stub_$2 || defined __stub___$2
1920choke me
1921#endif
1922
1923int
1924main ()
82eaf560 1925{
cd9a469c 1926return $2 ();
1927 ;
1928 return 0;
82eaf560 1929}
cd9a469c 1930_ACEOF
1931if ac_fn_c_try_link "$LINENO"; then :
1932 eval "$3=yes"
1933else
1934 eval "$3=no"
1935fi
1936rm -f core conftest.err conftest.$ac_objext \
1937 conftest$ac_exeext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
f00f02a3 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4ee9c684 1943
cd9a469c 1944} # ac_fn_c_check_func
4ee9c684 1945
cd9a469c 1946# ac_fn_fc_try_compile LINENO
1947# ---------------------------
1948# Try to compile conftest.$ac_ext, and return whether this succeeded.
1949ac_fn_fc_try_compile ()
1950{
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 rm -f conftest.$ac_objext
1953 if { { ac_try="$ac_compile"
1954case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959$as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_compile") 2>conftest.err
1961 ac_status=$?
1962 if test -s conftest.err; then
1963 grep -v '^ *+' conftest.err >conftest.er1
1964 cat conftest.er1 >&5
1965 mv -f conftest.er1 conftest.err
1966 fi
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } && {
1969 test -z "$ac_fc_werror_flag" ||
1970 test ! -s conftest.err
1971 } && test -s conftest.$ac_objext; then :
1972 ac_retval=0
1973else
1974 $as_echo "$as_me: failed program was:" >&5
1975sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 1976
cd9a469c 1977 ac_retval=1
1978fi
f00f02a3 1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status $ac_retval
4ee9c684 1981
cd9a469c 1982} # ac_fn_fc_try_compile
4ee9c684 1983
cd9a469c 1984# ac_fn_fc_try_link LINENO
1985# ------------------------
1986# Try to link conftest.$ac_ext, and return whether this succeeded.
1987ac_fn_fc_try_link ()
1988{
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 rm -f conftest.$ac_objext conftest$ac_exeext
1991 if { { ac_try="$ac_link"
1992case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995esac
1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997$as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_link") 2>conftest.err
1999 ac_status=$?
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2004 fi
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && {
2007 test -z "$ac_fc_werror_flag" ||
2008 test ! -s conftest.err
2009 } && test -s conftest$ac_exeext && {
2010 test "$cross_compiling" = yes ||
f00f02a3 2011 test -x conftest$ac_exeext
cd9a469c 2012 }; then :
2013 ac_retval=0
2014else
2015 $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 2017
cd9a469c 2018 ac_retval=1
2019fi
2020 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2021 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2022 # interfere with the next link command; also delete a directory that is
2023 # left behind by Apple's compiler. We do this before executing the actions.
2024 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 as_fn_set_status $ac_retval
4ee9c684 2027
cd9a469c 2028} # ac_fn_fc_try_link
4ee9c684 2029
cd9a469c 2030# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2031# -------------------------------------------
2032# Tests whether TYPE exists after having included INCLUDES, setting cache
2033# variable VAR accordingly.
2034ac_fn_c_check_type ()
2035{
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038$as_echo_n "checking for $2... " >&6; }
f00f02a3 2039if eval \${$3+:} false; then :
cd9a469c 2040 $as_echo_n "(cached) " >&6
2041else
2042 eval "$3=no"
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h. */
2045$4
2046int
2047main ()
2048{
2049if (sizeof ($2))
2050 return 0;
2051 ;
2052 return 0;
2053}
4ee9c684 2054_ACEOF
cd9a469c 2055if ac_fn_c_try_compile "$LINENO"; then :
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$4
2059int
2060main ()
2061{
2062if (sizeof (($2)))
2063 return 0;
2064 ;
2065 return 0;
2066}
4ee9c684 2067_ACEOF
cd9a469c 2068if ac_fn_c_try_compile "$LINENO"; then :
4ee9c684 2069
cd9a469c 2070else
2071 eval "$3=yes"
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079$as_echo "$ac_res" >&6; }
f00f02a3 2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4ee9c684 2081
cd9a469c 2082} # ac_fn_c_check_type
4ee9c684 2083
d5d92632 2084# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2085# --------------------------------------------
2086# Tries to find the compile-time value of EXPR in a program that includes
2087# INCLUDES, setting VAR accordingly. Returns whether the value could be
2088# computed
2089ac_fn_c_compute_int ()
cd9a469c 2090{
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069752c 2092 if test "$cross_compiling" = yes; then
2093 # Depending upon the size, compute the lo and hi bounds.
2094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2095/* end confdefs.h. */
2069752c 2096$4
cd9a469c 2097int
2098main ()
2099{
2069752c 2100static int test_array [1 - 2 * !(($2) >= 0)];
f00f02a3 2101test_array [0] = 0;
2102return test_array [0];
4ee9c684 2103
cd9a469c 2104 ;
2105 return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2109 ac_lo=0 ac_mid=0
2110 while :; do
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2112/* end confdefs.h. */
2069752c 2113$4
cd9a469c 2114int
2115main ()
2116{
2069752c 2117static int test_array [1 - 2 * !(($2) <= $ac_mid)];
f00f02a3 2118test_array [0] = 0;
2119return test_array [0];
4ee9c684 2120
cd9a469c 2121 ;
2122 return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2126 ac_hi=$ac_mid; break
cd9a469c 2127else
2069752c 2128 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2129 if test $ac_lo -le $ac_mid; then
2130 ac_lo= ac_hi=
2131 break
2132 fi
2133 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
cd9a469c 2134fi
2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2136 done
2137else
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h. */
2140$4
2141int
2142main ()
2143{
2144static int test_array [1 - 2 * !(($2) < 0)];
f00f02a3 2145test_array [0] = 0;
2146return test_array [0];
2069752c 2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_hi=-1 ac_mid=-1
2154 while :; do
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h. */
2157$4
2158int
2159main ()
2160{
2161static int test_array [1 - 2 * !(($2) >= $ac_mid)];
f00f02a3 2162test_array [0] = 0;
2163return test_array [0];
2069752c 2164
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_lo=$ac_mid; break
2171else
2172 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173 if test $ac_mid -le $ac_hi; then
2174 ac_lo= ac_hi=
2175 break
2176 fi
2177 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
cd9a469c 2178fi
2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2180 done
ea6b3890 2181else
2069752c 2182 ac_lo= ac_hi=
cd9a469c 2183fi
2069752c 2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea6b3890 2185fi
2069752c 2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187# Binary search between lo and hi bounds.
2188while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 2191/* end confdefs.h. */
2069752c 2192$4
cd9a469c 2193int
2194main ()
2195{
2069752c 2196static int test_array [1 - 2 * !(($2) <= $ac_mid)];
f00f02a3 2197test_array [0] = 0;
2198return test_array [0];
4ee9c684 2199
cd9a469c 2200 ;
2201 return 0;
2202}
2203_ACEOF
2204if ac_fn_c_try_compile "$LINENO"; then :
2069752c 2205 ac_hi=$ac_mid
2206else
2207 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
cd9a469c 2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069752c 2210done
2211case $ac_lo in #((
2212?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2213'') ac_retval=1 ;;
2214esac
2215 else
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h. */
2218$4
2219static long int longval () { return $2; }
2220static unsigned long int ulongval () { return $2; }
2221#include <stdio.h>
2222#include <stdlib.h>
2223int
2224main ()
2225{
4ee9c684 2226
2069752c 2227 FILE *f = fopen ("conftest.val", "w");
2228 if (! f)
2229 return 1;
2230 if (($2) < 0)
2231 {
2232 long int i = longval ();
2233 if (i != ($2))
2234 return 1;
2235 fprintf (f, "%ld", i);
2236 }
2237 else
2238 {
2239 unsigned long int i = ulongval ();
2240 if (i != ($2))
2241 return 1;
2242 fprintf (f, "%lu", i);
2243 }
2244 /* Do not output a trailing newline, as this causes \r\n confusion
2245 on some platforms. */
2246 return ferror (f) || fclose (f) != 0;
2247
2248 ;
2249 return 0;
2250}
2251_ACEOF
2252if ac_fn_c_try_run "$LINENO"; then :
2253 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
cd9a469c 2254else
2069752c 2255 ac_retval=1
ea6b3890 2256fi
2069752c 2257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2258 conftest.$ac_objext conftest.beam conftest.$ac_ext
2259rm -f conftest.val
2260
2261 fi
f00f02a3 2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
4ee9c684 2264
2069752c 2265} # ac_fn_c_compute_int
4ee9c684 2266
cd9a469c 2267# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2268# ----------------------------------------------------
2269# Tries to find if the field MEMBER exists in type AGGR, after including
2270# INCLUDES, setting cache variable VAR accordingly.
2271ac_fn_c_check_member ()
2272{
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2275$as_echo_n "checking for $2.$3... " >&6; }
f00f02a3 2276if eval \${$4+:} false; then :
cd9a469c 2277 $as_echo_n "(cached) " >&6
2278else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h. */
2281$5
2282int
2283main ()
2284{
2285static $2 ac_aggr;
2286if (ac_aggr.$3)
2287return 0;
2288 ;
2289 return 0;
2290}
2291_ACEOF
2292if ac_fn_c_try_compile "$LINENO"; then :
2293 eval "$4=yes"
2294else
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296/* end confdefs.h. */
2297$5
2298int
2299main ()
2300{
2301static $2 ac_aggr;
2302if (sizeof ac_aggr.$3)
2303return 0;
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308if ac_fn_c_try_compile "$LINENO"; then :
2309 eval "$4=yes"
2310else
2311 eval "$4=no"
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316fi
2317eval ac_res=\$$4
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319$as_echo "$ac_res" >&6; }
f00f02a3 2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4ee9c684 2321
cd9a469c 2322} # ac_fn_c_check_member
2323cat >config.log <<_ACEOF
2324This file contains any messages produced by compilers while
2325running configure, to aid debugging if configure makes a mistake.
4ee9c684 2326
cd9a469c 2327It was created by GNU Fortran Runtime Library $as_me 0.3, which was
f00f02a3 2328generated by GNU Autoconf 2.69. Invocation command line was
4ee9c684 2329
cd9a469c 2330 $ $0 $@
4ee9c684 2331
cd9a469c 2332_ACEOF
2333exec 5>>config.log
2334{
2335cat <<_ASUNAME
2336## --------- ##
2337## Platform. ##
2338## --------- ##
4ee9c684 2339
cd9a469c 2340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2341uname -m = `(uname -m) 2>/dev/null || echo unknown`
2342uname -r = `(uname -r) 2>/dev/null || echo unknown`
2343uname -s = `(uname -s) 2>/dev/null || echo unknown`
2344uname -v = `(uname -v) 2>/dev/null || echo unknown`
4ee9c684 2345
cd9a469c 2346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2347/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
4ee9c684 2348
cd9a469c 2349/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2350/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2352/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2353/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2354/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2355/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
4ee9c684 2356
cd9a469c 2357_ASUNAME
5b2c7553 2358
cd9a469c 2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 $as_echo "PATH: $as_dir"
2365 done
2366IFS=$as_save_IFS
5b2c7553 2367
cd9a469c 2368} >&5
5b2c7553 2369
cd9a469c 2370cat >&5 <<_ACEOF
4ee9c684 2371
2372
cd9a469c 2373## ----------- ##
2374## Core tests. ##
2375## ----------- ##
a106dabe 2376
cd9a469c 2377_ACEOF
82eaf560 2378
90973b19 2379
cd9a469c 2380# Keep a trace of the command line.
2381# Strip out --no-create and --no-recursion so they do not pile up.
2382# Strip out --silent because we don't want to record it for future runs.
2383# Also quote any args containing shell meta-characters.
2384# Make two passes to allow for proper duplicate-argument suppression.
2385ac_configure_args=
2386ac_configure_args0=
2387ac_configure_args1=
2388ac_must_keep_next=false
2389for ac_pass in 1 2
2390do
2391 for ac_arg
2392 do
2393 case $ac_arg in
2394 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2396 | -silent | --silent | --silen | --sile | --sil)
2397 continue ;;
2398 *\'*)
2399 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2400 esac
2401 case $ac_pass in
2402 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2403 2)
2404 as_fn_append ac_configure_args1 " '$ac_arg'"
2405 if test $ac_must_keep_next = true; then
2406 ac_must_keep_next=false # Got value, back to normal.
2407 else
2408 case $ac_arg in
2409 *=* | --config-cache | -C | -disable-* | --disable-* \
2410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2412 | -with-* | --with-* | -without-* | --without-* | --x)
2413 case "$ac_configure_args0 " in
2414 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2415 esac
2416 ;;
2417 -* ) ac_must_keep_next=true ;;
2418 esac
2419 fi
2420 as_fn_append ac_configure_args " '$ac_arg'"
2421 ;;
2422 esac
2423 done
4ee9c684 2424done
cd9a469c 2425{ ac_configure_args0=; unset ac_configure_args0;}
2426{ ac_configure_args1=; unset ac_configure_args1;}
90973b19 2427
cd9a469c 2428# When interrupted or exit'd, cleanup temporary files, and complete
2429# config.log. We remove comments because anyway the quotes in there
2430# would cause problems or look ugly.
2431# WARNING: Use '\'' to represent an apostrophe within the trap.
2432# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2433trap 'exit_status=$?
2434 # Save into config.log some information that might help in debugging.
2435 {
2436 echo
90973b19 2437
f00f02a3 2438 $as_echo "## ---------------- ##
cd9a469c 2439## Cache variables. ##
f00f02a3 2440## ---------------- ##"
cd9a469c 2441 echo
2442 # The following way of writing the cache mishandles newlines in values,
2443(
2444 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in #(
2447 *${as_nl}*)
2448 case $ac_var in #(
2449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2450$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2451 esac
2452 case $ac_var in #(
2453 _ | IFS | as_nl) ;; #(
2454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2455 *) { eval $ac_var=; unset $ac_var;} ;;
2456 esac ;;
2457 esac
2458 done
2459 (set) 2>&1 |
2460 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2461 *${as_nl}ac_space=\ *)
2462 sed -n \
2463 "s/'\''/'\''\\\\'\'''\''/g;
2464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2465 ;; #(
2466 *)
2467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2468 ;;
2469 esac |
2470 sort
2471)
2472 echo
2473
f00f02a3 2474 $as_echo "## ----------------- ##
cd9a469c 2475## Output variables. ##
f00f02a3 2476## ----------------- ##"
cd9a469c 2477 echo
2478 for ac_var in $ac_subst_vars
2479 do
2480 eval ac_val=\$$ac_var
2481 case $ac_val in
2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 esac
2484 $as_echo "$ac_var='\''$ac_val'\''"
2485 done | sort
2486 echo
2487
2488 if test -n "$ac_subst_files"; then
f00f02a3 2489 $as_echo "## ------------------- ##
cd9a469c 2490## File substitutions. ##
f00f02a3 2491## ------------------- ##"
cd9a469c 2492 echo
2493 for ac_var in $ac_subst_files
2494 do
2495 eval ac_val=\$$ac_var
2496 case $ac_val in
2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 esac
2499 $as_echo "$ac_var='\''$ac_val'\''"
2500 done | sort
2501 echo
2502 fi
2503
2504 if test -s confdefs.h; then
f00f02a3 2505 $as_echo "## ----------- ##
cd9a469c 2506## confdefs.h. ##
f00f02a3 2507## ----------- ##"
cd9a469c 2508 echo
2509 cat confdefs.h
2510 echo
2511 fi
2512 test "$ac_signal" != 0 &&
2513 $as_echo "$as_me: caught signal $ac_signal"
2514 $as_echo "$as_me: exit $exit_status"
2515 } >&5
2516 rm -f core *.core core.conftest.* &&
2517 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2518 exit $exit_status
2519' 0
2520for ac_signal in 1 2 13 15; do
2521 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522done
2523ac_signal=0
2524
2525# confdefs.h avoids OS command line length limits that DEFS can exceed.
2526rm -f -r conftest* confdefs.h
2527
2528$as_echo "/* confdefs.h */" > confdefs.h
2529
2530# Predefined preprocessor variables.
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_NAME "$PACKAGE_NAME"
2534_ACEOF
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2538_ACEOF
2539
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_VERSION "$PACKAGE_VERSION"
2542_ACEOF
2543
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_STRING "$PACKAGE_STRING"
2546_ACEOF
2547
2548cat >>confdefs.h <<_ACEOF
2549#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2550_ACEOF
2551
2552cat >>confdefs.h <<_ACEOF
2553#define PACKAGE_URL "$PACKAGE_URL"
2554_ACEOF
2555
2556
2557# Let the site file select an alternate cache file if it wants to.
2558# Prefer an explicitly selected file to automatically selected ones.
2559ac_site_file1=NONE
2560ac_site_file2=NONE
2561if test -n "$CONFIG_SITE"; then
f00f02a3 2562 # We do not want a PATH search for config.site.
2563 case $CONFIG_SITE in #((
2564 -*) ac_site_file1=./$CONFIG_SITE;;
2565 */*) ac_site_file1=$CONFIG_SITE;;
2566 *) ac_site_file1=./$CONFIG_SITE;;
2567 esac
cd9a469c 2568elif test "x$prefix" != xNONE; then
2569 ac_site_file1=$prefix/share/config.site
2570 ac_site_file2=$prefix/etc/config.site
2571else
2572 ac_site_file1=$ac_default_prefix/share/config.site
2573 ac_site_file2=$ac_default_prefix/etc/config.site
2574fi
2575for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2576do
2577 test "x$ac_site_file" = xNONE && continue
f00f02a3 2578 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cd9a469c 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2580$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2581 sed 's/^/| /' "$ac_site_file" >&5
f00f02a3 2582 . "$ac_site_file" \
2583 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585as_fn_error $? "failed to load site script $ac_site_file
2586See \`config.log' for more details" "$LINENO" 5; }
cd9a469c 2587 fi
2588done
2589
2590if test -r "$cache_file"; then
f00f02a3 2591 # Some versions of bash will fail to source /dev/null (special files
2592 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2593 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cd9a469c 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2595$as_echo "$as_me: loading cache $cache_file" >&6;}
2596 case $cache_file in
2597 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2598 *) . "./$cache_file";;
2599 esac
2600 fi
2601else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2603$as_echo "$as_me: creating cache $cache_file" >&6;}
2604 >$cache_file
2605fi
2606
a1aa1d30 2607as_fn_append ac_header_list " unistd.h"
1c383045 2608as_fn_append ac_header_list " sys/random.h"
a1aa1d30 2609as_fn_append ac_header_list " sys/time.h"
2610as_fn_append ac_header_list " sys/times.h"
2611as_fn_append ac_header_list " sys/resource.h"
2612as_fn_append ac_header_list " sys/types.h"
2613as_fn_append ac_header_list " sys/stat.h"
9680a5f4 2614as_fn_append ac_header_list " sys/uio.h"
a1aa1d30 2615as_fn_append ac_header_list " sys/wait.h"
2616as_fn_append ac_header_list " floatingpoint.h"
2617as_fn_append ac_header_list " ieeefp.h"
2618as_fn_append ac_header_list " fenv.h"
2619as_fn_append ac_header_list " fptrap.h"
553e7cef 2620as_fn_append ac_header_list " fpxcp.h"
a1aa1d30 2621as_fn_append ac_header_list " pwd.h"
2622as_fn_append ac_header_list " complex.h"
b8a8c7bc 2623as_fn_append ac_header_list " xlocale.h"
a1aa1d30 2624as_fn_append ac_func_list " getrusage"
2625as_fn_append ac_func_list " times"
2626as_fn_append ac_func_list " mkstemp"
2627as_fn_append ac_func_list " strtof"
2628as_fn_append ac_func_list " strtold"
2629as_fn_append ac_func_list " snprintf"
2630as_fn_append ac_func_list " ftruncate"
2631as_fn_append ac_func_list " chsize"
2632as_fn_append ac_func_list " chdir"
75535607 2633as_fn_append ac_func_list " getentropy"
a1aa1d30 2634as_fn_append ac_func_list " getlogin"
2635as_fn_append ac_func_list " gethostname"
2636as_fn_append ac_func_list " kill"
2637as_fn_append ac_func_list " link"
2638as_fn_append ac_func_list " symlink"
2639as_fn_append ac_func_list " sleep"
2640as_fn_append ac_func_list " ttyname"
69024fb7 2641as_fn_append ac_func_list " sigaction"
2642as_fn_append ac_func_list " waitpid"
a1aa1d30 2643as_fn_append ac_func_list " alarm"
2644as_fn_append ac_func_list " access"
2645as_fn_append ac_func_list " fork"
e38e222d 2646as_fn_append ac_func_list " posix_spawn"
a1aa1d30 2647as_fn_append ac_func_list " setmode"
7520a494 2648as_fn_append ac_func_list " fcntl"
9680a5f4 2649as_fn_append ac_func_list " writev"
a1aa1d30 2650as_fn_append ac_func_list " gettimeofday"
2651as_fn_append ac_func_list " stat"
2652as_fn_append ac_func_list " fstat"
2653as_fn_append ac_func_list " lstat"
2654as_fn_append ac_func_list " getpwuid"
2655as_fn_append ac_func_list " vsnprintf"
2656as_fn_append ac_func_list " dup"
2657as_fn_append ac_func_list " getcwd"
2658as_fn_append ac_func_list " localtime_r"
2659as_fn_append ac_func_list " gmtime_r"
a1aa1d30 2660as_fn_append ac_func_list " getpwuid_r"
2661as_fn_append ac_func_list " ttyname_r"
2662as_fn_append ac_func_list " clock_gettime"
a1aa1d30 2663as_fn_append ac_func_list " getgid"
2664as_fn_append ac_func_list " getpid"
a1aa1d30 2665as_fn_append ac_func_list " getuid"
2666as_fn_append ac_func_list " geteuid"
ffb6d1fd 2667as_fn_append ac_func_list " umask"
a291e3b6 2668as_fn_append ac_func_list " getegid"
5935a97b 2669as_fn_append ac_func_list " secure_getenv"
a291e3b6 2670as_fn_append ac_func_list " __secure_getenv"
544db64f 2671as_fn_append ac_func_list " mkostemp"
fc3d374a 2672as_fn_append ac_func_list " strnlen"
2673as_fn_append ac_func_list " strndup"
b8a8c7bc 2674as_fn_append ac_func_list " newlocale"
2675as_fn_append ac_func_list " freelocale"
2676as_fn_append ac_func_list " uselocale"
2677as_fn_append ac_func_list " strerror_l"
7d9455ce 2678as_fn_append ac_header_list " math.h"
cd9a469c 2679# Check that the precious variables saved in the cache have kept the same
2680# value.
2681ac_cache_corrupted=false
2682for ac_var in $ac_precious_vars; do
2683 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2684 eval ac_new_set=\$ac_env_${ac_var}_set
2685 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2686 eval ac_new_val=\$ac_env_${ac_var}_value
2687 case $ac_old_set,$ac_new_set in
2688 set,)
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2690$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2691 ac_cache_corrupted=: ;;
2692 ,set)
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2694$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2695 ac_cache_corrupted=: ;;
2696 ,);;
2697 *)
2698 if test "x$ac_old_val" != "x$ac_new_val"; then
2699 # differences in whitespace do not lead to failure.
2700 ac_old_val_w=`echo x $ac_old_val`
2701 ac_new_val_w=`echo x $ac_new_val`
2702 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2704$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2705 ac_cache_corrupted=:
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2708$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2709 eval $ac_var=\$ac_old_val
2710 fi
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2712$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2714$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2715 fi;;
2716 esac
2717 # Pass precious variables to config.status.
2718 if test "$ac_new_set" = set; then
2719 case $ac_new_val in
2720 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2721 *) ac_arg=$ac_var=$ac_new_val ;;
2722 esac
2723 case " $ac_configure_args " in
2724 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2725 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2726 esac
2727 fi
2728done
2729if $ac_cache_corrupted; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2733$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
f00f02a3 2734 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cd9a469c 2735fi
2736## -------------------- ##
2737## Main body of script. ##
2738## -------------------- ##
2739
2740ac_ext=c
2741ac_cpp='$CPP $CPPFLAGS'
2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
2746
2747
2748
2749
2750ac_config_headers="$ac_config_headers config.h"
2751
2752ac_aux_dir=
2753for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
f00f02a3 2754 if test -f "$ac_dir/install-sh"; then
2755 ac_aux_dir=$ac_dir
2756 ac_install_sh="$ac_aux_dir/install-sh -c"
2757 break
2758 elif test -f "$ac_dir/install.sh"; then
2759 ac_aux_dir=$ac_dir
2760 ac_install_sh="$ac_aux_dir/install.sh -c"
2761 break
2762 elif test -f "$ac_dir/shtool"; then
2763 ac_aux_dir=$ac_dir
2764 ac_install_sh="$ac_aux_dir/shtool install -c"
2765 break
2766 fi
cd9a469c 2767done
2768if test -z "$ac_aux_dir"; then
f00f02a3 2769 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
cd9a469c 2770fi
2771
2772# These three variables are undocumented and unsupported,
2773# and are intended to be withdrawn in a future Autoconf release.
2774# They can cause serious problems if a builder's source tree is in a directory
2775# whose full name contains unusual characters.
2776ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2777ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2778ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2779
2780
2781# Make sure we can run config.sub.
2782$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
f00f02a3 2783 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cd9a469c 2784
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2786$as_echo_n "checking build system type... " >&6; }
f00f02a3 2787if ${ac_cv_build+:} false; then :
cd9a469c 2788 $as_echo_n "(cached) " >&6
2789else
2790 ac_build_alias=$build_alias
2791test "x$ac_build_alias" = x &&
2792 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2793test "x$ac_build_alias" = x &&
f00f02a3 2794 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cd9a469c 2795ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
f00f02a3 2796 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cd9a469c 2797
2798fi
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2800$as_echo "$ac_cv_build" >&6; }
2801case $ac_cv_build in
2802*-*-*) ;;
f00f02a3 2803*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cd9a469c 2804esac
2805build=$ac_cv_build
2806ac_save_IFS=$IFS; IFS='-'
2807set x $ac_cv_build
2808shift
2809build_cpu=$1
2810build_vendor=$2
2811shift; shift
2812# Remember, the first character of IFS is used to create $*,
2813# except with old shells:
2814build_os=$*
2815IFS=$ac_save_IFS
2816case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2817
2818
2819 case ${build_alias} in
2820 "") build_noncanonical=${build} ;;
2821 *) build_noncanonical=${build_alias} ;;
2822esac
4c82c0dd 2823
2824 case ${host_alias} in
2825 "") host_noncanonical=${build_noncanonical} ;;
2826 *) host_noncanonical=${host_alias} ;;
2827esac
2828
2829 case ${target_alias} in
2830 "") target_noncanonical=${host_noncanonical} ;;
2831 *) target_noncanonical=${target_alias} ;;
2832esac
2833
3e427a9c 2834
2835# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2836# have matching libraries, they should use host libraries: Makefile.tpl
2837# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2838# However, they still use the build modules, because the corresponding
2839# host modules (e.g. bison) are only built for the host when bootstrap
2840# finishes. So:
2841# - build_subdir is where we find build modules, and never changes.
2842# - build_libsubdir is where we find build libraries, and can be overridden.
2843
2844# Prefix 'build-' so this never conflicts with target_subdir.
4c82c0dd 2845build_subdir="build-${build_noncanonical}"
3e427a9c 2846
cd9a469c 2847# Check whether --with-build-libsubdir was given.
2848if test "${with_build_libsubdir+set}" = set; then :
2849 withval=$with_build_libsubdir; build_libsubdir="$withval"
3e427a9c 2850else
2851 build_libsubdir="$build_subdir"
cd9a469c 2852fi
2853
4c82c0dd 2854# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2855if ( test $srcdir = . && test -d gcc ) \
2856 || test -d $srcdir/../host-${host_noncanonical}; then
2857 host_subdir="host-${host_noncanonical}"
2858else
2859 host_subdir=.
2860fi
2861# No prefix.
2862target_subdir=${target_noncanonical}
2863
2864
2865# -------
2866# Options
2867# -------
2868
cd9a469c 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2870$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2871# Check whether --enable-version-specific-runtime-libs was given.
2872if test "${enable_version_specific_runtime_libs+set}" = set; then :
2873 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4c82c0dd 2874 yes) version_specific_libs=yes ;;
2875 no) version_specific_libs=no ;;
f00f02a3 2876 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4c82c0dd 2877 esac
2878else
2879 version_specific_libs=no
cd9a469c 2880fi
2881
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2883$as_echo "$version_specific_libs" >&6; }
4c82c0dd 2884
93773f82 2885# Build with intermodule optimisations
cd9a469c 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2887$as_echo_n "checking for --enable-intermodule... " >&6; }
2888# Check whether --enable-intermodule was given.
2889if test "${enable_intermodule+set}" = set; then :
2890 enableval=$enable_intermodule; case "$enable_intermodule" in
93773f82 2891 yes) onestep="-onestep";;
2892 *) onestep="";;
2893esac
2894else
2895 onestep=""
cd9a469c 2896fi
93773f82 2897
cd9a469c 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2899$as_echo "$enable_intermodule" >&6; }
2900 if test x$onestep = x-onestep; then
93773f82 2901 onestep_TRUE=
2902 onestep_FALSE='#'
2903else
2904 onestep_TRUE='#'
2905 onestep_FALSE=
2906fi
2907
2908
4c82c0dd 2909
2910# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2911#
2912# You will slowly go insane if you do not grok the following fact: when
2913# building this library, the top-level /target/ becomes the library's /host/.
2914#
2915# configure then causes --target to default to --host, exactly like any
2916# other package using autoconf. Therefore, 'target' and 'host' will
2917# always be the same. This makes sense both for native and cross compilers
2918# just think about it for a little while. :-)
2919#
2920# Also, if this library is being configured as part of a cross compiler, the
2921# top-level configure script will pass the "real" host as $with_cross_host.
2922#
2923# Do not delete or change the following two lines. For why, see
2924# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
cd9a469c 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2926$as_echo_n "checking host system type... " >&6; }
f00f02a3 2927if ${ac_cv_host+:} false; then :
cd9a469c 2928 $as_echo_n "(cached) " >&6
2929else
2930 if test "x$host_alias" = x; then
2931 ac_cv_host=$ac_cv_build
2932else
2933 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
f00f02a3 2934 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cd9a469c 2935fi
2936
2937fi
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2939$as_echo "$ac_cv_host" >&6; }
2940case $ac_cv_host in
2941*-*-*) ;;
f00f02a3 2942*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cd9a469c 2943esac
90973b19 2944host=$ac_cv_host
cd9a469c 2945ac_save_IFS=$IFS; IFS='-'
2946set x $ac_cv_host
2947shift
2948host_cpu=$1
2949host_vendor=$2
2950shift; shift
2951# Remember, the first character of IFS is used to create $*,
2952# except with old shells:
2953host_os=$*
2954IFS=$ac_save_IFS
2955case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
82eaf560 2956
2957
cd9a469c 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2959$as_echo_n "checking target system type... " >&6; }
f00f02a3 2960if ${ac_cv_target+:} false; then :
cd9a469c 2961 $as_echo_n "(cached) " >&6
90973b19 2962else
cd9a469c 2963 if test "x$target_alias" = x; then
2964 ac_cv_target=$ac_cv_host
2965else
2966 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
f00f02a3 2967 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cd9a469c 2968fi
90973b19 2969
2970fi
cd9a469c 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2972$as_echo "$ac_cv_target" >&6; }
2973case $ac_cv_target in
2974*-*-*) ;;
f00f02a3 2975*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cd9a469c 2976esac
90973b19 2977target=$ac_cv_target
cd9a469c 2978ac_save_IFS=$IFS; IFS='-'
2979set x $ac_cv_target
2980shift
2981target_cpu=$1
2982target_vendor=$2
2983shift; shift
2984# Remember, the first character of IFS is used to create $*,
2985# except with old shells:
2986target_os=$*
2987IFS=$ac_save_IFS
2988case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
90973b19 2989
2990
2991# The aliases save the names the user supplied, while $host etc.
2992# will get canonicalized.
2993test -n "$target_alias" &&
2994 test "$program_prefix$program_suffix$program_transform_name" = \
2995 NONENONEs,x,x, &&
2996 program_prefix=${target_alias}-
cd9a469c 2997
7eda0fb7 2998
2999
3000
90973b19 3001target_alias=${target_alias-$host_alias}
3002
7eda0fb7 3003
90973b19 3004# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3005# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2fd61f51 3006# 1.9.6: minimum required version
90973b19 3007# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3008# of other PACKAGE_* variables will, however, and there's nothing
3009# we can do about that; they come from AC_INIT).
3010# foreign: we don't follow the normal rules for GNU packages (no COPYING
3011# file in the top srcdir, etc, etc), so stop complaining.
5dbeae57 3012# no-dist: we don't want 'dist' and related rules.
90973b19 3013# -Wall: turns on all automake warnings...
3014# -Wno-portability: ...except this one, since GNU make is required.
f00f02a3 3015am__api_version='1.15'
cd9a469c 3016
4ee9c684 3017# Find a good install program. We prefer a C program (faster),
3018# so one script is as good as another. But avoid the broken or
3019# incompatible versions:
3020# SysV /etc/install, /usr/sbin/install
3021# SunOS /usr/etc/install
3022# IRIX /sbin/install
3023# AIX /bin/install
3024# AmigaOS /C/install, which installs bootblocks on floppy discs
3025# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3026# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3027# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3028# OS/2's system install, which has a completely different semantic
3029# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 3030# Reject install programs that cannot install multiple files.
cd9a469c 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3032$as_echo_n "checking for a BSD-compatible install... " >&6; }
4ee9c684 3033if test -z "$INSTALL"; then
f00f02a3 3034if ${ac_cv_path_install+:} false; then :
cd9a469c 3035 $as_echo_n "(cached) " >&6
4ee9c684 3036else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
cd9a469c 3042 # Account for people who put trailing slashes in PATH elements.
3043case $as_dir/ in #((
3044 ./ | .// | /[cC]/* | \
4ee9c684 3045 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 3046 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4ee9c684 3047 /usr/ucb/* ) ;;
3048 *)
3049 # OSF1 and SCO ODT 3.0 have their own names for install.
3050 # Don't use installbsd from OSF since it installs stuff as root
3051 # by default.
3052 for ac_prog in ginstall scoinst install; do
3053 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3054 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4ee9c684 3055 if test $ac_prog = install &&
3056 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3057 # AIX install. It has an incompatible calling convention.
3058 :
3059 elif test $ac_prog = install &&
3060 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3061 # program-specific install script used by HP pwplus--don't use.
3062 :
3063 else
82eaf560 3064 rm -rf conftest.one conftest.two conftest.dir
3065 echo one > conftest.one
3066 echo two > conftest.two
3067 mkdir conftest.dir
3068 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3069 test -s conftest.one && test -s conftest.two &&
3070 test -s conftest.dir/conftest.one &&
3071 test -s conftest.dir/conftest.two
3072 then
3073 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3074 break 3
3075 fi
4ee9c684 3076 fi
3077 fi
3078 done
3079 done
3080 ;;
3081esac
cd9a469c 3082
3083 done
3084IFS=$as_save_IFS
4ee9c684 3085
82eaf560 3086rm -rf conftest.one conftest.two conftest.dir
4ee9c684 3087
3088fi
3089 if test "${ac_cv_path_install+set}" = set; then
3090 INSTALL=$ac_cv_path_install
3091 else
ff4425cf 3092 # As a last resort, use the slow shell script. Don't cache a
3093 # value for INSTALL within a source directory, because that will
4ee9c684 3094 # break other packages using the cache if that directory is
ff4425cf 3095 # removed, or if the value is a relative name.
4ee9c684 3096 INSTALL=$ac_install_sh
3097 fi
3098fi
cd9a469c 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3100$as_echo "$INSTALL" >&6; }
4ee9c684 3101
3102# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3103# It thinks the first close brace ends the variable substitution.
3104test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3105
3106test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3107
3108test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3109
cd9a469c 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3111$as_echo_n "checking whether build environment is sane... " >&6; }
cd9a469c 3112# Reject unsafe characters in $srcdir or the absolute working directory
3113# name. Accept space and tab only in the latter.
3114am_lf='
3115'
3116case `pwd` in
3117 *[\\\"\#\$\&\'\`$am_lf]*)
f00f02a3 3118 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cd9a469c 3119esac
3120case $srcdir in
3121 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
f00f02a3 3122 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cd9a469c 3123esac
3124
f00f02a3 3125# Do 'set' in a subshell so we don't clobber the current shell's
4ee9c684 3126# arguments. Must try -L first in case configure is actually a
3127# symlink; some systems play weird games with the mod time of symlinks
3128# (eg FreeBSD returns the mod time of the symlink's containing
3129# directory).
3130if (
f00f02a3 3131 am_has_slept=no
3132 for am_try in 1 2; do
3133 echo "timestamp, slept: $am_has_slept" > conftest.file
3134 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3135 if test "$*" = "X"; then
3136 # -L didn't work.
3137 set X `ls -t "$srcdir/configure" conftest.file`
3138 fi
3139 if test "$*" != "X $srcdir/configure conftest.file" \
3140 && test "$*" != "X conftest.file $srcdir/configure"; then
3141
3142 # If neither matched, then we have a broken ls. This can happen
3143 # if, for instance, CONFIG_SHELL is bash and it inherits a
3144 # broken ls alias from the environment. This has actually
3145 # happened. Such a system could not be considered "sane".
3146 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3147 alias in your environment" "$LINENO" 5
3148 fi
3149 if test "$2" = conftest.file || test $am_try -eq 2; then
3150 break
3151 fi
3152 # Just in case.
3153 sleep 1
3154 am_has_slept=yes
3155 done
4ee9c684 3156 test "$2" = conftest.file
3157 )
3158then
3159 # Ok.
3160 :
3161else
f00f02a3 3162 as_fn_error $? "newly created file is older than distributed files!
cd9a469c 3163Check your system clock" "$LINENO" 5
4ee9c684 3164fi
cd9a469c 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166$as_echo "yes" >&6; }
f00f02a3 3167# If we didn't sleep, we still need to ensure time stamps of config.status and
3168# generated files are strictly newer.
3169am_sleep_pid=
3170if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3171 ( sleep 1 ) &
3172 am_sleep_pid=$!
3173fi
3174
3175rm -f conftest.file
3176
4ee9c684 3177test "$program_prefix" != NONE &&
cd9a469c 3178 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4ee9c684 3179# Use a double $ so make ignores it.
3180test "$program_suffix" != NONE &&
cd9a469c 3181 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3182# Double any \ or $.
4ee9c684 3183# By default was `s,x,x', remove it if useless.
cd9a469c 3184ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3185program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4ee9c684 3186
f00f02a3 3187# Expand $ac_aux_dir to an absolute path.
3188am_aux_dir=`cd "$ac_aux_dir" && pwd`
4ee9c684 3189
cd9a469c 3190if test x"${MISSING+set}" != xset; then
3191 case $am_aux_dir in
3192 *\ * | *\ *)
3193 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3194 *)
3195 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3196 esac
3197fi
4ee9c684 3198# Use eval to expand $SHELL
f00f02a3 3199if eval "$MISSING --is-lightweight"; then
3200 am_missing_run="$MISSING "
4ee9c684 3201else
3202 am_missing_run=
f00f02a3 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3204$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4ee9c684 3205fi
3206
f00f02a3 3207if test x"${install_sh+set}" != xset; then
cd9a469c 3208 case $am_aux_dir in
3209 *\ * | *\ *)
3210 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3211 *)
3212 install_sh="\${SHELL} $am_aux_dir/install-sh"
3213 esac
3214fi
3215
f00f02a3 3216# Installed binaries are usually stripped using 'strip' when the user
3217# run "make install-strip". However 'strip' might not be the right
cd9a469c 3218# tool to use in cross-compilation environments, therefore Automake
f00f02a3 3219# will honor the 'STRIP' environment variable to overrule this program.
cd9a469c 3220if test "$cross_compiling" != no; then
3221 if test -n "$ac_tool_prefix"; then
3222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3223set dummy ${ac_tool_prefix}strip; ac_word=$2
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3226if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 3227 $as_echo_n "(cached) " >&6
4ee9c684 3228else
cd9a469c 3229 if test -n "$STRIP"; then
3230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4ee9c684 3231else
3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH
3234do
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
cd9a469c 3237 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cd9a469c 3239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3241 break 2
3242 fi
3243done
cd9a469c 3244 done
3245IFS=$as_save_IFS
4ee9c684 3246
3247fi
3248fi
cd9a469c 3249STRIP=$ac_cv_prog_STRIP
3250if test -n "$STRIP"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3252$as_echo "$STRIP" >&6; }
4ee9c684 3253else
cd9a469c 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
4ee9c684 3256fi
3257
4ee9c684 3258
cd9a469c 3259fi
3260if test -z "$ac_cv_prog_STRIP"; then
3261 ac_ct_STRIP=$STRIP
3262 # Extract the first word of "strip", so it can be a program name with args.
3263set dummy strip; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3266if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cd9a469c 3267 $as_echo_n "(cached) " >&6
4ee9c684 3268else
cd9a469c 3269 if test -n "$ac_ct_STRIP"; then
3270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
82eaf560 3271else
cd9a469c 3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cd9a469c 3279 ac_cv_prog_ac_ct_STRIP="strip"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283done
3284 done
3285IFS=$as_save_IFS
3286
82eaf560 3287fi
4ee9c684 3288fi
cd9a469c 3289ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3290if test -n "$ac_ct_STRIP"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3292$as_echo "$ac_ct_STRIP" >&6; }
3293else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
3297
3298 if test "x$ac_ct_STRIP" = x; then
3299 STRIP=":"
3300 else
3301 case $cross_compiling:$ac_tool_warned in
3302yes:)
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3305ac_tool_warned=yes ;;
3306esac
3307 STRIP=$ac_ct_STRIP
3308 fi
3309else
3310 STRIP="$ac_cv_prog_STRIP"
3311fi
3312
3313fi
3314INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3315
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3317$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3318if test -z "$MKDIR_P"; then
f00f02a3 3319 if ${ac_cv_path_mkdir+:} false; then :
cd9a469c 3320 $as_echo_n "(cached) " >&6
3321else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3324do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_prog in mkdir gmkdir; do
3328 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3329 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cd9a469c 3330 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3331 'mkdir (GNU coreutils) '* | \
3332 'mkdir (coreutils) '* | \
3333 'mkdir (fileutils) '4.1*)
3334 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3335 break 3;;
3336 esac
3337 done
3338 done
3339 done
3340IFS=$as_save_IFS
3341
3342fi
3343
f00f02a3 3344 test -d ./--version && rmdir ./--version
cd9a469c 3345 if test "${ac_cv_path_mkdir+set}" = set; then
3346 MKDIR_P="$ac_cv_path_mkdir -p"
3347 else
3348 # As a last resort, use the slow shell script. Don't cache a
3349 # value for MKDIR_P within a source directory, because that will
3350 # break other packages using the cache if that directory is
3351 # removed, or if the value is a relative name.
cd9a469c 3352 MKDIR_P="$ac_install_sh -d"
3353 fi
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3356$as_echo "$MKDIR_P" >&6; }
3357
cd9a469c 3358for ac_prog in gawk mawk nawk awk
3359do
3360 # Extract the first word of "$ac_prog", so it can be a program name with args.
3361set dummy $ac_prog; ac_word=$2
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3364if ${ac_cv_prog_AWK+:} false; then :
cd9a469c 3365 $as_echo_n "(cached) " >&6
3366else
3367 if test -n "$AWK"; then
3368 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3369else
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cd9a469c 3377 ac_cv_prog_AWK="$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381done
3382 done
3383IFS=$as_save_IFS
3384
3385fi
3386fi
3387AWK=$ac_cv_prog_AWK
3388if test -n "$AWK"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3390$as_echo "$AWK" >&6; }
3391else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393$as_echo "no" >&6; }
3394fi
3395
3396
3397 test -n "$AWK" && break
3398done
3399
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3401$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3402set x ${MAKE-make}
3403ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
f00f02a3 3404if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cd9a469c 3405 $as_echo_n "(cached) " >&6
3406else
3407 cat >conftest.make <<\_ACEOF
3408SHELL = /bin/sh
3409all:
3410 @echo '@@@%%%=$(MAKE)=@@@%%%'
3411_ACEOF
f00f02a3 3412# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cd9a469c 3413case `${MAKE-make} -f conftest.make 2>/dev/null` in
3414 *@@@%%%=?*=@@@%%%*)
3415 eval ac_cv_prog_make_${ac_make}_set=yes;;
3416 *)
3417 eval ac_cv_prog_make_${ac_make}_set=no;;
3418esac
3419rm -f conftest.make
3420fi
3421if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3423$as_echo "yes" >&6; }
4ee9c684 3424 SET_MAKE=
3425else
cd9a469c 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427$as_echo "no" >&6; }
4ee9c684 3428 SET_MAKE="MAKE=${MAKE-make}"
3429fi
3430
3431rm -rf .tst 2>/dev/null
3432mkdir .tst 2>/dev/null
3433if test -d .tst; then
3434 am__leading_dot=.
3435else
3436 am__leading_dot=_
3437fi
3438rmdir .tst 2>/dev/null
3439
f00f02a3 3440# Check whether --enable-silent-rules was given.
3441if test "${enable_silent_rules+set}" = set; then :
3442 enableval=$enable_silent_rules;
3443fi
3444
3445case $enable_silent_rules in # (((
3446 yes) AM_DEFAULT_VERBOSITY=0;;
3447 no) AM_DEFAULT_VERBOSITY=1;;
3448 *) AM_DEFAULT_VERBOSITY=1;;
3449esac
3450am_make=${MAKE-make}
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3452$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3453if ${am_cv_make_support_nested_variables+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455else
3456 if $as_echo 'TRUE=$(BAR$(V))
3457BAR0=false
3458BAR1=true
3459V=1
3460am__doit:
3461 @$(TRUE)
3462.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3463 am_cv_make_support_nested_variables=yes
3464else
3465 am_cv_make_support_nested_variables=no
3466fi
3467fi
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3469$as_echo "$am_cv_make_support_nested_variables" >&6; }
3470if test $am_cv_make_support_nested_variables = yes; then
3471 AM_V='$(V)'
3472 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3473else
3474 AM_V=$AM_DEFAULT_VERBOSITY
3475 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3476fi
3477AM_BACKSLASH='\'
3478
cd9a469c 3479if test "`cd $srcdir && pwd`" != "`pwd`"; then
3480 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3481 # is not polluted with repeated "-I."
3482 am__isrc=' -I$(srcdir)'
3483 # test to see if srcdir already configured
3484 if test -f $srcdir/config.status; then
f00f02a3 3485 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cd9a469c 3486 fi
4ee9c684 3487fi
3488
3489# test whether we have cygpath
3490if test -z "$CYGPATH_W"; then
3491 if (cygpath --version) >/dev/null 2>/dev/null; then
3492 CYGPATH_W='cygpath -w'
3493 else
3494 CYGPATH_W=echo
3495 fi
3496fi
3497
3498
3499# Define the identity of the package.
3500 PACKAGE='libgfortran'
76c0a846 3501 VERSION='0.3'
4ee9c684 3502
3503
4ee9c684 3504# Some tools Automake needs.
3505
3506ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3507
3508
3509AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3510
3511
3512AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3513
3514
3515AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3516
3517
3518MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3519
f00f02a3 3520# For better backward compatibility. To be removed once Automake 1.9.x
3521# dies out for good. For more background, see:
3522# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3523# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3524mkdir_p='$(MKDIR_P)'
3525
3526# We need awk for the "check" target (and possibly the TAP driver). The
3527# system "awk" is bad on some platforms.
544db64f 3528# Always define AMTAR for backward compatibility. Yes, it's still used
3529# in the wild :-( We should find a proper way to deprecate it ...
3530AMTAR='$${TAR-tar}'
6745c9de 3531
f00f02a3 3532
3533# We'll loop over all known methods to create a tar archive until one works.
3534_am_tools='gnutar pax cpio none'
3535
544db64f 3536am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6745c9de 3537
3538
4ee9c684 3539
3540
3541
4ee9c684 3542
f00f02a3 3543# POSIX will say in a future version that running "rm -f" with no argument
3544# is OK; and we want to be able to make that assumption in our Makefile
3545# recipes. So use an aggressive probe to check that the usage we want is
3546# actually supported "in the wild" to an acceptable degree.
3547# See automake bug#10828.
3548# To make any issue more visible, cause the running configure to be aborted
3549# by default if the 'rm' program in use doesn't match our expectations; the
3550# user can still override this though.
3551if rm -f && rm -fr && rm -rf; then : OK; else
3552 cat >&2 <<'END'
3553Oops!
3554
3555Your 'rm' program seems unable to run without file operands specified
3556on the command line, even when the '-f' option is present. This is contrary
3557to the behaviour of most rm programs out there, and not conforming with
3558the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3559
3560Please tell bug-automake@gnu.org about your system, including the value
3561of your $PATH and any error possibly output before this message. This
3562can help us improve future automake versions.
3563
3564END
3565 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3566 echo 'Configuration will proceed anyway, since you have set the' >&2
3567 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3568 echo >&2
3569 else
3570 cat >&2 <<'END'
3571Aborting the configuration process, to ensure you take notice of the issue.
3572
3573You can download and install GNU coreutils to get an 'rm' implementation
3574that behaves properly: <http://www.gnu.org/software/coreutils/>.
3575
3576If you want to complete the configuration process using your problematic
3577'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3578to "yes", and re-run configure.
3579
3580END
3581 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3582 fi
3583fi
3584
3585
cd9a469c 3586
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3588$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3589 # Check whether --enable-maintainer-mode was given.
3590if test "${enable_maintainer_mode+set}" = set; then :
3591 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4ee9c684 3592else
3593 USE_MAINTAINER_MODE=no
cd9a469c 3594fi
4ee9c684 3595
cd9a469c 3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3597$as_echo "$USE_MAINTAINER_MODE" >&6; }
3598 if test $USE_MAINTAINER_MODE = yes; then
4ee9c684 3599 MAINTAINER_MODE_TRUE=
3600 MAINTAINER_MODE_FALSE='#'
3601else
3602 MAINTAINER_MODE_TRUE='#'
3603 MAINTAINER_MODE_FALSE=
3604fi
3605
3606 MAINT=$MAINTAINER_MODE_TRUE
3607
3608
90973b19 3609# Default to --enable-multilib
cd9a469c 3610# Check whether --enable-multilib was given.
3611if test "${enable_multilib+set}" = set; then :
3612 enableval=$enable_multilib; case "$enableval" in
90973b19 3613 yes) multilib=yes ;;
3614 no) multilib=no ;;
f00f02a3 3615 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
90973b19 3616 esac
3617else
3618 multilib=yes
cd9a469c 3619fi
3620
90973b19 3621
3622# We may get other options which we leave undocumented:
3623# --with-target-subdir, --with-multisrctop, --with-multisubdir
3624# See config-ml.in if you want the gory details.
3625
3626if test "$srcdir" = "."; then
3627 if test "$with_target_subdir" != "."; then
3628 multi_basedir="$srcdir/$with_multisrctop../.."
3629 else
3630 multi_basedir="$srcdir/$with_multisrctop.."
3631 fi
3632else
3633 multi_basedir="$srcdir/.."
3634fi
3635
3636
04c8b51e 3637# Even if the default multilib is not a cross compilation,
3638# it may be that some of the other multilibs are.
3639if test $cross_compiling = no && test $multilib = yes \
3640 && test "x${with_multisubdir}" != x ; then
3641 cross_compiling=maybe
3642fi
3643
cd9a469c 3644ac_config_commands="$ac_config_commands default-1"
90973b19 3645
3646
3647# Handy for debugging:
3648#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3649
3650# Are we being configured with some form of cross compiler?
3651# NB: We don't actually need to know this just now, but when, say, a test
3652# suite is included, we'll have to know.
3653if test "$build" != "$host"; then
3654 LIBGFOR_IS_NATIVE=false
b52ee437 3655
90973b19 3656else
3657 LIBGFOR_IS_NATIVE=true
3658fi
3659
d5d92632 3660DEPDIR="${am__leading_dot}deps"
90973b19 3661
d5d92632 3662ac_config_commands="$ac_config_commands depfiles"
90973b19 3663
4ee9c684 3664
d5d92632 3665am_make=${MAKE-make}
3666cat > confinc << 'END'
3667am__doit:
3668 @echo this is the am__doit target
3669.PHONY: am__doit
3670END
3671# If we don't find an include directive, just comment out the code.
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3673$as_echo_n "checking for style of include used by $am_make... " >&6; }
3674am__include="#"
3675am__quote=
3676_am_result=none
3677# First try GNU make style include.
3678echo "include confinc" > confmf
f00f02a3 3679# Ignore all kinds of additional output from 'make'.
d5d92632 3680case `$am_make -s -f confmf 2> /dev/null` in #(
3681*the\ am__doit\ target*)
3682 am__include=include
3683 am__quote=
3684 _am_result=GNU
3685 ;;
3686esac
3687# Now try BSD make style include.
3688if test "$am__include" = "#"; then
3689 echo '.include "confinc"' > confmf
3690 case `$am_make -s -f confmf 2> /dev/null` in #(
3691 *the\ am__doit\ target*)
3692 am__include=.include
3693 am__quote="\""
3694 _am_result=BSD
3695 ;;
3696 esac
3697fi
87969c8c 3698
4ee9c684 3699
d5d92632 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3701$as_echo "$_am_result" >&6; }
3702rm -f confinc confmf
3703
3704# Check whether --enable-dependency-tracking was given.
3705if test "${enable_dependency_tracking+set}" = set; then :
3706 enableval=$enable_dependency_tracking;
3707fi
3708
3709if test "x$enable_dependency_tracking" != xno; then
3710 am_depcomp="$ac_aux_dir/depcomp"
3711 AMDEPBACKSLASH='\'
544db64f 3712 am__nodep='_no'
d5d92632 3713fi
3714 if test "x$enable_dependency_tracking" != xno; then
3715 AMDEP_TRUE=
3716 AMDEP_FALSE='#'
3717else
3718 AMDEP_TRUE='#'
3719 AMDEP_FALSE=
3720fi
4ee9c684 3721
3722
4ee9c684 3723ac_ext=c
3724ac_cpp='$CPP $CPPFLAGS'
3725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3730set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3733if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3734 $as_echo_n "(cached) " >&6
4ee9c684 3735else
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC="$CC" # Let the user override the test.
3738else
3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
cd9a469c 3744 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3748 break 2
3749 fi
3750done
cd9a469c 3751 done
3752IFS=$as_save_IFS
4ee9c684 3753
3754fi
3755fi
3756CC=$ac_cv_prog_CC
3757if test -n "$CC"; then
cd9a469c 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3759$as_echo "$CC" >&6; }
4ee9c684 3760else
cd9a469c 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762$as_echo "no" >&6; }
4ee9c684 3763fi
3764
cd9a469c 3765
4ee9c684 3766fi
3767if test -z "$ac_cv_prog_CC"; then
3768 ac_ct_CC=$CC
3769 # Extract the first word of "gcc", so it can be a program name with args.
3770set dummy gcc; ac_word=$2
cd9a469c 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3773if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 3774 $as_echo_n "(cached) " >&6
4ee9c684 3775else
3776 if test -n "$ac_ct_CC"; then
3777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3778else
3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
cd9a469c 3784 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3786 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3788 break 2
3789 fi
3790done
cd9a469c 3791 done
3792IFS=$as_save_IFS
4ee9c684 3793
3794fi
3795fi
3796ac_ct_CC=$ac_cv_prog_ac_ct_CC
3797if test -n "$ac_ct_CC"; then
cd9a469c 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3799$as_echo "$ac_ct_CC" >&6; }
4ee9c684 3800else
cd9a469c 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802$as_echo "no" >&6; }
4ee9c684 3803fi
3804
cd9a469c 3805 if test "x$ac_ct_CC" = x; then
3806 CC=""
3807 else
3808 case $cross_compiling:$ac_tool_warned in
3809yes:)
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3812ac_tool_warned=yes ;;
3813esac
3814 CC=$ac_ct_CC
3815 fi
4ee9c684 3816else
3817 CC="$ac_cv_prog_CC"
3818fi
3819
3820if test -z "$CC"; then
cd9a469c 3821 if test -n "$ac_tool_prefix"; then
3822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4ee9c684 3823set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3826if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3827 $as_echo_n "(cached) " >&6
4ee9c684 3828else
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
cd9a469c 3837 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3839 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3841 break 2
3842 fi
3843done
cd9a469c 3844 done
3845IFS=$as_save_IFS
4ee9c684 3846
3847fi
3848fi
3849CC=$ac_cv_prog_CC
3850if test -n "$CC"; then
cd9a469c 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3852$as_echo "$CC" >&6; }
82eaf560 3853else
cd9a469c 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
82eaf560 3856fi
3857
82eaf560 3858
cd9a469c 3859 fi
4ee9c684 3860fi
3861if test -z "$CC"; then
3862 # Extract the first word of "cc", so it can be a program name with args.
3863set dummy cc; ac_word=$2
cd9a469c 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3866if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3867 $as_echo_n "(cached) " >&6
4ee9c684 3868else
3869 if test -n "$CC"; then
3870 ac_cv_prog_CC="$CC" # Let the user override the test.
3871else
3872 ac_prog_rejected=no
3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
cd9a469c 3878 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3881 ac_prog_rejected=yes
3882 continue
3883 fi
3884 ac_cv_prog_CC="cc"
cd9a469c 3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3886 break 2
3887 fi
3888done
cd9a469c 3889 done
3890IFS=$as_save_IFS
4ee9c684 3891
3892if test $ac_prog_rejected = yes; then
3893 # We found a bogon in the path, so make sure we never use it.
3894 set dummy $ac_cv_prog_CC
3895 shift
3896 if test $# != 0; then
3897 # We chose a different compiler from the bogus one.
3898 # However, it has the same basename, so the bogon will be chosen
3899 # first if we set CC to just the basename; use the full file name.
3900 shift
3901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3902 fi
3903fi
3904fi
3905fi
3906CC=$ac_cv_prog_CC
3907if test -n "$CC"; then
cd9a469c 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909$as_echo "$CC" >&6; }
4ee9c684 3910else
cd9a469c 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912$as_echo "no" >&6; }
4ee9c684 3913fi
3914
cd9a469c 3915
4ee9c684 3916fi
3917if test -z "$CC"; then
3918 if test -n "$ac_tool_prefix"; then
cd9a469c 3919 for ac_prog in cl.exe
4ee9c684 3920 do
3921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3922set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3925if ${ac_cv_prog_CC+:} false; then :
cd9a469c 3926 $as_echo_n "(cached) " >&6
4ee9c684 3927else
3928 if test -n "$CC"; then
3929 ac_cv_prog_CC="$CC" # Let the user override the test.
3930else
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH
3933do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
cd9a469c 3936 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3940 break 2
3941 fi
3942done
cd9a469c 3943 done
3944IFS=$as_save_IFS
4ee9c684 3945
3946fi
3947fi
3948CC=$ac_cv_prog_CC
3949if test -n "$CC"; then
cd9a469c 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3951$as_echo "$CC" >&6; }
4ee9c684 3952else
cd9a469c 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954$as_echo "no" >&6; }
4ee9c684 3955fi
3956
cd9a469c 3957
4ee9c684 3958 test -n "$CC" && break
3959 done
3960fi
3961if test -z "$CC"; then
3962 ac_ct_CC=$CC
cd9a469c 3963 for ac_prog in cl.exe
4ee9c684 3964do
3965 # Extract the first word of "$ac_prog", so it can be a program name with args.
3966set dummy $ac_prog; ac_word=$2
cd9a469c 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 3969if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 3970 $as_echo_n "(cached) " >&6
4ee9c684 3971else
3972 if test -n "$ac_ct_CC"; then
3973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3974else
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
cd9a469c 3980 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 3981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 3982 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4ee9c684 3984 break 2
3985 fi
3986done
cd9a469c 3987 done
3988IFS=$as_save_IFS
4ee9c684 3989
3990fi
3991fi
3992ac_ct_CC=$ac_cv_prog_ac_ct_CC
3993if test -n "$ac_ct_CC"; then
cd9a469c 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3995$as_echo "$ac_ct_CC" >&6; }
4ee9c684 3996else
cd9a469c 3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
4ee9c684 3999fi
4000
cd9a469c 4001
4ee9c684 4002 test -n "$ac_ct_CC" && break
4003done
4004
cd9a469c 4005 if test "x$ac_ct_CC" = x; then
4006 CC=""
4007 else
4008 case $cross_compiling:$ac_tool_warned in
4009yes:)
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4012ac_tool_warned=yes ;;
4013esac
4014 CC=$ac_ct_CC
4015 fi
4ee9c684 4016fi
4017
4018fi
4019
4020
cd9a469c 4021test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4023as_fn_error $? "no acceptable C compiler found in \$PATH
4024See \`config.log' for more details" "$LINENO" 5; }
4ee9c684 4025
4026# Provide some information about the compiler.
cd9a469c 4027$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4028set X $ac_compile
4029ac_compiler=$2
4030for ac_option in --version -v -V -qversion; do
4031 { { ac_try="$ac_compiler $ac_option >&5"
4032case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035esac
4036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037$as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4ee9c684 4039 ac_status=$?
cd9a469c 4040 if test -s conftest.err; then
4041 sed '10a\
4042... rest of stderr output deleted ...
4043 10q' conftest.err >conftest.er1
4044 cat conftest.er1 >&5
cd9a469c 4045 fi
f00f02a3 4046 rm -f conftest.er1 conftest.err
cd9a469c 4047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4048 test $ac_status = 0; }
4049done
4ee9c684 4050
cd9a469c 4051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4052/* end confdefs.h. */
4053
b52ee437 4054int
4055main ()
4056{
4057
4058 ;
4059 return 0;
4060}
4061_ACEOF
4062# FIXME: Cleanup?
cd9a469c 4063if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
b52ee437 4064 (eval $ac_link) 2>&5
4065 ac_status=$?
cd9a469c 4066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }; then :
b52ee437 4068 gcc_no_link=no
4069else
4070 gcc_no_link=yes
4071fi
b52ee437 4072if test x$gcc_no_link = xyes; then
4073 # Setting cross_compile will disable run tests; it will
4074 # also disable AC_CHECK_FILE but that's generally
4075 # correct if we can't link.
4076 cross_compiling=yes
4077 EXEEXT=
4078else
cd9a469c 4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 4080/* end confdefs.h. */
4081
4ee9c684 4082int
4083main ()
4084{
4085
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090ac_clean_files_save=$ac_clean_files
f00f02a3 4091ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4ee9c684 4092# Try to create an executable without -o first, disregard a.out.
4093# It will help us diagnose broken compilers, and finding out an intuition
4094# of exeext.
f00f02a3 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4096$as_echo_n "checking whether the C compiler works... " >&6; }
cd9a469c 4097ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4098
4099# The possible output files:
4100ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4101
4102ac_rmfiles=
4103for ac_file in $ac_files
4104do
4105 case $ac_file in
4106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4107 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4108 esac
4109done
4110rm -f $ac_rmfiles
4111
4112if { { ac_try="$ac_link_default"
4113case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116esac
4117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118$as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_link_default") 2>&5
4120 ac_status=$?
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; then :
4123 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4124# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4125# in a Makefile. We should not override ac_cv_exeext if it was cached,
4126# so that the user can short-circuit this test for compilers unknown to
4127# Autoconf.
4128for ac_file in $ac_files ''
4ee9c684 4129do
4130 test -f "$ac_file" || continue
4131 case $ac_file in
cd9a469c 4132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4ee9c684 4133 ;;
4134 [ab].out )
4135 # We found the default executable, but exeext='' is most
4136 # certainly right.
4137 break;;
4138 *.* )
cd9a469c 4139 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4140 then :; else
4141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4142 fi
4143 # We set ac_cv_exeext here because the later test for it is not
4144 # safe: cross compilers may not add the suffix if given an `-o'
4145 # argument, so we may need to know it at that point already.
4146 # Even if this section looks crufty: it has the advantage of
4147 # actually working.
4ee9c684 4148 break;;
4149 * )
4150 break;;
4151 esac
4152done
cd9a469c 4153test "$ac_cv_exeext" = no && ac_cv_exeext=
4154
4ee9c684 4155else
cd9a469c 4156 ac_file=''
4157fi
cd9a469c 4158if test -z "$ac_file"; then :
f00f02a3 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160$as_echo "no" >&6; }
4161$as_echo "$as_me: failed program was:" >&5
4ee9c684 4162sed 's/^/| /' conftest.$ac_ext >&5
4163
cd9a469c 4164{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4166as_fn_error 77 "C compiler cannot create executables
4167See \`config.log' for more details" "$LINENO" 5; }
4168else
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4170$as_echo "yes" >&6; }
4ee9c684 4171fi
f00f02a3 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4173$as_echo_n "checking for C compiler default output file name... " >&6; }
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4175$as_echo "$ac_file" >&6; }
4ee9c684 4176ac_exeext=$ac_cv_exeext
4ee9c684 4177
f00f02a3 4178rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4ee9c684 4179ac_clean_files=$ac_clean_files_save
cd9a469c 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4181$as_echo_n "checking for suffix of executables... " >&6; }
4182if { { ac_try="$ac_link"
4183case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186esac
4187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188$as_echo "$ac_try_echo"; } >&5
4189 (eval "$ac_link") 2>&5
4ee9c684 4190 ac_status=$?
cd9a469c 4191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4192 test $ac_status = 0; }; then :
4ee9c684 4193 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4194# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4195# work properly (i.e., refer to `conftest.exe'), while it won't with
4196# `rm'.
4197for ac_file in conftest.exe conftest conftest.*; do
4198 test -f "$ac_file" || continue
4199 case $ac_file in
cd9a469c 4200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4ee9c684 4201 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4ee9c684 4202 break;;
4203 * ) break;;
4204 esac
4205done
4206else
cd9a469c 4207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4209as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4210See \`config.log' for more details" "$LINENO" 5; }
4ee9c684 4211fi
f00f02a3 4212rm -f conftest conftest$ac_cv_exeext
cd9a469c 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4214$as_echo "$ac_cv_exeext" >&6; }
4ee9c684 4215
4216rm -f conftest.$ac_ext
4217EXEEXT=$ac_cv_exeext
4218ac_exeext=$EXEEXT
f00f02a3 4219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220/* end confdefs.h. */
4221#include <stdio.h>
4222int
4223main ()
4224{
4225FILE *f = fopen ("conftest.out", "w");
4226 return ferror (f) || fclose (f) != 0;
4227
4228 ;
4229 return 0;
4230}
4231_ACEOF
4232ac_clean_files="$ac_clean_files conftest.out"
4233# Check that the compiler produces executables we can run. If not, either
4234# the compiler is broken, or we cross compile.
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4236$as_echo_n "checking whether we are cross compiling... " >&6; }
4237if test "$cross_compiling" != yes; then
4238 { { ac_try="$ac_link"
4239case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244$as_echo "$ac_try_echo"; } >&5
4245 (eval "$ac_link") 2>&5
4246 ac_status=$?
4247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248 test $ac_status = 0; }
4249 if { ac_try='./conftest$ac_cv_exeext'
4250 { { case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255$as_echo "$ac_try_echo"; } >&5
4256 (eval "$ac_try") 2>&5
4257 ac_status=$?
4258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4259 test $ac_status = 0; }; }; then
4260 cross_compiling=no
4261 else
4262 if test "$cross_compiling" = maybe; then
4263 cross_compiling=yes
4264 else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267as_fn_error $? "cannot run C compiled programs.
4268If you meant to cross compile, use \`--host'.
4269See \`config.log' for more details" "$LINENO" 5; }
4270 fi
4271 fi
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4274$as_echo "$cross_compiling" >&6; }
4275
4276rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4277ac_clean_files=$ac_clean_files_save
b52ee437 4278fi
cd9a469c 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4280$as_echo_n "checking for suffix of object files... " >&6; }
f00f02a3 4281if ${ac_cv_objext+:} false; then :
cd9a469c 4282 $as_echo_n "(cached) " >&6
4ee9c684 4283else
cd9a469c 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4285/* end confdefs.h. */
4286
4287int
4288main ()
4289{
4290
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295rm -f conftest.o conftest.obj
cd9a469c 4296if { { ac_try="$ac_compile"
4297case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300esac
4301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302$as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_compile") 2>&5
4304 ac_status=$?
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; }; then :
4307 for ac_file in conftest.o conftest.obj conftest.*; do
4308 test -f "$ac_file" || continue;
4ee9c684 4309 case $ac_file in
cd9a469c 4310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4ee9c684 4311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4312 break;;
4313 esac
4314done
4315else
cd9a469c 4316 $as_echo "$as_me: failed program was:" >&5
4ee9c684 4317sed 's/^/| /' conftest.$ac_ext >&5
4318
cd9a469c 4319{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4321as_fn_error $? "cannot compute suffix of object files: cannot compile
4322See \`config.log' for more details" "$LINENO" 5; }
a106dabe 4323fi
a106dabe 4324rm -f conftest.$ac_cv_objext conftest.$ac_ext
4325fi
cd9a469c 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4327$as_echo "$ac_cv_objext" >&6; }
a106dabe 4328OBJEXT=$ac_cv_objext
4329ac_objext=$OBJEXT
cd9a469c 4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 4332if ${ac_cv_c_compiler_gnu+:} false; then :
cd9a469c 4333 $as_echo_n "(cached) " >&6
a106dabe 4334else
cd9a469c 4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4336/* end confdefs.h. */
4ee9c684 4337
4ee9c684 4338int
4339main ()
4340{
a106dabe 4341#ifndef __GNUC__
4342 choke me
4343#endif
ce1a737c 4344
4ee9c684 4345 ;
4346 return 0;
4347}
4348_ACEOF
cd9a469c 4349if ac_fn_c_try_compile "$LINENO"; then :
a106dabe 4350 ac_compiler_gnu=yes
4ee9c684 4351else
cd9a469c 4352 ac_compiler_gnu=no
a106dabe 4353fi
cd9a469c 4354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a106dabe 4355ac_cv_c_compiler_gnu=$ac_compiler_gnu
4356
4357fi
cd9a469c 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4359$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4360if test $ac_compiler_gnu = yes; then
4361 GCC=yes
4362else
4363 GCC=
4364fi
a106dabe 4365ac_test_CFLAGS=${CFLAGS+set}
4366ac_save_CFLAGS=$CFLAGS
cd9a469c 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4368$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 4369if ${ac_cv_prog_cc_g+:} false; then :
cd9a469c 4370 $as_echo_n "(cached) " >&6
a106dabe 4371else
cd9a469c 4372 ac_save_c_werror_flag=$ac_c_werror_flag
4373 ac_c_werror_flag=yes
4374 ac_cv_prog_cc_g=no
4375 CFLAGS="-g"
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 4377/* end confdefs.h. */
ce1a737c 4378
4ee9c684 4379int
4380main ()
4381{
ce1a737c 4382
4ee9c684 4383 ;
4384 return 0;
4385}
4386_ACEOF
cd9a469c 4387if ac_fn_c_try_compile "$LINENO"; then :
ff4425cf 4388 ac_cv_prog_cc_g=yes
4389else
cd9a469c 4390 CFLAGS=""
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h. */
4393
4394int
4395main ()
4396{
4397
4398 ;
4399 return 0;
4400}
4401_ACEOF
4402if ac_fn_c_try_compile "$LINENO"; then :
4403
4404else
4405 ac_c_werror_flag=$ac_save_c_werror_flag
4406 CFLAGS="-g"
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408/* end confdefs.h. */
ff4425cf 4409
cd9a469c 4410int
4411main ()
4412{
4413
4414 ;
4415 return 0;
4416}
4417_ACEOF
4418if ac_fn_c_try_compile "$LINENO"; then :
4419 ac_cv_prog_cc_g=yes
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82eaf560 4422fi
cd9a469c 4423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82eaf560 4424fi
cd9a469c 4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 ac_c_werror_flag=$ac_save_c_werror_flag
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4429$as_echo "$ac_cv_prog_cc_g" >&6; }
82eaf560 4430if test "$ac_test_CFLAGS" = set; then
4431 CFLAGS=$ac_save_CFLAGS
4432elif test $ac_cv_prog_cc_g = yes; then
4433 if test "$GCC" = yes; then
4434 CFLAGS="-g -O2"
4435 else
4436 CFLAGS="-g"
4437 fi
4438else
4439 if test "$GCC" = yes; then
4440 CFLAGS="-O2"
4441 else
4442 CFLAGS=
4443 fi
4444fi
cd9a469c 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 4447if ${ac_cv_prog_cc_c89+:} false; then :
cd9a469c 4448 $as_echo_n "(cached) " >&6
82eaf560 4449else
cd9a469c 4450 ac_cv_prog_cc_c89=no
82eaf560 4451ac_save_CC=$CC
cd9a469c 4452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ff4425cf 4453/* end confdefs.h. */
82eaf560 4454#include <stdarg.h>
4455#include <stdio.h>
f00f02a3 4456struct stat;
82eaf560 4457/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4458struct buf { int x; };
4459FILE * (*rcsopen) (struct buf *, struct stat *, int);
4460static char *e (p, i)
4461 char **p;
4462 int i;
4463{
4464 return p[i];
4465}
4466static char *f (char * (*g) (char **, int), char **p, ...)
4467{
4468 char *s;
4469 va_list v;
4470 va_start (v,p);
4471 s = g (p, va_arg (v,int));
4472 va_end (v);
4473 return s;
4474}
ff4425cf 4475
82eaf560 4476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4477 function prototypes and stuff, but not '\xHH' hex character constants.
4478 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4479 as 'x'. The following induces an error, until -std is added to get
82eaf560 4480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4481 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4482 that's true only with -std. */
82eaf560 4483int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4484
cd9a469c 4485/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4486 inside strings and character constants. */
4487#define FOO(x) 'x'
4488int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4489
82eaf560 4490int test (int i, double x);
4491struct s1 {int (*f) (int a);};
4492struct s2 {int (*f) (double a);};
4493int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4494int argc;
4495char **argv;
ff4425cf 4496int
4497main ()
4498{
82eaf560 4499return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
ff4425cf 4500 ;
4501 return 0;
4502}
4503_ACEOF
cd9a469c 4504for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
82eaf560 4506do
4507 CC="$ac_save_CC $ac_arg"
cd9a469c 4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_cv_prog_cc_c89=$ac_arg
82eaf560 4510fi
cd9a469c 4511rm -f core conftest.err conftest.$ac_objext
4512 test "x$ac_cv_prog_cc_c89" != "xno" && break
82eaf560 4513done
cd9a469c 4514rm -f conftest.$ac_ext
82eaf560 4515CC=$ac_save_CC
4516
4517fi
cd9a469c 4518# AC_CACHE_VAL
4519case "x$ac_cv_prog_cc_c89" in
4520 x)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4522$as_echo "none needed" >&6; } ;;
4523 xno)
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4525$as_echo "unsupported" >&6; } ;;
82eaf560 4526 *)
cd9a469c 4527 CC="$CC $ac_cv_prog_cc_c89"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4529$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
82eaf560 4530esac
cd9a469c 4531if test "x$ac_cv_prog_cc_c89" != xno; then :
4ee9c684 4532
4533fi
4ee9c684 4534
4ee9c684 4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2fd61f51 4540
f00f02a3 4541ac_ext=c
4542ac_cpp='$CPP $CPPFLAGS'
4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4547$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4548if ${am_cv_prog_cc_c_o+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h. */
4553
4554int
4555main ()
4556{
4557
4558 ;
4559 return 0;
4560}
4561_ACEOF
4562 # Make sure it works both with $CC and with simple cc.
4563 # Following AC_PROG_CC_C_O, we do the test twice because some
4564 # compilers refuse to overwrite an existing .o file with -o,
4565 # though they will create one.
4566 am_cv_prog_cc_c_o=yes
4567 for am_i in 1 2; do
4568 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4569 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } \
4573 && test -f conftest2.$ac_objext; then
4574 : OK
4575 else
4576 am_cv_prog_cc_c_o=no
4577 break
4578 fi
4579 done
4580 rm -f core conftest*
4581 unset am_i
4582fi
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4584$as_echo "$am_cv_prog_cc_c_o" >&6; }
4585if test "$am_cv_prog_cc_c_o" != yes; then
4586 # Losing compiler, so override with the script.
4587 # FIXME: It is wrong to rewrite CC.
4588 # But if we don't then we get into trouble of one sort or another.
4589 # A longer-term fix would be to have automake use am__CC in this case,
4590 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4591 CC="$am_aux_dir/compile $CC"
4592fi
4593ac_ext=c
4594ac_cpp='$CPP $CPPFLAGS'
4595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599
2fd61f51 4600depcc="$CC" am_compiler_list=
4601
cd9a469c 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4603$as_echo_n "checking dependency style of $depcc... " >&6; }
f00f02a3 4604if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cd9a469c 4605 $as_echo_n "(cached) " >&6
2fd61f51 4606else
4607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4608 # We make a subdir and do the tests there. Otherwise we can end up
4609 # making bogus files that we don't know about and never remove. For
4610 # instance it was reported that on HP-UX the gcc test will end up
f00f02a3 4611 # making a dummy file named 'D' -- because '-MD' means "put the output
4612 # in D".
544db64f 4613 rm -rf conftest.dir
2fd61f51 4614 mkdir conftest.dir
4615 # Copy depcomp to subdir because otherwise we won't find it if we're
4616 # using a relative directory.
4617 cp "$am_depcomp" conftest.dir
4618 cd conftest.dir
4619 # We will build objects and dependencies in a subdirectory because
4620 # it helps to detect inapplicable dependency modes. For instance
4621 # both Tru64's cc and ICC support -MD to output dependencies as a
4622 # side effect of compilation, but ICC will put the dependencies in
4623 # the current directory while Tru64 will put them in the object
4624 # directory.
4625 mkdir sub
4626
4627 am_cv_CC_dependencies_compiler_type=none
4628 if test "$am_compiler_list" = ""; then
4629 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4630 fi
cd9a469c 4631 am__universal=false
4632 case " $depcc " in #(
4633 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4634 esac
4635
2fd61f51 4636 for depmode in $am_compiler_list; do
4637 # Setup a source with many dependencies, because some compilers
4638 # like to wrap large dependency lists on column 80 (with \), and
4639 # we should not choose a depcomp mode which is confused by this.
4640 #
4641 # We need to recreate these files for each test, as the compiler may
4642 # overwrite some of them when testing with obscure command lines.
4643 # This happens at least with the AIX C compiler.
4644 : > sub/conftest.c
4645 for i in 1 2 3 4 5 6; do
4646 echo '#include "conftst'$i'.h"' >> sub/conftest.c
f00f02a3 4647 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4648 # Solaris 10 /bin/sh.
4649 echo '/* dummy */' > sub/conftst$i.h
2fd61f51 4650 done
4651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4652
f00f02a3 4653 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cd9a469c 4654 # mode. It turns out that the SunPro C++ compiler does not properly
f00f02a3 4655 # handle '-M -o', and we need to detect this. Also, some Intel
4656 # versions had trouble with output in subdirs.
cd9a469c 4657 am__obj=sub/conftest.${OBJEXT-o}
4658 am__minus_obj="-o $am__obj"
2fd61f51 4659 case $depmode in
cd9a469c 4660 gcc)
4661 # This depmode causes a compiler race in universal mode.
4662 test "$am__universal" = false || continue
4663 ;;
2fd61f51 4664 nosideeffect)
f00f02a3 4665 # After this tag, mechanisms are not by side-effect, so they'll
4666 # only be used when explicitly requested.
2fd61f51 4667 if test "x$enable_dependency_tracking" = xyes; then
4668 continue
4669 else
4670 break
4671 fi
4672 ;;
544db64f 4673 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
f00f02a3 4674 # This compiler won't grok '-c -o', but also, the minuso test has
cd9a469c 4675 # not run yet. These depmodes are late enough in the game, and
4676 # so weak that their functioning should not be impacted.
4677 am__obj=conftest.${OBJEXT-o}
4678 am__minus_obj=
4679 ;;
2fd61f51 4680 none) break ;;
4681 esac
2fd61f51 4682 if depmode=$depmode \
cd9a469c 4683 source=sub/conftest.c object=$am__obj \
2fd61f51 4684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 4685 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2fd61f51 4686 >/dev/null 2>conftest.err &&
cd9a469c 4687 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2fd61f51 4688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 4689 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2fd61f51 4690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4691 # icc doesn't choke on unknown options, it will just issue warnings
4692 # or remarks (even with -Werror). So we grep stderr for any message
4693 # that says an option was ignored or not supported.
4694 # When given -MP, icc 7.0 and 7.1 complain thusly:
4695 # icc: Command line warning: ignoring option '-M'; no argument required
4696 # The diagnosis changed in icc 8.0:
4697 # icc: Command line remark: option '-MP' not supported
4698 if (grep 'ignoring option' conftest.err ||
4699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4700 am_cv_CC_dependencies_compiler_type=$depmode
4701 break
4702 fi
4703 fi
4704 done
4705
4706 cd ..
4707 rm -rf conftest.dir
4708else
4709 am_cv_CC_dependencies_compiler_type=none
4710fi
4711
4712fi
cd9a469c 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4714$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2fd61f51 4715CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4716
cd9a469c 4717 if
2fd61f51 4718 test "x$enable_dependency_tracking" != xno \
4719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4720 am__fastdepCC_TRUE=
4721 am__fastdepCC_FALSE='#'
4722else
4723 am__fastdepCC_TRUE='#'
4724 am__fastdepCC_FALSE=
4725fi
4726
4ee9c684 4727
4ee9c684 4728
d5d92632 4729ac_ext=c
4730ac_cpp='$CPP $CPPFLAGS'
4731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4735$as_echo_n "checking how to run the C preprocessor... " >&6; }
4736# On Suns, sometimes $CPP names a directory.
4737if test -n "$CPP" && test -d "$CPP"; then
4738 CPP=
4ee9c684 4739fi
d5d92632 4740if test -z "$CPP"; then
f00f02a3 4741 if ${ac_cv_prog_CPP+:} false; then :
d5d92632 4742 $as_echo_n "(cached) " >&6
4743else
4744 # Double quotes because CPP needs to be expanded
4745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4746 do
4747 ac_preproc_ok=false
4748for ac_c_preproc_warn_flag in '' yes
4749do
4750 # Use a header file that comes with gcc, so configuring glibc
4751 # with a fresh cross-compiler works.
4752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4753 # <limits.h> exists even on freestanding compilers.
4754 # On the NeXT, cc -E runs the code through the compiler's parser,
4755 # not just through cpp. "Syntax error" is here to catch this case.
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce1a737c 4757/* end confdefs.h. */
d5d92632 4758#ifdef __STDC__
4759# include <limits.h>
4760#else
4761# include <assert.h>
4762#endif
4763 Syntax error
ce1a737c 4764_ACEOF
d5d92632 4765if ac_fn_c_try_cpp "$LINENO"; then :
4766
019fb48a 4767else
d5d92632 4768 # Broken: fails on valid input.
4769continue
019fb48a 4770fi
f00f02a3 4771rm -f conftest.err conftest.i conftest.$ac_ext
019fb48a 4772
d5d92632 4773 # OK, works on sane cases. Now check whether nonexistent headers
4774 # can be detected and how.
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h. */
4777#include <ac_nonexistent.h>
019fb48a 4778_ACEOF
d5d92632 4779if ac_fn_c_try_cpp "$LINENO"; then :
4780 # Broken: success on invalid input.
4781continue
ce1a737c 4782else
d5d92632 4783 # Passes both tests.
4784ac_preproc_ok=:
4785break
019fb48a 4786fi
f00f02a3 4787rm -f conftest.err conftest.i conftest.$ac_ext
d5d92632 4788
4789done
4790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 4791rm -f conftest.i conftest.err conftest.$ac_ext
d5d92632 4792if $ac_preproc_ok; then :
4793 break
ce1a737c 4794fi
4795
d5d92632 4796 done
4797 ac_cv_prog_CPP=$CPP
4798
4799fi
4800 CPP=$ac_cv_prog_CPP
019fb48a 4801else
d5d92632 4802 ac_cv_prog_CPP=$CPP
019fb48a 4803fi
d5d92632 4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4805$as_echo "$CPP" >&6; }
4806ac_preproc_ok=false
4807for ac_c_preproc_warn_flag in '' yes
4808do
4809 # Use a header file that comes with gcc, so configuring glibc
4810 # with a fresh cross-compiler works.
4811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4812 # <limits.h> exists even on freestanding compilers.
4813 # On the NeXT, cc -E runs the code through the compiler's parser,
4814 # not just through cpp. "Syntax error" is here to catch this case.
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h. */
4817#ifdef __STDC__
4818# include <limits.h>
4819#else
4820# include <assert.h>
4821#endif
4822 Syntax error
4823_ACEOF
4824if ac_fn_c_try_cpp "$LINENO"; then :
019fb48a 4825
019fb48a 4826else
d5d92632 4827 # Broken: fails on valid input.
4828continue
019fb48a 4829fi
f00f02a3 4830rm -f conftest.err conftest.i conftest.$ac_ext
019fb48a 4831
d5d92632 4832 # OK, works on sane cases. Now check whether nonexistent headers
4833 # can be detected and how.
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443eac1 4835/* end confdefs.h. */
d5d92632 4836#include <ac_nonexistent.h>
3443eac1 4837_ACEOF
d5d92632 4838if ac_fn_c_try_cpp "$LINENO"; then :
4839 # Broken: success on invalid input.
4840continue
3443eac1 4841else
d5d92632 4842 # Passes both tests.
4843ac_preproc_ok=:
4844break
3443eac1 4845fi
f00f02a3 4846rm -f conftest.err conftest.i conftest.$ac_ext
d5d92632 4847
4848done
4849# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 4850rm -f conftest.i conftest.err conftest.$ac_ext
d5d92632 4851if $ac_preproc_ok; then :
4852
3443eac1 4853else
d5d92632 4854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 4856as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4857See \`config.log' for more details" "$LINENO" 5; }
3443eac1 4858fi
3443eac1 4859
d5d92632 4860ac_ext=c
4861ac_cpp='$CPP $CPPFLAGS'
4862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443eac1 4865
d5d92632 4866
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4868$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
f00f02a3 4869if ${ac_cv_path_GREP+:} false; then :
cd9a469c 4870 $as_echo_n "(cached) " >&6
4ee9c684 4871else
d5d92632 4872 if test -z "$GREP"; then
4873 ac_path_GREP_found=false
4874 # Loop through the user's path and test for each of PROGNAME-LIST
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
90973b19 4877do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
d5d92632 4880 for ac_prog in grep ggrep; do
cd9a469c 4881 for ac_exec_ext in '' $ac_executable_extensions; do
d5d92632 4882 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 4883 as_fn_executable_p "$ac_path_GREP" || continue
d5d92632 4884# Check for GNU ac_path_GREP and select it if it is found.
4885 # Check for GNU $ac_path_GREP
4886case `"$ac_path_GREP" --version 2>&1` in
4887*GNU*)
4888 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4889*)
4890 ac_count=0
4891 $as_echo_n 0123456789 >"conftest.in"
4892 while :
4893 do
4894 cat "conftest.in" "conftest.in" >"conftest.tmp"
4895 mv "conftest.tmp" "conftest.in"
4896 cp "conftest.in" "conftest.nl"
4897 $as_echo 'GREP' >> "conftest.nl"
4898 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4900 as_fn_arith $ac_count + 1 && ac_count=$as_val
4901 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4902 # Best one so far, save it but keep looking for a better one
4903 ac_cv_path_GREP="$ac_path_GREP"
4904 ac_path_GREP_max=$ac_count
4905 fi
4906 # 10*(2^10) chars as input seems more than enough
4907 test $ac_count -gt 10 && break
cd9a469c 4908 done
d5d92632 4909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4910esac
4ee9c684 4911
d5d92632 4912 $ac_path_GREP_found && break 3
4913 done
4914 done
4915 done
4916IFS=$as_save_IFS
4917 if test -z "$ac_cv_path_GREP"; then
f00f02a3 4918 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d5d92632 4919 fi
4ee9c684 4920else
d5d92632 4921 ac_cv_path_GREP=$GREP
4ee9c684 4922fi
4923
4ee9c684 4924fi
d5d92632 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4926$as_echo "$ac_cv_path_GREP" >&6; }
4927 GREP="$ac_cv_path_GREP"
4ee9c684 4928
d5d92632 4929
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4931$as_echo_n "checking for egrep... " >&6; }
f00f02a3 4932if ${ac_cv_path_EGREP+:} false; then :
cd9a469c 4933 $as_echo_n "(cached) " >&6
4ee9c684 4934else
d5d92632 4935 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4936 then ac_cv_path_EGREP="$GREP -E"
4937 else
4938 if test -z "$EGREP"; then
4939 ac_path_EGREP_found=false
4940 # Loop through the user's path and test for each of PROGNAME-LIST
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4ee9c684 4943do
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
d5d92632 4946 for ac_prog in egrep; do
cd9a469c 4947 for ac_exec_ext in '' $ac_executable_extensions; do
d5d92632 4948 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 4949 as_fn_executable_p "$ac_path_EGREP" || continue
d5d92632 4950# Check for GNU ac_path_EGREP and select it if it is found.
4951 # Check for GNU $ac_path_EGREP
4952case `"$ac_path_EGREP" --version 2>&1` in
4953*GNU*)
4954 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4955*)
4956 ac_count=0
4957 $as_echo_n 0123456789 >"conftest.in"
4958 while :
4959 do
4960 cat "conftest.in" "conftest.in" >"conftest.tmp"
4961 mv "conftest.tmp" "conftest.in"
4962 cp "conftest.in" "conftest.nl"
4963 $as_echo 'EGREP' >> "conftest.nl"
4964 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4966 as_fn_arith $ac_count + 1 && ac_count=$as_val
4967 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4968 # Best one so far, save it but keep looking for a better one
4969 ac_cv_path_EGREP="$ac_path_EGREP"
4970 ac_path_EGREP_max=$ac_count
4971 fi
4972 # 10*(2^10) chars as input seems more than enough
4973 test $ac_count -gt 10 && break
cd9a469c 4974 done
d5d92632 4975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4976esac
4ee9c684 4977
d5d92632 4978 $ac_path_EGREP_found && break 3
4979 done
4980 done
4981 done
4982IFS=$as_save_IFS
4983 if test -z "$ac_cv_path_EGREP"; then
f00f02a3 4984 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d5d92632 4985 fi
4ee9c684 4986else
d5d92632 4987 ac_cv_path_EGREP=$EGREP
4ee9c684 4988fi
4989
d5d92632 4990 fi
4ee9c684 4991fi
d5d92632 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4993$as_echo "$ac_cv_path_EGREP" >&6; }
4994 EGREP="$ac_cv_path_EGREP"
4995
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4998$as_echo_n "checking for ANSI C header files... " >&6; }
f00f02a3 4999if ${ac_cv_header_stdc+:} false; then :
cd9a469c 5000 $as_echo_n "(cached) " >&6
4ee9c684 5001else
d5d92632 5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h. */
5004#include <stdlib.h>
5005#include <stdarg.h>
5006#include <string.h>
5007#include <float.h>
5008
5009int
5010main ()
5011{
5012
5013 ;
5014 return 0;
5015}
5016_ACEOF
5017if ac_fn_c_try_compile "$LINENO"; then :
5018 ac_cv_header_stdc=yes
4ee9c684 5019else
d5d92632 5020 ac_cv_header_stdc=no
5021fi
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5023
d5d92632 5024if test $ac_cv_header_stdc = yes; then
5025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027/* end confdefs.h. */
5028#include <string.h>
5029
5030_ACEOF
5031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032 $EGREP "memchr" >/dev/null 2>&1; then :
5033
5034else
5035 ac_cv_header_stdc=no
4ee9c684 5036fi
d5d92632 5037rm -f conftest*
5038
4ee9c684 5039fi
d5d92632 5040
5041if test $ac_cv_header_stdc = yes; then
5042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h. */
5045#include <stdlib.h>
5046
5047_ACEOF
5048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5049 $EGREP "free" >/dev/null 2>&1; then :
5050
4ee9c684 5051else
d5d92632 5052 ac_cv_header_stdc=no
4ee9c684 5053fi
d5d92632 5054rm -f conftest*
4ee9c684 5055
4ee9c684 5056fi
5057
d5d92632 5058if test $ac_cv_header_stdc = yes; then
5059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5060 if test "$cross_compiling" = yes; then :
5061 :
5062else
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h. */
5065#include <ctype.h>
5066#include <stdlib.h>
5067#if ((' ' & 0x0FF) == 0x020)
5068# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5069# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5070#else
5071# define ISLOWER(c) \
5072 (('a' <= (c) && (c) <= 'i') \
5073 || ('j' <= (c) && (c) <= 'r') \
5074 || ('s' <= (c) && (c) <= 'z'))
5075# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5076#endif
5077
5078#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5079int
5080main ()
5081{
5082 int i;
5083 for (i = 0; i < 256; i++)
5084 if (XOR (islower (i), ISLOWER (i))
5085 || toupper (i) != TOUPPER (i))
5086 return 2;
5087 return 0;
5088}
5089_ACEOF
5090if ac_fn_c_try_run "$LINENO"; then :
5091
5092else
5093 ac_cv_header_stdc=no
5094fi
5095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5096 conftest.$ac_objext conftest.beam conftest.$ac_ext
5097fi
5098
5099fi
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5102$as_echo "$ac_cv_header_stdc" >&6; }
5103if test $ac_cv_header_stdc = yes; then
5104
5105$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5106
5107fi
5108
5109# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5110for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5111 inttypes.h stdint.h unistd.h
5112do :
5113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5114ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5115"
f00f02a3 5116if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d5d92632 5117 cat >>confdefs.h <<_ACEOF
5118#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5119_ACEOF
5120
5121fi
5122
5123done
5124
5125
5126
5127 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
f00f02a3 5128if test "x$ac_cv_header_minix_config_h" = xyes; then :
d5d92632 5129 MINIX=yes
5130else
5131 MINIX=
5132fi
5133
5134
5135 if test "$MINIX" = yes; then
5136
5137$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5138
5139
5140$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5141
5142
5143$as_echo "#define _MINIX 1" >>confdefs.h
5144
5145 fi
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5149$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
f00f02a3 5150if ${ac_cv_safe_to_define___extensions__+:} false; then :
d5d92632 5151 $as_echo_n "(cached) " >&6
5152else
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h. */
5155
f00f02a3 5156# define __EXTENSIONS__ 1
5157 $ac_includes_default
d5d92632 5158int
5159main ()
5160{
5161
5162 ;
5163 return 0;
5164}
5165_ACEOF
5166if ac_fn_c_try_compile "$LINENO"; then :
5167 ac_cv_safe_to_define___extensions__=yes
5168else
5169 ac_cv_safe_to_define___extensions__=no
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172fi
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5174$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5175 test $ac_cv_safe_to_define___extensions__ = yes &&
5176 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5177
5178 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5179
5180 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5181
5182 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5183
5184 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5185
5186
5187
5188# Calculate toolexeclibdir
5189# Also toolexecdir, though it's only used in toolexeclibdir
5190case ${version_specific_libs} in
5191 yes)
5192 # Need the gcc compiler version to know where to install libraries
5193 # and header files if --enable-version-specific-runtime-libs option
5194 # is selected.
5195 toolexecdir='$(libdir)/gcc/$(target_alias)'
5196 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5197 ;;
5198 no)
5199 if test -n "$with_cross_host" &&
5200 test x"$with_cross_host" != x"no"; then
5201 # Install a library built with a cross compiler in tooldir, not libdir.
5202 toolexecdir='$(exec_prefix)/$(target_alias)'
5203 toolexeclibdir='$(toolexecdir)/lib'
5204 else
5205 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5206 toolexeclibdir='$(libdir)'
5207 fi
5208 multi_os_directory=`$CC -print-multi-os-directory`
5209 case $multi_os_directory in
5210 .) ;; # Avoid trailing /.
5211 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5212 esac
5213 ;;
5214esac
5215
5216
5217
5218# Create a spec file, so that compile/link tests don't fail
5219test -f libgfortran.spec || touch libgfortran.spec
5220
7eda0fb7 5221ac_ext=c
5222ac_cpp='$CPP $CPPFLAGS'
5223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226
d5d92632 5227# Check the compiler.
5228# The same as in boehm-gc and libstdc++. Have to borrow it from there.
5229# We must force CC to /not/ be precious variables; otherwise
5230# the wrong, non-multilib-adjusted value will be used in multilibs.
5231# As a side effect, we have to subst CFLAGS ourselves.
5232
5233
5234
5235ac_ext=c
5236ac_cpp='$CPP $CPPFLAGS'
5237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239ac_compiler_gnu=$ac_cv_c_compiler_gnu
5240if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5242set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5245if ${ac_cv_prog_CC+:} false; then :
cd9a469c 5246 $as_echo_n "(cached) " >&6
4ee9c684 5247else
d5d92632 5248 if test -n "$CC"; then
5249 ac_cv_prog_CC="$CC" # Let the user override the test.
4ee9c684 5250else
90973b19 5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
cd9a469c 5256 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5258 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 5260 break 2
5261 fi
5262done
cd9a469c 5263 done
5264IFS=$as_save_IFS
4ee9c684 5265
4ee9c684 5266fi
90973b19 5267fi
d5d92632 5268CC=$ac_cv_prog_CC
5269if test -n "$CC"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5271$as_echo "$CC" >&6; }
90973b19 5272else
cd9a469c 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
90973b19 5275fi
4ee9c684 5276
cd9a469c 5277
4ee9c684 5278fi
d5d92632 5279if test -z "$ac_cv_prog_CC"; then
5280 ac_ct_CC=$CC
5281 # Extract the first word of "gcc", so it can be a program name with args.
5282set dummy gcc; ac_word=$2
cd9a469c 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5285if ${ac_cv_prog_ac_ct_CC+:} false; then :
cd9a469c 5286 $as_echo_n "(cached) " >&6
4ee9c684 5287else
d5d92632 5288 if test -n "$ac_ct_CC"; then
5289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4ee9c684 5290else
90973b19 5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
cd9a469c 5296 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5298 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 5300 break 2
5301 fi
5302done
cd9a469c 5303 done
5304IFS=$as_save_IFS
4ee9c684 5305
4ee9c684 5306fi
4ee9c684 5307fi
d5d92632 5308ac_ct_CC=$ac_cv_prog_ac_ct_CC
5309if test -n "$ac_ct_CC"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5311$as_echo "$ac_ct_CC" >&6; }
4ee9c684 5312else
cd9a469c 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
4ee9c684 5315fi
5316
d5d92632 5317 if test "x$ac_ct_CC" = x; then
5318 CC=""
cd9a469c 5319 else
5320 case $cross_compiling:$ac_tool_warned in
5321yes:)
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324ac_tool_warned=yes ;;
5325esac
d5d92632 5326 CC=$ac_ct_CC
cd9a469c 5327 fi
90973b19 5328else
d5d92632 5329 CC="$ac_cv_prog_CC"
4ee9c684 5330fi
90973b19 5331
d5d92632 5332if test -z "$CC"; then
5333 if test -n "$ac_tool_prefix"; then
5334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5335set dummy ${ac_tool_prefix}cc; ac_word=$2
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5338if ${ac_cv_prog_CC+:} false; then :
cd9a469c 5339 $as_echo_n "(cached) " >&6
4ee9c684 5340else
d5d92632 5341 if test -n "$CC"; then
5342 ac_cv_prog_CC="$CC" # Let the user override the test.
4ee9c684 5343else
d5d92632 5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5351 ac_cv_prog_CC="${ac_tool_prefix}cc"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355done
5356 done
5357IFS=$as_save_IFS
5358
5359fi
5360fi
5361CC=$ac_cv_prog_CC
5362if test -n "$CC"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5364$as_echo "$CC" >&6; }
5365else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370
5371 fi
5372fi
5373if test -z "$CC"; then
5374 # Extract the first word of "cc", so it can be a program name with args.
5375set dummy cc; ac_word=$2
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5378if ${ac_cv_prog_CC+:} false; then :
d5d92632 5379 $as_echo_n "(cached) " >&6
5380else
5381 if test -n "$CC"; then
5382 ac_cv_prog_CC="$CC" # Let the user override the test.
5383else
5384 ac_prog_rejected=no
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5392 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5393 ac_prog_rejected=yes
5394 continue
5395 fi
5396 ac_cv_prog_CC="cc"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400done
5401 done
5402IFS=$as_save_IFS
5403
5404if test $ac_prog_rejected = yes; then
5405 # We found a bogon in the path, so make sure we never use it.
5406 set dummy $ac_cv_prog_CC
5407 shift
5408 if test $# != 0; then
5409 # We chose a different compiler from the bogus one.
5410 # However, it has the same basename, so the bogon will be chosen
5411 # first if we set CC to just the basename; use the full file name.
5412 shift
5413 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5414 fi
5415fi
5416fi
5417fi
5418CC=$ac_cv_prog_CC
5419if test -n "$CC"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5421$as_echo "$CC" >&6; }
5422else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424$as_echo "no" >&6; }
5425fi
5426
5427
5428fi
5429if test -z "$CC"; then
5430 if test -n "$ac_tool_prefix"; then
5431 for ac_prog in cl.exe
5432 do
5433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5434set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5437if ${ac_cv_prog_CC+:} false; then :
d5d92632 5438 $as_echo_n "(cached) " >&6
5439else
5440 if test -n "$CC"; then
5441 ac_cv_prog_CC="$CC" # Let the user override the test.
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5450 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
5455 done
5456IFS=$as_save_IFS
5457
5458fi
5459fi
5460CC=$ac_cv_prog_CC
5461if test -n "$CC"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5463$as_echo "$CC" >&6; }
5464else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466$as_echo "no" >&6; }
5467fi
5468
5469
5470 test -n "$CC" && break
5471 done
5472fi
5473if test -z "$CC"; then
5474 ac_ct_CC=$CC
5475 for ac_prog in cl.exe
5476do
5477 # Extract the first word of "$ac_prog", so it can be a program name with args.
5478set dummy $ac_prog; ac_word=$2
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5481if ${ac_cv_prog_ac_ct_CC+:} false; then :
d5d92632 5482 $as_echo_n "(cached) " >&6
5483else
5484 if test -n "$ac_ct_CC"; then
5485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5486else
5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488for as_dir in $PATH
5489do
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 5494 ac_cv_prog_ac_ct_CC="$ac_prog"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5497 fi
5498done
5499 done
5500IFS=$as_save_IFS
5501
5502fi
5503fi
5504ac_ct_CC=$ac_cv_prog_ac_ct_CC
5505if test -n "$ac_ct_CC"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5507$as_echo "$ac_ct_CC" >&6; }
5508else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510$as_echo "no" >&6; }
5511fi
5512
5513
5514 test -n "$ac_ct_CC" && break
5515done
5516
5517 if test "x$ac_ct_CC" = x; then
5518 CC=""
5519 else
5520 case $cross_compiling:$ac_tool_warned in
5521yes:)
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524ac_tool_warned=yes ;;
5525esac
5526 CC=$ac_ct_CC
5527 fi
5528fi
5529
5530fi
5531
5532
5533test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 5535as_fn_error $? "no acceptable C compiler found in \$PATH
5536See \`config.log' for more details" "$LINENO" 5; }
d5d92632 5537
5538# Provide some information about the compiler.
5539$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5540set X $ac_compile
5541ac_compiler=$2
5542for ac_option in --version -v -V -qversion; do
5543 { { ac_try="$ac_compiler $ac_option >&5"
5544case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547esac
5548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5549$as_echo "$ac_try_echo"; } >&5
5550 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5551 ac_status=$?
5552 if test -s conftest.err; then
5553 sed '10a\
5554... rest of stderr output deleted ...
5555 10q' conftest.err >conftest.er1
5556 cat conftest.er1 >&5
d5d92632 5557 fi
f00f02a3 5558 rm -f conftest.er1 conftest.err
d5d92632 5559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5560 test $ac_status = 0; }
5561done
5562
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5564$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 5565if ${ac_cv_c_compiler_gnu+:} false; then :
d5d92632 5566 $as_echo_n "(cached) " >&6
5567else
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h. */
5570
5571int
5572main ()
5573{
5574#ifndef __GNUC__
5575 choke me
5576#endif
5577
5578 ;
5579 return 0;
5580}
5581_ACEOF
5582if ac_fn_c_try_compile "$LINENO"; then :
5583 ac_compiler_gnu=yes
5584else
5585 ac_compiler_gnu=no
5586fi
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588ac_cv_c_compiler_gnu=$ac_compiler_gnu
5589
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5592$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5593if test $ac_compiler_gnu = yes; then
5594 GCC=yes
5595else
5596 GCC=
5597fi
5598ac_test_CFLAGS=${CFLAGS+set}
5599ac_save_CFLAGS=$CFLAGS
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5601$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 5602if ${ac_cv_prog_cc_g+:} false; then :
d5d92632 5603 $as_echo_n "(cached) " >&6
5604else
5605 ac_save_c_werror_flag=$ac_c_werror_flag
5606 ac_c_werror_flag=yes
5607 ac_cv_prog_cc_g=no
5608 CFLAGS="-g"
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611
5612int
5613main ()
5614{
5615
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_compile "$LINENO"; then :
5621 ac_cv_prog_cc_g=yes
5622else
5623 CFLAGS=""
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h. */
5626
5627int
5628main ()
5629{
5630
5631 ;
5632 return 0;
5633}
5634_ACEOF
5635if ac_fn_c_try_compile "$LINENO"; then :
5636
5637else
5638 ac_c_werror_flag=$ac_save_c_werror_flag
5639 CFLAGS="-g"
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h. */
5642
5643int
5644main ()
5645{
5646
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_compile "$LINENO"; then :
5652 ac_cv_prog_cc_g=yes
5653fi
5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657fi
5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 ac_c_werror_flag=$ac_save_c_werror_flag
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5662$as_echo "$ac_cv_prog_cc_g" >&6; }
5663if test "$ac_test_CFLAGS" = set; then
5664 CFLAGS=$ac_save_CFLAGS
5665elif test $ac_cv_prog_cc_g = yes; then
5666 if test "$GCC" = yes; then
5667 CFLAGS="-g -O2"
5668 else
5669 CFLAGS="-g"
5670 fi
5671else
5672 if test "$GCC" = yes; then
5673 CFLAGS="-O2"
5674 else
5675 CFLAGS=
5676 fi
5677fi
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5679$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 5680if ${ac_cv_prog_cc_c89+:} false; then :
d5d92632 5681 $as_echo_n "(cached) " >&6
5682else
5683 ac_cv_prog_cc_c89=no
5684ac_save_CC=$CC
5685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h. */
5687#include <stdarg.h>
5688#include <stdio.h>
f00f02a3 5689struct stat;
d5d92632 5690/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5691struct buf { int x; };
5692FILE * (*rcsopen) (struct buf *, struct stat *, int);
5693static char *e (p, i)
5694 char **p;
5695 int i;
5696{
5697 return p[i];
5698}
5699static char *f (char * (*g) (char **, int), char **p, ...)
5700{
5701 char *s;
5702 va_list v;
5703 va_start (v,p);
5704 s = g (p, va_arg (v,int));
5705 va_end (v);
5706 return s;
5707}
5708
5709/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5710 function prototypes and stuff, but not '\xHH' hex character constants.
5711 These don't provoke an error unfortunately, instead are silently treated
5712 as 'x'. The following induces an error, until -std is added to get
5713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5714 array size at least. It's necessary to write '\x00'==0 to get something
5715 that's true only with -std. */
5716int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5717
5718/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5719 inside strings and character constants. */
5720#define FOO(x) 'x'
5721int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5722
5723int test (int i, double x);
5724struct s1 {int (*f) (int a);};
5725struct s2 {int (*f) (double a);};
5726int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5727int argc;
5728char **argv;
5729int
5730main ()
5731{
5732return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5733 ;
5734 return 0;
5735}
5736_ACEOF
5737for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5738 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5739do
5740 CC="$ac_save_CC $ac_arg"
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742 ac_cv_prog_cc_c89=$ac_arg
5743fi
5744rm -f core conftest.err conftest.$ac_objext
5745 test "x$ac_cv_prog_cc_c89" != "xno" && break
5746done
5747rm -f conftest.$ac_ext
5748CC=$ac_save_CC
5749
5750fi
5751# AC_CACHE_VAL
5752case "x$ac_cv_prog_cc_c89" in
5753 x)
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5755$as_echo "none needed" >&6; } ;;
5756 xno)
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5758$as_echo "unsupported" >&6; } ;;
5759 *)
5760 CC="$CC $ac_cv_prog_cc_c89"
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5762$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5763esac
5764if test "x$ac_cv_prog_cc_c89" != xno; then :
5765
5766fi
5767
5768ac_ext=c
5769ac_cpp='$CPP $CPPFLAGS'
5770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5772ac_compiler_gnu=$ac_cv_c_compiler_gnu
5773
f00f02a3 5774ac_ext=c
5775ac_cpp='$CPP $CPPFLAGS'
5776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778ac_compiler_gnu=$ac_cv_c_compiler_gnu
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5780$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5781if ${am_cv_prog_cc_c_o+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783else
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h. */
5786
5787int
5788main ()
5789{
5790
5791 ;
5792 return 0;
5793}
5794_ACEOF
5795 # Make sure it works both with $CC and with simple cc.
5796 # Following AC_PROG_CC_C_O, we do the test twice because some
5797 # compilers refuse to overwrite an existing .o file with -o,
5798 # though they will create one.
5799 am_cv_prog_cc_c_o=yes
5800 for am_i in 1 2; do
5801 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5802 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } \
5806 && test -f conftest2.$ac_objext; then
5807 : OK
5808 else
5809 am_cv_prog_cc_c_o=no
5810 break
5811 fi
5812 done
5813 rm -f core conftest*
5814 unset am_i
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5817$as_echo "$am_cv_prog_cc_c_o" >&6; }
5818if test "$am_cv_prog_cc_c_o" != yes; then
5819 # Losing compiler, so override with the script.
5820 # FIXME: It is wrong to rewrite CC.
5821 # But if we don't then we get into trouble of one sort or another.
5822 # A longer-term fix would be to have automake use am__CC in this case,
5823 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5824 CC="$am_aux_dir/compile $CC"
5825fi
5826ac_ext=c
5827ac_cpp='$CPP $CPPFLAGS'
5828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830ac_compiler_gnu=$ac_cv_c_compiler_gnu
5831
5832
d5d92632 5833depcc="$CC" am_compiler_list=
5834
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5836$as_echo_n "checking dependency style of $depcc... " >&6; }
f00f02a3 5837if ${am_cv_CC_dependencies_compiler_type+:} false; then :
d5d92632 5838 $as_echo_n "(cached) " >&6
5839else
5840 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5841 # We make a subdir and do the tests there. Otherwise we can end up
5842 # making bogus files that we don't know about and never remove. For
5843 # instance it was reported that on HP-UX the gcc test will end up
f00f02a3 5844 # making a dummy file named 'D' -- because '-MD' means "put the output
5845 # in D".
544db64f 5846 rm -rf conftest.dir
d5d92632 5847 mkdir conftest.dir
5848 # Copy depcomp to subdir because otherwise we won't find it if we're
5849 # using a relative directory.
5850 cp "$am_depcomp" conftest.dir
5851 cd conftest.dir
5852 # We will build objects and dependencies in a subdirectory because
5853 # it helps to detect inapplicable dependency modes. For instance
5854 # both Tru64's cc and ICC support -MD to output dependencies as a
5855 # side effect of compilation, but ICC will put the dependencies in
5856 # the current directory while Tru64 will put them in the object
5857 # directory.
5858 mkdir sub
5859
5860 am_cv_CC_dependencies_compiler_type=none
5861 if test "$am_compiler_list" = ""; then
5862 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5863 fi
5864 am__universal=false
5865 case " $depcc " in #(
5866 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5867 esac
5868
5869 for depmode in $am_compiler_list; do
5870 # Setup a source with many dependencies, because some compilers
5871 # like to wrap large dependency lists on column 80 (with \), and
5872 # we should not choose a depcomp mode which is confused by this.
5873 #
5874 # We need to recreate these files for each test, as the compiler may
5875 # overwrite some of them when testing with obscure command lines.
5876 # This happens at least with the AIX C compiler.
5877 : > sub/conftest.c
5878 for i in 1 2 3 4 5 6; do
5879 echo '#include "conftst'$i'.h"' >> sub/conftest.c
f00f02a3 5880 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5881 # Solaris 10 /bin/sh.
5882 echo '/* dummy */' > sub/conftst$i.h
d5d92632 5883 done
5884 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5885
f00f02a3 5886 # We check with '-c' and '-o' for the sake of the "dashmstdout"
d5d92632 5887 # mode. It turns out that the SunPro C++ compiler does not properly
f00f02a3 5888 # handle '-M -o', and we need to detect this. Also, some Intel
5889 # versions had trouble with output in subdirs.
d5d92632 5890 am__obj=sub/conftest.${OBJEXT-o}
5891 am__minus_obj="-o $am__obj"
5892 case $depmode in
5893 gcc)
5894 # This depmode causes a compiler race in universal mode.
5895 test "$am__universal" = false || continue
5896 ;;
5897 nosideeffect)
f00f02a3 5898 # After this tag, mechanisms are not by side-effect, so they'll
5899 # only be used when explicitly requested.
d5d92632 5900 if test "x$enable_dependency_tracking" = xyes; then
5901 continue
5902 else
5903 break
5904 fi
5905 ;;
544db64f 5906 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
f00f02a3 5907 # This compiler won't grok '-c -o', but also, the minuso test has
d5d92632 5908 # not run yet. These depmodes are late enough in the game, and
5909 # so weak that their functioning should not be impacted.
5910 am__obj=conftest.${OBJEXT-o}
5911 am__minus_obj=
5912 ;;
5913 none) break ;;
5914 esac
5915 if depmode=$depmode \
5916 source=sub/conftest.c object=$am__obj \
5917 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5918 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5919 >/dev/null 2>conftest.err &&
5920 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5921 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5922 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5923 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5924 # icc doesn't choke on unknown options, it will just issue warnings
5925 # or remarks (even with -Werror). So we grep stderr for any message
5926 # that says an option was ignored or not supported.
5927 # When given -MP, icc 7.0 and 7.1 complain thusly:
5928 # icc: Command line warning: ignoring option '-M'; no argument required
5929 # The diagnosis changed in icc 8.0:
5930 # icc: Command line remark: option '-MP' not supported
5931 if (grep 'ignoring option' conftest.err ||
5932 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5933 am_cv_CC_dependencies_compiler_type=$depmode
5934 break
5935 fi
5936 fi
5937 done
5938
5939 cd ..
5940 rm -rf conftest.dir
5941else
5942 am_cv_CC_dependencies_compiler_type=none
5943fi
5944
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5947$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5948CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5949
5950 if
5951 test "x$enable_dependency_tracking" != xno \
5952 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5953 am__fastdepCC_TRUE=
5954 am__fastdepCC_FALSE='#'
5955else
5956 am__fastdepCC_TRUE='#'
5957 am__fastdepCC_FALSE=
5958fi
5959
5960
5961
5962
7eda0fb7 5963
5964
7eda0fb7 5965
5966
d5d92632 5967# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5968if test "x$GCC" = "xyes"; then
5969 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
a159faeb 5970 ## We like to use C11 and C99 routines when available. This makes
5971 ## sure that
d5d92632 5972 ## __STDC_VERSION__ is set such that libc includes make them available.
2cb567cf 5973 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
d5d92632 5974 ## Compile the following tests with the same system header contents
5975 ## that we'll encounter when compiling our own source files.
a159faeb 5976 CFLAGS="-std=gnu11 $CFLAGS"
d5d92632 5977fi
5978
42ea2de2 5979# Add CET specific flags if CET is enabled
5980 # Check whether --enable-cet was given.
5981if test "${enable_cet+set}" = set; then :
5982 enableval=$enable_cet;
5983 case "$enableval" in
ee8fea81 5984 yes|no|auto) ;;
f00f02a3 5985 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
42ea2de2 5986 esac
5987
5988else
ee8fea81 5989 enable_cet=no
42ea2de2 5990fi
5991
5992
5611e648 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5994$as_echo_n "checking for CET support... " >&6; }
5995
42ea2de2 5996case "$host" in
5997 i[34567]86-*-linux* | x86_64-*-linux*)
5998 case "$enable_cet" in
ee8fea81 5999 auto)
5611e648 6000 # Check if target supports multi-byte NOPs
6001 # and if assembler supports CET insn.
42ea2de2 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h. */
6004
6005int
6006main ()
6007{
5611e648 6008
6009#if !defined(__SSE2__)
6010#error target does not support multi-byte NOPs
6011#else
42ea2de2 6012asm ("setssbsy");
5611e648 6013#endif
6014
42ea2de2 6015 ;
6016 return 0;
6017}
6018_ACEOF
6019if ac_fn_c_try_compile "$LINENO"; then :
6020 enable_cet=yes
6021else
6022 enable_cet=no
6023fi
6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 ;;
6026 yes)
6027 # Check if assembler supports CET.
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h. */
6030
6031int
6032main ()
6033{
6034asm ("setssbsy");
6035 ;
6036 return 0;
6037}
6038_ACEOF
6039if ac_fn_c_try_compile "$LINENO"; then :
6040
6041else
f00f02a3 6042 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
42ea2de2 6043fi
6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 ;;
6046 esac
6047 ;;
6048 *)
6049 enable_cet=no
6050 ;;
6051esac
6052if test x$enable_cet = xyes; then
6726651f 6053 CET_FLAGS="-fcf-protection -mshstk"
5611e648 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6055$as_echo "yes" >&6; }
6056else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
42ea2de2 6059fi
6060
6061AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6062AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6063CFLAGS="$CFLAGS $CET_FLAGS"
6064
6065
d5d92632 6066
6067
6068
6069# Check for symbol versioning (copied from libssp).
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6071$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bbb514dc 6072# Check whether --enable-symvers was given.
6073if test "${enable_symvers+set}" = set; then :
6074 enableval=$enable_symvers; gfortran_use_symver=$enableval
6075else
6076 gfortran_use_symver=yes
6077fi
6078
06e4a265 6079if test "x$gfortran_use_symver" != xno; then
bbb514dc 6080 save_LDFLAGS="$LDFLAGS"
6081 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6082 cat > conftest.map <<EOF
d5d92632 6083FOO_1.0 {
6084 global: *foo*; bar; local: *;
6085};
6086EOF
bbb514dc 6087 if test x$gcc_no_link = xyes; then
f00f02a3 6088 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d5d92632 6089fi
6090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h. */
6092int foo;
6093int
6094main ()
6095{
6096
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101if ac_fn_c_try_link "$LINENO"; then :
6102 gfortran_use_symver=gnu
6103else
6104 gfortran_use_symver=no
6105fi
6106rm -f core conftest.err conftest.$ac_objext \
6107 conftest$ac_exeext conftest.$ac_ext
bbb514dc 6108 if test x$gfortran_use_symver = xno; then
6109 case "$target_os" in
6110 solaris2*)
6111 LDFLAGS="$save_LDFLAGS"
6112 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6113 # Sun ld cannot handle wildcards and treats all entries as undefined.
6114 cat > conftest.map <<EOF
d5d92632 6115FOO_1.0 {
6116 global: foo; local: *;
6117};
6118EOF
bbb514dc 6119 if test x$gcc_no_link = xyes; then
f00f02a3 6120 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d5d92632 6121fi
6122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h. */
6124int foo;
6125int
6126main ()
6127{
6128
6129 ;
6130 return 0;
6131}
6132_ACEOF
6133if ac_fn_c_try_link "$LINENO"; then :
6134 gfortran_use_symver=sun
6135else
6136 gfortran_use_symver=no
6137fi
6138rm -f core conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext conftest.$ac_ext
bbb514dc 6140 ;;
6141 esac
6142 fi
6143 LDFLAGS="$save_LDFLAGS"
d5d92632 6144fi
d5d92632 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6146$as_echo "$gfortran_use_symver" >&6; }
6147 if test "x$gfortran_use_symver" != xno; then
6148 LIBGFOR_USE_SYMVER_TRUE=
6149 LIBGFOR_USE_SYMVER_FALSE='#'
6150else
6151 LIBGFOR_USE_SYMVER_TRUE='#'
6152 LIBGFOR_USE_SYMVER_FALSE=
6153fi
6154
6155 if test "x$gfortran_use_symver" = xgnu; then
6156 LIBGFOR_USE_SYMVER_GNU_TRUE=
6157 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6158else
6159 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6160 LIBGFOR_USE_SYMVER_GNU_FALSE=
6161fi
6162
6163 if test "x$gfortran_use_symver" = xsun; then
6164 LIBGFOR_USE_SYMVER_SUN_TRUE=
6165 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6166else
6167 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6168 LIBGFOR_USE_SYMVER_SUN_FALSE=
6169fi
6170
6171
eb00e55c 6172# For GPU offloading, not everything in libfortran can be supported.
6173# Currently, the only target that has this problem is nvptx. The
6174# following is a (partial) list of features that are unsupportable on
6175# this particular target:
6176# * Constructors
6177# * alloca
6178# * C library support for I/O, with printf as the one notable exception
6179# * C library support for other features such as signal, environment
6180# variables, time functions
6181
51177ee3 6182 if test "x${target_cpu}" = xnvptx \
6183 || test "x${target_cpu}" = xamdgcn; then
eb00e55c 6184 LIBGFOR_MINIMAL_TRUE=
6185 LIBGFOR_MINIMAL_FALSE='#'
6186else
6187 LIBGFOR_MINIMAL_TRUE='#'
6188 LIBGFOR_MINIMAL_FALSE=
6189fi
6190
6191
d5d92632 6192# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6193# similarly to how libstdc++ does it
6194ac_test_CFLAGS="${CFLAGS+set}"
6195ac_save_CFLAGS="$CFLAGS"
6196
6197# Check for -ffunction-sections -fdata-sections
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6199$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6200CFLAGS='-Werror -ffunction-sections -fdata-sections'
6201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h. */
6203
6204int
6205main ()
6206{
6207int foo;
6208 ;
6209 return 0;
6210}
6211_ACEOF
6212if ac_fn_c_try_compile "$LINENO"; then :
6213 ac_fdsections=yes
6214else
6215 ac_fdsections=no
6216fi
6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218if test "$ac_test_CFLAGS" = set; then
6219 CFLAGS="$ac_save_CFLAGS"
6220else
6221 # this is the suspicious part
6222 CFLAGS=""
6223fi
6224if test x"$ac_fdsections" = x"yes"; then
6225 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6226fi
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6228$as_echo "$ac_fdsections" >&6; }
6229
6230
18ce903b 6231# Check linker hardware capability support.
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6233$as_echo_n "checking for a sed that does not truncate output... " >&6; }
f00f02a3 6234if ${ac_cv_path_SED+:} false; then :
d5d92632 6235 $as_echo_n "(cached) " >&6
6236else
18ce903b 6237 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6238 for ac_i in 1 2 3 4 5 6 7; do
6239 ac_script="$ac_script$as_nl$ac_script"
6240 done
6241 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6242 { ac_script=; unset ac_script;}
6243 if test -z "$SED"; then
6244 ac_path_SED_found=false
6245 # Loop through the user's path and test for each of PROGNAME-LIST
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d5d92632 6247for as_dir in $PATH
6248do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
18ce903b 6251 for ac_prog in sed gsed; do
d5d92632 6252 for ac_exec_ext in '' $ac_executable_extensions; do
18ce903b 6253 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 6254 as_fn_executable_p "$ac_path_SED" || continue
18ce903b 6255# Check for GNU ac_path_SED and select it if it is found.
6256 # Check for GNU $ac_path_SED
6257case `"$ac_path_SED" --version 2>&1` in
6258*GNU*)
6259 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6260*)
6261 ac_count=0
6262 $as_echo_n 0123456789 >"conftest.in"
6263 while :
6264 do
6265 cat "conftest.in" "conftest.in" >"conftest.tmp"
6266 mv "conftest.tmp" "conftest.in"
6267 cp "conftest.in" "conftest.nl"
6268 $as_echo '' >> "conftest.nl"
6269 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6271 as_fn_arith $ac_count + 1 && ac_count=$as_val
6272 if test $ac_count -gt ${ac_path_SED_max-0}; then
6273 # Best one so far, save it but keep looking for a better one
6274 ac_cv_path_SED="$ac_path_SED"
6275 ac_path_SED_max=$ac_count
6276 fi
6277 # 10*(2^10) chars as input seems more than enough
6278 test $ac_count -gt 10 && break
d5d92632 6279 done
18ce903b 6280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6281esac
d5d92632 6282
18ce903b 6283 $ac_path_SED_found && break 3
6284 done
6285 done
d5d92632 6286 done
6287IFS=$as_save_IFS
18ce903b 6288 if test -z "$ac_cv_path_SED"; then
f00f02a3 6289 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
18ce903b 6290 fi
d5d92632 6291else
18ce903b 6292 ac_cv_path_SED=$SED
d5d92632 6293fi
6294
d5d92632 6295fi
18ce903b 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6297$as_echo "$ac_cv_path_SED" >&6; }
6298 SED="$ac_cv_path_SED"
6299 rm -f conftest.sed
d5d92632 6300
18ce903b 6301test -z "$SED" && SED=sed
6302Xsed="$SED -e 1s/^X//"
d5d92632 6303
d5d92632 6304
6305
18ce903b 6306
6307
6308
6309
6310
6311
6312
6313
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6315$as_echo_n "checking for fgrep... " >&6; }
f00f02a3 6316if ${ac_cv_path_FGREP+:} false; then :
d5d92632 6317 $as_echo_n "(cached) " >&6
6318else
18ce903b 6319 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6320 then ac_cv_path_FGREP="$GREP -F"
6321 else
6322 if test -z "$FGREP"; then
6323 ac_path_FGREP_found=false
6324 # Loop through the user's path and test for each of PROGNAME-LIST
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
d5d92632 6327do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
18ce903b 6330 for ac_prog in fgrep; do
d5d92632 6331 for ac_exec_ext in '' $ac_executable_extensions; do
18ce903b 6332 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 6333 as_fn_executable_p "$ac_path_FGREP" || continue
18ce903b 6334# Check for GNU ac_path_FGREP and select it if it is found.
6335 # Check for GNU $ac_path_FGREP
6336case `"$ac_path_FGREP" --version 2>&1` in
6337*GNU*)
6338 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6339*)
6340 ac_count=0
6341 $as_echo_n 0123456789 >"conftest.in"
6342 while :
6343 do
6344 cat "conftest.in" "conftest.in" >"conftest.tmp"
6345 mv "conftest.tmp" "conftest.in"
6346 cp "conftest.in" "conftest.nl"
6347 $as_echo 'FGREP' >> "conftest.nl"
6348 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6350 as_fn_arith $ac_count + 1 && ac_count=$as_val
6351 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6352 # Best one so far, save it but keep looking for a better one
6353 ac_cv_path_FGREP="$ac_path_FGREP"
6354 ac_path_FGREP_max=$ac_count
6355 fi
6356 # 10*(2^10) chars as input seems more than enough
6357 test $ac_count -gt 10 && break
6358 done
6359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6360esac
6361
6362 $ac_path_FGREP_found && break 3
6363 done
6364 done
d5d92632 6365 done
6366IFS=$as_save_IFS
18ce903b 6367 if test -z "$ac_cv_path_FGREP"; then
f00f02a3 6368 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
18ce903b 6369 fi
6370else
6371 ac_cv_path_FGREP=$FGREP
6372fi
d5d92632 6373
18ce903b 6374 fi
d5d92632 6375fi
18ce903b 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6377$as_echo "$ac_cv_path_FGREP" >&6; }
6378 FGREP="$ac_cv_path_FGREP"
542f9784 6379
6380
18ce903b 6381test -z "$GREP" && GREP=grep
542f9784 6382
6383
6384
6385
4ee9c684 6386
542f9784 6387
6388
6389
6390
6391
6392
6393
e6408286 6394
e6408286 6395
e6408286 6396
e6408286 6397
e6408286 6398
6399ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6400ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6401ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6402
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6404$as_echo_n "checking how to print strings... " >&6; }
6405# Test print first, because it will be a builtin if present.
6406if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6407 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6408 ECHO='print -r --'
6409elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6410 ECHO='printf %s\n'
6411else
6412 # Use this function as a fallback that always works.
6413 func_fallback_echo ()
6414 {
6415 eval 'cat <<_LTECHO_EOF
6416$1
6417_LTECHO_EOF'
6418 }
6419 ECHO='func_fallback_echo'
6420fi
6421
6422# func_echo_all arg...
6423# Invoke $ECHO with all args, space-separated.
6424func_echo_all ()
6425{
6426 $ECHO ""
6427}
6428
6429case "$ECHO" in
6430 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6431$as_echo "printf" >&6; } ;;
6432 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6433$as_echo "print -r" >&6; } ;;
6434 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6435$as_echo "cat" >&6; } ;;
6436esac
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
d5d92632 6449
6450
cd9a469c 6451
cd9a469c 6452
18ce903b 6453# Check whether --with-gnu-ld was given.
6454if test "${with_gnu_ld+set}" = set; then :
6455 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6456else
6457 with_gnu_ld=no
542f9784 6458fi
d5d92632 6459
18ce903b 6460ac_prog=ld
6461if test "$GCC" = yes; then
6462 # Check if gcc -print-prog-name=ld gives a path.
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6464$as_echo_n "checking for ld used by $CC... " >&6; }
6465 case $host in
6466 *-*-mingw*)
6467 # gcc leaves a trailing carriage return which upsets mingw
6468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6469 *)
6470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6471 esac
6472 case $ac_prog in
6473 # Accept absolute paths.
6474 [\\/]* | ?:[\\/]*)
6475 re_direlt='/[^/][^/]*/\.\./'
6476 # Canonicalize the pathname of ld
6477 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6478 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6479 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6480 done
6481 test -z "$LD" && LD="$ac_prog"
6482 ;;
6483 "")
6484 # If it fails, then pretend we aren't using GCC.
6485 ac_prog=ld
6486 ;;
6487 *)
6488 # If it is relative, then search for the first ld in PATH.
6489 with_gnu_ld=unknown
6490 ;;
6491 esac
6492elif test "$with_gnu_ld" = yes; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6494$as_echo_n "checking for GNU ld... " >&6; }
6495else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6497$as_echo_n "checking for non-GNU ld... " >&6; }
6498fi
f00f02a3 6499if ${lt_cv_path_LD+:} false; then :
18ce903b 6500 $as_echo_n "(cached) " >&6
6501else
6502 if test -z "$LD"; then
6503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6504 for ac_dir in $PATH; do
6505 IFS="$lt_save_ifs"
6506 test -z "$ac_dir" && ac_dir=.
6507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6508 lt_cv_path_LD="$ac_dir/$ac_prog"
6509 # Check to see if the program is GNU ld. I'd rather use --version,
6510 # but apparently some variants of GNU ld only accept -v.
6511 # Break only if it was the GNU/non-GNU ld that we prefer.
6512 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6513 *GNU* | *'with BFD'*)
6514 test "$with_gnu_ld" != no && break
6515 ;;
6516 *)
6517 test "$with_gnu_ld" != yes && break
6518 ;;
6519 esac
6520 fi
6521 done
6522 IFS="$lt_save_ifs"
6523else
6524 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6525fi
6526fi
6527
6528LD="$lt_cv_path_LD"
6529if test -n "$LD"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6531$as_echo "$LD" >&6; }
6532else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534$as_echo "no" >&6; }
6535fi
f00f02a3 6536test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18ce903b 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6538$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
f00f02a3 6539if ${lt_cv_prog_gnu_ld+:} false; then :
18ce903b 6540 $as_echo_n "(cached) " >&6
6541else
6542 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6543case `$LD -v 2>&1 </dev/null` in
6544*GNU* | *'with BFD'*)
6545 lt_cv_prog_gnu_ld=yes
6546 ;;
6547*)
6548 lt_cv_prog_gnu_ld=no
6549 ;;
6550esac
6551fi
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6553$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6554with_gnu_ld=$lt_cv_prog_gnu_ld
d5d92632 6555
6556
6557
6558
6559
6560
6561
6562
542f9784 6563
6564
18ce903b 6565 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6566
6567
6568 ac_save_LDFLAGS="$LDFLAGS"
6569 LDFLAGS="$LFLAGS -mclear-hwcap"
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6572$as_echo_n "checking for -mclear-hwcap... " >&6; }
6573 if test x$gcc_no_link = xyes; then
f00f02a3 6574 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18ce903b 6575fi
6576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h. */
6578
6579int
6580main ()
6581{
6582return 0;
6583 ;
6584 return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_link "$LINENO"; then :
6588 ac_hwcap_ldflags=yes
6589else
6590 ac_hwcap_ldflags=no
6591fi
6592rm -f core conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext conftest.$ac_ext
6594 if test "$ac_hwcap_ldflags" = "yes"; then
6595 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6598$as_echo "$ac_hwcap_ldflags" >&6; }
6599
6600 LDFLAGS="$ac_save_LDFLAGS"
6601
6602
6603
6604 if test $ac_hwcap_ldflags != no; then
6605 HAVE_HWCAP_TRUE=
6606 HAVE_HWCAP_FALSE='#'
6607else
6608 HAVE_HWCAP_TRUE='#'
6609 HAVE_HWCAP_FALSE=
6610fi
6611
6612
6613
6614# Find other programs we need.
6615if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6617set dummy ${ac_tool_prefix}as; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6620if ${ac_cv_prog_AS+:} false; then :
cd9a469c 6621 $as_echo_n "(cached) " >&6
82eaf560 6622else
18ce903b 6623 if test -n "$AS"; then
6624 ac_cv_prog_AS="$AS" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
cd9a469c 6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
cd9a469c 6631 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6633 ac_cv_prog_AS="${ac_tool_prefix}as"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637done
cd9a469c 6638 done
18ce903b 6639IFS=$as_save_IFS
6640
6641fi
6642fi
6643AS=$ac_cv_prog_AS
6644if test -n "$AS"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6646$as_echo "$AS" >&6; }
6647else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
6651
6652
6653fi
6654if test -z "$ac_cv_prog_AS"; then
6655 ac_ct_AS=$AS
6656 # Extract the first word of "as", so it can be a program name with args.
6657set dummy as; ac_word=$2
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6660if ${ac_cv_prog_ac_ct_AS+:} false; then :
18ce903b 6661 $as_echo_n "(cached) " >&6
6662else
6663 if test -n "$ac_ct_AS"; then
6664 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6673 ac_cv_prog_ac_ct_AS="as"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678 done
6679IFS=$as_save_IFS
6680
6681fi
6682fi
6683ac_ct_AS=$ac_cv_prog_ac_ct_AS
6684if test -n "$ac_ct_AS"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6686$as_echo "$ac_ct_AS" >&6; }
6687else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689$as_echo "no" >&6; }
6690fi
6691
6692 if test "x$ac_ct_AS" = x; then
6693 AS=""
6694 else
6695 case $cross_compiling:$ac_tool_warned in
6696yes:)
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699ac_tool_warned=yes ;;
cd9a469c 6700esac
18ce903b 6701 AS=$ac_ct_AS
6702 fi
6703else
6704 AS="$ac_cv_prog_AS"
6705fi
cd9a469c 6706
18ce903b 6707if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6709set dummy ${ac_tool_prefix}ar; ac_word=$2
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6712if ${ac_cv_prog_AR+:} false; then :
18ce903b 6713 $as_echo_n "(cached) " >&6
6714else
6715 if test -n "$AR"; then
6716 ac_cv_prog_AR="$AR" # Let the user override the test.
6717else
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6725 ac_cv_prog_AR="${ac_tool_prefix}ar"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729done
cd9a469c 6730 done
18ce903b 6731IFS=$as_save_IFS
6732
6733fi
6734fi
6735AR=$ac_cv_prog_AR
6736if test -n "$AR"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6738$as_echo "$AR" >&6; }
6739else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741$as_echo "no" >&6; }
6742fi
6743
6744
6745fi
6746if test -z "$ac_cv_prog_AR"; then
6747 ac_ct_AR=$AR
6748 # Extract the first word of "ar", so it can be a program name with args.
6749set dummy ar; ac_word=$2
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6752if ${ac_cv_prog_ac_ct_AR+:} false; then :
18ce903b 6753 $as_echo_n "(cached) " >&6
6754else
6755 if test -n "$ac_ct_AR"; then
6756 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6765 ac_cv_prog_ac_ct_AR="ar"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769done
6770 done
6771IFS=$as_save_IFS
6772
6773fi
6774fi
6775ac_ct_AR=$ac_cv_prog_ac_ct_AR
6776if test -n "$ac_ct_AR"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6778$as_echo "$ac_ct_AR" >&6; }
6779else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781$as_echo "no" >&6; }
6782fi
6783
6784 if test "x$ac_ct_AR" = x; then
6785 AR=""
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788yes:)
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791ac_tool_warned=yes ;;
6792esac
6793 AR=$ac_ct_AR
6794 fi
6795else
6796 AR="$ac_cv_prog_AR"
6797fi
6798
6799if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6801set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6804if ${ac_cv_prog_RANLIB+:} false; then :
18ce903b 6805 $as_echo_n "(cached) " >&6
6806else
6807 if test -n "$RANLIB"; then
6808 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6809else
6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6817 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821done
6822 done
6823IFS=$as_save_IFS
6824
6825fi
6826fi
6827RANLIB=$ac_cv_prog_RANLIB
6828if test -n "$RANLIB"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6830$as_echo "$RANLIB" >&6; }
6831else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833$as_echo "no" >&6; }
6834fi
6835
6836
6837fi
6838if test -z "$ac_cv_prog_RANLIB"; then
6839 ac_ct_RANLIB=$RANLIB
6840 # Extract the first word of "ranlib", so it can be a program name with args.
6841set dummy ranlib; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6844if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18ce903b 6845 $as_echo_n "(cached) " >&6
6846else
6847 if test -n "$ac_ct_RANLIB"; then
6848 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18ce903b 6857 ac_cv_prog_ac_ct_RANLIB="ranlib"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
cd9a469c 6862 done
6863IFS=$as_save_IFS
18ce903b 6864
6865fi
6866fi
6867ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6868if test -n "$ac_ct_RANLIB"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6870$as_echo "$ac_ct_RANLIB" >&6; }
cd9a469c 6871else
18ce903b 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
542f9784 6874fi
cd9a469c 6875
18ce903b 6876 if test "x$ac_ct_RANLIB" = x; then
6877 RANLIB="ranlib-not-found-in-path-error"
6878 else
6879 case $cross_compiling:$ac_tool_warned in
6880yes:)
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883ac_tool_warned=yes ;;
6884esac
6885 RANLIB=$ac_ct_RANLIB
6886 fi
6887else
6888 RANLIB="$ac_cv_prog_RANLIB"
cd9a469c 6889fi
542f9784 6890
18ce903b 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6892$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6893set x ${MAKE-make}
6894ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
f00f02a3 6895if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
18ce903b 6896 $as_echo_n "(cached) " >&6
6897else
6898 cat >conftest.make <<\_ACEOF
6899SHELL = /bin/sh
6900all:
6901 @echo '@@@%%%=$(MAKE)=@@@%%%'
6902_ACEOF
f00f02a3 6903# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18ce903b 6904case `${MAKE-make} -f conftest.make 2>/dev/null` in
6905 *@@@%%%=?*=@@@%%%*)
6906 eval ac_cv_prog_make_${ac_make}_set=yes;;
6907 *)
6908 eval ac_cv_prog_make_${ac_make}_set=no;;
6909esac
6910rm -f conftest.make
6911fi
6912if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6914$as_echo "yes" >&6; }
6915 SET_MAKE=
6916else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918$as_echo "no" >&6; }
6919 SET_MAKE="MAKE=${MAKE-make}"
6920fi
542f9784 6921
6922
6923
18ce903b 6924# Configure libtool
6925#AC_MSG_NOTICE([====== Starting libtool configuration])
6926enable_dlopen=yes
542f9784 6927
6928
6929
18ce903b 6930case `pwd` in
6931 *\ * | *\ *)
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6933$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6934esac
542f9784 6935
6936
6937
18ce903b 6938macro_version='2.2.7a'
6939macro_revision='1.3134'
542f9784 6940
6941
6942
6943
6944
6945
6946
6947
cd9a469c 6948
90973b19 6949
90973b19 6950
6951
90973b19 6952
18ce903b 6953ltmain="$ac_aux_dir/ltmain.sh"
542f9784 6954
18ce903b 6955# Backslashify metacharacters that are still active within
6956# double-quoted strings.
6957sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
542f9784 6958
18ce903b 6959# Same as above, but do not quote variable references.
6960double_quote_subst='s/\(["`\\]\)/\\\1/g'
542f9784 6961
18ce903b 6962# Sed substitution to delay expansion of an escaped shell variable in a
6963# double_quote_subst'ed string.
6964delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
542f9784 6965
18ce903b 6966# Sed substitution to delay expansion of an escaped single quote.
6967delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
542f9784 6968
18ce903b 6969# Sed substitution to avoid accidental globbing in evaled expressions
6970no_glob_subst='s/\*/\\\*/g'
542f9784 6971
cd9a469c 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6973$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
f00f02a3 6974if ${lt_cv_path_NM+:} false; then :
cd9a469c 6975 $as_echo_n "(cached) " >&6
90973b19 6976else
6977 if test -n "$NM"; then
6978 # Let the user override the test.
6979 lt_cv_path_NM="$NM"
6980else
542f9784 6981 lt_nm_to_check="${ac_tool_prefix}nm"
6982 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6983 lt_nm_to_check="$lt_nm_to_check nm"
6984 fi
6985 for lt_tmp_nm in $lt_nm_to_check; do
6986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6987 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6988 IFS="$lt_save_ifs"
6989 test -z "$ac_dir" && ac_dir=.
6990 tmp_nm="$ac_dir/$lt_tmp_nm"
6991 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6992 # Check to see if the nm accepts a BSD-compat flag.
6993 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6994 # nm: unknown option "B" ignored
6995 # Tru64's nm complains that /dev/null is an invalid object file
6996 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6997 */dev/null* | *'Invalid file or object type'*)
6998 lt_cv_path_NM="$tmp_nm -B"
6999 break
7000 ;;
7001 *)
7002 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7003 */dev/null*)
7004 lt_cv_path_NM="$tmp_nm -p"
7005 break
7006 ;;
7007 *)
7008 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7009 continue # so that we can try to find one that supports BSD flags
7010 ;;
7011 esac
7012 ;;
7013 esac
7014 fi
7015 done
7016 IFS="$lt_save_ifs"
7017 done
7018 : ${lt_cv_path_NM=no}
7019fi
7020fi
cd9a469c 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7022$as_echo "$lt_cv_path_NM" >&6; }
542f9784 7023if test "$lt_cv_path_NM" != "no"; then
7024 NM="$lt_cv_path_NM"
7025else
7026 # Didn't find any BSD compatible name lister, look for dumpbin.
e6408286 7027 if test -n "$DUMPBIN"; then :
7028 # Let the user override the test.
7029 else
7030 if test -n "$ac_tool_prefix"; then
7031 for ac_prog in dumpbin "link -dump"
542f9784 7032 do
7033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7034set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7037if ${ac_cv_prog_DUMPBIN+:} false; then :
cd9a469c 7038 $as_echo_n "(cached) " >&6
542f9784 7039else
7040 if test -n "$DUMPBIN"; then
7041 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
cd9a469c 7048 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7050 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cd9a469c 7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7052 break 2
7053 fi
7054done
cd9a469c 7055 done
7056IFS=$as_save_IFS
542f9784 7057
7058fi
7059fi
7060DUMPBIN=$ac_cv_prog_DUMPBIN
7061if test -n "$DUMPBIN"; then
cd9a469c 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7063$as_echo "$DUMPBIN" >&6; }
542f9784 7064else
cd9a469c 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
542f9784 7067fi
7068
cd9a469c 7069
542f9784 7070 test -n "$DUMPBIN" && break
7071 done
7072fi
7073if test -z "$DUMPBIN"; then
7074 ac_ct_DUMPBIN=$DUMPBIN
e6408286 7075 for ac_prog in dumpbin "link -dump"
542f9784 7076do
7077 # Extract the first word of "$ac_prog", so it can be a program name with args.
7078set dummy $ac_prog; ac_word=$2
cd9a469c 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7081if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cd9a469c 7082 $as_echo_n "(cached) " >&6
542f9784 7083else
7084 if test -n "$ac_ct_DUMPBIN"; then
7085 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
cd9a469c 7092 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7094 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cd9a469c 7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7096 break 2
7097 fi
7098done
cd9a469c 7099 done
7100IFS=$as_save_IFS
542f9784 7101
7102fi
7103fi
7104ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7105if test -n "$ac_ct_DUMPBIN"; then
cd9a469c 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7107$as_echo "$ac_ct_DUMPBIN" >&6; }
542f9784 7108else
cd9a469c 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110$as_echo "no" >&6; }
542f9784 7111fi
7112
cd9a469c 7113
542f9784 7114 test -n "$ac_ct_DUMPBIN" && break
7115done
542f9784 7116
cd9a469c 7117 if test "x$ac_ct_DUMPBIN" = x; then
7118 DUMPBIN=":"
7119 else
7120 case $cross_compiling:$ac_tool_warned in
7121yes:)
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124ac_tool_warned=yes ;;
7125esac
7126 DUMPBIN=$ac_ct_DUMPBIN
7127 fi
90973b19 7128fi
542f9784 7129
e6408286 7130 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7131 *COFF*)
7132 DUMPBIN="$DUMPBIN -symbols"
7133 ;;
7134 *)
7135 DUMPBIN=:
7136 ;;
7137 esac
7138 fi
542f9784 7139
7140 if test "$DUMPBIN" != ":"; then
7141 NM="$DUMPBIN"
7142 fi
90973b19 7143fi
542f9784 7144test -z "$NM" && NM=nm
7145
7146
90973b19 7147
542f9784 7148
7149
7150
cd9a469c 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7152$as_echo_n "checking the name lister ($NM) interface... " >&6; }
f00f02a3 7153if ${lt_cv_nm_interface+:} false; then :
cd9a469c 7154 $as_echo_n "(cached) " >&6
542f9784 7155else
7156 lt_cv_nm_interface="BSD nm"
7157 echo "int some_variable = 0;" > conftest.$ac_ext
e6408286 7158 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
542f9784 7159 (eval "$ac_compile" 2>conftest.err)
7160 cat conftest.err >&5
e6408286 7161 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 7162 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7163 cat conftest.err >&5
e6408286 7164 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
542f9784 7165 cat conftest.out >&5
7166 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7167 lt_cv_nm_interface="MS dumpbin"
7168 fi
7169 rm -f conftest*
7170fi
cd9a469c 7171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7172$as_echo "$lt_cv_nm_interface" >&6; }
90973b19 7173
cd9a469c 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7175$as_echo_n "checking whether ln -s works... " >&6; }
90973b19 7176LN_S=$as_ln_s
7177if test "$LN_S" = "ln -s"; then
cd9a469c 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7179$as_echo "yes" >&6; }
90973b19 7180else
cd9a469c 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7182$as_echo "no, using $LN_S" >&6; }
90973b19 7183fi
7184
542f9784 7185# find the maximum length of command line arguments
cd9a469c 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7187$as_echo_n "checking the maximum length of command line arguments... " >&6; }
f00f02a3 7188if ${lt_cv_sys_max_cmd_len+:} false; then :
cd9a469c 7189 $as_echo_n "(cached) " >&6
542f9784 7190else
7191 i=0
7192 teststring="ABCD"
7193
7194 case $build_os in
7195 msdosdjgpp*)
7196 # On DJGPP, this test can blow up pretty badly due to problems in libc
7197 # (any single argument exceeding 2000 bytes causes a buffer overrun
7198 # during glob expansion). Even if it were fixed, the result of this
7199 # check would be larger than it should be.
7200 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7201 ;;
7202
7203 gnu*)
7204 # Under GNU Hurd, this test is not required because there is
7205 # no limit to the length of command line arguments.
7206 # Libtool will interpret -1 as no limit whatsoever
7207 lt_cv_sys_max_cmd_len=-1;
7208 ;;
7209
00aafda4 7210 cygwin* | mingw* | cegcc*)
542f9784 7211 # On Win9x/ME, this test blows up -- it succeeds, but takes
7212 # about 5 minutes as the teststring grows exponentially.
7213 # Worse, since 9x/ME are not pre-emptively multitasking,
7214 # you end up with a "frozen" computer, even though with patience
7215 # the test eventually succeeds (with a max line length of 256k).
7216 # Instead, let's just punt: use the minimum linelength reported by
7217 # all of the supported platforms: 8192 (on NT/2K/XP).
7218 lt_cv_sys_max_cmd_len=8192;
7219 ;;
7220
e6408286 7221 mint*)
7222 # On MiNT this can take a long time and run out of memory.
7223 lt_cv_sys_max_cmd_len=8192;
7224 ;;
7225
542f9784 7226 amigaos*)
7227 # On AmigaOS with pdksh, this test takes hours, literally.
7228 # So we just punt and use a minimum line length of 8192.
7229 lt_cv_sys_max_cmd_len=8192;
7230 ;;
7231
7232 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7233 # This has been around since 386BSD, at least. Likely further.
7234 if test -x /sbin/sysctl; then
7235 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7236 elif test -x /usr/sbin/sysctl; then
7237 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7238 else
7239 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7240 fi
7241 # And add a safety zone
7242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7244 ;;
7245
7246 interix*)
7247 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7248 lt_cv_sys_max_cmd_len=196608
7249 ;;
7250
7251 osf*)
7252 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7253 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7254 # nice to cause kernel panics so lets avoid the loop below.
7255 # First set a reasonable default.
7256 lt_cv_sys_max_cmd_len=16384
7257 #
7258 if test -x /sbin/sysconfig; then
7259 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7260 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7261 esac
7262 fi
7263 ;;
7264 sco3.2v5*)
7265 lt_cv_sys_max_cmd_len=102400
7266 ;;
7267 sysv5* | sco5v6* | sysv4.2uw2*)
7268 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7269 if test -n "$kargmax"; then
7270 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7271 else
7272 lt_cv_sys_max_cmd_len=32768
7273 fi
7274 ;;
7275 *)
00aafda4 7276 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7277 if test -n "$lt_cv_sys_max_cmd_len"; then
07c46636 7278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7280 else
7281 # Make teststring a little bigger before we do anything with it.
7282 # a 1K string should be a reasonable start.
7283 for i in 1 2 3 4 5 6 7 8 ; do
7284 teststring=$teststring$teststring
7285 done
7286 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7287 # If test is not a shell built-in, we'll probably end up computing a
7288 # maximum length that is only half of the actual maximum length, but
7289 # we can't tell.
e6408286 7290 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7291 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
07c46636 7292 test $i != 17 # 1/2 MB should be enough
7293 do
7294 i=`expr $i + 1`
7295 teststring=$teststring$teststring
7296 done
7297 # Only check the string length outside the loop.
7298 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7299 teststring=
7300 # Add a significant safety factor because C++ compilers can tack on
7301 # massive amounts of additional arguments before passing them to the
7302 # linker. It appears as though 1/2 is a usable value.
7303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7304 fi
542f9784 7305 ;;
7306 esac
7307
7308fi
7309
7310if test -n $lt_cv_sys_max_cmd_len ; then
cd9a469c 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7312$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
542f9784 7313else
cd9a469c 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7315$as_echo "none" >&6; }
542f9784 7316fi
7317max_cmd_len=$lt_cv_sys_max_cmd_len
7318
7319
7320
7321
7322
7323
542f9784 7324: ${CP="cp -f"}
7325: ${MV="mv -f"}
7326: ${RM="rm -f"}
7327
cd9a469c 7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7329$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
542f9784 7330# Try some XSI features
7331xsi_shell=no
7332( _lt_dummy="a/b/c"
7333 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
00aafda4 7334 = c,a/b,, \
7335 && eval 'test $(( 1 + 1 )) -eq 2 \
7336 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
542f9784 7337 && xsi_shell=yes
cd9a469c 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7339$as_echo "$xsi_shell" >&6; }
542f9784 7340
7341
cd9a469c 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7343$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
542f9784 7344lt_shell_append=no
7345( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7346 >/dev/null 2>&1 \
7347 && lt_shell_append=yes
cd9a469c 7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7349$as_echo "$lt_shell_append" >&6; }
542f9784 7350
7351
7352if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7353 lt_unset=unset
7354else
7355 lt_unset=false
7356fi
7357
7358
7359
7360
7361
7362# test EBCDIC or ASCII
7363case `echo X|tr X '\101'` in
7364 A) # ASCII based system
7365 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7366 lt_SP2NL='tr \040 \012'
7367 lt_NL2SP='tr \015\012 \040\040'
7368 ;;
7369 *) # EBCDIC based system
7370 lt_SP2NL='tr \100 \n'
7371 lt_NL2SP='tr \r\n \100\100'
7372 ;;
7373esac
7374
7375
7376
7377
7378
7379
7380
7381
7382
cd9a469c 7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7384$as_echo_n "checking for $LD option to reload object files... " >&6; }
f00f02a3 7385if ${lt_cv_ld_reload_flag+:} false; then :
cd9a469c 7386 $as_echo_n "(cached) " >&6
542f9784 7387else
7388 lt_cv_ld_reload_flag='-r'
7389fi
cd9a469c 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7391$as_echo "$lt_cv_ld_reload_flag" >&6; }
542f9784 7392reload_flag=$lt_cv_ld_reload_flag
7393case $reload_flag in
7394"" | " "*) ;;
7395*) reload_flag=" $reload_flag" ;;
7396esac
7397reload_cmds='$LD$reload_flag -o $output$reload_objs'
7398case $host_os in
7399 darwin*)
7400 if test "$GCC" = yes; then
7401 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7402 else
7403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7404 fi
7405 ;;
7406esac
7407
7408
7409
7410
7411
7412
7413
7414
7415
00aafda4 7416if test -n "$ac_tool_prefix"; then
7417 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7418set dummy ${ac_tool_prefix}objdump; ac_word=$2
cd9a469c 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7421if ${ac_cv_prog_OBJDUMP+:} false; then :
cd9a469c 7422 $as_echo_n "(cached) " >&6
00aafda4 7423else
7424 if test -n "$OBJDUMP"; then
7425 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7426else
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
cd9a469c 7432 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
00aafda4 7434 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cd9a469c 7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 7436 break 2
7437 fi
7438done
cd9a469c 7439 done
7440IFS=$as_save_IFS
00aafda4 7441
7442fi
7443fi
7444OBJDUMP=$ac_cv_prog_OBJDUMP
7445if test -n "$OBJDUMP"; then
cd9a469c 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7447$as_echo "$OBJDUMP" >&6; }
00aafda4 7448else
cd9a469c 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
00aafda4 7451fi
7452
cd9a469c 7453
00aafda4 7454fi
7455if test -z "$ac_cv_prog_OBJDUMP"; then
7456 ac_ct_OBJDUMP=$OBJDUMP
7457 # Extract the first word of "objdump", so it can be a program name with args.
7458set dummy objdump; ac_word=$2
cd9a469c 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7461if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cd9a469c 7462 $as_echo_n "(cached) " >&6
00aafda4 7463else
7464 if test -n "$ac_ct_OBJDUMP"; then
7465 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7466else
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
cd9a469c 7472 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
00aafda4 7474 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cd9a469c 7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 7476 break 2
7477 fi
7478done
cd9a469c 7479 done
7480IFS=$as_save_IFS
00aafda4 7481
00aafda4 7482fi
7483fi
7484ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7485if test -n "$ac_ct_OBJDUMP"; then
cd9a469c 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7487$as_echo "$ac_ct_OBJDUMP" >&6; }
00aafda4 7488else
cd9a469c 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490$as_echo "no" >&6; }
00aafda4 7491fi
7492
cd9a469c 7493 if test "x$ac_ct_OBJDUMP" = x; then
7494 OBJDUMP="false"
7495 else
7496 case $cross_compiling:$ac_tool_warned in
7497yes:)
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500ac_tool_warned=yes ;;
7501esac
7502 OBJDUMP=$ac_ct_OBJDUMP
7503 fi
00aafda4 7504else
7505 OBJDUMP="$ac_cv_prog_OBJDUMP"
7506fi
7507
7508test -z "$OBJDUMP" && OBJDUMP=objdump
7509
7510
7511
7512
7513
7514
7515
7516
542f9784 7517
cd9a469c 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7519$as_echo_n "checking how to recognize dependent libraries... " >&6; }
f00f02a3 7520if ${lt_cv_deplibs_check_method+:} false; then :
cd9a469c 7521 $as_echo_n "(cached) " >&6
90973b19 7522else
7523 lt_cv_file_magic_cmd='$MAGIC_CMD'
7524lt_cv_file_magic_test_file=
7525lt_cv_deplibs_check_method='unknown'
7526# Need to set the preceding variable on all platforms that support
7527# interlibrary dependencies.
7528# 'none' -- dependencies not supported.
7529# `unknown' -- same as none, but documents that we really don't know.
7530# 'pass_all' -- all dependencies passed with no checks.
7531# 'test_compile' -- check by making test program.
542f9784 7532# 'file_magic [[regex]]' -- check by looking for files in library path
7533# which responds to the $file_magic_cmd with a given extended regex.
90973b19 7534# If you have `file' or equivalent on your system and you're not sure
7535# whether `pass_all' will *always* work, you probably want this one.
7536
7537case $host_os in
21e07d2f 7538aix[4-9]*)
90973b19 7539 lt_cv_deplibs_check_method=pass_all
7540 ;;
7541
7542beos*)
7543 lt_cv_deplibs_check_method=pass_all
7544 ;;
7545
542f9784 7546bsdi[45]*)
90973b19 7547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7548 lt_cv_file_magic_cmd='/usr/bin/file -L'
7549 lt_cv_file_magic_test_file=/shlib/libc.so
7550 ;;
7551
542f9784 7552cygwin*)
7553 # func_win32_libid is a shell function defined in ltmain.sh
7554 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7555 lt_cv_file_magic_cmd='func_win32_libid'
7556 ;;
7557
7558mingw* | pw32*)
7559 # Base MSYS/MinGW do not provide the 'file' command needed by
7560 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7561 # unless we find 'file', for example because we are cross-compiling.
e6408286 7562 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7563 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
542f9784 7564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7565 lt_cv_file_magic_cmd='func_win32_libid'
7566 else
7567 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7568 lt_cv_file_magic_cmd='$OBJDUMP -f'
7569 fi
90973b19 7570 ;;
7571
e6408286 7572cegcc*)
00aafda4 7573 # use the weaker test based on 'objdump'. See mingw*.
7574 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7575 lt_cv_file_magic_cmd='$OBJDUMP -f'
7576 ;;
7577
90973b19 7578darwin* | rhapsody*)
90973b19 7579 lt_cv_deplibs_check_method=pass_all
7580 ;;
7581
542f9784 7582freebsd* | dragonfly*)
7583 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
90973b19 7584 case $host_cpu in
7585 i*86 )
7586 # Not sure whether the presence of OpenBSD here was a mistake.
7587 # Let's accept both of them until this is cleared up.
542f9784 7588 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
90973b19 7589 lt_cv_file_magic_cmd=/usr/bin/file
7590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7591 ;;
7592 esac
7593 else
7594 lt_cv_deplibs_check_method=pass_all
7595 fi
7596 ;;
7597
7598gnu*)
7599 lt_cv_deplibs_check_method=pass_all
7600 ;;
7601
e6408286 7602haiku*)
7603 lt_cv_deplibs_check_method=pass_all
7604 ;;
7605
542f9784 7606hpux10.20* | hpux11*)
7607 lt_cv_file_magic_cmd=/usr/bin/file
90973b19 7608 case $host_cpu in
90973b19 7609 ia64*)
7610 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
90973b19 7611 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7612 ;;
542f9784 7613 hppa*64*)
e6408286 7614 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]'
542f9784 7615 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
90973b19 7616 ;;
7617 *)
e6408286 7618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
542f9784 7619 lt_cv_file_magic_test_file=/usr/lib/libc.sl
90973b19 7620 ;;
7621 esac
542f9784 7622 ;;
7623
7624interix[3-9]*)
7625 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7627 ;;
7628
7629irix5* | irix6* | nonstopux*)
7630 case $LD in
7631 *-32|*"-32 ") libmagic=32-bit;;
7632 *-n32|*"-n32 ") libmagic=N32;;
7633 *-64|*"-64 ") libmagic=64-bit;;
7634 *) libmagic=never-match;;
7635 esac
90973b19 7636 lt_cv_deplibs_check_method=pass_all
7637 ;;
7638
7639# This must be Linux ELF.
9af964d4 7640linux* | k*bsd*-gnu | kopensolaris*-gnu)
7f93fe7a 7641 lt_cv_deplibs_check_method=pass_all
90973b19 7642 ;;
7643
542f9784 7644netbsd*)
7645 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
90973b19 7647 else
542f9784 7648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
90973b19 7649 fi
7650 ;;
7651
542f9784 7652newos6*)
90973b19 7653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7654 lt_cv_file_magic_cmd=/usr/bin/file
7655 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7656 ;;
7657
542f9784 7658*nto* | *qnx*)
7659 lt_cv_deplibs_check_method=pass_all
7660 ;;
7661
7662openbsd*)
7663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7665 else
7666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7667 fi
7668 ;;
7669
90973b19 7670osf3* | osf4* | osf5*)
90973b19 7671 lt_cv_deplibs_check_method=pass_all
7672 ;;
7673
542f9784 7674rdos*)
90973b19 7675 lt_cv_deplibs_check_method=pass_all
7676 ;;
7677
7678solaris*)
7679 lt_cv_deplibs_check_method=pass_all
90973b19 7680 ;;
7681
542f9784 7682sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
90973b19 7683 lt_cv_deplibs_check_method=pass_all
7684 ;;
7685
542f9784 7686sysv4 | sysv4.3*)
90973b19 7687 case $host_vendor in
90973b19 7688 motorola)
7689 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]'
7690 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7691 ;;
542f9784 7692 ncr)
7693 lt_cv_deplibs_check_method=pass_all
7694 ;;
7695 sequent)
7696 lt_cv_file_magic_cmd='/bin/file'
7697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7698 ;;
7699 sni)
7700 lt_cv_file_magic_cmd='/bin/file'
7701 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7702 lt_cv_file_magic_test_file=/lib/libc.so
7703 ;;
7704 siemens)
7705 lt_cv_deplibs_check_method=pass_all
7706 ;;
7707 pc)
7708 lt_cv_deplibs_check_method=pass_all
7709 ;;
90973b19 7710 esac
7711 ;;
542f9784 7712
7713tpf*)
7714 lt_cv_deplibs_check_method=pass_all
7715 ;;
90973b19 7716esac
7717
7718fi
cd9a469c 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7720$as_echo "$lt_cv_deplibs_check_method" >&6; }
90973b19 7721file_magic_cmd=$lt_cv_file_magic_cmd
7722deplibs_check_method=$lt_cv_deplibs_check_method
542f9784 7723test -z "$deplibs_check_method" && deplibs_check_method=unknown
90973b19 7724
7725
7726
7727
90973b19 7728
90973b19 7729
90973b19 7730
90973b19 7731
4ee9c684 7732
4ee9c684 7733
4ee9c684 7734
4ee9c684 7735
90973b19 7736if test -n "$ac_tool_prefix"; then
542f9784 7737 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7738set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7741if ${ac_cv_prog_AR+:} false; then :
cd9a469c 7742 $as_echo_n "(cached) " >&6
4ee9c684 7743else
542f9784 7744 if test -n "$AR"; then
7745 ac_cv_prog_AR="$AR" # Let the user override the test.
90973b19 7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
cd9a469c 7752 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7754 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7756 break 2
7757 fi
7758done
cd9a469c 7759 done
7760IFS=$as_save_IFS
4ee9c684 7761
90973b19 7762fi
7763fi
542f9784 7764AR=$ac_cv_prog_AR
7765if test -n "$AR"; then
cd9a469c 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7767$as_echo "$AR" >&6; }
90973b19 7768else
cd9a469c 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
4ee9c684 7771fi
7772
cd9a469c 7773
90973b19 7774fi
542f9784 7775if test -z "$ac_cv_prog_AR"; then
7776 ac_ct_AR=$AR
7777 # Extract the first word of "ar", so it can be a program name with args.
7778set dummy ar; ac_word=$2
cd9a469c 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7781if ${ac_cv_prog_ac_ct_AR+:} false; then :
cd9a469c 7782 $as_echo_n "(cached) " >&6
90973b19 7783else
542f9784 7784 if test -n "$ac_ct_AR"; then
7785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
90973b19 7786else
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
cd9a469c 7792 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7794 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7796 break 2
7797 fi
7798done
cd9a469c 7799 done
7800IFS=$as_save_IFS
4ee9c684 7801
90973b19 7802fi
7803fi
542f9784 7804ac_ct_AR=$ac_cv_prog_ac_ct_AR
7805if test -n "$ac_ct_AR"; then
cd9a469c 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7807$as_echo "$ac_ct_AR" >&6; }
4ee9c684 7808else
cd9a469c 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810$as_echo "no" >&6; }
4ee9c684 7811fi
4ee9c684 7812
cd9a469c 7813 if test "x$ac_ct_AR" = x; then
7814 AR="false"
7815 else
7816 case $cross_compiling:$ac_tool_warned in
7817yes:)
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7820ac_tool_warned=yes ;;
7821esac
7822 AR=$ac_ct_AR
7823 fi
90973b19 7824else
542f9784 7825 AR="$ac_cv_prog_AR"
4ee9c684 7826fi
7827
542f9784 7828test -z "$AR" && AR=ar
7829test -z "$AR_FLAGS" && AR_FLAGS=cru
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
90973b19 7841if test -n "$ac_tool_prefix"; then
7842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7843set dummy ${ac_tool_prefix}strip; ac_word=$2
cd9a469c 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7846if ${ac_cv_prog_STRIP+:} false; then :
cd9a469c 7847 $as_echo_n "(cached) " >&6
4ee9c684 7848else
90973b19 7849 if test -n "$STRIP"; then
7850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7851else
7852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853for as_dir in $PATH
7854do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
cd9a469c 7857 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 7859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cd9a469c 7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7861 break 2
7862 fi
7863done
cd9a469c 7864 done
7865IFS=$as_save_IFS
4ee9c684 7866
90973b19 7867fi
7868fi
7869STRIP=$ac_cv_prog_STRIP
7870if test -n "$STRIP"; then
cd9a469c 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7872$as_echo "$STRIP" >&6; }
4ee9c684 7873else
cd9a469c 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875$as_echo "no" >&6; }
90973b19 7876fi
4ee9c684 7877
cd9a469c 7878
4ee9c684 7879fi
90973b19 7880if test -z "$ac_cv_prog_STRIP"; then
7881 ac_ct_STRIP=$STRIP
7882 # Extract the first word of "strip", so it can be a program name with args.
7883set dummy strip; ac_word=$2
cd9a469c 7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7886if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cd9a469c 7887 $as_echo_n "(cached) " >&6
90973b19 7888else
7889 if test -n "$ac_ct_STRIP"; then
7890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7891else
7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
cd9a469c 7897 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 7899 ac_cv_prog_ac_ct_STRIP="strip"
cd9a469c 7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90973b19 7901 break 2
7902 fi
7903done
cd9a469c 7904 done
7905IFS=$as_save_IFS
90973b19 7906
4ee9c684 7907fi
7908fi
90973b19 7909ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7910if test -n "$ac_ct_STRIP"; then
cd9a469c 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7912$as_echo "$ac_ct_STRIP" >&6; }
90973b19 7913else
cd9a469c 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915$as_echo "no" >&6; }
4ee9c684 7916fi
4ee9c684 7917
cd9a469c 7918 if test "x$ac_ct_STRIP" = x; then
7919 STRIP=":"
7920 else
7921 case $cross_compiling:$ac_tool_warned in
7922yes:)
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7925ac_tool_warned=yes ;;
7926esac
7927 STRIP=$ac_ct_STRIP
7928 fi
90973b19 7929else
7930 STRIP="$ac_cv_prog_STRIP"
4ee9c684 7931fi
7932
542f9784 7933test -z "$STRIP" && STRIP=:
4ee9c684 7934
7935
7936
7937
7938
7939
542f9784 7940if test -n "$ac_tool_prefix"; then
7941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7942set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7945if ${ac_cv_prog_RANLIB+:} false; then :
cd9a469c 7946 $as_echo_n "(cached) " >&6
4ee9c684 7947else
542f9784 7948 if test -n "$RANLIB"; then
7949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7950else
7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
cd9a469c 7956 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 7960 break 2
7961 fi
7962done
cd9a469c 7963 done
7964IFS=$as_save_IFS
542f9784 7965
7966fi
7967fi
7968RANLIB=$ac_cv_prog_RANLIB
7969if test -n "$RANLIB"; then
cd9a469c 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7971$as_echo "$RANLIB" >&6; }
542f9784 7972else
cd9a469c 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974$as_echo "no" >&6; }
542f9784 7975fi
7976
cd9a469c 7977
542f9784 7978fi
7979if test -z "$ac_cv_prog_RANLIB"; then
7980 ac_ct_RANLIB=$RANLIB
7981 # Extract the first word of "ranlib", so it can be a program name with args.
7982set dummy ranlib; ac_word=$2
cd9a469c 7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7985if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cd9a469c 7986 $as_echo_n "(cached) " >&6
542f9784 7987else
7988 if test -n "$ac_ct_RANLIB"; then
7989 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7990else
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
cd9a469c 7996 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 7998 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 8000 break 2
8001 fi
8002done
cd9a469c 8003 done
8004IFS=$as_save_IFS
542f9784 8005
542f9784 8006fi
8007fi
8008ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8009if test -n "$ac_ct_RANLIB"; then
cd9a469c 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8011$as_echo "$ac_ct_RANLIB" >&6; }
542f9784 8012else
cd9a469c 8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
542f9784 8015fi
8016
cd9a469c 8017 if test "x$ac_ct_RANLIB" = x; then
8018 RANLIB=":"
8019 else
8020 case $cross_compiling:$ac_tool_warned in
8021yes:)
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8024ac_tool_warned=yes ;;
8025esac
8026 RANLIB=$ac_ct_RANLIB
8027 fi
542f9784 8028else
8029 RANLIB="$ac_cv_prog_RANLIB"
8030fi
8031
8032test -z "$RANLIB" && RANLIB=:
8033
8034
8035
8036
8037
8038
8039# Determine commands to create old-style static archives.
00aafda4 8040old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
542f9784 8041old_postinstall_cmds='chmod 644 $oldlib'
8042old_postuninstall_cmds=
8043
8044if test -n "$RANLIB"; then
8045 case $host_os in
8046 openbsd*)
8047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8048 ;;
8049 *)
8050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8051 ;;
8052 esac
8053 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8054fi
8055
e6408286 8056case $host_os in
8057 darwin*)
8058 lock_old_archive_extraction=yes ;;
8059 *)
8060 lock_old_archive_extraction=no ;;
8061esac
8062
8063
8064
8065
8066
8067
542f9784 8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101# If no C compiler was specified, use CC.
8102LTCC=${LTCC-"$CC"}
8103
8104# If no C compiler flags were specified, use CFLAGS.
8105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8106
8107# Allow CC to be a program name with arguments.
8108compiler=$CC
8109
8110
8111# Check for command to grab the raw symbol name followed by C symbol from nm.
cd9a469c 8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8113$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
f00f02a3 8114if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cd9a469c 8115 $as_echo_n "(cached) " >&6
542f9784 8116else
8117
8118# These are sane defaults that work on at least a few old systems.
8119# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8120
8121# Character class describing NM global symbol codes.
8122symcode='[BCDEGRST]'
8123
8124# Regexp to match symbols that can be accessed directly from C.
8125sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8126
8127# Define system-specific variables.
8128case $host_os in
8129aix*)
8130 symcode='[BCDT]'
8131 ;;
00aafda4 8132cygwin* | mingw* | pw32* | cegcc*)
542f9784 8133 symcode='[ABCDGISTW]'
8134 ;;
8135hpux*)
8136 if test "$host_cpu" = ia64; then
8137 symcode='[ABCDEGRST]'
8138 fi
8139 ;;
8140irix* | nonstopux*)
8141 symcode='[BCDEGRST]'
8142 ;;
8143osf*)
8144 symcode='[BCDEGQRST]'
8145 ;;
8146solaris*)
8147 symcode='[BDRT]'
8148 ;;
8149sco3.2v5*)
8150 symcode='[DT]'
8151 ;;
8152sysv4.2uw2*)
8153 symcode='[DT]'
8154 ;;
8155sysv5* | sco5v6* | unixware* | OpenUNIX*)
8156 symcode='[ABDT]'
8157 ;;
8158sysv4)
8159 symcode='[DFNSTU]'
8160 ;;
8161esac
8162
8163# If we're using GNU nm, then use its standard symbol codes.
8164case `$NM -V 2>&1` in
8165*GNU* | *'with BFD'*)
8166 symcode='[ABCDGIRSTW]' ;;
8167esac
8168
8169# Transform an extracted symbol line into a proper C declaration.
8170# Some systems (esp. on ia64) link data and code symbols differently,
8171# so use this general approach.
8172lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8173
8174# Transform an extracted symbol line into symbol name and symbol address
8175lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
00aafda4 8176lt_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'"
542f9784 8177
8178# Handle CRLF in mingw tool chain
8179opt_cr=
8180case $build_os in
8181mingw*)
8182 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8183 ;;
8184esac
8185
8186# Try without a prefix underscore, then with it.
8187for ac_symprfx in "" "_"; do
8188
8189 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8190 symxfrm="\\1 $ac_symprfx\\2 \\2"
8191
8192 # Write the raw and C identifiers.
8193 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8194 # Fake it for dumpbin and say T for any non-static function
8195 # and D for any global variable.
8196 # Also find C++ and __fastcall symbols from MSVC++,
8197 # which start with @ or ?.
8198 lt_cv_sys_global_symbol_pipe="$AWK '"\
8199" {last_section=section; section=\$ 3};"\
8200" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8201" \$ 0!~/External *\|/{next};"\
8202" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8203" {if(hide[section]) next};"\
8204" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8205" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8206" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8207" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8208" ' prfx=^$ac_symprfx"
8209 else
8210 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8211 fi
8212
8213 # Check to see that the pipe works correctly.
8214 pipe_works=no
8215
8216 rm -f conftest*
8217 cat > conftest.$ac_ext <<_LT_EOF
8218#ifdef __cplusplus
8219extern "C" {
8220#endif
8221char nm_test_var;
8222void nm_test_func(void);
8223void nm_test_func(void){}
8224#ifdef __cplusplus
8225}
8226#endif
8227int main(){nm_test_var='a';nm_test_func();return(0);}
8228_LT_EOF
8229
cd9a469c 8230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8231 (eval $ac_compile) 2>&5
8232 ac_status=$?
cd9a469c 8233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8234 test $ac_status = 0; }; then
542f9784 8235 # Now try to grab the symbols.
8236 nlist=conftest.nm
e6408286 8237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8238 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
542f9784 8239 ac_status=$?
cd9a469c 8240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8241 test $ac_status = 0; } && test -s "$nlist"; then
542f9784 8242 # Try sorting and uniquifying the output.
8243 if sort "$nlist" | uniq > "$nlist"T; then
8244 mv -f "$nlist"T "$nlist"
8245 else
8246 rm -f "$nlist"T
8247 fi
8248
8249 # Make sure that we snagged all the symbols we need.
8250 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8251 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8252 cat <<_LT_EOF > conftest.$ac_ext
8253#ifdef __cplusplus
8254extern "C" {
8255#endif
8256
8257_LT_EOF
8258 # Now generate the symbol file.
8259 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8260
8261 cat <<_LT_EOF >> conftest.$ac_ext
8262
8263/* The mapping between symbol names and symbols. */
8264const struct {
8265 const char *name;
8266 void *address;
8267}
8268lt__PROGRAM__LTX_preloaded_symbols[] =
8269{
8270 { "@PROGRAM@", (void *) 0 },
8271_LT_EOF
8272 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8273 cat <<\_LT_EOF >> conftest.$ac_ext
8274 {0, (void *) 0}
8275};
8276
8277/* This works around a problem in FreeBSD linker */
8278#ifdef FREEBSD_WORKAROUND
8279static const void *lt_preloaded_setup() {
8280 return lt__PROGRAM__LTX_preloaded_symbols;
8281}
8282#endif
8283
8284#ifdef __cplusplus
8285}
8286#endif
8287_LT_EOF
8288 # Now try linking the two files.
8289 mv conftest.$ac_objext conftstm.$ac_objext
8290 lt_save_LIBS="$LIBS"
8291 lt_save_CFLAGS="$CFLAGS"
8292 LIBS="conftstm.$ac_objext"
8293 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cd9a469c 8294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 8295 (eval $ac_link) 2>&5
8296 ac_status=$?
cd9a469c 8297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8298 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
542f9784 8299 pipe_works=yes
8300 fi
8301 LIBS="$lt_save_LIBS"
8302 CFLAGS="$lt_save_CFLAGS"
8303 else
8304 echo "cannot find nm_test_func in $nlist" >&5
8305 fi
8306 else
8307 echo "cannot find nm_test_var in $nlist" >&5
8308 fi
8309 else
8310 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8311 fi
8312 else
8313 echo "$progname: failed program was:" >&5
8314 cat conftest.$ac_ext >&5
8315 fi
00aafda4 8316 rm -rf conftest* conftst*
542f9784 8317
8318 # Do not use the global_symbol_pipe unless it works.
8319 if test "$pipe_works" = yes; then
8320 break
8321 else
8322 lt_cv_sys_global_symbol_pipe=
8323 fi
8324done
8325
8326fi
8327
8328if test -z "$lt_cv_sys_global_symbol_pipe"; then
8329 lt_cv_sys_global_symbol_to_cdecl=
8330fi
8331if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cd9a469c 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8333$as_echo "failed" >&6; }
542f9784 8334else
cd9a469c 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8336$as_echo "ok" >&6; }
542f9784 8337fi
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
00aafda4 8353
8354
8355
8356
8357
542f9784 8358
8359
cd9a469c 8360# Check whether --enable-libtool-lock was given.
8361if test "${enable_libtool_lock+set}" = set; then :
8362 enableval=$enable_libtool_lock;
8363fi
542f9784 8364
542f9784 8365test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4ee9c684 8366
90973b19 8367# Some flags need to be propagated to the compiler or linker for good
8368# libtool support.
8369case $host in
542f9784 8370ia64-*-hpux*)
90973b19 8371 # Find out which ABI we are using.
542f9784 8372 echo 'int i;' > conftest.$ac_ext
cd9a469c 8373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8374 (eval $ac_compile) 2>&5
4ee9c684 8375 ac_status=$?
cd9a469c 8376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8377 test $ac_status = 0; }; then
90973b19 8378 case `/usr/bin/file conftest.$ac_objext` in
542f9784 8379 *ELF-32*)
8380 HPUX_IA64_MODE="32"
8381 ;;
8382 *ELF-64*)
8383 HPUX_IA64_MODE="64"
8384 ;;
90973b19 8385 esac
90973b19 8386 fi
8387 rm -rf conftest*
8388 ;;
542f9784 8389*-*-irix6*)
90973b19 8390 # Find out which ABI we are using.
e6408286 8391 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cd9a469c 8392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8393 (eval $ac_compile) 2>&5
4ee9c684 8394 ac_status=$?
cd9a469c 8395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8396 test $ac_status = 0; }; then
542f9784 8397 if test "$lt_cv_prog_gnu_ld" = yes; then
8398 case `/usr/bin/file conftest.$ac_objext` in
8399 *32-bit*)
8400 LD="${LD-ld} -melf32bsmip"
8401 ;;
8402 *N32*)
8403 LD="${LD-ld} -melf32bmipn32"
8404 ;;
8405 *64-bit*)
8406 LD="${LD-ld} -melf64bmip"
8407 ;;
8408 esac
8409 else
8410 case `/usr/bin/file conftest.$ac_objext` in
8411 *32-bit*)
8412 LD="${LD-ld} -32"
8413 ;;
8414 *N32*)
8415 LD="${LD-ld} -n32"
8416 ;;
8417 *64-bit*)
8418 LD="${LD-ld} -64"
8419 ;;
8420 esac
8421 fi
90973b19 8422 fi
8423 rm -rf conftest*
8424 ;;
4ee9c684 8425
9613c003 8426x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
542f9784 8427s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
90973b19 8428 # Find out which ABI we are using.
8429 echo 'int i;' > conftest.$ac_ext
cd9a469c 8430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
90973b19 8431 (eval $ac_compile) 2>&5
4ee9c684 8432 ac_status=$?
cd9a469c 8433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8434 test $ac_status = 0; }; then
542f9784 8435 case `/usr/bin/file conftest.o` in
8436 *32-bit*)
8437 case $host in
8438 x86_64-*kfreebsd*-gnu)
8439 LD="${LD-ld} -m elf_i386_fbsd"
8440 ;;
8441 x86_64-*linux*)
b4b3bbba 8442 case `/usr/bin/file conftest.o` in
8443 *x86-64*)
8444 LD="${LD-ld} -m elf32_x86_64"
8445 ;;
8446 *)
8447 LD="${LD-ld} -m elf_i386"
8448 ;;
8449 esac
542f9784 8450 ;;
9613c003 8451 powerpc64le-*linux*)
8452 LD="${LD-ld} -m elf32lppclinux"
8453 ;;
8454 powerpc64-*linux*)
542f9784 8455 LD="${LD-ld} -m elf32ppclinux"
8456 ;;
8457 s390x-*linux*)
8458 LD="${LD-ld} -m elf_s390"
8459 ;;
8460 sparc64-*linux*)
8461 LD="${LD-ld} -m elf32_sparc"
8462 ;;
8463 esac
8464 ;;
8465 *64-bit*)
8466 case $host in
8467 x86_64-*kfreebsd*-gnu)
8468 LD="${LD-ld} -m elf_x86_64_fbsd"
8469 ;;
8470 x86_64-*linux*)
8471 LD="${LD-ld} -m elf_x86_64"
8472 ;;
9613c003 8473 powerpcle-*linux*)
8474 LD="${LD-ld} -m elf64lppc"
8475 ;;
8476 powerpc-*linux*)
542f9784 8477 LD="${LD-ld} -m elf64ppc"
8478 ;;
8479 s390*-*linux*|s390*-*tpf*)
8480 LD="${LD-ld} -m elf64_s390"
8481 ;;
8482 sparc*-*linux*)
8483 LD="${LD-ld} -m elf64_sparc"
8484 ;;
8485 esac
8486 ;;
90973b19 8487 esac
4ee9c684 8488 fi
90973b19 8489 rm -rf conftest*
8490 ;;
4ee9c684 8491
90973b19 8492*-*-sco3.2v5*)
8493 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8494 SAVE_CFLAGS="$CFLAGS"
8495 CFLAGS="$CFLAGS -belf"
cd9a469c 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8497$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
f00f02a3 8498if ${lt_cv_cc_needs_belf+:} false; then :
cd9a469c 8499 $as_echo_n "(cached) " >&6
4ee9c684 8500else
542f9784 8501 ac_ext=c
90973b19 8502ac_cpp='$CPP $CPPFLAGS'
8503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8505ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ee9c684 8506
b52ee437 8507 if test x$gcc_no_link = xyes; then
f00f02a3 8508 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 8509fi
cd9a469c 8510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4ee9c684 8511/* end confdefs.h. */
4ee9c684 8512
8513int
8514main ()
8515{
90973b19 8516
4ee9c684 8517 ;
8518 return 0;
8519}
8520_ACEOF
cd9a469c 8521if ac_fn_c_try_link "$LINENO"; then :
90973b19 8522 lt_cv_cc_needs_belf=yes
4ee9c684 8523else
cd9a469c 8524 lt_cv_cc_needs_belf=no
4ee9c684 8525fi
cd9a469c 8526rm -f core conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
90973b19 8528 ac_ext=c
8529ac_cpp='$CPP $CPPFLAGS'
8530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532ac_compiler_gnu=$ac_cv_c_compiler_gnu
8533
4ee9c684 8534fi
cd9a469c 8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8536$as_echo "$lt_cv_cc_needs_belf" >&6; }
90973b19 8537 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8538 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8539 CFLAGS="$SAVE_CFLAGS"
8540 fi
8541 ;;
542f9784 8542sparc*-*solaris*)
8543 # Find out which ABI we are using.
8544 echo 'int i;' > conftest.$ac_ext
cd9a469c 8545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 8546 (eval $ac_compile) 2>&5
8547 ac_status=$?
cd9a469c 8548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8549 test $ac_status = 0; }; then
542f9784 8550 case `/usr/bin/file conftest.o` in
8551 *64-bit*)
8552 case $lt_cv_prog_gnu_ld in
8553 yes*) LD="${LD-ld} -m elf64_sparc" ;;
00aafda4 8554 *)
8555 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8556 LD="${LD-ld} -64"
8557 fi
8558 ;;
542f9784 8559 esac
8560 ;;
8561 esac
8562 fi
8563 rm -rf conftest*
8564 ;;
90973b19 8565esac
8566
542f9784 8567need_locks="$enable_libtool_lock"
90973b19 8568
00aafda4 8569
8570 case $host_os in
8571 rhapsody* | darwin*)
8572 if test -n "$ac_tool_prefix"; then
8573 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8574set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cd9a469c 8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8577if ${ac_cv_prog_DSYMUTIL+:} false; then :
cd9a469c 8578 $as_echo_n "(cached) " >&6
00aafda4 8579else
8580 if test -n "$DSYMUTIL"; then
8581 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8582else
8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
cd9a469c 8588 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
00aafda4 8590 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cd9a469c 8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8592 break 2
8593 fi
8594done
cd9a469c 8595 done
8596IFS=$as_save_IFS
00aafda4 8597
8598fi
8599fi
8600DSYMUTIL=$ac_cv_prog_DSYMUTIL
8601if test -n "$DSYMUTIL"; then
cd9a469c 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8603$as_echo "$DSYMUTIL" >&6; }
00aafda4 8604else
cd9a469c 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606$as_echo "no" >&6; }
00aafda4 8607fi
8608
cd9a469c 8609
00aafda4 8610fi
8611if test -z "$ac_cv_prog_DSYMUTIL"; then
8612 ac_ct_DSYMUTIL=$DSYMUTIL
8613 # Extract the first word of "dsymutil", so it can be a program name with args.
8614set dummy dsymutil; ac_word=$2
cd9a469c 8615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8617if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cd9a469c 8618 $as_echo_n "(cached) " >&6
00aafda4 8619else
d5d92632 8620 if test -n "$ac_ct_DSYMUTIL"; then
8621 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
00aafda4 8622else
8623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624for as_dir in $PATH
8625do
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
cd9a469c 8628 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8630 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cd9a469c 8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8632 break 2
8633 fi
8634done
cd9a469c 8635 done
8636IFS=$as_save_IFS
00aafda4 8637
00aafda4 8638fi
8639fi
d5d92632 8640ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8641if test -n "$ac_ct_DSYMUTIL"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8643$as_echo "$ac_ct_DSYMUTIL" >&6; }
00aafda4 8644else
cd9a469c 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646$as_echo "no" >&6; }
00aafda4 8647fi
8648
d5d92632 8649 if test "x$ac_ct_DSYMUTIL" = x; then
8650 DSYMUTIL=":"
cd9a469c 8651 else
8652 case $cross_compiling:$ac_tool_warned in
8653yes:)
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8656ac_tool_warned=yes ;;
8657esac
d5d92632 8658 DSYMUTIL=$ac_ct_DSYMUTIL
cd9a469c 8659 fi
00aafda4 8660else
d5d92632 8661 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
00aafda4 8662fi
8663
8664 if test -n "$ac_tool_prefix"; then
d5d92632 8665 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8666set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cd9a469c 8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8669if ${ac_cv_prog_NMEDIT+:} false; then :
cd9a469c 8670 $as_echo_n "(cached) " >&6
00aafda4 8671else
d5d92632 8672 if test -n "$NMEDIT"; then
8673 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
00aafda4 8674else
8675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676for as_dir in $PATH
8677do
8678 IFS=$as_save_IFS
8679 test -z "$as_dir" && as_dir=.
cd9a469c 8680 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8682 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cd9a469c 8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8684 break 2
8685 fi
8686done
cd9a469c 8687 done
8688IFS=$as_save_IFS
00aafda4 8689
8690fi
8691fi
d5d92632 8692NMEDIT=$ac_cv_prog_NMEDIT
8693if test -n "$NMEDIT"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8695$as_echo "$NMEDIT" >&6; }
00aafda4 8696else
cd9a469c 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698$as_echo "no" >&6; }
00aafda4 8699fi
8700
cd9a469c 8701
00aafda4 8702fi
d5d92632 8703if test -z "$ac_cv_prog_NMEDIT"; then
8704 ac_ct_NMEDIT=$NMEDIT
8705 # Extract the first word of "nmedit", so it can be a program name with args.
8706set dummy nmedit; ac_word=$2
cd9a469c 8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8709if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cd9a469c 8710 $as_echo_n "(cached) " >&6
00aafda4 8711else
d5d92632 8712 if test -n "$ac_ct_NMEDIT"; then
8713 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
00aafda4 8714else
8715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716for as_dir in $PATH
8717do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
cd9a469c 8720 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8722 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cd9a469c 8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8724 break 2
8725 fi
8726done
cd9a469c 8727 done
8728IFS=$as_save_IFS
00aafda4 8729
00aafda4 8730fi
8731fi
d5d92632 8732ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8733if test -n "$ac_ct_NMEDIT"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8735$as_echo "$ac_ct_NMEDIT" >&6; }
00aafda4 8736else
cd9a469c 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738$as_echo "no" >&6; }
00aafda4 8739fi
8740
d5d92632 8741 if test "x$ac_ct_NMEDIT" = x; then
8742 NMEDIT=":"
cd9a469c 8743 else
8744 case $cross_compiling:$ac_tool_warned in
8745yes:)
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8748ac_tool_warned=yes ;;
8749esac
d5d92632 8750 NMEDIT=$ac_ct_NMEDIT
cd9a469c 8751 fi
00aafda4 8752else
d5d92632 8753 NMEDIT="$ac_cv_prog_NMEDIT"
00aafda4 8754fi
8755
8756 if test -n "$ac_tool_prefix"; then
d5d92632 8757 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8758set dummy ${ac_tool_prefix}lipo; ac_word=$2
cd9a469c 8759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8761if ${ac_cv_prog_LIPO+:} false; then :
cd9a469c 8762 $as_echo_n "(cached) " >&6
00aafda4 8763else
d5d92632 8764 if test -n "$LIPO"; then
8765 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
00aafda4 8766else
8767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768for as_dir in $PATH
8769do
8770 IFS=$as_save_IFS
8771 test -z "$as_dir" && as_dir=.
cd9a469c 8772 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8774 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cd9a469c 8775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8776 break 2
8777 fi
8778done
cd9a469c 8779 done
8780IFS=$as_save_IFS
00aafda4 8781
8782fi
8783fi
d5d92632 8784LIPO=$ac_cv_prog_LIPO
8785if test -n "$LIPO"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8787$as_echo "$LIPO" >&6; }
00aafda4 8788else
cd9a469c 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790$as_echo "no" >&6; }
00aafda4 8791fi
8792
cd9a469c 8793
00aafda4 8794fi
d5d92632 8795if test -z "$ac_cv_prog_LIPO"; then
8796 ac_ct_LIPO=$LIPO
8797 # Extract the first word of "lipo", so it can be a program name with args.
8798set dummy lipo; ac_word=$2
cd9a469c 8799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8801if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cd9a469c 8802 $as_echo_n "(cached) " >&6
00aafda4 8803else
d5d92632 8804 if test -n "$ac_ct_LIPO"; then
8805 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
00aafda4 8806else
8807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808for as_dir in $PATH
8809do
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
cd9a469c 8812 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8814 ac_cv_prog_ac_ct_LIPO="lipo"
cd9a469c 8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
00aafda4 8816 break 2
8817 fi
8818done
cd9a469c 8819 done
8820IFS=$as_save_IFS
00aafda4 8821
00aafda4 8822fi
8823fi
d5d92632 8824ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8825if test -n "$ac_ct_LIPO"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8827$as_echo "$ac_ct_LIPO" >&6; }
00aafda4 8828else
cd9a469c 8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830$as_echo "no" >&6; }
00aafda4 8831fi
8832
d5d92632 8833 if test "x$ac_ct_LIPO" = x; then
8834 LIPO=":"
cd9a469c 8835 else
8836 case $cross_compiling:$ac_tool_warned in
8837yes:)
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8840ac_tool_warned=yes ;;
8841esac
d5d92632 8842 LIPO=$ac_ct_LIPO
cd9a469c 8843 fi
00aafda4 8844else
d5d92632 8845 LIPO="$ac_cv_prog_LIPO"
00aafda4 8846fi
8847
d5d92632 8848 if test -n "$ac_tool_prefix"; then
8849 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8850set dummy ${ac_tool_prefix}otool; ac_word=$2
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8853if ${ac_cv_prog_OTOOL+:} false; then :
cd9a469c 8854 $as_echo_n "(cached) " >&6
00aafda4 8855else
d5d92632 8856 if test -n "$OTOOL"; then
8857 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
e6408286 8858else
d5d92632 8859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860for as_dir in $PATH
8861do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8866 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870done
8871 done
8872IFS=$as_save_IFS
e6408286 8873
8874fi
d5d92632 8875fi
8876OTOOL=$ac_cv_prog_OTOOL
8877if test -n "$OTOOL"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8879$as_echo "$OTOOL" >&6; }
8880else
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882$as_echo "no" >&6; }
8883fi
8884
00aafda4 8885
542f9784 8886fi
d5d92632 8887if test -z "$ac_cv_prog_OTOOL"; then
8888 ac_ct_OTOOL=$OTOOL
8889 # Extract the first word of "otool", so it can be a program name with args.
8890set dummy otool; ac_word=$2
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8893if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cd9a469c 8894 $as_echo_n "(cached) " >&6
542f9784 8895else
d5d92632 8896 if test -n "$ac_ct_OTOOL"; then
8897 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8898else
8899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900for as_dir in $PATH
542f9784 8901do
d5d92632 8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8906 ac_cv_prog_ac_ct_OTOOL="otool"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8909 fi
8910done
8911 done
8912IFS=$as_save_IFS
4ee9c684 8913
d5d92632 8914fi
8915fi
8916ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8917if test -n "$ac_ct_OTOOL"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8919$as_echo "$ac_ct_OTOOL" >&6; }
cd9a469c 8920else
d5d92632 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922$as_echo "no" >&6; }
542f9784 8923fi
90973b19 8924
d5d92632 8925 if test "x$ac_ct_OTOOL" = x; then
8926 OTOOL=":"
8927 else
8928 case $cross_compiling:$ac_tool_warned in
8929yes:)
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8932ac_tool_warned=yes ;;
8933esac
8934 OTOOL=$ac_ct_OTOOL
8935 fi
542f9784 8936else
d5d92632 8937 OTOOL="$ac_cv_prog_OTOOL"
542f9784 8938fi
4ee9c684 8939
d5d92632 8940 if test -n "$ac_tool_prefix"; then
8941 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8942set dummy ${ac_tool_prefix}otool64; ac_word=$2
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8945if ${ac_cv_prog_OTOOL64+:} false; then :
d5d92632 8946 $as_echo_n "(cached) " >&6
8947else
8948 if test -n "$OTOOL64"; then
8949 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8950else
8951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952for as_dir in $PATH
8953do
8954 IFS=$as_save_IFS
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8958 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 break 2
8961 fi
542f9784 8962done
d5d92632 8963 done
8964IFS=$as_save_IFS
8965
8966fi
8967fi
8968OTOOL64=$ac_cv_prog_OTOOL64
8969if test -n "$OTOOL64"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8971$as_echo "$OTOOL64" >&6; }
8972else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974$as_echo "no" >&6; }
542f9784 8975fi
4ee9c684 8976
90973b19 8977
542f9784 8978fi
d5d92632 8979if test -z "$ac_cv_prog_OTOOL64"; then
8980 ac_ct_OTOOL64=$OTOOL64
8981 # Extract the first word of "otool64", so it can be a program name with args.
8982set dummy otool64; ac_word=$2
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8985if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
d5d92632 8986 $as_echo_n "(cached) " >&6
90973b19 8987else
d5d92632 8988 if test -n "$ac_ct_OTOOL64"; then
8989 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8990else
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
90973b19 8993do
d5d92632 8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d5d92632 8998 ac_cv_prog_ac_ct_OTOOL64="otool64"
8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 break 2
9001 fi
9002done
9003 done
9004IFS=$as_save_IFS
90973b19 9005
d5d92632 9006fi
9007fi
9008ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9009if test -n "$ac_ct_OTOOL64"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9011$as_echo "$ac_ct_OTOOL64" >&6; }
cd9a469c 9012else
d5d92632 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014$as_echo "no" >&6; }
90973b19 9015fi
9016
d5d92632 9017 if test "x$ac_ct_OTOOL64" = x; then
9018 OTOOL64=":"
9019 else
9020 case $cross_compiling:$ac_tool_warned in
9021yes:)
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9024ac_tool_warned=yes ;;
9025esac
9026 OTOOL64=$ac_ct_OTOOL64
9027 fi
4ee9c684 9028else
d5d92632 9029 OTOOL64="$ac_cv_prog_OTOOL64"
4ee9c684 9030fi
4ee9c684 9031
cd9a469c 9032
542f9784 9033
542f9784 9034
9035
4ee9c684 9036
542f9784 9037
4ee9c684 9038
542f9784 9039
cd9a469c 9040
4ee9c684 9041
9cf1c244 9042
2e4ef4e4 9043
cd9a469c 9044
2e4ef4e4 9045
2e4ef4e4 9046
d5d92632 9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9059$as_echo_n "checking for -single_module linker flag... " >&6; }
f00f02a3 9060if ${lt_cv_apple_cc_single_mod+:} false; then :
d5d92632 9061 $as_echo_n "(cached) " >&6
542f9784 9062else
d5d92632 9063 lt_cv_apple_cc_single_mod=no
9064 if test -z "${LT_MULTI_MODULE}"; then
9065 # By default we will add the -single_module flag. You can override
9066 # by either setting the environment variable LT_MULTI_MODULE
9067 # non-empty at configure time, or by adding -multi_module to the
9068 # link flags.
9069 rm -rf libconftest.dylib*
9070 echo "int foo(void){return 1;}" > conftest.c
9071 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9072-dynamiclib -Wl,-single_module conftest.c" >&5
9073 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9074 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9075 _lt_result=$?
9076 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9077 lt_cv_apple_cc_single_mod=yes
9078 else
9079 cat conftest.err >&5
9080 fi
9081 rm -rf libconftest.dylib*
9082 rm -f conftest.*
9083 fi
9084fi
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9086$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9088$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
f00f02a3 9089if ${lt_cv_ld_exported_symbols_list+:} false; then :
d5d92632 9090 $as_echo_n "(cached) " >&6
9091else
9092 lt_cv_ld_exported_symbols_list=no
9093 save_LDFLAGS=$LDFLAGS
9094 echo "_main" > conftest.sym
9095 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9096 if test x$gcc_no_link = xyes; then
f00f02a3 9097 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d5d92632 9098fi
9099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9100/* end confdefs.h. */
2e4ef4e4 9101
542f9784 9102int
9103main ()
9104{
d5d92632 9105
9106 ;
cd9a469c 9107 return 0;
542f9784 9108}
2e4ef4e4 9109_ACEOF
d5d92632 9110if ac_fn_c_try_link "$LINENO"; then :
9111 lt_cv_ld_exported_symbols_list=yes
cd9a469c 9112else
d5d92632 9113 lt_cv_ld_exported_symbols_list=no
542f9784 9114fi
d5d92632 9115rm -f core conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext conftest.$ac_ext
9117 LDFLAGS="$save_LDFLAGS"
2e4ef4e4 9118
9119fi
d5d92632 9120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9121$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9123$as_echo_n "checking for -force_load linker flag... " >&6; }
f00f02a3 9124if ${lt_cv_ld_force_load+:} false; then :
d5d92632 9125 $as_echo_n "(cached) " >&6
9126else
9127 lt_cv_ld_force_load=no
9128 cat > conftest.c << _LT_EOF
9129int forced_loaded() { return 2;}
9130_LT_EOF
9131 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9132 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9133 echo "$AR cru libconftest.a conftest.o" >&5
9134 $AR cru libconftest.a conftest.o 2>&5
9135 cat > conftest.c << _LT_EOF
9136int main() { return 0;}
9137_LT_EOF
9138 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9139 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9140 _lt_result=$?
9141 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9142 lt_cv_ld_force_load=yes
9143 else
9144 cat conftest.err >&5
9145 fi
9146 rm -f conftest.err libconftest.a conftest conftest.c
9147 rm -rf conftest.dSYM
542f9784 9148
9149fi
d5d92632 9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9151$as_echo "$lt_cv_ld_force_load" >&6; }
9152 case $host_os in
9153 rhapsody* | darwin1.[012])
9154 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9155 darwin1.*)
9156 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9157 darwin*) # darwin 5.x on
9158 # if running on 10.5 or later, the deployment target defaults
9159 # to the OS version, if on x86, and 10.4, the deployment
9160 # target defaults to 10.4. Don't you love it?
9161 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9162 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9163 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7c407808 9164 10.[012][,.]*)
d5d92632 9165 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9166 10.*)
9167 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9168 esac
9169 ;;
9170 esac
9171 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9172 _lt_dar_single_mod='$single_module'
9173 fi
9174 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9175 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9176 else
9177 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9178 fi
9179 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9180 _lt_dsymutil='~$DSYMUTIL $lib || :'
9181 else
9182 _lt_dsymutil=
9183 fi
9184 ;;
9185 esac
542f9784 9186
542f9784 9187for ac_header in dlfcn.h
cd9a469c 9188do :
9189 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9190"
f00f02a3 9191if test "x$ac_cv_header_dlfcn_h" = xyes; then :
542f9784 9192 cat >>confdefs.h <<_ACEOF
cd9a469c 9193#define HAVE_DLFCN_H 1
90e67cff 9194_ACEOF
90e67cff 9195
542f9784 9196fi
9197
9198done
9199
9200
9201
e6408286 9202
9203
00aafda4 9204# Set options
9205
9206
9207
9208
9209 enable_win32_dll=no
9210
9211
cd9a469c 9212 # Check whether --enable-shared was given.
9213if test "${enable_shared+set}" = set; then :
9214 enableval=$enable_shared; p=${PACKAGE-default}
00aafda4 9215 case $enableval in
9216 yes) enable_shared=yes ;;
9217 no) enable_shared=no ;;
9218 *)
9219 enable_shared=no
9220 # Look at the argument we got. We use all the common list separators.
9221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9222 for pkg in $enableval; do
9223 IFS="$lt_save_ifs"
9224 if test "X$pkg" = "X$p"; then
9225 enable_shared=yes
9226 fi
9227 done
9228 IFS="$lt_save_ifs"
9229 ;;
9230 esac
9231else
9232 enable_shared=yes
cd9a469c 9233fi
9234
00aafda4 9235
9236
9237
9238
9239
9240
9241
9242
cd9a469c 9243 # Check whether --enable-static was given.
9244if test "${enable_static+set}" = set; then :
9245 enableval=$enable_static; p=${PACKAGE-default}
00aafda4 9246 case $enableval in
9247 yes) enable_static=yes ;;
9248 no) enable_static=no ;;
9249 *)
9250 enable_static=no
9251 # Look at the argument we got. We use all the common list separators.
9252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9253 for pkg in $enableval; do
9254 IFS="$lt_save_ifs"
9255 if test "X$pkg" = "X$p"; then
9256 enable_static=yes
9257 fi
9258 done
9259 IFS="$lt_save_ifs"
9260 ;;
9261 esac
9262else
9263 enable_static=yes
cd9a469c 9264fi
9265
00aafda4 9266
9267
9268
9269
9270
9271
9272
9273
9274
cd9a469c 9275# Check whether --with-pic was given.
9276if test "${with_pic+set}" = set; then :
9277 withval=$with_pic; pic_mode="$withval"
00aafda4 9278else
9279 pic_mode=default
cd9a469c 9280fi
9281
00aafda4 9282
9283test -z "$pic_mode" && pic_mode=default
9284
9285
9286
9287
9288
9289
9290
cd9a469c 9291 # Check whether --enable-fast-install was given.
9292if test "${enable_fast_install+set}" = set; then :
9293 enableval=$enable_fast_install; p=${PACKAGE-default}
00aafda4 9294 case $enableval in
9295 yes) enable_fast_install=yes ;;
9296 no) enable_fast_install=no ;;
9297 *)
9298 enable_fast_install=no
9299 # Look at the argument we got. We use all the common list separators.
9300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9301 for pkg in $enableval; do
9302 IFS="$lt_save_ifs"
9303 if test "X$pkg" = "X$p"; then
9304 enable_fast_install=yes
9305 fi
9306 done
9307 IFS="$lt_save_ifs"
9308 ;;
9309 esac
9310else
9311 enable_fast_install=yes
cd9a469c 9312fi
9313
00aafda4 9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
542f9784 9324# This can be used to rebuild libtool when needed
9325LIBTOOL_DEPS="$ltmain"
9326
9327# Always use our own libtool.
9328LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
e6408286 9352
542f9784 9353
9354
9355test -z "$LN_S" && LN_S="ln -s"
9356
9357
9358
9359
9360
90e67cff 9361
542f9784 9362
9363
9364
9365
9366
9367
9368
9369
9370if test -n "${ZSH_VERSION+set}" ; then
9371 setopt NO_GLOB_SUBST
90e67cff 9372fi
90e67cff 9373
cd9a469c 9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9375$as_echo_n "checking for objdir... " >&6; }
f00f02a3 9376if ${lt_cv_objdir+:} false; then :
cd9a469c 9377 $as_echo_n "(cached) " >&6
90e67cff 9378else
542f9784 9379 rm -f .libs 2>/dev/null
9380mkdir .libs 2>/dev/null
9381if test -d .libs; then
9382 lt_cv_objdir=.libs
9383else
9384 # MS-DOS does not allow filenames that begin with a dot.
9385 lt_cv_objdir=_libs
90e67cff 9386fi
542f9784 9387rmdir .libs 2>/dev/null
90e67cff 9388fi
cd9a469c 9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9390$as_echo "$lt_cv_objdir" >&6; }
542f9784 9391objdir=$lt_cv_objdir
9392
9393
9394
9395
90e67cff 9396
9397cat >>confdefs.h <<_ACEOF
542f9784 9398#define LT_OBJDIR "$lt_cv_objdir/"
90e67cff 9399_ACEOF
9400
542f9784 9401
9402
9403
542f9784 9404case $host_os in
9405aix3*)
9406 # AIX sometimes has problems with the GCC collect2 program. For some
9407 # reason, if we set the COLLECT_NAMES environment variable, the problems
9408 # vanish in a puff of smoke.
9409 if test "X${COLLECT_NAMES+set}" != Xset; then
9410 COLLECT_NAMES=
9411 export COLLECT_NAMES
9412 fi
9413 ;;
9414esac
9415
542f9784 9416# Global variables:
9417ofile=libtool
9418can_build_shared=yes
9419
9420# All known linkers require a `.a' archive for static linking (except MSVC,
9421# which needs '.lib').
9422libext=a
9423
9424with_gnu_ld="$lt_cv_prog_gnu_ld"
9425
9426old_CC="$CC"
9427old_CFLAGS="$CFLAGS"
9428
9429# Set sane defaults for various variables
9430test -z "$CC" && CC=cc
9431test -z "$LTCC" && LTCC=$CC
9432test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9433test -z "$LD" && LD=ld
9434test -z "$ac_objext" && ac_objext=o
9435
9436for cc_temp in $compiler""; do
9437 case $cc_temp in
9438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9440 \-*) ;;
9441 *) break;;
9442 esac
9443done
e6408286 9444cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 9445
9446
9447# Only perform the check for file, if the check method requires it
9448test -z "$MAGIC_CMD" && MAGIC_CMD=file
9449case $deplibs_check_method in
9450file_magic*)
9451 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cd9a469c 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9453$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
f00f02a3 9454if ${lt_cv_path_MAGIC_CMD+:} false; then :
cd9a469c 9455 $as_echo_n "(cached) " >&6
90e67cff 9456else
542f9784 9457 case $MAGIC_CMD in
9458[\\/*] | ?:[\\/]*)
9459 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9460 ;;
9461*)
9462 lt_save_MAGIC_CMD="$MAGIC_CMD"
9463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9464 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9465 for ac_dir in $ac_dummy; do
9466 IFS="$lt_save_ifs"
9467 test -z "$ac_dir" && ac_dir=.
9468 if test -f $ac_dir/${ac_tool_prefix}file; then
9469 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9470 if test -n "$file_magic_test_file"; then
9471 case $deplibs_check_method in
9472 "file_magic "*)
9473 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9474 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9475 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9476 $EGREP "$file_magic_regex" > /dev/null; then
9477 :
9478 else
9479 cat <<_LT_EOF 1>&2
90e67cff 9480
542f9784 9481*** Warning: the command libtool uses to detect shared libraries,
9482*** $file_magic_cmd, produces output that libtool cannot recognize.
9483*** The result is that libtool may fail to recognize shared libraries
9484*** as such. This will affect the creation of libtool libraries that
9485*** depend on shared libraries, but programs linked with such libtool
9486*** libraries will work regardless of this problem. Nevertheless, you
9487*** may want to report the problem to your system manager and/or to
9488*** bug-libtool@gnu.org
9489
9490_LT_EOF
9491 fi ;;
9492 esac
9493 fi
9494 break
9495 fi
9496 done
9497 IFS="$lt_save_ifs"
9498 MAGIC_CMD="$lt_save_MAGIC_CMD"
9499 ;;
9500esac
9501fi
9502
9503MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9504if test -n "$MAGIC_CMD"; then
cd9a469c 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9506$as_echo "$MAGIC_CMD" >&6; }
542f9784 9507else
cd9a469c 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509$as_echo "no" >&6; }
542f9784 9510fi
9511
9512
9513
9514
9515
9516if test -z "$lt_cv_path_MAGIC_CMD"; then
9517 if test -n "$ac_tool_prefix"; then
cd9a469c 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9519$as_echo_n "checking for file... " >&6; }
f00f02a3 9520if ${lt_cv_path_MAGIC_CMD+:} false; then :
cd9a469c 9521 $as_echo_n "(cached) " >&6
542f9784 9522else
9523 case $MAGIC_CMD in
9524[\\/*] | ?:[\\/]*)
9525 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9526 ;;
9527*)
9528 lt_save_MAGIC_CMD="$MAGIC_CMD"
9529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9530 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9531 for ac_dir in $ac_dummy; do
9532 IFS="$lt_save_ifs"
9533 test -z "$ac_dir" && ac_dir=.
9534 if test -f $ac_dir/file; then
9535 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9536 if test -n "$file_magic_test_file"; then
9537 case $deplibs_check_method in
9538 "file_magic "*)
9539 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9541 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9542 $EGREP "$file_magic_regex" > /dev/null; then
9543 :
9544 else
9545 cat <<_LT_EOF 1>&2
9546
9547*** Warning: the command libtool uses to detect shared libraries,
9548*** $file_magic_cmd, produces output that libtool cannot recognize.
9549*** The result is that libtool may fail to recognize shared libraries
9550*** as such. This will affect the creation of libtool libraries that
9551*** depend on shared libraries, but programs linked with such libtool
9552*** libraries will work regardless of this problem. Nevertheless, you
9553*** may want to report the problem to your system manager and/or to
9554*** bug-libtool@gnu.org
9555
9556_LT_EOF
9557 fi ;;
9558 esac
9559 fi
9560 break
9561 fi
9562 done
9563 IFS="$lt_save_ifs"
9564 MAGIC_CMD="$lt_save_MAGIC_CMD"
9565 ;;
9566esac
9567fi
9568
9569MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9570if test -n "$MAGIC_CMD"; then
cd9a469c 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9572$as_echo "$MAGIC_CMD" >&6; }
542f9784 9573else
cd9a469c 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575$as_echo "no" >&6; }
542f9784 9576fi
9577
9578
9579 else
9580 MAGIC_CMD=:
9581 fi
9582fi
9583
9584 fi
9585 ;;
9586esac
9587
9588# Use C for the default configuration in the libtool script
9589
9590lt_save_CC="$CC"
9591ac_ext=c
9592ac_cpp='$CPP $CPPFLAGS'
9593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9595ac_compiler_gnu=$ac_cv_c_compiler_gnu
9596
9597
9598# Source file extension for C test sources.
9599ac_ext=c
9600
9601# Object file extension for compiled C test sources.
9602objext=o
9603objext=$objext
9604
9605# Code to be used in simple compile tests
9606lt_simple_compile_test_code="int some_variable = 0;"
9607
9608# Code to be used in simple link tests
9609lt_simple_link_test_code='int main(){return(0);}'
9610
9611
9612
9613
9614
9615
9616
9617# If no C compiler was specified, use CC.
9618LTCC=${LTCC-"$CC"}
9619
9620# If no C compiler flags were specified, use CFLAGS.
9621LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9622
9623# Allow CC to be a program name with arguments.
9624compiler=$CC
9625
9626# Save the default compiler, since it gets overwritten when the other
9627# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9628compiler_DEFAULT=$CC
9629
9630# save warnings/boilerplate of simple test code
9631ac_outfile=conftest.$ac_objext
9632echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9633eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9634_lt_compiler_boilerplate=`cat conftest.err`
9635$RM conftest*
9636
9637ac_outfile=conftest.$ac_objext
9638echo "$lt_simple_link_test_code" >conftest.$ac_ext
9639eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9640_lt_linker_boilerplate=`cat conftest.err`
00aafda4 9641$RM -r conftest*
542f9784 9642
9643
9644## CAVEAT EMPTOR:
9645## There is no encapsulation within the following macros, do not change
9646## the running order or otherwise move them around unless you know exactly
9647## what you are doing...
9648if test -n "$compiler"; then
9649
9650lt_prog_compiler_no_builtin_flag=
9651
9652if test "$GCC" = yes; then
e6408286 9653 case $cc_basename in
9654 nvcc*)
9655 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9656 *)
9657 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9658 esac
542f9784 9659
cd9a469c 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9661$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
f00f02a3 9662if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cd9a469c 9663 $as_echo_n "(cached) " >&6
542f9784 9664else
9665 lt_cv_prog_compiler_rtti_exceptions=no
9666 ac_outfile=conftest.$ac_objext
9667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9668 lt_compiler_flag="-fno-rtti -fno-exceptions"
9669 # Insert the option either (1) after the last *FLAGS variable, or
9670 # (2) before a word containing "conftest.", or (3) at the end.
9671 # Note that $ac_compile itself does not contain backslashes and begins
9672 # with a dollar sign (not a hyphen), so the echo should work correctly.
9673 # The option is referenced via a variable to avoid confusing sed.
9674 lt_compile=`echo "$ac_compile" | $SED \
9675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9677 -e 's:$: $lt_compiler_flag:'`
e6408286 9678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 9679 (eval "$lt_compile" 2>conftest.err)
9680 ac_status=$?
9681 cat conftest.err >&5
e6408286 9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 9683 if (exit $ac_status) && test -s "$ac_outfile"; then
9684 # The compiler can only warn and ignore the option if not recognized
9685 # So say no if there are warnings other than the usual output.
e6408286 9686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 9687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9689 lt_cv_prog_compiler_rtti_exceptions=yes
9690 fi
9691 fi
9692 $RM conftest*
9693
9694fi
cd9a469c 9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9696$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
542f9784 9697
9698if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9699 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9700else
9701 :
9702fi
9703
9704fi
9705
9706
9707
9708
9709
9710
9711 lt_prog_compiler_wl=
9712lt_prog_compiler_pic=
9713lt_prog_compiler_static=
9714
cd9a469c 9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9716$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 9717
9718 if test "$GCC" = yes; then
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_static='-static'
9721
9722 case $host_os in
9723 aix*)
9724 # All AIX code is PIC.
9725 if test "$host_cpu" = ia64; then
9726 # AIX 5 now supports IA64 processor
9727 lt_prog_compiler_static='-Bstatic'
9728 fi
ccc0b0f9 9729 lt_prog_compiler_pic='-fPIC'
542f9784 9730 ;;
9731
9732 amigaos*)
00aafda4 9733 case $host_cpu in
9734 powerpc)
9735 # see comment about AmigaOS4 .so support
9736 lt_prog_compiler_pic='-fPIC'
9737 ;;
9738 m68k)
9739 # FIXME: we need at least 68020 code to build shared libraries, but
9740 # adding the `-m68020' flag to GCC prevents building anything better,
9741 # like `-m68040'.
9742 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9743 ;;
9744 esac
542f9784 9745 ;;
9746
9747 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9748 # PIC is the default for these OSes.
9749 ;;
9750
00aafda4 9751 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 9752 # This hack is so that the source file can tell whether it is being
9753 # built for inclusion in a dll (and should export symbols for example).
9754 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9755 # (--disable-auto-import) libraries
9756 lt_prog_compiler_pic='-DDLL_EXPORT'
9757 ;;
9758
9759 darwin* | rhapsody*)
9760 # PIC is the default on this platform
9761 # Common symbols not allowed in MH_DYLIB files
9762 lt_prog_compiler_pic='-fno-common'
9763 ;;
9764
e6408286 9765 haiku*)
9766 # PIC is the default for Haiku.
9767 # The "-static" flag exists, but is broken.
9768 lt_prog_compiler_static=
9769 ;;
9770
542f9784 9771 hpux*)
00aafda4 9772 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9773 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9774 # sets the default TLS model and affects inlining.
542f9784 9775 case $host_cpu in
00aafda4 9776 hppa*64*)
542f9784 9777 # +Z the default
9778 ;;
9779 *)
9780 lt_prog_compiler_pic='-fPIC'
9781 ;;
9782 esac
9783 ;;
9784
9785 interix[3-9]*)
9786 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9787 # Instead, we relocate shared libraries at runtime.
9788 ;;
9789
9790 msdosdjgpp*)
9791 # Just because we use GCC doesn't mean we suddenly get shared libraries
9792 # on systems that don't support them.
9793 lt_prog_compiler_can_build_shared=no
9794 enable_shared=no
9795 ;;
9796
9797 *nto* | *qnx*)
9798 # QNX uses GNU C++, but need to define -shared option too, otherwise
9799 # it will coredump.
9800 lt_prog_compiler_pic='-fPIC -shared'
9801 ;;
9802
9803 sysv4*MP*)
9804 if test -d /usr/nec; then
9805 lt_prog_compiler_pic=-Kconform_pic
9806 fi
9807 ;;
9808
9809 *)
9810 lt_prog_compiler_pic='-fPIC'
9811 ;;
9812 esac
e6408286 9813
9814 case $cc_basename in
9815 nvcc*) # Cuda Compiler Driver 2.2
9816 lt_prog_compiler_wl='-Xlinker '
9817 lt_prog_compiler_pic='-Xcompiler -fPIC'
9818 ;;
9819 esac
542f9784 9820 else
9821 # PORTME Check for flag to pass linker flags through the system compiler.
9822 case $host_os in
9823 aix*)
9824 lt_prog_compiler_wl='-Wl,'
9825 if test "$host_cpu" = ia64; then
9826 # AIX 5 now supports IA64 processor
9827 lt_prog_compiler_static='-Bstatic'
9828 else
9829 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9830 fi
9831 ;;
542f9784 9832
00aafda4 9833 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 9834 # This hack is so that the source file can tell whether it is being
9835 # built for inclusion in a dll (and should export symbols for example).
9836 lt_prog_compiler_pic='-DDLL_EXPORT'
9837 ;;
9838
9839 hpux9* | hpux10* | hpux11*)
9840 lt_prog_compiler_wl='-Wl,'
9841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9842 # not for PA HP-UX.
9843 case $host_cpu in
9844 hppa*64*|ia64*)
9845 # +Z the default
9846 ;;
9847 *)
9848 lt_prog_compiler_pic='+Z'
9849 ;;
9850 esac
9851 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9852 lt_prog_compiler_static='${wl}-a ${wl}archive'
9853 ;;
9854
9855 irix5* | irix6* | nonstopux*)
9856 lt_prog_compiler_wl='-Wl,'
9857 # PIC (with -KPIC) is the default.
9858 lt_prog_compiler_static='-non_shared'
9859 ;;
9860
9af964d4 9861 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 9862 case $cc_basename in
00aafda4 9863 # old Intel for x86_64 which still supported -KPIC.
9864 ecc*)
542f9784 9865 lt_prog_compiler_wl='-Wl,'
9866 lt_prog_compiler_pic='-KPIC'
9867 lt_prog_compiler_static='-static'
9868 ;;
00aafda4 9869 # icc used to be incompatible with GCC.
9870 # ICC 10 doesn't accept -KPIC any more.
9871 icc* | ifort*)
9872 lt_prog_compiler_wl='-Wl,'
9873 lt_prog_compiler_pic='-fPIC'
9874 lt_prog_compiler_static='-static'
9875 ;;
9876 # Lahey Fortran 8.1.
9877 lf95*)
9878 lt_prog_compiler_wl='-Wl,'
9879 lt_prog_compiler_pic='--shared'
9880 lt_prog_compiler_static='--static'
9881 ;;
e6408286 9882 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 9883 # Portland Group compilers (*not* the Pentium gcc compiler,
9884 # which looks to be a dead project)
9885 lt_prog_compiler_wl='-Wl,'
9886 lt_prog_compiler_pic='-fpic'
9887 lt_prog_compiler_static='-Bstatic'
9888 ;;
9889 ccc*)
9890 lt_prog_compiler_wl='-Wl,'
9891 # All Alpha code is PIC.
9892 lt_prog_compiler_static='-non_shared'
9893 ;;
e6408286 9894 xl* | bgxl* | bgf* | mpixl*)
9895 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
00aafda4 9896 lt_prog_compiler_wl='-Wl,'
9897 lt_prog_compiler_pic='-qpic'
9898 lt_prog_compiler_static='-qstaticlink'
9899 ;;
542f9784 9900 *)
9901 case `$CC -V 2>&1 | sed 5q` in
e6408286 9902 *Sun\ F* | *Sun*Fortran*)
9903 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 9904 lt_prog_compiler_pic='-KPIC'
9905 lt_prog_compiler_static='-Bstatic'
e6408286 9906 lt_prog_compiler_wl=''
542f9784 9907 ;;
e6408286 9908 *Sun\ C*)
9909 # Sun C 5.9
542f9784 9910 lt_prog_compiler_pic='-KPIC'
9911 lt_prog_compiler_static='-Bstatic'
e6408286 9912 lt_prog_compiler_wl='-Wl,'
542f9784 9913 ;;
9914 esac
9915 ;;
9916 esac
9917 ;;
9918
9919 newsos6)
9920 lt_prog_compiler_pic='-KPIC'
9921 lt_prog_compiler_static='-Bstatic'
9922 ;;
9923
9924 *nto* | *qnx*)
9925 # QNX uses GNU C++, but need to define -shared option too, otherwise
9926 # it will coredump.
9927 lt_prog_compiler_pic='-fPIC -shared'
9928 ;;
9929
9930 osf3* | osf4* | osf5*)
9931 lt_prog_compiler_wl='-Wl,'
9932 # All OSF/1 code is PIC.
9933 lt_prog_compiler_static='-non_shared'
9934 ;;
9935
9936 rdos*)
9937 lt_prog_compiler_static='-non_shared'
9938 ;;
9939
9940 solaris*)
9941 lt_prog_compiler_pic='-KPIC'
9942 lt_prog_compiler_static='-Bstatic'
9943 case $cc_basename in
9944 f77* | f90* | f95*)
9945 lt_prog_compiler_wl='-Qoption ld ';;
9946 *)
9947 lt_prog_compiler_wl='-Wl,';;
9948 esac
9949 ;;
9950
9951 sunos4*)
9952 lt_prog_compiler_wl='-Qoption ld '
9953 lt_prog_compiler_pic='-PIC'
9954 lt_prog_compiler_static='-Bstatic'
9955 ;;
9956
9957 sysv4 | sysv4.2uw2* | sysv4.3*)
9958 lt_prog_compiler_wl='-Wl,'
9959 lt_prog_compiler_pic='-KPIC'
9960 lt_prog_compiler_static='-Bstatic'
9961 ;;
9962
9963 sysv4*MP*)
9964 if test -d /usr/nec ;then
9965 lt_prog_compiler_pic='-Kconform_pic'
9966 lt_prog_compiler_static='-Bstatic'
9967 fi
9968 ;;
9969
9970 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9971 lt_prog_compiler_wl='-Wl,'
9972 lt_prog_compiler_pic='-KPIC'
9973 lt_prog_compiler_static='-Bstatic'
9974 ;;
9975
9976 unicos*)
9977 lt_prog_compiler_wl='-Wl,'
9978 lt_prog_compiler_can_build_shared=no
9979 ;;
9980
9981 uts4*)
9982 lt_prog_compiler_pic='-pic'
9983 lt_prog_compiler_static='-Bstatic'
9984 ;;
9985
9986 *)
9987 lt_prog_compiler_can_build_shared=no
9988 ;;
9989 esac
9990 fi
9991
9992case $host_os in
9993 # For platforms which do not support PIC, -DPIC is meaningless:
9994 *djgpp*)
9995 lt_prog_compiler_pic=
9996 ;;
9997 *)
9998 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9999 ;;
10000esac
cd9a469c 10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10002$as_echo "$lt_prog_compiler_pic" >&6; }
542f9784 10003
10004
10005
10006
10007
10008
10009#
10010# Check to make sure the PIC flag actually works.
10011#
10012if test -n "$lt_prog_compiler_pic"; then
cd9a469c 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10014$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
f00f02a3 10015if ${lt_cv_prog_compiler_pic_works+:} false; then :
cd9a469c 10016 $as_echo_n "(cached) " >&6
542f9784 10017else
00aafda4 10018 lt_cv_prog_compiler_pic_works=no
542f9784 10019 ac_outfile=conftest.$ac_objext
10020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10021 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10022 # Insert the option either (1) after the last *FLAGS variable, or
10023 # (2) before a word containing "conftest.", or (3) at the end.
10024 # Note that $ac_compile itself does not contain backslashes and begins
10025 # with a dollar sign (not a hyphen), so the echo should work correctly.
10026 # The option is referenced via a variable to avoid confusing sed.
10027 lt_compile=`echo "$ac_compile" | $SED \
10028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10030 -e 's:$: $lt_compiler_flag:'`
e6408286 10031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10032 (eval "$lt_compile" 2>conftest.err)
10033 ac_status=$?
10034 cat conftest.err >&5
e6408286 10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10036 if (exit $ac_status) && test -s "$ac_outfile"; then
10037 # The compiler can only warn and ignore the option if not recognized
10038 # So say no if there are warnings other than the usual output.
e6408286 10039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 10040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 10042 lt_cv_prog_compiler_pic_works=yes
542f9784 10043 fi
10044 fi
10045 $RM conftest*
10046
10047fi
cd9a469c 10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10049$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
542f9784 10050
00aafda4 10051if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
542f9784 10052 case $lt_prog_compiler_pic in
10053 "" | " "*) ;;
10054 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10055 esac
10056else
10057 lt_prog_compiler_pic=
10058 lt_prog_compiler_can_build_shared=no
10059fi
10060
10061fi
10062
10063
10064
10065
10066
10067
10068#
10069# Check to make sure the static flag actually works.
10070#
10071wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cd9a469c 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10073$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
f00f02a3 10074if ${lt_cv_prog_compiler_static_works+:} false; then :
cd9a469c 10075 $as_echo_n "(cached) " >&6
542f9784 10076else
00aafda4 10077 lt_cv_prog_compiler_static_works=no
542f9784 10078 save_LDFLAGS="$LDFLAGS"
10079 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10080 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10081 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10082 # The linker can only warn and ignore the option if not recognized
10083 # So say no if there are warnings
10084 if test -s conftest.err; then
10085 # Append any errors to the config.log.
10086 cat conftest.err 1>&5
e6408286 10087 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 10088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10089 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 10090 lt_cv_prog_compiler_static_works=yes
542f9784 10091 fi
10092 else
00aafda4 10093 lt_cv_prog_compiler_static_works=yes
542f9784 10094 fi
10095 fi
00aafda4 10096 $RM -r conftest*
542f9784 10097 LDFLAGS="$save_LDFLAGS"
10098
10099fi
cd9a469c 10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10101$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
542f9784 10102
00aafda4 10103if test x"$lt_cv_prog_compiler_static_works" = xyes; then
542f9784 10104 :
10105else
10106 lt_prog_compiler_static=
10107fi
10108
10109
10110
10111
10112
10113
10114
cd9a469c 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10116$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 10117if ${lt_cv_prog_compiler_c_o+:} false; then :
cd9a469c 10118 $as_echo_n "(cached) " >&6
542f9784 10119else
10120 lt_cv_prog_compiler_c_o=no
10121 $RM -r conftest 2>/dev/null
10122 mkdir conftest
10123 cd conftest
10124 mkdir out
10125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10126
10127 lt_compiler_flag="-o out/conftest2.$ac_objext"
10128 # Insert the option either (1) after the last *FLAGS variable, or
10129 # (2) before a word containing "conftest.", or (3) at the end.
10130 # Note that $ac_compile itself does not contain backslashes and begins
10131 # with a dollar sign (not a hyphen), so the echo should work correctly.
10132 lt_compile=`echo "$ac_compile" | $SED \
10133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10135 -e 's:$: $lt_compiler_flag:'`
e6408286 10136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10137 (eval "$lt_compile" 2>out/conftest.err)
10138 ac_status=$?
10139 cat out/conftest.err >&5
e6408286 10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10142 then
10143 # The compiler can only warn and ignore the option if not recognized
10144 # So say no if there are warnings
e6408286 10145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 10146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10148 lt_cv_prog_compiler_c_o=yes
10149 fi
10150 fi
10151 chmod u+w . 2>&5
10152 $RM conftest*
10153 # SGI C++ compiler will create directory out/ii_files/ for
10154 # template instantiation
10155 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10156 $RM out/* && rmdir out
10157 cd ..
10158 $RM -r conftest
10159 $RM conftest*
10160
10161fi
cd9a469c 10162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10163$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 10164
10165
10166
10167
10168
10169
cd9a469c 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10171$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 10172if ${lt_cv_prog_compiler_c_o+:} false; then :
cd9a469c 10173 $as_echo_n "(cached) " >&6
542f9784 10174else
10175 lt_cv_prog_compiler_c_o=no
10176 $RM -r conftest 2>/dev/null
10177 mkdir conftest
10178 cd conftest
10179 mkdir out
10180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10181
10182 lt_compiler_flag="-o out/conftest2.$ac_objext"
10183 # Insert the option either (1) after the last *FLAGS variable, or
10184 # (2) before a word containing "conftest.", or (3) at the end.
10185 # Note that $ac_compile itself does not contain backslashes and begins
10186 # with a dollar sign (not a hyphen), so the echo should work correctly.
10187 lt_compile=`echo "$ac_compile" | $SED \
10188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10190 -e 's:$: $lt_compiler_flag:'`
e6408286 10191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 10192 (eval "$lt_compile" 2>out/conftest.err)
10193 ac_status=$?
10194 cat out/conftest.err >&5
e6408286 10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 10196 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10197 then
10198 # The compiler can only warn and ignore the option if not recognized
10199 # So say no if there are warnings
e6408286 10200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 10201 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10202 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10203 lt_cv_prog_compiler_c_o=yes
10204 fi
10205 fi
10206 chmod u+w . 2>&5
10207 $RM conftest*
10208 # SGI C++ compiler will create directory out/ii_files/ for
10209 # template instantiation
10210 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10211 $RM out/* && rmdir out
10212 cd ..
10213 $RM -r conftest
10214 $RM conftest*
10215
10216fi
cd9a469c 10217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10218$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 10219
10220
10221
10222
10223hard_links="nottested"
10224if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10225 # do not overwrite the value of need_locks provided by the user
cd9a469c 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10227$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 10228 hard_links=yes
10229 $RM conftest*
10230 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10231 touch conftest.a
10232 ln conftest.a conftest.b 2>&5 || hard_links=no
10233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10235$as_echo "$hard_links" >&6; }
542f9784 10236 if test "$hard_links" = no; then
cd9a469c 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10238$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 10239 need_locks=warn
10240 fi
10241else
10242 need_locks=no
10243fi
10244
10245
10246
10247
10248
10249
cd9a469c 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10251$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 10252
10253 runpath_var=
10254 allow_undefined_flag=
10255 always_export_symbols=no
10256 archive_cmds=
10257 archive_expsym_cmds=
10258 compiler_needs_object=no
10259 enable_shared_with_static_runtimes=no
10260 export_dynamic_flag_spec=
10261 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10262 hardcode_automatic=no
10263 hardcode_direct=no
10264 hardcode_direct_absolute=no
10265 hardcode_libdir_flag_spec=
10266 hardcode_libdir_flag_spec_ld=
10267 hardcode_libdir_separator=
10268 hardcode_minus_L=no
10269 hardcode_shlibpath_var=unsupported
10270 inherit_rpath=no
10271 link_all_deplibs=unknown
10272 module_cmds=
10273 module_expsym_cmds=
10274 old_archive_from_new_cmds=
10275 old_archive_from_expsyms_cmds=
10276 thread_safe_flag_spec=
10277 whole_archive_flag_spec=
10278 # include_expsyms should be a list of space-separated symbols to be *always*
10279 # included in the symbol list
10280 include_expsyms=
10281 # exclude_expsyms can be an extended regexp of symbols to exclude
10282 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10283 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10284 # as well as any symbol that contains `d'.
00aafda4 10285 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 10286 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10287 # platforms (ab)use it in PIC code, but their linkers get confused if
10288 # the symbol is explicitly referenced. Since portable code cannot
10289 # rely on this symbol name, it's probably fine to never include it in
10290 # preloaded symbol tables.
00aafda4 10291 # Exclude shared library initialization/finalization symbols.
542f9784 10292 extract_expsyms_cmds=
10293
10294 case $host_os in
00aafda4 10295 cygwin* | mingw* | pw32* | cegcc*)
542f9784 10296 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10297 # When not using gcc, we currently assume that we are using
10298 # Microsoft Visual C++.
10299 if test "$GCC" != yes; then
10300 with_gnu_ld=no
10301 fi
10302 ;;
10303 interix*)
10304 # we just hope/assume this is gcc and not c89 (= MSVC++)
10305 with_gnu_ld=yes
10306 ;;
10307 openbsd*)
10308 with_gnu_ld=no
10309 ;;
10310 esac
10311
10312 ld_shlibs=yes
e6408286 10313
10314 # On some targets, GNU ld is compatible enough with the native linker
10315 # that we're better off using the native interface for both.
10316 lt_use_gnu_ld_interface=no
542f9784 10317 if test "$with_gnu_ld" = yes; then
e6408286 10318 case $host_os in
10319 aix*)
10320 # The AIX port of GNU ld has always aspired to compatibility
10321 # with the native linker. However, as the warning in the GNU ld
10322 # block says, versions before 2.19.5* couldn't really create working
10323 # shared libraries, regardless of the interface used.
10324 case `$LD -v 2>&1` in
10325 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10326 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10327 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10328 *)
10329 lt_use_gnu_ld_interface=yes
10330 ;;
10331 esac
10332 ;;
10333 *)
10334 lt_use_gnu_ld_interface=yes
10335 ;;
10336 esac
10337 fi
10338
10339 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 10340 # If archive_cmds runs LD, not CC, wlarc should be empty
10341 wlarc='${wl}'
10342
10343 # Set some defaults for GNU ld with shared library support. These
10344 # are reset later if shared libraries are not supported. Putting them
10345 # here allows them to be overridden if necessary.
10346 runpath_var=LD_RUN_PATH
10347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10348 export_dynamic_flag_spec='${wl}--export-dynamic'
10349 # ancient GNU ld didn't support --whole-archive et. al.
10350 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10351 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10352 else
10353 whole_archive_flag_spec=
10354 fi
10355 supports_anon_versioning=no
10356 case `$LD -v 2>&1` in
e6408286 10357 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 10358 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10359 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10360 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10361 *\ 2.11.*) ;; # other 2.11 versions
10362 *) supports_anon_versioning=yes ;;
10363 esac
10364
10365 # See if GNU ld supports shared libraries.
10366 case $host_os in
21e07d2f 10367 aix[3-9]*)
542f9784 10368 # On AIX/PPC, the GNU linker is very broken
10369 if test "$host_cpu" != ia64; then
10370 ld_shlibs=no
10371 cat <<_LT_EOF 1>&2
10372
e6408286 10373*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 10374*** to be unable to reliably create shared libraries on AIX.
10375*** Therefore, libtool is disabling shared libraries support. If you
e6408286 10376*** really care for shared libraries, you may want to install binutils
10377*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10378*** You will then need to restart the configuration process.
542f9784 10379
10380_LT_EOF
10381 fi
10382 ;;
10383
10384 amigaos*)
00aafda4 10385 case $host_cpu in
10386 powerpc)
10387 # see comment about AmigaOS4 .so support
10388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389 archive_expsym_cmds=''
10390 ;;
10391 m68k)
10392 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)'
10393 hardcode_libdir_flag_spec='-L$libdir'
10394 hardcode_minus_L=yes
10395 ;;
10396 esac
542f9784 10397 ;;
10398
10399 beos*)
10400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10401 allow_undefined_flag=unsupported
10402 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10403 # support --undefined. This deserves some investigation. FIXME
10404 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10405 else
10406 ld_shlibs=no
10407 fi
10408 ;;
10409
00aafda4 10410 cygwin* | mingw* | pw32* | cegcc*)
542f9784 10411 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10412 # as there is no search path for DLLs.
10413 hardcode_libdir_flag_spec='-L$libdir'
e6408286 10414 export_dynamic_flag_spec='${wl}--export-all-symbols'
542f9784 10415 allow_undefined_flag=unsupported
10416 always_export_symbols=no
10417 enable_shared_with_static_runtimes=yes
10418 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10419
10420 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10422 # If the export-symbols file already is a .def file (1st line
10423 # is EXPORTS), use it as is; otherwise, prepend...
10424 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10425 cp $export_symbols $output_objdir/$soname.def;
10426 else
10427 echo EXPORTS > $output_objdir/$soname.def;
10428 cat $export_symbols >> $output_objdir/$soname.def;
10429 fi~
10430 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10431 else
10432 ld_shlibs=no
10433 fi
10434 ;;
10435
e6408286 10436 haiku*)
10437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10438 link_all_deplibs=yes
10439 ;;
10440
542f9784 10441 interix[3-9]*)
10442 hardcode_direct=no
10443 hardcode_shlibpath_var=no
10444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10445 export_dynamic_flag_spec='${wl}-E'
10446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10447 # Instead, shared libraries are loaded at an image base (0x10000000 by
10448 # default) and relocated if they conflict, which is a slow very memory
10449 # consuming and fragmenting process. To avoid this, we pick a random,
10450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10451 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10453 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'
10454 ;;
10455
9af964d4 10456 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 10457 tmp_diet=no
10458 if test "$host_os" = linux-dietlibc; then
10459 case $cc_basename in
10460 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10461 esac
10462 fi
10463 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10464 && test "$tmp_diet" = no
10465 then
4e8a08d4 10466 tmp_addflag=' $pic_flag'
00aafda4 10467 tmp_sharedflag='-shared'
542f9784 10468 case $cc_basename,$host_cpu in
10469 pgcc*) # Portland Group C compiler
e6408286 10470 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'
542f9784 10471 tmp_addflag=' $pic_flag'
10472 ;;
e6408286 10473 pgf77* | pgf90* | pgf95* | pgfortran*)
10474 # Portland Group f77 and f90 compilers
10475 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'
542f9784 10476 tmp_addflag=' $pic_flag -Mnomain' ;;
10477 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10478 tmp_addflag=' -i_dynamic' ;;
10479 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10480 tmp_addflag=' -i_dynamic -nofor_main' ;;
10481 ifc* | ifort*) # Intel Fortran compiler
10482 tmp_addflag=' -nofor_main' ;;
00aafda4 10483 lf95*) # Lahey Fortran 8.1
10484 whole_archive_flag_spec=
10485 tmp_sharedflag='--shared' ;;
e6408286 10486 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
00aafda4 10487 tmp_sharedflag='-qmkshrobj'
10488 tmp_addflag= ;;
e6408286 10489 nvcc*) # Cuda Compiler Driver 2.2
10490 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'
10491 compiler_needs_object=yes
10492 ;;
542f9784 10493 esac
10494 case `$CC -V 2>&1 | sed 5q` in
10495 *Sun\ C*) # Sun C 5.9
e6408286 10496 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'
542f9784 10497 compiler_needs_object=yes
10498 tmp_sharedflag='-G' ;;
10499 *Sun\ F*) # Sun Fortran 8.3
10500 tmp_sharedflag='-G' ;;
542f9784 10501 esac
10502 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10503
10504 if test "x$supports_anon_versioning" = xyes; then
10505 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10507 echo "local: *; };" >> $output_objdir/$libname.ver~
10508 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10509 fi
00aafda4 10510
10511 case $cc_basename in
e6408286 10512 xlf* | bgf* | bgxlf* | mpixlf*)
00aafda4 10513 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10514 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10515 hardcode_libdir_flag_spec=
10516 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10517 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10518 if test "x$supports_anon_versioning" = xyes; then
10519 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10520 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10521 echo "local: *; };" >> $output_objdir/$libname.ver~
10522 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10523 fi
10524 ;;
10525 esac
542f9784 10526 else
10527 ld_shlibs=no
10528 fi
10529 ;;
10530
10531 netbsd*)
10532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10533 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10534 wlarc=
10535 else
10536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10538 fi
10539 ;;
10540
10541 solaris*)
10542 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10543 ld_shlibs=no
10544 cat <<_LT_EOF 1>&2
10545
10546*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10547*** create shared libraries on Solaris systems. Therefore, libtool
10548*** is disabling shared libraries support. We urge you to upgrade GNU
10549*** binutils to release 2.9.1 or newer. Another option is to modify
10550*** your PATH or compiler configuration so that the native linker is
10551*** used, and then restart.
10552
10553_LT_EOF
10554 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10557 else
10558 ld_shlibs=no
10559 fi
10560 ;;
10561
10562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10563 case `$LD -v 2>&1` in
10564 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10565 ld_shlibs=no
10566 cat <<_LT_EOF 1>&2
10567
10568*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10569*** reliably create shared libraries on SCO systems. Therefore, libtool
10570*** is disabling shared libraries support. We urge you to upgrade GNU
10571*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10572*** your PATH or compiler configuration so that the native linker is
10573*** used, and then restart.
10574
10575_LT_EOF
10576 ;;
10577 *)
10578 # For security reasons, it is highly recommended that you always
10579 # use absolute paths for naming shared libraries, and exclude the
10580 # DT_RUNPATH tag from executables and libraries. But doing so
10581 # requires that you compile everything twice, which is a pain.
10582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10585 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10586 else
10587 ld_shlibs=no
10588 fi
10589 ;;
10590 esac
10591 ;;
10592
10593 sunos4*)
10594 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10595 wlarc=
10596 hardcode_direct=yes
10597 hardcode_shlibpath_var=no
10598 ;;
10599
10600 *)
10601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10604 else
10605 ld_shlibs=no
10606 fi
10607 ;;
10608 esac
10609
10610 if test "$ld_shlibs" = no; then
10611 runpath_var=
10612 hardcode_libdir_flag_spec=
10613 export_dynamic_flag_spec=
10614 whole_archive_flag_spec=
10615 fi
10616 else
10617 # PORTME fill in a description of your system's linker (not GNU ld)
10618 case $host_os in
10619 aix3*)
10620 allow_undefined_flag=unsupported
10621 always_export_symbols=yes
10622 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'
10623 # Note: this linker hardcodes the directories in LIBPATH if there
10624 # are no directories specified by -L.
10625 hardcode_minus_L=yes
10626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10627 # Neither direct hardcoding nor static linking is supported with a
10628 # broken collect2.
10629 hardcode_direct=unsupported
10630 fi
10631 ;;
10632
21e07d2f 10633 aix[4-9]*)
542f9784 10634 if test "$host_cpu" = ia64; then
10635 # On IA64, the linker does run time linking by default, so we don't
10636 # have to do anything special.
10637 aix_use_runtimelinking=no
10638 exp_sym_flag='-Bexport'
10639 no_entry_flag=""
10640 else
10641 # If we're using GNU nm, then we don't want the "-C" option.
10642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 10643 # Also, AIX nm treats weak defined symbols like other global
10644 # defined symbols, whereas GNU nm marks them as "W".
542f9784 10645 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 10646 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'
542f9784 10647 else
8c596dcc 10648 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'
542f9784 10649 fi
10650 aix_use_runtimelinking=no
10651
10652 # Test if we are trying to use run time linking or normal
10653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10654 # need to do runtime linking.
21e07d2f 10655 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 10656 for ld_flag in $LDFLAGS; do
10657 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10658 aix_use_runtimelinking=yes
10659 break
10660 fi
10661 done
10662 ;;
10663 esac
10664
10665 exp_sym_flag='-bexport'
10666 no_entry_flag='-bnoentry'
10667 fi
10668
10669 # When large executables or shared objects are built, AIX ld can
10670 # have problems creating the table of contents. If linking a library
10671 # or program results in "error TOC overflow" add -mminimal-toc to
10672 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10673 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10674
10675 archive_cmds=''
10676 hardcode_direct=yes
10677 hardcode_direct_absolute=yes
10678 hardcode_libdir_separator=':'
10679 link_all_deplibs=yes
10680 file_list_spec='${wl}-f,'
10681
10682 if test "$GCC" = yes; then
10683 case $host_os in aix4.[012]|aix4.[012].*)
10684 # We only want to do this on AIX 4.2 and lower, the check
10685 # below for broken collect2 doesn't work under 4.3+
10686 collect2name=`${CC} -print-prog-name=collect2`
10687 if test -f "$collect2name" &&
10688 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10689 then
10690 # We have reworked collect2
10691 :
10692 else
10693 # We have old collect2
10694 hardcode_direct=unsupported
10695 # It fails to find uninstalled libraries when the uninstalled
10696 # path is not listed in the libpath. Setting hardcode_minus_L
10697 # to unsupported forces relinking
10698 hardcode_minus_L=yes
10699 hardcode_libdir_flag_spec='-L$libdir'
10700 hardcode_libdir_separator=
10701 fi
10702 ;;
10703 esac
10704 shared_flag='-shared'
10705 if test "$aix_use_runtimelinking" = yes; then
10706 shared_flag="$shared_flag "'${wl}-G'
10707 fi
10708 else
10709 # not using gcc
10710 if test "$host_cpu" = ia64; then
10711 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10712 # chokes on -Wl,-G. The following line is correct:
10713 shared_flag='-G'
10714 else
10715 if test "$aix_use_runtimelinking" = yes; then
10716 shared_flag='${wl}-G'
10717 else
10718 shared_flag='${wl}-bM:SRE'
10719 fi
10720 fi
10721 fi
10722
00aafda4 10723 export_dynamic_flag_spec='${wl}-bexpall'
542f9784 10724 # It seems that -bexpall does not export symbols beginning with
10725 # underscore (_), so it is better to generate a list of symbols to export.
10726 always_export_symbols=yes
10727 if test "$aix_use_runtimelinking" = yes; then
10728 # Warning - without using the other runtime loading flags (-brtl),
10729 # -berok will link without error, but may produce a broken library.
10730 allow_undefined_flag='-berok'
10731 # Determine the default libpath from the value encoded in an
10732 # empty executable.
10733 if test x$gcc_no_link = xyes; then
f00f02a3 10734 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10735fi
cd9a469c 10736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10737/* end confdefs.h. */
10738
10739int
10740main ()
10741{
10742
10743 ;
10744 return 0;
10745}
10746_ACEOF
cd9a469c 10747if ac_fn_c_try_link "$LINENO"; then :
542f9784 10748
10749lt_aix_libpath_sed='
10750 /Import File Strings/,/^$/ {
10751 /^0/ {
10752 s/^0 *\(.*\)$/\1/
10753 p
10754 }
10755 }'
10756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10757# Check for a 64-bit object if we didn't find anything.
10758if test -z "$aix_libpath"; then
10759 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10760fi
542f9784 10761fi
cd9a469c 10762rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
542f9784 10764if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10765
10766 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 10767 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"
542f9784 10768 else
10769 if test "$host_cpu" = ia64; then
10770 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10771 allow_undefined_flag="-z nodefs"
10772 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"
10773 else
10774 # Determine the default libpath from the value encoded in an
10775 # empty executable.
10776 if test x$gcc_no_link = xyes; then
f00f02a3 10777 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 10778fi
cd9a469c 10779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10780/* end confdefs.h. */
10781
10782int
10783main ()
10784{
10785
10786 ;
10787 return 0;
10788}
10789_ACEOF
cd9a469c 10790if ac_fn_c_try_link "$LINENO"; then :
542f9784 10791
10792lt_aix_libpath_sed='
10793 /Import File Strings/,/^$/ {
10794 /^0/ {
10795 s/^0 *\(.*\)$/\1/
10796 p
10797 }
10798 }'
10799aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10800# Check for a 64-bit object if we didn't find anything.
10801if test -z "$aix_libpath"; then
10802 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10803fi
542f9784 10804fi
cd9a469c 10805rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
542f9784 10807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10808
10809 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10810 # Warning - without using the other run time loading flags,
10811 # -berok will link without error, but may produce a broken library.
10812 no_undefined_flag=' ${wl}-bernotok'
10813 allow_undefined_flag=' ${wl}-berok'
e6408286 10814 if test "$with_gnu_ld" = yes; then
10815 # We only use this code for GNU lds that support --whole-archive.
10816 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10817 else
10818 # Exported symbols can be pulled into shared objects from archives
10819 whole_archive_flag_spec='$convenience'
10820 fi
542f9784 10821 archive_cmds_need_lc=yes
10822 # This is similar to how AIX traditionally builds its shared libraries.
10823 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'
10824 fi
10825 fi
10826 ;;
10827
10828 amigaos*)
00aafda4 10829 case $host_cpu in
10830 powerpc)
10831 # see comment about AmigaOS4 .so support
10832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10833 archive_expsym_cmds=''
10834 ;;
10835 m68k)
10836 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)'
10837 hardcode_libdir_flag_spec='-L$libdir'
10838 hardcode_minus_L=yes
10839 ;;
10840 esac
542f9784 10841 ;;
10842
10843 bsdi[45]*)
10844 export_dynamic_flag_spec=-rdynamic
10845 ;;
10846
00aafda4 10847 cygwin* | mingw* | pw32* | cegcc*)
542f9784 10848 # When not using gcc, we currently assume that we are using
10849 # Microsoft Visual C++.
10850 # hardcode_libdir_flag_spec is actually meaningless, as there is
10851 # no search path for DLLs.
10852 hardcode_libdir_flag_spec=' '
10853 allow_undefined_flag=unsupported
10854 # Tell ltmain to make .lib files, not .a files.
10855 libext=lib
10856 # Tell ltmain to make .dll files, not .so files.
10857 shrext_cmds=".dll"
10858 # FIXME: Setting linknames here is a bad hack.
e6408286 10859 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 10860 # The linker will automatically build a .lib file if we build a DLL.
10861 old_archive_from_new_cmds='true'
10862 # FIXME: Should let the user specify the lib program.
10863 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10864 fix_srcfile_path='`cygpath -w "$srcfile"`'
10865 enable_shared_with_static_runtimes=yes
10866 ;;
10867
10868 darwin* | rhapsody*)
542f9784 10869
00aafda4 10870
10871 archive_cmds_need_lc=no
10872 hardcode_direct=no
10873 hardcode_automatic=yes
10874 hardcode_shlibpath_var=unsupported
e6408286 10875 if test "$lt_cv_ld_force_load" = "yes"; then
10876 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\"`'
10877 else
10878 whole_archive_flag_spec=''
10879 fi
00aafda4 10880 link_all_deplibs=yes
10881 allow_undefined_flag="$_lt_dar_allow_undefined"
10882 case $cc_basename in
10883 ifort*) _lt_dar_can_shared=yes ;;
10884 *) _lt_dar_can_shared=$GCC ;;
10885 esac
10886 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 10887 output_verbose_link_cmd=func_echo_all
00aafda4 10888 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10889 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10890 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}"
10891 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}"
10892
10893 else
10894 ld_shlibs=no
10895 fi
10896
542f9784 10897 ;;
10898
10899 dgux*)
10900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_libdir_flag_spec='-L$libdir'
10902 hardcode_shlibpath_var=no
10903 ;;
10904
542f9784 10905 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10906 # support. Future versions do this automatically, but an explicit c++rt0.o
10907 # does not break anything, and helps significantly (at the cost of a little
10908 # extra space).
10909 freebsd2.2*)
10910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10911 hardcode_libdir_flag_spec='-R$libdir'
10912 hardcode_direct=yes
10913 hardcode_shlibpath_var=no
10914 ;;
10915
10916 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 10917 freebsd2.*)
542f9784 10918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10919 hardcode_direct=yes
10920 hardcode_minus_L=yes
10921 hardcode_shlibpath_var=no
10922 ;;
10923
10924 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10925 freebsd* | dragonfly*)
10926 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10927 hardcode_libdir_flag_spec='-R$libdir'
10928 hardcode_direct=yes
10929 hardcode_shlibpath_var=no
10930 ;;
10931
10932 hpux9*)
10933 if test "$GCC" = yes; then
10934 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'
10935 else
10936 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'
10937 fi
10938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10939 hardcode_libdir_separator=:
10940 hardcode_direct=yes
10941
10942 # hardcode_minus_L: Not really in the search PATH,
10943 # but as the default location of the library.
10944 hardcode_minus_L=yes
10945 export_dynamic_flag_spec='${wl}-E'
10946 ;;
10947
10948 hpux10*)
e6408286 10949 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 10950 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10951 else
10952 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10953 fi
10954 if test "$with_gnu_ld" = no; then
10955 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10956 hardcode_libdir_flag_spec_ld='+b $libdir'
10957 hardcode_libdir_separator=:
10958 hardcode_direct=yes
10959 hardcode_direct_absolute=yes
10960 export_dynamic_flag_spec='${wl}-E'
10961 # hardcode_minus_L: Not really in the search PATH,
10962 # but as the default location of the library.
10963 hardcode_minus_L=yes
10964 fi
10965 ;;
10966
10967 hpux11*)
e6408286 10968 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 10969 case $host_cpu in
10970 hppa*64*)
10971 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 ;;
10973 ia64*)
00aafda4 10974 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 10975 ;;
10976 *)
10977 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10978 ;;
10979 esac
10980 else
10981 case $host_cpu in
10982 hppa*64*)
10983 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10984 ;;
10985 ia64*)
10986 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10987 ;;
10988 *)
e6408286 10989
10990 # Older versions of the 11.00 compiler do not understand -b yet
10991 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10993$as_echo_n "checking if $CC understands -b... " >&6; }
f00f02a3 10994if ${lt_cv_prog_compiler__b+:} false; then :
e6408286 10995 $as_echo_n "(cached) " >&6
10996else
10997 lt_cv_prog_compiler__b=no
10998 save_LDFLAGS="$LDFLAGS"
10999 LDFLAGS="$LDFLAGS -b"
11000 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11002 # The linker can only warn and ignore the option if not recognized
11003 # So say no if there are warnings
11004 if test -s conftest.err; then
11005 # Append any errors to the config.log.
11006 cat conftest.err 1>&5
11007 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11009 if diff conftest.exp conftest.er2 >/dev/null; then
11010 lt_cv_prog_compiler__b=yes
11011 fi
11012 else
11013 lt_cv_prog_compiler__b=yes
11014 fi
11015 fi
11016 $RM -r conftest*
11017 LDFLAGS="$save_LDFLAGS"
11018
11019fi
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11021$as_echo "$lt_cv_prog_compiler__b" >&6; }
11022
11023if test x"$lt_cv_prog_compiler__b" = xyes; then
11024 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11025else
11026 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11027fi
11028
542f9784 11029 ;;
11030 esac
11031 fi
11032 if test "$with_gnu_ld" = no; then
11033 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11034 hardcode_libdir_separator=:
11035
11036 case $host_cpu in
11037 hppa*64*|ia64*)
11038 hardcode_direct=no
11039 hardcode_shlibpath_var=no
11040 ;;
11041 *)
11042 hardcode_direct=yes
11043 hardcode_direct_absolute=yes
11044 export_dynamic_flag_spec='${wl}-E'
11045
11046 # hardcode_minus_L: Not really in the search PATH,
11047 # but as the default location of the library.
11048 hardcode_minus_L=yes
11049 ;;
11050 esac
11051 fi
11052 ;;
11053
11054 irix5* | irix6* | nonstopux*)
11055 if test "$GCC" = yes; then
e6408286 11056 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'
542f9784 11057 # Try to use the -exported_symbol ld option, if it does not
11058 # work, assume that -exports_file does not work either and
11059 # implicitly export all symbols.
11060 save_LDFLAGS="$LDFLAGS"
11061 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11062 if test x$gcc_no_link = xyes; then
f00f02a3 11063 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 11064fi
cd9a469c 11065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h. */
542f9784 11067int foo(void) {}
11068_ACEOF
cd9a469c 11069if ac_fn_c_try_link "$LINENO"; then :
e6408286 11070 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'
542f9784 11071
542f9784 11072fi
cd9a469c 11073rm -f core conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
542f9784 11075 LDFLAGS="$save_LDFLAGS"
11076 else
e6408286 11077 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'
11078 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'
542f9784 11079 fi
11080 archive_cmds_need_lc='no'
11081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11082 hardcode_libdir_separator=:
11083 inherit_rpath=yes
11084 link_all_deplibs=yes
11085 ;;
11086
11087 netbsd*)
11088 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11090 else
11091 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11092 fi
11093 hardcode_libdir_flag_spec='-R$libdir'
11094 hardcode_direct=yes
11095 hardcode_shlibpath_var=no
11096 ;;
11097
11098 newsos6)
11099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100 hardcode_direct=yes
11101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11102 hardcode_libdir_separator=:
11103 hardcode_shlibpath_var=no
11104 ;;
11105
11106 *nto* | *qnx*)
11107 ;;
11108
11109 openbsd*)
00aafda4 11110 if test -f /usr/libexec/ld.so; then
11111 hardcode_direct=yes
11112 hardcode_shlibpath_var=no
11113 hardcode_direct_absolute=yes
11114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 11115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 11116 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 11117 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
00aafda4 11118 export_dynamic_flag_spec='${wl}-E'
11119 else
11120 case $host_os in
11121 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11123 hardcode_libdir_flag_spec='-R$libdir'
11124 ;;
11125 *)
11126 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11128 ;;
11129 esac
11130 fi
11131 else
11132 ld_shlibs=no
542f9784 11133 fi
11134 ;;
11135
11136 os2*)
11137 hardcode_libdir_flag_spec='-L$libdir'
11138 hardcode_minus_L=yes
11139 allow_undefined_flag=unsupported
e6408286 11140 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'
542f9784 11141 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11142 ;;
11143
11144 osf3*)
11145 if test "$GCC" = yes; then
11146 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 11147 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'
542f9784 11148 else
11149 allow_undefined_flag=' -expect_unresolved \*'
e6408286 11150 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'
542f9784 11151 fi
11152 archive_cmds_need_lc='no'
11153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11154 hardcode_libdir_separator=:
11155 ;;
11156
11157 osf4* | osf5*) # as osf3* with the addition of -msym flag
11158 if test "$GCC" = yes; then
11159 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 11160 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'
542f9784 11161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11162 else
11163 allow_undefined_flag=' -expect_unresolved \*'
e6408286 11164 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'
542f9784 11165 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~
e6408286 11166 $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'
542f9784 11167
11168 # Both c and cxx compiler support -rpath directly
11169 hardcode_libdir_flag_spec='-rpath $libdir'
11170 fi
11171 archive_cmds_need_lc='no'
11172 hardcode_libdir_separator=:
11173 ;;
11174
11175 solaris*)
11176 no_undefined_flag=' -z defs'
11177 if test "$GCC" = yes; then
11178 wlarc='${wl}'
11179 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11181 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11182 else
11183 case `$CC -V 2>&1` in
11184 *"Compilers 5.0"*)
11185 wlarc=''
11186 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11187 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11188 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11189 ;;
11190 *)
11191 wlarc='${wl}'
11192 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11193 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11194 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11195 ;;
11196 esac
11197 fi
11198 hardcode_libdir_flag_spec='-R$libdir'
11199 hardcode_shlibpath_var=no
11200 case $host_os in
11201 solaris2.[0-5] | solaris2.[0-5].*) ;;
11202 *)
11203 # The compiler driver will combine and reorder linker options,
11204 # but understands `-z linker_flag'. GCC discards it without `$wl',
11205 # but is careful enough not to reorder.
11206 # Supported since Solaris 2.6 (maybe 2.5.1?)
11207 if test "$GCC" = yes; then
11208 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11209 else
11210 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11211 fi
11212 ;;
11213 esac
11214 link_all_deplibs=yes
11215 ;;
11216
11217 sunos4*)
11218 if test "x$host_vendor" = xsequent; then
11219 # Use $CC to link under sequent, because it throws in some extra .o
11220 # files that make .init and .fini sections work.
11221 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11222 else
11223 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11224 fi
11225 hardcode_libdir_flag_spec='-L$libdir'
11226 hardcode_direct=yes
11227 hardcode_minus_L=yes
11228 hardcode_shlibpath_var=no
11229 ;;
11230
11231 sysv4)
11232 case $host_vendor in
11233 sni)
11234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11235 hardcode_direct=yes # is this really true???
11236 ;;
11237 siemens)
11238 ## LD is ld it makes a PLAMLIB
11239 ## CC just makes a GrossModule.
11240 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11241 reload_cmds='$CC -r -o $output$reload_objs'
11242 hardcode_direct=no
11243 ;;
11244 motorola)
11245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11246 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11247 ;;
11248 esac
11249 runpath_var='LD_RUN_PATH'
11250 hardcode_shlibpath_var=no
11251 ;;
11252
11253 sysv4.3*)
11254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11255 hardcode_shlibpath_var=no
11256 export_dynamic_flag_spec='-Bexport'
11257 ;;
11258
11259 sysv4*MP*)
11260 if test -d /usr/nec; then
11261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11262 hardcode_shlibpath_var=no
11263 runpath_var=LD_RUN_PATH
11264 hardcode_runpath_var=yes
11265 ld_shlibs=yes
11266 fi
11267 ;;
11268
11269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11270 no_undefined_flag='${wl}-z,text'
11271 archive_cmds_need_lc=no
11272 hardcode_shlibpath_var=no
11273 runpath_var='LD_RUN_PATH'
11274
11275 if test "$GCC" = yes; then
11276 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11277 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11278 else
11279 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11280 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11281 fi
11282 ;;
11283
11284 sysv5* | sco3.2v5* | sco5v6*)
11285 # Note: We can NOT use -z defs as we might desire, because we do not
11286 # link with -lc, and that would cause any symbols used from libc to
11287 # always be unresolved, which means just about no library would
11288 # ever link correctly. If we're not using GNU ld we use -z text
11289 # though, which does catch some bad symbols but isn't as heavy-handed
11290 # as -z defs.
11291 no_undefined_flag='${wl}-z,text'
11292 allow_undefined_flag='${wl}-z,nodefs'
11293 archive_cmds_need_lc=no
11294 hardcode_shlibpath_var=no
11295 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11296 hardcode_libdir_separator=':'
11297 link_all_deplibs=yes
11298 export_dynamic_flag_spec='${wl}-Bexport'
11299 runpath_var='LD_RUN_PATH'
11300
11301 if test "$GCC" = yes; then
11302 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11303 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 else
11305 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 fi
11308 ;;
11309
11310 uts4*)
11311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11312 hardcode_libdir_flag_spec='-L$libdir'
11313 hardcode_shlibpath_var=no
11314 ;;
11315
11316 *)
11317 ld_shlibs=no
11318 ;;
11319 esac
11320
11321 if test x$host_vendor = xsni; then
11322 case $host in
11323 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11324 export_dynamic_flag_spec='${wl}-Blargedynsym'
11325 ;;
11326 esac
11327 fi
11328 fi
11329
cd9a469c 11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11331$as_echo "$ld_shlibs" >&6; }
542f9784 11332test "$ld_shlibs" = no && can_build_shared=no
11333
11334with_gnu_ld=$with_gnu_ld
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350#
11351# Do we need to explicitly link libc?
11352#
11353case "x$archive_cmds_need_lc" in
11354x|xyes)
11355 # Assume -lc should be added
11356 archive_cmds_need_lc=yes
11357
11358 if test "$enable_shared" = yes && test "$GCC" = yes; then
11359 case $archive_cmds in
11360 *'~'*)
11361 # FIXME: we may have to deal with multi-command sequences.
11362 ;;
11363 '$CC '*)
11364 # Test whether the compiler implicitly links with -lc since on some
11365 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11366 # to ld, don't add -lc before -lgcc.
cd9a469c 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11368$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
f00f02a3 11369if ${lt_cv_archive_cmds_need_lc+:} false; then :
cd9a469c 11370 $as_echo_n "(cached) " >&6
9e6fd619 11371else
11372 $RM conftest*
11373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 11374
cd9a469c 11375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 11376 (eval $ac_compile) 2>&5
11377 ac_status=$?
cd9a469c 11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 11380 soname=conftest
11381 lib=conftest
11382 libobjs=conftest.$ac_objext
11383 deplibs=
11384 wl=$lt_prog_compiler_wl
11385 pic_flag=$lt_prog_compiler_pic
11386 compiler_flags=-v
11387 linker_flags=-v
11388 verstring=
11389 output_objdir=.
11390 libname=conftest
11391 lt_save_allow_undefined_flag=$allow_undefined_flag
11392 allow_undefined_flag=
cd9a469c 11393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 11394 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11395 ac_status=$?
cd9a469c 11396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11397 test $ac_status = 0; }
9e6fd619 11398 then
11399 lt_cv_archive_cmds_need_lc=no
11400 else
11401 lt_cv_archive_cmds_need_lc=yes
11402 fi
11403 allow_undefined_flag=$lt_save_allow_undefined_flag
11404 else
11405 cat conftest.err 1>&5
11406 fi
11407 $RM conftest*
11408
11409fi
cd9a469c 11410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11411$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9e6fd619 11412 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
542f9784 11413 ;;
11414 esac
11415 fi
11416 ;;
11417esac
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
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
cd9a469c 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11576$as_echo_n "checking dynamic linker characteristics... " >&6; }
00aafda4 11577
11578if test "$GCC" = yes; then
542f9784 11579 case $host_os in
11580 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11581 *) lt_awk_arg="/^libraries:/" ;;
11582 esac
e6408286 11583 case $host_os in
11584 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11585 *) lt_sed_strip_eq="s,=/,/,g" ;;
11586 esac
11587 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11588 case $lt_search_path_spec in
11589 *\;*)
542f9784 11590 # if the path contains ";" then we assume it to be the separator
11591 # otherwise default to the standard path separator (i.e. ":") - it is
11592 # assumed that no part of a normal pathname contains ";" but that should
11593 # okay in the real world where ";" in dirpaths is itself problematic.
e6408286 11594 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11595 ;;
11596 *)
11597 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11598 ;;
11599 esac
542f9784 11600 # Ok, now we have the path, separated by spaces, we can step through it
11601 # and add multilib dir if necessary.
11602 lt_tmp_lt_search_path_spec=
11603 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11604 for lt_sys_path in $lt_search_path_spec; do
11605 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11606 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11607 else
11608 test -d "$lt_sys_path" && \
11609 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11610 fi
11611 done
e6408286 11612 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
542f9784 11613BEGIN {RS=" "; FS="/|\n";} {
11614 lt_foo="";
11615 lt_count=0;
11616 for (lt_i = NF; lt_i > 0; lt_i--) {
11617 if ($lt_i != "" && $lt_i != ".") {
11618 if ($lt_i == "..") {
11619 lt_count++;
11620 } else {
11621 if (lt_count == 0) {
11622 lt_foo="/" $lt_i lt_foo;
11623 } else {
11624 lt_count--;
11625 }
11626 }
11627 }
11628 }
11629 if (lt_foo != "") { lt_freq[lt_foo]++; }
11630 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11631}'`
e6408286 11632 # AWK program above erroneously prepends '/' to C:/dos/paths
11633 # for these hosts.
11634 case $host_os in
11635 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11636 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11637 esac
11638 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
542f9784 11639else
11640 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11641fi
11642library_names_spec=
11643libname_spec='lib$name'
11644soname_spec=
11645shrext_cmds=".so"
11646postinstall_cmds=
11647postuninstall_cmds=
11648finish_cmds=
11649finish_eval=
11650shlibpath_var=
11651shlibpath_overrides_runpath=unknown
11652version_type=none
11653dynamic_linker="$host_os ld.so"
11654sys_lib_dlsearch_path_spec="/lib /usr/lib"
11655need_lib_prefix=unknown
11656hardcode_into_libs=no
11657
11658# when you set need_version to no, make sure it does not cause -set_version
11659# flags to be left without arguments
11660need_version=unknown
11661
11662case $host_os in
11663aix3*)
11664 version_type=linux
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11666 shlibpath_var=LIBPATH
11667
11668 # AIX 3 has no versioning support, so we append a major version to the name.
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 ;;
11671
21e07d2f 11672aix[4-9]*)
542f9784 11673 version_type=linux
11674 need_lib_prefix=no
11675 need_version=no
11676 hardcode_into_libs=yes
11677 if test "$host_cpu" = ia64; then
11678 # AIX 5 supports IA64
11679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 else
11682 # With GCC up to 2.95.x, collect2 would create an import file
11683 # for dependence libraries. The import file would start with
11684 # the line `#! .'. This would cause the generated library to
11685 # depend on `.', always an invalid library. This was fixed in
11686 # development snapshots of GCC prior to 3.0.
11687 case $host_os in
11688 aix4 | aix4.[01] | aix4.[01].*)
11689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11690 echo ' yes '
11691 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11692 :
11693 else
11694 can_build_shared=no
11695 fi
11696 ;;
11697 esac
11698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11699 # soname into executable. Probably we can add versioning support to
11700 # collect2, so additional links can be useful in future.
11701 if test "$aix_use_runtimelinking" = yes; then
11702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11703 # instead of lib<name>.a to let people know that these are not
11704 # typical AIX shared libraries.
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706 else
11707 # We preserve .a as extension for shared libraries through AIX4.2
11708 # and later when we are not doing run time linking.
11709 library_names_spec='${libname}${release}.a $libname.a'
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 fi
11712 shlibpath_var=LIBPATH
11713 fi
11714 ;;
11715
11716amigaos*)
00aafda4 11717 case $host_cpu in
11718 powerpc)
11719 # Since July 2007 AmigaOS4 officially supports .so libraries.
11720 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11722 ;;
11723 m68k)
542f9784 11724 library_names_spec='$libname.ixlibrary $libname.a'
11725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 11726 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'
00aafda4 11727 ;;
11728 esac
542f9784 11729 ;;
11730
11731beos*)
11732 library_names_spec='${libname}${shared_ext}'
11733 dynamic_linker="$host_os ld.so"
11734 shlibpath_var=LIBRARY_PATH
11735 ;;
11736
11737bsdi[45]*)
11738 version_type=linux
11739 need_version=no
11740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11741 soname_spec='${libname}${release}${shared_ext}$major'
11742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11746 # the default ld.so.conf also contains /usr/contrib/lib and
11747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11748 # libtool to hard-code these into programs
11749 ;;
11750
00aafda4 11751cygwin* | mingw* | pw32* | cegcc*)
542f9784 11752 version_type=windows
11753 shrext_cmds=".dll"
11754 need_version=no
11755 need_lib_prefix=no
11756
00aafda4 11757 case $GCC,$host_os in
11758 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 11759 library_names_spec='$libname.dll.a'
11760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11761 postinstall_cmds='base_file=`basename \${file}`~
11762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11763 dldir=$destdir/`dirname \$dlpath`~
11764 test -d \$dldir || mkdir -p \$dldir~
11765 $install_prog $dir/$dlname \$dldir/$dlname~
11766 chmod a+x \$dldir/$dlname~
11767 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11768 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11769 fi'
11770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11771 dlpath=$dir/\$dldll~
11772 $RM \$dlpath'
11773 shlibpath_overrides_runpath=yes
11774
11775 case $host_os in
11776 cygwin*)
11777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11778 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 11779
11780 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
542f9784 11781 ;;
00aafda4 11782 mingw* | cegcc*)
542f9784 11783 # MinGW DLLs use traditional 'lib' prefix
11784 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 11785 ;;
11786 pw32*)
11787 # pw32 DLLs use 'pw' prefix rather than 'lib'
11788 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11789 ;;
11790 esac
11791 ;;
11792
11793 *)
11794 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11795 ;;
11796 esac
11797 dynamic_linker='Win32 ld.exe'
11798 # FIXME: first we should search . and the directory the executable is in
11799 shlibpath_var=PATH
11800 ;;
11801
11802darwin* | rhapsody*)
11803 dynamic_linker="$host_os dyld"
11804 version_type=darwin
11805 need_lib_prefix=no
11806 need_version=no
11807 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11808 soname_spec='${libname}${release}${major}$shared_ext'
11809 shlibpath_overrides_runpath=yes
11810 shlibpath_var=DYLD_LIBRARY_PATH
11811 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11812
11813 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11815 ;;
11816
11817dgux*)
11818 version_type=linux
11819 need_lib_prefix=no
11820 need_version=no
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 ;;
11825
542f9784 11826freebsd* | dragonfly*)
11827 # DragonFly does not have aout. When/if they implement a new
11828 # versioning mechanism, adjust this.
11829 if test -x /usr/bin/objformat; then
11830 objformat=`/usr/bin/objformat`
11831 else
11832 case $host_os in
30369aff 11833 freebsd[23].*) objformat=aout ;;
542f9784 11834 *) objformat=elf ;;
11835 esac
11836 fi
11837 version_type=freebsd-$objformat
11838 case $version_type in
11839 freebsd-elf*)
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11841 need_version=no
11842 need_lib_prefix=no
11843 ;;
11844 freebsd-*)
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11846 need_version=yes
11847 ;;
11848 esac
11849 shlibpath_var=LD_LIBRARY_PATH
11850 case $host_os in
30369aff 11851 freebsd2.*)
542f9784 11852 shlibpath_overrides_runpath=yes
11853 ;;
11854 freebsd3.[01]* | freebsdelf3.[01]*)
11855 shlibpath_overrides_runpath=yes
11856 hardcode_into_libs=yes
11857 ;;
11858 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11859 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11860 shlibpath_overrides_runpath=no
11861 hardcode_into_libs=yes
11862 ;;
11863 *) # from 4.6 on, and DragonFly
11864 shlibpath_overrides_runpath=yes
11865 hardcode_into_libs=yes
11866 ;;
11867 esac
11868 ;;
11869
11870gnu*)
11871 version_type=linux
11872 need_lib_prefix=no
11873 need_version=no
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 hardcode_into_libs=yes
11878 ;;
11879
e6408286 11880haiku*)
11881 version_type=linux
11882 need_lib_prefix=no
11883 need_version=no
11884 dynamic_linker="$host_os runtime_loader"
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 shlibpath_var=LIBRARY_PATH
11888 shlibpath_overrides_runpath=yes
11889 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11890 hardcode_into_libs=yes
11891 ;;
11892
542f9784 11893hpux9* | hpux10* | hpux11*)
11894 # Give a soname corresponding to the major version so that dld.sl refuses to
11895 # link against other versions.
11896 version_type=sunos
11897 need_lib_prefix=no
11898 need_version=no
11899 case $host_cpu in
11900 ia64*)
11901 shrext_cmds='.so'
11902 hardcode_into_libs=yes
11903 dynamic_linker="$host_os dld.so"
11904 shlibpath_var=LD_LIBRARY_PATH
11905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 if test "X$HPUX_IA64_MODE" = X32; then
11909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11910 else
11911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11912 fi
11913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11914 ;;
11915 hppa*64*)
11916 shrext_cmds='.sl'
11917 hardcode_into_libs=yes
11918 dynamic_linker="$host_os dld.sl"
11919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11922 soname_spec='${libname}${release}${shared_ext}$major'
11923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11925 ;;
11926 *)
11927 shrext_cmds='.sl'
11928 dynamic_linker="$host_os dld.sl"
11929 shlibpath_var=SHLIB_PATH
11930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932 soname_spec='${libname}${release}${shared_ext}$major'
11933 ;;
11934 esac
e6408286 11935 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 11936 postinstall_cmds='chmod 555 $lib'
e6408286 11937 # or fails outright, so override atomically:
11938 install_override_mode=555
542f9784 11939 ;;
11940
11941interix[3-9]*)
11942 version_type=linux
11943 need_lib_prefix=no
11944 need_version=no
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11948 shlibpath_var=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath=no
11950 hardcode_into_libs=yes
11951 ;;
11952
11953irix5* | irix6* | nonstopux*)
11954 case $host_os in
11955 nonstopux*) version_type=nonstopux ;;
11956 *)
11957 if test "$lt_cv_prog_gnu_ld" = yes; then
11958 version_type=linux
11959 else
11960 version_type=irix
11961 fi ;;
11962 esac
11963 need_lib_prefix=no
11964 need_version=no
11965 soname_spec='${libname}${release}${shared_ext}$major'
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11967 case $host_os in
11968 irix5* | nonstopux*)
11969 libsuff= shlibsuff=
11970 ;;
11971 *)
11972 case $LD in # libtool.m4 will add one of these switches to LD
11973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11974 libsuff= shlibsuff= libmagic=32-bit;;
11975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11976 libsuff=32 shlibsuff=N32 libmagic=N32;;
11977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11979 *) libsuff= shlibsuff= libmagic=never-match;;
11980 esac
11981 ;;
11982 esac
11983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11984 shlibpath_overrides_runpath=no
11985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11987 hardcode_into_libs=yes
11988 ;;
11989
11990# No shared lib support for Linux oldld, aout, or coff.
11991linux*oldld* | linux*aout* | linux*coff*)
11992 dynamic_linker=no
11993 ;;
11994
11995# This must be Linux ELF.
9af964d4 11996linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 11997 version_type=linux
11998 need_lib_prefix=no
11999 need_version=no
12000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12001 soname_spec='${libname}${release}${shared_ext}$major'
12002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=no
9e6fd619 12005
542f9784 12006 # Some binutils ld are patched to set DT_RUNPATH
f00f02a3 12007 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cd9a469c 12008 $as_echo_n "(cached) " >&6
9e6fd619 12009else
12010 lt_cv_shlibpath_overrides_runpath=no
12011 save_LDFLAGS=$LDFLAGS
12012 save_libdir=$libdir
12013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12015 if test x$gcc_no_link = xyes; then
f00f02a3 12016 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12017fi
cd9a469c 12018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12019/* end confdefs.h. */
12020
12021int
12022main ()
12023{
12024
12025 ;
12026 return 0;
12027}
12028_ACEOF
cd9a469c 12029if ac_fn_c_try_link "$LINENO"; then :
12030 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 12031 lt_cv_shlibpath_overrides_runpath=yes
542f9784 12032fi
542f9784 12033fi
cd9a469c 12034rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
9e6fd619 12036 LDFLAGS=$save_LDFLAGS
12037 libdir=$save_libdir
12038
12039fi
12040
12041 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 12042
12043 # This implies no fast_install, which is unacceptable.
12044 # Some rework will be needed to allow for fast_install
12045 # before this can be enabled.
12046 hardcode_into_libs=yes
12047
12048 # Append ld.so.conf contents to the search path
12049 if test -f /etc/ld.so.conf; then
e6408286 12050 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' ' '`
542f9784 12051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12052 fi
12053
12054 # We used to test for /lib/ld.so.1 and disable shared libraries on
12055 # powerpc, because MkLinux only supported shared libraries with the
12056 # GNU dynamic linker. Since this was broken with cross compilers,
12057 # most powerpc-linux boxes support dynamic linking these days and
12058 # people can always --disable-shared, the test was removed, and we
12059 # assume the GNU/Linux dynamic linker is in use.
12060 dynamic_linker='GNU/Linux ld.so'
12061 ;;
12062
12063netbsd*)
12064 version_type=sunos
12065 need_lib_prefix=no
12066 need_version=no
12067 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12070 dynamic_linker='NetBSD (a.out) ld.so'
12071 else
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 dynamic_linker='NetBSD ld.elf_so'
12075 fi
12076 shlibpath_var=LD_LIBRARY_PATH
12077 shlibpath_overrides_runpath=yes
12078 hardcode_into_libs=yes
12079 ;;
12080
12081newsos6)
12082 version_type=linux
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12084 shlibpath_var=LD_LIBRARY_PATH
12085 shlibpath_overrides_runpath=yes
12086 ;;
12087
12088*nto* | *qnx*)
12089 version_type=qnx
12090 need_lib_prefix=no
12091 need_version=no
12092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093 soname_spec='${libname}${release}${shared_ext}$major'
12094 shlibpath_var=LD_LIBRARY_PATH
12095 shlibpath_overrides_runpath=no
12096 hardcode_into_libs=yes
12097 dynamic_linker='ldqnx.so'
12098 ;;
12099
12100openbsd*)
12101 version_type=sunos
12102 sys_lib_dlsearch_path_spec="/usr/lib"
12103 need_lib_prefix=no
12104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12105 case $host_os in
12106 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12107 *) need_version=no ;;
12108 esac
12109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12111 shlibpath_var=LD_LIBRARY_PATH
12112 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12113 case $host_os in
12114 openbsd2.[89] | openbsd2.[89].*)
12115 shlibpath_overrides_runpath=no
12116 ;;
12117 *)
12118 shlibpath_overrides_runpath=yes
12119 ;;
12120 esac
12121 else
12122 shlibpath_overrides_runpath=yes
12123 fi
12124 ;;
12125
12126os2*)
12127 libname_spec='$name'
12128 shrext_cmds=".dll"
12129 need_lib_prefix=no
12130 library_names_spec='$libname${shared_ext} $libname.a'
12131 dynamic_linker='OS/2 ld.exe'
12132 shlibpath_var=LIBPATH
12133 ;;
12134
12135osf3* | osf4* | osf5*)
12136 version_type=osf
12137 need_lib_prefix=no
12138 need_version=no
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12144 ;;
12145
12146rdos*)
12147 dynamic_linker=no
12148 ;;
12149
12150solaris*)
12151 version_type=linux
12152 need_lib_prefix=no
12153 need_version=no
12154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12155 soname_spec='${libname}${release}${shared_ext}$major'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 shlibpath_overrides_runpath=yes
12158 hardcode_into_libs=yes
12159 # ldd complains unless libraries are executable
12160 postinstall_cmds='chmod +x $lib'
12161 ;;
12162
12163sunos4*)
12164 version_type=sunos
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12167 shlibpath_var=LD_LIBRARY_PATH
12168 shlibpath_overrides_runpath=yes
12169 if test "$with_gnu_ld" = yes; then
12170 need_lib_prefix=no
12171 fi
12172 need_version=yes
12173 ;;
12174
12175sysv4 | sysv4.3*)
12176 version_type=linux
12177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12178 soname_spec='${libname}${release}${shared_ext}$major'
12179 shlibpath_var=LD_LIBRARY_PATH
12180 case $host_vendor in
12181 sni)
12182 shlibpath_overrides_runpath=no
12183 need_lib_prefix=no
12184 runpath_var=LD_RUN_PATH
12185 ;;
12186 siemens)
12187 need_lib_prefix=no
12188 ;;
12189 motorola)
12190 need_lib_prefix=no
12191 need_version=no
12192 shlibpath_overrides_runpath=no
12193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12194 ;;
12195 esac
12196 ;;
12197
12198sysv4*MP*)
12199 if test -d /usr/nec ;then
12200 version_type=linux
12201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12202 soname_spec='$libname${shared_ext}.$major'
12203 shlibpath_var=LD_LIBRARY_PATH
12204 fi
12205 ;;
12206
12207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12208 version_type=freebsd-elf
12209 need_lib_prefix=no
12210 need_version=no
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12212 soname_spec='${libname}${release}${shared_ext}$major'
12213 shlibpath_var=LD_LIBRARY_PATH
12214 shlibpath_overrides_runpath=yes
12215 hardcode_into_libs=yes
12216 if test "$with_gnu_ld" = yes; then
12217 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12218 else
12219 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12220 case $host_os in
12221 sco3.2v5*)
12222 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12223 ;;
12224 esac
12225 fi
12226 sys_lib_dlsearch_path_spec='/usr/lib'
12227 ;;
12228
12229tpf*)
12230 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12231 version_type=linux
12232 need_lib_prefix=no
12233 need_version=no
00aafda4 12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=no
12237 hardcode_into_libs=yes
12238 ;;
12239
12240uts4*)
12241 version_type=linux
12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12243 soname_spec='${libname}${release}${shared_ext}$major'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 ;;
12246
12247*)
12248 dynamic_linker=no
12249 ;;
12250esac
cd9a469c 12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12252$as_echo "$dynamic_linker" >&6; }
542f9784 12253test "$dynamic_linker" = no && can_build_shared=no
12254
12255variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12256if test "$GCC" = yes; then
12257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12258fi
12259
00aafda4 12260if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12261 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12262fi
12263if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12264 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12265fi
12266
542f9784 12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
e6408286 12347
12348
12349
12350
12351
542f9784 12352
12353
12354
12355
12356
12357
cd9a469c 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12359$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 12360hardcode_action=
12361if test -n "$hardcode_libdir_flag_spec" ||
12362 test -n "$runpath_var" ||
12363 test "X$hardcode_automatic" = "Xyes" ; then
12364
12365 # We can hardcode non-existent directories.
12366 if test "$hardcode_direct" != no &&
12367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12368 # have to relink, otherwise we might link with an installed library
12369 # when we should be linking with a yet-to-be-installed one
12370 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12371 test "$hardcode_minus_L" != no; then
12372 # Linking always hardcodes the temporary library directory.
12373 hardcode_action=relink
12374 else
12375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12376 hardcode_action=immediate
12377 fi
12378else
12379 # We cannot hardcode anything, or else we can only hardcode existing
12380 # directories.
12381 hardcode_action=unsupported
12382fi
cd9a469c 12383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12384$as_echo "$hardcode_action" >&6; }
542f9784 12385
12386if test "$hardcode_action" = relink ||
12387 test "$inherit_rpath" = yes; then
12388 # Fast installation is not supported
12389 enable_fast_install=no
12390elif test "$shlibpath_overrides_runpath" = yes ||
12391 test "$enable_shared" = no; then
12392 # Fast installation is not necessary
12393 enable_fast_install=needless
12394fi
12395
12396
12397
12398
12399
12400
12401 if test "x$enable_dlopen" != xyes; then
12402 enable_dlopen=unknown
12403 enable_dlopen_self=unknown
12404 enable_dlopen_self_static=unknown
12405else
12406 lt_cv_dlopen=no
12407 lt_cv_dlopen_libs=
12408
12409 case $host_os in
12410 beos*)
12411 lt_cv_dlopen="load_add_on"
12412 lt_cv_dlopen_libs=
12413 lt_cv_dlopen_self=yes
12414 ;;
12415
00aafda4 12416 mingw* | pw32* | cegcc*)
542f9784 12417 lt_cv_dlopen="LoadLibrary"
12418 lt_cv_dlopen_libs=
12419 ;;
12420
12421 cygwin*)
12422 lt_cv_dlopen="dlopen"
12423 lt_cv_dlopen_libs=
12424 ;;
12425
12426 darwin*)
12427 # if libdl is installed we need to link against it
cd9a469c 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12429$as_echo_n "checking for dlopen in -ldl... " >&6; }
f00f02a3 12430if ${ac_cv_lib_dl_dlopen+:} false; then :
cd9a469c 12431 $as_echo_n "(cached) " >&6
542f9784 12432else
12433 ac_check_lib_save_LIBS=$LIBS
12434LIBS="-ldl $LIBS"
12435if test x$gcc_no_link = xyes; then
f00f02a3 12436 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12437fi
cd9a469c 12438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12439/* end confdefs.h. */
12440
cd9a469c 12441/* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
542f9784 12444#ifdef __cplusplus
12445extern "C"
12446#endif
542f9784 12447char dlopen ();
12448int
12449main ()
12450{
cd9a469c 12451return dlopen ();
542f9784 12452 ;
12453 return 0;
12454}
12455_ACEOF
cd9a469c 12456if ac_fn_c_try_link "$LINENO"; then :
542f9784 12457 ac_cv_lib_dl_dlopen=yes
12458else
cd9a469c 12459 ac_cv_lib_dl_dlopen=no
542f9784 12460fi
cd9a469c 12461rm -f core conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext conftest.$ac_ext
542f9784 12463LIBS=$ac_check_lib_save_LIBS
12464fi
cd9a469c 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12466$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
f00f02a3 12467if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
542f9784 12468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12469else
12470
12471 lt_cv_dlopen="dyld"
12472 lt_cv_dlopen_libs=
12473 lt_cv_dlopen_self=yes
12474
12475fi
12476
12477 ;;
12478
12479 *)
cd9a469c 12480 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
f00f02a3 12481if test "x$ac_cv_func_shl_load" = xyes; then :
542f9784 12482 lt_cv_dlopen="shl_load"
12483else
cd9a469c 12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12485$as_echo_n "checking for shl_load in -ldld... " >&6; }
f00f02a3 12486if ${ac_cv_lib_dld_shl_load+:} false; then :
cd9a469c 12487 $as_echo_n "(cached) " >&6
542f9784 12488else
12489 ac_check_lib_save_LIBS=$LIBS
12490LIBS="-ldld $LIBS"
12491if test x$gcc_no_link = xyes; then
f00f02a3 12492 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12493fi
cd9a469c 12494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12495/* end confdefs.h. */
12496
cd9a469c 12497/* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
542f9784 12500#ifdef __cplusplus
12501extern "C"
12502#endif
542f9784 12503char shl_load ();
12504int
12505main ()
12506{
cd9a469c 12507return shl_load ();
542f9784 12508 ;
12509 return 0;
12510}
12511_ACEOF
cd9a469c 12512if ac_fn_c_try_link "$LINENO"; then :
542f9784 12513 ac_cv_lib_dld_shl_load=yes
12514else
cd9a469c 12515 ac_cv_lib_dld_shl_load=no
542f9784 12516fi
cd9a469c 12517rm -f core conftest.err conftest.$ac_objext \
12518 conftest$ac_exeext conftest.$ac_ext
542f9784 12519LIBS=$ac_check_lib_save_LIBS
12520fi
cd9a469c 12521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12522$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
f00f02a3 12523if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
00aafda4 12524 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
542f9784 12525else
cd9a469c 12526 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
f00f02a3 12527if test "x$ac_cv_func_dlopen" = xyes; then :
542f9784 12528 lt_cv_dlopen="dlopen"
12529else
cd9a469c 12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12531$as_echo_n "checking for dlopen in -ldl... " >&6; }
f00f02a3 12532if ${ac_cv_lib_dl_dlopen+:} false; then :
cd9a469c 12533 $as_echo_n "(cached) " >&6
542f9784 12534else
12535 ac_check_lib_save_LIBS=$LIBS
12536LIBS="-ldl $LIBS"
12537if test x$gcc_no_link = xyes; then
f00f02a3 12538 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12539fi
cd9a469c 12540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12541/* end confdefs.h. */
12542
cd9a469c 12543/* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
542f9784 12546#ifdef __cplusplus
12547extern "C"
12548#endif
542f9784 12549char dlopen ();
12550int
12551main ()
12552{
cd9a469c 12553return dlopen ();
542f9784 12554 ;
12555 return 0;
12556}
12557_ACEOF
cd9a469c 12558if ac_fn_c_try_link "$LINENO"; then :
542f9784 12559 ac_cv_lib_dl_dlopen=yes
12560else
cd9a469c 12561 ac_cv_lib_dl_dlopen=no
542f9784 12562fi
cd9a469c 12563rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
542f9784 12565LIBS=$ac_check_lib_save_LIBS
12566fi
cd9a469c 12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12568$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
f00f02a3 12569if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
542f9784 12570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12571else
cd9a469c 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12573$as_echo_n "checking for dlopen in -lsvld... " >&6; }
f00f02a3 12574if ${ac_cv_lib_svld_dlopen+:} false; then :
cd9a469c 12575 $as_echo_n "(cached) " >&6
542f9784 12576else
12577 ac_check_lib_save_LIBS=$LIBS
12578LIBS="-lsvld $LIBS"
12579if test x$gcc_no_link = xyes; then
f00f02a3 12580 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12581fi
cd9a469c 12582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12583/* end confdefs.h. */
12584
cd9a469c 12585/* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
542f9784 12588#ifdef __cplusplus
12589extern "C"
12590#endif
542f9784 12591char dlopen ();
12592int
12593main ()
12594{
cd9a469c 12595return dlopen ();
542f9784 12596 ;
12597 return 0;
12598}
12599_ACEOF
cd9a469c 12600if ac_fn_c_try_link "$LINENO"; then :
542f9784 12601 ac_cv_lib_svld_dlopen=yes
12602else
cd9a469c 12603 ac_cv_lib_svld_dlopen=no
542f9784 12604fi
cd9a469c 12605rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
542f9784 12607LIBS=$ac_check_lib_save_LIBS
12608fi
cd9a469c 12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12610$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
f00f02a3 12611if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
542f9784 12612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12613else
cd9a469c 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12615$as_echo_n "checking for dld_link in -ldld... " >&6; }
f00f02a3 12616if ${ac_cv_lib_dld_dld_link+:} false; then :
cd9a469c 12617 $as_echo_n "(cached) " >&6
542f9784 12618else
12619 ac_check_lib_save_LIBS=$LIBS
12620LIBS="-ldld $LIBS"
12621if test x$gcc_no_link = xyes; then
f00f02a3 12622 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 12623fi
cd9a469c 12624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 12625/* end confdefs.h. */
12626
cd9a469c 12627/* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
542f9784 12630#ifdef __cplusplus
12631extern "C"
12632#endif
542f9784 12633char dld_link ();
12634int
12635main ()
12636{
cd9a469c 12637return dld_link ();
542f9784 12638 ;
12639 return 0;
12640}
12641_ACEOF
cd9a469c 12642if ac_fn_c_try_link "$LINENO"; then :
542f9784 12643 ac_cv_lib_dld_dld_link=yes
12644else
cd9a469c 12645 ac_cv_lib_dld_dld_link=no
542f9784 12646fi
cd9a469c 12647rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
542f9784 12649LIBS=$ac_check_lib_save_LIBS
12650fi
cd9a469c 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12652$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
f00f02a3 12653if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
00aafda4 12654 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
542f9784 12655fi
12656
12657
12658fi
12659
12660
12661fi
12662
12663
12664fi
12665
12666
12667fi
12668
12669
12670fi
12671
12672 ;;
12673 esac
12674
12675 if test "x$lt_cv_dlopen" != xno; then
12676 enable_dlopen=yes
12677 else
12678 enable_dlopen=no
12679 fi
12680
12681 case $lt_cv_dlopen in
12682 dlopen)
12683 save_CPPFLAGS="$CPPFLAGS"
12684 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12685
12686 save_LDFLAGS="$LDFLAGS"
12687 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12688
12689 save_LIBS="$LIBS"
12690 LIBS="$lt_cv_dlopen_libs $LIBS"
12691
cd9a469c 12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12693$as_echo_n "checking whether a program can dlopen itself... " >&6; }
f00f02a3 12694if ${lt_cv_dlopen_self+:} false; then :
cd9a469c 12695 $as_echo_n "(cached) " >&6
542f9784 12696else
12697 if test "$cross_compiling" = yes; then :
12698 lt_cv_dlopen_self=cross
12699else
12700 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12701 lt_status=$lt_dlunknown
12702 cat > conftest.$ac_ext <<_LT_EOF
69024fb7 12703#line 12703 "configure"
542f9784 12704#include "confdefs.h"
12705
12706#if HAVE_DLFCN_H
12707#include <dlfcn.h>
12708#endif
12709
12710#include <stdio.h>
12711
12712#ifdef RTLD_GLOBAL
12713# define LT_DLGLOBAL RTLD_GLOBAL
12714#else
12715# ifdef DL_GLOBAL
12716# define LT_DLGLOBAL DL_GLOBAL
12717# else
12718# define LT_DLGLOBAL 0
12719# endif
12720#endif
12721
12722/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12723 find out it does not work in some platform. */
12724#ifndef LT_DLLAZY_OR_NOW
12725# ifdef RTLD_LAZY
12726# define LT_DLLAZY_OR_NOW RTLD_LAZY
12727# else
12728# ifdef DL_LAZY
12729# define LT_DLLAZY_OR_NOW DL_LAZY
12730# else
12731# ifdef RTLD_NOW
12732# define LT_DLLAZY_OR_NOW RTLD_NOW
12733# else
12734# ifdef DL_NOW
12735# define LT_DLLAZY_OR_NOW DL_NOW
12736# else
12737# define LT_DLLAZY_OR_NOW 0
12738# endif
12739# endif
12740# endif
12741# endif
12742#endif
12743
e6408286 12744/* When -fvisbility=hidden is used, assume the code has been annotated
12745 correspondingly for the symbols needed. */
12746#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12747void fnord () __attribute__((visibility("default")));
12748#endif
12749
12750void fnord () { int i=42; }
542f9784 12751int main ()
12752{
12753 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12754 int status = $lt_dlunknown;
12755
12756 if (self)
12757 {
12758 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 12759 else
12760 {
12761 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12762 else puts (dlerror ());
12763 }
542f9784 12764 /* dlclose (self); */
12765 }
12766 else
12767 puts (dlerror ());
12768
00aafda4 12769 return status;
542f9784 12770}
12771_LT_EOF
cd9a469c 12772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 12773 (eval $ac_link) 2>&5
12774 ac_status=$?
cd9a469c 12775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12776 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 12777 (./conftest; exit; ) >&5 2>/dev/null
12778 lt_status=$?
12779 case x$lt_status in
12780 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12781 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12782 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12783 esac
12784 else :
12785 # compilation failed
12786 lt_cv_dlopen_self=no
12787 fi
12788fi
12789rm -fr conftest*
12790
12791
12792fi
cd9a469c 12793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12794$as_echo "$lt_cv_dlopen_self" >&6; }
542f9784 12795
12796 if test "x$lt_cv_dlopen_self" = xyes; then
12797 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cd9a469c 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12799$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
f00f02a3 12800if ${lt_cv_dlopen_self_static+:} false; then :
cd9a469c 12801 $as_echo_n "(cached) " >&6
542f9784 12802else
12803 if test "$cross_compiling" = yes; then :
12804 lt_cv_dlopen_self_static=cross
12805else
12806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12807 lt_status=$lt_dlunknown
12808 cat > conftest.$ac_ext <<_LT_EOF
69024fb7 12809#line 12809 "configure"
542f9784 12810#include "confdefs.h"
12811
12812#if HAVE_DLFCN_H
12813#include <dlfcn.h>
12814#endif
12815
12816#include <stdio.h>
12817
12818#ifdef RTLD_GLOBAL
12819# define LT_DLGLOBAL RTLD_GLOBAL
12820#else
12821# ifdef DL_GLOBAL
12822# define LT_DLGLOBAL DL_GLOBAL
12823# else
12824# define LT_DLGLOBAL 0
12825# endif
12826#endif
12827
12828/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12829 find out it does not work in some platform. */
12830#ifndef LT_DLLAZY_OR_NOW
12831# ifdef RTLD_LAZY
12832# define LT_DLLAZY_OR_NOW RTLD_LAZY
12833# else
12834# ifdef DL_LAZY
12835# define LT_DLLAZY_OR_NOW DL_LAZY
12836# else
12837# ifdef RTLD_NOW
12838# define LT_DLLAZY_OR_NOW RTLD_NOW
12839# else
12840# ifdef DL_NOW
12841# define LT_DLLAZY_OR_NOW DL_NOW
12842# else
12843# define LT_DLLAZY_OR_NOW 0
12844# endif
12845# endif
12846# endif
12847# endif
12848#endif
12849
e6408286 12850/* When -fvisbility=hidden is used, assume the code has been annotated
12851 correspondingly for the symbols needed. */
12852#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12853void fnord () __attribute__((visibility("default")));
12854#endif
12855
12856void fnord () { int i=42; }
542f9784 12857int main ()
12858{
12859 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12860 int status = $lt_dlunknown;
12861
12862 if (self)
12863 {
12864 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 12865 else
12866 {
12867 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12868 else puts (dlerror ());
12869 }
542f9784 12870 /* dlclose (self); */
12871 }
12872 else
12873 puts (dlerror ());
12874
00aafda4 12875 return status;
542f9784 12876}
12877_LT_EOF
cd9a469c 12878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 12879 (eval $ac_link) 2>&5
12880 ac_status=$?
cd9a469c 12881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12882 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 12883 (./conftest; exit; ) >&5 2>/dev/null
12884 lt_status=$?
12885 case x$lt_status in
12886 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12887 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12888 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12889 esac
12890 else :
12891 # compilation failed
12892 lt_cv_dlopen_self_static=no
12893 fi
12894fi
12895rm -fr conftest*
12896
12897
12898fi
cd9a469c 12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12900$as_echo "$lt_cv_dlopen_self_static" >&6; }
542f9784 12901 fi
12902
12903 CPPFLAGS="$save_CPPFLAGS"
12904 LDFLAGS="$save_LDFLAGS"
12905 LIBS="$save_LIBS"
12906 ;;
12907 esac
12908
12909 case $lt_cv_dlopen_self in
12910 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12911 *) enable_dlopen_self=unknown ;;
12912 esac
12913
12914 case $lt_cv_dlopen_self_static in
12915 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12916 *) enable_dlopen_self_static=unknown ;;
12917 esac
12918fi
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936striplib=
12937old_striplib=
cd9a469c 12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12939$as_echo_n "checking whether stripping libraries is possible... " >&6; }
542f9784 12940if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12941 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12942 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cd9a469c 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12944$as_echo "yes" >&6; }
542f9784 12945else
12946# FIXME - insert some real tests, host_os isn't really good enough
12947 case $host_os in
12948 darwin*)
12949 if test -n "$STRIP" ; then
12950 striplib="$STRIP -x"
12951 old_striplib="$STRIP -S"
cd9a469c 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12953$as_echo "yes" >&6; }
542f9784 12954 else
cd9a469c 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956$as_echo "no" >&6; }
542f9784 12957 fi
12958 ;;
12959 *)
cd9a469c 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961$as_echo "no" >&6; }
542f9784 12962 ;;
12963 esac
12964fi
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
e6408286 12977 # Report which library types will actually be built
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12979$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12981$as_echo "$can_build_shared" >&6; }
542f9784 12982
e6408286 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12984$as_echo_n "checking whether to build shared libraries... " >&6; }
12985 test "$can_build_shared" = "no" && enable_shared=no
542f9784 12986
e6408286 12987 # On AIX, shared libraries and static libraries use the same namespace, and
12988 # are all built from PIC.
12989 case $host_os in
12990 aix3*)
12991 test "$enable_shared" = yes && enable_static=no
12992 if test -n "$RANLIB"; then
12993 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12994 postinstall_cmds='$RANLIB $lib'
12995 fi
12996 ;;
542f9784 12997
e6408286 12998 aix[4-9]*)
12999 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13000 test "$enable_shared" = yes && enable_static=no
13001 fi
13002 ;;
13003 esac
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13005$as_echo "$enable_shared" >&6; }
542f9784 13006
e6408286 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13008$as_echo_n "checking whether to build static libraries... " >&6; }
13009 # Make sure either enable_shared or enable_static is yes.
13010 test "$enable_shared" = yes || enable_static=yes
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13012$as_echo "$enable_static" >&6; }
542f9784 13013
542f9784 13014
542f9784 13015
542f9784 13016
13017fi
542f9784 13018ac_ext=c
13019ac_cpp='$CPP $CPPFLAGS'
13020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022ac_compiler_gnu=$ac_cv_c_compiler_gnu
13023
e6408286 13024CC="$lt_save_CC"
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038 ac_config_commands="$ac_config_commands libtool"
13039
13040
13041
13042
13043# Only expand once:
13044
13045
13046
13047
8c35d268 13048
13049case $host in
13050 *-cygwin* | *-mingw*)
13051 # 'host' will be top-level target in the case of a target lib,
13052 # we must compare to with_cross_host to decide if this is a native
13053 # or cross-compiler and select where to install dlls appropriately.
13054 if test -n "$with_cross_host" &&
13055 test x"$with_cross_host" != x"no"; then
13056 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13057 else
13058 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13059 fi
13060 ;;
13061 *)
13062 lt_host_flags=
13063 ;;
13064esac
13065
13066
13067
13068
13069
e6408286 13070#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
542f9784 13071
e6408286 13072# We need gfortran to compile parts of the library
13073#AC_PROG_FC(gfortran)
13074FC="$GFORTRAN"
cd9a469c 13075ac_ext=${ac_fc_srcext-f}
13076ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13077ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 13078ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13079if test -n "$ac_tool_prefix"; then
e6408286 13080 for ac_prog in gfortran
542f9784 13081 do
13082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13085$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13086if ${ac_cv_prog_FC+:} false; then :
cd9a469c 13087 $as_echo_n "(cached) " >&6
542f9784 13088else
13089 if test -n "$FC"; then
13090 ac_cv_prog_FC="$FC" # Let the user override the test.
13091else
13092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093for as_dir in $PATH
13094do
13095 IFS=$as_save_IFS
13096 test -z "$as_dir" && as_dir=.
cd9a469c 13097 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 13099 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
cd9a469c 13100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 13101 break 2
13102 fi
13103done
cd9a469c 13104 done
13105IFS=$as_save_IFS
542f9784 13106
13107fi
13108fi
13109FC=$ac_cv_prog_FC
13110if test -n "$FC"; then
cd9a469c 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13112$as_echo "$FC" >&6; }
542f9784 13113else
cd9a469c 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115$as_echo "no" >&6; }
542f9784 13116fi
13117
cd9a469c 13118
542f9784 13119 test -n "$FC" && break
13120 done
13121fi
13122if test -z "$FC"; then
13123 ac_ct_FC=$FC
e6408286 13124 for ac_prog in gfortran
542f9784 13125do
13126 # Extract the first word of "$ac_prog", so it can be a program name with args.
13127set dummy $ac_prog; ac_word=$2
cd9a469c 13128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 13130if ${ac_cv_prog_ac_ct_FC+:} false; then :
cd9a469c 13131 $as_echo_n "(cached) " >&6
542f9784 13132else
13133 if test -n "$ac_ct_FC"; then
13134 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13135else
13136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137for as_dir in $PATH
13138do
13139 IFS=$as_save_IFS
13140 test -z "$as_dir" && as_dir=.
cd9a469c 13141 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 13142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 13143 ac_cv_prog_ac_ct_FC="$ac_prog"
cd9a469c 13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 13145 break 2
13146 fi
13147done
cd9a469c 13148 done
13149IFS=$as_save_IFS
542f9784 13150
13151fi
13152fi
13153ac_ct_FC=$ac_cv_prog_ac_ct_FC
13154if test -n "$ac_ct_FC"; then
cd9a469c 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13156$as_echo "$ac_ct_FC" >&6; }
542f9784 13157else
cd9a469c 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
542f9784 13160fi
13161
cd9a469c 13162
542f9784 13163 test -n "$ac_ct_FC" && break
82eaf560 13164done
13165
cd9a469c 13166 if test "x$ac_ct_FC" = x; then
13167 FC=""
13168 else
13169 case $cross_compiling:$ac_tool_warned in
13170yes:)
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13173ac_tool_warned=yes ;;
13174esac
13175 FC=$ac_ct_FC
13176 fi
542f9784 13177fi
13178
13179
13180# Provide some information about the compiler.
cd9a469c 13181$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13182set X $ac_compile
13183ac_compiler=$2
13184for ac_option in --version -v -V -qversion; do
13185 { { ac_try="$ac_compiler $ac_option >&5"
13186case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13189esac
13190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13191$as_echo "$ac_try_echo"; } >&5
13192 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
542f9784 13193 ac_status=$?
cd9a469c 13194 if test -s conftest.err; then
13195 sed '10a\
13196... rest of stderr output deleted ...
13197 10q' conftest.err >conftest.er1
13198 cat conftest.er1 >&5
cd9a469c 13199 fi
f00f02a3 13200 rm -f conftest.er1 conftest.err
cd9a469c 13201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13202 test $ac_status = 0; }
13203done
542f9784 13204rm -f a.out
13205
13206# If we don't use `.F' as extension, the preprocessor is not run on the
13207# input file. (Note that this only needs to work for GNU compilers.)
13208ac_save_ext=$ac_ext
13209ac_ext=F
cd9a469c 13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13211$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
f00f02a3 13212if ${ac_cv_fc_compiler_gnu+:} false; then :
cd9a469c 13213 $as_echo_n "(cached) " >&6
542f9784 13214else
cd9a469c 13215 cat > conftest.$ac_ext <<_ACEOF
542f9784 13216 program main
13217#ifndef __GNUC__
13218 choke me
13219#endif
13220
13221 end
13222_ACEOF
cd9a469c 13223if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 13224 ac_compiler_gnu=yes
13225else
cd9a469c 13226 ac_compiler_gnu=no
542f9784 13227fi
cd9a469c 13228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 13229ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13230
13231fi
cd9a469c 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13233$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
542f9784 13234ac_ext=$ac_save_ext
cd9a469c 13235ac_test_FCFLAGS=${FCFLAGS+set}
13236ac_save_FCFLAGS=$FCFLAGS
542f9784 13237FCFLAGS=
cd9a469c 13238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13239$as_echo_n "checking whether $FC accepts -g... " >&6; }
f00f02a3 13240if ${ac_cv_prog_fc_g+:} false; then :
cd9a469c 13241 $as_echo_n "(cached) " >&6
542f9784 13242else
13243 FCFLAGS=-g
cd9a469c 13244cat > conftest.$ac_ext <<_ACEOF
542f9784 13245 program main
13246
13247 end
13248_ACEOF
cd9a469c 13249if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 13250 ac_cv_prog_fc_g=yes
13251else
cd9a469c 13252 ac_cv_prog_fc_g=no
542f9784 13253fi
cd9a469c 13254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 13255
13256fi
cd9a469c 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13258$as_echo "$ac_cv_prog_fc_g" >&6; }
13259if test "$ac_test_FCFLAGS" = set; then
13260 FCFLAGS=$ac_save_FCFLAGS
542f9784 13261elif test $ac_cv_prog_fc_g = yes; then
13262 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13263 FCFLAGS="-g -O2"
13264 else
13265 FCFLAGS="-g"
13266 fi
13267else
13268 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13269 FCFLAGS="-O2"
13270 else
13271 FCFLAGS=
13272 fi
13273fi
13274
f00f02a3 13275if test $ac_compiler_gnu = yes; then
13276 GFC=yes
13277else
13278 GFC=
13279fi
542f9784 13280ac_ext=c
13281ac_cpp='$CPP $CPPFLAGS'
13282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13284ac_compiler_gnu=$ac_cv_c_compiler_gnu
13285
cd9a469c 13286 ac_ext=${ac_fc_srcext-f}
13287ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13288ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 13289ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13290
13291
e6408286 13292if test -z "$FC" || test "X$FC" = "Xno"; then
13293 _lt_disable_FC=yes
13294fi
13295
542f9784 13296archive_cmds_need_lc_FC=no
13297allow_undefined_flag_FC=
13298always_export_symbols_FC=no
13299archive_expsym_cmds_FC=
13300export_dynamic_flag_spec_FC=
13301hardcode_direct_FC=no
13302hardcode_direct_absolute_FC=no
13303hardcode_libdir_flag_spec_FC=
13304hardcode_libdir_flag_spec_ld_FC=
13305hardcode_libdir_separator_FC=
13306hardcode_minus_L_FC=no
13307hardcode_automatic_FC=no
13308inherit_rpath_FC=no
13309module_cmds_FC=
13310module_expsym_cmds_FC=
13311link_all_deplibs_FC=unknown
13312old_archive_cmds_FC=$old_archive_cmds
e6408286 13313reload_flag_FC=$reload_flag
13314reload_cmds_FC=$reload_cmds
542f9784 13315no_undefined_flag_FC=
13316whole_archive_flag_spec_FC=
13317enable_shared_with_static_runtimes_FC=no
13318
13319# Source file extension for fc test sources.
13320ac_ext=${ac_fc_srcext-f}
13321
13322# Object file extension for compiled fc test sources.
13323objext=o
13324objext_FC=$objext
13325
13326# No sense in running all these tests if we already determined that
13327# the FC compiler isn't working. Some variables (like enable_shared)
13328# are currently assumed to apply to all compilers on this platform,
13329# and will be corrupted by setting them based on a non-working compiler.
13330if test "$_lt_disable_FC" != yes; then
13331 # Code to be used in simple compile tests
13332 lt_simple_compile_test_code="\
13333 subroutine t
13334 return
13335 end
13336"
13337
13338 # Code to be used in simple link tests
13339 lt_simple_link_test_code="\
13340 program t
13341 end
13342"
13343
13344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13345
13346
13347
13348
13349
13350
13351# If no C compiler was specified, use CC.
13352LTCC=${LTCC-"$CC"}
13353
13354# If no C compiler flags were specified, use CFLAGS.
13355LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13356
13357# Allow CC to be a program name with arguments.
13358compiler=$CC
13359
13360
13361 # save warnings/boilerplate of simple test code
13362 ac_outfile=conftest.$ac_objext
13363echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13364eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13365_lt_compiler_boilerplate=`cat conftest.err`
13366$RM conftest*
13367
13368 ac_outfile=conftest.$ac_objext
13369echo "$lt_simple_link_test_code" >conftest.$ac_ext
13370eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13371_lt_linker_boilerplate=`cat conftest.err`
00aafda4 13372$RM -r conftest*
542f9784 13373
13374
13375 # Allow CC to be a program name with arguments.
13376 lt_save_CC="$CC"
00aafda4 13377 lt_save_GCC=$GCC
542f9784 13378 CC=${FC-"f95"}
13379 compiler=$CC
00aafda4 13380 GCC=$ac_cv_fc_compiler_gnu
13381
542f9784 13382 compiler_FC=$CC
13383 for cc_temp in $compiler""; do
13384 case $cc_temp in
13385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13387 \-*) ;;
13388 *) break;;
13389 esac
13390done
e6408286 13391cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 13392
13393
13394 if test -n "$compiler"; then
cd9a469c 13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13396$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13398$as_echo "$can_build_shared" >&6; }
542f9784 13399
cd9a469c 13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13401$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 13402 test "$can_build_shared" = "no" && enable_shared=no
13403
13404 # On AIX, shared libraries and static libraries use the same namespace, and
13405 # are all built from PIC.
13406 case $host_os in
13407 aix3*)
13408 test "$enable_shared" = yes && enable_static=no
13409 if test -n "$RANLIB"; then
13410 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13411 postinstall_cmds='$RANLIB $lib'
13412 fi
13413 ;;
21e07d2f 13414 aix[4-9]*)
542f9784 13415 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13416 test "$enable_shared" = yes && enable_static=no
13417 fi
13418 ;;
13419 esac
cd9a469c 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13421$as_echo "$enable_shared" >&6; }
542f9784 13422
cd9a469c 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13424$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 13425 # Make sure either enable_shared or enable_static is yes.
13426 test "$enable_shared" = yes || enable_static=yes
cd9a469c 13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13428$as_echo "$enable_static" >&6; }
542f9784 13429
13430 GCC_FC="$ac_cv_fc_compiler_gnu"
13431 LD_FC="$LD"
13432
13433 ## CAVEAT EMPTOR:
13434 ## There is no encapsulation within the following macros, do not change
13435 ## the running order or otherwise move them around unless you know exactly
13436 ## what you are doing...
13437 # Dependencies to place before and after the object being linked:
13438predep_objects_FC=
13439postdep_objects_FC=
13440predeps_FC=
13441postdeps_FC=
13442compiler_lib_search_path_FC=
13443
13444cat > conftest.$ac_ext <<_LT_EOF
13445 subroutine foo
13446 implicit none
13447 integer a
13448 a=0
13449 return
13450 end
13451_LT_EOF
13452
cd9a469c 13453if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 13454 (eval $ac_compile) 2>&5
13455 ac_status=$?
cd9a469c 13456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457 test $ac_status = 0; }; then
542f9784 13458 # Parse the compiler output and extract the necessary
13459 # objects, libraries and library flags.
13460
13461 # Sentinel used to keep track of whether or not we are before
13462 # the conftest object file.
13463 pre_test_object_deps_done=no
13464
00aafda4 13465 for p in `eval "$output_verbose_link_cmd"`; do
542f9784 13466 case $p in
13467
13468 -L* | -R* | -l*)
13469 # Some compilers place space between "-{L,R}" and the path.
13470 # Remove the space.
13471 if test $p = "-L" ||
13472 test $p = "-R"; then
13473 prev=$p
13474 continue
13475 else
13476 prev=
13477 fi
13478
13479 if test "$pre_test_object_deps_done" = no; then
13480 case $p in
13481 -L* | -R*)
13482 # Internal compiler library paths should come after those
13483 # provided the user. The postdeps already come after the
13484 # user supplied libs so there is no need to process them.
13485 if test -z "$compiler_lib_search_path_FC"; then
13486 compiler_lib_search_path_FC="${prev}${p}"
13487 else
13488 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13489 fi
13490 ;;
13491 # The "-l" case would never come before the object being
13492 # linked, so don't bother handling this case.
13493 esac
13494 else
13495 if test -z "$postdeps_FC"; then
13496 postdeps_FC="${prev}${p}"
13497 else
13498 postdeps_FC="${postdeps_FC} ${prev}${p}"
13499 fi
13500 fi
13501 ;;
13502
13503 *.$objext)
13504 # This assumes that the test object file only shows up
13505 # once in the compiler output.
13506 if test "$p" = "conftest.$objext"; then
13507 pre_test_object_deps_done=yes
13508 continue
13509 fi
13510
13511 if test "$pre_test_object_deps_done" = no; then
13512 if test -z "$predep_objects_FC"; then
13513 predep_objects_FC="$p"
13514 else
13515 predep_objects_FC="$predep_objects_FC $p"
13516 fi
13517 else
13518 if test -z "$postdep_objects_FC"; then
13519 postdep_objects_FC="$p"
13520 else
13521 postdep_objects_FC="$postdep_objects_FC $p"
13522 fi
13523 fi
13524 ;;
13525
13526 *) ;; # Ignore the rest.
13527
13528 esac
13529 done
13530
13531 # Clean up.
13532 rm -f a.out a.exe
13533else
13534 echo "libtool.m4: error: problem compiling FC test program"
13535fi
13536
13537$RM -f confest.$objext
13538
13539# PORTME: override above test on systems where it is broken
13540
13541
13542case " $postdeps_FC " in
13543*" -lc "*) archive_cmds_need_lc_FC=no ;;
13544esac
00aafda4 13545 compiler_lib_search_dirs_FC=
13546if test -n "${compiler_lib_search_path_FC}"; then
13547 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13548fi
13549
13550
13551
13552
13553
542f9784 13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580 lt_prog_compiler_wl_FC=
13581lt_prog_compiler_pic_FC=
13582lt_prog_compiler_static_FC=
13583
cd9a469c 13584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13585$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 13586
13587 if test "$GCC" = yes; then
13588 lt_prog_compiler_wl_FC='-Wl,'
13589 lt_prog_compiler_static_FC='-static'
13590
13591 case $host_os in
13592 aix*)
13593 # All AIX code is PIC.
13594 if test "$host_cpu" = ia64; then
13595 # AIX 5 now supports IA64 processor
13596 lt_prog_compiler_static_FC='-Bstatic'
13597 fi
ccc0b0f9 13598 lt_prog_compiler_pic_FC='-fPIC'
542f9784 13599 ;;
13600
13601 amigaos*)
00aafda4 13602 case $host_cpu in
13603 powerpc)
13604 # see comment about AmigaOS4 .so support
13605 lt_prog_compiler_pic_FC='-fPIC'
13606 ;;
13607 m68k)
13608 # FIXME: we need at least 68020 code to build shared libraries, but
13609 # adding the `-m68020' flag to GCC prevents building anything better,
13610 # like `-m68040'.
13611 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13612 ;;
13613 esac
542f9784 13614 ;;
13615
13616 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13617 # PIC is the default for these OSes.
13618 ;;
13619
00aafda4 13620 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 13621 # This hack is so that the source file can tell whether it is being
13622 # built for inclusion in a dll (and should export symbols for example).
13623 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13624 # (--disable-auto-import) libraries
13625 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13626 ;;
13627
13628 darwin* | rhapsody*)
13629 # PIC is the default on this platform
13630 # Common symbols not allowed in MH_DYLIB files
13631 lt_prog_compiler_pic_FC='-fno-common'
13632 ;;
13633
e6408286 13634 haiku*)
13635 # PIC is the default for Haiku.
13636 # The "-static" flag exists, but is broken.
13637 lt_prog_compiler_static_FC=
13638 ;;
13639
542f9784 13640 hpux*)
00aafda4 13641 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13642 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13643 # sets the default TLS model and affects inlining.
542f9784 13644 case $host_cpu in
00aafda4 13645 hppa*64*)
542f9784 13646 # +Z the default
13647 ;;
13648 *)
13649 lt_prog_compiler_pic_FC='-fPIC'
13650 ;;
13651 esac
13652 ;;
13653
13654 interix[3-9]*)
13655 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13656 # Instead, we relocate shared libraries at runtime.
13657 ;;
13658
13659 msdosdjgpp*)
13660 # Just because we use GCC doesn't mean we suddenly get shared libraries
13661 # on systems that don't support them.
13662 lt_prog_compiler_can_build_shared_FC=no
13663 enable_shared=no
13664 ;;
13665
13666 *nto* | *qnx*)
13667 # QNX uses GNU C++, but need to define -shared option too, otherwise
13668 # it will coredump.
13669 lt_prog_compiler_pic_FC='-fPIC -shared'
13670 ;;
13671
13672 sysv4*MP*)
13673 if test -d /usr/nec; then
13674 lt_prog_compiler_pic_FC=-Kconform_pic
13675 fi
13676 ;;
13677
13678 *)
13679 lt_prog_compiler_pic_FC='-fPIC'
13680 ;;
13681 esac
e6408286 13682
13683 case $cc_basename in
13684 nvcc*) # Cuda Compiler Driver 2.2
13685 lt_prog_compiler_wl_FC='-Xlinker '
13686 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13687 ;;
13688 esac
542f9784 13689 else
13690 # PORTME Check for flag to pass linker flags through the system compiler.
13691 case $host_os in
13692 aix*)
13693 lt_prog_compiler_wl_FC='-Wl,'
13694 if test "$host_cpu" = ia64; then
13695 # AIX 5 now supports IA64 processor
13696 lt_prog_compiler_static_FC='-Bstatic'
13697 else
13698 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13699 fi
13700 ;;
542f9784 13701
00aafda4 13702 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 13703 # This hack is so that the source file can tell whether it is being
13704 # built for inclusion in a dll (and should export symbols for example).
13705 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13706 ;;
13707
13708 hpux9* | hpux10* | hpux11*)
13709 lt_prog_compiler_wl_FC='-Wl,'
13710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13711 # not for PA HP-UX.
13712 case $host_cpu in
13713 hppa*64*|ia64*)
13714 # +Z the default
13715 ;;
13716 *)
13717 lt_prog_compiler_pic_FC='+Z'
13718 ;;
13719 esac
13720 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13721 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13722 ;;
13723
13724 irix5* | irix6* | nonstopux*)
13725 lt_prog_compiler_wl_FC='-Wl,'
13726 # PIC (with -KPIC) is the default.
13727 lt_prog_compiler_static_FC='-non_shared'
13728 ;;
13729
9af964d4 13730 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 13731 case $cc_basename in
00aafda4 13732 # old Intel for x86_64 which still supported -KPIC.
13733 ecc*)
542f9784 13734 lt_prog_compiler_wl_FC='-Wl,'
13735 lt_prog_compiler_pic_FC='-KPIC'
13736 lt_prog_compiler_static_FC='-static'
13737 ;;
00aafda4 13738 # icc used to be incompatible with GCC.
13739 # ICC 10 doesn't accept -KPIC any more.
13740 icc* | ifort*)
13741 lt_prog_compiler_wl_FC='-Wl,'
13742 lt_prog_compiler_pic_FC='-fPIC'
13743 lt_prog_compiler_static_FC='-static'
13744 ;;
13745 # Lahey Fortran 8.1.
13746 lf95*)
13747 lt_prog_compiler_wl_FC='-Wl,'
13748 lt_prog_compiler_pic_FC='--shared'
13749 lt_prog_compiler_static_FC='--static'
13750 ;;
e6408286 13751 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 13752 # Portland Group compilers (*not* the Pentium gcc compiler,
13753 # which looks to be a dead project)
13754 lt_prog_compiler_wl_FC='-Wl,'
13755 lt_prog_compiler_pic_FC='-fpic'
13756 lt_prog_compiler_static_FC='-Bstatic'
13757 ;;
13758 ccc*)
13759 lt_prog_compiler_wl_FC='-Wl,'
13760 # All Alpha code is PIC.
13761 lt_prog_compiler_static_FC='-non_shared'
13762 ;;
e6408286 13763 xl* | bgxl* | bgf* | mpixl*)
13764 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
00aafda4 13765 lt_prog_compiler_wl_FC='-Wl,'
13766 lt_prog_compiler_pic_FC='-qpic'
13767 lt_prog_compiler_static_FC='-qstaticlink'
13768 ;;
542f9784 13769 *)
13770 case `$CC -V 2>&1 | sed 5q` in
e6408286 13771 *Sun\ F* | *Sun*Fortran*)
13772 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 13773 lt_prog_compiler_pic_FC='-KPIC'
13774 lt_prog_compiler_static_FC='-Bstatic'
e6408286 13775 lt_prog_compiler_wl_FC=''
542f9784 13776 ;;
e6408286 13777 *Sun\ C*)
13778 # Sun C 5.9
542f9784 13779 lt_prog_compiler_pic_FC='-KPIC'
13780 lt_prog_compiler_static_FC='-Bstatic'
e6408286 13781 lt_prog_compiler_wl_FC='-Wl,'
542f9784 13782 ;;
13783 esac
13784 ;;
13785 esac
13786 ;;
13787
13788 newsos6)
13789 lt_prog_compiler_pic_FC='-KPIC'
13790 lt_prog_compiler_static_FC='-Bstatic'
13791 ;;
13792
13793 *nto* | *qnx*)
13794 # QNX uses GNU C++, but need to define -shared option too, otherwise
13795 # it will coredump.
13796 lt_prog_compiler_pic_FC='-fPIC -shared'
13797 ;;
13798
13799 osf3* | osf4* | osf5*)
13800 lt_prog_compiler_wl_FC='-Wl,'
13801 # All OSF/1 code is PIC.
13802 lt_prog_compiler_static_FC='-non_shared'
13803 ;;
13804
13805 rdos*)
13806 lt_prog_compiler_static_FC='-non_shared'
13807 ;;
13808
13809 solaris*)
13810 lt_prog_compiler_pic_FC='-KPIC'
13811 lt_prog_compiler_static_FC='-Bstatic'
13812 case $cc_basename in
13813 f77* | f90* | f95*)
13814 lt_prog_compiler_wl_FC='-Qoption ld ';;
13815 *)
13816 lt_prog_compiler_wl_FC='-Wl,';;
13817 esac
13818 ;;
13819
13820 sunos4*)
13821 lt_prog_compiler_wl_FC='-Qoption ld '
13822 lt_prog_compiler_pic_FC='-PIC'
13823 lt_prog_compiler_static_FC='-Bstatic'
13824 ;;
13825
13826 sysv4 | sysv4.2uw2* | sysv4.3*)
13827 lt_prog_compiler_wl_FC='-Wl,'
13828 lt_prog_compiler_pic_FC='-KPIC'
13829 lt_prog_compiler_static_FC='-Bstatic'
13830 ;;
13831
13832 sysv4*MP*)
13833 if test -d /usr/nec ;then
13834 lt_prog_compiler_pic_FC='-Kconform_pic'
13835 lt_prog_compiler_static_FC='-Bstatic'
13836 fi
13837 ;;
13838
13839 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13840 lt_prog_compiler_wl_FC='-Wl,'
13841 lt_prog_compiler_pic_FC='-KPIC'
13842 lt_prog_compiler_static_FC='-Bstatic'
13843 ;;
13844
13845 unicos*)
13846 lt_prog_compiler_wl_FC='-Wl,'
13847 lt_prog_compiler_can_build_shared_FC=no
13848 ;;
13849
13850 uts4*)
13851 lt_prog_compiler_pic_FC='-pic'
13852 lt_prog_compiler_static_FC='-Bstatic'
13853 ;;
13854
13855 *)
13856 lt_prog_compiler_can_build_shared_FC=no
13857 ;;
13858 esac
13859 fi
13860
13861case $host_os in
13862 # For platforms which do not support PIC, -DPIC is meaningless:
13863 *djgpp*)
13864 lt_prog_compiler_pic_FC=
13865 ;;
13866 *)
13867 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13868 ;;
13869esac
cd9a469c 13870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13871$as_echo "$lt_prog_compiler_pic_FC" >&6; }
542f9784 13872
13873
13874
13875#
13876# Check to make sure the PIC flag actually works.
13877#
13878if test -n "$lt_prog_compiler_pic_FC"; then
cd9a469c 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13880$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
f00f02a3 13881if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
cd9a469c 13882 $as_echo_n "(cached) " >&6
542f9784 13883else
00aafda4 13884 lt_cv_prog_compiler_pic_works_FC=no
542f9784 13885 ac_outfile=conftest.$ac_objext
13886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13887 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13888 # Insert the option either (1) after the last *FLAGS variable, or
13889 # (2) before a word containing "conftest.", or (3) at the end.
13890 # Note that $ac_compile itself does not contain backslashes and begins
13891 # with a dollar sign (not a hyphen), so the echo should work correctly.
13892 # The option is referenced via a variable to avoid confusing sed.
13893 lt_compile=`echo "$ac_compile" | $SED \
13894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13896 -e 's:$: $lt_compiler_flag:'`
e6408286 13897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13898 (eval "$lt_compile" 2>conftest.err)
13899 ac_status=$?
13900 cat conftest.err >&5
e6408286 13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 13902 if (exit $ac_status) && test -s "$ac_outfile"; then
13903 # The compiler can only warn and ignore the option if not recognized
13904 # So say no if there are warnings other than the usual output.
e6408286 13905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 13906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 13908 lt_cv_prog_compiler_pic_works_FC=yes
542f9784 13909 fi
13910 fi
13911 $RM conftest*
13912
13913fi
cd9a469c 13914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13915$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
542f9784 13916
00aafda4 13917if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
542f9784 13918 case $lt_prog_compiler_pic_FC in
13919 "" | " "*) ;;
13920 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13921 esac
13922else
13923 lt_prog_compiler_pic_FC=
13924 lt_prog_compiler_can_build_shared_FC=no
13925fi
13926
13927fi
13928
13929
13930
13931#
13932# Check to make sure the static flag actually works.
13933#
13934wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
cd9a469c 13935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13936$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
f00f02a3 13937if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
cd9a469c 13938 $as_echo_n "(cached) " >&6
542f9784 13939else
00aafda4 13940 lt_cv_prog_compiler_static_works_FC=no
542f9784 13941 save_LDFLAGS="$LDFLAGS"
13942 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13945 # The linker can only warn and ignore the option if not recognized
13946 # So say no if there are warnings
13947 if test -s conftest.err; then
13948 # Append any errors to the config.log.
13949 cat conftest.err 1>&5
e6408286 13950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 13951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13952 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 13953 lt_cv_prog_compiler_static_works_FC=yes
542f9784 13954 fi
13955 else
00aafda4 13956 lt_cv_prog_compiler_static_works_FC=yes
542f9784 13957 fi
13958 fi
00aafda4 13959 $RM -r conftest*
542f9784 13960 LDFLAGS="$save_LDFLAGS"
13961
13962fi
cd9a469c 13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13964$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
542f9784 13965
00aafda4 13966if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
542f9784 13967 :
13968else
13969 lt_prog_compiler_static_FC=
13970fi
13971
13972
13973
13974
cd9a469c 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13976$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 13977if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
cd9a469c 13978 $as_echo_n "(cached) " >&6
542f9784 13979else
13980 lt_cv_prog_compiler_c_o_FC=no
13981 $RM -r conftest 2>/dev/null
13982 mkdir conftest
13983 cd conftest
13984 mkdir out
13985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13986
13987 lt_compiler_flag="-o out/conftest2.$ac_objext"
13988 # Insert the option either (1) after the last *FLAGS variable, or
13989 # (2) before a word containing "conftest.", or (3) at the end.
13990 # Note that $ac_compile itself does not contain backslashes and begins
13991 # with a dollar sign (not a hyphen), so the echo should work correctly.
13992 lt_compile=`echo "$ac_compile" | $SED \
13993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13995 -e 's:$: $lt_compiler_flag:'`
e6408286 13996 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 13997 (eval "$lt_compile" 2>out/conftest.err)
13998 ac_status=$?
13999 cat out/conftest.err >&5
e6408286 14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 14001 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14002 then
14003 # The compiler can only warn and ignore the option if not recognized
14004 # So say no if there are warnings
e6408286 14005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 14006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14008 lt_cv_prog_compiler_c_o_FC=yes
14009 fi
14010 fi
14011 chmod u+w . 2>&5
14012 $RM conftest*
14013 # SGI C++ compiler will create directory out/ii_files/ for
14014 # template instantiation
14015 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14016 $RM out/* && rmdir out
14017 cd ..
14018 $RM -r conftest
14019 $RM conftest*
14020
14021fi
cd9a469c 14022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14023$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 14024
14025
14026
cd9a469c 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14028$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 14029if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
cd9a469c 14030 $as_echo_n "(cached) " >&6
542f9784 14031else
14032 lt_cv_prog_compiler_c_o_FC=no
14033 $RM -r conftest 2>/dev/null
14034 mkdir conftest
14035 cd conftest
14036 mkdir out
14037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14038
14039 lt_compiler_flag="-o out/conftest2.$ac_objext"
14040 # Insert the option either (1) after the last *FLAGS variable, or
14041 # (2) before a word containing "conftest.", or (3) at the end.
14042 # Note that $ac_compile itself does not contain backslashes and begins
14043 # with a dollar sign (not a hyphen), so the echo should work correctly.
14044 lt_compile=`echo "$ac_compile" | $SED \
14045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14047 -e 's:$: $lt_compiler_flag:'`
e6408286 14048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 14049 (eval "$lt_compile" 2>out/conftest.err)
14050 ac_status=$?
14051 cat out/conftest.err >&5
e6408286 14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 14053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14054 then
14055 # The compiler can only warn and ignore the option if not recognized
14056 # So say no if there are warnings
e6408286 14057 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 14058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14060 lt_cv_prog_compiler_c_o_FC=yes
14061 fi
14062 fi
14063 chmod u+w . 2>&5
14064 $RM conftest*
14065 # SGI C++ compiler will create directory out/ii_files/ for
14066 # template instantiation
14067 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14068 $RM out/* && rmdir out
14069 cd ..
14070 $RM -r conftest
14071 $RM conftest*
14072
14073fi
cd9a469c 14074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14075$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 14076
14077
14078
14079
14080hard_links="nottested"
14081if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14082 # do not overwrite the value of need_locks provided by the user
cd9a469c 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14084$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 14085 hard_links=yes
14086 $RM conftest*
14087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14088 touch conftest.a
14089 ln conftest.a conftest.b 2>&5 || hard_links=no
14090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14092$as_echo "$hard_links" >&6; }
542f9784 14093 if test "$hard_links" = no; then
cd9a469c 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14095$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 14096 need_locks=warn
14097 fi
14098else
14099 need_locks=no
14100fi
14101
14102
14103
cd9a469c 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14105$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 14106
14107 runpath_var=
14108 allow_undefined_flag_FC=
14109 always_export_symbols_FC=no
14110 archive_cmds_FC=
14111 archive_expsym_cmds_FC=
14112 compiler_needs_object_FC=no
14113 enable_shared_with_static_runtimes_FC=no
14114 export_dynamic_flag_spec_FC=
14115 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14116 hardcode_automatic_FC=no
14117 hardcode_direct_FC=no
14118 hardcode_direct_absolute_FC=no
14119 hardcode_libdir_flag_spec_FC=
14120 hardcode_libdir_flag_spec_ld_FC=
14121 hardcode_libdir_separator_FC=
14122 hardcode_minus_L_FC=no
14123 hardcode_shlibpath_var_FC=unsupported
14124 inherit_rpath_FC=no
14125 link_all_deplibs_FC=unknown
14126 module_cmds_FC=
14127 module_expsym_cmds_FC=
14128 old_archive_from_new_cmds_FC=
14129 old_archive_from_expsyms_cmds_FC=
14130 thread_safe_flag_spec_FC=
14131 whole_archive_flag_spec_FC=
14132 # include_expsyms should be a list of space-separated symbols to be *always*
14133 # included in the symbol list
14134 include_expsyms_FC=
14135 # exclude_expsyms can be an extended regexp of symbols to exclude
14136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14138 # as well as any symbol that contains `d'.
00aafda4 14139 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 14140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14141 # platforms (ab)use it in PIC code, but their linkers get confused if
14142 # the symbol is explicitly referenced. Since portable code cannot
14143 # rely on this symbol name, it's probably fine to never include it in
14144 # preloaded symbol tables.
00aafda4 14145 # Exclude shared library initialization/finalization symbols.
542f9784 14146 extract_expsyms_cmds=
14147
14148 case $host_os in
00aafda4 14149 cygwin* | mingw* | pw32* | cegcc*)
542f9784 14150 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14151 # When not using gcc, we currently assume that we are using
14152 # Microsoft Visual C++.
14153 if test "$GCC" != yes; then
14154 with_gnu_ld=no
14155 fi
14156 ;;
14157 interix*)
14158 # we just hope/assume this is gcc and not c89 (= MSVC++)
14159 with_gnu_ld=yes
14160 ;;
14161 openbsd*)
14162 with_gnu_ld=no
14163 ;;
14164 esac
14165
14166 ld_shlibs_FC=yes
e6408286 14167
14168 # On some targets, GNU ld is compatible enough with the native linker
14169 # that we're better off using the native interface for both.
14170 lt_use_gnu_ld_interface=no
542f9784 14171 if test "$with_gnu_ld" = yes; then
e6408286 14172 case $host_os in
14173 aix*)
14174 # The AIX port of GNU ld has always aspired to compatibility
14175 # with the native linker. However, as the warning in the GNU ld
14176 # block says, versions before 2.19.5* couldn't really create working
14177 # shared libraries, regardless of the interface used.
14178 case `$LD -v 2>&1` in
14179 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14180 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14181 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14182 *)
14183 lt_use_gnu_ld_interface=yes
14184 ;;
14185 esac
14186 ;;
14187 *)
14188 lt_use_gnu_ld_interface=yes
14189 ;;
14190 esac
14191 fi
14192
14193 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 14194 # If archive_cmds runs LD, not CC, wlarc should be empty
14195 wlarc='${wl}'
14196
14197 # Set some defaults for GNU ld with shared library support. These
14198 # are reset later if shared libraries are not supported. Putting them
14199 # here allows them to be overridden if necessary.
14200 runpath_var=LD_RUN_PATH
14201 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14202 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14203 # ancient GNU ld didn't support --whole-archive et. al.
14204 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14205 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14206 else
14207 whole_archive_flag_spec_FC=
14208 fi
14209 supports_anon_versioning=no
14210 case `$LD -v 2>&1` in
e6408286 14211 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 14212 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14213 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14214 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14215 *\ 2.11.*) ;; # other 2.11 versions
14216 *) supports_anon_versioning=yes ;;
14217 esac
14218
14219 # See if GNU ld supports shared libraries.
14220 case $host_os in
21e07d2f 14221 aix[3-9]*)
542f9784 14222 # On AIX/PPC, the GNU linker is very broken
14223 if test "$host_cpu" != ia64; then
14224 ld_shlibs_FC=no
14225 cat <<_LT_EOF 1>&2
14226
e6408286 14227*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 14228*** to be unable to reliably create shared libraries on AIX.
14229*** Therefore, libtool is disabling shared libraries support. If you
e6408286 14230*** really care for shared libraries, you may want to install binutils
14231*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14232*** You will then need to restart the configuration process.
542f9784 14233
14234_LT_EOF
14235 fi
14236 ;;
14237
14238 amigaos*)
00aafda4 14239 case $host_cpu in
14240 powerpc)
14241 # see comment about AmigaOS4 .so support
14242 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14243 archive_expsym_cmds_FC=''
14244 ;;
14245 m68k)
14246 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)'
14247 hardcode_libdir_flag_spec_FC='-L$libdir'
14248 hardcode_minus_L_FC=yes
14249 ;;
14250 esac
542f9784 14251 ;;
14252
14253 beos*)
14254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14255 allow_undefined_flag_FC=unsupported
14256 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14257 # support --undefined. This deserves some investigation. FIXME
14258 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14259 else
14260 ld_shlibs_FC=no
14261 fi
14262 ;;
14263
00aafda4 14264 cygwin* | mingw* | pw32* | cegcc*)
542f9784 14265 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14266 # as there is no search path for DLLs.
14267 hardcode_libdir_flag_spec_FC='-L$libdir'
e6408286 14268 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
542f9784 14269 allow_undefined_flag_FC=unsupported
14270 always_export_symbols_FC=no
14271 enable_shared_with_static_runtimes_FC=yes
14272 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14273
14274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14275 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14276 # If the export-symbols file already is a .def file (1st line
14277 # is EXPORTS), use it as is; otherwise, prepend...
14278 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14279 cp $export_symbols $output_objdir/$soname.def;
14280 else
14281 echo EXPORTS > $output_objdir/$soname.def;
14282 cat $export_symbols >> $output_objdir/$soname.def;
14283 fi~
14284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14285 else
14286 ld_shlibs_FC=no
14287 fi
14288 ;;
14289
e6408286 14290 haiku*)
14291 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14292 link_all_deplibs_FC=yes
14293 ;;
14294
542f9784 14295 interix[3-9]*)
14296 hardcode_direct_FC=no
14297 hardcode_shlibpath_var_FC=no
14298 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14299 export_dynamic_flag_spec_FC='${wl}-E'
14300 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14301 # Instead, shared libraries are loaded at an image base (0x10000000 by
14302 # default) and relocated if they conflict, which is a slow very memory
14303 # consuming and fragmenting process. To avoid this, we pick a random,
14304 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14305 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14306 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'
14307 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'
14308 ;;
14309
9af964d4 14310 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 14311 tmp_diet=no
14312 if test "$host_os" = linux-dietlibc; then
14313 case $cc_basename in
14314 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14315 esac
14316 fi
14317 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14318 && test "$tmp_diet" = no
14319 then
4e8a08d4 14320 tmp_addflag=' $pic_flag'
00aafda4 14321 tmp_sharedflag='-shared'
542f9784 14322 case $cc_basename,$host_cpu in
14323 pgcc*) # Portland Group C compiler
e6408286 14324 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'
542f9784 14325 tmp_addflag=' $pic_flag'
14326 ;;
e6408286 14327 pgf77* | pgf90* | pgf95* | pgfortran*)
14328 # Portland Group f77 and f90 compilers
14329 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'
542f9784 14330 tmp_addflag=' $pic_flag -Mnomain' ;;
14331 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14332 tmp_addflag=' -i_dynamic' ;;
14333 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14334 tmp_addflag=' -i_dynamic -nofor_main' ;;
14335 ifc* | ifort*) # Intel Fortran compiler
14336 tmp_addflag=' -nofor_main' ;;
00aafda4 14337 lf95*) # Lahey Fortran 8.1
14338 whole_archive_flag_spec_FC=
14339 tmp_sharedflag='--shared' ;;
e6408286 14340 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
00aafda4 14341 tmp_sharedflag='-qmkshrobj'
14342 tmp_addflag= ;;
e6408286 14343 nvcc*) # Cuda Compiler Driver 2.2
14344 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'
14345 compiler_needs_object_FC=yes
14346 ;;
542f9784 14347 esac
14348 case `$CC -V 2>&1 | sed 5q` in
14349 *Sun\ C*) # Sun C 5.9
e6408286 14350 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'
542f9784 14351 compiler_needs_object_FC=yes
14352 tmp_sharedflag='-G' ;;
14353 *Sun\ F*) # Sun Fortran 8.3
14354 tmp_sharedflag='-G' ;;
542f9784 14355 esac
14356 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14357
14358 if test "x$supports_anon_versioning" = xyes; then
14359 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14361 echo "local: *; };" >> $output_objdir/$libname.ver~
14362 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14363 fi
00aafda4 14364
14365 case $cc_basename in
e6408286 14366 xlf* | bgf* | bgxlf* | mpixlf*)
00aafda4 14367 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14368 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14369 hardcode_libdir_flag_spec_FC=
14370 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14371 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14372 if test "x$supports_anon_versioning" = xyes; then
14373 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14375 echo "local: *; };" >> $output_objdir/$libname.ver~
14376 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14377 fi
14378 ;;
14379 esac
542f9784 14380 else
14381 ld_shlibs_FC=no
14382 fi
14383 ;;
14384
14385 netbsd*)
14386 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14387 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14388 wlarc=
14389 else
14390 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14391 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14392 fi
14393 ;;
14394
14395 solaris*)
14396 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14397 ld_shlibs_FC=no
14398 cat <<_LT_EOF 1>&2
14399
14400*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14401*** create shared libraries on Solaris systems. Therefore, libtool
14402*** is disabling shared libraries support. We urge you to upgrade GNU
14403*** binutils to release 2.9.1 or newer. Another option is to modify
14404*** your PATH or compiler configuration so that the native linker is
14405*** used, and then restart.
14406
14407_LT_EOF
14408 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14409 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14410 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14411 else
14412 ld_shlibs_FC=no
14413 fi
14414 ;;
14415
14416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14417 case `$LD -v 2>&1` in
14418 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14419 ld_shlibs_FC=no
14420 cat <<_LT_EOF 1>&2
14421
14422*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14423*** reliably create shared libraries on SCO systems. Therefore, libtool
14424*** is disabling shared libraries support. We urge you to upgrade GNU
14425*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14426*** your PATH or compiler configuration so that the native linker is
14427*** used, and then restart.
14428
14429_LT_EOF
14430 ;;
14431 *)
14432 # For security reasons, it is highly recommended that you always
14433 # use absolute paths for naming shared libraries, and exclude the
14434 # DT_RUNPATH tag from executables and libraries. But doing so
14435 # requires that you compile everything twice, which is a pain.
14436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14437 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14438 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14439 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14440 else
14441 ld_shlibs_FC=no
14442 fi
14443 ;;
14444 esac
14445 ;;
14446
14447 sunos4*)
14448 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14449 wlarc=
14450 hardcode_direct_FC=yes
14451 hardcode_shlibpath_var_FC=no
14452 ;;
14453
14454 *)
14455 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14456 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14457 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14458 else
14459 ld_shlibs_FC=no
14460 fi
14461 ;;
14462 esac
14463
14464 if test "$ld_shlibs_FC" = no; then
14465 runpath_var=
14466 hardcode_libdir_flag_spec_FC=
14467 export_dynamic_flag_spec_FC=
14468 whole_archive_flag_spec_FC=
14469 fi
14470 else
14471 # PORTME fill in a description of your system's linker (not GNU ld)
14472 case $host_os in
14473 aix3*)
14474 allow_undefined_flag_FC=unsupported
14475 always_export_symbols_FC=yes
14476 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'
14477 # Note: this linker hardcodes the directories in LIBPATH if there
14478 # are no directories specified by -L.
14479 hardcode_minus_L_FC=yes
14480 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14481 # Neither direct hardcoding nor static linking is supported with a
14482 # broken collect2.
14483 hardcode_direct_FC=unsupported
14484 fi
14485 ;;
14486
21e07d2f 14487 aix[4-9]*)
542f9784 14488 if test "$host_cpu" = ia64; then
14489 # On IA64, the linker does run time linking by default, so we don't
14490 # have to do anything special.
14491 aix_use_runtimelinking=no
14492 exp_sym_flag='-Bexport'
14493 no_entry_flag=""
14494 else
14495 # If we're using GNU nm, then we don't want the "-C" option.
14496 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 14497 # Also, AIX nm treats weak defined symbols like other global
14498 # defined symbols, whereas GNU nm marks them as "W".
542f9784 14499 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 14500 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'
542f9784 14501 else
8c596dcc 14502 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'
542f9784 14503 fi
14504 aix_use_runtimelinking=no
14505
14506 # Test if we are trying to use run time linking or normal
14507 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14508 # need to do runtime linking.
21e07d2f 14509 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 14510 for ld_flag in $LDFLAGS; do
14511 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14512 aix_use_runtimelinking=yes
14513 break
14514 fi
14515 done
14516 ;;
14517 esac
14518
14519 exp_sym_flag='-bexport'
14520 no_entry_flag='-bnoentry'
14521 fi
14522
14523 # When large executables or shared objects are built, AIX ld can
14524 # have problems creating the table of contents. If linking a library
14525 # or program results in "error TOC overflow" add -mminimal-toc to
14526 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14527 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14528
14529 archive_cmds_FC=''
14530 hardcode_direct_FC=yes
14531 hardcode_direct_absolute_FC=yes
14532 hardcode_libdir_separator_FC=':'
14533 link_all_deplibs_FC=yes
14534 file_list_spec_FC='${wl}-f,'
14535
14536 if test "$GCC" = yes; then
14537 case $host_os in aix4.[012]|aix4.[012].*)
14538 # We only want to do this on AIX 4.2 and lower, the check
14539 # below for broken collect2 doesn't work under 4.3+
14540 collect2name=`${CC} -print-prog-name=collect2`
14541 if test -f "$collect2name" &&
14542 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14543 then
14544 # We have reworked collect2
14545 :
14546 else
14547 # We have old collect2
14548 hardcode_direct_FC=unsupported
14549 # It fails to find uninstalled libraries when the uninstalled
14550 # path is not listed in the libpath. Setting hardcode_minus_L
14551 # to unsupported forces relinking
14552 hardcode_minus_L_FC=yes
14553 hardcode_libdir_flag_spec_FC='-L$libdir'
14554 hardcode_libdir_separator_FC=
14555 fi
14556 ;;
14557 esac
14558 shared_flag='-shared'
14559 if test "$aix_use_runtimelinking" = yes; then
14560 shared_flag="$shared_flag "'${wl}-G'
14561 fi
14562 else
14563 # not using gcc
14564 if test "$host_cpu" = ia64; then
14565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14566 # chokes on -Wl,-G. The following line is correct:
14567 shared_flag='-G'
14568 else
14569 if test "$aix_use_runtimelinking" = yes; then
14570 shared_flag='${wl}-G'
14571 else
14572 shared_flag='${wl}-bM:SRE'
14573 fi
14574 fi
14575 fi
14576
00aafda4 14577 export_dynamic_flag_spec_FC='${wl}-bexpall'
542f9784 14578 # It seems that -bexpall does not export symbols beginning with
14579 # underscore (_), so it is better to generate a list of symbols to export.
14580 always_export_symbols_FC=yes
14581 if test "$aix_use_runtimelinking" = yes; then
14582 # Warning - without using the other runtime loading flags (-brtl),
14583 # -berok will link without error, but may produce a broken library.
14584 allow_undefined_flag_FC='-berok'
14585 # Determine the default libpath from the value encoded in an
14586 # empty executable.
14587 if test x$gcc_no_link = xyes; then
f00f02a3 14588 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14589fi
cd9a469c 14590cat > conftest.$ac_ext <<_ACEOF
542f9784 14591 program main
14592
14593 end
14594_ACEOF
cd9a469c 14595if ac_fn_fc_try_link "$LINENO"; then :
542f9784 14596
14597lt_aix_libpath_sed='
14598 /Import File Strings/,/^$/ {
14599 /^0/ {
14600 s/^0 *\(.*\)$/\1/
14601 p
14602 }
14603 }'
14604aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14605# Check for a 64-bit object if we didn't find anything.
14606if test -z "$aix_libpath"; then
14607 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14608fi
542f9784 14609fi
cd9a469c 14610rm -f core conftest.err conftest.$ac_objext \
14611 conftest$ac_exeext conftest.$ac_ext
542f9784 14612if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14613
14614 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 14615 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"
542f9784 14616 else
14617 if test "$host_cpu" = ia64; then
14618 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14619 allow_undefined_flag_FC="-z nodefs"
14620 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"
14621 else
14622 # Determine the default libpath from the value encoded in an
14623 # empty executable.
14624 if test x$gcc_no_link = xyes; then
f00f02a3 14625 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14626fi
cd9a469c 14627cat > conftest.$ac_ext <<_ACEOF
542f9784 14628 program main
14629
14630 end
14631_ACEOF
cd9a469c 14632if ac_fn_fc_try_link "$LINENO"; then :
542f9784 14633
14634lt_aix_libpath_sed='
14635 /Import File Strings/,/^$/ {
14636 /^0/ {
14637 s/^0 *\(.*\)$/\1/
14638 p
14639 }
14640 }'
14641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14642# Check for a 64-bit object if we didn't find anything.
14643if test -z "$aix_libpath"; then
14644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14645fi
542f9784 14646fi
cd9a469c 14647rm -f core conftest.err conftest.$ac_objext \
14648 conftest$ac_exeext conftest.$ac_ext
542f9784 14649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14650
14651 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14652 # Warning - without using the other run time loading flags,
14653 # -berok will link without error, but may produce a broken library.
14654 no_undefined_flag_FC=' ${wl}-bernotok'
14655 allow_undefined_flag_FC=' ${wl}-berok'
e6408286 14656 if test "$with_gnu_ld" = yes; then
14657 # We only use this code for GNU lds that support --whole-archive.
14658 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14659 else
14660 # Exported symbols can be pulled into shared objects from archives
14661 whole_archive_flag_spec_FC='$convenience'
14662 fi
542f9784 14663 archive_cmds_need_lc_FC=yes
14664 # This is similar to how AIX traditionally builds its shared libraries.
14665 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'
14666 fi
14667 fi
14668 ;;
14669
14670 amigaos*)
00aafda4 14671 case $host_cpu in
14672 powerpc)
14673 # see comment about AmigaOS4 .so support
14674 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14675 archive_expsym_cmds_FC=''
14676 ;;
14677 m68k)
14678 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)'
14679 hardcode_libdir_flag_spec_FC='-L$libdir'
14680 hardcode_minus_L_FC=yes
14681 ;;
14682 esac
542f9784 14683 ;;
14684
14685 bsdi[45]*)
14686 export_dynamic_flag_spec_FC=-rdynamic
14687 ;;
14688
00aafda4 14689 cygwin* | mingw* | pw32* | cegcc*)
542f9784 14690 # When not using gcc, we currently assume that we are using
14691 # Microsoft Visual C++.
14692 # hardcode_libdir_flag_spec is actually meaningless, as there is
14693 # no search path for DLLs.
14694 hardcode_libdir_flag_spec_FC=' '
14695 allow_undefined_flag_FC=unsupported
14696 # Tell ltmain to make .lib files, not .a files.
14697 libext=lib
14698 # Tell ltmain to make .dll files, not .so files.
14699 shrext_cmds=".dll"
14700 # FIXME: Setting linknames here is a bad hack.
e6408286 14701 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 14702 # The linker will automatically build a .lib file if we build a DLL.
14703 old_archive_from_new_cmds_FC='true'
14704 # FIXME: Should let the user specify the lib program.
14705 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14706 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14707 enable_shared_with_static_runtimes_FC=yes
14708 ;;
14709
14710 darwin* | rhapsody*)
542f9784 14711
00aafda4 14712
14713 archive_cmds_need_lc_FC=no
14714 hardcode_direct_FC=no
14715 hardcode_automatic_FC=yes
14716 hardcode_shlibpath_var_FC=unsupported
e6408286 14717 if test "$lt_cv_ld_force_load" = "yes"; then
14718 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\"`'
14719 else
14720 whole_archive_flag_spec_FC=''
14721 fi
00aafda4 14722 link_all_deplibs_FC=yes
14723 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14724 case $cc_basename in
14725 ifort*) _lt_dar_can_shared=yes ;;
14726 *) _lt_dar_can_shared=$GCC ;;
14727 esac
14728 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 14729 output_verbose_link_cmd=func_echo_all
00aafda4 14730 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}"
14731 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14732 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}"
14733 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}"
14734
14735 else
14736 ld_shlibs_FC=no
14737 fi
14738
542f9784 14739 ;;
14740
14741 dgux*)
14742 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec_FC='-L$libdir'
14744 hardcode_shlibpath_var_FC=no
14745 ;;
14746
542f9784 14747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14748 # support. Future versions do this automatically, but an explicit c++rt0.o
14749 # does not break anything, and helps significantly (at the cost of a little
14750 # extra space).
14751 freebsd2.2*)
14752 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14753 hardcode_libdir_flag_spec_FC='-R$libdir'
14754 hardcode_direct_FC=yes
14755 hardcode_shlibpath_var_FC=no
14756 ;;
14757
14758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 14759 freebsd2.*)
542f9784 14760 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_direct_FC=yes
14762 hardcode_minus_L_FC=yes
14763 hardcode_shlibpath_var_FC=no
14764 ;;
14765
14766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14767 freebsd* | dragonfly*)
14768 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14769 hardcode_libdir_flag_spec_FC='-R$libdir'
14770 hardcode_direct_FC=yes
14771 hardcode_shlibpath_var_FC=no
14772 ;;
14773
14774 hpux9*)
14775 if test "$GCC" = yes; then
14776 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'
14777 else
14778 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'
14779 fi
14780 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14781 hardcode_libdir_separator_FC=:
14782 hardcode_direct_FC=yes
14783
14784 # hardcode_minus_L: Not really in the search PATH,
14785 # but as the default location of the library.
14786 hardcode_minus_L_FC=yes
14787 export_dynamic_flag_spec_FC='${wl}-E'
14788 ;;
14789
14790 hpux10*)
e6408286 14791 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 14792 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14793 else
14794 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14795 fi
14796 if test "$with_gnu_ld" = no; then
14797 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14798 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14799 hardcode_libdir_separator_FC=:
14800 hardcode_direct_FC=yes
14801 hardcode_direct_absolute_FC=yes
14802 export_dynamic_flag_spec_FC='${wl}-E'
14803 # hardcode_minus_L: Not really in the search PATH,
14804 # but as the default location of the library.
14805 hardcode_minus_L_FC=yes
14806 fi
14807 ;;
14808
14809 hpux11*)
e6408286 14810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 14811 case $host_cpu in
14812 hppa*64*)
14813 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14814 ;;
14815 ia64*)
00aafda4 14816 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 14817 ;;
14818 *)
14819 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14820 ;;
14821 esac
14822 else
14823 case $host_cpu in
14824 hppa*64*)
14825 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14826 ;;
14827 ia64*)
14828 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14829 ;;
14830 *)
e6408286 14831 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
542f9784 14832 ;;
14833 esac
14834 fi
14835 if test "$with_gnu_ld" = no; then
14836 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14837 hardcode_libdir_separator_FC=:
14838
14839 case $host_cpu in
14840 hppa*64*|ia64*)
14841 hardcode_direct_FC=no
14842 hardcode_shlibpath_var_FC=no
14843 ;;
14844 *)
14845 hardcode_direct_FC=yes
14846 hardcode_direct_absolute_FC=yes
14847 export_dynamic_flag_spec_FC='${wl}-E'
14848
14849 # hardcode_minus_L: Not really in the search PATH,
14850 # but as the default location of the library.
14851 hardcode_minus_L_FC=yes
14852 ;;
14853 esac
14854 fi
14855 ;;
14856
14857 irix5* | irix6* | nonstopux*)
14858 if test "$GCC" = yes; then
e6408286 14859 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'
542f9784 14860 # Try to use the -exported_symbol ld option, if it does not
14861 # work, assume that -exports_file does not work either and
14862 # implicitly export all symbols.
14863 save_LDFLAGS="$LDFLAGS"
14864 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14865 if test x$gcc_no_link = xyes; then
f00f02a3 14866 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 14867fi
cd9a469c 14868cat > conftest.$ac_ext <<_ACEOF
542f9784 14869int foo(void) {}
14870_ACEOF
cd9a469c 14871if ac_fn_fc_try_link "$LINENO"; then :
e6408286 14872 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'
542f9784 14873
542f9784 14874fi
cd9a469c 14875rm -f core conftest.err conftest.$ac_objext \
14876 conftest$ac_exeext conftest.$ac_ext
542f9784 14877 LDFLAGS="$save_LDFLAGS"
14878 else
e6408286 14879 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'
14880 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'
542f9784 14881 fi
14882 archive_cmds_need_lc_FC='no'
14883 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14884 hardcode_libdir_separator_FC=:
14885 inherit_rpath_FC=yes
14886 link_all_deplibs_FC=yes
14887 ;;
14888
14889 netbsd*)
14890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14891 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14892 else
14893 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14894 fi
14895 hardcode_libdir_flag_spec_FC='-R$libdir'
14896 hardcode_direct_FC=yes
14897 hardcode_shlibpath_var_FC=no
14898 ;;
14899
14900 newsos6)
14901 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14902 hardcode_direct_FC=yes
14903 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14904 hardcode_libdir_separator_FC=:
14905 hardcode_shlibpath_var_FC=no
14906 ;;
14907
14908 *nto* | *qnx*)
14909 ;;
14910
14911 openbsd*)
00aafda4 14912 if test -f /usr/libexec/ld.so; then
14913 hardcode_direct_FC=yes
14914 hardcode_shlibpath_var_FC=no
14915 hardcode_direct_absolute_FC=yes
14916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 14917 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 14918 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 14919 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
00aafda4 14920 export_dynamic_flag_spec_FC='${wl}-E'
14921 else
14922 case $host_os in
14923 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14924 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14925 hardcode_libdir_flag_spec_FC='-R$libdir'
14926 ;;
14927 *)
14928 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14929 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14930 ;;
14931 esac
14932 fi
14933 else
14934 ld_shlibs_FC=no
542f9784 14935 fi
14936 ;;
14937
14938 os2*)
14939 hardcode_libdir_flag_spec_FC='-L$libdir'
14940 hardcode_minus_L_FC=yes
14941 allow_undefined_flag_FC=unsupported
e6408286 14942 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'
542f9784 14943 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14944 ;;
14945
14946 osf3*)
14947 if test "$GCC" = yes; then
14948 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 14949 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'
542f9784 14950 else
14951 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 14952 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'
542f9784 14953 fi
14954 archive_cmds_need_lc_FC='no'
14955 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14956 hardcode_libdir_separator_FC=:
14957 ;;
14958
14959 osf4* | osf5*) # as osf3* with the addition of -msym flag
14960 if test "$GCC" = yes; then
14961 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 14962 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'
542f9784 14963 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14964 else
14965 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 14966 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'
542f9784 14967 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~
e6408286 14968 $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'
542f9784 14969
14970 # Both c and cxx compiler support -rpath directly
14971 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14972 fi
14973 archive_cmds_need_lc_FC='no'
14974 hardcode_libdir_separator_FC=:
14975 ;;
14976
14977 solaris*)
14978 no_undefined_flag_FC=' -z defs'
14979 if test "$GCC" = yes; then
14980 wlarc='${wl}'
14981 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14982 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14983 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14984 else
14985 case `$CC -V 2>&1` in
14986 *"Compilers 5.0"*)
14987 wlarc=''
14988 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14989 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14991 ;;
14992 *)
14993 wlarc='${wl}'
14994 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14996 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14997 ;;
14998 esac
14999 fi
15000 hardcode_libdir_flag_spec_FC='-R$libdir'
15001 hardcode_shlibpath_var_FC=no
15002 case $host_os in
15003 solaris2.[0-5] | solaris2.[0-5].*) ;;
15004 *)
15005 # The compiler driver will combine and reorder linker options,
15006 # but understands `-z linker_flag'. GCC discards it without `$wl',
15007 # but is careful enough not to reorder.
15008 # Supported since Solaris 2.6 (maybe 2.5.1?)
15009 if test "$GCC" = yes; then
15010 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15011 else
15012 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15013 fi
15014 ;;
15015 esac
15016 link_all_deplibs_FC=yes
15017 ;;
15018
15019 sunos4*)
15020 if test "x$host_vendor" = xsequent; then
15021 # Use $CC to link under sequent, because it throws in some extra .o
15022 # files that make .init and .fini sections work.
15023 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15024 else
15025 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15026 fi
15027 hardcode_libdir_flag_spec_FC='-L$libdir'
15028 hardcode_direct_FC=yes
15029 hardcode_minus_L_FC=yes
15030 hardcode_shlibpath_var_FC=no
15031 ;;
15032
15033 sysv4)
15034 case $host_vendor in
15035 sni)
15036 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15037 hardcode_direct_FC=yes # is this really true???
15038 ;;
15039 siemens)
15040 ## LD is ld it makes a PLAMLIB
15041 ## CC just makes a GrossModule.
15042 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15043 reload_cmds_FC='$CC -r -o $output$reload_objs'
15044 hardcode_direct_FC=no
15045 ;;
15046 motorola)
15047 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15048 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15049 ;;
15050 esac
15051 runpath_var='LD_RUN_PATH'
15052 hardcode_shlibpath_var_FC=no
15053 ;;
15054
15055 sysv4.3*)
15056 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15057 hardcode_shlibpath_var_FC=no
15058 export_dynamic_flag_spec_FC='-Bexport'
15059 ;;
15060
15061 sysv4*MP*)
15062 if test -d /usr/nec; then
15063 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15064 hardcode_shlibpath_var_FC=no
15065 runpath_var=LD_RUN_PATH
15066 hardcode_runpath_var=yes
15067 ld_shlibs_FC=yes
15068 fi
15069 ;;
15070
15071 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15072 no_undefined_flag_FC='${wl}-z,text'
15073 archive_cmds_need_lc_FC=no
15074 hardcode_shlibpath_var_FC=no
15075 runpath_var='LD_RUN_PATH'
15076
15077 if test "$GCC" = yes; then
15078 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15079 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15080 else
15081 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15082 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15083 fi
15084 ;;
15085
15086 sysv5* | sco3.2v5* | sco5v6*)
15087 # Note: We can NOT use -z defs as we might desire, because we do not
15088 # link with -lc, and that would cause any symbols used from libc to
15089 # always be unresolved, which means just about no library would
15090 # ever link correctly. If we're not using GNU ld we use -z text
15091 # though, which does catch some bad symbols but isn't as heavy-handed
15092 # as -z defs.
15093 no_undefined_flag_FC='${wl}-z,text'
15094 allow_undefined_flag_FC='${wl}-z,nodefs'
15095 archive_cmds_need_lc_FC=no
15096 hardcode_shlibpath_var_FC=no
15097 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15098 hardcode_libdir_separator_FC=':'
15099 link_all_deplibs_FC=yes
15100 export_dynamic_flag_spec_FC='${wl}-Bexport'
15101 runpath_var='LD_RUN_PATH'
15102
15103 if test "$GCC" = yes; then
15104 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15106 else
15107 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15108 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15109 fi
15110 ;;
15111
15112 uts4*)
15113 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114 hardcode_libdir_flag_spec_FC='-L$libdir'
15115 hardcode_shlibpath_var_FC=no
15116 ;;
15117
15118 *)
15119 ld_shlibs_FC=no
15120 ;;
15121 esac
15122
15123 if test x$host_vendor = xsni; then
15124 case $host in
15125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15126 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15127 ;;
15128 esac
15129 fi
15130 fi
15131
cd9a469c 15132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15133$as_echo "$ld_shlibs_FC" >&6; }
542f9784 15134test "$ld_shlibs_FC" = no && can_build_shared=no
15135
15136with_gnu_ld_FC=$with_gnu_ld
15137
15138
15139
15140
15141
15142
15143#
15144# Do we need to explicitly link libc?
15145#
15146case "x$archive_cmds_need_lc_FC" in
15147x|xyes)
15148 # Assume -lc should be added
15149 archive_cmds_need_lc_FC=yes
15150
15151 if test "$enable_shared" = yes && test "$GCC" = yes; then
15152 case $archive_cmds_FC in
15153 *'~'*)
15154 # FIXME: we may have to deal with multi-command sequences.
15155 ;;
15156 '$CC '*)
15157 # Test whether the compiler implicitly links with -lc since on some
15158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15159 # to ld, don't add -lc before -lgcc.
cd9a469c 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15161$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
f00f02a3 15162if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
cd9a469c 15163 $as_echo_n "(cached) " >&6
9e6fd619 15164else
15165 $RM conftest*
15166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 15167
cd9a469c 15168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 15169 (eval $ac_compile) 2>&5
15170 ac_status=$?
cd9a469c 15171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15172 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 15173 soname=conftest
15174 lib=conftest
15175 libobjs=conftest.$ac_objext
15176 deplibs=
15177 wl=$lt_prog_compiler_wl_FC
15178 pic_flag=$lt_prog_compiler_pic_FC
15179 compiler_flags=-v
15180 linker_flags=-v
15181 verstring=
15182 output_objdir=.
15183 libname=conftest
15184 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15185 allow_undefined_flag_FC=
cd9a469c 15186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 15187 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
90e67cff 15188 ac_status=$?
cd9a469c 15189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15190 test $ac_status = 0; }
9e6fd619 15191 then
15192 lt_cv_archive_cmds_need_lc_FC=no
15193 else
15194 lt_cv_archive_cmds_need_lc_FC=yes
15195 fi
15196 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15197 else
15198 cat conftest.err 1>&5
15199 fi
15200 $RM conftest*
15201
15202fi
cd9a469c 15203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15204$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
9e6fd619 15205 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
542f9784 15206 ;;
15207 esac
15208 fi
15209 ;;
15210esac
90e67cff 15211
90e67cff 15212
542f9784 15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
cd9a469c 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15276$as_echo_n "checking dynamic linker characteristics... " >&6; }
00aafda4 15277
542f9784 15278library_names_spec=
15279libname_spec='lib$name'
15280soname_spec=
15281shrext_cmds=".so"
15282postinstall_cmds=
15283postuninstall_cmds=
15284finish_cmds=
15285finish_eval=
15286shlibpath_var=
15287shlibpath_overrides_runpath=unknown
15288version_type=none
15289dynamic_linker="$host_os ld.so"
15290sys_lib_dlsearch_path_spec="/lib /usr/lib"
15291need_lib_prefix=unknown
15292hardcode_into_libs=no
15293
15294# when you set need_version to no, make sure it does not cause -set_version
15295# flags to be left without arguments
15296need_version=unknown
15297
15298case $host_os in
15299aix3*)
15300 version_type=linux
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15302 shlibpath_var=LIBPATH
15303
15304 # AIX 3 has no versioning support, so we append a major version to the name.
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 ;;
15307
21e07d2f 15308aix[4-9]*)
542f9784 15309 version_type=linux
15310 need_lib_prefix=no
15311 need_version=no
15312 hardcode_into_libs=yes
15313 if test "$host_cpu" = ia64; then
15314 # AIX 5 supports IA64
15315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 else
15318 # With GCC up to 2.95.x, collect2 would create an import file
15319 # for dependence libraries. The import file would start with
15320 # the line `#! .'. This would cause the generated library to
15321 # depend on `.', always an invalid library. This was fixed in
15322 # development snapshots of GCC prior to 3.0.
15323 case $host_os in
15324 aix4 | aix4.[01] | aix4.[01].*)
15325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15326 echo ' yes '
15327 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15328 :
15329 else
15330 can_build_shared=no
15331 fi
15332 ;;
15333 esac
15334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15335 # soname into executable. Probably we can add versioning support to
15336 # collect2, so additional links can be useful in future.
15337 if test "$aix_use_runtimelinking" = yes; then
15338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15339 # instead of lib<name>.a to let people know that these are not
15340 # typical AIX shared libraries.
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342 else
15343 # We preserve .a as extension for shared libraries through AIX4.2
15344 # and later when we are not doing run time linking.
15345 library_names_spec='${libname}${release}.a $libname.a'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 fi
15348 shlibpath_var=LIBPATH
15349 fi
15350 ;;
15351
15352amigaos*)
00aafda4 15353 case $host_cpu in
15354 powerpc)
15355 # Since July 2007 AmigaOS4 officially supports .so libraries.
15356 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 ;;
15359 m68k)
542f9784 15360 library_names_spec='$libname.ixlibrary $libname.a'
15361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 15362 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'
00aafda4 15363 ;;
15364 esac
542f9784 15365 ;;
15366
15367beos*)
15368 library_names_spec='${libname}${shared_ext}'
15369 dynamic_linker="$host_os ld.so"
15370 shlibpath_var=LIBRARY_PATH
15371 ;;
15372
15373bsdi[45]*)
15374 version_type=linux
15375 need_version=no
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15382 # the default ld.so.conf also contains /usr/contrib/lib and
15383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15384 # libtool to hard-code these into programs
15385 ;;
15386
00aafda4 15387cygwin* | mingw* | pw32* | cegcc*)
542f9784 15388 version_type=windows
15389 shrext_cmds=".dll"
15390 need_version=no
15391 need_lib_prefix=no
15392
00aafda4 15393 case $GCC,$host_os in
15394 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 15395 library_names_spec='$libname.dll.a'
15396 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15397 postinstall_cmds='base_file=`basename \${file}`~
15398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15399 dldir=$destdir/`dirname \$dlpath`~
15400 test -d \$dldir || mkdir -p \$dldir~
15401 $install_prog $dir/$dlname \$dldir/$dlname~
15402 chmod a+x \$dldir/$dlname~
15403 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15404 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15405 fi'
15406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15407 dlpath=$dir/\$dldll~
15408 $RM \$dlpath'
15409 shlibpath_overrides_runpath=yes
15410
15411 case $host_os in
15412 cygwin*)
15413 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15414 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 15415
542f9784 15416 ;;
00aafda4 15417 mingw* | cegcc*)
542f9784 15418 # MinGW DLLs use traditional 'lib' prefix
15419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 15420 ;;
15421 pw32*)
15422 # pw32 DLLs use 'pw' prefix rather than 'lib'
15423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424 ;;
15425 esac
15426 ;;
15427
15428 *)
15429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15430 ;;
15431 esac
15432 dynamic_linker='Win32 ld.exe'
15433 # FIXME: first we should search . and the directory the executable is in
15434 shlibpath_var=PATH
15435 ;;
15436
15437darwin* | rhapsody*)
15438 dynamic_linker="$host_os dyld"
15439 version_type=darwin
15440 need_lib_prefix=no
15441 need_version=no
15442 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15443 soname_spec='${libname}${release}${major}$shared_ext'
15444 shlibpath_overrides_runpath=yes
15445 shlibpath_var=DYLD_LIBRARY_PATH
15446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15447
15448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15449 ;;
15450
15451dgux*)
15452 version_type=linux
15453 need_lib_prefix=no
15454 need_version=no
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 shlibpath_var=LD_LIBRARY_PATH
15458 ;;
15459
542f9784 15460freebsd* | dragonfly*)
15461 # DragonFly does not have aout. When/if they implement a new
15462 # versioning mechanism, adjust this.
15463 if test -x /usr/bin/objformat; then
15464 objformat=`/usr/bin/objformat`
15465 else
15466 case $host_os in
30369aff 15467 freebsd[23].*) objformat=aout ;;
542f9784 15468 *) objformat=elf ;;
15469 esac
15470 fi
15471 version_type=freebsd-$objformat
15472 case $version_type in
15473 freebsd-elf*)
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15475 need_version=no
15476 need_lib_prefix=no
15477 ;;
15478 freebsd-*)
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15480 need_version=yes
15481 ;;
15482 esac
15483 shlibpath_var=LD_LIBRARY_PATH
15484 case $host_os in
30369aff 15485 freebsd2.*)
542f9784 15486 shlibpath_overrides_runpath=yes
15487 ;;
15488 freebsd3.[01]* | freebsdelf3.[01]*)
15489 shlibpath_overrides_runpath=yes
15490 hardcode_into_libs=yes
15491 ;;
15492 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15493 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15494 shlibpath_overrides_runpath=no
15495 hardcode_into_libs=yes
15496 ;;
15497 *) # from 4.6 on, and DragonFly
15498 shlibpath_overrides_runpath=yes
15499 hardcode_into_libs=yes
15500 ;;
15501 esac
15502 ;;
15503
15504gnu*)
15505 version_type=linux
15506 need_lib_prefix=no
15507 need_version=no
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 hardcode_into_libs=yes
15512 ;;
15513
e6408286 15514haiku*)
15515 version_type=linux
15516 need_lib_prefix=no
15517 need_version=no
15518 dynamic_linker="$host_os runtime_loader"
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15520 soname_spec='${libname}${release}${shared_ext}$major'
15521 shlibpath_var=LIBRARY_PATH
15522 shlibpath_overrides_runpath=yes
15523 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15524 hardcode_into_libs=yes
15525 ;;
15526
542f9784 15527hpux9* | hpux10* | hpux11*)
15528 # Give a soname corresponding to the major version so that dld.sl refuses to
15529 # link against other versions.
15530 version_type=sunos
15531 need_lib_prefix=no
15532 need_version=no
15533 case $host_cpu in
15534 ia64*)
15535 shrext_cmds='.so'
15536 hardcode_into_libs=yes
15537 dynamic_linker="$host_os dld.so"
15538 shlibpath_var=LD_LIBRARY_PATH
15539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 if test "X$HPUX_IA64_MODE" = X32; then
15543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15544 else
15545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15546 fi
15547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15548 ;;
15549 hppa*64*)
15550 shrext_cmds='.sl'
15551 hardcode_into_libs=yes
15552 dynamic_linker="$host_os dld.sl"
15553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556 soname_spec='${libname}${release}${shared_ext}$major'
15557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15559 ;;
15560 *)
15561 shrext_cmds='.sl'
15562 dynamic_linker="$host_os dld.sl"
15563 shlibpath_var=SHLIB_PATH
15564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 ;;
15568 esac
e6408286 15569 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 15570 postinstall_cmds='chmod 555 $lib'
e6408286 15571 # or fails outright, so override atomically:
15572 install_override_mode=555
542f9784 15573 ;;
15574
15575interix[3-9]*)
15576 version_type=linux
15577 need_lib_prefix=no
15578 need_version=no
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15582 shlibpath_var=LD_LIBRARY_PATH
15583 shlibpath_overrides_runpath=no
15584 hardcode_into_libs=yes
15585 ;;
15586
15587irix5* | irix6* | nonstopux*)
15588 case $host_os in
15589 nonstopux*) version_type=nonstopux ;;
15590 *)
15591 if test "$lt_cv_prog_gnu_ld" = yes; then
15592 version_type=linux
15593 else
15594 version_type=irix
15595 fi ;;
15596 esac
15597 need_lib_prefix=no
15598 need_version=no
15599 soname_spec='${libname}${release}${shared_ext}$major'
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15601 case $host_os in
15602 irix5* | nonstopux*)
15603 libsuff= shlibsuff=
15604 ;;
15605 *)
15606 case $LD in # libtool.m4 will add one of these switches to LD
15607 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15608 libsuff= shlibsuff= libmagic=32-bit;;
15609 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15610 libsuff=32 shlibsuff=N32 libmagic=N32;;
15611 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15612 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15613 *) libsuff= shlibsuff= libmagic=never-match;;
15614 esac
15615 ;;
15616 esac
15617 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15618 shlibpath_overrides_runpath=no
15619 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15620 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15621 hardcode_into_libs=yes
15622 ;;
15623
15624# No shared lib support for Linux oldld, aout, or coff.
15625linux*oldld* | linux*aout* | linux*coff*)
15626 dynamic_linker=no
15627 ;;
15628
15629# This must be Linux ELF.
9af964d4 15630linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 15631 version_type=linux
15632 need_lib_prefix=no
15633 need_version=no
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15637 shlibpath_var=LD_LIBRARY_PATH
15638 shlibpath_overrides_runpath=no
9e6fd619 15639
542f9784 15640 # Some binutils ld are patched to set DT_RUNPATH
f00f02a3 15641 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cd9a469c 15642 $as_echo_n "(cached) " >&6
9e6fd619 15643else
15644 lt_cv_shlibpath_overrides_runpath=no
15645 save_LDFLAGS=$LDFLAGS
15646 save_libdir=$libdir
15647 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15648 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15649 if test x$gcc_no_link = xyes; then
f00f02a3 15650 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
542f9784 15651fi
cd9a469c 15652cat > conftest.$ac_ext <<_ACEOF
542f9784 15653 program main
15654
15655 end
90e67cff 15656_ACEOF
cd9a469c 15657if ac_fn_fc_try_link "$LINENO"; then :
15658 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 15659 lt_cv_shlibpath_overrides_runpath=yes
542f9784 15660fi
90e67cff 15661fi
cd9a469c 15662rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
9e6fd619 15664 LDFLAGS=$save_LDFLAGS
15665 libdir=$save_libdir
15666
15667fi
15668
15669 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 15670
15671 # This implies no fast_install, which is unacceptable.
15672 # Some rework will be needed to allow for fast_install
15673 # before this can be enabled.
15674 hardcode_into_libs=yes
15675
15676 # Append ld.so.conf contents to the search path
15677 if test -f /etc/ld.so.conf; then
e6408286 15678 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' ' '`
542f9784 15679 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15680 fi
15681
15682 # We used to test for /lib/ld.so.1 and disable shared libraries on
15683 # powerpc, because MkLinux only supported shared libraries with the
15684 # GNU dynamic linker. Since this was broken with cross compilers,
15685 # most powerpc-linux boxes support dynamic linking these days and
15686 # people can always --disable-shared, the test was removed, and we
15687 # assume the GNU/Linux dynamic linker is in use.
15688 dynamic_linker='GNU/Linux ld.so'
15689 ;;
15690
15691netbsd*)
15692 version_type=sunos
15693 need_lib_prefix=no
15694 need_version=no
15695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15698 dynamic_linker='NetBSD (a.out) ld.so'
15699 else
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 dynamic_linker='NetBSD ld.elf_so'
15703 fi
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=yes
15706 hardcode_into_libs=yes
15707 ;;
15708
15709newsos6)
15710 version_type=linux
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=yes
15714 ;;
15715
15716*nto* | *qnx*)
15717 version_type=qnx
15718 need_lib_prefix=no
15719 need_version=no
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 shlibpath_overrides_runpath=no
15724 hardcode_into_libs=yes
15725 dynamic_linker='ldqnx.so'
15726 ;;
15727
15728openbsd*)
15729 version_type=sunos
15730 sys_lib_dlsearch_path_spec="/usr/lib"
15731 need_lib_prefix=no
15732 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15733 case $host_os in
15734 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15735 *) need_version=no ;;
15736 esac
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15741 case $host_os in
15742 openbsd2.[89] | openbsd2.[89].*)
15743 shlibpath_overrides_runpath=no
15744 ;;
15745 *)
15746 shlibpath_overrides_runpath=yes
15747 ;;
15748 esac
15749 else
15750 shlibpath_overrides_runpath=yes
15751 fi
15752 ;;
15753
15754os2*)
15755 libname_spec='$name'
15756 shrext_cmds=".dll"
15757 need_lib_prefix=no
15758 library_names_spec='$libname${shared_ext} $libname.a'
15759 dynamic_linker='OS/2 ld.exe'
15760 shlibpath_var=LIBPATH
15761 ;;
15762
15763osf3* | osf4* | osf5*)
15764 version_type=osf
15765 need_lib_prefix=no
15766 need_version=no
15767 soname_spec='${libname}${release}${shared_ext}$major'
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15771 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15772 ;;
15773
15774rdos*)
15775 dynamic_linker=no
15776 ;;
15777
15778solaris*)
15779 version_type=linux
15780 need_lib_prefix=no
15781 need_version=no
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783 soname_spec='${libname}${release}${shared_ext}$major'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 shlibpath_overrides_runpath=yes
15786 hardcode_into_libs=yes
15787 # ldd complains unless libraries are executable
15788 postinstall_cmds='chmod +x $lib'
15789 ;;
15790
15791sunos4*)
15792 version_type=sunos
15793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15794 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 shlibpath_overrides_runpath=yes
15797 if test "$with_gnu_ld" = yes; then
15798 need_lib_prefix=no
15799 fi
15800 need_version=yes
15801 ;;
15802
15803sysv4 | sysv4.3*)
15804 version_type=linux
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806 soname_spec='${libname}${release}${shared_ext}$major'
15807 shlibpath_var=LD_LIBRARY_PATH
15808 case $host_vendor in
15809 sni)
15810 shlibpath_overrides_runpath=no
15811 need_lib_prefix=no
15812 runpath_var=LD_RUN_PATH
15813 ;;
15814 siemens)
15815 need_lib_prefix=no
15816 ;;
15817 motorola)
15818 need_lib_prefix=no
15819 need_version=no
15820 shlibpath_overrides_runpath=no
15821 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15822 ;;
15823 esac
15824 ;;
15825
15826sysv4*MP*)
15827 if test -d /usr/nec ;then
15828 version_type=linux
15829 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15830 soname_spec='$libname${shared_ext}.$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 fi
15833 ;;
15834
15835sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15836 version_type=freebsd-elf
15837 need_lib_prefix=no
15838 need_version=no
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15840 soname_spec='${libname}${release}${shared_ext}$major'
15841 shlibpath_var=LD_LIBRARY_PATH
15842 shlibpath_overrides_runpath=yes
15843 hardcode_into_libs=yes
15844 if test "$with_gnu_ld" = yes; then
15845 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15846 else
15847 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15848 case $host_os in
15849 sco3.2v5*)
15850 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15851 ;;
15852 esac
15853 fi
15854 sys_lib_dlsearch_path_spec='/usr/lib'
15855 ;;
15856
15857tpf*)
15858 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15859 version_type=linux
15860 need_lib_prefix=no
15861 need_version=no
00aafda4 15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 15863 shlibpath_var=LD_LIBRARY_PATH
15864 shlibpath_overrides_runpath=no
15865 hardcode_into_libs=yes
15866 ;;
15867
15868uts4*)
15869 version_type=linux
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871 soname_spec='${libname}${release}${shared_ext}$major'
15872 shlibpath_var=LD_LIBRARY_PATH
15873 ;;
15874
15875*)
15876 dynamic_linker=no
15877 ;;
15878esac
cd9a469c 15879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15880$as_echo "$dynamic_linker" >&6; }
542f9784 15881test "$dynamic_linker" = no && can_build_shared=no
15882
15883variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15884if test "$GCC" = yes; then
15885 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
90e67cff 15886fi
90e67cff 15887
00aafda4 15888if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15889 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15890fi
15891if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15892 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15893fi
15894
90e67cff 15895
542f9784 15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
e6408286 15927
15928
542f9784 15929
15930
15931
cd9a469c 15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15933$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 15934hardcode_action_FC=
15935if test -n "$hardcode_libdir_flag_spec_FC" ||
15936 test -n "$runpath_var_FC" ||
15937 test "X$hardcode_automatic_FC" = "Xyes" ; then
15938
15939 # We can hardcode non-existent directories.
15940 if test "$hardcode_direct_FC" != no &&
15941 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15942 # have to relink, otherwise we might link with an installed library
15943 # when we should be linking with a yet-to-be-installed one
15944 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15945 test "$hardcode_minus_L_FC" != no; then
15946 # Linking always hardcodes the temporary library directory.
15947 hardcode_action_FC=relink
15948 else
15949 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15950 hardcode_action_FC=immediate
15951 fi
15952else
15953 # We cannot hardcode anything, or else we can only hardcode existing
15954 # directories.
15955 hardcode_action_FC=unsupported
90e67cff 15956fi
cd9a469c 15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15958$as_echo "$hardcode_action_FC" >&6; }
542f9784 15959
15960if test "$hardcode_action_FC" = relink ||
15961 test "$inherit_rpath_FC" = yes; then
15962 # Fast installation is not supported
15963 enable_fast_install=no
15964elif test "$shlibpath_overrides_runpath" = yes ||
15965 test "$enable_shared" = no; then
15966 # Fast installation is not necessary
15967 enable_fast_install=needless
90e67cff 15968fi
15969
542f9784 15970
15971
15972
15973
15974
15975
15976 fi # test -n "$compiler"
15977
00aafda4 15978 GCC=$lt_save_GCC
542f9784 15979 CC="$lt_save_CC"
15980fi # test "$_lt_disable_FC" != yes
15981
5c88bcbb 15982ac_ext=c
90973b19 15983ac_cpp='$CPP $CPPFLAGS'
15984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15986ac_compiler_gnu=$ac_cv_c_compiler_gnu
542f9784 15987
15988
15989
15990# extra LD Flags which are required for targets
15991case "${host}" in
15992 *-darwin*)
15993 # Darwin needs -single_module when linking libgfortran
15994 extra_ldflags_libgfortran=-Wl,-single_module
15995 ;;
15996esac
15997
15998
15999# We need a working compiler at that point, otherwise give a clear
16000# error message and bail out.
16001
cd9a469c 16002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16003$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16004ac_ext=${ac_fc_srcext-f}
16005ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16006ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 16007ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16008
cd9a469c 16009cat > conftest.$ac_ext <<_ACEOF
542f9784 16010
16011 program foo
16012 real, parameter :: bar = sin (12.34 / 2.5)
16013 end program foo
4ee9c684 16014_ACEOF
cd9a469c 16015if ac_fn_fc_try_compile "$LINENO"; then :
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16017$as_echo "yes" >&6; }
4ee9c684 16018else
cd9a469c 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020$as_echo "no" >&6; }
f00f02a3 16021 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
4ee9c684 16022
90973b19 16023fi
cd9a469c 16024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 16025ac_ext=c
16026ac_cpp='$CPP $CPPFLAGS'
16027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16029ac_compiler_gnu=$ac_cv_c_compiler_gnu
90973b19 16030
90973b19 16031
542f9784 16032
cd9a469c 16033# Check whether --enable-largefile was given.
16034if test "${enable_largefile+set}" = set; then :
16035 enableval=$enable_largefile;
16036fi
542f9784 16037
542f9784 16038if test "$enable_largefile" != no; then
16039
cd9a469c 16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16041$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
f00f02a3 16042if ${ac_cv_sys_largefile_CC+:} false; then :
cd9a469c 16043 $as_echo_n "(cached) " >&6
90973b19 16044else
542f9784 16045 ac_cv_sys_largefile_CC=no
16046 if test "$GCC" != yes; then
16047 ac_save_CC=$CC
16048 while :; do
cd9a469c 16049 # IRIX 6.2 and later do not support large files by default,
16050 # so use the C compiler's -n32 option if that helps.
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90973b19 16052/* end confdefs.h. */
542f9784 16053#include <sys/types.h>
16054 /* Check that off_t can represent 2**63 - 1 correctly.
16055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16056 since some C++ compilers masquerading as C compilers
16057 incorrectly reject 9223372036854775807. */
e38e222d 16058#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
cd9a469c 16059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16060 && LARGE_OFF_T % 2147483647 == 1)
16061 ? 1 : -1];
56c15991 16062int
16063main ()
16064{
56c15991 16065
16066 ;
16067 return 0;
16068}
16069_ACEOF
cd9a469c 16070 if ac_fn_c_try_compile "$LINENO"; then :
16071 break
56c15991 16072fi
cd9a469c 16073rm -f core conftest.err conftest.$ac_objext
16074 CC="$CC -n32"
16075 if ac_fn_c_try_compile "$LINENO"; then :
16076 ac_cv_sys_largefile_CC=' -n32'; break
16077fi
16078rm -f core conftest.err conftest.$ac_objext
16079 break
16080 done
16081 CC=$ac_save_CC
16082 rm -f conftest.$ac_ext
16083 fi
16084fi
16085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16086$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16087 if test "$ac_cv_sys_largefile_CC" != no; then
16088 CC=$CC$ac_cv_sys_largefile_CC
16089 fi
56c15991 16090
cd9a469c 16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16092$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
f00f02a3 16093if ${ac_cv_sys_file_offset_bits+:} false; then :
cd9a469c 16094 $as_echo_n "(cached) " >&6
16095else
16096 while :; do
16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 16098/* end confdefs.h. */
cd9a469c 16099#include <sys/types.h>
16100 /* Check that off_t can represent 2**63 - 1 correctly.
16101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16102 since some C++ compilers masquerading as C compilers
16103 incorrectly reject 9223372036854775807. */
e38e222d 16104#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
cd9a469c 16105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16106 && LARGE_OFF_T % 2147483647 == 1)
16107 ? 1 : -1];
56c15991 16108int
16109main ()
16110{
56c15991 16111
16112 ;
16113 return 0;
16114}
16115_ACEOF
cd9a469c 16116if ac_fn_c_try_compile "$LINENO"; then :
16117 ac_cv_sys_file_offset_bits=no; break
16118fi
16119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 16121/* end confdefs.h. */
cd9a469c 16122#define _FILE_OFFSET_BITS 64
16123#include <sys/types.h>
16124 /* Check that off_t can represent 2**63 - 1 correctly.
16125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16126 since some C++ compilers masquerading as C compilers
16127 incorrectly reject 9223372036854775807. */
e38e222d 16128#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
cd9a469c 16129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16130 && LARGE_OFF_T % 2147483647 == 1)
16131 ? 1 : -1];
56c15991 16132int
16133main ()
16134{
56c15991 16135
16136 ;
16137 return 0;
16138}
16139_ACEOF
cd9a469c 16140if ac_fn_c_try_compile "$LINENO"; then :
16141 ac_cv_sys_file_offset_bits=64; break
56c15991 16142fi
cd9a469c 16143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 ac_cv_sys_file_offset_bits=unknown
16145 break
16146done
56c15991 16147fi
cd9a469c 16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16149$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16150case $ac_cv_sys_file_offset_bits in #(
16151 no | unknown) ;;
16152 *)
16153cat >>confdefs.h <<_ACEOF
16154#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
56c15991 16155_ACEOF
cd9a469c 16156;;
16157esac
16158rm -rf conftest*
16159 if test $ac_cv_sys_file_offset_bits = unknown; then
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16161$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
f00f02a3 16162if ${ac_cv_sys_large_files+:} false; then :
cd9a469c 16163 $as_echo_n "(cached) " >&6
16164else
16165 while :; do
16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 16167/* end confdefs.h. */
cd9a469c 16168#include <sys/types.h>
16169 /* Check that off_t can represent 2**63 - 1 correctly.
16170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16171 since some C++ compilers masquerading as C compilers
16172 incorrectly reject 9223372036854775807. */
e38e222d 16173#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
cd9a469c 16174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16175 && LARGE_OFF_T % 2147483647 == 1)
16176 ? 1 : -1];
56c15991 16177int
16178main ()
16179{
56c15991 16180
16181 ;
16182 return 0;
16183}
16184_ACEOF
cd9a469c 16185if ac_fn_c_try_compile "$LINENO"; then :
16186 ac_cv_sys_large_files=no; break
56c15991 16187fi
cd9a469c 16188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56c15991 16190/* end confdefs.h. */
cd9a469c 16191#define _LARGE_FILES 1
16192#include <sys/types.h>
16193 /* Check that off_t can represent 2**63 - 1 correctly.
16194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16195 since some C++ compilers masquerading as C compilers
16196 incorrectly reject 9223372036854775807. */
e38e222d 16197#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
cd9a469c 16198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16199 && LARGE_OFF_T % 2147483647 == 1)
16200 ? 1 : -1];
56c15991 16201int
16202main ()
16203{
16204
56c15991 16205 ;
16206 return 0;
16207}
16208_ACEOF
cd9a469c 16209if ac_fn_c_try_compile "$LINENO"; then :
16210 ac_cv_sys_large_files=1; break
56c15991 16211fi
cd9a469c 16212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213 ac_cv_sys_large_files=unknown
16214 break
16215done
82eaf560 16216fi
cd9a469c 16217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16218$as_echo "$ac_cv_sys_large_files" >&6; }
16219case $ac_cv_sys_large_files in #(
16220 no | unknown) ;;
16221 *)
56c15991 16222cat >>confdefs.h <<_ACEOF
cd9a469c 16223#define _LARGE_FILES $ac_cv_sys_large_files
56c15991 16224_ACEOF
cd9a469c 16225;;
16226esac
16227rm -rf conftest*
16228 fi
f00f02a3 16229
16230
56c15991 16231fi
16232
c75dca49 16233
16234# Types
cd9a469c 16235ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
f00f02a3 16236if test "x$ac_cv_type_off_t" = xyes; then :
56c15991 16237
cd9a469c 16238else
56c15991 16239
cd9a469c 16240cat >>confdefs.h <<_ACEOF
16241#define off_t long int
16242_ACEOF
56c15991 16243
c75dca49 16244fi
16245
16246
16247 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
f00f02a3 16248if test "x$ac_cv_type_intptr_t" = xyes; then :
c75dca49 16249
16250$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16251
16252else
16253 for ac_type in 'int' 'long int' 'long long int'; do
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255/* end confdefs.h. */
16256$ac_includes_default
16257int
16258main ()
16259{
16260static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
f00f02a3 16261test_array [0] = 0;
16262return test_array [0];
c75dca49 16263
16264 ;
16265 return 0;
16266}
16267_ACEOF
16268if ac_fn_c_try_compile "$LINENO"; then :
16269
16270cat >>confdefs.h <<_ACEOF
16271#define intptr_t $ac_type
16272_ACEOF
16273
16274 ac_type=
16275fi
16276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 test -z "$ac_type" && break
16278 done
16279fi
16280
16281
16282
16283 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
f00f02a3 16284if test "x$ac_cv_type_uintptr_t" = xyes; then :
c75dca49 16285
16286$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16287
16288else
16289 for ac_type in 'unsigned int' 'unsigned long int' \
16290 'unsigned long long int'; do
16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292/* end confdefs.h. */
16293$ac_includes_default
16294int
16295main ()
16296{
16297static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
f00f02a3 16298test_array [0] = 0;
16299return test_array [0];
c75dca49 16300
16301 ;
16302 return 0;
16303}
16304_ACEOF
16305if ac_fn_c_try_compile "$LINENO"; then :
16306
16307cat >>confdefs.h <<_ACEOF
16308#define uintptr_t $ac_type
16309_ACEOF
16310
16311 ac_type=
16312fi
16313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16314 test -z "$ac_type" && break
16315 done
16316fi
16317
16318
16319ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
f00f02a3 16320if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
c75dca49 16321
16322cat >>confdefs.h <<_ACEOF
16323#define HAVE_PTRDIFF_T 1
16324_ACEOF
16325
16326
56c15991 16327fi
16328
56c15991 16329
a1aa1d30 16330# check header files (we assume C89 is available, so don't check for that)
771c1b50 16331
cd9a469c 16332
771c1b50 16333
a1aa1d30 16334 for ac_header in $ac_header_list
16335do :
16336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16337ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16338"
f00f02a3 16339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a1aa1d30 16340 cat >>confdefs.h <<_ACEOF
16341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
771c1b50 16342_ACEOF
16343
cd9a469c 16344fi
771c1b50 16345
a1aa1d30 16346done
1c383045 16347
16348
771c1b50 16349
cd9a469c 16350
cd9a469c 16351
771c1b50 16352
cd9a469c 16353
cd9a469c 16354
771c1b50 16355
771c1b50 16356
771c1b50 16357
16358
771c1b50 16359
771c1b50 16360
771c1b50 16361
16362
771c1b50 16363
16364
7dfba97b 16365
5e7b82bb 16366
c436f700 16367
a54b1ce7 16368
16369
14c3c235 16370
4dd3972f 16371
4dd3972f 16372
4dd3972f 16373
4dd3972f 16374
4dd3972f 16375
4dd3972f 16376
553e7cef 16377
16378
b8a8c7bc 16379
16380
9680a5f4 16381
16382
4dd3972f 16383
4dd3972f 16384
4ee9c684 16385
2069752c 16386inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
4ee9c684 16387
2069752c 16388acx_cv_header_stdint=stddef.h
16389acx_cv_header_stdint_kind="(already complete)"
16390for i in stdint.h $inttype_headers; do
16391 unset ac_cv_type_uintptr_t
16392 unset ac_cv_type_uintmax_t
16393 unset ac_cv_type_int_least32_t
16394 unset ac_cv_type_int_fast32_t
16395 unset ac_cv_type_uint64_t
16396 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16397 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16398#include <$i>
16399"
f00f02a3 16400if test "x$ac_cv_type_uintmax_t" = xyes; then :
2069752c 16401 acx_cv_header_stdint=$i
cd9a469c 16402else
2069752c 16403 continue
cd9a469c 16404fi
4ee9c684 16405
2069752c 16406 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16407#include <$i>
16408"
f00f02a3 16409if test "x$ac_cv_type_uintptr_t" = xyes; then :
90973b19 16410
cd9a469c 16411else
2069752c 16412 acx_cv_header_stdint_kind="(mostly complete)"
cd9a469c 16413fi
90973b19 16414
2069752c 16415 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16416#include <$i>
16417"
f00f02a3 16418if test "x$ac_cv_type_int_least32_t" = xyes; then :
2069752c 16419
4dd3972f 16420else
2069752c 16421 acx_cv_header_stdint_kind="(mostly complete)"
cd9a469c 16422fi
cd9a469c 16423
2069752c 16424 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16425#include <$i>
16426"
f00f02a3 16427if test "x$ac_cv_type_int_fast32_t" = xyes; then :
4dd3972f 16428
2069752c 16429else
16430 acx_cv_header_stdint_kind="(mostly complete)"
16431fi
ea6b3890 16432
2069752c 16433 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16434#include <$i>
16435"
f00f02a3 16436if test "x$ac_cv_type_uint64_t" = xyes; then :
ea6b3890 16437
cd9a469c 16438else
2069752c 16439 acx_cv_header_stdint_kind="(lacks uint64_t)"
16440fi
4dd3972f 16441
2069752c 16442 break
16443done
16444if test "$acx_cv_header_stdint" = stddef.h; then
16445 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16446 for i in stdint.h $inttype_headers; do
16447 unset ac_cv_type_uintptr_t
16448 unset ac_cv_type_uint32_t
16449 unset ac_cv_type_uint64_t
16450 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16451 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16452#include <$i>
16453"
f00f02a3 16454if test "x$ac_cv_type_uint32_t" = xyes; then :
2069752c 16455 acx_cv_header_stdint=$i
16456else
16457 continue
cd9a469c 16458fi
4dd3972f 16459
2069752c 16460 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16461#include <$i>
16462"
f00f02a3 16463if test "x$ac_cv_type_uint64_t" = xyes; then :
f2c0a16d 16464
2069752c 16465fi
247981ce 16466
2069752c 16467 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16468#include <$i>
16469"
f00f02a3 16470if test "x$ac_cv_type_uintptr_t" = xyes; then :
247981ce 16471
2069752c 16472fi
b902b078 16473
2069752c 16474 break
16475 done
16476fi
16477if test "$acx_cv_header_stdint" = stddef.h; then
16478 acx_cv_header_stdint_kind="(u_intXX_t style)"
16479 for i in sys/types.h $inttype_headers; do
16480 unset ac_cv_type_u_int32_t
16481 unset ac_cv_type_u_int64_t
16482 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16483 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16484#include <$i>
16485"
f00f02a3 16486if test "x$ac_cv_type_u_int32_t" = xyes; then :
2069752c 16487 acx_cv_header_stdint=$i
ea6b3890 16488else
2069752c 16489 continue
16490fi
d2fc5bb1 16491
2069752c 16492 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16493#include <$i>
16494"
f00f02a3 16495if test "x$ac_cv_type_u_int64_t" = xyes; then :
d2fc5bb1 16496
2069752c 16497fi
d2fc5bb1 16498
2069752c 16499 break
16500 done
d2fc5bb1 16501fi
2069752c 16502if test "$acx_cv_header_stdint" = stddef.h; then
16503 acx_cv_header_stdint_kind="(using manual detection)"
cd9a469c 16504fi
d2fc5bb1 16505
2069752c 16506test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16507test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16508test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16509test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16510test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
d2fc5bb1 16511
2069752c 16512# ----------------- Summarize what we found so far
cd9a469c 16513
2069752c 16514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16515$as_echo_n "checking what to include in gstdint.h... " >&6; }
d2fc5bb1 16516
2069752c 16517case `$as_basename -- gstdint.h ||
16518$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16519 Xgstdint.h : 'X\(//\)$' \| \
16520 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16521$as_echo X/gstdint.h |
16522 sed '/^.*\/\([^/][^/]*\)\/*$/{
16523 s//\1/
16524 q
16525 }
16526 /^X\/\(\/\/\)$/{
16527 s//\1/
16528 q
16529 }
16530 /^X\/\(\/\).*/{
16531 s//\1/
16532 q
16533 }
16534 s/.*/./; q'` in
16535 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16536$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16537 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16538$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16539 *) ;;
16540esac
d2fc5bb1 16541
2069752c 16542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16543$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
e93cd318 16544
2069752c 16545# ----------------- done included file, check C basic types --------
99798ba4 16546
2069752c 16547# Lacking an uintptr_t? Test size of void *
16548case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16549 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16550# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16551# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16552# This bug is HP SR number 8606223364.
16553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16554$as_echo_n "checking size of void *... " >&6; }
f00f02a3 16555if ${ac_cv_sizeof_void_p+:} false; then :
2069752c 16556 $as_echo_n "(cached) " >&6
16557else
16558 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
99798ba4 16559
2069752c 16560else
16561 if test "$ac_cv_type_void_p" = yes; then
16562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16564as_fn_error 77 "cannot compute sizeof (void *)
16565See \`config.log' for more details" "$LINENO" 5; }
2069752c 16566 else
16567 ac_cv_sizeof_void_p=0
16568 fi
16569fi
ea6b3890 16570
2069752c 16571fi
16572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16573$as_echo "$ac_cv_sizeof_void_p" >&6; }
ea6b3890 16574
99798ba4 16575
16576
ea6b3890 16577cat >>confdefs.h <<_ACEOF
2069752c 16578#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
ea6b3890 16579_ACEOF
ea6b3890 16580
2069752c 16581 ;;
16582esac
ea6b3890 16583
2069752c 16584# Lacking an uint64_t? Test size of long
16585case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16586 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16587# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16588# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16589# This bug is HP SR number 8606223364.
16590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16591$as_echo_n "checking size of long... " >&6; }
f00f02a3 16592if ${ac_cv_sizeof_long+:} false; then :
cd9a469c 16593 $as_echo_n "(cached) " >&6
16594else
2069752c 16595 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
ea6b3890 16596
c634bedf 16597else
2069752c 16598 if test "$ac_cv_type_long" = yes; then
16599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16601as_fn_error 77 "cannot compute sizeof (long)
16602See \`config.log' for more details" "$LINENO" 5; }
2069752c 16603 else
16604 ac_cv_sizeof_long=0
16605 fi
cd9a469c 16606fi
c634bedf 16607
2069752c 16608fi
16609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16610$as_echo "$ac_cv_sizeof_long" >&6; }
ea6b3890 16611
c634bedf 16612
ea6b3890 16613
16614cat >>confdefs.h <<_ACEOF
2069752c 16615#define SIZEOF_LONG $ac_cv_sizeof_long
ea6b3890 16616_ACEOF
c634bedf 16617
2069752c 16618 ;;
16619esac
74b918e9 16620
2069752c 16621if test $acx_cv_header_stdint = stddef.h; then
16622 # Lacking a good header? Test size of everything and deduce all types.
16623 # The cast to long int works around a bug in the HP C Compiler
16624# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16625# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16626# This bug is HP SR number 8606223364.
16627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16628$as_echo_n "checking size of int... " >&6; }
f00f02a3 16629if ${ac_cv_sizeof_int+:} false; then :
2069752c 16630 $as_echo_n "(cached) " >&6
16631else
16632 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
c0e8efbe 16633
2069752c 16634else
16635 if test "$ac_cv_type_int" = yes; then
16636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16638as_fn_error 77 "cannot compute sizeof (int)
16639See \`config.log' for more details" "$LINENO" 5; }
2069752c 16640 else
16641 ac_cv_sizeof_int=0
16642 fi
16643fi
5a037dbd 16644
2069752c 16645fi
16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16647$as_echo "$ac_cv_sizeof_int" >&6; }
e0582811 16648
16649
99798ba4 16650
ea6b3890 16651cat >>confdefs.h <<_ACEOF
2069752c 16652#define SIZEOF_INT $ac_cv_sizeof_int
ea6b3890 16653_ACEOF
16654
ea6b3890 16655
2069752c 16656 # The cast to long int works around a bug in the HP C Compiler
16657# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16658# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16659# This bug is HP SR number 8606223364.
16660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16661$as_echo_n "checking size of short... " >&6; }
f00f02a3 16662if ${ac_cv_sizeof_short+:} false; then :
2069752c 16663 $as_echo_n "(cached) " >&6
16664else
16665 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
ea6b3890 16666
2069752c 16667else
16668 if test "$ac_cv_type_short" = yes; then
16669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16671as_fn_error 77 "cannot compute sizeof (short)
16672See \`config.log' for more details" "$LINENO" 5; }
2069752c 16673 else
16674 ac_cv_sizeof_short=0
16675 fi
16676fi
ea6b3890 16677
2069752c 16678fi
16679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16680$as_echo "$ac_cv_sizeof_short" >&6; }
ea6b3890 16681
16682
16683
2069752c 16684cat >>confdefs.h <<_ACEOF
16685#define SIZEOF_SHORT $ac_cv_sizeof_short
16686_ACEOF
ea6b3890 16687
16688
2069752c 16689 # The cast to long int works around a bug in the HP C Compiler
16690# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16691# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16692# This bug is HP SR number 8606223364.
16693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16694$as_echo_n "checking size of char... " >&6; }
f00f02a3 16695if ${ac_cv_sizeof_char+:} false; then :
2069752c 16696 $as_echo_n "(cached) " >&6
16697else
16698 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
ea6b3890 16699
2069752c 16700else
16701 if test "$ac_cv_type_char" = yes; then
16702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 16704as_fn_error 77 "cannot compute sizeof (char)
16705See \`config.log' for more details" "$LINENO" 5; }
2069752c 16706 else
16707 ac_cv_sizeof_char=0
16708 fi
16709fi
ea6b3890 16710
2069752c 16711fi
16712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16713$as_echo "$ac_cv_sizeof_char" >&6; }
ea6b3890 16714
16715
ea6b3890 16716
cd9a469c 16717cat >>confdefs.h <<_ACEOF
2069752c 16718#define SIZEOF_CHAR $ac_cv_sizeof_char
99798ba4 16719_ACEOF
99798ba4 16720
99798ba4 16721
eaae6999 16722
2069752c 16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16724$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16725 case "$ac_cv_sizeof_char" in
16726 1) acx_cv_type_int8_t=char ;;
f00f02a3 16727 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
2069752c 16728 esac
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16730$as_echo "$acx_cv_type_int8_t" >&6; }
16731
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16733$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16734 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16735 2:*) acx_cv_type_int16_t=int ;;
16736 *:2) acx_cv_type_int16_t=short ;;
f00f02a3 16737 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
2069752c 16738 esac
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16740$as_echo "$acx_cv_type_int16_t" >&6; }
16741
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16743$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16744 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16745 4:*) acx_cv_type_int32_t=int ;;
16746 *:4) acx_cv_type_int32_t=long ;;
f00f02a3 16747 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
2069752c 16748 esac
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16750$as_echo "$acx_cv_type_int32_t" >&6; }
cd9a469c 16751fi
16752
2069752c 16753# These tests are here to make the output prettier
ea6b3890 16754
2069752c 16755if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16756 case "$ac_cv_sizeof_long" in
16757 8) acx_cv_type_int64_t=long ;;
16758 esac
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16760$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16762$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16763fi
16764
16765# Now we can use the above types
16766
16767if test "$ac_cv_type_uintptr_t" != yes; then
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16769$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16770 case $ac_cv_sizeof_void_p in
16771 2) acx_cv_type_intptr_t=int16_t ;;
16772 4) acx_cv_type_intptr_t=int32_t ;;
16773 8) acx_cv_type_intptr_t=int64_t ;;
f00f02a3 16774 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
2069752c 16775 esac
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16777$as_echo "$acx_cv_type_intptr_t" >&6; }
16778fi
ea6b3890 16779
2069752c 16780# ----------------- done all checks, emit header -------------
cd9a469c 16781ac_config_commands="$ac_config_commands gstdint.h"
eaae6999 16782
eaae6999 16783
cd9a469c 16784
16785
16786ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
f00f02a3 16787if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
cd9a469c 16788
16789cat >>confdefs.h <<_ACEOF
16790#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
eaae6999 16791_ACEOF
eaae6999 16792
cd9a469c 16793
eaae6999 16794fi
cd9a469c 16795ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
f00f02a3 16796if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
cd9a469c 16797
16798cat >>confdefs.h <<_ACEOF
16799#define HAVE_STRUCT_STAT_ST_BLOCKS 1
eaae6999 16800_ACEOF
16801
cd9a469c 16802
eaae6999 16803fi
cd9a469c 16804ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
f00f02a3 16805if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
eaae6999 16806
cd9a469c 16807cat >>confdefs.h <<_ACEOF
16808#define HAVE_STRUCT_STAT_ST_RDEV 1
16809_ACEOF
99798ba4 16810
16811
b52ee437 16812fi
cd9a469c 16813
16814
0d9d2088 16815case "${host}--x${with_newlib}" in
16816 mips*--xyes)
16817 hardwire_newlib=1;;
8c596dcc 16818 nvptx*--xyes)
16819 hardwire_newlib=1;;
0d9d2088 16820esac
16821
cd9a469c 16822# Check for library functions.
0d9d2088 16823if test "${hardwire_newlib:-0}" -eq 1; then
e4812daa 16824 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16825 # may not work correctly, because the compiler may not be able to
16826 # link executables.
16827
16828$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16829
16830
16831$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16832
16833
e4812daa 16834$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16835
16836
e4812daa 16837$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16838
16839
16840$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16841
16842
16843$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16844
cec5cd66 16845
4531a456 16846$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16847
16848
16849$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16850
16851
cec5cd66 16852 # At some point, we should differentiate between architectures
16853 # like x86, which have long double versions, and alpha/powerpc/etc.,
16854 # which don't. For the time being, punt.
16855 if test x"long_double_math_on_this_cpu" = x"yes"; then
16856
16857$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16858
16859 fi
e4812daa 16860else
4dd3972f 16861
4dd3972f 16862
a1aa1d30 16863
16864 for ac_func in $ac_func_list
cd9a469c 16865do :
16866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16867ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
f00f02a3 16868if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cd9a469c 16869 cat >>confdefs.h <<_ACEOF
16870#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16871_ACEOF
4dd3972f 16872
cd9a469c 16873fi
16874done
4dd3972f 16875
4dd3972f 16876
cd9a469c 16877
90973b19 16878
cd9a469c 16879
cd9a469c 16880
cd9a469c 16881
4ee9c684 16882
4ee9c684 16883
a2c0dc0f 16884
a2c0dc0f 16885
4ee9c684 16886
adad6c74 16887
adad6c74 16888
adad6c74 16889
adad6c74 16890
adad6c74 16891
adad6c74 16892
adad6c74 16893
adad6c74 16894
99798ba4 16895
99798ba4 16896
99798ba4 16897
99798ba4 16898
adad6c74 16899
adad6c74 16900
adad6c74 16901
adad6c74 16902
c0e8efbe 16903
c0e8efbe 16904
c0e8efbe 16905
a1aa1d30 16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
a291e3b6 16962
5935a97b 16963
b8a8c7bc 16964
16965
fc3d374a 16966
16967
7520a494 16968
16969
7f0d992b 16970
16971
75535607 16972
16973
9680a5f4 16974
16975
69024fb7 16976
16977
16978
16979
e38e222d 16980
16981
5935a97b 16982
ffb6d1fd 16983
16984
e4812daa 16985fi
a1aa1d30 16986
a8d8f723 16987# Check strerror_r, cannot be above as versions with two and three arguments exist
16988
16989 ac_save_CFLAGS="$CFLAGS"
16990 CFLAGS="-Wimplicit-function-declaration -Werror"
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992/* end confdefs.h. */
16993#define _GNU_SOURCE 1
16994 #include <string.h>
16995 #include <locale.h>
16996int
16997main ()
16998{
16999char s[128]; strerror_r(5, s, 128);
17000 ;
17001 return 0;
17002}
17003_ACEOF
17004if ac_fn_c_try_compile "$LINENO"; then :
17005
17006$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17007
17008fi
17009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010 CFLAGS="$ac_save_CFLAGS"
17011
17012 ac_save_CFLAGS="$CFLAGS"
17013 CFLAGS="-Wimplicit-function-declaration -Werror"
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015/* end confdefs.h. */
17016#define _GNU_SOURCE 1
17017 #include <string.h>
17018 #include <locale.h>
17019int
17020main ()
17021{
17022char s[128]; strerror_r(5, s);
17023 ;
17024 return 0;
17025}
17026_ACEOF
17027if ac_fn_c_try_compile "$LINENO"; then :
17028
17029$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17030
17031fi
17032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033 CFLAGS="$ac_save_CFLAGS"
c0e8efbe 17034
adad6c74 17035
8f838781 17036# Check for C99 (and other IEEE) math functions
7d9455ce 17037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17038$as_echo_n "checking for sin in -lm... " >&6; }
f00f02a3 17039if ${ac_cv_lib_m_sin+:} false; then :
cd9a469c 17040 $as_echo_n "(cached) " >&6
8f838781 17041else
17042 ac_check_lib_save_LIBS=$LIBS
17043LIBS="-lm $LIBS"
b52ee437 17044if test x$gcc_no_link = xyes; then
f00f02a3 17045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17046fi
cd9a469c 17047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17048/* end confdefs.h. */
17049
cd9a469c 17050/* Override any GCC internal prototype to avoid an error.
17051 Use char because int might match the return type of a GCC
17052 builtin and then its argument prototype would still apply. */
8f838781 17053#ifdef __cplusplus
17054extern "C"
17055#endif
7d9455ce 17056char sin ();
8f838781 17057int
17058main ()
17059{
7d9455ce 17060return sin ();
8f838781 17061 ;
17062 return 0;
17063}
17064_ACEOF
cd9a469c 17065if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17066 ac_cv_lib_m_sin=yes
8f838781 17067else
7d9455ce 17068 ac_cv_lib_m_sin=no
8f838781 17069fi
cd9a469c 17070rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
8f838781 17072LIBS=$ac_check_lib_save_LIBS
17073fi
7d9455ce 17074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17075$as_echo "$ac_cv_lib_m_sin" >&6; }
f00f02a3 17076if test "x$ac_cv_lib_m_sin" = xyes; then :
7d9455ce 17077 cat >>confdefs.h <<_ACEOF
17078#define HAVE_LIBM 1
17079_ACEOF
8f838781 17080
7d9455ce 17081 LIBS="-lm $LIBS"
8f838781 17082
17083fi
17084
7d9455ce 17085
17086
17087
17088
17089
17090
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17092$as_echo_n "checking for acosf... " >&6; }
f00f02a3 17093if ${gcc_cv_math_func_acosf+:} false; then :
cd9a469c 17094 $as_echo_n "(cached) " >&6
b52ee437 17095else
7d9455ce 17096 if test x$gcc_no_link = xyes; then
f00f02a3 17097 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17098fi
cd9a469c 17099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 17100/* end confdefs.h. */
17101
7d9455ce 17102#ifdef HAVE_COMPLEX_H
17103#include <complex.h>
17104#endif
17105#ifdef HAVE_MATH_H
17106#include <math.h>
b52ee437 17107#endif
7d9455ce 17108
17109int (*ptr)() = (int (*)())acosf;
17110
b52ee437 17111int
17112main ()
17113{
b52ee437 17114 return 0;
17115}
7d9455ce 17116
b52ee437 17117_ACEOF
cd9a469c 17118if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17119 gcc_cv_math_func_acosf=yes
b52ee437 17120else
7d9455ce 17121 gcc_cv_math_func_acosf=no
b52ee437 17122fi
cd9a469c 17123rm -f core conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
b52ee437 17125fi
7d9455ce 17126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17127$as_echo "$gcc_cv_math_func_acosf" >&6; }
17128 if test $gcc_cv_math_func_acosf = yes; then
bd647a17 17129
6affa8e1 17130cat >>confdefs.h <<_ACEOF
17131#define HAVE_ACOSF 1
17132_ACEOF
7d9455ce 17133
17134 fi
b52ee437 17135
b52ee437 17136
b52ee437 17137
7d9455ce 17138
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17140$as_echo_n "checking for acos... " >&6; }
f00f02a3 17141if ${gcc_cv_math_func_acos+:} false; then :
cd9a469c 17142 $as_echo_n "(cached) " >&6
8f838781 17143else
7d9455ce 17144 if test x$gcc_no_link = xyes; then
f00f02a3 17145 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17146fi
cd9a469c 17147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17148/* end confdefs.h. */
17149
7d9455ce 17150#ifdef HAVE_COMPLEX_H
17151#include <complex.h>
8f838781 17152#endif
7d9455ce 17153#ifdef HAVE_MATH_H
17154#include <math.h>
17155#endif
17156
17157int (*ptr)() = (int (*)())acos;
17158
8f838781 17159int
17160main ()
17161{
8f838781 17162 return 0;
17163}
7d9455ce 17164
8f838781 17165_ACEOF
cd9a469c 17166if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17167 gcc_cv_math_func_acos=yes
8f838781 17168else
7d9455ce 17169 gcc_cv_math_func_acos=no
8f838781 17170fi
cd9a469c 17171rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
8f838781 17173fi
7d9455ce 17174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17175$as_echo "$gcc_cv_math_func_acos" >&6; }
17176 if test $gcc_cv_math_func_acos = yes; then
bd647a17 17177
6affa8e1 17178cat >>confdefs.h <<_ACEOF
17179#define HAVE_ACOS 1
17180_ACEOF
7d9455ce 17181
17182 fi
17183
8f838781 17184
8f838781 17185
8f838781 17186
7d9455ce 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17188$as_echo_n "checking for acosl... " >&6; }
f00f02a3 17189if ${gcc_cv_math_func_acosl+:} false; then :
cd9a469c 17190 $as_echo_n "(cached) " >&6
b52ee437 17191else
7d9455ce 17192 if test x$gcc_no_link = xyes; then
f00f02a3 17193 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17194fi
cd9a469c 17195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 17196/* end confdefs.h. */
17197
7d9455ce 17198#ifdef HAVE_COMPLEX_H
17199#include <complex.h>
17200#endif
17201#ifdef HAVE_MATH_H
17202#include <math.h>
b52ee437 17203#endif
7d9455ce 17204
17205int (*ptr)() = (int (*)())acosl;
17206
b52ee437 17207int
17208main ()
17209{
b52ee437 17210 return 0;
17211}
7d9455ce 17212
b52ee437 17213_ACEOF
cd9a469c 17214if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17215 gcc_cv_math_func_acosl=yes
b52ee437 17216else
7d9455ce 17217 gcc_cv_math_func_acosl=no
b52ee437 17218fi
cd9a469c 17219rm -f core conftest.err conftest.$ac_objext \
17220 conftest$ac_exeext conftest.$ac_ext
b52ee437 17221fi
7d9455ce 17222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17223$as_echo "$gcc_cv_math_func_acosl" >&6; }
17224 if test $gcc_cv_math_func_acosl = yes; then
bd647a17 17225
6affa8e1 17226cat >>confdefs.h <<_ACEOF
17227#define HAVE_ACOSL 1
17228_ACEOF
7d9455ce 17229
17230 fi
b52ee437 17231
b52ee437 17232
b52ee437 17233
7d9455ce 17234
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17236$as_echo_n "checking for acoshf... " >&6; }
f00f02a3 17237if ${gcc_cv_math_func_acoshf+:} false; then :
cd9a469c 17238 $as_echo_n "(cached) " >&6
8f838781 17239else
7d9455ce 17240 if test x$gcc_no_link = xyes; then
f00f02a3 17241 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17242fi
cd9a469c 17243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17244/* end confdefs.h. */
17245
7d9455ce 17246#ifdef HAVE_COMPLEX_H
17247#include <complex.h>
8f838781 17248#endif
7d9455ce 17249#ifdef HAVE_MATH_H
17250#include <math.h>
17251#endif
17252
17253int (*ptr)() = (int (*)())acoshf;
17254
8f838781 17255int
17256main ()
17257{
8f838781 17258 return 0;
17259}
7d9455ce 17260
8f838781 17261_ACEOF
cd9a469c 17262if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17263 gcc_cv_math_func_acoshf=yes
8f838781 17264else
7d9455ce 17265 gcc_cv_math_func_acoshf=no
8f838781 17266fi
cd9a469c 17267rm -f core conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
8f838781 17269fi
7d9455ce 17270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17271$as_echo "$gcc_cv_math_func_acoshf" >&6; }
17272 if test $gcc_cv_math_func_acoshf = yes; then
bd647a17 17273
6affa8e1 17274cat >>confdefs.h <<_ACEOF
17275#define HAVE_ACOSHF 1
17276_ACEOF
8f838781 17277
7d9455ce 17278 fi
8f838781 17279
8f838781 17280
7d9455ce 17281
17282
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17284$as_echo_n "checking for acosh... " >&6; }
f00f02a3 17285if ${gcc_cv_math_func_acosh+:} false; then :
cd9a469c 17286 $as_echo_n "(cached) " >&6
8f838781 17287else
7d9455ce 17288 if test x$gcc_no_link = xyes; then
f00f02a3 17289 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17290fi
cd9a469c 17291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17292/* end confdefs.h. */
17293
7d9455ce 17294#ifdef HAVE_COMPLEX_H
17295#include <complex.h>
17296#endif
17297#ifdef HAVE_MATH_H
17298#include <math.h>
8f838781 17299#endif
7d9455ce 17300
17301int (*ptr)() = (int (*)())acosh;
17302
8f838781 17303int
17304main ()
17305{
cd9a469c 17306 return 0;
17307}
7d9455ce 17308
cd9a469c 17309_ACEOF
17310if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17311 gcc_cv_math_func_acosh=yes
8f838781 17312else
7d9455ce 17313 gcc_cv_math_func_acosh=no
8f838781 17314fi
cd9a469c 17315rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
8f838781 17317fi
7d9455ce 17318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17319$as_echo "$gcc_cv_math_func_acosh" >&6; }
17320 if test $gcc_cv_math_func_acosh = yes; then
bd647a17 17321
6affa8e1 17322cat >>confdefs.h <<_ACEOF
17323#define HAVE_ACOSH 1
17324_ACEOF
7d9455ce 17325
17326 fi
8f838781 17327
8f838781 17328
8f838781 17329
7d9455ce 17330
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17332$as_echo_n "checking for acoshl... " >&6; }
f00f02a3 17333if ${gcc_cv_math_func_acoshl+:} false; then :
cd9a469c 17334 $as_echo_n "(cached) " >&6
b52ee437 17335else
7d9455ce 17336 if test x$gcc_no_link = xyes; then
f00f02a3 17337 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17338fi
cd9a469c 17339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b52ee437 17340/* end confdefs.h. */
17341
7d9455ce 17342#ifdef HAVE_COMPLEX_H
17343#include <complex.h>
b52ee437 17344#endif
7d9455ce 17345#ifdef HAVE_MATH_H
17346#include <math.h>
17347#endif
17348
17349int (*ptr)() = (int (*)())acoshl;
17350
b52ee437 17351int
17352main ()
17353{
b52ee437 17354 return 0;
17355}
7d9455ce 17356
b52ee437 17357_ACEOF
cd9a469c 17358if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17359 gcc_cv_math_func_acoshl=yes
b52ee437 17360else
7d9455ce 17361 gcc_cv_math_func_acoshl=no
b52ee437 17362fi
cd9a469c 17363rm -f core conftest.err conftest.$ac_objext \
17364 conftest$ac_exeext conftest.$ac_ext
b52ee437 17365fi
7d9455ce 17366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17367$as_echo "$gcc_cv_math_func_acoshl" >&6; }
17368 if test $gcc_cv_math_func_acoshl = yes; then
bd647a17 17369
6affa8e1 17370cat >>confdefs.h <<_ACEOF
17371#define HAVE_ACOSHL 1
17372_ACEOF
7d9455ce 17373
17374 fi
17375
b52ee437 17376
b52ee437 17377
b52ee437 17378
7d9455ce 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17380$as_echo_n "checking for asinf... " >&6; }
f00f02a3 17381if ${gcc_cv_math_func_asinf+:} false; then :
cd9a469c 17382 $as_echo_n "(cached) " >&6
8f838781 17383else
7d9455ce 17384 if test x$gcc_no_link = xyes; then
f00f02a3 17385 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17386fi
cd9a469c 17387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17388/* end confdefs.h. */
17389
7d9455ce 17390#ifdef HAVE_COMPLEX_H
17391#include <complex.h>
17392#endif
17393#ifdef HAVE_MATH_H
17394#include <math.h>
8f838781 17395#endif
7d9455ce 17396
17397int (*ptr)() = (int (*)())asinf;
17398
8f838781 17399int
17400main ()
17401{
8f838781 17402 return 0;
17403}
7d9455ce 17404
8f838781 17405_ACEOF
cd9a469c 17406if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17407 gcc_cv_math_func_asinf=yes
8f838781 17408else
7d9455ce 17409 gcc_cv_math_func_asinf=no
8f838781 17410fi
cd9a469c 17411rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
8f838781 17413fi
7d9455ce 17414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17415$as_echo "$gcc_cv_math_func_asinf" >&6; }
17416 if test $gcc_cv_math_func_asinf = yes; then
bd647a17 17417
6affa8e1 17418cat >>confdefs.h <<_ACEOF
17419#define HAVE_ASINF 1
17420_ACEOF
7d9455ce 17421
17422 fi
8f838781 17423
8f838781 17424
8f838781 17425
7d9455ce 17426
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17428$as_echo_n "checking for asin... " >&6; }
f00f02a3 17429if ${gcc_cv_math_func_asin+:} false; then :
cd9a469c 17430 $as_echo_n "(cached) " >&6
8f838781 17431else
7d9455ce 17432 if test x$gcc_no_link = xyes; then
f00f02a3 17433 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17434fi
cd9a469c 17435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17436/* end confdefs.h. */
17437
7d9455ce 17438#ifdef HAVE_COMPLEX_H
17439#include <complex.h>
8f838781 17440#endif
7d9455ce 17441#ifdef HAVE_MATH_H
17442#include <math.h>
17443#endif
17444
17445int (*ptr)() = (int (*)())asin;
17446
8f838781 17447int
17448main ()
17449{
8f838781 17450 return 0;
17451}
7d9455ce 17452
8f838781 17453_ACEOF
cd9a469c 17454if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17455 gcc_cv_math_func_asin=yes
8f838781 17456else
7d9455ce 17457 gcc_cv_math_func_asin=no
8f838781 17458fi
cd9a469c 17459rm -f core conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
8f838781 17461fi
7d9455ce 17462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17463$as_echo "$gcc_cv_math_func_asin" >&6; }
17464 if test $gcc_cv_math_func_asin = yes; then
bd647a17 17465
6affa8e1 17466cat >>confdefs.h <<_ACEOF
17467#define HAVE_ASIN 1
17468_ACEOF
8f838781 17469
7d9455ce 17470 fi
8f838781 17471
8f838781 17472
7d9455ce 17473
17474
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17476$as_echo_n "checking for asinl... " >&6; }
f00f02a3 17477if ${gcc_cv_math_func_asinl+:} false; then :
cd9a469c 17478 $as_echo_n "(cached) " >&6
8f838781 17479else
7d9455ce 17480 if test x$gcc_no_link = xyes; then
f00f02a3 17481 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17482fi
cd9a469c 17483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17484/* end confdefs.h. */
17485
7d9455ce 17486#ifdef HAVE_COMPLEX_H
17487#include <complex.h>
17488#endif
17489#ifdef HAVE_MATH_H
17490#include <math.h>
8f838781 17491#endif
7d9455ce 17492
17493int (*ptr)() = (int (*)())asinl;
17494
8f838781 17495int
17496main ()
17497{
8f838781 17498 return 0;
17499}
7d9455ce 17500
8f838781 17501_ACEOF
cd9a469c 17502if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17503 gcc_cv_math_func_asinl=yes
8f838781 17504else
7d9455ce 17505 gcc_cv_math_func_asinl=no
8f838781 17506fi
cd9a469c 17507rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
8f838781 17509fi
7d9455ce 17510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17511$as_echo "$gcc_cv_math_func_asinl" >&6; }
17512 if test $gcc_cv_math_func_asinl = yes; then
bd647a17 17513
6affa8e1 17514cat >>confdefs.h <<_ACEOF
17515#define HAVE_ASINL 1
17516_ACEOF
7d9455ce 17517
17518 fi
8f838781 17519
8f838781 17520
8f838781 17521
7d9455ce 17522
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17524$as_echo_n "checking for asinhf... " >&6; }
f00f02a3 17525if ${gcc_cv_math_func_asinhf+:} false; then :
cd9a469c 17526 $as_echo_n "(cached) " >&6
8f838781 17527else
7d9455ce 17528 if test x$gcc_no_link = xyes; then
f00f02a3 17529 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17530fi
cd9a469c 17531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17532/* end confdefs.h. */
17533
7d9455ce 17534#ifdef HAVE_COMPLEX_H
17535#include <complex.h>
8f838781 17536#endif
7d9455ce 17537#ifdef HAVE_MATH_H
17538#include <math.h>
17539#endif
17540
17541int (*ptr)() = (int (*)())asinhf;
17542
8f838781 17543int
17544main ()
17545{
8f838781 17546 return 0;
17547}
7d9455ce 17548
8f838781 17549_ACEOF
cd9a469c 17550if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17551 gcc_cv_math_func_asinhf=yes
8f838781 17552else
7d9455ce 17553 gcc_cv_math_func_asinhf=no
8f838781 17554fi
cd9a469c 17555rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
8f838781 17557fi
7d9455ce 17558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17559$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17560 if test $gcc_cv_math_func_asinhf = yes; then
bd647a17 17561
6affa8e1 17562cat >>confdefs.h <<_ACEOF
17563#define HAVE_ASINHF 1
17564_ACEOF
7d9455ce 17565
17566 fi
17567
8f838781 17568
8f838781 17569
8f838781 17570
7d9455ce 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17572$as_echo_n "checking for asinh... " >&6; }
f00f02a3 17573if ${gcc_cv_math_func_asinh+:} false; then :
cd9a469c 17574 $as_echo_n "(cached) " >&6
8f838781 17575else
7d9455ce 17576 if test x$gcc_no_link = xyes; then
f00f02a3 17577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17578fi
cd9a469c 17579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17580/* end confdefs.h. */
17581
7d9455ce 17582#ifdef HAVE_COMPLEX_H
17583#include <complex.h>
17584#endif
17585#ifdef HAVE_MATH_H
17586#include <math.h>
8f838781 17587#endif
7d9455ce 17588
17589int (*ptr)() = (int (*)())asinh;
17590
8f838781 17591int
17592main ()
17593{
8f838781 17594 return 0;
17595}
7d9455ce 17596
8f838781 17597_ACEOF
cd9a469c 17598if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17599 gcc_cv_math_func_asinh=yes
8f838781 17600else
7d9455ce 17601 gcc_cv_math_func_asinh=no
8f838781 17602fi
cd9a469c 17603rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
8f838781 17605fi
7d9455ce 17606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17607$as_echo "$gcc_cv_math_func_asinh" >&6; }
17608 if test $gcc_cv_math_func_asinh = yes; then
bd647a17 17609
6affa8e1 17610cat >>confdefs.h <<_ACEOF
17611#define HAVE_ASINH 1
17612_ACEOF
7d9455ce 17613
17614 fi
8f838781 17615
8f838781 17616
8f838781 17617
7d9455ce 17618
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17620$as_echo_n "checking for asinhl... " >&6; }
f00f02a3 17621if ${gcc_cv_math_func_asinhl+:} false; then :
cd9a469c 17622 $as_echo_n "(cached) " >&6
334f03a1 17623else
7d9455ce 17624 if test x$gcc_no_link = xyes; then
f00f02a3 17625 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17626fi
cd9a469c 17627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
334f03a1 17628/* end confdefs.h. */
17629
7d9455ce 17630#ifdef HAVE_COMPLEX_H
17631#include <complex.h>
334f03a1 17632#endif
7d9455ce 17633#ifdef HAVE_MATH_H
17634#include <math.h>
17635#endif
17636
17637int (*ptr)() = (int (*)())asinhl;
17638
334f03a1 17639int
17640main ()
17641{
334f03a1 17642 return 0;
17643}
7d9455ce 17644
334f03a1 17645_ACEOF
cd9a469c 17646if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17647 gcc_cv_math_func_asinhl=yes
334f03a1 17648else
7d9455ce 17649 gcc_cv_math_func_asinhl=no
334f03a1 17650fi
cd9a469c 17651rm -f core conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
334f03a1 17653fi
7d9455ce 17654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17655$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17656 if test $gcc_cv_math_func_asinhl = yes; then
bd647a17 17657
6affa8e1 17658cat >>confdefs.h <<_ACEOF
17659#define HAVE_ASINHL 1
17660_ACEOF
334f03a1 17661
7d9455ce 17662 fi
334f03a1 17663
334f03a1 17664
7d9455ce 17665
17666
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17668$as_echo_n "checking for atan2f... " >&6; }
f00f02a3 17669if ${gcc_cv_math_func_atan2f+:} false; then :
cd9a469c 17670 $as_echo_n "(cached) " >&6
8f838781 17671else
7d9455ce 17672 if test x$gcc_no_link = xyes; then
f00f02a3 17673 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17674fi
cd9a469c 17675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17676/* end confdefs.h. */
17677
7d9455ce 17678#ifdef HAVE_COMPLEX_H
17679#include <complex.h>
8f838781 17680#endif
7d9455ce 17681#ifdef HAVE_MATH_H
17682#include <math.h>
17683#endif
17684
17685int (*ptr)() = (int (*)())atan2f;
17686
17687int
8f838781 17688main ()
17689{
8f838781 17690 return 0;
17691}
7d9455ce 17692
8f838781 17693_ACEOF
cd9a469c 17694if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17695 gcc_cv_math_func_atan2f=yes
8f838781 17696else
7d9455ce 17697 gcc_cv_math_func_atan2f=no
8f838781 17698fi
cd9a469c 17699rm -f core conftest.err conftest.$ac_objext \
17700 conftest$ac_exeext conftest.$ac_ext
8f838781 17701fi
7d9455ce 17702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17703$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17704 if test $gcc_cv_math_func_atan2f = yes; then
bd647a17 17705
6affa8e1 17706cat >>confdefs.h <<_ACEOF
17707#define HAVE_ATAN2F 1
17708_ACEOF
7d9455ce 17709
17710 fi
8f838781 17711
8f838781 17712
8f838781 17713
7d9455ce 17714
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17716$as_echo_n "checking for atan2... " >&6; }
f00f02a3 17717if ${gcc_cv_math_func_atan2+:} false; then :
cd9a469c 17718 $as_echo_n "(cached) " >&6
8f838781 17719else
7d9455ce 17720 if test x$gcc_no_link = xyes; then
f00f02a3 17721 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17722fi
cd9a469c 17723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17724/* end confdefs.h. */
17725
7d9455ce 17726#ifdef HAVE_COMPLEX_H
17727#include <complex.h>
8f838781 17728#endif
7d9455ce 17729#ifdef HAVE_MATH_H
17730#include <math.h>
17731#endif
17732
17733int (*ptr)() = (int (*)())atan2;
17734
8f838781 17735int
17736main ()
17737{
8f838781 17738 return 0;
17739}
7d9455ce 17740
8f838781 17741_ACEOF
cd9a469c 17742if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17743 gcc_cv_math_func_atan2=yes
8f838781 17744else
7d9455ce 17745 gcc_cv_math_func_atan2=no
8f838781 17746fi
cd9a469c 17747rm -f core conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
8f838781 17749fi
7d9455ce 17750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17751$as_echo "$gcc_cv_math_func_atan2" >&6; }
17752 if test $gcc_cv_math_func_atan2 = yes; then
bd647a17 17753
6affa8e1 17754cat >>confdefs.h <<_ACEOF
17755#define HAVE_ATAN2 1
17756_ACEOF
8f838781 17757
7d9455ce 17758 fi
8f838781 17759
8f838781 17760
7d9455ce 17761
17762
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17764$as_echo_n "checking for atan2l... " >&6; }
f00f02a3 17765if ${gcc_cv_math_func_atan2l+:} false; then :
cd9a469c 17766 $as_echo_n "(cached) " >&6
8f838781 17767else
7d9455ce 17768 if test x$gcc_no_link = xyes; then
f00f02a3 17769 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17770fi
cd9a469c 17771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17772/* end confdefs.h. */
17773
7d9455ce 17774#ifdef HAVE_COMPLEX_H
17775#include <complex.h>
17776#endif
17777#ifdef HAVE_MATH_H
17778#include <math.h>
8f838781 17779#endif
7d9455ce 17780
17781int (*ptr)() = (int (*)())atan2l;
17782
8f838781 17783int
17784main ()
17785{
8f838781 17786 return 0;
17787}
7d9455ce 17788
8f838781 17789_ACEOF
cd9a469c 17790if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17791 gcc_cv_math_func_atan2l=yes
8f838781 17792else
7d9455ce 17793 gcc_cv_math_func_atan2l=no
8f838781 17794fi
cd9a469c 17795rm -f core conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
8f838781 17797fi
7d9455ce 17798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17799$as_echo "$gcc_cv_math_func_atan2l" >&6; }
17800 if test $gcc_cv_math_func_atan2l = yes; then
bd647a17 17801
6affa8e1 17802cat >>confdefs.h <<_ACEOF
17803#define HAVE_ATAN2L 1
17804_ACEOF
7d9455ce 17805
17806 fi
8f838781 17807
8f838781 17808
8f838781 17809
7d9455ce 17810
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17812$as_echo_n "checking for atanf... " >&6; }
f00f02a3 17813if ${gcc_cv_math_func_atanf+:} false; then :
cd9a469c 17814 $as_echo_n "(cached) " >&6
8f838781 17815else
7d9455ce 17816 if test x$gcc_no_link = xyes; then
f00f02a3 17817 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17818fi
cd9a469c 17819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17820/* end confdefs.h. */
17821
7d9455ce 17822#ifdef HAVE_COMPLEX_H
17823#include <complex.h>
8f838781 17824#endif
7d9455ce 17825#ifdef HAVE_MATH_H
17826#include <math.h>
17827#endif
17828
17829int (*ptr)() = (int (*)())atanf;
17830
8f838781 17831int
17832main ()
17833{
8f838781 17834 return 0;
17835}
7d9455ce 17836
8f838781 17837_ACEOF
cd9a469c 17838if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17839 gcc_cv_math_func_atanf=yes
8f838781 17840else
7d9455ce 17841 gcc_cv_math_func_atanf=no
8f838781 17842fi
cd9a469c 17843rm -f core conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
8f838781 17845fi
7d9455ce 17846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17847$as_echo "$gcc_cv_math_func_atanf" >&6; }
17848 if test $gcc_cv_math_func_atanf = yes; then
bd647a17 17849
6affa8e1 17850cat >>confdefs.h <<_ACEOF
17851#define HAVE_ATANF 1
17852_ACEOF
7d9455ce 17853
17854 fi
17855
8f838781 17856
8f838781 17857
8f838781 17858
7d9455ce 17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17860$as_echo_n "checking for atan... " >&6; }
f00f02a3 17861if ${gcc_cv_math_func_atan+:} false; then :
cd9a469c 17862 $as_echo_n "(cached) " >&6
8f838781 17863else
7d9455ce 17864 if test x$gcc_no_link = xyes; then
f00f02a3 17865 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17866fi
cd9a469c 17867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17868/* end confdefs.h. */
17869
7d9455ce 17870#ifdef HAVE_COMPLEX_H
17871#include <complex.h>
17872#endif
17873#ifdef HAVE_MATH_H
17874#include <math.h>
8f838781 17875#endif
7d9455ce 17876
17877int (*ptr)() = (int (*)())atan;
17878
8f838781 17879int
17880main ()
17881{
8f838781 17882 return 0;
17883}
7d9455ce 17884
8f838781 17885_ACEOF
cd9a469c 17886if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17887 gcc_cv_math_func_atan=yes
8f838781 17888else
7d9455ce 17889 gcc_cv_math_func_atan=no
8f838781 17890fi
cd9a469c 17891rm -f core conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
8f838781 17893fi
7d9455ce 17894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17895$as_echo "$gcc_cv_math_func_atan" >&6; }
17896 if test $gcc_cv_math_func_atan = yes; then
bd647a17 17897
6affa8e1 17898cat >>confdefs.h <<_ACEOF
17899#define HAVE_ATAN 1
17900_ACEOF
7d9455ce 17901
17902 fi
8f838781 17903
8f838781 17904
8f838781 17905
7d9455ce 17906
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17908$as_echo_n "checking for atanl... " >&6; }
f00f02a3 17909if ${gcc_cv_math_func_atanl+:} false; then :
cd9a469c 17910 $as_echo_n "(cached) " >&6
14c3c235 17911else
7d9455ce 17912 if test x$gcc_no_link = xyes; then
f00f02a3 17913 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17914fi
cd9a469c 17915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14c3c235 17916/* end confdefs.h. */
17917
7d9455ce 17918#ifdef HAVE_COMPLEX_H
17919#include <complex.h>
14c3c235 17920#endif
7d9455ce 17921#ifdef HAVE_MATH_H
17922#include <math.h>
17923#endif
17924
17925int (*ptr)() = (int (*)())atanl;
17926
14c3c235 17927int
17928main ()
17929{
14c3c235 17930 return 0;
17931}
7d9455ce 17932
14c3c235 17933_ACEOF
cd9a469c 17934if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17935 gcc_cv_math_func_atanl=yes
14c3c235 17936else
7d9455ce 17937 gcc_cv_math_func_atanl=no
14c3c235 17938fi
cd9a469c 17939rm -f core conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
14c3c235 17941fi
7d9455ce 17942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17943$as_echo "$gcc_cv_math_func_atanl" >&6; }
17944 if test $gcc_cv_math_func_atanl = yes; then
bd647a17 17945
6affa8e1 17946cat >>confdefs.h <<_ACEOF
17947#define HAVE_ATANL 1
17948_ACEOF
14c3c235 17949
7d9455ce 17950 fi
14c3c235 17951
14c3c235 17952
7d9455ce 17953
17954
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17956$as_echo_n "checking for atanhf... " >&6; }
f00f02a3 17957if ${gcc_cv_math_func_atanhf+:} false; then :
cd9a469c 17958 $as_echo_n "(cached) " >&6
8f838781 17959else
7d9455ce 17960 if test x$gcc_no_link = xyes; then
f00f02a3 17961 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 17962fi
cd9a469c 17963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 17964/* end confdefs.h. */
17965
7d9455ce 17966#ifdef HAVE_COMPLEX_H
17967#include <complex.h>
17968#endif
17969#ifdef HAVE_MATH_H
17970#include <math.h>
8f838781 17971#endif
7d9455ce 17972
17973int (*ptr)() = (int (*)())atanhf;
17974
8f838781 17975int
17976main ()
17977{
8f838781 17978 return 0;
17979}
7d9455ce 17980
8f838781 17981_ACEOF
cd9a469c 17982if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 17983 gcc_cv_math_func_atanhf=yes
8f838781 17984else
7d9455ce 17985 gcc_cv_math_func_atanhf=no
8f838781 17986fi
cd9a469c 17987rm -f core conftest.err conftest.$ac_objext \
17988 conftest$ac_exeext conftest.$ac_ext
8f838781 17989fi
7d9455ce 17990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17991$as_echo "$gcc_cv_math_func_atanhf" >&6; }
17992 if test $gcc_cv_math_func_atanhf = yes; then
bd647a17 17993
6affa8e1 17994cat >>confdefs.h <<_ACEOF
17995#define HAVE_ATANHF 1
17996_ACEOF
7d9455ce 17997
17998 fi
8f838781 17999
8f838781 18000
8f838781 18001
7d9455ce 18002
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18004$as_echo_n "checking for atanh... " >&6; }
f00f02a3 18005if ${gcc_cv_math_func_atanh+:} false; then :
cd9a469c 18006 $as_echo_n "(cached) " >&6
8f838781 18007else
7d9455ce 18008 if test x$gcc_no_link = xyes; then
f00f02a3 18009 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18010fi
cd9a469c 18011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18012/* end confdefs.h. */
18013
7d9455ce 18014#ifdef HAVE_COMPLEX_H
18015#include <complex.h>
8f838781 18016#endif
7d9455ce 18017#ifdef HAVE_MATH_H
18018#include <math.h>
18019#endif
18020
18021int (*ptr)() = (int (*)())atanh;
18022
8f838781 18023int
18024main ()
18025{
8f838781 18026 return 0;
18027}
7d9455ce 18028
8f838781 18029_ACEOF
cd9a469c 18030if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18031 gcc_cv_math_func_atanh=yes
8f838781 18032else
7d9455ce 18033 gcc_cv_math_func_atanh=no
8f838781 18034fi
cd9a469c 18035rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
8f838781 18037fi
7d9455ce 18038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18039$as_echo "$gcc_cv_math_func_atanh" >&6; }
18040 if test $gcc_cv_math_func_atanh = yes; then
bd647a17 18041
6affa8e1 18042cat >>confdefs.h <<_ACEOF
18043#define HAVE_ATANH 1
18044_ACEOF
7d9455ce 18045
18046 fi
18047
8f838781 18048
8f838781 18049
8f838781 18050
7d9455ce 18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18052$as_echo_n "checking for atanhl... " >&6; }
f00f02a3 18053if ${gcc_cv_math_func_atanhl+:} false; then :
cd9a469c 18054 $as_echo_n "(cached) " >&6
a2d7a3ff 18055else
7d9455ce 18056 if test x$gcc_no_link = xyes; then
f00f02a3 18057 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18058fi
cd9a469c 18059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2d7a3ff 18060/* end confdefs.h. */
18061
7d9455ce 18062#ifdef HAVE_COMPLEX_H
18063#include <complex.h>
18064#endif
18065#ifdef HAVE_MATH_H
18066#include <math.h>
a2d7a3ff 18067#endif
7d9455ce 18068
18069int (*ptr)() = (int (*)())atanhl;
18070
a2d7a3ff 18071int
18072main ()
18073{
a2d7a3ff 18074 return 0;
18075}
7d9455ce 18076
a2d7a3ff 18077_ACEOF
cd9a469c 18078if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18079 gcc_cv_math_func_atanhl=yes
a2d7a3ff 18080else
7d9455ce 18081 gcc_cv_math_func_atanhl=no
a2d7a3ff 18082fi
cd9a469c 18083rm -f core conftest.err conftest.$ac_objext \
18084 conftest$ac_exeext conftest.$ac_ext
a2d7a3ff 18085fi
7d9455ce 18086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18087$as_echo "$gcc_cv_math_func_atanhl" >&6; }
18088 if test $gcc_cv_math_func_atanhl = yes; then
bd647a17 18089
6affa8e1 18090cat >>confdefs.h <<_ACEOF
18091#define HAVE_ATANHL 1
18092_ACEOF
7d9455ce 18093
18094 fi
a2d7a3ff 18095
a2d7a3ff 18096
a2d7a3ff 18097
7d9455ce 18098
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18100$as_echo_n "checking for cargf... " >&6; }
f00f02a3 18101if ${gcc_cv_math_func_cargf+:} false; then :
cd9a469c 18102 $as_echo_n "(cached) " >&6
a31bd8a4 18103else
7d9455ce 18104 if test x$gcc_no_link = xyes; then
f00f02a3 18105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18106fi
cd9a469c 18107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a31bd8a4 18108/* end confdefs.h. */
18109
7d9455ce 18110#ifdef HAVE_COMPLEX_H
18111#include <complex.h>
a31bd8a4 18112#endif
7d9455ce 18113#ifdef HAVE_MATH_H
18114#include <math.h>
18115#endif
18116
18117int (*ptr)() = (int (*)())cargf;
18118
8f838781 18119int
18120main ()
18121{
8f838781 18122 return 0;
18123}
7d9455ce 18124
8f838781 18125_ACEOF
cd9a469c 18126if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18127 gcc_cv_math_func_cargf=yes
8f838781 18128else
7d9455ce 18129 gcc_cv_math_func_cargf=no
8f838781 18130fi
cd9a469c 18131rm -f core conftest.err conftest.$ac_objext \
18132 conftest$ac_exeext conftest.$ac_ext
8f838781 18133fi
7d9455ce 18134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18135$as_echo "$gcc_cv_math_func_cargf" >&6; }
18136 if test $gcc_cv_math_func_cargf = yes; then
bd647a17 18137
6affa8e1 18138cat >>confdefs.h <<_ACEOF
18139#define HAVE_CARGF 1
18140_ACEOF
8f838781 18141
7d9455ce 18142 fi
8f838781 18143
8f838781 18144
7d9455ce 18145
18146
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18148$as_echo_n "checking for carg... " >&6; }
f00f02a3 18149if ${gcc_cv_math_func_carg+:} false; then :
cd9a469c 18150 $as_echo_n "(cached) " >&6
8f838781 18151else
7d9455ce 18152 if test x$gcc_no_link = xyes; then
f00f02a3 18153 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18154fi
cd9a469c 18155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18156/* end confdefs.h. */
18157
7d9455ce 18158#ifdef HAVE_COMPLEX_H
18159#include <complex.h>
18160#endif
18161#ifdef HAVE_MATH_H
18162#include <math.h>
8f838781 18163#endif
7d9455ce 18164
18165int (*ptr)() = (int (*)())carg;
18166
a31bd8a4 18167int
18168main ()
18169{
a31bd8a4 18170 return 0;
18171}
7d9455ce 18172
a31bd8a4 18173_ACEOF
cd9a469c 18174if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18175 gcc_cv_math_func_carg=yes
a31bd8a4 18176else
7d9455ce 18177 gcc_cv_math_func_carg=no
a31bd8a4 18178fi
cd9a469c 18179rm -f core conftest.err conftest.$ac_objext \
18180 conftest$ac_exeext conftest.$ac_ext
a31bd8a4 18181fi
7d9455ce 18182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18183$as_echo "$gcc_cv_math_func_carg" >&6; }
18184 if test $gcc_cv_math_func_carg = yes; then
bd647a17 18185
6affa8e1 18186cat >>confdefs.h <<_ACEOF
18187#define HAVE_CARG 1
18188_ACEOF
7d9455ce 18189
18190 fi
a31bd8a4 18191
a31bd8a4 18192
a31bd8a4 18193
7d9455ce 18194
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18196$as_echo_n "checking for cargl... " >&6; }
f00f02a3 18197if ${gcc_cv_math_func_cargl+:} false; then :
cd9a469c 18198 $as_echo_n "(cached) " >&6
a31bd8a4 18199else
7d9455ce 18200 if test x$gcc_no_link = xyes; then
f00f02a3 18201 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18202fi
cd9a469c 18203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a31bd8a4 18204/* end confdefs.h. */
18205
7d9455ce 18206#ifdef HAVE_COMPLEX_H
18207#include <complex.h>
a31bd8a4 18208#endif
7d9455ce 18209#ifdef HAVE_MATH_H
18210#include <math.h>
18211#endif
18212
18213int (*ptr)() = (int (*)())cargl;
18214
a31bd8a4 18215int
18216main ()
18217{
a31bd8a4 18218 return 0;
18219}
7d9455ce 18220
a31bd8a4 18221_ACEOF
cd9a469c 18222if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18223 gcc_cv_math_func_cargl=yes
a31bd8a4 18224else
7d9455ce 18225 gcc_cv_math_func_cargl=no
a31bd8a4 18226fi
cd9a469c 18227rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
a31bd8a4 18229fi
7d9455ce 18230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18231$as_echo "$gcc_cv_math_func_cargl" >&6; }
18232 if test $gcc_cv_math_func_cargl = yes; then
bd647a17 18233
6affa8e1 18234cat >>confdefs.h <<_ACEOF
18235#define HAVE_CARGL 1
18236_ACEOF
7d9455ce 18237
18238 fi
18239
a31bd8a4 18240
a31bd8a4 18241
a31bd8a4 18242
7d9455ce 18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18244$as_echo_n "checking for ceilf... " >&6; }
f00f02a3 18245if ${gcc_cv_math_func_ceilf+:} false; then :
cd9a469c 18246 $as_echo_n "(cached) " >&6
97844b15 18247else
7d9455ce 18248 if test x$gcc_no_link = xyes; then
f00f02a3 18249 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18250fi
cd9a469c 18251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97844b15 18252/* end confdefs.h. */
18253
7d9455ce 18254#ifdef HAVE_COMPLEX_H
18255#include <complex.h>
18256#endif
18257#ifdef HAVE_MATH_H
18258#include <math.h>
97844b15 18259#endif
7d9455ce 18260
18261int (*ptr)() = (int (*)())ceilf;
18262
97844b15 18263int
18264main ()
18265{
97844b15 18266 return 0;
18267}
7d9455ce 18268
97844b15 18269_ACEOF
cd9a469c 18270if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18271 gcc_cv_math_func_ceilf=yes
97844b15 18272else
7d9455ce 18273 gcc_cv_math_func_ceilf=no
97844b15 18274fi
cd9a469c 18275rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
97844b15 18277fi
7d9455ce 18278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18279$as_echo "$gcc_cv_math_func_ceilf" >&6; }
18280 if test $gcc_cv_math_func_ceilf = yes; then
bd647a17 18281
6affa8e1 18282cat >>confdefs.h <<_ACEOF
18283#define HAVE_CEILF 1
18284_ACEOF
7d9455ce 18285
18286 fi
97844b15 18287
97844b15 18288
97844b15 18289
7d9455ce 18290
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18292$as_echo_n "checking for ceil... " >&6; }
f00f02a3 18293if ${gcc_cv_math_func_ceil+:} false; then :
cd9a469c 18294 $as_echo_n "(cached) " >&6
4db2deda 18295else
7d9455ce 18296 if test x$gcc_no_link = xyes; then
f00f02a3 18297 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18298fi
cd9a469c 18299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4db2deda 18300/* end confdefs.h. */
18301
7d9455ce 18302#ifdef HAVE_COMPLEX_H
18303#include <complex.h>
4db2deda 18304#endif
7d9455ce 18305#ifdef HAVE_MATH_H
18306#include <math.h>
18307#endif
18308
18309int (*ptr)() = (int (*)())ceil;
18310
4db2deda 18311int
18312main ()
18313{
4db2deda 18314 return 0;
18315}
7d9455ce 18316
4db2deda 18317_ACEOF
cd9a469c 18318if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18319 gcc_cv_math_func_ceil=yes
4db2deda 18320else
7d9455ce 18321 gcc_cv_math_func_ceil=no
4db2deda 18322fi
cd9a469c 18323rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
4db2deda 18325fi
7d9455ce 18326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18327$as_echo "$gcc_cv_math_func_ceil" >&6; }
18328 if test $gcc_cv_math_func_ceil = yes; then
bd647a17 18329
6affa8e1 18330cat >>confdefs.h <<_ACEOF
18331#define HAVE_CEIL 1
18332_ACEOF
4db2deda 18333
7d9455ce 18334 fi
4db2deda 18335
4db2deda 18336
7d9455ce 18337
18338
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18340$as_echo_n "checking for ceill... " >&6; }
f00f02a3 18341if ${gcc_cv_math_func_ceill+:} false; then :
cd9a469c 18342 $as_echo_n "(cached) " >&6
4db2deda 18343else
7d9455ce 18344 if test x$gcc_no_link = xyes; then
f00f02a3 18345 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18346fi
cd9a469c 18347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4db2deda 18348/* end confdefs.h. */
18349
7d9455ce 18350#ifdef HAVE_COMPLEX_H
18351#include <complex.h>
18352#endif
18353#ifdef HAVE_MATH_H
18354#include <math.h>
4db2deda 18355#endif
7d9455ce 18356
18357int (*ptr)() = (int (*)())ceill;
18358
4db2deda 18359int
18360main ()
18361{
4db2deda 18362 return 0;
18363}
7d9455ce 18364
4db2deda 18365_ACEOF
cd9a469c 18366if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18367 gcc_cv_math_func_ceill=yes
4db2deda 18368else
7d9455ce 18369 gcc_cv_math_func_ceill=no
4db2deda 18370fi
cd9a469c 18371rm -f core conftest.err conftest.$ac_objext \
18372 conftest$ac_exeext conftest.$ac_ext
4db2deda 18373fi
7d9455ce 18374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18375$as_echo "$gcc_cv_math_func_ceill" >&6; }
18376 if test $gcc_cv_math_func_ceill = yes; then
bd647a17 18377
6affa8e1 18378cat >>confdefs.h <<_ACEOF
18379#define HAVE_CEILL 1
18380_ACEOF
7d9455ce 18381
18382 fi
4db2deda 18383
8f838781 18384
8f838781 18385
7d9455ce 18386
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18388$as_echo_n "checking for copysignf... " >&6; }
f00f02a3 18389if ${gcc_cv_math_func_copysignf+:} false; then :
cd9a469c 18390 $as_echo_n "(cached) " >&6
8f838781 18391else
7d9455ce 18392 if test x$gcc_no_link = xyes; then
f00f02a3 18393 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18394fi
cd9a469c 18395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18396/* end confdefs.h. */
18397
7d9455ce 18398#ifdef HAVE_COMPLEX_H
18399#include <complex.h>
8f838781 18400#endif
7d9455ce 18401#ifdef HAVE_MATH_H
18402#include <math.h>
18403#endif
18404
18405int (*ptr)() = (int (*)())copysignf;
18406
8f838781 18407int
18408main ()
18409{
8f838781 18410 return 0;
18411}
7d9455ce 18412
8f838781 18413_ACEOF
cd9a469c 18414if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18415 gcc_cv_math_func_copysignf=yes
8f838781 18416else
7d9455ce 18417 gcc_cv_math_func_copysignf=no
8f838781 18418fi
cd9a469c 18419rm -f core conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
8f838781 18421fi
7d9455ce 18422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18423$as_echo "$gcc_cv_math_func_copysignf" >&6; }
18424 if test $gcc_cv_math_func_copysignf = yes; then
bd647a17 18425
6affa8e1 18426cat >>confdefs.h <<_ACEOF
18427#define HAVE_COPYSIGNF 1
18428_ACEOF
7d9455ce 18429
18430 fi
18431
8f838781 18432
8f838781 18433
8f838781 18434
7d9455ce 18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18436$as_echo_n "checking for copysign... " >&6; }
f00f02a3 18437if ${gcc_cv_math_func_copysign+:} false; then :
cd9a469c 18438 $as_echo_n "(cached) " >&6
8f838781 18439else
7d9455ce 18440 if test x$gcc_no_link = xyes; then
f00f02a3 18441 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18442fi
cd9a469c 18443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18444/* end confdefs.h. */
18445
7d9455ce 18446#ifdef HAVE_COMPLEX_H
18447#include <complex.h>
18448#endif
18449#ifdef HAVE_MATH_H
18450#include <math.h>
8f838781 18451#endif
7d9455ce 18452
18453int (*ptr)() = (int (*)())copysign;
18454
8f838781 18455int
18456main ()
18457{
8f838781 18458 return 0;
18459}
7d9455ce 18460
8f838781 18461_ACEOF
cd9a469c 18462if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18463 gcc_cv_math_func_copysign=yes
8f838781 18464else
7d9455ce 18465 gcc_cv_math_func_copysign=no
8f838781 18466fi
cd9a469c 18467rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
8f838781 18469fi
7d9455ce 18470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18471$as_echo "$gcc_cv_math_func_copysign" >&6; }
18472 if test $gcc_cv_math_func_copysign = yes; then
bd647a17 18473
6affa8e1 18474cat >>confdefs.h <<_ACEOF
18475#define HAVE_COPYSIGN 1
18476_ACEOF
7d9455ce 18477
18478 fi
8f838781 18479
8f838781 18480
8f838781 18481
7d9455ce 18482
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18484$as_echo_n "checking for copysignl... " >&6; }
f00f02a3 18485if ${gcc_cv_math_func_copysignl+:} false; then :
cd9a469c 18486 $as_echo_n "(cached) " >&6
8f838781 18487else
7d9455ce 18488 if test x$gcc_no_link = xyes; then
f00f02a3 18489 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18490fi
cd9a469c 18491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f838781 18492/* end confdefs.h. */
18493
7d9455ce 18494#ifdef HAVE_COMPLEX_H
18495#include <complex.h>
8f838781 18496#endif
7d9455ce 18497#ifdef HAVE_MATH_H
18498#include <math.h>
18499#endif
18500
18501int (*ptr)() = (int (*)())copysignl;
18502
8f838781 18503int
18504main ()
18505{
cd9a469c 18506 return 0;
18507}
7d9455ce 18508
cd9a469c 18509_ACEOF
18510if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18511 gcc_cv_math_func_copysignl=yes
8f838781 18512else
7d9455ce 18513 gcc_cv_math_func_copysignl=no
8f838781 18514fi
cd9a469c 18515rm -f core conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
8f838781 18517fi
7d9455ce 18518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18519$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18520 if test $gcc_cv_math_func_copysignl = yes; then
bd647a17 18521
6affa8e1 18522cat >>confdefs.h <<_ACEOF
18523#define HAVE_COPYSIGNL 1
18524_ACEOF
8f838781 18525
7d9455ce 18526 fi
4db2deda 18527
4db2deda 18528
7d9455ce 18529
18530
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18532$as_echo_n "checking for cosf... " >&6; }
f00f02a3 18533if ${gcc_cv_math_func_cosf+:} false; then :
cd9a469c 18534 $as_echo_n "(cached) " >&6
50f0ca0a 18535else
7d9455ce 18536 if test x$gcc_no_link = xyes; then
f00f02a3 18537 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 18538fi
cd9a469c 18539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50f0ca0a 18540/* end confdefs.h. */
18541
7d9455ce 18542#ifdef HAVE_COMPLEX_H
18543#include <complex.h>
18544#endif
18545#ifdef HAVE_MATH_H
18546#include <math.h>
50f0ca0a 18547#endif
7d9455ce 18548
18549int (*ptr)() = (int (*)())cosf;
18550
50f0ca0a 18551int
18552main ()
18553{
50f0ca0a 18554 return 0;
18555}
7d9455ce 18556
50f0ca0a 18557_ACEOF
cd9a469c 18558if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18559 gcc_cv_math_func_cosf=yes
50f0ca0a 18560else
7d9455ce 18561 gcc_cv_math_func_cosf=no
50f0ca0a 18562fi
cd9a469c 18563rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
50f0ca0a 18565fi
7d9455ce 18566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18567$as_echo "$gcc_cv_math_func_cosf" >&6; }
18568 if test $gcc_cv_math_func_cosf = yes; then
bd647a17 18569
6affa8e1 18570cat >>confdefs.h <<_ACEOF
18571#define HAVE_COSF 1
18572_ACEOF
7d9455ce 18573
18574 fi
50f0ca0a 18575
d213114b 18576
d213114b 18577
7d9455ce 18578
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18580$as_echo_n "checking for cos... " >&6; }
f00f02a3 18581if ${gcc_cv_math_func_cos+:} false; then :
cd9a469c 18582 $as_echo_n "(cached) " >&6
d213114b 18583else
7d9455ce 18584 if test x$gcc_no_link = xyes; then
f00f02a3 18585 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18586fi
cd9a469c 18587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18588/* end confdefs.h. */
18589
7d9455ce 18590#ifdef HAVE_COMPLEX_H
18591#include <complex.h>
d213114b 18592#endif
7d9455ce 18593#ifdef HAVE_MATH_H
18594#include <math.h>
18595#endif
18596
18597int (*ptr)() = (int (*)())cos;
18598
d213114b 18599int
18600main ()
18601{
d213114b 18602 return 0;
18603}
7d9455ce 18604
d213114b 18605_ACEOF
cd9a469c 18606if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18607 gcc_cv_math_func_cos=yes
d213114b 18608else
7d9455ce 18609 gcc_cv_math_func_cos=no
d213114b 18610fi
cd9a469c 18611rm -f core conftest.err conftest.$ac_objext \
18612 conftest$ac_exeext conftest.$ac_ext
d213114b 18613fi
7d9455ce 18614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18615$as_echo "$gcc_cv_math_func_cos" >&6; }
18616 if test $gcc_cv_math_func_cos = yes; then
bd647a17 18617
6affa8e1 18618cat >>confdefs.h <<_ACEOF
18619#define HAVE_COS 1
18620_ACEOF
7d9455ce 18621
18622 fi
18623
d213114b 18624
d213114b 18625
d213114b 18626
7d9455ce 18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18628$as_echo_n "checking for cosl... " >&6; }
f00f02a3 18629if ${gcc_cv_math_func_cosl+:} false; then :
cd9a469c 18630 $as_echo_n "(cached) " >&6
d213114b 18631else
7d9455ce 18632 if test x$gcc_no_link = xyes; then
f00f02a3 18633 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18634fi
cd9a469c 18635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18636/* end confdefs.h. */
18637
7d9455ce 18638#ifdef HAVE_COMPLEX_H
18639#include <complex.h>
18640#endif
18641#ifdef HAVE_MATH_H
18642#include <math.h>
d213114b 18643#endif
7d9455ce 18644
18645int (*ptr)() = (int (*)())cosl;
18646
d213114b 18647int
18648main ()
18649{
d213114b 18650 return 0;
18651}
7d9455ce 18652
d213114b 18653_ACEOF
cd9a469c 18654if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18655 gcc_cv_math_func_cosl=yes
d213114b 18656else
7d9455ce 18657 gcc_cv_math_func_cosl=no
d213114b 18658fi
cd9a469c 18659rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
d213114b 18661fi
7d9455ce 18662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18663$as_echo "$gcc_cv_math_func_cosl" >&6; }
18664 if test $gcc_cv_math_func_cosl = yes; then
bd647a17 18665
6affa8e1 18666cat >>confdefs.h <<_ACEOF
18667#define HAVE_COSL 1
18668_ACEOF
7d9455ce 18669
18670 fi
d213114b 18671
d213114b 18672
d213114b 18673
7d9455ce 18674
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18676$as_echo_n "checking for ccosf... " >&6; }
f00f02a3 18677if ${gcc_cv_math_func_ccosf+:} false; then :
cd9a469c 18678 $as_echo_n "(cached) " >&6
d213114b 18679else
7d9455ce 18680 if test x$gcc_no_link = xyes; then
f00f02a3 18681 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18682fi
cd9a469c 18683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18684/* end confdefs.h. */
18685
7d9455ce 18686#ifdef HAVE_COMPLEX_H
18687#include <complex.h>
d213114b 18688#endif
7d9455ce 18689#ifdef HAVE_MATH_H
18690#include <math.h>
18691#endif
18692
18693int (*ptr)() = (int (*)())ccosf;
18694
d213114b 18695int
18696main ()
18697{
d213114b 18698 return 0;
18699}
7d9455ce 18700
d213114b 18701_ACEOF
cd9a469c 18702if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18703 gcc_cv_math_func_ccosf=yes
d213114b 18704else
7d9455ce 18705 gcc_cv_math_func_ccosf=no
d213114b 18706fi
cd9a469c 18707rm -f core conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
d213114b 18709fi
7d9455ce 18710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18711$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18712 if test $gcc_cv_math_func_ccosf = yes; then
bd647a17 18713
6affa8e1 18714cat >>confdefs.h <<_ACEOF
18715#define HAVE_CCOSF 1
18716_ACEOF
d213114b 18717
7d9455ce 18718 fi
d213114b 18719
d213114b 18720
7d9455ce 18721
18722
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18724$as_echo_n "checking for ccos... " >&6; }
f00f02a3 18725if ${gcc_cv_math_func_ccos+:} false; then :
cd9a469c 18726 $as_echo_n "(cached) " >&6
d213114b 18727else
7d9455ce 18728 if test x$gcc_no_link = xyes; then
f00f02a3 18729 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18730fi
cd9a469c 18731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18732/* end confdefs.h. */
18733
7d9455ce 18734#ifdef HAVE_COMPLEX_H
18735#include <complex.h>
18736#endif
18737#ifdef HAVE_MATH_H
18738#include <math.h>
d213114b 18739#endif
7d9455ce 18740
18741int (*ptr)() = (int (*)())ccos;
18742
d213114b 18743int
18744main ()
18745{
d213114b 18746 return 0;
18747}
7d9455ce 18748
d213114b 18749_ACEOF
cd9a469c 18750if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18751 gcc_cv_math_func_ccos=yes
d213114b 18752else
7d9455ce 18753 gcc_cv_math_func_ccos=no
d213114b 18754fi
cd9a469c 18755rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
d213114b 18757fi
7d9455ce 18758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18759$as_echo "$gcc_cv_math_func_ccos" >&6; }
18760 if test $gcc_cv_math_func_ccos = yes; then
bd647a17 18761
6affa8e1 18762cat >>confdefs.h <<_ACEOF
18763#define HAVE_CCOS 1
18764_ACEOF
7d9455ce 18765
18766 fi
d213114b 18767
d213114b 18768
d213114b 18769
7d9455ce 18770
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18772$as_echo_n "checking for ccosl... " >&6; }
f00f02a3 18773if ${gcc_cv_math_func_ccosl+:} false; then :
cd9a469c 18774 $as_echo_n "(cached) " >&6
d213114b 18775else
7d9455ce 18776 if test x$gcc_no_link = xyes; then
f00f02a3 18777 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18778fi
cd9a469c 18779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18780/* end confdefs.h. */
18781
7d9455ce 18782#ifdef HAVE_COMPLEX_H
18783#include <complex.h>
d213114b 18784#endif
7d9455ce 18785#ifdef HAVE_MATH_H
18786#include <math.h>
18787#endif
18788
18789int (*ptr)() = (int (*)())ccosl;
18790
d213114b 18791int
18792main ()
18793{
d213114b 18794 return 0;
18795}
7d9455ce 18796
d213114b 18797_ACEOF
cd9a469c 18798if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18799 gcc_cv_math_func_ccosl=yes
d213114b 18800else
7d9455ce 18801 gcc_cv_math_func_ccosl=no
d213114b 18802fi
cd9a469c 18803rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
d213114b 18805fi
7d9455ce 18806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18807$as_echo "$gcc_cv_math_func_ccosl" >&6; }
18808 if test $gcc_cv_math_func_ccosl = yes; then
bd647a17 18809
6affa8e1 18810cat >>confdefs.h <<_ACEOF
18811#define HAVE_CCOSL 1
18812_ACEOF
7d9455ce 18813
18814 fi
18815
d213114b 18816
d213114b 18817
d213114b 18818
7d9455ce 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18820$as_echo_n "checking for coshf... " >&6; }
f00f02a3 18821if ${gcc_cv_math_func_coshf+:} false; then :
cd9a469c 18822 $as_echo_n "(cached) " >&6
d213114b 18823else
7d9455ce 18824 if test x$gcc_no_link = xyes; then
f00f02a3 18825 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18826fi
cd9a469c 18827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18828/* end confdefs.h. */
18829
7d9455ce 18830#ifdef HAVE_COMPLEX_H
18831#include <complex.h>
18832#endif
18833#ifdef HAVE_MATH_H
18834#include <math.h>
d213114b 18835#endif
7d9455ce 18836
18837int (*ptr)() = (int (*)())coshf;
18838
d213114b 18839int
18840main ()
18841{
d213114b 18842 return 0;
18843}
7d9455ce 18844
d213114b 18845_ACEOF
cd9a469c 18846if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18847 gcc_cv_math_func_coshf=yes
d213114b 18848else
7d9455ce 18849 gcc_cv_math_func_coshf=no
d213114b 18850fi
cd9a469c 18851rm -f core conftest.err conftest.$ac_objext \
18852 conftest$ac_exeext conftest.$ac_ext
d213114b 18853fi
7d9455ce 18854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18855$as_echo "$gcc_cv_math_func_coshf" >&6; }
18856 if test $gcc_cv_math_func_coshf = yes; then
bd647a17 18857
6affa8e1 18858cat >>confdefs.h <<_ACEOF
18859#define HAVE_COSHF 1
18860_ACEOF
7d9455ce 18861
18862 fi
d213114b 18863
d213114b 18864
d213114b 18865
7d9455ce 18866
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18868$as_echo_n "checking for cosh... " >&6; }
f00f02a3 18869if ${gcc_cv_math_func_cosh+:} false; then :
cd9a469c 18870 $as_echo_n "(cached) " >&6
d213114b 18871else
7d9455ce 18872 if test x$gcc_no_link = xyes; then
f00f02a3 18873 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18874fi
cd9a469c 18875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18876/* end confdefs.h. */
18877
7d9455ce 18878#ifdef HAVE_COMPLEX_H
18879#include <complex.h>
d213114b 18880#endif
7d9455ce 18881#ifdef HAVE_MATH_H
18882#include <math.h>
18883#endif
18884
18885int (*ptr)() = (int (*)())cosh;
18886
d213114b 18887int
18888main ()
18889{
d213114b 18890 return 0;
18891}
7d9455ce 18892
d213114b 18893_ACEOF
cd9a469c 18894if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18895 gcc_cv_math_func_cosh=yes
d213114b 18896else
7d9455ce 18897 gcc_cv_math_func_cosh=no
d213114b 18898fi
cd9a469c 18899rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
d213114b 18901fi
7d9455ce 18902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18903$as_echo "$gcc_cv_math_func_cosh" >&6; }
18904 if test $gcc_cv_math_func_cosh = yes; then
bd647a17 18905
6affa8e1 18906cat >>confdefs.h <<_ACEOF
18907#define HAVE_COSH 1
18908_ACEOF
d213114b 18909
7d9455ce 18910 fi
d213114b 18911
d213114b 18912
7d9455ce 18913
18914
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18916$as_echo_n "checking for coshl... " >&6; }
f00f02a3 18917if ${gcc_cv_math_func_coshl+:} false; then :
cd9a469c 18918 $as_echo_n "(cached) " >&6
d213114b 18919else
7d9455ce 18920 if test x$gcc_no_link = xyes; then
f00f02a3 18921 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18922fi
cd9a469c 18923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18924/* end confdefs.h. */
18925
7d9455ce 18926#ifdef HAVE_COMPLEX_H
18927#include <complex.h>
18928#endif
18929#ifdef HAVE_MATH_H
18930#include <math.h>
d213114b 18931#endif
7d9455ce 18932
18933int (*ptr)() = (int (*)())coshl;
18934
d213114b 18935int
18936main ()
18937{
d213114b 18938 return 0;
18939}
7d9455ce 18940
d213114b 18941_ACEOF
cd9a469c 18942if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18943 gcc_cv_math_func_coshl=yes
d213114b 18944else
7d9455ce 18945 gcc_cv_math_func_coshl=no
d213114b 18946fi
cd9a469c 18947rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
d213114b 18949fi
7d9455ce 18950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18951$as_echo "$gcc_cv_math_func_coshl" >&6; }
18952 if test $gcc_cv_math_func_coshl = yes; then
bd647a17 18953
6affa8e1 18954cat >>confdefs.h <<_ACEOF
18955#define HAVE_COSHL 1
18956_ACEOF
7d9455ce 18957
18958 fi
d213114b 18959
d213114b 18960
d213114b 18961
7d9455ce 18962
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18964$as_echo_n "checking for ccoshf... " >&6; }
f00f02a3 18965if ${gcc_cv_math_func_ccoshf+:} false; then :
cd9a469c 18966 $as_echo_n "(cached) " >&6
d213114b 18967else
7d9455ce 18968 if test x$gcc_no_link = xyes; then
f00f02a3 18969 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 18970fi
cd9a469c 18971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 18972/* end confdefs.h. */
18973
7d9455ce 18974#ifdef HAVE_COMPLEX_H
18975#include <complex.h>
d213114b 18976#endif
7d9455ce 18977#ifdef HAVE_MATH_H
18978#include <math.h>
18979#endif
18980
18981int (*ptr)() = (int (*)())ccoshf;
18982
d213114b 18983int
18984main ()
18985{
d213114b 18986 return 0;
18987}
7d9455ce 18988
d213114b 18989_ACEOF
cd9a469c 18990if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 18991 gcc_cv_math_func_ccoshf=yes
d213114b 18992else
7d9455ce 18993 gcc_cv_math_func_ccoshf=no
d213114b 18994fi
cd9a469c 18995rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
d213114b 18997fi
7d9455ce 18998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18999$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19000 if test $gcc_cv_math_func_ccoshf = yes; then
bd647a17 19001
6affa8e1 19002cat >>confdefs.h <<_ACEOF
19003#define HAVE_CCOSHF 1
19004_ACEOF
7d9455ce 19005
19006 fi
19007
d213114b 19008
d213114b 19009
d213114b 19010
7d9455ce 19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19012$as_echo_n "checking for ccosh... " >&6; }
f00f02a3 19013if ${gcc_cv_math_func_ccosh+:} false; then :
cd9a469c 19014 $as_echo_n "(cached) " >&6
d213114b 19015else
7d9455ce 19016 if test x$gcc_no_link = xyes; then
f00f02a3 19017 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19018fi
cd9a469c 19019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19020/* end confdefs.h. */
19021
7d9455ce 19022#ifdef HAVE_COMPLEX_H
19023#include <complex.h>
19024#endif
19025#ifdef HAVE_MATH_H
19026#include <math.h>
d213114b 19027#endif
7d9455ce 19028
19029int (*ptr)() = (int (*)())ccosh;
19030
d213114b 19031int
19032main ()
19033{
d213114b 19034 return 0;
19035}
7d9455ce 19036
d213114b 19037_ACEOF
cd9a469c 19038if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19039 gcc_cv_math_func_ccosh=yes
d213114b 19040else
7d9455ce 19041 gcc_cv_math_func_ccosh=no
d213114b 19042fi
cd9a469c 19043rm -f core conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
d213114b 19045fi
7d9455ce 19046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19047$as_echo "$gcc_cv_math_func_ccosh" >&6; }
19048 if test $gcc_cv_math_func_ccosh = yes; then
bd647a17 19049
6affa8e1 19050cat >>confdefs.h <<_ACEOF
19051#define HAVE_CCOSH 1
19052_ACEOF
7d9455ce 19053
19054 fi
d213114b 19055
d213114b 19056
d213114b 19057
7d9455ce 19058
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19060$as_echo_n "checking for ccoshl... " >&6; }
f00f02a3 19061if ${gcc_cv_math_func_ccoshl+:} false; then :
cd9a469c 19062 $as_echo_n "(cached) " >&6
d213114b 19063else
7d9455ce 19064 if test x$gcc_no_link = xyes; then
f00f02a3 19065 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19066fi
cd9a469c 19067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19068/* end confdefs.h. */
19069
7d9455ce 19070#ifdef HAVE_COMPLEX_H
19071#include <complex.h>
d213114b 19072#endif
7d9455ce 19073#ifdef HAVE_MATH_H
19074#include <math.h>
19075#endif
19076
19077int (*ptr)() = (int (*)())ccoshl;
19078
d213114b 19079int
19080main ()
19081{
d213114b 19082 return 0;
19083}
7d9455ce 19084
d213114b 19085_ACEOF
cd9a469c 19086if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19087 gcc_cv_math_func_ccoshl=yes
d213114b 19088else
7d9455ce 19089 gcc_cv_math_func_ccoshl=no
d213114b 19090fi
cd9a469c 19091rm -f core conftest.err conftest.$ac_objext \
19092 conftest$ac_exeext conftest.$ac_ext
d213114b 19093fi
7d9455ce 19094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19095$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19096 if test $gcc_cv_math_func_ccoshl = yes; then
bd647a17 19097
6affa8e1 19098cat >>confdefs.h <<_ACEOF
19099#define HAVE_CCOSHL 1
19100_ACEOF
d213114b 19101
7d9455ce 19102 fi
d213114b 19103
d213114b 19104
7d9455ce 19105
19106
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19108$as_echo_n "checking for expf... " >&6; }
f00f02a3 19109if ${gcc_cv_math_func_expf+:} false; then :
cd9a469c 19110 $as_echo_n "(cached) " >&6
d213114b 19111else
7d9455ce 19112 if test x$gcc_no_link = xyes; then
f00f02a3 19113 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19114fi
cd9a469c 19115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19116/* end confdefs.h. */
19117
7d9455ce 19118#ifdef HAVE_COMPLEX_H
19119#include <complex.h>
19120#endif
19121#ifdef HAVE_MATH_H
19122#include <math.h>
d213114b 19123#endif
7d9455ce 19124
19125int (*ptr)() = (int (*)())expf;
19126
d213114b 19127int
19128main ()
19129{
d213114b 19130 return 0;
19131}
7d9455ce 19132
d213114b 19133_ACEOF
cd9a469c 19134if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19135 gcc_cv_math_func_expf=yes
d213114b 19136else
7d9455ce 19137 gcc_cv_math_func_expf=no
d213114b 19138fi
cd9a469c 19139rm -f core conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext conftest.$ac_ext
d213114b 19141fi
7d9455ce 19142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19143$as_echo "$gcc_cv_math_func_expf" >&6; }
19144 if test $gcc_cv_math_func_expf = yes; then
bd647a17 19145
6affa8e1 19146cat >>confdefs.h <<_ACEOF
19147#define HAVE_EXPF 1
19148_ACEOF
7d9455ce 19149
19150 fi
d213114b 19151
d213114b 19152
d213114b 19153
7d9455ce 19154
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19156$as_echo_n "checking for exp... " >&6; }
f00f02a3 19157if ${gcc_cv_math_func_exp+:} false; then :
cd9a469c 19158 $as_echo_n "(cached) " >&6
d213114b 19159else
7d9455ce 19160 if test x$gcc_no_link = xyes; then
f00f02a3 19161 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19162fi
cd9a469c 19163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19164/* end confdefs.h. */
19165
7d9455ce 19166#ifdef HAVE_COMPLEX_H
19167#include <complex.h>
d213114b 19168#endif
7d9455ce 19169#ifdef HAVE_MATH_H
19170#include <math.h>
19171#endif
19172
19173int (*ptr)() = (int (*)())exp;
19174
d213114b 19175int
19176main ()
19177{
d213114b 19178 return 0;
19179}
7d9455ce 19180
d213114b 19181_ACEOF
cd9a469c 19182if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19183 gcc_cv_math_func_exp=yes
d213114b 19184else
7d9455ce 19185 gcc_cv_math_func_exp=no
d213114b 19186fi
cd9a469c 19187rm -f core conftest.err conftest.$ac_objext \
19188 conftest$ac_exeext conftest.$ac_ext
d213114b 19189fi
7d9455ce 19190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19191$as_echo "$gcc_cv_math_func_exp" >&6; }
19192 if test $gcc_cv_math_func_exp = yes; then
bd647a17 19193
6affa8e1 19194cat >>confdefs.h <<_ACEOF
19195#define HAVE_EXP 1
19196_ACEOF
7d9455ce 19197
19198 fi
19199
d213114b 19200
d213114b 19201
d213114b 19202
7d9455ce 19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19204$as_echo_n "checking for expl... " >&6; }
f00f02a3 19205if ${gcc_cv_math_func_expl+:} false; then :
cd9a469c 19206 $as_echo_n "(cached) " >&6
d213114b 19207else
7d9455ce 19208 if test x$gcc_no_link = xyes; then
f00f02a3 19209 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19210fi
cd9a469c 19211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19212/* end confdefs.h. */
19213
7d9455ce 19214#ifdef HAVE_COMPLEX_H
19215#include <complex.h>
19216#endif
19217#ifdef HAVE_MATH_H
19218#include <math.h>
d213114b 19219#endif
7d9455ce 19220
19221int (*ptr)() = (int (*)())expl;
19222
d213114b 19223int
19224main ()
19225{
d213114b 19226 return 0;
19227}
7d9455ce 19228
d213114b 19229_ACEOF
cd9a469c 19230if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19231 gcc_cv_math_func_expl=yes
d213114b 19232else
7d9455ce 19233 gcc_cv_math_func_expl=no
d213114b 19234fi
cd9a469c 19235rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
d213114b 19237fi
7d9455ce 19238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19239$as_echo "$gcc_cv_math_func_expl" >&6; }
19240 if test $gcc_cv_math_func_expl = yes; then
bd647a17 19241
6affa8e1 19242cat >>confdefs.h <<_ACEOF
19243#define HAVE_EXPL 1
19244_ACEOF
7d9455ce 19245
19246 fi
d213114b 19247
d213114b 19248
d213114b 19249
7d9455ce 19250
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19252$as_echo_n "checking for cexpf... " >&6; }
f00f02a3 19253if ${gcc_cv_math_func_cexpf+:} false; then :
cd9a469c 19254 $as_echo_n "(cached) " >&6
d213114b 19255else
7d9455ce 19256 if test x$gcc_no_link = xyes; then
f00f02a3 19257 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19258fi
cd9a469c 19259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19260/* end confdefs.h. */
19261
7d9455ce 19262#ifdef HAVE_COMPLEX_H
19263#include <complex.h>
d213114b 19264#endif
7d9455ce 19265#ifdef HAVE_MATH_H
19266#include <math.h>
19267#endif
19268
19269int (*ptr)() = (int (*)())cexpf;
19270
d213114b 19271int
19272main ()
19273{
d213114b 19274 return 0;
19275}
7d9455ce 19276
d213114b 19277_ACEOF
cd9a469c 19278if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19279 gcc_cv_math_func_cexpf=yes
d213114b 19280else
7d9455ce 19281 gcc_cv_math_func_cexpf=no
d213114b 19282fi
cd9a469c 19283rm -f core conftest.err conftest.$ac_objext \
19284 conftest$ac_exeext conftest.$ac_ext
d213114b 19285fi
7d9455ce 19286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19287$as_echo "$gcc_cv_math_func_cexpf" >&6; }
19288 if test $gcc_cv_math_func_cexpf = yes; then
bd647a17 19289
6affa8e1 19290cat >>confdefs.h <<_ACEOF
19291#define HAVE_CEXPF 1
19292_ACEOF
d213114b 19293
7d9455ce 19294 fi
d213114b 19295
d213114b 19296
7d9455ce 19297
19298
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19300$as_echo_n "checking for cexp... " >&6; }
f00f02a3 19301if ${gcc_cv_math_func_cexp+:} false; then :
cd9a469c 19302 $as_echo_n "(cached) " >&6
d213114b 19303else
7d9455ce 19304 if test x$gcc_no_link = xyes; then
f00f02a3 19305 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19306fi
cd9a469c 19307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19308/* end confdefs.h. */
19309
7d9455ce 19310#ifdef HAVE_COMPLEX_H
19311#include <complex.h>
19312#endif
19313#ifdef HAVE_MATH_H
19314#include <math.h>
d213114b 19315#endif
7d9455ce 19316
19317int (*ptr)() = (int (*)())cexp;
19318
d213114b 19319int
19320main ()
19321{
d213114b 19322 return 0;
19323}
7d9455ce 19324
d213114b 19325_ACEOF
cd9a469c 19326if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19327 gcc_cv_math_func_cexp=yes
d213114b 19328else
7d9455ce 19329 gcc_cv_math_func_cexp=no
d213114b 19330fi
cd9a469c 19331rm -f core conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext conftest.$ac_ext
d213114b 19333fi
7d9455ce 19334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19335$as_echo "$gcc_cv_math_func_cexp" >&6; }
19336 if test $gcc_cv_math_func_cexp = yes; then
bd647a17 19337
6affa8e1 19338cat >>confdefs.h <<_ACEOF
19339#define HAVE_CEXP 1
19340_ACEOF
7d9455ce 19341
19342 fi
d213114b 19343
d213114b 19344
d213114b 19345
7d9455ce 19346
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19348$as_echo_n "checking for cexpl... " >&6; }
f00f02a3 19349if ${gcc_cv_math_func_cexpl+:} false; then :
cd9a469c 19350 $as_echo_n "(cached) " >&6
d213114b 19351else
7d9455ce 19352 if test x$gcc_no_link = xyes; then
f00f02a3 19353 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19354fi
cd9a469c 19355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19356/* end confdefs.h. */
19357
7d9455ce 19358#ifdef HAVE_COMPLEX_H
19359#include <complex.h>
d213114b 19360#endif
7d9455ce 19361#ifdef HAVE_MATH_H
19362#include <math.h>
19363#endif
19364
19365int (*ptr)() = (int (*)())cexpl;
19366
d213114b 19367int
19368main ()
19369{
d213114b 19370 return 0;
19371}
7d9455ce 19372
d213114b 19373_ACEOF
cd9a469c 19374if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19375 gcc_cv_math_func_cexpl=yes
d213114b 19376else
7d9455ce 19377 gcc_cv_math_func_cexpl=no
d213114b 19378fi
cd9a469c 19379rm -f core conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
d213114b 19381fi
7d9455ce 19382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19383$as_echo "$gcc_cv_math_func_cexpl" >&6; }
19384 if test $gcc_cv_math_func_cexpl = yes; then
bd647a17 19385
6affa8e1 19386cat >>confdefs.h <<_ACEOF
19387#define HAVE_CEXPL 1
19388_ACEOF
7d9455ce 19389
19390 fi
19391
d213114b 19392
d213114b 19393
d213114b 19394
7d9455ce 19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19396$as_echo_n "checking for fabsf... " >&6; }
f00f02a3 19397if ${gcc_cv_math_func_fabsf+:} false; then :
cd9a469c 19398 $as_echo_n "(cached) " >&6
d213114b 19399else
7d9455ce 19400 if test x$gcc_no_link = xyes; then
f00f02a3 19401 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19402fi
cd9a469c 19403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19404/* end confdefs.h. */
19405
7d9455ce 19406#ifdef HAVE_COMPLEX_H
19407#include <complex.h>
19408#endif
19409#ifdef HAVE_MATH_H
19410#include <math.h>
d213114b 19411#endif
7d9455ce 19412
19413int (*ptr)() = (int (*)())fabsf;
19414
d213114b 19415int
19416main ()
19417{
d213114b 19418 return 0;
19419}
7d9455ce 19420
d213114b 19421_ACEOF
cd9a469c 19422if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19423 gcc_cv_math_func_fabsf=yes
d213114b 19424else
7d9455ce 19425 gcc_cv_math_func_fabsf=no
d213114b 19426fi
cd9a469c 19427rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
d213114b 19429fi
7d9455ce 19430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19431$as_echo "$gcc_cv_math_func_fabsf" >&6; }
19432 if test $gcc_cv_math_func_fabsf = yes; then
bd647a17 19433
6affa8e1 19434cat >>confdefs.h <<_ACEOF
19435#define HAVE_FABSF 1
19436_ACEOF
7d9455ce 19437
19438 fi
d213114b 19439
d213114b 19440
d213114b 19441
7d9455ce 19442
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19444$as_echo_n "checking for fabs... " >&6; }
f00f02a3 19445if ${gcc_cv_math_func_fabs+:} false; then :
cd9a469c 19446 $as_echo_n "(cached) " >&6
d213114b 19447else
7d9455ce 19448 if test x$gcc_no_link = xyes; then
f00f02a3 19449 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19450fi
cd9a469c 19451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19452/* end confdefs.h. */
19453
7d9455ce 19454#ifdef HAVE_COMPLEX_H
19455#include <complex.h>
d213114b 19456#endif
7d9455ce 19457#ifdef HAVE_MATH_H
19458#include <math.h>
19459#endif
19460
19461int (*ptr)() = (int (*)())fabs;
19462
d213114b 19463int
19464main ()
19465{
d213114b 19466 return 0;
19467}
7d9455ce 19468
d213114b 19469_ACEOF
cd9a469c 19470if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19471 gcc_cv_math_func_fabs=yes
d213114b 19472else
7d9455ce 19473 gcc_cv_math_func_fabs=no
d213114b 19474fi
cd9a469c 19475rm -f core conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
d213114b 19477fi
7d9455ce 19478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19479$as_echo "$gcc_cv_math_func_fabs" >&6; }
19480 if test $gcc_cv_math_func_fabs = yes; then
bd647a17 19481
6affa8e1 19482cat >>confdefs.h <<_ACEOF
19483#define HAVE_FABS 1
19484_ACEOF
d213114b 19485
7d9455ce 19486 fi
d213114b 19487
d213114b 19488
7d9455ce 19489
19490
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19492$as_echo_n "checking for fabsl... " >&6; }
f00f02a3 19493if ${gcc_cv_math_func_fabsl+:} false; then :
cd9a469c 19494 $as_echo_n "(cached) " >&6
d213114b 19495else
7d9455ce 19496 if test x$gcc_no_link = xyes; then
f00f02a3 19497 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19498fi
cd9a469c 19499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19500/* end confdefs.h. */
19501
7d9455ce 19502#ifdef HAVE_COMPLEX_H
19503#include <complex.h>
19504#endif
19505#ifdef HAVE_MATH_H
19506#include <math.h>
d213114b 19507#endif
7d9455ce 19508
19509int (*ptr)() = (int (*)())fabsl;
19510
d213114b 19511int
19512main ()
19513{
d213114b 19514 return 0;
19515}
7d9455ce 19516
d213114b 19517_ACEOF
cd9a469c 19518if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19519 gcc_cv_math_func_fabsl=yes
d213114b 19520else
7d9455ce 19521 gcc_cv_math_func_fabsl=no
d213114b 19522fi
cd9a469c 19523rm -f core conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
d213114b 19525fi
7d9455ce 19526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19527$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19528 if test $gcc_cv_math_func_fabsl = yes; then
bd647a17 19529
6affa8e1 19530cat >>confdefs.h <<_ACEOF
19531#define HAVE_FABSL 1
19532_ACEOF
7d9455ce 19533
19534 fi
d213114b 19535
d213114b 19536
d213114b 19537
7d9455ce 19538
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19540$as_echo_n "checking for cabsf... " >&6; }
f00f02a3 19541if ${gcc_cv_math_func_cabsf+:} false; then :
cd9a469c 19542 $as_echo_n "(cached) " >&6
d213114b 19543else
7d9455ce 19544 if test x$gcc_no_link = xyes; then
f00f02a3 19545 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19546fi
cd9a469c 19547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19548/* end confdefs.h. */
19549
7d9455ce 19550#ifdef HAVE_COMPLEX_H
19551#include <complex.h>
d213114b 19552#endif
7d9455ce 19553#ifdef HAVE_MATH_H
19554#include <math.h>
19555#endif
19556
19557int (*ptr)() = (int (*)())cabsf;
19558
d213114b 19559int
19560main ()
19561{
d213114b 19562 return 0;
19563}
7d9455ce 19564
d213114b 19565_ACEOF
cd9a469c 19566if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19567 gcc_cv_math_func_cabsf=yes
d213114b 19568else
7d9455ce 19569 gcc_cv_math_func_cabsf=no
d213114b 19570fi
cd9a469c 19571rm -f core conftest.err conftest.$ac_objext \
19572 conftest$ac_exeext conftest.$ac_ext
d213114b 19573fi
7d9455ce 19574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19575$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19576 if test $gcc_cv_math_func_cabsf = yes; then
bd647a17 19577
6affa8e1 19578cat >>confdefs.h <<_ACEOF
19579#define HAVE_CABSF 1
19580_ACEOF
7d9455ce 19581
19582 fi
19583
d213114b 19584
d213114b 19585
d213114b 19586
7d9455ce 19587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19588$as_echo_n "checking for cabs... " >&6; }
f00f02a3 19589if ${gcc_cv_math_func_cabs+:} false; then :
cd9a469c 19590 $as_echo_n "(cached) " >&6
d213114b 19591else
7d9455ce 19592 if test x$gcc_no_link = xyes; then
f00f02a3 19593 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19594fi
cd9a469c 19595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19596/* end confdefs.h. */
19597
7d9455ce 19598#ifdef HAVE_COMPLEX_H
19599#include <complex.h>
19600#endif
19601#ifdef HAVE_MATH_H
19602#include <math.h>
d213114b 19603#endif
7d9455ce 19604
19605int (*ptr)() = (int (*)())cabs;
19606
d213114b 19607int
19608main ()
19609{
d213114b 19610 return 0;
19611}
7d9455ce 19612
d213114b 19613_ACEOF
cd9a469c 19614if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19615 gcc_cv_math_func_cabs=yes
d213114b 19616else
7d9455ce 19617 gcc_cv_math_func_cabs=no
d213114b 19618fi
cd9a469c 19619rm -f core conftest.err conftest.$ac_objext \
19620 conftest$ac_exeext conftest.$ac_ext
d213114b 19621fi
7d9455ce 19622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19623$as_echo "$gcc_cv_math_func_cabs" >&6; }
19624 if test $gcc_cv_math_func_cabs = yes; then
bd647a17 19625
6affa8e1 19626cat >>confdefs.h <<_ACEOF
19627#define HAVE_CABS 1
19628_ACEOF
7d9455ce 19629
19630 fi
d213114b 19631
d213114b 19632
d213114b 19633
7d9455ce 19634
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19636$as_echo_n "checking for cabsl... " >&6; }
f00f02a3 19637if ${gcc_cv_math_func_cabsl+:} false; then :
cd9a469c 19638 $as_echo_n "(cached) " >&6
d213114b 19639else
7d9455ce 19640 if test x$gcc_no_link = xyes; then
f00f02a3 19641 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19642fi
cd9a469c 19643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19644/* end confdefs.h. */
19645
7d9455ce 19646#ifdef HAVE_COMPLEX_H
19647#include <complex.h>
d213114b 19648#endif
7d9455ce 19649#ifdef HAVE_MATH_H
19650#include <math.h>
19651#endif
19652
19653int (*ptr)() = (int (*)())cabsl;
19654
d213114b 19655int
19656main ()
19657{
d213114b 19658 return 0;
19659}
7d9455ce 19660
d213114b 19661_ACEOF
cd9a469c 19662if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19663 gcc_cv_math_func_cabsl=yes
d213114b 19664else
7d9455ce 19665 gcc_cv_math_func_cabsl=no
d213114b 19666fi
cd9a469c 19667rm -f core conftest.err conftest.$ac_objext \
19668 conftest$ac_exeext conftest.$ac_ext
d213114b 19669fi
7d9455ce 19670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19671$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19672 if test $gcc_cv_math_func_cabsl = yes; then
bd647a17 19673
6affa8e1 19674cat >>confdefs.h <<_ACEOF
19675#define HAVE_CABSL 1
19676_ACEOF
d213114b 19677
7d9455ce 19678 fi
d213114b 19679
d213114b 19680
7d9455ce 19681
19682
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19684$as_echo_n "checking for floorf... " >&6; }
f00f02a3 19685if ${gcc_cv_math_func_floorf+:} false; then :
cd9a469c 19686 $as_echo_n "(cached) " >&6
d213114b 19687else
7d9455ce 19688 if test x$gcc_no_link = xyes; then
f00f02a3 19689 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19690fi
cd9a469c 19691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19692/* end confdefs.h. */
19693
7d9455ce 19694#ifdef HAVE_COMPLEX_H
19695#include <complex.h>
19696#endif
19697#ifdef HAVE_MATH_H
19698#include <math.h>
d213114b 19699#endif
7d9455ce 19700
19701int (*ptr)() = (int (*)())floorf;
19702
d213114b 19703int
19704main ()
19705{
cd9a469c 19706 return 0;
19707}
7d9455ce 19708
cd9a469c 19709_ACEOF
19710if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19711 gcc_cv_math_func_floorf=yes
d213114b 19712else
7d9455ce 19713 gcc_cv_math_func_floorf=no
d213114b 19714fi
cd9a469c 19715rm -f core conftest.err conftest.$ac_objext \
19716 conftest$ac_exeext conftest.$ac_ext
d213114b 19717fi
7d9455ce 19718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19719$as_echo "$gcc_cv_math_func_floorf" >&6; }
19720 if test $gcc_cv_math_func_floorf = yes; then
bd647a17 19721
6affa8e1 19722cat >>confdefs.h <<_ACEOF
19723#define HAVE_FLOORF 1
19724_ACEOF
7d9455ce 19725
19726 fi
d213114b 19727
d213114b 19728
d213114b 19729
7d9455ce 19730
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19732$as_echo_n "checking for floor... " >&6; }
f00f02a3 19733if ${gcc_cv_math_func_floor+:} false; then :
cd9a469c 19734 $as_echo_n "(cached) " >&6
d213114b 19735else
7d9455ce 19736 if test x$gcc_no_link = xyes; then
f00f02a3 19737 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19738fi
cd9a469c 19739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19740/* end confdefs.h. */
19741
7d9455ce 19742#ifdef HAVE_COMPLEX_H
19743#include <complex.h>
d213114b 19744#endif
7d9455ce 19745#ifdef HAVE_MATH_H
19746#include <math.h>
19747#endif
19748
19749int (*ptr)() = (int (*)())floor;
19750
d213114b 19751int
19752main ()
19753{
d213114b 19754 return 0;
19755}
7d9455ce 19756
d213114b 19757_ACEOF
cd9a469c 19758if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19759 gcc_cv_math_func_floor=yes
d213114b 19760else
7d9455ce 19761 gcc_cv_math_func_floor=no
d213114b 19762fi
cd9a469c 19763rm -f core conftest.err conftest.$ac_objext \
19764 conftest$ac_exeext conftest.$ac_ext
d213114b 19765fi
7d9455ce 19766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19767$as_echo "$gcc_cv_math_func_floor" >&6; }
19768 if test $gcc_cv_math_func_floor = yes; then
bd647a17 19769
6affa8e1 19770cat >>confdefs.h <<_ACEOF
19771#define HAVE_FLOOR 1
19772_ACEOF
7d9455ce 19773
19774 fi
19775
d213114b 19776
d213114b 19777
d213114b 19778
7d9455ce 19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19780$as_echo_n "checking for floorl... " >&6; }
f00f02a3 19781if ${gcc_cv_math_func_floorl+:} false; then :
cd9a469c 19782 $as_echo_n "(cached) " >&6
71d5b534 19783else
7d9455ce 19784 if test x$gcc_no_link = xyes; then
f00f02a3 19785 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19786fi
cd9a469c 19787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19788/* end confdefs.h. */
19789
7d9455ce 19790#ifdef HAVE_COMPLEX_H
19791#include <complex.h>
19792#endif
19793#ifdef HAVE_MATH_H
19794#include <math.h>
71d5b534 19795#endif
7d9455ce 19796
19797int (*ptr)() = (int (*)())floorl;
19798
71d5b534 19799int
19800main ()
19801{
71d5b534 19802 return 0;
19803}
7d9455ce 19804
71d5b534 19805_ACEOF
cd9a469c 19806if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19807 gcc_cv_math_func_floorl=yes
71d5b534 19808else
7d9455ce 19809 gcc_cv_math_func_floorl=no
71d5b534 19810fi
cd9a469c 19811rm -f core conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
71d5b534 19813fi
7d9455ce 19814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19815$as_echo "$gcc_cv_math_func_floorl" >&6; }
19816 if test $gcc_cv_math_func_floorl = yes; then
bd647a17 19817
6affa8e1 19818cat >>confdefs.h <<_ACEOF
19819#define HAVE_FLOORL 1
19820_ACEOF
7d9455ce 19821
19822 fi
71d5b534 19823
71d5b534 19824
71d5b534 19825
7d9455ce 19826
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19828$as_echo_n "checking for fmodf... " >&6; }
f00f02a3 19829if ${gcc_cv_math_func_fmodf+:} false; then :
cd9a469c 19830 $as_echo_n "(cached) " >&6
71d5b534 19831else
7d9455ce 19832 if test x$gcc_no_link = xyes; then
f00f02a3 19833 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19834fi
cd9a469c 19835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19836/* end confdefs.h. */
19837
7d9455ce 19838#ifdef HAVE_COMPLEX_H
19839#include <complex.h>
71d5b534 19840#endif
7d9455ce 19841#ifdef HAVE_MATH_H
19842#include <math.h>
19843#endif
19844
19845int (*ptr)() = (int (*)())fmodf;
19846
71d5b534 19847int
19848main ()
19849{
71d5b534 19850 return 0;
19851}
7d9455ce 19852
71d5b534 19853_ACEOF
cd9a469c 19854if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19855 gcc_cv_math_func_fmodf=yes
71d5b534 19856else
7d9455ce 19857 gcc_cv_math_func_fmodf=no
71d5b534 19858fi
cd9a469c 19859rm -f core conftest.err conftest.$ac_objext \
19860 conftest$ac_exeext conftest.$ac_ext
71d5b534 19861fi
7d9455ce 19862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19863$as_echo "$gcc_cv_math_func_fmodf" >&6; }
19864 if test $gcc_cv_math_func_fmodf = yes; then
bd647a17 19865
6affa8e1 19866cat >>confdefs.h <<_ACEOF
19867#define HAVE_FMODF 1
19868_ACEOF
71d5b534 19869
7d9455ce 19870 fi
71d5b534 19871
71d5b534 19872
7d9455ce 19873
19874
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19876$as_echo_n "checking for fmod... " >&6; }
f00f02a3 19877if ${gcc_cv_math_func_fmod+:} false; then :
cd9a469c 19878 $as_echo_n "(cached) " >&6
71d5b534 19879else
7d9455ce 19880 if test x$gcc_no_link = xyes; then
f00f02a3 19881 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d5b534 19882fi
cd9a469c 19883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d5b534 19884/* end confdefs.h. */
19885
7d9455ce 19886#ifdef HAVE_COMPLEX_H
19887#include <complex.h>
19888#endif
19889#ifdef HAVE_MATH_H
19890#include <math.h>
71d5b534 19891#endif
7d9455ce 19892
19893int (*ptr)() = (int (*)())fmod;
19894
71d5b534 19895int
19896main ()
19897{
71d5b534 19898 return 0;
19899}
7d9455ce 19900
71d5b534 19901_ACEOF
cd9a469c 19902if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19903 gcc_cv_math_func_fmod=yes
71d5b534 19904else
7d9455ce 19905 gcc_cv_math_func_fmod=no
71d5b534 19906fi
cd9a469c 19907rm -f core conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
71d5b534 19909fi
7d9455ce 19910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19911$as_echo "$gcc_cv_math_func_fmod" >&6; }
19912 if test $gcc_cv_math_func_fmod = yes; then
bd647a17 19913
6affa8e1 19914cat >>confdefs.h <<_ACEOF
19915#define HAVE_FMOD 1
19916_ACEOF
7d9455ce 19917
19918 fi
71d5b534 19919
71d5b534 19920
71d5b534 19921
7d9455ce 19922
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19924$as_echo_n "checking for fmodl... " >&6; }
f00f02a3 19925if ${gcc_cv_math_func_fmodl+:} false; then :
cd9a469c 19926 $as_echo_n "(cached) " >&6
d213114b 19927else
7d9455ce 19928 if test x$gcc_no_link = xyes; then
f00f02a3 19929 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19930fi
cd9a469c 19931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19932/* end confdefs.h. */
19933
7d9455ce 19934#ifdef HAVE_COMPLEX_H
19935#include <complex.h>
d213114b 19936#endif
7d9455ce 19937#ifdef HAVE_MATH_H
19938#include <math.h>
19939#endif
19940
19941int (*ptr)() = (int (*)())fmodl;
19942
d213114b 19943int
19944main ()
19945{
d213114b 19946 return 0;
19947}
7d9455ce 19948
d213114b 19949_ACEOF
cd9a469c 19950if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19951 gcc_cv_math_func_fmodl=yes
d213114b 19952else
7d9455ce 19953 gcc_cv_math_func_fmodl=no
d213114b 19954fi
cd9a469c 19955rm -f core conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
d213114b 19957fi
7d9455ce 19958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19959$as_echo "$gcc_cv_math_func_fmodl" >&6; }
19960 if test $gcc_cv_math_func_fmodl = yes; then
bd647a17 19961
6affa8e1 19962cat >>confdefs.h <<_ACEOF
19963#define HAVE_FMODL 1
19964_ACEOF
7d9455ce 19965
19966 fi
19967
d213114b 19968
d213114b 19969
d213114b 19970
7d9455ce 19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19972$as_echo_n "checking for frexpf... " >&6; }
f00f02a3 19973if ${gcc_cv_math_func_frexpf+:} false; then :
cd9a469c 19974 $as_echo_n "(cached) " >&6
d213114b 19975else
7d9455ce 19976 if test x$gcc_no_link = xyes; then
f00f02a3 19977 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 19978fi
cd9a469c 19979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 19980/* end confdefs.h. */
19981
7d9455ce 19982#ifdef HAVE_COMPLEX_H
19983#include <complex.h>
19984#endif
19985#ifdef HAVE_MATH_H
19986#include <math.h>
d213114b 19987#endif
7d9455ce 19988
19989int (*ptr)() = (int (*)())frexpf;
19990
d213114b 19991int
19992main ()
19993{
d213114b 19994 return 0;
19995}
7d9455ce 19996
d213114b 19997_ACEOF
cd9a469c 19998if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 19999 gcc_cv_math_func_frexpf=yes
d213114b 20000else
7d9455ce 20001 gcc_cv_math_func_frexpf=no
d213114b 20002fi
cd9a469c 20003rm -f core conftest.err conftest.$ac_objext \
20004 conftest$ac_exeext conftest.$ac_ext
d213114b 20005fi
7d9455ce 20006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20007$as_echo "$gcc_cv_math_func_frexpf" >&6; }
20008 if test $gcc_cv_math_func_frexpf = yes; then
bd647a17 20009
6affa8e1 20010cat >>confdefs.h <<_ACEOF
20011#define HAVE_FREXPF 1
20012_ACEOF
7d9455ce 20013
20014 fi
d213114b 20015
d213114b 20016
d213114b 20017
7d9455ce 20018
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20020$as_echo_n "checking for frexp... " >&6; }
f00f02a3 20021if ${gcc_cv_math_func_frexp+:} false; then :
cd9a469c 20022 $as_echo_n "(cached) " >&6
d213114b 20023else
7d9455ce 20024 if test x$gcc_no_link = xyes; then
f00f02a3 20025 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20026fi
cd9a469c 20027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20028/* end confdefs.h. */
20029
7d9455ce 20030#ifdef HAVE_COMPLEX_H
20031#include <complex.h>
d213114b 20032#endif
7d9455ce 20033#ifdef HAVE_MATH_H
20034#include <math.h>
20035#endif
20036
20037int (*ptr)() = (int (*)())frexp;
20038
d213114b 20039int
20040main ()
20041{
d213114b 20042 return 0;
20043}
7d9455ce 20044
d213114b 20045_ACEOF
cd9a469c 20046if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20047 gcc_cv_math_func_frexp=yes
d213114b 20048else
7d9455ce 20049 gcc_cv_math_func_frexp=no
d213114b 20050fi
cd9a469c 20051rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
d213114b 20053fi
7d9455ce 20054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20055$as_echo "$gcc_cv_math_func_frexp" >&6; }
20056 if test $gcc_cv_math_func_frexp = yes; then
bd647a17 20057
6affa8e1 20058cat >>confdefs.h <<_ACEOF
20059#define HAVE_FREXP 1
20060_ACEOF
d213114b 20061
7d9455ce 20062 fi
d213114b 20063
d213114b 20064
7d9455ce 20065
20066
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20068$as_echo_n "checking for frexpl... " >&6; }
f00f02a3 20069if ${gcc_cv_math_func_frexpl+:} false; then :
cd9a469c 20070 $as_echo_n "(cached) " >&6
d213114b 20071else
7d9455ce 20072 if test x$gcc_no_link = xyes; then
f00f02a3 20073 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20074fi
cd9a469c 20075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20076/* end confdefs.h. */
20077
7d9455ce 20078#ifdef HAVE_COMPLEX_H
20079#include <complex.h>
20080#endif
20081#ifdef HAVE_MATH_H
20082#include <math.h>
d213114b 20083#endif
7d9455ce 20084
20085int (*ptr)() = (int (*)())frexpl;
20086
d213114b 20087int
20088main ()
20089{
d213114b 20090 return 0;
20091}
7d9455ce 20092
d213114b 20093_ACEOF
cd9a469c 20094if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20095 gcc_cv_math_func_frexpl=yes
d213114b 20096else
7d9455ce 20097 gcc_cv_math_func_frexpl=no
d213114b 20098fi
cd9a469c 20099rm -f core conftest.err conftest.$ac_objext \
20100 conftest$ac_exeext conftest.$ac_ext
d213114b 20101fi
7d9455ce 20102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20103$as_echo "$gcc_cv_math_func_frexpl" >&6; }
20104 if test $gcc_cv_math_func_frexpl = yes; then
bd647a17 20105
6affa8e1 20106cat >>confdefs.h <<_ACEOF
20107#define HAVE_FREXPL 1
20108_ACEOF
7d9455ce 20109
20110 fi
d213114b 20111
d213114b 20112
d213114b 20113
7d9455ce 20114
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20116$as_echo_n "checking for hypotf... " >&6; }
f00f02a3 20117if ${gcc_cv_math_func_hypotf+:} false; then :
cd9a469c 20118 $as_echo_n "(cached) " >&6
d213114b 20119else
7d9455ce 20120 if test x$gcc_no_link = xyes; then
f00f02a3 20121 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20122fi
cd9a469c 20123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20124/* end confdefs.h. */
20125
7d9455ce 20126#ifdef HAVE_COMPLEX_H
20127#include <complex.h>
d213114b 20128#endif
7d9455ce 20129#ifdef HAVE_MATH_H
20130#include <math.h>
20131#endif
20132
20133int (*ptr)() = (int (*)())hypotf;
20134
d213114b 20135int
20136main ()
20137{
d213114b 20138 return 0;
20139}
7d9455ce 20140
d213114b 20141_ACEOF
cd9a469c 20142if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20143 gcc_cv_math_func_hypotf=yes
d213114b 20144else
7d9455ce 20145 gcc_cv_math_func_hypotf=no
d213114b 20146fi
cd9a469c 20147rm -f core conftest.err conftest.$ac_objext \
20148 conftest$ac_exeext conftest.$ac_ext
d213114b 20149fi
7d9455ce 20150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20151$as_echo "$gcc_cv_math_func_hypotf" >&6; }
20152 if test $gcc_cv_math_func_hypotf = yes; then
bd647a17 20153
6affa8e1 20154cat >>confdefs.h <<_ACEOF
20155#define HAVE_HYPOTF 1
20156_ACEOF
7d9455ce 20157
20158 fi
20159
d213114b 20160
d213114b 20161
d213114b 20162
7d9455ce 20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20164$as_echo_n "checking for hypot... " >&6; }
f00f02a3 20165if ${gcc_cv_math_func_hypot+:} false; then :
cd9a469c 20166 $as_echo_n "(cached) " >&6
d213114b 20167else
7d9455ce 20168 if test x$gcc_no_link = xyes; then
f00f02a3 20169 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20170fi
cd9a469c 20171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20172/* end confdefs.h. */
20173
7d9455ce 20174#ifdef HAVE_COMPLEX_H
20175#include <complex.h>
20176#endif
20177#ifdef HAVE_MATH_H
20178#include <math.h>
d213114b 20179#endif
7d9455ce 20180
20181int (*ptr)() = (int (*)())hypot;
20182
d213114b 20183int
20184main ()
20185{
d213114b 20186 return 0;
20187}
7d9455ce 20188
d213114b 20189_ACEOF
cd9a469c 20190if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20191 gcc_cv_math_func_hypot=yes
d213114b 20192else
7d9455ce 20193 gcc_cv_math_func_hypot=no
d213114b 20194fi
cd9a469c 20195rm -f core conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext conftest.$ac_ext
d213114b 20197fi
7d9455ce 20198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20199$as_echo "$gcc_cv_math_func_hypot" >&6; }
20200 if test $gcc_cv_math_func_hypot = yes; then
bd647a17 20201
6affa8e1 20202cat >>confdefs.h <<_ACEOF
20203#define HAVE_HYPOT 1
20204_ACEOF
7d9455ce 20205
20206 fi
d213114b 20207
d213114b 20208
d213114b 20209
7d9455ce 20210
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20212$as_echo_n "checking for hypotl... " >&6; }
f00f02a3 20213if ${gcc_cv_math_func_hypotl+:} false; then :
cd9a469c 20214 $as_echo_n "(cached) " >&6
71d90ac4 20215else
7d9455ce 20216 if test x$gcc_no_link = xyes; then
f00f02a3 20217 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 20218fi
cd9a469c 20219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 20220/* end confdefs.h. */
20221
7d9455ce 20222#ifdef HAVE_COMPLEX_H
20223#include <complex.h>
71d90ac4 20224#endif
7d9455ce 20225#ifdef HAVE_MATH_H
20226#include <math.h>
20227#endif
20228
20229int (*ptr)() = (int (*)())hypotl;
20230
71d90ac4 20231int
20232main ()
20233{
71d90ac4 20234 return 0;
20235}
7d9455ce 20236
71d90ac4 20237_ACEOF
cd9a469c 20238if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20239 gcc_cv_math_func_hypotl=yes
71d90ac4 20240else
7d9455ce 20241 gcc_cv_math_func_hypotl=no
71d90ac4 20242fi
cd9a469c 20243rm -f core conftest.err conftest.$ac_objext \
20244 conftest$ac_exeext conftest.$ac_ext
71d90ac4 20245fi
7d9455ce 20246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20247$as_echo "$gcc_cv_math_func_hypotl" >&6; }
20248 if test $gcc_cv_math_func_hypotl = yes; then
bd647a17 20249
6affa8e1 20250cat >>confdefs.h <<_ACEOF
20251#define HAVE_HYPOTL 1
20252_ACEOF
71d90ac4 20253
7d9455ce 20254 fi
71d90ac4 20255
71d90ac4 20256
7d9455ce 20257
20258
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20260$as_echo_n "checking for ldexpf... " >&6; }
f00f02a3 20261if ${gcc_cv_math_func_ldexpf+:} false; then :
cd9a469c 20262 $as_echo_n "(cached) " >&6
71d90ac4 20263else
7d9455ce 20264 if test x$gcc_no_link = xyes; then
f00f02a3 20265 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 20266fi
cd9a469c 20267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 20268/* end confdefs.h. */
20269
7d9455ce 20270#ifdef HAVE_COMPLEX_H
20271#include <complex.h>
20272#endif
20273#ifdef HAVE_MATH_H
20274#include <math.h>
71d90ac4 20275#endif
7d9455ce 20276
20277int (*ptr)() = (int (*)())ldexpf;
20278
71d90ac4 20279int
20280main ()
20281{
71d90ac4 20282 return 0;
20283}
7d9455ce 20284
71d90ac4 20285_ACEOF
cd9a469c 20286if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20287 gcc_cv_math_func_ldexpf=yes
71d90ac4 20288else
7d9455ce 20289 gcc_cv_math_func_ldexpf=no
71d90ac4 20290fi
cd9a469c 20291rm -f core conftest.err conftest.$ac_objext \
20292 conftest$ac_exeext conftest.$ac_ext
71d90ac4 20293fi
7d9455ce 20294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20295$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20296 if test $gcc_cv_math_func_ldexpf = yes; then
bd647a17 20297
6affa8e1 20298cat >>confdefs.h <<_ACEOF
20299#define HAVE_LDEXPF 1
20300_ACEOF
7d9455ce 20301
20302 fi
71d90ac4 20303
71d90ac4 20304
71d90ac4 20305
7d9455ce 20306
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20308$as_echo_n "checking for ldexp... " >&6; }
f00f02a3 20309if ${gcc_cv_math_func_ldexp+:} false; then :
cd9a469c 20310 $as_echo_n "(cached) " >&6
71d90ac4 20311else
7d9455ce 20312 if test x$gcc_no_link = xyes; then
f00f02a3 20313 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
71d90ac4 20314fi
cd9a469c 20315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71d90ac4 20316/* end confdefs.h. */
20317
7d9455ce 20318#ifdef HAVE_COMPLEX_H
20319#include <complex.h>
71d90ac4 20320#endif
7d9455ce 20321#ifdef HAVE_MATH_H
20322#include <math.h>
20323#endif
20324
20325int (*ptr)() = (int (*)())ldexp;
20326
71d90ac4 20327int
20328main ()
20329{
71d90ac4 20330 return 0;
20331}
7d9455ce 20332
71d90ac4 20333_ACEOF
cd9a469c 20334if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20335 gcc_cv_math_func_ldexp=yes
71d90ac4 20336else
7d9455ce 20337 gcc_cv_math_func_ldexp=no
71d90ac4 20338fi
cd9a469c 20339rm -f core conftest.err conftest.$ac_objext \
20340 conftest$ac_exeext conftest.$ac_ext
71d90ac4 20341fi
7d9455ce 20342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20343$as_echo "$gcc_cv_math_func_ldexp" >&6; }
20344 if test $gcc_cv_math_func_ldexp = yes; then
bd647a17 20345
6affa8e1 20346cat >>confdefs.h <<_ACEOF
20347#define HAVE_LDEXP 1
20348_ACEOF
7d9455ce 20349
20350 fi
20351
71d90ac4 20352
71d90ac4 20353
71d90ac4 20354
7d9455ce 20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20356$as_echo_n "checking for ldexpl... " >&6; }
f00f02a3 20357if ${gcc_cv_math_func_ldexpl+:} false; then :
cd9a469c 20358 $as_echo_n "(cached) " >&6
d213114b 20359else
7d9455ce 20360 if test x$gcc_no_link = xyes; then
f00f02a3 20361 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20362fi
cd9a469c 20363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20364/* end confdefs.h. */
20365
7d9455ce 20366#ifdef HAVE_COMPLEX_H
20367#include <complex.h>
20368#endif
20369#ifdef HAVE_MATH_H
20370#include <math.h>
d213114b 20371#endif
7d9455ce 20372
20373int (*ptr)() = (int (*)())ldexpl;
20374
d213114b 20375int
20376main ()
20377{
d213114b 20378 return 0;
20379}
7d9455ce 20380
d213114b 20381_ACEOF
cd9a469c 20382if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20383 gcc_cv_math_func_ldexpl=yes
d213114b 20384else
7d9455ce 20385 gcc_cv_math_func_ldexpl=no
d213114b 20386fi
cd9a469c 20387rm -f core conftest.err conftest.$ac_objext \
20388 conftest$ac_exeext conftest.$ac_ext
d213114b 20389fi
7d9455ce 20390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20391$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20392 if test $gcc_cv_math_func_ldexpl = yes; then
bd647a17 20393
6affa8e1 20394cat >>confdefs.h <<_ACEOF
20395#define HAVE_LDEXPL 1
20396_ACEOF
7d9455ce 20397
20398 fi
d213114b 20399
d213114b 20400
d213114b 20401
7d9455ce 20402
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20404$as_echo_n "checking for logf... " >&6; }
f00f02a3 20405if ${gcc_cv_math_func_logf+:} false; then :
cd9a469c 20406 $as_echo_n "(cached) " >&6
d213114b 20407else
7d9455ce 20408 if test x$gcc_no_link = xyes; then
f00f02a3 20409 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20410fi
cd9a469c 20411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20412/* end confdefs.h. */
20413
7d9455ce 20414#ifdef HAVE_COMPLEX_H
20415#include <complex.h>
d213114b 20416#endif
7d9455ce 20417#ifdef HAVE_MATH_H
20418#include <math.h>
20419#endif
20420
20421int (*ptr)() = (int (*)())logf;
20422
d213114b 20423int
20424main ()
20425{
d213114b 20426 return 0;
20427}
7d9455ce 20428
d213114b 20429_ACEOF
cd9a469c 20430if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20431 gcc_cv_math_func_logf=yes
d213114b 20432else
7d9455ce 20433 gcc_cv_math_func_logf=no
d213114b 20434fi
cd9a469c 20435rm -f core conftest.err conftest.$ac_objext \
20436 conftest$ac_exeext conftest.$ac_ext
d213114b 20437fi
7d9455ce 20438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20439$as_echo "$gcc_cv_math_func_logf" >&6; }
20440 if test $gcc_cv_math_func_logf = yes; then
bd647a17 20441
6affa8e1 20442cat >>confdefs.h <<_ACEOF
20443#define HAVE_LOGF 1
20444_ACEOF
d213114b 20445
7d9455ce 20446 fi
d213114b 20447
d213114b 20448
7d9455ce 20449
20450
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20452$as_echo_n "checking for log... " >&6; }
f00f02a3 20453if ${gcc_cv_math_func_log+:} false; then :
cd9a469c 20454 $as_echo_n "(cached) " >&6
d213114b 20455else
7d9455ce 20456 if test x$gcc_no_link = xyes; then
f00f02a3 20457 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20458fi
cd9a469c 20459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20460/* end confdefs.h. */
20461
7d9455ce 20462#ifdef HAVE_COMPLEX_H
20463#include <complex.h>
20464#endif
20465#ifdef HAVE_MATH_H
20466#include <math.h>
d213114b 20467#endif
7d9455ce 20468
20469int (*ptr)() = (int (*)())log;
20470
d213114b 20471int
20472main ()
20473{
d213114b 20474 return 0;
20475}
7d9455ce 20476
d213114b 20477_ACEOF
cd9a469c 20478if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20479 gcc_cv_math_func_log=yes
d213114b 20480else
7d9455ce 20481 gcc_cv_math_func_log=no
d213114b 20482fi
cd9a469c 20483rm -f core conftest.err conftest.$ac_objext \
20484 conftest$ac_exeext conftest.$ac_ext
d213114b 20485fi
7d9455ce 20486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20487$as_echo "$gcc_cv_math_func_log" >&6; }
20488 if test $gcc_cv_math_func_log = yes; then
bd647a17 20489
6affa8e1 20490cat >>confdefs.h <<_ACEOF
20491#define HAVE_LOG 1
20492_ACEOF
7d9455ce 20493
20494 fi
d213114b 20495
d213114b 20496
d213114b 20497
7d9455ce 20498
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20500$as_echo_n "checking for logl... " >&6; }
f00f02a3 20501if ${gcc_cv_math_func_logl+:} false; then :
cd9a469c 20502 $as_echo_n "(cached) " >&6
d213114b 20503else
7d9455ce 20504 if test x$gcc_no_link = xyes; then
f00f02a3 20505 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20506fi
cd9a469c 20507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20508/* end confdefs.h. */
20509
7d9455ce 20510#ifdef HAVE_COMPLEX_H
20511#include <complex.h>
d213114b 20512#endif
7d9455ce 20513#ifdef HAVE_MATH_H
20514#include <math.h>
20515#endif
20516
20517int (*ptr)() = (int (*)())logl;
20518
d213114b 20519int
20520main ()
20521{
d213114b 20522 return 0;
20523}
7d9455ce 20524
d213114b 20525_ACEOF
cd9a469c 20526if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20527 gcc_cv_math_func_logl=yes
d213114b 20528else
7d9455ce 20529 gcc_cv_math_func_logl=no
d213114b 20530fi
cd9a469c 20531rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
d213114b 20533fi
7d9455ce 20534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20535$as_echo "$gcc_cv_math_func_logl" >&6; }
20536 if test $gcc_cv_math_func_logl = yes; then
bd647a17 20537
6affa8e1 20538cat >>confdefs.h <<_ACEOF
20539#define HAVE_LOGL 1
20540_ACEOF
7d9455ce 20541
20542 fi
20543
d213114b 20544
d213114b 20545
d213114b 20546
7d9455ce 20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20548$as_echo_n "checking for clogf... " >&6; }
f00f02a3 20549if ${gcc_cv_math_func_clogf+:} false; then :
cd9a469c 20550 $as_echo_n "(cached) " >&6
d213114b 20551else
7d9455ce 20552 if test x$gcc_no_link = xyes; then
f00f02a3 20553 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20554fi
cd9a469c 20555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20556/* end confdefs.h. */
20557
7d9455ce 20558#ifdef HAVE_COMPLEX_H
20559#include <complex.h>
20560#endif
20561#ifdef HAVE_MATH_H
20562#include <math.h>
d213114b 20563#endif
7d9455ce 20564
20565int (*ptr)() = (int (*)())clogf;
20566
d213114b 20567int
20568main ()
20569{
d213114b 20570 return 0;
20571}
7d9455ce 20572
d213114b 20573_ACEOF
cd9a469c 20574if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20575 gcc_cv_math_func_clogf=yes
d213114b 20576else
7d9455ce 20577 gcc_cv_math_func_clogf=no
d213114b 20578fi
cd9a469c 20579rm -f core conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
d213114b 20581fi
7d9455ce 20582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20583$as_echo "$gcc_cv_math_func_clogf" >&6; }
20584 if test $gcc_cv_math_func_clogf = yes; then
bd647a17 20585
6affa8e1 20586cat >>confdefs.h <<_ACEOF
20587#define HAVE_CLOGF 1
20588_ACEOF
7d9455ce 20589
20590 fi
d213114b 20591
d213114b 20592
d213114b 20593
7d9455ce 20594
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20596$as_echo_n "checking for clog... " >&6; }
f00f02a3 20597if ${gcc_cv_math_func_clog+:} false; then :
cd9a469c 20598 $as_echo_n "(cached) " >&6
d213114b 20599else
7d9455ce 20600 if test x$gcc_no_link = xyes; then
f00f02a3 20601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20602fi
cd9a469c 20603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20604/* end confdefs.h. */
20605
7d9455ce 20606#ifdef HAVE_COMPLEX_H
20607#include <complex.h>
d213114b 20608#endif
7d9455ce 20609#ifdef HAVE_MATH_H
20610#include <math.h>
20611#endif
20612
20613int (*ptr)() = (int (*)())clog;
20614
d213114b 20615int
20616main ()
20617{
d213114b 20618 return 0;
20619}
7d9455ce 20620
d213114b 20621_ACEOF
cd9a469c 20622if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20623 gcc_cv_math_func_clog=yes
d213114b 20624else
7d9455ce 20625 gcc_cv_math_func_clog=no
d213114b 20626fi
cd9a469c 20627rm -f core conftest.err conftest.$ac_objext \
20628 conftest$ac_exeext conftest.$ac_ext
d213114b 20629fi
7d9455ce 20630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20631$as_echo "$gcc_cv_math_func_clog" >&6; }
20632 if test $gcc_cv_math_func_clog = yes; then
bd647a17 20633
6affa8e1 20634cat >>confdefs.h <<_ACEOF
20635#define HAVE_CLOG 1
20636_ACEOF
d213114b 20637
7d9455ce 20638 fi
d213114b 20639
d213114b 20640
7d9455ce 20641
20642
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20644$as_echo_n "checking for clogl... " >&6; }
f00f02a3 20645if ${gcc_cv_math_func_clogl+:} false; then :
cd9a469c 20646 $as_echo_n "(cached) " >&6
d213114b 20647else
7d9455ce 20648 if test x$gcc_no_link = xyes; then
f00f02a3 20649 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20650fi
cd9a469c 20651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20652/* end confdefs.h. */
20653
7d9455ce 20654#ifdef HAVE_COMPLEX_H
20655#include <complex.h>
20656#endif
20657#ifdef HAVE_MATH_H
20658#include <math.h>
d213114b 20659#endif
7d9455ce 20660
20661int (*ptr)() = (int (*)())clogl;
20662
d213114b 20663int
20664main ()
20665{
d213114b 20666 return 0;
20667}
7d9455ce 20668
d213114b 20669_ACEOF
cd9a469c 20670if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20671 gcc_cv_math_func_clogl=yes
d213114b 20672else
7d9455ce 20673 gcc_cv_math_func_clogl=no
d213114b 20674fi
cd9a469c 20675rm -f core conftest.err conftest.$ac_objext \
20676 conftest$ac_exeext conftest.$ac_ext
d213114b 20677fi
7d9455ce 20678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20679$as_echo "$gcc_cv_math_func_clogl" >&6; }
20680 if test $gcc_cv_math_func_clogl = yes; then
bd647a17 20681
6affa8e1 20682cat >>confdefs.h <<_ACEOF
20683#define HAVE_CLOGL 1
20684_ACEOF
7d9455ce 20685
20686 fi
d213114b 20687
d213114b 20688
d213114b 20689
7d9455ce 20690
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20692$as_echo_n "checking for log10f... " >&6; }
f00f02a3 20693if ${gcc_cv_math_func_log10f+:} false; then :
cd9a469c 20694 $as_echo_n "(cached) " >&6
d213114b 20695else
7d9455ce 20696 if test x$gcc_no_link = xyes; then
f00f02a3 20697 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20698fi
cd9a469c 20699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20700/* end confdefs.h. */
20701
7d9455ce 20702#ifdef HAVE_COMPLEX_H
20703#include <complex.h>
d213114b 20704#endif
7d9455ce 20705#ifdef HAVE_MATH_H
20706#include <math.h>
20707#endif
20708
20709int (*ptr)() = (int (*)())log10f;
20710
d213114b 20711int
20712main ()
20713{
d213114b 20714 return 0;
20715}
7d9455ce 20716
d213114b 20717_ACEOF
cd9a469c 20718if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20719 gcc_cv_math_func_log10f=yes
d213114b 20720else
7d9455ce 20721 gcc_cv_math_func_log10f=no
d213114b 20722fi
cd9a469c 20723rm -f core conftest.err conftest.$ac_objext \
20724 conftest$ac_exeext conftest.$ac_ext
d213114b 20725fi
7d9455ce 20726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20727$as_echo "$gcc_cv_math_func_log10f" >&6; }
20728 if test $gcc_cv_math_func_log10f = yes; then
bd647a17 20729
6affa8e1 20730cat >>confdefs.h <<_ACEOF
20731#define HAVE_LOG10F 1
20732_ACEOF
7d9455ce 20733
20734 fi
20735
d213114b 20736
d213114b 20737
d213114b 20738
7d9455ce 20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20740$as_echo_n "checking for log10... " >&6; }
f00f02a3 20741if ${gcc_cv_math_func_log10+:} false; then :
cd9a469c 20742 $as_echo_n "(cached) " >&6
d213114b 20743else
7d9455ce 20744 if test x$gcc_no_link = xyes; then
f00f02a3 20745 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20746fi
cd9a469c 20747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20748/* end confdefs.h. */
20749
7d9455ce 20750#ifdef HAVE_COMPLEX_H
20751#include <complex.h>
20752#endif
20753#ifdef HAVE_MATH_H
20754#include <math.h>
d213114b 20755#endif
7d9455ce 20756
20757int (*ptr)() = (int (*)())log10;
20758
d213114b 20759int
20760main ()
20761{
d213114b 20762 return 0;
20763}
7d9455ce 20764
d213114b 20765_ACEOF
cd9a469c 20766if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20767 gcc_cv_math_func_log10=yes
d213114b 20768else
7d9455ce 20769 gcc_cv_math_func_log10=no
d213114b 20770fi
cd9a469c 20771rm -f core conftest.err conftest.$ac_objext \
20772 conftest$ac_exeext conftest.$ac_ext
d213114b 20773fi
7d9455ce 20774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20775$as_echo "$gcc_cv_math_func_log10" >&6; }
20776 if test $gcc_cv_math_func_log10 = yes; then
bd647a17 20777
6affa8e1 20778cat >>confdefs.h <<_ACEOF
20779#define HAVE_LOG10 1
20780_ACEOF
7d9455ce 20781
20782 fi
d213114b 20783
d213114b 20784
d213114b 20785
7d9455ce 20786
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20788$as_echo_n "checking for log10l... " >&6; }
f00f02a3 20789if ${gcc_cv_math_func_log10l+:} false; then :
cd9a469c 20790 $as_echo_n "(cached) " >&6
d213114b 20791else
7d9455ce 20792 if test x$gcc_no_link = xyes; then
f00f02a3 20793 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20794fi
cd9a469c 20795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20796/* end confdefs.h. */
20797
7d9455ce 20798#ifdef HAVE_COMPLEX_H
20799#include <complex.h>
d213114b 20800#endif
7d9455ce 20801#ifdef HAVE_MATH_H
20802#include <math.h>
20803#endif
20804
20805int (*ptr)() = (int (*)())log10l;
20806
d213114b 20807int
20808main ()
20809{
d213114b 20810 return 0;
20811}
7d9455ce 20812
d213114b 20813_ACEOF
cd9a469c 20814if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20815 gcc_cv_math_func_log10l=yes
d213114b 20816else
7d9455ce 20817 gcc_cv_math_func_log10l=no
d213114b 20818fi
cd9a469c 20819rm -f core conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
d213114b 20821fi
7d9455ce 20822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20823$as_echo "$gcc_cv_math_func_log10l" >&6; }
20824 if test $gcc_cv_math_func_log10l = yes; then
bd647a17 20825
6affa8e1 20826cat >>confdefs.h <<_ACEOF
20827#define HAVE_LOG10L 1
20828_ACEOF
d213114b 20829
7d9455ce 20830 fi
d213114b 20831
d213114b 20832
7d9455ce 20833
20834
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20836$as_echo_n "checking for clog10f... " >&6; }
f00f02a3 20837if ${gcc_cv_math_func_clog10f+:} false; then :
cd9a469c 20838 $as_echo_n "(cached) " >&6
d213114b 20839else
7d9455ce 20840 if test x$gcc_no_link = xyes; then
f00f02a3 20841 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20842fi
cd9a469c 20843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20844/* end confdefs.h. */
20845
7d9455ce 20846#ifdef HAVE_COMPLEX_H
20847#include <complex.h>
20848#endif
20849#ifdef HAVE_MATH_H
20850#include <math.h>
d213114b 20851#endif
7d9455ce 20852
20853int (*ptr)() = (int (*)())clog10f;
20854
d213114b 20855int
20856main ()
20857{
d213114b 20858 return 0;
20859}
7d9455ce 20860
d213114b 20861_ACEOF
cd9a469c 20862if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20863 gcc_cv_math_func_clog10f=yes
d213114b 20864else
7d9455ce 20865 gcc_cv_math_func_clog10f=no
d213114b 20866fi
cd9a469c 20867rm -f core conftest.err conftest.$ac_objext \
20868 conftest$ac_exeext conftest.$ac_ext
d213114b 20869fi
7d9455ce 20870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20871$as_echo "$gcc_cv_math_func_clog10f" >&6; }
20872 if test $gcc_cv_math_func_clog10f = yes; then
bd647a17 20873
6affa8e1 20874cat >>confdefs.h <<_ACEOF
20875#define HAVE_CLOG10F 1
20876_ACEOF
7d9455ce 20877
20878 fi
d213114b 20879
d213114b 20880
d213114b 20881
7d9455ce 20882
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20884$as_echo_n "checking for clog10... " >&6; }
f00f02a3 20885if ${gcc_cv_math_func_clog10+:} false; then :
cd9a469c 20886 $as_echo_n "(cached) " >&6
d213114b 20887else
7d9455ce 20888 if test x$gcc_no_link = xyes; then
f00f02a3 20889 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20890fi
cd9a469c 20891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20892/* end confdefs.h. */
20893
7d9455ce 20894#ifdef HAVE_COMPLEX_H
20895#include <complex.h>
d213114b 20896#endif
7d9455ce 20897#ifdef HAVE_MATH_H
20898#include <math.h>
20899#endif
20900
20901int (*ptr)() = (int (*)())clog10;
20902
d213114b 20903int
20904main ()
20905{
cd9a469c 20906 return 0;
20907}
7d9455ce 20908
cd9a469c 20909_ACEOF
20910if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20911 gcc_cv_math_func_clog10=yes
d213114b 20912else
7d9455ce 20913 gcc_cv_math_func_clog10=no
d213114b 20914fi
cd9a469c 20915rm -f core conftest.err conftest.$ac_objext \
20916 conftest$ac_exeext conftest.$ac_ext
d213114b 20917fi
7d9455ce 20918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20919$as_echo "$gcc_cv_math_func_clog10" >&6; }
20920 if test $gcc_cv_math_func_clog10 = yes; then
bd647a17 20921
6affa8e1 20922cat >>confdefs.h <<_ACEOF
20923#define HAVE_CLOG10 1
20924_ACEOF
7d9455ce 20925
20926 fi
20927
d213114b 20928
d213114b 20929
d213114b 20930
7d9455ce 20931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20932$as_echo_n "checking for clog10l... " >&6; }
f00f02a3 20933if ${gcc_cv_math_func_clog10l+:} false; then :
cd9a469c 20934 $as_echo_n "(cached) " >&6
d213114b 20935else
7d9455ce 20936 if test x$gcc_no_link = xyes; then
f00f02a3 20937 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20938fi
cd9a469c 20939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20940/* end confdefs.h. */
20941
7d9455ce 20942#ifdef HAVE_COMPLEX_H
20943#include <complex.h>
20944#endif
20945#ifdef HAVE_MATH_H
20946#include <math.h>
d213114b 20947#endif
7d9455ce 20948
20949int (*ptr)() = (int (*)())clog10l;
20950
d213114b 20951int
20952main ()
20953{
d213114b 20954 return 0;
20955}
7d9455ce 20956
d213114b 20957_ACEOF
cd9a469c 20958if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 20959 gcc_cv_math_func_clog10l=yes
d213114b 20960else
7d9455ce 20961 gcc_cv_math_func_clog10l=no
d213114b 20962fi
cd9a469c 20963rm -f core conftest.err conftest.$ac_objext \
20964 conftest$ac_exeext conftest.$ac_ext
d213114b 20965fi
7d9455ce 20966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20967$as_echo "$gcc_cv_math_func_clog10l" >&6; }
20968 if test $gcc_cv_math_func_clog10l = yes; then
bd647a17 20969
6affa8e1 20970cat >>confdefs.h <<_ACEOF
20971#define HAVE_CLOG10L 1
20972_ACEOF
7d9455ce 20973
20974 fi
d213114b 20975
d213114b 20976
d213114b 20977
7d9455ce 20978
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20980$as_echo_n "checking for nextafterf... " >&6; }
f00f02a3 20981if ${gcc_cv_math_func_nextafterf+:} false; then :
cd9a469c 20982 $as_echo_n "(cached) " >&6
d213114b 20983else
7d9455ce 20984 if test x$gcc_no_link = xyes; then
f00f02a3 20985 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 20986fi
cd9a469c 20987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 20988/* end confdefs.h. */
20989
7d9455ce 20990#ifdef HAVE_COMPLEX_H
20991#include <complex.h>
d213114b 20992#endif
7d9455ce 20993#ifdef HAVE_MATH_H
20994#include <math.h>
20995#endif
20996
20997int (*ptr)() = (int (*)())nextafterf;
20998
d213114b 20999int
21000main ()
21001{
d213114b 21002 return 0;
21003}
7d9455ce 21004
d213114b 21005_ACEOF
cd9a469c 21006if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21007 gcc_cv_math_func_nextafterf=yes
d213114b 21008else
7d9455ce 21009 gcc_cv_math_func_nextafterf=no
d213114b 21010fi
cd9a469c 21011rm -f core conftest.err conftest.$ac_objext \
21012 conftest$ac_exeext conftest.$ac_ext
d213114b 21013fi
7d9455ce 21014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21015$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21016 if test $gcc_cv_math_func_nextafterf = yes; then
bd647a17 21017
6affa8e1 21018cat >>confdefs.h <<_ACEOF
21019#define HAVE_NEXTAFTERF 1
21020_ACEOF
d213114b 21021
7d9455ce 21022 fi
d213114b 21023
d213114b 21024
7d9455ce 21025
21026
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21028$as_echo_n "checking for nextafter... " >&6; }
f00f02a3 21029if ${gcc_cv_math_func_nextafter+:} false; then :
cd9a469c 21030 $as_echo_n "(cached) " >&6
d213114b 21031else
7d9455ce 21032 if test x$gcc_no_link = xyes; then
f00f02a3 21033 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21034fi
cd9a469c 21035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21036/* end confdefs.h. */
21037
7d9455ce 21038#ifdef HAVE_COMPLEX_H
21039#include <complex.h>
21040#endif
21041#ifdef HAVE_MATH_H
21042#include <math.h>
d213114b 21043#endif
7d9455ce 21044
21045int (*ptr)() = (int (*)())nextafter;
21046
d213114b 21047int
21048main ()
21049{
d213114b 21050 return 0;
21051}
7d9455ce 21052
d213114b 21053_ACEOF
cd9a469c 21054if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21055 gcc_cv_math_func_nextafter=yes
d213114b 21056else
7d9455ce 21057 gcc_cv_math_func_nextafter=no
d213114b 21058fi
cd9a469c 21059rm -f core conftest.err conftest.$ac_objext \
21060 conftest$ac_exeext conftest.$ac_ext
d213114b 21061fi
7d9455ce 21062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21063$as_echo "$gcc_cv_math_func_nextafter" >&6; }
21064 if test $gcc_cv_math_func_nextafter = yes; then
bd647a17 21065
6affa8e1 21066cat >>confdefs.h <<_ACEOF
21067#define HAVE_NEXTAFTER 1
21068_ACEOF
7d9455ce 21069
21070 fi
d213114b 21071
d213114b 21072
d213114b 21073
7d9455ce 21074
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21076$as_echo_n "checking for nextafterl... " >&6; }
f00f02a3 21077if ${gcc_cv_math_func_nextafterl+:} false; then :
cd9a469c 21078 $as_echo_n "(cached) " >&6
d213114b 21079else
7d9455ce 21080 if test x$gcc_no_link = xyes; then
f00f02a3 21081 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21082fi
cd9a469c 21083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21084/* end confdefs.h. */
21085
7d9455ce 21086#ifdef HAVE_COMPLEX_H
21087#include <complex.h>
d213114b 21088#endif
7d9455ce 21089#ifdef HAVE_MATH_H
21090#include <math.h>
21091#endif
21092
21093int (*ptr)() = (int (*)())nextafterl;
21094
d213114b 21095int
21096main ()
21097{
d213114b 21098 return 0;
21099}
7d9455ce 21100
d213114b 21101_ACEOF
cd9a469c 21102if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21103 gcc_cv_math_func_nextafterl=yes
d213114b 21104else
7d9455ce 21105 gcc_cv_math_func_nextafterl=no
d213114b 21106fi
cd9a469c 21107rm -f core conftest.err conftest.$ac_objext \
21108 conftest$ac_exeext conftest.$ac_ext
d213114b 21109fi
7d9455ce 21110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21111$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21112 if test $gcc_cv_math_func_nextafterl = yes; then
bd647a17 21113
6affa8e1 21114cat >>confdefs.h <<_ACEOF
21115#define HAVE_NEXTAFTERL 1
21116_ACEOF
7d9455ce 21117
21118 fi
21119
d213114b 21120
d213114b 21121
d213114b 21122
7d9455ce 21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21124$as_echo_n "checking for powf... " >&6; }
f00f02a3 21125if ${gcc_cv_math_func_powf+:} false; then :
cd9a469c 21126 $as_echo_n "(cached) " >&6
d213114b 21127else
7d9455ce 21128 if test x$gcc_no_link = xyes; then
f00f02a3 21129 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21130fi
cd9a469c 21131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21132/* end confdefs.h. */
21133
7d9455ce 21134#ifdef HAVE_COMPLEX_H
21135#include <complex.h>
21136#endif
21137#ifdef HAVE_MATH_H
21138#include <math.h>
d213114b 21139#endif
7d9455ce 21140
21141int (*ptr)() = (int (*)())powf;
21142
d213114b 21143int
21144main ()
21145{
d213114b 21146 return 0;
21147}
7d9455ce 21148
d213114b 21149_ACEOF
cd9a469c 21150if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21151 gcc_cv_math_func_powf=yes
d213114b 21152else
7d9455ce 21153 gcc_cv_math_func_powf=no
d213114b 21154fi
cd9a469c 21155rm -f core conftest.err conftest.$ac_objext \
21156 conftest$ac_exeext conftest.$ac_ext
d213114b 21157fi
7d9455ce 21158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21159$as_echo "$gcc_cv_math_func_powf" >&6; }
21160 if test $gcc_cv_math_func_powf = yes; then
bd647a17 21161
6affa8e1 21162cat >>confdefs.h <<_ACEOF
21163#define HAVE_POWF 1
21164_ACEOF
7d9455ce 21165
21166 fi
d213114b 21167
d213114b 21168
d213114b 21169
7d9455ce 21170
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21172$as_echo_n "checking for pow... " >&6; }
f00f02a3 21173if ${gcc_cv_math_func_pow+:} false; then :
cd9a469c 21174 $as_echo_n "(cached) " >&6
d213114b 21175else
7d9455ce 21176 if test x$gcc_no_link = xyes; then
f00f02a3 21177 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21178fi
cd9a469c 21179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21180/* end confdefs.h. */
21181
7d9455ce 21182#ifdef HAVE_COMPLEX_H
21183#include <complex.h>
d213114b 21184#endif
7d9455ce 21185#ifdef HAVE_MATH_H
21186#include <math.h>
21187#endif
21188
21189int (*ptr)() = (int (*)())pow;
21190
d213114b 21191int
21192main ()
21193{
d213114b 21194 return 0;
21195}
7d9455ce 21196
d213114b 21197_ACEOF
cd9a469c 21198if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21199 gcc_cv_math_func_pow=yes
d213114b 21200else
7d9455ce 21201 gcc_cv_math_func_pow=no
d213114b 21202fi
cd9a469c 21203rm -f core conftest.err conftest.$ac_objext \
21204 conftest$ac_exeext conftest.$ac_ext
d213114b 21205fi
7d9455ce 21206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21207$as_echo "$gcc_cv_math_func_pow" >&6; }
21208 if test $gcc_cv_math_func_pow = yes; then
bd647a17 21209
6affa8e1 21210cat >>confdefs.h <<_ACEOF
21211#define HAVE_POW 1
21212_ACEOF
d213114b 21213
7d9455ce 21214 fi
d213114b 21215
d213114b 21216
7d9455ce 21217
21218
7d9455ce 21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21220$as_echo_n "checking for cpowf... " >&6; }
f00f02a3 21221if ${gcc_cv_math_func_cpowf+:} false; then :
cd9a469c 21222 $as_echo_n "(cached) " >&6
d213114b 21223else
7d9455ce 21224 if test x$gcc_no_link = xyes; then
f00f02a3 21225 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21226fi
cd9a469c 21227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21228/* end confdefs.h. */
21229
7d9455ce 21230#ifdef HAVE_COMPLEX_H
21231#include <complex.h>
d213114b 21232#endif
7d9455ce 21233#ifdef HAVE_MATH_H
21234#include <math.h>
21235#endif
21236
21237int (*ptr)() = (int (*)())cpowf;
21238
d213114b 21239int
21240main ()
21241{
d213114b 21242 return 0;
21243}
7d9455ce 21244
d213114b 21245_ACEOF
cd9a469c 21246if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21247 gcc_cv_math_func_cpowf=yes
d213114b 21248else
7d9455ce 21249 gcc_cv_math_func_cpowf=no
d213114b 21250fi
cd9a469c 21251rm -f core conftest.err conftest.$ac_objext \
21252 conftest$ac_exeext conftest.$ac_ext
d213114b 21253fi
7d9455ce 21254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21255$as_echo "$gcc_cv_math_func_cpowf" >&6; }
21256 if test $gcc_cv_math_func_cpowf = yes; then
bd647a17 21257
6affa8e1 21258cat >>confdefs.h <<_ACEOF
21259#define HAVE_CPOWF 1
21260_ACEOF
7d9455ce 21261
21262 fi
21263
d213114b 21264
d213114b 21265
d213114b 21266
7d9455ce 21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21268$as_echo_n "checking for cpow... " >&6; }
f00f02a3 21269if ${gcc_cv_math_func_cpow+:} false; then :
cd9a469c 21270 $as_echo_n "(cached) " >&6
d213114b 21271else
7d9455ce 21272 if test x$gcc_no_link = xyes; then
f00f02a3 21273 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21274fi
cd9a469c 21275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21276/* end confdefs.h. */
21277
7d9455ce 21278#ifdef HAVE_COMPLEX_H
21279#include <complex.h>
21280#endif
21281#ifdef HAVE_MATH_H
21282#include <math.h>
d213114b 21283#endif
7d9455ce 21284
21285int (*ptr)() = (int (*)())cpow;
21286
d213114b 21287int
21288main ()
21289{
d213114b 21290 return 0;
21291}
7d9455ce 21292
d213114b 21293_ACEOF
cd9a469c 21294if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21295 gcc_cv_math_func_cpow=yes
d213114b 21296else
7d9455ce 21297 gcc_cv_math_func_cpow=no
d213114b 21298fi
cd9a469c 21299rm -f core conftest.err conftest.$ac_objext \
21300 conftest$ac_exeext conftest.$ac_ext
d213114b 21301fi
7d9455ce 21302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21303$as_echo "$gcc_cv_math_func_cpow" >&6; }
21304 if test $gcc_cv_math_func_cpow = yes; then
bd647a17 21305
6affa8e1 21306cat >>confdefs.h <<_ACEOF
21307#define HAVE_CPOW 1
21308_ACEOF
7d9455ce 21309
21310 fi
d213114b 21311
d213114b 21312
d213114b 21313
7d9455ce 21314
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21316$as_echo_n "checking for cpowl... " >&6; }
f00f02a3 21317if ${gcc_cv_math_func_cpowl+:} false; then :
cd9a469c 21318 $as_echo_n "(cached) " >&6
d213114b 21319else
7d9455ce 21320 if test x$gcc_no_link = xyes; then
f00f02a3 21321 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21322fi
cd9a469c 21323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21324/* end confdefs.h. */
21325
7d9455ce 21326#ifdef HAVE_COMPLEX_H
21327#include <complex.h>
d213114b 21328#endif
7d9455ce 21329#ifdef HAVE_MATH_H
21330#include <math.h>
21331#endif
21332
21333int (*ptr)() = (int (*)())cpowl;
21334
d213114b 21335int
21336main ()
21337{
d213114b 21338 return 0;
21339}
7d9455ce 21340
d213114b 21341_ACEOF
cd9a469c 21342if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21343 gcc_cv_math_func_cpowl=yes
d213114b 21344else
7d9455ce 21345 gcc_cv_math_func_cpowl=no
d213114b 21346fi
cd9a469c 21347rm -f core conftest.err conftest.$ac_objext \
21348 conftest$ac_exeext conftest.$ac_ext
d213114b 21349fi
7d9455ce 21350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21351$as_echo "$gcc_cv_math_func_cpowl" >&6; }
21352 if test $gcc_cv_math_func_cpowl = yes; then
bd647a17 21353
6affa8e1 21354cat >>confdefs.h <<_ACEOF
21355#define HAVE_CPOWL 1
21356_ACEOF
d213114b 21357
7d9455ce 21358 fi
d213114b 21359
d213114b 21360
7d9455ce 21361
21362
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21364$as_echo_n "checking for roundf... " >&6; }
f00f02a3 21365if ${gcc_cv_math_func_roundf+:} false; then :
cd9a469c 21366 $as_echo_n "(cached) " >&6
d213114b 21367else
7d9455ce 21368 if test x$gcc_no_link = xyes; then
f00f02a3 21369 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21370fi
cd9a469c 21371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21372/* end confdefs.h. */
21373
7d9455ce 21374#ifdef HAVE_COMPLEX_H
21375#include <complex.h>
21376#endif
21377#ifdef HAVE_MATH_H
21378#include <math.h>
d213114b 21379#endif
7d9455ce 21380
21381int (*ptr)() = (int (*)())roundf;
21382
d213114b 21383int
21384main ()
21385{
d213114b 21386 return 0;
21387}
7d9455ce 21388
d213114b 21389_ACEOF
cd9a469c 21390if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21391 gcc_cv_math_func_roundf=yes
d213114b 21392else
7d9455ce 21393 gcc_cv_math_func_roundf=no
d213114b 21394fi
cd9a469c 21395rm -f core conftest.err conftest.$ac_objext \
21396 conftest$ac_exeext conftest.$ac_ext
d213114b 21397fi
7d9455ce 21398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21399$as_echo "$gcc_cv_math_func_roundf" >&6; }
21400 if test $gcc_cv_math_func_roundf = yes; then
bd647a17 21401
6affa8e1 21402cat >>confdefs.h <<_ACEOF
21403#define HAVE_ROUNDF 1
21404_ACEOF
7d9455ce 21405
21406 fi
d213114b 21407
d213114b 21408
d213114b 21409
7d9455ce 21410
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21412$as_echo_n "checking for round... " >&6; }
f00f02a3 21413if ${gcc_cv_math_func_round+:} false; then :
cd9a469c 21414 $as_echo_n "(cached) " >&6
d213114b 21415else
7d9455ce 21416 if test x$gcc_no_link = xyes; then
f00f02a3 21417 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21418fi
cd9a469c 21419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21420/* end confdefs.h. */
21421
7d9455ce 21422#ifdef HAVE_COMPLEX_H
21423#include <complex.h>
d213114b 21424#endif
7d9455ce 21425#ifdef HAVE_MATH_H
21426#include <math.h>
21427#endif
21428
21429int (*ptr)() = (int (*)())round;
21430
d213114b 21431int
21432main ()
21433{
d213114b 21434 return 0;
21435}
7d9455ce 21436
d213114b 21437_ACEOF
cd9a469c 21438if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21439 gcc_cv_math_func_round=yes
d213114b 21440else
7d9455ce 21441 gcc_cv_math_func_round=no
d213114b 21442fi
cd9a469c 21443rm -f core conftest.err conftest.$ac_objext \
21444 conftest$ac_exeext conftest.$ac_ext
d213114b 21445fi
7d9455ce 21446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21447$as_echo "$gcc_cv_math_func_round" >&6; }
21448 if test $gcc_cv_math_func_round = yes; then
bd647a17 21449
6affa8e1 21450cat >>confdefs.h <<_ACEOF
21451#define HAVE_ROUND 1
21452_ACEOF
7d9455ce 21453
21454 fi
21455
d213114b 21456
d213114b 21457
d213114b 21458
7d9455ce 21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21460$as_echo_n "checking for roundl... " >&6; }
f00f02a3 21461if ${gcc_cv_math_func_roundl+:} false; then :
cd9a469c 21462 $as_echo_n "(cached) " >&6
ef080b63 21463else
7d9455ce 21464 if test x$gcc_no_link = xyes; then
f00f02a3 21465 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21466fi
cd9a469c 21467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21468/* end confdefs.h. */
21469
7d9455ce 21470#ifdef HAVE_COMPLEX_H
21471#include <complex.h>
21472#endif
21473#ifdef HAVE_MATH_H
21474#include <math.h>
ef080b63 21475#endif
7d9455ce 21476
21477int (*ptr)() = (int (*)())roundl;
21478
ef080b63 21479int
21480main ()
21481{
ef080b63 21482 return 0;
21483}
7d9455ce 21484
ef080b63 21485_ACEOF
cd9a469c 21486if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21487 gcc_cv_math_func_roundl=yes
ef080b63 21488else
7d9455ce 21489 gcc_cv_math_func_roundl=no
ef080b63 21490fi
cd9a469c 21491rm -f core conftest.err conftest.$ac_objext \
21492 conftest$ac_exeext conftest.$ac_ext
ef080b63 21493fi
7d9455ce 21494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21495$as_echo "$gcc_cv_math_func_roundl" >&6; }
21496 if test $gcc_cv_math_func_roundl = yes; then
bd647a17 21497
6affa8e1 21498cat >>confdefs.h <<_ACEOF
21499#define HAVE_ROUNDL 1
21500_ACEOF
7d9455ce 21501
21502 fi
ef080b63 21503
ef080b63 21504
ef080b63 21505
7d9455ce 21506
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21508$as_echo_n "checking for lroundf... " >&6; }
f00f02a3 21509if ${gcc_cv_math_func_lroundf+:} false; then :
cd9a469c 21510 $as_echo_n "(cached) " >&6
ef080b63 21511else
7d9455ce 21512 if test x$gcc_no_link = xyes; then
f00f02a3 21513 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21514fi
cd9a469c 21515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21516/* end confdefs.h. */
21517
7d9455ce 21518#ifdef HAVE_COMPLEX_H
21519#include <complex.h>
ef080b63 21520#endif
7d9455ce 21521#ifdef HAVE_MATH_H
21522#include <math.h>
21523#endif
21524
21525int (*ptr)() = (int (*)())lroundf;
21526
ef080b63 21527int
21528main ()
21529{
ef080b63 21530 return 0;
21531}
7d9455ce 21532
ef080b63 21533_ACEOF
cd9a469c 21534if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21535 gcc_cv_math_func_lroundf=yes
ef080b63 21536else
7d9455ce 21537 gcc_cv_math_func_lroundf=no
ef080b63 21538fi
cd9a469c 21539rm -f core conftest.err conftest.$ac_objext \
21540 conftest$ac_exeext conftest.$ac_ext
ef080b63 21541fi
7d9455ce 21542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21543$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21544 if test $gcc_cv_math_func_lroundf = yes; then
bd647a17 21545
6affa8e1 21546cat >>confdefs.h <<_ACEOF
21547#define HAVE_LROUNDF 1
21548_ACEOF
ef080b63 21549
7d9455ce 21550 fi
ef080b63 21551
ef080b63 21552
7d9455ce 21553
21554
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21556$as_echo_n "checking for lround... " >&6; }
f00f02a3 21557if ${gcc_cv_math_func_lround+:} false; then :
cd9a469c 21558 $as_echo_n "(cached) " >&6
ef080b63 21559else
7d9455ce 21560 if test x$gcc_no_link = xyes; then
f00f02a3 21561 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21562fi
cd9a469c 21563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21564/* end confdefs.h. */
21565
7d9455ce 21566#ifdef HAVE_COMPLEX_H
21567#include <complex.h>
21568#endif
21569#ifdef HAVE_MATH_H
21570#include <math.h>
ef080b63 21571#endif
7d9455ce 21572
21573int (*ptr)() = (int (*)())lround;
21574
ef080b63 21575int
21576main ()
21577{
ef080b63 21578 return 0;
21579}
7d9455ce 21580
ef080b63 21581_ACEOF
cd9a469c 21582if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21583 gcc_cv_math_func_lround=yes
ef080b63 21584else
7d9455ce 21585 gcc_cv_math_func_lround=no
ef080b63 21586fi
cd9a469c 21587rm -f core conftest.err conftest.$ac_objext \
21588 conftest$ac_exeext conftest.$ac_ext
ef080b63 21589fi
7d9455ce 21590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21591$as_echo "$gcc_cv_math_func_lround" >&6; }
21592 if test $gcc_cv_math_func_lround = yes; then
bd647a17 21593
6affa8e1 21594cat >>confdefs.h <<_ACEOF
21595#define HAVE_LROUND 1
21596_ACEOF
7d9455ce 21597
21598 fi
21599
ef080b63 21600
ef080b63 21601
ef080b63 21602
7d9455ce 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21604$as_echo_n "checking for lroundl... " >&6; }
f00f02a3 21605if ${gcc_cv_math_func_lroundl+:} false; then :
cd9a469c 21606 $as_echo_n "(cached) " >&6
ef080b63 21607else
7d9455ce 21608 if test x$gcc_no_link = xyes; then
f00f02a3 21609 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21610fi
cd9a469c 21611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21612/* end confdefs.h. */
21613
7d9455ce 21614#ifdef HAVE_COMPLEX_H
21615#include <complex.h>
21616#endif
21617#ifdef HAVE_MATH_H
21618#include <math.h>
ef080b63 21619#endif
7d9455ce 21620
21621int (*ptr)() = (int (*)())lroundl;
21622
ef080b63 21623int
21624main ()
21625{
ef080b63 21626 return 0;
21627}
7d9455ce 21628
ef080b63 21629_ACEOF
cd9a469c 21630if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21631 gcc_cv_math_func_lroundl=yes
ef080b63 21632else
7d9455ce 21633 gcc_cv_math_func_lroundl=no
ef080b63 21634fi
cd9a469c 21635rm -f core conftest.err conftest.$ac_objext \
21636 conftest$ac_exeext conftest.$ac_ext
ef080b63 21637fi
7d9455ce 21638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21639$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21640 if test $gcc_cv_math_func_lroundl = yes; then
bd647a17 21641
6affa8e1 21642cat >>confdefs.h <<_ACEOF
21643#define HAVE_LROUNDL 1
21644_ACEOF
ef080b63 21645
7d9455ce 21646 fi
ef080b63 21647
ef080b63 21648
7d9455ce 21649
21650
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21652$as_echo_n "checking for llroundf... " >&6; }
f00f02a3 21653if ${gcc_cv_math_func_llroundf+:} false; then :
cd9a469c 21654 $as_echo_n "(cached) " >&6
ef080b63 21655else
7d9455ce 21656 if test x$gcc_no_link = xyes; then
f00f02a3 21657 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21658fi
cd9a469c 21659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21660/* end confdefs.h. */
21661
7d9455ce 21662#ifdef HAVE_COMPLEX_H
21663#include <complex.h>
ef080b63 21664#endif
7d9455ce 21665#ifdef HAVE_MATH_H
21666#include <math.h>
21667#endif
21668
21669int (*ptr)() = (int (*)())llroundf;
21670
ef080b63 21671int
21672main ()
21673{
ef080b63 21674 return 0;
21675}
7d9455ce 21676
ef080b63 21677_ACEOF
cd9a469c 21678if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21679 gcc_cv_math_func_llroundf=yes
ef080b63 21680else
7d9455ce 21681 gcc_cv_math_func_llroundf=no
ef080b63 21682fi
cd9a469c 21683rm -f core conftest.err conftest.$ac_objext \
21684 conftest$ac_exeext conftest.$ac_ext
ef080b63 21685fi
7d9455ce 21686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21687$as_echo "$gcc_cv_math_func_llroundf" >&6; }
21688 if test $gcc_cv_math_func_llroundf = yes; then
bd647a17 21689
6affa8e1 21690cat >>confdefs.h <<_ACEOF
21691#define HAVE_LLROUNDF 1
21692_ACEOF
ef080b63 21693
7d9455ce 21694 fi
ef080b63 21695
ef080b63 21696
7d9455ce 21697
21698
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21700$as_echo_n "checking for llround... " >&6; }
f00f02a3 21701if ${gcc_cv_math_func_llround+:} false; then :
cd9a469c 21702 $as_echo_n "(cached) " >&6
ef080b63 21703else
7d9455ce 21704 if test x$gcc_no_link = xyes; then
f00f02a3 21705 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ef080b63 21706fi
cd9a469c 21707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef080b63 21708/* end confdefs.h. */
21709
7d9455ce 21710#ifdef HAVE_COMPLEX_H
21711#include <complex.h>
21712#endif
21713#ifdef HAVE_MATH_H
21714#include <math.h>
ef080b63 21715#endif
7d9455ce 21716
21717int (*ptr)() = (int (*)())llround;
21718
ef080b63 21719int
21720main ()
21721{
ef080b63 21722 return 0;
21723}
7d9455ce 21724
ef080b63 21725_ACEOF
cd9a469c 21726if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21727 gcc_cv_math_func_llround=yes
ef080b63 21728else
7d9455ce 21729 gcc_cv_math_func_llround=no
ef080b63 21730fi
cd9a469c 21731rm -f core conftest.err conftest.$ac_objext \
21732 conftest$ac_exeext conftest.$ac_ext
ef080b63 21733fi
7d9455ce 21734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21735$as_echo "$gcc_cv_math_func_llround" >&6; }
21736 if test $gcc_cv_math_func_llround = yes; then
bd647a17 21737
6affa8e1 21738cat >>confdefs.h <<_ACEOF
21739#define HAVE_LLROUND 1
21740_ACEOF
7d9455ce 21741
21742 fi
21743
ef080b63 21744
ef080b63 21745
ef080b63 21746
7d9455ce 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21748$as_echo_n "checking for llroundl... " >&6; }
f00f02a3 21749if ${gcc_cv_math_func_llroundl+:} false; then :
cd9a469c 21750 $as_echo_n "(cached) " >&6
d213114b 21751else
7d9455ce 21752 if test x$gcc_no_link = xyes; then
f00f02a3 21753 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21754fi
cd9a469c 21755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21756/* end confdefs.h. */
21757
7d9455ce 21758#ifdef HAVE_COMPLEX_H
21759#include <complex.h>
21760#endif
21761#ifdef HAVE_MATH_H
21762#include <math.h>
d213114b 21763#endif
7d9455ce 21764
21765int (*ptr)() = (int (*)())llroundl;
21766
d213114b 21767int
21768main ()
21769{
d213114b 21770 return 0;
21771}
7d9455ce 21772
d213114b 21773_ACEOF
cd9a469c 21774if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21775 gcc_cv_math_func_llroundl=yes
d213114b 21776else
7d9455ce 21777 gcc_cv_math_func_llroundl=no
d213114b 21778fi
cd9a469c 21779rm -f core conftest.err conftest.$ac_objext \
21780 conftest$ac_exeext conftest.$ac_ext
d213114b 21781fi
7d9455ce 21782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21783$as_echo "$gcc_cv_math_func_llroundl" >&6; }
21784 if test $gcc_cv_math_func_llroundl = yes; then
bd647a17 21785
6affa8e1 21786cat >>confdefs.h <<_ACEOF
21787#define HAVE_LLROUNDL 1
21788_ACEOF
d213114b 21789
7d9455ce 21790 fi
d213114b 21791
d213114b 21792
7d9455ce 21793
21794
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21796$as_echo_n "checking for scalbnf... " >&6; }
f00f02a3 21797if ${gcc_cv_math_func_scalbnf+:} false; then :
cd9a469c 21798 $as_echo_n "(cached) " >&6
d213114b 21799else
7d9455ce 21800 if test x$gcc_no_link = xyes; then
f00f02a3 21801 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21802fi
cd9a469c 21803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21804/* end confdefs.h. */
21805
7d9455ce 21806#ifdef HAVE_COMPLEX_H
21807#include <complex.h>
d213114b 21808#endif
7d9455ce 21809#ifdef HAVE_MATH_H
21810#include <math.h>
21811#endif
21812
21813int (*ptr)() = (int (*)())scalbnf;
21814
d213114b 21815int
21816main ()
21817{
d213114b 21818 return 0;
21819}
7d9455ce 21820
d213114b 21821_ACEOF
cd9a469c 21822if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21823 gcc_cv_math_func_scalbnf=yes
d213114b 21824else
7d9455ce 21825 gcc_cv_math_func_scalbnf=no
d213114b 21826fi
cd9a469c 21827rm -f core conftest.err conftest.$ac_objext \
21828 conftest$ac_exeext conftest.$ac_ext
d213114b 21829fi
7d9455ce 21830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21831$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21832 if test $gcc_cv_math_func_scalbnf = yes; then
bd647a17 21833
6affa8e1 21834cat >>confdefs.h <<_ACEOF
21835#define HAVE_SCALBNF 1
21836_ACEOF
d213114b 21837
7d9455ce 21838 fi
d213114b 21839
d213114b 21840
7d9455ce 21841
21842
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21844$as_echo_n "checking for scalbn... " >&6; }
f00f02a3 21845if ${gcc_cv_math_func_scalbn+:} false; then :
cd9a469c 21846 $as_echo_n "(cached) " >&6
d213114b 21847else
7d9455ce 21848 if test x$gcc_no_link = xyes; then
f00f02a3 21849 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21850fi
cd9a469c 21851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21852/* end confdefs.h. */
21853
7d9455ce 21854#ifdef HAVE_COMPLEX_H
21855#include <complex.h>
21856#endif
21857#ifdef HAVE_MATH_H
21858#include <math.h>
d213114b 21859#endif
7d9455ce 21860
21861int (*ptr)() = (int (*)())scalbn;
21862
d213114b 21863int
21864main ()
21865{
d213114b 21866 return 0;
21867}
7d9455ce 21868
d213114b 21869_ACEOF
cd9a469c 21870if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21871 gcc_cv_math_func_scalbn=yes
d213114b 21872else
7d9455ce 21873 gcc_cv_math_func_scalbn=no
d213114b 21874fi
cd9a469c 21875rm -f core conftest.err conftest.$ac_objext \
21876 conftest$ac_exeext conftest.$ac_ext
d213114b 21877fi
7d9455ce 21878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21879$as_echo "$gcc_cv_math_func_scalbn" >&6; }
21880 if test $gcc_cv_math_func_scalbn = yes; then
bd647a17 21881
6affa8e1 21882cat >>confdefs.h <<_ACEOF
21883#define HAVE_SCALBN 1
21884_ACEOF
7d9455ce 21885
21886 fi
21887
d213114b 21888
d213114b 21889
d213114b 21890
7d9455ce 21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21892$as_echo_n "checking for scalbnl... " >&6; }
f00f02a3 21893if ${gcc_cv_math_func_scalbnl+:} false; then :
cd9a469c 21894 $as_echo_n "(cached) " >&6
d213114b 21895else
7d9455ce 21896 if test x$gcc_no_link = xyes; then
f00f02a3 21897 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21898fi
cd9a469c 21899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21900/* end confdefs.h. */
21901
7d9455ce 21902#ifdef HAVE_COMPLEX_H
21903#include <complex.h>
21904#endif
21905#ifdef HAVE_MATH_H
21906#include <math.h>
d213114b 21907#endif
7d9455ce 21908
21909int (*ptr)() = (int (*)())scalbnl;
21910
d213114b 21911int
21912main ()
21913{
d213114b 21914 return 0;
21915}
7d9455ce 21916
d213114b 21917_ACEOF
cd9a469c 21918if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21919 gcc_cv_math_func_scalbnl=yes
d213114b 21920else
7d9455ce 21921 gcc_cv_math_func_scalbnl=no
d213114b 21922fi
cd9a469c 21923rm -f core conftest.err conftest.$ac_objext \
21924 conftest$ac_exeext conftest.$ac_ext
d213114b 21925fi
7d9455ce 21926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21927$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21928 if test $gcc_cv_math_func_scalbnl = yes; then
bd647a17 21929
6affa8e1 21930cat >>confdefs.h <<_ACEOF
21931#define HAVE_SCALBNL 1
21932_ACEOF
d213114b 21933
7d9455ce 21934 fi
d213114b 21935
d213114b 21936
7d9455ce 21937
21938
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21940$as_echo_n "checking for sinf... " >&6; }
f00f02a3 21941if ${gcc_cv_math_func_sinf+:} false; then :
cd9a469c 21942 $as_echo_n "(cached) " >&6
d213114b 21943else
7d9455ce 21944 if test x$gcc_no_link = xyes; then
f00f02a3 21945 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21946fi
cd9a469c 21947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21948/* end confdefs.h. */
21949
7d9455ce 21950#ifdef HAVE_COMPLEX_H
21951#include <complex.h>
d213114b 21952#endif
7d9455ce 21953#ifdef HAVE_MATH_H
21954#include <math.h>
21955#endif
21956
21957int (*ptr)() = (int (*)())sinf;
21958
d213114b 21959int
21960main ()
21961{
d213114b 21962 return 0;
21963}
7d9455ce 21964
d213114b 21965_ACEOF
cd9a469c 21966if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 21967 gcc_cv_math_func_sinf=yes
d213114b 21968else
7d9455ce 21969 gcc_cv_math_func_sinf=no
d213114b 21970fi
cd9a469c 21971rm -f core conftest.err conftest.$ac_objext \
21972 conftest$ac_exeext conftest.$ac_ext
d213114b 21973fi
7d9455ce 21974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21975$as_echo "$gcc_cv_math_func_sinf" >&6; }
21976 if test $gcc_cv_math_func_sinf = yes; then
bd647a17 21977
6affa8e1 21978cat >>confdefs.h <<_ACEOF
21979#define HAVE_SINF 1
21980_ACEOF
d213114b 21981
7d9455ce 21982 fi
d213114b 21983
d213114b 21984
7d9455ce 21985
21986
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21988$as_echo_n "checking for sin... " >&6; }
f00f02a3 21989if ${gcc_cv_math_func_sin+:} false; then :
cd9a469c 21990 $as_echo_n "(cached) " >&6
d213114b 21991else
7d9455ce 21992 if test x$gcc_no_link = xyes; then
f00f02a3 21993 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 21994fi
cd9a469c 21995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 21996/* end confdefs.h. */
21997
7d9455ce 21998#ifdef HAVE_COMPLEX_H
21999#include <complex.h>
d213114b 22000#endif
7d9455ce 22001#ifdef HAVE_MATH_H
22002#include <math.h>
22003#endif
22004
22005int (*ptr)() = (int (*)())sin;
22006
d213114b 22007int
22008main ()
22009{
d213114b 22010 return 0;
22011}
7d9455ce 22012
d213114b 22013_ACEOF
cd9a469c 22014if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22015 gcc_cv_math_func_sin=yes
d213114b 22016else
7d9455ce 22017 gcc_cv_math_func_sin=no
d213114b 22018fi
cd9a469c 22019rm -f core conftest.err conftest.$ac_objext \
22020 conftest$ac_exeext conftest.$ac_ext
d213114b 22021fi
7d9455ce 22022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22023$as_echo "$gcc_cv_math_func_sin" >&6; }
22024 if test $gcc_cv_math_func_sin = yes; then
bd647a17 22025
6affa8e1 22026cat >>confdefs.h <<_ACEOF
22027#define HAVE_SIN 1
22028_ACEOF
7d9455ce 22029
22030 fi
22031
d213114b 22032
d213114b 22033
d213114b 22034
7d9455ce 22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22036$as_echo_n "checking for sinl... " >&6; }
f00f02a3 22037if ${gcc_cv_math_func_sinl+:} false; then :
cd9a469c 22038 $as_echo_n "(cached) " >&6
d213114b 22039else
7d9455ce 22040 if test x$gcc_no_link = xyes; then
f00f02a3 22041 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22042fi
cd9a469c 22043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22044/* end confdefs.h. */
22045
7d9455ce 22046#ifdef HAVE_COMPLEX_H
22047#include <complex.h>
d213114b 22048#endif
7d9455ce 22049#ifdef HAVE_MATH_H
22050#include <math.h>
22051#endif
22052
22053int (*ptr)() = (int (*)())sinl;
22054
d213114b 22055int
22056main ()
22057{
cd9a469c 22058 return 0;
22059}
7d9455ce 22060
cd9a469c 22061_ACEOF
22062if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22063 gcc_cv_math_func_sinl=yes
d213114b 22064else
7d9455ce 22065 gcc_cv_math_func_sinl=no
d213114b 22066fi
cd9a469c 22067rm -f core conftest.err conftest.$ac_objext \
22068 conftest$ac_exeext conftest.$ac_ext
d213114b 22069fi
7d9455ce 22070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22071$as_echo "$gcc_cv_math_func_sinl" >&6; }
22072 if test $gcc_cv_math_func_sinl = yes; then
bd647a17 22073
6affa8e1 22074cat >>confdefs.h <<_ACEOF
22075#define HAVE_SINL 1
22076_ACEOF
7d9455ce 22077
22078 fi
d213114b 22079
d213114b 22080
d213114b 22081
7d9455ce 22082
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22084$as_echo_n "checking for csinf... " >&6; }
f00f02a3 22085if ${gcc_cv_math_func_csinf+:} false; then :
cd9a469c 22086 $as_echo_n "(cached) " >&6
d213114b 22087else
7d9455ce 22088 if test x$gcc_no_link = xyes; then
f00f02a3 22089 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22090fi
cd9a469c 22091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22092/* end confdefs.h. */
22093
7d9455ce 22094#ifdef HAVE_COMPLEX_H
22095#include <complex.h>
22096#endif
22097#ifdef HAVE_MATH_H
22098#include <math.h>
d213114b 22099#endif
7d9455ce 22100
22101int (*ptr)() = (int (*)())csinf;
22102
d213114b 22103int
22104main ()
22105{
d213114b 22106 return 0;
22107}
7d9455ce 22108
d213114b 22109_ACEOF
cd9a469c 22110if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22111 gcc_cv_math_func_csinf=yes
d213114b 22112else
7d9455ce 22113 gcc_cv_math_func_csinf=no
d213114b 22114fi
cd9a469c 22115rm -f core conftest.err conftest.$ac_objext \
22116 conftest$ac_exeext conftest.$ac_ext
d213114b 22117fi
7d9455ce 22118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22119$as_echo "$gcc_cv_math_func_csinf" >&6; }
22120 if test $gcc_cv_math_func_csinf = yes; then
bd647a17 22121
6affa8e1 22122cat >>confdefs.h <<_ACEOF
22123#define HAVE_CSINF 1
22124_ACEOF
d213114b 22125
7d9455ce 22126 fi
d213114b 22127
d213114b 22128
7d9455ce 22129
22130
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22132$as_echo_n "checking for csin... " >&6; }
f00f02a3 22133if ${gcc_cv_math_func_csin+:} false; then :
cd9a469c 22134 $as_echo_n "(cached) " >&6
d213114b 22135else
7d9455ce 22136 if test x$gcc_no_link = xyes; then
f00f02a3 22137 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22138fi
cd9a469c 22139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22140/* end confdefs.h. */
22141
7d9455ce 22142#ifdef HAVE_COMPLEX_H
22143#include <complex.h>
d213114b 22144#endif
7d9455ce 22145#ifdef HAVE_MATH_H
22146#include <math.h>
22147#endif
22148
22149int (*ptr)() = (int (*)())csin;
22150
d213114b 22151int
22152main ()
22153{
d213114b 22154 return 0;
22155}
7d9455ce 22156
d213114b 22157_ACEOF
cd9a469c 22158if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22159 gcc_cv_math_func_csin=yes
d213114b 22160else
7d9455ce 22161 gcc_cv_math_func_csin=no
d213114b 22162fi
cd9a469c 22163rm -f core conftest.err conftest.$ac_objext \
22164 conftest$ac_exeext conftest.$ac_ext
d213114b 22165fi
7d9455ce 22166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22167$as_echo "$gcc_cv_math_func_csin" >&6; }
22168 if test $gcc_cv_math_func_csin = yes; then
bd647a17 22169
6affa8e1 22170cat >>confdefs.h <<_ACEOF
22171#define HAVE_CSIN 1
22172_ACEOF
7d9455ce 22173
22174 fi
22175
d213114b 22176
d213114b 22177
d213114b 22178
7d9455ce 22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22180$as_echo_n "checking for csinl... " >&6; }
f00f02a3 22181if ${gcc_cv_math_func_csinl+:} false; then :
cd9a469c 22182 $as_echo_n "(cached) " >&6
d213114b 22183else
7d9455ce 22184 if test x$gcc_no_link = xyes; then
f00f02a3 22185 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22186fi
cd9a469c 22187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22188/* end confdefs.h. */
22189
7d9455ce 22190#ifdef HAVE_COMPLEX_H
22191#include <complex.h>
d213114b 22192#endif
7d9455ce 22193#ifdef HAVE_MATH_H
22194#include <math.h>
22195#endif
22196
22197int (*ptr)() = (int (*)())csinl;
22198
d213114b 22199int
22200main ()
22201{
d213114b 22202 return 0;
22203}
7d9455ce 22204
d213114b 22205_ACEOF
cd9a469c 22206if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22207 gcc_cv_math_func_csinl=yes
d213114b 22208else
7d9455ce 22209 gcc_cv_math_func_csinl=no
d213114b 22210fi
cd9a469c 22211rm -f core conftest.err conftest.$ac_objext \
22212 conftest$ac_exeext conftest.$ac_ext
d213114b 22213fi
7d9455ce 22214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22215$as_echo "$gcc_cv_math_func_csinl" >&6; }
22216 if test $gcc_cv_math_func_csinl = yes; then
bd647a17 22217
6affa8e1 22218cat >>confdefs.h <<_ACEOF
22219#define HAVE_CSINL 1
22220_ACEOF
7d9455ce 22221
22222 fi
d213114b 22223
d213114b 22224
d213114b 22225
7d9455ce 22226
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22228$as_echo_n "checking for sinhf... " >&6; }
f00f02a3 22229if ${gcc_cv_math_func_sinhf+:} false; then :
cd9a469c 22230 $as_echo_n "(cached) " >&6
d213114b 22231else
7d9455ce 22232 if test x$gcc_no_link = xyes; then
f00f02a3 22233 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22234fi
cd9a469c 22235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22236/* end confdefs.h. */
22237
7d9455ce 22238#ifdef HAVE_COMPLEX_H
22239#include <complex.h>
22240#endif
22241#ifdef HAVE_MATH_H
22242#include <math.h>
d213114b 22243#endif
7d9455ce 22244
22245int (*ptr)() = (int (*)())sinhf;
22246
d213114b 22247int
22248main ()
22249{
d213114b 22250 return 0;
22251}
7d9455ce 22252
d213114b 22253_ACEOF
cd9a469c 22254if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22255 gcc_cv_math_func_sinhf=yes
d213114b 22256else
7d9455ce 22257 gcc_cv_math_func_sinhf=no
d213114b 22258fi
cd9a469c 22259rm -f core conftest.err conftest.$ac_objext \
22260 conftest$ac_exeext conftest.$ac_ext
d213114b 22261fi
7d9455ce 22262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22263$as_echo "$gcc_cv_math_func_sinhf" >&6; }
22264 if test $gcc_cv_math_func_sinhf = yes; then
bd647a17 22265
6affa8e1 22266cat >>confdefs.h <<_ACEOF
22267#define HAVE_SINHF 1
22268_ACEOF
d213114b 22269
7d9455ce 22270 fi
d213114b 22271
d213114b 22272
7d9455ce 22273
22274
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22276$as_echo_n "checking for sinh... " >&6; }
f00f02a3 22277if ${gcc_cv_math_func_sinh+:} false; then :
cd9a469c 22278 $as_echo_n "(cached) " >&6
d213114b 22279else
7d9455ce 22280 if test x$gcc_no_link = xyes; then
f00f02a3 22281 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22282fi
cd9a469c 22283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22284/* end confdefs.h. */
22285
7d9455ce 22286#ifdef HAVE_COMPLEX_H
22287#include <complex.h>
d213114b 22288#endif
7d9455ce 22289#ifdef HAVE_MATH_H
22290#include <math.h>
22291#endif
22292
22293int (*ptr)() = (int (*)())sinh;
22294
d213114b 22295int
22296main ()
22297{
d213114b 22298 return 0;
22299}
7d9455ce 22300
d213114b 22301_ACEOF
cd9a469c 22302if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22303 gcc_cv_math_func_sinh=yes
d213114b 22304else
7d9455ce 22305 gcc_cv_math_func_sinh=no
d213114b 22306fi
cd9a469c 22307rm -f core conftest.err conftest.$ac_objext \
22308 conftest$ac_exeext conftest.$ac_ext
d213114b 22309fi
7d9455ce 22310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22311$as_echo "$gcc_cv_math_func_sinh" >&6; }
22312 if test $gcc_cv_math_func_sinh = yes; then
bd647a17 22313
6affa8e1 22314cat >>confdefs.h <<_ACEOF
22315#define HAVE_SINH 1
22316_ACEOF
7d9455ce 22317
22318 fi
22319
d213114b 22320
d213114b 22321
d213114b 22322
7d9455ce 22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22324$as_echo_n "checking for sinhl... " >&6; }
f00f02a3 22325if ${gcc_cv_math_func_sinhl+:} false; then :
cd9a469c 22326 $as_echo_n "(cached) " >&6
d213114b 22327else
7d9455ce 22328 if test x$gcc_no_link = xyes; then
f00f02a3 22329 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22330fi
cd9a469c 22331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22332/* end confdefs.h. */
22333
7d9455ce 22334#ifdef HAVE_COMPLEX_H
22335#include <complex.h>
d213114b 22336#endif
7d9455ce 22337#ifdef HAVE_MATH_H
22338#include <math.h>
22339#endif
22340
22341int (*ptr)() = (int (*)())sinhl;
22342
d213114b 22343int
22344main ()
22345{
d213114b 22346 return 0;
22347}
7d9455ce 22348
d213114b 22349_ACEOF
cd9a469c 22350if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22351 gcc_cv_math_func_sinhl=yes
d213114b 22352else
7d9455ce 22353 gcc_cv_math_func_sinhl=no
d213114b 22354fi
cd9a469c 22355rm -f core conftest.err conftest.$ac_objext \
22356 conftest$ac_exeext conftest.$ac_ext
d213114b 22357fi
7d9455ce 22358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22359$as_echo "$gcc_cv_math_func_sinhl" >&6; }
22360 if test $gcc_cv_math_func_sinhl = yes; then
bd647a17 22361
6affa8e1 22362cat >>confdefs.h <<_ACEOF
22363#define HAVE_SINHL 1
22364_ACEOF
7d9455ce 22365
22366 fi
d213114b 22367
d213114b 22368
d213114b 22369
7d9455ce 22370
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22372$as_echo_n "checking for csinhf... " >&6; }
f00f02a3 22373if ${gcc_cv_math_func_csinhf+:} false; then :
cd9a469c 22374 $as_echo_n "(cached) " >&6
d213114b 22375else
7d9455ce 22376 if test x$gcc_no_link = xyes; then
f00f02a3 22377 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22378fi
cd9a469c 22379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22380/* end confdefs.h. */
22381
7d9455ce 22382#ifdef HAVE_COMPLEX_H
22383#include <complex.h>
22384#endif
22385#ifdef HAVE_MATH_H
22386#include <math.h>
d213114b 22387#endif
7d9455ce 22388
22389int (*ptr)() = (int (*)())csinhf;
22390
d213114b 22391int
22392main ()
22393{
d213114b 22394 return 0;
22395}
7d9455ce 22396
d213114b 22397_ACEOF
cd9a469c 22398if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22399 gcc_cv_math_func_csinhf=yes
d213114b 22400else
7d9455ce 22401 gcc_cv_math_func_csinhf=no
d213114b 22402fi
cd9a469c 22403rm -f core conftest.err conftest.$ac_objext \
22404 conftest$ac_exeext conftest.$ac_ext
d213114b 22405fi
7d9455ce 22406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22407$as_echo "$gcc_cv_math_func_csinhf" >&6; }
22408 if test $gcc_cv_math_func_csinhf = yes; then
bd647a17 22409
6affa8e1 22410cat >>confdefs.h <<_ACEOF
22411#define HAVE_CSINHF 1
22412_ACEOF
d213114b 22413
7d9455ce 22414 fi
d213114b 22415
d213114b 22416
7d9455ce 22417
22418
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22420$as_echo_n "checking for csinh... " >&6; }
f00f02a3 22421if ${gcc_cv_math_func_csinh+:} false; then :
cd9a469c 22422 $as_echo_n "(cached) " >&6
d213114b 22423else
7d9455ce 22424 if test x$gcc_no_link = xyes; then
f00f02a3 22425 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22426fi
cd9a469c 22427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22428/* end confdefs.h. */
22429
7d9455ce 22430#ifdef HAVE_COMPLEX_H
22431#include <complex.h>
d213114b 22432#endif
7d9455ce 22433#ifdef HAVE_MATH_H
22434#include <math.h>
22435#endif
22436
22437int (*ptr)() = (int (*)())csinh;
22438
d213114b 22439int
22440main ()
22441{
d213114b 22442 return 0;
22443}
7d9455ce 22444
d213114b 22445_ACEOF
cd9a469c 22446if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22447 gcc_cv_math_func_csinh=yes
d213114b 22448else
7d9455ce 22449 gcc_cv_math_func_csinh=no
d213114b 22450fi
cd9a469c 22451rm -f core conftest.err conftest.$ac_objext \
22452 conftest$ac_exeext conftest.$ac_ext
d213114b 22453fi
7d9455ce 22454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22455$as_echo "$gcc_cv_math_func_csinh" >&6; }
22456 if test $gcc_cv_math_func_csinh = yes; then
bd647a17 22457
6affa8e1 22458cat >>confdefs.h <<_ACEOF
22459#define HAVE_CSINH 1
22460_ACEOF
7d9455ce 22461
22462 fi
22463
d213114b 22464
d213114b 22465
d213114b 22466
7d9455ce 22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22468$as_echo_n "checking for csinhl... " >&6; }
f00f02a3 22469if ${gcc_cv_math_func_csinhl+:} false; then :
cd9a469c 22470 $as_echo_n "(cached) " >&6
d213114b 22471else
7d9455ce 22472 if test x$gcc_no_link = xyes; then
f00f02a3 22473 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22474fi
cd9a469c 22475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22476/* end confdefs.h. */
22477
7d9455ce 22478#ifdef HAVE_COMPLEX_H
22479#include <complex.h>
d213114b 22480#endif
7d9455ce 22481#ifdef HAVE_MATH_H
22482#include <math.h>
22483#endif
22484
22485int (*ptr)() = (int (*)())csinhl;
22486
d213114b 22487int
22488main ()
22489{
d213114b 22490 return 0;
22491}
7d9455ce 22492
d213114b 22493_ACEOF
cd9a469c 22494if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22495 gcc_cv_math_func_csinhl=yes
d213114b 22496else
7d9455ce 22497 gcc_cv_math_func_csinhl=no
d213114b 22498fi
cd9a469c 22499rm -f core conftest.err conftest.$ac_objext \
22500 conftest$ac_exeext conftest.$ac_ext
d213114b 22501fi
7d9455ce 22502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22503$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22504 if test $gcc_cv_math_func_csinhl = yes; then
bd647a17 22505
6affa8e1 22506cat >>confdefs.h <<_ACEOF
22507#define HAVE_CSINHL 1
22508_ACEOF
7d9455ce 22509
22510 fi
d213114b 22511
d213114b 22512
d213114b 22513
7d9455ce 22514
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22516$as_echo_n "checking for sqrtf... " >&6; }
f00f02a3 22517if ${gcc_cv_math_func_sqrtf+:} false; then :
cd9a469c 22518 $as_echo_n "(cached) " >&6
d213114b 22519else
7d9455ce 22520 if test x$gcc_no_link = xyes; then
f00f02a3 22521 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22522fi
cd9a469c 22523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22524/* end confdefs.h. */
22525
7d9455ce 22526#ifdef HAVE_COMPLEX_H
22527#include <complex.h>
22528#endif
22529#ifdef HAVE_MATH_H
22530#include <math.h>
d213114b 22531#endif
7d9455ce 22532
22533int (*ptr)() = (int (*)())sqrtf;
22534
d213114b 22535int
22536main ()
22537{
d213114b 22538 return 0;
22539}
7d9455ce 22540
d213114b 22541_ACEOF
cd9a469c 22542if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22543 gcc_cv_math_func_sqrtf=yes
d213114b 22544else
7d9455ce 22545 gcc_cv_math_func_sqrtf=no
d213114b 22546fi
cd9a469c 22547rm -f core conftest.err conftest.$ac_objext \
22548 conftest$ac_exeext conftest.$ac_ext
d213114b 22549fi
7d9455ce 22550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22551$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22552 if test $gcc_cv_math_func_sqrtf = yes; then
bd647a17 22553
6affa8e1 22554cat >>confdefs.h <<_ACEOF
22555#define HAVE_SQRTF 1
22556_ACEOF
7d9455ce 22557
22558 fi
d213114b 22559
d213114b 22560
7d9455ce 22561
22562
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22564$as_echo_n "checking for sqrt... " >&6; }
f00f02a3 22565if ${gcc_cv_math_func_sqrt+:} false; then :
7d9455ce 22566 $as_echo_n "(cached) " >&6
22567else
22568 if test x$gcc_no_link = xyes; then
f00f02a3 22569 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22570fi
7d9455ce 22571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22572/* end confdefs.h. */
22573
22574#ifdef HAVE_COMPLEX_H
22575#include <complex.h>
22576#endif
22577#ifdef HAVE_MATH_H
22578#include <math.h>
22579#endif
22580
22581int (*ptr)() = (int (*)())sqrt;
22582
22583int
22584main ()
22585{
22586 return 0;
22587}
22588
22589_ACEOF
22590if ac_fn_c_try_link "$LINENO"; then :
22591 gcc_cv_math_func_sqrt=yes
22592else
22593 gcc_cv_math_func_sqrt=no
22594fi
22595rm -f core conftest.err conftest.$ac_objext \
22596 conftest$ac_exeext conftest.$ac_ext
22597fi
22598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22599$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22600 if test $gcc_cv_math_func_sqrt = yes; then
bd647a17 22601
6affa8e1 22602cat >>confdefs.h <<_ACEOF
22603#define HAVE_SQRT 1
22604_ACEOF
7d9455ce 22605
22606 fi
d213114b 22607
7d9455ce 22608
22609
22610
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22612$as_echo_n "checking for sqrtl... " >&6; }
f00f02a3 22613if ${gcc_cv_math_func_sqrtl+:} false; then :
cd9a469c 22614 $as_echo_n "(cached) " >&6
d213114b 22615else
7d9455ce 22616 if test x$gcc_no_link = xyes; then
f00f02a3 22617 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22618fi
cd9a469c 22619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22620/* end confdefs.h. */
22621
7d9455ce 22622#ifdef HAVE_COMPLEX_H
22623#include <complex.h>
22624#endif
22625#ifdef HAVE_MATH_H
22626#include <math.h>
d213114b 22627#endif
7d9455ce 22628
22629int (*ptr)() = (int (*)())sqrtl;
22630
d213114b 22631int
22632main ()
22633{
d213114b 22634 return 0;
22635}
7d9455ce 22636
d213114b 22637_ACEOF
cd9a469c 22638if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22639 gcc_cv_math_func_sqrtl=yes
d213114b 22640else
7d9455ce 22641 gcc_cv_math_func_sqrtl=no
d213114b 22642fi
cd9a469c 22643rm -f core conftest.err conftest.$ac_objext \
22644 conftest$ac_exeext conftest.$ac_ext
d213114b 22645fi
7d9455ce 22646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22647$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22648 if test $gcc_cv_math_func_sqrtl = yes; then
bd647a17 22649
6affa8e1 22650cat >>confdefs.h <<_ACEOF
22651#define HAVE_SQRTL 1
22652_ACEOF
7d9455ce 22653
22654 fi
d213114b 22655
d213114b 22656
d213114b 22657
7d9455ce 22658
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22660$as_echo_n "checking for csqrtf... " >&6; }
f00f02a3 22661if ${gcc_cv_math_func_csqrtf+:} false; then :
cd9a469c 22662 $as_echo_n "(cached) " >&6
d213114b 22663else
7d9455ce 22664 if test x$gcc_no_link = xyes; then
f00f02a3 22665 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22666fi
cd9a469c 22667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22668/* end confdefs.h. */
22669
7d9455ce 22670#ifdef HAVE_COMPLEX_H
22671#include <complex.h>
d213114b 22672#endif
7d9455ce 22673#ifdef HAVE_MATH_H
22674#include <math.h>
22675#endif
22676
22677int (*ptr)() = (int (*)())csqrtf;
22678
d213114b 22679int
22680main ()
22681{
d213114b 22682 return 0;
22683}
7d9455ce 22684
d213114b 22685_ACEOF
cd9a469c 22686if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22687 gcc_cv_math_func_csqrtf=yes
d213114b 22688else
7d9455ce 22689 gcc_cv_math_func_csqrtf=no
d213114b 22690fi
cd9a469c 22691rm -f core conftest.err conftest.$ac_objext \
22692 conftest$ac_exeext conftest.$ac_ext
d213114b 22693fi
7d9455ce 22694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22695$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22696 if test $gcc_cv_math_func_csqrtf = yes; then
bd647a17 22697
6affa8e1 22698cat >>confdefs.h <<_ACEOF
22699#define HAVE_CSQRTF 1
22700_ACEOF
d213114b 22701
7d9455ce 22702 fi
d213114b 22703
d213114b 22704
7d9455ce 22705
22706
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22708$as_echo_n "checking for csqrt... " >&6; }
f00f02a3 22709if ${gcc_cv_math_func_csqrt+:} false; then :
cd9a469c 22710 $as_echo_n "(cached) " >&6
d213114b 22711else
7d9455ce 22712 if test x$gcc_no_link = xyes; then
f00f02a3 22713 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22714fi
cd9a469c 22715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22716/* end confdefs.h. */
22717
7d9455ce 22718#ifdef HAVE_COMPLEX_H
22719#include <complex.h>
22720#endif
22721#ifdef HAVE_MATH_H
22722#include <math.h>
d213114b 22723#endif
7d9455ce 22724
22725int (*ptr)() = (int (*)())csqrt;
22726
d213114b 22727int
22728main ()
22729{
d213114b 22730 return 0;
22731}
7d9455ce 22732
d213114b 22733_ACEOF
cd9a469c 22734if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22735 gcc_cv_math_func_csqrt=yes
d213114b 22736else
7d9455ce 22737 gcc_cv_math_func_csqrt=no
d213114b 22738fi
cd9a469c 22739rm -f core conftest.err conftest.$ac_objext \
22740 conftest$ac_exeext conftest.$ac_ext
d213114b 22741fi
7d9455ce 22742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22743$as_echo "$gcc_cv_math_func_csqrt" >&6; }
22744 if test $gcc_cv_math_func_csqrt = yes; then
bd647a17 22745
6affa8e1 22746cat >>confdefs.h <<_ACEOF
22747#define HAVE_CSQRT 1
22748_ACEOF
7d9455ce 22749
22750 fi
d213114b 22751
d213114b 22752
d213114b 22753
7d9455ce 22754
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22756$as_echo_n "checking for csqrtl... " >&6; }
f00f02a3 22757if ${gcc_cv_math_func_csqrtl+:} false; then :
cd9a469c 22758 $as_echo_n "(cached) " >&6
d213114b 22759else
7d9455ce 22760 if test x$gcc_no_link = xyes; then
f00f02a3 22761 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22762fi
cd9a469c 22763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22764/* end confdefs.h. */
22765
7d9455ce 22766#ifdef HAVE_COMPLEX_H
22767#include <complex.h>
d213114b 22768#endif
7d9455ce 22769#ifdef HAVE_MATH_H
22770#include <math.h>
22771#endif
22772
22773int (*ptr)() = (int (*)())csqrtl;
22774
d213114b 22775int
22776main ()
22777{
d213114b 22778 return 0;
22779}
7d9455ce 22780
d213114b 22781_ACEOF
cd9a469c 22782if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22783 gcc_cv_math_func_csqrtl=yes
d213114b 22784else
7d9455ce 22785 gcc_cv_math_func_csqrtl=no
d213114b 22786fi
cd9a469c 22787rm -f core conftest.err conftest.$ac_objext \
22788 conftest$ac_exeext conftest.$ac_ext
d213114b 22789fi
7d9455ce 22790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22791$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22792 if test $gcc_cv_math_func_csqrtl = yes; then
bd647a17 22793
6affa8e1 22794cat >>confdefs.h <<_ACEOF
22795#define HAVE_CSQRTL 1
22796_ACEOF
7d9455ce 22797
22798 fi
22799
d213114b 22800
d213114b 22801
d213114b 22802
7d9455ce 22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22804$as_echo_n "checking for tanf... " >&6; }
f00f02a3 22805if ${gcc_cv_math_func_tanf+:} false; then :
cd9a469c 22806 $as_echo_n "(cached) " >&6
d213114b 22807else
7d9455ce 22808 if test x$gcc_no_link = xyes; then
f00f02a3 22809 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22810fi
cd9a469c 22811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22812/* end confdefs.h. */
22813
7d9455ce 22814#ifdef HAVE_COMPLEX_H
22815#include <complex.h>
22816#endif
22817#ifdef HAVE_MATH_H
22818#include <math.h>
d213114b 22819#endif
7d9455ce 22820
22821int (*ptr)() = (int (*)())tanf;
22822
d213114b 22823int
22824main ()
22825{
d213114b 22826 return 0;
22827}
7d9455ce 22828
d213114b 22829_ACEOF
cd9a469c 22830if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22831 gcc_cv_math_func_tanf=yes
d213114b 22832else
7d9455ce 22833 gcc_cv_math_func_tanf=no
d213114b 22834fi
cd9a469c 22835rm -f core conftest.err conftest.$ac_objext \
22836 conftest$ac_exeext conftest.$ac_ext
d213114b 22837fi
7d9455ce 22838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22839$as_echo "$gcc_cv_math_func_tanf" >&6; }
22840 if test $gcc_cv_math_func_tanf = yes; then
bd647a17 22841
6affa8e1 22842cat >>confdefs.h <<_ACEOF
22843#define HAVE_TANF 1
22844_ACEOF
7d9455ce 22845
22846 fi
d213114b 22847
d213114b 22848
d213114b 22849
7d9455ce 22850
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22852$as_echo_n "checking for tan... " >&6; }
f00f02a3 22853if ${gcc_cv_math_func_tan+:} false; then :
cd9a469c 22854 $as_echo_n "(cached) " >&6
d213114b 22855else
7d9455ce 22856 if test x$gcc_no_link = xyes; then
f00f02a3 22857 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22858fi
cd9a469c 22859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22860/* end confdefs.h. */
22861
7d9455ce 22862#ifdef HAVE_COMPLEX_H
22863#include <complex.h>
d213114b 22864#endif
7d9455ce 22865#ifdef HAVE_MATH_H
22866#include <math.h>
22867#endif
22868
22869int (*ptr)() = (int (*)())tan;
22870
d213114b 22871int
22872main ()
22873{
d213114b 22874 return 0;
22875}
7d9455ce 22876
d213114b 22877_ACEOF
cd9a469c 22878if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22879 gcc_cv_math_func_tan=yes
d213114b 22880else
7d9455ce 22881 gcc_cv_math_func_tan=no
d213114b 22882fi
cd9a469c 22883rm -f core conftest.err conftest.$ac_objext \
22884 conftest$ac_exeext conftest.$ac_ext
d213114b 22885fi
7d9455ce 22886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22887$as_echo "$gcc_cv_math_func_tan" >&6; }
22888 if test $gcc_cv_math_func_tan = yes; then
bd647a17 22889
6affa8e1 22890cat >>confdefs.h <<_ACEOF
22891#define HAVE_TAN 1
22892_ACEOF
d213114b 22893
7d9455ce 22894 fi
d213114b 22895
d213114b 22896
7d9455ce 22897
22898
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22900$as_echo_n "checking for tanl... " >&6; }
f00f02a3 22901if ${gcc_cv_math_func_tanl+:} false; then :
cd9a469c 22902 $as_echo_n "(cached) " >&6
d213114b 22903else
7d9455ce 22904 if test x$gcc_no_link = xyes; then
f00f02a3 22905 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22906fi
cd9a469c 22907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22908/* end confdefs.h. */
22909
7d9455ce 22910#ifdef HAVE_COMPLEX_H
22911#include <complex.h>
22912#endif
22913#ifdef HAVE_MATH_H
22914#include <math.h>
d213114b 22915#endif
7d9455ce 22916
22917int (*ptr)() = (int (*)())tanl;
22918
d213114b 22919int
22920main ()
22921{
d213114b 22922 return 0;
22923}
7d9455ce 22924
d213114b 22925_ACEOF
cd9a469c 22926if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22927 gcc_cv_math_func_tanl=yes
d213114b 22928else
7d9455ce 22929 gcc_cv_math_func_tanl=no
d213114b 22930fi
cd9a469c 22931rm -f core conftest.err conftest.$ac_objext \
22932 conftest$ac_exeext conftest.$ac_ext
d213114b 22933fi
7d9455ce 22934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22935$as_echo "$gcc_cv_math_func_tanl" >&6; }
22936 if test $gcc_cv_math_func_tanl = yes; then
bd647a17 22937
6affa8e1 22938cat >>confdefs.h <<_ACEOF
22939#define HAVE_TANL 1
22940_ACEOF
7d9455ce 22941
22942 fi
d213114b 22943
d213114b 22944
d213114b 22945
7d9455ce 22946
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22948$as_echo_n "checking for ctanf... " >&6; }
f00f02a3 22949if ${gcc_cv_math_func_ctanf+:} false; then :
cd9a469c 22950 $as_echo_n "(cached) " >&6
d213114b 22951else
7d9455ce 22952 if test x$gcc_no_link = xyes; then
f00f02a3 22953 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 22954fi
cd9a469c 22955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 22956/* end confdefs.h. */
22957
7d9455ce 22958#ifdef HAVE_COMPLEX_H
22959#include <complex.h>
d213114b 22960#endif
7d9455ce 22961#ifdef HAVE_MATH_H
22962#include <math.h>
22963#endif
22964
22965int (*ptr)() = (int (*)())ctanf;
22966
d213114b 22967int
22968main ()
22969{
d213114b 22970 return 0;
22971}
7d9455ce 22972
d213114b 22973_ACEOF
cd9a469c 22974if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 22975 gcc_cv_math_func_ctanf=yes
d213114b 22976else
7d9455ce 22977 gcc_cv_math_func_ctanf=no
d213114b 22978fi
cd9a469c 22979rm -f core conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
d213114b 22981fi
7d9455ce 22982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22983$as_echo "$gcc_cv_math_func_ctanf" >&6; }
22984 if test $gcc_cv_math_func_ctanf = yes; then
bd647a17 22985
6affa8e1 22986cat >>confdefs.h <<_ACEOF
22987#define HAVE_CTANF 1
22988_ACEOF
7d9455ce 22989
22990 fi
22991
d213114b 22992
d213114b 22993
d213114b 22994
7d9455ce 22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22996$as_echo_n "checking for ctan... " >&6; }
f00f02a3 22997if ${gcc_cv_math_func_ctan+:} false; then :
cd9a469c 22998 $as_echo_n "(cached) " >&6
d213114b 22999else
7d9455ce 23000 if test x$gcc_no_link = xyes; then
f00f02a3 23001 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23002fi
cd9a469c 23003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23004/* end confdefs.h. */
23005
7d9455ce 23006#ifdef HAVE_COMPLEX_H
23007#include <complex.h>
23008#endif
23009#ifdef HAVE_MATH_H
23010#include <math.h>
d213114b 23011#endif
7d9455ce 23012
23013int (*ptr)() = (int (*)())ctan;
23014
d213114b 23015int
23016main ()
23017{
d213114b 23018 return 0;
23019}
7d9455ce 23020
d213114b 23021_ACEOF
cd9a469c 23022if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23023 gcc_cv_math_func_ctan=yes
d213114b 23024else
7d9455ce 23025 gcc_cv_math_func_ctan=no
d213114b 23026fi
cd9a469c 23027rm -f core conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
d213114b 23029fi
7d9455ce 23030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23031$as_echo "$gcc_cv_math_func_ctan" >&6; }
23032 if test $gcc_cv_math_func_ctan = yes; then
bd647a17 23033
6affa8e1 23034cat >>confdefs.h <<_ACEOF
23035#define HAVE_CTAN 1
23036_ACEOF
7d9455ce 23037
23038 fi
d213114b 23039
d213114b 23040
d213114b 23041
7d9455ce 23042
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23044$as_echo_n "checking for ctanl... " >&6; }
f00f02a3 23045if ${gcc_cv_math_func_ctanl+:} false; then :
cd9a469c 23046 $as_echo_n "(cached) " >&6
d213114b 23047else
7d9455ce 23048 if test x$gcc_no_link = xyes; then
f00f02a3 23049 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23050fi
cd9a469c 23051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23052/* end confdefs.h. */
23053
7d9455ce 23054#ifdef HAVE_COMPLEX_H
23055#include <complex.h>
d213114b 23056#endif
7d9455ce 23057#ifdef HAVE_MATH_H
23058#include <math.h>
23059#endif
23060
23061int (*ptr)() = (int (*)())ctanl;
23062
d213114b 23063int
23064main ()
23065{
d213114b 23066 return 0;
23067}
7d9455ce 23068
d213114b 23069_ACEOF
cd9a469c 23070if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23071 gcc_cv_math_func_ctanl=yes
d213114b 23072else
7d9455ce 23073 gcc_cv_math_func_ctanl=no
d213114b 23074fi
cd9a469c 23075rm -f core conftest.err conftest.$ac_objext \
23076 conftest$ac_exeext conftest.$ac_ext
d213114b 23077fi
7d9455ce 23078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23079$as_echo "$gcc_cv_math_func_ctanl" >&6; }
23080 if test $gcc_cv_math_func_ctanl = yes; then
bd647a17 23081
6affa8e1 23082cat >>confdefs.h <<_ACEOF
23083#define HAVE_CTANL 1
23084_ACEOF
d213114b 23085
7d9455ce 23086 fi
d213114b 23087
d213114b 23088
7d9455ce 23089
23090
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23092$as_echo_n "checking for tanhf... " >&6; }
f00f02a3 23093if ${gcc_cv_math_func_tanhf+:} false; then :
cd9a469c 23094 $as_echo_n "(cached) " >&6
d213114b 23095else
7d9455ce 23096 if test x$gcc_no_link = xyes; then
f00f02a3 23097 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23098fi
cd9a469c 23099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23100/* end confdefs.h. */
23101
7d9455ce 23102#ifdef HAVE_COMPLEX_H
23103#include <complex.h>
23104#endif
23105#ifdef HAVE_MATH_H
23106#include <math.h>
d213114b 23107#endif
7d9455ce 23108
23109int (*ptr)() = (int (*)())tanhf;
23110
d213114b 23111int
23112main ()
23113{
d213114b 23114 return 0;
23115}
7d9455ce 23116
d213114b 23117_ACEOF
cd9a469c 23118if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23119 gcc_cv_math_func_tanhf=yes
d213114b 23120else
7d9455ce 23121 gcc_cv_math_func_tanhf=no
d213114b 23122fi
cd9a469c 23123rm -f core conftest.err conftest.$ac_objext \
23124 conftest$ac_exeext conftest.$ac_ext
d213114b 23125fi
7d9455ce 23126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23127$as_echo "$gcc_cv_math_func_tanhf" >&6; }
23128 if test $gcc_cv_math_func_tanhf = yes; then
bd647a17 23129
6affa8e1 23130cat >>confdefs.h <<_ACEOF
23131#define HAVE_TANHF 1
23132_ACEOF
7d9455ce 23133
23134 fi
d213114b 23135
d213114b 23136
d213114b 23137
7d9455ce 23138
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23140$as_echo_n "checking for tanh... " >&6; }
f00f02a3 23141if ${gcc_cv_math_func_tanh+:} false; then :
cd9a469c 23142 $as_echo_n "(cached) " >&6
d213114b 23143else
7d9455ce 23144 if test x$gcc_no_link = xyes; then
f00f02a3 23145 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23146fi
cd9a469c 23147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23148/* end confdefs.h. */
23149
7d9455ce 23150#ifdef HAVE_COMPLEX_H
23151#include <complex.h>
d213114b 23152#endif
7d9455ce 23153#ifdef HAVE_MATH_H
23154#include <math.h>
23155#endif
23156
23157int (*ptr)() = (int (*)())tanh;
23158
d213114b 23159int
23160main ()
23161{
d213114b 23162 return 0;
23163}
7d9455ce 23164
d213114b 23165_ACEOF
cd9a469c 23166if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23167 gcc_cv_math_func_tanh=yes
d213114b 23168else
7d9455ce 23169 gcc_cv_math_func_tanh=no
d213114b 23170fi
cd9a469c 23171rm -f core conftest.err conftest.$ac_objext \
23172 conftest$ac_exeext conftest.$ac_ext
d213114b 23173fi
7d9455ce 23174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23175$as_echo "$gcc_cv_math_func_tanh" >&6; }
23176 if test $gcc_cv_math_func_tanh = yes; then
bd647a17 23177
6affa8e1 23178cat >>confdefs.h <<_ACEOF
23179#define HAVE_TANH 1
23180_ACEOF
7d9455ce 23181
23182 fi
23183
d213114b 23184
d213114b 23185
d213114b 23186
7d9455ce 23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23188$as_echo_n "checking for tanhl... " >&6; }
f00f02a3 23189if ${gcc_cv_math_func_tanhl+:} false; then :
cd9a469c 23190 $as_echo_n "(cached) " >&6
d213114b 23191else
7d9455ce 23192 if test x$gcc_no_link = xyes; then
f00f02a3 23193 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23194fi
cd9a469c 23195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23196/* end confdefs.h. */
23197
7d9455ce 23198#ifdef HAVE_COMPLEX_H
23199#include <complex.h>
23200#endif
23201#ifdef HAVE_MATH_H
23202#include <math.h>
d213114b 23203#endif
7d9455ce 23204
23205int (*ptr)() = (int (*)())tanhl;
23206
d213114b 23207int
23208main ()
23209{
d213114b 23210 return 0;
23211}
7d9455ce 23212
d213114b 23213_ACEOF
cd9a469c 23214if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23215 gcc_cv_math_func_tanhl=yes
d213114b 23216else
7d9455ce 23217 gcc_cv_math_func_tanhl=no
d213114b 23218fi
cd9a469c 23219rm -f core conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
d213114b 23221fi
7d9455ce 23222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23223$as_echo "$gcc_cv_math_func_tanhl" >&6; }
23224 if test $gcc_cv_math_func_tanhl = yes; then
bd647a17 23225
6affa8e1 23226cat >>confdefs.h <<_ACEOF
23227#define HAVE_TANHL 1
23228_ACEOF
7d9455ce 23229
23230 fi
d213114b 23231
d213114b 23232
d213114b 23233
7d9455ce 23234
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23236$as_echo_n "checking for ctanhf... " >&6; }
f00f02a3 23237if ${gcc_cv_math_func_ctanhf+:} false; then :
cd9a469c 23238 $as_echo_n "(cached) " >&6
d213114b 23239else
7d9455ce 23240 if test x$gcc_no_link = xyes; then
f00f02a3 23241 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7d9455ce 23242fi
23243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244/* end confdefs.h. */
23245
23246#ifdef HAVE_COMPLEX_H
23247#include <complex.h>
d213114b 23248#endif
7d9455ce 23249#ifdef HAVE_MATH_H
23250#include <math.h>
23251#endif
23252
23253int (*ptr)() = (int (*)())ctanhf;
23254
d213114b 23255int
23256main ()
23257{
d213114b 23258 return 0;
23259}
7d9455ce 23260
d213114b 23261_ACEOF
cd9a469c 23262if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23263 gcc_cv_math_func_ctanhf=yes
d213114b 23264else
7d9455ce 23265 gcc_cv_math_func_ctanhf=no
d213114b 23266fi
cd9a469c 23267rm -f core conftest.err conftest.$ac_objext \
23268 conftest$ac_exeext conftest.$ac_ext
d213114b 23269fi
7d9455ce 23270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23271$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23272 if test $gcc_cv_math_func_ctanhf = yes; then
bd647a17 23273
6affa8e1 23274cat >>confdefs.h <<_ACEOF
23275#define HAVE_CTANHF 1
23276_ACEOF
d213114b 23277
7d9455ce 23278 fi
d213114b 23279
d213114b 23280
7d9455ce 23281
23282
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23284$as_echo_n "checking for ctanh... " >&6; }
f00f02a3 23285if ${gcc_cv_math_func_ctanh+:} false; then :
cd9a469c 23286 $as_echo_n "(cached) " >&6
d213114b 23287else
7d9455ce 23288 if test x$gcc_no_link = xyes; then
f00f02a3 23289 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23290fi
cd9a469c 23291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23292/* end confdefs.h. */
23293
7d9455ce 23294#ifdef HAVE_COMPLEX_H
23295#include <complex.h>
23296#endif
23297#ifdef HAVE_MATH_H
23298#include <math.h>
d213114b 23299#endif
7d9455ce 23300
23301int (*ptr)() = (int (*)())ctanh;
23302
d213114b 23303int
23304main ()
23305{
cd9a469c 23306 return 0;
23307}
7d9455ce 23308
cd9a469c 23309_ACEOF
23310if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23311 gcc_cv_math_func_ctanh=yes
d213114b 23312else
7d9455ce 23313 gcc_cv_math_func_ctanh=no
d213114b 23314fi
cd9a469c 23315rm -f core conftest.err conftest.$ac_objext \
23316 conftest$ac_exeext conftest.$ac_ext
d213114b 23317fi
7d9455ce 23318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23319$as_echo "$gcc_cv_math_func_ctanh" >&6; }
23320 if test $gcc_cv_math_func_ctanh = yes; then
bd647a17 23321
6affa8e1 23322cat >>confdefs.h <<_ACEOF
23323#define HAVE_CTANH 1
23324_ACEOF
7d9455ce 23325
23326 fi
d213114b 23327
d213114b 23328
d213114b 23329
7d9455ce 23330
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23332$as_echo_n "checking for ctanhl... " >&6; }
f00f02a3 23333if ${gcc_cv_math_func_ctanhl+:} false; then :
cd9a469c 23334 $as_echo_n "(cached) " >&6
d213114b 23335else
7d9455ce 23336 if test x$gcc_no_link = xyes; then
f00f02a3 23337 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23338fi
cd9a469c 23339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23340/* end confdefs.h. */
23341
7d9455ce 23342#ifdef HAVE_COMPLEX_H
23343#include <complex.h>
d213114b 23344#endif
7d9455ce 23345#ifdef HAVE_MATH_H
23346#include <math.h>
23347#endif
23348
23349int (*ptr)() = (int (*)())ctanhl;
23350
d213114b 23351int
23352main ()
23353{
d213114b 23354 return 0;
23355}
7d9455ce 23356
d213114b 23357_ACEOF
cd9a469c 23358if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23359 gcc_cv_math_func_ctanhl=yes
d213114b 23360else
7d9455ce 23361 gcc_cv_math_func_ctanhl=no
d213114b 23362fi
cd9a469c 23363rm -f core conftest.err conftest.$ac_objext \
23364 conftest$ac_exeext conftest.$ac_ext
d213114b 23365fi
7d9455ce 23366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23367$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23368 if test $gcc_cv_math_func_ctanhl = yes; then
bd647a17 23369
6affa8e1 23370cat >>confdefs.h <<_ACEOF
23371#define HAVE_CTANHL 1
23372_ACEOF
7d9455ce 23373
23374 fi
23375
d213114b 23376
50f0ca0a 23377
50f0ca0a 23378
7d9455ce 23379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23380$as_echo_n "checking for truncf... " >&6; }
f00f02a3 23381if ${gcc_cv_math_func_truncf+:} false; then :
cd9a469c 23382 $as_echo_n "(cached) " >&6
50f0ca0a 23383else
7d9455ce 23384 if test x$gcc_no_link = xyes; then
f00f02a3 23385 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23386fi
cd9a469c 23387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50f0ca0a 23388/* end confdefs.h. */
23389
7d9455ce 23390#ifdef HAVE_COMPLEX_H
23391#include <complex.h>
23392#endif
23393#ifdef HAVE_MATH_H
23394#include <math.h>
50f0ca0a 23395#endif
7d9455ce 23396
23397int (*ptr)() = (int (*)())truncf;
23398
d213114b 23399int
23400main ()
23401{
d213114b 23402 return 0;
23403}
7d9455ce 23404
d213114b 23405_ACEOF
cd9a469c 23406if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23407 gcc_cv_math_func_truncf=yes
d213114b 23408else
7d9455ce 23409 gcc_cv_math_func_truncf=no
d213114b 23410fi
cd9a469c 23411rm -f core conftest.err conftest.$ac_objext \
23412 conftest$ac_exeext conftest.$ac_ext
d213114b 23413fi
7d9455ce 23414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23415$as_echo "$gcc_cv_math_func_truncf" >&6; }
23416 if test $gcc_cv_math_func_truncf = yes; then
bd647a17 23417
6affa8e1 23418cat >>confdefs.h <<_ACEOF
23419#define HAVE_TRUNCF 1
23420_ACEOF
7d9455ce 23421
23422 fi
d213114b 23423
d213114b 23424
d213114b 23425
7d9455ce 23426
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23428$as_echo_n "checking for trunc... " >&6; }
f00f02a3 23429if ${gcc_cv_math_func_trunc+:} false; then :
cd9a469c 23430 $as_echo_n "(cached) " >&6
d213114b 23431else
7d9455ce 23432 if test x$gcc_no_link = xyes; then
f00f02a3 23433 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23434fi
cd9a469c 23435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23436/* end confdefs.h. */
23437
7d9455ce 23438#ifdef HAVE_COMPLEX_H
23439#include <complex.h>
d213114b 23440#endif
7d9455ce 23441#ifdef HAVE_MATH_H
23442#include <math.h>
23443#endif
23444
23445int (*ptr)() = (int (*)())trunc;
23446
d213114b 23447int
23448main ()
23449{
d213114b 23450 return 0;
23451}
7d9455ce 23452
d213114b 23453_ACEOF
cd9a469c 23454if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23455 gcc_cv_math_func_trunc=yes
d213114b 23456else
7d9455ce 23457 gcc_cv_math_func_trunc=no
d213114b 23458fi
cd9a469c 23459rm -f core conftest.err conftest.$ac_objext \
23460 conftest$ac_exeext conftest.$ac_ext
d213114b 23461fi
7d9455ce 23462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23463$as_echo "$gcc_cv_math_func_trunc" >&6; }
23464 if test $gcc_cv_math_func_trunc = yes; then
bd647a17 23465
6affa8e1 23466cat >>confdefs.h <<_ACEOF
23467#define HAVE_TRUNC 1
23468_ACEOF
d213114b 23469
7d9455ce 23470 fi
d213114b 23471
d213114b 23472
7d9455ce 23473
23474
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23476$as_echo_n "checking for truncl... " >&6; }
f00f02a3 23477if ${gcc_cv_math_func_truncl+:} false; then :
cd9a469c 23478 $as_echo_n "(cached) " >&6
d213114b 23479else
7d9455ce 23480 if test x$gcc_no_link = xyes; then
f00f02a3 23481 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23482fi
cd9a469c 23483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23484/* end confdefs.h. */
23485
7d9455ce 23486#ifdef HAVE_COMPLEX_H
23487#include <complex.h>
23488#endif
23489#ifdef HAVE_MATH_H
23490#include <math.h>
d213114b 23491#endif
7d9455ce 23492
23493int (*ptr)() = (int (*)())truncl;
23494
d213114b 23495int
23496main ()
23497{
d213114b 23498 return 0;
23499}
7d9455ce 23500
d213114b 23501_ACEOF
cd9a469c 23502if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23503 gcc_cv_math_func_truncl=yes
d213114b 23504else
7d9455ce 23505 gcc_cv_math_func_truncl=no
d213114b 23506fi
cd9a469c 23507rm -f core conftest.err conftest.$ac_objext \
23508 conftest$ac_exeext conftest.$ac_ext
d213114b 23509fi
7d9455ce 23510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23511$as_echo "$gcc_cv_math_func_truncl" >&6; }
23512 if test $gcc_cv_math_func_truncl = yes; then
bd647a17 23513
6affa8e1 23514cat >>confdefs.h <<_ACEOF
23515#define HAVE_TRUNCL 1
23516_ACEOF
7d9455ce 23517
23518 fi
d213114b 23519
d213114b 23520
d213114b 23521
7d9455ce 23522
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23524$as_echo_n "checking for erff... " >&6; }
f00f02a3 23525if ${gcc_cv_math_func_erff+:} false; then :
cd9a469c 23526 $as_echo_n "(cached) " >&6
d213114b 23527else
7d9455ce 23528 if test x$gcc_no_link = xyes; then
f00f02a3 23529 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23530fi
cd9a469c 23531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23532/* end confdefs.h. */
23533
7d9455ce 23534#ifdef HAVE_COMPLEX_H
23535#include <complex.h>
d213114b 23536#endif
7d9455ce 23537#ifdef HAVE_MATH_H
23538#include <math.h>
23539#endif
23540
23541int (*ptr)() = (int (*)())erff;
23542
d213114b 23543int
23544main ()
23545{
d213114b 23546 return 0;
23547}
7d9455ce 23548
d213114b 23549_ACEOF
cd9a469c 23550if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23551 gcc_cv_math_func_erff=yes
d213114b 23552else
7d9455ce 23553 gcc_cv_math_func_erff=no
d213114b 23554fi
cd9a469c 23555rm -f core conftest.err conftest.$ac_objext \
23556 conftest$ac_exeext conftest.$ac_ext
d213114b 23557fi
7d9455ce 23558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23559$as_echo "$gcc_cv_math_func_erff" >&6; }
23560 if test $gcc_cv_math_func_erff = yes; then
bd647a17 23561
6affa8e1 23562cat >>confdefs.h <<_ACEOF
23563#define HAVE_ERFF 1
23564_ACEOF
7d9455ce 23565
23566 fi
23567
d213114b 23568
d213114b 23569
d213114b 23570
7d9455ce 23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23572$as_echo_n "checking for erf... " >&6; }
f00f02a3 23573if ${gcc_cv_math_func_erf+:} false; then :
cd9a469c 23574 $as_echo_n "(cached) " >&6
d213114b 23575else
7d9455ce 23576 if test x$gcc_no_link = xyes; then
f00f02a3 23577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23578fi
cd9a469c 23579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23580/* end confdefs.h. */
23581
7d9455ce 23582#ifdef HAVE_COMPLEX_H
23583#include <complex.h>
23584#endif
23585#ifdef HAVE_MATH_H
23586#include <math.h>
d213114b 23587#endif
7d9455ce 23588
23589int (*ptr)() = (int (*)())erf;
23590
d213114b 23591int
23592main ()
23593{
d213114b 23594 return 0;
23595}
7d9455ce 23596
d213114b 23597_ACEOF
cd9a469c 23598if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23599 gcc_cv_math_func_erf=yes
d213114b 23600else
7d9455ce 23601 gcc_cv_math_func_erf=no
d213114b 23602fi
cd9a469c 23603rm -f core conftest.err conftest.$ac_objext \
23604 conftest$ac_exeext conftest.$ac_ext
d213114b 23605fi
7d9455ce 23606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23607$as_echo "$gcc_cv_math_func_erf" >&6; }
23608 if test $gcc_cv_math_func_erf = yes; then
bd647a17 23609
6affa8e1 23610cat >>confdefs.h <<_ACEOF
23611#define HAVE_ERF 1
23612_ACEOF
7d9455ce 23613
23614 fi
d213114b 23615
d213114b 23616
d213114b 23617
7d9455ce 23618
7d9455ce 23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23620$as_echo_n "checking for erfcf... " >&6; }
f00f02a3 23621if ${gcc_cv_math_func_erfcf+:} false; then :
cd9a469c 23622 $as_echo_n "(cached) " >&6
d213114b 23623else
7d9455ce 23624 if test x$gcc_no_link = xyes; then
f00f02a3 23625 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23626fi
cd9a469c 23627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23628/* end confdefs.h. */
23629
7d9455ce 23630#ifdef HAVE_COMPLEX_H
23631#include <complex.h>
23632#endif
23633#ifdef HAVE_MATH_H
23634#include <math.h>
d213114b 23635#endif
7d9455ce 23636
23637int (*ptr)() = (int (*)())erfcf;
23638
d213114b 23639int
23640main ()
23641{
d213114b 23642 return 0;
23643}
7d9455ce 23644
d213114b 23645_ACEOF
cd9a469c 23646if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23647 gcc_cv_math_func_erfcf=yes
d213114b 23648else
7d9455ce 23649 gcc_cv_math_func_erfcf=no
d213114b 23650fi
cd9a469c 23651rm -f core conftest.err conftest.$ac_objext \
23652 conftest$ac_exeext conftest.$ac_ext
d213114b 23653fi
7d9455ce 23654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23655$as_echo "$gcc_cv_math_func_erfcf" >&6; }
23656 if test $gcc_cv_math_func_erfcf = yes; then
bd647a17 23657
6affa8e1 23658cat >>confdefs.h <<_ACEOF
23659#define HAVE_ERFCF 1
23660_ACEOF
7d9455ce 23661
23662 fi
d213114b 23663
d213114b 23664
d213114b 23665
7d9455ce 23666
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23668$as_echo_n "checking for erfc... " >&6; }
f00f02a3 23669if ${gcc_cv_math_func_erfc+:} false; then :
cd9a469c 23670 $as_echo_n "(cached) " >&6
d213114b 23671else
7d9455ce 23672 if test x$gcc_no_link = xyes; then
f00f02a3 23673 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23674fi
cd9a469c 23675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23676/* end confdefs.h. */
23677
7d9455ce 23678#ifdef HAVE_COMPLEX_H
23679#include <complex.h>
d213114b 23680#endif
7d9455ce 23681#ifdef HAVE_MATH_H
23682#include <math.h>
23683#endif
23684
23685int (*ptr)() = (int (*)())erfc;
23686
50f0ca0a 23687int
23688main ()
23689{
50f0ca0a 23690 return 0;
23691}
7d9455ce 23692
50f0ca0a 23693_ACEOF
cd9a469c 23694if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23695 gcc_cv_math_func_erfc=yes
50f0ca0a 23696else
7d9455ce 23697 gcc_cv_math_func_erfc=no
50f0ca0a 23698fi
cd9a469c 23699rm -f core conftest.err conftest.$ac_objext \
23700 conftest$ac_exeext conftest.$ac_ext
50f0ca0a 23701fi
7d9455ce 23702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23703$as_echo "$gcc_cv_math_func_erfc" >&6; }
23704 if test $gcc_cv_math_func_erfc = yes; then
bd647a17 23705
6affa8e1 23706cat >>confdefs.h <<_ACEOF
23707#define HAVE_ERFC 1
23708_ACEOF
7d9455ce 23709
23710 fi
23711
50f0ca0a 23712
50f0ca0a 23713
50f0ca0a 23714
7d9455ce 23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23716$as_echo_n "checking for erfcl... " >&6; }
f00f02a3 23717if ${gcc_cv_math_func_erfcl+:} false; then :
cd9a469c 23718 $as_echo_n "(cached) " >&6
158e0e64 23719else
7d9455ce 23720 if test x$gcc_no_link = xyes; then
f00f02a3 23721 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23722fi
cd9a469c 23723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23724/* end confdefs.h. */
23725
7d9455ce 23726#ifdef HAVE_COMPLEX_H
23727#include <complex.h>
23728#endif
23729#ifdef HAVE_MATH_H
23730#include <math.h>
158e0e64 23731#endif
7d9455ce 23732
23733int (*ptr)() = (int (*)())erfcl;
23734
158e0e64 23735int
23736main ()
23737{
158e0e64 23738 return 0;
23739}
7d9455ce 23740
158e0e64 23741_ACEOF
cd9a469c 23742if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23743 gcc_cv_math_func_erfcl=yes
158e0e64 23744else
7d9455ce 23745 gcc_cv_math_func_erfcl=no
158e0e64 23746fi
cd9a469c 23747rm -f core conftest.err conftest.$ac_objext \
23748 conftest$ac_exeext conftest.$ac_ext
158e0e64 23749fi
7d9455ce 23750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23751$as_echo "$gcc_cv_math_func_erfcl" >&6; }
23752 if test $gcc_cv_math_func_erfcl = yes; then
bd647a17 23753
6affa8e1 23754cat >>confdefs.h <<_ACEOF
23755#define HAVE_ERFCL 1
23756_ACEOF
7d9455ce 23757
23758 fi
158e0e64 23759
158e0e64 23760
158e0e64 23761
7d9455ce 23762
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23764$as_echo_n "checking for j0f... " >&6; }
f00f02a3 23765if ${gcc_cv_math_func_j0f+:} false; then :
cd9a469c 23766 $as_echo_n "(cached) " >&6
158e0e64 23767else
7d9455ce 23768 if test x$gcc_no_link = xyes; then
f00f02a3 23769 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23770fi
cd9a469c 23771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23772/* end confdefs.h. */
23773
7d9455ce 23774#ifdef HAVE_COMPLEX_H
23775#include <complex.h>
158e0e64 23776#endif
7d9455ce 23777#ifdef HAVE_MATH_H
23778#include <math.h>
23779#endif
23780
23781int (*ptr)() = (int (*)())j0f;
23782
158e0e64 23783int
23784main ()
23785{
158e0e64 23786 return 0;
23787}
7d9455ce 23788
158e0e64 23789_ACEOF
cd9a469c 23790if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23791 gcc_cv_math_func_j0f=yes
158e0e64 23792else
7d9455ce 23793 gcc_cv_math_func_j0f=no
d213114b 23794fi
cd9a469c 23795rm -f core conftest.err conftest.$ac_objext \
23796 conftest$ac_exeext conftest.$ac_ext
d213114b 23797fi
7d9455ce 23798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23799$as_echo "$gcc_cv_math_func_j0f" >&6; }
23800 if test $gcc_cv_math_func_j0f = yes; then
bd647a17 23801
6affa8e1 23802cat >>confdefs.h <<_ACEOF
23803#define HAVE_J0F 1
23804_ACEOF
d213114b 23805
7d9455ce 23806 fi
d213114b 23807
d213114b 23808
7d9455ce 23809
23810
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23812$as_echo_n "checking for j0... " >&6; }
f00f02a3 23813if ${gcc_cv_math_func_j0+:} false; then :
cd9a469c 23814 $as_echo_n "(cached) " >&6
d213114b 23815else
7d9455ce 23816 if test x$gcc_no_link = xyes; then
f00f02a3 23817 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23818fi
cd9a469c 23819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23820/* end confdefs.h. */
23821
7d9455ce 23822#ifdef HAVE_COMPLEX_H
23823#include <complex.h>
23824#endif
23825#ifdef HAVE_MATH_H
23826#include <math.h>
d213114b 23827#endif
7d9455ce 23828
23829int (*ptr)() = (int (*)())j0;
23830
d213114b 23831int
23832main ()
23833{
d213114b 23834 return 0;
23835}
7d9455ce 23836
d213114b 23837_ACEOF
cd9a469c 23838if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23839 gcc_cv_math_func_j0=yes
d213114b 23840else
7d9455ce 23841 gcc_cv_math_func_j0=no
d213114b 23842fi
cd9a469c 23843rm -f core conftest.err conftest.$ac_objext \
23844 conftest$ac_exeext conftest.$ac_ext
d213114b 23845fi
7d9455ce 23846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23847$as_echo "$gcc_cv_math_func_j0" >&6; }
23848 if test $gcc_cv_math_func_j0 = yes; then
bd647a17 23849
6affa8e1 23850cat >>confdefs.h <<_ACEOF
23851#define HAVE_J0 1
23852_ACEOF
7d9455ce 23853
23854 fi
d213114b 23855
d213114b 23856
d213114b 23857
7d9455ce 23858
7d9455ce 23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23860$as_echo_n "checking for j1f... " >&6; }
f00f02a3 23861if ${gcc_cv_math_func_j1f+:} false; then :
cd9a469c 23862 $as_echo_n "(cached) " >&6
d213114b 23863else
7d9455ce 23864 if test x$gcc_no_link = xyes; then
f00f02a3 23865 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d213114b 23866fi
cd9a469c 23867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d213114b 23868/* end confdefs.h. */
23869
7d9455ce 23870#ifdef HAVE_COMPLEX_H
23871#include <complex.h>
23872#endif
23873#ifdef HAVE_MATH_H
23874#include <math.h>
d213114b 23875#endif
7d9455ce 23876
23877int (*ptr)() = (int (*)())j1f;
23878
d213114b 23879int
23880main ()
23881{
d213114b 23882 return 0;
23883}
7d9455ce 23884
d213114b 23885_ACEOF
cd9a469c 23886if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23887 gcc_cv_math_func_j1f=yes
d213114b 23888else
7d9455ce 23889 gcc_cv_math_func_j1f=no
158e0e64 23890fi
cd9a469c 23891rm -f core conftest.err conftest.$ac_objext \
23892 conftest$ac_exeext conftest.$ac_ext
158e0e64 23893fi
7d9455ce 23894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23895$as_echo "$gcc_cv_math_func_j1f" >&6; }
23896 if test $gcc_cv_math_func_j1f = yes; then
bd647a17 23897
6affa8e1 23898cat >>confdefs.h <<_ACEOF
23899#define HAVE_J1F 1
23900_ACEOF
7d9455ce 23901
23902 fi
158e0e64 23903
158e0e64 23904
158e0e64 23905
7d9455ce 23906
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23908$as_echo_n "checking for j1... " >&6; }
f00f02a3 23909if ${gcc_cv_math_func_j1+:} false; then :
cd9a469c 23910 $as_echo_n "(cached) " >&6
158e0e64 23911else
7d9455ce 23912 if test x$gcc_no_link = xyes; then
f00f02a3 23913 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23914fi
cd9a469c 23915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23916/* end confdefs.h. */
23917
7d9455ce 23918#ifdef HAVE_COMPLEX_H
23919#include <complex.h>
158e0e64 23920#endif
7d9455ce 23921#ifdef HAVE_MATH_H
23922#include <math.h>
23923#endif
23924
23925int (*ptr)() = (int (*)())j1;
23926
158e0e64 23927int
23928main ()
23929{
158e0e64 23930 return 0;
23931}
7d9455ce 23932
158e0e64 23933_ACEOF
cd9a469c 23934if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23935 gcc_cv_math_func_j1=yes
158e0e64 23936else
7d9455ce 23937 gcc_cv_math_func_j1=no
158e0e64 23938fi
cd9a469c 23939rm -f core conftest.err conftest.$ac_objext \
23940 conftest$ac_exeext conftest.$ac_ext
158e0e64 23941fi
7d9455ce 23942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23943$as_echo "$gcc_cv_math_func_j1" >&6; }
23944 if test $gcc_cv_math_func_j1 = yes; then
bd647a17 23945
6affa8e1 23946cat >>confdefs.h <<_ACEOF
23947#define HAVE_J1 1
23948_ACEOF
158e0e64 23949
7d9455ce 23950 fi
158e0e64 23951
158e0e64 23952
7d9455ce 23953
23954
7d9455ce 23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23956$as_echo_n "checking for jnf... " >&6; }
f00f02a3 23957if ${gcc_cv_math_func_jnf+:} false; then :
cd9a469c 23958 $as_echo_n "(cached) " >&6
158e0e64 23959else
7d9455ce 23960 if test x$gcc_no_link = xyes; then
f00f02a3 23961 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 23962fi
cd9a469c 23963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 23964/* end confdefs.h. */
23965
7d9455ce 23966#ifdef HAVE_COMPLEX_H
23967#include <complex.h>
158e0e64 23968#endif
7d9455ce 23969#ifdef HAVE_MATH_H
23970#include <math.h>
23971#endif
23972
23973int (*ptr)() = (int (*)())jnf;
23974
158e0e64 23975int
23976main ()
23977{
158e0e64 23978 return 0;
23979}
7d9455ce 23980
158e0e64 23981_ACEOF
cd9a469c 23982if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 23983 gcc_cv_math_func_jnf=yes
158e0e64 23984else
7d9455ce 23985 gcc_cv_math_func_jnf=no
158e0e64 23986fi
cd9a469c 23987rm -f core conftest.err conftest.$ac_objext \
23988 conftest$ac_exeext conftest.$ac_ext
158e0e64 23989fi
7d9455ce 23990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23991$as_echo "$gcc_cv_math_func_jnf" >&6; }
23992 if test $gcc_cv_math_func_jnf = yes; then
bd647a17 23993
6affa8e1 23994cat >>confdefs.h <<_ACEOF
23995#define HAVE_JNF 1
23996_ACEOF
7d9455ce 23997
23998 fi
23999
158e0e64 24000
158e0e64 24001
158e0e64 24002
7d9455ce 24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24004$as_echo_n "checking for jn... " >&6; }
f00f02a3 24005if ${gcc_cv_math_func_jn+:} false; then :
cd9a469c 24006 $as_echo_n "(cached) " >&6
158e0e64 24007else
7d9455ce 24008 if test x$gcc_no_link = xyes; then
f00f02a3 24009 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24010fi
cd9a469c 24011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24012/* end confdefs.h. */
24013
7d9455ce 24014#ifdef HAVE_COMPLEX_H
24015#include <complex.h>
24016#endif
24017#ifdef HAVE_MATH_H
24018#include <math.h>
158e0e64 24019#endif
7d9455ce 24020
24021int (*ptr)() = (int (*)())jn;
24022
158e0e64 24023int
24024main ()
24025{
158e0e64 24026 return 0;
24027}
7d9455ce 24028
158e0e64 24029_ACEOF
cd9a469c 24030if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24031 gcc_cv_math_func_jn=yes
158e0e64 24032else
7d9455ce 24033 gcc_cv_math_func_jn=no
158e0e64 24034fi
cd9a469c 24035rm -f core conftest.err conftest.$ac_objext \
24036 conftest$ac_exeext conftest.$ac_ext
158e0e64 24037fi
7d9455ce 24038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24039$as_echo "$gcc_cv_math_func_jn" >&6; }
24040 if test $gcc_cv_math_func_jn = yes; then
bd647a17 24041
6affa8e1 24042cat >>confdefs.h <<_ACEOF
24043#define HAVE_JN 1
24044_ACEOF
7d9455ce 24045
24046 fi
158e0e64 24047
158e0e64 24048
158e0e64 24049
7d9455ce 24050
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24052$as_echo_n "checking for jnl... " >&6; }
f00f02a3 24053if ${gcc_cv_math_func_jnl+:} false; then :
cd9a469c 24054 $as_echo_n "(cached) " >&6
158e0e64 24055else
7d9455ce 24056 if test x$gcc_no_link = xyes; then
f00f02a3 24057 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24058fi
cd9a469c 24059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24060/* end confdefs.h. */
24061
7d9455ce 24062#ifdef HAVE_COMPLEX_H
24063#include <complex.h>
158e0e64 24064#endif
7d9455ce 24065#ifdef HAVE_MATH_H
24066#include <math.h>
24067#endif
24068
24069int (*ptr)() = (int (*)())jnl;
24070
158e0e64 24071int
24072main ()
24073{
158e0e64 24074 return 0;
24075}
7d9455ce 24076
158e0e64 24077_ACEOF
cd9a469c 24078if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24079 gcc_cv_math_func_jnl=yes
158e0e64 24080else
7d9455ce 24081 gcc_cv_math_func_jnl=no
158e0e64 24082fi
cd9a469c 24083rm -f core conftest.err conftest.$ac_objext \
24084 conftest$ac_exeext conftest.$ac_ext
158e0e64 24085fi
7d9455ce 24086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24087$as_echo "$gcc_cv_math_func_jnl" >&6; }
24088 if test $gcc_cv_math_func_jnl = yes; then
bd647a17 24089
6affa8e1 24090cat >>confdefs.h <<_ACEOF
24091#define HAVE_JNL 1
24092_ACEOF
158e0e64 24093
7d9455ce 24094 fi
158e0e64 24095
158e0e64 24096
7d9455ce 24097
24098
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24100$as_echo_n "checking for y0f... " >&6; }
f00f02a3 24101if ${gcc_cv_math_func_y0f+:} false; then :
cd9a469c 24102 $as_echo_n "(cached) " >&6
158e0e64 24103else
7d9455ce 24104 if test x$gcc_no_link = xyes; then
f00f02a3 24105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24106fi
cd9a469c 24107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24108/* end confdefs.h. */
24109
7d9455ce 24110#ifdef HAVE_COMPLEX_H
24111#include <complex.h>
24112#endif
24113#ifdef HAVE_MATH_H
24114#include <math.h>
158e0e64 24115#endif
7d9455ce 24116
24117int (*ptr)() = (int (*)())y0f;
24118
158e0e64 24119int
24120main ()
24121{
158e0e64 24122 return 0;
24123}
7d9455ce 24124
158e0e64 24125_ACEOF
cd9a469c 24126if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24127 gcc_cv_math_func_y0f=yes
158e0e64 24128else
7d9455ce 24129 gcc_cv_math_func_y0f=no
158e0e64 24130fi
cd9a469c 24131rm -f core conftest.err conftest.$ac_objext \
24132 conftest$ac_exeext conftest.$ac_ext
158e0e64 24133fi
7d9455ce 24134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24135$as_echo "$gcc_cv_math_func_y0f" >&6; }
24136 if test $gcc_cv_math_func_y0f = yes; then
bd647a17 24137
6affa8e1 24138cat >>confdefs.h <<_ACEOF
24139#define HAVE_Y0F 1
24140_ACEOF
7d9455ce 24141
24142 fi
158e0e64 24143
158e0e64 24144
158e0e64 24145
7d9455ce 24146
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24148$as_echo_n "checking for y0... " >&6; }
f00f02a3 24149if ${gcc_cv_math_func_y0+:} false; then :
cd9a469c 24150 $as_echo_n "(cached) " >&6
158e0e64 24151else
7d9455ce 24152 if test x$gcc_no_link = xyes; then
f00f02a3 24153 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24154fi
cd9a469c 24155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24156/* end confdefs.h. */
24157
7d9455ce 24158#ifdef HAVE_COMPLEX_H
24159#include <complex.h>
158e0e64 24160#endif
7d9455ce 24161#ifdef HAVE_MATH_H
24162#include <math.h>
24163#endif
24164
24165int (*ptr)() = (int (*)())y0;
24166
158e0e64 24167int
24168main ()
24169{
158e0e64 24170 return 0;
24171}
7d9455ce 24172
158e0e64 24173_ACEOF
cd9a469c 24174if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24175 gcc_cv_math_func_y0=yes
158e0e64 24176else
7d9455ce 24177 gcc_cv_math_func_y0=no
158e0e64 24178fi
cd9a469c 24179rm -f core conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
158e0e64 24181fi
7d9455ce 24182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24183$as_echo "$gcc_cv_math_func_y0" >&6; }
24184 if test $gcc_cv_math_func_y0 = yes; then
bd647a17 24185
6affa8e1 24186cat >>confdefs.h <<_ACEOF
24187#define HAVE_Y0 1
24188_ACEOF
7d9455ce 24189
24190 fi
24191
158e0e64 24192
158e0e64 24193
158e0e64 24194
7d9455ce 24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24196$as_echo_n "checking for y1f... " >&6; }
f00f02a3 24197if ${gcc_cv_math_func_y1f+:} false; then :
cd9a469c 24198 $as_echo_n "(cached) " >&6
158e0e64 24199else
7d9455ce 24200 if test x$gcc_no_link = xyes; then
f00f02a3 24201 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24202fi
cd9a469c 24203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24204/* end confdefs.h. */
24205
7d9455ce 24206#ifdef HAVE_COMPLEX_H
24207#include <complex.h>
158e0e64 24208#endif
7d9455ce 24209#ifdef HAVE_MATH_H
24210#include <math.h>
24211#endif
24212
24213int (*ptr)() = (int (*)())y1f;
24214
158e0e64 24215int
24216main ()
24217{
158e0e64 24218 return 0;
24219}
7d9455ce 24220
158e0e64 24221_ACEOF
cd9a469c 24222if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24223 gcc_cv_math_func_y1f=yes
158e0e64 24224else
7d9455ce 24225 gcc_cv_math_func_y1f=no
158e0e64 24226fi
cd9a469c 24227rm -f core conftest.err conftest.$ac_objext \
24228 conftest$ac_exeext conftest.$ac_ext
158e0e64 24229fi
7d9455ce 24230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24231$as_echo "$gcc_cv_math_func_y1f" >&6; }
24232 if test $gcc_cv_math_func_y1f = yes; then
bd647a17 24233
6affa8e1 24234cat >>confdefs.h <<_ACEOF
24235#define HAVE_Y1F 1
24236_ACEOF
158e0e64 24237
7d9455ce 24238 fi
158e0e64 24239
158e0e64 24240
7d9455ce 24241
24242
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24244$as_echo_n "checking for y1... " >&6; }
f00f02a3 24245if ${gcc_cv_math_func_y1+:} false; then :
cd9a469c 24246 $as_echo_n "(cached) " >&6
158e0e64 24247else
7d9455ce 24248 if test x$gcc_no_link = xyes; then
f00f02a3 24249 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24250fi
cd9a469c 24251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24252/* end confdefs.h. */
24253
7d9455ce 24254#ifdef HAVE_COMPLEX_H
24255#include <complex.h>
24256#endif
24257#ifdef HAVE_MATH_H
24258#include <math.h>
158e0e64 24259#endif
7d9455ce 24260
24261int (*ptr)() = (int (*)())y1;
24262
158e0e64 24263int
24264main ()
24265{
158e0e64 24266 return 0;
24267}
7d9455ce 24268
158e0e64 24269_ACEOF
cd9a469c 24270if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24271 gcc_cv_math_func_y1=yes
158e0e64 24272else
7d9455ce 24273 gcc_cv_math_func_y1=no
158e0e64 24274fi
cd9a469c 24275rm -f core conftest.err conftest.$ac_objext \
24276 conftest$ac_exeext conftest.$ac_ext
158e0e64 24277fi
7d9455ce 24278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24279$as_echo "$gcc_cv_math_func_y1" >&6; }
24280 if test $gcc_cv_math_func_y1 = yes; then
bd647a17 24281
6affa8e1 24282cat >>confdefs.h <<_ACEOF
24283#define HAVE_Y1 1
24284_ACEOF
7d9455ce 24285
24286 fi
158e0e64 24287
158e0e64 24288
158e0e64 24289
7d9455ce 24290
7d9455ce 24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24292$as_echo_n "checking for ynf... " >&6; }
f00f02a3 24293if ${gcc_cv_math_func_ynf+:} false; then :
cd9a469c 24294 $as_echo_n "(cached) " >&6
7d9455ce 24295else
24296 if test x$gcc_no_link = xyes; then
f00f02a3 24297 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24298fi
cd9a469c 24299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24300/* end confdefs.h. */
24301
7d9455ce 24302#ifdef HAVE_COMPLEX_H
24303#include <complex.h>
24304#endif
24305#ifdef HAVE_MATH_H
24306#include <math.h>
158e0e64 24307#endif
7d9455ce 24308
24309int (*ptr)() = (int (*)())ynf;
24310
158e0e64 24311int
24312main ()
24313{
158e0e64 24314 return 0;
24315}
7d9455ce 24316
158e0e64 24317_ACEOF
cd9a469c 24318if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24319 gcc_cv_math_func_ynf=yes
158e0e64 24320else
7d9455ce 24321 gcc_cv_math_func_ynf=no
158e0e64 24322fi
cd9a469c 24323rm -f core conftest.err conftest.$ac_objext \
24324 conftest$ac_exeext conftest.$ac_ext
158e0e64 24325fi
7d9455ce 24326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24327$as_echo "$gcc_cv_math_func_ynf" >&6; }
24328 if test $gcc_cv_math_func_ynf = yes; then
bd647a17 24329
6affa8e1 24330cat >>confdefs.h <<_ACEOF
24331#define HAVE_YNF 1
24332_ACEOF
7d9455ce 24333
24334 fi
158e0e64 24335
158e0e64 24336
158e0e64 24337
7d9455ce 24338
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24340$as_echo_n "checking for yn... " >&6; }
f00f02a3 24341if ${gcc_cv_math_func_yn+:} false; then :
cd9a469c 24342 $as_echo_n "(cached) " >&6
158e0e64 24343else
7d9455ce 24344 if test x$gcc_no_link = xyes; then
f00f02a3 24345 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24346fi
cd9a469c 24347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24348/* end confdefs.h. */
24349
7d9455ce 24350#ifdef HAVE_COMPLEX_H
24351#include <complex.h>
158e0e64 24352#endif
7d9455ce 24353#ifdef HAVE_MATH_H
24354#include <math.h>
24355#endif
24356
24357int (*ptr)() = (int (*)())yn;
24358
158e0e64 24359int
24360main ()
24361{
158e0e64 24362 return 0;
24363}
7d9455ce 24364
158e0e64 24365_ACEOF
cd9a469c 24366if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24367 gcc_cv_math_func_yn=yes
158e0e64 24368else
7d9455ce 24369 gcc_cv_math_func_yn=no
158e0e64 24370fi
cd9a469c 24371rm -f core conftest.err conftest.$ac_objext \
24372 conftest$ac_exeext conftest.$ac_ext
158e0e64 24373fi
7d9455ce 24374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24375$as_echo "$gcc_cv_math_func_yn" >&6; }
24376 if test $gcc_cv_math_func_yn = yes; then
bd647a17 24377
6affa8e1 24378cat >>confdefs.h <<_ACEOF
24379#define HAVE_YN 1
24380_ACEOF
7d9455ce 24381
24382 fi
24383
158e0e64 24384
158e0e64 24385
158e0e64 24386
7d9455ce 24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24388$as_echo_n "checking for ynl... " >&6; }
f00f02a3 24389if ${gcc_cv_math_func_ynl+:} false; then :
cd9a469c 24390 $as_echo_n "(cached) " >&6
158e0e64 24391else
7d9455ce 24392 if test x$gcc_no_link = xyes; then
f00f02a3 24393 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 24394fi
cd9a469c 24395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
158e0e64 24396/* end confdefs.h. */
24397
7d9455ce 24398#ifdef HAVE_COMPLEX_H
24399#include <complex.h>
24400#endif
24401#ifdef HAVE_MATH_H
24402#include <math.h>
158e0e64 24403#endif
7d9455ce 24404
24405int (*ptr)() = (int (*)())ynl;
24406
158e0e64 24407int
24408main ()
24409{
158e0e64 24410 return 0;
24411}
7d9455ce 24412
158e0e64 24413_ACEOF
cd9a469c 24414if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24415 gcc_cv_math_func_ynl=yes
158e0e64 24416else
7d9455ce 24417 gcc_cv_math_func_ynl=no
158e0e64 24418fi
cd9a469c 24419rm -f core conftest.err conftest.$ac_objext \
24420 conftest$ac_exeext conftest.$ac_ext
158e0e64 24421fi
7d9455ce 24422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24423$as_echo "$gcc_cv_math_func_ynl" >&6; }
24424 if test $gcc_cv_math_func_ynl = yes; then
bd647a17 24425
6affa8e1 24426cat >>confdefs.h <<_ACEOF
24427#define HAVE_YNL 1
24428_ACEOF
7d9455ce 24429
24430 fi
158e0e64 24431
158e0e64 24432
158e0e64 24433
7d9455ce 24434
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24436$as_echo_n "checking for tgamma... " >&6; }
f00f02a3 24437if ${gcc_cv_math_func_tgamma+:} false; then :
cd9a469c 24438 $as_echo_n "(cached) " >&6
6d516d29 24439else
7d9455ce 24440 if test x$gcc_no_link = xyes; then
f00f02a3 24441 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24442fi
cd9a469c 24443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24444/* end confdefs.h. */
24445
7d9455ce 24446#ifdef HAVE_COMPLEX_H
24447#include <complex.h>
6d516d29 24448#endif
7d9455ce 24449#ifdef HAVE_MATH_H
24450#include <math.h>
24451#endif
24452
24453int (*ptr)() = (int (*)())tgamma;
24454
6d516d29 24455int
24456main ()
24457{
6d516d29 24458 return 0;
24459}
7d9455ce 24460
6d516d29 24461_ACEOF
cd9a469c 24462if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24463 gcc_cv_math_func_tgamma=yes
6d516d29 24464else
7d9455ce 24465 gcc_cv_math_func_tgamma=no
6d516d29 24466fi
cd9a469c 24467rm -f core conftest.err conftest.$ac_objext \
24468 conftest$ac_exeext conftest.$ac_ext
6d516d29 24469fi
7d9455ce 24470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24471$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24472 if test $gcc_cv_math_func_tgamma = yes; then
bd647a17 24473
6affa8e1 24474cat >>confdefs.h <<_ACEOF
24475#define HAVE_TGAMMA 1
24476_ACEOF
6d516d29 24477
7d9455ce 24478 fi
6d516d29 24479
6d516d29 24480
7d9455ce 24481
24482
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24484$as_echo_n "checking for tgammaf... " >&6; }
f00f02a3 24485if ${gcc_cv_math_func_tgammaf+:} false; then :
cd9a469c 24486 $as_echo_n "(cached) " >&6
6d516d29 24487else
7d9455ce 24488 if test x$gcc_no_link = xyes; then
f00f02a3 24489 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24490fi
cd9a469c 24491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24492/* end confdefs.h. */
24493
7d9455ce 24494#ifdef HAVE_COMPLEX_H
24495#include <complex.h>
24496#endif
24497#ifdef HAVE_MATH_H
24498#include <math.h>
6d516d29 24499#endif
7d9455ce 24500
24501int (*ptr)() = (int (*)())tgammaf;
24502
6d516d29 24503int
24504main ()
24505{
6d516d29 24506 return 0;
24507}
7d9455ce 24508
6d516d29 24509_ACEOF
cd9a469c 24510if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24511 gcc_cv_math_func_tgammaf=yes
6d516d29 24512else
7d9455ce 24513 gcc_cv_math_func_tgammaf=no
6d516d29 24514fi
cd9a469c 24515rm -f core conftest.err conftest.$ac_objext \
24516 conftest$ac_exeext conftest.$ac_ext
6d516d29 24517fi
7d9455ce 24518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24519$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24520 if test $gcc_cv_math_func_tgammaf = yes; then
bd647a17 24521
6affa8e1 24522cat >>confdefs.h <<_ACEOF
24523#define HAVE_TGAMMAF 1
24524_ACEOF
7d9455ce 24525
24526 fi
6d516d29 24527
6d516d29 24528
6d516d29 24529
7d9455ce 24530
7d9455ce 24531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24532$as_echo_n "checking for lgamma... " >&6; }
f00f02a3 24533if ${gcc_cv_math_func_lgamma+:} false; then :
cd9a469c 24534 $as_echo_n "(cached) " >&6
6d516d29 24535else
7d9455ce 24536 if test x$gcc_no_link = xyes; then
f00f02a3 24537 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24538fi
cd9a469c 24539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24540/* end confdefs.h. */
24541
7d9455ce 24542#ifdef HAVE_COMPLEX_H
24543#include <complex.h>
24544#endif
24545#ifdef HAVE_MATH_H
24546#include <math.h>
6d516d29 24547#endif
7d9455ce 24548
24549int (*ptr)() = (int (*)())lgamma;
24550
6d516d29 24551int
24552main ()
24553{
6d516d29 24554 return 0;
24555}
7d9455ce 24556
6d516d29 24557_ACEOF
cd9a469c 24558if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24559 gcc_cv_math_func_lgamma=yes
6d516d29 24560else
7d9455ce 24561 gcc_cv_math_func_lgamma=no
6d516d29 24562fi
cd9a469c 24563rm -f core conftest.err conftest.$ac_objext \
24564 conftest$ac_exeext conftest.$ac_ext
6d516d29 24565fi
7d9455ce 24566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24567$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24568 if test $gcc_cv_math_func_lgamma = yes; then
bd647a17 24569
6affa8e1 24570cat >>confdefs.h <<_ACEOF
24571#define HAVE_LGAMMA 1
24572_ACEOF
7d9455ce 24573
24574 fi
6d516d29 24575
6d516d29 24576
6d516d29 24577
7d9455ce 24578
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24580$as_echo_n "checking for lgammaf... " >&6; }
f00f02a3 24581if ${gcc_cv_math_func_lgammaf+:} false; then :
cd9a469c 24582 $as_echo_n "(cached) " >&6
6d516d29 24583else
7d9455ce 24584 if test x$gcc_no_link = xyes; then
f00f02a3 24585 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6d516d29 24586fi
cd9a469c 24587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d516d29 24588/* end confdefs.h. */
24589
7d9455ce 24590#ifdef HAVE_COMPLEX_H
24591#include <complex.h>
6d516d29 24592#endif
7d9455ce 24593#ifdef HAVE_MATH_H
24594#include <math.h>
24595#endif
24596
24597int (*ptr)() = (int (*)())lgammaf;
24598
6d516d29 24599int
24600main ()
24601{
6d516d29 24602 return 0;
24603}
7d9455ce 24604
6d516d29 24605_ACEOF
cd9a469c 24606if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24607 gcc_cv_math_func_lgammaf=yes
6d516d29 24608else
7d9455ce 24609 gcc_cv_math_func_lgammaf=no
6d516d29 24610fi
cd9a469c 24611rm -f core conftest.err conftest.$ac_objext \
24612 conftest$ac_exeext conftest.$ac_ext
6d516d29 24613fi
7d9455ce 24614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24615$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24616 if test $gcc_cv_math_func_lgammaf = yes; then
bd647a17 24617
6affa8e1 24618cat >>confdefs.h <<_ACEOF
24619#define HAVE_LGAMMAF 1
24620_ACEOF
6d516d29 24621
7d9455ce 24622 fi
6d516d29 24623
6d516d29 24624
89b803c8 24625# Check for GFORTRAN_C99_1.1 funcs
7d9455ce 24626
24627
24628
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24630$as_echo_n "checking for cacos... " >&6; }
f00f02a3 24631if ${gcc_cv_math_func_cacos+:} false; then :
89b803c8 24632 $as_echo_n "(cached) " >&6
24633else
7d9455ce 24634 if test x$gcc_no_link = xyes; then
f00f02a3 24635 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24636fi
24637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24638/* end confdefs.h. */
24639
7d9455ce 24640#ifdef HAVE_COMPLEX_H
24641#include <complex.h>
89b803c8 24642#endif
7d9455ce 24643#ifdef HAVE_MATH_H
24644#include <math.h>
24645#endif
24646
24647int (*ptr)() = (int (*)())cacos;
24648
89b803c8 24649int
24650main ()
24651{
89b803c8 24652 return 0;
24653}
7d9455ce 24654
89b803c8 24655_ACEOF
24656if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24657 gcc_cv_math_func_cacos=yes
89b803c8 24658else
7d9455ce 24659 gcc_cv_math_func_cacos=no
89b803c8 24660fi
24661rm -f core conftest.err conftest.$ac_objext \
24662 conftest$ac_exeext conftest.$ac_ext
89b803c8 24663fi
7d9455ce 24664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24665$as_echo "$gcc_cv_math_func_cacos" >&6; }
24666 if test $gcc_cv_math_func_cacos = yes; then
bd647a17 24667
6affa8e1 24668cat >>confdefs.h <<_ACEOF
24669#define HAVE_CACOS 1
24670_ACEOF
89b803c8 24671
7d9455ce 24672 fi
89b803c8 24673
89b803c8 24674
7d9455ce 24675
24676
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24678$as_echo_n "checking for cacosf... " >&6; }
f00f02a3 24679if ${gcc_cv_math_func_cacosf+:} false; then :
89b803c8 24680 $as_echo_n "(cached) " >&6
24681else
7d9455ce 24682 if test x$gcc_no_link = xyes; then
f00f02a3 24683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24684fi
24685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24686/* end confdefs.h. */
24687
7d9455ce 24688#ifdef HAVE_COMPLEX_H
24689#include <complex.h>
24690#endif
24691#ifdef HAVE_MATH_H
24692#include <math.h>
89b803c8 24693#endif
7d9455ce 24694
24695int (*ptr)() = (int (*)())cacosf;
24696
89b803c8 24697int
24698main ()
24699{
89b803c8 24700 return 0;
24701}
7d9455ce 24702
89b803c8 24703_ACEOF
24704if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24705 gcc_cv_math_func_cacosf=yes
89b803c8 24706else
7d9455ce 24707 gcc_cv_math_func_cacosf=no
89b803c8 24708fi
24709rm -f core conftest.err conftest.$ac_objext \
24710 conftest$ac_exeext conftest.$ac_ext
89b803c8 24711fi
7d9455ce 24712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24713$as_echo "$gcc_cv_math_func_cacosf" >&6; }
24714 if test $gcc_cv_math_func_cacosf = yes; then
bd647a17 24715
6affa8e1 24716cat >>confdefs.h <<_ACEOF
24717#define HAVE_CACOSF 1
24718_ACEOF
7d9455ce 24719
24720 fi
89b803c8 24721
89b803c8 24722
89b803c8 24723
7d9455ce 24724
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24726$as_echo_n "checking for cacosh... " >&6; }
f00f02a3 24727if ${gcc_cv_math_func_cacosh+:} false; then :
89b803c8 24728 $as_echo_n "(cached) " >&6
24729else
7d9455ce 24730 if test x$gcc_no_link = xyes; then
f00f02a3 24731 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24732fi
24733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24734/* end confdefs.h. */
24735
7d9455ce 24736#ifdef HAVE_COMPLEX_H
24737#include <complex.h>
89b803c8 24738#endif
7d9455ce 24739#ifdef HAVE_MATH_H
24740#include <math.h>
24741#endif
24742
24743int (*ptr)() = (int (*)())cacosh;
24744
89b803c8 24745int
24746main ()
24747{
89b803c8 24748 return 0;
24749}
7d9455ce 24750
89b803c8 24751_ACEOF
24752if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24753 gcc_cv_math_func_cacosh=yes
89b803c8 24754else
7d9455ce 24755 gcc_cv_math_func_cacosh=no
89b803c8 24756fi
24757rm -f core conftest.err conftest.$ac_objext \
24758 conftest$ac_exeext conftest.$ac_ext
89b803c8 24759fi
7d9455ce 24760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24761$as_echo "$gcc_cv_math_func_cacosh" >&6; }
24762 if test $gcc_cv_math_func_cacosh = yes; then
bd647a17 24763
6affa8e1 24764cat >>confdefs.h <<_ACEOF
24765#define HAVE_CACOSH 1
24766_ACEOF
7d9455ce 24767
24768 fi
24769
89b803c8 24770
89b803c8 24771
89b803c8 24772
7d9455ce 24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24774$as_echo_n "checking for cacoshf... " >&6; }
f00f02a3 24775if ${gcc_cv_math_func_cacoshf+:} false; then :
89b803c8 24776 $as_echo_n "(cached) " >&6
24777else
7d9455ce 24778 if test x$gcc_no_link = xyes; then
f00f02a3 24779 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24780fi
24781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24782/* end confdefs.h. */
24783
7d9455ce 24784#ifdef HAVE_COMPLEX_H
24785#include <complex.h>
24786#endif
24787#ifdef HAVE_MATH_H
24788#include <math.h>
89b803c8 24789#endif
7d9455ce 24790
24791int (*ptr)() = (int (*)())cacoshf;
24792
89b803c8 24793int
24794main ()
24795{
89b803c8 24796 return 0;
24797}
7d9455ce 24798
89b803c8 24799_ACEOF
24800if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24801 gcc_cv_math_func_cacoshf=yes
89b803c8 24802else
7d9455ce 24803 gcc_cv_math_func_cacoshf=no
89b803c8 24804fi
24805rm -f core conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
89b803c8 24807fi
7d9455ce 24808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24809$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24810 if test $gcc_cv_math_func_cacoshf = yes; then
bd647a17 24811
6affa8e1 24812cat >>confdefs.h <<_ACEOF
24813#define HAVE_CACOSHF 1
24814_ACEOF
7d9455ce 24815
24816 fi
89b803c8 24817
89b803c8 24818
89b803c8 24819
7d9455ce 24820
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24822$as_echo_n "checking for cacoshl... " >&6; }
f00f02a3 24823if ${gcc_cv_math_func_cacoshl+:} false; then :
89b803c8 24824 $as_echo_n "(cached) " >&6
24825else
7d9455ce 24826 if test x$gcc_no_link = xyes; then
f00f02a3 24827 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24828fi
24829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24830/* end confdefs.h. */
24831
7d9455ce 24832#ifdef HAVE_COMPLEX_H
24833#include <complex.h>
89b803c8 24834#endif
7d9455ce 24835#ifdef HAVE_MATH_H
24836#include <math.h>
24837#endif
24838
24839int (*ptr)() = (int (*)())cacoshl;
24840
89b803c8 24841int
24842main ()
24843{
89b803c8 24844 return 0;
24845}
7d9455ce 24846
89b803c8 24847_ACEOF
24848if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24849 gcc_cv_math_func_cacoshl=yes
89b803c8 24850else
7d9455ce 24851 gcc_cv_math_func_cacoshl=no
89b803c8 24852fi
24853rm -f core conftest.err conftest.$ac_objext \
24854 conftest$ac_exeext conftest.$ac_ext
89b803c8 24855fi
7d9455ce 24856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24857$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24858 if test $gcc_cv_math_func_cacoshl = yes; then
bd647a17 24859
6affa8e1 24860cat >>confdefs.h <<_ACEOF
24861#define HAVE_CACOSHL 1
24862_ACEOF
89b803c8 24863
7d9455ce 24864 fi
89b803c8 24865
89b803c8 24866
7d9455ce 24867
24868
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24870$as_echo_n "checking for cacosl... " >&6; }
f00f02a3 24871if ${gcc_cv_math_func_cacosl+:} false; then :
89b803c8 24872 $as_echo_n "(cached) " >&6
24873else
7d9455ce 24874 if test x$gcc_no_link = xyes; then
f00f02a3 24875 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24876fi
24877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24878/* end confdefs.h. */
24879
7d9455ce 24880#ifdef HAVE_COMPLEX_H
24881#include <complex.h>
24882#endif
24883#ifdef HAVE_MATH_H
24884#include <math.h>
89b803c8 24885#endif
7d9455ce 24886
24887int (*ptr)() = (int (*)())cacosl;
24888
89b803c8 24889int
24890main ()
24891{
89b803c8 24892 return 0;
24893}
7d9455ce 24894
89b803c8 24895_ACEOF
24896if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24897 gcc_cv_math_func_cacosl=yes
89b803c8 24898else
7d9455ce 24899 gcc_cv_math_func_cacosl=no
89b803c8 24900fi
24901rm -f core conftest.err conftest.$ac_objext \
24902 conftest$ac_exeext conftest.$ac_ext
89b803c8 24903fi
7d9455ce 24904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24905$as_echo "$gcc_cv_math_func_cacosl" >&6; }
24906 if test $gcc_cv_math_func_cacosl = yes; then
bd647a17 24907
6affa8e1 24908cat >>confdefs.h <<_ACEOF
24909#define HAVE_CACOSL 1
24910_ACEOF
7d9455ce 24911
24912 fi
89b803c8 24913
89b803c8 24914
89b803c8 24915
7d9455ce 24916
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24918$as_echo_n "checking for casin... " >&6; }
f00f02a3 24919if ${gcc_cv_math_func_casin+:} false; then :
89b803c8 24920 $as_echo_n "(cached) " >&6
24921else
7d9455ce 24922 if test x$gcc_no_link = xyes; then
f00f02a3 24923 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24924fi
24925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24926/* end confdefs.h. */
24927
7d9455ce 24928#ifdef HAVE_COMPLEX_H
24929#include <complex.h>
89b803c8 24930#endif
7d9455ce 24931#ifdef HAVE_MATH_H
24932#include <math.h>
24933#endif
24934
24935int (*ptr)() = (int (*)())casin;
24936
89b803c8 24937int
24938main ()
24939{
89b803c8 24940 return 0;
24941}
7d9455ce 24942
89b803c8 24943_ACEOF
24944if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24945 gcc_cv_math_func_casin=yes
89b803c8 24946else
7d9455ce 24947 gcc_cv_math_func_casin=no
89b803c8 24948fi
24949rm -f core conftest.err conftest.$ac_objext \
24950 conftest$ac_exeext conftest.$ac_ext
89b803c8 24951fi
7d9455ce 24952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24953$as_echo "$gcc_cv_math_func_casin" >&6; }
24954 if test $gcc_cv_math_func_casin = yes; then
bd647a17 24955
6affa8e1 24956cat >>confdefs.h <<_ACEOF
24957#define HAVE_CASIN 1
24958_ACEOF
7d9455ce 24959
24960 fi
24961
89b803c8 24962
89b803c8 24963
89b803c8 24964
7d9455ce 24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24966$as_echo_n "checking for casinf... " >&6; }
f00f02a3 24967if ${gcc_cv_math_func_casinf+:} false; then :
89b803c8 24968 $as_echo_n "(cached) " >&6
24969else
7d9455ce 24970 if test x$gcc_no_link = xyes; then
f00f02a3 24971 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 24972fi
24973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24974/* end confdefs.h. */
24975
7d9455ce 24976#ifdef HAVE_COMPLEX_H
24977#include <complex.h>
24978#endif
24979#ifdef HAVE_MATH_H
24980#include <math.h>
89b803c8 24981#endif
7d9455ce 24982
24983int (*ptr)() = (int (*)())casinf;
24984
89b803c8 24985int
24986main ()
24987{
89b803c8 24988 return 0;
24989}
7d9455ce 24990
89b803c8 24991_ACEOF
24992if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 24993 gcc_cv_math_func_casinf=yes
89b803c8 24994else
7d9455ce 24995 gcc_cv_math_func_casinf=no
89b803c8 24996fi
24997rm -f core conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
89b803c8 24999fi
7d9455ce 25000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25001$as_echo "$gcc_cv_math_func_casinf" >&6; }
25002 if test $gcc_cv_math_func_casinf = yes; then
bd647a17 25003
6affa8e1 25004cat >>confdefs.h <<_ACEOF
25005#define HAVE_CASINF 1
25006_ACEOF
7d9455ce 25007
25008 fi
89b803c8 25009
89b803c8 25010
89b803c8 25011
7d9455ce 25012
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25014$as_echo_n "checking for casinh... " >&6; }
f00f02a3 25015if ${gcc_cv_math_func_casinh+:} false; then :
89b803c8 25016 $as_echo_n "(cached) " >&6
25017else
7d9455ce 25018 if test x$gcc_no_link = xyes; then
f00f02a3 25019 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25020fi
25021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25022/* end confdefs.h. */
25023
7d9455ce 25024#ifdef HAVE_COMPLEX_H
25025#include <complex.h>
89b803c8 25026#endif
7d9455ce 25027#ifdef HAVE_MATH_H
25028#include <math.h>
25029#endif
25030
25031int (*ptr)() = (int (*)())casinh;
25032
89b803c8 25033int
25034main ()
25035{
89b803c8 25036 return 0;
25037}
7d9455ce 25038
89b803c8 25039_ACEOF
25040if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25041 gcc_cv_math_func_casinh=yes
89b803c8 25042else
7d9455ce 25043 gcc_cv_math_func_casinh=no
89b803c8 25044fi
25045rm -f core conftest.err conftest.$ac_objext \
25046 conftest$ac_exeext conftest.$ac_ext
89b803c8 25047fi
7d9455ce 25048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25049$as_echo "$gcc_cv_math_func_casinh" >&6; }
25050 if test $gcc_cv_math_func_casinh = yes; then
bd647a17 25051
6affa8e1 25052cat >>confdefs.h <<_ACEOF
25053#define HAVE_CASINH 1
25054_ACEOF
89b803c8 25055
7d9455ce 25056 fi
89b803c8 25057
89b803c8 25058
7d9455ce 25059
25060
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25062$as_echo_n "checking for casinhf... " >&6; }
f00f02a3 25063if ${gcc_cv_math_func_casinhf+:} false; then :
89b803c8 25064 $as_echo_n "(cached) " >&6
25065else
7d9455ce 25066 if test x$gcc_no_link = xyes; then
f00f02a3 25067 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25068fi
25069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25070/* end confdefs.h. */
25071
7d9455ce 25072#ifdef HAVE_COMPLEX_H
25073#include <complex.h>
25074#endif
25075#ifdef HAVE_MATH_H
25076#include <math.h>
89b803c8 25077#endif
7d9455ce 25078
25079int (*ptr)() = (int (*)())casinhf;
25080
89b803c8 25081int
25082main ()
25083{
89b803c8 25084 return 0;
25085}
7d9455ce 25086
89b803c8 25087_ACEOF
25088if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25089 gcc_cv_math_func_casinhf=yes
89b803c8 25090else
7d9455ce 25091 gcc_cv_math_func_casinhf=no
89b803c8 25092fi
25093rm -f core conftest.err conftest.$ac_objext \
25094 conftest$ac_exeext conftest.$ac_ext
89b803c8 25095fi
7d9455ce 25096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25097$as_echo "$gcc_cv_math_func_casinhf" >&6; }
25098 if test $gcc_cv_math_func_casinhf = yes; then
bd647a17 25099
6affa8e1 25100cat >>confdefs.h <<_ACEOF
25101#define HAVE_CASINHF 1
25102_ACEOF
7d9455ce 25103
25104 fi
89b803c8 25105
89b803c8 25106
89b803c8 25107
7d9455ce 25108
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25110$as_echo_n "checking for casinhl... " >&6; }
f00f02a3 25111if ${gcc_cv_math_func_casinhl+:} false; then :
89b803c8 25112 $as_echo_n "(cached) " >&6
25113else
7d9455ce 25114 if test x$gcc_no_link = xyes; then
f00f02a3 25115 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25116fi
25117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25118/* end confdefs.h. */
25119
7d9455ce 25120#ifdef HAVE_COMPLEX_H
25121#include <complex.h>
89b803c8 25122#endif
7d9455ce 25123#ifdef HAVE_MATH_H
25124#include <math.h>
25125#endif
25126
25127int (*ptr)() = (int (*)())casinhl;
25128
89b803c8 25129int
25130main ()
25131{
89b803c8 25132 return 0;
25133}
7d9455ce 25134
89b803c8 25135_ACEOF
25136if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25137 gcc_cv_math_func_casinhl=yes
89b803c8 25138else
7d9455ce 25139 gcc_cv_math_func_casinhl=no
89b803c8 25140fi
25141rm -f core conftest.err conftest.$ac_objext \
25142 conftest$ac_exeext conftest.$ac_ext
89b803c8 25143fi
7d9455ce 25144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25145$as_echo "$gcc_cv_math_func_casinhl" >&6; }
25146 if test $gcc_cv_math_func_casinhl = yes; then
bd647a17 25147
6affa8e1 25148cat >>confdefs.h <<_ACEOF
25149#define HAVE_CASINHL 1
25150_ACEOF
7d9455ce 25151
25152 fi
25153
89b803c8 25154
89b803c8 25155
89b803c8 25156
7d9455ce 25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25158$as_echo_n "checking for casinl... " >&6; }
f00f02a3 25159if ${gcc_cv_math_func_casinl+:} false; then :
89b803c8 25160 $as_echo_n "(cached) " >&6
25161else
7d9455ce 25162 if test x$gcc_no_link = xyes; then
f00f02a3 25163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25164fi
25165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25166/* end confdefs.h. */
25167
7d9455ce 25168#ifdef HAVE_COMPLEX_H
25169#include <complex.h>
25170#endif
25171#ifdef HAVE_MATH_H
25172#include <math.h>
89b803c8 25173#endif
7d9455ce 25174
25175int (*ptr)() = (int (*)())casinl;
25176
89b803c8 25177int
25178main ()
25179{
89b803c8 25180 return 0;
25181}
7d9455ce 25182
89b803c8 25183_ACEOF
25184if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25185 gcc_cv_math_func_casinl=yes
89b803c8 25186else
7d9455ce 25187 gcc_cv_math_func_casinl=no
89b803c8 25188fi
25189rm -f core conftest.err conftest.$ac_objext \
25190 conftest$ac_exeext conftest.$ac_ext
89b803c8 25191fi
7d9455ce 25192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25193$as_echo "$gcc_cv_math_func_casinl" >&6; }
25194 if test $gcc_cv_math_func_casinl = yes; then
bd647a17 25195
6affa8e1 25196cat >>confdefs.h <<_ACEOF
25197#define HAVE_CASINL 1
25198_ACEOF
7d9455ce 25199
25200 fi
89b803c8 25201
89b803c8 25202
89b803c8 25203
7d9455ce 25204
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25206$as_echo_n "checking for catan... " >&6; }
f00f02a3 25207if ${gcc_cv_math_func_catan+:} false; then :
89b803c8 25208 $as_echo_n "(cached) " >&6
25209else
7d9455ce 25210 if test x$gcc_no_link = xyes; then
f00f02a3 25211 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25212fi
25213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25214/* end confdefs.h. */
25215
7d9455ce 25216#ifdef HAVE_COMPLEX_H
25217#include <complex.h>
89b803c8 25218#endif
7d9455ce 25219#ifdef HAVE_MATH_H
25220#include <math.h>
25221#endif
25222
25223int (*ptr)() = (int (*)())catan;
25224
89b803c8 25225int
25226main ()
25227{
89b803c8 25228 return 0;
25229}
7d9455ce 25230
89b803c8 25231_ACEOF
25232if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25233 gcc_cv_math_func_catan=yes
89b803c8 25234else
7d9455ce 25235 gcc_cv_math_func_catan=no
89b803c8 25236fi
25237rm -f core conftest.err conftest.$ac_objext \
25238 conftest$ac_exeext conftest.$ac_ext
89b803c8 25239fi
7d9455ce 25240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25241$as_echo "$gcc_cv_math_func_catan" >&6; }
25242 if test $gcc_cv_math_func_catan = yes; then
bd647a17 25243
6affa8e1 25244cat >>confdefs.h <<_ACEOF
25245#define HAVE_CATAN 1
25246_ACEOF
89b803c8 25247
7d9455ce 25248 fi
89b803c8 25249
89b803c8 25250
7d9455ce 25251
25252
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25254$as_echo_n "checking for catanf... " >&6; }
f00f02a3 25255if ${gcc_cv_math_func_catanf+:} false; then :
89b803c8 25256 $as_echo_n "(cached) " >&6
25257else
7d9455ce 25258 if test x$gcc_no_link = xyes; then
f00f02a3 25259 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25260fi
25261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262/* end confdefs.h. */
25263
7d9455ce 25264#ifdef HAVE_COMPLEX_H
25265#include <complex.h>
25266#endif
25267#ifdef HAVE_MATH_H
25268#include <math.h>
89b803c8 25269#endif
7d9455ce 25270
25271int (*ptr)() = (int (*)())catanf;
25272
89b803c8 25273int
25274main ()
25275{
89b803c8 25276 return 0;
25277}
7d9455ce 25278
89b803c8 25279_ACEOF
25280if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25281 gcc_cv_math_func_catanf=yes
89b803c8 25282else
7d9455ce 25283 gcc_cv_math_func_catanf=no
89b803c8 25284fi
25285rm -f core conftest.err conftest.$ac_objext \
25286 conftest$ac_exeext conftest.$ac_ext
89b803c8 25287fi
7d9455ce 25288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25289$as_echo "$gcc_cv_math_func_catanf" >&6; }
25290 if test $gcc_cv_math_func_catanf = yes; then
bd647a17 25291
6affa8e1 25292cat >>confdefs.h <<_ACEOF
25293#define HAVE_CATANF 1
25294_ACEOF
7d9455ce 25295
25296 fi
89b803c8 25297
89b803c8 25298
89b803c8 25299
7d9455ce 25300
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25302$as_echo_n "checking for catanh... " >&6; }
f00f02a3 25303if ${gcc_cv_math_func_catanh+:} false; then :
89b803c8 25304 $as_echo_n "(cached) " >&6
25305else
7d9455ce 25306 if test x$gcc_no_link = xyes; then
f00f02a3 25307 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25308fi
25309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25310/* end confdefs.h. */
25311
7d9455ce 25312#ifdef HAVE_COMPLEX_H
25313#include <complex.h>
89b803c8 25314#endif
7d9455ce 25315#ifdef HAVE_MATH_H
25316#include <math.h>
25317#endif
25318
25319int (*ptr)() = (int (*)())catanh;
25320
89b803c8 25321int
25322main ()
25323{
89b803c8 25324 return 0;
25325}
7d9455ce 25326
89b803c8 25327_ACEOF
25328if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25329 gcc_cv_math_func_catanh=yes
89b803c8 25330else
7d9455ce 25331 gcc_cv_math_func_catanh=no
89b803c8 25332fi
25333rm -f core conftest.err conftest.$ac_objext \
25334 conftest$ac_exeext conftest.$ac_ext
89b803c8 25335fi
7d9455ce 25336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25337$as_echo "$gcc_cv_math_func_catanh" >&6; }
25338 if test $gcc_cv_math_func_catanh = yes; then
bd647a17 25339
6affa8e1 25340cat >>confdefs.h <<_ACEOF
25341#define HAVE_CATANH 1
25342_ACEOF
7d9455ce 25343
25344 fi
25345
89b803c8 25346
89b803c8 25347
89b803c8 25348
7d9455ce 25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25350$as_echo_n "checking for catanhf... " >&6; }
f00f02a3 25351if ${gcc_cv_math_func_catanhf+:} false; then :
89b803c8 25352 $as_echo_n "(cached) " >&6
25353else
7d9455ce 25354 if test x$gcc_no_link = xyes; then
f00f02a3 25355 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25356fi
25357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25358/* end confdefs.h. */
25359
7d9455ce 25360#ifdef HAVE_COMPLEX_H
25361#include <complex.h>
25362#endif
25363#ifdef HAVE_MATH_H
25364#include <math.h>
89b803c8 25365#endif
7d9455ce 25366
25367int (*ptr)() = (int (*)())catanhf;
25368
89b803c8 25369int
25370main ()
25371{
89b803c8 25372 return 0;
25373}
7d9455ce 25374
89b803c8 25375_ACEOF
25376if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25377 gcc_cv_math_func_catanhf=yes
89b803c8 25378else
7d9455ce 25379 gcc_cv_math_func_catanhf=no
89b803c8 25380fi
25381rm -f core conftest.err conftest.$ac_objext \
25382 conftest$ac_exeext conftest.$ac_ext
89b803c8 25383fi
7d9455ce 25384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25385$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25386 if test $gcc_cv_math_func_catanhf = yes; then
bd647a17 25387
6affa8e1 25388cat >>confdefs.h <<_ACEOF
25389#define HAVE_CATANHF 1
25390_ACEOF
7d9455ce 25391
25392 fi
89b803c8 25393
89b803c8 25394
89b803c8 25395
7d9455ce 25396
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25398$as_echo_n "checking for catanhl... " >&6; }
f00f02a3 25399if ${gcc_cv_math_func_catanhl+:} false; then :
89b803c8 25400 $as_echo_n "(cached) " >&6
25401else
7d9455ce 25402 if test x$gcc_no_link = xyes; then
f00f02a3 25403 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25404fi
25405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406/* end confdefs.h. */
25407
7d9455ce 25408#ifdef HAVE_COMPLEX_H
25409#include <complex.h>
89b803c8 25410#endif
7d9455ce 25411#ifdef HAVE_MATH_H
25412#include <math.h>
25413#endif
25414
25415int (*ptr)() = (int (*)())catanhl;
25416
89b803c8 25417int
25418main ()
25419{
89b803c8 25420 return 0;
25421}
7d9455ce 25422
89b803c8 25423_ACEOF
25424if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25425 gcc_cv_math_func_catanhl=yes
89b803c8 25426else
7d9455ce 25427 gcc_cv_math_func_catanhl=no
89b803c8 25428fi
25429rm -f core conftest.err conftest.$ac_objext \
25430 conftest$ac_exeext conftest.$ac_ext
89b803c8 25431fi
7d9455ce 25432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25433$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25434 if test $gcc_cv_math_func_catanhl = yes; then
bd647a17 25435
6affa8e1 25436cat >>confdefs.h <<_ACEOF
25437#define HAVE_CATANHL 1
25438_ACEOF
89b803c8 25439
7d9455ce 25440 fi
89b803c8 25441
89b803c8 25442
7d9455ce 25443
25444
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25446$as_echo_n "checking for catanl... " >&6; }
f00f02a3 25447if ${gcc_cv_math_func_catanl+:} false; then :
89b803c8 25448 $as_echo_n "(cached) " >&6
25449else
7d9455ce 25450 if test x$gcc_no_link = xyes; then
f00f02a3 25451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
89b803c8 25452fi
25453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25454/* end confdefs.h. */
25455
7d9455ce 25456#ifdef HAVE_COMPLEX_H
25457#include <complex.h>
25458#endif
25459#ifdef HAVE_MATH_H
25460#include <math.h>
89b803c8 25461#endif
7d9455ce 25462
25463int (*ptr)() = (int (*)())catanl;
25464
89b803c8 25465int
25466main ()
25467{
89b803c8 25468 return 0;
25469}
7d9455ce 25470
89b803c8 25471_ACEOF
25472if ac_fn_c_try_link "$LINENO"; then :
7d9455ce 25473 gcc_cv_math_func_catanl=yes
89b803c8 25474else
7d9455ce 25475 gcc_cv_math_func_catanl=no
89b803c8 25476fi
25477rm -f core conftest.err conftest.$ac_objext \
25478 conftest$ac_exeext conftest.$ac_ext
89b803c8 25479fi
7d9455ce 25480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25481$as_echo "$gcc_cv_math_func_catanl" >&6; }
25482 if test $gcc_cv_math_func_catanl = yes; then
bd647a17 25483
6affa8e1 25484cat >>confdefs.h <<_ACEOF
25485#define HAVE_CATANL 1
25486_ACEOF
89b803c8 25487
7d9455ce 25488 fi
89b803c8 25489
25490
839904a0 25491# On AIX, clog is present in libm as __clog
cd9a469c 25492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25493$as_echo_n "checking for __clog in -lm... " >&6; }
f00f02a3 25494if ${ac_cv_lib_m___clog+:} false; then :
cd9a469c 25495 $as_echo_n "(cached) " >&6
62a413d5 25496else
25497 ac_check_lib_save_LIBS=$LIBS
25498LIBS="-lm $LIBS"
25499if test x$gcc_no_link = xyes; then
f00f02a3 25500 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
62a413d5 25501fi
cd9a469c 25502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62a413d5 25503/* end confdefs.h. */
25504
cd9a469c 25505/* Override any GCC internal prototype to avoid an error.
25506 Use char because int might match the return type of a GCC
25507 builtin and then its argument prototype would still apply. */
62a413d5 25508#ifdef __cplusplus
25509extern "C"
25510#endif
62a413d5 25511char __clog ();
25512int
25513main ()
25514{
cd9a469c 25515return __clog ();
62a413d5 25516 ;
25517 return 0;
25518}
25519_ACEOF
cd9a469c 25520if ac_fn_c_try_link "$LINENO"; then :
62a413d5 25521 ac_cv_lib_m___clog=yes
25522else
cd9a469c 25523 ac_cv_lib_m___clog=no
62a413d5 25524fi
cd9a469c 25525rm -f core conftest.err conftest.$ac_objext \
25526 conftest$ac_exeext conftest.$ac_ext
62a413d5 25527LIBS=$ac_check_lib_save_LIBS
25528fi
cd9a469c 25529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25530$as_echo "$ac_cv_lib_m___clog" >&6; }
f00f02a3 25531if test "x$ac_cv_lib_m___clog" = xyes; then :
62a413d5 25532
cd9a469c 25533$as_echo "#define HAVE_CLOG 1" >>confdefs.h
62a413d5 25534
25535fi
25536
25537
daad4fd5 25538# Check whether the system has a working stat()
25539
cd9a469c 25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25541$as_echo_n "checking whether the target stat is reliable... " >&6; }
f00f02a3 25542if ${libgfor_cv_have_working_stat+:} false; then :
cd9a469c 25543 $as_echo_n "(cached) " >&6
daad4fd5 25544else
25545
cd9a469c 25546 if test "$cross_compiling" = yes; then :
daad4fd5 25547
25548case "${target}" in
6992582a 25549 *mingw*) libgfor_cv_have_working_stat=no ;;
25550 *) libgfor_cv_have_working_stat=yes;;
daad4fd5 25551esac
25552else
cd9a469c 25553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
daad4fd5 25554/* end confdefs.h. */
25555
25556#include <stdio.h>
25557#include <sys/types.h>
25558#include <sys/stat.h>
25559#include <unistd.h>
25560
25561int main ()
25562{
25563 FILE *f, *g;
25564 struct stat st1, st2;
25565
25566 f = fopen ("foo", "w");
25567 g = fopen ("bar", "w");
25568 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25569 return 1;
25570 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25571 return 1;
25572 fclose(f);
25573 fclose(g);
25574 return 0;
25575}
25576_ACEOF
cd9a469c 25577if ac_fn_c_try_run "$LINENO"; then :
6992582a 25578 libgfor_cv_have_working_stat=yes
daad4fd5 25579else
cd9a469c 25580 libgfor_cv_have_working_stat=no
daad4fd5 25581fi
cd9a469c 25582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25583 conftest.$ac_objext conftest.beam conftest.$ac_ext
daad4fd5 25584fi
cd9a469c 25585
daad4fd5 25586fi
cd9a469c 25587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25588$as_echo "$libgfor_cv_have_working_stat" >&6; }
6992582a 25589if test x"$libgfor_cv_have_working_stat" = xyes; then
daad4fd5 25590
cd9a469c 25591$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
daad4fd5 25592
25593fi
25594
3b99ec70 25595# Check whether __mingw_snprintf() is present
25596
cd9a469c 25597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25598$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
f00f02a3 25599if ${libgfor_cv_have_mingw_snprintf+:} false; then :
cd9a469c 25600 $as_echo_n "(cached) " >&6
3b99ec70 25601else
25602
25603 if test x$gcc_no_link = xyes; then
f00f02a3 25604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
3b99ec70 25605fi
cd9a469c 25606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3b99ec70 25607/* end confdefs.h. */
25608
25609#include <stdio.h>
25610extern int __mingw_snprintf (char *, size_t, const char *, ...);
25611
25612int
25613main ()
25614{
25615
25616__mingw_snprintf (NULL, 0, "%d\n", 1);
25617
25618 ;
25619 return 0;
25620}
25621_ACEOF
cd9a469c 25622if ac_fn_c_try_link "$LINENO"; then :
6992582a 25623 eval "libgfor_cv_have_mingw_snprintf=yes"
3b99ec70 25624else
cd9a469c 25625 eval "libgfor_cv_have_mingw_snprintf=no"
3b99ec70 25626fi
cd9a469c 25627rm -f core conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
3b99ec70 25629
25630fi
cd9a469c 25631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25632$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6992582a 25633 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
3b99ec70 25634
cd9a469c 25635$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
3b99ec70 25636
25637 fi
25638
25639
d9d975ae 25640# Check whether libquadmath should be used
25641# Check whether --enable-libquadmath-support was given.
25642if test "${enable_libquadmath_support+set}" = set; then :
25643 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25644else
25645 ENABLE_LIBQUADMATH_SUPPORT=yes
25646fi
25647
25648enable_libquadmath_support=
25649if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25650 enable_libquadmath_support=no
25651fi
25652
25653# Check whether we have a __float128 type, depends on enable_libquadmath_support
87969c8c 25654
25655 LIBQUADSPEC=
d9d975ae 25656
25657 if test "x$enable_libquadmath_support" != xno; then
25658
87969c8c 25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25660$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
f00f02a3 25661if ${libgfor_cv_have_float128+:} false; then :
87969c8c 25662 $as_echo_n "(cached) " >&6
25663else
25664
9af9660c 25665 if test x$gcc_no_link = xyes; then
25666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87969c8c 25667/* end confdefs.h. */
25668
9af9660c 25669 typedef _Complex float __attribute__((mode(TC))) __complex128;
25670
25671 __float128 foo (__float128 x)
25672 {
25673
25674 __complex128 z1, z2;
25675
25676 z1 = x;
25677 z2 = x / 7.Q;
25678 z2 /= z1;
25679
25680 return (__float128) z2;
25681 }
25682
25683 __float128 bar (__float128 x)
25684 {
25685 return x * __builtin_huge_valq ();
25686 }
87969c8c 25687
25688int
25689main ()
25690{
25691
9af9660c 25692 foo (1.2Q);
25693 bar (1.2Q);
87969c8c 25694
9af9660c 25695 ;
25696 return 0;
25697}
25698_ACEOF
25699if ac_fn_c_try_compile "$LINENO"; then :
87969c8c 25700
9af9660c 25701 libgfor_cv_have_float128=yes
87969c8c 25702
9af9660c 25703else
25704
25705 libgfor_cv_have_float128=no
25706
25707fi
25708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709else
25710 if test x$gcc_no_link = xyes; then
f00f02a3 25711 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9af9660c 25712fi
25713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25714/* end confdefs.h. */
25715
25716 typedef _Complex float __attribute__((mode(TC))) __complex128;
25717
25718 __float128 foo (__float128 x)
25719 {
25720
25721 __complex128 z1, z2;
25722
25723 z1 = x;
25724 z2 = x / 7.Q;
25725 z2 /= z1;
25726
25727 return (__float128) z2;
25728 }
25729
25730 __float128 bar (__float128 x)
25731 {
25732 return x * __builtin_huge_valq ();
25733 }
25734
25735int
25736main ()
25737{
25738
25739 foo (1.2Q);
25740 bar (1.2Q);
87969c8c 25741
25742 ;
25743 return 0;
25744}
25745_ACEOF
25746if ac_fn_c_try_link "$LINENO"; then :
9af9660c 25747
25748 libgfor_cv_have_float128=yes
25749
87969c8c 25750else
9af9660c 25751
25752 libgfor_cv_have_float128=no
25753
87969c8c 25754fi
25755rm -f core conftest.err conftest.$ac_objext \
25756 conftest$ac_exeext conftest.$ac_ext
9af9660c 25757fi
87969c8c 25758fi
25759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25760$as_echo "$libgfor_cv_have_float128" >&6; }
25761
25762 if test "x$libgfor_cv_have_float128" = xyes; then
25763
25764$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25765
25766
25767 ac_xsave_c_werror_flag=$ac_c_werror_flag
b14cf757 25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25769$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
f00f02a3 25770if ${libgfor_cv_have_as_needed+:} false; then :
87969c8c 25771 $as_echo_n "(cached) " >&6
25772else
25773
b14cf757 25774 # Test for native Solaris options first.
25775 # No whitespace after -z to pass it through -Wl.
25776 libgfor_cv_as_needed_option="-zignore"
25777 libgfor_cv_no_as_needed_option="-zrecord"
87969c8c 25778 save_LDFLAGS="$LDFLAGS"
b14cf757 25779 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
87969c8c 25780 libgfor_cv_have_as_needed=no
25781
25782ac_c_werror_flag=yes
25783 if test x$gcc_no_link = xyes; then
f00f02a3 25784 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
87969c8c 25785fi
25786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25787/* end confdefs.h. */
25788
25789int
25790main ()
25791{
25792
25793 ;
25794 return 0;
25795}
25796_ACEOF
25797if ac_fn_c_try_link "$LINENO"; then :
25798 libgfor_cv_have_as_needed=yes
25799else
25800 libgfor_cv_have_as_needed=no
25801fi
25802rm -f core conftest.err conftest.$ac_objext \
25803 conftest$ac_exeext conftest.$ac_ext
25804 LDFLAGS="$save_LDFLAGS"
b14cf757 25805 if test "x$libgfor_cv_have_as_needed" = xno; then
25806 libgfor_cv_as_needed_option="--as-needed"
25807 libgfor_cv_no_as_needed_option="--no-as-needed"
25808 save_LDFLAGS="$LDFLAGS"
25809 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25810 libgfor_cv_have_as_needed=no
25811
25812ac_c_werror_flag=yes
25813 if test x$gcc_no_link = xyes; then
f00f02a3 25814 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b14cf757 25815fi
25816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25817/* end confdefs.h. */
25818
25819int
25820main ()
25821{
25822
25823 ;
25824 return 0;
25825}
25826_ACEOF
25827if ac_fn_c_try_link "$LINENO"; then :
25828 libgfor_cv_have_as_needed=yes
25829else
25830 libgfor_cv_have_as_needed=no
25831fi
25832rm -f core conftest.err conftest.$ac_objext \
25833 conftest$ac_exeext conftest.$ac_ext
25834 LDFLAGS="$save_LDFLAGS"
25835 fi
87969c8c 25836 ac_c_werror_flag=$ac_xsave_c_werror_flag
25837
25838fi
25839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25840$as_echo "$libgfor_cv_have_as_needed" >&6; }
25841
25842 if test "x$libgfor_cv_have_as_needed" = xyes; then
b14cf757 25843 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
87969c8c 25844 else
25845 LIBQUADSPEC="-lquadmath"
25846 fi
25847 if test -f ../libquadmath/libquadmath.la; then
25848 LIBQUADLIB=../libquadmath/libquadmath.la
25849 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25850 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25851 else
25852 LIBQUADLIB="-lquadmath"
25853 LIBQUADLIB_DEP=
25854 LIBQUADINCLUDE=
25855 fi
25856 fi
d9d975ae 25857 else
25858 # for --disable-quadmath
25859 LIBQUADLIB=
25860 LIBQUADLIB_DEP=
25861 LIBQUADINCLUDE=
25862 fi
87969c8c 25863
25864
25865
25866
25867
25868
25869 if test "x$libgfor_cv_have_float128" = xyes; then
25870 LIBGFOR_BUILD_QUAD_TRUE=
25871 LIBGFOR_BUILD_QUAD_FALSE='#'
25872else
25873 LIBGFOR_BUILD_QUAD_TRUE='#'
25874 LIBGFOR_BUILD_QUAD_FALSE=
25875fi
25876
25877
25878
8c84a5de 25879# Check for GNU libc feenableexcept
cd9a469c 25880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25881$as_echo_n "checking for feenableexcept in -lm... " >&6; }
f00f02a3 25882if ${ac_cv_lib_m_feenableexcept+:} false; then :
cd9a469c 25883 $as_echo_n "(cached) " >&6
8c84a5de 25884else
25885 ac_check_lib_save_LIBS=$LIBS
25886LIBS="-lm $LIBS"
25887if test x$gcc_no_link = xyes; then
f00f02a3 25888 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8c84a5de 25889fi
cd9a469c 25890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8c84a5de 25891/* end confdefs.h. */
25892
cd9a469c 25893/* Override any GCC internal prototype to avoid an error.
25894 Use char because int might match the return type of a GCC
25895 builtin and then its argument prototype would still apply. */
8c84a5de 25896#ifdef __cplusplus
25897extern "C"
25898#endif
8c84a5de 25899char feenableexcept ();
25900int
25901main ()
25902{
cd9a469c 25903return feenableexcept ();
8c84a5de 25904 ;
25905 return 0;
25906}
25907_ACEOF
cd9a469c 25908if ac_fn_c_try_link "$LINENO"; then :
8c84a5de 25909 ac_cv_lib_m_feenableexcept=yes
25910else
cd9a469c 25911 ac_cv_lib_m_feenableexcept=no
8c84a5de 25912fi
cd9a469c 25913rm -f core conftest.err conftest.$ac_objext \
25914 conftest$ac_exeext conftest.$ac_ext
8c84a5de 25915LIBS=$ac_check_lib_save_LIBS
25916fi
cd9a469c 25917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25918$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
f00f02a3 25919if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
8c84a5de 25920 have_feenableexcept=yes
cd9a469c 25921$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
aaa798ba 25922
25923fi
25924
aaa798ba 25925
126b6848 25926# At least for glibc, clock_gettime is in librt. But don't
d90d0997 25927# pull that in if it still doesn't give us the function we want. This
25928# test is copied from libgomp, and modified to not link in -lrt as
25929# libgfortran calls clock_gettime via a weak reference if it's found
25930# in librt.
20dc315f 25931if test "$ac_cv_func_clock_gettime" = no; then
a2c0dc0f 25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25933$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
f00f02a3 25934if ${ac_cv_lib_rt_clock_gettime+:} false; then :
a2c0dc0f 25935 $as_echo_n "(cached) " >&6
25936else
25937 ac_check_lib_save_LIBS=$LIBS
25938LIBS="-lrt $LIBS"
25939if test x$gcc_no_link = xyes; then
f00f02a3 25940 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
a2c0dc0f 25941fi
25942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25943/* end confdefs.h. */
25944
25945/* Override any GCC internal prototype to avoid an error.
25946 Use char because int might match the return type of a GCC
25947 builtin and then its argument prototype would still apply. */
25948#ifdef __cplusplus
25949extern "C"
25950#endif
25951char clock_gettime ();
25952int
25953main ()
25954{
25955return clock_gettime ();
25956 ;
25957 return 0;
25958}
25959_ACEOF
25960if ac_fn_c_try_link "$LINENO"; then :
25961 ac_cv_lib_rt_clock_gettime=yes
25962else
25963 ac_cv_lib_rt_clock_gettime=no
25964fi
25965rm -f core conftest.err conftest.$ac_objext \
25966 conftest$ac_exeext conftest.$ac_ext
25967LIBS=$ac_check_lib_save_LIBS
25968fi
25969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25970$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
f00f02a3 25971if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
a2c0dc0f 25972
d90d0997 25973$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
a2c0dc0f 25974
25975fi
25976
25977fi
25978
cd9a469c 25979# Check for SysV fpsetmask
aaa798ba 25980
cd9a469c 25981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25982$as_echo_n "checking whether fpsetmask is present... " >&6; }
f00f02a3 25983if ${libgfor_cv_have_fpsetmask+:} false; then :
cd9a469c 25984 $as_echo_n "(cached) " >&6
25985else
aaa798ba 25986
cd9a469c 25987 if test x$gcc_no_link = xyes; then
f00f02a3 25988 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cd9a469c 25989fi
25990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991/* end confdefs.h. */
aaa798ba 25992
cd9a469c 25993#if HAVE_FLOATINGPOINT_H
25994# include <floatingpoint.h>
25995#endif /* HAVE_FLOATINGPOINT_H */
25996#if HAVE_IEEEFP_H
25997# include <ieeefp.h>
25998#endif /* HAVE_IEEEFP_H */
aaa798ba 25999int
26000main ()
26001{
cd9a469c 26002fpsetmask(0);
aaa798ba 26003 ;
26004 return 0;
26005}
26006_ACEOF
cd9a469c 26007if ac_fn_c_try_link "$LINENO"; then :
26008 eval "libgfor_cv_have_fpsetmask=yes"
aaa798ba 26009else
cd9a469c 26010 eval "libgfor_cv_have_fpsetmask=no"
26011fi
26012rm -f core conftest.err conftest.$ac_objext \
26013 conftest$ac_exeext conftest.$ac_ext
aaa798ba 26014
aaa798ba 26015fi
cd9a469c 26016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26017$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26018 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
b00fa2cf 26019 have_fpsetmask=yes
cd9a469c 26020
26021$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26022
26023 fi
26024
dd81f5d9 26025ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
c4d9d1ea 26026#ifdef HAVE_IEEEFP_H
dd81f5d9 26027#include <ieeefp.h>
c4d9d1ea 26028#endif
dd81f5d9 26029#include <math.h>
26030
f1fd8f6e 26031"
f00f02a3 26032if test "x$ac_cv_type_fp_except" = xyes; then :
f1fd8f6e 26033
26034cat >>confdefs.h <<_ACEOF
26035#define HAVE_FP_EXCEPT 1
26036_ACEOF
26037
26038
26039fi
dd81f5d9 26040ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
c4d9d1ea 26041#ifdef HAVE_IEEEFP_H
dd81f5d9 26042#include <ieeefp.h>
c4d9d1ea 26043#endif
dd81f5d9 26044#include <math.h>
26045
f1fd8f6e 26046"
f00f02a3 26047if test "x$ac_cv_type_fp_except_t" = xyes; then :
f1fd8f6e 26048
26049cat >>confdefs.h <<_ACEOF
26050#define HAVE_FP_EXCEPT_T 1
26051_ACEOF
26052
26053
eb429e06 26054fi
26055
dd81f5d9 26056ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
c4d9d1ea 26057#ifdef HAVE_IEEEFP_H
dd81f5d9 26058#include <ieeefp.h>
c4d9d1ea 26059#endif
dd81f5d9 26060#include <math.h>
26061
eb429e06 26062"
f00f02a3 26063if test "x$ac_cv_type_fp_rnd" = xyes; then :
eb429e06 26064
26065cat >>confdefs.h <<_ACEOF
26066#define HAVE_FP_RND 1
26067_ACEOF
26068
26069
26070fi
dd81f5d9 26071ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
c4d9d1ea 26072#ifdef HAVE_IEEEFP_H
dd81f5d9 26073#include <ieeefp.h>
c4d9d1ea 26074#endif
dd81f5d9 26075#include <math.h>
26076
eb429e06 26077"
f00f02a3 26078if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
eb429e06 26079
26080cat >>confdefs.h <<_ACEOF
26081#define HAVE_FP_RND_T 1
26082_ACEOF
26083
26084
f1fd8f6e 26085fi
26086
cd9a469c 26087
53b9b372 26088# Check whether we have fpsetsticky or fpresetsticky
26089ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
f00f02a3 26090if test "x$ac_cv_func_fpsetsticky" = xyes; then :
53b9b372 26091 have_fpsetsticky=yes
26092$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26093
26094fi
26095
26096ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
f00f02a3 26097if test "x$ac_cv_func_fpresetsticky" = xyes; then :
53b9b372 26098 have_fpresetsticky=yes
26099$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26100
26101fi
26102
26103
cd9a469c 26104# Check for AIX fp_trap and fp_enable
26105ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
f00f02a3 26106if test "x$ac_cv_func_fp_trap" = xyes; then :
cd9a469c 26107 have_fp_trap=yes
26108$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26109
aaa798ba 26110fi
cd9a469c 26111
26112ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
f00f02a3 26113if test "x$ac_cv_func_fp_enable" = xyes; then :
aaa798ba 26114 have_fp_enable=yes
cd9a469c 26115$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
aaa798ba 26116
26117fi
26118
26119
a3180a39 26120# Check if _SOFT_FLOAT is defined
26121
26122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26123$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
f00f02a3 26124if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
a3180a39 26125 $as_echo_n "(cached) " >&6
26126else
26127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26128/* end confdefs.h. */
26129
26130int
26131main ()
26132{
26133
26134 #ifdef _SOFT_FLOAT
26135 int ok;
26136 #else
26137 choke me
26138 #endif
26139
26140 ;
26141 return 0;
26142}
26143_ACEOF
26144if ac_fn_c_try_compile "$LINENO"; then :
26145 ac_cv_defined__SOFT_FLOAT=yes
26146else
26147 ac_cv_defined__SOFT_FLOAT=no
26148fi
26149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26150fi
26151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26152$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26153if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26154 have_soft_float=yes
26155fi
26156
8c84a5de 26157# Runs configure.host to set up necessary host-dependent shell variables.
26158# We then display a message about it, and propagate them through the
26159# build chain.
26160. ${srcdir}/configure.host
cd9a469c 26161{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26162$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
d566c3e0 26163{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26164$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
8c84a5de 26165FPU_HOST_HEADER=config/${fpu_host}.h
26166
26167
d566c3e0 26168# Whether we will build the IEEE modules
26169 if test x${ieee_support} = xyes; then
26170 IEEE_SUPPORT_TRUE=
26171 IEEE_SUPPORT_FALSE='#'
26172else
26173 IEEE_SUPPORT_TRUE='#'
26174 IEEE_SUPPORT_FALSE=
26175fi
26176
26177
26178
72934c53 26179# Some targets require additional compiler options for IEEE compatibility.
26180IEEE_FLAGS="${ieee_flags}"
26181
26182
d78db4a0 26183
26184# Check for POSIX getpwuid_r
26185#
26186# There are two versions of getpwuid_r, the POSIX one with 5
26187# arguments, and another one with 4 arguments used by at least HP-UX
26188# 10.2.
26189if test "$ac_cv_func_getpwuid_r" = "yes"; then
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26191$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
f00f02a3 26192if ${libgfor_cv_posix_getpwuid_r+:} false; then :
d78db4a0 26193 $as_echo_n "(cached) " >&6
26194else
26195
26196 if test x$gcc_no_link = xyes; then
f00f02a3 26197 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
d78db4a0 26198fi
26199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200/* end confdefs.h. */
26201
26202#include <stdio.h>
26203#include <sys/types.h>
26204#include <pwd.h>
26205int
26206main ()
26207{
26208
26209 getpwuid_r(0, NULL, NULL, 0, NULL);
26210
26211 ;
26212 return 0;
26213}
26214_ACEOF
26215if ac_fn_c_try_link "$LINENO"; then :
26216 libgfor_cv_posix_getpwuid_r="yes"
26217else
26218 libgfor_cv_posix_getpwuid_r="no"
26219fi
26220rm -f core conftest.err conftest.$ac_objext \
26221 conftest$ac_exeext conftest.$ac_ext
26222fi
26223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26224$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26225fi
26226if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26227
26228$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26229
26230fi
26231
26232
7b6cb5bd 26233# Check out attribute support.
26234
cd9a469c 26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26236$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
f00f02a3 26237if ${libgfor_cv_have_attribute_visibility+:} false; then :
cd9a469c 26238 $as_echo_n "(cached) " >&6
7b6cb5bd 26239else
26240
26241 save_CFLAGS="$CFLAGS"
26242 CFLAGS="$CFLAGS -Werror"
cd9a469c 26243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7b6cb5bd 26244/* end confdefs.h. */
26245void __attribute__((visibility("hidden"))) foo(void) { }
26246int
26247main ()
26248{
26249
26250 ;
26251 return 0;
26252}
26253_ACEOF
cd9a469c 26254if ac_fn_c_try_compile "$LINENO"; then :
6992582a 26255 libgfor_cv_have_attribute_visibility=yes
7b6cb5bd 26256else
cd9a469c 26257 libgfor_cv_have_attribute_visibility=no
7b6cb5bd 26258fi
cd9a469c 26259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7b6cb5bd 26260 CFLAGS="$save_CFLAGS"
26261fi
cd9a469c 26262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26263$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6992582a 26264 if test $libgfor_cv_have_attribute_visibility = yes; then
7b6cb5bd 26265
cd9a469c 26266$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7b6cb5bd 26267
26268 fi
26269
cd9a469c 26270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26271$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
f00f02a3 26272if ${libgfor_cv_have_attribute_alias+:} false; then :
cd9a469c 26273 $as_echo_n "(cached) " >&6
7b6cb5bd 26274else
26275
b52ee437 26276 if test x$gcc_no_link = xyes; then
f00f02a3 26277 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
b52ee437 26278fi
cd9a469c 26279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7b6cb5bd 26280/* end confdefs.h. */
26281
7b6cb5bd 26282void foo(void) { }
5a2b0c34 26283extern void bar(void) __attribute__((alias("foo")));
7b6cb5bd 26284int
26285main ()
26286{
26287bar();
26288 ;
26289 return 0;
26290}
26291_ACEOF
cd9a469c 26292if ac_fn_c_try_link "$LINENO"; then :
6992582a 26293 libgfor_cv_have_attribute_alias=yes
7b6cb5bd 26294else
cd9a469c 26295 libgfor_cv_have_attribute_alias=no
7b6cb5bd 26296fi
cd9a469c 26297rm -f core conftest.err conftest.$ac_objext \
26298 conftest$ac_exeext conftest.$ac_ext
7b6cb5bd 26299fi
cd9a469c 26300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26301$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6992582a 26302 if test $libgfor_cv_have_attribute_alias = yes; then
7b6cb5bd 26303
cd9a469c 26304$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7b6cb5bd 26305
26306 fi
26307
75c0d535 26308# Check out atomic builtins support.
60c514ba 26309
75c0d535 26310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26311$as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26312if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
cd9a469c 26313 $as_echo_n "(cached) " >&6
60c514ba 26314else
26315
26316 if test x$gcc_no_link = xyes; then
f00f02a3 26317 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
60c514ba 26318fi
cd9a469c 26319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60c514ba 26320/* end confdefs.h. */
26321int foovar = 0;
26322int
26323main ()
26324{
26325
75c0d535 26326if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26327if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
60c514ba 26328 ;
26329 return 0;
26330}
26331_ACEOF
cd9a469c 26332if ac_fn_c_try_link "$LINENO"; then :
75c0d535 26333 libgfor_cv_have_atomic_fetch_add=yes
60c514ba 26334else
75c0d535 26335 libgfor_cv_have_atomic_fetch_add=no
60c514ba 26336fi
cd9a469c 26337rm -f core conftest.err conftest.$ac_objext \
26338 conftest$ac_exeext conftest.$ac_ext
60c514ba 26339fi
75c0d535 26340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26341$as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26342 if test $libgfor_cv_have_atomic_fetch_add = yes; then
60c514ba 26343
75c0d535 26344$as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
60c514ba 26345
26346 fi
26347
04c14146 26348# Check out #pragma weak.
26349
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26351$as_echo_n "checking whether pragma weak works... " >&6; }
f00f02a3 26352if ${libgfor_cv_have_pragma_weak+:} false; then :
04c14146 26353 $as_echo_n "(cached) " >&6
26354else
26355
26356 gfor_save_CFLAGS="$CFLAGS"
26357 CFLAGS="$CFLAGS -Wunknown-pragmas"
26358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26359/* end confdefs.h. */
26360
26361void foo (void);
26362#pragma weak foo
26363
26364int
26365main ()
26366{
26367if (foo) foo ();
26368 ;
26369 return 0;
26370}
26371_ACEOF
26372if ac_fn_c_try_compile "$LINENO"; then :
26373 libgfor_cv_have_pragma_weak=yes
26374else
26375 libgfor_cv_have_pragma_weak=no
26376fi
26377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26378fi
26379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26380$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26381 if test $libgfor_cv_have_pragma_weak = yes; then
26382
26383$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26384
26385 fi
26386 case "$host" in
26387 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26388
26389$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26390
26391 ;;
26392 esac
26393
1d9726df 26394# Check out weakref support.
60c514ba 26395
1d9726df 26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26397$as_echo_n "checking whether the target supports weakref... " >&6; }
f00f02a3 26398if ${libgfor_cv_have_weakref+:} false; then :
cd9a469c 26399 $as_echo_n "(cached) " >&6
60c514ba 26400else
26401
1d9726df 26402 save_CFLAGS="$CFLAGS"
26403 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26404 if test x$gcc_no_link = xyes; then
f00f02a3 26405 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1d9726df 26406fi
26407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60c514ba 26408/* end confdefs.h. */
b9a8e1d9 26409
1d9726df 26410static int mytoto (int) __attribute__((__weakref__("toto")));
b9a8e1d9 26411
60c514ba 26412int
26413main ()
26414{
1d9726df 26415return (mytoto != 0);
60c514ba 26416 ;
26417 return 0;
26418}
26419_ACEOF
1d9726df 26420if ac_fn_c_try_link "$LINENO"; then :
26421 libgfor_cv_have_weakref=yes
60c514ba 26422else
1d9726df 26423 libgfor_cv_have_weakref=no
60c514ba 26424fi
1d9726df 26425rm -f core conftest.err conftest.$ac_objext \
26426 conftest$ac_exeext conftest.$ac_ext
26427 CFLAGS="$save_CFLAGS"
60c514ba 26428fi
1d9726df 26429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26430$as_echo "$libgfor_cv_have_weakref" >&6; }
26431 if test $libgfor_cv_have_weakref = yes; then
60c514ba 26432
1d9726df 26433$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
60c514ba 26434
26435 fi
26436
1dc95e51 26437# Various other checks on target
26438
cd9a469c 26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26440$as_echo_n "checking whether the target can unlink an open file... " >&6; }
f00f02a3 26441if ${libgfor_cv_have_unlink_open_file+:} false; then :
cd9a469c 26442 $as_echo_n "(cached) " >&6
1dc95e51 26443else
26444
cd9a469c 26445 if test "$cross_compiling" = yes; then :
1dc95e51 26446
26447case "${target}" in
6992582a 26448 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26449 *) libgfor_cv_have_unlink_open_file=yes;;
1dc95e51 26450esac
26451else
cd9a469c 26452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1dc95e51 26453/* end confdefs.h. */
26454
26455#include <errno.h>
26456#include <fcntl.h>
26457#include <unistd.h>
26458#include <sys/stat.h>
26459
26460int main ()
26461{
26462 int fd;
26463
ec55604a 26464 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
1dc95e51 26465 if (fd <= 0)
26466 return 0;
26467 if (unlink ("testfile") == -1)
26468 return 1;
26469 write (fd, "This is a test\n", 15);
26470 close (fd);
26471
ec55604a 26472 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
1dc95e51 26473 return 0;
26474 else
26475 return 1;
26476}
26477_ACEOF
cd9a469c 26478if ac_fn_c_try_run "$LINENO"; then :
6992582a 26479 libgfor_cv_have_unlink_open_file=yes
1dc95e51 26480else
cd9a469c 26481 libgfor_cv_have_unlink_open_file=no
1dc95e51 26482fi
cd9a469c 26483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26484 conftest.$ac_objext conftest.beam conftest.$ac_ext
1dc95e51 26485fi
cd9a469c 26486
1dc95e51 26487fi
cd9a469c 26488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26489$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6992582a 26490if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
1dc95e51 26491
cd9a469c 26492$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
1dc95e51 26493
26494fi
26495
cf55c3cf 26496# Check whether line terminator is LF or CRLF
26497
cd9a469c 26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26499$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
f00f02a3 26500if ${libgfor_cv_have_crlf+:} false; then :
cd9a469c 26501 $as_echo_n "(cached) " >&6
cf55c3cf 26502else
26503
cd9a469c 26504 if test "$cross_compiling" = yes; then :
cf55c3cf 26505
26506case "${target}" in
6992582a 26507 *mingw*) libgfor_cv_have_crlf=yes ;;
26508 *) libgfor_cv_have_crlf=no;;
cf55c3cf 26509esac
26510else
cd9a469c 26511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cf55c3cf 26512/* end confdefs.h. */
26513
26514/* This test program should exit with status 0 if system uses a CRLF as
26515 line terminator, and status 1 otherwise.
26516 Since it is used to check for mingw systems, and should return 0 in any
26517 other case, in case of a failure we will not use CRLF. */
26518#include <sys/stat.h>
26519#include <stdlib.h>
26520#include <fcntl.h>
26521#include <stdio.h>
26522
26523int main ()
26524{
26525#ifndef O_BINARY
26526 exit(1);
26527#else
26528 int fd, bytes;
26529 char buff[5];
26530
26531 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26532 if (fd < 0)
26533 exit(1);
26534 if (write (fd, "\n", 1) < 0)
26535 perror ("write");
26536
26537 close (fd);
26538
26539 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26540 exit(1);
26541 bytes = read (fd, buff, 5);
26542 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26543 exit(0);
26544 else
26545 exit(1);
26546#endif
26547}
26548_ACEOF
cd9a469c 26549if ac_fn_c_try_run "$LINENO"; then :
6992582a 26550 libgfor_cv_have_crlf=yes
cf55c3cf 26551else
cd9a469c 26552 libgfor_cv_have_crlf=no
cf55c3cf 26553fi
cd9a469c 26554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26555 conftest.$ac_objext conftest.beam conftest.$ac_ext
cf55c3cf 26556fi
cd9a469c 26557
cf55c3cf 26558fi
cd9a469c 26559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26560$as_echo "$libgfor_cv_have_crlf" >&6; }
6992582a 26561if test x"$libgfor_cv_have_crlf" = xyes; then
cf55c3cf 26562
cd9a469c 26563$as_echo "#define HAVE_CRLF 1" >>confdefs.h
cf55c3cf 26564
26565fi
26566
25df644f 26567# Check whether we support AVX extensions
26568
26569 ac_save_CFLAGS="$CFLAGS"
26570 CFLAGS="-O2 -mavx"
26571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26572/* end confdefs.h. */
26573
26574 void _mm256_zeroall (void)
26575 {
26576 __builtin_ia32_vzeroall ();
26577 }
26578int
26579main ()
26580{
26581
26582 ;
26583 return 0;
26584}
26585_ACEOF
26586if ac_fn_c_try_compile "$LINENO"; then :
26587
26588$as_echo "#define HAVE_AVX 1" >>confdefs.h
26589
26590fi
26591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26592 CFLAGS="$ac_save_CFLAGS"
26593
26594
26595# Check wether we support AVX2 extensions
26596
26597 ac_save_CFLAGS="$CFLAGS"
26598 CFLAGS="-O2 -mavx2"
26599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26600/* end confdefs.h. */
26601
26602 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26603 __v4di
26604 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26605 {
26606 return __builtin_ia32_andnotsi256 (__X, __Y);
26607 }
26608int
26609main ()
26610{
26611
26612 ;
26613 return 0;
26614}
26615_ACEOF
26616if ac_fn_c_try_compile "$LINENO"; then :
26617
26618$as_echo "#define HAVE_AVX2 1" >>confdefs.h
26619
26620fi
26621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 CFLAGS="$ac_save_CFLAGS"
26623
26624
26625# Check wether we support AVX512f extensions
26626
26627 ac_save_CFLAGS="$CFLAGS"
26628 CFLAGS="-O2 -mavx512f"
26629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26630/* end confdefs.h. */
26631
26632 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26633 __m512d _mm512_add (__m512d a)
26634 {
d6c831fb 26635 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26636 /* For -m64/-mx32 also verify that code will work even if
26637 the target uses call saved zmm16+ and needs to emit
26638 unwind info for them (e.g. on mingw). See PR79127. */
26639#ifdef __x86_64__
26640 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26641#endif
26642 return b;
25df644f 26643 }
26644int
26645main ()
26646{
26647
26648 ;
26649 return 0;
26650}
26651_ACEOF
26652if ac_fn_c_try_compile "$LINENO"; then :
26653
26654$as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26655
26656fi
26657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26658 CFLAGS="$ac_save_CFLAGS"
26659
26660
b4e409cb 26661# Check for FMA3 extensions
26662
26663 ac_save_CFLAGS="$CFLAGS"
26664 CFLAGS="-O2 -mfma -mno-fma4"
26665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26666/* end confdefs.h. */
26667
3803be45 26668 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26669 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26670 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
b4e409cb 26671 {
3803be45 26672 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26673 (__v4sf)__B,
26674 (__v4sf)__C);
b4e409cb 26675 }
26676int
26677main ()
26678{
26679
26680 ;
26681 return 0;
26682}
26683_ACEOF
26684if ac_fn_c_try_compile "$LINENO"; then :
26685
26686$as_echo "#define HAVE_FMA3 1" >>confdefs.h
26687
26688fi
26689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26690 CFLAGS="$ac_save_CFLAGS"
26691
26692
26693# Check for FMA4 extensions
26694
26695 ac_save_CFLAGS="$CFLAGS"
26696 CFLAGS="-O2 -mfma4 -mno-fma"
26697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26698/* end confdefs.h. */
26699
3803be45 26700 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26701 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26702 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
b4e409cb 26703 {
3803be45 26704 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26705 (__v4sf)__B,
26706 (__v4sf)__C);
b4e409cb 26707 }
26708int
26709main ()
26710{
26711
26712 ;
26713 return 0;
26714}
26715_ACEOF
26716if ac_fn_c_try_compile "$LINENO"; then :
26717
26718$as_echo "#define HAVE_FMA4 1" >>confdefs.h
26719
26720fi
26721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26722 CFLAGS="$ac_save_CFLAGS"
26723
26724
26725# Check if AVX128 works
26726
26727 ac_save_CFLAGS="$CFLAGS"
26728 CFLAGS="-O2 -mavx -mprefer-avx128"
26729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26730/* end confdefs.h. */
26731
26732 void foo()
26733 {
26734 }
26735int
26736main ()
26737{
26738
26739 ;
26740 return 0;
26741}
26742_ACEOF
26743if ac_fn_c_try_compile "$LINENO"; then :
26744
26745$as_echo "#define HAVE_AVX128 1" >>confdefs.h
26746
26747 if true; then
26748 HAVE_AVX128_TRUE=
26749 HAVE_AVX128_FALSE='#'
26750else
26751 HAVE_AVX128_TRUE='#'
26752 HAVE_AVX128_FALSE=
26753fi
26754
a1a7ecea 26755else
26756 if false; then
26757 HAVE_AVX128_TRUE=
26758 HAVE_AVX128_FALSE='#'
26759else
26760 HAVE_AVX128_TRUE='#'
26761 HAVE_AVX128_FALSE=
26762fi
26763
b4e409cb 26764fi
26765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26766 CFLAGS="$ac_save_CFLAGS"
26767
26768
0812bb06 26769# Determine what GCC version number to use in filesystem paths.
26770
26771 get_gcc_base_ver="cat"
26772
26773# Check whether --with-gcc-major-version-only was given.
26774if test "${with_gcc_major_version_only+set}" = set; then :
26775 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
124c259e 26776 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
0812bb06 26777 fi
26778
26779fi
26780
26781
26782
26783
4ee9c684 26784cat >confcache <<\_ACEOF
26785# This file is a shell script that caches the results of configure
26786# tests run on this system so they can be shared between configure
26787# scripts and configure runs, see configure's option --config-cache.
26788# It is not useful on other systems. If it contains results you don't
26789# want to keep, you may remove or edit it.
26790#
26791# config.status only pays attention to the cache file if you give it
26792# the --recheck option to rerun configure.
26793#
26794# `ac_cv_env_foo' variables (set or unset) will be overridden when
26795# loading this file, other *unset* `ac_cv_foo' will be assigned the
26796# following values.
26797
26798_ACEOF
26799
26800# The following way of writing the cache mishandles newlines in values,
26801# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 26802# So, we kill variables containing newlines.
4ee9c684 26803# Ultrix sh set writes to stderr and can't be redirected directly,
26804# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 26805(
26806 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26807 eval ac_val=\$$ac_var
26808 case $ac_val in #(
26809 *${as_nl}*)
26810 case $ac_var in #(
26811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26812$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26813 esac
26814 case $ac_var in #(
26815 _ | IFS | as_nl) ;; #(
26816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26817 *) { eval $ac_var=; unset $ac_var;} ;;
26818 esac ;;
26819 esac
26820 done
26821
4ee9c684 26822 (set) 2>&1 |
cd9a469c 26823 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26824 *${as_nl}ac_space=\ *)
26825 # `set' does not quote correctly, so add quotes: double-quote
26826 # substitution turns \\\\ into \\, and sed turns \\ into \.
4ee9c684 26827 sed -n \
26828 "s/'/'\\\\''/g;
26829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 26830 ;; #(
4ee9c684 26831 *)
26832 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 26833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4ee9c684 26834 ;;
cd9a469c 26835 esac |
26836 sort
26837) |
4ee9c684 26838 sed '
cd9a469c 26839 /^ac_cv_env_/b end
4ee9c684 26840 t clear
cd9a469c 26841 :clear
4ee9c684 26842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26843 t end
cd9a469c 26844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26845 :end' >>confcache
26846if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26847 if test -w "$cache_file"; then
f00f02a3 26848 if test "x$cache_file" != "x/dev/null"; then
cd9a469c 26849 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26850$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 26851 if test ! -f "$cache_file" || test -h "$cache_file"; then
26852 cat confcache >"$cache_file"
26853 else
26854 case $cache_file in #(
26855 */* | ?:*)
26856 mv -f confcache "$cache_file"$$ &&
26857 mv -f "$cache_file"$$ "$cache_file" ;; #(
26858 *)
26859 mv -f confcache "$cache_file" ;;
26860 esac
26861 fi
26862 fi
4ee9c684 26863 else
cd9a469c 26864 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26865$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4ee9c684 26866 fi
26867fi
26868rm -f confcache
26869
90973b19 26870if test ${multilib} = yes; then
26871 multilib_arg="--enable-multilib"
4ee9c684 26872else
90973b19 26873 multilib_arg=
4ee9c684 26874fi
4ee9c684 26875
87969c8c 26876# Write our Makefile and spec file.
26877ac_config_files="$ac_config_files Makefile libgfortran.spec"
90973b19 26878
4ee9c684 26879cat >confcache <<\_ACEOF
26880# This file is a shell script that caches the results of configure
26881# tests run on this system so they can be shared between configure
26882# scripts and configure runs, see configure's option --config-cache.
26883# It is not useful on other systems. If it contains results you don't
26884# want to keep, you may remove or edit it.
26885#
26886# config.status only pays attention to the cache file if you give it
26887# the --recheck option to rerun configure.
26888#
26889# `ac_cv_env_foo' variables (set or unset) will be overridden when
26890# loading this file, other *unset* `ac_cv_foo' will be assigned the
26891# following values.
26892
26893_ACEOF
26894
26895# The following way of writing the cache mishandles newlines in values,
26896# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 26897# So, we kill variables containing newlines.
4ee9c684 26898# Ultrix sh set writes to stderr and can't be redirected directly,
26899# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 26900(
26901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26902 eval ac_val=\$$ac_var
26903 case $ac_val in #(
26904 *${as_nl}*)
26905 case $ac_var in #(
26906 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26907$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26908 esac
26909 case $ac_var in #(
26910 _ | IFS | as_nl) ;; #(
26911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26912 *) { eval $ac_var=; unset $ac_var;} ;;
26913 esac ;;
26914 esac
26915 done
26916
4ee9c684 26917 (set) 2>&1 |
cd9a469c 26918 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26919 *${as_nl}ac_space=\ *)
26920 # `set' does not quote correctly, so add quotes: double-quote
26921 # substitution turns \\\\ into \\, and sed turns \\ into \.
4ee9c684 26922 sed -n \
26923 "s/'/'\\\\''/g;
26924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 26925 ;; #(
4ee9c684 26926 *)
26927 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 26928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4ee9c684 26929 ;;
cd9a469c 26930 esac |
26931 sort
26932) |
4ee9c684 26933 sed '
cd9a469c 26934 /^ac_cv_env_/b end
4ee9c684 26935 t clear
cd9a469c 26936 :clear
4ee9c684 26937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26938 t end
cd9a469c 26939 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26940 :end' >>confcache
26941if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26942 if test -w "$cache_file"; then
f00f02a3 26943 if test "x$cache_file" != "x/dev/null"; then
cd9a469c 26944 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26945$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 26946 if test ! -f "$cache_file" || test -h "$cache_file"; then
26947 cat confcache >"$cache_file"
26948 else
26949 case $cache_file in #(
26950 */* | ?:*)
26951 mv -f confcache "$cache_file"$$ &&
26952 mv -f "$cache_file"$$ "$cache_file" ;; #(
26953 *)
26954 mv -f confcache "$cache_file" ;;
26955 esac
26956 fi
26957 fi
4ee9c684 26958 else
cd9a469c 26959 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26960$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4ee9c684 26961 fi
26962fi
26963rm -f confcache
26964
26965test "x$prefix" = xNONE && prefix=$ac_default_prefix
26966# Let make expand exec_prefix.
26967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26968
4ee9c684 26969DEFS=-DHAVE_CONFIG_H
26970
26971ac_libobjs=
26972ac_ltlibobjs=
f00f02a3 26973U=
4ee9c684 26974for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26975 # 1. Remove the extension, and $U if already installed.
cd9a469c 26976 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26977 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26978 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26979 # will be set to the directory where LIBOBJS objects are built.
26980 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26981 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4ee9c684 26982done
26983LIBOBJS=$ac_libobjs
26984
26985LTLIBOBJS=$ac_ltlibobjs
26986
26987
93773f82 26988if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
f00f02a3 26989 as_fn_error $? "conditional \"onestep\" was never defined.
cd9a469c 26990Usually this means the macro was only invoked conditionally." "$LINENO" 5
26991fi
f00f02a3 26992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26993$as_echo_n "checking that generated files are newer than configure... " >&6; }
26994 if test -n "$am_sleep_pid"; then
26995 # Hide warnings about reused PIDs.
26996 wait $am_sleep_pid 2>/dev/null
26997 fi
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26999$as_echo "done" >&6; }
cd9a469c 27000 if test -n "$EXEEXT"; then
27001 am__EXEEXT_TRUE=
27002 am__EXEEXT_FALSE='#'
27003else
27004 am__EXEEXT_TRUE='#'
27005 am__EXEEXT_FALSE=
93773f82 27006fi
cd9a469c 27007
4ee9c684 27008if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
f00f02a3 27009 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cd9a469c 27010Usually this means the macro was only invoked conditionally." "$LINENO" 5
4ee9c684 27011fi
2fd61f51 27012if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
f00f02a3 27013 as_fn_error $? "conditional \"AMDEP\" was never defined.
cd9a469c 27014Usually this means the macro was only invoked conditionally." "$LINENO" 5
2fd61f51 27015fi
27016if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
f00f02a3 27017 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cd9a469c 27018Usually this means the macro was only invoked conditionally." "$LINENO" 5
2fd61f51 27019fi
d5d92632 27020if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
f00f02a3 27021 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
d5d92632 27022Usually this means the macro was only invoked conditionally." "$LINENO" 5
27023fi
ce1a737c 27024if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
f00f02a3 27025 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
cd9a469c 27026Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce1a737c 27027fi
019fb48a 27028if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
f00f02a3 27029 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
019fb48a 27030Usually this means the macro was only invoked conditionally." "$LINENO" 5
27031fi
27032if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
f00f02a3 27033 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
019fb48a 27034Usually this means the macro was only invoked conditionally." "$LINENO" 5
27035fi
eb00e55c 27036if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
f00f02a3 27037 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
eb00e55c 27038Usually this means the macro was only invoked conditionally." "$LINENO" 5
27039fi
18ce903b 27040if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
f00f02a3 27041 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
18ce903b 27042Usually this means the macro was only invoked conditionally." "$LINENO" 5
27043fi
87969c8c 27044if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
f00f02a3 27045 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
87969c8c 27046Usually this means the macro was only invoked conditionally." "$LINENO" 5
27047fi
d566c3e0 27048if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
f00f02a3 27049 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
d566c3e0 27050Usually this means the macro was only invoked conditionally." "$LINENO" 5
27051fi
b4e409cb 27052if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
f00f02a3 27053 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
b4e409cb 27054Usually this means the macro was only invoked conditionally." "$LINENO" 5
27055fi
a1a7ecea 27056if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
f00f02a3 27057 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
a1a7ecea 27058Usually this means the macro was only invoked conditionally." "$LINENO" 5
27059fi
4ee9c684 27060
f00f02a3 27061: "${CONFIG_STATUS=./config.status}"
cd9a469c 27062ac_write_fail=0
4ee9c684 27063ac_clean_files_save=$ac_clean_files
27064ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 27065{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27066$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27067as_write_fail=0
27068cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4ee9c684 27069#! $SHELL
27070# Generated by $as_me.
27071# Run this file to recreate the current configuration.
27072# Compiler output produced by configure, useful for debugging
27073# configure, is in config.log if it exists.
27074
27075debug=false
27076ac_cs_recheck=false
27077ac_cs_silent=false
4ee9c684 27078
cd9a469c 27079SHELL=\${CONFIG_SHELL-$SHELL}
27080export SHELL
27081_ASEOF
27082cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27083## -------------------- ##
27084## M4sh Initialization. ##
27085## -------------------- ##
27086
27087# Be more Bourne compatible
27088DUALCASE=1; export DUALCASE # for MKS sh
27089if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4ee9c684 27090 emulate sh
27091 NULLCMD=:
cd9a469c 27092 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4ee9c684 27093 # is contrary to our usage. Disable this feature.
27094 alias -g '${1+"$@"}'='"$@"'
cd9a469c 27095 setopt NO_GLOB_SUBST
27096else
27097 case `(set -o) 2>/dev/null` in #(
27098 *posix*) :
27099 set -o posix ;; #(
27100 *) :
27101 ;;
27102esac
4ee9c684 27103fi
4ee9c684 27104
cd9a469c 27105
27106as_nl='
27107'
27108export as_nl
27109# Printing a long string crashes Solaris 7 /usr/bin/printf.
27110as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27111as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27112as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27113# Prefer a ksh shell builtin over an external printf program on Solaris,
27114# but without wasting forks for bash or zsh.
27115if test -z "$BASH_VERSION$ZSH_VERSION" \
27116 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27117 as_echo='print -r --'
27118 as_echo_n='print -rn --'
27119elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27120 as_echo='printf %s\n'
27121 as_echo_n='printf %s'
27122else
27123 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27124 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27125 as_echo_n='/usr/ucb/echo -n'
27126 else
27127 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27128 as_echo_n_body='eval
27129 arg=$1;
27130 case $arg in #(
27131 *"$as_nl"*)
27132 expr "X$arg" : "X\\(.*\\)$as_nl";
27133 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27134 esac;
27135 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27136 '
27137 export as_echo_n_body
27138 as_echo_n='sh -c $as_echo_n_body as_echo'
27139 fi
27140 export as_echo_body
27141 as_echo='sh -c $as_echo_body as_echo'
27142fi
27143
27144# The user is always right.
27145if test "${PATH_SEPARATOR+set}" != set; then
27146 PATH_SEPARATOR=:
27147 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27148 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27149 PATH_SEPARATOR=';'
27150 }
4ee9c684 27151fi
27152
27153
cd9a469c 27154# IFS
27155# We need space, tab and new line, in precisely that order. Quoting is
27156# there to prevent editors from complaining about space-tab.
27157# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27158# splitting by setting IFS to empty value.)
27159IFS=" "" $as_nl"
27160
27161# Find who we are. Look in the path if we contain no directory separator.
f00f02a3 27162as_myself=
cd9a469c 27163case $0 in #((
27164 *[\\/]* ) as_myself=$0 ;;
27165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27166for as_dir in $PATH
27167do
27168 IFS=$as_save_IFS
27169 test -z "$as_dir" && as_dir=.
27170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27171 done
27172IFS=$as_save_IFS
27173
27174 ;;
27175esac
27176# We did not find ourselves, most probably we were run as `sh COMMAND'
27177# in which case we are not to be found in the path.
27178if test "x$as_myself" = x; then
27179 as_myself=$0
27180fi
27181if test ! -f "$as_myself"; then
27182 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27183 exit 1
27184fi
27185
27186# Unset variables that we do not need and which cause bugs (e.g. in
27187# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27188# suppresses any "Segmentation fault" message there. '((' could
27189# trigger a bug in pdksh 5.2.14.
27190for as_var in BASH_ENV ENV MAIL MAILPATH
27191do eval test x\${$as_var+set} = xset \
27192 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27193done
4ee9c684 27194PS1='$ '
27195PS2='> '
27196PS4='+ '
27197
27198# NLS nuisances.
cd9a469c 27199LC_ALL=C
27200export LC_ALL
27201LANGUAGE=C
27202export LANGUAGE
27203
27204# CDPATH.
27205(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27206
27207
f00f02a3 27208# as_fn_error STATUS ERROR [LINENO LOG_FD]
27209# ----------------------------------------
cd9a469c 27210# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27211# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 27212# script with STATUS, using 1 if that was 0.
cd9a469c 27213as_fn_error ()
27214{
f00f02a3 27215 as_status=$1; test $as_status -eq 0 && as_status=1
27216 if test "$4"; then
27217 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27218 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4ee9c684 27219 fi
f00f02a3 27220 $as_echo "$as_me: error: $2" >&2
cd9a469c 27221 as_fn_exit $as_status
27222} # as_fn_error
27223
27224
27225# as_fn_set_status STATUS
27226# -----------------------
27227# Set $? to STATUS, without forking.
27228as_fn_set_status ()
27229{
27230 return $1
27231} # as_fn_set_status
27232
27233# as_fn_exit STATUS
27234# -----------------
27235# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27236as_fn_exit ()
27237{
27238 set +e
27239 as_fn_set_status $1
27240 exit $1
27241} # as_fn_exit
27242
27243# as_fn_unset VAR
27244# ---------------
27245# Portably unset VAR.
27246as_fn_unset ()
27247{
27248 { eval $1=; unset $1;}
27249}
27250as_unset=as_fn_unset
27251# as_fn_append VAR VALUE
27252# ----------------------
27253# Append the text in VALUE to the end of the definition contained in VAR. Take
27254# advantage of any shell optimizations that allow amortized linear growth over
27255# repeated appends, instead of the typical quadratic growth present in naive
27256# implementations.
27257if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27258 eval 'as_fn_append ()
27259 {
27260 eval $1+=\$2
27261 }'
27262else
27263 as_fn_append ()
27264 {
27265 eval $1=\$$1\$2
27266 }
27267fi # as_fn_append
27268
27269# as_fn_arith ARG...
27270# ------------------
27271# Perform arithmetic evaluation on the ARGs, and store the result in the
27272# global $as_val. Take advantage of shells that can avoid forks. The arguments
27273# must be portable across $(()) and expr.
27274if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27275 eval 'as_fn_arith ()
27276 {
27277 as_val=$(( $* ))
27278 }'
27279else
27280 as_fn_arith ()
27281 {
27282 as_val=`expr "$@" || test $? -eq 1`
27283 }
27284fi # as_fn_arith
4ee9c684 27285
cd9a469c 27286
27287if expr a : '\(a\)' >/dev/null 2>&1 &&
27288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4ee9c684 27289 as_expr=expr
27290else
27291 as_expr=false
27292fi
27293
cd9a469c 27294if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4ee9c684 27295 as_basename=basename
27296else
27297 as_basename=false
27298fi
27299
cd9a469c 27300if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27301 as_dirname=dirname
27302else
27303 as_dirname=false
27304fi
4ee9c684 27305
cd9a469c 27306as_me=`$as_basename -- "$0" ||
4ee9c684 27307$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27308 X"$0" : 'X\(//\)$' \| \
cd9a469c 27309 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27310$as_echo X/"$0" |
27311 sed '/^.*\/\([^/][^/]*\)\/*$/{
27312 s//\1/
27313 q
27314 }
27315 /^X\/\(\/\/\)$/{
27316 s//\1/
27317 q
27318 }
27319 /^X\/\(\/\).*/{
27320 s//\1/
27321 q
27322 }
27323 s/.*/./; q'`
82eaf560 27324
82eaf560 27325# Avoid depending upon Character Ranges.
27326as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27327as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27328as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27329as_cr_digits='0123456789'
27330as_cr_alnum=$as_cr_Letters$as_cr_digits
27331
cd9a469c 27332ECHO_C= ECHO_N= ECHO_T=
27333case `echo -n x` in #(((((
27334-n*)
27335 case `echo 'xy\c'` in
27336 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27337 xy) ECHO_C='\c';;
27338 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27339 ECHO_T=' ';;
27340 esac;;
27341*)
27342 ECHO_N='-n';;
4ee9c684 27343esac
27344
cd9a469c 27345rm -f conf$$ conf$$.exe conf$$.file
27346if test -d conf$$.dir; then
27347 rm -f conf$$.dir/conf$$.file
4ee9c684 27348else
cd9a469c 27349 rm -f conf$$.dir
27350 mkdir conf$$.dir 2>/dev/null
4ee9c684 27351fi
cd9a469c 27352if (echo >conf$$.file) 2>/dev/null; then
27353 if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 27354 as_ln_s='ln -s'
cd9a469c 27355 # ... but there are two gotchas:
27356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 27358 # In both cases, we have to default to `cp -pR'.
cd9a469c 27359 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 27360 as_ln_s='cp -pR'
cd9a469c 27361 elif ln conf$$.file conf$$ 2>/dev/null; then
27362 as_ln_s=ln
27363 else
f00f02a3 27364 as_ln_s='cp -pR'
82eaf560 27365 fi
4ee9c684 27366else
f00f02a3 27367 as_ln_s='cp -pR'
4ee9c684 27368fi
cd9a469c 27369rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27370rmdir conf$$.dir 2>/dev/null
27371
27372
27373# as_fn_mkdir_p
27374# -------------
27375# Create "$as_dir" as a directory, including parents if necessary.
27376as_fn_mkdir_p ()
27377{
27378
27379 case $as_dir in #(
27380 -*) as_dir=./$as_dir;;
27381 esac
27382 test -d "$as_dir" || eval $as_mkdir_p || {
27383 as_dirs=
27384 while :; do
27385 case $as_dir in #(
27386 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27387 *) as_qdir=$as_dir;;
27388 esac
27389 as_dirs="'$as_qdir' $as_dirs"
27390 as_dir=`$as_dirname -- "$as_dir" ||
27391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27392 X"$as_dir" : 'X\(//\)[^/]' \| \
27393 X"$as_dir" : 'X\(//\)$' \| \
27394 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27395$as_echo X"$as_dir" |
27396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27397 s//\1/
27398 q
27399 }
27400 /^X\(\/\/\)[^/].*/{
27401 s//\1/
27402 q
27403 }
27404 /^X\(\/\/\)$/{
27405 s//\1/
27406 q
27407 }
27408 /^X\(\/\).*/{
27409 s//\1/
27410 q
27411 }
27412 s/.*/./; q'`
27413 test -d "$as_dir" && break
27414 done
27415 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 27416 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cd9a469c 27417
4ee9c684 27418
cd9a469c 27419} # as_fn_mkdir_p
4ee9c684 27420if mkdir -p . 2>/dev/null; then
cd9a469c 27421 as_mkdir_p='mkdir -p "$as_dir"'
4ee9c684 27422else
27423 test -d ./-p && rmdir ./-p
27424 as_mkdir_p=false
27425fi
27426
f00f02a3 27427
27428# as_fn_executable_p FILE
27429# -----------------------
27430# Test if FILE is an executable regular file.
27431as_fn_executable_p ()
27432{
27433 test -f "$1" && test -x "$1"
27434} # as_fn_executable_p
27435as_test_x='test -x'
27436as_executable_p=as_fn_executable_p
4ee9c684 27437
27438# Sed expression to map a string onto a valid CPP name.
27439as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27440
27441# Sed expression to map a string onto a valid variable name.
27442as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27443
27444
4ee9c684 27445exec 6>&1
cd9a469c 27446## ----------------------------------- ##
27447## Main body of $CONFIG_STATUS script. ##
27448## ----------------------------------- ##
27449_ASEOF
27450test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27451
27452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27453# Save the log message, to keep $0 and so on meaningful, and to
4ee9c684 27454# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 27455# values after options handling.
27456ac_log="
76c0a846 27457This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
f00f02a3 27458generated by GNU Autoconf 2.69. Invocation command line was
4ee9c684 27459
27460 CONFIG_FILES = $CONFIG_FILES
27461 CONFIG_HEADERS = $CONFIG_HEADERS
27462 CONFIG_LINKS = $CONFIG_LINKS
27463 CONFIG_COMMANDS = $CONFIG_COMMANDS
27464 $ $0 $@
27465
cd9a469c 27466on `(hostname || uname -n) 2>/dev/null | sed 1q`
27467"
27468
4ee9c684 27469_ACEOF
27470
cd9a469c 27471case $ac_config_files in *"
27472"*) set x $ac_config_files; shift; ac_config_files=$*;;
27473esac
a106dabe 27474
cd9a469c 27475case $ac_config_headers in *"
27476"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27477esac
82eaf560 27478
82eaf560 27479
cd9a469c 27480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27481# Files that config.status was made for.
27482config_files="$ac_config_files"
27483config_headers="$ac_config_headers"
27484config_commands="$ac_config_commands"
4ee9c684 27485
cd9a469c 27486_ACEOF
82eaf560 27487
cd9a469c 27488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4ee9c684 27489ac_cs_usage="\
cd9a469c 27490\`$as_me' instantiates files and other configuration actions
27491from templates according to the current configuration. Unless the files
27492and actions are specified as TAGs, all are instantiated by default.
4ee9c684 27493
cd9a469c 27494Usage: $0 [OPTION]... [TAG]...
4ee9c684 27495
27496 -h, --help print this help, then exit
cd9a469c 27497 -V, --version print version number and configuration settings, then exit
f00f02a3 27498 --config print configuration, then exit
cd9a469c 27499 -q, --quiet, --silent
27500 do not print progress messages
4ee9c684 27501 -d, --debug don't remove temporary files
27502 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 27503 --file=FILE[:TEMPLATE]
27504 instantiate the configuration file FILE
27505 --header=FILE[:TEMPLATE]
27506 instantiate the configuration header FILE
4ee9c684 27507
27508Configuration files:
27509$config_files
27510
27511Configuration headers:
27512$config_headers
27513
27514Configuration commands:
27515$config_commands
27516
cd9a469c 27517Report bugs to the package provider.
27518GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27519General help using GNU software: <http://www.gnu.org/gethelp/>."
82eaf560 27520
cd9a469c 27521_ACEOF
27522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 27523ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4ee9c684 27524ac_cs_version="\\
76c0a846 27525GNU Fortran Runtime Library config.status 0.3
f00f02a3 27526configured by $0, generated by GNU Autoconf 2.69,
27527 with options \\"\$ac_cs_config\\"
4ee9c684 27528
f00f02a3 27529Copyright (C) 2012 Free Software Foundation, Inc.
4ee9c684 27530This config.status script is free software; the Free Software Foundation
27531gives unlimited permission to copy, distribute and modify it."
cd9a469c 27532
27533ac_pwd='$ac_pwd'
27534srcdir='$srcdir'
27535INSTALL='$INSTALL'
27536MKDIR_P='$MKDIR_P'
27537AWK='$AWK'
27538test -n "\$AWK" || AWK=awk
4ee9c684 27539_ACEOF
27540
cd9a469c 27541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27542# The default lists apply if the user does not specify any file.
4ee9c684 27543ac_need_defaults=:
27544while test $# != 0
27545do
27546 case $1 in
f00f02a3 27547 --*=?*)
cd9a469c 27548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4ee9c684 27550 ac_shift=:
27551 ;;
f00f02a3 27552 --*=)
27553 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27554 ac_optarg=
27555 ac_shift=:
27556 ;;
cd9a469c 27557 *)
4ee9c684 27558 ac_option=$1
27559 ac_optarg=$2
27560 ac_shift=shift
27561 ;;
4ee9c684 27562 esac
27563
27564 case $ac_option in
27565 # Handling of the options.
4ee9c684 27566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27567 ac_cs_recheck=: ;;
cd9a469c 27568 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27569 $as_echo "$ac_cs_version"; exit ;;
f00f02a3 27570 --config | --confi | --conf | --con | --co | --c )
27571 $as_echo "$ac_cs_config"; exit ;;
cd9a469c 27572 --debug | --debu | --deb | --de | --d | -d )
4ee9c684 27573 debug=: ;;
27574 --file | --fil | --fi | --f )
27575 $ac_shift
cd9a469c 27576 case $ac_optarg in
27577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f00f02a3 27578 '') as_fn_error $? "missing file argument" ;;
cd9a469c 27579 esac
27580 as_fn_append CONFIG_FILES " '$ac_optarg'"
4ee9c684 27581 ac_need_defaults=false;;
27582 --header | --heade | --head | --hea )
27583 $ac_shift
cd9a469c 27584 case $ac_optarg in
27585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27586 esac
27587 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4ee9c684 27588 ac_need_defaults=false;;
cd9a469c 27589 --he | --h)
27590 # Conflict between --help and --header
f00f02a3 27591 as_fn_error $? "ambiguous option: \`$1'
cd9a469c 27592Try \`$0 --help' for more information.";;
27593 --help | --hel | -h )
27594 $as_echo "$ac_cs_usage"; exit ;;
4ee9c684 27595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27596 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27597 ac_cs_silent=: ;;
27598
27599 # This is an error.
f00f02a3 27600 -*) as_fn_error $? "unrecognized option: \`$1'
cd9a469c 27601Try \`$0 --help' for more information." ;;
4ee9c684 27602
cd9a469c 27603 *) as_fn_append ac_config_targets " $1"
27604 ac_need_defaults=false ;;
4ee9c684 27605
27606 esac
27607 shift
27608done
27609
27610ac_configure_extra_args=
27611
27612if $ac_cs_silent; then
27613 exec 6>/dev/null
27614 ac_configure_extra_args="$ac_configure_extra_args --silent"
27615fi
27616
27617_ACEOF
cd9a469c 27618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4ee9c684 27619if \$ac_cs_recheck; then
f00f02a3 27620 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cd9a469c 27621 shift
27622 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27623 CONFIG_SHELL='$SHELL'
27624 export CONFIG_SHELL
27625 exec "\$@"
4ee9c684 27626fi
27627
542f9784 27628_ACEOF
cd9a469c 27629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27630exec 5>>config.log
27631{
27632 echo
27633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27634## Running $as_me. ##
27635_ASBOX
27636 $as_echo "$ac_log"
27637} >&5
542f9784 27638
cd9a469c 27639_ACEOF
27640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
542f9784 27641#
cd9a469c 27642# INIT-COMMANDS
542f9784 27643#
27644
542f9784 27645srcdir="$srcdir"
27646host="$host"
27647target="$target"
27648with_multisubdir="$with_multisubdir"
27649with_multisrctop="$with_multisrctop"
27650with_target_subdir="$with_target_subdir"
27651ac_configure_args="${multilib_arg} ${ac_configure_args}"
27652multi_basedir="$multi_basedir"
27653CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27654CC="$CC"
eaae6999 27655CXX="$CXX"
27656GFORTRAN="$GFORTRAN"
f00f02a3 27657GDC="$GDC"
542f9784 27658AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27659
27660
27661# The HP-UX ksh and POSIX shell print the target directory to stdout
27662# if CDPATH is set.
27663(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27664
27665sed_quote_subst='$sed_quote_subst'
27666double_quote_subst='$double_quote_subst'
27667delay_variable_subst='$delay_variable_subst'
18ce903b 27668SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27669Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27670GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27671EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27672FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27673SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27674ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27675LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
e6408286 27676macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27677macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27678enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27679enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27680pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27681enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
e6408286 27682host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27683host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27684host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27685build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27686build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27687build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
e6408286 27688NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27689LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27690max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27691ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27692exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27693lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27694lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27695lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27696reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27697reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27698OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27699deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27700file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27701AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27702AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27703STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27704RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27705old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27706old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27707old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27708lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27709CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27710CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27711compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27712GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27713lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27714lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27715lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27716lt_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"`'
27717objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27718MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27719lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27720lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27721lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27722lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27723lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27724need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27725DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27726NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27727LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27728OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27729OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27730libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27731shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27732extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27733archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27734enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27735export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27736whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27737compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27738old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27739old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27740archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27741archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27742module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27743module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27744with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27745allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27746no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27747hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27748hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27749hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27750hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27751hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27752hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27753hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27754hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27755inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27756link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27757fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27758always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27759export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27760exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27761include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27762prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27763file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27764variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27765need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27766need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27767version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27768runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27769shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27770shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27771libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27772library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27773soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27774install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27775postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27776postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27777finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27778finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27779hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27780sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27781sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27782hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27783enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27784enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27785enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27786old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27787striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27788compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27789predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27790postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27791predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27792postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27793compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27794LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27795reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27796reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27797old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27798compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27799GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27800lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27801lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27802lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27803lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27804lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27805archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27806enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27807export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27808whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27809compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27810old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27811old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27812archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27813archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27814module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27815module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27816with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27817allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27818no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27819hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27820hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27821hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27822hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27823hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27824hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27825hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27826hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27827inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27828link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27829fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27830always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27831export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27832exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27833include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27834prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27835file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27836hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27837compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27838predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27839postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27840predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27841postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27842compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
542f9784 27843
27844LTCC='$LTCC'
27845LTCFLAGS='$LTCFLAGS'
27846compiler='$compiler_DEFAULT'
27847
e6408286 27848# A function that is used when there is no print builtin or printf.
27849func_fallback_echo ()
27850{
27851 eval 'cat <<_LTECHO_EOF
27852\$1
27853_LTECHO_EOF'
27854}
27855
542f9784 27856# Quote evaled strings.
18ce903b 27857for var in SED \
542f9784 27858GREP \
27859EGREP \
27860FGREP \
18ce903b 27861SHELL \
27862ECHO \
542f9784 27863LD \
27864NM \
27865LN_S \
27866lt_SP2NL \
27867lt_NL2SP \
27868reload_flag \
00aafda4 27869OBJDUMP \
542f9784 27870deplibs_check_method \
27871file_magic_cmd \
27872AR \
27873AR_FLAGS \
27874STRIP \
27875RANLIB \
27876CC \
27877CFLAGS \
27878compiler \
27879lt_cv_sys_global_symbol_pipe \
27880lt_cv_sys_global_symbol_to_cdecl \
27881lt_cv_sys_global_symbol_to_c_name_address \
00aafda4 27882lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
542f9784 27883lt_prog_compiler_no_builtin_flag \
27884lt_prog_compiler_wl \
27885lt_prog_compiler_pic \
27886lt_prog_compiler_static \
27887lt_cv_prog_compiler_c_o \
27888need_locks \
00aafda4 27889DSYMUTIL \
27890NMEDIT \
27891LIPO \
27892OTOOL \
27893OTOOL64 \
542f9784 27894shrext_cmds \
27895export_dynamic_flag_spec \
27896whole_archive_flag_spec \
27897compiler_needs_object \
27898with_gnu_ld \
27899allow_undefined_flag \
27900no_undefined_flag \
27901hardcode_libdir_flag_spec \
27902hardcode_libdir_flag_spec_ld \
27903hardcode_libdir_separator \
27904fix_srcfile_path \
27905exclude_expsyms \
27906include_expsyms \
27907file_list_spec \
27908variables_saved_for_relink \
27909libname_spec \
27910library_names_spec \
27911soname_spec \
e6408286 27912install_override_mode \
542f9784 27913finish_eval \
27914old_striplib \
27915striplib \
00aafda4 27916compiler_lib_search_dirs \
542f9784 27917predep_objects \
27918postdep_objects \
27919predeps \
27920postdeps \
27921compiler_lib_search_path \
27922LD_FC \
e6408286 27923reload_flag_FC \
542f9784 27924compiler_FC \
27925lt_prog_compiler_no_builtin_flag_FC \
27926lt_prog_compiler_wl_FC \
27927lt_prog_compiler_pic_FC \
27928lt_prog_compiler_static_FC \
27929lt_cv_prog_compiler_c_o_FC \
27930export_dynamic_flag_spec_FC \
27931whole_archive_flag_spec_FC \
27932compiler_needs_object_FC \
27933with_gnu_ld_FC \
27934allow_undefined_flag_FC \
27935no_undefined_flag_FC \
27936hardcode_libdir_flag_spec_FC \
27937hardcode_libdir_flag_spec_ld_FC \
27938hardcode_libdir_separator_FC \
27939fix_srcfile_path_FC \
27940exclude_expsyms_FC \
27941include_expsyms_FC \
27942file_list_spec_FC \
00aafda4 27943compiler_lib_search_dirs_FC \
542f9784 27944predep_objects_FC \
27945postdep_objects_FC \
27946predeps_FC \
27947postdeps_FC \
27948compiler_lib_search_path_FC; do
e6408286 27949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 27950 *[\\\\\\\`\\"\\\$]*)
e6408286 27951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
542f9784 27952 ;;
27953 *)
27954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27955 ;;
27956 esac
27957done
27958
27959# Double-quote double-evaled strings.
27960for var in reload_cmds \
27961old_postinstall_cmds \
27962old_postuninstall_cmds \
27963old_archive_cmds \
27964extract_expsyms_cmds \
27965old_archive_from_new_cmds \
27966old_archive_from_expsyms_cmds \
27967archive_cmds \
27968archive_expsym_cmds \
27969module_cmds \
27970module_expsym_cmds \
27971export_symbols_cmds \
27972prelink_cmds \
27973postinstall_cmds \
27974postuninstall_cmds \
27975finish_cmds \
27976sys_lib_search_path_spec \
27977sys_lib_dlsearch_path_spec \
e6408286 27978reload_cmds_FC \
542f9784 27979old_archive_cmds_FC \
27980old_archive_from_new_cmds_FC \
27981old_archive_from_expsyms_cmds_FC \
27982archive_cmds_FC \
27983archive_expsym_cmds_FC \
27984module_cmds_FC \
27985module_expsym_cmds_FC \
27986export_symbols_cmds_FC \
27987prelink_cmds_FC; do
e6408286 27988 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 27989 *[\\\\\\\`\\"\\\$]*)
e6408286 27990 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
542f9784 27991 ;;
27992 *)
27993 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27994 ;;
27995 esac
27996done
27997
542f9784 27998ac_aux_dir='$ac_aux_dir'
27999xsi_shell='$xsi_shell'
28000lt_shell_append='$lt_shell_append'
28001
28002# See if we are running on zsh, and set the options which allow our
28003# commands through without removal of \ escapes INIT.
28004if test -n "\${ZSH_VERSION+set}" ; then
28005 setopt NO_GLOB_SUBST
28006fi
28007
28008
28009 PACKAGE='$PACKAGE'
28010 VERSION='$VERSION'
28011 TIMESTAMP='$TIMESTAMP'
28012 RM='$RM'
28013 ofile='$ofile'
28014
28015
4ee9c684 28016
4ee9c684 28017
a106dabe 28018
4ee9c684 28019
2069752c 28020GCC="$GCC"
28021CC="$CC"
28022acx_cv_header_stdint="$acx_cv_header_stdint"
28023acx_cv_type_int8_t="$acx_cv_type_int8_t"
28024acx_cv_type_int16_t="$acx_cv_type_int16_t"
28025acx_cv_type_int32_t="$acx_cv_type_int32_t"
28026acx_cv_type_int64_t="$acx_cv_type_int64_t"
28027acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28028ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28029ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28030ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28031ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28032ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
56c15991 28033ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28034ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
2069752c 28035ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
56c15991 28036
28037
4ee9c684 28038_ACEOF
28039
cd9a469c 28040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ff4425cf 28041
cd9a469c 28042# Handling of arguments.
4ee9c684 28043for ac_config_target in $ac_config_targets
28044do
cd9a469c 28045 case $ac_config_target in
28046 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28047 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28048 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28049 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28050 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28051 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
87969c8c 28052 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
cd9a469c 28053
f00f02a3 28054 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4ee9c684 28055 esac
28056done
28057
cd9a469c 28058
4ee9c684 28059# If the user did not use the arguments to specify the items to instantiate,
28060# then the envvar interface is used. Set only those that are not.
28061# We use the long form for the default assignment because of an extremely
28062# bizarre bug on SunOS 4.1.3.
28063if $ac_need_defaults; then
28064 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28065 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28066 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28067fi
28068
28069# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 28070# simply because there is no reason against having it here, and in addition,
4ee9c684 28071# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 28072# Hook for its removal unless debugging.
28073# Note that there is a small window in which the directory will not be cleaned:
28074# after its creation but before its name has been assigned to `$tmp'.
4ee9c684 28075$debug ||
28076{
f00f02a3 28077 tmp= ac_tmp=
cd9a469c 28078 trap 'exit_status=$?
f00f02a3 28079 : "${ac_tmp:=$tmp}"
28080 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cd9a469c 28081' 0
28082 trap 'as_fn_exit 1' 1 2 13 15
4ee9c684 28083}
4ee9c684 28084# Create a (secure) tmp directory for tmp files.
28085
28086{
cd9a469c 28087 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f00f02a3 28088 test -d "$tmp"
4ee9c684 28089} ||
28090{
cd9a469c 28091 tmp=./conf$$-$RANDOM
28092 (umask 077 && mkdir "$tmp")
f00f02a3 28093} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28094ac_tmp=$tmp
cd9a469c 28095
28096# Set up the scripts for CONFIG_FILES section.
28097# No need to generate them if there are no CONFIG_FILES.
28098# This happens for instance with `./config.status config.h'.
28099if test -n "$CONFIG_FILES"; then
28100
28101
28102ac_cr=`echo X | tr X '\015'`
28103# On cygwin, bash can eat \r inside `` if the user requested igncr.
28104# But we know of no other shell where ac_cr would be empty at this
28105# point, so we can use a bashism as a fallback.
28106if test "x$ac_cr" = x; then
28107 eval ac_cr=\$\'\\r\'
28108fi
28109ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28110if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
f00f02a3 28111 ac_cs_awk_cr='\\r'
cd9a469c 28112else
28113 ac_cs_awk_cr=$ac_cr
28114fi
28115
f00f02a3 28116echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cd9a469c 28117_ACEOF
28118
28119
4ee9c684 28120{
cd9a469c 28121 echo "cat >conf$$subs.awk <<_ACEOF" &&
28122 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28123 echo "_ACEOF"
28124} >conf$$subs.sh ||
f00f02a3 28125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28126ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cd9a469c 28127ac_delim='%!_!# '
28128for ac_last_try in false false false false false :; do
28129 . ./conf$$subs.sh ||
f00f02a3 28130 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 28131
28132 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28133 if test $ac_delim_n = $ac_delim_num; then
28134 break
28135 elif $ac_last_try; then
f00f02a3 28136 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cd9a469c 28137 else
28138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28139 fi
28140done
28141rm -f conf$$subs.sh
28142
28143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 28144cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cd9a469c 28145_ACEOF
28146sed -n '
28147h
28148s/^/S["/; s/!.*/"]=/
28149p
28150g
28151s/^[^!]*!//
28152:repl
28153t repl
28154s/'"$ac_delim"'$//
28155t delim
28156:nl
28157h
f00f02a3 28158s/\(.\{148\}\)..*/\1/
cd9a469c 28159t more1
28160s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28161p
28162n
28163b repl
28164:more1
28165s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28166p
28167g
28168s/.\{148\}//
28169t nl
28170:delim
28171h
f00f02a3 28172s/\(.\{148\}\)..*/\1/
cd9a469c 28173t more2
28174s/["\\]/\\&/g; s/^/"/; s/$/"/
28175p
28176b
28177:more2
28178s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28179p
28180g
28181s/.\{148\}//
28182t delim
28183' <conf$$subs.awk | sed '
28184/^[^""]/{
28185 N
28186 s/\n//
28187}
28188' >>$CONFIG_STATUS || ac_write_fail=1
28189rm -f conf$$subs.awk
28190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28191_ACAWK
f00f02a3 28192cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cd9a469c 28193 for (key in S) S_is_set[key] = 1
28194 FS = "\a"
28195
28196}
28197{
28198 line = $ 0
28199 nfields = split(line, field, "@")
28200 substed = 0
28201 len = length(field[1])
28202 for (i = 2; i < nfields; i++) {
28203 key = field[i]
28204 keylen = length(key)
28205 if (S_is_set[key]) {
28206 value = S[key]
28207 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28208 len += length(value) + length(field[++i])
28209 substed = 1
28210 } else
28211 len += 1 + keylen
28212 }
28213
28214 print line
4ee9c684 28215}
28216
cd9a469c 28217_ACAWK
28218_ACEOF
28219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28220if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28221 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28222else
28223 cat
f00f02a3 28224fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28225 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
82eaf560 28226_ACEOF
28227
f00f02a3 28228# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28229# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cd9a469c 28230# trailing colons and then remove the whole line if VPATH becomes empty
28231# (actually we leave an empty line to preserve line numbers).
28232if test "x$srcdir" = x.; then
f00f02a3 28233 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28234h
28235s///
28236s/^/:/
28237s/[ ]*$/:/
28238s/:\$(srcdir):/:/g
28239s/:\${srcdir}:/:/g
28240s/:@srcdir@:/:/g
28241s/^:*//
cd9a469c 28242s/:*$//
f00f02a3 28243x
28244s/\(=[ ]*\).*/\1/
28245G
28246s/\n//
cd9a469c 28247s/^[^=]*=[ ]*$//
28248}'
28249fi
82eaf560 28250
cd9a469c 28251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28252fi # test -n "$CONFIG_FILES"
4ee9c684 28253
cd9a469c 28254# Set up the scripts for CONFIG_HEADERS section.
28255# No need to generate them if there are no CONFIG_HEADERS.
28256# This happens for instance with `./config.status Makefile'.
28257if test -n "$CONFIG_HEADERS"; then
f00f02a3 28258cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cd9a469c 28259BEGIN {
28260_ACEOF
28261
28262# Transform confdefs.h into an awk script `defines.awk', embedded as
28263# here-document in config.status, that substitutes the proper values into
28264# config.h.in to produce config.h.
28265
28266# Create a delimiter string that does not exist in confdefs.h, to ease
28267# handling of long lines.
28268ac_delim='%!_!# '
28269for ac_last_try in false false :; do
f00f02a3 28270 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28271 if test -z "$ac_tt"; then
cd9a469c 28272 break
28273 elif $ac_last_try; then
f00f02a3 28274 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cd9a469c 28275 else
28276 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ff4425cf 28277 fi
cd9a469c 28278done
ce1a737c 28279
cd9a469c 28280# For the awk script, D is an array of macro values keyed by name,
28281# likewise P contains macro parameters if any. Preserve backslash
28282# newline sequences.
28283
28284ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28285sed -n '
28286s/.\{148\}/&'"$ac_delim"'/g
28287t rset
28288:rset
28289s/^[ ]*#[ ]*define[ ][ ]*/ /
28290t def
28291d
28292:def
28293s/\\$//
28294t bsnl
28295s/["\\]/\\&/g
28296s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28297D["\1"]=" \3"/p
28298s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28299d
28300:bsnl
28301s/["\\]/\\&/g
28302s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28303D["\1"]=" \3\\\\\\n"\\/p
28304t cont
28305s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28306t cont
28307d
28308:cont
28309n
28310s/.\{148\}/&'"$ac_delim"'/g
28311t clear
28312:clear
28313s/\\$//
28314t bsnlc
28315s/["\\]/\\&/g; s/^/"/; s/$/"/p
28316d
28317:bsnlc
28318s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28319b cont
28320' <confdefs.h | sed '
28321s/'"$ac_delim"'/"\\\
28322"/g' >>$CONFIG_STATUS || ac_write_fail=1
28323
28324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28325 for (key in D) D_is_set[key] = 1
28326 FS = "\a"
28327}
28328/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28329 line = \$ 0
28330 split(line, arg, " ")
28331 if (arg[1] == "#") {
28332 defundef = arg[2]
28333 mac1 = arg[3]
28334 } else {
28335 defundef = substr(arg[1], 2)
28336 mac1 = arg[2]
28337 }
28338 split(mac1, mac2, "(") #)
28339 macro = mac2[1]
28340 prefix = substr(line, 1, index(line, defundef) - 1)
28341 if (D_is_set[macro]) {
28342 # Preserve the white space surrounding the "#".
28343 print prefix "define", macro P[macro] D[macro]
28344 next
28345 } else {
28346 # Replace #undef with comments. This is necessary, for example,
28347 # in the case of _POSIX_SOURCE, which is predefined and required
28348 # on some systems where configure will not decide to define it.
28349 if (defundef == "undef") {
28350 print "/*", prefix defundef, macro, "*/"
28351 next
28352 }
28353 }
28354}
28355{ print }
28356_ACAWK
4ee9c684 28357_ACEOF
cd9a469c 28358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f00f02a3 28359 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cd9a469c 28360fi # test -n "$CONFIG_HEADERS"
28361
28362
28363eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28364shift
28365for ac_tag
28366do
28367 case $ac_tag in
28368 :[FHLC]) ac_mode=$ac_tag; continue;;
28369 esac
28370 case $ac_mode$ac_tag in
28371 :[FHL]*:*);;
f00f02a3 28372 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cd9a469c 28373 :[FH]-) ac_tag=-:-;;
28374 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28375 esac
28376 ac_save_IFS=$IFS
28377 IFS=:
28378 set x $ac_tag
28379 IFS=$ac_save_IFS
28380 shift
28381 ac_file=$1
28382 shift
28383
28384 case $ac_mode in
28385 :L) ac_source=$1;;
28386 :[FH])
28387 ac_file_inputs=
28388 for ac_f
28389 do
28390 case $ac_f in
f00f02a3 28391 -) ac_f="$ac_tmp/stdin";;
cd9a469c 28392 *) # Look for the file first in the build tree, then in the source tree
28393 # (if the path is not absolute). The absolute path cannot be DOS-style,
28394 # because $ac_f cannot contain `:'.
28395 test -f "$ac_f" ||
28396 case $ac_f in
28397 [\\/$]*) false;;
28398 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28399 esac ||
f00f02a3 28400 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cd9a469c 28401 esac
28402 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28403 as_fn_append ac_file_inputs " '$ac_f'"
28404 done
28405
28406 # Let's still pretend it is `configure' which instantiates (i.e., don't
28407 # use $as_me), people would be surprised to read:
28408 # /* config.h. Generated by config.status. */
28409 configure_input='Generated from '`
28410 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28411 `' by configure.'
28412 if test x"$ac_file" != x-; then
28413 configure_input="$ac_file. $configure_input"
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28415$as_echo "$as_me: creating $ac_file" >&6;}
28416 fi
28417 # Neutralize special characters interpreted by sed in replacement strings.
28418 case $configure_input in #(
28419 *\&* | *\|* | *\\* )
28420 ac_sed_conf_input=`$as_echo "$configure_input" |
28421 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28422 *) ac_sed_conf_input=$configure_input;;
28423 esac
28424
28425 case $ac_tag in
f00f02a3 28426 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cd9a469c 28428 esac
28429 ;;
4ee9c684 28430 esac
28431
cd9a469c 28432 ac_dir=`$as_dirname -- "$ac_file" ||
4ee9c684 28433$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28434 X"$ac_file" : 'X\(//\)[^/]' \| \
28435 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 28436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28437$as_echo X"$ac_file" |
28438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28439 s//\1/
28440 q
28441 }
28442 /^X\(\/\/\)[^/].*/{
28443 s//\1/
28444 q
28445 }
28446 /^X\(\/\/\)$/{
28447 s//\1/
28448 q
28449 }
28450 /^X\(\/\).*/{
28451 s//\1/
28452 q
28453 }
28454 s/.*/./; q'`
28455 as_dir="$ac_dir"; as_fn_mkdir_p
4ee9c684 28456 ac_builddir=.
28457
cd9a469c 28458case "$ac_dir" in
28459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28460*)
28461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28462 # A ".." for each directory in $ac_dir_suffix.
28463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28464 case $ac_top_builddir_sub in
28465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28467 esac ;;
28468esac
28469ac_abs_top_builddir=$ac_pwd
28470ac_abs_builddir=$ac_pwd$ac_dir_suffix
28471# for backward compatibility:
28472ac_top_builddir=$ac_top_build_prefix
4ee9c684 28473
28474case $srcdir in
cd9a469c 28475 .) # We are building in place.
4ee9c684 28476 ac_srcdir=.
cd9a469c 28477 ac_top_srcdir=$ac_top_builddir_sub
28478 ac_abs_top_srcdir=$ac_pwd ;;
28479 [\\/]* | ?:[\\/]* ) # Absolute name.
4ee9c684 28480 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 28481 ac_top_srcdir=$srcdir
28482 ac_abs_top_srcdir=$srcdir ;;
28483 *) # Relative name.
28484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28485 ac_top_srcdir=$ac_top_build_prefix$srcdir
28486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4ee9c684 28487esac
cd9a469c 28488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4ee9c684 28489
4ee9c684 28490
cd9a469c 28491 case $ac_mode in
28492 :F)
28493 #
28494 # CONFIG_FILE
28495 #
4ee9c684 28496
28497 case $INSTALL in
28498 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 28499 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28500 esac
28501 ac_MKDIR_P=$MKDIR_P
28502 case $MKDIR_P in
28503 [\\/$]* | ?:[\\/]* ) ;;
28504 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4ee9c684 28505 esac
cd9a469c 28506_ACEOF
4ee9c684 28507
cd9a469c 28508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28509# If the template does not know about datarootdir, expand it.
28510# FIXME: This hack should be removed a few years after 2.60.
28511ac_datarootdir_hack=; ac_datarootdir_seen=
28512ac_sed_dataroot='
28513/datarootdir/ {
28514 p
28515 q
28516}
28517/@datadir@/p
28518/@docdir@/p
28519/@infodir@/p
28520/@localedir@/p
28521/@mandir@/p'
28522case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28523*datarootdir*) ac_datarootdir_seen=yes;;
28524*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28526$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28527_ACEOF
28528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28529 ac_datarootdir_hack='
28530 s&@datadir@&$datadir&g
28531 s&@docdir@&$docdir&g
28532 s&@infodir@&$infodir&g
28533 s&@localedir@&$localedir&g
28534 s&@mandir@&$mandir&g
28535 s&\\\${datarootdir}&$datarootdir&g' ;;
28536esac
a106dabe 28537_ACEOF
cd9a469c 28538
28539# Neutralize VPATH when `$srcdir' = `.'.
28540# Shell code in configure.ac might set extrasub.
28541# FIXME: do we really want to maintain this feature?
28542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28543ac_sed_extra="$ac_vpsub
4ee9c684 28544$extrasub
28545_ACEOF
cd9a469c 28546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4ee9c684 28547:t
28548/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 28549s|@configure_input@|$ac_sed_conf_input|;t t
28550s&@top_builddir@&$ac_top_builddir_sub&;t t
28551s&@top_build_prefix@&$ac_top_build_prefix&;t t
28552s&@srcdir@&$ac_srcdir&;t t
28553s&@abs_srcdir@&$ac_abs_srcdir&;t t
28554s&@top_srcdir@&$ac_top_srcdir&;t t
28555s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28556s&@builddir@&$ac_builddir&;t t
28557s&@abs_builddir@&$ac_abs_builddir&;t t
28558s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28559s&@INSTALL@&$ac_INSTALL&;t t
28560s&@MKDIR_P@&$ac_MKDIR_P&;t t
28561$ac_datarootdir_hack
28562"
f00f02a3 28563eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28564 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 28565
28566test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f00f02a3 28567 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28568 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28569 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cd9a469c 28570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 28571which seems to be undefined. Please make sure it is defined" >&5
cd9a469c 28572$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 28573which seems to be undefined. Please make sure it is defined" >&2;}
cd9a469c 28574
f00f02a3 28575 rm -f "$ac_tmp/stdin"
4ee9c684 28576 case $ac_file in
f00f02a3 28577 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28578 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cd9a469c 28579 esac \
f00f02a3 28580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cd9a469c 28581 ;;
28582 :H)
28583 #
28584 # CONFIG_HEADER
28585 #
4ee9c684 28586 if test x"$ac_file" != x-; then
cd9a469c 28587 {
28588 $as_echo "/* $configure_input */" \
f00f02a3 28589 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28590 } >"$ac_tmp/config.h" \
28591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28592 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cd9a469c 28593 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28594$as_echo "$as_me: $ac_file is unchanged" >&6;}
4ee9c684 28595 else
cd9a469c 28596 rm -f "$ac_file"
f00f02a3 28597 mv "$ac_tmp/config.h" "$ac_file" \
28598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4ee9c684 28599 fi
28600 else
cd9a469c 28601 $as_echo "/* $configure_input */" \
f00f02a3 28602 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28603 || as_fn_error $? "could not create -" "$LINENO" 5
4ee9c684 28604 fi
cd9a469c 28605# Compute "$ac_file"'s index in $config_headers.
28606_am_arg="$ac_file"
4ee9c684 28607_am_stamp_count=1
28608for _am_header in $config_headers :; do
28609 case $_am_header in
cd9a469c 28610 $_am_arg | $_am_arg:* )
4ee9c684 28611 break ;;
28612 * )
28613 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28614 esac
28615done
cd9a469c 28616echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28617$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28618 X"$_am_arg" : 'X\(//\)[^/]' \| \
28619 X"$_am_arg" : 'X\(//\)$' \| \
28620 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28621$as_echo X"$_am_arg" |
28622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28623 s//\1/
28624 q
28625 }
28626 /^X\(\/\/\)[^/].*/{
28627 s//\1/
28628 q
28629 }
28630 /^X\(\/\/\)$/{
28631 s//\1/
28632 q
28633 }
28634 /^X\(\/\).*/{
28635 s//\1/
28636 q
28637 }
28638 s/.*/./; q'`/stamp-h$_am_stamp_count
28639 ;;
82eaf560 28640
cd9a469c 28641 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28642$as_echo "$as_me: executing $ac_file commands" >&6;}
28643 ;;
28644 esac
4ee9c684 28645
28646
cd9a469c 28647 case $ac_file$ac_mode in
28648 "default-1":C)
90973b19 28649# Only add multilib support code if we just rebuilt the top-level
28650# Makefile.
28651case " $CONFIG_FILES " in
28652 *" Makefile "*)
28653 ac_file=Makefile . ${multi_basedir}/config-ml.in
28654 ;;
28655esac ;;
cd9a469c 28656 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
f00f02a3 28657 # Older Autoconf quotes --file arguments for eval, but not when files
cd9a469c 28658 # are listed without --file. Let's play safe and only enable the eval
28659 # if we detect the quoting.
28660 case $CONFIG_FILES in
28661 *\'*) eval set x "$CONFIG_FILES" ;;
28662 *) set x $CONFIG_FILES ;;
28663 esac
28664 shift
28665 for mf
28666 do
28667 # Strip MF so we end up with the name of the file.
28668 mf=`echo "$mf" | sed -e 's/:.*$//'`
28669 # Check whether this is an Automake generated Makefile or not.
f00f02a3 28670 # We used to match only the files named 'Makefile.in', but
cd9a469c 28671 # some people rename them; so instead we look at the file content.
28672 # Grep'ing the first line is not enough: some people post-process
28673 # each Makefile.in and add a new line on top of each file to say so.
28674 # Grep'ing the whole file is not good either: AIX grep has a line
28675 # limit of 2048, but all sed's we know have understand at least 4000.
28676 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28677 dirpart=`$as_dirname -- "$mf" ||
2fd61f51 28678$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28679 X"$mf" : 'X\(//\)[^/]' \| \
28680 X"$mf" : 'X\(//\)$' \| \
cd9a469c 28681 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28682$as_echo X"$mf" |
28683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28684 s//\1/
28685 q
28686 }
28687 /^X\(\/\/\)[^/].*/{
28688 s//\1/
28689 q
28690 }
28691 /^X\(\/\/\)$/{
28692 s//\1/
28693 q
28694 }
28695 /^X\(\/\).*/{
28696 s//\1/
28697 q
28698 }
28699 s/.*/./; q'`
28700 else
28701 continue
28702 fi
28703 # Extract the definition of DEPDIR, am__include, and am__quote
f00f02a3 28704 # from the Makefile without running 'make'.
cd9a469c 28705 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28706 test -z "$DEPDIR" && continue
28707 am__include=`sed -n 's/^am__include = //p' < "$mf"`
f00f02a3 28708 test -z "$am__include" && continue
cd9a469c 28709 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cd9a469c 28710 # Find all dependency output files, they are included files with
28711 # $(DEPDIR) in their names. We invoke sed twice because it is the
28712 # simplest approach to changing $(DEPDIR) to its actual value in the
28713 # expansion.
28714 for file in `sed -n "
28715 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
f00f02a3 28716 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cd9a469c 28717 # Make sure the directory exists.
28718 test -f "$dirpart/$file" && continue
28719 fdir=`$as_dirname -- "$file" ||
2fd61f51 28720$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28721 X"$file" : 'X\(//\)[^/]' \| \
28722 X"$file" : 'X\(//\)$' \| \
cd9a469c 28723 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28724$as_echo X"$file" |
28725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28726 s//\1/
28727 q
28728 }
28729 /^X\(\/\/\)[^/].*/{
28730 s//\1/
28731 q
28732 }
28733 /^X\(\/\/\)$/{
28734 s//\1/
28735 q
28736 }
28737 /^X\(\/\).*/{
28738 s//\1/
28739 q
28740 }
28741 s/.*/./; q'`
28742 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28743 # echo "creating $dirpart/$file"
28744 echo '# dummy' > "$dirpart/$file"
2fd61f51 28745 done
2fd61f51 28746 done
cd9a469c 28747}
542f9784 28748 ;;
cd9a469c 28749 "libtool":C)
542f9784 28750
28751 # See if we are running on zsh, and set the options which allow our
28752 # commands through without removal of \ escapes.
28753 if test -n "${ZSH_VERSION+set}" ; then
28754 setopt NO_GLOB_SUBST
28755 fi
28756
28757 cfgfile="${ofile}T"
28758 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28759 $RM "$cfgfile"
28760
28761 cat <<_LT_EOF >> "$cfgfile"
28762#! $SHELL
28763
28764# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
00aafda4 28765# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
542f9784 28766# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28767# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28768#
00aafda4 28769# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
e6408286 28770# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
00aafda4 28771# Written by Gordon Matzigkeit, 1996
542f9784 28772#
00aafda4 28773# This file is part of GNU Libtool.
542f9784 28774#
00aafda4 28775# GNU Libtool is free software; you can redistribute it and/or
28776# modify it under the terms of the GNU General Public License as
28777# published by the Free Software Foundation; either version 2 of
28778# the License, or (at your option) any later version.
542f9784 28779#
00aafda4 28780# As a special exception to the GNU General Public License,
28781# if you distribute this file as part of a program or library that
28782# is built using GNU Libtool, you may include this file under the
28783# same distribution terms that you use for the rest of that program.
542f9784 28784#
00aafda4 28785# GNU Libtool is distributed in the hope that it will be useful,
28786# but WITHOUT ANY WARRANTY; without even the implied warranty of
28787# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28788# GNU General Public License for more details.
542f9784 28789#
00aafda4 28790# You should have received a copy of the GNU General Public License
28791# along with GNU Libtool; see the file COPYING. If not, a copy
28792# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28793# obtained by writing to the Free Software Foundation, Inc.,
28794# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
542f9784 28795
28796
28797# The names of the tagged configurations supported by this script.
28798available_tags="FC "
28799
28800# ### BEGIN LIBTOOL CONFIG
28801
18ce903b 28802# A sed program that does not truncate output.
28803SED=$lt_SED
28804
28805# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28806Xsed="\$SED -e 1s/^X//"
28807
28808# A grep program that handles long lines.
28809GREP=$lt_GREP
28810
28811# An ERE matcher.
28812EGREP=$lt_EGREP
28813
28814# A literal string matcher.
28815FGREP=$lt_FGREP
28816
28817# Shell to use when invoking shell scripts.
28818SHELL=$lt_SHELL
28819
28820# An echo program that protects backslashes.
28821ECHO=$lt_ECHO
28822
542f9784 28823# Which release of libtool.m4 was used?
28824macro_version=$macro_version
28825macro_revision=$macro_revision
28826
28827# Whether or not to build shared libraries.
28828build_libtool_libs=$enable_shared
28829
28830# Whether or not to build static libraries.
28831build_old_libs=$enable_static
28832
28833# What type of objects to build.
28834pic_mode=$pic_mode
28835
28836# Whether or not to optimize for fast installation.
28837fast_install=$enable_fast_install
28838
28839# The host system.
28840host_alias=$host_alias
28841host=$host
28842host_os=$host_os
28843
28844# The build system.
28845build_alias=$build_alias
28846build=$build
28847build_os=$build_os
28848
542f9784 28849# A BSD- or MS-compatible name lister.
28850NM=$lt_NM
28851
28852# Whether we need soft or hard links.
28853LN_S=$lt_LN_S
28854
28855# What is the maximum length of a command?
28856max_cmd_len=$max_cmd_len
28857
28858# Object file suffix (normally "o").
28859objext=$ac_objext
28860
28861# Executable file suffix (normally "").
28862exeext=$exeext
28863
28864# whether the shell understands "unset".
28865lt_unset=$lt_unset
28866
28867# turn spaces into newlines.
28868SP2NL=$lt_lt_SP2NL
28869
28870# turn newlines into spaces.
28871NL2SP=$lt_lt_NL2SP
28872
00aafda4 28873# An object symbol dumper.
28874OBJDUMP=$lt_OBJDUMP
28875
542f9784 28876# Method to check whether dependent libraries are shared objects.
28877deplibs_check_method=$lt_deplibs_check_method
28878
28879# Command to use when deplibs_check_method == "file_magic".
28880file_magic_cmd=$lt_file_magic_cmd
28881
28882# The archiver.
28883AR=$lt_AR
28884AR_FLAGS=$lt_AR_FLAGS
28885
28886# A symbol stripping program.
28887STRIP=$lt_STRIP
28888
28889# Commands used to install an old-style archive.
28890RANLIB=$lt_RANLIB
28891old_postinstall_cmds=$lt_old_postinstall_cmds
28892old_postuninstall_cmds=$lt_old_postuninstall_cmds
28893
e6408286 28894# Whether to use a lock for old archive extraction.
28895lock_old_archive_extraction=$lock_old_archive_extraction
28896
542f9784 28897# A C compiler.
28898LTCC=$lt_CC
28899
28900# LTCC compiler flags.
28901LTCFLAGS=$lt_CFLAGS
28902
28903# Take the output of nm and produce a listing of raw symbols and C names.
28904global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28905
28906# Transform the output of nm in a proper C declaration.
28907global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28908
28909# Transform the output of nm in a C name address pair.
28910global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28911
00aafda4 28912# Transform the output of nm in a C name address pair when lib prefix is needed.
28913global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28914
542f9784 28915# The name of the directory that contains temporary libtool files.
28916objdir=$objdir
28917
542f9784 28918# Used to examine libraries when file_magic_cmd begins with "file".
28919MAGIC_CMD=$MAGIC_CMD
28920
28921# Must we lock files when doing compilation?
28922need_locks=$lt_need_locks
28923
00aafda4 28924# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28925DSYMUTIL=$lt_DSYMUTIL
28926
28927# Tool to change global to local symbols on Mac OS X.
28928NMEDIT=$lt_NMEDIT
28929
28930# Tool to manipulate fat objects and archives on Mac OS X.
28931LIPO=$lt_LIPO
28932
28933# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28934OTOOL=$lt_OTOOL
28935
28936# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28937OTOOL64=$lt_OTOOL64
28938
542f9784 28939# Old archive suffix (normally "a").
28940libext=$libext
28941
28942# Shared library suffix (normally ".so").
28943shrext_cmds=$lt_shrext_cmds
28944
28945# The commands to extract the exported symbol list from a shared archive.
28946extract_expsyms_cmds=$lt_extract_expsyms_cmds
28947
28948# Variables whose values should be saved in libtool wrapper scripts and
28949# restored at link time.
28950variables_saved_for_relink=$lt_variables_saved_for_relink
28951
28952# Do we need the "lib" prefix for modules?
28953need_lib_prefix=$need_lib_prefix
28954
28955# Do we need a version for libraries?
28956need_version=$need_version
28957
28958# Library versioning type.
28959version_type=$version_type
28960
28961# Shared library runtime path variable.
28962runpath_var=$runpath_var
28963
28964# Shared library path variable.
28965shlibpath_var=$shlibpath_var
28966
28967# Is shlibpath searched before the hard-coded library search path?
28968shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28969
28970# Format of library name prefix.
28971libname_spec=$lt_libname_spec
28972
28973# List of archive names. First name is the real one, the rest are links.
28974# The last name is the one that the linker finds with -lNAME
28975library_names_spec=$lt_library_names_spec
28976
28977# The coded name of the library, if different from the real name.
28978soname_spec=$lt_soname_spec
28979
e6408286 28980# Permission mode override for installation of shared libraries.
28981install_override_mode=$lt_install_override_mode
28982
542f9784 28983# Command to use after installation of a shared archive.
28984postinstall_cmds=$lt_postinstall_cmds
28985
28986# Command to use after uninstallation of a shared archive.
28987postuninstall_cmds=$lt_postuninstall_cmds
28988
28989# Commands used to finish a libtool library installation in a directory.
28990finish_cmds=$lt_finish_cmds
28991
28992# As "finish_cmds", except a single script fragment to be evaled but
28993# not shown.
28994finish_eval=$lt_finish_eval
28995
28996# Whether we should hardcode library paths into libraries.
28997hardcode_into_libs=$hardcode_into_libs
28998
28999# Compile-time system search path for libraries.
29000sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29001
29002# Run-time system search path for libraries.
29003sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29004
29005# Whether dlopen is supported.
29006dlopen_support=$enable_dlopen
29007
29008# Whether dlopen of programs is supported.
29009dlopen_self=$enable_dlopen_self
29010
29011# Whether dlopen of statically linked programs is supported.
29012dlopen_self_static=$enable_dlopen_self_static
29013
29014# Commands to strip libraries.
29015old_striplib=$lt_old_striplib
29016striplib=$lt_striplib
29017
29018
29019# The linker used to build libraries.
29020LD=$lt_LD
29021
e6408286 29022# How to create reloadable object files.
29023reload_flag=$lt_reload_flag
29024reload_cmds=$lt_reload_cmds
29025
542f9784 29026# Commands used to build an old-style archive.
29027old_archive_cmds=$lt_old_archive_cmds
29028
29029# A language specific compiler.
29030CC=$lt_compiler
29031
29032# Is the compiler the GNU compiler?
29033with_gcc=$GCC
29034
29035# Compiler flag to turn off builtin functions.
29036no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29037
29038# How to pass a linker flag through the compiler.
29039wl=$lt_lt_prog_compiler_wl
29040
29041# Additional compiler flags for building library objects.
29042pic_flag=$lt_lt_prog_compiler_pic
29043
29044# Compiler flag to prevent dynamic linking.
29045link_static_flag=$lt_lt_prog_compiler_static
29046
29047# Does compiler simultaneously support -c and -o options?
29048compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29049
29050# Whether or not to add -lc for building shared libraries.
29051build_libtool_need_lc=$archive_cmds_need_lc
29052
29053# Whether or not to disallow shared libs when runtime libs are static.
29054allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29055
29056# Compiler flag to allow reflexive dlopens.
29057export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29058
29059# Compiler flag to generate shared objects directly from archives.
29060whole_archive_flag_spec=$lt_whole_archive_flag_spec
29061
29062# Whether the compiler copes with passing no objects directly.
29063compiler_needs_object=$lt_compiler_needs_object
29064
29065# Create an old-style archive from a shared archive.
29066old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29067
29068# Create a temporary old-style archive to link instead of a shared archive.
29069old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29070
29071# Commands used to build a shared archive.
29072archive_cmds=$lt_archive_cmds
29073archive_expsym_cmds=$lt_archive_expsym_cmds
29074
29075# Commands used to build a loadable module if different from building
29076# a shared archive.
29077module_cmds=$lt_module_cmds
29078module_expsym_cmds=$lt_module_expsym_cmds
29079
29080# Whether we are building with GNU ld or not.
29081with_gnu_ld=$lt_with_gnu_ld
29082
29083# Flag that allows shared libraries with undefined symbols to be built.
29084allow_undefined_flag=$lt_allow_undefined_flag
29085
29086# Flag that enforces no undefined symbols.
29087no_undefined_flag=$lt_no_undefined_flag
29088
29089# Flag to hardcode \$libdir into a binary during linking.
29090# This must work even if \$libdir does not exist
29091hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29092
29093# If ld is used when linking, flag to hardcode \$libdir into a binary
29094# during linking. This must work even if \$libdir does not exist.
29095hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29096
29097# Whether we need a single "-rpath" flag with a separated argument.
29098hardcode_libdir_separator=$lt_hardcode_libdir_separator
29099
29100# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29101# DIR into the resulting binary.
29102hardcode_direct=$hardcode_direct
29103
29104# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29105# DIR into the resulting binary and the resulting library dependency is
29106# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29107# library is relocated.
29108hardcode_direct_absolute=$hardcode_direct_absolute
29109
29110# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29111# into the resulting binary.
29112hardcode_minus_L=$hardcode_minus_L
29113
29114# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29115# into the resulting binary.
29116hardcode_shlibpath_var=$hardcode_shlibpath_var
29117
29118# Set to "yes" if building a shared library automatically hardcodes DIR
29119# into the library and all subsequent libraries and executables linked
29120# against it.
29121hardcode_automatic=$hardcode_automatic
29122
29123# Set to yes if linker adds runtime paths of dependent libraries
29124# to runtime path list.
29125inherit_rpath=$inherit_rpath
29126
29127# Whether libtool must link a program against all its dependency libraries.
29128link_all_deplibs=$link_all_deplibs
29129
29130# Fix the shell variable \$srcfile for the compiler.
29131fix_srcfile_path=$lt_fix_srcfile_path
29132
29133# Set to "yes" if exported symbols are required.
29134always_export_symbols=$always_export_symbols
29135
29136# The commands to list exported symbols.
29137export_symbols_cmds=$lt_export_symbols_cmds
29138
29139# Symbols that should not be listed in the preloaded symbols.
29140exclude_expsyms=$lt_exclude_expsyms
29141
29142# Symbols that must always be exported.
29143include_expsyms=$lt_include_expsyms
29144
29145# Commands necessary for linking programs (against libraries) with templates.
29146prelink_cmds=$lt_prelink_cmds
29147
29148# Specify filename containing input files.
29149file_list_spec=$lt_file_list_spec
29150
29151# How to hardcode a shared library path into an executable.
29152hardcode_action=$hardcode_action
29153
00aafda4 29154# The directories searched by this compiler when creating a shared library.
29155compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29156
542f9784 29157# Dependencies to place before and after the objects being linked to
29158# create a shared library.
29159predep_objects=$lt_predep_objects
29160postdep_objects=$lt_postdep_objects
29161predeps=$lt_predeps
29162postdeps=$lt_postdeps
29163
29164# The library search path used internally by the compiler when linking
29165# a shared library.
29166compiler_lib_search_path=$lt_compiler_lib_search_path
29167
29168# ### END LIBTOOL CONFIG
29169
29170_LT_EOF
29171
29172 case $host_os in
29173 aix3*)
29174 cat <<\_LT_EOF >> "$cfgfile"
29175# AIX sometimes has problems with the GCC collect2 program. For some
29176# reason, if we set the COLLECT_NAMES environment variable, the problems
29177# vanish in a puff of smoke.
29178if test "X${COLLECT_NAMES+set}" != Xset; then
29179 COLLECT_NAMES=
29180 export COLLECT_NAMES
29181fi
29182_LT_EOF
29183 ;;
29184 esac
29185
29186
29187ltmain="$ac_aux_dir/ltmain.sh"
29188
29189
29190 # We use sed instead of cat because bash on DJGPP gets confused if
29191 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29192 # text mode, it properly converts lines to CR/LF. This bash problem
29193 # is reportedly fixed, but why not run on old versions too?
29194 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29195 || (rm -f "$cfgfile"; exit 1)
29196
29197 case $xsi_shell in
29198 yes)
29199 cat << \_LT_EOF >> "$cfgfile"
00aafda4 29200
542f9784 29201# func_dirname file append nondir_replacement
29202# Compute the dirname of FILE. If nonempty, add APPEND to the result,
29203# otherwise set result to NONDIR_REPLACEMENT.
29204func_dirname ()
29205{
29206 case ${1} in
29207 */*) func_dirname_result="${1%/*}${2}" ;;
29208 * ) func_dirname_result="${3}" ;;
29209 esac
29210}
29211
29212# func_basename file
29213func_basename ()
29214{
29215 func_basename_result="${1##*/}"
29216}
29217
00aafda4 29218# func_dirname_and_basename file append nondir_replacement
29219# perform func_basename and func_dirname in a single function
29220# call:
29221# dirname: Compute the dirname of FILE. If nonempty,
29222# add APPEND to the result, otherwise set result
29223# to NONDIR_REPLACEMENT.
29224# value returned in "$func_dirname_result"
29225# basename: Compute filename of FILE.
29226# value retuned in "$func_basename_result"
29227# Implementation must be kept synchronized with func_dirname
29228# and func_basename. For efficiency, we do not delegate to
29229# those functions but instead duplicate the functionality here.
29230func_dirname_and_basename ()
29231{
29232 case ${1} in
29233 */*) func_dirname_result="${1%/*}${2}" ;;
29234 * ) func_dirname_result="${3}" ;;
29235 esac
29236 func_basename_result="${1##*/}"
29237}
29238
542f9784 29239# func_stripname prefix suffix name
29240# strip PREFIX and SUFFIX off of NAME.
29241# PREFIX and SUFFIX must not contain globbing or regex special
29242# characters, hashes, percent signs, but SUFFIX may contain a leading
29243# dot (in which case that matches only a dot).
29244func_stripname ()
29245{
29246 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29247 # positional parameters, so assign one to ordinary parameter first.
29248 func_stripname_result=${3}
29249 func_stripname_result=${func_stripname_result#"${1}"}
29250 func_stripname_result=${func_stripname_result%"${2}"}
29251}
29252
29253# func_opt_split
29254func_opt_split ()
29255{
29256 func_opt_split_opt=${1%%=*}
29257 func_opt_split_arg=${1#*=}
29258}
29259
29260# func_lo2o object
29261func_lo2o ()
29262{
29263 case ${1} in
29264 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29265 *) func_lo2o_result=${1} ;;
29266 esac
29267}
00aafda4 29268
29269# func_xform libobj-or-source
29270func_xform ()
29271{
29272 func_xform_result=${1%.*}.lo
29273}
29274
29275# func_arith arithmetic-term...
29276func_arith ()
29277{
29278 func_arith_result=$(( $* ))
29279}
29280
29281# func_len string
29282# STRING may not start with a hyphen.
29283func_len ()
29284{
29285 func_len_result=${#1}
29286}
29287
542f9784 29288_LT_EOF
29289 ;;
29290 *) # Bourne compatible functions.
29291 cat << \_LT_EOF >> "$cfgfile"
00aafda4 29292
542f9784 29293# func_dirname file append nondir_replacement
29294# Compute the dirname of FILE. If nonempty, add APPEND to the result,
29295# otherwise set result to NONDIR_REPLACEMENT.
29296func_dirname ()
29297{
29298 # Extract subdirectory from the argument.
e6408286 29299 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
542f9784 29300 if test "X$func_dirname_result" = "X${1}"; then
29301 func_dirname_result="${3}"
29302 else
29303 func_dirname_result="$func_dirname_result${2}"
29304 fi
29305}
29306
29307# func_basename file
29308func_basename ()
29309{
e6408286 29310 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
542f9784 29311}
29312
00aafda4 29313
542f9784 29314# func_stripname prefix suffix name
29315# strip PREFIX and SUFFIX off of NAME.
29316# PREFIX and SUFFIX must not contain globbing or regex special
29317# characters, hashes, percent signs, but SUFFIX may contain a leading
29318# dot (in which case that matches only a dot).
29319# func_strip_suffix prefix name
29320func_stripname ()
29321{
29322 case ${2} in
e6408286 29323 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29324 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
542f9784 29325 esac
29326}
29327
29328# sed scripts:
29329my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29330my_sed_long_arg='1s/^-[^=]*=//'
29331
29332# func_opt_split
29333func_opt_split ()
29334{
e6408286 29335 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29336 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
542f9784 29337}
29338
29339# func_lo2o object
29340func_lo2o ()
29341{
e6408286 29342 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
542f9784 29343}
00aafda4 29344
29345# func_xform libobj-or-source
29346func_xform ()
29347{
e6408286 29348 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
00aafda4 29349}
29350
29351# func_arith arithmetic-term...
29352func_arith ()
29353{
29354 func_arith_result=`expr "$@"`
29355}
29356
29357# func_len string
29358# STRING may not start with a hyphen.
29359func_len ()
29360{
29361 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29362}
29363
542f9784 29364_LT_EOF
29365esac
29366
29367case $lt_shell_append in
29368 yes)
29369 cat << \_LT_EOF >> "$cfgfile"
29370
29371# func_append var value
29372# Append VALUE to the end of shell variable VAR.
29373func_append ()
29374{
29375 eval "$1+=\$2"
29376}
29377_LT_EOF
29378 ;;
29379 *)
29380 cat << \_LT_EOF >> "$cfgfile"
29381
29382# func_append var value
29383# Append VALUE to the end of shell variable VAR.
29384func_append ()
29385{
29386 eval "$1=\$$1\$2"
29387}
00aafda4 29388
542f9784 29389_LT_EOF
29390 ;;
29391 esac
29392
29393
29394 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29395 || (rm -f "$cfgfile"; exit 1)
29396
29397 mv -f "$cfgfile" "$ofile" ||
29398 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29399 chmod +x "$ofile"
29400
29401
29402 cat <<_LT_EOF >> "$ofile"
29403
29404# ### BEGIN LIBTOOL TAG CONFIG: FC
29405
29406# The linker used to build libraries.
29407LD=$lt_LD_FC
29408
e6408286 29409# How to create reloadable object files.
29410reload_flag=$lt_reload_flag_FC
29411reload_cmds=$lt_reload_cmds_FC
29412
542f9784 29413# Commands used to build an old-style archive.
29414old_archive_cmds=$lt_old_archive_cmds_FC
29415
29416# A language specific compiler.
29417CC=$lt_compiler_FC
29418
29419# Is the compiler the GNU compiler?
29420with_gcc=$GCC_FC
29421
29422# Compiler flag to turn off builtin functions.
29423no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29424
29425# How to pass a linker flag through the compiler.
29426wl=$lt_lt_prog_compiler_wl_FC
29427
29428# Additional compiler flags for building library objects.
29429pic_flag=$lt_lt_prog_compiler_pic_FC
29430
29431# Compiler flag to prevent dynamic linking.
29432link_static_flag=$lt_lt_prog_compiler_static_FC
29433
29434# Does compiler simultaneously support -c and -o options?
29435compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29436
29437# Whether or not to add -lc for building shared libraries.
29438build_libtool_need_lc=$archive_cmds_need_lc_FC
29439
29440# Whether or not to disallow shared libs when runtime libs are static.
29441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29442
29443# Compiler flag to allow reflexive dlopens.
29444export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29445
29446# Compiler flag to generate shared objects directly from archives.
29447whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29448
29449# Whether the compiler copes with passing no objects directly.
29450compiler_needs_object=$lt_compiler_needs_object_FC
29451
29452# Create an old-style archive from a shared archive.
29453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29454
29455# Create a temporary old-style archive to link instead of a shared archive.
29456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29457
29458# Commands used to build a shared archive.
29459archive_cmds=$lt_archive_cmds_FC
29460archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29461
29462# Commands used to build a loadable module if different from building
29463# a shared archive.
29464module_cmds=$lt_module_cmds_FC
29465module_expsym_cmds=$lt_module_expsym_cmds_FC
29466
29467# Whether we are building with GNU ld or not.
29468with_gnu_ld=$lt_with_gnu_ld_FC
29469
29470# Flag that allows shared libraries with undefined symbols to be built.
29471allow_undefined_flag=$lt_allow_undefined_flag_FC
29472
29473# Flag that enforces no undefined symbols.
29474no_undefined_flag=$lt_no_undefined_flag_FC
29475
29476# Flag to hardcode \$libdir into a binary during linking.
29477# This must work even if \$libdir does not exist
29478hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29479
29480# If ld is used when linking, flag to hardcode \$libdir into a binary
29481# during linking. This must work even if \$libdir does not exist.
29482hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29483
29484# Whether we need a single "-rpath" flag with a separated argument.
29485hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29486
29487# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29488# DIR into the resulting binary.
29489hardcode_direct=$hardcode_direct_FC
29490
29491# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29492# DIR into the resulting binary and the resulting library dependency is
29493# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29494# library is relocated.
29495hardcode_direct_absolute=$hardcode_direct_absolute_FC
29496
29497# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29498# into the resulting binary.
29499hardcode_minus_L=$hardcode_minus_L_FC
29500
29501# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29502# into the resulting binary.
29503hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29504
29505# Set to "yes" if building a shared library automatically hardcodes DIR
29506# into the library and all subsequent libraries and executables linked
29507# against it.
29508hardcode_automatic=$hardcode_automatic_FC
29509
29510# Set to yes if linker adds runtime paths of dependent libraries
29511# to runtime path list.
29512inherit_rpath=$inherit_rpath_FC
29513
29514# Whether libtool must link a program against all its dependency libraries.
29515link_all_deplibs=$link_all_deplibs_FC
29516
29517# Fix the shell variable \$srcfile for the compiler.
29518fix_srcfile_path=$lt_fix_srcfile_path_FC
29519
29520# Set to "yes" if exported symbols are required.
29521always_export_symbols=$always_export_symbols_FC
29522
29523# The commands to list exported symbols.
29524export_symbols_cmds=$lt_export_symbols_cmds_FC
29525
29526# Symbols that should not be listed in the preloaded symbols.
29527exclude_expsyms=$lt_exclude_expsyms_FC
29528
29529# Symbols that must always be exported.
29530include_expsyms=$lt_include_expsyms_FC
29531
29532# Commands necessary for linking programs (against libraries) with templates.
29533prelink_cmds=$lt_prelink_cmds_FC
29534
29535# Specify filename containing input files.
29536file_list_spec=$lt_file_list_spec_FC
29537
29538# How to hardcode a shared library path into an executable.
29539hardcode_action=$hardcode_action_FC
29540
00aafda4 29541# The directories searched by this compiler when creating a shared library.
29542compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29543
542f9784 29544# Dependencies to place before and after the objects being linked to
29545# create a shared library.
29546predep_objects=$lt_predep_objects_FC
29547postdep_objects=$lt_postdep_objects_FC
29548predeps=$lt_predeps_FC
29549postdeps=$lt_postdeps_FC
29550
29551# The library search path used internally by the compiler when linking
29552# a shared library.
29553compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29554
29555# ### END LIBTOOL TAG CONFIG: FC
29556_LT_EOF
29557
2fd61f51 29558 ;;
cd9a469c 29559 "gstdint.h":C)
2069752c 29560if test "$GCC" = yes; then
29561 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29562else
29563 echo "/* generated for $CC */" > tmp-stdint.h
29564fi
56c15991 29565
2069752c 29566sed 's/^ *//' >> tmp-stdint.h <<EOF
29567
29568 #ifndef GCC_GENERATED_STDINT_H
29569 #define GCC_GENERATED_STDINT_H 1
29570
29571 #include <sys/types.h>
56c15991 29572EOF
56c15991 29573
2069752c 29574if test "$acx_cv_header_stdint" != stdint.h; then
29575 echo "#include <stddef.h>" >> tmp-stdint.h
29576fi
29577if test "$acx_cv_header_stdint" != stddef.h; then
29578 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29579fi
29580
29581sed 's/^ *//' >> tmp-stdint.h <<EOF
29582 /* glibc uses these symbols as guards to prevent redefinitions. */
29583 #ifdef __int8_t_defined
29584 #define _INT8_T
29585 #define _INT16_T
29586 #define _INT32_T
29587 #endif
29588 #ifdef __uint32_t_defined
29589 #define _UINT32_T
29590 #endif
29591
29592EOF
29593
29594# ----------------- done header, emit basic int types -------------
29595if test "$acx_cv_header_stdint" = stddef.h; then
29596 sed 's/^ *//' >> tmp-stdint.h <<EOF
29597
29598 #ifndef _UINT8_T
29599 #define _UINT8_T
29600 #ifndef __uint8_t_defined
29601 #define __uint8_t_defined
9ad2e3f3 29602 #ifndef uint8_t
2069752c 29603 typedef unsigned $acx_cv_type_int8_t uint8_t;
29604 #endif
29605 #endif
9ad2e3f3 29606 #endif
2069752c 29607
29608 #ifndef _UINT16_T
29609 #define _UINT16_T
29610 #ifndef __uint16_t_defined
29611 #define __uint16_t_defined
9ad2e3f3 29612 #ifndef uint16_t
2069752c 29613 typedef unsigned $acx_cv_type_int16_t uint16_t;
29614 #endif
29615 #endif
9ad2e3f3 29616 #endif
2069752c 29617
29618 #ifndef _UINT32_T
29619 #define _UINT32_T
29620 #ifndef __uint32_t_defined
29621 #define __uint32_t_defined
9ad2e3f3 29622 #ifndef uint32_t
2069752c 29623 typedef unsigned $acx_cv_type_int32_t uint32_t;
29624 #endif
29625 #endif
9ad2e3f3 29626 #endif
2069752c 29627
29628 #ifndef _INT8_T
29629 #define _INT8_T
29630 #ifndef __int8_t_defined
29631 #define __int8_t_defined
9ad2e3f3 29632 #ifndef int8_t
2069752c 29633 typedef $acx_cv_type_int8_t int8_t;
29634 #endif
29635 #endif
9ad2e3f3 29636 #endif
2069752c 29637
29638 #ifndef _INT16_T
29639 #define _INT16_T
29640 #ifndef __int16_t_defined
29641 #define __int16_t_defined
9ad2e3f3 29642 #ifndef int16_t
2069752c 29643 typedef $acx_cv_type_int16_t int16_t;
29644 #endif
29645 #endif
9ad2e3f3 29646 #endif
2069752c 29647
29648 #ifndef _INT32_T
29649 #define _INT32_T
29650 #ifndef __int32_t_defined
29651 #define __int32_t_defined
9ad2e3f3 29652 #ifndef int32_t
2069752c 29653 typedef $acx_cv_type_int32_t int32_t;
29654 #endif
29655 #endif
9ad2e3f3 29656 #endif
2069752c 29657EOF
29658elif test "$ac_cv_type_u_int32_t" = yes; then
29659 sed 's/^ *//' >> tmp-stdint.h <<EOF
29660
29661 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29662 #ifndef _INT8_T
29663 #define _INT8_T
29664 #endif
29665 #ifndef _INT16_T
29666 #define _INT16_T
29667 #endif
29668 #ifndef _INT32_T
29669 #define _INT32_T
29670 #endif
29671
29672 #ifndef _UINT8_T
29673 #define _UINT8_T
29674 #ifndef __uint8_t_defined
29675 #define __uint8_t_defined
9ad2e3f3 29676 #ifndef uint8_t
2069752c 29677 typedef u_int8_t uint8_t;
29678 #endif
29679 #endif
9ad2e3f3 29680 #endif
2069752c 29681
29682 #ifndef _UINT16_T
29683 #define _UINT16_T
29684 #ifndef __uint16_t_defined
29685 #define __uint16_t_defined
9ad2e3f3 29686 #ifndef uint16_t
2069752c 29687 typedef u_int16_t uint16_t;
29688 #endif
29689 #endif
9ad2e3f3 29690 #endif
2069752c 29691
29692 #ifndef _UINT32_T
29693 #define _UINT32_T
29694 #ifndef __uint32_t_defined
29695 #define __uint32_t_defined
9ad2e3f3 29696 #ifndef uint32_t
2069752c 29697 typedef u_int32_t uint32_t;
29698 #endif
29699 #endif
9ad2e3f3 29700 #endif
2069752c 29701EOF
29702else
29703 sed 's/^ *//' >> tmp-stdint.h <<EOF
29704
29705 /* Some systems have guard macros to prevent redefinitions, define them. */
29706 #ifndef _INT8_T
29707 #define _INT8_T
29708 #endif
29709 #ifndef _INT16_T
29710 #define _INT16_T
29711 #endif
29712 #ifndef _INT32_T
29713 #define _INT32_T
29714 #endif
29715 #ifndef _UINT8_T
29716 #define _UINT8_T
29717 #endif
29718 #ifndef _UINT16_T
29719 #define _UINT16_T
29720 #endif
29721 #ifndef _UINT32_T
29722 #define _UINT32_T
29723 #endif
29724EOF
29725fi
29726
29727# ------------- done basic int types, emit int64_t types ------------
29728if test "$ac_cv_type_uint64_t" = yes; then
29729 sed 's/^ *//' >> tmp-stdint.h <<EOF
29730
29731 /* system headers have good uint64_t and int64_t */
29732 #ifndef _INT64_T
29733 #define _INT64_T
29734 #endif
29735 #ifndef _UINT64_T
29736 #define _UINT64_T
29737 #endif
29738EOF
29739elif test "$ac_cv_type_u_int64_t" = yes; then
29740 sed 's/^ *//' >> tmp-stdint.h <<EOF
29741
29742 /* system headers have an u_int64_t (and int64_t) */
29743 #ifndef _INT64_T
29744 #define _INT64_T
29745 #endif
29746 #ifndef _UINT64_T
29747 #define _UINT64_T
29748 #ifndef __uint64_t_defined
29749 #define __uint64_t_defined
9ad2e3f3 29750 #ifndef uint64_t
2069752c 29751 typedef u_int64_t uint64_t;
29752 #endif
29753 #endif
9ad2e3f3 29754 #endif
2069752c 29755EOF
29756elif test -n "$acx_cv_type_int64_t"; then
29757 sed 's/^ *//' >> tmp-stdint.h <<EOF
29758
29759 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29760 #ifndef _INT64_T
29761 #define _INT64_T
9ad2e3f3 29762 #ifndef int64_t
2069752c 29763 typedef $acx_cv_type_int64_t int64_t;
29764 #endif
9ad2e3f3 29765 #endif
2069752c 29766 #ifndef _UINT64_T
29767 #define _UINT64_T
29768 #ifndef __uint64_t_defined
29769 #define __uint64_t_defined
9ad2e3f3 29770 #ifndef uint64_t
2069752c 29771 typedef unsigned $acx_cv_type_int64_t uint64_t;
29772 #endif
29773 #endif
9ad2e3f3 29774 #endif
2069752c 29775EOF
29776else
29777 sed 's/^ *//' >> tmp-stdint.h <<EOF
29778
29779 /* some common heuristics for int64_t, using compiler-specific tests */
29780 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29781 #ifndef _INT64_T
29782 #define _INT64_T
29783 #ifndef __int64_t_defined
9ad2e3f3 29784 #ifndef int64_t
2069752c 29785 typedef long long int64_t;
29786 #endif
29787 #endif
9ad2e3f3 29788 #endif
2069752c 29789 #ifndef _UINT64_T
29790 #define _UINT64_T
9ad2e3f3 29791 #ifndef uint64_t
2069752c 29792 typedef unsigned long long uint64_t;
29793 #endif
9ad2e3f3 29794 #endif
2069752c 29795
29796 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29797 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29798 does not implement __extension__. But that compiler doesn't define
29799 __GNUC_MINOR__. */
29800 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29801 # define __extension__
29802 # endif
29803
29804 # ifndef _INT64_T
29805 # define _INT64_T
9ad2e3f3 29806 # ifndef int64_t
2069752c 29807 __extension__ typedef long long int64_t;
29808 # endif
9ad2e3f3 29809 # endif
2069752c 29810 # ifndef _UINT64_T
29811 # define _UINT64_T
9ad2e3f3 29812 # ifndef uint64_t
2069752c 29813 __extension__ typedef unsigned long long uint64_t;
29814 # endif
9ad2e3f3 29815 # endif
2069752c 29816
29817 #elif !defined __STRICT_ANSI__
29818 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29819
29820 # ifndef _INT64_T
29821 # define _INT64_T
9ad2e3f3 29822 # ifndef int64_t
2069752c 29823 typedef __int64 int64_t;
29824 # endif
9ad2e3f3 29825 # endif
2069752c 29826 # ifndef _UINT64_T
29827 # define _UINT64_T
9ad2e3f3 29828 # ifndef uint64_t
2069752c 29829 typedef unsigned __int64 uint64_t;
29830 # endif
9ad2e3f3 29831 # endif
2069752c 29832 # endif /* compiler */
29833
29834 #endif /* ANSI version */
29835EOF
29836fi
29837
29838# ------------- done int64_t types, emit intptr types ------------
29839if test "$ac_cv_type_uintptr_t" != yes; then
29840 sed 's/^ *//' >> tmp-stdint.h <<EOF
29841
29842 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29843 #ifndef __uintptr_t_defined
9ad2e3f3 29844 #ifndef uintptr_t
2069752c 29845 typedef u$acx_cv_type_intptr_t uintptr_t;
29846 #endif
9ad2e3f3 29847 #endif
2069752c 29848 #ifndef __intptr_t_defined
9ad2e3f3 29849 #ifndef intptr_t
2069752c 29850 typedef $acx_cv_type_intptr_t intptr_t;
29851 #endif
9ad2e3f3 29852 #endif
2069752c 29853EOF
29854fi
29855
29856# ------------- done intptr types, emit int_least types ------------
56c15991 29857if test "$ac_cv_type_int_least32_t" != yes; then
2069752c 29858 sed 's/^ *//' >> tmp-stdint.h <<EOF
56c15991 29859
29860 /* Define int_least types */
29861 typedef int8_t int_least8_t;
29862 typedef int16_t int_least16_t;
29863 typedef int32_t int_least32_t;
2069752c 29864 #ifdef _INT64_T
56c15991 29865 typedef int64_t int_least64_t;
2069752c 29866 #endif
56c15991 29867
29868 typedef uint8_t uint_least8_t;
29869 typedef uint16_t uint_least16_t;
29870 typedef uint32_t uint_least32_t;
2069752c 29871 #ifdef _UINT64_T
56c15991 29872 typedef uint64_t uint_least64_t;
2069752c 29873 #endif
56c15991 29874EOF
29875fi
29876
2069752c 29877# ------------- done intptr types, emit int_fast types ------------
56c15991 29878if test "$ac_cv_type_int_fast32_t" != yes; then
2069752c 29879 sed 's/^ *//' >> tmp-stdint.h <<EOF
56c15991 29880
29881 /* Define int_fast types. short is often slow */
29882 typedef int8_t int_fast8_t;
29883 typedef int int_fast16_t;
29884 typedef int32_t int_fast32_t;
2069752c 29885 #ifdef _INT64_T
56c15991 29886 typedef int64_t int_fast64_t;
2069752c 29887 #endif
56c15991 29888
29889 typedef uint8_t uint_fast8_t;
29890 typedef unsigned int uint_fast16_t;
29891 typedef uint32_t uint_fast32_t;
2069752c 29892 #ifdef _UINT64_T
56c15991 29893 typedef uint64_t uint_fast64_t;
2069752c 29894 #endif
29895EOF
29896fi
29897
29898if test "$ac_cv_type_uintmax_t" != yes; then
29899 sed 's/^ *//' >> tmp-stdint.h <<EOF
29900
29901 /* Define intmax based on what we found */
9ad2e3f3 29902 #ifndef intmax_t
2069752c 29903 #ifdef _INT64_T
29904 typedef int64_t intmax_t;
29905 #else
29906 typedef long intmax_t;
29907 #endif
9ad2e3f3 29908 #endif
29909 #ifndef uintmax_t
2069752c 29910 #ifdef _UINT64_T
29911 typedef uint64_t uintmax_t;
29912 #else
29913 typedef unsigned long uintmax_t;
29914 #endif
9ad2e3f3 29915 #endif
56c15991 29916EOF
29917fi
29918
2069752c 29919sed 's/^ *//' >> tmp-stdint.h <<EOF
29920
29921 #endif /* GCC_GENERATED_STDINT_H */
29922EOF
56c15991 29923
2069752c 29924if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29925 rm -f tmp-stdint.h
56c15991 29926else
2069752c 29927 mv -f tmp-stdint.h gstdint.h
56c15991 29928fi
29929
29930 ;;
cd9a469c 29931
4ee9c684 29932 esac
cd9a469c 29933done # for ac_tag
4ee9c684 29934
4ee9c684 29935
cd9a469c 29936as_fn_exit 0
4ee9c684 29937_ACEOF
4ee9c684 29938ac_clean_files=$ac_clean_files_save
29939
cd9a469c 29940test $ac_write_fail = 0 ||
f00f02a3 29941 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cd9a469c 29942
4ee9c684 29943
29944# configure is writing to config.log, and then calls config.status.
29945# config.status does its own redirection, appending to config.log.
29946# Unfortunately, on DOS this fails, as config.log is still kept open
29947# by configure, so config.status won't be able to write to it; its
29948# output is simply discarded. So we exec the FD to /dev/null,
29949# effectively closing config.log, so it can be properly (re)opened and
29950# appended to by config.status. When coming back to configure, we
29951# need to make the FD available again.
29952if test "$no_create" != yes; then
29953 ac_cs_success=:
29954 ac_config_status_args=
29955 test "$silent" = yes &&
29956 ac_config_status_args="$ac_config_status_args --quiet"
29957 exec 5>/dev/null
29958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29959 exec 5>>config.log
29960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29961 # would make configure fail if this is the last instruction.
f00f02a3 29962 $ac_cs_success || as_fn_exit 1
cd9a469c 29963fi
29964if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29966$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4ee9c684 29967fi
29968