]> gcc.gnu.org Git - gcc.git/blame - libgfortran/configure
gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under GIMPLE_ASSIGN.
[gcc.git] / libgfortran / configure
CommitLineData
6de9cd9a
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
6de9cd9a 8#
6de9cd9a
DN
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
6de9cd9a 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
6de9cd9a 31fi
6de9cd9a 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
6de9cd9a
DN
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
6de9cd9a
DN
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
21be0a5a 172test \$(( 1 + 1 )) = 2 || exit 1
43e02a8a
RW
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
21be0a5a 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
5213506e
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6de9cd9a 192do
5213506e
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
6de9cd9a 236 else
5213506e
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
6de9cd9a 241 fi
5213506e
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
6de9cd9a 380
5213506e
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
383 as_expr=expr
384else
385 as_expr=false
386fi
387
5213506e 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
389 as_basename=basename
390else
391 as_basename=false
392fi
393
5213506e
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
6de9cd9a 399
5213506e 400as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
5213506e
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
c0e7e2bf 418
38d24731
RW
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
f489fba1 425
6de9cd9a 426
5213506e
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
6de9cd9a 436 sed '
5213506e
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
6de9cd9a 441 N
5213506e
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6de9cd9a 444 t loop
5213506e 445 s/-\n.*//
6de9cd9a 446 ' >$as_me.lineno &&
5213506e
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
6de9cd9a
DN
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
6de9cd9a
DN
454 # Exit status is that of the last command.
455 exit
456}
457
5213506e
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
6de9cd9a
DN
469esac
470
5213506e
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
6de9cd9a 474else
5213506e
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
6de9cd9a 477fi
5213506e
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 480 as_ln_s='ln -s'
5213506e
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
38d24731 491 fi
6de9cd9a
DN
492else
493 as_ln_s='cp -p'
494fi
5213506e
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
6de9cd9a
DN
497
498if mkdir -p . 2>/dev/null; then
5213506e 499 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
5213506e
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
6de9cd9a
DN
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
1cf3d07d
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
1cf3d07d 536
5213506e
RW
537exec 7<&0 </dev/null 6>&1
538
6de9cd9a
DN
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
6de9cd9a
DN
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
5213506e 548ac_clean_files=
6de9cd9a 549ac_config_libobj_dir=.
5213506e 550LIBOBJS=
6de9cd9a
DN
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
38d24731 555
6de9cd9a
DN
556# Identity of this package.
557PACKAGE_NAME='GNU Fortran Runtime Library'
558PACKAGE_TARNAME='libgfortran'
0dce3ca1
FXC
559PACKAGE_VERSION='0.3'
560PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
6de9cd9a 561PACKAGE_BUGREPORT=''
5213506e 562PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
6de9cd9a
DN
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
5213506e 567#ifdef HAVE_SYS_TYPES_H
6de9cd9a
DN
568# include <sys/types.h>
569#endif
5213506e 570#ifdef HAVE_SYS_STAT_H
6de9cd9a
DN
571# include <sys/stat.h>
572#endif
5213506e 573#ifdef STDC_HEADERS
6de9cd9a
DN
574# include <stdlib.h>
575# include <stddef.h>
576#else
5213506e 577# ifdef HAVE_STDLIB_H
6de9cd9a
DN
578# include <stdlib.h>
579# endif
580#endif
5213506e
RW
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6de9cd9a
DN
583# include <memory.h>
584# endif
585# include <string.h>
586#endif
5213506e 587#ifdef HAVE_STRINGS_H
6de9cd9a
DN
588# include <strings.h>
589#endif
5213506e 590#ifdef HAVE_INTTYPES_H
6de9cd9a 591# include <inttypes.h>
6de9cd9a 592#endif
5213506e
RW
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
6de9cd9a
DN
597# include <unistd.h>
598#endif"
599
74544378
JB
600ac_header_list=
601ac_func_list=
1ec601bf 602ac_c_werror_flag=
5213506e
RW
603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
607IEEE_FLAGS
608FPU_HOST_HEADER
1ec601bf
FXC
609LIBGFOR_BUILD_QUAD_FALSE
610LIBGFOR_BUILD_QUAD_TRUE
611LIBQUADINCLUDE
612LIBQUADLIB_DEP
613LIBQUADLIB
614LIBQUADSPEC
5213506e
RW
615extra_ldflags_libgfortran
616ac_ct_FC
617FCFLAGS
618FC
619enable_static
620enable_shared
7de6ba7a 621lt_host_flags
5213506e
RW
622OTOOL64
623OTOOL
624LIPO
625NMEDIT
626DSYMUTIL
5213506e
RW
627OBJDUMP
628LN_S
629NM
630ac_ct_DUMPBIN
631DUMPBIN
632LD
633FGREP
5213506e
RW
634SED
635LIBTOOL
636RANLIB
637AR
638AS
639SECTION_FLAGS
49ea7a0e
RO
640LIBGFOR_USE_SYMVER_SUN_FALSE
641LIBGFOR_USE_SYMVER_SUN_TRUE
642LIBGFOR_USE_SYMVER_GNU_FALSE
643LIBGFOR_USE_SYMVER_GNU_TRUE
5213506e
RW
644LIBGFOR_USE_SYMVER_FALSE
645LIBGFOR_USE_SYMVER_TRUE
646AM_CFLAGS
647AM_FCFLAGS
21be0a5a
JB
648toolexeclibdir
649toolexecdir
650EGREP
651GREP
652CPP
5213506e
RW
653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656AMDEPBACKSLASH
657AMDEP_FALSE
658AMDEP_TRUE
659am__quote
660am__include
661DEPDIR
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
5213506e
RW
669multi_basedir
670MAINT
671MAINTAINER_MODE_FALSE
672MAINTAINER_MODE_TRUE
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
60858d8a 696target_noncanonical
5213506e
RW
697target_os
698target_vendor
699target_cpu
700target
701host_os
702host_vendor
703host_cpu
704host
705onestep
706onestep_FALSE
707onestep_TRUE
708target_subdir
709host_subdir
710build_subdir
711build_libsubdir
712build_os
713build_vendor
714build_cpu
715build
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
6de9cd9a 754ac_subst_files=''
5213506e
RW
755ac_user_opts='
756enable_option_checking
757with_build_libsubdir
758enable_version_specific_runtime_libs
759enable_intermodule
760enable_maintainer_mode
761enable_multilib
762enable_dependency_tracking
bf382f5f 763enable_symvers
5213506e
RW
764enable_shared
765enable_static
766with_pic
767enable_fast_install
768with_gnu_ld
769enable_libtool_lock
770enable_largefile
87e6d9dc 771enable_libquadmath_support
1ff101ff 772with_system_libunwind
5213506e
RW
773'
774 ac_precious_vars='build_alias
775host_alias
776target_alias
21be0a5a
JB
777CC
778CFLAGS
779LDFLAGS
780LIBS
5213506e 781CPPFLAGS
21be0a5a 782CPP
5213506e 783FC
21be0a5a 784FCFLAGS'
5213506e 785
6de9cd9a
DN
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
5213506e
RW
790ac_unrecognized_opts=
791ac_unrecognized_sep=
6de9cd9a
DN
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 814# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
5213506e
RW
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
6de9cd9a
DN
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
6de9cd9a
DN
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
5213506e
RW
825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
6de9cd9a
DN
834
835ac_prev=
5213506e 836ac_dashdash=
6de9cd9a
DN
837for ac_option
838do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
5213506e 841 eval $ac_prev=\$ac_option
6de9cd9a
DN
842 ac_prev=
843 continue
844 fi
845
5213506e
RW
846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
6de9cd9a
DN
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
5213506e
RW
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
6de9cd9a
DN
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
5213506e 877 -datadir | --datadir | --datadi | --datad)
6de9cd9a 878 ac_prev=datadir ;;
5213506e 879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
880 datadir=$ac_optarg ;;
881
5213506e
RW
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
6de9cd9a 889 -disable-* | --disable-*)
5213506e 890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 891 # Reject names that are not valid shell variable names.
5213506e
RW
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898"enable_$ac_useropt"
899"*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
6de9cd9a
DN
914
915 -enable-* | --enable-*)
5213506e 916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 917 # Reject names that are not valid shell variable names.
5213506e
RW
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924"enable_$ac_useropt"
925"*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
38d24731 928 esac
5213506e 929 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
5213506e
RW
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
6de9cd9a
DN
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
5213506e
RW
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
6de9cd9a 991 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 992 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
5213506e
RW
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
6de9cd9a
DN
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
5213506e 1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1121 # Reject names that are not valid shell variable names.
5213506e
RW
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128"with_$ac_useropt"
1129"*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
38d24731 1132 esac
5213506e 1133 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1134
1135 -without-* | --without-*)
5213506e 1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1137 # Reject names that are not valid shell variable names.
5213506e
RW
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
5213506e
RW
1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information."
6de9cd9a
DN
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
5213506e
RW
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
5213506e 1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6de9cd9a
DN
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1196 as_fn_error "missing argument to $ac_option"
6de9cd9a
DN
1197fi
1198
5213506e
RW
1199if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1204 esac
5213506e 1205fi
38d24731 1206
5213506e
RW
1207# Check all directory arguments for consistency.
1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
38d24731 1212do
5213506e
RW
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
38d24731 1221 case $ac_val in
5213506e
RW
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1224 esac
5213506e 1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
5213506e 1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6de9cd9a
DN
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
5213506e
RW
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1258
1259
6de9cd9a
DN
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
5213506e
RW
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
6de9cd9a 1287 srcdir=$ac_confdir
5213506e 1288 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1289 srcdir=..
1290 fi
1291else
1292 ac_srcdir_defaulted=no
1293fi
5213506e
RW
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
6de9cd9a
DN
1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
0dce3ca1 1326\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
6de9cd9a
DN
1346Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1348 [$ac_default_prefix]
6de9cd9a 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1350 [PREFIX]
6de9cd9a
DN
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
5213506e
RW
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1379_ACEOF
1380
1381 cat <<\_ACEOF
1382
1383Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1391 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396 case $ac_init_help in
0dce3ca1 1397 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1398 esac
1399 cat <<\_ACEOF
1400
1401Optional Features:
5213506e 1402 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1405 --enable-version-specific-runtime-libs
1406 specify that runtime libraries should be installed
1407 in a compiler-specific directory
b808ac33 1408 --enable-intermodule build the library in one step
6de9cd9a
DN
1409 --enable-maintainer-mode enable make rules and dependencies not useful
1410 (and sometimes confusing) to the casual installer
96b8a615 1411 --enable-multilib build many library versions (default)
679c0f9a
TT
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
bf382f5f 1414 --disable-symvers disable symbol versioning for libgfortran
5213506e
RW
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
6de9cd9a 1419 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1420 --disable-largefile omit support for large files
87e6d9dc
TB
1421 --disable-libquadmath-support
1422 disable libquadmath support for Fortran
6de9cd9a
DN
1423
1424Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1427 --with-build-libsubdir=DIR Directory where to find libraries for build system
1cf3d07d
SE
1428 --with-pic try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1ff101ff 1431 --with-system-libunwind use installed libunwind
6de9cd9a
DN
1432
1433Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
5213506e
RW
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1cf3d07d 1441 CPP C preprocessor
c7a35fe9
AS
1442 FC Fortran compiler command
1443 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1444
1445Use these variables to override the choices made by `configure' or to help
1446it to find libraries and programs with nonstandard names/locations.
1447
5213506e
RW
1448Report bugs to the package provider.
1449GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1450General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1451_ACEOF
5213506e 1452ac_status=$?
6de9cd9a
DN
1453fi
1454
1455if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
6de9cd9a 1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
6de9cd9a
DN
1461 ac_builddir=.
1462
5213506e
RW
1463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1478
1479case $srcdir in
5213506e 1480 .) # We are building in place.
6de9cd9a 1481 ac_srcdir=.
5213506e
RW
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1485 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1492esac
5213506e
RW
1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1503 else
5213506e
RW
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1507 done
1508fi
1509
5213506e 1510test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1511if $ac_init_version; then
1512 cat <<\_ACEOF
0dce3ca1 1513GNU Fortran Runtime Library configure 0.3
5213506e 1514generated by GNU Autoconf 2.64
6de9cd9a 1515
5213506e 1516Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
1517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
5213506e 1520 exit
6de9cd9a 1521fi
6de9cd9a 1522
5213506e
RW
1523## ------------------------ ##
1524## Autoconf initialization. ##
1525## ------------------------ ##
6de9cd9a 1526
5213506e
RW
1527# ac_fn_c_try_compile LINENO
1528# --------------------------
1529# Try to compile conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_compile ()
1531{
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554else
1555 $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1557
5213506e
RW
1558 ac_retval=1
1559fi
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 return $ac_retval
1562
1563} # ac_fn_c_try_compile
1564
21be0a5a
JB
1565# ac_fn_c_try_cpp LINENO
1566# ----------------------
1567# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_cpp ()
6de9cd9a 1569{
5213506e 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1572case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
21be0a5a 1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21be0a5a
JB
1586 test $ac_status = 0; } >/dev/null && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1588 test ! -s conftest.err
5213506e
RW
1589 }; then :
1590 ac_retval=0
1591else
1592 $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1594
21be0a5a 1595 ac_retval=1
5213506e 1596fi
5213506e
RW
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
6de9cd9a 1599
21be0a5a 1600} # ac_fn_c_try_cpp
6de9cd9a 1601
21be0a5a 1602# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1603# -------------------------------------------------------
21be0a5a
JB
1604# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605# the include files in INCLUDES and setting the cache variable VAR
1606# accordingly.
1607ac_fn_c_check_header_mongrel ()
5213506e
RW
1608{
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1610 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5213506e
RW
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612$as_echo_n "checking for $2... " >&6; }
1613if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1614 $as_echo_n "(cached) " >&6
21be0a5a
JB
1615fi
1616eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618$as_echo "$ac_res" >&6; }
5213506e 1619else
21be0a5a
JB
1620 # Is the header compilable?
1621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622$as_echo_n "checking $2 usability... " >&6; }
1623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1624/* end confdefs.h. */
1625$4
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1629 ac_header_compiler=yes
5213506e 1630else
21be0a5a 1631 ac_header_compiler=no
5213506e
RW
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1636
21be0a5a
JB
1637# Is the header present?
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639$as_echo_n "checking $2 presence... " >&6; }
1640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h. */
1642#include <$2>
1643_ACEOF
1644if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1646else
1647 ac_header_preproc=no
1648fi
1649rm -f conftest.err conftest.$ac_ext
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1652
21be0a5a
JB
1653# So? What about this header?
1654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655 yes:no: )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 ;;
1661 no:yes:* )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ;;
5213506e 1673esac
21be0a5a
JB
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
1676if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677 $as_echo_n "(cached) " >&6
5213506e 1678else
21be0a5a
JB
1679 eval "$3=\$ac_header_compiler"
1680fi
1681eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
5213506e
RW
1684fi
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1686
21be0a5a 1687} # ac_fn_c_check_header_mongrel
6de9cd9a 1688
5213506e
RW
1689# ac_fn_c_try_run LINENO
1690# ----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692# that executables *can* be run.
1693ac_fn_c_try_run ()
1694{
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1722
5213506e
RW
1723 ac_retval=$ac_status
1724fi
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
6de9cd9a 1728
5213506e 1729} # ac_fn_c_try_run
6de9cd9a 1730
21be0a5a
JB
1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732# -------------------------------------------------------
1733# Tests whether HEADER exists and can be compiled using the include files in
1734# INCLUDES, setting the cache variable VAR accordingly.
1735ac_fn_c_check_header_compile ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1742else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h. */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750else
1751 eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754fi
1755eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
1760} # ac_fn_c_check_header_compile
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1805
1806} # ac_fn_c_try_link
1807
5213506e
RW
1808# ac_fn_c_check_func LINENO FUNC VAR
1809# ----------------------------------
1810# Tests whether FUNC exists, setting the cache variable VAR accordingly
1811ac_fn_c_check_func ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815$as_echo_n "checking for $2... " >&6; }
1816if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817 $as_echo_n "(cached) " >&6
1818else
1819 if test x$gcc_no_link = xyes; then
1820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1821fi
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826#define $2 innocuous_$2
6de9cd9a 1827
5213506e
RW
1828/* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1832
5213506e
RW
1833#ifdef __STDC__
1834# include <limits.h>
1835#else
1836# include <assert.h>
1837#endif
6de9cd9a 1838
5213506e
RW
1839#undef $2
1840
1841/* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1844#ifdef __cplusplus
1845extern "C"
1846#endif
1847char $2 ();
1848/* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851#if defined __stub_$2 || defined __stub___$2
1852choke me
1853#endif
1854
1855int
1856main ()
38d24731 1857{
5213506e
RW
1858return $2 ();
1859 ;
1860 return 0;
38d24731 1861}
5213506e
RW
1862_ACEOF
1863if ac_fn_c_try_link "$LINENO"; then :
1864 eval "$3=yes"
1865else
1866 eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1875
5213506e 1876} # ac_fn_c_check_func
6de9cd9a 1877
5213506e
RW
1878# ac_fn_fc_try_compile LINENO
1879# ---------------------------
1880# Try to compile conftest.$ac_ext, and return whether this succeeded.
1881ac_fn_fc_try_compile ()
1882{
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1886case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891$as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_fc_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1904 ac_retval=0
1905else
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1908
5213506e
RW
1909 ac_retval=1
1910fi
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
6de9cd9a 1913
5213506e 1914} # ac_fn_fc_try_compile
6de9cd9a 1915
5213506e
RW
1916# ac_fn_fc_try_link LINENO
1917# ------------------------
1918# Try to link conftest.$ac_ext, and return whether this succeeded.
1919ac_fn_fc_try_link ()
1920{
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext conftest$ac_exeext
1923 if { { ac_try="$ac_link"
1924case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_fc_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest$ac_exeext && {
1942 test "$cross_compiling" = yes ||
1943 $as_test_x conftest$ac_exeext
1944 }; then :
1945 ac_retval=0
1946else
1947 $as_echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1949
5213506e
RW
1950 ac_retval=1
1951fi
1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954 # interfere with the next link command; also delete a directory that is
1955 # left behind by Apple's compiler. We do this before executing the actions.
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 return $ac_retval
6de9cd9a 1959
5213506e 1960} # ac_fn_fc_try_link
6de9cd9a 1961
5213506e
RW
1962# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963# -------------------------------------------
1964# Tests whether TYPE exists after having included INCLUDES, setting cache
1965# variable VAR accordingly.
1966ac_fn_c_check_type ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970$as_echo_n "checking for $2... " >&6; }
1971if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1973else
1974 eval "$3=no"
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h. */
1977$4
1978int
1979main ()
1980{
1981if (sizeof ($2))
1982 return 0;
1983 ;
1984 return 0;
1985}
6de9cd9a 1986_ACEOF
5213506e
RW
1987if ac_fn_c_try_compile "$LINENO"; then :
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$4
1991int
1992main ()
1993{
1994if (sizeof (($2)))
1995 return 0;
1996 ;
1997 return 0;
1998}
6de9cd9a 1999_ACEOF
5213506e 2000if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 2001
5213506e
RW
2002else
2003 eval "$3=yes"
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2013
5213506e 2014} # ac_fn_c_check_type
6de9cd9a 2015
21be0a5a
JB
2016# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2017# --------------------------------------------
2018# Tries to find the compile-time value of EXPR in a program that includes
2019# INCLUDES, setting VAR accordingly. Returns whether the value could be
2020# computed
2021ac_fn_c_compute_int ()
5213506e
RW
2022{
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2024 if test "$cross_compiling" = yes; then
2025 # Depending upon the size, compute the lo and hi bounds.
2026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2027/* end confdefs.h. */
c13e029b 2028$4
5213506e
RW
2029int
2030main ()
2031{
c13e029b 2032static int test_array [1 - 2 * !(($2) >= 0)];
5213506e 2033test_array [0] = 0
6de9cd9a 2034
5213506e
RW
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2040 ac_lo=0 ac_mid=0
2041 while :; do
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2043/* end confdefs.h. */
c13e029b 2044$4
5213506e
RW
2045int
2046main ()
2047{
c13e029b 2048static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2049test_array [0] = 0
6de9cd9a 2050
5213506e
RW
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2056 ac_hi=$ac_mid; break
5213506e 2057else
c13e029b
PB
2058 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2059 if test $ac_lo -le $ac_mid; then
2060 ac_lo= ac_hi=
2061 break
2062 fi
2063 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2064fi
2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2066 done
2067else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
2071int
2072main ()
2073{
2074static int test_array [1 - 2 * !(($2) < 0)];
2075test_array [0] = 0
2076
2077 ;
2078 return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_hi=-1 ac_mid=-1
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2091test_array [0] = 0
2092
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_lo=$ac_mid; break
2099else
2100 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2101 if test $ac_mid -le $ac_hi; then
2102 ac_lo= ac_hi=
2103 break
2104 fi
2105 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2108 done
d72a3ac1 2109else
c13e029b 2110 ac_lo= ac_hi=
5213506e 2111fi
c13e029b 2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2113fi
c13e029b
PB
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115# Binary search between lo and hi bounds.
2116while test "x$ac_lo" != "x$ac_hi"; do
2117 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2119/* end confdefs.h. */
c13e029b 2120$4
5213506e
RW
2121int
2122main ()
2123{
c13e029b 2124static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2125test_array [0] = 0
6de9cd9a 2126
5213506e
RW
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2132 ac_hi=$ac_mid
2133else
2134 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2135fi
2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2137done
2138case $ac_lo in #((
2139?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2140'') ac_retval=1 ;;
2141esac
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146static long int longval () { return $2; }
2147static unsigned long int ulongval () { return $2; }
2148#include <stdio.h>
2149#include <stdlib.h>
2150int
2151main ()
2152{
6de9cd9a 2153
c13e029b
PB
2154 FILE *f = fopen ("conftest.val", "w");
2155 if (! f)
2156 return 1;
2157 if (($2) < 0)
2158 {
2159 long int i = longval ();
2160 if (i != ($2))
2161 return 1;
2162 fprintf (f, "%ld", i);
2163 }
2164 else
2165 {
2166 unsigned long int i = ulongval ();
2167 if (i != ($2))
2168 return 1;
2169 fprintf (f, "%lu", i);
2170 }
2171 /* Do not output a trailing newline, as this causes \r\n confusion
2172 on some platforms. */
2173 return ferror (f) || fclose (f) != 0;
2174
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_run "$LINENO"; then :
2180 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2181else
c13e029b 2182 ac_retval=1
d72a3ac1 2183fi
c13e029b
PB
2184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2185 conftest.$ac_objext conftest.beam conftest.$ac_ext
2186rm -f conftest.val
2187
2188 fi
5213506e 2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
c13e029b 2190 return $ac_retval
6de9cd9a 2191
c13e029b 2192} # ac_fn_c_compute_int
6de9cd9a 2193
5213506e
RW
2194# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2195# ----------------------------------------------------
2196# Tries to find if the field MEMBER exists in type AGGR, after including
2197# INCLUDES, setting cache variable VAR accordingly.
2198ac_fn_c_check_member ()
2199{
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2202$as_echo_n "checking for $2.$3... " >&6; }
2203if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2204 $as_echo_n "(cached) " >&6
2205else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h. */
2208$5
2209int
2210main ()
2211{
2212static $2 ac_aggr;
2213if (ac_aggr.$3)
2214return 0;
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219if ac_fn_c_try_compile "$LINENO"; then :
2220 eval "$4=yes"
2221else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223/* end confdefs.h. */
2224$5
2225int
2226main ()
2227{
2228static $2 ac_aggr;
2229if (sizeof ac_aggr.$3)
2230return 0;
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$4=yes"
2237else
2238 eval "$4=no"
2239fi
2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243fi
2244eval ac_res=\$$4
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246$as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2248
5213506e
RW
2249} # ac_fn_c_check_member
2250cat >config.log <<_ACEOF
2251This file contains any messages produced by compilers while
2252running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2253
5213506e
RW
2254It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2255generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a 2256
5213506e 2257 $ $0 $@
6de9cd9a 2258
5213506e
RW
2259_ACEOF
2260exec 5>>config.log
2261{
2262cat <<_ASUNAME
2263## --------- ##
2264## Platform. ##
2265## --------- ##
6de9cd9a 2266
5213506e
RW
2267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2272
5213506e
RW
2273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2275
5213506e
RW
2276/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2277/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2280/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2281/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2282/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2283
5213506e 2284_ASUNAME
18c04407 2285
5213506e
RW
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 $as_echo "PATH: $as_dir"
2292 done
2293IFS=$as_save_IFS
18c04407 2294
5213506e 2295} >&5
18c04407 2296
5213506e 2297cat >&5 <<_ACEOF
6de9cd9a
DN
2298
2299
5213506e
RW
2300## ----------- ##
2301## Core tests. ##
2302## ----------- ##
78511f8b 2303
5213506e 2304_ACEOF
38d24731 2305
96b8a615 2306
5213506e
RW
2307# Keep a trace of the command line.
2308# Strip out --no-create and --no-recursion so they do not pile up.
2309# Strip out --silent because we don't want to record it for future runs.
2310# Also quote any args containing shell meta-characters.
2311# Make two passes to allow for proper duplicate-argument suppression.
2312ac_configure_args=
2313ac_configure_args0=
2314ac_configure_args1=
2315ac_must_keep_next=false
2316for ac_pass in 1 2
2317do
2318 for ac_arg
2319 do
2320 case $ac_arg in
2321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2323 | -silent | --silent | --silen | --sile | --sil)
2324 continue ;;
2325 *\'*)
2326 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 esac
2328 case $ac_pass in
2329 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330 2)
2331 as_fn_append ac_configure_args1 " '$ac_arg'"
2332 if test $ac_must_keep_next = true; then
2333 ac_must_keep_next=false # Got value, back to normal.
2334 else
2335 case $ac_arg in
2336 *=* | --config-cache | -C | -disable-* | --disable-* \
2337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2339 | -with-* | --with-* | -without-* | --without-* | --x)
2340 case "$ac_configure_args0 " in
2341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342 esac
2343 ;;
2344 -* ) ac_must_keep_next=true ;;
2345 esac
2346 fi
2347 as_fn_append ac_configure_args " '$ac_arg'"
2348 ;;
2349 esac
2350 done
6de9cd9a 2351done
5213506e
RW
2352{ ac_configure_args0=; unset ac_configure_args0;}
2353{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2354
5213506e
RW
2355# When interrupted or exit'd, cleanup temporary files, and complete
2356# config.log. We remove comments because anyway the quotes in there
2357# would cause problems or look ugly.
2358# WARNING: Use '\'' to represent an apostrophe within the trap.
2359# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2360trap 'exit_status=$?
2361 # Save into config.log some information that might help in debugging.
2362 {
2363 echo
96b8a615 2364
5213506e
RW
2365 cat <<\_ASBOX
2366## ---------------- ##
2367## Cache variables. ##
2368## ---------------- ##
2369_ASBOX
2370 echo
2371 # The following way of writing the cache mishandles newlines in values,
2372(
2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in #(
2376 *${as_nl}*)
2377 case $ac_var in #(
2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2379$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2380 esac
2381 case $ac_var in #(
2382 _ | IFS | as_nl) ;; #(
2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2384 *) { eval $ac_var=; unset $ac_var;} ;;
2385 esac ;;
2386 esac
2387 done
2388 (set) 2>&1 |
2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2390 *${as_nl}ac_space=\ *)
2391 sed -n \
2392 "s/'\''/'\''\\\\'\'''\''/g;
2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2394 ;; #(
2395 *)
2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2397 ;;
2398 esac |
2399 sort
2400)
2401 echo
2402
2403 cat <<\_ASBOX
2404## ----------------- ##
2405## Output variables. ##
2406## ----------------- ##
2407_ASBOX
2408 echo
2409 for ac_var in $ac_subst_vars
2410 do
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2418
2419 if test -n "$ac_subst_files"; then
2420 cat <<\_ASBOX
2421## ------------------- ##
2422## File substitutions. ##
2423## ------------------- ##
2424_ASBOX
2425 echo
2426 for ac_var in $ac_subst_files
2427 do
2428 eval ac_val=\$$ac_var
2429 case $ac_val in
2430 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 esac
2432 $as_echo "$ac_var='\''$ac_val'\''"
2433 done | sort
2434 echo
2435 fi
2436
2437 if test -s confdefs.h; then
2438 cat <<\_ASBOX
2439## ----------- ##
2440## confdefs.h. ##
2441## ----------- ##
2442_ASBOX
2443 echo
2444 cat confdefs.h
2445 echo
2446 fi
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2454' 0
2455for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457done
2458ac_signal=0
2459
2460# confdefs.h avoids OS command line length limits that DEFS can exceed.
2461rm -f -r conftest* confdefs.h
2462
2463$as_echo "/* confdefs.h */" > confdefs.h
2464
2465# Predefined preprocessor variables.
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_NAME "$PACKAGE_NAME"
2469_ACEOF
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_VERSION "$PACKAGE_VERSION"
2477_ACEOF
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_STRING "$PACKAGE_STRING"
2481_ACEOF
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485_ACEOF
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_URL "$PACKAGE_URL"
2489_ACEOF
2490
2491
2492# Let the site file select an alternate cache file if it wants to.
2493# Prefer an explicitly selected file to automatically selected ones.
2494ac_site_file1=NONE
2495ac_site_file2=NONE
2496if test -n "$CONFIG_SITE"; then
2497 ac_site_file1=$CONFIG_SITE
2498elif test "x$prefix" != xNONE; then
2499 ac_site_file1=$prefix/share/config.site
2500 ac_site_file2=$prefix/etc/config.site
2501else
2502 ac_site_file1=$ac_default_prefix/share/config.site
2503 ac_site_file2=$ac_default_prefix/etc/config.site
2504fi
2505for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2506do
2507 test "x$ac_site_file" = xNONE && continue
2508 if test -r "$ac_site_file"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2510$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2511 sed 's/^/| /' "$ac_site_file" >&5
2512 . "$ac_site_file"
2513 fi
2514done
2515
2516if test -r "$cache_file"; then
2517 # Some versions of bash will fail to source /dev/null (special
2518 # files actually), so we avoid doing that.
2519 if test -f "$cache_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521$as_echo "$as_me: loading cache $cache_file" >&6;}
2522 case $cache_file in
2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524 *) . "./$cache_file";;
2525 esac
2526 fi
2527else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529$as_echo "$as_me: creating cache $cache_file" >&6;}
2530 >$cache_file
2531fi
2532
74544378
JB
2533as_fn_append ac_header_list " unistd.h"
2534as_fn_append ac_header_list " sys/time.h"
2535as_fn_append ac_header_list " sys/times.h"
2536as_fn_append ac_header_list " sys/resource.h"
2537as_fn_append ac_header_list " sys/types.h"
2538as_fn_append ac_header_list " sys/stat.h"
2539as_fn_append ac_header_list " sys/wait.h"
2540as_fn_append ac_header_list " floatingpoint.h"
2541as_fn_append ac_header_list " ieeefp.h"
2542as_fn_append ac_header_list " fenv.h"
2543as_fn_append ac_header_list " fptrap.h"
2544as_fn_append ac_header_list " pwd.h"
2545as_fn_append ac_header_list " complex.h"
2546as_fn_append ac_func_list " getrusage"
2547as_fn_append ac_func_list " times"
2548as_fn_append ac_func_list " mkstemp"
2549as_fn_append ac_func_list " strtof"
2550as_fn_append ac_func_list " strtold"
2551as_fn_append ac_func_list " snprintf"
2552as_fn_append ac_func_list " ftruncate"
2553as_fn_append ac_func_list " chsize"
2554as_fn_append ac_func_list " chdir"
2555as_fn_append ac_func_list " getlogin"
2556as_fn_append ac_func_list " gethostname"
2557as_fn_append ac_func_list " kill"
2558as_fn_append ac_func_list " link"
2559as_fn_append ac_func_list " symlink"
2560as_fn_append ac_func_list " sleep"
2561as_fn_append ac_func_list " ttyname"
2562as_fn_append ac_func_list " alarm"
2563as_fn_append ac_func_list " access"
2564as_fn_append ac_func_list " fork"
2565as_fn_append ac_func_list " execl"
2566as_fn_append ac_func_list " wait"
2567as_fn_append ac_func_list " setmode"
2568as_fn_append ac_func_list " execve"
2569as_fn_append ac_func_list " pipe"
2570as_fn_append ac_func_list " dup2"
2571as_fn_append ac_func_list " close"
74544378
JB
2572as_fn_append ac_func_list " strcasestr"
2573as_fn_append ac_func_list " getrlimit"
2574as_fn_append ac_func_list " gettimeofday"
2575as_fn_append ac_func_list " stat"
2576as_fn_append ac_func_list " fstat"
2577as_fn_append ac_func_list " lstat"
2578as_fn_append ac_func_list " getpwuid"
2579as_fn_append ac_func_list " vsnprintf"
2580as_fn_append ac_func_list " dup"
2581as_fn_append ac_func_list " getcwd"
2582as_fn_append ac_func_list " localtime_r"
2583as_fn_append ac_func_list " gmtime_r"
2584as_fn_append ac_func_list " strerror_r"
2585as_fn_append ac_func_list " getpwuid_r"
2586as_fn_append ac_func_list " ttyname_r"
2587as_fn_append ac_func_list " clock_gettime"
2588as_fn_append ac_func_list " readlink"
2589as_fn_append ac_func_list " getgid"
2590as_fn_append ac_func_list " getpid"
2591as_fn_append ac_func_list " getppid"
2592as_fn_append ac_func_list " getuid"
2593as_fn_append ac_func_list " geteuid"
8ecd1c0d 2594as_fn_append ac_func_list " umask"
68ee9c08
JB
2595as_fn_append ac_func_list " getegid"
2596as_fn_append ac_func_list " __secure_getenv"
db9f46a9 2597as_fn_append ac_header_list " math.h"
5213506e
RW
2598# Check that the precious variables saved in the cache have kept the same
2599# value.
2600ac_cache_corrupted=false
2601for ac_var in $ac_precious_vars; do
2602 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2603 eval ac_new_set=\$ac_env_${ac_var}_set
2604 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2605 eval ac_new_val=\$ac_env_${ac_var}_value
2606 case $ac_old_set,$ac_new_set in
2607 set,)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2609$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2611 ,set)
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2613$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2615 ,);;
2616 *)
2617 if test "x$ac_old_val" != "x$ac_new_val"; then
2618 # differences in whitespace do not lead to failure.
2619 ac_old_val_w=`echo x $ac_old_val`
2620 ac_new_val_w=`echo x $ac_new_val`
2621 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2623$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2624 ac_cache_corrupted=:
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2627$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2628 eval $ac_var=\$ac_old_val
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2631$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2633$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2634 fi;;
2635 esac
2636 # Pass precious variables to config.status.
2637 if test "$ac_new_set" = set; then
2638 case $ac_new_val in
2639 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2640 *) ac_arg=$ac_var=$ac_new_val ;;
2641 esac
2642 case " $ac_configure_args " in
2643 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2644 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2645 esac
2646 fi
2647done
2648if $ac_cache_corrupted; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2652$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2653 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2654fi
2655## -------------------- ##
2656## Main body of script. ##
2657## -------------------- ##
2658
2659ac_ext=c
2660ac_cpp='$CPP $CPPFLAGS'
2661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664
2665
2666
2667
2668
2669ac_config_headers="$ac_config_headers config.h"
2670
2671ac_aux_dir=
2672for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2673 for ac_t in install-sh install.sh shtool; do
2674 if test -f "$ac_dir/$ac_t"; then
2675 ac_aux_dir=$ac_dir
2676 ac_install_sh="$ac_aux_dir/$ac_t -c"
2677 break 2
2678 fi
2679 done
2680done
2681if test -z "$ac_aux_dir"; then
2682 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2683fi
2684
2685# These three variables are undocumented and unsupported,
2686# and are intended to be withdrawn in a future Autoconf release.
2687# They can cause serious problems if a builder's source tree is in a directory
2688# whose full name contains unusual characters.
2689ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2690ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2691ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2692
2693
2694# Make sure we can run config.sub.
2695$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2696 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2697
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2699$as_echo_n "checking build system type... " >&6; }
2700if test "${ac_cv_build+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 ac_build_alias=$build_alias
2704test "x$ac_build_alias" = x &&
2705 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2706test "x$ac_build_alias" = x &&
2707 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2708ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2709 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2710
2711fi
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2713$as_echo "$ac_cv_build" >&6; }
2714case $ac_cv_build in
2715*-*-*) ;;
2716*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2717esac
2718build=$ac_cv_build
2719ac_save_IFS=$IFS; IFS='-'
2720set x $ac_cv_build
2721shift
2722build_cpu=$1
2723build_vendor=$2
2724shift; shift
2725# Remember, the first character of IFS is used to create $*,
2726# except with old shells:
2727build_os=$*
2728IFS=$ac_save_IFS
2729case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2730
2731
2732 case ${build_alias} in
2733 "") build_noncanonical=${build} ;;
2734 *) build_noncanonical=${build_alias} ;;
2735esac
891c05b1
JJ
2736
2737 case ${host_alias} in
2738 "") host_noncanonical=${build_noncanonical} ;;
2739 *) host_noncanonical=${host_alias} ;;
2740esac
2741
2742 case ${target_alias} in
2743 "") target_noncanonical=${host_noncanonical} ;;
2744 *) target_noncanonical=${target_alias} ;;
2745esac
2746
57255173
PB
2747
2748# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2749# have matching libraries, they should use host libraries: Makefile.tpl
2750# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2751# However, they still use the build modules, because the corresponding
2752# host modules (e.g. bison) are only built for the host when bootstrap
2753# finishes. So:
2754# - build_subdir is where we find build modules, and never changes.
2755# - build_libsubdir is where we find build libraries, and can be overridden.
2756
2757# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2758build_subdir="build-${build_noncanonical}"
57255173 2759
5213506e
RW
2760# Check whether --with-build-libsubdir was given.
2761if test "${with_build_libsubdir+set}" = set; then :
2762 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2763else
2764 build_libsubdir="$build_subdir"
5213506e
RW
2765fi
2766
891c05b1
JJ
2767# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2768if ( test $srcdir = . && test -d gcc ) \
2769 || test -d $srcdir/../host-${host_noncanonical}; then
2770 host_subdir="host-${host_noncanonical}"
2771else
2772 host_subdir=.
2773fi
2774# No prefix.
2775target_subdir=${target_noncanonical}
2776
2777
2778# -------
2779# Options
2780# -------
2781
5213506e
RW
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2783$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2784# Check whether --enable-version-specific-runtime-libs was given.
2785if test "${enable_version_specific_runtime_libs+set}" = set; then :
2786 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2787 yes) version_specific_libs=yes ;;
2788 no) version_specific_libs=no ;;
5213506e 2789 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2790 esac
2791else
2792 version_specific_libs=no
5213506e
RW
2793fi
2794
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2796$as_echo "$version_specific_libs" >&6; }
891c05b1 2797
b808ac33 2798# Build with intermodule optimisations
5213506e
RW
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2800$as_echo_n "checking for --enable-intermodule... " >&6; }
2801# Check whether --enable-intermodule was given.
2802if test "${enable_intermodule+set}" = set; then :
2803 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2804 yes) onestep="-onestep";;
2805 *) onestep="";;
2806esac
2807else
2808 onestep=""
5213506e 2809fi
b808ac33 2810
5213506e
RW
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2812$as_echo "$enable_intermodule" >&6; }
2813 if test x$onestep = x-onestep; then
b808ac33
BF
2814 onestep_TRUE=
2815 onestep_FALSE='#'
2816else
2817 onestep_TRUE='#'
2818 onestep_FALSE=
2819fi
2820
2821
891c05b1
JJ
2822
2823# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2824#
2825# You will slowly go insane if you do not grok the following fact: when
2826# building this library, the top-level /target/ becomes the library's /host/.
2827#
2828# configure then causes --target to default to --host, exactly like any
2829# other package using autoconf. Therefore, 'target' and 'host' will
2830# always be the same. This makes sense both for native and cross compilers
2831# just think about it for a little while. :-)
2832#
2833# Also, if this library is being configured as part of a cross compiler, the
2834# top-level configure script will pass the "real" host as $with_cross_host.
2835#
2836# Do not delete or change the following two lines. For why, see
2837# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2839$as_echo_n "checking host system type... " >&6; }
2840if test "${ac_cv_host+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2842else
2843 if test "x$host_alias" = x; then
2844 ac_cv_host=$ac_cv_build
2845else
2846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2847 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2848fi
2849
2850fi
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2852$as_echo "$ac_cv_host" >&6; }
2853case $ac_cv_host in
2854*-*-*) ;;
2855*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2856esac
96b8a615 2857host=$ac_cv_host
5213506e
RW
2858ac_save_IFS=$IFS; IFS='-'
2859set x $ac_cv_host
2860shift
2861host_cpu=$1
2862host_vendor=$2
2863shift; shift
2864# Remember, the first character of IFS is used to create $*,
2865# except with old shells:
2866host_os=$*
2867IFS=$ac_save_IFS
2868case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2869
2870
5213506e
RW
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2872$as_echo_n "checking target system type... " >&6; }
2873if test "${ac_cv_target+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
96b8a615 2875else
5213506e
RW
2876 if test "x$target_alias" = x; then
2877 ac_cv_target=$ac_cv_host
2878else
2879 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2880 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2881fi
96b8a615
AJ
2882
2883fi
5213506e
RW
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2885$as_echo "$ac_cv_target" >&6; }
2886case $ac_cv_target in
2887*-*-*) ;;
2888*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2889esac
96b8a615 2890target=$ac_cv_target
5213506e
RW
2891ac_save_IFS=$IFS; IFS='-'
2892set x $ac_cv_target
2893shift
2894target_cpu=$1
2895target_vendor=$2
2896shift; shift
2897# Remember, the first character of IFS is used to create $*,
2898# except with old shells:
2899target_os=$*
2900IFS=$ac_save_IFS
2901case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2902
2903
2904# The aliases save the names the user supplied, while $host etc.
2905# will get canonicalized.
2906test -n "$target_alias" &&
2907 test "$program_prefix$program_suffix$program_transform_name" = \
2908 NONENONEs,x,x, &&
2909 program_prefix=${target_alias}-
5213506e 2910
60858d8a
TB
2911
2912
2913
96b8a615
AJ
2914target_alias=${target_alias-$host_alias}
2915
60858d8a 2916
96b8a615
AJ
2917# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2918# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 2919# 1.9.6: minimum required version
96b8a615
AJ
2920# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2921# of other PACKAGE_* variables will, however, and there's nothing
2922# we can do about that; they come from AC_INIT).
2923# foreign: we don't follow the normal rules for GNU packages (no COPYING
2924# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 2925# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
2926# -Wall: turns on all automake warnings...
2927# -Wno-portability: ...except this one, since GNU make is required.
5213506e
RW
2928am__api_version='1.11'
2929
6de9cd9a
DN
2930# Find a good install program. We prefer a C program (faster),
2931# so one script is as good as another. But avoid the broken or
2932# incompatible versions:
2933# SysV /etc/install, /usr/sbin/install
2934# SunOS /usr/etc/install
2935# IRIX /sbin/install
2936# AIX /bin/install
2937# AmigaOS /C/install, which installs bootblocks on floppy discs
2938# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2939# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2940# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2941# OS/2's system install, which has a completely different semantic
2942# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2943# Reject install programs that cannot install multiple files.
5213506e
RW
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2945$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 2946if test -z "$INSTALL"; then
5213506e
RW
2947if test "${ac_cv_path_install+set}" = set; then :
2948 $as_echo_n "(cached) " >&6
6de9cd9a
DN
2949else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
5213506e
RW
2955 # Account for people who put trailing slashes in PATH elements.
2956case $as_dir/ in #((
2957 ./ | .// | /[cC]/* | \
6de9cd9a 2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2959 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
2960 /usr/ucb/* ) ;;
2961 *)
2962 # OSF1 and SCO ODT 3.0 have their own names for install.
2963 # Don't use installbsd from OSF since it installs stuff as root
2964 # by default.
2965 for ac_prog in ginstall scoinst install; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6de9cd9a
DN
2968 if test $ac_prog = install &&
2969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # AIX install. It has an incompatible calling convention.
2971 :
2972 elif test $ac_prog = install &&
2973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # program-specific install script used by HP pwplus--don't use.
2975 :
2976 else
38d24731
RW
2977 rm -rf conftest.one conftest.two conftest.dir
2978 echo one > conftest.one
2979 echo two > conftest.two
2980 mkdir conftest.dir
2981 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2982 test -s conftest.one && test -s conftest.two &&
2983 test -s conftest.dir/conftest.one &&
2984 test -s conftest.dir/conftest.two
2985 then
2986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2987 break 3
2988 fi
6de9cd9a
DN
2989 fi
2990 fi
2991 done
2992 done
2993 ;;
2994esac
5213506e
RW
2995
2996 done
2997IFS=$as_save_IFS
6de9cd9a 2998
38d24731 2999rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
3000
3001fi
3002 if test "${ac_cv_path_install+set}" = set; then
3003 INSTALL=$ac_cv_path_install
3004 else
f489fba1
FXC
3005 # As a last resort, use the slow shell script. Don't cache a
3006 # value for INSTALL within a source directory, because that will
6de9cd9a 3007 # break other packages using the cache if that directory is
f489fba1 3008 # removed, or if the value is a relative name.
6de9cd9a
DN
3009 INSTALL=$ac_install_sh
3010 fi
3011fi
5213506e
RW
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3013$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
3014
3015# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016# It thinks the first close brace ends the variable substitution.
3017test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3018
3019test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3020
3021test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3022
5213506e
RW
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3024$as_echo_n "checking whether build environment is sane... " >&6; }
6de9cd9a
DN
3025# Just in case
3026sleep 1
3027echo timestamp > conftest.file
5213506e
RW
3028# Reject unsafe characters in $srcdir or the absolute working directory
3029# name. Accept space and tab only in the latter.
3030am_lf='
3031'
3032case `pwd` in
3033 *[\\\"\#\$\&\'\`$am_lf]*)
3034 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3035esac
3036case $srcdir in
3037 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3038 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3039esac
3040
6de9cd9a
DN
3041# Do `set' in a subshell so we don't clobber the current shell's
3042# arguments. Must try -L first in case configure is actually a
3043# symlink; some systems play weird games with the mod time of symlinks
3044# (eg FreeBSD returns the mod time of the symlink's containing
3045# directory).
3046if (
5213506e 3047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6de9cd9a
DN
3048 if test "$*" = "X"; then
3049 # -L didn't work.
5213506e 3050 set X `ls -t "$srcdir/configure" conftest.file`
6de9cd9a
DN
3051 fi
3052 rm -f conftest.file
3053 if test "$*" != "X $srcdir/configure conftest.file" \
3054 && test "$*" != "X conftest.file $srcdir/configure"; then
3055
3056 # If neither matched, then we have a broken ls. This can happen
3057 # if, for instance, CONFIG_SHELL is bash and it inherits a
3058 # broken ls alias from the environment. This has actually
3059 # happened. Such a system could not be considered "sane".
5213506e
RW
3060 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3061alias in your environment" "$LINENO" 5
6de9cd9a
DN
3062 fi
3063
3064 test "$2" = conftest.file
3065 )
3066then
3067 # Ok.
3068 :
3069else
5213506e
RW
3070 as_fn_error "newly created file is older than distributed files!
3071Check your system clock" "$LINENO" 5
6de9cd9a 3072fi
5213506e
RW
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074$as_echo "yes" >&6; }
6de9cd9a 3075test "$program_prefix" != NONE &&
5213506e 3076 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3077# Use a double $ so make ignores it.
3078test "$program_suffix" != NONE &&
5213506e
RW
3079 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3080# Double any \ or $.
6de9cd9a 3081# By default was `s,x,x', remove it if useless.
5213506e
RW
3082ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3083program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a
DN
3084
3085# expand $ac_aux_dir to an absolute path
3086am_aux_dir=`cd $ac_aux_dir && pwd`
3087
5213506e
RW
3088if test x"${MISSING+set}" != xset; then
3089 case $am_aux_dir in
3090 *\ * | *\ *)
3091 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3092 *)
3093 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3094 esac
3095fi
6de9cd9a
DN
3096# Use eval to expand $SHELL
3097if eval "$MISSING --run true"; then
3098 am_missing_run="$MISSING --run "
3099else
3100 am_missing_run=
5213506e
RW
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3102$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6de9cd9a
DN
3103fi
3104
5213506e
RW
3105if test x"${install_sh}" != xset; then
3106 case $am_aux_dir in
3107 *\ * | *\ *)
3108 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3109 *)
3110 install_sh="\${SHELL} $am_aux_dir/install-sh"
3111 esac
3112fi
3113
3114# Installed binaries are usually stripped using `strip' when the user
3115# run `make install-strip'. However `strip' might not be the right
3116# tool to use in cross-compilation environments, therefore Automake
3117# will honor the `STRIP' environment variable to overrule this program.
3118if test "$cross_compiling" != no; then
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3121set dummy ${ac_tool_prefix}strip; ac_word=$2
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123$as_echo_n "checking for $ac_word... " >&6; }
3124if test "${ac_cv_prog_STRIP+set}" = set; then :
3125 $as_echo_n "(cached) " >&6
6de9cd9a 3126else
5213506e
RW
3127 if test -n "$STRIP"; then
3128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
5213506e
RW
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3139 break 2
3140 fi
3141done
5213506e
RW
3142 done
3143IFS=$as_save_IFS
6de9cd9a
DN
3144
3145fi
3146fi
5213506e
RW
3147STRIP=$ac_cv_prog_STRIP
3148if test -n "$STRIP"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3150$as_echo "$STRIP" >&6; }
6de9cd9a 3151else
5213506e
RW
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
6de9cd9a
DN
3154fi
3155
6de9cd9a 3156
5213506e
RW
3157fi
3158if test -z "$ac_cv_prog_STRIP"; then
3159 ac_ct_STRIP=$STRIP
3160 # Extract the first word of "strip", so it can be a program name with args.
3161set dummy strip; ac_word=$2
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163$as_echo_n "checking for $ac_word... " >&6; }
3164if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
6de9cd9a 3166else
5213506e
RW
3167 if test -n "$ac_ct_STRIP"; then
3168 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3169else
5213506e
RW
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_ac_ct_STRIP="strip"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181done
3182 done
3183IFS=$as_save_IFS
3184
38d24731 3185fi
6de9cd9a 3186fi
5213506e
RW
3187ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3188if test -n "$ac_ct_STRIP"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3190$as_echo "$ac_ct_STRIP" >&6; }
3191else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193$as_echo "no" >&6; }
3194fi
3195
3196 if test "x$ac_ct_STRIP" = x; then
3197 STRIP=":"
3198 else
3199 case $cross_compiling:$ac_tool_warned in
3200yes:)
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203ac_tool_warned=yes ;;
3204esac
3205 STRIP=$ac_ct_STRIP
3206 fi
3207else
3208 STRIP="$ac_cv_prog_STRIP"
3209fi
3210
3211fi
3212INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3213
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3215$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3216if test -z "$MKDIR_P"; then
3217 if test "${ac_cv_path_mkdir+set}" = set; then :
3218 $as_echo_n "(cached) " >&6
3219else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3222do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_prog in mkdir gmkdir; do
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3228 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3229 'mkdir (GNU coreutils) '* | \
3230 'mkdir (coreutils) '* | \
3231 'mkdir (fileutils) '4.1*)
3232 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3233 break 3;;
3234 esac
3235 done
3236 done
3237 done
3238IFS=$as_save_IFS
3239
3240fi
3241
3242 if test "${ac_cv_path_mkdir+set}" = set; then
3243 MKDIR_P="$ac_cv_path_mkdir -p"
3244 else
3245 # As a last resort, use the slow shell script. Don't cache a
3246 # value for MKDIR_P within a source directory, because that will
3247 # break other packages using the cache if that directory is
3248 # removed, or if the value is a relative name.
3249 test -d ./--version && rmdir ./--version
3250 MKDIR_P="$ac_install_sh -d"
3251 fi
3252fi
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3254$as_echo "$MKDIR_P" >&6; }
3255
3256mkdir_p="$MKDIR_P"
3257case $mkdir_p in
3258 [\\/$]* | ?:[\\/]*) ;;
3259 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3260esac
3261
3262for ac_prog in gawk mawk nawk awk
3263do
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265set dummy $ac_prog; ac_word=$2
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267$as_echo_n "checking for $ac_word... " >&6; }
3268if test "${ac_cv_prog_AWK+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3270else
3271 if test -n "$AWK"; then
3272 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_AWK="$ac_prog"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285done
3286 done
3287IFS=$as_save_IFS
3288
3289fi
3290fi
3291AWK=$ac_cv_prog_AWK
3292if test -n "$AWK"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294$as_echo "$AWK" >&6; }
3295else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298fi
3299
3300
3301 test -n "$AWK" && break
3302done
3303
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306set x ${MAKE-make}
3307ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3309 $as_echo_n "(cached) " >&6
3310else
3311 cat >conftest.make <<\_ACEOF
3312SHELL = /bin/sh
3313all:
3314 @echo '@@@%%%=$(MAKE)=@@@%%%'
3315_ACEOF
3316# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3317case `${MAKE-make} -f conftest.make 2>/dev/null` in
3318 *@@@%%%=?*=@@@%%%*)
3319 eval ac_cv_prog_make_${ac_make}_set=yes;;
3320 *)
3321 eval ac_cv_prog_make_${ac_make}_set=no;;
3322esac
3323rm -f conftest.make
3324fi
3325if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327$as_echo "yes" >&6; }
6de9cd9a
DN
3328 SET_MAKE=
3329else
5213506e
RW
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
6de9cd9a
DN
3332 SET_MAKE="MAKE=${MAKE-make}"
3333fi
3334
3335rm -rf .tst 2>/dev/null
3336mkdir .tst 2>/dev/null
3337if test -d .tst; then
3338 am__leading_dot=.
3339else
3340 am__leading_dot=_
3341fi
3342rmdir .tst 2>/dev/null
3343
5213506e
RW
3344if test "`cd $srcdir && pwd`" != "`pwd`"; then
3345 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3346 # is not polluted with repeated "-I."
3347 am__isrc=' -I$(srcdir)'
3348 # test to see if srcdir already configured
3349 if test -f $srcdir/config.status; then
3350 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3351 fi
6de9cd9a
DN
3352fi
3353
3354# test whether we have cygpath
3355if test -z "$CYGPATH_W"; then
3356 if (cygpath --version) >/dev/null 2>/dev/null; then
3357 CYGPATH_W='cygpath -w'
3358 else
3359 CYGPATH_W=echo
3360 fi
3361fi
3362
3363
3364# Define the identity of the package.
3365 PACKAGE='libgfortran'
0dce3ca1 3366 VERSION='0.3'
6de9cd9a
DN
3367
3368
6de9cd9a
DN
3369# Some tools Automake needs.
3370
3371ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3372
3373
3374AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3375
3376
3377AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3378
3379
3380AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3381
3382
3383MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3384
6de9cd9a
DN
3385# We need awk for the "check" target. The system "awk" is bad on
3386# some platforms.
d49ec2d1
KC
3387# Always define AMTAR for backward compatibility.
3388
3389AMTAR=${AMTAR-"${am_missing_run}tar"}
3390
3391am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3392
3393
6de9cd9a
DN
3394
3395
3396
6de9cd9a 3397
5213506e
RW
3398
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3400$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3401 # Check whether --enable-maintainer-mode was given.
3402if test "${enable_maintainer_mode+set}" = set; then :
3403 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3404else
3405 USE_MAINTAINER_MODE=no
5213506e 3406fi
6de9cd9a 3407
5213506e
RW
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3409$as_echo "$USE_MAINTAINER_MODE" >&6; }
3410 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3411 MAINTAINER_MODE_TRUE=
3412 MAINTAINER_MODE_FALSE='#'
3413else
3414 MAINTAINER_MODE_TRUE='#'
3415 MAINTAINER_MODE_FALSE=
3416fi
3417
3418 MAINT=$MAINTAINER_MODE_TRUE
3419
3420
96b8a615 3421# Default to --enable-multilib
5213506e
RW
3422# Check whether --enable-multilib was given.
3423if test "${enable_multilib+set}" = set; then :
3424 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3425 yes) multilib=yes ;;
3426 no) multilib=no ;;
5213506e 3427 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3428 esac
3429else
3430 multilib=yes
5213506e
RW
3431fi
3432
96b8a615
AJ
3433
3434# We may get other options which we leave undocumented:
3435# --with-target-subdir, --with-multisrctop, --with-multisubdir
3436# See config-ml.in if you want the gory details.
3437
3438if test "$srcdir" = "."; then
3439 if test "$with_target_subdir" != "."; then
3440 multi_basedir="$srcdir/$with_multisrctop../.."
3441 else
3442 multi_basedir="$srcdir/$with_multisrctop.."
3443 fi
3444else
3445 multi_basedir="$srcdir/.."
3446fi
3447
3448
9f9ef303
FXC
3449# Even if the default multilib is not a cross compilation,
3450# it may be that some of the other multilibs are.
3451if test $cross_compiling = no && test $multilib = yes \
3452 && test "x${with_multisubdir}" != x ; then
3453 cross_compiling=maybe
3454fi
3455
5213506e 3456ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3457
3458
3459# Handy for debugging:
3460#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3461
3462# Are we being configured with some form of cross compiler?
3463# NB: We don't actually need to know this just now, but when, say, a test
3464# suite is included, we'll have to know.
3465if test "$build" != "$host"; then
3466 LIBGFOR_IS_NATIVE=false
f02d008e 3467
96b8a615
AJ
3468else
3469 LIBGFOR_IS_NATIVE=true
3470fi
3471
21be0a5a 3472DEPDIR="${am__leading_dot}deps"
96b8a615 3473
21be0a5a 3474ac_config_commands="$ac_config_commands depfiles"
96b8a615 3475
6de9cd9a 3476
21be0a5a
JB
3477am_make=${MAKE-make}
3478cat > confinc << 'END'
3479am__doit:
3480 @echo this is the am__doit target
3481.PHONY: am__doit
3482END
3483# If we don't find an include directive, just comment out the code.
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3485$as_echo_n "checking for style of include used by $am_make... " >&6; }
3486am__include="#"
3487am__quote=
3488_am_result=none
3489# First try GNU make style include.
3490echo "include confinc" > confmf
3491# Ignore all kinds of additional output from `make'.
3492case `$am_make -s -f confmf 2> /dev/null` in #(
3493*the\ am__doit\ target*)
3494 am__include=include
3495 am__quote=
3496 _am_result=GNU
3497 ;;
3498esac
3499# Now try BSD make style include.
3500if test "$am__include" = "#"; then
3501 echo '.include "confinc"' > confmf
3502 case `$am_make -s -f confmf 2> /dev/null` in #(
3503 *the\ am__doit\ target*)
3504 am__include=.include
3505 am__quote="\""
3506 _am_result=BSD
3507 ;;
3508 esac
3509fi
1ec601bf 3510
6de9cd9a 3511
21be0a5a
JB
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3513$as_echo "$_am_result" >&6; }
3514rm -f confinc confmf
3515
3516# Check whether --enable-dependency-tracking was given.
3517if test "${enable_dependency_tracking+set}" = set; then :
3518 enableval=$enable_dependency_tracking;
3519fi
3520
3521if test "x$enable_dependency_tracking" != xno; then
3522 am_depcomp="$ac_aux_dir/depcomp"
3523 AMDEPBACKSLASH='\'
3524fi
3525 if test "x$enable_dependency_tracking" != xno; then
3526 AMDEP_TRUE=
3527 AMDEP_FALSE='#'
3528else
3529 AMDEP_TRUE='#'
3530 AMDEP_FALSE=
3531fi
6de9cd9a
DN
3532
3533
6de9cd9a
DN
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543$as_echo_n "checking for $ac_word... " >&6; }
3544if test "${ac_cv_prog_CC+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3546else
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549else
3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
5213506e
RW
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3559 break 2
3560 fi
3561done
5213506e
RW
3562 done
3563IFS=$as_save_IFS
6de9cd9a
DN
3564
3565fi
3566fi
3567CC=$ac_cv_prog_CC
3568if test -n "$CC"; then
5213506e
RW
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570$as_echo "$CC" >&6; }
6de9cd9a 3571else
5213506e
RW
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573$as_echo "no" >&6; }
6de9cd9a
DN
3574fi
3575
5213506e 3576
6de9cd9a
DN
3577fi
3578if test -z "$ac_cv_prog_CC"; then
3579 ac_ct_CC=$CC
3580 # Extract the first word of "gcc", so it can be a program name with args.
3581set dummy gcc; ac_word=$2
5213506e
RW
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583$as_echo_n "checking for $ac_word... " >&6; }
3584if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3586else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
5213506e
RW
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3597 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3599 break 2
3600 fi
3601done
5213506e
RW
3602 done
3603IFS=$as_save_IFS
6de9cd9a
DN
3604
3605fi
3606fi
3607ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608if test -n "$ac_ct_CC"; then
5213506e
RW
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3611else
5213506e
RW
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613$as_echo "no" >&6; }
6de9cd9a
DN
3614fi
3615
5213506e
RW
3616 if test "x$ac_ct_CC" = x; then
3617 CC=""
3618 else
3619 case $cross_compiling:$ac_tool_warned in
3620yes:)
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623ac_tool_warned=yes ;;
3624esac
3625 CC=$ac_ct_CC
3626 fi
6de9cd9a
DN
3627else
3628 CC="$ac_cv_prog_CC"
3629fi
3630
3631if test -z "$CC"; then
5213506e
RW
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3634set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636$as_echo_n "checking for $ac_word... " >&6; }
3637if test "${ac_cv_prog_CC+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3639else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
5213506e
RW
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3650 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3652 break 2
3653 fi
3654done
5213506e
RW
3655 done
3656IFS=$as_save_IFS
6de9cd9a
DN
3657
3658fi
3659fi
3660CC=$ac_cv_prog_CC
3661if test -n "$CC"; then
5213506e
RW
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663$as_echo "$CC" >&6; }
38d24731 3664else
5213506e
RW
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666$as_echo "no" >&6; }
38d24731
RW
3667fi
3668
38d24731 3669
5213506e 3670 fi
6de9cd9a
DN
3671fi
3672if test -z "$CC"; then
3673 # Extract the first word of "cc", so it can be a program name with args.
3674set dummy cc; ac_word=$2
5213506e
RW
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676$as_echo_n "checking for $ac_word... " >&6; }
3677if test "${ac_cv_prog_CC+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3679else
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682else
3683 ac_prog_rejected=no
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
5213506e
RW
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a
DN
3691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3692 ac_prog_rejected=yes
3693 continue
3694 fi
3695 ac_cv_prog_CC="cc"
5213506e 3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3697 break 2
3698 fi
3699done
5213506e
RW
3700 done
3701IFS=$as_save_IFS
6de9cd9a
DN
3702
3703if test $ac_prog_rejected = yes; then
3704 # We found a bogon in the path, so make sure we never use it.
3705 set dummy $ac_cv_prog_CC
3706 shift
3707 if test $# != 0; then
3708 # We chose a different compiler from the bogus one.
3709 # However, it has the same basename, so the bogon will be chosen
3710 # first if we set CC to just the basename; use the full file name.
3711 shift
3712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3713 fi
3714fi
3715fi
3716fi
3717CC=$ac_cv_prog_CC
3718if test -n "$CC"; then
5213506e
RW
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720$as_echo "$CC" >&6; }
6de9cd9a 3721else
5213506e
RW
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723$as_echo "no" >&6; }
6de9cd9a
DN
3724fi
3725
5213506e 3726
6de9cd9a
DN
3727fi
3728if test -z "$CC"; then
3729 if test -n "$ac_tool_prefix"; then
5213506e 3730 for ac_prog in cl.exe
6de9cd9a
DN
3731 do
3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735$as_echo_n "checking for $ac_word... " >&6; }
3736if test "${ac_cv_prog_CC+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3738else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
5213506e
RW
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3751 break 2
3752 fi
3753done
5213506e
RW
3754 done
3755IFS=$as_save_IFS
6de9cd9a
DN
3756
3757fi
3758fi
3759CC=$ac_cv_prog_CC
3760if test -n "$CC"; then
5213506e
RW
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762$as_echo "$CC" >&6; }
6de9cd9a 3763else
5213506e
RW
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
6de9cd9a
DN
3766fi
3767
5213506e 3768
6de9cd9a
DN
3769 test -n "$CC" && break
3770 done
3771fi
3772if test -z "$CC"; then
3773 ac_ct_CC=$CC
5213506e 3774 for ac_prog in cl.exe
6de9cd9a
DN
3775do
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777set dummy $ac_prog; ac_word=$2
5213506e
RW
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779$as_echo_n "checking for $ac_word... " >&6; }
3780if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3782else
3783 if test -n "$ac_ct_CC"; then
3784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785else
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
5213506e
RW
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3793 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3795 break 2
3796 fi
3797done
5213506e
RW
3798 done
3799IFS=$as_save_IFS
6de9cd9a
DN
3800
3801fi
3802fi
3803ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804if test -n "$ac_ct_CC"; then
5213506e
RW
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3807else
5213506e
RW
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809$as_echo "no" >&6; }
6de9cd9a
DN
3810fi
3811
5213506e 3812
6de9cd9a
DN
3813 test -n "$ac_ct_CC" && break
3814done
3815
5213506e
RW
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820yes:)
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823ac_tool_warned=yes ;;
3824esac
3825 CC=$ac_ct_CC
3826 fi
6de9cd9a
DN
3827fi
3828
3829fi
3830
3831
5213506e
RW
3832test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834as_fn_error "no acceptable C compiler found in \$PATH
3835See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
3836
3837# Provide some information about the compiler.
5213506e
RW
3838$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3839set X $ac_compile
3840ac_compiler=$2
3841for ac_option in --version -v -V -qversion; do
3842 { { ac_try="$ac_compiler $ac_option >&5"
3843case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846esac
3847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848$as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 3850 ac_status=$?
5213506e
RW
3851 if test -s conftest.err; then
3852 sed '10a\
3853... rest of stderr output deleted ...
3854 10q' conftest.err >conftest.er1
3855 cat conftest.er1 >&5
3856 rm -f conftest.er1 conftest.err
3857 fi
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860done
6de9cd9a 3861
5213506e 3862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
3863/* end confdefs.h. */
3864
f02d008e
JD
3865int
3866main ()
3867{
3868
3869 ;
3870 return 0;
3871}
3872_ACEOF
3873# FIXME: Cleanup?
5213506e 3874if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
3875 (eval $ac_link) 2>&5
3876 ac_status=$?
5213506e
RW
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; then :
f02d008e
JD
3879 gcc_no_link=no
3880else
3881 gcc_no_link=yes
3882fi
f02d008e
JD
3883if test x$gcc_no_link = xyes; then
3884 # Setting cross_compile will disable run tests; it will
3885 # also disable AC_CHECK_FILE but that's generally
3886 # correct if we can't link.
3887 cross_compiling=yes
3888 EXEEXT=
3889else
5213506e 3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
3891/* end confdefs.h. */
3892
6de9cd9a
DN
3893int
3894main ()
3895{
3896
3897 ;
3898 return 0;
3899}
3900_ACEOF
3901ac_clean_files_save=$ac_clean_files
5213506e 3902ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6de9cd9a
DN
3903# Try to create an executable without -o first, disregard a.out.
3904# It will help us diagnose broken compilers, and finding out an intuition
3905# of exeext.
5213506e
RW
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3907$as_echo_n "checking for C compiler default output file name... " >&6; }
3908ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3909
3910# The possible output files:
3911ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3912
3913ac_rmfiles=
3914for ac_file in $ac_files
3915do
3916 case $ac_file in
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3918 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3919 esac
3920done
3921rm -f $ac_rmfiles
3922
3923if { { ac_try="$ac_link_default"
3924case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927esac
3928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929$as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_link_default") 2>&5
3931 ac_status=$?
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }; then :
3934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3935# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3936# in a Makefile. We should not override ac_cv_exeext if it was cached,
3937# so that the user can short-circuit this test for compilers unknown to
3938# Autoconf.
3939for ac_file in $ac_files ''
6de9cd9a
DN
3940do
3941 test -f "$ac_file" || continue
3942 case $ac_file in
5213506e 3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
3944 ;;
3945 [ab].out )
3946 # We found the default executable, but exeext='' is most
3947 # certainly right.
3948 break;;
3949 *.* )
5213506e
RW
3950 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3951 then :; else
3952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3953 fi
3954 # We set ac_cv_exeext here because the later test for it is not
3955 # safe: cross compilers may not add the suffix if given an `-o'
3956 # argument, so we may need to know it at that point already.
3957 # Even if this section looks crufty: it has the advantage of
3958 # actually working.
6de9cd9a
DN
3959 break;;
3960 * )
3961 break;;
3962 esac
3963done
5213506e
RW
3964test "$ac_cv_exeext" = no && ac_cv_exeext=
3965
6de9cd9a 3966else
5213506e
RW
3967 ac_file=''
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3970$as_echo "$ac_file" >&6; }
3971if test -z "$ac_file"; then :
3972 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
5213506e
RW
3975{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977{ as_fn_set_status 77
3978as_fn_error "C compiler cannot create executables
3979See \`config.log' for more details." "$LINENO" 5; }; }
6de9cd9a 3980fi
6de9cd9a 3981ac_exeext=$ac_cv_exeext
6de9cd9a 3982
5213506e 3983# Check that the compiler produces executables we can run. If not, either
6de9cd9a 3984# the compiler is broken, or we cross compile.
5213506e
RW
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3986$as_echo_n "checking whether the C compiler works... " >&6; }
6de9cd9a
DN
3987# If not cross compiling, check that we can run a simple program.
3988if test "$cross_compiling" != yes; then
3989 if { ac_try='./$ac_file'
5213506e
RW
3990 { { case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993esac
3994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995$as_echo "$ac_try_echo"; } >&5
3996 (eval "$ac_try") 2>&5
6de9cd9a 3997 ac_status=$?
5213506e
RW
3998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }; }; then
6de9cd9a
DN
4000 cross_compiling=no
4001 else
4002 if test "$cross_compiling" = maybe; then
4003 cross_compiling=yes
4004 else
5213506e
RW
4005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007as_fn_error "cannot run C compiled programs.
6de9cd9a 4008If you meant to cross compile, use \`--host'.
5213506e 4009See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
4010 fi
4011 fi
4012fi
5213506e
RW
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4014$as_echo "yes" >&6; }
6de9cd9a 4015
5213506e 4016rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6de9cd9a 4017ac_clean_files=$ac_clean_files_save
5213506e 4018# Check that the compiler produces executables we can run. If not, either
6de9cd9a 4019# the compiler is broken, or we cross compile.
5213506e
RW
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4021$as_echo_n "checking whether we are cross compiling... " >&6; }
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4023$as_echo "$cross_compiling" >&6; }
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4026$as_echo_n "checking for suffix of executables... " >&6; }
4027if { { ac_try="$ac_link"
4028case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031esac
4032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033$as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_link") 2>&5
6de9cd9a 4035 ac_status=$?
5213506e
RW
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; then :
6de9cd9a
DN
4038 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4039# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4040# work properly (i.e., refer to `conftest.exe'), while it won't with
4041# `rm'.
4042for ac_file in conftest.exe conftest conftest.*; do
4043 test -f "$ac_file" || continue
4044 case $ac_file in
5213506e 4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 4046 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
4047 break;;
4048 * ) break;;
4049 esac
4050done
4051else
5213506e
RW
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054as_fn_error "cannot compute suffix of executables: cannot compile and link
4055See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a 4056fi
6de9cd9a 4057rm -f conftest$ac_cv_exeext
5213506e
RW
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4059$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
4060
4061rm -f conftest.$ac_ext
4062EXEEXT=$ac_cv_exeext
4063ac_exeext=$EXEEXT
f02d008e 4064fi
5213506e
RW
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4066$as_echo_n "checking for suffix of object files... " >&6; }
4067if test "${ac_cv_objext+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
6de9cd9a 4069else
5213506e 4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
4071/* end confdefs.h. */
4072
4073int
4074main ()
4075{
4076
4077 ;
4078 return 0;
4079}
4080_ACEOF
4081rm -f conftest.o conftest.obj
5213506e
RW
4082if { { ac_try="$ac_compile"
4083case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088$as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_compile") 2>&5
4090 ac_status=$?
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }; then :
4093 for ac_file in conftest.o conftest.obj conftest.*; do
4094 test -f "$ac_file" || continue;
6de9cd9a 4095 case $ac_file in
5213506e 4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4098 break;;
4099 esac
4100done
4101else
5213506e 4102 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
5213506e
RW
4105{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107as_fn_error "cannot compute suffix of object files: cannot compile
4108See \`config.log' for more details." "$LINENO" 5; }
78511f8b 4109fi
78511f8b
JB
4110rm -f conftest.$ac_cv_objext conftest.$ac_ext
4111fi
5213506e
RW
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4113$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4114OBJEXT=$ac_cv_objext
4115ac_objext=$OBJEXT
5213506e
RW
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4117$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4118if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
78511f8b 4120else
5213506e 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4122/* end confdefs.h. */
6de9cd9a 4123
6de9cd9a
DN
4124int
4125main ()
4126{
78511f8b
JB
4127#ifndef __GNUC__
4128 choke me
4129#endif
c0e7e2bf 4130
6de9cd9a
DN
4131 ;
4132 return 0;
4133}
4134_ACEOF
5213506e 4135if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4136 ac_compiler_gnu=yes
6de9cd9a 4137else
5213506e 4138 ac_compiler_gnu=no
78511f8b 4139fi
5213506e 4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4141ac_cv_c_compiler_gnu=$ac_compiler_gnu
4142
4143fi
5213506e
RW
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4145$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4146if test $ac_compiler_gnu = yes; then
4147 GCC=yes
4148else
4149 GCC=
4150fi
78511f8b
JB
4151ac_test_CFLAGS=${CFLAGS+set}
4152ac_save_CFLAGS=$CFLAGS
5213506e
RW
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4154$as_echo_n "checking whether $CC accepts -g... " >&6; }
4155if test "${ac_cv_prog_cc_g+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
78511f8b 4157else
5213506e
RW
4158 ac_save_c_werror_flag=$ac_c_werror_flag
4159 ac_c_werror_flag=yes
4160 ac_cv_prog_cc_g=no
4161 CFLAGS="-g"
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4163/* end confdefs.h. */
c0e7e2bf 4164
6de9cd9a
DN
4165int
4166main ()
4167{
c0e7e2bf 4168
6de9cd9a
DN
4169 ;
4170 return 0;
4171}
4172_ACEOF
5213506e 4173if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4174 ac_cv_prog_cc_g=yes
4175else
5213506e
RW
4176 CFLAGS=""
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178/* end confdefs.h. */
4179
4180int
4181main ()
4182{
4183
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188if ac_fn_c_try_compile "$LINENO"; then :
4189
4190else
4191 ac_c_werror_flag=$ac_save_c_werror_flag
4192 CFLAGS="-g"
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h. */
f489fba1 4195
5213506e
RW
4196int
4197main ()
4198{
4199
4200 ;
4201 return 0;
4202}
4203_ACEOF
4204if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_prog_cc_g=yes
4206fi
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4208fi
5213506e 4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4210fi
5213506e
RW
4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 ac_c_werror_flag=$ac_save_c_werror_flag
4213fi
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4215$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4216if test "$ac_test_CFLAGS" = set; then
4217 CFLAGS=$ac_save_CFLAGS
4218elif test $ac_cv_prog_cc_g = yes; then
4219 if test "$GCC" = yes; then
4220 CFLAGS="-g -O2"
4221 else
4222 CFLAGS="-g"
4223 fi
4224else
4225 if test "$GCC" = yes; then
4226 CFLAGS="-O2"
4227 else
4228 CFLAGS=
4229 fi
4230fi
5213506e
RW
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4232$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4233if test "${ac_cv_prog_cc_c89+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
38d24731 4235else
5213506e 4236 ac_cv_prog_cc_c89=no
38d24731 4237ac_save_CC=$CC
5213506e 4238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4239/* end confdefs.h. */
38d24731
RW
4240#include <stdarg.h>
4241#include <stdio.h>
4242#include <sys/types.h>
4243#include <sys/stat.h>
4244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4245struct buf { int x; };
4246FILE * (*rcsopen) (struct buf *, struct stat *, int);
4247static char *e (p, i)
4248 char **p;
4249 int i;
4250{
4251 return p[i];
4252}
4253static char *f (char * (*g) (char **, int), char **p, ...)
4254{
4255 char *s;
4256 va_list v;
4257 va_start (v,p);
4258 s = g (p, va_arg (v,int));
4259 va_end (v);
4260 return s;
4261}
f489fba1 4262
38d24731
RW
4263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4264 function prototypes and stuff, but not '\xHH' hex character constants.
4265 These don't provoke an error unfortunately, instead are silently treated
5213506e 4266 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4268 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4269 that's true only with -std. */
38d24731
RW
4270int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4271
5213506e
RW
4272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4273 inside strings and character constants. */
4274#define FOO(x) 'x'
4275int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4276
38d24731
RW
4277int test (int i, double x);
4278struct s1 {int (*f) (int a);};
4279struct s2 {int (*f) (double a);};
4280int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4281int argc;
4282char **argv;
f489fba1
FXC
4283int
4284main ()
4285{
38d24731 4286return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4287 ;
4288 return 0;
4289}
4290_ACEOF
5213506e
RW
4291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4293do
4294 CC="$ac_save_CC $ac_arg"
5213506e
RW
4295 if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_prog_cc_c89=$ac_arg
38d24731 4297fi
5213506e
RW
4298rm -f core conftest.err conftest.$ac_objext
4299 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4300done
5213506e 4301rm -f conftest.$ac_ext
38d24731
RW
4302CC=$ac_save_CC
4303
4304fi
5213506e
RW
4305# AC_CACHE_VAL
4306case "x$ac_cv_prog_cc_c89" in
4307 x)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309$as_echo "none needed" >&6; } ;;
4310 xno)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4312$as_echo "unsupported" >&6; } ;;
38d24731 4313 *)
5213506e
RW
4314 CC="$CC $ac_cv_prog_cc_c89"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4316$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4317esac
5213506e 4318if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4319
4320fi
6de9cd9a 4321
6de9cd9a
DN
4322ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4327
679c0f9a
TT
4328depcc="$CC" am_compiler_list=
4329
5213506e
RW
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4331$as_echo_n "checking dependency style of $depcc... " >&6; }
4332if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
679c0f9a
TT
4334else
4335 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4336 # We make a subdir and do the tests there. Otherwise we can end up
4337 # making bogus files that we don't know about and never remove. For
4338 # instance it was reported that on HP-UX the gcc test will end up
4339 # making a dummy file named `D' -- because `-MD' means `put the output
4340 # in D'.
4341 mkdir conftest.dir
4342 # Copy depcomp to subdir because otherwise we won't find it if we're
4343 # using a relative directory.
4344 cp "$am_depcomp" conftest.dir
4345 cd conftest.dir
4346 # We will build objects and dependencies in a subdirectory because
4347 # it helps to detect inapplicable dependency modes. For instance
4348 # both Tru64's cc and ICC support -MD to output dependencies as a
4349 # side effect of compilation, but ICC will put the dependencies in
4350 # the current directory while Tru64 will put them in the object
4351 # directory.
4352 mkdir sub
4353
4354 am_cv_CC_dependencies_compiler_type=none
4355 if test "$am_compiler_list" = ""; then
4356 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4357 fi
5213506e
RW
4358 am__universal=false
4359 case " $depcc " in #(
4360 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4361 esac
4362
679c0f9a
TT
4363 for depmode in $am_compiler_list; do
4364 # Setup a source with many dependencies, because some compilers
4365 # like to wrap large dependency lists on column 80 (with \), and
4366 # we should not choose a depcomp mode which is confused by this.
4367 #
4368 # We need to recreate these files for each test, as the compiler may
4369 # overwrite some of them when testing with obscure command lines.
4370 # This happens at least with the AIX C compiler.
4371 : > sub/conftest.c
4372 for i in 1 2 3 4 5 6; do
4373 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4374 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4375 # Solaris 8's {/usr,}/bin/sh.
4376 touch sub/conftst$i.h
4377 done
4378 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4379
5213506e
RW
4380 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4381 # mode. It turns out that the SunPro C++ compiler does not properly
4382 # handle `-M -o', and we need to detect this. Also, some Intel
4383 # versions had trouble with output in subdirs
4384 am__obj=sub/conftest.${OBJEXT-o}
4385 am__minus_obj="-o $am__obj"
679c0f9a 4386 case $depmode in
5213506e
RW
4387 gcc)
4388 # This depmode causes a compiler race in universal mode.
4389 test "$am__universal" = false || continue
4390 ;;
679c0f9a
TT
4391 nosideeffect)
4392 # after this tag, mechanisms are not by side-effect, so they'll
4393 # only be used when explicitly requested
4394 if test "x$enable_dependency_tracking" = xyes; then
4395 continue
4396 else
4397 break
4398 fi
4399 ;;
5213506e
RW
4400 msvisualcpp | msvcmsys)
4401 # This compiler won't grok `-c -o', but also, the minuso test has
4402 # not run yet. These depmodes are late enough in the game, and
4403 # so weak that their functioning should not be impacted.
4404 am__obj=conftest.${OBJEXT-o}
4405 am__minus_obj=
4406 ;;
679c0f9a
TT
4407 none) break ;;
4408 esac
679c0f9a 4409 if depmode=$depmode \
5213506e 4410 source=sub/conftest.c object=$am__obj \
679c0f9a 4411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4412 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4413 >/dev/null 2>conftest.err &&
5213506e 4414 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4415 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4416 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4417 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4418 # icc doesn't choke on unknown options, it will just issue warnings
4419 # or remarks (even with -Werror). So we grep stderr for any message
4420 # that says an option was ignored or not supported.
4421 # When given -MP, icc 7.0 and 7.1 complain thusly:
4422 # icc: Command line warning: ignoring option '-M'; no argument required
4423 # The diagnosis changed in icc 8.0:
4424 # icc: Command line remark: option '-MP' not supported
4425 if (grep 'ignoring option' conftest.err ||
4426 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4427 am_cv_CC_dependencies_compiler_type=$depmode
4428 break
4429 fi
4430 fi
4431 done
4432
4433 cd ..
4434 rm -rf conftest.dir
4435else
4436 am_cv_CC_dependencies_compiler_type=none
4437fi
4438
4439fi
5213506e
RW
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4441$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4442CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4443
5213506e 4444 if
679c0f9a
TT
4445 test "x$enable_dependency_tracking" != xno \
4446 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4447 am__fastdepCC_TRUE=
4448 am__fastdepCC_FALSE='#'
4449else
4450 am__fastdepCC_TRUE='#'
4451 am__fastdepCC_FALSE=
4452fi
4453
6de9cd9a 4454
6de9cd9a 4455
21be0a5a
JB
4456ac_ext=c
4457ac_cpp='$CPP $CPPFLAGS'
4458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4462$as_echo_n "checking how to run the C preprocessor... " >&6; }
4463# On Suns, sometimes $CPP names a directory.
4464if test -n "$CPP" && test -d "$CPP"; then
4465 CPP=
6de9cd9a 4466fi
21be0a5a
JB
4467if test -z "$CPP"; then
4468 if test "${ac_cv_prog_CPP+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4470else
4471 # Double quotes because CPP needs to be expanded
4472 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4473 do
4474 ac_preproc_ok=false
4475for ac_c_preproc_warn_flag in '' yes
4476do
4477 # Use a header file that comes with gcc, so configuring glibc
4478 # with a fresh cross-compiler works.
4479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480 # <limits.h> exists even on freestanding compilers.
4481 # On the NeXT, cc -E runs the code through the compiler's parser,
4482 # not just through cpp. "Syntax error" is here to catch this case.
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4484/* end confdefs.h. */
21be0a5a
JB
4485#ifdef __STDC__
4486# include <limits.h>
4487#else
4488# include <assert.h>
4489#endif
4490 Syntax error
c0e7e2bf 4491_ACEOF
21be0a5a
JB
4492if ac_fn_c_try_cpp "$LINENO"; then :
4493
49ea7a0e 4494else
21be0a5a
JB
4495 # Broken: fails on valid input.
4496continue
49ea7a0e 4497fi
21be0a5a 4498rm -f conftest.err conftest.$ac_ext
49ea7a0e 4499
21be0a5a
JB
4500 # OK, works on sane cases. Now check whether nonexistent headers
4501 # can be detected and how.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h. */
4504#include <ac_nonexistent.h>
49ea7a0e 4505_ACEOF
21be0a5a
JB
4506if ac_fn_c_try_cpp "$LINENO"; then :
4507 # Broken: success on invalid input.
4508continue
c0e7e2bf 4509else
21be0a5a
JB
4510 # Passes both tests.
4511ac_preproc_ok=:
4512break
49ea7a0e 4513fi
21be0a5a
JB
4514rm -f conftest.err conftest.$ac_ext
4515
4516done
4517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4518rm -f conftest.err conftest.$ac_ext
4519if $ac_preproc_ok; then :
4520 break
c0e7e2bf
JB
4521fi
4522
21be0a5a
JB
4523 done
4524 ac_cv_prog_CPP=$CPP
4525
4526fi
4527 CPP=$ac_cv_prog_CPP
49ea7a0e 4528else
21be0a5a 4529 ac_cv_prog_CPP=$CPP
49ea7a0e 4530fi
21be0a5a
JB
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4532$as_echo "$CPP" >&6; }
4533ac_preproc_ok=false
4534for ac_c_preproc_warn_flag in '' yes
4535do
4536 # Use a header file that comes with gcc, so configuring glibc
4537 # with a fresh cross-compiler works.
4538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4539 # <limits.h> exists even on freestanding compilers.
4540 # On the NeXT, cc -E runs the code through the compiler's parser,
4541 # not just through cpp. "Syntax error" is here to catch this case.
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h. */
4544#ifdef __STDC__
4545# include <limits.h>
4546#else
4547# include <assert.h>
4548#endif
4549 Syntax error
4550_ACEOF
4551if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4552
49ea7a0e 4553else
21be0a5a
JB
4554 # Broken: fails on valid input.
4555continue
49ea7a0e 4556fi
21be0a5a 4557rm -f conftest.err conftest.$ac_ext
49ea7a0e 4558
21be0a5a
JB
4559 # OK, works on sane cases. Now check whether nonexistent headers
4560 # can be detected and how.
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4562/* end confdefs.h. */
21be0a5a 4563#include <ac_nonexistent.h>
c049309d 4564_ACEOF
21be0a5a
JB
4565if ac_fn_c_try_cpp "$LINENO"; then :
4566 # Broken: success on invalid input.
4567continue
c049309d 4568else
21be0a5a
JB
4569 # Passes both tests.
4570ac_preproc_ok=:
4571break
c049309d 4572fi
21be0a5a
JB
4573rm -f conftest.err conftest.$ac_ext
4574
4575done
4576# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4577rm -f conftest.err conftest.$ac_ext
4578if $ac_preproc_ok; then :
4579
c049309d 4580else
21be0a5a
JB
4581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4583as_fn_error "C preprocessor \"$CPP\" fails sanity check
4584See \`config.log' for more details." "$LINENO" 5; }
c049309d 4585fi
c049309d 4586
21be0a5a
JB
4587ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
c049309d 4592
21be0a5a
JB
4593
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4595$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4596if test "${ac_cv_path_GREP+set}" = set; then :
5213506e 4597 $as_echo_n "(cached) " >&6
6de9cd9a 4598else
21be0a5a
JB
4599 if test -z "$GREP"; then
4600 ac_path_GREP_found=false
4601 # Loop through the user's path and test for each of PROGNAME-LIST
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
21be0a5a 4607 for ac_prog in grep ggrep; do
5213506e 4608 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4609 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4610 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4611# Check for GNU ac_path_GREP and select it if it is found.
4612 # Check for GNU $ac_path_GREP
4613case `"$ac_path_GREP" --version 2>&1` in
4614*GNU*)
4615 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4616*)
4617 ac_count=0
4618 $as_echo_n 0123456789 >"conftest.in"
4619 while :
4620 do
4621 cat "conftest.in" "conftest.in" >"conftest.tmp"
4622 mv "conftest.tmp" "conftest.in"
4623 cp "conftest.in" "conftest.nl"
4624 $as_echo 'GREP' >> "conftest.nl"
4625 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4627 as_fn_arith $ac_count + 1 && ac_count=$as_val
4628 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4629 # Best one so far, save it but keep looking for a better one
4630 ac_cv_path_GREP="$ac_path_GREP"
4631 ac_path_GREP_max=$ac_count
4632 fi
4633 # 10*(2^10) chars as input seems more than enough
4634 test $ac_count -gt 10 && break
5213506e 4635 done
21be0a5a
JB
4636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4637esac
6de9cd9a 4638
21be0a5a
JB
4639 $ac_path_GREP_found && break 3
4640 done
4641 done
4642 done
4643IFS=$as_save_IFS
4644 if test -z "$ac_cv_path_GREP"; then
4645 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4646 fi
6de9cd9a 4647else
21be0a5a 4648 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4649fi
4650
6de9cd9a 4651fi
21be0a5a
JB
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4653$as_echo "$ac_cv_path_GREP" >&6; }
4654 GREP="$ac_cv_path_GREP"
6de9cd9a 4655
21be0a5a
JB
4656
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4658$as_echo_n "checking for egrep... " >&6; }
4659if test "${ac_cv_path_EGREP+set}" = set; then :
5213506e 4660 $as_echo_n "(cached) " >&6
6de9cd9a 4661else
21be0a5a
JB
4662 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4663 then ac_cv_path_EGREP="$GREP -E"
4664 else
4665 if test -z "$EGREP"; then
4666 ac_path_EGREP_found=false
4667 # Loop through the user's path and test for each of PROGNAME-LIST
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4670do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
21be0a5a 4673 for ac_prog in egrep; do
5213506e 4674 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4675 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4676 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4677# Check for GNU ac_path_EGREP and select it if it is found.
4678 # Check for GNU $ac_path_EGREP
4679case `"$ac_path_EGREP" --version 2>&1` in
4680*GNU*)
4681 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4682*)
4683 ac_count=0
4684 $as_echo_n 0123456789 >"conftest.in"
4685 while :
4686 do
4687 cat "conftest.in" "conftest.in" >"conftest.tmp"
4688 mv "conftest.tmp" "conftest.in"
4689 cp "conftest.in" "conftest.nl"
4690 $as_echo 'EGREP' >> "conftest.nl"
4691 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693 as_fn_arith $ac_count + 1 && ac_count=$as_val
4694 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4695 # Best one so far, save it but keep looking for a better one
4696 ac_cv_path_EGREP="$ac_path_EGREP"
4697 ac_path_EGREP_max=$ac_count
4698 fi
4699 # 10*(2^10) chars as input seems more than enough
4700 test $ac_count -gt 10 && break
5213506e 4701 done
21be0a5a
JB
4702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703esac
6de9cd9a 4704
21be0a5a
JB
4705 $ac_path_EGREP_found && break 3
4706 done
4707 done
4708 done
4709IFS=$as_save_IFS
4710 if test -z "$ac_cv_path_EGREP"; then
4711 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4712 fi
6de9cd9a 4713else
21be0a5a 4714 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4715fi
4716
21be0a5a 4717 fi
6de9cd9a 4718fi
21be0a5a
JB
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4720$as_echo "$ac_cv_path_EGREP" >&6; }
4721 EGREP="$ac_cv_path_EGREP"
4722
4723
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4725$as_echo_n "checking for ANSI C header files... " >&6; }
4726if test "${ac_cv_header_stdc+set}" = set; then :
5213506e 4727 $as_echo_n "(cached) " >&6
6de9cd9a 4728else
21be0a5a
JB
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h. */
4731#include <stdlib.h>
4732#include <stdarg.h>
4733#include <string.h>
4734#include <float.h>
4735
4736int
4737main ()
4738{
4739
4740 ;
4741 return 0;
4742}
4743_ACEOF
4744if ac_fn_c_try_compile "$LINENO"; then :
4745 ac_cv_header_stdc=yes
6de9cd9a 4746else
21be0a5a
JB
4747 ac_cv_header_stdc=no
4748fi
4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4750
21be0a5a
JB
4751if test $ac_cv_header_stdc = yes; then
4752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754/* end confdefs.h. */
4755#include <string.h>
4756
4757_ACEOF
4758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4759 $EGREP "memchr" >/dev/null 2>&1; then :
4760
4761else
4762 ac_cv_header_stdc=no
6de9cd9a 4763fi
21be0a5a
JB
4764rm -f conftest*
4765
6de9cd9a 4766fi
21be0a5a
JB
4767
4768if test $ac_cv_header_stdc = yes; then
4769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
4772#include <stdlib.h>
4773
4774_ACEOF
4775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776 $EGREP "free" >/dev/null 2>&1; then :
4777
6de9cd9a 4778else
21be0a5a 4779 ac_cv_header_stdc=no
6de9cd9a 4780fi
21be0a5a 4781rm -f conftest*
6de9cd9a 4782
6de9cd9a
DN
4783fi
4784
21be0a5a
JB
4785if test $ac_cv_header_stdc = yes; then
4786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4787 if test "$cross_compiling" = yes; then :
4788 :
4789else
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h. */
4792#include <ctype.h>
4793#include <stdlib.h>
4794#if ((' ' & 0x0FF) == 0x020)
4795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4797#else
4798# define ISLOWER(c) \
4799 (('a' <= (c) && (c) <= 'i') \
4800 || ('j' <= (c) && (c) <= 'r') \
4801 || ('s' <= (c) && (c) <= 'z'))
4802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4803#endif
4804
4805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4806int
4807main ()
4808{
4809 int i;
4810 for (i = 0; i < 256; i++)
4811 if (XOR (islower (i), ISLOWER (i))
4812 || toupper (i) != TOUPPER (i))
4813 return 2;
4814 return 0;
4815}
4816_ACEOF
4817if ac_fn_c_try_run "$LINENO"; then :
4818
4819else
4820 ac_cv_header_stdc=no
4821fi
4822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4823 conftest.$ac_objext conftest.beam conftest.$ac_ext
4824fi
4825
4826fi
4827fi
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4829$as_echo "$ac_cv_header_stdc" >&6; }
4830if test $ac_cv_header_stdc = yes; then
4831
4832$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4833
4834fi
4835
4836# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4837for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4838 inttypes.h stdint.h unistd.h
4839do :
4840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4841ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4842"
4843eval as_val=\$$as_ac_Header
4844 if test "x$as_val" = x""yes; then :
4845 cat >>confdefs.h <<_ACEOF
4846#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4847_ACEOF
4848
4849fi
4850
4851done
4852
4853
4854
4855 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4856if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4857 MINIX=yes
4858else
4859 MINIX=
4860fi
4861
4862
4863 if test "$MINIX" = yes; then
4864
4865$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4866
4867
4868$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4869
4870
4871$as_echo "#define _MINIX 1" >>confdefs.h
4872
4873 fi
4874
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4877$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4878if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880else
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882/* end confdefs.h. */
4883
4884# define __EXTENSIONS__ 1
4885 $ac_includes_default
4886int
4887main ()
4888{
4889
4890 ;
4891 return 0;
4892}
4893_ACEOF
4894if ac_fn_c_try_compile "$LINENO"; then :
4895 ac_cv_safe_to_define___extensions__=yes
4896else
4897 ac_cv_safe_to_define___extensions__=no
4898fi
4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4902$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4903 test $ac_cv_safe_to_define___extensions__ = yes &&
4904 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4905
4906 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4907
4908 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4909
4910 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4911
4912 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4913
4914
4915
4916# Calculate toolexeclibdir
4917# Also toolexecdir, though it's only used in toolexeclibdir
4918case ${version_specific_libs} in
4919 yes)
4920 # Need the gcc compiler version to know where to install libraries
4921 # and header files if --enable-version-specific-runtime-libs option
4922 # is selected.
4923 toolexecdir='$(libdir)/gcc/$(target_alias)'
4924 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4925 ;;
4926 no)
4927 if test -n "$with_cross_host" &&
4928 test x"$with_cross_host" != x"no"; then
4929 # Install a library built with a cross compiler in tooldir, not libdir.
4930 toolexecdir='$(exec_prefix)/$(target_alias)'
4931 toolexeclibdir='$(toolexecdir)/lib'
4932 else
4933 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4934 toolexeclibdir='$(libdir)'
4935 fi
4936 multi_os_directory=`$CC -print-multi-os-directory`
4937 case $multi_os_directory in
4938 .) ;; # Avoid trailing /.
4939 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4940 esac
4941 ;;
4942esac
4943
4944
4945
4946# Create a spec file, so that compile/link tests don't fail
4947test -f libgfortran.spec || touch libgfortran.spec
4948
60858d8a
TB
4949ac_ext=c
4950ac_cpp='$CPP $CPPFLAGS'
4951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954
21be0a5a
JB
4955# Check the compiler.
4956# The same as in boehm-gc and libstdc++. Have to borrow it from there.
4957# We must force CC to /not/ be precious variables; otherwise
4958# the wrong, non-multilib-adjusted value will be used in multilibs.
4959# As a side effect, we have to subst CFLAGS ourselves.
4960
4961
4962
4963ac_ext=c
4964ac_cpp='$CPP $CPPFLAGS'
4965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968if test -n "$ac_tool_prefix"; then
4969 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4970set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 4973if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 4974 $as_echo_n "(cached) " >&6
6de9cd9a 4975else
21be0a5a
JB
4976 if test -n "$CC"; then
4977 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 4978else
96b8a615
AJ
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
5213506e
RW
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 4986 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
4988 break 2
4989 fi
4990done
5213506e
RW
4991 done
4992IFS=$as_save_IFS
6de9cd9a 4993
6de9cd9a 4994fi
96b8a615 4995fi
21be0a5a
JB
4996CC=$ac_cv_prog_CC
4997if test -n "$CC"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4999$as_echo "$CC" >&6; }
96b8a615 5000else
5213506e
RW
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
96b8a615 5003fi
6de9cd9a 5004
5213506e 5005
6de9cd9a 5006fi
21be0a5a
JB
5007if test -z "$ac_cv_prog_CC"; then
5008 ac_ct_CC=$CC
5009 # Extract the first word of "gcc", so it can be a program name with args.
5010set dummy gcc; ac_word=$2
5213506e
RW
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 5013if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5213506e 5014 $as_echo_n "(cached) " >&6
6de9cd9a 5015else
21be0a5a
JB
5016 if test -n "$ac_ct_CC"; then
5017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 5018else
96b8a615
AJ
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5213506e
RW
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 5026 ac_cv_prog_ac_ct_CC="gcc"
5213506e 5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
5028 break 2
5029 fi
5030done
5213506e
RW
5031 done
5032IFS=$as_save_IFS
6de9cd9a 5033
6de9cd9a 5034fi
6de9cd9a 5035fi
21be0a5a
JB
5036ac_ct_CC=$ac_cv_prog_ac_ct_CC
5037if test -n "$ac_ct_CC"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5039$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 5040else
5213506e
RW
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
6de9cd9a
DN
5043fi
5044
21be0a5a
JB
5045 if test "x$ac_ct_CC" = x; then
5046 CC=""
5213506e
RW
5047 else
5048 case $cross_compiling:$ac_tool_warned in
5049yes:)
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5052ac_tool_warned=yes ;;
5053esac
21be0a5a 5054 CC=$ac_ct_CC
5213506e 5055 fi
96b8a615 5056else
21be0a5a 5057 CC="$ac_cv_prog_CC"
6de9cd9a 5058fi
96b8a615 5059
21be0a5a
JB
5060if test -z "$CC"; then
5061 if test -n "$ac_tool_prefix"; then
5062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5063set dummy ${ac_tool_prefix}cc; ac_word=$2
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065$as_echo_n "checking for $ac_word... " >&6; }
5066if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 5067 $as_echo_n "(cached) " >&6
6de9cd9a 5068else
21be0a5a
JB
5069 if test -n "$CC"; then
5070 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 5071else
21be0a5a
JB
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_CC="${ac_tool_prefix}cc"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083done
5084 done
5085IFS=$as_save_IFS
5086
5087fi
5088fi
5089CC=$ac_cv_prog_CC
5090if test -n "$CC"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5092$as_echo "$CC" >&6; }
5093else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095$as_echo "no" >&6; }
5096fi
5097
5098
5099 fi
5100fi
5101if test -z "$CC"; then
5102 # Extract the first word of "cc", so it can be a program name with args.
5103set dummy cc; ac_word=$2
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105$as_echo_n "checking for $ac_word... " >&6; }
5106if test "${ac_cv_prog_CC+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5108else
5109 if test -n "$CC"; then
5110 ac_cv_prog_CC="$CC" # Let the user override the test.
5111else
5112 ac_prog_rejected=no
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5121 ac_prog_rejected=yes
5122 continue
5123 fi
5124 ac_cv_prog_CC="cc"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128done
5129 done
5130IFS=$as_save_IFS
5131
5132if test $ac_prog_rejected = yes; then
5133 # We found a bogon in the path, so make sure we never use it.
5134 set dummy $ac_cv_prog_CC
5135 shift
5136 if test $# != 0; then
5137 # We chose a different compiler from the bogus one.
5138 # However, it has the same basename, so the bogon will be chosen
5139 # first if we set CC to just the basename; use the full file name.
5140 shift
5141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5142 fi
5143fi
5144fi
5145fi
5146CC=$ac_cv_prog_CC
5147if test -n "$CC"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5149$as_echo "$CC" >&6; }
5150else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
5153fi
5154
5155
5156fi
5157if test -z "$CC"; then
5158 if test -n "$ac_tool_prefix"; then
5159 for ac_prog in cl.exe
5160 do
5161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164$as_echo_n "checking for $ac_word... " >&6; }
5165if test "${ac_cv_prog_CC+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167else
5168 if test -n "$CC"; then
5169 ac_cv_prog_CC="$CC" # Let the user override the test.
5170else
5171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172for as_dir in $PATH
5173do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182done
5183 done
5184IFS=$as_save_IFS
5185
5186fi
5187fi
5188CC=$ac_cv_prog_CC
5189if test -n "$CC"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5191$as_echo "$CC" >&6; }
5192else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194$as_echo "no" >&6; }
5195fi
5196
5197
5198 test -n "$CC" && break
5199 done
5200fi
5201if test -z "$CC"; then
5202 ac_ct_CC=$CC
5203 for ac_prog in cl.exe
5204do
5205 # Extract the first word of "$ac_prog", so it can be a program name with args.
5206set dummy $ac_prog; ac_word=$2
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208$as_echo_n "checking for $ac_word... " >&6; }
5209if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211else
5212 if test -n "$ac_ct_CC"; then
5213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_ac_ct_CC="$ac_prog"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226done
5227 done
5228IFS=$as_save_IFS
5229
5230fi
5231fi
5232ac_ct_CC=$ac_cv_prog_ac_ct_CC
5233if test -n "$ac_ct_CC"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5235$as_echo "$ac_ct_CC" >&6; }
5236else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238$as_echo "no" >&6; }
5239fi
5240
5241
5242 test -n "$ac_ct_CC" && break
5243done
5244
5245 if test "x$ac_ct_CC" = x; then
5246 CC=""
5247 else
5248 case $cross_compiling:$ac_tool_warned in
5249yes:)
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5252ac_tool_warned=yes ;;
5253esac
5254 CC=$ac_ct_CC
5255 fi
5256fi
5257
5258fi
5259
5260
5261test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5263as_fn_error "no acceptable C compiler found in \$PATH
5264See \`config.log' for more details." "$LINENO" 5; }
5265
5266# Provide some information about the compiler.
5267$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5268set X $ac_compile
5269ac_compiler=$2
5270for ac_option in --version -v -V -qversion; do
5271 { { ac_try="$ac_compiler $ac_option >&5"
5272case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275esac
5276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5277$as_echo "$ac_try_echo"; } >&5
5278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5279 ac_status=$?
5280 if test -s conftest.err; then
5281 sed '10a\
5282... rest of stderr output deleted ...
5283 10q' conftest.err >conftest.er1
5284 cat conftest.er1 >&5
5285 rm -f conftest.er1 conftest.err
5286 fi
5287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5288 test $ac_status = 0; }
5289done
5290
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5292$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5293if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295else
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h. */
5298
5299int
5300main ()
5301{
5302#ifndef __GNUC__
5303 choke me
5304#endif
5305
5306 ;
5307 return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_compiler_gnu=yes
5312else
5313 ac_compiler_gnu=no
5314fi
5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316ac_cv_c_compiler_gnu=$ac_compiler_gnu
5317
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5320$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5321if test $ac_compiler_gnu = yes; then
5322 GCC=yes
5323else
5324 GCC=
5325fi
5326ac_test_CFLAGS=${CFLAGS+set}
5327ac_save_CFLAGS=$CFLAGS
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5329$as_echo_n "checking whether $CC accepts -g... " >&6; }
5330if test "${ac_cv_prog_cc_g+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5332else
5333 ac_save_c_werror_flag=$ac_c_werror_flag
5334 ac_c_werror_flag=yes
5335 ac_cv_prog_cc_g=no
5336 CFLAGS="-g"
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h. */
5339
5340int
5341main ()
5342{
5343
5344 ;
5345 return 0;
5346}
5347_ACEOF
5348if ac_fn_c_try_compile "$LINENO"; then :
5349 ac_cv_prog_cc_g=yes
5350else
5351 CFLAGS=""
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354
5355int
5356main ()
5357{
5358
5359 ;
5360 return 0;
5361}
5362_ACEOF
5363if ac_fn_c_try_compile "$LINENO"; then :
5364
5365else
5366 ac_c_werror_flag=$ac_save_c_werror_flag
5367 CFLAGS="-g"
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h. */
5370
5371int
5372main ()
5373{
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_prog_cc_g=yes
5381fi
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383fi
5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ac_c_werror_flag=$ac_save_c_werror_flag
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5390$as_echo "$ac_cv_prog_cc_g" >&6; }
5391if test "$ac_test_CFLAGS" = set; then
5392 CFLAGS=$ac_save_CFLAGS
5393elif test $ac_cv_prog_cc_g = yes; then
5394 if test "$GCC" = yes; then
5395 CFLAGS="-g -O2"
5396 else
5397 CFLAGS="-g"
5398 fi
5399else
5400 if test "$GCC" = yes; then
5401 CFLAGS="-O2"
5402 else
5403 CFLAGS=
5404 fi
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5407$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5408if test "${ac_cv_prog_cc_c89+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410else
5411 ac_cv_prog_cc_c89=no
5412ac_save_CC=$CC
5413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h. */
5415#include <stdarg.h>
5416#include <stdio.h>
5417#include <sys/types.h>
5418#include <sys/stat.h>
5419/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5420struct buf { int x; };
5421FILE * (*rcsopen) (struct buf *, struct stat *, int);
5422static char *e (p, i)
5423 char **p;
5424 int i;
5425{
5426 return p[i];
5427}
5428static char *f (char * (*g) (char **, int), char **p, ...)
5429{
5430 char *s;
5431 va_list v;
5432 va_start (v,p);
5433 s = g (p, va_arg (v,int));
5434 va_end (v);
5435 return s;
5436}
5437
5438/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5439 function prototypes and stuff, but not '\xHH' hex character constants.
5440 These don't provoke an error unfortunately, instead are silently treated
5441 as 'x'. The following induces an error, until -std is added to get
5442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5443 array size at least. It's necessary to write '\x00'==0 to get something
5444 that's true only with -std. */
5445int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5446
5447/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5448 inside strings and character constants. */
5449#define FOO(x) 'x'
5450int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5451
5452int test (int i, double x);
5453struct s1 {int (*f) (int a);};
5454struct s2 {int (*f) (double a);};
5455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5456int argc;
5457char **argv;
5458int
5459main ()
5460{
5461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5468do
5469 CC="$ac_save_CC $ac_arg"
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 ac_cv_prog_cc_c89=$ac_arg
5472fi
5473rm -f core conftest.err conftest.$ac_objext
5474 test "x$ac_cv_prog_cc_c89" != "xno" && break
5475done
5476rm -f conftest.$ac_ext
5477CC=$ac_save_CC
5478
5479fi
5480# AC_CACHE_VAL
5481case "x$ac_cv_prog_cc_c89" in
5482 x)
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5484$as_echo "none needed" >&6; } ;;
5485 xno)
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5487$as_echo "unsupported" >&6; } ;;
5488 *)
5489 CC="$CC $ac_cv_prog_cc_c89"
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5491$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5492esac
5493if test "x$ac_cv_prog_cc_c89" != xno; then :
5494
5495fi
5496
5497ac_ext=c
5498ac_cpp='$CPP $CPPFLAGS'
5499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501ac_compiler_gnu=$ac_cv_c_compiler_gnu
5502
5503depcc="$CC" am_compiler_list=
5504
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5506$as_echo_n "checking dependency style of $depcc... " >&6; }
5507if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5508 $as_echo_n "(cached) " >&6
5509else
5510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5511 # We make a subdir and do the tests there. Otherwise we can end up
5512 # making bogus files that we don't know about and never remove. For
5513 # instance it was reported that on HP-UX the gcc test will end up
5514 # making a dummy file named `D' -- because `-MD' means `put the output
5515 # in D'.
5516 mkdir conftest.dir
5517 # Copy depcomp to subdir because otherwise we won't find it if we're
5518 # using a relative directory.
5519 cp "$am_depcomp" conftest.dir
5520 cd conftest.dir
5521 # We will build objects and dependencies in a subdirectory because
5522 # it helps to detect inapplicable dependency modes. For instance
5523 # both Tru64's cc and ICC support -MD to output dependencies as a
5524 # side effect of compilation, but ICC will put the dependencies in
5525 # the current directory while Tru64 will put them in the object
5526 # directory.
5527 mkdir sub
5528
5529 am_cv_CC_dependencies_compiler_type=none
5530 if test "$am_compiler_list" = ""; then
5531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5532 fi
5533 am__universal=false
5534 case " $depcc " in #(
5535 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5536 esac
5537
5538 for depmode in $am_compiler_list; do
5539 # Setup a source with many dependencies, because some compilers
5540 # like to wrap large dependency lists on column 80 (with \), and
5541 # we should not choose a depcomp mode which is confused by this.
5542 #
5543 # We need to recreate these files for each test, as the compiler may
5544 # overwrite some of them when testing with obscure command lines.
5545 # This happens at least with the AIX C compiler.
5546 : > sub/conftest.c
5547 for i in 1 2 3 4 5 6; do
5548 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5549 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5550 # Solaris 8's {/usr,}/bin/sh.
5551 touch sub/conftst$i.h
5552 done
5553 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5554
5555 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5556 # mode. It turns out that the SunPro C++ compiler does not properly
5557 # handle `-M -o', and we need to detect this. Also, some Intel
5558 # versions had trouble with output in subdirs
5559 am__obj=sub/conftest.${OBJEXT-o}
5560 am__minus_obj="-o $am__obj"
5561 case $depmode in
5562 gcc)
5563 # This depmode causes a compiler race in universal mode.
5564 test "$am__universal" = false || continue
5565 ;;
5566 nosideeffect)
5567 # after this tag, mechanisms are not by side-effect, so they'll
5568 # only be used when explicitly requested
5569 if test "x$enable_dependency_tracking" = xyes; then
5570 continue
5571 else
5572 break
5573 fi
5574 ;;
5575 msvisualcpp | msvcmsys)
5576 # This compiler won't grok `-c -o', but also, the minuso test has
5577 # not run yet. These depmodes are late enough in the game, and
5578 # so weak that their functioning should not be impacted.
5579 am__obj=conftest.${OBJEXT-o}
5580 am__minus_obj=
5581 ;;
5582 none) break ;;
5583 esac
5584 if depmode=$depmode \
5585 source=sub/conftest.c object=$am__obj \
5586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5587 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5588 >/dev/null 2>conftest.err &&
5589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5591 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5593 # icc doesn't choke on unknown options, it will just issue warnings
5594 # or remarks (even with -Werror). So we grep stderr for any message
5595 # that says an option was ignored or not supported.
5596 # When given -MP, icc 7.0 and 7.1 complain thusly:
5597 # icc: Command line warning: ignoring option '-M'; no argument required
5598 # The diagnosis changed in icc 8.0:
5599 # icc: Command line remark: option '-MP' not supported
5600 if (grep 'ignoring option' conftest.err ||
5601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5602 am_cv_CC_dependencies_compiler_type=$depmode
5603 break
5604 fi
5605 fi
5606 done
5607
5608 cd ..
5609 rm -rf conftest.dir
5610else
5611 am_cv_CC_dependencies_compiler_type=none
5612fi
5613
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5616$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5617CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5618
5619 if
5620 test "x$enable_dependency_tracking" != xno \
5621 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5622 am__fastdepCC_TRUE=
5623 am__fastdepCC_FALSE='#'
5624else
5625 am__fastdepCC_TRUE='#'
5626 am__fastdepCC_FALSE=
5627fi
5628
5629
5630
5631
60858d8a
TB
5632
5633
5634if test "x$CC" != xcc; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5636$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5637else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5639$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5640fi
5641set dummy $CC; ac_cc=`$as_echo "$2" |
5642 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5643if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5644 $as_echo_n "(cached) " >&6
5645else
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657# Make sure it works both with $CC and with simple cc.
5658# We do the test twice because some compilers refuse to overwrite an
5659# existing .o file with -o, though they will create one.
5660ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5661rm -f conftest2.*
5662if { { case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665esac
5666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5667$as_echo "$ac_try_echo"; } >&5
5668 (eval "$ac_try") 2>&5
5669 ac_status=$?
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; } &&
5672 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675esac
5676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5677$as_echo "$ac_try_echo"; } >&5
5678 (eval "$ac_try") 2>&5
5679 ac_status=$?
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; };
5682then
5683 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5684 if test "x$CC" != xcc; then
5685 # Test first that cc exists at all.
5686 if { ac_try='cc -c conftest.$ac_ext >&5'
5687 { { case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690esac
5691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5692$as_echo "$ac_try_echo"; } >&5
5693 (eval "$ac_try") 2>&5
5694 ac_status=$?
5695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696 test $ac_status = 0; }; }; then
5697 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5698 rm -f conftest2.*
5699 if { { case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702esac
5703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5704$as_echo "$ac_try_echo"; } >&5
5705 (eval "$ac_try") 2>&5
5706 ac_status=$?
5707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708 test $ac_status = 0; } &&
5709 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5712esac
5713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5714$as_echo "$ac_try_echo"; } >&5
5715 (eval "$ac_try") 2>&5
5716 ac_status=$?
5717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718 test $ac_status = 0; };
5719 then
5720 # cc works too.
5721 :
5722 else
5723 # cc exists but doesn't like -o.
5724 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5725 fi
5726 fi
5727 fi
5728else
5729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5730fi
5731rm -f core conftest*
5732
5733fi
5734if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5736$as_echo "yes" >&6; }
5737else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739$as_echo "no" >&6; }
5740
5741$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5742
5743fi
5744
5745# FIXME: we rely on the cache variable name because
5746# there is no other way.
5747set dummy $CC
5748am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5749eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5750if test "$am_t" != yes; then
5751 # Losing compiler, so override with the script.
5752 # FIXME: It is wrong to rewrite CC.
5753 # But if we don't then we get into trouble of one sort or another.
5754 # A longer-term fix would be to have automake use am__CC in this case,
5755 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5756 CC="$am_aux_dir/compile $CC"
5757fi
5758
5759
5760
21be0a5a
JB
5761# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5762if test "x$GCC" = "xyes"; then
5763 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5764 ## We like to use C99 routines when available. This makes sure that
5765 ## __STDC_VERSION__ is set such that libc includes make them available.
5766 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5767 ## Compile the following tests with the same system header contents
5768 ## that we'll encounter when compiling our own source files.
5769 CFLAGS="-std=gnu99 $CFLAGS"
5770fi
5771
5772
5773
5774
5775# Check for symbol versioning (copied from libssp).
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5777$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
5778# Check whether --enable-symvers was given.
5779if test "${enable_symvers+set}" = set; then :
5780 enableval=$enable_symvers; gfortran_use_symver=$enableval
5781else
5782 gfortran_use_symver=yes
5783fi
5784
5785if test "x$gfortran_use_symver" = xyes; then
5786 save_LDFLAGS="$LDFLAGS"
5787 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5788 cat > conftest.map <<EOF
21be0a5a
JB
5789FOO_1.0 {
5790 global: *foo*; bar; local: *;
5791};
5792EOF
bf382f5f 5793 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5794 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5795fi
5796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h. */
5798int foo;
5799int
5800main ()
5801{
5802
5803 ;
5804 return 0;
5805}
5806_ACEOF
5807if ac_fn_c_try_link "$LINENO"; then :
5808 gfortran_use_symver=gnu
5809else
5810 gfortran_use_symver=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext \
5813 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5814 if test x$gfortran_use_symver = xno; then
5815 case "$target_os" in
5816 solaris2*)
5817 LDFLAGS="$save_LDFLAGS"
5818 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5819 # Sun ld cannot handle wildcards and treats all entries as undefined.
5820 cat > conftest.map <<EOF
21be0a5a
JB
5821FOO_1.0 {
5822 global: foo; local: *;
5823};
5824EOF
bf382f5f 5825 if test x$gcc_no_link = xyes; then
21be0a5a
JB
5826 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5827fi
5828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829/* end confdefs.h. */
5830int foo;
5831int
5832main ()
5833{
5834
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839if ac_fn_c_try_link "$LINENO"; then :
5840 gfortran_use_symver=sun
5841else
5842 gfortran_use_symver=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext \
5845 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
5846 ;;
5847 esac
5848 fi
5849 LDFLAGS="$save_LDFLAGS"
21be0a5a 5850fi
21be0a5a
JB
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5852$as_echo "$gfortran_use_symver" >&6; }
5853 if test "x$gfortran_use_symver" != xno; then
5854 LIBGFOR_USE_SYMVER_TRUE=
5855 LIBGFOR_USE_SYMVER_FALSE='#'
5856else
5857 LIBGFOR_USE_SYMVER_TRUE='#'
5858 LIBGFOR_USE_SYMVER_FALSE=
5859fi
5860
5861 if test "x$gfortran_use_symver" = xgnu; then
5862 LIBGFOR_USE_SYMVER_GNU_TRUE=
5863 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5864else
5865 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5866 LIBGFOR_USE_SYMVER_GNU_FALSE=
5867fi
5868
5869 if test "x$gfortran_use_symver" = xsun; then
5870 LIBGFOR_USE_SYMVER_SUN_TRUE=
5871 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5872else
5873 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5874 LIBGFOR_USE_SYMVER_SUN_FALSE=
5875fi
5876
5877
5878# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5879# similarly to how libstdc++ does it
5880ac_test_CFLAGS="${CFLAGS+set}"
5881ac_save_CFLAGS="$CFLAGS"
5882
5883# Check for -ffunction-sections -fdata-sections
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5885$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5886CFLAGS='-Werror -ffunction-sections -fdata-sections'
5887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* end confdefs.h. */
5889
5890int
5891main ()
5892{
5893int foo;
5894 ;
5895 return 0;
5896}
5897_ACEOF
5898if ac_fn_c_try_compile "$LINENO"; then :
5899 ac_fdsections=yes
5900else
5901 ac_fdsections=no
5902fi
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904if test "$ac_test_CFLAGS" = set; then
5905 CFLAGS="$ac_save_CFLAGS"
5906else
5907 # this is the suspicious part
5908 CFLAGS=""
5909fi
5910if test x"$ac_fdsections" = x"yes"; then
5911 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5912fi
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5914$as_echo "$ac_fdsections" >&6; }
5915
5916
5917# Find other programs we need.
5918if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5920set dummy ${ac_tool_prefix}as; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if test "${ac_cv_prog_AS+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$AS"; then
5927 ac_cv_prog_AS="$AS" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_AS="${ac_tool_prefix}as"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941 done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946AS=$ac_cv_prog_AS
5947if test -n "$AS"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5949$as_echo "$AS" >&6; }
5950else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955
5956fi
5957if test -z "$ac_cv_prog_AS"; then
5958 ac_ct_AS=$AS
5959 # Extract the first word of "as", so it can be a program name with args.
5960set dummy as; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$ac_ct_AS"; then
5967 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_ac_ct_AS="as"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986ac_ct_AS=$ac_cv_prog_ac_ct_AS
5987if test -n "$ac_ct_AS"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5989$as_echo "$ac_ct_AS" >&6; }
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995 if test "x$ac_ct_AS" = x; then
5996 AS=""
5997 else
5998 case $cross_compiling:$ac_tool_warned in
5999yes:)
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002ac_tool_warned=yes ;;
6003esac
6004 AS=$ac_ct_AS
6005 fi
6006else
6007 AS="$ac_cv_prog_AS"
6008fi
6009
6010if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6012set dummy ${ac_tool_prefix}ar; ac_word=$2
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014$as_echo_n "checking for $ac_word... " >&6; }
6015if test "${ac_cv_prog_AR+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6017else
6018 if test -n "$AR"; then
6019 ac_cv_prog_AR="$AR" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_AR="${ac_tool_prefix}ar"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033 done
6034IFS=$as_save_IFS
6035
6036fi
6037fi
6038AR=$ac_cv_prog_AR
6039if test -n "$AR"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6041$as_echo "$AR" >&6; }
6042else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044$as_echo "no" >&6; }
6045fi
6046
6047
6048fi
6049if test -z "$ac_cv_prog_AR"; then
6050 ac_ct_AR=$AR
6051 # Extract the first word of "ar", so it can be a program name with args.
6052set dummy ar; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
6055if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6056 $as_echo_n "(cached) " >&6
6057else
6058 if test -n "$ac_ct_AR"; then
6059 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_ac_ct_AR="ar"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073 done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078ac_ct_AR=$ac_cv_prog_ac_ct_AR
6079if test -n "$ac_ct_AR"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6081$as_echo "$ac_ct_AR" >&6; }
6082else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087 if test "x$ac_ct_AR" = x; then
6088 AR=""
6089 else
6090 case $cross_compiling:$ac_tool_warned in
6091yes:)
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094ac_tool_warned=yes ;;
6095esac
6096 AR=$ac_ct_AR
6097 fi
6098else
6099 AR="$ac_cv_prog_AR"
6100fi
6101
6102if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6104set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106$as_echo_n "checking for $ac_word... " >&6; }
6107if test "${ac_cv_prog_RANLIB+set}" = set; then :
6108 $as_echo_n "(cached) " >&6
6109else
6110 if test -n "$RANLIB"; then
6111 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124done
6125 done
6126IFS=$as_save_IFS
6127
6128fi
6129fi
6130RANLIB=$ac_cv_prog_RANLIB
6131if test -n "$RANLIB"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6133$as_echo "$RANLIB" >&6; }
6134else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
6137fi
6138
6139
6140fi
6141if test -z "$ac_cv_prog_RANLIB"; then
6142 ac_ct_RANLIB=$RANLIB
6143 # Extract the first word of "ranlib", so it can be a program name with args.
6144set dummy ranlib; ac_word=$2
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
6147if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149else
6150 if test -n "$ac_ct_RANLIB"; then
6151 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_ac_ct_RANLIB="ranlib"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164done
6165 done
6166IFS=$as_save_IFS
6167
6168fi
6169fi
6170ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6171if test -n "$ac_ct_RANLIB"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6173$as_echo "$ac_ct_RANLIB" >&6; }
6174else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
6177fi
6178
6179 if test "x$ac_ct_RANLIB" = x; then
6180 RANLIB="ranlib-not-found-in-path-error"
6181 else
6182 case $cross_compiling:$ac_tool_warned in
6183yes:)
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186ac_tool_warned=yes ;;
6187esac
6188 RANLIB=$ac_ct_RANLIB
6189 fi
6190else
6191 RANLIB="$ac_cv_prog_RANLIB"
6192fi
6193
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6195$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6196set x ${MAKE-make}
6197ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6198if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6199 $as_echo_n "(cached) " >&6
6200else
6201 cat >conftest.make <<\_ACEOF
6202SHELL = /bin/sh
6203all:
6204 @echo '@@@%%%=$(MAKE)=@@@%%%'
6205_ACEOF
6206# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6207case `${MAKE-make} -f conftest.make 2>/dev/null` in
6208 *@@@%%%=?*=@@@%%%*)
6209 eval ac_cv_prog_make_${ac_make}_set=yes;;
6210 *)
6211 eval ac_cv_prog_make_${ac_make}_set=no;;
6212esac
6213rm -f conftest.make
6214fi
6215if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6217$as_echo "yes" >&6; }
6218 SET_MAKE=
6219else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222 SET_MAKE="MAKE=${MAKE-make}"
6223fi
6de9cd9a 6224
6de9cd9a 6225
6de9cd9a 6226
96b8a615
AJ
6227# Configure libtool
6228#AC_MSG_NOTICE([====== Starting libtool configuration])
1cf3d07d
SE
6229enable_dlopen=yes
6230
6231
6232
d58dead8
PG
6233case `pwd` in
6234 *\ * | *\ *)
5213506e
RW
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6236$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
d58dead8 6237esac
1cf3d07d
SE
6238
6239
1cf3d07d 6240
43e02a8a
RW
6241macro_version='2.2.7a'
6242macro_revision='1.3134'
1cf3d07d
SE
6243
6244
6245
6246
6247
6248
6de9cd9a 6249
1cf3d07d
SE
6250
6251
6252
6253
6254
6255
d58dead8 6256ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 6257
43e02a8a
RW
6258# Backslashify metacharacters that are still active within
6259# double-quoted strings.
6260sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6261
6262# Same as above, but do not quote variable references.
6263double_quote_subst='s/\(["`\\]\)/\\\1/g'
6264
6265# Sed substitution to delay expansion of an escaped shell variable in a
6266# double_quote_subst'ed string.
6267delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6268
6269# Sed substitution to delay expansion of an escaped single quote.
6270delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6271
6272# Sed substitution to avoid accidental globbing in evaled expressions
6273no_glob_subst='s/\*/\\\*/g'
6274
6275ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6276ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6277ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6278
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6280$as_echo_n "checking how to print strings... " >&6; }
6281# Test print first, because it will be a builtin if present.
6282if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6283 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6284 ECHO='print -r --'
6285elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6286 ECHO='printf %s\n'
6287else
6288 # Use this function as a fallback that always works.
6289 func_fallback_echo ()
6290 {
6291 eval 'cat <<_LTECHO_EOF
6292$1
6293_LTECHO_EOF'
6294 }
6295 ECHO='func_fallback_echo'
6296fi
6297
6298# func_echo_all arg...
6299# Invoke $ECHO with all args, space-separated.
6300func_echo_all ()
6301{
6302 $ECHO ""
6303}
6304
6305case "$ECHO" in
6306 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6307$as_echo "printf" >&6; } ;;
6308 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6309$as_echo "print -r" >&6; } ;;
6310 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6311$as_echo "cat" >&6; } ;;
6312esac
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
21be0a5a
JB
6325
6326
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6328$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6329if test "${ac_cv_path_SED+set}" = set; then :
5213506e 6330 $as_echo_n "(cached) " >&6
1cf3d07d 6331else
21be0a5a
JB
6332 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6333 for ac_i in 1 2 3 4 5 6 7; do
6334 ac_script="$ac_script$as_nl$ac_script"
6335 done
6336 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6337 { ac_script=; unset ac_script;}
6338 if test -z "$SED"; then
6339 ac_path_SED_found=false
5213506e
RW
6340 # Loop through the user's path and test for each of PROGNAME-LIST
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a 6342for as_dir in $PATH
5213506e
RW
6343do
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
21be0a5a 6346 for ac_prog in sed gsed; do
5213506e 6347 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
6348 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6349 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6350# Check for GNU ac_path_SED and select it if it is found.
6351 # Check for GNU $ac_path_SED
6352case `"$ac_path_SED" --version 2>&1` in
5213506e 6353*GNU*)
21be0a5a 6354 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5213506e
RW
6355*)
6356 ac_count=0
6357 $as_echo_n 0123456789 >"conftest.in"
6358 while :
6359 do
6360 cat "conftest.in" "conftest.in" >"conftest.tmp"
6361 mv "conftest.tmp" "conftest.in"
6362 cp "conftest.in" "conftest.nl"
21be0a5a
JB
6363 $as_echo '' >> "conftest.nl"
6364 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213506e
RW
6365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6366 as_fn_arith $ac_count + 1 && ac_count=$as_val
21be0a5a 6367 if test $ac_count -gt ${ac_path_SED_max-0}; then
5213506e 6368 # Best one so far, save it but keep looking for a better one
21be0a5a
JB
6369 ac_cv_path_SED="$ac_path_SED"
6370 ac_path_SED_max=$ac_count
38d24731 6371 fi
5213506e
RW
6372 # 10*(2^10) chars as input seems more than enough
6373 test $ac_count -gt 10 && break
6374 done
6375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6376esac
6377
21be0a5a 6378 $ac_path_SED_found && break 3
5213506e
RW
6379 done
6380 done
6381 done
6382IFS=$as_save_IFS
21be0a5a
JB
6383 if test -z "$ac_cv_path_SED"; then
6384 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5213506e
RW
6385 fi
6386else
21be0a5a 6387 ac_cv_path_SED=$SED
5213506e
RW
6388fi
6389
1cf3d07d 6390fi
21be0a5a
JB
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6392$as_echo "$ac_cv_path_SED" >&6; }
6393 SED="$ac_cv_path_SED"
6394 rm -f conftest.sed
6395
6396test -z "$SED" && SED=sed
6397Xsed="$SED -e 1s/^X//"
6398
6399
6400
6401
6402
6403
6404
6405
6406
1cf3d07d
SE
6407
6408
5213506e
RW
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6410$as_echo_n "checking for fgrep... " >&6; }
6411if test "${ac_cv_path_FGREP+set}" = set; then :
6412 $as_echo_n "(cached) " >&6
38d24731 6413else
5213506e
RW
6414 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6415 then ac_cv_path_FGREP="$GREP -F"
6416 else
6417 if test -z "$FGREP"; then
6418 ac_path_FGREP_found=false
6419 # Loop through the user's path and test for each of PROGNAME-LIST
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6422do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_prog in fgrep; do
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6428 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6429# Check for GNU ac_path_FGREP and select it if it is found.
6430 # Check for GNU $ac_path_FGREP
6431case `"$ac_path_FGREP" --version 2>&1` in
6432*GNU*)
6433 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6434*)
6435 ac_count=0
6436 $as_echo_n 0123456789 >"conftest.in"
6437 while :
6438 do
6439 cat "conftest.in" "conftest.in" >"conftest.tmp"
6440 mv "conftest.tmp" "conftest.in"
6441 cp "conftest.in" "conftest.nl"
6442 $as_echo 'FGREP' >> "conftest.nl"
6443 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6445 as_fn_arith $ac_count + 1 && ac_count=$as_val
6446 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6447 # Best one so far, save it but keep looking for a better one
6448 ac_cv_path_FGREP="$ac_path_FGREP"
6449 ac_path_FGREP_max=$ac_count
38d24731 6450 fi
5213506e
RW
6451 # 10*(2^10) chars as input seems more than enough
6452 test $ac_count -gt 10 && break
6453 done
6454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6455esac
6456
6457 $ac_path_FGREP_found && break 3
6458 done
6459 done
6460 done
6461IFS=$as_save_IFS
6462 if test -z "$ac_cv_path_FGREP"; then
6463 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6464 fi
6465else
6466 ac_cv_path_FGREP=$FGREP
1cf3d07d 6467fi
5213506e
RW
6468
6469 fi
6470fi
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6472$as_echo "$ac_cv_path_FGREP" >&6; }
6473 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6474
6475
6476test -z "$GREP" && GREP=grep
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
5213506e
RW
6496# Check whether --with-gnu-ld was given.
6497if test "${with_gnu_ld+set}" = set; then :
6498 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
96b8a615
AJ
6499else
6500 with_gnu_ld=no
5213506e
RW
6501fi
6502
96b8a615
AJ
6503ac_prog=ld
6504if test "$GCC" = yes; then
6505 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6507$as_echo_n "checking for ld used by $CC... " >&6; }
96b8a615
AJ
6508 case $host in
6509 *-*-mingw*)
6510 # gcc leaves a trailing carriage return which upsets mingw
6511 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6512 *)
6513 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6514 esac
6515 case $ac_prog in
6516 # Accept absolute paths.
1cf3d07d 6517 [\\/]* | ?:[\\/]*)
96b8a615 6518 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
6519 # Canonicalize the pathname of ld
6520 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6521 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6522 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
96b8a615
AJ
6523 done
6524 test -z "$LD" && LD="$ac_prog"
6525 ;;
6526 "")
6527 # If it fails, then pretend we aren't using GCC.
6528 ac_prog=ld
6529 ;;
6530 *)
6531 # If it is relative, then search for the first ld in PATH.
6532 with_gnu_ld=unknown
6533 ;;
6534 esac
6535elif test "$with_gnu_ld" = yes; then
5213506e
RW
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6537$as_echo_n "checking for GNU ld... " >&6; }
96b8a615 6538else
5213506e
RW
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6540$as_echo_n "checking for non-GNU ld... " >&6; }
96b8a615 6541fi
5213506e
RW
6542if test "${lt_cv_path_LD+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
96b8a615
AJ
6544else
6545 if test -z "$LD"; then
1cf3d07d 6546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
96b8a615 6547 for ac_dir in $PATH; do
1cf3d07d 6548 IFS="$lt_save_ifs"
96b8a615
AJ
6549 test -z "$ac_dir" && ac_dir=.
6550 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6551 lt_cv_path_LD="$ac_dir/$ac_prog"
6552 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 6553 # but apparently some variants of GNU ld only accept -v.
96b8a615 6554 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
6555 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6556 *GNU* | *'with BFD'*)
96b8a615 6557 test "$with_gnu_ld" != no && break
1cf3d07d
SE
6558 ;;
6559 *)
96b8a615 6560 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
6561 ;;
6562 esac
96b8a615
AJ
6563 fi
6564 done
1cf3d07d 6565 IFS="$lt_save_ifs"
96b8a615
AJ
6566else
6567 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6568fi
6569fi
6570
6571LD="$lt_cv_path_LD"
6572if test -n "$LD"; then
5213506e
RW
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6574$as_echo "$LD" >&6; }
96b8a615 6575else
5213506e
RW
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577$as_echo "no" >&6; }
96b8a615 6578fi
5213506e
RW
6579test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6581$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6582if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
96b8a615 6584else
1cf3d07d
SE
6585 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6586case `$LD -v 2>&1 </dev/null` in
6587*GNU* | *'with BFD'*)
96b8a615 6588 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
6589 ;;
6590*)
96b8a615 6591 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
6592 ;;
6593esac
96b8a615 6594fi
5213506e
RW
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6596$as_echo "$lt_cv_prog_gnu_ld" >&6; }
96b8a615
AJ
6597with_gnu_ld=$lt_cv_prog_gnu_ld
6598
6599
96b8a615 6600
1cf3d07d
SE
6601
6602
6603
6604
6605
6606
5213506e
RW
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6608$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6609if test "${lt_cv_path_NM+set}" = set; then :
6610 $as_echo_n "(cached) " >&6
96b8a615
AJ
6611else
6612 if test -n "$NM"; then
6613 # Let the user override the test.
6614 lt_cv_path_NM="$NM"
6615else
1cf3d07d
SE
6616 lt_nm_to_check="${ac_tool_prefix}nm"
6617 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6618 lt_nm_to_check="$lt_nm_to_check nm"
6619 fi
6620 for lt_tmp_nm in $lt_nm_to_check; do
6621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6622 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6623 IFS="$lt_save_ifs"
6624 test -z "$ac_dir" && ac_dir=.
6625 tmp_nm="$ac_dir/$lt_tmp_nm"
6626 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6627 # Check to see if the nm accepts a BSD-compat flag.
6628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6629 # nm: unknown option "B" ignored
6630 # Tru64's nm complains that /dev/null is an invalid object file
6631 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6632 */dev/null* | *'Invalid file or object type'*)
6633 lt_cv_path_NM="$tmp_nm -B"
6634 break
6635 ;;
6636 *)
6637 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6638 */dev/null*)
6639 lt_cv_path_NM="$tmp_nm -p"
6640 break
6641 ;;
6642 *)
6643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6644 continue # so that we can try to find one that supports BSD flags
6645 ;;
6646 esac
6647 ;;
6648 esac
6649 fi
6650 done
6651 IFS="$lt_save_ifs"
6652 done
6653 : ${lt_cv_path_NM=no}
6654fi
6655fi
5213506e
RW
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6657$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
6658if test "$lt_cv_path_NM" != "no"; then
6659 NM="$lt_cv_path_NM"
6660else
6661 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
6662 if test -n "$DUMPBIN"; then :
6663 # Let the user override the test.
6664 else
6665 if test -n "$ac_tool_prefix"; then
6666 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6667 do
6668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6669set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671$as_echo_n "checking for $ac_word... " >&6; }
6672if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6674else
6675 if test -n "$DUMPBIN"; then
6676 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6677else
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
5213506e
RW
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6685 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6687 break 2
6688 fi
6689done
5213506e
RW
6690 done
6691IFS=$as_save_IFS
1cf3d07d
SE
6692
6693fi
6694fi
6695DUMPBIN=$ac_cv_prog_DUMPBIN
6696if test -n "$DUMPBIN"; then
5213506e
RW
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6698$as_echo "$DUMPBIN" >&6; }
1cf3d07d 6699else
5213506e
RW
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701$as_echo "no" >&6; }
1cf3d07d
SE
6702fi
6703
5213506e 6704
1cf3d07d
SE
6705 test -n "$DUMPBIN" && break
6706 done
6707fi
6708if test -z "$DUMPBIN"; then
6709 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 6710 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6711do
6712 # Extract the first word of "$ac_prog", so it can be a program name with args.
6713set dummy $ac_prog; ac_word=$2
5213506e
RW
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715$as_echo_n "checking for $ac_word... " >&6; }
6716if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6717 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6718else
6719 if test -n "$ac_ct_DUMPBIN"; then
6720 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6721else
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
5213506e
RW
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6729 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6731 break 2
6732 fi
6733done
5213506e
RW
6734 done
6735IFS=$as_save_IFS
1cf3d07d
SE
6736
6737fi
6738fi
6739ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6740if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6742$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 6743else
5213506e
RW
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745$as_echo "no" >&6; }
1cf3d07d
SE
6746fi
6747
5213506e 6748
1cf3d07d
SE
6749 test -n "$ac_ct_DUMPBIN" && break
6750done
1cf3d07d 6751
5213506e
RW
6752 if test "x$ac_ct_DUMPBIN" = x; then
6753 DUMPBIN=":"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756yes:)
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759ac_tool_warned=yes ;;
6760esac
6761 DUMPBIN=$ac_ct_DUMPBIN
6762 fi
96b8a615 6763fi
1cf3d07d 6764
43e02a8a
RW
6765 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6766 *COFF*)
6767 DUMPBIN="$DUMPBIN -symbols"
6768 ;;
6769 *)
6770 DUMPBIN=:
6771 ;;
6772 esac
6773 fi
1cf3d07d
SE
6774
6775 if test "$DUMPBIN" != ":"; then
6776 NM="$DUMPBIN"
6777 fi
96b8a615 6778fi
1cf3d07d
SE
6779test -z "$NM" && NM=nm
6780
6781
96b8a615 6782
1cf3d07d
SE
6783
6784
6785
5213506e
RW
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6787$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6788if test "${lt_cv_nm_interface+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6790else
6791 lt_cv_nm_interface="BSD nm"
6792 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 6793 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
6794 (eval "$ac_compile" 2>conftest.err)
6795 cat conftest.err >&5
43e02a8a 6796 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
6797 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6798 cat conftest.err >&5
43e02a8a 6799 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
6800 cat conftest.out >&5
6801 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6802 lt_cv_nm_interface="MS dumpbin"
6803 fi
6804 rm -f conftest*
6805fi
5213506e
RW
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6807$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 6808
5213506e
RW
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6810$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
6811LN_S=$as_ln_s
6812if test "$LN_S" = "ln -s"; then
5213506e
RW
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6814$as_echo "yes" >&6; }
96b8a615 6815else
5213506e
RW
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6817$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
6818fi
6819
1cf3d07d 6820# find the maximum length of command line arguments
5213506e
RW
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6822$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6823if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6825else
6826 i=0
6827 teststring="ABCD"
6828
6829 case $build_os in
6830 msdosdjgpp*)
6831 # On DJGPP, this test can blow up pretty badly due to problems in libc
6832 # (any single argument exceeding 2000 bytes causes a buffer overrun
6833 # during glob expansion). Even if it were fixed, the result of this
6834 # check would be larger than it should be.
6835 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6836 ;;
6837
6838 gnu*)
6839 # Under GNU Hurd, this test is not required because there is
6840 # no limit to the length of command line arguments.
6841 # Libtool will interpret -1 as no limit whatsoever
6842 lt_cv_sys_max_cmd_len=-1;
6843 ;;
6844
d58dead8 6845 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
6846 # On Win9x/ME, this test blows up -- it succeeds, but takes
6847 # about 5 minutes as the teststring grows exponentially.
6848 # Worse, since 9x/ME are not pre-emptively multitasking,
6849 # you end up with a "frozen" computer, even though with patience
6850 # the test eventually succeeds (with a max line length of 256k).
6851 # Instead, let's just punt: use the minimum linelength reported by
6852 # all of the supported platforms: 8192 (on NT/2K/XP).
6853 lt_cv_sys_max_cmd_len=8192;
6854 ;;
6855
43e02a8a
RW
6856 mint*)
6857 # On MiNT this can take a long time and run out of memory.
6858 lt_cv_sys_max_cmd_len=8192;
6859 ;;
6860
1cf3d07d
SE
6861 amigaos*)
6862 # On AmigaOS with pdksh, this test takes hours, literally.
6863 # So we just punt and use a minimum line length of 8192.
6864 lt_cv_sys_max_cmd_len=8192;
6865 ;;
6866
6867 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6868 # This has been around since 386BSD, at least. Likely further.
6869 if test -x /sbin/sysctl; then
6870 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6871 elif test -x /usr/sbin/sysctl; then
6872 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6873 else
6874 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6875 fi
6876 # And add a safety zone
6877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6879 ;;
6880
6881 interix*)
6882 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6883 lt_cv_sys_max_cmd_len=196608
6884 ;;
6885
6886 osf*)
6887 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6888 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6889 # nice to cause kernel panics so lets avoid the loop below.
6890 # First set a reasonable default.
6891 lt_cv_sys_max_cmd_len=16384
6892 #
6893 if test -x /sbin/sysconfig; then
6894 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6895 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6896 esac
6897 fi
6898 ;;
6899 sco3.2v5*)
6900 lt_cv_sys_max_cmd_len=102400
6901 ;;
6902 sysv5* | sco5v6* | sysv4.2uw2*)
6903 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6904 if test -n "$kargmax"; then
6905 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6906 else
6907 lt_cv_sys_max_cmd_len=32768
6908 fi
6909 ;;
6910 *)
d58dead8
PG
6911 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6912 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
6913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6915 else
6916 # Make teststring a little bigger before we do anything with it.
6917 # a 1K string should be a reasonable start.
6918 for i in 1 2 3 4 5 6 7 8 ; do
6919 teststring=$teststring$teststring
6920 done
6921 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6922 # If test is not a shell built-in, we'll probably end up computing a
6923 # maximum length that is only half of the actual maximum length, but
6924 # we can't tell.
43e02a8a
RW
6925 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6926 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
6927 test $i != 17 # 1/2 MB should be enough
6928 do
6929 i=`expr $i + 1`
6930 teststring=$teststring$teststring
6931 done
6932 # Only check the string length outside the loop.
6933 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6934 teststring=
6935 # Add a significant safety factor because C++ compilers can tack on
6936 # massive amounts of additional arguments before passing them to the
6937 # linker. It appears as though 1/2 is a usable value.
6938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6939 fi
1cf3d07d
SE
6940 ;;
6941 esac
6942
6943fi
6944
6945if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6947$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 6948else
5213506e
RW
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6950$as_echo "none" >&6; }
1cf3d07d
SE
6951fi
6952max_cmd_len=$lt_cv_sys_max_cmd_len
6953
6954
6955
6956
6957
6958
1cf3d07d
SE
6959: ${CP="cp -f"}
6960: ${MV="mv -f"}
6961: ${RM="rm -f"}
6962
5213506e
RW
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6964$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
6965# Try some XSI features
6966xsi_shell=no
6967( _lt_dummy="a/b/c"
6968 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
6969 = c,a/b,, \
6970 && eval 'test $(( 1 + 1 )) -eq 2 \
6971 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 6972 && xsi_shell=yes
5213506e
RW
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6974$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
6975
6976
5213506e
RW
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6978$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
6979lt_shell_append=no
6980( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6981 >/dev/null 2>&1 \
6982 && lt_shell_append=yes
5213506e
RW
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6984$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
6985
6986
6987if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6988 lt_unset=unset
6989else
6990 lt_unset=false
6991fi
6992
6993
6994
6995
6996
6997# test EBCDIC or ASCII
6998case `echo X|tr X '\101'` in
6999 A) # ASCII based system
7000 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7001 lt_SP2NL='tr \040 \012'
7002 lt_NL2SP='tr \015\012 \040\040'
7003 ;;
7004 *) # EBCDIC based system
7005 lt_SP2NL='tr \100 \n'
7006 lt_NL2SP='tr \r\n \100\100'
7007 ;;
7008esac
7009
7010
7011
7012
7013
7014
7015
7016
7017
5213506e
RW
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7019$as_echo_n "checking for $LD option to reload object files... " >&6; }
7020if test "${lt_cv_ld_reload_flag+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7022else
7023 lt_cv_ld_reload_flag='-r'
7024fi
5213506e
RW
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7026$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
7027reload_flag=$lt_cv_ld_reload_flag
7028case $reload_flag in
7029"" | " "*) ;;
7030*) reload_flag=" $reload_flag" ;;
7031esac
7032reload_cmds='$LD$reload_flag -o $output$reload_objs'
7033case $host_os in
7034 darwin*)
7035 if test "$GCC" = yes; then
7036 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7037 else
7038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7039 fi
7040 ;;
7041esac
7042
7043
7044
7045
7046
7047
7048
7049
7050
d58dead8
PG
7051if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7053set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055$as_echo_n "checking for $ac_word... " >&6; }
7056if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
d58dead8
PG
7058else
7059 if test -n "$OBJDUMP"; then
7060 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
5213506e
RW
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7069 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7071 break 2
7072 fi
7073done
5213506e
RW
7074 done
7075IFS=$as_save_IFS
d58dead8
PG
7076
7077fi
7078fi
7079OBJDUMP=$ac_cv_prog_OBJDUMP
7080if test -n "$OBJDUMP"; then
5213506e
RW
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7082$as_echo "$OBJDUMP" >&6; }
d58dead8 7083else
5213506e
RW
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085$as_echo "no" >&6; }
d58dead8
PG
7086fi
7087
5213506e 7088
d58dead8
PG
7089fi
7090if test -z "$ac_cv_prog_OBJDUMP"; then
7091 ac_ct_OBJDUMP=$OBJDUMP
7092 # Extract the first word of "objdump", so it can be a program name with args.
7093set dummy objdump; ac_word=$2
5213506e
RW
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095$as_echo_n "checking for $ac_word... " >&6; }
7096if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
d58dead8
PG
7098else
7099 if test -n "$ac_ct_OBJDUMP"; then
7100 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7101else
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
5213506e
RW
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7109 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7111 break 2
7112 fi
7113done
5213506e
RW
7114 done
7115IFS=$as_save_IFS
d58dead8 7116
d58dead8
PG
7117fi
7118fi
7119ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7120if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7122$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 7123else
5213506e
RW
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }
d58dead8
PG
7126fi
7127
5213506e
RW
7128 if test "x$ac_ct_OBJDUMP" = x; then
7129 OBJDUMP="false"
7130 else
7131 case $cross_compiling:$ac_tool_warned in
7132yes:)
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135ac_tool_warned=yes ;;
7136esac
7137 OBJDUMP=$ac_ct_OBJDUMP
7138 fi
d58dead8
PG
7139else
7140 OBJDUMP="$ac_cv_prog_OBJDUMP"
7141fi
7142
7143test -z "$OBJDUMP" && OBJDUMP=objdump
7144
7145
7146
7147
7148
7149
7150
7151
1cf3d07d 7152
5213506e
RW
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7154$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7155if test "${lt_cv_deplibs_check_method+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
96b8a615
AJ
7157else
7158 lt_cv_file_magic_cmd='$MAGIC_CMD'
7159lt_cv_file_magic_test_file=
7160lt_cv_deplibs_check_method='unknown'
7161# Need to set the preceding variable on all platforms that support
7162# interlibrary dependencies.
7163# 'none' -- dependencies not supported.
7164# `unknown' -- same as none, but documents that we really don't know.
7165# 'pass_all' -- all dependencies passed with no checks.
7166# 'test_compile' -- check by making test program.
1cf3d07d
SE
7167# 'file_magic [[regex]]' -- check by looking for files in library path
7168# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
7169# If you have `file' or equivalent on your system and you're not sure
7170# whether `pass_all' will *always* work, you probably want this one.
7171
7172case $host_os in
4f6bebc3 7173aix[4-9]*)
96b8a615
AJ
7174 lt_cv_deplibs_check_method=pass_all
7175 ;;
7176
7177beos*)
7178 lt_cv_deplibs_check_method=pass_all
7179 ;;
7180
1cf3d07d 7181bsdi[45]*)
96b8a615
AJ
7182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7183 lt_cv_file_magic_cmd='/usr/bin/file -L'
7184 lt_cv_file_magic_test_file=/shlib/libc.so
7185 ;;
7186
1cf3d07d
SE
7187cygwin*)
7188 # func_win32_libid is a shell function defined in ltmain.sh
7189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7190 lt_cv_file_magic_cmd='func_win32_libid'
7191 ;;
7192
7193mingw* | pw32*)
7194 # Base MSYS/MinGW do not provide the 'file' command needed by
7195 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7196 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
7197 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7198 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
7199 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7200 lt_cv_file_magic_cmd='func_win32_libid'
7201 else
7202 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7203 lt_cv_file_magic_cmd='$OBJDUMP -f'
7204 fi
96b8a615
AJ
7205 ;;
7206
43e02a8a 7207cegcc*)
d58dead8
PG
7208 # use the weaker test based on 'objdump'. See mingw*.
7209 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7210 lt_cv_file_magic_cmd='$OBJDUMP -f'
7211 ;;
7212
96b8a615 7213darwin* | rhapsody*)
96b8a615
AJ
7214 lt_cv_deplibs_check_method=pass_all
7215 ;;
7216
1cf3d07d
SE
7217freebsd* | dragonfly*)
7218 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
7219 case $host_cpu in
7220 i*86 )
7221 # Not sure whether the presence of OpenBSD here was a mistake.
7222 # Let's accept both of them until this is cleared up.
1cf3d07d 7223 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7224 lt_cv_file_magic_cmd=/usr/bin/file
7225 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7226 ;;
7227 esac
7228 else
7229 lt_cv_deplibs_check_method=pass_all
7230 fi
7231 ;;
7232
7233gnu*)
7234 lt_cv_deplibs_check_method=pass_all
7235 ;;
7236
43e02a8a
RW
7237haiku*)
7238 lt_cv_deplibs_check_method=pass_all
7239 ;;
7240
1cf3d07d
SE
7241hpux10.20* | hpux11*)
7242 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7243 case $host_cpu in
96b8a615
AJ
7244 ia64*)
7245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
96b8a615
AJ
7246 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7247 ;;
1cf3d07d 7248 hppa*64*)
43e02a8a 7249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
1cf3d07d 7250 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7251 ;;
7252 *)
43e02a8a 7253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7254 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7255 ;;
7256 esac
1cf3d07d
SE
7257 ;;
7258
7259interix[3-9]*)
7260 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7262 ;;
7263
7264irix5* | irix6* | nonstopux*)
7265 case $LD in
7266 *-32|*"-32 ") libmagic=32-bit;;
7267 *-n32|*"-n32 ") libmagic=N32;;
7268 *-64|*"-64 ") libmagic=64-bit;;
7269 *) libmagic=never-match;;
7270 esac
96b8a615
AJ
7271 lt_cv_deplibs_check_method=pass_all
7272 ;;
7273
7274# This must be Linux ELF.
7a9d3fe8 7275linux* | k*bsd*-gnu | kopensolaris*-gnu)
2c92e90f 7276 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7277 ;;
7278
1cf3d07d
SE
7279netbsd*)
7280 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7282 else
1cf3d07d 7283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7284 fi
7285 ;;
7286
1cf3d07d 7287newos6*)
96b8a615
AJ
7288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7289 lt_cv_file_magic_cmd=/usr/bin/file
7290 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7291 ;;
7292
1cf3d07d
SE
7293*nto* | *qnx*)
7294 lt_cv_deplibs_check_method=pass_all
7295 ;;
7296
7297openbsd*)
7298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7300 else
7301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7302 fi
7303 ;;
7304
96b8a615 7305osf3* | osf4* | osf5*)
96b8a615
AJ
7306 lt_cv_deplibs_check_method=pass_all
7307 ;;
7308
1cf3d07d 7309rdos*)
96b8a615
AJ
7310 lt_cv_deplibs_check_method=pass_all
7311 ;;
7312
7313solaris*)
7314 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7315 ;;
7316
1cf3d07d 7317sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7318 lt_cv_deplibs_check_method=pass_all
7319 ;;
7320
1cf3d07d 7321sysv4 | sysv4.3*)
96b8a615 7322 case $host_vendor in
96b8a615
AJ
7323 motorola)
7324 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]'
7325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7326 ;;
1cf3d07d
SE
7327 ncr)
7328 lt_cv_deplibs_check_method=pass_all
7329 ;;
7330 sequent)
7331 lt_cv_file_magic_cmd='/bin/file'
7332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7333 ;;
7334 sni)
7335 lt_cv_file_magic_cmd='/bin/file'
7336 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7337 lt_cv_file_magic_test_file=/lib/libc.so
7338 ;;
7339 siemens)
7340 lt_cv_deplibs_check_method=pass_all
7341 ;;
7342 pc)
7343 lt_cv_deplibs_check_method=pass_all
7344 ;;
96b8a615
AJ
7345 esac
7346 ;;
1cf3d07d
SE
7347
7348tpf*)
7349 lt_cv_deplibs_check_method=pass_all
7350 ;;
96b8a615
AJ
7351esac
7352
7353fi
5213506e
RW
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7355$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7356file_magic_cmd=$lt_cv_file_magic_cmd
7357deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7358test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7359
7360
7361
7362
96b8a615 7363
96b8a615 7364
96b8a615 7365
96b8a615 7366
6de9cd9a 7367
6de9cd9a 7368
6de9cd9a 7369
6de9cd9a 7370
96b8a615 7371if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7372 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7373set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if test "${ac_cv_prog_AR+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
6de9cd9a 7378else
1cf3d07d
SE
7379 if test -n "$AR"; then
7380 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
5213506e
RW
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7389 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7391 break 2
7392 fi
7393done
5213506e
RW
7394 done
7395IFS=$as_save_IFS
6de9cd9a 7396
96b8a615
AJ
7397fi
7398fi
1cf3d07d
SE
7399AR=$ac_cv_prog_AR
7400if test -n "$AR"; then
5213506e
RW
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7402$as_echo "$AR" >&6; }
96b8a615 7403else
5213506e
RW
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
6de9cd9a
DN
7406fi
7407
5213506e 7408
96b8a615 7409fi
1cf3d07d
SE
7410if test -z "$ac_cv_prog_AR"; then
7411 ac_ct_AR=$AR
7412 # Extract the first word of "ar", so it can be a program name with args.
7413set dummy ar; ac_word=$2
5213506e
RW
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415$as_echo_n "checking for $ac_word... " >&6; }
7416if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
96b8a615 7418else
1cf3d07d
SE
7419 if test -n "$ac_ct_AR"; then
7420 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7421else
7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
5213506e
RW
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7429 ac_cv_prog_ac_ct_AR="ar"
5213506e 7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7431 break 2
7432 fi
7433done
5213506e
RW
7434 done
7435IFS=$as_save_IFS
6de9cd9a 7436
96b8a615
AJ
7437fi
7438fi
1cf3d07d
SE
7439ac_ct_AR=$ac_cv_prog_ac_ct_AR
7440if test -n "$ac_ct_AR"; then
5213506e
RW
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7442$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7443else
5213506e
RW
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445$as_echo "no" >&6; }
6de9cd9a 7446fi
6de9cd9a 7447
5213506e
RW
7448 if test "x$ac_ct_AR" = x; then
7449 AR="false"
7450 else
7451 case $cross_compiling:$ac_tool_warned in
7452yes:)
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7455ac_tool_warned=yes ;;
7456esac
7457 AR=$ac_ct_AR
7458 fi
96b8a615 7459else
1cf3d07d 7460 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7461fi
7462
1cf3d07d
SE
7463test -z "$AR" && AR=ar
7464test -z "$AR_FLAGS" && AR_FLAGS=cru
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
96b8a615
AJ
7476if test -n "$ac_tool_prefix"; then
7477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7478set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480$as_echo_n "checking for $ac_word... " >&6; }
7481if test "${ac_cv_prog_STRIP+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
6de9cd9a 7483else
96b8a615
AJ
7484 if test -n "$STRIP"; then
7485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7486else
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
5213506e
RW
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7496 break 2
7497 fi
7498done
5213506e
RW
7499 done
7500IFS=$as_save_IFS
6de9cd9a 7501
96b8a615
AJ
7502fi
7503fi
7504STRIP=$ac_cv_prog_STRIP
7505if test -n "$STRIP"; then
5213506e
RW
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7507$as_echo "$STRIP" >&6; }
6de9cd9a 7508else
5213506e
RW
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510$as_echo "no" >&6; }
96b8a615 7511fi
6de9cd9a 7512
5213506e 7513
6de9cd9a 7514fi
96b8a615
AJ
7515if test -z "$ac_cv_prog_STRIP"; then
7516 ac_ct_STRIP=$STRIP
7517 # Extract the first word of "strip", so it can be a program name with args.
7518set dummy strip; ac_word=$2
5213506e
RW
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520$as_echo_n "checking for $ac_word... " >&6; }
7521if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
96b8a615
AJ
7523else
7524 if test -n "$ac_ct_STRIP"; then
7525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7526else
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
5213506e
RW
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7534 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7536 break 2
7537 fi
7538done
5213506e
RW
7539 done
7540IFS=$as_save_IFS
96b8a615 7541
6de9cd9a
DN
7542fi
7543fi
96b8a615
AJ
7544ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7545if test -n "$ac_ct_STRIP"; then
5213506e
RW
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7547$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7548else
5213506e
RW
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550$as_echo "no" >&6; }
6de9cd9a 7551fi
6de9cd9a 7552
5213506e
RW
7553 if test "x$ac_ct_STRIP" = x; then
7554 STRIP=":"
7555 else
7556 case $cross_compiling:$ac_tool_warned in
7557yes:)
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560ac_tool_warned=yes ;;
7561esac
7562 STRIP=$ac_ct_STRIP
7563 fi
96b8a615
AJ
7564else
7565 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
7566fi
7567
1cf3d07d 7568test -z "$STRIP" && STRIP=:
6de9cd9a
DN
7569
7570
7571
7572
7573
7574
1cf3d07d
SE
7575if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7577set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if test "${ac_cv_prog_RANLIB+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
6de9cd9a 7582else
1cf3d07d
SE
7583 if test -n "$RANLIB"; then
7584 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
5213506e
RW
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7593 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7595 break 2
7596 fi
7597done
5213506e
RW
7598 done
7599IFS=$as_save_IFS
1cf3d07d
SE
7600
7601fi
7602fi
7603RANLIB=$ac_cv_prog_RANLIB
7604if test -n "$RANLIB"; then
5213506e
RW
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7606$as_echo "$RANLIB" >&6; }
1cf3d07d 7607else
5213506e
RW
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
1cf3d07d
SE
7610fi
7611
5213506e 7612
1cf3d07d
SE
7613fi
7614if test -z "$ac_cv_prog_RANLIB"; then
7615 ac_ct_RANLIB=$RANLIB
7616 # Extract the first word of "ranlib", so it can be a program name with args.
7617set dummy ranlib; ac_word=$2
5213506e
RW
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619$as_echo_n "checking for $ac_word... " >&6; }
7620if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7622else
7623 if test -n "$ac_ct_RANLIB"; then
7624 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7625else
7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
5213506e
RW
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7633 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7635 break 2
7636 fi
7637done
5213506e
RW
7638 done
7639IFS=$as_save_IFS
1cf3d07d 7640
1cf3d07d
SE
7641fi
7642fi
7643ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7644if test -n "$ac_ct_RANLIB"; then
5213506e
RW
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7646$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 7647else
5213506e
RW
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649$as_echo "no" >&6; }
1cf3d07d
SE
7650fi
7651
5213506e
RW
7652 if test "x$ac_ct_RANLIB" = x; then
7653 RANLIB=":"
7654 else
7655 case $cross_compiling:$ac_tool_warned in
7656yes:)
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659ac_tool_warned=yes ;;
7660esac
7661 RANLIB=$ac_ct_RANLIB
7662 fi
1cf3d07d
SE
7663else
7664 RANLIB="$ac_cv_prog_RANLIB"
7665fi
7666
7667test -z "$RANLIB" && RANLIB=:
7668
7669
7670
7671
7672
7673
7674# Determine commands to create old-style static archives.
d58dead8 7675old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
7676old_postinstall_cmds='chmod 644 $oldlib'
7677old_postuninstall_cmds=
7678
7679if test -n "$RANLIB"; then
7680 case $host_os in
7681 openbsd*)
7682 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7683 ;;
7684 *)
7685 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7686 ;;
7687 esac
7688 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7689fi
7690
43e02a8a
RW
7691case $host_os in
7692 darwin*)
7693 lock_old_archive_extraction=yes ;;
7694 *)
7695 lock_old_archive_extraction=no ;;
7696esac
7697
7698
7699
7700
7701
7702
1cf3d07d
SE
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736# If no C compiler was specified, use CC.
7737LTCC=${LTCC-"$CC"}
7738
7739# If no C compiler flags were specified, use CFLAGS.
7740LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7741
7742# Allow CC to be a program name with arguments.
7743compiler=$CC
7744
7745
7746# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7748$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7749if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7751else
7752
7753# These are sane defaults that work on at least a few old systems.
7754# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7755
7756# Character class describing NM global symbol codes.
7757symcode='[BCDEGRST]'
7758
7759# Regexp to match symbols that can be accessed directly from C.
7760sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7761
7762# Define system-specific variables.
7763case $host_os in
7764aix*)
7765 symcode='[BCDT]'
7766 ;;
d58dead8 7767cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7768 symcode='[ABCDGISTW]'
7769 ;;
7770hpux*)
7771 if test "$host_cpu" = ia64; then
7772 symcode='[ABCDEGRST]'
7773 fi
7774 ;;
7775irix* | nonstopux*)
7776 symcode='[BCDEGRST]'
7777 ;;
7778osf*)
7779 symcode='[BCDEGQRST]'
7780 ;;
7781solaris*)
7782 symcode='[BDRT]'
7783 ;;
7784sco3.2v5*)
7785 symcode='[DT]'
7786 ;;
7787sysv4.2uw2*)
7788 symcode='[DT]'
7789 ;;
7790sysv5* | sco5v6* | unixware* | OpenUNIX*)
7791 symcode='[ABDT]'
7792 ;;
7793sysv4)
7794 symcode='[DFNSTU]'
7795 ;;
7796esac
7797
7798# If we're using GNU nm, then use its standard symbol codes.
7799case `$NM -V 2>&1` in
7800*GNU* | *'with BFD'*)
7801 symcode='[ABCDGIRSTW]' ;;
7802esac
7803
7804# Transform an extracted symbol line into a proper C declaration.
7805# Some systems (esp. on ia64) link data and code symbols differently,
7806# so use this general approach.
7807lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7808
7809# Transform an extracted symbol line into symbol name and symbol address
7810lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 7811lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1cf3d07d
SE
7812
7813# Handle CRLF in mingw tool chain
7814opt_cr=
7815case $build_os in
7816mingw*)
7817 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7818 ;;
7819esac
7820
7821# Try without a prefix underscore, then with it.
7822for ac_symprfx in "" "_"; do
7823
7824 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7825 symxfrm="\\1 $ac_symprfx\\2 \\2"
7826
7827 # Write the raw and C identifiers.
7828 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7829 # Fake it for dumpbin and say T for any non-static function
7830 # and D for any global variable.
7831 # Also find C++ and __fastcall symbols from MSVC++,
7832 # which start with @ or ?.
7833 lt_cv_sys_global_symbol_pipe="$AWK '"\
7834" {last_section=section; section=\$ 3};"\
7835" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7836" \$ 0!~/External *\|/{next};"\
7837" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7838" {if(hide[section]) next};"\
7839" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7840" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7841" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7842" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7843" ' prfx=^$ac_symprfx"
7844 else
7845 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7846 fi
7847
7848 # Check to see that the pipe works correctly.
7849 pipe_works=no
7850
7851 rm -f conftest*
7852 cat > conftest.$ac_ext <<_LT_EOF
7853#ifdef __cplusplus
7854extern "C" {
7855#endif
7856char nm_test_var;
7857void nm_test_func(void);
7858void nm_test_func(void){}
7859#ifdef __cplusplus
7860}
7861#endif
7862int main(){nm_test_var='a';nm_test_func();return(0);}
7863_LT_EOF
7864
5213506e 7865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7866 (eval $ac_compile) 2>&5
7867 ac_status=$?
5213506e
RW
7868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7869 test $ac_status = 0; }; then
1cf3d07d
SE
7870 # Now try to grab the symbols.
7871 nlist=conftest.nm
43e02a8a
RW
7872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7873 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 7874 ac_status=$?
5213506e
RW
7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
7877 # Try sorting and uniquifying the output.
7878 if sort "$nlist" | uniq > "$nlist"T; then
7879 mv -f "$nlist"T "$nlist"
7880 else
7881 rm -f "$nlist"T
7882 fi
7883
7884 # Make sure that we snagged all the symbols we need.
7885 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7886 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7887 cat <<_LT_EOF > conftest.$ac_ext
7888#ifdef __cplusplus
7889extern "C" {
7890#endif
7891
7892_LT_EOF
7893 # Now generate the symbol file.
7894 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7895
7896 cat <<_LT_EOF >> conftest.$ac_ext
7897
7898/* The mapping between symbol names and symbols. */
7899const struct {
7900 const char *name;
7901 void *address;
7902}
7903lt__PROGRAM__LTX_preloaded_symbols[] =
7904{
7905 { "@PROGRAM@", (void *) 0 },
7906_LT_EOF
7907 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7908 cat <<\_LT_EOF >> conftest.$ac_ext
7909 {0, (void *) 0}
7910};
7911
7912/* This works around a problem in FreeBSD linker */
7913#ifdef FREEBSD_WORKAROUND
7914static const void *lt_preloaded_setup() {
7915 return lt__PROGRAM__LTX_preloaded_symbols;
7916}
7917#endif
7918
7919#ifdef __cplusplus
7920}
7921#endif
7922_LT_EOF
7923 # Now try linking the two files.
7924 mv conftest.$ac_objext conftstm.$ac_objext
7925 lt_save_LIBS="$LIBS"
7926 lt_save_CFLAGS="$CFLAGS"
7927 LIBS="conftstm.$ac_objext"
7928 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 7929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
7930 (eval $ac_link) 2>&5
7931 ac_status=$?
5213506e
RW
7932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7933 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
7934 pipe_works=yes
7935 fi
7936 LIBS="$lt_save_LIBS"
7937 CFLAGS="$lt_save_CFLAGS"
7938 else
7939 echo "cannot find nm_test_func in $nlist" >&5
7940 fi
7941 else
7942 echo "cannot find nm_test_var in $nlist" >&5
7943 fi
7944 else
7945 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7946 fi
7947 else
7948 echo "$progname: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7950 fi
d58dead8 7951 rm -rf conftest* conftst*
1cf3d07d
SE
7952
7953 # Do not use the global_symbol_pipe unless it works.
7954 if test "$pipe_works" = yes; then
7955 break
7956 else
7957 lt_cv_sys_global_symbol_pipe=
7958 fi
7959done
7960
7961fi
7962
7963if test -z "$lt_cv_sys_global_symbol_pipe"; then
7964 lt_cv_sys_global_symbol_to_cdecl=
7965fi
7966if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7968$as_echo "failed" >&6; }
1cf3d07d 7969else
5213506e
RW
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7971$as_echo "ok" >&6; }
1cf3d07d
SE
7972fi
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
d58dead8
PG
7988
7989
7990
7991
7992
1cf3d07d
SE
7993
7994
5213506e
RW
7995# Check whether --enable-libtool-lock was given.
7996if test "${enable_libtool_lock+set}" = set; then :
7997 enableval=$enable_libtool_lock;
7998fi
1cf3d07d 7999
1cf3d07d 8000test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 8001
96b8a615
AJ
8002# Some flags need to be propagated to the compiler or linker for good
8003# libtool support.
8004case $host in
1cf3d07d 8005ia64-*-hpux*)
96b8a615 8006 # Find out which ABI we are using.
1cf3d07d 8007 echo 'int i;' > conftest.$ac_ext
5213506e 8008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8009 (eval $ac_compile) 2>&5
6de9cd9a 8010 ac_status=$?
5213506e
RW
8011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8012 test $ac_status = 0; }; then
96b8a615 8013 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
8014 *ELF-32*)
8015 HPUX_IA64_MODE="32"
8016 ;;
8017 *ELF-64*)
8018 HPUX_IA64_MODE="64"
8019 ;;
96b8a615 8020 esac
96b8a615
AJ
8021 fi
8022 rm -rf conftest*
8023 ;;
1cf3d07d 8024*-*-irix6*)
96b8a615 8025 # Find out which ABI we are using.
43e02a8a 8026 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 8027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8028 (eval $ac_compile) 2>&5
6de9cd9a 8029 ac_status=$?
5213506e
RW
8030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8031 test $ac_status = 0; }; then
1cf3d07d
SE
8032 if test "$lt_cv_prog_gnu_ld" = yes; then
8033 case `/usr/bin/file conftest.$ac_objext` in
8034 *32-bit*)
8035 LD="${LD-ld} -melf32bsmip"
8036 ;;
8037 *N32*)
8038 LD="${LD-ld} -melf32bmipn32"
8039 ;;
8040 *64-bit*)
8041 LD="${LD-ld} -melf64bmip"
8042 ;;
8043 esac
8044 else
8045 case `/usr/bin/file conftest.$ac_objext` in
8046 *32-bit*)
8047 LD="${LD-ld} -32"
8048 ;;
8049 *N32*)
8050 LD="${LD-ld} -n32"
8051 ;;
8052 *64-bit*)
8053 LD="${LD-ld} -64"
8054 ;;
8055 esac
8056 fi
96b8a615
AJ
8057 fi
8058 rm -rf conftest*
8059 ;;
6de9cd9a 8060
1cf3d07d
SE
8061x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8062s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
8063 # Find out which ABI we are using.
8064 echo 'int i;' > conftest.$ac_ext
5213506e 8065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 8066 (eval $ac_compile) 2>&5
6de9cd9a 8067 ac_status=$?
5213506e
RW
8068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8069 test $ac_status = 0; }; then
1cf3d07d
SE
8070 case `/usr/bin/file conftest.o` in
8071 *32-bit*)
8072 case $host in
8073 x86_64-*kfreebsd*-gnu)
8074 LD="${LD-ld} -m elf_i386_fbsd"
8075 ;;
8076 x86_64-*linux*)
8077 LD="${LD-ld} -m elf_i386"
8078 ;;
8079 ppc64-*linux*|powerpc64-*linux*)
8080 LD="${LD-ld} -m elf32ppclinux"
8081 ;;
8082 s390x-*linux*)
8083 LD="${LD-ld} -m elf_s390"
8084 ;;
8085 sparc64-*linux*)
8086 LD="${LD-ld} -m elf32_sparc"
8087 ;;
8088 esac
8089 ;;
8090 *64-bit*)
8091 case $host in
8092 x86_64-*kfreebsd*-gnu)
8093 LD="${LD-ld} -m elf_x86_64_fbsd"
8094 ;;
8095 x86_64-*linux*)
8096 LD="${LD-ld} -m elf_x86_64"
8097 ;;
8098 ppc*-*linux*|powerpc*-*linux*)
8099 LD="${LD-ld} -m elf64ppc"
8100 ;;
8101 s390*-*linux*|s390*-*tpf*)
8102 LD="${LD-ld} -m elf64_s390"
8103 ;;
8104 sparc*-*linux*)
8105 LD="${LD-ld} -m elf64_sparc"
8106 ;;
8107 esac
8108 ;;
96b8a615 8109 esac
6de9cd9a 8110 fi
96b8a615
AJ
8111 rm -rf conftest*
8112 ;;
6de9cd9a 8113
96b8a615
AJ
8114*-*-sco3.2v5*)
8115 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8116 SAVE_CFLAGS="$CFLAGS"
8117 CFLAGS="$CFLAGS -belf"
5213506e
RW
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8119$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8120if test "${lt_cv_cc_needs_belf+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
6de9cd9a 8122else
1cf3d07d 8123 ac_ext=c
96b8a615
AJ
8124ac_cpp='$CPP $CPPFLAGS'
8125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8127ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 8128
f02d008e 8129 if test x$gcc_no_link = xyes; then
5213506e 8130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 8131fi
5213506e 8132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 8133/* end confdefs.h. */
6de9cd9a
DN
8134
8135int
8136main ()
8137{
96b8a615 8138
6de9cd9a
DN
8139 ;
8140 return 0;
8141}
8142_ACEOF
5213506e 8143if ac_fn_c_try_link "$LINENO"; then :
96b8a615 8144 lt_cv_cc_needs_belf=yes
6de9cd9a 8145else
5213506e 8146 lt_cv_cc_needs_belf=no
6de9cd9a 8147fi
5213506e
RW
8148rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
8150 ac_ext=c
8151ac_cpp='$CPP $CPPFLAGS'
8152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154ac_compiler_gnu=$ac_cv_c_compiler_gnu
8155
6de9cd9a 8156fi
5213506e
RW
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8158$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
8159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8161 CFLAGS="$SAVE_CFLAGS"
8162 fi
8163 ;;
1cf3d07d
SE
8164sparc*-*solaris*)
8165 # Find out which ABI we are using.
8166 echo 'int i;' > conftest.$ac_ext
5213506e 8167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
8168 (eval $ac_compile) 2>&5
8169 ac_status=$?
5213506e
RW
8170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8171 test $ac_status = 0; }; then
1cf3d07d
SE
8172 case `/usr/bin/file conftest.o` in
8173 *64-bit*)
8174 case $lt_cv_prog_gnu_ld in
8175 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
8176 *)
8177 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8178 LD="${LD-ld} -64"
8179 fi
8180 ;;
1cf3d07d
SE
8181 esac
8182 ;;
8183 esac
8184 fi
8185 rm -rf conftest*
8186 ;;
96b8a615
AJ
8187esac
8188
1cf3d07d 8189need_locks="$enable_libtool_lock"
96b8a615 8190
d58dead8
PG
8191
8192 case $host_os in
8193 rhapsody* | darwin*)
8194 if test -n "$ac_tool_prefix"; then
8195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8196set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198$as_echo_n "checking for $ac_word... " >&6; }
8199if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
d58dead8
PG
8201else
8202 if test -n "$DSYMUTIL"; then
8203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8204else
8205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206for as_dir in $PATH
8207do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
5213506e
RW
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 8212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8214 break 2
8215 fi
8216done
5213506e
RW
8217 done
8218IFS=$as_save_IFS
d58dead8
PG
8219
8220fi
8221fi
8222DSYMUTIL=$ac_cv_prog_DSYMUTIL
8223if test -n "$DSYMUTIL"; then
5213506e
RW
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8225$as_echo "$DSYMUTIL" >&6; }
d58dead8 8226else
5213506e
RW
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
d58dead8
PG
8229fi
8230
5213506e 8231
d58dead8
PG
8232fi
8233if test -z "$ac_cv_prog_DSYMUTIL"; then
8234 ac_ct_DSYMUTIL=$DSYMUTIL
8235 # Extract the first word of "dsymutil", so it can be a program name with args.
8236set dummy dsymutil; ac_word=$2
5213506e
RW
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238$as_echo_n "checking for $ac_word... " >&6; }
8239if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
d58dead8 8241else
21be0a5a
JB
8242 if test -n "$ac_ct_DSYMUTIL"; then
8243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8244else
8245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246for as_dir in $PATH
8247do
8248 IFS=$as_save_IFS
8249 test -z "$as_dir" && as_dir=.
5213506e
RW
8250 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8254 break 2
8255 fi
8256done
5213506e
RW
8257 done
8258IFS=$as_save_IFS
d58dead8 8259
d58dead8
PG
8260fi
8261fi
21be0a5a
JB
8262ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8263if test -n "$ac_ct_DSYMUTIL"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8265$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8266else
5213506e
RW
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268$as_echo "no" >&6; }
d58dead8
PG
8269fi
8270
21be0a5a
JB
8271 if test "x$ac_ct_DSYMUTIL" = x; then
8272 DSYMUTIL=":"
5213506e
RW
8273 else
8274 case $cross_compiling:$ac_tool_warned in
8275yes:)
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8278ac_tool_warned=yes ;;
8279esac
21be0a5a 8280 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8281 fi
d58dead8 8282else
21be0a5a 8283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8284fi
8285
8286 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8288set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8291if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5213506e 8292 $as_echo_n "(cached) " >&6
d58dead8 8293else
21be0a5a
JB
8294 if test -n "$NMEDIT"; then
8295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8296else
8297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298for as_dir in $PATH
8299do
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
5213506e
RW
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8306 break 2
8307 fi
8308done
5213506e
RW
8309 done
8310IFS=$as_save_IFS
d58dead8
PG
8311
8312fi
8313fi
21be0a5a
JB
8314NMEDIT=$ac_cv_prog_NMEDIT
8315if test -n "$NMEDIT"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8317$as_echo "$NMEDIT" >&6; }
d58dead8 8318else
5213506e
RW
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320$as_echo "no" >&6; }
d58dead8
PG
8321fi
8322
5213506e 8323
d58dead8 8324fi
21be0a5a
JB
8325if test -z "$ac_cv_prog_NMEDIT"; then
8326 ac_ct_NMEDIT=$NMEDIT
8327 # Extract the first word of "nmedit", so it can be a program name with args.
8328set dummy nmedit; ac_word=$2
5213506e
RW
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8331if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5213506e 8332 $as_echo_n "(cached) " >&6
d58dead8 8333else
21be0a5a
JB
8334 if test -n "$ac_ct_NMEDIT"; then
8335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8336else
8337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338for as_dir in $PATH
8339do
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
5213506e
RW
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8346 break 2
8347 fi
8348done
5213506e
RW
8349 done
8350IFS=$as_save_IFS
d58dead8 8351
d58dead8
PG
8352fi
8353fi
21be0a5a
JB
8354ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8355if test -n "$ac_ct_NMEDIT"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8357$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8358else
5213506e
RW
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360$as_echo "no" >&6; }
d58dead8
PG
8361fi
8362
21be0a5a
JB
8363 if test "x$ac_ct_NMEDIT" = x; then
8364 NMEDIT=":"
5213506e
RW
8365 else
8366 case $cross_compiling:$ac_tool_warned in
8367yes:)
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8370ac_tool_warned=yes ;;
8371esac
21be0a5a 8372 NMEDIT=$ac_ct_NMEDIT
5213506e 8373 fi
d58dead8 8374else
21be0a5a 8375 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8376fi
8377
8378 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8380set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8383if test "${ac_cv_prog_LIPO+set}" = set; then :
5213506e 8384 $as_echo_n "(cached) " >&6
d58dead8 8385else
21be0a5a
JB
8386 if test -n "$LIPO"; then
8387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8388else
8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
5213506e
RW
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8398 break 2
8399 fi
8400done
5213506e
RW
8401 done
8402IFS=$as_save_IFS
d58dead8
PG
8403
8404fi
8405fi
21be0a5a
JB
8406LIPO=$ac_cv_prog_LIPO
8407if test -n "$LIPO"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8409$as_echo "$LIPO" >&6; }
d58dead8 8410else
5213506e
RW
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
d58dead8
PG
8413fi
8414
5213506e 8415
d58dead8 8416fi
21be0a5a
JB
8417if test -z "$ac_cv_prog_LIPO"; then
8418 ac_ct_LIPO=$LIPO
8419 # Extract the first word of "lipo", so it can be a program name with args.
8420set dummy lipo; ac_word=$2
5213506e
RW
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8423if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5213506e 8424 $as_echo_n "(cached) " >&6
d58dead8 8425else
21be0a5a
JB
8426 if test -n "$ac_ct_LIPO"; then
8427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8428else
8429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430for as_dir in $PATH
8431do
8432 IFS=$as_save_IFS
8433 test -z "$as_dir" && as_dir=.
5213506e
RW
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8436 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8438 break 2
8439 fi
8440done
5213506e
RW
8441 done
8442IFS=$as_save_IFS
d58dead8 8443
d58dead8
PG
8444fi
8445fi
21be0a5a
JB
8446ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8447if test -n "$ac_ct_LIPO"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8449$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8450else
5213506e
RW
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452$as_echo "no" >&6; }
d58dead8
PG
8453fi
8454
21be0a5a
JB
8455 if test "x$ac_ct_LIPO" = x; then
8456 LIPO=":"
5213506e
RW
8457 else
8458 case $cross_compiling:$ac_tool_warned in
8459yes:)
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8462ac_tool_warned=yes ;;
8463esac
21be0a5a 8464 LIPO=$ac_ct_LIPO
5213506e 8465 fi
d58dead8 8466else
21be0a5a 8467 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8468fi
8469
21be0a5a
JB
8470 if test -n "$ac_tool_prefix"; then
8471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8472set dummy ${ac_tool_prefix}otool; ac_word=$2
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474$as_echo_n "checking for $ac_word... " >&6; }
8475if test "${ac_cv_prog_OTOOL+set}" = set; then :
5213506e 8476 $as_echo_n "(cached) " >&6
d58dead8 8477else
21be0a5a
JB
8478 if test -n "$OTOOL"; then
8479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8480else
21be0a5a
JB
8481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482for as_dir in $PATH
8483do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492done
8493 done
8494IFS=$as_save_IFS
43e02a8a
RW
8495
8496fi
21be0a5a
JB
8497fi
8498OTOOL=$ac_cv_prog_OTOOL
8499if test -n "$OTOOL"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8501$as_echo "$OTOOL" >&6; }
8502else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504$as_echo "no" >&6; }
8505fi
8506
d58dead8 8507
1cf3d07d 8508fi
21be0a5a
JB
8509if test -z "$ac_cv_prog_OTOOL"; then
8510 ac_ct_OTOOL=$OTOOL
8511 # Extract the first word of "otool", so it can be a program name with args.
8512set dummy otool; ac_word=$2
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514$as_echo_n "checking for $ac_word... " >&6; }
8515if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5213506e 8516 $as_echo_n "(cached) " >&6
1cf3d07d 8517else
21be0a5a
JB
8518 if test -n "$ac_ct_OTOOL"; then
8519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8520else
8521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522for as_dir in $PATH
1cf3d07d 8523do
21be0a5a
JB
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528 ac_cv_prog_ac_ct_OTOOL="otool"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8531 fi
8532done
8533 done
8534IFS=$as_save_IFS
6de9cd9a 8535
21be0a5a
JB
8536fi
8537fi
8538ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8539if test -n "$ac_ct_OTOOL"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8541$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8542else
21be0a5a
JB
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
1cf3d07d 8545fi
96b8a615 8546
21be0a5a
JB
8547 if test "x$ac_ct_OTOOL" = x; then
8548 OTOOL=":"
8549 else
8550 case $cross_compiling:$ac_tool_warned in
8551yes:)
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8554ac_tool_warned=yes ;;
8555esac
8556 OTOOL=$ac_ct_OTOOL
8557 fi
1cf3d07d 8558else
21be0a5a 8559 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 8560fi
6de9cd9a 8561
21be0a5a
JB
8562 if test -n "$ac_tool_prefix"; then
8563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8564set dummy ${ac_tool_prefix}otool64; ac_word=$2
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566$as_echo_n "checking for $ac_word... " >&6; }
8567if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8569else
8570 if test -n "$OTOOL64"; then
8571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8572else
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8583 fi
1cf3d07d 8584done
21be0a5a
JB
8585 done
8586IFS=$as_save_IFS
8587
8588fi
8589fi
8590OTOOL64=$ac_cv_prog_OTOOL64
8591if test -n "$OTOOL64"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8593$as_echo "$OTOOL64" >&6; }
8594else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
1cf3d07d 8597fi
6de9cd9a 8598
96b8a615 8599
1cf3d07d 8600fi
21be0a5a
JB
8601if test -z "$ac_cv_prog_OTOOL64"; then
8602 ac_ct_OTOOL64=$OTOOL64
8603 # Extract the first word of "otool64", so it can be a program name with args.
8604set dummy otool64; ac_word=$2
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
8607if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
96b8a615 8609else
21be0a5a
JB
8610 if test -n "$ac_ct_OTOOL64"; then
8611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8612else
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
96b8a615 8615do
21be0a5a
JB
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8620 ac_cv_prog_ac_ct_OTOOL64="otool64"
8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8623 fi
8624done
8625 done
8626IFS=$as_save_IFS
96b8a615 8627
21be0a5a
JB
8628fi
8629fi
8630ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8631if test -n "$ac_ct_OTOOL64"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8633$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 8634else
21be0a5a
JB
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
96b8a615
AJ
8637fi
8638
21be0a5a
JB
8639 if test "x$ac_ct_OTOOL64" = x; then
8640 OTOOL64=":"
8641 else
8642 case $cross_compiling:$ac_tool_warned in
8643yes:)
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8646ac_tool_warned=yes ;;
8647esac
8648 OTOOL64=$ac_ct_OTOOL64
8649 fi
6de9cd9a 8650else
21be0a5a 8651 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 8652fi
6de9cd9a 8653
5213506e 8654
1cf3d07d 8655
1cf3d07d
SE
8656
8657
6de9cd9a 8658
1cf3d07d 8659
6de9cd9a 8660
1cf3d07d 8661
5213506e 8662
6de9cd9a 8663
e87045f3 8664
15e92535 8665
5213506e 8666
15e92535 8667
15e92535 8668
21be0a5a
JB
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8681$as_echo_n "checking for -single_module linker flag... " >&6; }
8682if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
1cf3d07d 8684else
21be0a5a
JB
8685 lt_cv_apple_cc_single_mod=no
8686 if test -z "${LT_MULTI_MODULE}"; then
8687 # By default we will add the -single_module flag. You can override
8688 # by either setting the environment variable LT_MULTI_MODULE
8689 # non-empty at configure time, or by adding -multi_module to the
8690 # link flags.
8691 rm -rf libconftest.dylib*
8692 echo "int foo(void){return 1;}" > conftest.c
8693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8694-dynamiclib -Wl,-single_module conftest.c" >&5
8695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8697 _lt_result=$?
8698 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8699 lt_cv_apple_cc_single_mod=yes
8700 else
8701 cat conftest.err >&5
8702 fi
8703 rm -rf libconftest.dylib*
8704 rm -f conftest.*
8705 fi
8706fi
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8708$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8710$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8711if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8712 $as_echo_n "(cached) " >&6
8713else
8714 lt_cv_ld_exported_symbols_list=no
8715 save_LDFLAGS=$LDFLAGS
8716 echo "_main" > conftest.sym
8717 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8718 if test x$gcc_no_link = xyes; then
8719 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8720fi
8721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 8722/* end confdefs.h. */
15e92535 8723
1cf3d07d
SE
8724int
8725main ()
8726{
21be0a5a
JB
8727
8728 ;
5213506e 8729 return 0;
1cf3d07d 8730}
15e92535 8731_ACEOF
21be0a5a
JB
8732if ac_fn_c_try_link "$LINENO"; then :
8733 lt_cv_ld_exported_symbols_list=yes
5213506e 8734else
21be0a5a 8735 lt_cv_ld_exported_symbols_list=no
1cf3d07d 8736fi
21be0a5a
JB
8737rm -f core conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8739 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
8740
8741fi
21be0a5a
JB
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8743$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8745$as_echo_n "checking for -force_load linker flag... " >&6; }
8746if test "${lt_cv_ld_force_load+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748else
8749 lt_cv_ld_force_load=no
8750 cat > conftest.c << _LT_EOF
8751int forced_loaded() { return 2;}
8752_LT_EOF
8753 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8754 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8755 echo "$AR cru libconftest.a conftest.o" >&5
8756 $AR cru libconftest.a conftest.o 2>&5
8757 cat > conftest.c << _LT_EOF
8758int main() { return 0;}
8759_LT_EOF
8760 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8761 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8762 _lt_result=$?
8763 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8764 lt_cv_ld_force_load=yes
8765 else
8766 cat conftest.err >&5
8767 fi
8768 rm -f conftest.err libconftest.a conftest conftest.c
8769 rm -rf conftest.dSYM
1cf3d07d
SE
8770
8771fi
21be0a5a
JB
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8773$as_echo "$lt_cv_ld_force_load" >&6; }
8774 case $host_os in
8775 rhapsody* | darwin1.[012])
8776 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8777 darwin1.*)
8778 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8779 darwin*) # darwin 5.x on
8780 # if running on 10.5 or later, the deployment target defaults
8781 # to the OS version, if on x86, and 10.4, the deployment
8782 # target defaults to 10.4. Don't you love it?
8783 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8784 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8785 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8786 10.[012]*)
8787 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8788 10.*)
8789 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8790 esac
8791 ;;
8792 esac
8793 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8794 _lt_dar_single_mod='$single_module'
8795 fi
8796 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8797 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8798 else
8799 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8800 fi
8801 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8802 _lt_dsymutil='~$DSYMUTIL $lib || :'
8803 else
8804 _lt_dsymutil=
8805 fi
8806 ;;
8807 esac
1cf3d07d 8808
1cf3d07d 8809for ac_header in dlfcn.h
5213506e
RW
8810do :
8811 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8812"
8813if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 8814 cat >>confdefs.h <<_ACEOF
5213506e 8815#define HAVE_DLFCN_H 1
9cdc381b 8816_ACEOF
9cdc381b 8817
1cf3d07d
SE
8818fi
8819
8820done
8821
8822
8823
43e02a8a
RW
8824
8825
d58dead8
PG
8826# Set options
8827
8828
8829
8830
8831 enable_win32_dll=no
8832
8833
5213506e
RW
8834 # Check whether --enable-shared was given.
8835if test "${enable_shared+set}" = set; then :
8836 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
8837 case $enableval in
8838 yes) enable_shared=yes ;;
8839 no) enable_shared=no ;;
8840 *)
8841 enable_shared=no
8842 # Look at the argument we got. We use all the common list separators.
8843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8844 for pkg in $enableval; do
8845 IFS="$lt_save_ifs"
8846 if test "X$pkg" = "X$p"; then
8847 enable_shared=yes
8848 fi
8849 done
8850 IFS="$lt_save_ifs"
8851 ;;
8852 esac
8853else
8854 enable_shared=yes
5213506e
RW
8855fi
8856
d58dead8
PG
8857
8858
8859
8860
8861
8862
8863
8864
5213506e
RW
8865 # Check whether --enable-static was given.
8866if test "${enable_static+set}" = set; then :
8867 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
8868 case $enableval in
8869 yes) enable_static=yes ;;
8870 no) enable_static=no ;;
8871 *)
8872 enable_static=no
8873 # Look at the argument we got. We use all the common list separators.
8874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8875 for pkg in $enableval; do
8876 IFS="$lt_save_ifs"
8877 if test "X$pkg" = "X$p"; then
8878 enable_static=yes
8879 fi
8880 done
8881 IFS="$lt_save_ifs"
8882 ;;
8883 esac
8884else
8885 enable_static=yes
5213506e
RW
8886fi
8887
d58dead8
PG
8888
8889
8890
8891
8892
8893
8894
8895
8896
5213506e
RW
8897# Check whether --with-pic was given.
8898if test "${with_pic+set}" = set; then :
8899 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
8900else
8901 pic_mode=default
5213506e
RW
8902fi
8903
d58dead8
PG
8904
8905test -z "$pic_mode" && pic_mode=default
8906
8907
8908
8909
8910
8911
8912
5213506e
RW
8913 # Check whether --enable-fast-install was given.
8914if test "${enable_fast_install+set}" = set; then :
8915 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
8916 case $enableval in
8917 yes) enable_fast_install=yes ;;
8918 no) enable_fast_install=no ;;
8919 *)
8920 enable_fast_install=no
8921 # Look at the argument we got. We use all the common list separators.
8922 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8923 for pkg in $enableval; do
8924 IFS="$lt_save_ifs"
8925 if test "X$pkg" = "X$p"; then
8926 enable_fast_install=yes
8927 fi
8928 done
8929 IFS="$lt_save_ifs"
8930 ;;
8931 esac
8932else
8933 enable_fast_install=yes
5213506e
RW
8934fi
8935
d58dead8
PG
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
1cf3d07d
SE
8946# This can be used to rebuild libtool when needed
8947LIBTOOL_DEPS="$ltmain"
8948
8949# Always use our own libtool.
8950LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
43e02a8a 8974
1cf3d07d
SE
8975
8976
8977test -z "$LN_S" && LN_S="ln -s"
8978
8979
8980
8981
8982
9cdc381b 8983
1cf3d07d
SE
8984
8985
8986
8987
8988
8989
8990
8991
8992if test -n "${ZSH_VERSION+set}" ; then
8993 setopt NO_GLOB_SUBST
9cdc381b 8994fi
9cdc381b 8995
5213506e
RW
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8997$as_echo_n "checking for objdir... " >&6; }
8998if test "${lt_cv_objdir+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9cdc381b 9000else
1cf3d07d
SE
9001 rm -f .libs 2>/dev/null
9002mkdir .libs 2>/dev/null
9003if test -d .libs; then
9004 lt_cv_objdir=.libs
9005else
9006 # MS-DOS does not allow filenames that begin with a dot.
9007 lt_cv_objdir=_libs
9cdc381b 9008fi
1cf3d07d 9009rmdir .libs 2>/dev/null
9cdc381b 9010fi
5213506e
RW
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9012$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
9013objdir=$lt_cv_objdir
9014
9015
9016
9017
9cdc381b
BD
9018
9019cat >>confdefs.h <<_ACEOF
1cf3d07d 9020#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
9021_ACEOF
9022
1cf3d07d
SE
9023
9024
9025
1cf3d07d
SE
9026case $host_os in
9027aix3*)
9028 # AIX sometimes has problems with the GCC collect2 program. For some
9029 # reason, if we set the COLLECT_NAMES environment variable, the problems
9030 # vanish in a puff of smoke.
9031 if test "X${COLLECT_NAMES+set}" != Xset; then
9032 COLLECT_NAMES=
9033 export COLLECT_NAMES
9034 fi
9035 ;;
9036esac
9037
1cf3d07d
SE
9038# Global variables:
9039ofile=libtool
9040can_build_shared=yes
9041
9042# All known linkers require a `.a' archive for static linking (except MSVC,
9043# which needs '.lib').
9044libext=a
9045
9046with_gnu_ld="$lt_cv_prog_gnu_ld"
9047
9048old_CC="$CC"
9049old_CFLAGS="$CFLAGS"
9050
9051# Set sane defaults for various variables
9052test -z "$CC" && CC=cc
9053test -z "$LTCC" && LTCC=$CC
9054test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9055test -z "$LD" && LD=ld
9056test -z "$ac_objext" && ac_objext=o
9057
9058for cc_temp in $compiler""; do
9059 case $cc_temp in
9060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9062 \-*) ;;
9063 *) break;;
9064 esac
9065done
43e02a8a 9066cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
9067
9068
9069# Only perform the check for file, if the check method requires it
9070test -z "$MAGIC_CMD" && MAGIC_CMD=file
9071case $deplibs_check_method in
9072file_magic*)
9073 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9075$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9076if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9077 $as_echo_n "(cached) " >&6
9cdc381b 9078else
1cf3d07d
SE
9079 case $MAGIC_CMD in
9080[\\/*] | ?:[\\/]*)
9081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9082 ;;
9083*)
9084 lt_save_MAGIC_CMD="$MAGIC_CMD"
9085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9087 for ac_dir in $ac_dummy; do
9088 IFS="$lt_save_ifs"
9089 test -z "$ac_dir" && ac_dir=.
9090 if test -f $ac_dir/${ac_tool_prefix}file; then
9091 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9092 if test -n "$file_magic_test_file"; then
9093 case $deplibs_check_method in
9094 "file_magic "*)
9095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9098 $EGREP "$file_magic_regex" > /dev/null; then
9099 :
9100 else
9101 cat <<_LT_EOF 1>&2
9cdc381b 9102
1cf3d07d
SE
9103*** Warning: the command libtool uses to detect shared libraries,
9104*** $file_magic_cmd, produces output that libtool cannot recognize.
9105*** The result is that libtool may fail to recognize shared libraries
9106*** as such. This will affect the creation of libtool libraries that
9107*** depend on shared libraries, but programs linked with such libtool
9108*** libraries will work regardless of this problem. Nevertheless, you
9109*** may want to report the problem to your system manager and/or to
9110*** bug-libtool@gnu.org
9111
9112_LT_EOF
9113 fi ;;
9114 esac
9115 fi
9116 break
9117 fi
9118 done
9119 IFS="$lt_save_ifs"
9120 MAGIC_CMD="$lt_save_MAGIC_CMD"
9121 ;;
9122esac
9123fi
9124
9125MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9126if test -n "$MAGIC_CMD"; then
5213506e
RW
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9128$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9129else
5213506e
RW
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131$as_echo "no" >&6; }
1cf3d07d
SE
9132fi
9133
9134
9135
9136
9137
9138if test -z "$lt_cv_path_MAGIC_CMD"; then
9139 if test -n "$ac_tool_prefix"; then
5213506e
RW
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9141$as_echo_n "checking for file... " >&6; }
9142if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9143 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9144else
9145 case $MAGIC_CMD in
9146[\\/*] | ?:[\\/]*)
9147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9148 ;;
9149*)
9150 lt_save_MAGIC_CMD="$MAGIC_CMD"
9151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9153 for ac_dir in $ac_dummy; do
9154 IFS="$lt_save_ifs"
9155 test -z "$ac_dir" && ac_dir=.
9156 if test -f $ac_dir/file; then
9157 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9158 if test -n "$file_magic_test_file"; then
9159 case $deplibs_check_method in
9160 "file_magic "*)
9161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9164 $EGREP "$file_magic_regex" > /dev/null; then
9165 :
9166 else
9167 cat <<_LT_EOF 1>&2
9168
9169*** Warning: the command libtool uses to detect shared libraries,
9170*** $file_magic_cmd, produces output that libtool cannot recognize.
9171*** The result is that libtool may fail to recognize shared libraries
9172*** as such. This will affect the creation of libtool libraries that
9173*** depend on shared libraries, but programs linked with such libtool
9174*** libraries will work regardless of this problem. Nevertheless, you
9175*** may want to report the problem to your system manager and/or to
9176*** bug-libtool@gnu.org
9177
9178_LT_EOF
9179 fi ;;
9180 esac
9181 fi
9182 break
9183 fi
9184 done
9185 IFS="$lt_save_ifs"
9186 MAGIC_CMD="$lt_save_MAGIC_CMD"
9187 ;;
9188esac
9189fi
9190
9191MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9192if test -n "$MAGIC_CMD"; then
5213506e
RW
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9194$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 9195else
5213506e
RW
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197$as_echo "no" >&6; }
1cf3d07d
SE
9198fi
9199
9200
9201 else
9202 MAGIC_CMD=:
9203 fi
9204fi
9205
9206 fi
9207 ;;
9208esac
9209
9210# Use C for the default configuration in the libtool script
9211
9212lt_save_CC="$CC"
9213ac_ext=c
9214ac_cpp='$CPP $CPPFLAGS'
9215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9217ac_compiler_gnu=$ac_cv_c_compiler_gnu
9218
9219
9220# Source file extension for C test sources.
9221ac_ext=c
9222
9223# Object file extension for compiled C test sources.
9224objext=o
9225objext=$objext
9226
9227# Code to be used in simple compile tests
9228lt_simple_compile_test_code="int some_variable = 0;"
9229
9230# Code to be used in simple link tests
9231lt_simple_link_test_code='int main(){return(0);}'
9232
9233
9234
9235
9236
9237
9238
9239# If no C compiler was specified, use CC.
9240LTCC=${LTCC-"$CC"}
9241
9242# If no C compiler flags were specified, use CFLAGS.
9243LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9244
9245# Allow CC to be a program name with arguments.
9246compiler=$CC
9247
9248# Save the default compiler, since it gets overwritten when the other
9249# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9250compiler_DEFAULT=$CC
9251
9252# save warnings/boilerplate of simple test code
9253ac_outfile=conftest.$ac_objext
9254echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9255eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9256_lt_compiler_boilerplate=`cat conftest.err`
9257$RM conftest*
9258
9259ac_outfile=conftest.$ac_objext
9260echo "$lt_simple_link_test_code" >conftest.$ac_ext
9261eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9262_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9263$RM -r conftest*
1cf3d07d
SE
9264
9265
9266## CAVEAT EMPTOR:
9267## There is no encapsulation within the following macros, do not change
9268## the running order or otherwise move them around unless you know exactly
9269## what you are doing...
9270if test -n "$compiler"; then
9271
9272lt_prog_compiler_no_builtin_flag=
9273
9274if test "$GCC" = yes; then
43e02a8a
RW
9275 case $cc_basename in
9276 nvcc*)
9277 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9278 *)
9279 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9280 esac
1cf3d07d 9281
5213506e
RW
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9283$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9284if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9286else
9287 lt_cv_prog_compiler_rtti_exceptions=no
9288 ac_outfile=conftest.$ac_objext
9289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9290 lt_compiler_flag="-fno-rtti -fno-exceptions"
9291 # Insert the option either (1) after the last *FLAGS variable, or
9292 # (2) before a word containing "conftest.", or (3) at the end.
9293 # Note that $ac_compile itself does not contain backslashes and begins
9294 # with a dollar sign (not a hyphen), so the echo should work correctly.
9295 # The option is referenced via a variable to avoid confusing sed.
9296 lt_compile=`echo "$ac_compile" | $SED \
9297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9299 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9301 (eval "$lt_compile" 2>conftest.err)
9302 ac_status=$?
9303 cat conftest.err >&5
43e02a8a 9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9305 if (exit $ac_status) && test -s "$ac_outfile"; then
9306 # The compiler can only warn and ignore the option if not recognized
9307 # So say no if there are warnings other than the usual output.
43e02a8a 9308 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9311 lt_cv_prog_compiler_rtti_exceptions=yes
9312 fi
9313 fi
9314 $RM conftest*
9315
9316fi
5213506e
RW
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9318$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9319
9320if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9321 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9322else
9323 :
9324fi
9325
9326fi
9327
9328
9329
9330
9331
9332
9333 lt_prog_compiler_wl=
9334lt_prog_compiler_pic=
9335lt_prog_compiler_static=
9336
5213506e
RW
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9338$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9339
9340 if test "$GCC" = yes; then
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_static='-static'
9343
9344 case $host_os in
9345 aix*)
9346 # All AIX code is PIC.
9347 if test "$host_cpu" = ia64; then
9348 # AIX 5 now supports IA64 processor
9349 lt_prog_compiler_static='-Bstatic'
9350 fi
9351 ;;
9352
9353 amigaos*)
d58dead8
PG
9354 case $host_cpu in
9355 powerpc)
9356 # see comment about AmigaOS4 .so support
9357 lt_prog_compiler_pic='-fPIC'
9358 ;;
9359 m68k)
9360 # FIXME: we need at least 68020 code to build shared libraries, but
9361 # adding the `-m68020' flag to GCC prevents building anything better,
9362 # like `-m68040'.
9363 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9364 ;;
9365 esac
1cf3d07d
SE
9366 ;;
9367
9368 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9369 # PIC is the default for these OSes.
9370 ;;
9371
d58dead8 9372 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9373 # This hack is so that the source file can tell whether it is being
9374 # built for inclusion in a dll (and should export symbols for example).
9375 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9376 # (--disable-auto-import) libraries
9377 lt_prog_compiler_pic='-DDLL_EXPORT'
9378 ;;
9379
9380 darwin* | rhapsody*)
9381 # PIC is the default on this platform
9382 # Common symbols not allowed in MH_DYLIB files
9383 lt_prog_compiler_pic='-fno-common'
9384 ;;
9385
43e02a8a
RW
9386 haiku*)
9387 # PIC is the default for Haiku.
9388 # The "-static" flag exists, but is broken.
9389 lt_prog_compiler_static=
9390 ;;
9391
1cf3d07d 9392 hpux*)
d58dead8
PG
9393 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9394 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9395 # sets the default TLS model and affects inlining.
1cf3d07d 9396 case $host_cpu in
d58dead8 9397 hppa*64*)
1cf3d07d
SE
9398 # +Z the default
9399 ;;
9400 *)
9401 lt_prog_compiler_pic='-fPIC'
9402 ;;
9403 esac
9404 ;;
9405
9406 interix[3-9]*)
9407 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9408 # Instead, we relocate shared libraries at runtime.
9409 ;;
9410
9411 msdosdjgpp*)
9412 # Just because we use GCC doesn't mean we suddenly get shared libraries
9413 # on systems that don't support them.
9414 lt_prog_compiler_can_build_shared=no
9415 enable_shared=no
9416 ;;
9417
9418 *nto* | *qnx*)
9419 # QNX uses GNU C++, but need to define -shared option too, otherwise
9420 # it will coredump.
9421 lt_prog_compiler_pic='-fPIC -shared'
9422 ;;
9423
9424 sysv4*MP*)
9425 if test -d /usr/nec; then
9426 lt_prog_compiler_pic=-Kconform_pic
9427 fi
9428 ;;
9429
9430 *)
9431 lt_prog_compiler_pic='-fPIC'
9432 ;;
9433 esac
43e02a8a
RW
9434
9435 case $cc_basename in
9436 nvcc*) # Cuda Compiler Driver 2.2
9437 lt_prog_compiler_wl='-Xlinker '
9438 lt_prog_compiler_pic='-Xcompiler -fPIC'
9439 ;;
9440 esac
1cf3d07d
SE
9441 else
9442 # PORTME Check for flag to pass linker flags through the system compiler.
9443 case $host_os in
9444 aix*)
9445 lt_prog_compiler_wl='-Wl,'
9446 if test "$host_cpu" = ia64; then
9447 # AIX 5 now supports IA64 processor
9448 lt_prog_compiler_static='-Bstatic'
9449 else
9450 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9451 fi
9452 ;;
1cf3d07d 9453
d58dead8 9454 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9455 # This hack is so that the source file can tell whether it is being
9456 # built for inclusion in a dll (and should export symbols for example).
9457 lt_prog_compiler_pic='-DDLL_EXPORT'
9458 ;;
9459
9460 hpux9* | hpux10* | hpux11*)
9461 lt_prog_compiler_wl='-Wl,'
9462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9463 # not for PA HP-UX.
9464 case $host_cpu in
9465 hppa*64*|ia64*)
9466 # +Z the default
9467 ;;
9468 *)
9469 lt_prog_compiler_pic='+Z'
9470 ;;
9471 esac
9472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9473 lt_prog_compiler_static='${wl}-a ${wl}archive'
9474 ;;
9475
9476 irix5* | irix6* | nonstopux*)
9477 lt_prog_compiler_wl='-Wl,'
9478 # PIC (with -KPIC) is the default.
9479 lt_prog_compiler_static='-non_shared'
9480 ;;
9481
7a9d3fe8 9482 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9483 case $cc_basename in
d58dead8
PG
9484 # old Intel for x86_64 which still supported -KPIC.
9485 ecc*)
1cf3d07d
SE
9486 lt_prog_compiler_wl='-Wl,'
9487 lt_prog_compiler_pic='-KPIC'
9488 lt_prog_compiler_static='-static'
9489 ;;
d58dead8
PG
9490 # icc used to be incompatible with GCC.
9491 # ICC 10 doesn't accept -KPIC any more.
9492 icc* | ifort*)
9493 lt_prog_compiler_wl='-Wl,'
9494 lt_prog_compiler_pic='-fPIC'
9495 lt_prog_compiler_static='-static'
9496 ;;
9497 # Lahey Fortran 8.1.
9498 lf95*)
9499 lt_prog_compiler_wl='-Wl,'
9500 lt_prog_compiler_pic='--shared'
9501 lt_prog_compiler_static='--static'
9502 ;;
43e02a8a 9503 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9504 # Portland Group compilers (*not* the Pentium gcc compiler,
9505 # which looks to be a dead project)
9506 lt_prog_compiler_wl='-Wl,'
9507 lt_prog_compiler_pic='-fpic'
9508 lt_prog_compiler_static='-Bstatic'
9509 ;;
9510 ccc*)
9511 lt_prog_compiler_wl='-Wl,'
9512 # All Alpha code is PIC.
9513 lt_prog_compiler_static='-non_shared'
9514 ;;
43e02a8a
RW
9515 xl* | bgxl* | bgf* | mpixl*)
9516 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9517 lt_prog_compiler_wl='-Wl,'
9518 lt_prog_compiler_pic='-qpic'
9519 lt_prog_compiler_static='-qstaticlink'
9520 ;;
1cf3d07d
SE
9521 *)
9522 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9523 *Sun\ F* | *Sun*Fortran*)
9524 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-Bstatic'
43e02a8a 9527 lt_prog_compiler_wl=''
1cf3d07d 9528 ;;
43e02a8a
RW
9529 *Sun\ C*)
9530 # Sun C 5.9
1cf3d07d
SE
9531 lt_prog_compiler_pic='-KPIC'
9532 lt_prog_compiler_static='-Bstatic'
43e02a8a 9533 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9534 ;;
9535 esac
9536 ;;
9537 esac
9538 ;;
9539
9540 newsos6)
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-Bstatic'
9543 ;;
9544
9545 *nto* | *qnx*)
9546 # QNX uses GNU C++, but need to define -shared option too, otherwise
9547 # it will coredump.
9548 lt_prog_compiler_pic='-fPIC -shared'
9549 ;;
9550
9551 osf3* | osf4* | osf5*)
9552 lt_prog_compiler_wl='-Wl,'
9553 # All OSF/1 code is PIC.
9554 lt_prog_compiler_static='-non_shared'
9555 ;;
9556
9557 rdos*)
9558 lt_prog_compiler_static='-non_shared'
9559 ;;
9560
9561 solaris*)
9562 lt_prog_compiler_pic='-KPIC'
9563 lt_prog_compiler_static='-Bstatic'
9564 case $cc_basename in
9565 f77* | f90* | f95*)
9566 lt_prog_compiler_wl='-Qoption ld ';;
9567 *)
9568 lt_prog_compiler_wl='-Wl,';;
9569 esac
9570 ;;
9571
9572 sunos4*)
9573 lt_prog_compiler_wl='-Qoption ld '
9574 lt_prog_compiler_pic='-PIC'
9575 lt_prog_compiler_static='-Bstatic'
9576 ;;
9577
9578 sysv4 | sysv4.2uw2* | sysv4.3*)
9579 lt_prog_compiler_wl='-Wl,'
9580 lt_prog_compiler_pic='-KPIC'
9581 lt_prog_compiler_static='-Bstatic'
9582 ;;
9583
9584 sysv4*MP*)
9585 if test -d /usr/nec ;then
9586 lt_prog_compiler_pic='-Kconform_pic'
9587 lt_prog_compiler_static='-Bstatic'
9588 fi
9589 ;;
9590
9591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_pic='-KPIC'
9594 lt_prog_compiler_static='-Bstatic'
9595 ;;
9596
9597 unicos*)
9598 lt_prog_compiler_wl='-Wl,'
9599 lt_prog_compiler_can_build_shared=no
9600 ;;
9601
9602 uts4*)
9603 lt_prog_compiler_pic='-pic'
9604 lt_prog_compiler_static='-Bstatic'
9605 ;;
9606
9607 *)
9608 lt_prog_compiler_can_build_shared=no
9609 ;;
9610 esac
9611 fi
9612
9613case $host_os in
9614 # For platforms which do not support PIC, -DPIC is meaningless:
9615 *djgpp*)
9616 lt_prog_compiler_pic=
9617 ;;
9618 *)
9619 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9620 ;;
9621esac
5213506e
RW
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9623$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
9624
9625
9626
9627
9628
9629
9630#
9631# Check to make sure the PIC flag actually works.
9632#
9633if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9635$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9636if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9637 $as_echo_n "(cached) " >&6
1cf3d07d 9638else
d58dead8 9639 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
9640 ac_outfile=conftest.$ac_objext
9641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9642 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9643 # Insert the option either (1) after the last *FLAGS variable, or
9644 # (2) before a word containing "conftest.", or (3) at the end.
9645 # Note that $ac_compile itself does not contain backslashes and begins
9646 # with a dollar sign (not a hyphen), so the echo should work correctly.
9647 # The option is referenced via a variable to avoid confusing sed.
9648 lt_compile=`echo "$ac_compile" | $SED \
9649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9651 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9653 (eval "$lt_compile" 2>conftest.err)
9654 ac_status=$?
9655 cat conftest.err >&5
43e02a8a 9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9657 if (exit $ac_status) && test -s "$ac_outfile"; then
9658 # The compiler can only warn and ignore the option if not recognized
9659 # So say no if there are warnings other than the usual output.
43e02a8a 9660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9663 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
9664 fi
9665 fi
9666 $RM conftest*
9667
9668fi
5213506e
RW
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9670$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 9671
d58dead8 9672if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
9673 case $lt_prog_compiler_pic in
9674 "" | " "*) ;;
9675 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9676 esac
9677else
9678 lt_prog_compiler_pic=
9679 lt_prog_compiler_can_build_shared=no
9680fi
9681
9682fi
9683
9684
9685
9686
9687
9688
9689#
9690# Check to make sure the static flag actually works.
9691#
9692wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9694$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9695if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9696 $as_echo_n "(cached) " >&6
1cf3d07d 9697else
d58dead8 9698 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
9699 save_LDFLAGS="$LDFLAGS"
9700 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9701 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9703 # The linker can only warn and ignore the option if not recognized
9704 # So say no if there are warnings
9705 if test -s conftest.err; then
9706 # Append any errors to the config.log.
9707 cat conftest.err 1>&5
43e02a8a 9708 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
9709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9710 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9711 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9712 fi
9713 else
d58dead8 9714 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9715 fi
9716 fi
d58dead8 9717 $RM -r conftest*
1cf3d07d
SE
9718 LDFLAGS="$save_LDFLAGS"
9719
9720fi
5213506e
RW
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9722$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 9723
d58dead8 9724if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
9725 :
9726else
9727 lt_prog_compiler_static=
9728fi
9729
9730
9731
9732
9733
9734
9735
5213506e
RW
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9737$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9738if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9740else
9741 lt_cv_prog_compiler_c_o=no
9742 $RM -r conftest 2>/dev/null
9743 mkdir conftest
9744 cd conftest
9745 mkdir out
9746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9747
9748 lt_compiler_flag="-o out/conftest2.$ac_objext"
9749 # Insert the option either (1) after the last *FLAGS variable, or
9750 # (2) before a word containing "conftest.", or (3) at the end.
9751 # Note that $ac_compile itself does not contain backslashes and begins
9752 # with a dollar sign (not a hyphen), so the echo should work correctly.
9753 lt_compile=`echo "$ac_compile" | $SED \
9754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9756 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9758 (eval "$lt_compile" 2>out/conftest.err)
9759 ac_status=$?
9760 cat out/conftest.err >&5
43e02a8a 9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9762 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9763 then
9764 # The compiler can only warn and ignore the option if not recognized
9765 # So say no if there are warnings
43e02a8a 9766 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9769 lt_cv_prog_compiler_c_o=yes
9770 fi
9771 fi
9772 chmod u+w . 2>&5
9773 $RM conftest*
9774 # SGI C++ compiler will create directory out/ii_files/ for
9775 # template instantiation
9776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9777 $RM out/* && rmdir out
9778 cd ..
9779 $RM -r conftest
9780 $RM conftest*
9781
9782fi
5213506e
RW
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9784$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9785
9786
9787
9788
9789
9790
5213506e
RW
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9792$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9793if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9795else
9796 lt_cv_prog_compiler_c_o=no
9797 $RM -r conftest 2>/dev/null
9798 mkdir conftest
9799 cd conftest
9800 mkdir out
9801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9802
9803 lt_compiler_flag="-o out/conftest2.$ac_objext"
9804 # Insert the option either (1) after the last *FLAGS variable, or
9805 # (2) before a word containing "conftest.", or (3) at the end.
9806 # Note that $ac_compile itself does not contain backslashes and begins
9807 # with a dollar sign (not a hyphen), so the echo should work correctly.
9808 lt_compile=`echo "$ac_compile" | $SED \
9809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9811 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9813 (eval "$lt_compile" 2>out/conftest.err)
9814 ac_status=$?
9815 cat out/conftest.err >&5
43e02a8a 9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9818 then
9819 # The compiler can only warn and ignore the option if not recognized
9820 # So say no if there are warnings
43e02a8a 9821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9824 lt_cv_prog_compiler_c_o=yes
9825 fi
9826 fi
9827 chmod u+w . 2>&5
9828 $RM conftest*
9829 # SGI C++ compiler will create directory out/ii_files/ for
9830 # template instantiation
9831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9832 $RM out/* && rmdir out
9833 cd ..
9834 $RM -r conftest
9835 $RM conftest*
9836
9837fi
5213506e
RW
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9839$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9840
9841
9842
9843
9844hard_links="nottested"
9845if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9846 # do not overwrite the value of need_locks provided by the user
5213506e
RW
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9848$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
9849 hard_links=yes
9850 $RM conftest*
9851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9852 touch conftest.a
9853 ln conftest.a conftest.b 2>&5 || hard_links=no
9854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9856$as_echo "$hard_links" >&6; }
1cf3d07d 9857 if test "$hard_links" = no; then
5213506e
RW
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9859$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
9860 need_locks=warn
9861 fi
9862else
9863 need_locks=no
9864fi
9865
9866
9867
9868
9869
9870
5213506e
RW
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9872$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
9873
9874 runpath_var=
9875 allow_undefined_flag=
9876 always_export_symbols=no
9877 archive_cmds=
9878 archive_expsym_cmds=
9879 compiler_needs_object=no
9880 enable_shared_with_static_runtimes=no
9881 export_dynamic_flag_spec=
9882 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9883 hardcode_automatic=no
9884 hardcode_direct=no
9885 hardcode_direct_absolute=no
9886 hardcode_libdir_flag_spec=
9887 hardcode_libdir_flag_spec_ld=
9888 hardcode_libdir_separator=
9889 hardcode_minus_L=no
9890 hardcode_shlibpath_var=unsupported
9891 inherit_rpath=no
9892 link_all_deplibs=unknown
9893 module_cmds=
9894 module_expsym_cmds=
9895 old_archive_from_new_cmds=
9896 old_archive_from_expsyms_cmds=
9897 thread_safe_flag_spec=
9898 whole_archive_flag_spec=
9899 # include_expsyms should be a list of space-separated symbols to be *always*
9900 # included in the symbol list
9901 include_expsyms=
9902 # exclude_expsyms can be an extended regexp of symbols to exclude
9903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9905 # as well as any symbol that contains `d'.
d58dead8 9906 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
9907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9908 # platforms (ab)use it in PIC code, but their linkers get confused if
9909 # the symbol is explicitly referenced. Since portable code cannot
9910 # rely on this symbol name, it's probably fine to never include it in
9911 # preloaded symbol tables.
d58dead8 9912 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
9913 extract_expsyms_cmds=
9914
9915 case $host_os in
d58dead8 9916 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9917 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9918 # When not using gcc, we currently assume that we are using
9919 # Microsoft Visual C++.
9920 if test "$GCC" != yes; then
9921 with_gnu_ld=no
9922 fi
9923 ;;
9924 interix*)
9925 # we just hope/assume this is gcc and not c89 (= MSVC++)
9926 with_gnu_ld=yes
9927 ;;
9928 openbsd*)
9929 with_gnu_ld=no
9930 ;;
9931 esac
9932
9933 ld_shlibs=yes
43e02a8a
RW
9934
9935 # On some targets, GNU ld is compatible enough with the native linker
9936 # that we're better off using the native interface for both.
9937 lt_use_gnu_ld_interface=no
1cf3d07d 9938 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
9939 case $host_os in
9940 aix*)
9941 # The AIX port of GNU ld has always aspired to compatibility
9942 # with the native linker. However, as the warning in the GNU ld
9943 # block says, versions before 2.19.5* couldn't really create working
9944 # shared libraries, regardless of the interface used.
9945 case `$LD -v 2>&1` in
9946 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9947 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9948 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9949 *)
9950 lt_use_gnu_ld_interface=yes
9951 ;;
9952 esac
9953 ;;
9954 *)
9955 lt_use_gnu_ld_interface=yes
9956 ;;
9957 esac
9958 fi
9959
9960 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
9961 # If archive_cmds runs LD, not CC, wlarc should be empty
9962 wlarc='${wl}'
9963
9964 # Set some defaults for GNU ld with shared library support. These
9965 # are reset later if shared libraries are not supported. Putting them
9966 # here allows them to be overridden if necessary.
9967 runpath_var=LD_RUN_PATH
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 export_dynamic_flag_spec='${wl}--export-dynamic'
9970 # ancient GNU ld didn't support --whole-archive et. al.
9971 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9972 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9973 else
9974 whole_archive_flag_spec=
9975 fi
9976 supports_anon_versioning=no
9977 case `$LD -v 2>&1` in
43e02a8a 9978 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
9979 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9982 *\ 2.11.*) ;; # other 2.11 versions
9983 *) supports_anon_versioning=yes ;;
9984 esac
9985
9986 # See if GNU ld supports shared libraries.
9987 case $host_os in
4f6bebc3 9988 aix[3-9]*)
1cf3d07d
SE
9989 # On AIX/PPC, the GNU linker is very broken
9990 if test "$host_cpu" != ia64; then
9991 ld_shlibs=no
9992 cat <<_LT_EOF 1>&2
9993
43e02a8a 9994*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
9995*** to be unable to reliably create shared libraries on AIX.
9996*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
9997*** really care for shared libraries, you may want to install binutils
9998*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9999*** You will then need to restart the configuration process.
1cf3d07d
SE
10000
10001_LT_EOF
10002 fi
10003 ;;
10004
10005 amigaos*)
d58dead8
PG
10006 case $host_cpu in
10007 powerpc)
10008 # see comment about AmigaOS4 .so support
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 archive_expsym_cmds=''
10011 ;;
10012 m68k)
10013 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)'
10014 hardcode_libdir_flag_spec='-L$libdir'
10015 hardcode_minus_L=yes
10016 ;;
10017 esac
1cf3d07d
SE
10018 ;;
10019
10020 beos*)
10021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10022 allow_undefined_flag=unsupported
10023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10024 # support --undefined. This deserves some investigation. FIXME
10025 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10026 else
10027 ld_shlibs=no
10028 fi
10029 ;;
10030
d58dead8 10031 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10032 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10033 # as there is no search path for DLLs.
10034 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 10035 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
10036 allow_undefined_flag=unsupported
10037 always_export_symbols=no
10038 enable_shared_with_static_runtimes=yes
10039 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10040
10041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10043 # If the export-symbols file already is a .def file (1st line
10044 # is EXPORTS), use it as is; otherwise, prepend...
10045 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10046 cp $export_symbols $output_objdir/$soname.def;
10047 else
10048 echo EXPORTS > $output_objdir/$soname.def;
10049 cat $export_symbols >> $output_objdir/$soname.def;
10050 fi~
10051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10052 else
10053 ld_shlibs=no
10054 fi
10055 ;;
10056
43e02a8a
RW
10057 haiku*)
10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10059 link_all_deplibs=yes
10060 ;;
10061
1cf3d07d
SE
10062 interix[3-9]*)
10063 hardcode_direct=no
10064 hardcode_shlibpath_var=no
10065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10066 export_dynamic_flag_spec='${wl}-E'
10067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10068 # Instead, shared libraries are loaded at an image base (0x10000000 by
10069 # default) and relocated if they conflict, which is a slow very memory
10070 # consuming and fragmenting process. To avoid this, we pick a random,
10071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10074 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'
10075 ;;
10076
7a9d3fe8 10077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10078 tmp_diet=no
10079 if test "$host_os" = linux-dietlibc; then
10080 case $cc_basename in
10081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10082 esac
10083 fi
10084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10085 && test "$tmp_diet" = no
10086 then
10087 tmp_addflag=
d58dead8 10088 tmp_sharedflag='-shared'
1cf3d07d
SE
10089 case $cc_basename,$host_cpu in
10090 pgcc*) # Portland Group C compiler
43e02a8a 10091 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
10092 tmp_addflag=' $pic_flag'
10093 ;;
43e02a8a
RW
10094 pgf77* | pgf90* | pgf95* | pgfortran*)
10095 # Portland Group f77 and f90 compilers
10096 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
10097 tmp_addflag=' $pic_flag -Mnomain' ;;
10098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10099 tmp_addflag=' -i_dynamic' ;;
10100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10101 tmp_addflag=' -i_dynamic -nofor_main' ;;
10102 ifc* | ifort*) # Intel Fortran compiler
10103 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
10104 lf95*) # Lahey Fortran 8.1
10105 whole_archive_flag_spec=
10106 tmp_sharedflag='--shared' ;;
43e02a8a 10107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
10108 tmp_sharedflag='-qmkshrobj'
10109 tmp_addflag= ;;
43e02a8a
RW
10110 nvcc*) # Cuda Compiler Driver 2.2
10111 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'
10112 compiler_needs_object=yes
10113 ;;
1cf3d07d
SE
10114 esac
10115 case `$CC -V 2>&1 | sed 5q` in
10116 *Sun\ C*) # Sun C 5.9
43e02a8a 10117 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
10118 compiler_needs_object=yes
10119 tmp_sharedflag='-G' ;;
10120 *Sun\ F*) # Sun Fortran 8.3
10121 tmp_sharedflag='-G' ;;
1cf3d07d
SE
10122 esac
10123 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124
10125 if test "x$supports_anon_versioning" = xyes; then
10126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10128 echo "local: *; };" >> $output_objdir/$libname.ver~
10129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10130 fi
d58dead8
PG
10131
10132 case $cc_basename in
43e02a8a 10133 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
10134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10135 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10136 hardcode_libdir_flag_spec=
10137 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10138 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10139 if test "x$supports_anon_versioning" = xyes; then
10140 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10142 echo "local: *; };" >> $output_objdir/$libname.ver~
10143 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10144 fi
10145 ;;
10146 esac
1cf3d07d
SE
10147 else
10148 ld_shlibs=no
10149 fi
10150 ;;
10151
10152 netbsd*)
10153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10154 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10155 wlarc=
10156 else
10157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10159 fi
10160 ;;
10161
10162 solaris*)
10163 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10164 ld_shlibs=no
10165 cat <<_LT_EOF 1>&2
10166
10167*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10168*** create shared libraries on Solaris systems. Therefore, libtool
10169*** is disabling shared libraries support. We urge you to upgrade GNU
10170*** binutils to release 2.9.1 or newer. Another option is to modify
10171*** your PATH or compiler configuration so that the native linker is
10172*** used, and then restart.
10173
10174_LT_EOF
10175 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10178 else
10179 ld_shlibs=no
10180 fi
10181 ;;
10182
10183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10184 case `$LD -v 2>&1` in
10185 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10186 ld_shlibs=no
10187 cat <<_LT_EOF 1>&2
10188
10189*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10190*** reliably create shared libraries on SCO systems. Therefore, libtool
10191*** is disabling shared libraries support. We urge you to upgrade GNU
10192*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10193*** your PATH or compiler configuration so that the native linker is
10194*** used, and then restart.
10195
10196_LT_EOF
10197 ;;
10198 *)
10199 # For security reasons, it is highly recommended that you always
10200 # use absolute paths for naming shared libraries, and exclude the
10201 # DT_RUNPATH tag from executables and libraries. But doing so
10202 # requires that you compile everything twice, which is a pain.
10203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207 else
10208 ld_shlibs=no
10209 fi
10210 ;;
10211 esac
10212 ;;
10213
10214 sunos4*)
10215 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10216 wlarc=
10217 hardcode_direct=yes
10218 hardcode_shlibpath_var=no
10219 ;;
10220
10221 *)
10222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10224 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10225 else
10226 ld_shlibs=no
10227 fi
10228 ;;
10229 esac
10230
10231 if test "$ld_shlibs" = no; then
10232 runpath_var=
10233 hardcode_libdir_flag_spec=
10234 export_dynamic_flag_spec=
10235 whole_archive_flag_spec=
10236 fi
10237 else
10238 # PORTME fill in a description of your system's linker (not GNU ld)
10239 case $host_os in
10240 aix3*)
10241 allow_undefined_flag=unsupported
10242 always_export_symbols=yes
10243 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'
10244 # Note: this linker hardcodes the directories in LIBPATH if there
10245 # are no directories specified by -L.
10246 hardcode_minus_L=yes
10247 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10248 # Neither direct hardcoding nor static linking is supported with a
10249 # broken collect2.
10250 hardcode_direct=unsupported
10251 fi
10252 ;;
10253
4f6bebc3 10254 aix[4-9]*)
1cf3d07d
SE
10255 if test "$host_cpu" = ia64; then
10256 # On IA64, the linker does run time linking by default, so we don't
10257 # have to do anything special.
10258 aix_use_runtimelinking=no
10259 exp_sym_flag='-Bexport'
10260 no_entry_flag=""
10261 else
10262 # If we're using GNU nm, then we don't want the "-C" option.
10263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10264 # Also, AIX nm treats weak defined symbols like other global
10265 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10266 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10267 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
10268 else
10269 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10270 fi
10271 aix_use_runtimelinking=no
10272
10273 # Test if we are trying to use run time linking or normal
10274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10275 # need to do runtime linking.
4f6bebc3 10276 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10277 for ld_flag in $LDFLAGS; do
10278 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10279 aix_use_runtimelinking=yes
10280 break
10281 fi
10282 done
10283 ;;
10284 esac
10285
10286 exp_sym_flag='-bexport'
10287 no_entry_flag='-bnoentry'
10288 fi
10289
10290 # When large executables or shared objects are built, AIX ld can
10291 # have problems creating the table of contents. If linking a library
10292 # or program results in "error TOC overflow" add -mminimal-toc to
10293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10295
10296 archive_cmds=''
10297 hardcode_direct=yes
10298 hardcode_direct_absolute=yes
10299 hardcode_libdir_separator=':'
10300 link_all_deplibs=yes
10301 file_list_spec='${wl}-f,'
10302
10303 if test "$GCC" = yes; then
10304 case $host_os in aix4.[012]|aix4.[012].*)
10305 # We only want to do this on AIX 4.2 and lower, the check
10306 # below for broken collect2 doesn't work under 4.3+
10307 collect2name=`${CC} -print-prog-name=collect2`
10308 if test -f "$collect2name" &&
10309 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10310 then
10311 # We have reworked collect2
10312 :
10313 else
10314 # We have old collect2
10315 hardcode_direct=unsupported
10316 # It fails to find uninstalled libraries when the uninstalled
10317 # path is not listed in the libpath. Setting hardcode_minus_L
10318 # to unsupported forces relinking
10319 hardcode_minus_L=yes
10320 hardcode_libdir_flag_spec='-L$libdir'
10321 hardcode_libdir_separator=
10322 fi
10323 ;;
10324 esac
10325 shared_flag='-shared'
10326 if test "$aix_use_runtimelinking" = yes; then
10327 shared_flag="$shared_flag "'${wl}-G'
10328 fi
10329 else
10330 # not using gcc
10331 if test "$host_cpu" = ia64; then
10332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10333 # chokes on -Wl,-G. The following line is correct:
10334 shared_flag='-G'
10335 else
10336 if test "$aix_use_runtimelinking" = yes; then
10337 shared_flag='${wl}-G'
10338 else
10339 shared_flag='${wl}-bM:SRE'
10340 fi
10341 fi
10342 fi
10343
d58dead8 10344 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10345 # It seems that -bexpall does not export symbols beginning with
10346 # underscore (_), so it is better to generate a list of symbols to export.
10347 always_export_symbols=yes
10348 if test "$aix_use_runtimelinking" = yes; then
10349 # Warning - without using the other runtime loading flags (-brtl),
10350 # -berok will link without error, but may produce a broken library.
10351 allow_undefined_flag='-berok'
10352 # Determine the default libpath from the value encoded in an
10353 # empty executable.
10354 if test x$gcc_no_link = xyes; then
5213506e 10355 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10356fi
5213506e 10357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10358/* end confdefs.h. */
10359
10360int
10361main ()
10362{
10363
10364 ;
10365 return 0;
10366}
10367_ACEOF
5213506e 10368if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10369
10370lt_aix_libpath_sed='
10371 /Import File Strings/,/^$/ {
10372 /^0/ {
10373 s/^0 *\(.*\)$/\1/
10374 p
10375 }
10376 }'
10377aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10378# Check for a 64-bit object if we didn't find anything.
10379if test -z "$aix_libpath"; then
10380 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10381fi
1cf3d07d 10382fi
5213506e
RW
10383rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10385if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10386
10387 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10388 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
10389 else
10390 if test "$host_cpu" = ia64; then
10391 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10392 allow_undefined_flag="-z nodefs"
10393 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"
10394 else
10395 # Determine the default libpath from the value encoded in an
10396 # empty executable.
10397 if test x$gcc_no_link = xyes; then
5213506e 10398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10399fi
5213506e 10400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10401/* end confdefs.h. */
10402
10403int
10404main ()
10405{
10406
10407 ;
10408 return 0;
10409}
10410_ACEOF
5213506e 10411if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10412
10413lt_aix_libpath_sed='
10414 /Import File Strings/,/^$/ {
10415 /^0/ {
10416 s/^0 *\(.*\)$/\1/
10417 p
10418 }
10419 }'
10420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10421# Check for a 64-bit object if we didn't find anything.
10422if test -z "$aix_libpath"; then
10423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10424fi
1cf3d07d 10425fi
5213506e
RW
10426rm -f core conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10429
10430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10431 # Warning - without using the other run time loading flags,
10432 # -berok will link without error, but may produce a broken library.
10433 no_undefined_flag=' ${wl}-bernotok'
10434 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10435 if test "$with_gnu_ld" = yes; then
10436 # We only use this code for GNU lds that support --whole-archive.
10437 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10438 else
10439 # Exported symbols can be pulled into shared objects from archives
10440 whole_archive_flag_spec='$convenience'
10441 fi
1cf3d07d
SE
10442 archive_cmds_need_lc=yes
10443 # This is similar to how AIX traditionally builds its shared libraries.
10444 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'
10445 fi
10446 fi
10447 ;;
10448
10449 amigaos*)
d58dead8
PG
10450 case $host_cpu in
10451 powerpc)
10452 # see comment about AmigaOS4 .so support
10453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10454 archive_expsym_cmds=''
10455 ;;
10456 m68k)
10457 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)'
10458 hardcode_libdir_flag_spec='-L$libdir'
10459 hardcode_minus_L=yes
10460 ;;
10461 esac
1cf3d07d
SE
10462 ;;
10463
10464 bsdi[45]*)
10465 export_dynamic_flag_spec=-rdynamic
10466 ;;
10467
d58dead8 10468 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10469 # When not using gcc, we currently assume that we are using
10470 # Microsoft Visual C++.
10471 # hardcode_libdir_flag_spec is actually meaningless, as there is
10472 # no search path for DLLs.
10473 hardcode_libdir_flag_spec=' '
10474 allow_undefined_flag=unsupported
10475 # Tell ltmain to make .lib files, not .a files.
10476 libext=lib
10477 # Tell ltmain to make .dll files, not .so files.
10478 shrext_cmds=".dll"
10479 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10480 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10481 # The linker will automatically build a .lib file if we build a DLL.
10482 old_archive_from_new_cmds='true'
10483 # FIXME: Should let the user specify the lib program.
10484 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10485 fix_srcfile_path='`cygpath -w "$srcfile"`'
10486 enable_shared_with_static_runtimes=yes
10487 ;;
10488
10489 darwin* | rhapsody*)
1cf3d07d 10490
d58dead8
PG
10491
10492 archive_cmds_need_lc=no
10493 hardcode_direct=no
10494 hardcode_automatic=yes
10495 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10496 if test "$lt_cv_ld_force_load" = "yes"; then
10497 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\"`'
10498 else
10499 whole_archive_flag_spec=''
10500 fi
d58dead8
PG
10501 link_all_deplibs=yes
10502 allow_undefined_flag="$_lt_dar_allow_undefined"
10503 case $cc_basename in
10504 ifort*) _lt_dar_can_shared=yes ;;
10505 *) _lt_dar_can_shared=$GCC ;;
10506 esac
10507 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10508 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10509 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10510 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10511 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}"
10512 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}"
10513
10514 else
10515 ld_shlibs=no
10516 fi
10517
1cf3d07d
SE
10518 ;;
10519
10520 dgux*)
10521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10522 hardcode_libdir_flag_spec='-L$libdir'
10523 hardcode_shlibpath_var=no
10524 ;;
10525
1cf3d07d
SE
10526 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10527 # support. Future versions do this automatically, but an explicit c++rt0.o
10528 # does not break anything, and helps significantly (at the cost of a little
10529 # extra space).
10530 freebsd2.2*)
10531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10532 hardcode_libdir_flag_spec='-R$libdir'
10533 hardcode_direct=yes
10534 hardcode_shlibpath_var=no
10535 ;;
10536
10537 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10538 freebsd2.*)
1cf3d07d
SE
10539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10540 hardcode_direct=yes
10541 hardcode_minus_L=yes
10542 hardcode_shlibpath_var=no
10543 ;;
10544
10545 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10546 freebsd* | dragonfly*)
10547 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10548 hardcode_libdir_flag_spec='-R$libdir'
10549 hardcode_direct=yes
10550 hardcode_shlibpath_var=no
10551 ;;
10552
10553 hpux9*)
10554 if test "$GCC" = yes; then
10555 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'
10556 else
10557 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'
10558 fi
10559 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10560 hardcode_libdir_separator=:
10561 hardcode_direct=yes
10562
10563 # hardcode_minus_L: Not really in the search PATH,
10564 # but as the default location of the library.
10565 hardcode_minus_L=yes
10566 export_dynamic_flag_spec='${wl}-E'
10567 ;;
10568
10569 hpux10*)
43e02a8a 10570 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10571 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10572 else
10573 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10574 fi
10575 if test "$with_gnu_ld" = no; then
10576 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10577 hardcode_libdir_flag_spec_ld='+b $libdir'
10578 hardcode_libdir_separator=:
10579 hardcode_direct=yes
10580 hardcode_direct_absolute=yes
10581 export_dynamic_flag_spec='${wl}-E'
10582 # hardcode_minus_L: Not really in the search PATH,
10583 # but as the default location of the library.
10584 hardcode_minus_L=yes
10585 fi
10586 ;;
10587
10588 hpux11*)
43e02a8a 10589 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10590 case $host_cpu in
10591 hppa*64*)
10592 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10593 ;;
10594 ia64*)
d58dead8 10595 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
10596 ;;
10597 *)
10598 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10599 ;;
10600 esac
10601 else
10602 case $host_cpu in
10603 hppa*64*)
10604 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10605 ;;
10606 ia64*)
10607 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10608 ;;
10609 *)
43e02a8a
RW
10610
10611 # Older versions of the 11.00 compiler do not understand -b yet
10612 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10614$as_echo_n "checking if $CC understands -b... " >&6; }
10615if test "${lt_cv_prog_compiler__b+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10617else
10618 lt_cv_prog_compiler__b=no
10619 save_LDFLAGS="$LDFLAGS"
10620 LDFLAGS="$LDFLAGS -b"
10621 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10623 # The linker can only warn and ignore the option if not recognized
10624 # So say no if there are warnings
10625 if test -s conftest.err; then
10626 # Append any errors to the config.log.
10627 cat conftest.err 1>&5
10628 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10630 if diff conftest.exp conftest.er2 >/dev/null; then
10631 lt_cv_prog_compiler__b=yes
10632 fi
10633 else
10634 lt_cv_prog_compiler__b=yes
10635 fi
10636 fi
10637 $RM -r conftest*
10638 LDFLAGS="$save_LDFLAGS"
10639
10640fi
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10642$as_echo "$lt_cv_prog_compiler__b" >&6; }
10643
10644if test x"$lt_cv_prog_compiler__b" = xyes; then
10645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10646else
10647 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10648fi
10649
1cf3d07d
SE
10650 ;;
10651 esac
10652 fi
10653 if test "$with_gnu_ld" = no; then
10654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10655 hardcode_libdir_separator=:
10656
10657 case $host_cpu in
10658 hppa*64*|ia64*)
10659 hardcode_direct=no
10660 hardcode_shlibpath_var=no
10661 ;;
10662 *)
10663 hardcode_direct=yes
10664 hardcode_direct_absolute=yes
10665 export_dynamic_flag_spec='${wl}-E'
10666
10667 # hardcode_minus_L: Not really in the search PATH,
10668 # but as the default location of the library.
10669 hardcode_minus_L=yes
10670 ;;
10671 esac
10672 fi
10673 ;;
10674
10675 irix5* | irix6* | nonstopux*)
10676 if test "$GCC" = yes; then
43e02a8a 10677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
10678 # Try to use the -exported_symbol ld option, if it does not
10679 # work, assume that -exports_file does not work either and
10680 # implicitly export all symbols.
10681 save_LDFLAGS="$LDFLAGS"
10682 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10683 if test x$gcc_no_link = xyes; then
5213506e 10684 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10685fi
5213506e
RW
10686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687/* end confdefs.h. */
1cf3d07d
SE
10688int foo(void) {}
10689_ACEOF
5213506e 10690if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 10691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 10692
1cf3d07d 10693fi
5213506e
RW
10694rm -f core conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10696 LDFLAGS="$save_LDFLAGS"
10697 else
43e02a8a
RW
10698 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'
10699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
10700 fi
10701 archive_cmds_need_lc='no'
10702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10703 hardcode_libdir_separator=:
10704 inherit_rpath=yes
10705 link_all_deplibs=yes
10706 ;;
10707
10708 netbsd*)
10709 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10711 else
10712 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10713 fi
10714 hardcode_libdir_flag_spec='-R$libdir'
10715 hardcode_direct=yes
10716 hardcode_shlibpath_var=no
10717 ;;
10718
10719 newsos6)
10720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10721 hardcode_direct=yes
10722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10723 hardcode_libdir_separator=:
10724 hardcode_shlibpath_var=no
10725 ;;
10726
10727 *nto* | *qnx*)
10728 ;;
10729
10730 openbsd*)
d58dead8
PG
10731 if test -f /usr/libexec/ld.so; then
10732 hardcode_direct=yes
10733 hardcode_shlibpath_var=no
10734 hardcode_direct_absolute=yes
10735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 10736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 10737 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 10738 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
10739 export_dynamic_flag_spec='${wl}-E'
10740 else
10741 case $host_os in
10742 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10744 hardcode_libdir_flag_spec='-R$libdir'
10745 ;;
10746 *)
10747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10748 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10749 ;;
10750 esac
10751 fi
10752 else
10753 ld_shlibs=no
1cf3d07d
SE
10754 fi
10755 ;;
10756
10757 os2*)
10758 hardcode_libdir_flag_spec='-L$libdir'
10759 hardcode_minus_L=yes
10760 allow_undefined_flag=unsupported
43e02a8a 10761 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1cf3d07d
SE
10762 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10763 ;;
10764
10765 osf3*)
10766 if test "$GCC" = yes; then
10767 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10768 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
10769 else
10770 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10771 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
10772 fi
10773 archive_cmds_need_lc='no'
10774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10775 hardcode_libdir_separator=:
10776 ;;
10777
10778 osf4* | osf5*) # as osf3* with the addition of -msym flag
10779 if test "$GCC" = yes; then
10780 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10781 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
10782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10783 else
10784 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10785 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 10786 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
43e02a8a 10787 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
10788
10789 # Both c and cxx compiler support -rpath directly
10790 hardcode_libdir_flag_spec='-rpath $libdir'
10791 fi
10792 archive_cmds_need_lc='no'
10793 hardcode_libdir_separator=:
10794 ;;
10795
10796 solaris*)
10797 no_undefined_flag=' -z defs'
10798 if test "$GCC" = yes; then
10799 wlarc='${wl}'
10800 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10801 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10802 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10803 else
10804 case `$CC -V 2>&1` in
10805 *"Compilers 5.0"*)
10806 wlarc=''
10807 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10808 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10809 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10810 ;;
10811 *)
10812 wlarc='${wl}'
10813 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10815 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10816 ;;
10817 esac
10818 fi
10819 hardcode_libdir_flag_spec='-R$libdir'
10820 hardcode_shlibpath_var=no
10821 case $host_os in
10822 solaris2.[0-5] | solaris2.[0-5].*) ;;
10823 *)
10824 # The compiler driver will combine and reorder linker options,
10825 # but understands `-z linker_flag'. GCC discards it without `$wl',
10826 # but is careful enough not to reorder.
10827 # Supported since Solaris 2.6 (maybe 2.5.1?)
10828 if test "$GCC" = yes; then
10829 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10830 else
10831 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10832 fi
10833 ;;
10834 esac
10835 link_all_deplibs=yes
10836 ;;
10837
10838 sunos4*)
10839 if test "x$host_vendor" = xsequent; then
10840 # Use $CC to link under sequent, because it throws in some extra .o
10841 # files that make .init and .fini sections work.
10842 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10843 else
10844 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10845 fi
10846 hardcode_libdir_flag_spec='-L$libdir'
10847 hardcode_direct=yes
10848 hardcode_minus_L=yes
10849 hardcode_shlibpath_var=no
10850 ;;
10851
10852 sysv4)
10853 case $host_vendor in
10854 sni)
10855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10856 hardcode_direct=yes # is this really true???
10857 ;;
10858 siemens)
10859 ## LD is ld it makes a PLAMLIB
10860 ## CC just makes a GrossModule.
10861 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10862 reload_cmds='$CC -r -o $output$reload_objs'
10863 hardcode_direct=no
10864 ;;
10865 motorola)
10866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10867 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10868 ;;
10869 esac
10870 runpath_var='LD_RUN_PATH'
10871 hardcode_shlibpath_var=no
10872 ;;
10873
10874 sysv4.3*)
10875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10876 hardcode_shlibpath_var=no
10877 export_dynamic_flag_spec='-Bexport'
10878 ;;
10879
10880 sysv4*MP*)
10881 if test -d /usr/nec; then
10882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10883 hardcode_shlibpath_var=no
10884 runpath_var=LD_RUN_PATH
10885 hardcode_runpath_var=yes
10886 ld_shlibs=yes
10887 fi
10888 ;;
10889
10890 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10891 no_undefined_flag='${wl}-z,text'
10892 archive_cmds_need_lc=no
10893 hardcode_shlibpath_var=no
10894 runpath_var='LD_RUN_PATH'
10895
10896 if test "$GCC" = yes; then
10897 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 else
10900 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10902 fi
10903 ;;
10904
10905 sysv5* | sco3.2v5* | sco5v6*)
10906 # Note: We can NOT use -z defs as we might desire, because we do not
10907 # link with -lc, and that would cause any symbols used from libc to
10908 # always be unresolved, which means just about no library would
10909 # ever link correctly. If we're not using GNU ld we use -z text
10910 # though, which does catch some bad symbols but isn't as heavy-handed
10911 # as -z defs.
10912 no_undefined_flag='${wl}-z,text'
10913 allow_undefined_flag='${wl}-z,nodefs'
10914 archive_cmds_need_lc=no
10915 hardcode_shlibpath_var=no
10916 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10917 hardcode_libdir_separator=':'
10918 link_all_deplibs=yes
10919 export_dynamic_flag_spec='${wl}-Bexport'
10920 runpath_var='LD_RUN_PATH'
10921
10922 if test "$GCC" = yes; then
10923 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 else
10926 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928 fi
10929 ;;
10930
10931 uts4*)
10932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933 hardcode_libdir_flag_spec='-L$libdir'
10934 hardcode_shlibpath_var=no
10935 ;;
10936
10937 *)
10938 ld_shlibs=no
10939 ;;
10940 esac
10941
10942 if test x$host_vendor = xsni; then
10943 case $host in
10944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10945 export_dynamic_flag_spec='${wl}-Blargedynsym'
10946 ;;
10947 esac
10948 fi
10949 fi
10950
5213506e
RW
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10952$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
10953test "$ld_shlibs" = no && can_build_shared=no
10954
10955with_gnu_ld=$with_gnu_ld
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971#
10972# Do we need to explicitly link libc?
10973#
10974case "x$archive_cmds_need_lc" in
10975x|xyes)
10976 # Assume -lc should be added
10977 archive_cmds_need_lc=yes
10978
10979 if test "$enable_shared" = yes && test "$GCC" = yes; then
10980 case $archive_cmds in
10981 *'~'*)
10982 # FIXME: we may have to deal with multi-command sequences.
10983 ;;
10984 '$CC '*)
10985 # Test whether the compiler implicitly links with -lc since on some
10986 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10987 # to ld, don't add -lc before -lgcc.
5213506e
RW
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10989$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10990if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10991 $as_echo_n "(cached) " >&6
baafc534
RW
10992else
10993 $RM conftest*
10994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 10995
5213506e 10996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
10997 (eval $ac_compile) 2>&5
10998 ac_status=$?
5213506e
RW
10999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11000 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
11001 soname=conftest
11002 lib=conftest
11003 libobjs=conftest.$ac_objext
11004 deplibs=
11005 wl=$lt_prog_compiler_wl
11006 pic_flag=$lt_prog_compiler_pic
11007 compiler_flags=-v
11008 linker_flags=-v
11009 verstring=
11010 output_objdir=.
11011 libname=conftest
11012 lt_save_allow_undefined_flag=$allow_undefined_flag
11013 allow_undefined_flag=
5213506e 11014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
11015 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11016 ac_status=$?
5213506e
RW
11017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11018 test $ac_status = 0; }
baafc534
RW
11019 then
11020 lt_cv_archive_cmds_need_lc=no
11021 else
11022 lt_cv_archive_cmds_need_lc=yes
11023 fi
11024 allow_undefined_flag=$lt_save_allow_undefined_flag
11025 else
11026 cat conftest.err 1>&5
11027 fi
11028 $RM conftest*
11029
11030fi
5213506e
RW
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11032$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 11033 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
11034 ;;
11035 esac
11036 fi
11037 ;;
11038esac
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
5213506e
RW
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11197$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
11198
11199if test "$GCC" = yes; then
1cf3d07d
SE
11200 case $host_os in
11201 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11202 *) lt_awk_arg="/^libraries:/" ;;
11203 esac
43e02a8a
RW
11204 case $host_os in
11205 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11206 *) lt_sed_strip_eq="s,=/,/,g" ;;
11207 esac
11208 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11209 case $lt_search_path_spec in
11210 *\;*)
1cf3d07d
SE
11211 # if the path contains ";" then we assume it to be the separator
11212 # otherwise default to the standard path separator (i.e. ":") - it is
11213 # assumed that no part of a normal pathname contains ";" but that should
11214 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
11215 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11216 ;;
11217 *)
11218 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11219 ;;
11220 esac
1cf3d07d
SE
11221 # Ok, now we have the path, separated by spaces, we can step through it
11222 # and add multilib dir if necessary.
11223 lt_tmp_lt_search_path_spec=
11224 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11225 for lt_sys_path in $lt_search_path_spec; do
11226 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11227 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11228 else
11229 test -d "$lt_sys_path" && \
11230 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11231 fi
11232 done
43e02a8a 11233 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11234BEGIN {RS=" "; FS="/|\n";} {
11235 lt_foo="";
11236 lt_count=0;
11237 for (lt_i = NF; lt_i > 0; lt_i--) {
11238 if ($lt_i != "" && $lt_i != ".") {
11239 if ($lt_i == "..") {
11240 lt_count++;
11241 } else {
11242 if (lt_count == 0) {
11243 lt_foo="/" $lt_i lt_foo;
11244 } else {
11245 lt_count--;
11246 }
11247 }
11248 }
11249 }
11250 if (lt_foo != "") { lt_freq[lt_foo]++; }
11251 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11252}'`
43e02a8a
RW
11253 # AWK program above erroneously prepends '/' to C:/dos/paths
11254 # for these hosts.
11255 case $host_os in
11256 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11257 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11258 esac
11259 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11260else
11261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11262fi
11263library_names_spec=
11264libname_spec='lib$name'
11265soname_spec=
11266shrext_cmds=".so"
11267postinstall_cmds=
11268postuninstall_cmds=
11269finish_cmds=
11270finish_eval=
11271shlibpath_var=
11272shlibpath_overrides_runpath=unknown
11273version_type=none
11274dynamic_linker="$host_os ld.so"
11275sys_lib_dlsearch_path_spec="/lib /usr/lib"
11276need_lib_prefix=unknown
11277hardcode_into_libs=no
11278
11279# when you set need_version to no, make sure it does not cause -set_version
11280# flags to be left without arguments
11281need_version=unknown
11282
11283case $host_os in
11284aix3*)
11285 version_type=linux
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11287 shlibpath_var=LIBPATH
11288
11289 # AIX 3 has no versioning support, so we append a major version to the name.
11290 soname_spec='${libname}${release}${shared_ext}$major'
11291 ;;
11292
4f6bebc3 11293aix[4-9]*)
1cf3d07d
SE
11294 version_type=linux
11295 need_lib_prefix=no
11296 need_version=no
11297 hardcode_into_libs=yes
11298 if test "$host_cpu" = ia64; then
11299 # AIX 5 supports IA64
11300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 else
11303 # With GCC up to 2.95.x, collect2 would create an import file
11304 # for dependence libraries. The import file would start with
11305 # the line `#! .'. This would cause the generated library to
11306 # depend on `.', always an invalid library. This was fixed in
11307 # development snapshots of GCC prior to 3.0.
11308 case $host_os in
11309 aix4 | aix4.[01] | aix4.[01].*)
11310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11311 echo ' yes '
11312 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11313 :
11314 else
11315 can_build_shared=no
11316 fi
11317 ;;
11318 esac
11319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11320 # soname into executable. Probably we can add versioning support to
11321 # collect2, so additional links can be useful in future.
11322 if test "$aix_use_runtimelinking" = yes; then
11323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11324 # instead of lib<name>.a to let people know that these are not
11325 # typical AIX shared libraries.
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 else
11328 # We preserve .a as extension for shared libraries through AIX4.2
11329 # and later when we are not doing run time linking.
11330 library_names_spec='${libname}${release}.a $libname.a'
11331 soname_spec='${libname}${release}${shared_ext}$major'
11332 fi
11333 shlibpath_var=LIBPATH
11334 fi
11335 ;;
11336
11337amigaos*)
d58dead8
PG
11338 case $host_cpu in
11339 powerpc)
11340 # Since July 2007 AmigaOS4 officially supports .so libraries.
11341 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343 ;;
11344 m68k)
1cf3d07d
SE
11345 library_names_spec='$libname.ixlibrary $libname.a'
11346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11347 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d58dead8
PG
11348 ;;
11349 esac
1cf3d07d
SE
11350 ;;
11351
11352beos*)
11353 library_names_spec='${libname}${shared_ext}'
11354 dynamic_linker="$host_os ld.so"
11355 shlibpath_var=LIBRARY_PATH
11356 ;;
11357
11358bsdi[45]*)
11359 version_type=linux
11360 need_version=no
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362 soname_spec='${libname}${release}${shared_ext}$major'
11363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11367 # the default ld.so.conf also contains /usr/contrib/lib and
11368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11369 # libtool to hard-code these into programs
11370 ;;
11371
d58dead8 11372cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11373 version_type=windows
11374 shrext_cmds=".dll"
11375 need_version=no
11376 need_lib_prefix=no
11377
d58dead8
PG
11378 case $GCC,$host_os in
11379 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11380 library_names_spec='$libname.dll.a'
11381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11382 postinstall_cmds='base_file=`basename \${file}`~
11383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11384 dldir=$destdir/`dirname \$dlpath`~
11385 test -d \$dldir || mkdir -p \$dldir~
11386 $install_prog $dir/$dlname \$dldir/$dlname~
11387 chmod a+x \$dldir/$dlname~
11388 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11389 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11390 fi'
11391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11392 dlpath=$dir/\$dldll~
11393 $RM \$dlpath'
11394 shlibpath_overrides_runpath=yes
11395
11396 case $host_os in
11397 cygwin*)
11398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11400
11401 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11402 ;;
d58dead8 11403 mingw* | cegcc*)
1cf3d07d
SE
11404 # MinGW DLLs use traditional 'lib' prefix
11405 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11406 ;;
11407 pw32*)
11408 # pw32 DLLs use 'pw' prefix rather than 'lib'
11409 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11410 ;;
11411 esac
11412 ;;
11413
11414 *)
11415 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11416 ;;
11417 esac
11418 dynamic_linker='Win32 ld.exe'
11419 # FIXME: first we should search . and the directory the executable is in
11420 shlibpath_var=PATH
11421 ;;
11422
11423darwin* | rhapsody*)
11424 dynamic_linker="$host_os dyld"
11425 version_type=darwin
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11429 soname_spec='${libname}${release}${major}$shared_ext'
11430 shlibpath_overrides_runpath=yes
11431 shlibpath_var=DYLD_LIBRARY_PATH
11432 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11433
11434 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11436 ;;
11437
11438dgux*)
11439 version_type=linux
11440 need_lib_prefix=no
11441 need_version=no
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 shlibpath_var=LD_LIBRARY_PATH
11445 ;;
11446
1cf3d07d
SE
11447freebsd* | dragonfly*)
11448 # DragonFly does not have aout. When/if they implement a new
11449 # versioning mechanism, adjust this.
11450 if test -x /usr/bin/objformat; then
11451 objformat=`/usr/bin/objformat`
11452 else
11453 case $host_os in
c6084f68 11454 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
11455 *) objformat=elf ;;
11456 esac
11457 fi
11458 version_type=freebsd-$objformat
11459 case $version_type in
11460 freebsd-elf*)
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11462 need_version=no
11463 need_lib_prefix=no
11464 ;;
11465 freebsd-*)
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11467 need_version=yes
11468 ;;
11469 esac
11470 shlibpath_var=LD_LIBRARY_PATH
11471 case $host_os in
c6084f68 11472 freebsd2.*)
1cf3d07d
SE
11473 shlibpath_overrides_runpath=yes
11474 ;;
11475 freebsd3.[01]* | freebsdelf3.[01]*)
11476 shlibpath_overrides_runpath=yes
11477 hardcode_into_libs=yes
11478 ;;
11479 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11480 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11481 shlibpath_overrides_runpath=no
11482 hardcode_into_libs=yes
11483 ;;
11484 *) # from 4.6 on, and DragonFly
11485 shlibpath_overrides_runpath=yes
11486 hardcode_into_libs=yes
11487 ;;
11488 esac
11489 ;;
11490
11491gnu*)
11492 version_type=linux
11493 need_lib_prefix=no
11494 need_version=no
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 hardcode_into_libs=yes
11499 ;;
11500
43e02a8a
RW
11501haiku*)
11502 version_type=linux
11503 need_lib_prefix=no
11504 need_version=no
11505 dynamic_linker="$host_os runtime_loader"
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11507 soname_spec='${libname}${release}${shared_ext}$major'
11508 shlibpath_var=LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11511 hardcode_into_libs=yes
11512 ;;
11513
1cf3d07d
SE
11514hpux9* | hpux10* | hpux11*)
11515 # Give a soname corresponding to the major version so that dld.sl refuses to
11516 # link against other versions.
11517 version_type=sunos
11518 need_lib_prefix=no
11519 need_version=no
11520 case $host_cpu in
11521 ia64*)
11522 shrext_cmds='.so'
11523 hardcode_into_libs=yes
11524 dynamic_linker="$host_os dld.so"
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 if test "X$HPUX_IA64_MODE" = X32; then
11530 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11531 else
11532 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11533 fi
11534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11535 ;;
11536 hppa*64*)
11537 shrext_cmds='.sl'
11538 hardcode_into_libs=yes
11539 dynamic_linker="$host_os dld.sl"
11540 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11546 ;;
11547 *)
11548 shrext_cmds='.sl'
11549 dynamic_linker="$host_os dld.sl"
11550 shlibpath_var=SHLIB_PATH
11551 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 ;;
11555 esac
43e02a8a 11556 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 11557 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11558 # or fails outright, so override atomically:
11559 install_override_mode=555
1cf3d07d
SE
11560 ;;
11561
11562interix[3-9]*)
11563 version_type=linux
11564 need_lib_prefix=no
11565 need_version=no
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=no
11571 hardcode_into_libs=yes
11572 ;;
11573
11574irix5* | irix6* | nonstopux*)
11575 case $host_os in
11576 nonstopux*) version_type=nonstopux ;;
11577 *)
11578 if test "$lt_cv_prog_gnu_ld" = yes; then
11579 version_type=linux
11580 else
11581 version_type=irix
11582 fi ;;
11583 esac
11584 need_lib_prefix=no
11585 need_version=no
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11588 case $host_os in
11589 irix5* | nonstopux*)
11590 libsuff= shlibsuff=
11591 ;;
11592 *)
11593 case $LD in # libtool.m4 will add one of these switches to LD
11594 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11595 libsuff= shlibsuff= libmagic=32-bit;;
11596 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11597 libsuff=32 shlibsuff=N32 libmagic=N32;;
11598 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11599 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11600 *) libsuff= shlibsuff= libmagic=never-match;;
11601 esac
11602 ;;
11603 esac
11604 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11605 shlibpath_overrides_runpath=no
11606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11608 hardcode_into_libs=yes
11609 ;;
11610
11611# No shared lib support for Linux oldld, aout, or coff.
11612linux*oldld* | linux*aout* | linux*coff*)
11613 dynamic_linker=no
11614 ;;
11615
11616# This must be Linux ELF.
7a9d3fe8 11617linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11618 version_type=linux
11619 need_lib_prefix=no
11620 need_version=no
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=no
baafc534 11626
1cf3d07d 11627 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
11628 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
baafc534
RW
11630else
11631 lt_cv_shlibpath_overrides_runpath=no
11632 save_LDFLAGS=$LDFLAGS
11633 save_libdir=$libdir
11634 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11635 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11636 if test x$gcc_no_link = xyes; then
5213506e 11637 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11638fi
5213506e 11639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11640/* end confdefs.h. */
11641
11642int
11643main ()
11644{
11645
11646 ;
11647 return 0;
11648}
11649_ACEOF
5213506e
RW
11650if ac_fn_c_try_link "$LINENO"; then :
11651 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 11652 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 11653fi
1cf3d07d 11654fi
5213506e
RW
11655rm -f core conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
11657 LDFLAGS=$save_LDFLAGS
11658 libdir=$save_libdir
11659
11660fi
11661
11662 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
11663
11664 # This implies no fast_install, which is unacceptable.
11665 # Some rework will be needed to allow for fast_install
11666 # before this can be enabled.
11667 hardcode_into_libs=yes
11668
11669 # Append ld.so.conf contents to the search path
11670 if test -f /etc/ld.so.conf; then
43e02a8a 11671 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
11672 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11673 fi
11674
11675 # We used to test for /lib/ld.so.1 and disable shared libraries on
11676 # powerpc, because MkLinux only supported shared libraries with the
11677 # GNU dynamic linker. Since this was broken with cross compilers,
11678 # most powerpc-linux boxes support dynamic linking these days and
11679 # people can always --disable-shared, the test was removed, and we
11680 # assume the GNU/Linux dynamic linker is in use.
11681 dynamic_linker='GNU/Linux ld.so'
11682 ;;
11683
11684netbsd*)
11685 version_type=sunos
11686 need_lib_prefix=no
11687 need_version=no
11688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11691 dynamic_linker='NetBSD (a.out) ld.so'
11692 else
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 dynamic_linker='NetBSD ld.elf_so'
11696 fi
11697 shlibpath_var=LD_LIBRARY_PATH
11698 shlibpath_overrides_runpath=yes
11699 hardcode_into_libs=yes
11700 ;;
11701
11702newsos6)
11703 version_type=linux
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 shlibpath_overrides_runpath=yes
11707 ;;
11708
11709*nto* | *qnx*)
11710 version_type=qnx
11711 need_lib_prefix=no
11712 need_version=no
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714 soname_spec='${libname}${release}${shared_ext}$major'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=no
11717 hardcode_into_libs=yes
11718 dynamic_linker='ldqnx.so'
11719 ;;
11720
11721openbsd*)
11722 version_type=sunos
11723 sys_lib_dlsearch_path_spec="/usr/lib"
11724 need_lib_prefix=no
11725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11726 case $host_os in
11727 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11728 *) need_version=no ;;
11729 esac
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11734 case $host_os in
11735 openbsd2.[89] | openbsd2.[89].*)
11736 shlibpath_overrides_runpath=no
11737 ;;
11738 *)
11739 shlibpath_overrides_runpath=yes
11740 ;;
11741 esac
11742 else
11743 shlibpath_overrides_runpath=yes
11744 fi
11745 ;;
11746
11747os2*)
11748 libname_spec='$name'
11749 shrext_cmds=".dll"
11750 need_lib_prefix=no
11751 library_names_spec='$libname${shared_ext} $libname.a'
11752 dynamic_linker='OS/2 ld.exe'
11753 shlibpath_var=LIBPATH
11754 ;;
11755
11756osf3* | osf4* | osf5*)
11757 version_type=osf
11758 need_lib_prefix=no
11759 need_version=no
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11765 ;;
11766
11767rdos*)
11768 dynamic_linker=no
11769 ;;
11770
11771solaris*)
11772 version_type=linux
11773 need_lib_prefix=no
11774 need_version=no
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath=yes
11779 hardcode_into_libs=yes
11780 # ldd complains unless libraries are executable
11781 postinstall_cmds='chmod +x $lib'
11782 ;;
11783
11784sunos4*)
11785 version_type=sunos
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11788 shlibpath_var=LD_LIBRARY_PATH
11789 shlibpath_overrides_runpath=yes
11790 if test "$with_gnu_ld" = yes; then
11791 need_lib_prefix=no
11792 fi
11793 need_version=yes
11794 ;;
11795
11796sysv4 | sysv4.3*)
11797 version_type=linux
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 case $host_vendor in
11802 sni)
11803 shlibpath_overrides_runpath=no
11804 need_lib_prefix=no
11805 runpath_var=LD_RUN_PATH
11806 ;;
11807 siemens)
11808 need_lib_prefix=no
11809 ;;
11810 motorola)
11811 need_lib_prefix=no
11812 need_version=no
11813 shlibpath_overrides_runpath=no
11814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11815 ;;
11816 esac
11817 ;;
11818
11819sysv4*MP*)
11820 if test -d /usr/nec ;then
11821 version_type=linux
11822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11823 soname_spec='$libname${shared_ext}.$major'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 fi
11826 ;;
11827
11828sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11829 version_type=freebsd-elf
11830 need_lib_prefix=no
11831 need_version=no
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11833 soname_spec='${libname}${release}${shared_ext}$major'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 shlibpath_overrides_runpath=yes
11836 hardcode_into_libs=yes
11837 if test "$with_gnu_ld" = yes; then
11838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11839 else
11840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11841 case $host_os in
11842 sco3.2v5*)
11843 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11844 ;;
11845 esac
11846 fi
11847 sys_lib_dlsearch_path_spec='/usr/lib'
11848 ;;
11849
11850tpf*)
11851 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11852 version_type=linux
11853 need_lib_prefix=no
11854 need_version=no
d58dead8 11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
11856 shlibpath_var=LD_LIBRARY_PATH
11857 shlibpath_overrides_runpath=no
11858 hardcode_into_libs=yes
11859 ;;
11860
11861uts4*)
11862 version_type=linux
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864 soname_spec='${libname}${release}${shared_ext}$major'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 ;;
11867
11868*)
11869 dynamic_linker=no
11870 ;;
11871esac
5213506e
RW
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11873$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
11874test "$dynamic_linker" = no && can_build_shared=no
11875
11876variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11877if test "$GCC" = yes; then
11878 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11879fi
11880
d58dead8
PG
11881if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11882 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11883fi
11884if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11885 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11886fi
11887
1cf3d07d
SE
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
43e02a8a
RW
11968
11969
11970
11971
11972
1cf3d07d
SE
11973
11974
11975
11976
11977
11978
5213506e
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11980$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
11981hardcode_action=
11982if test -n "$hardcode_libdir_flag_spec" ||
11983 test -n "$runpath_var" ||
11984 test "X$hardcode_automatic" = "Xyes" ; then
11985
11986 # We can hardcode non-existent directories.
11987 if test "$hardcode_direct" != no &&
11988 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11989 # have to relink, otherwise we might link with an installed library
11990 # when we should be linking with a yet-to-be-installed one
11991 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11992 test "$hardcode_minus_L" != no; then
11993 # Linking always hardcodes the temporary library directory.
11994 hardcode_action=relink
11995 else
11996 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11997 hardcode_action=immediate
11998 fi
11999else
12000 # We cannot hardcode anything, or else we can only hardcode existing
12001 # directories.
12002 hardcode_action=unsupported
12003fi
5213506e
RW
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12005$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
12006
12007if test "$hardcode_action" = relink ||
12008 test "$inherit_rpath" = yes; then
12009 # Fast installation is not supported
12010 enable_fast_install=no
12011elif test "$shlibpath_overrides_runpath" = yes ||
12012 test "$enable_shared" = no; then
12013 # Fast installation is not necessary
12014 enable_fast_install=needless
12015fi
12016
12017
12018
12019
12020
12021
12022 if test "x$enable_dlopen" != xyes; then
12023 enable_dlopen=unknown
12024 enable_dlopen_self=unknown
12025 enable_dlopen_self_static=unknown
12026else
12027 lt_cv_dlopen=no
12028 lt_cv_dlopen_libs=
12029
12030 case $host_os in
12031 beos*)
12032 lt_cv_dlopen="load_add_on"
12033 lt_cv_dlopen_libs=
12034 lt_cv_dlopen_self=yes
12035 ;;
12036
d58dead8 12037 mingw* | pw32* | cegcc*)
1cf3d07d
SE
12038 lt_cv_dlopen="LoadLibrary"
12039 lt_cv_dlopen_libs=
12040 ;;
12041
12042 cygwin*)
12043 lt_cv_dlopen="dlopen"
12044 lt_cv_dlopen_libs=
12045 ;;
12046
12047 darwin*)
12048 # if libdl is installed we need to link against it
5213506e
RW
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12050$as_echo_n "checking for dlopen in -ldl... " >&6; }
12051if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12053else
12054 ac_check_lib_save_LIBS=$LIBS
12055LIBS="-ldl $LIBS"
12056if test x$gcc_no_link = xyes; then
5213506e 12057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12058fi
5213506e 12059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12060/* end confdefs.h. */
12061
5213506e
RW
12062/* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12065#ifdef __cplusplus
12066extern "C"
12067#endif
1cf3d07d
SE
12068char dlopen ();
12069int
12070main ()
12071{
5213506e 12072return dlopen ();
1cf3d07d
SE
12073 ;
12074 return 0;
12075}
12076_ACEOF
5213506e 12077if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12078 ac_cv_lib_dl_dlopen=yes
12079else
5213506e 12080 ac_cv_lib_dl_dlopen=no
1cf3d07d 12081fi
5213506e
RW
12082rm -f core conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12084LIBS=$ac_check_lib_save_LIBS
12085fi
5213506e
RW
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12087$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12088if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12090else
12091
12092 lt_cv_dlopen="dyld"
12093 lt_cv_dlopen_libs=
12094 lt_cv_dlopen_self=yes
12095
12096fi
12097
12098 ;;
12099
12100 *)
5213506e
RW
12101 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12102if test "x$ac_cv_func_shl_load" = x""yes; then :
1cf3d07d
SE
12103 lt_cv_dlopen="shl_load"
12104else
5213506e
RW
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12106$as_echo_n "checking for shl_load in -ldld... " >&6; }
12107if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12109else
12110 ac_check_lib_save_LIBS=$LIBS
12111LIBS="-ldld $LIBS"
12112if test x$gcc_no_link = xyes; then
5213506e 12113 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12114fi
5213506e 12115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12116/* end confdefs.h. */
12117
5213506e
RW
12118/* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12121#ifdef __cplusplus
12122extern "C"
12123#endif
1cf3d07d
SE
12124char shl_load ();
12125int
12126main ()
12127{
5213506e 12128return shl_load ();
1cf3d07d
SE
12129 ;
12130 return 0;
12131}
12132_ACEOF
5213506e 12133if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12134 ac_cv_lib_dld_shl_load=yes
12135else
5213506e 12136 ac_cv_lib_dld_shl_load=no
1cf3d07d 12137fi
5213506e
RW
12138rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12140LIBS=$ac_check_lib_save_LIBS
12141fi
5213506e
RW
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12143$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12144if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
d58dead8 12145 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 12146else
5213506e
RW
12147 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12148if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
12149 lt_cv_dlopen="dlopen"
12150else
5213506e
RW
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12152$as_echo_n "checking for dlopen in -ldl... " >&6; }
12153if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12155else
12156 ac_check_lib_save_LIBS=$LIBS
12157LIBS="-ldl $LIBS"
12158if test x$gcc_no_link = xyes; then
5213506e 12159 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12160fi
5213506e 12161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12162/* end confdefs.h. */
12163
5213506e
RW
12164/* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12167#ifdef __cplusplus
12168extern "C"
12169#endif
1cf3d07d
SE
12170char dlopen ();
12171int
12172main ()
12173{
5213506e 12174return dlopen ();
1cf3d07d
SE
12175 ;
12176 return 0;
12177}
12178_ACEOF
5213506e 12179if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12180 ac_cv_lib_dl_dlopen=yes
12181else
5213506e 12182 ac_cv_lib_dl_dlopen=no
1cf3d07d 12183fi
5213506e
RW
12184rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12186LIBS=$ac_check_lib_save_LIBS
12187fi
5213506e
RW
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12189$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12190if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
12191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12192else
5213506e
RW
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12194$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12195if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12197else
12198 ac_check_lib_save_LIBS=$LIBS
12199LIBS="-lsvld $LIBS"
12200if test x$gcc_no_link = xyes; then
5213506e 12201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12202fi
5213506e 12203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12204/* end confdefs.h. */
12205
5213506e
RW
12206/* Override any GCC internal prototype to avoid an error.
12207 Use char because int might match the return type of a GCC
12208 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12209#ifdef __cplusplus
12210extern "C"
12211#endif
1cf3d07d
SE
12212char dlopen ();
12213int
12214main ()
12215{
5213506e 12216return dlopen ();
1cf3d07d
SE
12217 ;
12218 return 0;
12219}
12220_ACEOF
5213506e 12221if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12222 ac_cv_lib_svld_dlopen=yes
12223else
5213506e 12224 ac_cv_lib_svld_dlopen=no
1cf3d07d 12225fi
5213506e
RW
12226rm -f core conftest.err conftest.$ac_objext \
12227 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12228LIBS=$ac_check_lib_save_LIBS
12229fi
5213506e
RW
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12231$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12232if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
12233 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12234else
5213506e
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12236$as_echo_n "checking for dld_link in -ldld... " >&6; }
12237if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12239else
12240 ac_check_lib_save_LIBS=$LIBS
12241LIBS="-ldld $LIBS"
12242if test x$gcc_no_link = xyes; then
5213506e 12243 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12244fi
5213506e 12245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12246/* end confdefs.h. */
12247
5213506e
RW
12248/* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12251#ifdef __cplusplus
12252extern "C"
12253#endif
1cf3d07d
SE
12254char dld_link ();
12255int
12256main ()
12257{
5213506e 12258return dld_link ();
1cf3d07d
SE
12259 ;
12260 return 0;
12261}
12262_ACEOF
5213506e 12263if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12264 ac_cv_lib_dld_dld_link=yes
12265else
5213506e 12266 ac_cv_lib_dld_dld_link=no
1cf3d07d 12267fi
5213506e
RW
12268rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12270LIBS=$ac_check_lib_save_LIBS
12271fi
5213506e
RW
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12273$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12274if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
d58dead8 12275 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12276fi
12277
12278
12279fi
12280
12281
12282fi
12283
12284
12285fi
12286
12287
12288fi
12289
12290
12291fi
12292
12293 ;;
12294 esac
12295
12296 if test "x$lt_cv_dlopen" != xno; then
12297 enable_dlopen=yes
12298 else
12299 enable_dlopen=no
12300 fi
12301
12302 case $lt_cv_dlopen in
12303 dlopen)
12304 save_CPPFLAGS="$CPPFLAGS"
12305 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12306
12307 save_LDFLAGS="$LDFLAGS"
12308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12309
12310 save_LIBS="$LIBS"
12311 LIBS="$lt_cv_dlopen_libs $LIBS"
12312
5213506e
RW
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12314$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12315if test "${lt_cv_dlopen_self+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12317else
12318 if test "$cross_compiling" = yes; then :
12319 lt_cv_dlopen_self=cross
12320else
12321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12322 lt_status=$lt_dlunknown
12323 cat > conftest.$ac_ext <<_LT_EOF
68ee9c08 12324#line 12324 "configure"
1cf3d07d
SE
12325#include "confdefs.h"
12326
12327#if HAVE_DLFCN_H
12328#include <dlfcn.h>
12329#endif
12330
12331#include <stdio.h>
12332
12333#ifdef RTLD_GLOBAL
12334# define LT_DLGLOBAL RTLD_GLOBAL
12335#else
12336# ifdef DL_GLOBAL
12337# define LT_DLGLOBAL DL_GLOBAL
12338# else
12339# define LT_DLGLOBAL 0
12340# endif
12341#endif
12342
12343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12344 find out it does not work in some platform. */
12345#ifndef LT_DLLAZY_OR_NOW
12346# ifdef RTLD_LAZY
12347# define LT_DLLAZY_OR_NOW RTLD_LAZY
12348# else
12349# ifdef DL_LAZY
12350# define LT_DLLAZY_OR_NOW DL_LAZY
12351# else
12352# ifdef RTLD_NOW
12353# define LT_DLLAZY_OR_NOW RTLD_NOW
12354# else
12355# ifdef DL_NOW
12356# define LT_DLLAZY_OR_NOW DL_NOW
12357# else
12358# define LT_DLLAZY_OR_NOW 0
12359# endif
12360# endif
12361# endif
12362# endif
12363#endif
12364
43e02a8a
RW
12365/* When -fvisbility=hidden is used, assume the code has been annotated
12366 correspondingly for the symbols needed. */
12367#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12368void fnord () __attribute__((visibility("default")));
12369#endif
12370
12371void fnord () { int i=42; }
1cf3d07d
SE
12372int main ()
12373{
12374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12375 int status = $lt_dlunknown;
12376
12377 if (self)
12378 {
12379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12380 else
12381 {
12382 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12383 else puts (dlerror ());
12384 }
1cf3d07d
SE
12385 /* dlclose (self); */
12386 }
12387 else
12388 puts (dlerror ());
12389
d58dead8 12390 return status;
1cf3d07d
SE
12391}
12392_LT_EOF
5213506e 12393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12394 (eval $ac_link) 2>&5
12395 ac_status=$?
5213506e
RW
12396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12397 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12398 (./conftest; exit; ) >&5 2>/dev/null
12399 lt_status=$?
12400 case x$lt_status in
12401 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12402 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12403 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12404 esac
12405 else :
12406 # compilation failed
12407 lt_cv_dlopen_self=no
12408 fi
12409fi
12410rm -fr conftest*
12411
12412
12413fi
5213506e
RW
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12415$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12416
12417 if test "x$lt_cv_dlopen_self" = xyes; then
12418 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12420$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12421if test "${lt_cv_dlopen_self_static+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12423else
12424 if test "$cross_compiling" = yes; then :
12425 lt_cv_dlopen_self_static=cross
12426else
12427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12428 lt_status=$lt_dlunknown
12429 cat > conftest.$ac_ext <<_LT_EOF
68ee9c08 12430#line 12430 "configure"
1cf3d07d
SE
12431#include "confdefs.h"
12432
12433#if HAVE_DLFCN_H
12434#include <dlfcn.h>
12435#endif
12436
12437#include <stdio.h>
12438
12439#ifdef RTLD_GLOBAL
12440# define LT_DLGLOBAL RTLD_GLOBAL
12441#else
12442# ifdef DL_GLOBAL
12443# define LT_DLGLOBAL DL_GLOBAL
12444# else
12445# define LT_DLGLOBAL 0
12446# endif
12447#endif
12448
12449/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12450 find out it does not work in some platform. */
12451#ifndef LT_DLLAZY_OR_NOW
12452# ifdef RTLD_LAZY
12453# define LT_DLLAZY_OR_NOW RTLD_LAZY
12454# else
12455# ifdef DL_LAZY
12456# define LT_DLLAZY_OR_NOW DL_LAZY
12457# else
12458# ifdef RTLD_NOW
12459# define LT_DLLAZY_OR_NOW RTLD_NOW
12460# else
12461# ifdef DL_NOW
12462# define LT_DLLAZY_OR_NOW DL_NOW
12463# else
12464# define LT_DLLAZY_OR_NOW 0
12465# endif
12466# endif
12467# endif
12468# endif
12469#endif
12470
43e02a8a
RW
12471/* When -fvisbility=hidden is used, assume the code has been annotated
12472 correspondingly for the symbols needed. */
12473#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12474void fnord () __attribute__((visibility("default")));
12475#endif
12476
12477void fnord () { int i=42; }
1cf3d07d
SE
12478int main ()
12479{
12480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12481 int status = $lt_dlunknown;
12482
12483 if (self)
12484 {
12485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12486 else
12487 {
12488 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12489 else puts (dlerror ());
12490 }
1cf3d07d
SE
12491 /* dlclose (self); */
12492 }
12493 else
12494 puts (dlerror ());
12495
d58dead8 12496 return status;
1cf3d07d
SE
12497}
12498_LT_EOF
5213506e 12499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12500 (eval $ac_link) 2>&5
12501 ac_status=$?
5213506e
RW
12502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12503 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12504 (./conftest; exit; ) >&5 2>/dev/null
12505 lt_status=$?
12506 case x$lt_status in
12507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12510 esac
12511 else :
12512 # compilation failed
12513 lt_cv_dlopen_self_static=no
12514 fi
12515fi
12516rm -fr conftest*
12517
12518
12519fi
5213506e
RW
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12521$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12522 fi
12523
12524 CPPFLAGS="$save_CPPFLAGS"
12525 LDFLAGS="$save_LDFLAGS"
12526 LIBS="$save_LIBS"
12527 ;;
12528 esac
12529
12530 case $lt_cv_dlopen_self in
12531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12532 *) enable_dlopen_self=unknown ;;
12533 esac
12534
12535 case $lt_cv_dlopen_self_static in
12536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12537 *) enable_dlopen_self_static=unknown ;;
12538 esac
12539fi
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557striplib=
12558old_striplib=
5213506e
RW
12559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12560$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
12561if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12562 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12563 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12565$as_echo "yes" >&6; }
1cf3d07d
SE
12566else
12567# FIXME - insert some real tests, host_os isn't really good enough
12568 case $host_os in
12569 darwin*)
12570 if test -n "$STRIP" ; then
12571 striplib="$STRIP -x"
12572 old_striplib="$STRIP -S"
5213506e
RW
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12574$as_echo "yes" >&6; }
1cf3d07d 12575 else
5213506e
RW
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577$as_echo "no" >&6; }
1cf3d07d
SE
12578 fi
12579 ;;
12580 *)
5213506e
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582$as_echo "no" >&6; }
1cf3d07d
SE
12583 ;;
12584 esac
12585fi
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
43e02a8a
RW
12598 # Report which library types will actually be built
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12600$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12602$as_echo "$can_build_shared" >&6; }
1cf3d07d 12603
43e02a8a
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12605$as_echo_n "checking whether to build shared libraries... " >&6; }
12606 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 12607
43e02a8a
RW
12608 # On AIX, shared libraries and static libraries use the same namespace, and
12609 # are all built from PIC.
12610 case $host_os in
12611 aix3*)
12612 test "$enable_shared" = yes && enable_static=no
12613 if test -n "$RANLIB"; then
12614 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12615 postinstall_cmds='$RANLIB $lib'
12616 fi
12617 ;;
1cf3d07d 12618
43e02a8a
RW
12619 aix[4-9]*)
12620 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12621 test "$enable_shared" = yes && enable_static=no
12622 fi
12623 ;;
12624 esac
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12626$as_echo "$enable_shared" >&6; }
1cf3d07d 12627
43e02a8a
RW
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12629$as_echo_n "checking whether to build static libraries... " >&6; }
12630 # Make sure either enable_shared or enable_static is yes.
12631 test "$enable_shared" = yes || enable_static=yes
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12633$as_echo "$enable_static" >&6; }
1cf3d07d 12634
1cf3d07d 12635
1cf3d07d 12636
1cf3d07d
SE
12637
12638fi
1cf3d07d
SE
12639ac_ext=c
12640ac_cpp='$CPP $CPPFLAGS'
12641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12643ac_compiler_gnu=$ac_cv_c_compiler_gnu
12644
43e02a8a
RW
12645CC="$lt_save_CC"
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659 ac_config_commands="$ac_config_commands libtool"
12660
12661
12662
12663
12664# Only expand once:
12665
12666
12667
12668
7de6ba7a
DK
12669
12670case $host in
12671 *-cygwin* | *-mingw*)
12672 # 'host' will be top-level target in the case of a target lib,
12673 # we must compare to with_cross_host to decide if this is a native
12674 # or cross-compiler and select where to install dlls appropriately.
12675 if test -n "$with_cross_host" &&
12676 test x"$with_cross_host" != x"no"; then
12677 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12678 else
12679 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12680 fi
12681 ;;
12682 *)
12683 lt_host_flags=
12684 ;;
12685esac
12686
12687
12688
12689
12690
43e02a8a 12691#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 12692
43e02a8a
RW
12693# We need gfortran to compile parts of the library
12694#AC_PROG_FC(gfortran)
12695FC="$GFORTRAN"
5213506e
RW
12696ac_ext=${ac_fc_srcext-f}
12697ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12698ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12699ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12700if test -n "$ac_tool_prefix"; then
43e02a8a 12701 for ac_prog in gfortran
1cf3d07d
SE
12702 do
12703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12704set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706$as_echo_n "checking for $ac_word... " >&6; }
12707if test "${ac_cv_prog_FC+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12709else
12710 if test -n "$FC"; then
12711 ac_cv_prog_FC="$FC" # Let the user override the test.
12712else
12713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714for as_dir in $PATH
12715do
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
5213506e
RW
12718 for ac_exec_ext in '' $ac_executable_extensions; do
12719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12720 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 12721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12722 break 2
12723 fi
12724done
5213506e
RW
12725 done
12726IFS=$as_save_IFS
1cf3d07d
SE
12727
12728fi
12729fi
12730FC=$ac_cv_prog_FC
12731if test -n "$FC"; then
5213506e
RW
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12733$as_echo "$FC" >&6; }
1cf3d07d 12734else
5213506e
RW
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736$as_echo "no" >&6; }
1cf3d07d
SE
12737fi
12738
5213506e 12739
1cf3d07d
SE
12740 test -n "$FC" && break
12741 done
12742fi
12743if test -z "$FC"; then
12744 ac_ct_FC=$FC
43e02a8a 12745 for ac_prog in gfortran
1cf3d07d
SE
12746do
12747 # Extract the first word of "$ac_prog", so it can be a program name with args.
12748set dummy $ac_prog; ac_word=$2
5213506e
RW
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750$as_echo_n "checking for $ac_word... " >&6; }
12751if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12753else
12754 if test -n "$ac_ct_FC"; then
12755 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12756else
12757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758for as_dir in $PATH
12759do
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
5213506e
RW
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12764 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 12765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12766 break 2
12767 fi
12768done
5213506e
RW
12769 done
12770IFS=$as_save_IFS
1cf3d07d
SE
12771
12772fi
12773fi
12774ac_ct_FC=$ac_cv_prog_ac_ct_FC
12775if test -n "$ac_ct_FC"; then
5213506e
RW
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12777$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 12778else
5213506e
RW
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780$as_echo "no" >&6; }
1cf3d07d
SE
12781fi
12782
5213506e 12783
1cf3d07d 12784 test -n "$ac_ct_FC" && break
38d24731
RW
12785done
12786
5213506e
RW
12787 if test "x$ac_ct_FC" = x; then
12788 FC=""
12789 else
12790 case $cross_compiling:$ac_tool_warned in
12791yes:)
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12794ac_tool_warned=yes ;;
12795esac
12796 FC=$ac_ct_FC
12797 fi
1cf3d07d
SE
12798fi
12799
12800
12801# Provide some information about the compiler.
5213506e
RW
12802$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12803set X $ac_compile
12804ac_compiler=$2
12805for ac_option in --version -v -V -qversion; do
12806 { { ac_try="$ac_compiler $ac_option >&5"
12807case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12810esac
12811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12812$as_echo "$ac_try_echo"; } >&5
12813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 12814 ac_status=$?
5213506e
RW
12815 if test -s conftest.err; then
12816 sed '10a\
12817... rest of stderr output deleted ...
12818 10q' conftest.err >conftest.er1
12819 cat conftest.er1 >&5
12820 rm -f conftest.er1 conftest.err
12821 fi
12822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12823 test $ac_status = 0; }
12824done
1cf3d07d
SE
12825rm -f a.out
12826
12827# If we don't use `.F' as extension, the preprocessor is not run on the
12828# input file. (Note that this only needs to work for GNU compilers.)
12829ac_save_ext=$ac_ext
12830ac_ext=F
5213506e
RW
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12832$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12833if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
1cf3d07d 12835else
5213506e 12836 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12837 program main
12838#ifndef __GNUC__
12839 choke me
12840#endif
12841
12842 end
12843_ACEOF
5213506e 12844if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12845 ac_compiler_gnu=yes
12846else
5213506e 12847 ac_compiler_gnu=no
1cf3d07d 12848fi
5213506e 12849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12850ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12851
12852fi
5213506e
RW
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12854$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 12855ac_ext=$ac_save_ext
5213506e
RW
12856ac_test_FCFLAGS=${FCFLAGS+set}
12857ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 12858FCFLAGS=
5213506e
RW
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12860$as_echo_n "checking whether $FC accepts -g... " >&6; }
12861if test "${ac_cv_prog_fc_g+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12863else
12864 FCFLAGS=-g
5213506e 12865cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12866 program main
12867
12868 end
12869_ACEOF
5213506e 12870if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12871 ac_cv_prog_fc_g=yes
12872else
5213506e 12873 ac_cv_prog_fc_g=no
1cf3d07d 12874fi
5213506e 12875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12876
12877fi
5213506e
RW
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12879$as_echo "$ac_cv_prog_fc_g" >&6; }
12880if test "$ac_test_FCFLAGS" = set; then
12881 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
12882elif test $ac_cv_prog_fc_g = yes; then
12883 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12884 FCFLAGS="-g -O2"
12885 else
12886 FCFLAGS="-g"
12887 fi
12888else
12889 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12890 FCFLAGS="-O2"
12891 else
12892 FCFLAGS=
12893 fi
12894fi
12895
12896ac_ext=c
12897ac_cpp='$CPP $CPPFLAGS'
12898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12900ac_compiler_gnu=$ac_cv_c_compiler_gnu
12901
5213506e
RW
12902 ac_ext=${ac_fc_srcext-f}
12903ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12904ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12905ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12906
12907
43e02a8a
RW
12908if test -z "$FC" || test "X$FC" = "Xno"; then
12909 _lt_disable_FC=yes
12910fi
12911
1cf3d07d
SE
12912archive_cmds_need_lc_FC=no
12913allow_undefined_flag_FC=
12914always_export_symbols_FC=no
12915archive_expsym_cmds_FC=
12916export_dynamic_flag_spec_FC=
12917hardcode_direct_FC=no
12918hardcode_direct_absolute_FC=no
12919hardcode_libdir_flag_spec_FC=
12920hardcode_libdir_flag_spec_ld_FC=
12921hardcode_libdir_separator_FC=
12922hardcode_minus_L_FC=no
12923hardcode_automatic_FC=no
12924inherit_rpath_FC=no
12925module_cmds_FC=
12926module_expsym_cmds_FC=
12927link_all_deplibs_FC=unknown
12928old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
12929reload_flag_FC=$reload_flag
12930reload_cmds_FC=$reload_cmds
1cf3d07d
SE
12931no_undefined_flag_FC=
12932whole_archive_flag_spec_FC=
12933enable_shared_with_static_runtimes_FC=no
12934
12935# Source file extension for fc test sources.
12936ac_ext=${ac_fc_srcext-f}
12937
12938# Object file extension for compiled fc test sources.
12939objext=o
12940objext_FC=$objext
12941
12942# No sense in running all these tests if we already determined that
12943# the FC compiler isn't working. Some variables (like enable_shared)
12944# are currently assumed to apply to all compilers on this platform,
12945# and will be corrupted by setting them based on a non-working compiler.
12946if test "$_lt_disable_FC" != yes; then
12947 # Code to be used in simple compile tests
12948 lt_simple_compile_test_code="\
12949 subroutine t
12950 return
12951 end
12952"
12953
12954 # Code to be used in simple link tests
12955 lt_simple_link_test_code="\
12956 program t
12957 end
12958"
12959
12960 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12961
12962
12963
12964
12965
12966
12967# If no C compiler was specified, use CC.
12968LTCC=${LTCC-"$CC"}
12969
12970# If no C compiler flags were specified, use CFLAGS.
12971LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12972
12973# Allow CC to be a program name with arguments.
12974compiler=$CC
12975
12976
12977 # save warnings/boilerplate of simple test code
12978 ac_outfile=conftest.$ac_objext
12979echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12980eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12981_lt_compiler_boilerplate=`cat conftest.err`
12982$RM conftest*
12983
12984 ac_outfile=conftest.$ac_objext
12985echo "$lt_simple_link_test_code" >conftest.$ac_ext
12986eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12987_lt_linker_boilerplate=`cat conftest.err`
d58dead8 12988$RM -r conftest*
1cf3d07d
SE
12989
12990
12991 # Allow CC to be a program name with arguments.
12992 lt_save_CC="$CC"
d58dead8 12993 lt_save_GCC=$GCC
1cf3d07d
SE
12994 CC=${FC-"f95"}
12995 compiler=$CC
d58dead8
PG
12996 GCC=$ac_cv_fc_compiler_gnu
12997
1cf3d07d
SE
12998 compiler_FC=$CC
12999 for cc_temp in $compiler""; do
13000 case $cc_temp in
13001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13003 \-*) ;;
13004 *) break;;
13005 esac
13006done
43e02a8a 13007cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
13008
13009
13010 if test -n "$compiler"; then
5213506e
RW
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13012$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13014$as_echo "$can_build_shared" >&6; }
1cf3d07d 13015
5213506e
RW
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13017$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
13018 test "$can_build_shared" = "no" && enable_shared=no
13019
13020 # On AIX, shared libraries and static libraries use the same namespace, and
13021 # are all built from PIC.
13022 case $host_os in
13023 aix3*)
13024 test "$enable_shared" = yes && enable_static=no
13025 if test -n "$RANLIB"; then
13026 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13027 postinstall_cmds='$RANLIB $lib'
13028 fi
13029 ;;
4f6bebc3 13030 aix[4-9]*)
1cf3d07d
SE
13031 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13032 test "$enable_shared" = yes && enable_static=no
13033 fi
13034 ;;
13035 esac
5213506e
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13037$as_echo "$enable_shared" >&6; }
1cf3d07d 13038
5213506e
RW
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13040$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
13041 # Make sure either enable_shared or enable_static is yes.
13042 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13044$as_echo "$enable_static" >&6; }
1cf3d07d
SE
13045
13046 GCC_FC="$ac_cv_fc_compiler_gnu"
13047 LD_FC="$LD"
13048
13049 ## CAVEAT EMPTOR:
13050 ## There is no encapsulation within the following macros, do not change
13051 ## the running order or otherwise move them around unless you know exactly
13052 ## what you are doing...
13053 # Dependencies to place before and after the object being linked:
13054predep_objects_FC=
13055postdep_objects_FC=
13056predeps_FC=
13057postdeps_FC=
13058compiler_lib_search_path_FC=
13059
13060cat > conftest.$ac_ext <<_LT_EOF
13061 subroutine foo
13062 implicit none
13063 integer a
13064 a=0
13065 return
13066 end
13067_LT_EOF
13068
5213506e 13069if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
13070 (eval $ac_compile) 2>&5
13071 ac_status=$?
5213506e
RW
13072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073 test $ac_status = 0; }; then
1cf3d07d
SE
13074 # Parse the compiler output and extract the necessary
13075 # objects, libraries and library flags.
13076
13077 # Sentinel used to keep track of whether or not we are before
13078 # the conftest object file.
13079 pre_test_object_deps_done=no
13080
d58dead8 13081 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13082 case $p in
13083
13084 -L* | -R* | -l*)
13085 # Some compilers place space between "-{L,R}" and the path.
13086 # Remove the space.
13087 if test $p = "-L" ||
13088 test $p = "-R"; then
13089 prev=$p
13090 continue
13091 else
13092 prev=
13093 fi
13094
13095 if test "$pre_test_object_deps_done" = no; then
13096 case $p in
13097 -L* | -R*)
13098 # Internal compiler library paths should come after those
13099 # provided the user. The postdeps already come after the
13100 # user supplied libs so there is no need to process them.
13101 if test -z "$compiler_lib_search_path_FC"; then
13102 compiler_lib_search_path_FC="${prev}${p}"
13103 else
13104 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13105 fi
13106 ;;
13107 # The "-l" case would never come before the object being
13108 # linked, so don't bother handling this case.
13109 esac
13110 else
13111 if test -z "$postdeps_FC"; then
13112 postdeps_FC="${prev}${p}"
13113 else
13114 postdeps_FC="${postdeps_FC} ${prev}${p}"
13115 fi
13116 fi
13117 ;;
13118
13119 *.$objext)
13120 # This assumes that the test object file only shows up
13121 # once in the compiler output.
13122 if test "$p" = "conftest.$objext"; then
13123 pre_test_object_deps_done=yes
13124 continue
13125 fi
13126
13127 if test "$pre_test_object_deps_done" = no; then
13128 if test -z "$predep_objects_FC"; then
13129 predep_objects_FC="$p"
13130 else
13131 predep_objects_FC="$predep_objects_FC $p"
13132 fi
13133 else
13134 if test -z "$postdep_objects_FC"; then
13135 postdep_objects_FC="$p"
13136 else
13137 postdep_objects_FC="$postdep_objects_FC $p"
13138 fi
13139 fi
13140 ;;
13141
13142 *) ;; # Ignore the rest.
13143
13144 esac
13145 done
13146
13147 # Clean up.
13148 rm -f a.out a.exe
13149else
13150 echo "libtool.m4: error: problem compiling FC test program"
13151fi
13152
13153$RM -f confest.$objext
13154
13155# PORTME: override above test on systems where it is broken
13156
13157
13158case " $postdeps_FC " in
13159*" -lc "*) archive_cmds_need_lc_FC=no ;;
13160esac
d58dead8
PG
13161 compiler_lib_search_dirs_FC=
13162if test -n "${compiler_lib_search_path_FC}"; then
13163 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13164fi
13165
13166
13167
13168
13169
1cf3d07d
SE
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196 lt_prog_compiler_wl_FC=
13197lt_prog_compiler_pic_FC=
13198lt_prog_compiler_static_FC=
13199
5213506e
RW
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13201$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
13202
13203 if test "$GCC" = yes; then
13204 lt_prog_compiler_wl_FC='-Wl,'
13205 lt_prog_compiler_static_FC='-static'
13206
13207 case $host_os in
13208 aix*)
13209 # All AIX code is PIC.
13210 if test "$host_cpu" = ia64; then
13211 # AIX 5 now supports IA64 processor
13212 lt_prog_compiler_static_FC='-Bstatic'
13213 fi
13214 ;;
13215
13216 amigaos*)
d58dead8
PG
13217 case $host_cpu in
13218 powerpc)
13219 # see comment about AmigaOS4 .so support
13220 lt_prog_compiler_pic_FC='-fPIC'
13221 ;;
13222 m68k)
13223 # FIXME: we need at least 68020 code to build shared libraries, but
13224 # adding the `-m68020' flag to GCC prevents building anything better,
13225 # like `-m68040'.
13226 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13227 ;;
13228 esac
1cf3d07d
SE
13229 ;;
13230
13231 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13232 # PIC is the default for these OSes.
13233 ;;
13234
d58dead8 13235 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13236 # This hack is so that the source file can tell whether it is being
13237 # built for inclusion in a dll (and should export symbols for example).
13238 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13239 # (--disable-auto-import) libraries
13240 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13241 ;;
13242
13243 darwin* | rhapsody*)
13244 # PIC is the default on this platform
13245 # Common symbols not allowed in MH_DYLIB files
13246 lt_prog_compiler_pic_FC='-fno-common'
13247 ;;
13248
43e02a8a
RW
13249 haiku*)
13250 # PIC is the default for Haiku.
13251 # The "-static" flag exists, but is broken.
13252 lt_prog_compiler_static_FC=
13253 ;;
13254
1cf3d07d 13255 hpux*)
d58dead8
PG
13256 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13257 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13258 # sets the default TLS model and affects inlining.
1cf3d07d 13259 case $host_cpu in
d58dead8 13260 hppa*64*)
1cf3d07d
SE
13261 # +Z the default
13262 ;;
13263 *)
13264 lt_prog_compiler_pic_FC='-fPIC'
13265 ;;
13266 esac
13267 ;;
13268
13269 interix[3-9]*)
13270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13271 # Instead, we relocate shared libraries at runtime.
13272 ;;
13273
13274 msdosdjgpp*)
13275 # Just because we use GCC doesn't mean we suddenly get shared libraries
13276 # on systems that don't support them.
13277 lt_prog_compiler_can_build_shared_FC=no
13278 enable_shared=no
13279 ;;
13280
13281 *nto* | *qnx*)
13282 # QNX uses GNU C++, but need to define -shared option too, otherwise
13283 # it will coredump.
13284 lt_prog_compiler_pic_FC='-fPIC -shared'
13285 ;;
13286
13287 sysv4*MP*)
13288 if test -d /usr/nec; then
13289 lt_prog_compiler_pic_FC=-Kconform_pic
13290 fi
13291 ;;
13292
13293 *)
13294 lt_prog_compiler_pic_FC='-fPIC'
13295 ;;
13296 esac
43e02a8a
RW
13297
13298 case $cc_basename in
13299 nvcc*) # Cuda Compiler Driver 2.2
13300 lt_prog_compiler_wl_FC='-Xlinker '
13301 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13302 ;;
13303 esac
1cf3d07d
SE
13304 else
13305 # PORTME Check for flag to pass linker flags through the system compiler.
13306 case $host_os in
13307 aix*)
13308 lt_prog_compiler_wl_FC='-Wl,'
13309 if test "$host_cpu" = ia64; then
13310 # AIX 5 now supports IA64 processor
13311 lt_prog_compiler_static_FC='-Bstatic'
13312 else
13313 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13314 fi
13315 ;;
1cf3d07d 13316
d58dead8 13317 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13318 # This hack is so that the source file can tell whether it is being
13319 # built for inclusion in a dll (and should export symbols for example).
13320 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13321 ;;
13322
13323 hpux9* | hpux10* | hpux11*)
13324 lt_prog_compiler_wl_FC='-Wl,'
13325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13326 # not for PA HP-UX.
13327 case $host_cpu in
13328 hppa*64*|ia64*)
13329 # +Z the default
13330 ;;
13331 *)
13332 lt_prog_compiler_pic_FC='+Z'
13333 ;;
13334 esac
13335 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13336 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13337 ;;
13338
13339 irix5* | irix6* | nonstopux*)
13340 lt_prog_compiler_wl_FC='-Wl,'
13341 # PIC (with -KPIC) is the default.
13342 lt_prog_compiler_static_FC='-non_shared'
13343 ;;
13344
7a9d3fe8 13345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13346 case $cc_basename in
d58dead8
PG
13347 # old Intel for x86_64 which still supported -KPIC.
13348 ecc*)
1cf3d07d
SE
13349 lt_prog_compiler_wl_FC='-Wl,'
13350 lt_prog_compiler_pic_FC='-KPIC'
13351 lt_prog_compiler_static_FC='-static'
13352 ;;
d58dead8
PG
13353 # icc used to be incompatible with GCC.
13354 # ICC 10 doesn't accept -KPIC any more.
13355 icc* | ifort*)
13356 lt_prog_compiler_wl_FC='-Wl,'
13357 lt_prog_compiler_pic_FC='-fPIC'
13358 lt_prog_compiler_static_FC='-static'
13359 ;;
13360 # Lahey Fortran 8.1.
13361 lf95*)
13362 lt_prog_compiler_wl_FC='-Wl,'
13363 lt_prog_compiler_pic_FC='--shared'
13364 lt_prog_compiler_static_FC='--static'
13365 ;;
43e02a8a 13366 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13367 # Portland Group compilers (*not* the Pentium gcc compiler,
13368 # which looks to be a dead project)
13369 lt_prog_compiler_wl_FC='-Wl,'
13370 lt_prog_compiler_pic_FC='-fpic'
13371 lt_prog_compiler_static_FC='-Bstatic'
13372 ;;
13373 ccc*)
13374 lt_prog_compiler_wl_FC='-Wl,'
13375 # All Alpha code is PIC.
13376 lt_prog_compiler_static_FC='-non_shared'
13377 ;;
43e02a8a
RW
13378 xl* | bgxl* | bgf* | mpixl*)
13379 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13380 lt_prog_compiler_wl_FC='-Wl,'
13381 lt_prog_compiler_pic_FC='-qpic'
13382 lt_prog_compiler_static_FC='-qstaticlink'
13383 ;;
1cf3d07d
SE
13384 *)
13385 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
13386 *Sun\ F* | *Sun*Fortran*)
13387 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
13388 lt_prog_compiler_pic_FC='-KPIC'
13389 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13390 lt_prog_compiler_wl_FC=''
1cf3d07d 13391 ;;
43e02a8a
RW
13392 *Sun\ C*)
13393 # Sun C 5.9
1cf3d07d
SE
13394 lt_prog_compiler_pic_FC='-KPIC'
13395 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13396 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
13397 ;;
13398 esac
13399 ;;
13400 esac
13401 ;;
13402
13403 newsos6)
13404 lt_prog_compiler_pic_FC='-KPIC'
13405 lt_prog_compiler_static_FC='-Bstatic'
13406 ;;
13407
13408 *nto* | *qnx*)
13409 # QNX uses GNU C++, but need to define -shared option too, otherwise
13410 # it will coredump.
13411 lt_prog_compiler_pic_FC='-fPIC -shared'
13412 ;;
13413
13414 osf3* | osf4* | osf5*)
13415 lt_prog_compiler_wl_FC='-Wl,'
13416 # All OSF/1 code is PIC.
13417 lt_prog_compiler_static_FC='-non_shared'
13418 ;;
13419
13420 rdos*)
13421 lt_prog_compiler_static_FC='-non_shared'
13422 ;;
13423
13424 solaris*)
13425 lt_prog_compiler_pic_FC='-KPIC'
13426 lt_prog_compiler_static_FC='-Bstatic'
13427 case $cc_basename in
13428 f77* | f90* | f95*)
13429 lt_prog_compiler_wl_FC='-Qoption ld ';;
13430 *)
13431 lt_prog_compiler_wl_FC='-Wl,';;
13432 esac
13433 ;;
13434
13435 sunos4*)
13436 lt_prog_compiler_wl_FC='-Qoption ld '
13437 lt_prog_compiler_pic_FC='-PIC'
13438 lt_prog_compiler_static_FC='-Bstatic'
13439 ;;
13440
13441 sysv4 | sysv4.2uw2* | sysv4.3*)
13442 lt_prog_compiler_wl_FC='-Wl,'
13443 lt_prog_compiler_pic_FC='-KPIC'
13444 lt_prog_compiler_static_FC='-Bstatic'
13445 ;;
13446
13447 sysv4*MP*)
13448 if test -d /usr/nec ;then
13449 lt_prog_compiler_pic_FC='-Kconform_pic'
13450 lt_prog_compiler_static_FC='-Bstatic'
13451 fi
13452 ;;
13453
13454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13455 lt_prog_compiler_wl_FC='-Wl,'
13456 lt_prog_compiler_pic_FC='-KPIC'
13457 lt_prog_compiler_static_FC='-Bstatic'
13458 ;;
13459
13460 unicos*)
13461 lt_prog_compiler_wl_FC='-Wl,'
13462 lt_prog_compiler_can_build_shared_FC=no
13463 ;;
13464
13465 uts4*)
13466 lt_prog_compiler_pic_FC='-pic'
13467 lt_prog_compiler_static_FC='-Bstatic'
13468 ;;
13469
13470 *)
13471 lt_prog_compiler_can_build_shared_FC=no
13472 ;;
13473 esac
13474 fi
13475
13476case $host_os in
13477 # For platforms which do not support PIC, -DPIC is meaningless:
13478 *djgpp*)
13479 lt_prog_compiler_pic_FC=
13480 ;;
13481 *)
13482 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13483 ;;
13484esac
5213506e
RW
13485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13486$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
13487
13488
13489
13490#
13491# Check to make sure the PIC flag actually works.
13492#
13493if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13495$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13496if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
1cf3d07d 13498else
d58dead8 13499 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
13500 ac_outfile=conftest.$ac_objext
13501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13502 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13503 # Insert the option either (1) after the last *FLAGS variable, or
13504 # (2) before a word containing "conftest.", or (3) at the end.
13505 # Note that $ac_compile itself does not contain backslashes and begins
13506 # with a dollar sign (not a hyphen), so the echo should work correctly.
13507 # The option is referenced via a variable to avoid confusing sed.
13508 lt_compile=`echo "$ac_compile" | $SED \
13509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13511 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13513 (eval "$lt_compile" 2>conftest.err)
13514 ac_status=$?
13515 cat conftest.err >&5
43e02a8a 13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13517 if (exit $ac_status) && test -s "$ac_outfile"; then
13518 # The compiler can only warn and ignore the option if not recognized
13519 # So say no if there are warnings other than the usual output.
43e02a8a 13520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
13521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13523 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
13524 fi
13525 fi
13526 $RM conftest*
13527
13528fi
5213506e
RW
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13530$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 13531
d58dead8 13532if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
13533 case $lt_prog_compiler_pic_FC in
13534 "" | " "*) ;;
13535 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13536 esac
13537else
13538 lt_prog_compiler_pic_FC=
13539 lt_prog_compiler_can_build_shared_FC=no
13540fi
13541
13542fi
13543
13544
13545
13546#
13547# Check to make sure the static flag actually works.
13548#
13549wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13551$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13552if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
1cf3d07d 13554else
d58dead8 13555 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
13556 save_LDFLAGS="$LDFLAGS"
13557 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13558 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13560 # The linker can only warn and ignore the option if not recognized
13561 # So say no if there are warnings
13562 if test -s conftest.err; then
13563 # Append any errors to the config.log.
13564 cat conftest.err 1>&5
43e02a8a 13565 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
13566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13567 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13568 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13569 fi
13570 else
d58dead8 13571 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13572 fi
13573 fi
d58dead8 13574 $RM -r conftest*
1cf3d07d
SE
13575 LDFLAGS="$save_LDFLAGS"
13576
13577fi
5213506e
RW
13578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13579$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 13580
d58dead8 13581if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
13582 :
13583else
13584 lt_prog_compiler_static_FC=
13585fi
13586
13587
13588
13589
5213506e
RW
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13591$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13592if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13593 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13594else
13595 lt_cv_prog_compiler_c_o_FC=no
13596 $RM -r conftest 2>/dev/null
13597 mkdir conftest
13598 cd conftest
13599 mkdir out
13600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13601
13602 lt_compiler_flag="-o out/conftest2.$ac_objext"
13603 # Insert the option either (1) after the last *FLAGS variable, or
13604 # (2) before a word containing "conftest.", or (3) at the end.
13605 # Note that $ac_compile itself does not contain backslashes and begins
13606 # with a dollar sign (not a hyphen), so the echo should work correctly.
13607 lt_compile=`echo "$ac_compile" | $SED \
13608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13610 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13612 (eval "$lt_compile" 2>out/conftest.err)
13613 ac_status=$?
13614 cat out/conftest.err >&5
43e02a8a 13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13617 then
13618 # The compiler can only warn and ignore the option if not recognized
13619 # So say no if there are warnings
43e02a8a 13620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13623 lt_cv_prog_compiler_c_o_FC=yes
13624 fi
13625 fi
13626 chmod u+w . 2>&5
13627 $RM conftest*
13628 # SGI C++ compiler will create directory out/ii_files/ for
13629 # template instantiation
13630 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13631 $RM out/* && rmdir out
13632 cd ..
13633 $RM -r conftest
13634 $RM conftest*
13635
13636fi
5213506e
RW
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13638$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13639
13640
13641
5213506e
RW
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13644if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13646else
13647 lt_cv_prog_compiler_c_o_FC=no
13648 $RM -r conftest 2>/dev/null
13649 mkdir conftest
13650 cd conftest
13651 mkdir out
13652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13653
13654 lt_compiler_flag="-o out/conftest2.$ac_objext"
13655 # Insert the option either (1) after the last *FLAGS variable, or
13656 # (2) before a word containing "conftest.", or (3) at the end.
13657 # Note that $ac_compile itself does not contain backslashes and begins
13658 # with a dollar sign (not a hyphen), so the echo should work correctly.
13659 lt_compile=`echo "$ac_compile" | $SED \
13660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13662 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13664 (eval "$lt_compile" 2>out/conftest.err)
13665 ac_status=$?
13666 cat out/conftest.err >&5
43e02a8a 13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13669 then
13670 # The compiler can only warn and ignore the option if not recognized
13671 # So say no if there are warnings
43e02a8a 13672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13675 lt_cv_prog_compiler_c_o_FC=yes
13676 fi
13677 fi
13678 chmod u+w . 2>&5
13679 $RM conftest*
13680 # SGI C++ compiler will create directory out/ii_files/ for
13681 # template instantiation
13682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13683 $RM out/* && rmdir out
13684 cd ..
13685 $RM -r conftest
13686 $RM conftest*
13687
13688fi
5213506e
RW
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13690$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13691
13692
13693
13694
13695hard_links="nottested"
13696if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13697 # do not overwrite the value of need_locks provided by the user
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13699$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
13700 hard_links=yes
13701 $RM conftest*
13702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13703 touch conftest.a
13704 ln conftest.a conftest.b 2>&5 || hard_links=no
13705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13707$as_echo "$hard_links" >&6; }
1cf3d07d 13708 if test "$hard_links" = no; then
5213506e
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13710$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
13711 need_locks=warn
13712 fi
13713else
13714 need_locks=no
13715fi
13716
13717
13718
5213506e
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13720$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
13721
13722 runpath_var=
13723 allow_undefined_flag_FC=
13724 always_export_symbols_FC=no
13725 archive_cmds_FC=
13726 archive_expsym_cmds_FC=
13727 compiler_needs_object_FC=no
13728 enable_shared_with_static_runtimes_FC=no
13729 export_dynamic_flag_spec_FC=
13730 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13731 hardcode_automatic_FC=no
13732 hardcode_direct_FC=no
13733 hardcode_direct_absolute_FC=no
13734 hardcode_libdir_flag_spec_FC=
13735 hardcode_libdir_flag_spec_ld_FC=
13736 hardcode_libdir_separator_FC=
13737 hardcode_minus_L_FC=no
13738 hardcode_shlibpath_var_FC=unsupported
13739 inherit_rpath_FC=no
13740 link_all_deplibs_FC=unknown
13741 module_cmds_FC=
13742 module_expsym_cmds_FC=
13743 old_archive_from_new_cmds_FC=
13744 old_archive_from_expsyms_cmds_FC=
13745 thread_safe_flag_spec_FC=
13746 whole_archive_flag_spec_FC=
13747 # include_expsyms should be a list of space-separated symbols to be *always*
13748 # included in the symbol list
13749 include_expsyms_FC=
13750 # exclude_expsyms can be an extended regexp of symbols to exclude
13751 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13752 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13753 # as well as any symbol that contains `d'.
d58dead8 13754 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
13755 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13756 # platforms (ab)use it in PIC code, but their linkers get confused if
13757 # the symbol is explicitly referenced. Since portable code cannot
13758 # rely on this symbol name, it's probably fine to never include it in
13759 # preloaded symbol tables.
d58dead8 13760 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
13761 extract_expsyms_cmds=
13762
13763 case $host_os in
d58dead8 13764 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13765 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13766 # When not using gcc, we currently assume that we are using
13767 # Microsoft Visual C++.
13768 if test "$GCC" != yes; then
13769 with_gnu_ld=no
13770 fi
13771 ;;
13772 interix*)
13773 # we just hope/assume this is gcc and not c89 (= MSVC++)
13774 with_gnu_ld=yes
13775 ;;
13776 openbsd*)
13777 with_gnu_ld=no
13778 ;;
13779 esac
13780
13781 ld_shlibs_FC=yes
43e02a8a
RW
13782
13783 # On some targets, GNU ld is compatible enough with the native linker
13784 # that we're better off using the native interface for both.
13785 lt_use_gnu_ld_interface=no
1cf3d07d 13786 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
13787 case $host_os in
13788 aix*)
13789 # The AIX port of GNU ld has always aspired to compatibility
13790 # with the native linker. However, as the warning in the GNU ld
13791 # block says, versions before 2.19.5* couldn't really create working
13792 # shared libraries, regardless of the interface used.
13793 case `$LD -v 2>&1` in
13794 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13795 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13796 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13797 *)
13798 lt_use_gnu_ld_interface=yes
13799 ;;
13800 esac
13801 ;;
13802 *)
13803 lt_use_gnu_ld_interface=yes
13804 ;;
13805 esac
13806 fi
13807
13808 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
13809 # If archive_cmds runs LD, not CC, wlarc should be empty
13810 wlarc='${wl}'
13811
13812 # Set some defaults for GNU ld with shared library support. These
13813 # are reset later if shared libraries are not supported. Putting them
13814 # here allows them to be overridden if necessary.
13815 runpath_var=LD_RUN_PATH
13816 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13817 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13818 # ancient GNU ld didn't support --whole-archive et. al.
13819 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13820 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13821 else
13822 whole_archive_flag_spec_FC=
13823 fi
13824 supports_anon_versioning=no
13825 case `$LD -v 2>&1` in
43e02a8a 13826 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
13827 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13828 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13829 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13830 *\ 2.11.*) ;; # other 2.11 versions
13831 *) supports_anon_versioning=yes ;;
13832 esac
13833
13834 # See if GNU ld supports shared libraries.
13835 case $host_os in
4f6bebc3 13836 aix[3-9]*)
1cf3d07d
SE
13837 # On AIX/PPC, the GNU linker is very broken
13838 if test "$host_cpu" != ia64; then
13839 ld_shlibs_FC=no
13840 cat <<_LT_EOF 1>&2
13841
43e02a8a 13842*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
13843*** to be unable to reliably create shared libraries on AIX.
13844*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
13845*** really care for shared libraries, you may want to install binutils
13846*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13847*** You will then need to restart the configuration process.
1cf3d07d
SE
13848
13849_LT_EOF
13850 fi
13851 ;;
13852
13853 amigaos*)
d58dead8
PG
13854 case $host_cpu in
13855 powerpc)
13856 # see comment about AmigaOS4 .so support
13857 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13858 archive_expsym_cmds_FC=''
13859 ;;
13860 m68k)
13861 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)'
13862 hardcode_libdir_flag_spec_FC='-L$libdir'
13863 hardcode_minus_L_FC=yes
13864 ;;
13865 esac
1cf3d07d
SE
13866 ;;
13867
13868 beos*)
13869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13870 allow_undefined_flag_FC=unsupported
13871 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13872 # support --undefined. This deserves some investigation. FIXME
13873 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13874 else
13875 ld_shlibs_FC=no
13876 fi
13877 ;;
13878
d58dead8 13879 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13880 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13881 # as there is no search path for DLLs.
13882 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 13883 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
13884 allow_undefined_flag_FC=unsupported
13885 always_export_symbols_FC=no
13886 enable_shared_with_static_runtimes_FC=yes
13887 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13888
13889 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13890 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13891 # If the export-symbols file already is a .def file (1st line
13892 # is EXPORTS), use it as is; otherwise, prepend...
13893 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13894 cp $export_symbols $output_objdir/$soname.def;
13895 else
13896 echo EXPORTS > $output_objdir/$soname.def;
13897 cat $export_symbols >> $output_objdir/$soname.def;
13898 fi~
13899 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13900 else
13901 ld_shlibs_FC=no
13902 fi
13903 ;;
13904
43e02a8a
RW
13905 haiku*)
13906 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13907 link_all_deplibs_FC=yes
13908 ;;
13909
1cf3d07d
SE
13910 interix[3-9]*)
13911 hardcode_direct_FC=no
13912 hardcode_shlibpath_var_FC=no
13913 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13914 export_dynamic_flag_spec_FC='${wl}-E'
13915 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13916 # Instead, shared libraries are loaded at an image base (0x10000000 by
13917 # default) and relocated if they conflict, which is a slow very memory
13918 # consuming and fragmenting process. To avoid this, we pick a random,
13919 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13920 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13921 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'
13922 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'
13923 ;;
13924
7a9d3fe8 13925 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
13926 tmp_diet=no
13927 if test "$host_os" = linux-dietlibc; then
13928 case $cc_basename in
13929 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13930 esac
13931 fi
13932 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13933 && test "$tmp_diet" = no
13934 then
13935 tmp_addflag=
d58dead8 13936 tmp_sharedflag='-shared'
1cf3d07d
SE
13937 case $cc_basename,$host_cpu in
13938 pgcc*) # Portland Group C compiler
43e02a8a 13939 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
13940 tmp_addflag=' $pic_flag'
13941 ;;
43e02a8a
RW
13942 pgf77* | pgf90* | pgf95* | pgfortran*)
13943 # Portland Group f77 and f90 compilers
13944 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
13945 tmp_addflag=' $pic_flag -Mnomain' ;;
13946 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13947 tmp_addflag=' -i_dynamic' ;;
13948 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13949 tmp_addflag=' -i_dynamic -nofor_main' ;;
13950 ifc* | ifort*) # Intel Fortran compiler
13951 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
13952 lf95*) # Lahey Fortran 8.1
13953 whole_archive_flag_spec_FC=
13954 tmp_sharedflag='--shared' ;;
43e02a8a 13955 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
13956 tmp_sharedflag='-qmkshrobj'
13957 tmp_addflag= ;;
43e02a8a
RW
13958 nvcc*) # Cuda Compiler Driver 2.2
13959 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'
13960 compiler_needs_object_FC=yes
13961 ;;
1cf3d07d
SE
13962 esac
13963 case `$CC -V 2>&1 | sed 5q` in
13964 *Sun\ C*) # Sun C 5.9
43e02a8a 13965 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
13966 compiler_needs_object_FC=yes
13967 tmp_sharedflag='-G' ;;
13968 *Sun\ F*) # Sun Fortran 8.3
13969 tmp_sharedflag='-G' ;;
1cf3d07d
SE
13970 esac
13971 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13972
13973 if test "x$supports_anon_versioning" = xyes; then
13974 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13976 echo "local: *; };" >> $output_objdir/$libname.ver~
13977 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13978 fi
d58dead8
PG
13979
13980 case $cc_basename in
43e02a8a 13981 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
13982 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13983 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13984 hardcode_libdir_flag_spec_FC=
13985 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13986 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13987 if test "x$supports_anon_versioning" = xyes; then
13988 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13990 echo "local: *; };" >> $output_objdir/$libname.ver~
13991 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13992 fi
13993 ;;
13994 esac
1cf3d07d
SE
13995 else
13996 ld_shlibs_FC=no
13997 fi
13998 ;;
13999
14000 netbsd*)
14001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14002 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14003 wlarc=
14004 else
14005 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14007 fi
14008 ;;
14009
14010 solaris*)
14011 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14012 ld_shlibs_FC=no
14013 cat <<_LT_EOF 1>&2
14014
14015*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14016*** create shared libraries on Solaris systems. Therefore, libtool
14017*** is disabling shared libraries support. We urge you to upgrade GNU
14018*** binutils to release 2.9.1 or newer. Another option is to modify
14019*** your PATH or compiler configuration so that the native linker is
14020*** used, and then restart.
14021
14022_LT_EOF
14023 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14024 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14025 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14026 else
14027 ld_shlibs_FC=no
14028 fi
14029 ;;
14030
14031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14032 case `$LD -v 2>&1` in
14033 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14034 ld_shlibs_FC=no
14035 cat <<_LT_EOF 1>&2
14036
14037*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14038*** reliably create shared libraries on SCO systems. Therefore, libtool
14039*** is disabling shared libraries support. We urge you to upgrade GNU
14040*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14041*** your PATH or compiler configuration so that the native linker is
14042*** used, and then restart.
14043
14044_LT_EOF
14045 ;;
14046 *)
14047 # For security reasons, it is highly recommended that you always
14048 # use absolute paths for naming shared libraries, and exclude the
14049 # DT_RUNPATH tag from executables and libraries. But doing so
14050 # requires that you compile everything twice, which is a pain.
14051 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14052 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14053 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14054 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14055 else
14056 ld_shlibs_FC=no
14057 fi
14058 ;;
14059 esac
14060 ;;
14061
14062 sunos4*)
14063 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14064 wlarc=
14065 hardcode_direct_FC=yes
14066 hardcode_shlibpath_var_FC=no
14067 ;;
14068
14069 *)
14070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14071 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14072 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14073 else
14074 ld_shlibs_FC=no
14075 fi
14076 ;;
14077 esac
14078
14079 if test "$ld_shlibs_FC" = no; then
14080 runpath_var=
14081 hardcode_libdir_flag_spec_FC=
14082 export_dynamic_flag_spec_FC=
14083 whole_archive_flag_spec_FC=
14084 fi
14085 else
14086 # PORTME fill in a description of your system's linker (not GNU ld)
14087 case $host_os in
14088 aix3*)
14089 allow_undefined_flag_FC=unsupported
14090 always_export_symbols_FC=yes
14091 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'
14092 # Note: this linker hardcodes the directories in LIBPATH if there
14093 # are no directories specified by -L.
14094 hardcode_minus_L_FC=yes
14095 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14096 # Neither direct hardcoding nor static linking is supported with a
14097 # broken collect2.
14098 hardcode_direct_FC=unsupported
14099 fi
14100 ;;
14101
4f6bebc3 14102 aix[4-9]*)
1cf3d07d
SE
14103 if test "$host_cpu" = ia64; then
14104 # On IA64, the linker does run time linking by default, so we don't
14105 # have to do anything special.
14106 aix_use_runtimelinking=no
14107 exp_sym_flag='-Bexport'
14108 no_entry_flag=""
14109 else
14110 # If we're using GNU nm, then we don't want the "-C" option.
14111 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
14112 # Also, AIX nm treats weak defined symbols like other global
14113 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 14114 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 14115 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
14116 else
14117 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14118 fi
14119 aix_use_runtimelinking=no
14120
14121 # Test if we are trying to use run time linking or normal
14122 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14123 # need to do runtime linking.
4f6bebc3 14124 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
14125 for ld_flag in $LDFLAGS; do
14126 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14127 aix_use_runtimelinking=yes
14128 break
14129 fi
14130 done
14131 ;;
14132 esac
14133
14134 exp_sym_flag='-bexport'
14135 no_entry_flag='-bnoentry'
14136 fi
14137
14138 # When large executables or shared objects are built, AIX ld can
14139 # have problems creating the table of contents. If linking a library
14140 # or program results in "error TOC overflow" add -mminimal-toc to
14141 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14142 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14143
14144 archive_cmds_FC=''
14145 hardcode_direct_FC=yes
14146 hardcode_direct_absolute_FC=yes
14147 hardcode_libdir_separator_FC=':'
14148 link_all_deplibs_FC=yes
14149 file_list_spec_FC='${wl}-f,'
14150
14151 if test "$GCC" = yes; then
14152 case $host_os in aix4.[012]|aix4.[012].*)
14153 # We only want to do this on AIX 4.2 and lower, the check
14154 # below for broken collect2 doesn't work under 4.3+
14155 collect2name=`${CC} -print-prog-name=collect2`
14156 if test -f "$collect2name" &&
14157 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14158 then
14159 # We have reworked collect2
14160 :
14161 else
14162 # We have old collect2
14163 hardcode_direct_FC=unsupported
14164 # It fails to find uninstalled libraries when the uninstalled
14165 # path is not listed in the libpath. Setting hardcode_minus_L
14166 # to unsupported forces relinking
14167 hardcode_minus_L_FC=yes
14168 hardcode_libdir_flag_spec_FC='-L$libdir'
14169 hardcode_libdir_separator_FC=
14170 fi
14171 ;;
14172 esac
14173 shared_flag='-shared'
14174 if test "$aix_use_runtimelinking" = yes; then
14175 shared_flag="$shared_flag "'${wl}-G'
14176 fi
14177 else
14178 # not using gcc
14179 if test "$host_cpu" = ia64; then
14180 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14181 # chokes on -Wl,-G. The following line is correct:
14182 shared_flag='-G'
14183 else
14184 if test "$aix_use_runtimelinking" = yes; then
14185 shared_flag='${wl}-G'
14186 else
14187 shared_flag='${wl}-bM:SRE'
14188 fi
14189 fi
14190 fi
14191
d58dead8 14192 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
14193 # It seems that -bexpall does not export symbols beginning with
14194 # underscore (_), so it is better to generate a list of symbols to export.
14195 always_export_symbols_FC=yes
14196 if test "$aix_use_runtimelinking" = yes; then
14197 # Warning - without using the other runtime loading flags (-brtl),
14198 # -berok will link without error, but may produce a broken library.
14199 allow_undefined_flag_FC='-berok'
14200 # Determine the default libpath from the value encoded in an
14201 # empty executable.
14202 if test x$gcc_no_link = xyes; then
5213506e 14203 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14204fi
5213506e 14205cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14206 program main
14207
14208 end
14209_ACEOF
5213506e 14210if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14211
14212lt_aix_libpath_sed='
14213 /Import File Strings/,/^$/ {
14214 /^0/ {
14215 s/^0 *\(.*\)$/\1/
14216 p
14217 }
14218 }'
14219aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14220# Check for a 64-bit object if we didn't find anything.
14221if test -z "$aix_libpath"; then
14222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14223fi
1cf3d07d 14224fi
5213506e
RW
14225rm -f core conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14227if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14228
14229 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14230 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
14231 else
14232 if test "$host_cpu" = ia64; then
14233 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14234 allow_undefined_flag_FC="-z nodefs"
14235 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"
14236 else
14237 # Determine the default libpath from the value encoded in an
14238 # empty executable.
14239 if test x$gcc_no_link = xyes; then
5213506e 14240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14241fi
5213506e 14242cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14243 program main
14244
14245 end
14246_ACEOF
5213506e 14247if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14248
14249lt_aix_libpath_sed='
14250 /Import File Strings/,/^$/ {
14251 /^0/ {
14252 s/^0 *\(.*\)$/\1/
14253 p
14254 }
14255 }'
14256aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14257# Check for a 64-bit object if we didn't find anything.
14258if test -z "$aix_libpath"; then
14259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14260fi
1cf3d07d 14261fi
5213506e
RW
14262rm -f core conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14265
14266 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14267 # Warning - without using the other run time loading flags,
14268 # -berok will link without error, but may produce a broken library.
14269 no_undefined_flag_FC=' ${wl}-bernotok'
14270 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14271 if test "$with_gnu_ld" = yes; then
14272 # We only use this code for GNU lds that support --whole-archive.
14273 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14274 else
14275 # Exported symbols can be pulled into shared objects from archives
14276 whole_archive_flag_spec_FC='$convenience'
14277 fi
1cf3d07d
SE
14278 archive_cmds_need_lc_FC=yes
14279 # This is similar to how AIX traditionally builds its shared libraries.
14280 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'
14281 fi
14282 fi
14283 ;;
14284
14285 amigaos*)
d58dead8
PG
14286 case $host_cpu in
14287 powerpc)
14288 # see comment about AmigaOS4 .so support
14289 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14290 archive_expsym_cmds_FC=''
14291 ;;
14292 m68k)
14293 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)'
14294 hardcode_libdir_flag_spec_FC='-L$libdir'
14295 hardcode_minus_L_FC=yes
14296 ;;
14297 esac
1cf3d07d
SE
14298 ;;
14299
14300 bsdi[45]*)
14301 export_dynamic_flag_spec_FC=-rdynamic
14302 ;;
14303
d58dead8 14304 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14305 # When not using gcc, we currently assume that we are using
14306 # Microsoft Visual C++.
14307 # hardcode_libdir_flag_spec is actually meaningless, as there is
14308 # no search path for DLLs.
14309 hardcode_libdir_flag_spec_FC=' '
14310 allow_undefined_flag_FC=unsupported
14311 # Tell ltmain to make .lib files, not .a files.
14312 libext=lib
14313 # Tell ltmain to make .dll files, not .so files.
14314 shrext_cmds=".dll"
14315 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14316 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14317 # The linker will automatically build a .lib file if we build a DLL.
14318 old_archive_from_new_cmds_FC='true'
14319 # FIXME: Should let the user specify the lib program.
14320 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14321 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14322 enable_shared_with_static_runtimes_FC=yes
14323 ;;
14324
14325 darwin* | rhapsody*)
1cf3d07d 14326
d58dead8
PG
14327
14328 archive_cmds_need_lc_FC=no
14329 hardcode_direct_FC=no
14330 hardcode_automatic_FC=yes
14331 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14332 if test "$lt_cv_ld_force_load" = "yes"; then
14333 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\"`'
14334 else
14335 whole_archive_flag_spec_FC=''
14336 fi
d58dead8
PG
14337 link_all_deplibs_FC=yes
14338 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14339 case $cc_basename in
14340 ifort*) _lt_dar_can_shared=yes ;;
14341 *) _lt_dar_can_shared=$GCC ;;
14342 esac
14343 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14344 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14345 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}"
14346 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14347 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}"
14348 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}"
14349
14350 else
14351 ld_shlibs_FC=no
14352 fi
14353
1cf3d07d
SE
14354 ;;
14355
14356 dgux*)
14357 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358 hardcode_libdir_flag_spec_FC='-L$libdir'
14359 hardcode_shlibpath_var_FC=no
14360 ;;
14361
1cf3d07d
SE
14362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14363 # support. Future versions do this automatically, but an explicit c++rt0.o
14364 # does not break anything, and helps significantly (at the cost of a little
14365 # extra space).
14366 freebsd2.2*)
14367 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14368 hardcode_libdir_flag_spec_FC='-R$libdir'
14369 hardcode_direct_FC=yes
14370 hardcode_shlibpath_var_FC=no
14371 ;;
14372
14373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 14374 freebsd2.*)
1cf3d07d
SE
14375 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14376 hardcode_direct_FC=yes
14377 hardcode_minus_L_FC=yes
14378 hardcode_shlibpath_var_FC=no
14379 ;;
14380
14381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14382 freebsd* | dragonfly*)
14383 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14384 hardcode_libdir_flag_spec_FC='-R$libdir'
14385 hardcode_direct_FC=yes
14386 hardcode_shlibpath_var_FC=no
14387 ;;
14388
14389 hpux9*)
14390 if test "$GCC" = yes; then
14391 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'
14392 else
14393 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'
14394 fi
14395 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14396 hardcode_libdir_separator_FC=:
14397 hardcode_direct_FC=yes
14398
14399 # hardcode_minus_L: Not really in the search PATH,
14400 # but as the default location of the library.
14401 hardcode_minus_L_FC=yes
14402 export_dynamic_flag_spec_FC='${wl}-E'
14403 ;;
14404
14405 hpux10*)
43e02a8a 14406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14407 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14408 else
14409 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14410 fi
14411 if test "$with_gnu_ld" = no; then
14412 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14413 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14414 hardcode_libdir_separator_FC=:
14415 hardcode_direct_FC=yes
14416 hardcode_direct_absolute_FC=yes
14417 export_dynamic_flag_spec_FC='${wl}-E'
14418 # hardcode_minus_L: Not really in the search PATH,
14419 # but as the default location of the library.
14420 hardcode_minus_L_FC=yes
14421 fi
14422 ;;
14423
14424 hpux11*)
43e02a8a 14425 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14426 case $host_cpu in
14427 hppa*64*)
14428 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14429 ;;
14430 ia64*)
d58dead8 14431 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14432 ;;
14433 *)
14434 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14435 ;;
14436 esac
14437 else
14438 case $host_cpu in
14439 hppa*64*)
14440 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14441 ;;
14442 ia64*)
14443 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14444 ;;
14445 *)
43e02a8a 14446 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14447 ;;
14448 esac
14449 fi
14450 if test "$with_gnu_ld" = no; then
14451 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14452 hardcode_libdir_separator_FC=:
14453
14454 case $host_cpu in
14455 hppa*64*|ia64*)
14456 hardcode_direct_FC=no
14457 hardcode_shlibpath_var_FC=no
14458 ;;
14459 *)
14460 hardcode_direct_FC=yes
14461 hardcode_direct_absolute_FC=yes
14462 export_dynamic_flag_spec_FC='${wl}-E'
14463
14464 # hardcode_minus_L: Not really in the search PATH,
14465 # but as the default location of the library.
14466 hardcode_minus_L_FC=yes
14467 ;;
14468 esac
14469 fi
14470 ;;
14471
14472 irix5* | irix6* | nonstopux*)
14473 if test "$GCC" = yes; then
43e02a8a 14474 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
14475 # Try to use the -exported_symbol ld option, if it does not
14476 # work, assume that -exports_file does not work either and
14477 # implicitly export all symbols.
14478 save_LDFLAGS="$LDFLAGS"
14479 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14480 if test x$gcc_no_link = xyes; then
5213506e 14481 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14482fi
5213506e 14483cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14484int foo(void) {}
14485_ACEOF
5213506e 14486if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 14487 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 14488
1cf3d07d 14489fi
5213506e
RW
14490rm -f core conftest.err conftest.$ac_objext \
14491 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14492 LDFLAGS="$save_LDFLAGS"
14493 else
43e02a8a
RW
14494 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'
14495 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
14496 fi
14497 archive_cmds_need_lc_FC='no'
14498 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14499 hardcode_libdir_separator_FC=:
14500 inherit_rpath_FC=yes
14501 link_all_deplibs_FC=yes
14502 ;;
14503
14504 netbsd*)
14505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14506 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14507 else
14508 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14509 fi
14510 hardcode_libdir_flag_spec_FC='-R$libdir'
14511 hardcode_direct_FC=yes
14512 hardcode_shlibpath_var_FC=no
14513 ;;
14514
14515 newsos6)
14516 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14517 hardcode_direct_FC=yes
14518 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14519 hardcode_libdir_separator_FC=:
14520 hardcode_shlibpath_var_FC=no
14521 ;;
14522
14523 *nto* | *qnx*)
14524 ;;
14525
14526 openbsd*)
d58dead8
PG
14527 if test -f /usr/libexec/ld.so; then
14528 hardcode_direct_FC=yes
14529 hardcode_shlibpath_var_FC=no
14530 hardcode_direct_absolute_FC=yes
14531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 14532 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 14533 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 14534 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
14535 export_dynamic_flag_spec_FC='${wl}-E'
14536 else
14537 case $host_os in
14538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14539 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14540 hardcode_libdir_flag_spec_FC='-R$libdir'
14541 ;;
14542 *)
14543 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14544 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14545 ;;
14546 esac
14547 fi
14548 else
14549 ld_shlibs_FC=no
1cf3d07d
SE
14550 fi
14551 ;;
14552
14553 os2*)
14554 hardcode_libdir_flag_spec_FC='-L$libdir'
14555 hardcode_minus_L_FC=yes
14556 allow_undefined_flag_FC=unsupported
43e02a8a 14557 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1cf3d07d
SE
14558 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14559 ;;
14560
14561 osf3*)
14562 if test "$GCC" = yes; then
14563 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14564 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
14565 else
14566 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14567 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
14568 fi
14569 archive_cmds_need_lc_FC='no'
14570 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14571 hardcode_libdir_separator_FC=:
14572 ;;
14573
14574 osf4* | osf5*) # as osf3* with the addition of -msym flag
14575 if test "$GCC" = yes; then
14576 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14577 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
14578 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14579 else
14580 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14581 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 14582 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
43e02a8a 14583 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
14584
14585 # Both c and cxx compiler support -rpath directly
14586 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14587 fi
14588 archive_cmds_need_lc_FC='no'
14589 hardcode_libdir_separator_FC=:
14590 ;;
14591
14592 solaris*)
14593 no_undefined_flag_FC=' -z defs'
14594 if test "$GCC" = yes; then
14595 wlarc='${wl}'
14596 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14597 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14598 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14599 else
14600 case `$CC -V 2>&1` in
14601 *"Compilers 5.0"*)
14602 wlarc=''
14603 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14604 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14606 ;;
14607 *)
14608 wlarc='${wl}'
14609 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14610 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14611 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14612 ;;
14613 esac
14614 fi
14615 hardcode_libdir_flag_spec_FC='-R$libdir'
14616 hardcode_shlibpath_var_FC=no
14617 case $host_os in
14618 solaris2.[0-5] | solaris2.[0-5].*) ;;
14619 *)
14620 # The compiler driver will combine and reorder linker options,
14621 # but understands `-z linker_flag'. GCC discards it without `$wl',
14622 # but is careful enough not to reorder.
14623 # Supported since Solaris 2.6 (maybe 2.5.1?)
14624 if test "$GCC" = yes; then
14625 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14626 else
14627 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14628 fi
14629 ;;
14630 esac
14631 link_all_deplibs_FC=yes
14632 ;;
14633
14634 sunos4*)
14635 if test "x$host_vendor" = xsequent; then
14636 # Use $CC to link under sequent, because it throws in some extra .o
14637 # files that make .init and .fini sections work.
14638 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14639 else
14640 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14641 fi
14642 hardcode_libdir_flag_spec_FC='-L$libdir'
14643 hardcode_direct_FC=yes
14644 hardcode_minus_L_FC=yes
14645 hardcode_shlibpath_var_FC=no
14646 ;;
14647
14648 sysv4)
14649 case $host_vendor in
14650 sni)
14651 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14652 hardcode_direct_FC=yes # is this really true???
14653 ;;
14654 siemens)
14655 ## LD is ld it makes a PLAMLIB
14656 ## CC just makes a GrossModule.
14657 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14658 reload_cmds_FC='$CC -r -o $output$reload_objs'
14659 hardcode_direct_FC=no
14660 ;;
14661 motorola)
14662 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14663 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14664 ;;
14665 esac
14666 runpath_var='LD_RUN_PATH'
14667 hardcode_shlibpath_var_FC=no
14668 ;;
14669
14670 sysv4.3*)
14671 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14672 hardcode_shlibpath_var_FC=no
14673 export_dynamic_flag_spec_FC='-Bexport'
14674 ;;
14675
14676 sysv4*MP*)
14677 if test -d /usr/nec; then
14678 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14679 hardcode_shlibpath_var_FC=no
14680 runpath_var=LD_RUN_PATH
14681 hardcode_runpath_var=yes
14682 ld_shlibs_FC=yes
14683 fi
14684 ;;
14685
14686 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14687 no_undefined_flag_FC='${wl}-z,text'
14688 archive_cmds_need_lc_FC=no
14689 hardcode_shlibpath_var_FC=no
14690 runpath_var='LD_RUN_PATH'
14691
14692 if test "$GCC" = yes; then
14693 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14694 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14695 else
14696 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14697 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14698 fi
14699 ;;
14700
14701 sysv5* | sco3.2v5* | sco5v6*)
14702 # Note: We can NOT use -z defs as we might desire, because we do not
14703 # link with -lc, and that would cause any symbols used from libc to
14704 # always be unresolved, which means just about no library would
14705 # ever link correctly. If we're not using GNU ld we use -z text
14706 # though, which does catch some bad symbols but isn't as heavy-handed
14707 # as -z defs.
14708 no_undefined_flag_FC='${wl}-z,text'
14709 allow_undefined_flag_FC='${wl}-z,nodefs'
14710 archive_cmds_need_lc_FC=no
14711 hardcode_shlibpath_var_FC=no
14712 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14713 hardcode_libdir_separator_FC=':'
14714 link_all_deplibs_FC=yes
14715 export_dynamic_flag_spec_FC='${wl}-Bexport'
14716 runpath_var='LD_RUN_PATH'
14717
14718 if test "$GCC" = yes; then
14719 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14720 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14721 else
14722 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14723 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14724 fi
14725 ;;
14726
14727 uts4*)
14728 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14729 hardcode_libdir_flag_spec_FC='-L$libdir'
14730 hardcode_shlibpath_var_FC=no
14731 ;;
14732
14733 *)
14734 ld_shlibs_FC=no
14735 ;;
14736 esac
14737
14738 if test x$host_vendor = xsni; then
14739 case $host in
14740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14741 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14742 ;;
14743 esac
14744 fi
14745 fi
14746
5213506e
RW
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14748$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
14749test "$ld_shlibs_FC" = no && can_build_shared=no
14750
14751with_gnu_ld_FC=$with_gnu_ld
14752
14753
14754
14755
14756
14757
14758#
14759# Do we need to explicitly link libc?
14760#
14761case "x$archive_cmds_need_lc_FC" in
14762x|xyes)
14763 # Assume -lc should be added
14764 archive_cmds_need_lc_FC=yes
14765
14766 if test "$enable_shared" = yes && test "$GCC" = yes; then
14767 case $archive_cmds_FC in
14768 *'~'*)
14769 # FIXME: we may have to deal with multi-command sequences.
14770 ;;
14771 '$CC '*)
14772 # Test whether the compiler implicitly links with -lc since on some
14773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14774 # to ld, don't add -lc before -lgcc.
5213506e
RW
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14776$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14777if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
baafc534
RW
14779else
14780 $RM conftest*
14781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 14782
5213506e 14783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
14784 (eval $ac_compile) 2>&5
14785 ac_status=$?
5213506e
RW
14786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14787 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
14788 soname=conftest
14789 lib=conftest
14790 libobjs=conftest.$ac_objext
14791 deplibs=
14792 wl=$lt_prog_compiler_wl_FC
14793 pic_flag=$lt_prog_compiler_pic_FC
14794 compiler_flags=-v
14795 linker_flags=-v
14796 verstring=
14797 output_objdir=.
14798 libname=conftest
14799 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14800 allow_undefined_flag_FC=
5213506e 14801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 14802 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 14803 ac_status=$?
5213506e
RW
14804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14805 test $ac_status = 0; }
baafc534
RW
14806 then
14807 lt_cv_archive_cmds_need_lc_FC=no
14808 else
14809 lt_cv_archive_cmds_need_lc_FC=yes
14810 fi
14811 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14812 else
14813 cat conftest.err 1>&5
14814 fi
14815 $RM conftest*
14816
14817fi
5213506e
RW
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14819$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 14820 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
14821 ;;
14822 esac
14823 fi
14824 ;;
14825esac
9cdc381b 14826
9cdc381b 14827
1cf3d07d
SE
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
5213506e
RW
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14891$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 14892
1cf3d07d
SE
14893library_names_spec=
14894libname_spec='lib$name'
14895soname_spec=
14896shrext_cmds=".so"
14897postinstall_cmds=
14898postuninstall_cmds=
14899finish_cmds=
14900finish_eval=
14901shlibpath_var=
14902shlibpath_overrides_runpath=unknown
14903version_type=none
14904dynamic_linker="$host_os ld.so"
14905sys_lib_dlsearch_path_spec="/lib /usr/lib"
14906need_lib_prefix=unknown
14907hardcode_into_libs=no
14908
14909# when you set need_version to no, make sure it does not cause -set_version
14910# flags to be left without arguments
14911need_version=unknown
14912
14913case $host_os in
14914aix3*)
14915 version_type=linux
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14917 shlibpath_var=LIBPATH
14918
14919 # AIX 3 has no versioning support, so we append a major version to the name.
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 ;;
14922
4f6bebc3 14923aix[4-9]*)
1cf3d07d
SE
14924 version_type=linux
14925 need_lib_prefix=no
14926 need_version=no
14927 hardcode_into_libs=yes
14928 if test "$host_cpu" = ia64; then
14929 # AIX 5 supports IA64
14930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 else
14933 # With GCC up to 2.95.x, collect2 would create an import file
14934 # for dependence libraries. The import file would start with
14935 # the line `#! .'. This would cause the generated library to
14936 # depend on `.', always an invalid library. This was fixed in
14937 # development snapshots of GCC prior to 3.0.
14938 case $host_os in
14939 aix4 | aix4.[01] | aix4.[01].*)
14940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14941 echo ' yes '
14942 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14943 :
14944 else
14945 can_build_shared=no
14946 fi
14947 ;;
14948 esac
14949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14950 # soname into executable. Probably we can add versioning support to
14951 # collect2, so additional links can be useful in future.
14952 if test "$aix_use_runtimelinking" = yes; then
14953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14954 # instead of lib<name>.a to let people know that these are not
14955 # typical AIX shared libraries.
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14957 else
14958 # We preserve .a as extension for shared libraries through AIX4.2
14959 # and later when we are not doing run time linking.
14960 library_names_spec='${libname}${release}.a $libname.a'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 fi
14963 shlibpath_var=LIBPATH
14964 fi
14965 ;;
14966
14967amigaos*)
d58dead8
PG
14968 case $host_cpu in
14969 powerpc)
14970 # Since July 2007 AmigaOS4 officially supports .so libraries.
14971 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973 ;;
14974 m68k)
1cf3d07d
SE
14975 library_names_spec='$libname.ixlibrary $libname.a'
14976 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 14977 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
d58dead8
PG
14978 ;;
14979 esac
1cf3d07d
SE
14980 ;;
14981
14982beos*)
14983 library_names_spec='${libname}${shared_ext}'
14984 dynamic_linker="$host_os ld.so"
14985 shlibpath_var=LIBRARY_PATH
14986 ;;
14987
14988bsdi[45]*)
14989 version_type=linux
14990 need_version=no
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14997 # the default ld.so.conf also contains /usr/contrib/lib and
14998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14999 # libtool to hard-code these into programs
15000 ;;
15001
d58dead8 15002cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
15003 version_type=windows
15004 shrext_cmds=".dll"
15005 need_version=no
15006 need_lib_prefix=no
15007
d58dead8
PG
15008 case $GCC,$host_os in
15009 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
15010 library_names_spec='$libname.dll.a'
15011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15012 postinstall_cmds='base_file=`basename \${file}`~
15013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15014 dldir=$destdir/`dirname \$dlpath`~
15015 test -d \$dldir || mkdir -p \$dldir~
15016 $install_prog $dir/$dlname \$dldir/$dlname~
15017 chmod a+x \$dldir/$dlname~
15018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15020 fi'
15021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15022 dlpath=$dir/\$dldll~
15023 $RM \$dlpath'
15024 shlibpath_overrides_runpath=yes
15025
15026 case $host_os in
15027 cygwin*)
15028 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15029 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 15030
1cf3d07d 15031 ;;
d58dead8 15032 mingw* | cegcc*)
1cf3d07d
SE
15033 # MinGW DLLs use traditional 'lib' prefix
15034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
15035 ;;
15036 pw32*)
15037 # pw32 DLLs use 'pw' prefix rather than 'lib'
15038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15039 ;;
15040 esac
15041 ;;
15042
15043 *)
15044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15045 ;;
15046 esac
15047 dynamic_linker='Win32 ld.exe'
15048 # FIXME: first we should search . and the directory the executable is in
15049 shlibpath_var=PATH
15050 ;;
15051
15052darwin* | rhapsody*)
15053 dynamic_linker="$host_os dyld"
15054 version_type=darwin
15055 need_lib_prefix=no
15056 need_version=no
15057 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15058 soname_spec='${libname}${release}${major}$shared_ext'
15059 shlibpath_overrides_runpath=yes
15060 shlibpath_var=DYLD_LIBRARY_PATH
15061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15062
15063 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15064 ;;
15065
15066dgux*)
15067 version_type=linux
15068 need_lib_prefix=no
15069 need_version=no
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 ;;
15074
1cf3d07d
SE
15075freebsd* | dragonfly*)
15076 # DragonFly does not have aout. When/if they implement a new
15077 # versioning mechanism, adjust this.
15078 if test -x /usr/bin/objformat; then
15079 objformat=`/usr/bin/objformat`
15080 else
15081 case $host_os in
c6084f68 15082 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
15083 *) objformat=elf ;;
15084 esac
15085 fi
15086 version_type=freebsd-$objformat
15087 case $version_type in
15088 freebsd-elf*)
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15090 need_version=no
15091 need_lib_prefix=no
15092 ;;
15093 freebsd-*)
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15095 need_version=yes
15096 ;;
15097 esac
15098 shlibpath_var=LD_LIBRARY_PATH
15099 case $host_os in
c6084f68 15100 freebsd2.*)
1cf3d07d
SE
15101 shlibpath_overrides_runpath=yes
15102 ;;
15103 freebsd3.[01]* | freebsdelf3.[01]*)
15104 shlibpath_overrides_runpath=yes
15105 hardcode_into_libs=yes
15106 ;;
15107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15109 shlibpath_overrides_runpath=no
15110 hardcode_into_libs=yes
15111 ;;
15112 *) # from 4.6 on, and DragonFly
15113 shlibpath_overrides_runpath=yes
15114 hardcode_into_libs=yes
15115 ;;
15116 esac
15117 ;;
15118
15119gnu*)
15120 version_type=linux
15121 need_lib_prefix=no
15122 need_version=no
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15124 soname_spec='${libname}${release}${shared_ext}$major'
15125 shlibpath_var=LD_LIBRARY_PATH
15126 hardcode_into_libs=yes
15127 ;;
15128
43e02a8a
RW
15129haiku*)
15130 version_type=linux
15131 need_lib_prefix=no
15132 need_version=no
15133 dynamic_linker="$host_os runtime_loader"
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 shlibpath_var=LIBRARY_PATH
15137 shlibpath_overrides_runpath=yes
15138 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15139 hardcode_into_libs=yes
15140 ;;
15141
1cf3d07d
SE
15142hpux9* | hpux10* | hpux11*)
15143 # Give a soname corresponding to the major version so that dld.sl refuses to
15144 # link against other versions.
15145 version_type=sunos
15146 need_lib_prefix=no
15147 need_version=no
15148 case $host_cpu in
15149 ia64*)
15150 shrext_cmds='.so'
15151 hardcode_into_libs=yes
15152 dynamic_linker="$host_os dld.so"
15153 shlibpath_var=LD_LIBRARY_PATH
15154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15156 soname_spec='${libname}${release}${shared_ext}$major'
15157 if test "X$HPUX_IA64_MODE" = X32; then
15158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15159 else
15160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15161 fi
15162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15163 ;;
15164 hppa*64*)
15165 shrext_cmds='.sl'
15166 hardcode_into_libs=yes
15167 dynamic_linker="$host_os dld.sl"
15168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15174 ;;
15175 *)
15176 shrext_cmds='.sl'
15177 dynamic_linker="$host_os dld.sl"
15178 shlibpath_var=SHLIB_PATH
15179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 ;;
15183 esac
43e02a8a 15184 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 15185 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
15186 # or fails outright, so override atomically:
15187 install_override_mode=555
1cf3d07d
SE
15188 ;;
15189
15190interix[3-9]*)
15191 version_type=linux
15192 need_lib_prefix=no
15193 need_version=no
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15197 shlibpath_var=LD_LIBRARY_PATH
15198 shlibpath_overrides_runpath=no
15199 hardcode_into_libs=yes
15200 ;;
15201
15202irix5* | irix6* | nonstopux*)
15203 case $host_os in
15204 nonstopux*) version_type=nonstopux ;;
15205 *)
15206 if test "$lt_cv_prog_gnu_ld" = yes; then
15207 version_type=linux
15208 else
15209 version_type=irix
15210 fi ;;
15211 esac
15212 need_lib_prefix=no
15213 need_version=no
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15216 case $host_os in
15217 irix5* | nonstopux*)
15218 libsuff= shlibsuff=
15219 ;;
15220 *)
15221 case $LD in # libtool.m4 will add one of these switches to LD
15222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15223 libsuff= shlibsuff= libmagic=32-bit;;
15224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15225 libsuff=32 shlibsuff=N32 libmagic=N32;;
15226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15228 *) libsuff= shlibsuff= libmagic=never-match;;
15229 esac
15230 ;;
15231 esac
15232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15233 shlibpath_overrides_runpath=no
15234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15236 hardcode_into_libs=yes
15237 ;;
15238
15239# No shared lib support for Linux oldld, aout, or coff.
15240linux*oldld* | linux*aout* | linux*coff*)
15241 dynamic_linker=no
15242 ;;
15243
15244# This must be Linux ELF.
7a9d3fe8 15245linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
15246 version_type=linux
15247 need_lib_prefix=no
15248 need_version=no
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=no
baafc534 15254
1cf3d07d 15255 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
15256 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15257 $as_echo_n "(cached) " >&6
baafc534
RW
15258else
15259 lt_cv_shlibpath_overrides_runpath=no
15260 save_LDFLAGS=$LDFLAGS
15261 save_libdir=$libdir
15262 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15263 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15264 if test x$gcc_no_link = xyes; then
5213506e 15265 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15266fi
5213506e 15267cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15268 program main
15269
15270 end
9cdc381b 15271_ACEOF
5213506e
RW
15272if ac_fn_fc_try_link "$LINENO"; then :
15273 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15274 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15275fi
9cdc381b 15276fi
5213506e
RW
15277rm -f core conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15279 LDFLAGS=$save_LDFLAGS
15280 libdir=$save_libdir
15281
15282fi
15283
15284 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15285
15286 # This implies no fast_install, which is unacceptable.
15287 # Some rework will be needed to allow for fast_install
15288 # before this can be enabled.
15289 hardcode_into_libs=yes
15290
15291 # Append ld.so.conf contents to the search path
15292 if test -f /etc/ld.so.conf; then
43e02a8a 15293 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
15294 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15295 fi
15296
15297 # We used to test for /lib/ld.so.1 and disable shared libraries on
15298 # powerpc, because MkLinux only supported shared libraries with the
15299 # GNU dynamic linker. Since this was broken with cross compilers,
15300 # most powerpc-linux boxes support dynamic linking these days and
15301 # people can always --disable-shared, the test was removed, and we
15302 # assume the GNU/Linux dynamic linker is in use.
15303 dynamic_linker='GNU/Linux ld.so'
15304 ;;
15305
15306netbsd*)
15307 version_type=sunos
15308 need_lib_prefix=no
15309 need_version=no
15310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15313 dynamic_linker='NetBSD (a.out) ld.so'
15314 else
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 dynamic_linker='NetBSD ld.elf_so'
15318 fi
15319 shlibpath_var=LD_LIBRARY_PATH
15320 shlibpath_overrides_runpath=yes
15321 hardcode_into_libs=yes
15322 ;;
15323
15324newsos6)
15325 version_type=linux
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 shlibpath_overrides_runpath=yes
15329 ;;
15330
15331*nto* | *qnx*)
15332 version_type=qnx
15333 need_lib_prefix=no
15334 need_version=no
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=no
15339 hardcode_into_libs=yes
15340 dynamic_linker='ldqnx.so'
15341 ;;
15342
15343openbsd*)
15344 version_type=sunos
15345 sys_lib_dlsearch_path_spec="/usr/lib"
15346 need_lib_prefix=no
15347 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15348 case $host_os in
15349 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15350 *) need_version=no ;;
15351 esac
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15356 case $host_os in
15357 openbsd2.[89] | openbsd2.[89].*)
15358 shlibpath_overrides_runpath=no
15359 ;;
15360 *)
15361 shlibpath_overrides_runpath=yes
15362 ;;
15363 esac
15364 else
15365 shlibpath_overrides_runpath=yes
15366 fi
15367 ;;
15368
15369os2*)
15370 libname_spec='$name'
15371 shrext_cmds=".dll"
15372 need_lib_prefix=no
15373 library_names_spec='$libname${shared_ext} $libname.a'
15374 dynamic_linker='OS/2 ld.exe'
15375 shlibpath_var=LIBPATH
15376 ;;
15377
15378osf3* | osf4* | osf5*)
15379 version_type=osf
15380 need_lib_prefix=no
15381 need_version=no
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384 shlibpath_var=LD_LIBRARY_PATH
15385 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15386 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15387 ;;
15388
15389rdos*)
15390 dynamic_linker=no
15391 ;;
15392
15393solaris*)
15394 version_type=linux
15395 need_lib_prefix=no
15396 need_version=no
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398 soname_spec='${libname}${release}${shared_ext}$major'
15399 shlibpath_var=LD_LIBRARY_PATH
15400 shlibpath_overrides_runpath=yes
15401 hardcode_into_libs=yes
15402 # ldd complains unless libraries are executable
15403 postinstall_cmds='chmod +x $lib'
15404 ;;
15405
15406sunos4*)
15407 version_type=sunos
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15409 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 shlibpath_overrides_runpath=yes
15412 if test "$with_gnu_ld" = yes; then
15413 need_lib_prefix=no
15414 fi
15415 need_version=yes
15416 ;;
15417
15418sysv4 | sysv4.3*)
15419 version_type=linux
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 case $host_vendor in
15424 sni)
15425 shlibpath_overrides_runpath=no
15426 need_lib_prefix=no
15427 runpath_var=LD_RUN_PATH
15428 ;;
15429 siemens)
15430 need_lib_prefix=no
15431 ;;
15432 motorola)
15433 need_lib_prefix=no
15434 need_version=no
15435 shlibpath_overrides_runpath=no
15436 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15437 ;;
15438 esac
15439 ;;
15440
15441sysv4*MP*)
15442 if test -d /usr/nec ;then
15443 version_type=linux
15444 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15445 soname_spec='$libname${shared_ext}.$major'
15446 shlibpath_var=LD_LIBRARY_PATH
15447 fi
15448 ;;
15449
15450sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15451 version_type=freebsd-elf
15452 need_lib_prefix=no
15453 need_version=no
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 shlibpath_var=LD_LIBRARY_PATH
15457 shlibpath_overrides_runpath=yes
15458 hardcode_into_libs=yes
15459 if test "$with_gnu_ld" = yes; then
15460 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15461 else
15462 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15463 case $host_os in
15464 sco3.2v5*)
15465 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15466 ;;
15467 esac
15468 fi
15469 sys_lib_dlsearch_path_spec='/usr/lib'
15470 ;;
15471
15472tpf*)
15473 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15474 version_type=linux
15475 need_lib_prefix=no
15476 need_version=no
d58dead8 15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15481 ;;
15482
15483uts4*)
15484 version_type=linux
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 ;;
15489
15490*)
15491 dynamic_linker=no
15492 ;;
15493esac
5213506e
RW
15494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15495$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
15496test "$dynamic_linker" = no && can_build_shared=no
15497
15498variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15499if test "$GCC" = yes; then
15500 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 15501fi
9cdc381b 15502
d58dead8
PG
15503if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15504 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15505fi
15506if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15507 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15508fi
15509
9cdc381b 15510
1cf3d07d
SE
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
43e02a8a
RW
15542
15543
1cf3d07d
SE
15544
15545
15546
5213506e
RW
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15548$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
15549hardcode_action_FC=
15550if test -n "$hardcode_libdir_flag_spec_FC" ||
15551 test -n "$runpath_var_FC" ||
15552 test "X$hardcode_automatic_FC" = "Xyes" ; then
15553
15554 # We can hardcode non-existent directories.
15555 if test "$hardcode_direct_FC" != no &&
15556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15557 # have to relink, otherwise we might link with an installed library
15558 # when we should be linking with a yet-to-be-installed one
15559 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15560 test "$hardcode_minus_L_FC" != no; then
15561 # Linking always hardcodes the temporary library directory.
15562 hardcode_action_FC=relink
15563 else
15564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15565 hardcode_action_FC=immediate
15566 fi
15567else
15568 # We cannot hardcode anything, or else we can only hardcode existing
15569 # directories.
15570 hardcode_action_FC=unsupported
9cdc381b 15571fi
5213506e
RW
15572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15573$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
15574
15575if test "$hardcode_action_FC" = relink ||
15576 test "$inherit_rpath_FC" = yes; then
15577 # Fast installation is not supported
15578 enable_fast_install=no
15579elif test "$shlibpath_overrides_runpath" = yes ||
15580 test "$enable_shared" = no; then
15581 # Fast installation is not necessary
15582 enable_fast_install=needless
9cdc381b
BD
15583fi
15584
1cf3d07d
SE
15585
15586
15587
15588
15589
15590
15591 fi # test -n "$compiler"
15592
d58dead8 15593 GCC=$lt_save_GCC
1cf3d07d
SE
15594 CC="$lt_save_CC"
15595fi # test "$_lt_disable_FC" != yes
15596
dd46a4de 15597ac_ext=c
96b8a615
AJ
15598ac_cpp='$CPP $CPPFLAGS'
15599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15601ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
15602
15603
15604
15605# extra LD Flags which are required for targets
15606case "${host}" in
15607 *-darwin*)
15608 # Darwin needs -single_module when linking libgfortran
15609 extra_ldflags_libgfortran=-Wl,-single_module
15610 ;;
15611esac
15612
15613
15614# We need a working compiler at that point, otherwise give a clear
15615# error message and bail out.
15616
5213506e
RW
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15618$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15619ac_ext=${ac_fc_srcext-f}
15620ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15621ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
15622ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15623
5213506e 15624cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15625
15626 program foo
15627 real, parameter :: bar = sin (12.34 / 2.5)
15628 end program foo
6de9cd9a 15629_ACEOF
5213506e
RW
15630if ac_fn_fc_try_compile "$LINENO"; then :
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15632$as_echo "yes" >&6; }
6de9cd9a 15633else
5213506e
RW
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15635$as_echo "no" >&6; }
15636 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
6de9cd9a 15637
96b8a615 15638fi
5213506e 15639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
15640ac_ext=c
15641ac_cpp='$CPP $CPPFLAGS'
15642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15644ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 15645
96b8a615 15646
1cf3d07d 15647
5213506e
RW
15648# Check whether --enable-largefile was given.
15649if test "${enable_largefile+set}" = set; then :
15650 enableval=$enable_largefile;
15651fi
1cf3d07d 15652
1cf3d07d
SE
15653if test "$enable_largefile" != no; then
15654
5213506e
RW
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15656$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15657if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15658 $as_echo_n "(cached) " >&6
96b8a615 15659else
1cf3d07d
SE
15660 ac_cv_sys_largefile_CC=no
15661 if test "$GCC" != yes; then
15662 ac_save_CC=$CC
15663 while :; do
5213506e
RW
15664 # IRIX 6.2 and later do not support large files by default,
15665 # so use the C compiler's -n32 option if that helps.
15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 15667/* end confdefs.h. */
1cf3d07d
SE
15668#include <sys/types.h>
15669 /* Check that off_t can represent 2**63 - 1 correctly.
15670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15671 since some C++ compilers masquerading as C compilers
15672 incorrectly reject 9223372036854775807. */
15673#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
15674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15675 && LARGE_OFF_T % 2147483647 == 1)
15676 ? 1 : -1];
4c4b3eb0
PB
15677int
15678main ()
15679{
4c4b3eb0
PB
15680
15681 ;
15682 return 0;
15683}
15684_ACEOF
5213506e
RW
15685 if ac_fn_c_try_compile "$LINENO"; then :
15686 break
4c4b3eb0 15687fi
5213506e
RW
15688rm -f core conftest.err conftest.$ac_objext
15689 CC="$CC -n32"
15690 if ac_fn_c_try_compile "$LINENO"; then :
15691 ac_cv_sys_largefile_CC=' -n32'; break
15692fi
15693rm -f core conftest.err conftest.$ac_objext
15694 break
15695 done
15696 CC=$ac_save_CC
15697 rm -f conftest.$ac_ext
15698 fi
15699fi
15700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15701$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15702 if test "$ac_cv_sys_largefile_CC" != no; then
15703 CC=$CC$ac_cv_sys_largefile_CC
15704 fi
4c4b3eb0 15705
5213506e
RW
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15707$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15708if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15709 $as_echo_n "(cached) " >&6
15710else
15711 while :; do
15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15713/* end confdefs.h. */
5213506e
RW
15714#include <sys/types.h>
15715 /* Check that off_t can represent 2**63 - 1 correctly.
15716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15717 since some C++ compilers masquerading as C compilers
15718 incorrectly reject 9223372036854775807. */
15719#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15721 && LARGE_OFF_T % 2147483647 == 1)
15722 ? 1 : -1];
4c4b3eb0
PB
15723int
15724main ()
15725{
4c4b3eb0
PB
15726
15727 ;
15728 return 0;
15729}
15730_ACEOF
5213506e
RW
15731if ac_fn_c_try_compile "$LINENO"; then :
15732 ac_cv_sys_file_offset_bits=no; break
15733fi
15734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15736/* end confdefs.h. */
5213506e
RW
15737#define _FILE_OFFSET_BITS 64
15738#include <sys/types.h>
15739 /* Check that off_t can represent 2**63 - 1 correctly.
15740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15741 since some C++ compilers masquerading as C compilers
15742 incorrectly reject 9223372036854775807. */
15743#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15745 && LARGE_OFF_T % 2147483647 == 1)
15746 ? 1 : -1];
4c4b3eb0
PB
15747int
15748main ()
15749{
4c4b3eb0
PB
15750
15751 ;
15752 return 0;
15753}
15754_ACEOF
5213506e
RW
15755if ac_fn_c_try_compile "$LINENO"; then :
15756 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 15757fi
5213506e
RW
15758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 ac_cv_sys_file_offset_bits=unknown
15760 break
15761done
4c4b3eb0 15762fi
5213506e
RW
15763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15764$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15765case $ac_cv_sys_file_offset_bits in #(
15766 no | unknown) ;;
15767 *)
15768cat >>confdefs.h <<_ACEOF
15769#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 15770_ACEOF
5213506e
RW
15771;;
15772esac
15773rm -rf conftest*
15774 if test $ac_cv_sys_file_offset_bits = unknown; then
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15776$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15777if test "${ac_cv_sys_large_files+set}" = set; then :
15778 $as_echo_n "(cached) " >&6
15779else
15780 while :; do
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15782/* end confdefs.h. */
5213506e
RW
15783#include <sys/types.h>
15784 /* Check that off_t can represent 2**63 - 1 correctly.
15785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15786 since some C++ compilers masquerading as C compilers
15787 incorrectly reject 9223372036854775807. */
15788#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15790 && LARGE_OFF_T % 2147483647 == 1)
15791 ? 1 : -1];
4c4b3eb0
PB
15792int
15793main ()
15794{
4c4b3eb0
PB
15795
15796 ;
15797 return 0;
15798}
15799_ACEOF
5213506e
RW
15800if ac_fn_c_try_compile "$LINENO"; then :
15801 ac_cv_sys_large_files=no; break
4c4b3eb0 15802fi
5213506e
RW
15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15805/* end confdefs.h. */
5213506e
RW
15806#define _LARGE_FILES 1
15807#include <sys/types.h>
15808 /* Check that off_t can represent 2**63 - 1 correctly.
15809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15810 since some C++ compilers masquerading as C compilers
15811 incorrectly reject 9223372036854775807. */
15812#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15814 && LARGE_OFF_T % 2147483647 == 1)
15815 ? 1 : -1];
4c4b3eb0
PB
15816int
15817main ()
15818{
15819
4c4b3eb0
PB
15820 ;
15821 return 0;
15822}
15823_ACEOF
5213506e
RW
15824if ac_fn_c_try_compile "$LINENO"; then :
15825 ac_cv_sys_large_files=1; break
4c4b3eb0 15826fi
5213506e
RW
15827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828 ac_cv_sys_large_files=unknown
15829 break
15830done
38d24731 15831fi
5213506e
RW
15832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15833$as_echo "$ac_cv_sys_large_files" >&6; }
15834case $ac_cv_sys_large_files in #(
15835 no | unknown) ;;
15836 *)
4c4b3eb0 15837cat >>confdefs.h <<_ACEOF
5213506e 15838#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 15839_ACEOF
5213506e
RW
15840;;
15841esac
15842rm -rf conftest*
15843 fi
4c4b3eb0
PB
15844fi
15845
44720bef
JB
15846
15847# Types
5213506e
RW
15848ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15849if test "x$ac_cv_type_off_t" = x""yes; then :
4c4b3eb0 15850
5213506e 15851else
4c4b3eb0 15852
5213506e
RW
15853cat >>confdefs.h <<_ACEOF
15854#define off_t long int
15855_ACEOF
4c4b3eb0 15856
44720bef
JB
15857fi
15858
15859
15860 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15861if test "x$ac_cv_type_intptr_t" = x""yes; then :
15862
15863$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15864
15865else
15866 for ac_type in 'int' 'long int' 'long long int'; do
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868/* end confdefs.h. */
15869$ac_includes_default
15870int
15871main ()
15872{
15873static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15874test_array [0] = 0
15875
15876 ;
15877 return 0;
15878}
15879_ACEOF
15880if ac_fn_c_try_compile "$LINENO"; then :
15881
15882cat >>confdefs.h <<_ACEOF
15883#define intptr_t $ac_type
15884_ACEOF
15885
15886 ac_type=
15887fi
15888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889 test -z "$ac_type" && break
15890 done
15891fi
15892
15893
15894
15895 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15896if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15897
15898$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15899
15900else
15901 for ac_type in 'unsigned int' 'unsigned long int' \
15902 'unsigned long long int'; do
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h. */
15905$ac_includes_default
15906int
15907main ()
15908{
15909static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15910test_array [0] = 0
15911
15912 ;
15913 return 0;
15914}
15915_ACEOF
15916if ac_fn_c_try_compile "$LINENO"; then :
15917
15918cat >>confdefs.h <<_ACEOF
15919#define uintptr_t $ac_type
15920_ACEOF
15921
15922 ac_type=
15923fi
15924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925 test -z "$ac_type" && break
15926 done
15927fi
15928
15929
15930ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15931if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15932
15933cat >>confdefs.h <<_ACEOF
15934#define HAVE_PTRDIFF_T 1
15935_ACEOF
15936
15937
4c4b3eb0
PB
15938fi
15939
4c4b3eb0 15940
74544378 15941# check header files (we assume C89 is available, so don't check for that)
df65f093 15942
5213506e 15943
df65f093 15944
74544378
JB
15945 for ac_header in $ac_header_list
15946do :
15947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15948ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15949"
15950eval as_val=\$$as_ac_Header
15951 if test "x$as_val" = x""yes; then :
15952 cat >>confdefs.h <<_ACEOF
15953#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
df65f093
SK
15954_ACEOF
15955
5213506e 15956fi
df65f093 15957
74544378 15958done
df65f093 15959
5213506e 15960
5213506e 15961
df65f093 15962
5213506e 15963
5213506e 15964
df65f093 15965
df65f093 15966
df65f093
SK
15967
15968
df65f093 15969
df65f093 15970
df65f093
SK
15971
15972
df65f093
SK
15973
15974
41724e6a 15975
2cbcdeba 15976
3969c39f 15977
1fb2002d
FXC
15978
15979
32aa3bff 15980
f77b6ca3 15981
f77b6ca3 15982
f77b6ca3 15983
f77b6ca3 15984
f77b6ca3 15985
f77b6ca3
FXC
15986
15987
f77b6ca3 15988
6de9cd9a 15989
c13e029b 15990inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 15991
c13e029b
PB
15992acx_cv_header_stdint=stddef.h
15993acx_cv_header_stdint_kind="(already complete)"
15994for i in stdint.h $inttype_headers; do
15995 unset ac_cv_type_uintptr_t
15996 unset ac_cv_type_uintmax_t
15997 unset ac_cv_type_int_least32_t
15998 unset ac_cv_type_int_fast32_t
15999 unset ac_cv_type_uint64_t
16000 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16001 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16002#include <$i>
16003"
16004if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16005 acx_cv_header_stdint=$i
5213506e 16006else
c13e029b 16007 continue
5213506e 16008fi
6de9cd9a 16009
c13e029b
PB
16010 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16011#include <$i>
16012"
16013if test "x$ac_cv_type_uintptr_t" = x""yes; then :
96b8a615 16014
5213506e 16015else
c13e029b 16016 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16017fi
96b8a615 16018
c13e029b
PB
16019 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16020#include <$i>
16021"
16022if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16023
f77b6ca3 16024else
c13e029b 16025 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 16026fi
5213506e 16027
c13e029b
PB
16028 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16029#include <$i>
16030"
16031if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
f77b6ca3 16032
c13e029b
PB
16033else
16034 acx_cv_header_stdint_kind="(mostly complete)"
16035fi
d72a3ac1 16036
c13e029b
PB
16037 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16038#include <$i>
16039"
16040if test "x$ac_cv_type_uint64_t" = x""yes; then :
d72a3ac1 16041
5213506e 16042else
c13e029b
PB
16043 acx_cv_header_stdint_kind="(lacks uint64_t)"
16044fi
f77b6ca3 16045
c13e029b
PB
16046 break
16047done
16048if test "$acx_cv_header_stdint" = stddef.h; then
16049 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16050 for i in stdint.h $inttype_headers; do
16051 unset ac_cv_type_uintptr_t
16052 unset ac_cv_type_uint32_t
16053 unset ac_cv_type_uint64_t
16054 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16055 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16056#include <$i>
16057"
16058if test "x$ac_cv_type_uint32_t" = x""yes; then :
16059 acx_cv_header_stdint=$i
16060else
16061 continue
5213506e 16062fi
f77b6ca3 16063
c13e029b
PB
16064 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16065#include <$i>
16066"
16067if test "x$ac_cv_type_uint64_t" = x""yes; then :
8845001b 16068
c13e029b 16069fi
185d7d97 16070
c13e029b
PB
16071 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16072#include <$i>
16073"
16074if test "x$ac_cv_type_uintptr_t" = x""yes; then :
185d7d97 16075
c13e029b 16076fi
35059811 16077
c13e029b
PB
16078 break
16079 done
16080fi
16081if test "$acx_cv_header_stdint" = stddef.h; then
16082 acx_cv_header_stdint_kind="(u_intXX_t style)"
16083 for i in sys/types.h $inttype_headers; do
16084 unset ac_cv_type_u_int32_t
16085 unset ac_cv_type_u_int64_t
16086 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16087 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16088#include <$i>
16089"
16090if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16091 acx_cv_header_stdint=$i
d72a3ac1 16092else
c13e029b
PB
16093 continue
16094fi
a119fc1c 16095
c13e029b
PB
16096 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16097#include <$i>
16098"
16099if test "x$ac_cv_type_u_int64_t" = x""yes; then :
a119fc1c 16100
c13e029b 16101fi
a119fc1c 16102
c13e029b
PB
16103 break
16104 done
a119fc1c 16105fi
c13e029b
PB
16106if test "$acx_cv_header_stdint" = stddef.h; then
16107 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 16108fi
a119fc1c 16109
c13e029b
PB
16110test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16111test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16112test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16113test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16114test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 16115
c13e029b 16116# ----------------- Summarize what we found so far
5213506e 16117
c13e029b
PB
16118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16119$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 16120
c13e029b
PB
16121case `$as_basename -- gstdint.h ||
16122$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16123 Xgstdint.h : 'X\(//\)$' \| \
16124 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16125$as_echo X/gstdint.h |
16126 sed '/^.*\/\([^/][^/]*\)\/*$/{
16127 s//\1/
16128 q
16129 }
16130 /^X\/\(\/\/\)$/{
16131 s//\1/
16132 q
16133 }
16134 /^X\/\(\/\).*/{
16135 s//\1/
16136 q
16137 }
16138 s/.*/./; q'` in
16139 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16140$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16141 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16142$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16143 *) ;;
16144esac
a119fc1c 16145
c13e029b
PB
16146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16147$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16148
c13e029b 16149# ----------------- done included file, check C basic types --------
868d75db 16150
c13e029b
PB
16151# Lacking an uintptr_t? Test size of void *
16152case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16153 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16154# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16155# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16156# This bug is HP SR number 8606223364.
16157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16158$as_echo_n "checking size of void *... " >&6; }
16159if test "${ac_cv_sizeof_void_p+set}" = set; then :
16160 $as_echo_n "(cached) " >&6
16161else
16162 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16163
c13e029b
PB
16164else
16165 if test "$ac_cv_type_void_p" = yes; then
16166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16168{ as_fn_set_status 77
16169as_fn_error "cannot compute sizeof (void *)
16170See \`config.log' for more details." "$LINENO" 5; }; }
16171 else
16172 ac_cv_sizeof_void_p=0
16173 fi
16174fi
d72a3ac1 16175
c13e029b
PB
16176fi
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16178$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16179
868d75db
FXC
16180
16181
d72a3ac1 16182cat >>confdefs.h <<_ACEOF
c13e029b 16183#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16184_ACEOF
d72a3ac1 16185
c13e029b
PB
16186 ;;
16187esac
d72a3ac1 16188
c13e029b
PB
16189# Lacking an uint64_t? Test size of long
16190case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16191 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16192# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16193# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16194# This bug is HP SR number 8606223364.
16195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16196$as_echo_n "checking size of long... " >&6; }
16197if test "${ac_cv_sizeof_long+set}" = set; then :
5213506e
RW
16198 $as_echo_n "(cached) " >&6
16199else
c13e029b 16200 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16201
7f483eec 16202else
c13e029b
PB
16203 if test "$ac_cv_type_long" = yes; then
16204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16206{ as_fn_set_status 77
16207as_fn_error "cannot compute sizeof (long)
16208See \`config.log' for more details." "$LINENO" 5; }; }
16209 else
16210 ac_cv_sizeof_long=0
16211 fi
5213506e 16212fi
7f483eec 16213
c13e029b
PB
16214fi
16215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16216$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16217
7f483eec 16218
d72a3ac1
PB
16219
16220cat >>confdefs.h <<_ACEOF
c13e029b 16221#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16222_ACEOF
7f483eec 16223
c13e029b
PB
16224 ;;
16225esac
29e86cb0 16226
c13e029b
PB
16227if test $acx_cv_header_stdint = stddef.h; then
16228 # Lacking a good header? Test size of everything and deduce all types.
16229 # The cast to long int works around a bug in the HP C Compiler
16230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16232# This bug is HP SR number 8606223364.
16233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16234$as_echo_n "checking size of int... " >&6; }
16235if test "${ac_cv_sizeof_int+set}" = set; then :
16236 $as_echo_n "(cached) " >&6
16237else
16238 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16239
c13e029b
PB
16240else
16241 if test "$ac_cv_type_int" = yes; then
16242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16244{ as_fn_set_status 77
16245as_fn_error "cannot compute sizeof (int)
16246See \`config.log' for more details." "$LINENO" 5; }; }
16247 else
16248 ac_cv_sizeof_int=0
16249 fi
16250fi
d8163f5c 16251
c13e029b
PB
16252fi
16253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16254$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16255
16256
868d75db 16257
d72a3ac1 16258cat >>confdefs.h <<_ACEOF
c13e029b 16259#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16260_ACEOF
16261
d72a3ac1 16262
c13e029b
PB
16263 # The cast to long int works around a bug in the HP C Compiler
16264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16266# This bug is HP SR number 8606223364.
16267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16268$as_echo_n "checking size of short... " >&6; }
16269if test "${ac_cv_sizeof_short+set}" = set; then :
16270 $as_echo_n "(cached) " >&6
16271else
16272 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16273
c13e029b
PB
16274else
16275 if test "$ac_cv_type_short" = yes; then
16276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16278{ as_fn_set_status 77
16279as_fn_error "cannot compute sizeof (short)
16280See \`config.log' for more details." "$LINENO" 5; }; }
16281 else
16282 ac_cv_sizeof_short=0
16283 fi
16284fi
d72a3ac1 16285
c13e029b
PB
16286fi
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16288$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16289
16290
16291
c13e029b
PB
16292cat >>confdefs.h <<_ACEOF
16293#define SIZEOF_SHORT $ac_cv_sizeof_short
16294_ACEOF
d72a3ac1
PB
16295
16296
c13e029b
PB
16297 # The cast to long int works around a bug in the HP C Compiler
16298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16300# This bug is HP SR number 8606223364.
16301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16302$as_echo_n "checking size of char... " >&6; }
16303if test "${ac_cv_sizeof_char+set}" = set; then :
16304 $as_echo_n "(cached) " >&6
16305else
16306 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16307
c13e029b
PB
16308else
16309 if test "$ac_cv_type_char" = yes; then
16310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16312{ as_fn_set_status 77
16313as_fn_error "cannot compute sizeof (char)
16314See \`config.log' for more details." "$LINENO" 5; }; }
16315 else
16316 ac_cv_sizeof_char=0
16317 fi
16318fi
d72a3ac1 16319
c13e029b
PB
16320fi
16321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16322$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16323
16324
d72a3ac1 16325
5213506e 16326cat >>confdefs.h <<_ACEOF
c13e029b 16327#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16328_ACEOF
868d75db 16329
868d75db 16330
2017c370 16331
c13e029b
PB
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16333$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16334 case "$ac_cv_sizeof_char" in
16335 1) acx_cv_type_int8_t=char ;;
75bc9e5e 16336 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16337 esac
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16339$as_echo "$acx_cv_type_int8_t" >&6; }
16340
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16342$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16343 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16344 2:*) acx_cv_type_int16_t=int ;;
16345 *:2) acx_cv_type_int16_t=short ;;
75bc9e5e 16346 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16347 esac
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16349$as_echo "$acx_cv_type_int16_t" >&6; }
16350
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16352$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16353 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16354 4:*) acx_cv_type_int32_t=int ;;
16355 *:4) acx_cv_type_int32_t=long ;;
75bc9e5e 16356 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16357 esac
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16359$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16360fi
16361
c13e029b 16362# These tests are here to make the output prettier
d72a3ac1 16363
c13e029b
PB
16364if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16365 case "$ac_cv_sizeof_long" in
16366 8) acx_cv_type_int64_t=long ;;
16367 esac
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16369$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16371$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16372fi
16373
16374# Now we can use the above types
16375
16376if test "$ac_cv_type_uintptr_t" != yes; then
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16378$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16379 case $ac_cv_sizeof_void_p in
16380 2) acx_cv_type_intptr_t=int16_t ;;
16381 4) acx_cv_type_intptr_t=int32_t ;;
16382 8) acx_cv_type_intptr_t=int64_t ;;
75bc9e5e 16383 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
16384 esac
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16386$as_echo "$acx_cv_type_intptr_t" >&6; }
16387fi
d72a3ac1 16388
c13e029b 16389# ----------------- done all checks, emit header -------------
5213506e 16390ac_config_commands="$ac_config_commands gstdint.h"
2017c370 16391
2017c370 16392
5213506e
RW
16393
16394
16395ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16396if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16397
16398cat >>confdefs.h <<_ACEOF
16399#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 16400_ACEOF
2017c370 16401
5213506e 16402
2017c370 16403fi
5213506e
RW
16404ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16405if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16406
16407cat >>confdefs.h <<_ACEOF
16408#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
16409_ACEOF
16410
5213506e 16411
2017c370 16412fi
5213506e
RW
16413ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16414if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
2017c370 16415
5213506e
RW
16416cat >>confdefs.h <<_ACEOF
16417#define HAVE_STRUCT_STAT_ST_RDEV 1
16418_ACEOF
868d75db
FXC
16419
16420
f02d008e 16421fi
5213506e
RW
16422
16423
16424# Check for library functions.
f77b6ca3 16425
f77b6ca3 16426
74544378
JB
16427
16428 for ac_func in $ac_func_list
5213506e
RW
16429do :
16430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16431ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16432eval as_val=\$$as_ac_var
16433 if test "x$as_val" = x""yes; then :
16434 cat >>confdefs.h <<_ACEOF
16435#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16436_ACEOF
f77b6ca3 16437
5213506e
RW
16438fi
16439done
f77b6ca3 16440
f77b6ca3 16441
5213506e 16442
96b8a615 16443
5213506e 16444
5213506e 16445
5213506e 16446
6de9cd9a 16447
6de9cd9a 16448
b6e7a3d1 16449
b6e7a3d1 16450
6de9cd9a 16451
4c0c6b9f 16452
4c0c6b9f 16453
4c0c6b9f 16454
4c0c6b9f 16455
4c0c6b9f 16456
4c0c6b9f 16457
4c0c6b9f 16458
4c0c6b9f 16459
868d75db 16460
868d75db 16461
868d75db 16462
868d75db 16463
4c0c6b9f 16464
4c0c6b9f 16465
4c0c6b9f 16466
4c0c6b9f 16467
6422c112 16468
6422c112 16469
6422c112 16470
74544378
JB
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
68ee9c08
JB
16536
16537
16538
16539
8ecd1c0d
TB
16540
16541
74544378 16542
6422c112 16543
4c0c6b9f 16544
453310d8 16545# Check for C99 (and other IEEE) math functions
db9f46a9
TG
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16547$as_echo_n "checking for sin in -lm... " >&6; }
16548if test "${ac_cv_lib_m_sin+set}" = set; then :
5213506e 16549 $as_echo_n "(cached) " >&6
453310d8
RS
16550else
16551 ac_check_lib_save_LIBS=$LIBS
16552LIBS="-lm $LIBS"
f02d008e 16553if test x$gcc_no_link = xyes; then
5213506e 16554 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16555fi
5213506e 16556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16557/* end confdefs.h. */
16558
5213506e
RW
16559/* Override any GCC internal prototype to avoid an error.
16560 Use char because int might match the return type of a GCC
16561 builtin and then its argument prototype would still apply. */
453310d8
RS
16562#ifdef __cplusplus
16563extern "C"
16564#endif
db9f46a9 16565char sin ();
453310d8
RS
16566int
16567main ()
16568{
db9f46a9 16569return sin ();
453310d8
RS
16570 ;
16571 return 0;
16572}
16573_ACEOF
5213506e 16574if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16575 ac_cv_lib_m_sin=yes
453310d8 16576else
db9f46a9 16577 ac_cv_lib_m_sin=no
453310d8 16578fi
5213506e
RW
16579rm -f core conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16581LIBS=$ac_check_lib_save_LIBS
16582fi
db9f46a9
TG
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16584$as_echo "$ac_cv_lib_m_sin" >&6; }
16585if test "x$ac_cv_lib_m_sin" = x""yes; then :
16586 cat >>confdefs.h <<_ACEOF
16587#define HAVE_LIBM 1
16588_ACEOF
453310d8 16589
db9f46a9 16590 LIBS="-lm $LIBS"
453310d8
RS
16591
16592fi
16593
db9f46a9
TG
16594
16595
16596
16597
16598
16599
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16601$as_echo_n "checking for acosf... " >&6; }
16602if test "${gcc_cv_math_func_acosf+set}" = set; then :
5213506e 16603 $as_echo_n "(cached) " >&6
f02d008e 16604else
db9f46a9 16605 if test x$gcc_no_link = xyes; then
5213506e 16606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16607fi
5213506e 16608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16609/* end confdefs.h. */
16610
db9f46a9
TG
16611#ifdef HAVE_COMPLEX_H
16612#include <complex.h>
16613#endif
16614#ifdef HAVE_MATH_H
16615#include <math.h>
f02d008e 16616#endif
db9f46a9
TG
16617
16618int (*ptr)() = (int (*)())acosf;
16619
f02d008e
JD
16620int
16621main ()
16622{
f02d008e
JD
16623 return 0;
16624}
db9f46a9 16625
f02d008e 16626_ACEOF
5213506e 16627if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16628 gcc_cv_math_func_acosf=yes
f02d008e 16629else
db9f46a9 16630 gcc_cv_math_func_acosf=no
f02d008e 16631fi
5213506e
RW
16632rm -f core conftest.err conftest.$ac_objext \
16633 conftest$ac_exeext conftest.$ac_ext
f02d008e 16634fi
db9f46a9
TG
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16636$as_echo "$gcc_cv_math_func_acosf" >&6; }
16637 if test $gcc_cv_math_func_acosf = yes; then
f1cdfa01 16638
f38a14ca
TG
16639cat >>confdefs.h <<_ACEOF
16640#define HAVE_ACOSF 1
16641_ACEOF
db9f46a9
TG
16642
16643 fi
f02d008e 16644
f02d008e 16645
f02d008e 16646
db9f46a9
TG
16647
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16649$as_echo_n "checking for acos... " >&6; }
16650if test "${gcc_cv_math_func_acos+set}" = set; then :
5213506e 16651 $as_echo_n "(cached) " >&6
453310d8 16652else
db9f46a9 16653 if test x$gcc_no_link = xyes; then
5213506e 16654 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16655fi
5213506e 16656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16657/* end confdefs.h. */
16658
db9f46a9
TG
16659#ifdef HAVE_COMPLEX_H
16660#include <complex.h>
453310d8 16661#endif
db9f46a9
TG
16662#ifdef HAVE_MATH_H
16663#include <math.h>
16664#endif
16665
16666int (*ptr)() = (int (*)())acos;
16667
453310d8
RS
16668int
16669main ()
16670{
453310d8
RS
16671 return 0;
16672}
db9f46a9 16673
453310d8 16674_ACEOF
5213506e 16675if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16676 gcc_cv_math_func_acos=yes
453310d8 16677else
db9f46a9 16678 gcc_cv_math_func_acos=no
453310d8 16679fi
5213506e
RW
16680rm -f core conftest.err conftest.$ac_objext \
16681 conftest$ac_exeext conftest.$ac_ext
453310d8 16682fi
db9f46a9
TG
16683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16684$as_echo "$gcc_cv_math_func_acos" >&6; }
16685 if test $gcc_cv_math_func_acos = yes; then
f1cdfa01 16686
f38a14ca
TG
16687cat >>confdefs.h <<_ACEOF
16688#define HAVE_ACOS 1
16689_ACEOF
db9f46a9
TG
16690
16691 fi
16692
453310d8 16693
453310d8 16694
453310d8 16695
db9f46a9
TG
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16697$as_echo_n "checking for acosl... " >&6; }
16698if test "${gcc_cv_math_func_acosl+set}" = set; then :
5213506e 16699 $as_echo_n "(cached) " >&6
f02d008e 16700else
db9f46a9 16701 if test x$gcc_no_link = xyes; then
5213506e 16702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16703fi
5213506e 16704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16705/* end confdefs.h. */
16706
db9f46a9
TG
16707#ifdef HAVE_COMPLEX_H
16708#include <complex.h>
16709#endif
16710#ifdef HAVE_MATH_H
16711#include <math.h>
f02d008e 16712#endif
db9f46a9
TG
16713
16714int (*ptr)() = (int (*)())acosl;
16715
f02d008e
JD
16716int
16717main ()
16718{
f02d008e
JD
16719 return 0;
16720}
db9f46a9 16721
f02d008e 16722_ACEOF
5213506e 16723if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16724 gcc_cv_math_func_acosl=yes
f02d008e 16725else
db9f46a9 16726 gcc_cv_math_func_acosl=no
f02d008e 16727fi
5213506e
RW
16728rm -f core conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
f02d008e 16730fi
db9f46a9
TG
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16732$as_echo "$gcc_cv_math_func_acosl" >&6; }
16733 if test $gcc_cv_math_func_acosl = yes; then
f1cdfa01 16734
f38a14ca
TG
16735cat >>confdefs.h <<_ACEOF
16736#define HAVE_ACOSL 1
16737_ACEOF
db9f46a9
TG
16738
16739 fi
f02d008e 16740
f02d008e 16741
f02d008e 16742
db9f46a9
TG
16743
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16745$as_echo_n "checking for acoshf... " >&6; }
16746if test "${gcc_cv_math_func_acoshf+set}" = set; then :
5213506e 16747 $as_echo_n "(cached) " >&6
453310d8 16748else
db9f46a9 16749 if test x$gcc_no_link = xyes; then
5213506e 16750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16751fi
5213506e 16752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16753/* end confdefs.h. */
16754
db9f46a9
TG
16755#ifdef HAVE_COMPLEX_H
16756#include <complex.h>
453310d8 16757#endif
db9f46a9
TG
16758#ifdef HAVE_MATH_H
16759#include <math.h>
16760#endif
16761
16762int (*ptr)() = (int (*)())acoshf;
16763
453310d8
RS
16764int
16765main ()
16766{
453310d8
RS
16767 return 0;
16768}
db9f46a9 16769
453310d8 16770_ACEOF
5213506e 16771if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16772 gcc_cv_math_func_acoshf=yes
453310d8 16773else
db9f46a9 16774 gcc_cv_math_func_acoshf=no
453310d8 16775fi
5213506e
RW
16776rm -f core conftest.err conftest.$ac_objext \
16777 conftest$ac_exeext conftest.$ac_ext
453310d8 16778fi
db9f46a9
TG
16779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16780$as_echo "$gcc_cv_math_func_acoshf" >&6; }
16781 if test $gcc_cv_math_func_acoshf = yes; then
f1cdfa01 16782
f38a14ca
TG
16783cat >>confdefs.h <<_ACEOF
16784#define HAVE_ACOSHF 1
16785_ACEOF
453310d8 16786
db9f46a9 16787 fi
453310d8 16788
453310d8 16789
db9f46a9
TG
16790
16791
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16793$as_echo_n "checking for acosh... " >&6; }
16794if test "${gcc_cv_math_func_acosh+set}" = set; then :
5213506e 16795 $as_echo_n "(cached) " >&6
453310d8 16796else
db9f46a9 16797 if test x$gcc_no_link = xyes; then
5213506e 16798 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16799fi
5213506e 16800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16801/* end confdefs.h. */
16802
db9f46a9
TG
16803#ifdef HAVE_COMPLEX_H
16804#include <complex.h>
16805#endif
16806#ifdef HAVE_MATH_H
16807#include <math.h>
453310d8 16808#endif
db9f46a9
TG
16809
16810int (*ptr)() = (int (*)())acosh;
16811
453310d8
RS
16812int
16813main ()
16814{
5213506e
RW
16815 return 0;
16816}
db9f46a9 16817
5213506e
RW
16818_ACEOF
16819if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16820 gcc_cv_math_func_acosh=yes
453310d8 16821else
db9f46a9 16822 gcc_cv_math_func_acosh=no
453310d8 16823fi
5213506e
RW
16824rm -f core conftest.err conftest.$ac_objext \
16825 conftest$ac_exeext conftest.$ac_ext
453310d8 16826fi
db9f46a9
TG
16827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16828$as_echo "$gcc_cv_math_func_acosh" >&6; }
16829 if test $gcc_cv_math_func_acosh = yes; then
f1cdfa01 16830
f38a14ca
TG
16831cat >>confdefs.h <<_ACEOF
16832#define HAVE_ACOSH 1
16833_ACEOF
db9f46a9
TG
16834
16835 fi
453310d8 16836
453310d8 16837
453310d8 16838
db9f46a9
TG
16839
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16841$as_echo_n "checking for acoshl... " >&6; }
16842if test "${gcc_cv_math_func_acoshl+set}" = set; then :
5213506e 16843 $as_echo_n "(cached) " >&6
f02d008e 16844else
db9f46a9 16845 if test x$gcc_no_link = xyes; then
5213506e 16846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16847fi
5213506e 16848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16849/* end confdefs.h. */
16850
db9f46a9
TG
16851#ifdef HAVE_COMPLEX_H
16852#include <complex.h>
f02d008e 16853#endif
db9f46a9
TG
16854#ifdef HAVE_MATH_H
16855#include <math.h>
16856#endif
16857
16858int (*ptr)() = (int (*)())acoshl;
16859
f02d008e
JD
16860int
16861main ()
16862{
f02d008e
JD
16863 return 0;
16864}
db9f46a9 16865
f02d008e 16866_ACEOF
5213506e 16867if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16868 gcc_cv_math_func_acoshl=yes
f02d008e 16869else
db9f46a9 16870 gcc_cv_math_func_acoshl=no
f02d008e 16871fi
5213506e
RW
16872rm -f core conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
f02d008e 16874fi
db9f46a9
TG
16875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
16876$as_echo "$gcc_cv_math_func_acoshl" >&6; }
16877 if test $gcc_cv_math_func_acoshl = yes; then
f1cdfa01 16878
f38a14ca
TG
16879cat >>confdefs.h <<_ACEOF
16880#define HAVE_ACOSHL 1
16881_ACEOF
db9f46a9
TG
16882
16883 fi
16884
f02d008e 16885
f02d008e 16886
f02d008e 16887
db9f46a9
TG
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
16889$as_echo_n "checking for asinf... " >&6; }
16890if test "${gcc_cv_math_func_asinf+set}" = set; then :
5213506e 16891 $as_echo_n "(cached) " >&6
453310d8 16892else
db9f46a9 16893 if test x$gcc_no_link = xyes; then
5213506e 16894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16895fi
5213506e 16896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16897/* end confdefs.h. */
16898
db9f46a9
TG
16899#ifdef HAVE_COMPLEX_H
16900#include <complex.h>
16901#endif
16902#ifdef HAVE_MATH_H
16903#include <math.h>
453310d8 16904#endif
db9f46a9
TG
16905
16906int (*ptr)() = (int (*)())asinf;
16907
453310d8
RS
16908int
16909main ()
16910{
453310d8
RS
16911 return 0;
16912}
db9f46a9 16913
453310d8 16914_ACEOF
5213506e 16915if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16916 gcc_cv_math_func_asinf=yes
453310d8 16917else
db9f46a9 16918 gcc_cv_math_func_asinf=no
453310d8 16919fi
5213506e
RW
16920rm -f core conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
453310d8 16922fi
db9f46a9
TG
16923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
16924$as_echo "$gcc_cv_math_func_asinf" >&6; }
16925 if test $gcc_cv_math_func_asinf = yes; then
f1cdfa01 16926
f38a14ca
TG
16927cat >>confdefs.h <<_ACEOF
16928#define HAVE_ASINF 1
16929_ACEOF
db9f46a9
TG
16930
16931 fi
453310d8 16932
453310d8 16933
453310d8 16934
db9f46a9
TG
16935
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
16937$as_echo_n "checking for asin... " >&6; }
16938if test "${gcc_cv_math_func_asin+set}" = set; then :
5213506e 16939 $as_echo_n "(cached) " >&6
453310d8 16940else
db9f46a9 16941 if test x$gcc_no_link = xyes; then
5213506e 16942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16943fi
5213506e 16944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16945/* end confdefs.h. */
16946
db9f46a9
TG
16947#ifdef HAVE_COMPLEX_H
16948#include <complex.h>
453310d8 16949#endif
db9f46a9
TG
16950#ifdef HAVE_MATH_H
16951#include <math.h>
16952#endif
16953
16954int (*ptr)() = (int (*)())asin;
16955
453310d8
RS
16956int
16957main ()
16958{
453310d8
RS
16959 return 0;
16960}
db9f46a9 16961
453310d8 16962_ACEOF
5213506e 16963if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 16964 gcc_cv_math_func_asin=yes
453310d8 16965else
db9f46a9 16966 gcc_cv_math_func_asin=no
453310d8 16967fi
5213506e
RW
16968rm -f core conftest.err conftest.$ac_objext \
16969 conftest$ac_exeext conftest.$ac_ext
453310d8 16970fi
db9f46a9
TG
16971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
16972$as_echo "$gcc_cv_math_func_asin" >&6; }
16973 if test $gcc_cv_math_func_asin = yes; then
f1cdfa01 16974
f38a14ca
TG
16975cat >>confdefs.h <<_ACEOF
16976#define HAVE_ASIN 1
16977_ACEOF
453310d8 16978
db9f46a9 16979 fi
453310d8 16980
453310d8 16981
db9f46a9
TG
16982
16983
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
16985$as_echo_n "checking for asinl... " >&6; }
16986if test "${gcc_cv_math_func_asinl+set}" = set; then :
5213506e 16987 $as_echo_n "(cached) " >&6
453310d8 16988else
db9f46a9 16989 if test x$gcc_no_link = xyes; then
5213506e 16990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16991fi
5213506e 16992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16993/* end confdefs.h. */
16994
db9f46a9
TG
16995#ifdef HAVE_COMPLEX_H
16996#include <complex.h>
16997#endif
16998#ifdef HAVE_MATH_H
16999#include <math.h>
453310d8 17000#endif
db9f46a9
TG
17001
17002int (*ptr)() = (int (*)())asinl;
17003
453310d8
RS
17004int
17005main ()
17006{
453310d8
RS
17007 return 0;
17008}
db9f46a9 17009
453310d8 17010_ACEOF
5213506e 17011if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17012 gcc_cv_math_func_asinl=yes
453310d8 17013else
db9f46a9 17014 gcc_cv_math_func_asinl=no
453310d8 17015fi
5213506e
RW
17016rm -f core conftest.err conftest.$ac_objext \
17017 conftest$ac_exeext conftest.$ac_ext
453310d8 17018fi
db9f46a9
TG
17019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17020$as_echo "$gcc_cv_math_func_asinl" >&6; }
17021 if test $gcc_cv_math_func_asinl = yes; then
f1cdfa01 17022
f38a14ca
TG
17023cat >>confdefs.h <<_ACEOF
17024#define HAVE_ASINL 1
17025_ACEOF
db9f46a9
TG
17026
17027 fi
453310d8 17028
453310d8 17029
453310d8 17030
db9f46a9
TG
17031
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17033$as_echo_n "checking for asinhf... " >&6; }
17034if test "${gcc_cv_math_func_asinhf+set}" = set; then :
5213506e 17035 $as_echo_n "(cached) " >&6
453310d8 17036else
db9f46a9 17037 if test x$gcc_no_link = xyes; then
5213506e 17038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17039fi
5213506e 17040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17041/* end confdefs.h. */
17042
db9f46a9
TG
17043#ifdef HAVE_COMPLEX_H
17044#include <complex.h>
453310d8 17045#endif
db9f46a9
TG
17046#ifdef HAVE_MATH_H
17047#include <math.h>
17048#endif
17049
17050int (*ptr)() = (int (*)())asinhf;
17051
453310d8
RS
17052int
17053main ()
17054{
453310d8
RS
17055 return 0;
17056}
db9f46a9 17057
453310d8 17058_ACEOF
5213506e 17059if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17060 gcc_cv_math_func_asinhf=yes
453310d8 17061else
db9f46a9 17062 gcc_cv_math_func_asinhf=no
453310d8 17063fi
5213506e
RW
17064rm -f core conftest.err conftest.$ac_objext \
17065 conftest$ac_exeext conftest.$ac_ext
453310d8 17066fi
db9f46a9
TG
17067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17068$as_echo "$gcc_cv_math_func_asinhf" >&6; }
17069 if test $gcc_cv_math_func_asinhf = yes; then
f1cdfa01 17070
f38a14ca
TG
17071cat >>confdefs.h <<_ACEOF
17072#define HAVE_ASINHF 1
17073_ACEOF
db9f46a9
TG
17074
17075 fi
17076
453310d8 17077
453310d8 17078
453310d8 17079
db9f46a9
TG
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17081$as_echo_n "checking for asinh... " >&6; }
17082if test "${gcc_cv_math_func_asinh+set}" = set; then :
5213506e 17083 $as_echo_n "(cached) " >&6
453310d8 17084else
db9f46a9 17085 if test x$gcc_no_link = xyes; then
5213506e 17086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17087fi
5213506e 17088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17089/* end confdefs.h. */
17090
db9f46a9
TG
17091#ifdef HAVE_COMPLEX_H
17092#include <complex.h>
17093#endif
17094#ifdef HAVE_MATH_H
17095#include <math.h>
453310d8 17096#endif
db9f46a9
TG
17097
17098int (*ptr)() = (int (*)())asinh;
17099
453310d8
RS
17100int
17101main ()
17102{
453310d8
RS
17103 return 0;
17104}
db9f46a9 17105
453310d8 17106_ACEOF
5213506e 17107if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17108 gcc_cv_math_func_asinh=yes
453310d8 17109else
db9f46a9 17110 gcc_cv_math_func_asinh=no
453310d8 17111fi
5213506e
RW
17112rm -f core conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
453310d8 17114fi
db9f46a9
TG
17115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17116$as_echo "$gcc_cv_math_func_asinh" >&6; }
17117 if test $gcc_cv_math_func_asinh = yes; then
f1cdfa01 17118
f38a14ca
TG
17119cat >>confdefs.h <<_ACEOF
17120#define HAVE_ASINH 1
17121_ACEOF
db9f46a9
TG
17122
17123 fi
453310d8 17124
453310d8 17125
453310d8 17126
db9f46a9
TG
17127
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17129$as_echo_n "checking for asinhl... " >&6; }
17130if test "${gcc_cv_math_func_asinhl+set}" = set; then :
5213506e 17131 $as_echo_n "(cached) " >&6
6e4d9244 17132else
db9f46a9 17133 if test x$gcc_no_link = xyes; then
5213506e 17134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17135fi
5213506e 17136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17137/* end confdefs.h. */
17138
db9f46a9
TG
17139#ifdef HAVE_COMPLEX_H
17140#include <complex.h>
6e4d9244 17141#endif
db9f46a9
TG
17142#ifdef HAVE_MATH_H
17143#include <math.h>
17144#endif
17145
17146int (*ptr)() = (int (*)())asinhl;
17147
6e4d9244
EB
17148int
17149main ()
17150{
6e4d9244
EB
17151 return 0;
17152}
db9f46a9 17153
6e4d9244 17154_ACEOF
5213506e 17155if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17156 gcc_cv_math_func_asinhl=yes
6e4d9244 17157else
db9f46a9 17158 gcc_cv_math_func_asinhl=no
6e4d9244 17159fi
5213506e
RW
17160rm -f core conftest.err conftest.$ac_objext \
17161 conftest$ac_exeext conftest.$ac_ext
6e4d9244 17162fi
db9f46a9
TG
17163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17164$as_echo "$gcc_cv_math_func_asinhl" >&6; }
17165 if test $gcc_cv_math_func_asinhl = yes; then
f1cdfa01 17166
f38a14ca
TG
17167cat >>confdefs.h <<_ACEOF
17168#define HAVE_ASINHL 1
17169_ACEOF
6e4d9244 17170
db9f46a9 17171 fi
6e4d9244 17172
6e4d9244 17173
db9f46a9
TG
17174
17175
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17177$as_echo_n "checking for atan2f... " >&6; }
17178if test "${gcc_cv_math_func_atan2f+set}" = set; then :
5213506e 17179 $as_echo_n "(cached) " >&6
453310d8 17180else
db9f46a9 17181 if test x$gcc_no_link = xyes; then
5213506e 17182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17183fi
5213506e 17184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17185/* end confdefs.h. */
17186
db9f46a9
TG
17187#ifdef HAVE_COMPLEX_H
17188#include <complex.h>
453310d8 17189#endif
db9f46a9
TG
17190#ifdef HAVE_MATH_H
17191#include <math.h>
17192#endif
17193
17194int (*ptr)() = (int (*)())atan2f;
17195
17196int
453310d8
RS
17197main ()
17198{
453310d8
RS
17199 return 0;
17200}
db9f46a9 17201
453310d8 17202_ACEOF
5213506e 17203if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17204 gcc_cv_math_func_atan2f=yes
453310d8 17205else
db9f46a9 17206 gcc_cv_math_func_atan2f=no
453310d8 17207fi
5213506e
RW
17208rm -f core conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
453310d8 17210fi
db9f46a9
TG
17211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17212$as_echo "$gcc_cv_math_func_atan2f" >&6; }
17213 if test $gcc_cv_math_func_atan2f = yes; then
f1cdfa01 17214
f38a14ca
TG
17215cat >>confdefs.h <<_ACEOF
17216#define HAVE_ATAN2F 1
17217_ACEOF
db9f46a9
TG
17218
17219 fi
453310d8 17220
453310d8 17221
453310d8 17222
db9f46a9
TG
17223
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17225$as_echo_n "checking for atan2... " >&6; }
17226if test "${gcc_cv_math_func_atan2+set}" = set; then :
5213506e 17227 $as_echo_n "(cached) " >&6
453310d8 17228else
db9f46a9 17229 if test x$gcc_no_link = xyes; then
5213506e 17230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17231fi
5213506e 17232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17233/* end confdefs.h. */
17234
db9f46a9
TG
17235#ifdef HAVE_COMPLEX_H
17236#include <complex.h>
453310d8 17237#endif
db9f46a9
TG
17238#ifdef HAVE_MATH_H
17239#include <math.h>
17240#endif
17241
17242int (*ptr)() = (int (*)())atan2;
17243
453310d8
RS
17244int
17245main ()
17246{
453310d8
RS
17247 return 0;
17248}
db9f46a9 17249
453310d8 17250_ACEOF
5213506e 17251if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17252 gcc_cv_math_func_atan2=yes
453310d8 17253else
db9f46a9 17254 gcc_cv_math_func_atan2=no
453310d8 17255fi
5213506e
RW
17256rm -f core conftest.err conftest.$ac_objext \
17257 conftest$ac_exeext conftest.$ac_ext
453310d8 17258fi
db9f46a9
TG
17259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17260$as_echo "$gcc_cv_math_func_atan2" >&6; }
17261 if test $gcc_cv_math_func_atan2 = yes; then
f1cdfa01 17262
f38a14ca
TG
17263cat >>confdefs.h <<_ACEOF
17264#define HAVE_ATAN2 1
17265_ACEOF
453310d8 17266
db9f46a9 17267 fi
453310d8 17268
453310d8 17269
db9f46a9
TG
17270
17271
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17273$as_echo_n "checking for atan2l... " >&6; }
17274if test "${gcc_cv_math_func_atan2l+set}" = set; then :
5213506e 17275 $as_echo_n "(cached) " >&6
453310d8 17276else
db9f46a9 17277 if test x$gcc_no_link = xyes; then
5213506e 17278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17279fi
5213506e 17280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17281/* end confdefs.h. */
17282
db9f46a9
TG
17283#ifdef HAVE_COMPLEX_H
17284#include <complex.h>
17285#endif
17286#ifdef HAVE_MATH_H
17287#include <math.h>
453310d8 17288#endif
db9f46a9
TG
17289
17290int (*ptr)() = (int (*)())atan2l;
17291
453310d8
RS
17292int
17293main ()
17294{
453310d8
RS
17295 return 0;
17296}
db9f46a9 17297
453310d8 17298_ACEOF
5213506e 17299if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17300 gcc_cv_math_func_atan2l=yes
453310d8 17301else
db9f46a9 17302 gcc_cv_math_func_atan2l=no
453310d8 17303fi
5213506e
RW
17304rm -f core conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
453310d8 17306fi
db9f46a9
TG
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17308$as_echo "$gcc_cv_math_func_atan2l" >&6; }
17309 if test $gcc_cv_math_func_atan2l = yes; then
f1cdfa01 17310
f38a14ca
TG
17311cat >>confdefs.h <<_ACEOF
17312#define HAVE_ATAN2L 1
17313_ACEOF
db9f46a9
TG
17314
17315 fi
453310d8 17316
453310d8 17317
453310d8 17318
db9f46a9
TG
17319
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17321$as_echo_n "checking for atanf... " >&6; }
17322if test "${gcc_cv_math_func_atanf+set}" = set; then :
5213506e 17323 $as_echo_n "(cached) " >&6
453310d8 17324else
db9f46a9 17325 if test x$gcc_no_link = xyes; then
5213506e 17326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17327fi
5213506e 17328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17329/* end confdefs.h. */
17330
db9f46a9
TG
17331#ifdef HAVE_COMPLEX_H
17332#include <complex.h>
453310d8 17333#endif
db9f46a9
TG
17334#ifdef HAVE_MATH_H
17335#include <math.h>
17336#endif
17337
17338int (*ptr)() = (int (*)())atanf;
17339
453310d8
RS
17340int
17341main ()
17342{
453310d8
RS
17343 return 0;
17344}
db9f46a9 17345
453310d8 17346_ACEOF
5213506e 17347if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17348 gcc_cv_math_func_atanf=yes
453310d8 17349else
db9f46a9 17350 gcc_cv_math_func_atanf=no
453310d8 17351fi
5213506e
RW
17352rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
453310d8 17354fi
db9f46a9
TG
17355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17356$as_echo "$gcc_cv_math_func_atanf" >&6; }
17357 if test $gcc_cv_math_func_atanf = yes; then
f1cdfa01 17358
f38a14ca
TG
17359cat >>confdefs.h <<_ACEOF
17360#define HAVE_ATANF 1
17361_ACEOF
db9f46a9
TG
17362
17363 fi
17364
453310d8 17365
453310d8 17366
453310d8 17367
db9f46a9
TG
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17369$as_echo_n "checking for atan... " >&6; }
17370if test "${gcc_cv_math_func_atan+set}" = set; then :
5213506e 17371 $as_echo_n "(cached) " >&6
453310d8 17372else
db9f46a9 17373 if test x$gcc_no_link = xyes; then
5213506e 17374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17375fi
5213506e 17376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17377/* end confdefs.h. */
17378
db9f46a9
TG
17379#ifdef HAVE_COMPLEX_H
17380#include <complex.h>
17381#endif
17382#ifdef HAVE_MATH_H
17383#include <math.h>
453310d8 17384#endif
db9f46a9
TG
17385
17386int (*ptr)() = (int (*)())atan;
17387
453310d8
RS
17388int
17389main ()
17390{
453310d8
RS
17391 return 0;
17392}
db9f46a9 17393
453310d8 17394_ACEOF
5213506e 17395if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17396 gcc_cv_math_func_atan=yes
453310d8 17397else
db9f46a9 17398 gcc_cv_math_func_atan=no
453310d8 17399fi
5213506e
RW
17400rm -f core conftest.err conftest.$ac_objext \
17401 conftest$ac_exeext conftest.$ac_ext
453310d8 17402fi
db9f46a9
TG
17403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17404$as_echo "$gcc_cv_math_func_atan" >&6; }
17405 if test $gcc_cv_math_func_atan = yes; then
f1cdfa01 17406
f38a14ca
TG
17407cat >>confdefs.h <<_ACEOF
17408#define HAVE_ATAN 1
17409_ACEOF
db9f46a9
TG
17410
17411 fi
453310d8 17412
453310d8 17413
453310d8 17414
db9f46a9
TG
17415
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17417$as_echo_n "checking for atanl... " >&6; }
17418if test "${gcc_cv_math_func_atanl+set}" = set; then :
5213506e 17419 $as_echo_n "(cached) " >&6
32aa3bff 17420else
db9f46a9 17421 if test x$gcc_no_link = xyes; then
5213506e 17422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17423fi
5213506e 17424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
17425/* end confdefs.h. */
17426
db9f46a9
TG
17427#ifdef HAVE_COMPLEX_H
17428#include <complex.h>
32aa3bff 17429#endif
db9f46a9
TG
17430#ifdef HAVE_MATH_H
17431#include <math.h>
17432#endif
17433
17434int (*ptr)() = (int (*)())atanl;
17435
32aa3bff
FXC
17436int
17437main ()
17438{
32aa3bff
FXC
17439 return 0;
17440}
db9f46a9 17441
32aa3bff 17442_ACEOF
5213506e 17443if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17444 gcc_cv_math_func_atanl=yes
32aa3bff 17445else
db9f46a9 17446 gcc_cv_math_func_atanl=no
32aa3bff 17447fi
5213506e
RW
17448rm -f core conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
32aa3bff 17450fi
db9f46a9
TG
17451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17452$as_echo "$gcc_cv_math_func_atanl" >&6; }
17453 if test $gcc_cv_math_func_atanl = yes; then
f1cdfa01 17454
f38a14ca
TG
17455cat >>confdefs.h <<_ACEOF
17456#define HAVE_ATANL 1
17457_ACEOF
32aa3bff 17458
db9f46a9 17459 fi
32aa3bff 17460
32aa3bff 17461
db9f46a9
TG
17462
17463
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17465$as_echo_n "checking for atanhf... " >&6; }
17466if test "${gcc_cv_math_func_atanhf+set}" = set; then :
5213506e 17467 $as_echo_n "(cached) " >&6
453310d8 17468else
db9f46a9 17469 if test x$gcc_no_link = xyes; then
5213506e 17470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17471fi
5213506e 17472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17473/* end confdefs.h. */
17474
db9f46a9
TG
17475#ifdef HAVE_COMPLEX_H
17476#include <complex.h>
17477#endif
17478#ifdef HAVE_MATH_H
17479#include <math.h>
453310d8 17480#endif
db9f46a9
TG
17481
17482int (*ptr)() = (int (*)())atanhf;
17483
453310d8
RS
17484int
17485main ()
17486{
453310d8
RS
17487 return 0;
17488}
db9f46a9 17489
453310d8 17490_ACEOF
5213506e 17491if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17492 gcc_cv_math_func_atanhf=yes
453310d8 17493else
db9f46a9 17494 gcc_cv_math_func_atanhf=no
453310d8 17495fi
5213506e
RW
17496rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
453310d8 17498fi
db9f46a9
TG
17499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17500$as_echo "$gcc_cv_math_func_atanhf" >&6; }
17501 if test $gcc_cv_math_func_atanhf = yes; then
f1cdfa01 17502
f38a14ca
TG
17503cat >>confdefs.h <<_ACEOF
17504#define HAVE_ATANHF 1
17505_ACEOF
db9f46a9
TG
17506
17507 fi
453310d8 17508
453310d8 17509
453310d8 17510
db9f46a9
TG
17511
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17513$as_echo_n "checking for atanh... " >&6; }
17514if test "${gcc_cv_math_func_atanh+set}" = set; then :
5213506e 17515 $as_echo_n "(cached) " >&6
453310d8 17516else
db9f46a9 17517 if test x$gcc_no_link = xyes; then
5213506e 17518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17519fi
5213506e 17520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17521/* end confdefs.h. */
17522
db9f46a9
TG
17523#ifdef HAVE_COMPLEX_H
17524#include <complex.h>
453310d8 17525#endif
db9f46a9
TG
17526#ifdef HAVE_MATH_H
17527#include <math.h>
17528#endif
17529
17530int (*ptr)() = (int (*)())atanh;
17531
453310d8
RS
17532int
17533main ()
17534{
453310d8
RS
17535 return 0;
17536}
db9f46a9 17537
453310d8 17538_ACEOF
5213506e 17539if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17540 gcc_cv_math_func_atanh=yes
453310d8 17541else
db9f46a9 17542 gcc_cv_math_func_atanh=no
453310d8 17543fi
5213506e
RW
17544rm -f core conftest.err conftest.$ac_objext \
17545 conftest$ac_exeext conftest.$ac_ext
453310d8 17546fi
db9f46a9
TG
17547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17548$as_echo "$gcc_cv_math_func_atanh" >&6; }
17549 if test $gcc_cv_math_func_atanh = yes; then
f1cdfa01 17550
f38a14ca
TG
17551cat >>confdefs.h <<_ACEOF
17552#define HAVE_ATANH 1
17553_ACEOF
db9f46a9
TG
17554
17555 fi
17556
453310d8 17557
453310d8 17558
453310d8 17559
db9f46a9
TG
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17561$as_echo_n "checking for atanhl... " >&6; }
17562if test "${gcc_cv_math_func_atanhl+set}" = set; then :
5213506e 17563 $as_echo_n "(cached) " >&6
bf4d99cf 17564else
db9f46a9 17565 if test x$gcc_no_link = xyes; then
5213506e 17566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17567fi
5213506e 17568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
17569/* end confdefs.h. */
17570
db9f46a9
TG
17571#ifdef HAVE_COMPLEX_H
17572#include <complex.h>
17573#endif
17574#ifdef HAVE_MATH_H
17575#include <math.h>
bf4d99cf 17576#endif
db9f46a9
TG
17577
17578int (*ptr)() = (int (*)())atanhl;
17579
bf4d99cf
TS
17580int
17581main ()
17582{
bf4d99cf
TS
17583 return 0;
17584}
db9f46a9 17585
bf4d99cf 17586_ACEOF
5213506e 17587if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17588 gcc_cv_math_func_atanhl=yes
bf4d99cf 17589else
db9f46a9 17590 gcc_cv_math_func_atanhl=no
bf4d99cf 17591fi
5213506e
RW
17592rm -f core conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
bf4d99cf 17594fi
db9f46a9
TG
17595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17596$as_echo "$gcc_cv_math_func_atanhl" >&6; }
17597 if test $gcc_cv_math_func_atanhl = yes; then
f1cdfa01 17598
f38a14ca
TG
17599cat >>confdefs.h <<_ACEOF
17600#define HAVE_ATANHL 1
17601_ACEOF
db9f46a9
TG
17602
17603 fi
bf4d99cf 17604
bf4d99cf 17605
bf4d99cf 17606
db9f46a9
TG
17607
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17609$as_echo_n "checking for cargf... " >&6; }
17610if test "${gcc_cv_math_func_cargf+set}" = set; then :
5213506e 17611 $as_echo_n "(cached) " >&6
a2a2059f 17612else
db9f46a9 17613 if test x$gcc_no_link = xyes; then
5213506e 17614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17615fi
5213506e 17616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17617/* end confdefs.h. */
17618
db9f46a9
TG
17619#ifdef HAVE_COMPLEX_H
17620#include <complex.h>
a2a2059f 17621#endif
db9f46a9
TG
17622#ifdef HAVE_MATH_H
17623#include <math.h>
17624#endif
17625
17626int (*ptr)() = (int (*)())cargf;
17627
453310d8
RS
17628int
17629main ()
17630{
453310d8
RS
17631 return 0;
17632}
db9f46a9 17633
453310d8 17634_ACEOF
5213506e 17635if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17636 gcc_cv_math_func_cargf=yes
453310d8 17637else
db9f46a9 17638 gcc_cv_math_func_cargf=no
453310d8 17639fi
5213506e
RW
17640rm -f core conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
453310d8 17642fi
db9f46a9
TG
17643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17644$as_echo "$gcc_cv_math_func_cargf" >&6; }
17645 if test $gcc_cv_math_func_cargf = yes; then
f1cdfa01 17646
f38a14ca
TG
17647cat >>confdefs.h <<_ACEOF
17648#define HAVE_CARGF 1
17649_ACEOF
453310d8 17650
db9f46a9 17651 fi
453310d8 17652
453310d8 17653
db9f46a9
TG
17654
17655
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17657$as_echo_n "checking for carg... " >&6; }
17658if test "${gcc_cv_math_func_carg+set}" = set; then :
5213506e 17659 $as_echo_n "(cached) " >&6
453310d8 17660else
db9f46a9 17661 if test x$gcc_no_link = xyes; then
5213506e 17662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17663fi
5213506e 17664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17665/* end confdefs.h. */
17666
db9f46a9
TG
17667#ifdef HAVE_COMPLEX_H
17668#include <complex.h>
17669#endif
17670#ifdef HAVE_MATH_H
17671#include <math.h>
453310d8 17672#endif
db9f46a9
TG
17673
17674int (*ptr)() = (int (*)())carg;
17675
a2a2059f
BD
17676int
17677main ()
17678{
a2a2059f
BD
17679 return 0;
17680}
db9f46a9 17681
a2a2059f 17682_ACEOF
5213506e 17683if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17684 gcc_cv_math_func_carg=yes
a2a2059f 17685else
db9f46a9 17686 gcc_cv_math_func_carg=no
a2a2059f 17687fi
5213506e
RW
17688rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
a2a2059f 17690fi
db9f46a9
TG
17691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17692$as_echo "$gcc_cv_math_func_carg" >&6; }
17693 if test $gcc_cv_math_func_carg = yes; then
f1cdfa01 17694
f38a14ca
TG
17695cat >>confdefs.h <<_ACEOF
17696#define HAVE_CARG 1
17697_ACEOF
db9f46a9
TG
17698
17699 fi
a2a2059f 17700
a2a2059f 17701
a2a2059f 17702
db9f46a9
TG
17703
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17705$as_echo_n "checking for cargl... " >&6; }
17706if test "${gcc_cv_math_func_cargl+set}" = set; then :
5213506e 17707 $as_echo_n "(cached) " >&6
a2a2059f 17708else
db9f46a9 17709 if test x$gcc_no_link = xyes; then
5213506e 17710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17711fi
5213506e 17712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17713/* end confdefs.h. */
17714
db9f46a9
TG
17715#ifdef HAVE_COMPLEX_H
17716#include <complex.h>
a2a2059f 17717#endif
db9f46a9
TG
17718#ifdef HAVE_MATH_H
17719#include <math.h>
17720#endif
17721
17722int (*ptr)() = (int (*)())cargl;
17723
a2a2059f
BD
17724int
17725main ()
17726{
a2a2059f
BD
17727 return 0;
17728}
db9f46a9 17729
a2a2059f 17730_ACEOF
5213506e 17731if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17732 gcc_cv_math_func_cargl=yes
a2a2059f 17733else
db9f46a9 17734 gcc_cv_math_func_cargl=no
a2a2059f 17735fi
5213506e
RW
17736rm -f core conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
a2a2059f 17738fi
db9f46a9
TG
17739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17740$as_echo "$gcc_cv_math_func_cargl" >&6; }
17741 if test $gcc_cv_math_func_cargl = yes; then
f1cdfa01 17742
f38a14ca
TG
17743cat >>confdefs.h <<_ACEOF
17744#define HAVE_CARGL 1
17745_ACEOF
db9f46a9
TG
17746
17747 fi
17748
a2a2059f 17749
a2a2059f 17750
a2a2059f 17751
db9f46a9
TG
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17753$as_echo_n "checking for ceilf... " >&6; }
17754if test "${gcc_cv_math_func_ceilf+set}" = set; then :
5213506e 17755 $as_echo_n "(cached) " >&6
ae973d6a 17756else
db9f46a9 17757 if test x$gcc_no_link = xyes; then
5213506e 17758 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17759fi
5213506e 17760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
17761/* end confdefs.h. */
17762
db9f46a9
TG
17763#ifdef HAVE_COMPLEX_H
17764#include <complex.h>
17765#endif
17766#ifdef HAVE_MATH_H
17767#include <math.h>
ae973d6a 17768#endif
db9f46a9
TG
17769
17770int (*ptr)() = (int (*)())ceilf;
17771
ae973d6a
FXC
17772int
17773main ()
17774{
ae973d6a
FXC
17775 return 0;
17776}
db9f46a9 17777
ae973d6a 17778_ACEOF
5213506e 17779if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17780 gcc_cv_math_func_ceilf=yes
ae973d6a 17781else
db9f46a9 17782 gcc_cv_math_func_ceilf=no
ae973d6a 17783fi
5213506e
RW
17784rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
ae973d6a 17786fi
db9f46a9
TG
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17788$as_echo "$gcc_cv_math_func_ceilf" >&6; }
17789 if test $gcc_cv_math_func_ceilf = yes; then
f1cdfa01 17790
f38a14ca
TG
17791cat >>confdefs.h <<_ACEOF
17792#define HAVE_CEILF 1
17793_ACEOF
db9f46a9
TG
17794
17795 fi
ae973d6a 17796
ae973d6a 17797
ae973d6a 17798
db9f46a9
TG
17799
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17801$as_echo_n "checking for ceil... " >&6; }
17802if test "${gcc_cv_math_func_ceil+set}" = set; then :
5213506e 17803 $as_echo_n "(cached) " >&6
a9e7b9d3 17804else
db9f46a9 17805 if test x$gcc_no_link = xyes; then
5213506e 17806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17807fi
5213506e 17808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
17809/* end confdefs.h. */
17810
db9f46a9
TG
17811#ifdef HAVE_COMPLEX_H
17812#include <complex.h>
a9e7b9d3 17813#endif
db9f46a9
TG
17814#ifdef HAVE_MATH_H
17815#include <math.h>
17816#endif
17817
17818int (*ptr)() = (int (*)())ceil;
17819
a9e7b9d3
PB
17820int
17821main ()
17822{
a9e7b9d3
PB
17823 return 0;
17824}
db9f46a9 17825
a9e7b9d3 17826_ACEOF
5213506e 17827if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17828 gcc_cv_math_func_ceil=yes
a9e7b9d3 17829else
db9f46a9 17830 gcc_cv_math_func_ceil=no
a9e7b9d3 17831fi
5213506e
RW
17832rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 17834fi
db9f46a9
TG
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17836$as_echo "$gcc_cv_math_func_ceil" >&6; }
17837 if test $gcc_cv_math_func_ceil = yes; then
f1cdfa01 17838
f38a14ca
TG
17839cat >>confdefs.h <<_ACEOF
17840#define HAVE_CEIL 1
17841_ACEOF
a9e7b9d3 17842
db9f46a9 17843 fi
a9e7b9d3 17844
a9e7b9d3 17845
db9f46a9
TG
17846
17847
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17849$as_echo_n "checking for ceill... " >&6; }
17850if test "${gcc_cv_math_func_ceill+set}" = set; then :
5213506e 17851 $as_echo_n "(cached) " >&6
a9e7b9d3 17852else
db9f46a9 17853 if test x$gcc_no_link = xyes; then
5213506e 17854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17855fi
5213506e 17856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
17857/* end confdefs.h. */
17858
db9f46a9
TG
17859#ifdef HAVE_COMPLEX_H
17860#include <complex.h>
17861#endif
17862#ifdef HAVE_MATH_H
17863#include <math.h>
a9e7b9d3 17864#endif
db9f46a9
TG
17865
17866int (*ptr)() = (int (*)())ceill;
17867
a9e7b9d3
PB
17868int
17869main ()
17870{
a9e7b9d3
PB
17871 return 0;
17872}
db9f46a9 17873
a9e7b9d3 17874_ACEOF
5213506e 17875if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17876 gcc_cv_math_func_ceill=yes
a9e7b9d3 17877else
db9f46a9 17878 gcc_cv_math_func_ceill=no
a9e7b9d3 17879fi
5213506e
RW
17880rm -f core conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3 17882fi
db9f46a9
TG
17883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
17884$as_echo "$gcc_cv_math_func_ceill" >&6; }
17885 if test $gcc_cv_math_func_ceill = yes; then
f1cdfa01 17886
f38a14ca
TG
17887cat >>confdefs.h <<_ACEOF
17888#define HAVE_CEILL 1
17889_ACEOF
db9f46a9
TG
17890
17891 fi
a9e7b9d3 17892
453310d8 17893
453310d8 17894
db9f46a9
TG
17895
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
17897$as_echo_n "checking for copysignf... " >&6; }
17898if test "${gcc_cv_math_func_copysignf+set}" = set; then :
5213506e 17899 $as_echo_n "(cached) " >&6
453310d8 17900else
db9f46a9 17901 if test x$gcc_no_link = xyes; then
5213506e 17902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17903fi
5213506e 17904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17905/* end confdefs.h. */
17906
db9f46a9
TG
17907#ifdef HAVE_COMPLEX_H
17908#include <complex.h>
453310d8 17909#endif
db9f46a9
TG
17910#ifdef HAVE_MATH_H
17911#include <math.h>
17912#endif
17913
17914int (*ptr)() = (int (*)())copysignf;
17915
453310d8
RS
17916int
17917main ()
17918{
453310d8
RS
17919 return 0;
17920}
db9f46a9 17921
453310d8 17922_ACEOF
5213506e 17923if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17924 gcc_cv_math_func_copysignf=yes
453310d8 17925else
db9f46a9 17926 gcc_cv_math_func_copysignf=no
453310d8 17927fi
5213506e
RW
17928rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
453310d8 17930fi
db9f46a9
TG
17931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
17932$as_echo "$gcc_cv_math_func_copysignf" >&6; }
17933 if test $gcc_cv_math_func_copysignf = yes; then
f1cdfa01 17934
f38a14ca
TG
17935cat >>confdefs.h <<_ACEOF
17936#define HAVE_COPYSIGNF 1
17937_ACEOF
db9f46a9
TG
17938
17939 fi
17940
453310d8 17941
453310d8 17942
453310d8 17943
db9f46a9
TG
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
17945$as_echo_n "checking for copysign... " >&6; }
17946if test "${gcc_cv_math_func_copysign+set}" = set; then :
5213506e 17947 $as_echo_n "(cached) " >&6
453310d8 17948else
db9f46a9 17949 if test x$gcc_no_link = xyes; then
5213506e 17950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17951fi
5213506e 17952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17953/* end confdefs.h. */
17954
db9f46a9
TG
17955#ifdef HAVE_COMPLEX_H
17956#include <complex.h>
17957#endif
17958#ifdef HAVE_MATH_H
17959#include <math.h>
453310d8 17960#endif
db9f46a9
TG
17961
17962int (*ptr)() = (int (*)())copysign;
17963
453310d8
RS
17964int
17965main ()
17966{
453310d8
RS
17967 return 0;
17968}
db9f46a9 17969
453310d8 17970_ACEOF
5213506e 17971if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 17972 gcc_cv_math_func_copysign=yes
453310d8 17973else
db9f46a9 17974 gcc_cv_math_func_copysign=no
453310d8 17975fi
5213506e
RW
17976rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
453310d8 17978fi
db9f46a9
TG
17979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
17980$as_echo "$gcc_cv_math_func_copysign" >&6; }
17981 if test $gcc_cv_math_func_copysign = yes; then
f1cdfa01 17982
f38a14ca
TG
17983cat >>confdefs.h <<_ACEOF
17984#define HAVE_COPYSIGN 1
17985_ACEOF
db9f46a9
TG
17986
17987 fi
453310d8 17988
453310d8 17989
453310d8 17990
db9f46a9
TG
17991
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
17993$as_echo_n "checking for copysignl... " >&6; }
17994if test "${gcc_cv_math_func_copysignl+set}" = set; then :
5213506e 17995 $as_echo_n "(cached) " >&6
453310d8 17996else
db9f46a9 17997 if test x$gcc_no_link = xyes; then
5213506e 17998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17999fi
5213506e 18000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18001/* end confdefs.h. */
18002
db9f46a9
TG
18003#ifdef HAVE_COMPLEX_H
18004#include <complex.h>
453310d8 18005#endif
db9f46a9
TG
18006#ifdef HAVE_MATH_H
18007#include <math.h>
18008#endif
18009
18010int (*ptr)() = (int (*)())copysignl;
18011
453310d8
RS
18012int
18013main ()
18014{
5213506e
RW
18015 return 0;
18016}
db9f46a9 18017
5213506e
RW
18018_ACEOF
18019if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18020 gcc_cv_math_func_copysignl=yes
453310d8 18021else
db9f46a9 18022 gcc_cv_math_func_copysignl=no
453310d8 18023fi
5213506e
RW
18024rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
453310d8 18026fi
db9f46a9
TG
18027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18028$as_echo "$gcc_cv_math_func_copysignl" >&6; }
18029 if test $gcc_cv_math_func_copysignl = yes; then
f1cdfa01 18030
f38a14ca
TG
18031cat >>confdefs.h <<_ACEOF
18032#define HAVE_COPYSIGNL 1
18033_ACEOF
453310d8 18034
db9f46a9 18035 fi
a9e7b9d3 18036
a9e7b9d3 18037
db9f46a9
TG
18038
18039
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18041$as_echo_n "checking for cosf... " >&6; }
18042if test "${gcc_cv_math_func_cosf+set}" = set; then :
5213506e 18043 $as_echo_n "(cached) " >&6
69a2d125 18044else
db9f46a9 18045 if test x$gcc_no_link = xyes; then
5213506e 18046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18047fi
5213506e 18048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18049/* end confdefs.h. */
18050
db9f46a9
TG
18051#ifdef HAVE_COMPLEX_H
18052#include <complex.h>
18053#endif
18054#ifdef HAVE_MATH_H
18055#include <math.h>
69a2d125 18056#endif
db9f46a9
TG
18057
18058int (*ptr)() = (int (*)())cosf;
18059
69a2d125
EB
18060int
18061main ()
18062{
69a2d125
EB
18063 return 0;
18064}
db9f46a9 18065
69a2d125 18066_ACEOF
5213506e 18067if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18068 gcc_cv_math_func_cosf=yes
69a2d125 18069else
db9f46a9 18070 gcc_cv_math_func_cosf=no
69a2d125 18071fi
5213506e
RW
18072rm -f core conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
69a2d125 18074fi
db9f46a9
TG
18075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18076$as_echo "$gcc_cv_math_func_cosf" >&6; }
18077 if test $gcc_cv_math_func_cosf = yes; then
f1cdfa01 18078
f38a14ca
TG
18079cat >>confdefs.h <<_ACEOF
18080#define HAVE_COSF 1
18081_ACEOF
db9f46a9
TG
18082
18083 fi
69a2d125 18084
1409cd0b 18085
1409cd0b 18086
db9f46a9
TG
18087
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18089$as_echo_n "checking for cos... " >&6; }
18090if test "${gcc_cv_math_func_cos+set}" = set; then :
5213506e 18091 $as_echo_n "(cached) " >&6
1409cd0b 18092else
db9f46a9 18093 if test x$gcc_no_link = xyes; then
5213506e 18094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18095fi
5213506e 18096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18097/* end confdefs.h. */
18098
db9f46a9
TG
18099#ifdef HAVE_COMPLEX_H
18100#include <complex.h>
1409cd0b 18101#endif
db9f46a9
TG
18102#ifdef HAVE_MATH_H
18103#include <math.h>
18104#endif
18105
18106int (*ptr)() = (int (*)())cos;
18107
1409cd0b
FXC
18108int
18109main ()
18110{
1409cd0b
FXC
18111 return 0;
18112}
db9f46a9 18113
1409cd0b 18114_ACEOF
5213506e 18115if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18116 gcc_cv_math_func_cos=yes
1409cd0b 18117else
db9f46a9 18118 gcc_cv_math_func_cos=no
1409cd0b 18119fi
5213506e
RW
18120rm -f core conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18122fi
db9f46a9
TG
18123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18124$as_echo "$gcc_cv_math_func_cos" >&6; }
18125 if test $gcc_cv_math_func_cos = yes; then
f1cdfa01 18126
f38a14ca
TG
18127cat >>confdefs.h <<_ACEOF
18128#define HAVE_COS 1
18129_ACEOF
db9f46a9
TG
18130
18131 fi
18132
1409cd0b 18133
1409cd0b 18134
1409cd0b 18135
db9f46a9
TG
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18137$as_echo_n "checking for cosl... " >&6; }
18138if test "${gcc_cv_math_func_cosl+set}" = set; then :
5213506e 18139 $as_echo_n "(cached) " >&6
1409cd0b 18140else
db9f46a9 18141 if test x$gcc_no_link = xyes; then
5213506e 18142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18143fi
5213506e 18144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18145/* end confdefs.h. */
18146
db9f46a9
TG
18147#ifdef HAVE_COMPLEX_H
18148#include <complex.h>
18149#endif
18150#ifdef HAVE_MATH_H
18151#include <math.h>
1409cd0b 18152#endif
db9f46a9
TG
18153
18154int (*ptr)() = (int (*)())cosl;
18155
1409cd0b
FXC
18156int
18157main ()
18158{
1409cd0b
FXC
18159 return 0;
18160}
db9f46a9 18161
1409cd0b 18162_ACEOF
5213506e 18163if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18164 gcc_cv_math_func_cosl=yes
1409cd0b 18165else
db9f46a9 18166 gcc_cv_math_func_cosl=no
1409cd0b 18167fi
5213506e
RW
18168rm -f core conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18170fi
db9f46a9
TG
18171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18172$as_echo "$gcc_cv_math_func_cosl" >&6; }
18173 if test $gcc_cv_math_func_cosl = yes; then
f1cdfa01 18174
f38a14ca
TG
18175cat >>confdefs.h <<_ACEOF
18176#define HAVE_COSL 1
18177_ACEOF
db9f46a9
TG
18178
18179 fi
1409cd0b 18180
1409cd0b 18181
1409cd0b 18182
db9f46a9
TG
18183
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18185$as_echo_n "checking for ccosf... " >&6; }
18186if test "${gcc_cv_math_func_ccosf+set}" = set; then :
5213506e 18187 $as_echo_n "(cached) " >&6
1409cd0b 18188else
db9f46a9 18189 if test x$gcc_no_link = xyes; then
5213506e 18190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18191fi
5213506e 18192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18193/* end confdefs.h. */
18194
db9f46a9
TG
18195#ifdef HAVE_COMPLEX_H
18196#include <complex.h>
1409cd0b 18197#endif
db9f46a9
TG
18198#ifdef HAVE_MATH_H
18199#include <math.h>
18200#endif
18201
18202int (*ptr)() = (int (*)())ccosf;
18203
1409cd0b
FXC
18204int
18205main ()
18206{
1409cd0b
FXC
18207 return 0;
18208}
db9f46a9 18209
1409cd0b 18210_ACEOF
5213506e 18211if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18212 gcc_cv_math_func_ccosf=yes
1409cd0b 18213else
db9f46a9 18214 gcc_cv_math_func_ccosf=no
1409cd0b 18215fi
5213506e
RW
18216rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18218fi
db9f46a9
TG
18219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18220$as_echo "$gcc_cv_math_func_ccosf" >&6; }
18221 if test $gcc_cv_math_func_ccosf = yes; then
f1cdfa01 18222
f38a14ca
TG
18223cat >>confdefs.h <<_ACEOF
18224#define HAVE_CCOSF 1
18225_ACEOF
1409cd0b 18226
db9f46a9 18227 fi
1409cd0b 18228
1409cd0b 18229
db9f46a9
TG
18230
18231
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18233$as_echo_n "checking for ccos... " >&6; }
18234if test "${gcc_cv_math_func_ccos+set}" = set; then :
5213506e 18235 $as_echo_n "(cached) " >&6
1409cd0b 18236else
db9f46a9 18237 if test x$gcc_no_link = xyes; then
5213506e 18238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18239fi
5213506e 18240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18241/* end confdefs.h. */
18242
db9f46a9
TG
18243#ifdef HAVE_COMPLEX_H
18244#include <complex.h>
18245#endif
18246#ifdef HAVE_MATH_H
18247#include <math.h>
1409cd0b 18248#endif
db9f46a9
TG
18249
18250int (*ptr)() = (int (*)())ccos;
18251
1409cd0b
FXC
18252int
18253main ()
18254{
1409cd0b
FXC
18255 return 0;
18256}
db9f46a9 18257
1409cd0b 18258_ACEOF
5213506e 18259if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18260 gcc_cv_math_func_ccos=yes
1409cd0b 18261else
db9f46a9 18262 gcc_cv_math_func_ccos=no
1409cd0b 18263fi
5213506e
RW
18264rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18266fi
db9f46a9
TG
18267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18268$as_echo "$gcc_cv_math_func_ccos" >&6; }
18269 if test $gcc_cv_math_func_ccos = yes; then
f1cdfa01 18270
f38a14ca
TG
18271cat >>confdefs.h <<_ACEOF
18272#define HAVE_CCOS 1
18273_ACEOF
db9f46a9
TG
18274
18275 fi
1409cd0b 18276
1409cd0b 18277
1409cd0b 18278
db9f46a9
TG
18279
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18281$as_echo_n "checking for ccosl... " >&6; }
18282if test "${gcc_cv_math_func_ccosl+set}" = set; then :
5213506e 18283 $as_echo_n "(cached) " >&6
1409cd0b 18284else
db9f46a9 18285 if test x$gcc_no_link = xyes; then
5213506e 18286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18287fi
5213506e 18288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18289/* end confdefs.h. */
18290
db9f46a9
TG
18291#ifdef HAVE_COMPLEX_H
18292#include <complex.h>
1409cd0b 18293#endif
db9f46a9
TG
18294#ifdef HAVE_MATH_H
18295#include <math.h>
18296#endif
18297
18298int (*ptr)() = (int (*)())ccosl;
18299
1409cd0b
FXC
18300int
18301main ()
18302{
1409cd0b
FXC
18303 return 0;
18304}
db9f46a9 18305
1409cd0b 18306_ACEOF
5213506e 18307if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18308 gcc_cv_math_func_ccosl=yes
1409cd0b 18309else
db9f46a9 18310 gcc_cv_math_func_ccosl=no
1409cd0b 18311fi
5213506e
RW
18312rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18314fi
db9f46a9
TG
18315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18316$as_echo "$gcc_cv_math_func_ccosl" >&6; }
18317 if test $gcc_cv_math_func_ccosl = yes; then
f1cdfa01 18318
f38a14ca
TG
18319cat >>confdefs.h <<_ACEOF
18320#define HAVE_CCOSL 1
18321_ACEOF
db9f46a9
TG
18322
18323 fi
18324
1409cd0b 18325
1409cd0b 18326
1409cd0b 18327
db9f46a9
TG
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18329$as_echo_n "checking for coshf... " >&6; }
18330if test "${gcc_cv_math_func_coshf+set}" = set; then :
5213506e 18331 $as_echo_n "(cached) " >&6
1409cd0b 18332else
db9f46a9 18333 if test x$gcc_no_link = xyes; then
5213506e 18334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18335fi
5213506e 18336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18337/* end confdefs.h. */
18338
db9f46a9
TG
18339#ifdef HAVE_COMPLEX_H
18340#include <complex.h>
18341#endif
18342#ifdef HAVE_MATH_H
18343#include <math.h>
1409cd0b 18344#endif
db9f46a9
TG
18345
18346int (*ptr)() = (int (*)())coshf;
18347
1409cd0b
FXC
18348int
18349main ()
18350{
1409cd0b
FXC
18351 return 0;
18352}
db9f46a9 18353
1409cd0b 18354_ACEOF
5213506e 18355if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18356 gcc_cv_math_func_coshf=yes
1409cd0b 18357else
db9f46a9 18358 gcc_cv_math_func_coshf=no
1409cd0b 18359fi
5213506e
RW
18360rm -f core conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18362fi
db9f46a9
TG
18363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18364$as_echo "$gcc_cv_math_func_coshf" >&6; }
18365 if test $gcc_cv_math_func_coshf = yes; then
f1cdfa01 18366
f38a14ca
TG
18367cat >>confdefs.h <<_ACEOF
18368#define HAVE_COSHF 1
18369_ACEOF
db9f46a9
TG
18370
18371 fi
1409cd0b 18372
1409cd0b 18373
1409cd0b 18374
db9f46a9
TG
18375
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18377$as_echo_n "checking for cosh... " >&6; }
18378if test "${gcc_cv_math_func_cosh+set}" = set; then :
5213506e 18379 $as_echo_n "(cached) " >&6
1409cd0b 18380else
db9f46a9 18381 if test x$gcc_no_link = xyes; then
5213506e 18382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18383fi
5213506e 18384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18385/* end confdefs.h. */
18386
db9f46a9
TG
18387#ifdef HAVE_COMPLEX_H
18388#include <complex.h>
1409cd0b 18389#endif
db9f46a9
TG
18390#ifdef HAVE_MATH_H
18391#include <math.h>
18392#endif
18393
18394int (*ptr)() = (int (*)())cosh;
18395
1409cd0b
FXC
18396int
18397main ()
18398{
1409cd0b
FXC
18399 return 0;
18400}
db9f46a9 18401
1409cd0b 18402_ACEOF
5213506e 18403if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18404 gcc_cv_math_func_cosh=yes
1409cd0b 18405else
db9f46a9 18406 gcc_cv_math_func_cosh=no
1409cd0b 18407fi
5213506e
RW
18408rm -f core conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18410fi
db9f46a9
TG
18411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18412$as_echo "$gcc_cv_math_func_cosh" >&6; }
18413 if test $gcc_cv_math_func_cosh = yes; then
f1cdfa01 18414
f38a14ca
TG
18415cat >>confdefs.h <<_ACEOF
18416#define HAVE_COSH 1
18417_ACEOF
1409cd0b 18418
db9f46a9 18419 fi
1409cd0b 18420
1409cd0b 18421
db9f46a9
TG
18422
18423
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18425$as_echo_n "checking for coshl... " >&6; }
18426if test "${gcc_cv_math_func_coshl+set}" = set; then :
5213506e 18427 $as_echo_n "(cached) " >&6
1409cd0b 18428else
db9f46a9 18429 if test x$gcc_no_link = xyes; then
5213506e 18430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18431fi
5213506e 18432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18433/* end confdefs.h. */
18434
db9f46a9
TG
18435#ifdef HAVE_COMPLEX_H
18436#include <complex.h>
18437#endif
18438#ifdef HAVE_MATH_H
18439#include <math.h>
1409cd0b 18440#endif
db9f46a9
TG
18441
18442int (*ptr)() = (int (*)())coshl;
18443
1409cd0b
FXC
18444int
18445main ()
18446{
1409cd0b
FXC
18447 return 0;
18448}
db9f46a9 18449
1409cd0b 18450_ACEOF
5213506e 18451if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18452 gcc_cv_math_func_coshl=yes
1409cd0b 18453else
db9f46a9 18454 gcc_cv_math_func_coshl=no
1409cd0b 18455fi
5213506e
RW
18456rm -f core conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18458fi
db9f46a9
TG
18459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18460$as_echo "$gcc_cv_math_func_coshl" >&6; }
18461 if test $gcc_cv_math_func_coshl = yes; then
f1cdfa01 18462
f38a14ca
TG
18463cat >>confdefs.h <<_ACEOF
18464#define HAVE_COSHL 1
18465_ACEOF
db9f46a9
TG
18466
18467 fi
1409cd0b 18468
1409cd0b 18469
1409cd0b 18470
db9f46a9
TG
18471
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18473$as_echo_n "checking for ccoshf... " >&6; }
18474if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
5213506e 18475 $as_echo_n "(cached) " >&6
1409cd0b 18476else
db9f46a9 18477 if test x$gcc_no_link = xyes; then
5213506e 18478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18479fi
5213506e 18480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18481/* end confdefs.h. */
18482
db9f46a9
TG
18483#ifdef HAVE_COMPLEX_H
18484#include <complex.h>
1409cd0b 18485#endif
db9f46a9
TG
18486#ifdef HAVE_MATH_H
18487#include <math.h>
18488#endif
18489
18490int (*ptr)() = (int (*)())ccoshf;
18491
1409cd0b
FXC
18492int
18493main ()
18494{
1409cd0b
FXC
18495 return 0;
18496}
db9f46a9 18497
1409cd0b 18498_ACEOF
5213506e 18499if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18500 gcc_cv_math_func_ccoshf=yes
1409cd0b 18501else
db9f46a9 18502 gcc_cv_math_func_ccoshf=no
1409cd0b 18503fi
5213506e
RW
18504rm -f core conftest.err conftest.$ac_objext \
18505 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18506fi
db9f46a9
TG
18507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18508$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18509 if test $gcc_cv_math_func_ccoshf = yes; then
f1cdfa01 18510
f38a14ca
TG
18511cat >>confdefs.h <<_ACEOF
18512#define HAVE_CCOSHF 1
18513_ACEOF
db9f46a9
TG
18514
18515 fi
18516
1409cd0b 18517
1409cd0b 18518
1409cd0b 18519
db9f46a9
TG
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18521$as_echo_n "checking for ccosh... " >&6; }
18522if test "${gcc_cv_math_func_ccosh+set}" = set; then :
5213506e 18523 $as_echo_n "(cached) " >&6
1409cd0b 18524else
db9f46a9 18525 if test x$gcc_no_link = xyes; then
5213506e 18526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18527fi
5213506e 18528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18529/* end confdefs.h. */
18530
db9f46a9
TG
18531#ifdef HAVE_COMPLEX_H
18532#include <complex.h>
18533#endif
18534#ifdef HAVE_MATH_H
18535#include <math.h>
1409cd0b 18536#endif
db9f46a9
TG
18537
18538int (*ptr)() = (int (*)())ccosh;
18539
1409cd0b
FXC
18540int
18541main ()
18542{
1409cd0b
FXC
18543 return 0;
18544}
db9f46a9 18545
1409cd0b 18546_ACEOF
5213506e 18547if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18548 gcc_cv_math_func_ccosh=yes
1409cd0b 18549else
db9f46a9 18550 gcc_cv_math_func_ccosh=no
1409cd0b 18551fi
5213506e
RW
18552rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18554fi
db9f46a9
TG
18555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18556$as_echo "$gcc_cv_math_func_ccosh" >&6; }
18557 if test $gcc_cv_math_func_ccosh = yes; then
f1cdfa01 18558
f38a14ca
TG
18559cat >>confdefs.h <<_ACEOF
18560#define HAVE_CCOSH 1
18561_ACEOF
db9f46a9
TG
18562
18563 fi
1409cd0b 18564
1409cd0b 18565
1409cd0b 18566
db9f46a9
TG
18567
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18569$as_echo_n "checking for ccoshl... " >&6; }
18570if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
5213506e 18571 $as_echo_n "(cached) " >&6
1409cd0b 18572else
db9f46a9 18573 if test x$gcc_no_link = xyes; then
5213506e 18574 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18575fi
5213506e 18576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18577/* end confdefs.h. */
18578
db9f46a9
TG
18579#ifdef HAVE_COMPLEX_H
18580#include <complex.h>
1409cd0b 18581#endif
db9f46a9
TG
18582#ifdef HAVE_MATH_H
18583#include <math.h>
18584#endif
18585
18586int (*ptr)() = (int (*)())ccoshl;
18587
1409cd0b
FXC
18588int
18589main ()
18590{
1409cd0b
FXC
18591 return 0;
18592}
db9f46a9 18593
1409cd0b 18594_ACEOF
5213506e 18595if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18596 gcc_cv_math_func_ccoshl=yes
1409cd0b 18597else
db9f46a9 18598 gcc_cv_math_func_ccoshl=no
1409cd0b 18599fi
5213506e
RW
18600rm -f core conftest.err conftest.$ac_objext \
18601 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18602fi
db9f46a9
TG
18603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18604$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18605 if test $gcc_cv_math_func_ccoshl = yes; then
f1cdfa01 18606
f38a14ca
TG
18607cat >>confdefs.h <<_ACEOF
18608#define HAVE_CCOSHL 1
18609_ACEOF
1409cd0b 18610
db9f46a9 18611 fi
1409cd0b 18612
1409cd0b 18613
db9f46a9
TG
18614
18615
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18617$as_echo_n "checking for expf... " >&6; }
18618if test "${gcc_cv_math_func_expf+set}" = set; then :
5213506e 18619 $as_echo_n "(cached) " >&6
1409cd0b 18620else
db9f46a9 18621 if test x$gcc_no_link = xyes; then
5213506e 18622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18623fi
5213506e 18624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18625/* end confdefs.h. */
18626
db9f46a9
TG
18627#ifdef HAVE_COMPLEX_H
18628#include <complex.h>
18629#endif
18630#ifdef HAVE_MATH_H
18631#include <math.h>
1409cd0b 18632#endif
db9f46a9
TG
18633
18634int (*ptr)() = (int (*)())expf;
18635
1409cd0b
FXC
18636int
18637main ()
18638{
1409cd0b
FXC
18639 return 0;
18640}
db9f46a9 18641
1409cd0b 18642_ACEOF
5213506e 18643if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18644 gcc_cv_math_func_expf=yes
1409cd0b 18645else
db9f46a9 18646 gcc_cv_math_func_expf=no
1409cd0b 18647fi
5213506e
RW
18648rm -f core conftest.err conftest.$ac_objext \
18649 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18650fi
db9f46a9
TG
18651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18652$as_echo "$gcc_cv_math_func_expf" >&6; }
18653 if test $gcc_cv_math_func_expf = yes; then
f1cdfa01 18654
f38a14ca
TG
18655cat >>confdefs.h <<_ACEOF
18656#define HAVE_EXPF 1
18657_ACEOF
db9f46a9
TG
18658
18659 fi
1409cd0b 18660
1409cd0b 18661
1409cd0b 18662
db9f46a9
TG
18663
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18665$as_echo_n "checking for exp... " >&6; }
18666if test "${gcc_cv_math_func_exp+set}" = set; then :
5213506e 18667 $as_echo_n "(cached) " >&6
1409cd0b 18668else
db9f46a9 18669 if test x$gcc_no_link = xyes; then
5213506e 18670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18671fi
5213506e 18672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18673/* end confdefs.h. */
18674
db9f46a9
TG
18675#ifdef HAVE_COMPLEX_H
18676#include <complex.h>
1409cd0b 18677#endif
db9f46a9
TG
18678#ifdef HAVE_MATH_H
18679#include <math.h>
18680#endif
18681
18682int (*ptr)() = (int (*)())exp;
18683
1409cd0b
FXC
18684int
18685main ()
18686{
1409cd0b
FXC
18687 return 0;
18688}
db9f46a9 18689
1409cd0b 18690_ACEOF
5213506e 18691if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18692 gcc_cv_math_func_exp=yes
1409cd0b 18693else
db9f46a9 18694 gcc_cv_math_func_exp=no
1409cd0b 18695fi
5213506e
RW
18696rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18698fi
db9f46a9
TG
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18700$as_echo "$gcc_cv_math_func_exp" >&6; }
18701 if test $gcc_cv_math_func_exp = yes; then
f1cdfa01 18702
f38a14ca
TG
18703cat >>confdefs.h <<_ACEOF
18704#define HAVE_EXP 1
18705_ACEOF
db9f46a9
TG
18706
18707 fi
18708
1409cd0b 18709
1409cd0b 18710
1409cd0b 18711
db9f46a9
TG
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18713$as_echo_n "checking for expl... " >&6; }
18714if test "${gcc_cv_math_func_expl+set}" = set; then :
5213506e 18715 $as_echo_n "(cached) " >&6
1409cd0b 18716else
db9f46a9 18717 if test x$gcc_no_link = xyes; then
5213506e 18718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18719fi
5213506e 18720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18721/* end confdefs.h. */
18722
db9f46a9
TG
18723#ifdef HAVE_COMPLEX_H
18724#include <complex.h>
18725#endif
18726#ifdef HAVE_MATH_H
18727#include <math.h>
1409cd0b 18728#endif
db9f46a9
TG
18729
18730int (*ptr)() = (int (*)())expl;
18731
1409cd0b
FXC
18732int
18733main ()
18734{
1409cd0b
FXC
18735 return 0;
18736}
db9f46a9 18737
1409cd0b 18738_ACEOF
5213506e 18739if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18740 gcc_cv_math_func_expl=yes
1409cd0b 18741else
db9f46a9 18742 gcc_cv_math_func_expl=no
1409cd0b 18743fi
5213506e
RW
18744rm -f core conftest.err conftest.$ac_objext \
18745 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18746fi
db9f46a9
TG
18747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18748$as_echo "$gcc_cv_math_func_expl" >&6; }
18749 if test $gcc_cv_math_func_expl = yes; then
f1cdfa01 18750
f38a14ca
TG
18751cat >>confdefs.h <<_ACEOF
18752#define HAVE_EXPL 1
18753_ACEOF
db9f46a9
TG
18754
18755 fi
1409cd0b 18756
1409cd0b 18757
1409cd0b 18758
db9f46a9
TG
18759
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18761$as_echo_n "checking for cexpf... " >&6; }
18762if test "${gcc_cv_math_func_cexpf+set}" = set; then :
5213506e 18763 $as_echo_n "(cached) " >&6
1409cd0b 18764else
db9f46a9 18765 if test x$gcc_no_link = xyes; then
5213506e 18766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18767fi
5213506e 18768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18769/* end confdefs.h. */
18770
db9f46a9
TG
18771#ifdef HAVE_COMPLEX_H
18772#include <complex.h>
1409cd0b 18773#endif
db9f46a9
TG
18774#ifdef HAVE_MATH_H
18775#include <math.h>
18776#endif
18777
18778int (*ptr)() = (int (*)())cexpf;
18779
1409cd0b
FXC
18780int
18781main ()
18782{
1409cd0b
FXC
18783 return 0;
18784}
db9f46a9 18785
1409cd0b 18786_ACEOF
5213506e 18787if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18788 gcc_cv_math_func_cexpf=yes
1409cd0b 18789else
db9f46a9 18790 gcc_cv_math_func_cexpf=no
1409cd0b 18791fi
5213506e
RW
18792rm -f core conftest.err conftest.$ac_objext \
18793 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18794fi
db9f46a9
TG
18795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18796$as_echo "$gcc_cv_math_func_cexpf" >&6; }
18797 if test $gcc_cv_math_func_cexpf = yes; then
f1cdfa01 18798
f38a14ca
TG
18799cat >>confdefs.h <<_ACEOF
18800#define HAVE_CEXPF 1
18801_ACEOF
1409cd0b 18802
db9f46a9 18803 fi
1409cd0b 18804
1409cd0b 18805
db9f46a9
TG
18806
18807
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18809$as_echo_n "checking for cexp... " >&6; }
18810if test "${gcc_cv_math_func_cexp+set}" = set; then :
5213506e 18811 $as_echo_n "(cached) " >&6
1409cd0b 18812else
db9f46a9 18813 if test x$gcc_no_link = xyes; then
5213506e 18814 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18815fi
5213506e 18816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18817/* end confdefs.h. */
18818
db9f46a9
TG
18819#ifdef HAVE_COMPLEX_H
18820#include <complex.h>
18821#endif
18822#ifdef HAVE_MATH_H
18823#include <math.h>
1409cd0b 18824#endif
db9f46a9
TG
18825
18826int (*ptr)() = (int (*)())cexp;
18827
1409cd0b
FXC
18828int
18829main ()
18830{
1409cd0b
FXC
18831 return 0;
18832}
db9f46a9 18833
1409cd0b 18834_ACEOF
5213506e 18835if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18836 gcc_cv_math_func_cexp=yes
1409cd0b 18837else
db9f46a9 18838 gcc_cv_math_func_cexp=no
1409cd0b 18839fi
5213506e
RW
18840rm -f core conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18842fi
db9f46a9
TG
18843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18844$as_echo "$gcc_cv_math_func_cexp" >&6; }
18845 if test $gcc_cv_math_func_cexp = yes; then
f1cdfa01 18846
f38a14ca
TG
18847cat >>confdefs.h <<_ACEOF
18848#define HAVE_CEXP 1
18849_ACEOF
db9f46a9
TG
18850
18851 fi
1409cd0b 18852
1409cd0b 18853
1409cd0b 18854
db9f46a9
TG
18855
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18857$as_echo_n "checking for cexpl... " >&6; }
18858if test "${gcc_cv_math_func_cexpl+set}" = set; then :
5213506e 18859 $as_echo_n "(cached) " >&6
1409cd0b 18860else
db9f46a9 18861 if test x$gcc_no_link = xyes; then
5213506e 18862 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18863fi
5213506e 18864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18865/* end confdefs.h. */
18866
db9f46a9
TG
18867#ifdef HAVE_COMPLEX_H
18868#include <complex.h>
1409cd0b 18869#endif
db9f46a9
TG
18870#ifdef HAVE_MATH_H
18871#include <math.h>
18872#endif
18873
18874int (*ptr)() = (int (*)())cexpl;
18875
1409cd0b
FXC
18876int
18877main ()
18878{
1409cd0b
FXC
18879 return 0;
18880}
db9f46a9 18881
1409cd0b 18882_ACEOF
5213506e 18883if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18884 gcc_cv_math_func_cexpl=yes
1409cd0b 18885else
db9f46a9 18886 gcc_cv_math_func_cexpl=no
1409cd0b 18887fi
5213506e
RW
18888rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18890fi
db9f46a9
TG
18891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
18892$as_echo "$gcc_cv_math_func_cexpl" >&6; }
18893 if test $gcc_cv_math_func_cexpl = yes; then
f1cdfa01 18894
f38a14ca
TG
18895cat >>confdefs.h <<_ACEOF
18896#define HAVE_CEXPL 1
18897_ACEOF
db9f46a9
TG
18898
18899 fi
18900
1409cd0b 18901
1409cd0b 18902
1409cd0b 18903
db9f46a9
TG
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
18905$as_echo_n "checking for fabsf... " >&6; }
18906if test "${gcc_cv_math_func_fabsf+set}" = set; then :
5213506e 18907 $as_echo_n "(cached) " >&6
1409cd0b 18908else
db9f46a9 18909 if test x$gcc_no_link = xyes; then
5213506e 18910 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18911fi
5213506e 18912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18913/* end confdefs.h. */
18914
db9f46a9
TG
18915#ifdef HAVE_COMPLEX_H
18916#include <complex.h>
18917#endif
18918#ifdef HAVE_MATH_H
18919#include <math.h>
1409cd0b 18920#endif
db9f46a9
TG
18921
18922int (*ptr)() = (int (*)())fabsf;
18923
1409cd0b
FXC
18924int
18925main ()
18926{
1409cd0b
FXC
18927 return 0;
18928}
db9f46a9 18929
1409cd0b 18930_ACEOF
5213506e 18931if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18932 gcc_cv_math_func_fabsf=yes
1409cd0b 18933else
db9f46a9 18934 gcc_cv_math_func_fabsf=no
1409cd0b 18935fi
5213506e
RW
18936rm -f core conftest.err conftest.$ac_objext \
18937 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18938fi
db9f46a9
TG
18939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
18940$as_echo "$gcc_cv_math_func_fabsf" >&6; }
18941 if test $gcc_cv_math_func_fabsf = yes; then
f1cdfa01 18942
f38a14ca
TG
18943cat >>confdefs.h <<_ACEOF
18944#define HAVE_FABSF 1
18945_ACEOF
db9f46a9
TG
18946
18947 fi
1409cd0b 18948
1409cd0b 18949
1409cd0b 18950
db9f46a9
TG
18951
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
18953$as_echo_n "checking for fabs... " >&6; }
18954if test "${gcc_cv_math_func_fabs+set}" = set; then :
5213506e 18955 $as_echo_n "(cached) " >&6
1409cd0b 18956else
db9f46a9 18957 if test x$gcc_no_link = xyes; then
5213506e 18958 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18959fi
5213506e 18960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18961/* end confdefs.h. */
18962
db9f46a9
TG
18963#ifdef HAVE_COMPLEX_H
18964#include <complex.h>
1409cd0b 18965#endif
db9f46a9
TG
18966#ifdef HAVE_MATH_H
18967#include <math.h>
18968#endif
18969
18970int (*ptr)() = (int (*)())fabs;
18971
1409cd0b
FXC
18972int
18973main ()
18974{
1409cd0b
FXC
18975 return 0;
18976}
db9f46a9 18977
1409cd0b 18978_ACEOF
5213506e 18979if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 18980 gcc_cv_math_func_fabs=yes
1409cd0b 18981else
db9f46a9 18982 gcc_cv_math_func_fabs=no
1409cd0b 18983fi
5213506e
RW
18984rm -f core conftest.err conftest.$ac_objext \
18985 conftest$ac_exeext conftest.$ac_ext
1409cd0b 18986fi
db9f46a9
TG
18987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
18988$as_echo "$gcc_cv_math_func_fabs" >&6; }
18989 if test $gcc_cv_math_func_fabs = yes; then
f1cdfa01 18990
f38a14ca
TG
18991cat >>confdefs.h <<_ACEOF
18992#define HAVE_FABS 1
18993_ACEOF
1409cd0b 18994
db9f46a9 18995 fi
1409cd0b 18996
1409cd0b 18997
db9f46a9
TG
18998
18999
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19001$as_echo_n "checking for fabsl... " >&6; }
19002if test "${gcc_cv_math_func_fabsl+set}" = set; then :
5213506e 19003 $as_echo_n "(cached) " >&6
1409cd0b 19004else
db9f46a9 19005 if test x$gcc_no_link = xyes; then
5213506e 19006 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19007fi
5213506e 19008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19009/* end confdefs.h. */
19010
db9f46a9
TG
19011#ifdef HAVE_COMPLEX_H
19012#include <complex.h>
19013#endif
19014#ifdef HAVE_MATH_H
19015#include <math.h>
1409cd0b 19016#endif
db9f46a9
TG
19017
19018int (*ptr)() = (int (*)())fabsl;
19019
1409cd0b
FXC
19020int
19021main ()
19022{
1409cd0b
FXC
19023 return 0;
19024}
db9f46a9 19025
1409cd0b 19026_ACEOF
5213506e 19027if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19028 gcc_cv_math_func_fabsl=yes
1409cd0b 19029else
db9f46a9 19030 gcc_cv_math_func_fabsl=no
1409cd0b 19031fi
5213506e
RW
19032rm -f core conftest.err conftest.$ac_objext \
19033 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19034fi
db9f46a9
TG
19035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19036$as_echo "$gcc_cv_math_func_fabsl" >&6; }
19037 if test $gcc_cv_math_func_fabsl = yes; then
f1cdfa01 19038
f38a14ca
TG
19039cat >>confdefs.h <<_ACEOF
19040#define HAVE_FABSL 1
19041_ACEOF
db9f46a9
TG
19042
19043 fi
1409cd0b 19044
1409cd0b 19045
1409cd0b 19046
db9f46a9
TG
19047
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19049$as_echo_n "checking for cabsf... " >&6; }
19050if test "${gcc_cv_math_func_cabsf+set}" = set; then :
5213506e 19051 $as_echo_n "(cached) " >&6
1409cd0b 19052else
db9f46a9 19053 if test x$gcc_no_link = xyes; then
5213506e 19054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19055fi
5213506e 19056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19057/* end confdefs.h. */
19058
db9f46a9
TG
19059#ifdef HAVE_COMPLEX_H
19060#include <complex.h>
1409cd0b 19061#endif
db9f46a9
TG
19062#ifdef HAVE_MATH_H
19063#include <math.h>
19064#endif
19065
19066int (*ptr)() = (int (*)())cabsf;
19067
1409cd0b
FXC
19068int
19069main ()
19070{
1409cd0b
FXC
19071 return 0;
19072}
db9f46a9 19073
1409cd0b 19074_ACEOF
5213506e 19075if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19076 gcc_cv_math_func_cabsf=yes
1409cd0b 19077else
db9f46a9 19078 gcc_cv_math_func_cabsf=no
1409cd0b 19079fi
5213506e
RW
19080rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19082fi
db9f46a9
TG
19083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19084$as_echo "$gcc_cv_math_func_cabsf" >&6; }
19085 if test $gcc_cv_math_func_cabsf = yes; then
f1cdfa01 19086
f38a14ca
TG
19087cat >>confdefs.h <<_ACEOF
19088#define HAVE_CABSF 1
19089_ACEOF
db9f46a9
TG
19090
19091 fi
19092
1409cd0b 19093
1409cd0b 19094
1409cd0b 19095
db9f46a9
TG
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19097$as_echo_n "checking for cabs... " >&6; }
19098if test "${gcc_cv_math_func_cabs+set}" = set; then :
5213506e 19099 $as_echo_n "(cached) " >&6
1409cd0b 19100else
db9f46a9 19101 if test x$gcc_no_link = xyes; then
5213506e 19102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19103fi
5213506e 19104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19105/* end confdefs.h. */
19106
db9f46a9
TG
19107#ifdef HAVE_COMPLEX_H
19108#include <complex.h>
19109#endif
19110#ifdef HAVE_MATH_H
19111#include <math.h>
1409cd0b 19112#endif
db9f46a9
TG
19113
19114int (*ptr)() = (int (*)())cabs;
19115
1409cd0b
FXC
19116int
19117main ()
19118{
1409cd0b
FXC
19119 return 0;
19120}
db9f46a9 19121
1409cd0b 19122_ACEOF
5213506e 19123if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19124 gcc_cv_math_func_cabs=yes
1409cd0b 19125else
db9f46a9 19126 gcc_cv_math_func_cabs=no
1409cd0b 19127fi
5213506e
RW
19128rm -f core conftest.err conftest.$ac_objext \
19129 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19130fi
db9f46a9
TG
19131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19132$as_echo "$gcc_cv_math_func_cabs" >&6; }
19133 if test $gcc_cv_math_func_cabs = yes; then
f1cdfa01 19134
f38a14ca
TG
19135cat >>confdefs.h <<_ACEOF
19136#define HAVE_CABS 1
19137_ACEOF
db9f46a9
TG
19138
19139 fi
1409cd0b 19140
1409cd0b 19141
1409cd0b 19142
db9f46a9
TG
19143
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19145$as_echo_n "checking for cabsl... " >&6; }
19146if test "${gcc_cv_math_func_cabsl+set}" = set; then :
5213506e 19147 $as_echo_n "(cached) " >&6
1409cd0b 19148else
db9f46a9 19149 if test x$gcc_no_link = xyes; then
5213506e 19150 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19151fi
5213506e 19152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19153/* end confdefs.h. */
19154
db9f46a9
TG
19155#ifdef HAVE_COMPLEX_H
19156#include <complex.h>
1409cd0b 19157#endif
db9f46a9
TG
19158#ifdef HAVE_MATH_H
19159#include <math.h>
19160#endif
19161
19162int (*ptr)() = (int (*)())cabsl;
19163
1409cd0b
FXC
19164int
19165main ()
19166{
1409cd0b
FXC
19167 return 0;
19168}
db9f46a9 19169
1409cd0b 19170_ACEOF
5213506e 19171if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19172 gcc_cv_math_func_cabsl=yes
1409cd0b 19173else
db9f46a9 19174 gcc_cv_math_func_cabsl=no
1409cd0b 19175fi
5213506e
RW
19176rm -f core conftest.err conftest.$ac_objext \
19177 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19178fi
db9f46a9
TG
19179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19180$as_echo "$gcc_cv_math_func_cabsl" >&6; }
19181 if test $gcc_cv_math_func_cabsl = yes; then
f1cdfa01 19182
f38a14ca
TG
19183cat >>confdefs.h <<_ACEOF
19184#define HAVE_CABSL 1
19185_ACEOF
1409cd0b 19186
db9f46a9 19187 fi
1409cd0b 19188
1409cd0b 19189
db9f46a9
TG
19190
19191
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19193$as_echo_n "checking for floorf... " >&6; }
19194if test "${gcc_cv_math_func_floorf+set}" = set; then :
5213506e 19195 $as_echo_n "(cached) " >&6
1409cd0b 19196else
db9f46a9 19197 if test x$gcc_no_link = xyes; then
5213506e 19198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19199fi
5213506e 19200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19201/* end confdefs.h. */
19202
db9f46a9
TG
19203#ifdef HAVE_COMPLEX_H
19204#include <complex.h>
19205#endif
19206#ifdef HAVE_MATH_H
19207#include <math.h>
1409cd0b 19208#endif
db9f46a9
TG
19209
19210int (*ptr)() = (int (*)())floorf;
19211
1409cd0b
FXC
19212int
19213main ()
19214{
5213506e
RW
19215 return 0;
19216}
db9f46a9 19217
5213506e
RW
19218_ACEOF
19219if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19220 gcc_cv_math_func_floorf=yes
1409cd0b 19221else
db9f46a9 19222 gcc_cv_math_func_floorf=no
1409cd0b 19223fi
5213506e
RW
19224rm -f core conftest.err conftest.$ac_objext \
19225 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19226fi
db9f46a9
TG
19227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19228$as_echo "$gcc_cv_math_func_floorf" >&6; }
19229 if test $gcc_cv_math_func_floorf = yes; then
f1cdfa01 19230
f38a14ca
TG
19231cat >>confdefs.h <<_ACEOF
19232#define HAVE_FLOORF 1
19233_ACEOF
db9f46a9
TG
19234
19235 fi
1409cd0b 19236
1409cd0b 19237
1409cd0b 19238
db9f46a9
TG
19239
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19241$as_echo_n "checking for floor... " >&6; }
19242if test "${gcc_cv_math_func_floor+set}" = set; then :
5213506e 19243 $as_echo_n "(cached) " >&6
1409cd0b 19244else
db9f46a9 19245 if test x$gcc_no_link = xyes; then
5213506e 19246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19247fi
5213506e 19248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19249/* end confdefs.h. */
19250
db9f46a9
TG
19251#ifdef HAVE_COMPLEX_H
19252#include <complex.h>
1409cd0b 19253#endif
db9f46a9
TG
19254#ifdef HAVE_MATH_H
19255#include <math.h>
19256#endif
19257
19258int (*ptr)() = (int (*)())floor;
19259
1409cd0b
FXC
19260int
19261main ()
19262{
1409cd0b
FXC
19263 return 0;
19264}
db9f46a9 19265
1409cd0b 19266_ACEOF
5213506e 19267if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19268 gcc_cv_math_func_floor=yes
1409cd0b 19269else
db9f46a9 19270 gcc_cv_math_func_floor=no
1409cd0b 19271fi
5213506e
RW
19272rm -f core conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19274fi
db9f46a9
TG
19275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19276$as_echo "$gcc_cv_math_func_floor" >&6; }
19277 if test $gcc_cv_math_func_floor = yes; then
f1cdfa01 19278
f38a14ca
TG
19279cat >>confdefs.h <<_ACEOF
19280#define HAVE_FLOOR 1
19281_ACEOF
db9f46a9
TG
19282
19283 fi
19284
1409cd0b 19285
1409cd0b 19286
1409cd0b 19287
db9f46a9
TG
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19289$as_echo_n "checking for floorl... " >&6; }
19290if test "${gcc_cv_math_func_floorl+set}" = set; then :
5213506e 19291 $as_echo_n "(cached) " >&6
eb647f7d 19292else
db9f46a9 19293 if test x$gcc_no_link = xyes; then
5213506e 19294 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19295fi
5213506e 19296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19297/* end confdefs.h. */
19298
db9f46a9
TG
19299#ifdef HAVE_COMPLEX_H
19300#include <complex.h>
19301#endif
19302#ifdef HAVE_MATH_H
19303#include <math.h>
eb647f7d 19304#endif
db9f46a9
TG
19305
19306int (*ptr)() = (int (*)())floorl;
19307
eb647f7d
FXC
19308int
19309main ()
19310{
eb647f7d
FXC
19311 return 0;
19312}
db9f46a9 19313
eb647f7d 19314_ACEOF
5213506e 19315if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19316 gcc_cv_math_func_floorl=yes
eb647f7d 19317else
db9f46a9 19318 gcc_cv_math_func_floorl=no
eb647f7d 19319fi
5213506e
RW
19320rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19322fi
db9f46a9
TG
19323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19324$as_echo "$gcc_cv_math_func_floorl" >&6; }
19325 if test $gcc_cv_math_func_floorl = yes; then
f1cdfa01 19326
f38a14ca
TG
19327cat >>confdefs.h <<_ACEOF
19328#define HAVE_FLOORL 1
19329_ACEOF
db9f46a9
TG
19330
19331 fi
eb647f7d 19332
eb647f7d 19333
eb647f7d 19334
db9f46a9
TG
19335
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19337$as_echo_n "checking for fmodf... " >&6; }
19338if test "${gcc_cv_math_func_fmodf+set}" = set; then :
5213506e 19339 $as_echo_n "(cached) " >&6
eb647f7d 19340else
db9f46a9 19341 if test x$gcc_no_link = xyes; then
5213506e 19342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19343fi
5213506e 19344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19345/* end confdefs.h. */
19346
db9f46a9
TG
19347#ifdef HAVE_COMPLEX_H
19348#include <complex.h>
eb647f7d 19349#endif
db9f46a9
TG
19350#ifdef HAVE_MATH_H
19351#include <math.h>
19352#endif
19353
19354int (*ptr)() = (int (*)())fmodf;
19355
eb647f7d
FXC
19356int
19357main ()
19358{
eb647f7d
FXC
19359 return 0;
19360}
db9f46a9 19361
eb647f7d 19362_ACEOF
5213506e 19363if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19364 gcc_cv_math_func_fmodf=yes
eb647f7d 19365else
db9f46a9 19366 gcc_cv_math_func_fmodf=no
eb647f7d 19367fi
5213506e
RW
19368rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19370fi
db9f46a9
TG
19371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19372$as_echo "$gcc_cv_math_func_fmodf" >&6; }
19373 if test $gcc_cv_math_func_fmodf = yes; then
f1cdfa01 19374
f38a14ca
TG
19375cat >>confdefs.h <<_ACEOF
19376#define HAVE_FMODF 1
19377_ACEOF
eb647f7d 19378
db9f46a9 19379 fi
eb647f7d 19380
eb647f7d 19381
db9f46a9
TG
19382
19383
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19385$as_echo_n "checking for fmod... " >&6; }
19386if test "${gcc_cv_math_func_fmod+set}" = set; then :
5213506e 19387 $as_echo_n "(cached) " >&6
eb647f7d 19388else
db9f46a9 19389 if test x$gcc_no_link = xyes; then
5213506e 19390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19391fi
5213506e 19392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19393/* end confdefs.h. */
19394
db9f46a9
TG
19395#ifdef HAVE_COMPLEX_H
19396#include <complex.h>
19397#endif
19398#ifdef HAVE_MATH_H
19399#include <math.h>
eb647f7d 19400#endif
db9f46a9
TG
19401
19402int (*ptr)() = (int (*)())fmod;
19403
eb647f7d
FXC
19404int
19405main ()
19406{
eb647f7d
FXC
19407 return 0;
19408}
db9f46a9 19409
eb647f7d 19410_ACEOF
5213506e 19411if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19412 gcc_cv_math_func_fmod=yes
eb647f7d 19413else
db9f46a9 19414 gcc_cv_math_func_fmod=no
eb647f7d 19415fi
5213506e
RW
19416rm -f core conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
eb647f7d 19418fi
db9f46a9
TG
19419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19420$as_echo "$gcc_cv_math_func_fmod" >&6; }
19421 if test $gcc_cv_math_func_fmod = yes; then
f1cdfa01 19422
f38a14ca
TG
19423cat >>confdefs.h <<_ACEOF
19424#define HAVE_FMOD 1
19425_ACEOF
db9f46a9
TG
19426
19427 fi
eb647f7d 19428
eb647f7d 19429
eb647f7d 19430
db9f46a9
TG
19431
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19433$as_echo_n "checking for fmodl... " >&6; }
19434if test "${gcc_cv_math_func_fmodl+set}" = set; then :
5213506e 19435 $as_echo_n "(cached) " >&6
1409cd0b 19436else
db9f46a9 19437 if test x$gcc_no_link = xyes; then
5213506e 19438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19439fi
5213506e 19440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19441/* end confdefs.h. */
19442
db9f46a9
TG
19443#ifdef HAVE_COMPLEX_H
19444#include <complex.h>
1409cd0b 19445#endif
db9f46a9
TG
19446#ifdef HAVE_MATH_H
19447#include <math.h>
19448#endif
19449
19450int (*ptr)() = (int (*)())fmodl;
19451
1409cd0b
FXC
19452int
19453main ()
19454{
1409cd0b
FXC
19455 return 0;
19456}
db9f46a9 19457
1409cd0b 19458_ACEOF
5213506e 19459if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19460 gcc_cv_math_func_fmodl=yes
1409cd0b 19461else
db9f46a9 19462 gcc_cv_math_func_fmodl=no
1409cd0b 19463fi
5213506e
RW
19464rm -f core conftest.err conftest.$ac_objext \
19465 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19466fi
db9f46a9
TG
19467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19468$as_echo "$gcc_cv_math_func_fmodl" >&6; }
19469 if test $gcc_cv_math_func_fmodl = yes; then
f1cdfa01 19470
f38a14ca
TG
19471cat >>confdefs.h <<_ACEOF
19472#define HAVE_FMODL 1
19473_ACEOF
db9f46a9
TG
19474
19475 fi
19476
1409cd0b 19477
1409cd0b 19478
1409cd0b 19479
db9f46a9
TG
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19481$as_echo_n "checking for frexpf... " >&6; }
19482if test "${gcc_cv_math_func_frexpf+set}" = set; then :
5213506e 19483 $as_echo_n "(cached) " >&6
1409cd0b 19484else
db9f46a9 19485 if test x$gcc_no_link = xyes; then
5213506e 19486 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19487fi
5213506e 19488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19489/* end confdefs.h. */
19490
db9f46a9
TG
19491#ifdef HAVE_COMPLEX_H
19492#include <complex.h>
19493#endif
19494#ifdef HAVE_MATH_H
19495#include <math.h>
1409cd0b 19496#endif
db9f46a9
TG
19497
19498int (*ptr)() = (int (*)())frexpf;
19499
1409cd0b
FXC
19500int
19501main ()
19502{
1409cd0b
FXC
19503 return 0;
19504}
db9f46a9 19505
1409cd0b 19506_ACEOF
5213506e 19507if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19508 gcc_cv_math_func_frexpf=yes
1409cd0b 19509else
db9f46a9 19510 gcc_cv_math_func_frexpf=no
1409cd0b 19511fi
5213506e
RW
19512rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19514fi
db9f46a9
TG
19515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19516$as_echo "$gcc_cv_math_func_frexpf" >&6; }
19517 if test $gcc_cv_math_func_frexpf = yes; then
f1cdfa01 19518
f38a14ca
TG
19519cat >>confdefs.h <<_ACEOF
19520#define HAVE_FREXPF 1
19521_ACEOF
db9f46a9
TG
19522
19523 fi
1409cd0b 19524
1409cd0b 19525
1409cd0b 19526
db9f46a9
TG
19527
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19529$as_echo_n "checking for frexp... " >&6; }
19530if test "${gcc_cv_math_func_frexp+set}" = set; then :
5213506e 19531 $as_echo_n "(cached) " >&6
1409cd0b 19532else
db9f46a9 19533 if test x$gcc_no_link = xyes; then
5213506e 19534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19535fi
5213506e 19536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19537/* end confdefs.h. */
19538
db9f46a9
TG
19539#ifdef HAVE_COMPLEX_H
19540#include <complex.h>
1409cd0b 19541#endif
db9f46a9
TG
19542#ifdef HAVE_MATH_H
19543#include <math.h>
19544#endif
19545
19546int (*ptr)() = (int (*)())frexp;
19547
1409cd0b
FXC
19548int
19549main ()
19550{
1409cd0b
FXC
19551 return 0;
19552}
db9f46a9 19553
1409cd0b 19554_ACEOF
5213506e 19555if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19556 gcc_cv_math_func_frexp=yes
1409cd0b 19557else
db9f46a9 19558 gcc_cv_math_func_frexp=no
1409cd0b 19559fi
5213506e
RW
19560rm -f core conftest.err conftest.$ac_objext \
19561 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19562fi
db9f46a9
TG
19563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19564$as_echo "$gcc_cv_math_func_frexp" >&6; }
19565 if test $gcc_cv_math_func_frexp = yes; then
f1cdfa01 19566
f38a14ca
TG
19567cat >>confdefs.h <<_ACEOF
19568#define HAVE_FREXP 1
19569_ACEOF
1409cd0b 19570
db9f46a9 19571 fi
1409cd0b 19572
1409cd0b 19573
db9f46a9
TG
19574
19575
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19577$as_echo_n "checking for frexpl... " >&6; }
19578if test "${gcc_cv_math_func_frexpl+set}" = set; then :
5213506e 19579 $as_echo_n "(cached) " >&6
1409cd0b 19580else
db9f46a9 19581 if test x$gcc_no_link = xyes; then
5213506e 19582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19583fi
5213506e 19584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19585/* end confdefs.h. */
19586
db9f46a9
TG
19587#ifdef HAVE_COMPLEX_H
19588#include <complex.h>
19589#endif
19590#ifdef HAVE_MATH_H
19591#include <math.h>
1409cd0b 19592#endif
db9f46a9
TG
19593
19594int (*ptr)() = (int (*)())frexpl;
19595
1409cd0b
FXC
19596int
19597main ()
19598{
1409cd0b
FXC
19599 return 0;
19600}
db9f46a9 19601
1409cd0b 19602_ACEOF
5213506e 19603if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19604 gcc_cv_math_func_frexpl=yes
1409cd0b 19605else
db9f46a9 19606 gcc_cv_math_func_frexpl=no
1409cd0b 19607fi
5213506e
RW
19608rm -f core conftest.err conftest.$ac_objext \
19609 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19610fi
db9f46a9
TG
19611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19612$as_echo "$gcc_cv_math_func_frexpl" >&6; }
19613 if test $gcc_cv_math_func_frexpl = yes; then
f1cdfa01 19614
f38a14ca
TG
19615cat >>confdefs.h <<_ACEOF
19616#define HAVE_FREXPL 1
19617_ACEOF
db9f46a9
TG
19618
19619 fi
1409cd0b 19620
1409cd0b 19621
1409cd0b 19622
db9f46a9
TG
19623
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19625$as_echo_n "checking for hypotf... " >&6; }
19626if test "${gcc_cv_math_func_hypotf+set}" = set; then :
5213506e 19627 $as_echo_n "(cached) " >&6
1409cd0b 19628else
db9f46a9 19629 if test x$gcc_no_link = xyes; then
5213506e 19630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19631fi
5213506e 19632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19633/* end confdefs.h. */
19634
db9f46a9
TG
19635#ifdef HAVE_COMPLEX_H
19636#include <complex.h>
1409cd0b 19637#endif
db9f46a9
TG
19638#ifdef HAVE_MATH_H
19639#include <math.h>
19640#endif
19641
19642int (*ptr)() = (int (*)())hypotf;
19643
1409cd0b
FXC
19644int
19645main ()
19646{
1409cd0b
FXC
19647 return 0;
19648}
db9f46a9 19649
1409cd0b 19650_ACEOF
5213506e 19651if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19652 gcc_cv_math_func_hypotf=yes
1409cd0b 19653else
db9f46a9 19654 gcc_cv_math_func_hypotf=no
1409cd0b 19655fi
5213506e
RW
19656rm -f core conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19658fi
db9f46a9
TG
19659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19660$as_echo "$gcc_cv_math_func_hypotf" >&6; }
19661 if test $gcc_cv_math_func_hypotf = yes; then
f1cdfa01 19662
f38a14ca
TG
19663cat >>confdefs.h <<_ACEOF
19664#define HAVE_HYPOTF 1
19665_ACEOF
db9f46a9
TG
19666
19667 fi
19668
1409cd0b 19669
1409cd0b 19670
1409cd0b 19671
db9f46a9
TG
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19673$as_echo_n "checking for hypot... " >&6; }
19674if test "${gcc_cv_math_func_hypot+set}" = set; then :
5213506e 19675 $as_echo_n "(cached) " >&6
1409cd0b 19676else
db9f46a9 19677 if test x$gcc_no_link = xyes; then
5213506e 19678 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19679fi
5213506e 19680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19681/* end confdefs.h. */
19682
db9f46a9
TG
19683#ifdef HAVE_COMPLEX_H
19684#include <complex.h>
19685#endif
19686#ifdef HAVE_MATH_H
19687#include <math.h>
1409cd0b 19688#endif
db9f46a9
TG
19689
19690int (*ptr)() = (int (*)())hypot;
19691
1409cd0b
FXC
19692int
19693main ()
19694{
1409cd0b
FXC
19695 return 0;
19696}
db9f46a9 19697
1409cd0b 19698_ACEOF
5213506e 19699if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19700 gcc_cv_math_func_hypot=yes
1409cd0b 19701else
db9f46a9 19702 gcc_cv_math_func_hypot=no
1409cd0b 19703fi
5213506e
RW
19704rm -f core conftest.err conftest.$ac_objext \
19705 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19706fi
db9f46a9
TG
19707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19708$as_echo "$gcc_cv_math_func_hypot" >&6; }
19709 if test $gcc_cv_math_func_hypot = yes; then
f1cdfa01 19710
f38a14ca
TG
19711cat >>confdefs.h <<_ACEOF
19712#define HAVE_HYPOT 1
19713_ACEOF
db9f46a9
TG
19714
19715 fi
1409cd0b 19716
1409cd0b 19717
1409cd0b 19718
db9f46a9
TG
19719
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19721$as_echo_n "checking for hypotl... " >&6; }
19722if test "${gcc_cv_math_func_hypotl+set}" = set; then :
5213506e 19723 $as_echo_n "(cached) " >&6
cc6d3bde 19724else
db9f46a9 19725 if test x$gcc_no_link = xyes; then
5213506e 19726 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19727fi
5213506e 19728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19729/* end confdefs.h. */
19730
db9f46a9
TG
19731#ifdef HAVE_COMPLEX_H
19732#include <complex.h>
cc6d3bde 19733#endif
db9f46a9
TG
19734#ifdef HAVE_MATH_H
19735#include <math.h>
19736#endif
19737
19738int (*ptr)() = (int (*)())hypotl;
19739
cc6d3bde
SK
19740int
19741main ()
19742{
cc6d3bde
SK
19743 return 0;
19744}
db9f46a9 19745
cc6d3bde 19746_ACEOF
5213506e 19747if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19748 gcc_cv_math_func_hypotl=yes
cc6d3bde 19749else
db9f46a9 19750 gcc_cv_math_func_hypotl=no
cc6d3bde 19751fi
5213506e
RW
19752rm -f core conftest.err conftest.$ac_objext \
19753 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19754fi
db9f46a9
TG
19755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19756$as_echo "$gcc_cv_math_func_hypotl" >&6; }
19757 if test $gcc_cv_math_func_hypotl = yes; then
f1cdfa01 19758
f38a14ca
TG
19759cat >>confdefs.h <<_ACEOF
19760#define HAVE_HYPOTL 1
19761_ACEOF
cc6d3bde 19762
db9f46a9 19763 fi
cc6d3bde 19764
cc6d3bde 19765
db9f46a9
TG
19766
19767
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19769$as_echo_n "checking for ldexpf... " >&6; }
19770if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
5213506e 19771 $as_echo_n "(cached) " >&6
cc6d3bde 19772else
db9f46a9 19773 if test x$gcc_no_link = xyes; then
5213506e 19774 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19775fi
5213506e 19776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19777/* end confdefs.h. */
19778
db9f46a9
TG
19779#ifdef HAVE_COMPLEX_H
19780#include <complex.h>
19781#endif
19782#ifdef HAVE_MATH_H
19783#include <math.h>
cc6d3bde 19784#endif
db9f46a9
TG
19785
19786int (*ptr)() = (int (*)())ldexpf;
19787
cc6d3bde
SK
19788int
19789main ()
19790{
cc6d3bde
SK
19791 return 0;
19792}
db9f46a9 19793
cc6d3bde 19794_ACEOF
5213506e 19795if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19796 gcc_cv_math_func_ldexpf=yes
cc6d3bde 19797else
db9f46a9 19798 gcc_cv_math_func_ldexpf=no
cc6d3bde 19799fi
5213506e
RW
19800rm -f core conftest.err conftest.$ac_objext \
19801 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19802fi
db9f46a9
TG
19803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19804$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19805 if test $gcc_cv_math_func_ldexpf = yes; then
f1cdfa01 19806
f38a14ca
TG
19807cat >>confdefs.h <<_ACEOF
19808#define HAVE_LDEXPF 1
19809_ACEOF
db9f46a9
TG
19810
19811 fi
cc6d3bde 19812
cc6d3bde 19813
cc6d3bde 19814
db9f46a9
TG
19815
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19817$as_echo_n "checking for ldexp... " >&6; }
19818if test "${gcc_cv_math_func_ldexp+set}" = set; then :
5213506e 19819 $as_echo_n "(cached) " >&6
cc6d3bde 19820else
db9f46a9 19821 if test x$gcc_no_link = xyes; then
5213506e 19822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19823fi
5213506e 19824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19825/* end confdefs.h. */
19826
db9f46a9
TG
19827#ifdef HAVE_COMPLEX_H
19828#include <complex.h>
cc6d3bde 19829#endif
db9f46a9
TG
19830#ifdef HAVE_MATH_H
19831#include <math.h>
19832#endif
19833
19834int (*ptr)() = (int (*)())ldexp;
19835
cc6d3bde
SK
19836int
19837main ()
19838{
cc6d3bde
SK
19839 return 0;
19840}
db9f46a9 19841
cc6d3bde 19842_ACEOF
5213506e 19843if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19844 gcc_cv_math_func_ldexp=yes
cc6d3bde 19845else
db9f46a9 19846 gcc_cv_math_func_ldexp=no
cc6d3bde 19847fi
5213506e
RW
19848rm -f core conftest.err conftest.$ac_objext \
19849 conftest$ac_exeext conftest.$ac_ext
cc6d3bde 19850fi
db9f46a9
TG
19851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19852$as_echo "$gcc_cv_math_func_ldexp" >&6; }
19853 if test $gcc_cv_math_func_ldexp = yes; then
f1cdfa01 19854
f38a14ca
TG
19855cat >>confdefs.h <<_ACEOF
19856#define HAVE_LDEXP 1
19857_ACEOF
db9f46a9
TG
19858
19859 fi
19860
cc6d3bde 19861
cc6d3bde 19862
cc6d3bde 19863
db9f46a9
TG
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
19865$as_echo_n "checking for ldexpl... " >&6; }
19866if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
5213506e 19867 $as_echo_n "(cached) " >&6
1409cd0b 19868else
db9f46a9 19869 if test x$gcc_no_link = xyes; then
5213506e 19870 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19871fi
5213506e 19872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19873/* end confdefs.h. */
19874
db9f46a9
TG
19875#ifdef HAVE_COMPLEX_H
19876#include <complex.h>
19877#endif
19878#ifdef HAVE_MATH_H
19879#include <math.h>
1409cd0b 19880#endif
db9f46a9
TG
19881
19882int (*ptr)() = (int (*)())ldexpl;
19883
1409cd0b
FXC
19884int
19885main ()
19886{
1409cd0b
FXC
19887 return 0;
19888}
db9f46a9 19889
1409cd0b 19890_ACEOF
5213506e 19891if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19892 gcc_cv_math_func_ldexpl=yes
1409cd0b 19893else
db9f46a9 19894 gcc_cv_math_func_ldexpl=no
1409cd0b 19895fi
5213506e
RW
19896rm -f core conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19898fi
db9f46a9
TG
19899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
19900$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
19901 if test $gcc_cv_math_func_ldexpl = yes; then
f1cdfa01 19902
f38a14ca
TG
19903cat >>confdefs.h <<_ACEOF
19904#define HAVE_LDEXPL 1
19905_ACEOF
db9f46a9
TG
19906
19907 fi
1409cd0b 19908
1409cd0b 19909
1409cd0b 19910
db9f46a9
TG
19911
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
19913$as_echo_n "checking for logf... " >&6; }
19914if test "${gcc_cv_math_func_logf+set}" = set; then :
5213506e 19915 $as_echo_n "(cached) " >&6
1409cd0b 19916else
db9f46a9 19917 if test x$gcc_no_link = xyes; then
5213506e 19918 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19919fi
5213506e 19920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19921/* end confdefs.h. */
19922
db9f46a9
TG
19923#ifdef HAVE_COMPLEX_H
19924#include <complex.h>
1409cd0b 19925#endif
db9f46a9
TG
19926#ifdef HAVE_MATH_H
19927#include <math.h>
19928#endif
19929
19930int (*ptr)() = (int (*)())logf;
19931
1409cd0b
FXC
19932int
19933main ()
19934{
1409cd0b
FXC
19935 return 0;
19936}
db9f46a9 19937
1409cd0b 19938_ACEOF
5213506e 19939if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19940 gcc_cv_math_func_logf=yes
1409cd0b 19941else
db9f46a9 19942 gcc_cv_math_func_logf=no
1409cd0b 19943fi
5213506e
RW
19944rm -f core conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19946fi
db9f46a9
TG
19947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
19948$as_echo "$gcc_cv_math_func_logf" >&6; }
19949 if test $gcc_cv_math_func_logf = yes; then
f1cdfa01 19950
f38a14ca
TG
19951cat >>confdefs.h <<_ACEOF
19952#define HAVE_LOGF 1
19953_ACEOF
1409cd0b 19954
db9f46a9 19955 fi
1409cd0b 19956
1409cd0b 19957
db9f46a9
TG
19958
19959
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
19961$as_echo_n "checking for log... " >&6; }
19962if test "${gcc_cv_math_func_log+set}" = set; then :
5213506e 19963 $as_echo_n "(cached) " >&6
1409cd0b 19964else
db9f46a9 19965 if test x$gcc_no_link = xyes; then
5213506e 19966 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19967fi
5213506e 19968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19969/* end confdefs.h. */
19970
db9f46a9
TG
19971#ifdef HAVE_COMPLEX_H
19972#include <complex.h>
19973#endif
19974#ifdef HAVE_MATH_H
19975#include <math.h>
1409cd0b 19976#endif
db9f46a9
TG
19977
19978int (*ptr)() = (int (*)())log;
19979
1409cd0b
FXC
19980int
19981main ()
19982{
1409cd0b
FXC
19983 return 0;
19984}
db9f46a9 19985
1409cd0b 19986_ACEOF
5213506e 19987if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 19988 gcc_cv_math_func_log=yes
1409cd0b 19989else
db9f46a9 19990 gcc_cv_math_func_log=no
1409cd0b 19991fi
5213506e
RW
19992rm -f core conftest.err conftest.$ac_objext \
19993 conftest$ac_exeext conftest.$ac_ext
1409cd0b 19994fi
db9f46a9
TG
19995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
19996$as_echo "$gcc_cv_math_func_log" >&6; }
19997 if test $gcc_cv_math_func_log = yes; then
f1cdfa01 19998
f38a14ca
TG
19999cat >>confdefs.h <<_ACEOF
20000#define HAVE_LOG 1
20001_ACEOF
db9f46a9
TG
20002
20003 fi
1409cd0b 20004
1409cd0b 20005
1409cd0b 20006
db9f46a9
TG
20007
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20009$as_echo_n "checking for logl... " >&6; }
20010if test "${gcc_cv_math_func_logl+set}" = set; then :
5213506e 20011 $as_echo_n "(cached) " >&6
1409cd0b 20012else
db9f46a9 20013 if test x$gcc_no_link = xyes; then
5213506e 20014 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20015fi
5213506e 20016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20017/* end confdefs.h. */
20018
db9f46a9
TG
20019#ifdef HAVE_COMPLEX_H
20020#include <complex.h>
1409cd0b 20021#endif
db9f46a9
TG
20022#ifdef HAVE_MATH_H
20023#include <math.h>
20024#endif
20025
20026int (*ptr)() = (int (*)())logl;
20027
1409cd0b
FXC
20028int
20029main ()
20030{
1409cd0b
FXC
20031 return 0;
20032}
db9f46a9 20033
1409cd0b 20034_ACEOF
5213506e 20035if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20036 gcc_cv_math_func_logl=yes
1409cd0b 20037else
db9f46a9 20038 gcc_cv_math_func_logl=no
1409cd0b 20039fi
5213506e
RW
20040rm -f core conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20042fi
db9f46a9
TG
20043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20044$as_echo "$gcc_cv_math_func_logl" >&6; }
20045 if test $gcc_cv_math_func_logl = yes; then
f1cdfa01 20046
f38a14ca
TG
20047cat >>confdefs.h <<_ACEOF
20048#define HAVE_LOGL 1
20049_ACEOF
db9f46a9
TG
20050
20051 fi
20052
1409cd0b 20053
1409cd0b 20054
1409cd0b 20055
db9f46a9
TG
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20057$as_echo_n "checking for clogf... " >&6; }
20058if test "${gcc_cv_math_func_clogf+set}" = set; then :
5213506e 20059 $as_echo_n "(cached) " >&6
1409cd0b 20060else
db9f46a9 20061 if test x$gcc_no_link = xyes; then
5213506e 20062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20063fi
5213506e 20064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20065/* end confdefs.h. */
20066
db9f46a9
TG
20067#ifdef HAVE_COMPLEX_H
20068#include <complex.h>
20069#endif
20070#ifdef HAVE_MATH_H
20071#include <math.h>
1409cd0b 20072#endif
db9f46a9
TG
20073
20074int (*ptr)() = (int (*)())clogf;
20075
1409cd0b
FXC
20076int
20077main ()
20078{
1409cd0b
FXC
20079 return 0;
20080}
db9f46a9 20081
1409cd0b 20082_ACEOF
5213506e 20083if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20084 gcc_cv_math_func_clogf=yes
1409cd0b 20085else
db9f46a9 20086 gcc_cv_math_func_clogf=no
1409cd0b 20087fi
5213506e
RW
20088rm -f core conftest.err conftest.$ac_objext \
20089 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20090fi
db9f46a9
TG
20091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20092$as_echo "$gcc_cv_math_func_clogf" >&6; }
20093 if test $gcc_cv_math_func_clogf = yes; then
f1cdfa01 20094
f38a14ca
TG
20095cat >>confdefs.h <<_ACEOF
20096#define HAVE_CLOGF 1
20097_ACEOF
db9f46a9
TG
20098
20099 fi
1409cd0b 20100
1409cd0b 20101
1409cd0b 20102
db9f46a9
TG
20103
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20105$as_echo_n "checking for clog... " >&6; }
20106if test "${gcc_cv_math_func_clog+set}" = set; then :
5213506e 20107 $as_echo_n "(cached) " >&6
1409cd0b 20108else
db9f46a9 20109 if test x$gcc_no_link = xyes; then
5213506e 20110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20111fi
5213506e 20112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20113/* end confdefs.h. */
20114
db9f46a9
TG
20115#ifdef HAVE_COMPLEX_H
20116#include <complex.h>
1409cd0b 20117#endif
db9f46a9
TG
20118#ifdef HAVE_MATH_H
20119#include <math.h>
20120#endif
20121
20122int (*ptr)() = (int (*)())clog;
20123
1409cd0b
FXC
20124int
20125main ()
20126{
1409cd0b
FXC
20127 return 0;
20128}
db9f46a9 20129
1409cd0b 20130_ACEOF
5213506e 20131if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20132 gcc_cv_math_func_clog=yes
1409cd0b 20133else
db9f46a9 20134 gcc_cv_math_func_clog=no
1409cd0b 20135fi
5213506e
RW
20136rm -f core conftest.err conftest.$ac_objext \
20137 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20138fi
db9f46a9
TG
20139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20140$as_echo "$gcc_cv_math_func_clog" >&6; }
20141 if test $gcc_cv_math_func_clog = yes; then
f1cdfa01 20142
f38a14ca
TG
20143cat >>confdefs.h <<_ACEOF
20144#define HAVE_CLOG 1
20145_ACEOF
1409cd0b 20146
db9f46a9 20147 fi
1409cd0b 20148
1409cd0b 20149
db9f46a9
TG
20150
20151
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20153$as_echo_n "checking for clogl... " >&6; }
20154if test "${gcc_cv_math_func_clogl+set}" = set; then :
5213506e 20155 $as_echo_n "(cached) " >&6
1409cd0b 20156else
db9f46a9 20157 if test x$gcc_no_link = xyes; then
5213506e 20158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20159fi
5213506e 20160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20161/* end confdefs.h. */
20162
db9f46a9
TG
20163#ifdef HAVE_COMPLEX_H
20164#include <complex.h>
20165#endif
20166#ifdef HAVE_MATH_H
20167#include <math.h>
1409cd0b 20168#endif
db9f46a9
TG
20169
20170int (*ptr)() = (int (*)())clogl;
20171
1409cd0b
FXC
20172int
20173main ()
20174{
1409cd0b
FXC
20175 return 0;
20176}
db9f46a9 20177
1409cd0b 20178_ACEOF
5213506e 20179if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20180 gcc_cv_math_func_clogl=yes
1409cd0b 20181else
db9f46a9 20182 gcc_cv_math_func_clogl=no
1409cd0b 20183fi
5213506e
RW
20184rm -f core conftest.err conftest.$ac_objext \
20185 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20186fi
db9f46a9
TG
20187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20188$as_echo "$gcc_cv_math_func_clogl" >&6; }
20189 if test $gcc_cv_math_func_clogl = yes; then
f1cdfa01 20190
f38a14ca
TG
20191cat >>confdefs.h <<_ACEOF
20192#define HAVE_CLOGL 1
20193_ACEOF
db9f46a9
TG
20194
20195 fi
1409cd0b 20196
1409cd0b 20197
1409cd0b 20198
db9f46a9
TG
20199
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20201$as_echo_n "checking for log10f... " >&6; }
20202if test "${gcc_cv_math_func_log10f+set}" = set; then :
5213506e 20203 $as_echo_n "(cached) " >&6
1409cd0b 20204else
db9f46a9 20205 if test x$gcc_no_link = xyes; then
5213506e 20206 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20207fi
5213506e 20208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20209/* end confdefs.h. */
20210
db9f46a9
TG
20211#ifdef HAVE_COMPLEX_H
20212#include <complex.h>
1409cd0b 20213#endif
db9f46a9
TG
20214#ifdef HAVE_MATH_H
20215#include <math.h>
20216#endif
20217
20218int (*ptr)() = (int (*)())log10f;
20219
1409cd0b
FXC
20220int
20221main ()
20222{
1409cd0b
FXC
20223 return 0;
20224}
db9f46a9 20225
1409cd0b 20226_ACEOF
5213506e 20227if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20228 gcc_cv_math_func_log10f=yes
1409cd0b 20229else
db9f46a9 20230 gcc_cv_math_func_log10f=no
1409cd0b 20231fi
5213506e
RW
20232rm -f core conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20234fi
db9f46a9
TG
20235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20236$as_echo "$gcc_cv_math_func_log10f" >&6; }
20237 if test $gcc_cv_math_func_log10f = yes; then
f1cdfa01 20238
f38a14ca
TG
20239cat >>confdefs.h <<_ACEOF
20240#define HAVE_LOG10F 1
20241_ACEOF
db9f46a9
TG
20242
20243 fi
20244
1409cd0b 20245
1409cd0b 20246
1409cd0b 20247
db9f46a9
TG
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20249$as_echo_n "checking for log10... " >&6; }
20250if test "${gcc_cv_math_func_log10+set}" = set; then :
5213506e 20251 $as_echo_n "(cached) " >&6
1409cd0b 20252else
db9f46a9 20253 if test x$gcc_no_link = xyes; then
5213506e 20254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20255fi
5213506e 20256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20257/* end confdefs.h. */
20258
db9f46a9
TG
20259#ifdef HAVE_COMPLEX_H
20260#include <complex.h>
20261#endif
20262#ifdef HAVE_MATH_H
20263#include <math.h>
1409cd0b 20264#endif
db9f46a9
TG
20265
20266int (*ptr)() = (int (*)())log10;
20267
1409cd0b
FXC
20268int
20269main ()
20270{
1409cd0b
FXC
20271 return 0;
20272}
db9f46a9 20273
1409cd0b 20274_ACEOF
5213506e 20275if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20276 gcc_cv_math_func_log10=yes
1409cd0b 20277else
db9f46a9 20278 gcc_cv_math_func_log10=no
1409cd0b 20279fi
5213506e
RW
20280rm -f core conftest.err conftest.$ac_objext \
20281 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20282fi
db9f46a9
TG
20283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20284$as_echo "$gcc_cv_math_func_log10" >&6; }
20285 if test $gcc_cv_math_func_log10 = yes; then
f1cdfa01 20286
f38a14ca
TG
20287cat >>confdefs.h <<_ACEOF
20288#define HAVE_LOG10 1
20289_ACEOF
db9f46a9
TG
20290
20291 fi
1409cd0b 20292
1409cd0b 20293
1409cd0b 20294
db9f46a9
TG
20295
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20297$as_echo_n "checking for log10l... " >&6; }
20298if test "${gcc_cv_math_func_log10l+set}" = set; then :
5213506e 20299 $as_echo_n "(cached) " >&6
1409cd0b 20300else
db9f46a9 20301 if test x$gcc_no_link = xyes; then
5213506e 20302 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20303fi
5213506e 20304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20305/* end confdefs.h. */
20306
db9f46a9
TG
20307#ifdef HAVE_COMPLEX_H
20308#include <complex.h>
1409cd0b 20309#endif
db9f46a9
TG
20310#ifdef HAVE_MATH_H
20311#include <math.h>
20312#endif
20313
20314int (*ptr)() = (int (*)())log10l;
20315
1409cd0b
FXC
20316int
20317main ()
20318{
1409cd0b
FXC
20319 return 0;
20320}
db9f46a9 20321
1409cd0b 20322_ACEOF
5213506e 20323if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20324 gcc_cv_math_func_log10l=yes
1409cd0b 20325else
db9f46a9 20326 gcc_cv_math_func_log10l=no
1409cd0b 20327fi
5213506e
RW
20328rm -f core conftest.err conftest.$ac_objext \
20329 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20330fi
db9f46a9
TG
20331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20332$as_echo "$gcc_cv_math_func_log10l" >&6; }
20333 if test $gcc_cv_math_func_log10l = yes; then
f1cdfa01 20334
f38a14ca
TG
20335cat >>confdefs.h <<_ACEOF
20336#define HAVE_LOG10L 1
20337_ACEOF
1409cd0b 20338
db9f46a9 20339 fi
1409cd0b 20340
1409cd0b 20341
db9f46a9
TG
20342
20343
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20345$as_echo_n "checking for clog10f... " >&6; }
20346if test "${gcc_cv_math_func_clog10f+set}" = set; then :
5213506e 20347 $as_echo_n "(cached) " >&6
1409cd0b 20348else
db9f46a9 20349 if test x$gcc_no_link = xyes; then
5213506e 20350 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20351fi
5213506e 20352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20353/* end confdefs.h. */
20354
db9f46a9
TG
20355#ifdef HAVE_COMPLEX_H
20356#include <complex.h>
20357#endif
20358#ifdef HAVE_MATH_H
20359#include <math.h>
1409cd0b 20360#endif
db9f46a9
TG
20361
20362int (*ptr)() = (int (*)())clog10f;
20363
1409cd0b
FXC
20364int
20365main ()
20366{
1409cd0b
FXC
20367 return 0;
20368}
db9f46a9 20369
1409cd0b 20370_ACEOF
5213506e 20371if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20372 gcc_cv_math_func_clog10f=yes
1409cd0b 20373else
db9f46a9 20374 gcc_cv_math_func_clog10f=no
1409cd0b 20375fi
5213506e
RW
20376rm -f core conftest.err conftest.$ac_objext \
20377 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20378fi
db9f46a9
TG
20379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20380$as_echo "$gcc_cv_math_func_clog10f" >&6; }
20381 if test $gcc_cv_math_func_clog10f = yes; then
f1cdfa01 20382
f38a14ca
TG
20383cat >>confdefs.h <<_ACEOF
20384#define HAVE_CLOG10F 1
20385_ACEOF
db9f46a9
TG
20386
20387 fi
1409cd0b 20388
1409cd0b 20389
1409cd0b 20390
db9f46a9
TG
20391
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20393$as_echo_n "checking for clog10... " >&6; }
20394if test "${gcc_cv_math_func_clog10+set}" = set; then :
5213506e 20395 $as_echo_n "(cached) " >&6
1409cd0b 20396else
db9f46a9 20397 if test x$gcc_no_link = xyes; then
5213506e 20398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20399fi
5213506e 20400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20401/* end confdefs.h. */
20402
db9f46a9
TG
20403#ifdef HAVE_COMPLEX_H
20404#include <complex.h>
1409cd0b 20405#endif
db9f46a9
TG
20406#ifdef HAVE_MATH_H
20407#include <math.h>
20408#endif
20409
20410int (*ptr)() = (int (*)())clog10;
20411
1409cd0b
FXC
20412int
20413main ()
20414{
5213506e
RW
20415 return 0;
20416}
db9f46a9 20417
5213506e
RW
20418_ACEOF
20419if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20420 gcc_cv_math_func_clog10=yes
1409cd0b 20421else
db9f46a9 20422 gcc_cv_math_func_clog10=no
1409cd0b 20423fi
5213506e
RW
20424rm -f core conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20426fi
db9f46a9
TG
20427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20428$as_echo "$gcc_cv_math_func_clog10" >&6; }
20429 if test $gcc_cv_math_func_clog10 = yes; then
f1cdfa01 20430
f38a14ca
TG
20431cat >>confdefs.h <<_ACEOF
20432#define HAVE_CLOG10 1
20433_ACEOF
db9f46a9
TG
20434
20435 fi
20436
1409cd0b 20437
1409cd0b 20438
1409cd0b 20439
db9f46a9
TG
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20441$as_echo_n "checking for clog10l... " >&6; }
20442if test "${gcc_cv_math_func_clog10l+set}" = set; then :
5213506e 20443 $as_echo_n "(cached) " >&6
1409cd0b 20444else
db9f46a9 20445 if test x$gcc_no_link = xyes; then
5213506e 20446 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20447fi
5213506e 20448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20449/* end confdefs.h. */
20450
db9f46a9
TG
20451#ifdef HAVE_COMPLEX_H
20452#include <complex.h>
20453#endif
20454#ifdef HAVE_MATH_H
20455#include <math.h>
1409cd0b 20456#endif
db9f46a9
TG
20457
20458int (*ptr)() = (int (*)())clog10l;
20459
1409cd0b
FXC
20460int
20461main ()
20462{
1409cd0b
FXC
20463 return 0;
20464}
db9f46a9 20465
1409cd0b 20466_ACEOF
5213506e 20467if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20468 gcc_cv_math_func_clog10l=yes
1409cd0b 20469else
db9f46a9 20470 gcc_cv_math_func_clog10l=no
1409cd0b 20471fi
5213506e
RW
20472rm -f core conftest.err conftest.$ac_objext \
20473 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20474fi
db9f46a9
TG
20475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20476$as_echo "$gcc_cv_math_func_clog10l" >&6; }
20477 if test $gcc_cv_math_func_clog10l = yes; then
f1cdfa01 20478
f38a14ca
TG
20479cat >>confdefs.h <<_ACEOF
20480#define HAVE_CLOG10L 1
20481_ACEOF
db9f46a9
TG
20482
20483 fi
1409cd0b 20484
1409cd0b 20485
1409cd0b 20486
db9f46a9
TG
20487
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20489$as_echo_n "checking for nextafterf... " >&6; }
20490if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
5213506e 20491 $as_echo_n "(cached) " >&6
1409cd0b 20492else
db9f46a9 20493 if test x$gcc_no_link = xyes; then
5213506e 20494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20495fi
5213506e 20496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20497/* end confdefs.h. */
20498
db9f46a9
TG
20499#ifdef HAVE_COMPLEX_H
20500#include <complex.h>
1409cd0b 20501#endif
db9f46a9
TG
20502#ifdef HAVE_MATH_H
20503#include <math.h>
20504#endif
20505
20506int (*ptr)() = (int (*)())nextafterf;
20507
1409cd0b
FXC
20508int
20509main ()
20510{
1409cd0b
FXC
20511 return 0;
20512}
db9f46a9 20513
1409cd0b 20514_ACEOF
5213506e 20515if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20516 gcc_cv_math_func_nextafterf=yes
1409cd0b 20517else
db9f46a9 20518 gcc_cv_math_func_nextafterf=no
1409cd0b 20519fi
5213506e
RW
20520rm -f core conftest.err conftest.$ac_objext \
20521 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20522fi
db9f46a9
TG
20523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20524$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20525 if test $gcc_cv_math_func_nextafterf = yes; then
f1cdfa01 20526
f38a14ca
TG
20527cat >>confdefs.h <<_ACEOF
20528#define HAVE_NEXTAFTERF 1
20529_ACEOF
1409cd0b 20530
db9f46a9 20531 fi
1409cd0b 20532
1409cd0b 20533
db9f46a9
TG
20534
20535
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20537$as_echo_n "checking for nextafter... " >&6; }
20538if test "${gcc_cv_math_func_nextafter+set}" = set; then :
5213506e 20539 $as_echo_n "(cached) " >&6
1409cd0b 20540else
db9f46a9 20541 if test x$gcc_no_link = xyes; then
5213506e 20542 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20543fi
5213506e 20544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20545/* end confdefs.h. */
20546
db9f46a9
TG
20547#ifdef HAVE_COMPLEX_H
20548#include <complex.h>
20549#endif
20550#ifdef HAVE_MATH_H
20551#include <math.h>
1409cd0b 20552#endif
db9f46a9
TG
20553
20554int (*ptr)() = (int (*)())nextafter;
20555
1409cd0b
FXC
20556int
20557main ()
20558{
1409cd0b
FXC
20559 return 0;
20560}
db9f46a9 20561
1409cd0b 20562_ACEOF
5213506e 20563if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20564 gcc_cv_math_func_nextafter=yes
1409cd0b 20565else
db9f46a9 20566 gcc_cv_math_func_nextafter=no
1409cd0b 20567fi
5213506e
RW
20568rm -f core conftest.err conftest.$ac_objext \
20569 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20570fi
db9f46a9
TG
20571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20572$as_echo "$gcc_cv_math_func_nextafter" >&6; }
20573 if test $gcc_cv_math_func_nextafter = yes; then
f1cdfa01 20574
f38a14ca
TG
20575cat >>confdefs.h <<_ACEOF
20576#define HAVE_NEXTAFTER 1
20577_ACEOF
db9f46a9
TG
20578
20579 fi
1409cd0b 20580
1409cd0b 20581
1409cd0b 20582
db9f46a9
TG
20583
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20585$as_echo_n "checking for nextafterl... " >&6; }
20586if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
5213506e 20587 $as_echo_n "(cached) " >&6
1409cd0b 20588else
db9f46a9 20589 if test x$gcc_no_link = xyes; then
5213506e 20590 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20591fi
5213506e 20592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20593/* end confdefs.h. */
20594
db9f46a9
TG
20595#ifdef HAVE_COMPLEX_H
20596#include <complex.h>
1409cd0b 20597#endif
db9f46a9
TG
20598#ifdef HAVE_MATH_H
20599#include <math.h>
20600#endif
20601
20602int (*ptr)() = (int (*)())nextafterl;
20603
1409cd0b
FXC
20604int
20605main ()
20606{
1409cd0b
FXC
20607 return 0;
20608}
db9f46a9 20609
1409cd0b 20610_ACEOF
5213506e 20611if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20612 gcc_cv_math_func_nextafterl=yes
1409cd0b 20613else
db9f46a9 20614 gcc_cv_math_func_nextafterl=no
1409cd0b 20615fi
5213506e
RW
20616rm -f core conftest.err conftest.$ac_objext \
20617 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20618fi
db9f46a9
TG
20619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20620$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20621 if test $gcc_cv_math_func_nextafterl = yes; then
f1cdfa01 20622
f38a14ca
TG
20623cat >>confdefs.h <<_ACEOF
20624#define HAVE_NEXTAFTERL 1
20625_ACEOF
db9f46a9
TG
20626
20627 fi
20628
1409cd0b 20629
1409cd0b 20630
1409cd0b 20631
db9f46a9
TG
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20633$as_echo_n "checking for powf... " >&6; }
20634if test "${gcc_cv_math_func_powf+set}" = set; then :
5213506e 20635 $as_echo_n "(cached) " >&6
1409cd0b 20636else
db9f46a9 20637 if test x$gcc_no_link = xyes; then
5213506e 20638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20639fi
5213506e 20640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20641/* end confdefs.h. */
20642
db9f46a9
TG
20643#ifdef HAVE_COMPLEX_H
20644#include <complex.h>
20645#endif
20646#ifdef HAVE_MATH_H
20647#include <math.h>
1409cd0b 20648#endif
db9f46a9
TG
20649
20650int (*ptr)() = (int (*)())powf;
20651
1409cd0b
FXC
20652int
20653main ()
20654{
1409cd0b
FXC
20655 return 0;
20656}
db9f46a9 20657
1409cd0b 20658_ACEOF
5213506e 20659if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20660 gcc_cv_math_func_powf=yes
1409cd0b 20661else
db9f46a9 20662 gcc_cv_math_func_powf=no
1409cd0b 20663fi
5213506e
RW
20664rm -f core conftest.err conftest.$ac_objext \
20665 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20666fi
db9f46a9
TG
20667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20668$as_echo "$gcc_cv_math_func_powf" >&6; }
20669 if test $gcc_cv_math_func_powf = yes; then
f1cdfa01 20670
f38a14ca
TG
20671cat >>confdefs.h <<_ACEOF
20672#define HAVE_POWF 1
20673_ACEOF
db9f46a9
TG
20674
20675 fi
1409cd0b 20676
1409cd0b 20677
1409cd0b 20678
db9f46a9
TG
20679
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20681$as_echo_n "checking for pow... " >&6; }
20682if test "${gcc_cv_math_func_pow+set}" = set; then :
5213506e 20683 $as_echo_n "(cached) " >&6
1409cd0b 20684else
db9f46a9 20685 if test x$gcc_no_link = xyes; then
5213506e 20686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20687fi
5213506e 20688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20689/* end confdefs.h. */
20690
db9f46a9
TG
20691#ifdef HAVE_COMPLEX_H
20692#include <complex.h>
1409cd0b 20693#endif
db9f46a9
TG
20694#ifdef HAVE_MATH_H
20695#include <math.h>
20696#endif
20697
20698int (*ptr)() = (int (*)())pow;
20699
1409cd0b
FXC
20700int
20701main ()
20702{
1409cd0b
FXC
20703 return 0;
20704}
db9f46a9 20705
1409cd0b 20706_ACEOF
5213506e 20707if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20708 gcc_cv_math_func_pow=yes
1409cd0b 20709else
db9f46a9 20710 gcc_cv_math_func_pow=no
1409cd0b 20711fi
5213506e
RW
20712rm -f core conftest.err conftest.$ac_objext \
20713 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20714fi
db9f46a9
TG
20715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20716$as_echo "$gcc_cv_math_func_pow" >&6; }
20717 if test $gcc_cv_math_func_pow = yes; then
f1cdfa01 20718
f38a14ca
TG
20719cat >>confdefs.h <<_ACEOF
20720#define HAVE_POW 1
20721_ACEOF
1409cd0b 20722
db9f46a9 20723 fi
1409cd0b 20724
1409cd0b 20725
db9f46a9
TG
20726
20727
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20729$as_echo_n "checking for powl... " >&6; }
20730if test "${gcc_cv_math_func_powl+set}" = set; then :
5213506e 20731 $as_echo_n "(cached) " >&6
1409cd0b 20732else
db9f46a9 20733 if test x$gcc_no_link = xyes; then
5213506e 20734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20735fi
5213506e 20736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20737/* end confdefs.h. */
20738
db9f46a9
TG
20739#ifdef HAVE_COMPLEX_H
20740#include <complex.h>
20741#endif
20742#ifdef HAVE_MATH_H
20743#include <math.h>
1409cd0b 20744#endif
db9f46a9
TG
20745
20746int (*ptr)() = (int (*)())powl;
20747
1409cd0b
FXC
20748int
20749main ()
20750{
1409cd0b
FXC
20751 return 0;
20752}
db9f46a9 20753
1409cd0b 20754_ACEOF
5213506e 20755if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20756 gcc_cv_math_func_powl=yes
1409cd0b 20757else
db9f46a9 20758 gcc_cv_math_func_powl=no
1409cd0b 20759fi
5213506e
RW
20760rm -f core conftest.err conftest.$ac_objext \
20761 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20762fi
db9f46a9
TG
20763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20764$as_echo "$gcc_cv_math_func_powl" >&6; }
20765 if test $gcc_cv_math_func_powl = yes; then
f1cdfa01 20766
f38a14ca
TG
20767cat >>confdefs.h <<_ACEOF
20768#define HAVE_POWL 1
20769_ACEOF
db9f46a9
TG
20770
20771 fi
1409cd0b 20772
1409cd0b 20773
1409cd0b 20774
db9f46a9
TG
20775
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20777$as_echo_n "checking for cpowf... " >&6; }
20778if test "${gcc_cv_math_func_cpowf+set}" = set; then :
5213506e 20779 $as_echo_n "(cached) " >&6
1409cd0b 20780else
db9f46a9 20781 if test x$gcc_no_link = xyes; then
5213506e 20782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20783fi
5213506e 20784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20785/* end confdefs.h. */
20786
db9f46a9
TG
20787#ifdef HAVE_COMPLEX_H
20788#include <complex.h>
1409cd0b 20789#endif
db9f46a9
TG
20790#ifdef HAVE_MATH_H
20791#include <math.h>
20792#endif
20793
20794int (*ptr)() = (int (*)())cpowf;
20795
1409cd0b
FXC
20796int
20797main ()
20798{
1409cd0b
FXC
20799 return 0;
20800}
db9f46a9 20801
1409cd0b 20802_ACEOF
5213506e 20803if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20804 gcc_cv_math_func_cpowf=yes
1409cd0b 20805else
db9f46a9 20806 gcc_cv_math_func_cpowf=no
1409cd0b 20807fi
5213506e
RW
20808rm -f core conftest.err conftest.$ac_objext \
20809 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20810fi
db9f46a9
TG
20811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20812$as_echo "$gcc_cv_math_func_cpowf" >&6; }
20813 if test $gcc_cv_math_func_cpowf = yes; then
f1cdfa01 20814
f38a14ca
TG
20815cat >>confdefs.h <<_ACEOF
20816#define HAVE_CPOWF 1
20817_ACEOF
db9f46a9
TG
20818
20819 fi
20820
1409cd0b 20821
1409cd0b 20822
1409cd0b 20823
db9f46a9
TG
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20825$as_echo_n "checking for cpow... " >&6; }
20826if test "${gcc_cv_math_func_cpow+set}" = set; then :
5213506e 20827 $as_echo_n "(cached) " >&6
1409cd0b 20828else
db9f46a9 20829 if test x$gcc_no_link = xyes; then
5213506e 20830 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20831fi
5213506e 20832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20833/* end confdefs.h. */
20834
db9f46a9
TG
20835#ifdef HAVE_COMPLEX_H
20836#include <complex.h>
20837#endif
20838#ifdef HAVE_MATH_H
20839#include <math.h>
1409cd0b 20840#endif
db9f46a9
TG
20841
20842int (*ptr)() = (int (*)())cpow;
20843
1409cd0b
FXC
20844int
20845main ()
20846{
1409cd0b
FXC
20847 return 0;
20848}
db9f46a9 20849
1409cd0b 20850_ACEOF
5213506e 20851if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20852 gcc_cv_math_func_cpow=yes
1409cd0b 20853else
db9f46a9 20854 gcc_cv_math_func_cpow=no
1409cd0b 20855fi
5213506e
RW
20856rm -f core conftest.err conftest.$ac_objext \
20857 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20858fi
db9f46a9
TG
20859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20860$as_echo "$gcc_cv_math_func_cpow" >&6; }
20861 if test $gcc_cv_math_func_cpow = yes; then
f1cdfa01 20862
f38a14ca
TG
20863cat >>confdefs.h <<_ACEOF
20864#define HAVE_CPOW 1
20865_ACEOF
db9f46a9
TG
20866
20867 fi
1409cd0b 20868
1409cd0b 20869
1409cd0b 20870
db9f46a9
TG
20871
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
20873$as_echo_n "checking for cpowl... " >&6; }
20874if test "${gcc_cv_math_func_cpowl+set}" = set; then :
5213506e 20875 $as_echo_n "(cached) " >&6
1409cd0b 20876else
db9f46a9 20877 if test x$gcc_no_link = xyes; then
5213506e 20878 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20879fi
5213506e 20880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20881/* end confdefs.h. */
20882
db9f46a9
TG
20883#ifdef HAVE_COMPLEX_H
20884#include <complex.h>
1409cd0b 20885#endif
db9f46a9
TG
20886#ifdef HAVE_MATH_H
20887#include <math.h>
20888#endif
20889
20890int (*ptr)() = (int (*)())cpowl;
20891
1409cd0b
FXC
20892int
20893main ()
20894{
1409cd0b
FXC
20895 return 0;
20896}
db9f46a9 20897
1409cd0b 20898_ACEOF
5213506e 20899if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20900 gcc_cv_math_func_cpowl=yes
1409cd0b 20901else
db9f46a9 20902 gcc_cv_math_func_cpowl=no
1409cd0b 20903fi
5213506e
RW
20904rm -f core conftest.err conftest.$ac_objext \
20905 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20906fi
db9f46a9
TG
20907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
20908$as_echo "$gcc_cv_math_func_cpowl" >&6; }
20909 if test $gcc_cv_math_func_cpowl = yes; then
f1cdfa01 20910
f38a14ca
TG
20911cat >>confdefs.h <<_ACEOF
20912#define HAVE_CPOWL 1
20913_ACEOF
1409cd0b 20914
db9f46a9 20915 fi
1409cd0b 20916
1409cd0b 20917
db9f46a9
TG
20918
20919
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
20921$as_echo_n "checking for roundf... " >&6; }
20922if test "${gcc_cv_math_func_roundf+set}" = set; then :
5213506e 20923 $as_echo_n "(cached) " >&6
1409cd0b 20924else
db9f46a9 20925 if test x$gcc_no_link = xyes; then
5213506e 20926 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20927fi
5213506e 20928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20929/* end confdefs.h. */
20930
db9f46a9
TG
20931#ifdef HAVE_COMPLEX_H
20932#include <complex.h>
20933#endif
20934#ifdef HAVE_MATH_H
20935#include <math.h>
1409cd0b 20936#endif
db9f46a9
TG
20937
20938int (*ptr)() = (int (*)())roundf;
20939
1409cd0b
FXC
20940int
20941main ()
20942{
1409cd0b
FXC
20943 return 0;
20944}
db9f46a9 20945
1409cd0b 20946_ACEOF
5213506e 20947if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20948 gcc_cv_math_func_roundf=yes
1409cd0b 20949else
db9f46a9 20950 gcc_cv_math_func_roundf=no
1409cd0b 20951fi
5213506e
RW
20952rm -f core conftest.err conftest.$ac_objext \
20953 conftest$ac_exeext conftest.$ac_ext
1409cd0b 20954fi
db9f46a9
TG
20955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
20956$as_echo "$gcc_cv_math_func_roundf" >&6; }
20957 if test $gcc_cv_math_func_roundf = yes; then
f1cdfa01 20958
f38a14ca
TG
20959cat >>confdefs.h <<_ACEOF
20960#define HAVE_ROUNDF 1
20961_ACEOF
db9f46a9
TG
20962
20963 fi
1409cd0b 20964
1409cd0b 20965
1409cd0b 20966
db9f46a9
TG
20967
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
20969$as_echo_n "checking for round... " >&6; }
20970if test "${gcc_cv_math_func_round+set}" = set; then :
5213506e 20971 $as_echo_n "(cached) " >&6
1409cd0b 20972else
db9f46a9 20973 if test x$gcc_no_link = xyes; then
5213506e 20974 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20975fi
5213506e 20976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20977/* end confdefs.h. */
20978
db9f46a9
TG
20979#ifdef HAVE_COMPLEX_H
20980#include <complex.h>
1409cd0b 20981#endif
db9f46a9
TG
20982#ifdef HAVE_MATH_H
20983#include <math.h>
20984#endif
20985
20986int (*ptr)() = (int (*)())round;
20987
1409cd0b
FXC
20988int
20989main ()
20990{
1409cd0b
FXC
20991 return 0;
20992}
db9f46a9 20993
1409cd0b 20994_ACEOF
5213506e 20995if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 20996 gcc_cv_math_func_round=yes
1409cd0b 20997else
db9f46a9 20998 gcc_cv_math_func_round=no
1409cd0b 20999fi
5213506e
RW
21000rm -f core conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21002fi
db9f46a9
TG
21003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21004$as_echo "$gcc_cv_math_func_round" >&6; }
21005 if test $gcc_cv_math_func_round = yes; then
f1cdfa01 21006
f38a14ca
TG
21007cat >>confdefs.h <<_ACEOF
21008#define HAVE_ROUND 1
21009_ACEOF
db9f46a9
TG
21010
21011 fi
21012
1409cd0b 21013
1409cd0b 21014
1409cd0b 21015
db9f46a9
TG
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21017$as_echo_n "checking for roundl... " >&6; }
21018if test "${gcc_cv_math_func_roundl+set}" = set; then :
5213506e 21019 $as_echo_n "(cached) " >&6
94f548c2 21020else
db9f46a9 21021 if test x$gcc_no_link = xyes; then
5213506e 21022 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21023fi
5213506e 21024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21025/* end confdefs.h. */
21026
db9f46a9
TG
21027#ifdef HAVE_COMPLEX_H
21028#include <complex.h>
21029#endif
21030#ifdef HAVE_MATH_H
21031#include <math.h>
94f548c2 21032#endif
db9f46a9
TG
21033
21034int (*ptr)() = (int (*)())roundl;
21035
94f548c2
FXC
21036int
21037main ()
21038{
94f548c2
FXC
21039 return 0;
21040}
db9f46a9 21041
94f548c2 21042_ACEOF
5213506e 21043if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21044 gcc_cv_math_func_roundl=yes
94f548c2 21045else
db9f46a9 21046 gcc_cv_math_func_roundl=no
94f548c2 21047fi
5213506e
RW
21048rm -f core conftest.err conftest.$ac_objext \
21049 conftest$ac_exeext conftest.$ac_ext
94f548c2 21050fi
db9f46a9
TG
21051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21052$as_echo "$gcc_cv_math_func_roundl" >&6; }
21053 if test $gcc_cv_math_func_roundl = yes; then
f1cdfa01 21054
f38a14ca
TG
21055cat >>confdefs.h <<_ACEOF
21056#define HAVE_ROUNDL 1
21057_ACEOF
db9f46a9
TG
21058
21059 fi
94f548c2 21060
94f548c2 21061
94f548c2 21062
db9f46a9
TG
21063
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21065$as_echo_n "checking for lroundf... " >&6; }
21066if test "${gcc_cv_math_func_lroundf+set}" = set; then :
5213506e 21067 $as_echo_n "(cached) " >&6
94f548c2 21068else
db9f46a9 21069 if test x$gcc_no_link = xyes; then
5213506e 21070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21071fi
5213506e 21072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21073/* end confdefs.h. */
21074
db9f46a9
TG
21075#ifdef HAVE_COMPLEX_H
21076#include <complex.h>
94f548c2 21077#endif
db9f46a9
TG
21078#ifdef HAVE_MATH_H
21079#include <math.h>
21080#endif
21081
21082int (*ptr)() = (int (*)())lroundf;
21083
94f548c2
FXC
21084int
21085main ()
21086{
94f548c2
FXC
21087 return 0;
21088}
db9f46a9 21089
94f548c2 21090_ACEOF
5213506e 21091if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21092 gcc_cv_math_func_lroundf=yes
94f548c2 21093else
db9f46a9 21094 gcc_cv_math_func_lroundf=no
94f548c2 21095fi
5213506e
RW
21096rm -f core conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
94f548c2 21098fi
db9f46a9
TG
21099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21100$as_echo "$gcc_cv_math_func_lroundf" >&6; }
21101 if test $gcc_cv_math_func_lroundf = yes; then
f1cdfa01 21102
f38a14ca
TG
21103cat >>confdefs.h <<_ACEOF
21104#define HAVE_LROUNDF 1
21105_ACEOF
94f548c2 21106
db9f46a9 21107 fi
94f548c2 21108
94f548c2 21109
db9f46a9
TG
21110
21111
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21113$as_echo_n "checking for lround... " >&6; }
21114if test "${gcc_cv_math_func_lround+set}" = set; then :
5213506e 21115 $as_echo_n "(cached) " >&6
94f548c2 21116else
db9f46a9 21117 if test x$gcc_no_link = xyes; then
5213506e 21118 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21119fi
5213506e 21120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21121/* end confdefs.h. */
21122
db9f46a9
TG
21123#ifdef HAVE_COMPLEX_H
21124#include <complex.h>
21125#endif
21126#ifdef HAVE_MATH_H
21127#include <math.h>
94f548c2 21128#endif
db9f46a9
TG
21129
21130int (*ptr)() = (int (*)())lround;
21131
94f548c2
FXC
21132int
21133main ()
21134{
94f548c2
FXC
21135 return 0;
21136}
db9f46a9 21137
94f548c2 21138_ACEOF
5213506e 21139if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21140 gcc_cv_math_func_lround=yes
94f548c2 21141else
db9f46a9 21142 gcc_cv_math_func_lround=no
94f548c2 21143fi
5213506e
RW
21144rm -f core conftest.err conftest.$ac_objext \
21145 conftest$ac_exeext conftest.$ac_ext
94f548c2 21146fi
db9f46a9
TG
21147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21148$as_echo "$gcc_cv_math_func_lround" >&6; }
21149 if test $gcc_cv_math_func_lround = yes; then
f1cdfa01 21150
f38a14ca
TG
21151cat >>confdefs.h <<_ACEOF
21152#define HAVE_LROUND 1
21153_ACEOF
db9f46a9
TG
21154
21155 fi
21156
94f548c2 21157
94f548c2 21158
94f548c2 21159
db9f46a9
TG
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21161$as_echo_n "checking for lroundl... " >&6; }
21162if test "${gcc_cv_math_func_lroundl+set}" = set; then :
5213506e 21163 $as_echo_n "(cached) " >&6
94f548c2 21164else
db9f46a9 21165 if test x$gcc_no_link = xyes; then
5213506e 21166 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21167fi
5213506e 21168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21169/* end confdefs.h. */
21170
db9f46a9
TG
21171#ifdef HAVE_COMPLEX_H
21172#include <complex.h>
21173#endif
21174#ifdef HAVE_MATH_H
21175#include <math.h>
94f548c2 21176#endif
db9f46a9
TG
21177
21178int (*ptr)() = (int (*)())lroundl;
21179
94f548c2
FXC
21180int
21181main ()
21182{
94f548c2
FXC
21183 return 0;
21184}
db9f46a9 21185
94f548c2 21186_ACEOF
5213506e 21187if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21188 gcc_cv_math_func_lroundl=yes
94f548c2 21189else
db9f46a9 21190 gcc_cv_math_func_lroundl=no
94f548c2 21191fi
5213506e
RW
21192rm -f core conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
94f548c2 21194fi
db9f46a9
TG
21195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21196$as_echo "$gcc_cv_math_func_lroundl" >&6; }
21197 if test $gcc_cv_math_func_lroundl = yes; then
f1cdfa01 21198
f38a14ca
TG
21199cat >>confdefs.h <<_ACEOF
21200#define HAVE_LROUNDL 1
21201_ACEOF
94f548c2 21202
db9f46a9 21203 fi
94f548c2 21204
94f548c2 21205
db9f46a9
TG
21206
21207
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21209$as_echo_n "checking for llroundf... " >&6; }
21210if test "${gcc_cv_math_func_llroundf+set}" = set; then :
5213506e 21211 $as_echo_n "(cached) " >&6
94f548c2 21212else
db9f46a9 21213 if test x$gcc_no_link = xyes; then
5213506e 21214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21215fi
5213506e 21216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21217/* end confdefs.h. */
21218
db9f46a9
TG
21219#ifdef HAVE_COMPLEX_H
21220#include <complex.h>
94f548c2 21221#endif
db9f46a9
TG
21222#ifdef HAVE_MATH_H
21223#include <math.h>
21224#endif
21225
21226int (*ptr)() = (int (*)())llroundf;
21227
94f548c2
FXC
21228int
21229main ()
21230{
94f548c2
FXC
21231 return 0;
21232}
db9f46a9 21233
94f548c2 21234_ACEOF
5213506e 21235if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21236 gcc_cv_math_func_llroundf=yes
94f548c2 21237else
db9f46a9 21238 gcc_cv_math_func_llroundf=no
94f548c2 21239fi
5213506e
RW
21240rm -f core conftest.err conftest.$ac_objext \
21241 conftest$ac_exeext conftest.$ac_ext
94f548c2 21242fi
db9f46a9
TG
21243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21244$as_echo "$gcc_cv_math_func_llroundf" >&6; }
21245 if test $gcc_cv_math_func_llroundf = yes; then
f1cdfa01 21246
f38a14ca
TG
21247cat >>confdefs.h <<_ACEOF
21248#define HAVE_LLROUNDF 1
21249_ACEOF
94f548c2 21250
db9f46a9 21251 fi
94f548c2 21252
94f548c2 21253
db9f46a9
TG
21254
21255
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21257$as_echo_n "checking for llround... " >&6; }
21258if test "${gcc_cv_math_func_llround+set}" = set; then :
5213506e 21259 $as_echo_n "(cached) " >&6
94f548c2 21260else
db9f46a9 21261 if test x$gcc_no_link = xyes; then
5213506e 21262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21263fi
5213506e 21264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21265/* end confdefs.h. */
21266
db9f46a9
TG
21267#ifdef HAVE_COMPLEX_H
21268#include <complex.h>
21269#endif
21270#ifdef HAVE_MATH_H
21271#include <math.h>
94f548c2 21272#endif
db9f46a9
TG
21273
21274int (*ptr)() = (int (*)())llround;
21275
94f548c2
FXC
21276int
21277main ()
21278{
94f548c2
FXC
21279 return 0;
21280}
db9f46a9 21281
94f548c2 21282_ACEOF
5213506e 21283if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21284 gcc_cv_math_func_llround=yes
94f548c2 21285else
db9f46a9 21286 gcc_cv_math_func_llround=no
94f548c2 21287fi
5213506e
RW
21288rm -f core conftest.err conftest.$ac_objext \
21289 conftest$ac_exeext conftest.$ac_ext
94f548c2 21290fi
db9f46a9
TG
21291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21292$as_echo "$gcc_cv_math_func_llround" >&6; }
21293 if test $gcc_cv_math_func_llround = yes; then
f1cdfa01 21294
f38a14ca
TG
21295cat >>confdefs.h <<_ACEOF
21296#define HAVE_LLROUND 1
21297_ACEOF
db9f46a9
TG
21298
21299 fi
21300
94f548c2 21301
94f548c2 21302
94f548c2 21303
db9f46a9
TG
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21305$as_echo_n "checking for llroundl... " >&6; }
21306if test "${gcc_cv_math_func_llroundl+set}" = set; then :
5213506e 21307 $as_echo_n "(cached) " >&6
1409cd0b 21308else
db9f46a9 21309 if test x$gcc_no_link = xyes; then
5213506e 21310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21311fi
5213506e 21312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21313/* end confdefs.h. */
21314
db9f46a9
TG
21315#ifdef HAVE_COMPLEX_H
21316#include <complex.h>
21317#endif
21318#ifdef HAVE_MATH_H
21319#include <math.h>
1409cd0b 21320#endif
db9f46a9
TG
21321
21322int (*ptr)() = (int (*)())llroundl;
21323
1409cd0b
FXC
21324int
21325main ()
21326{
1409cd0b
FXC
21327 return 0;
21328}
db9f46a9 21329
1409cd0b 21330_ACEOF
5213506e 21331if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21332 gcc_cv_math_func_llroundl=yes
1409cd0b 21333else
db9f46a9 21334 gcc_cv_math_func_llroundl=no
1409cd0b 21335fi
5213506e
RW
21336rm -f core conftest.err conftest.$ac_objext \
21337 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21338fi
db9f46a9
TG
21339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21340$as_echo "$gcc_cv_math_func_llroundl" >&6; }
21341 if test $gcc_cv_math_func_llroundl = yes; then
f1cdfa01 21342
f38a14ca
TG
21343cat >>confdefs.h <<_ACEOF
21344#define HAVE_LLROUNDL 1
21345_ACEOF
1409cd0b 21346
db9f46a9 21347 fi
1409cd0b 21348
1409cd0b 21349
db9f46a9
TG
21350
21351
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21353$as_echo_n "checking for scalbnf... " >&6; }
21354if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
5213506e 21355 $as_echo_n "(cached) " >&6
1409cd0b 21356else
db9f46a9 21357 if test x$gcc_no_link = xyes; then
5213506e 21358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21359fi
5213506e 21360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21361/* end confdefs.h. */
21362
db9f46a9
TG
21363#ifdef HAVE_COMPLEX_H
21364#include <complex.h>
1409cd0b 21365#endif
db9f46a9
TG
21366#ifdef HAVE_MATH_H
21367#include <math.h>
21368#endif
21369
21370int (*ptr)() = (int (*)())scalbnf;
21371
1409cd0b
FXC
21372int
21373main ()
21374{
1409cd0b
FXC
21375 return 0;
21376}
db9f46a9 21377
1409cd0b 21378_ACEOF
5213506e 21379if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21380 gcc_cv_math_func_scalbnf=yes
1409cd0b 21381else
db9f46a9 21382 gcc_cv_math_func_scalbnf=no
1409cd0b 21383fi
5213506e
RW
21384rm -f core conftest.err conftest.$ac_objext \
21385 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21386fi
db9f46a9
TG
21387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21388$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21389 if test $gcc_cv_math_func_scalbnf = yes; then
f1cdfa01 21390
f38a14ca
TG
21391cat >>confdefs.h <<_ACEOF
21392#define HAVE_SCALBNF 1
21393_ACEOF
1409cd0b 21394
db9f46a9 21395 fi
1409cd0b 21396
1409cd0b 21397
db9f46a9
TG
21398
21399
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21401$as_echo_n "checking for scalbn... " >&6; }
21402if test "${gcc_cv_math_func_scalbn+set}" = set; then :
5213506e 21403 $as_echo_n "(cached) " >&6
1409cd0b 21404else
db9f46a9 21405 if test x$gcc_no_link = xyes; then
5213506e 21406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21407fi
5213506e 21408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21409/* end confdefs.h. */
21410
db9f46a9
TG
21411#ifdef HAVE_COMPLEX_H
21412#include <complex.h>
21413#endif
21414#ifdef HAVE_MATH_H
21415#include <math.h>
1409cd0b 21416#endif
db9f46a9
TG
21417
21418int (*ptr)() = (int (*)())scalbn;
21419
1409cd0b
FXC
21420int
21421main ()
21422{
1409cd0b
FXC
21423 return 0;
21424}
db9f46a9 21425
1409cd0b 21426_ACEOF
5213506e 21427if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21428 gcc_cv_math_func_scalbn=yes
1409cd0b 21429else
db9f46a9 21430 gcc_cv_math_func_scalbn=no
1409cd0b 21431fi
5213506e
RW
21432rm -f core conftest.err conftest.$ac_objext \
21433 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21434fi
db9f46a9
TG
21435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21436$as_echo "$gcc_cv_math_func_scalbn" >&6; }
21437 if test $gcc_cv_math_func_scalbn = yes; then
f1cdfa01 21438
f38a14ca
TG
21439cat >>confdefs.h <<_ACEOF
21440#define HAVE_SCALBN 1
21441_ACEOF
db9f46a9
TG
21442
21443 fi
21444
1409cd0b 21445
1409cd0b 21446
1409cd0b 21447
db9f46a9
TG
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21449$as_echo_n "checking for scalbnl... " >&6; }
21450if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
5213506e 21451 $as_echo_n "(cached) " >&6
1409cd0b 21452else
db9f46a9 21453 if test x$gcc_no_link = xyes; then
5213506e 21454 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21455fi
5213506e 21456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21457/* end confdefs.h. */
21458
db9f46a9
TG
21459#ifdef HAVE_COMPLEX_H
21460#include <complex.h>
21461#endif
21462#ifdef HAVE_MATH_H
21463#include <math.h>
1409cd0b 21464#endif
db9f46a9
TG
21465
21466int (*ptr)() = (int (*)())scalbnl;
21467
1409cd0b
FXC
21468int
21469main ()
21470{
1409cd0b
FXC
21471 return 0;
21472}
db9f46a9 21473
1409cd0b 21474_ACEOF
5213506e 21475if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21476 gcc_cv_math_func_scalbnl=yes
1409cd0b 21477else
db9f46a9 21478 gcc_cv_math_func_scalbnl=no
1409cd0b 21479fi
5213506e
RW
21480rm -f core conftest.err conftest.$ac_objext \
21481 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21482fi
db9f46a9
TG
21483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21484$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21485 if test $gcc_cv_math_func_scalbnl = yes; then
f1cdfa01 21486
f38a14ca
TG
21487cat >>confdefs.h <<_ACEOF
21488#define HAVE_SCALBNL 1
21489_ACEOF
1409cd0b 21490
db9f46a9 21491 fi
1409cd0b 21492
1409cd0b 21493
db9f46a9
TG
21494
21495
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21497$as_echo_n "checking for sinf... " >&6; }
21498if test "${gcc_cv_math_func_sinf+set}" = set; then :
5213506e 21499 $as_echo_n "(cached) " >&6
1409cd0b 21500else
db9f46a9 21501 if test x$gcc_no_link = xyes; then
5213506e 21502 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21503fi
5213506e 21504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21505/* end confdefs.h. */
21506
db9f46a9
TG
21507#ifdef HAVE_COMPLEX_H
21508#include <complex.h>
1409cd0b 21509#endif
db9f46a9
TG
21510#ifdef HAVE_MATH_H
21511#include <math.h>
21512#endif
21513
21514int (*ptr)() = (int (*)())sinf;
21515
1409cd0b
FXC
21516int
21517main ()
21518{
1409cd0b
FXC
21519 return 0;
21520}
db9f46a9 21521
1409cd0b 21522_ACEOF
5213506e 21523if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21524 gcc_cv_math_func_sinf=yes
1409cd0b 21525else
db9f46a9 21526 gcc_cv_math_func_sinf=no
1409cd0b 21527fi
5213506e
RW
21528rm -f core conftest.err conftest.$ac_objext \
21529 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21530fi
db9f46a9
TG
21531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21532$as_echo "$gcc_cv_math_func_sinf" >&6; }
21533 if test $gcc_cv_math_func_sinf = yes; then
f1cdfa01 21534
f38a14ca
TG
21535cat >>confdefs.h <<_ACEOF
21536#define HAVE_SINF 1
21537_ACEOF
1409cd0b 21538
db9f46a9 21539 fi
1409cd0b 21540
1409cd0b 21541
db9f46a9
TG
21542
21543
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21545$as_echo_n "checking for sin... " >&6; }
21546if test "${gcc_cv_math_func_sin+set}" = set; then :
5213506e 21547 $as_echo_n "(cached) " >&6
1409cd0b 21548else
db9f46a9 21549 if test x$gcc_no_link = xyes; then
5213506e 21550 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21551fi
5213506e 21552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21553/* end confdefs.h. */
21554
db9f46a9
TG
21555#ifdef HAVE_COMPLEX_H
21556#include <complex.h>
1409cd0b 21557#endif
db9f46a9
TG
21558#ifdef HAVE_MATH_H
21559#include <math.h>
21560#endif
21561
21562int (*ptr)() = (int (*)())sin;
21563
1409cd0b
FXC
21564int
21565main ()
21566{
1409cd0b
FXC
21567 return 0;
21568}
db9f46a9 21569
1409cd0b 21570_ACEOF
5213506e 21571if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21572 gcc_cv_math_func_sin=yes
1409cd0b 21573else
db9f46a9 21574 gcc_cv_math_func_sin=no
1409cd0b 21575fi
5213506e
RW
21576rm -f core conftest.err conftest.$ac_objext \
21577 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21578fi
db9f46a9
TG
21579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21580$as_echo "$gcc_cv_math_func_sin" >&6; }
21581 if test $gcc_cv_math_func_sin = yes; then
f1cdfa01 21582
f38a14ca
TG
21583cat >>confdefs.h <<_ACEOF
21584#define HAVE_SIN 1
21585_ACEOF
db9f46a9
TG
21586
21587 fi
21588
1409cd0b 21589
1409cd0b 21590
1409cd0b 21591
db9f46a9
TG
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21593$as_echo_n "checking for sinl... " >&6; }
21594if test "${gcc_cv_math_func_sinl+set}" = set; then :
5213506e 21595 $as_echo_n "(cached) " >&6
1409cd0b 21596else
db9f46a9 21597 if test x$gcc_no_link = xyes; then
5213506e 21598 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21599fi
5213506e 21600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21601/* end confdefs.h. */
21602
db9f46a9
TG
21603#ifdef HAVE_COMPLEX_H
21604#include <complex.h>
1409cd0b 21605#endif
db9f46a9
TG
21606#ifdef HAVE_MATH_H
21607#include <math.h>
21608#endif
21609
21610int (*ptr)() = (int (*)())sinl;
21611
1409cd0b
FXC
21612int
21613main ()
21614{
5213506e
RW
21615 return 0;
21616}
db9f46a9 21617
5213506e
RW
21618_ACEOF
21619if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21620 gcc_cv_math_func_sinl=yes
1409cd0b 21621else
db9f46a9 21622 gcc_cv_math_func_sinl=no
1409cd0b 21623fi
5213506e
RW
21624rm -f core conftest.err conftest.$ac_objext \
21625 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21626fi
db9f46a9
TG
21627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21628$as_echo "$gcc_cv_math_func_sinl" >&6; }
21629 if test $gcc_cv_math_func_sinl = yes; then
f1cdfa01 21630
f38a14ca
TG
21631cat >>confdefs.h <<_ACEOF
21632#define HAVE_SINL 1
21633_ACEOF
db9f46a9
TG
21634
21635 fi
1409cd0b 21636
1409cd0b 21637
1409cd0b 21638
db9f46a9
TG
21639
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21641$as_echo_n "checking for csinf... " >&6; }
21642if test "${gcc_cv_math_func_csinf+set}" = set; then :
5213506e 21643 $as_echo_n "(cached) " >&6
1409cd0b 21644else
db9f46a9 21645 if test x$gcc_no_link = xyes; then
5213506e 21646 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21647fi
5213506e 21648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21649/* end confdefs.h. */
21650
db9f46a9
TG
21651#ifdef HAVE_COMPLEX_H
21652#include <complex.h>
21653#endif
21654#ifdef HAVE_MATH_H
21655#include <math.h>
1409cd0b 21656#endif
db9f46a9
TG
21657
21658int (*ptr)() = (int (*)())csinf;
21659
1409cd0b
FXC
21660int
21661main ()
21662{
1409cd0b
FXC
21663 return 0;
21664}
db9f46a9 21665
1409cd0b 21666_ACEOF
5213506e 21667if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21668 gcc_cv_math_func_csinf=yes
1409cd0b 21669else
db9f46a9 21670 gcc_cv_math_func_csinf=no
1409cd0b 21671fi
5213506e
RW
21672rm -f core conftest.err conftest.$ac_objext \
21673 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21674fi
db9f46a9
TG
21675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21676$as_echo "$gcc_cv_math_func_csinf" >&6; }
21677 if test $gcc_cv_math_func_csinf = yes; then
f1cdfa01 21678
f38a14ca
TG
21679cat >>confdefs.h <<_ACEOF
21680#define HAVE_CSINF 1
21681_ACEOF
1409cd0b 21682
db9f46a9 21683 fi
1409cd0b 21684
1409cd0b 21685
db9f46a9
TG
21686
21687
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21689$as_echo_n "checking for csin... " >&6; }
21690if test "${gcc_cv_math_func_csin+set}" = set; then :
5213506e 21691 $as_echo_n "(cached) " >&6
1409cd0b 21692else
db9f46a9 21693 if test x$gcc_no_link = xyes; then
5213506e 21694 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21695fi
5213506e 21696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21697/* end confdefs.h. */
21698
db9f46a9
TG
21699#ifdef HAVE_COMPLEX_H
21700#include <complex.h>
1409cd0b 21701#endif
db9f46a9
TG
21702#ifdef HAVE_MATH_H
21703#include <math.h>
21704#endif
21705
21706int (*ptr)() = (int (*)())csin;
21707
1409cd0b
FXC
21708int
21709main ()
21710{
1409cd0b
FXC
21711 return 0;
21712}
db9f46a9 21713
1409cd0b 21714_ACEOF
5213506e 21715if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21716 gcc_cv_math_func_csin=yes
1409cd0b 21717else
db9f46a9 21718 gcc_cv_math_func_csin=no
1409cd0b 21719fi
5213506e
RW
21720rm -f core conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21722fi
db9f46a9
TG
21723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21724$as_echo "$gcc_cv_math_func_csin" >&6; }
21725 if test $gcc_cv_math_func_csin = yes; then
f1cdfa01 21726
f38a14ca
TG
21727cat >>confdefs.h <<_ACEOF
21728#define HAVE_CSIN 1
21729_ACEOF
db9f46a9
TG
21730
21731 fi
21732
1409cd0b 21733
1409cd0b 21734
1409cd0b 21735
db9f46a9
TG
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21737$as_echo_n "checking for csinl... " >&6; }
21738if test "${gcc_cv_math_func_csinl+set}" = set; then :
5213506e 21739 $as_echo_n "(cached) " >&6
1409cd0b 21740else
db9f46a9 21741 if test x$gcc_no_link = xyes; then
5213506e 21742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21743fi
5213506e 21744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21745/* end confdefs.h. */
21746
db9f46a9
TG
21747#ifdef HAVE_COMPLEX_H
21748#include <complex.h>
1409cd0b 21749#endif
db9f46a9
TG
21750#ifdef HAVE_MATH_H
21751#include <math.h>
21752#endif
21753
21754int (*ptr)() = (int (*)())csinl;
21755
1409cd0b
FXC
21756int
21757main ()
21758{
1409cd0b
FXC
21759 return 0;
21760}
db9f46a9 21761
1409cd0b 21762_ACEOF
5213506e 21763if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21764 gcc_cv_math_func_csinl=yes
1409cd0b 21765else
db9f46a9 21766 gcc_cv_math_func_csinl=no
1409cd0b 21767fi
5213506e
RW
21768rm -f core conftest.err conftest.$ac_objext \
21769 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21770fi
db9f46a9
TG
21771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21772$as_echo "$gcc_cv_math_func_csinl" >&6; }
21773 if test $gcc_cv_math_func_csinl = yes; then
f1cdfa01 21774
f38a14ca
TG
21775cat >>confdefs.h <<_ACEOF
21776#define HAVE_CSINL 1
21777_ACEOF
db9f46a9
TG
21778
21779 fi
1409cd0b 21780
1409cd0b 21781
1409cd0b 21782
db9f46a9
TG
21783
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21785$as_echo_n "checking for sinhf... " >&6; }
21786if test "${gcc_cv_math_func_sinhf+set}" = set; then :
5213506e 21787 $as_echo_n "(cached) " >&6
1409cd0b 21788else
db9f46a9 21789 if test x$gcc_no_link = xyes; then
5213506e 21790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21791fi
5213506e 21792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21793/* end confdefs.h. */
21794
db9f46a9
TG
21795#ifdef HAVE_COMPLEX_H
21796#include <complex.h>
21797#endif
21798#ifdef HAVE_MATH_H
21799#include <math.h>
1409cd0b 21800#endif
db9f46a9
TG
21801
21802int (*ptr)() = (int (*)())sinhf;
21803
1409cd0b
FXC
21804int
21805main ()
21806{
1409cd0b
FXC
21807 return 0;
21808}
db9f46a9 21809
1409cd0b 21810_ACEOF
5213506e 21811if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21812 gcc_cv_math_func_sinhf=yes
1409cd0b 21813else
db9f46a9 21814 gcc_cv_math_func_sinhf=no
1409cd0b 21815fi
5213506e
RW
21816rm -f core conftest.err conftest.$ac_objext \
21817 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21818fi
db9f46a9
TG
21819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21820$as_echo "$gcc_cv_math_func_sinhf" >&6; }
21821 if test $gcc_cv_math_func_sinhf = yes; then
f1cdfa01 21822
f38a14ca
TG
21823cat >>confdefs.h <<_ACEOF
21824#define HAVE_SINHF 1
21825_ACEOF
1409cd0b 21826
db9f46a9 21827 fi
1409cd0b 21828
1409cd0b 21829
db9f46a9
TG
21830
21831
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21833$as_echo_n "checking for sinh... " >&6; }
21834if test "${gcc_cv_math_func_sinh+set}" = set; then :
5213506e 21835 $as_echo_n "(cached) " >&6
1409cd0b 21836else
db9f46a9 21837 if test x$gcc_no_link = xyes; then
5213506e 21838 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21839fi
5213506e 21840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21841/* end confdefs.h. */
21842
db9f46a9
TG
21843#ifdef HAVE_COMPLEX_H
21844#include <complex.h>
1409cd0b 21845#endif
db9f46a9
TG
21846#ifdef HAVE_MATH_H
21847#include <math.h>
21848#endif
21849
21850int (*ptr)() = (int (*)())sinh;
21851
1409cd0b
FXC
21852int
21853main ()
21854{
1409cd0b
FXC
21855 return 0;
21856}
db9f46a9 21857
1409cd0b 21858_ACEOF
5213506e 21859if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21860 gcc_cv_math_func_sinh=yes
1409cd0b 21861else
db9f46a9 21862 gcc_cv_math_func_sinh=no
1409cd0b 21863fi
5213506e
RW
21864rm -f core conftest.err conftest.$ac_objext \
21865 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21866fi
db9f46a9
TG
21867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21868$as_echo "$gcc_cv_math_func_sinh" >&6; }
21869 if test $gcc_cv_math_func_sinh = yes; then
f1cdfa01 21870
f38a14ca
TG
21871cat >>confdefs.h <<_ACEOF
21872#define HAVE_SINH 1
21873_ACEOF
db9f46a9
TG
21874
21875 fi
21876
1409cd0b 21877
1409cd0b 21878
1409cd0b 21879
db9f46a9
TG
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
21881$as_echo_n "checking for sinhl... " >&6; }
21882if test "${gcc_cv_math_func_sinhl+set}" = set; then :
5213506e 21883 $as_echo_n "(cached) " >&6
1409cd0b 21884else
db9f46a9 21885 if test x$gcc_no_link = xyes; then
5213506e 21886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21887fi
5213506e 21888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21889/* end confdefs.h. */
21890
db9f46a9
TG
21891#ifdef HAVE_COMPLEX_H
21892#include <complex.h>
1409cd0b 21893#endif
db9f46a9
TG
21894#ifdef HAVE_MATH_H
21895#include <math.h>
21896#endif
21897
21898int (*ptr)() = (int (*)())sinhl;
21899
1409cd0b
FXC
21900int
21901main ()
21902{
1409cd0b
FXC
21903 return 0;
21904}
db9f46a9 21905
1409cd0b 21906_ACEOF
5213506e 21907if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21908 gcc_cv_math_func_sinhl=yes
1409cd0b 21909else
db9f46a9 21910 gcc_cv_math_func_sinhl=no
1409cd0b 21911fi
5213506e
RW
21912rm -f core conftest.err conftest.$ac_objext \
21913 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21914fi
db9f46a9
TG
21915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
21916$as_echo "$gcc_cv_math_func_sinhl" >&6; }
21917 if test $gcc_cv_math_func_sinhl = yes; then
f1cdfa01 21918
f38a14ca
TG
21919cat >>confdefs.h <<_ACEOF
21920#define HAVE_SINHL 1
21921_ACEOF
db9f46a9
TG
21922
21923 fi
1409cd0b 21924
1409cd0b 21925
1409cd0b 21926
db9f46a9
TG
21927
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
21929$as_echo_n "checking for csinhf... " >&6; }
21930if test "${gcc_cv_math_func_csinhf+set}" = set; then :
5213506e 21931 $as_echo_n "(cached) " >&6
1409cd0b 21932else
db9f46a9 21933 if test x$gcc_no_link = xyes; then
5213506e 21934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21935fi
5213506e 21936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21937/* end confdefs.h. */
21938
db9f46a9
TG
21939#ifdef HAVE_COMPLEX_H
21940#include <complex.h>
21941#endif
21942#ifdef HAVE_MATH_H
21943#include <math.h>
1409cd0b 21944#endif
db9f46a9
TG
21945
21946int (*ptr)() = (int (*)())csinhf;
21947
1409cd0b
FXC
21948int
21949main ()
21950{
1409cd0b
FXC
21951 return 0;
21952}
db9f46a9 21953
1409cd0b 21954_ACEOF
5213506e 21955if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 21956 gcc_cv_math_func_csinhf=yes
1409cd0b 21957else
db9f46a9 21958 gcc_cv_math_func_csinhf=no
1409cd0b 21959fi
5213506e
RW
21960rm -f core conftest.err conftest.$ac_objext \
21961 conftest$ac_exeext conftest.$ac_ext
1409cd0b 21962fi
db9f46a9
TG
21963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
21964$as_echo "$gcc_cv_math_func_csinhf" >&6; }
21965 if test $gcc_cv_math_func_csinhf = yes; then
f1cdfa01 21966
f38a14ca
TG
21967cat >>confdefs.h <<_ACEOF
21968#define HAVE_CSINHF 1
21969_ACEOF
1409cd0b 21970
db9f46a9 21971 fi
1409cd0b 21972
1409cd0b 21973
db9f46a9
TG
21974
21975
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
21977$as_echo_n "checking for csinh... " >&6; }
21978if test "${gcc_cv_math_func_csinh+set}" = set; then :
5213506e 21979 $as_echo_n "(cached) " >&6
1409cd0b 21980else
db9f46a9 21981 if test x$gcc_no_link = xyes; then
5213506e 21982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21983fi
5213506e 21984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21985/* end confdefs.h. */
21986
db9f46a9
TG
21987#ifdef HAVE_COMPLEX_H
21988#include <complex.h>
1409cd0b 21989#endif
db9f46a9
TG
21990#ifdef HAVE_MATH_H
21991#include <math.h>
21992#endif
21993
21994int (*ptr)() = (int (*)())csinh;
21995
1409cd0b
FXC
21996int
21997main ()
21998{
1409cd0b
FXC
21999 return 0;
22000}
db9f46a9 22001
1409cd0b 22002_ACEOF
5213506e 22003if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22004 gcc_cv_math_func_csinh=yes
1409cd0b 22005else
db9f46a9 22006 gcc_cv_math_func_csinh=no
1409cd0b 22007fi
5213506e
RW
22008rm -f core conftest.err conftest.$ac_objext \
22009 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22010fi
db9f46a9
TG
22011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22012$as_echo "$gcc_cv_math_func_csinh" >&6; }
22013 if test $gcc_cv_math_func_csinh = yes; then
f1cdfa01 22014
f38a14ca
TG
22015cat >>confdefs.h <<_ACEOF
22016#define HAVE_CSINH 1
22017_ACEOF
db9f46a9
TG
22018
22019 fi
22020
1409cd0b 22021
1409cd0b 22022
1409cd0b 22023
db9f46a9
TG
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22025$as_echo_n "checking for csinhl... " >&6; }
22026if test "${gcc_cv_math_func_csinhl+set}" = set; then :
5213506e 22027 $as_echo_n "(cached) " >&6
1409cd0b 22028else
db9f46a9 22029 if test x$gcc_no_link = xyes; then
5213506e 22030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22031fi
5213506e 22032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22033/* end confdefs.h. */
22034
db9f46a9
TG
22035#ifdef HAVE_COMPLEX_H
22036#include <complex.h>
1409cd0b 22037#endif
db9f46a9
TG
22038#ifdef HAVE_MATH_H
22039#include <math.h>
22040#endif
22041
22042int (*ptr)() = (int (*)())csinhl;
22043
1409cd0b
FXC
22044int
22045main ()
22046{
1409cd0b
FXC
22047 return 0;
22048}
db9f46a9 22049
1409cd0b 22050_ACEOF
5213506e 22051if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22052 gcc_cv_math_func_csinhl=yes
1409cd0b 22053else
db9f46a9 22054 gcc_cv_math_func_csinhl=no
1409cd0b 22055fi
5213506e
RW
22056rm -f core conftest.err conftest.$ac_objext \
22057 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22058fi
db9f46a9
TG
22059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22060$as_echo "$gcc_cv_math_func_csinhl" >&6; }
22061 if test $gcc_cv_math_func_csinhl = yes; then
f1cdfa01 22062
f38a14ca
TG
22063cat >>confdefs.h <<_ACEOF
22064#define HAVE_CSINHL 1
22065_ACEOF
db9f46a9
TG
22066
22067 fi
1409cd0b 22068
1409cd0b 22069
1409cd0b 22070
db9f46a9
TG
22071
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22073$as_echo_n "checking for sqrtf... " >&6; }
22074if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
5213506e 22075 $as_echo_n "(cached) " >&6
1409cd0b 22076else
db9f46a9 22077 if test x$gcc_no_link = xyes; then
5213506e 22078 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22079fi
5213506e 22080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22081/* end confdefs.h. */
22082
db9f46a9
TG
22083#ifdef HAVE_COMPLEX_H
22084#include <complex.h>
22085#endif
22086#ifdef HAVE_MATH_H
22087#include <math.h>
1409cd0b 22088#endif
db9f46a9
TG
22089
22090int (*ptr)() = (int (*)())sqrtf;
22091
1409cd0b
FXC
22092int
22093main ()
22094{
1409cd0b
FXC
22095 return 0;
22096}
db9f46a9 22097
1409cd0b 22098_ACEOF
5213506e 22099if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22100 gcc_cv_math_func_sqrtf=yes
1409cd0b 22101else
db9f46a9 22102 gcc_cv_math_func_sqrtf=no
1409cd0b 22103fi
5213506e
RW
22104rm -f core conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22106fi
db9f46a9
TG
22107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22108$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22109 if test $gcc_cv_math_func_sqrtf = yes; then
f1cdfa01 22110
f38a14ca
TG
22111cat >>confdefs.h <<_ACEOF
22112#define HAVE_SQRTF 1
22113_ACEOF
db9f46a9
TG
22114
22115 fi
1409cd0b 22116
1409cd0b 22117
db9f46a9
TG
22118
22119
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22121$as_echo_n "checking for sqrt... " >&6; }
22122if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22123 $as_echo_n "(cached) " >&6
22124else
22125 if test x$gcc_no_link = xyes; then
22126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22127fi
db9f46a9
TG
22128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22129/* end confdefs.h. */
22130
22131#ifdef HAVE_COMPLEX_H
22132#include <complex.h>
22133#endif
22134#ifdef HAVE_MATH_H
22135#include <math.h>
22136#endif
22137
22138int (*ptr)() = (int (*)())sqrt;
22139
22140int
22141main ()
22142{
22143 return 0;
22144}
22145
22146_ACEOF
22147if ac_fn_c_try_link "$LINENO"; then :
22148 gcc_cv_math_func_sqrt=yes
22149else
22150 gcc_cv_math_func_sqrt=no
22151fi
22152rm -f core conftest.err conftest.$ac_objext \
22153 conftest$ac_exeext conftest.$ac_ext
22154fi
22155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22156$as_echo "$gcc_cv_math_func_sqrt" >&6; }
22157 if test $gcc_cv_math_func_sqrt = yes; then
f1cdfa01 22158
f38a14ca
TG
22159cat >>confdefs.h <<_ACEOF
22160#define HAVE_SQRT 1
22161_ACEOF
db9f46a9
TG
22162
22163 fi
1409cd0b 22164
db9f46a9
TG
22165
22166
22167
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22169$as_echo_n "checking for sqrtl... " >&6; }
22170if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
5213506e 22171 $as_echo_n "(cached) " >&6
1409cd0b 22172else
db9f46a9 22173 if test x$gcc_no_link = xyes; then
5213506e 22174 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22175fi
5213506e 22176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22177/* end confdefs.h. */
22178
db9f46a9
TG
22179#ifdef HAVE_COMPLEX_H
22180#include <complex.h>
22181#endif
22182#ifdef HAVE_MATH_H
22183#include <math.h>
1409cd0b 22184#endif
db9f46a9
TG
22185
22186int (*ptr)() = (int (*)())sqrtl;
22187
1409cd0b
FXC
22188int
22189main ()
22190{
1409cd0b
FXC
22191 return 0;
22192}
db9f46a9 22193
1409cd0b 22194_ACEOF
5213506e 22195if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22196 gcc_cv_math_func_sqrtl=yes
1409cd0b 22197else
db9f46a9 22198 gcc_cv_math_func_sqrtl=no
1409cd0b 22199fi
5213506e
RW
22200rm -f core conftest.err conftest.$ac_objext \
22201 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22202fi
db9f46a9
TG
22203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22204$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22205 if test $gcc_cv_math_func_sqrtl = yes; then
f1cdfa01 22206
f38a14ca
TG
22207cat >>confdefs.h <<_ACEOF
22208#define HAVE_SQRTL 1
22209_ACEOF
db9f46a9
TG
22210
22211 fi
1409cd0b 22212
1409cd0b 22213
1409cd0b 22214
db9f46a9
TG
22215
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22217$as_echo_n "checking for csqrtf... " >&6; }
22218if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
5213506e 22219 $as_echo_n "(cached) " >&6
1409cd0b 22220else
db9f46a9 22221 if test x$gcc_no_link = xyes; then
5213506e 22222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22223fi
5213506e 22224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22225/* end confdefs.h. */
22226
db9f46a9
TG
22227#ifdef HAVE_COMPLEX_H
22228#include <complex.h>
1409cd0b 22229#endif
db9f46a9
TG
22230#ifdef HAVE_MATH_H
22231#include <math.h>
22232#endif
22233
22234int (*ptr)() = (int (*)())csqrtf;
22235
1409cd0b
FXC
22236int
22237main ()
22238{
1409cd0b
FXC
22239 return 0;
22240}
db9f46a9 22241
1409cd0b 22242_ACEOF
5213506e 22243if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22244 gcc_cv_math_func_csqrtf=yes
1409cd0b 22245else
db9f46a9 22246 gcc_cv_math_func_csqrtf=no
1409cd0b 22247fi
5213506e
RW
22248rm -f core conftest.err conftest.$ac_objext \
22249 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22250fi
db9f46a9
TG
22251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22252$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22253 if test $gcc_cv_math_func_csqrtf = yes; then
f1cdfa01 22254
f38a14ca
TG
22255cat >>confdefs.h <<_ACEOF
22256#define HAVE_CSQRTF 1
22257_ACEOF
1409cd0b 22258
db9f46a9 22259 fi
1409cd0b 22260
1409cd0b 22261
db9f46a9
TG
22262
22263
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22265$as_echo_n "checking for csqrt... " >&6; }
22266if test "${gcc_cv_math_func_csqrt+set}" = set; then :
5213506e 22267 $as_echo_n "(cached) " >&6
1409cd0b 22268else
db9f46a9 22269 if test x$gcc_no_link = xyes; then
5213506e 22270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22271fi
5213506e 22272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22273/* end confdefs.h. */
22274
db9f46a9
TG
22275#ifdef HAVE_COMPLEX_H
22276#include <complex.h>
22277#endif
22278#ifdef HAVE_MATH_H
22279#include <math.h>
1409cd0b 22280#endif
db9f46a9
TG
22281
22282int (*ptr)() = (int (*)())csqrt;
22283
1409cd0b
FXC
22284int
22285main ()
22286{
1409cd0b
FXC
22287 return 0;
22288}
db9f46a9 22289
1409cd0b 22290_ACEOF
5213506e 22291if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22292 gcc_cv_math_func_csqrt=yes
1409cd0b 22293else
db9f46a9 22294 gcc_cv_math_func_csqrt=no
1409cd0b 22295fi
5213506e
RW
22296rm -f core conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22298fi
db9f46a9
TG
22299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22300$as_echo "$gcc_cv_math_func_csqrt" >&6; }
22301 if test $gcc_cv_math_func_csqrt = yes; then
f1cdfa01 22302
f38a14ca
TG
22303cat >>confdefs.h <<_ACEOF
22304#define HAVE_CSQRT 1
22305_ACEOF
db9f46a9
TG
22306
22307 fi
1409cd0b 22308
1409cd0b 22309
1409cd0b 22310
db9f46a9
TG
22311
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22313$as_echo_n "checking for csqrtl... " >&6; }
22314if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
5213506e 22315 $as_echo_n "(cached) " >&6
1409cd0b 22316else
db9f46a9 22317 if test x$gcc_no_link = xyes; then
5213506e 22318 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22319fi
5213506e 22320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22321/* end confdefs.h. */
22322
db9f46a9
TG
22323#ifdef HAVE_COMPLEX_H
22324#include <complex.h>
1409cd0b 22325#endif
db9f46a9
TG
22326#ifdef HAVE_MATH_H
22327#include <math.h>
22328#endif
22329
22330int (*ptr)() = (int (*)())csqrtl;
22331
1409cd0b
FXC
22332int
22333main ()
22334{
1409cd0b
FXC
22335 return 0;
22336}
db9f46a9 22337
1409cd0b 22338_ACEOF
5213506e 22339if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22340 gcc_cv_math_func_csqrtl=yes
1409cd0b 22341else
db9f46a9 22342 gcc_cv_math_func_csqrtl=no
1409cd0b 22343fi
5213506e
RW
22344rm -f core conftest.err conftest.$ac_objext \
22345 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22346fi
db9f46a9
TG
22347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22348$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22349 if test $gcc_cv_math_func_csqrtl = yes; then
f1cdfa01 22350
f38a14ca
TG
22351cat >>confdefs.h <<_ACEOF
22352#define HAVE_CSQRTL 1
22353_ACEOF
db9f46a9
TG
22354
22355 fi
22356
1409cd0b 22357
1409cd0b 22358
1409cd0b 22359
db9f46a9
TG
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22361$as_echo_n "checking for tanf... " >&6; }
22362if test "${gcc_cv_math_func_tanf+set}" = set; then :
5213506e 22363 $as_echo_n "(cached) " >&6
1409cd0b 22364else
db9f46a9 22365 if test x$gcc_no_link = xyes; then
5213506e 22366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22367fi
5213506e 22368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22369/* end confdefs.h. */
22370
db9f46a9
TG
22371#ifdef HAVE_COMPLEX_H
22372#include <complex.h>
22373#endif
22374#ifdef HAVE_MATH_H
22375#include <math.h>
1409cd0b 22376#endif
db9f46a9
TG
22377
22378int (*ptr)() = (int (*)())tanf;
22379
1409cd0b
FXC
22380int
22381main ()
22382{
1409cd0b
FXC
22383 return 0;
22384}
db9f46a9 22385
1409cd0b 22386_ACEOF
5213506e 22387if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22388 gcc_cv_math_func_tanf=yes
1409cd0b 22389else
db9f46a9 22390 gcc_cv_math_func_tanf=no
1409cd0b 22391fi
5213506e
RW
22392rm -f core conftest.err conftest.$ac_objext \
22393 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22394fi
db9f46a9
TG
22395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22396$as_echo "$gcc_cv_math_func_tanf" >&6; }
22397 if test $gcc_cv_math_func_tanf = yes; then
f1cdfa01 22398
f38a14ca
TG
22399cat >>confdefs.h <<_ACEOF
22400#define HAVE_TANF 1
22401_ACEOF
db9f46a9
TG
22402
22403 fi
1409cd0b 22404
1409cd0b 22405
1409cd0b 22406
db9f46a9
TG
22407
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22409$as_echo_n "checking for tan... " >&6; }
22410if test "${gcc_cv_math_func_tan+set}" = set; then :
5213506e 22411 $as_echo_n "(cached) " >&6
1409cd0b 22412else
db9f46a9 22413 if test x$gcc_no_link = xyes; then
5213506e 22414 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22415fi
5213506e 22416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22417/* end confdefs.h. */
22418
db9f46a9
TG
22419#ifdef HAVE_COMPLEX_H
22420#include <complex.h>
1409cd0b 22421#endif
db9f46a9
TG
22422#ifdef HAVE_MATH_H
22423#include <math.h>
22424#endif
22425
22426int (*ptr)() = (int (*)())tan;
22427
1409cd0b
FXC
22428int
22429main ()
22430{
1409cd0b
FXC
22431 return 0;
22432}
db9f46a9 22433
1409cd0b 22434_ACEOF
5213506e 22435if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22436 gcc_cv_math_func_tan=yes
1409cd0b 22437else
db9f46a9 22438 gcc_cv_math_func_tan=no
1409cd0b 22439fi
5213506e
RW
22440rm -f core conftest.err conftest.$ac_objext \
22441 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22442fi
db9f46a9
TG
22443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22444$as_echo "$gcc_cv_math_func_tan" >&6; }
22445 if test $gcc_cv_math_func_tan = yes; then
f1cdfa01 22446
f38a14ca
TG
22447cat >>confdefs.h <<_ACEOF
22448#define HAVE_TAN 1
22449_ACEOF
1409cd0b 22450
db9f46a9 22451 fi
1409cd0b 22452
1409cd0b 22453
db9f46a9
TG
22454
22455
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22457$as_echo_n "checking for tanl... " >&6; }
22458if test "${gcc_cv_math_func_tanl+set}" = set; then :
5213506e 22459 $as_echo_n "(cached) " >&6
1409cd0b 22460else
db9f46a9 22461 if test x$gcc_no_link = xyes; then
5213506e 22462 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22463fi
5213506e 22464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22465/* end confdefs.h. */
22466
db9f46a9
TG
22467#ifdef HAVE_COMPLEX_H
22468#include <complex.h>
22469#endif
22470#ifdef HAVE_MATH_H
22471#include <math.h>
1409cd0b 22472#endif
db9f46a9
TG
22473
22474int (*ptr)() = (int (*)())tanl;
22475
1409cd0b
FXC
22476int
22477main ()
22478{
1409cd0b
FXC
22479 return 0;
22480}
db9f46a9 22481
1409cd0b 22482_ACEOF
5213506e 22483if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22484 gcc_cv_math_func_tanl=yes
1409cd0b 22485else
db9f46a9 22486 gcc_cv_math_func_tanl=no
1409cd0b 22487fi
5213506e
RW
22488rm -f core conftest.err conftest.$ac_objext \
22489 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22490fi
db9f46a9
TG
22491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22492$as_echo "$gcc_cv_math_func_tanl" >&6; }
22493 if test $gcc_cv_math_func_tanl = yes; then
f1cdfa01 22494
f38a14ca
TG
22495cat >>confdefs.h <<_ACEOF
22496#define HAVE_TANL 1
22497_ACEOF
db9f46a9
TG
22498
22499 fi
1409cd0b 22500
1409cd0b 22501
1409cd0b 22502
db9f46a9
TG
22503
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22505$as_echo_n "checking for ctanf... " >&6; }
22506if test "${gcc_cv_math_func_ctanf+set}" = set; then :
5213506e 22507 $as_echo_n "(cached) " >&6
1409cd0b 22508else
db9f46a9 22509 if test x$gcc_no_link = xyes; then
5213506e 22510 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22511fi
5213506e 22512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22513/* end confdefs.h. */
22514
db9f46a9
TG
22515#ifdef HAVE_COMPLEX_H
22516#include <complex.h>
1409cd0b 22517#endif
db9f46a9
TG
22518#ifdef HAVE_MATH_H
22519#include <math.h>
22520#endif
22521
22522int (*ptr)() = (int (*)())ctanf;
22523
1409cd0b
FXC
22524int
22525main ()
22526{
1409cd0b
FXC
22527 return 0;
22528}
db9f46a9 22529
1409cd0b 22530_ACEOF
5213506e 22531if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22532 gcc_cv_math_func_ctanf=yes
1409cd0b 22533else
db9f46a9 22534 gcc_cv_math_func_ctanf=no
1409cd0b 22535fi
5213506e
RW
22536rm -f core conftest.err conftest.$ac_objext \
22537 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22538fi
db9f46a9
TG
22539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22540$as_echo "$gcc_cv_math_func_ctanf" >&6; }
22541 if test $gcc_cv_math_func_ctanf = yes; then
f1cdfa01 22542
f38a14ca
TG
22543cat >>confdefs.h <<_ACEOF
22544#define HAVE_CTANF 1
22545_ACEOF
db9f46a9
TG
22546
22547 fi
22548
1409cd0b 22549
1409cd0b 22550
1409cd0b 22551
db9f46a9
TG
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22553$as_echo_n "checking for ctan... " >&6; }
22554if test "${gcc_cv_math_func_ctan+set}" = set; then :
5213506e 22555 $as_echo_n "(cached) " >&6
1409cd0b 22556else
db9f46a9 22557 if test x$gcc_no_link = xyes; then
5213506e 22558 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22559fi
5213506e 22560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22561/* end confdefs.h. */
22562
db9f46a9
TG
22563#ifdef HAVE_COMPLEX_H
22564#include <complex.h>
22565#endif
22566#ifdef HAVE_MATH_H
22567#include <math.h>
1409cd0b 22568#endif
db9f46a9
TG
22569
22570int (*ptr)() = (int (*)())ctan;
22571
1409cd0b
FXC
22572int
22573main ()
22574{
1409cd0b
FXC
22575 return 0;
22576}
db9f46a9 22577
1409cd0b 22578_ACEOF
5213506e 22579if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22580 gcc_cv_math_func_ctan=yes
1409cd0b 22581else
db9f46a9 22582 gcc_cv_math_func_ctan=no
1409cd0b 22583fi
5213506e
RW
22584rm -f core conftest.err conftest.$ac_objext \
22585 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22586fi
db9f46a9
TG
22587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22588$as_echo "$gcc_cv_math_func_ctan" >&6; }
22589 if test $gcc_cv_math_func_ctan = yes; then
f1cdfa01 22590
f38a14ca
TG
22591cat >>confdefs.h <<_ACEOF
22592#define HAVE_CTAN 1
22593_ACEOF
db9f46a9
TG
22594
22595 fi
1409cd0b 22596
1409cd0b 22597
1409cd0b 22598
db9f46a9
TG
22599
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22601$as_echo_n "checking for ctanl... " >&6; }
22602if test "${gcc_cv_math_func_ctanl+set}" = set; then :
5213506e 22603 $as_echo_n "(cached) " >&6
1409cd0b 22604else
db9f46a9 22605 if test x$gcc_no_link = xyes; then
5213506e 22606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22607fi
5213506e 22608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22609/* end confdefs.h. */
22610
db9f46a9
TG
22611#ifdef HAVE_COMPLEX_H
22612#include <complex.h>
1409cd0b 22613#endif
db9f46a9
TG
22614#ifdef HAVE_MATH_H
22615#include <math.h>
22616#endif
22617
22618int (*ptr)() = (int (*)())ctanl;
22619
1409cd0b
FXC
22620int
22621main ()
22622{
1409cd0b
FXC
22623 return 0;
22624}
db9f46a9 22625
1409cd0b 22626_ACEOF
5213506e 22627if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22628 gcc_cv_math_func_ctanl=yes
1409cd0b 22629else
db9f46a9 22630 gcc_cv_math_func_ctanl=no
1409cd0b 22631fi
5213506e
RW
22632rm -f core conftest.err conftest.$ac_objext \
22633 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22634fi
db9f46a9
TG
22635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22636$as_echo "$gcc_cv_math_func_ctanl" >&6; }
22637 if test $gcc_cv_math_func_ctanl = yes; then
f1cdfa01 22638
f38a14ca
TG
22639cat >>confdefs.h <<_ACEOF
22640#define HAVE_CTANL 1
22641_ACEOF
1409cd0b 22642
db9f46a9 22643 fi
1409cd0b 22644
1409cd0b 22645
db9f46a9
TG
22646
22647
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22649$as_echo_n "checking for tanhf... " >&6; }
22650if test "${gcc_cv_math_func_tanhf+set}" = set; then :
5213506e 22651 $as_echo_n "(cached) " >&6
1409cd0b 22652else
db9f46a9 22653 if test x$gcc_no_link = xyes; then
5213506e 22654 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22655fi
5213506e 22656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22657/* end confdefs.h. */
22658
db9f46a9
TG
22659#ifdef HAVE_COMPLEX_H
22660#include <complex.h>
22661#endif
22662#ifdef HAVE_MATH_H
22663#include <math.h>
1409cd0b 22664#endif
db9f46a9
TG
22665
22666int (*ptr)() = (int (*)())tanhf;
22667
1409cd0b
FXC
22668int
22669main ()
22670{
1409cd0b
FXC
22671 return 0;
22672}
db9f46a9 22673
1409cd0b 22674_ACEOF
5213506e 22675if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22676 gcc_cv_math_func_tanhf=yes
1409cd0b 22677else
db9f46a9 22678 gcc_cv_math_func_tanhf=no
1409cd0b 22679fi
5213506e
RW
22680rm -f core conftest.err conftest.$ac_objext \
22681 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22682fi
db9f46a9
TG
22683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22684$as_echo "$gcc_cv_math_func_tanhf" >&6; }
22685 if test $gcc_cv_math_func_tanhf = yes; then
f1cdfa01 22686
f38a14ca
TG
22687cat >>confdefs.h <<_ACEOF
22688#define HAVE_TANHF 1
22689_ACEOF
db9f46a9
TG
22690
22691 fi
1409cd0b 22692
1409cd0b 22693
1409cd0b 22694
db9f46a9
TG
22695
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22697$as_echo_n "checking for tanh... " >&6; }
22698if test "${gcc_cv_math_func_tanh+set}" = set; then :
5213506e 22699 $as_echo_n "(cached) " >&6
1409cd0b 22700else
db9f46a9 22701 if test x$gcc_no_link = xyes; then
5213506e 22702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22703fi
5213506e 22704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22705/* end confdefs.h. */
22706
db9f46a9
TG
22707#ifdef HAVE_COMPLEX_H
22708#include <complex.h>
1409cd0b 22709#endif
db9f46a9
TG
22710#ifdef HAVE_MATH_H
22711#include <math.h>
22712#endif
22713
22714int (*ptr)() = (int (*)())tanh;
22715
1409cd0b
FXC
22716int
22717main ()
22718{
1409cd0b
FXC
22719 return 0;
22720}
db9f46a9 22721
1409cd0b 22722_ACEOF
5213506e 22723if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22724 gcc_cv_math_func_tanh=yes
1409cd0b 22725else
db9f46a9 22726 gcc_cv_math_func_tanh=no
1409cd0b 22727fi
5213506e
RW
22728rm -f core conftest.err conftest.$ac_objext \
22729 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22730fi
db9f46a9
TG
22731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22732$as_echo "$gcc_cv_math_func_tanh" >&6; }
22733 if test $gcc_cv_math_func_tanh = yes; then
f1cdfa01 22734
f38a14ca
TG
22735cat >>confdefs.h <<_ACEOF
22736#define HAVE_TANH 1
22737_ACEOF
db9f46a9
TG
22738
22739 fi
22740
1409cd0b 22741
1409cd0b 22742
1409cd0b 22743
db9f46a9
TG
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22745$as_echo_n "checking for tanhl... " >&6; }
22746if test "${gcc_cv_math_func_tanhl+set}" = set; then :
5213506e 22747 $as_echo_n "(cached) " >&6
1409cd0b 22748else
db9f46a9 22749 if test x$gcc_no_link = xyes; then
5213506e 22750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22751fi
5213506e 22752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22753/* end confdefs.h. */
22754
db9f46a9
TG
22755#ifdef HAVE_COMPLEX_H
22756#include <complex.h>
22757#endif
22758#ifdef HAVE_MATH_H
22759#include <math.h>
1409cd0b 22760#endif
db9f46a9
TG
22761
22762int (*ptr)() = (int (*)())tanhl;
22763
1409cd0b
FXC
22764int
22765main ()
22766{
1409cd0b
FXC
22767 return 0;
22768}
db9f46a9 22769
1409cd0b 22770_ACEOF
5213506e 22771if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22772 gcc_cv_math_func_tanhl=yes
1409cd0b 22773else
db9f46a9 22774 gcc_cv_math_func_tanhl=no
1409cd0b 22775fi
5213506e
RW
22776rm -f core conftest.err conftest.$ac_objext \
22777 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22778fi
db9f46a9
TG
22779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22780$as_echo "$gcc_cv_math_func_tanhl" >&6; }
22781 if test $gcc_cv_math_func_tanhl = yes; then
f1cdfa01 22782
f38a14ca
TG
22783cat >>confdefs.h <<_ACEOF
22784#define HAVE_TANHL 1
22785_ACEOF
db9f46a9
TG
22786
22787 fi
1409cd0b 22788
1409cd0b 22789
1409cd0b 22790
db9f46a9
TG
22791
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22793$as_echo_n "checking for ctanhf... " >&6; }
22794if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
5213506e 22795 $as_echo_n "(cached) " >&6
1409cd0b 22796else
db9f46a9 22797 if test x$gcc_no_link = xyes; then
5213506e 22798 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db9f46a9
TG
22799fi
22800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801/* end confdefs.h. */
22802
22803#ifdef HAVE_COMPLEX_H
22804#include <complex.h>
1409cd0b 22805#endif
db9f46a9
TG
22806#ifdef HAVE_MATH_H
22807#include <math.h>
22808#endif
22809
22810int (*ptr)() = (int (*)())ctanhf;
22811
1409cd0b
FXC
22812int
22813main ()
22814{
1409cd0b
FXC
22815 return 0;
22816}
db9f46a9 22817
1409cd0b 22818_ACEOF
5213506e 22819if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22820 gcc_cv_math_func_ctanhf=yes
1409cd0b 22821else
db9f46a9 22822 gcc_cv_math_func_ctanhf=no
1409cd0b 22823fi
5213506e
RW
22824rm -f core conftest.err conftest.$ac_objext \
22825 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22826fi
db9f46a9
TG
22827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22828$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22829 if test $gcc_cv_math_func_ctanhf = yes; then
f1cdfa01 22830
f38a14ca
TG
22831cat >>confdefs.h <<_ACEOF
22832#define HAVE_CTANHF 1
22833_ACEOF
1409cd0b 22834
db9f46a9 22835 fi
1409cd0b 22836
1409cd0b 22837
db9f46a9
TG
22838
22839
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22841$as_echo_n "checking for ctanh... " >&6; }
22842if test "${gcc_cv_math_func_ctanh+set}" = set; then :
5213506e 22843 $as_echo_n "(cached) " >&6
1409cd0b 22844else
db9f46a9 22845 if test x$gcc_no_link = xyes; then
5213506e 22846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22847fi
5213506e 22848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22849/* end confdefs.h. */
22850
db9f46a9
TG
22851#ifdef HAVE_COMPLEX_H
22852#include <complex.h>
22853#endif
22854#ifdef HAVE_MATH_H
22855#include <math.h>
1409cd0b 22856#endif
db9f46a9
TG
22857
22858int (*ptr)() = (int (*)())ctanh;
22859
1409cd0b
FXC
22860int
22861main ()
22862{
5213506e
RW
22863 return 0;
22864}
db9f46a9 22865
5213506e
RW
22866_ACEOF
22867if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22868 gcc_cv_math_func_ctanh=yes
1409cd0b 22869else
db9f46a9 22870 gcc_cv_math_func_ctanh=no
1409cd0b 22871fi
5213506e
RW
22872rm -f core conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22874fi
db9f46a9
TG
22875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
22876$as_echo "$gcc_cv_math_func_ctanh" >&6; }
22877 if test $gcc_cv_math_func_ctanh = yes; then
f1cdfa01 22878
f38a14ca
TG
22879cat >>confdefs.h <<_ACEOF
22880#define HAVE_CTANH 1
22881_ACEOF
db9f46a9
TG
22882
22883 fi
1409cd0b 22884
1409cd0b 22885
1409cd0b 22886
db9f46a9
TG
22887
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
22889$as_echo_n "checking for ctanhl... " >&6; }
22890if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
5213506e 22891 $as_echo_n "(cached) " >&6
1409cd0b 22892else
db9f46a9 22893 if test x$gcc_no_link = xyes; then
5213506e 22894 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22895fi
5213506e 22896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22897/* end confdefs.h. */
22898
db9f46a9
TG
22899#ifdef HAVE_COMPLEX_H
22900#include <complex.h>
1409cd0b 22901#endif
db9f46a9
TG
22902#ifdef HAVE_MATH_H
22903#include <math.h>
22904#endif
22905
22906int (*ptr)() = (int (*)())ctanhl;
22907
1409cd0b
FXC
22908int
22909main ()
22910{
1409cd0b
FXC
22911 return 0;
22912}
db9f46a9 22913
1409cd0b 22914_ACEOF
5213506e 22915if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22916 gcc_cv_math_func_ctanhl=yes
1409cd0b 22917else
db9f46a9 22918 gcc_cv_math_func_ctanhl=no
1409cd0b 22919fi
5213506e
RW
22920rm -f core conftest.err conftest.$ac_objext \
22921 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22922fi
db9f46a9
TG
22923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
22924$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
22925 if test $gcc_cv_math_func_ctanhl = yes; then
f1cdfa01 22926
f38a14ca
TG
22927cat >>confdefs.h <<_ACEOF
22928#define HAVE_CTANHL 1
22929_ACEOF
db9f46a9
TG
22930
22931 fi
22932
1409cd0b 22933
69a2d125 22934
69a2d125 22935
db9f46a9
TG
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
22937$as_echo_n "checking for truncf... " >&6; }
22938if test "${gcc_cv_math_func_truncf+set}" = set; then :
5213506e 22939 $as_echo_n "(cached) " >&6
69a2d125 22940else
db9f46a9 22941 if test x$gcc_no_link = xyes; then
5213506e 22942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 22943fi
5213506e 22944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
22945/* end confdefs.h. */
22946
db9f46a9
TG
22947#ifdef HAVE_COMPLEX_H
22948#include <complex.h>
22949#endif
22950#ifdef HAVE_MATH_H
22951#include <math.h>
69a2d125 22952#endif
db9f46a9
TG
22953
22954int (*ptr)() = (int (*)())truncf;
22955
1409cd0b
FXC
22956int
22957main ()
22958{
1409cd0b
FXC
22959 return 0;
22960}
db9f46a9 22961
1409cd0b 22962_ACEOF
5213506e 22963if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 22964 gcc_cv_math_func_truncf=yes
1409cd0b 22965else
db9f46a9 22966 gcc_cv_math_func_truncf=no
1409cd0b 22967fi
5213506e
RW
22968rm -f core conftest.err conftest.$ac_objext \
22969 conftest$ac_exeext conftest.$ac_ext
1409cd0b 22970fi
db9f46a9
TG
22971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
22972$as_echo "$gcc_cv_math_func_truncf" >&6; }
22973 if test $gcc_cv_math_func_truncf = yes; then
f1cdfa01 22974
f38a14ca
TG
22975cat >>confdefs.h <<_ACEOF
22976#define HAVE_TRUNCF 1
22977_ACEOF
db9f46a9
TG
22978
22979 fi
1409cd0b 22980
1409cd0b 22981
1409cd0b 22982
db9f46a9
TG
22983
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
22985$as_echo_n "checking for trunc... " >&6; }
22986if test "${gcc_cv_math_func_trunc+set}" = set; then :
5213506e 22987 $as_echo_n "(cached) " >&6
1409cd0b 22988else
db9f46a9 22989 if test x$gcc_no_link = xyes; then
5213506e 22990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22991fi
5213506e 22992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22993/* end confdefs.h. */
22994
db9f46a9
TG
22995#ifdef HAVE_COMPLEX_H
22996#include <complex.h>
1409cd0b 22997#endif
db9f46a9
TG
22998#ifdef HAVE_MATH_H
22999#include <math.h>
23000#endif
23001
23002int (*ptr)() = (int (*)())trunc;
23003
1409cd0b
FXC
23004int
23005main ()
23006{
1409cd0b
FXC
23007 return 0;
23008}
db9f46a9 23009
1409cd0b 23010_ACEOF
5213506e 23011if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23012 gcc_cv_math_func_trunc=yes
1409cd0b 23013else
db9f46a9 23014 gcc_cv_math_func_trunc=no
1409cd0b 23015fi
5213506e
RW
23016rm -f core conftest.err conftest.$ac_objext \
23017 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23018fi
db9f46a9
TG
23019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23020$as_echo "$gcc_cv_math_func_trunc" >&6; }
23021 if test $gcc_cv_math_func_trunc = yes; then
f1cdfa01 23022
f38a14ca
TG
23023cat >>confdefs.h <<_ACEOF
23024#define HAVE_TRUNC 1
23025_ACEOF
1409cd0b 23026
db9f46a9 23027 fi
1409cd0b 23028
1409cd0b 23029
db9f46a9
TG
23030
23031
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23033$as_echo_n "checking for truncl... " >&6; }
23034if test "${gcc_cv_math_func_truncl+set}" = set; then :
5213506e 23035 $as_echo_n "(cached) " >&6
1409cd0b 23036else
db9f46a9 23037 if test x$gcc_no_link = xyes; then
5213506e 23038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23039fi
5213506e 23040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23041/* end confdefs.h. */
23042
db9f46a9
TG
23043#ifdef HAVE_COMPLEX_H
23044#include <complex.h>
23045#endif
23046#ifdef HAVE_MATH_H
23047#include <math.h>
1409cd0b 23048#endif
db9f46a9
TG
23049
23050int (*ptr)() = (int (*)())truncl;
23051
1409cd0b
FXC
23052int
23053main ()
23054{
1409cd0b
FXC
23055 return 0;
23056}
db9f46a9 23057
1409cd0b 23058_ACEOF
5213506e 23059if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23060 gcc_cv_math_func_truncl=yes
1409cd0b 23061else
db9f46a9 23062 gcc_cv_math_func_truncl=no
1409cd0b 23063fi
5213506e
RW
23064rm -f core conftest.err conftest.$ac_objext \
23065 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23066fi
db9f46a9
TG
23067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23068$as_echo "$gcc_cv_math_func_truncl" >&6; }
23069 if test $gcc_cv_math_func_truncl = yes; then
f1cdfa01 23070
f38a14ca
TG
23071cat >>confdefs.h <<_ACEOF
23072#define HAVE_TRUNCL 1
23073_ACEOF
db9f46a9
TG
23074
23075 fi
1409cd0b 23076
1409cd0b 23077
1409cd0b 23078
db9f46a9
TG
23079
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23081$as_echo_n "checking for erff... " >&6; }
23082if test "${gcc_cv_math_func_erff+set}" = set; then :
5213506e 23083 $as_echo_n "(cached) " >&6
1409cd0b 23084else
db9f46a9 23085 if test x$gcc_no_link = xyes; then
5213506e 23086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23087fi
5213506e 23088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23089/* end confdefs.h. */
23090
db9f46a9
TG
23091#ifdef HAVE_COMPLEX_H
23092#include <complex.h>
1409cd0b 23093#endif
db9f46a9
TG
23094#ifdef HAVE_MATH_H
23095#include <math.h>
23096#endif
23097
23098int (*ptr)() = (int (*)())erff;
23099
1409cd0b
FXC
23100int
23101main ()
23102{
1409cd0b
FXC
23103 return 0;
23104}
db9f46a9 23105
1409cd0b 23106_ACEOF
5213506e 23107if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23108 gcc_cv_math_func_erff=yes
1409cd0b 23109else
db9f46a9 23110 gcc_cv_math_func_erff=no
1409cd0b 23111fi
5213506e
RW
23112rm -f core conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23114fi
db9f46a9
TG
23115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23116$as_echo "$gcc_cv_math_func_erff" >&6; }
23117 if test $gcc_cv_math_func_erff = yes; then
f1cdfa01 23118
f38a14ca
TG
23119cat >>confdefs.h <<_ACEOF
23120#define HAVE_ERFF 1
23121_ACEOF
db9f46a9
TG
23122
23123 fi
23124
1409cd0b 23125
1409cd0b 23126
1409cd0b 23127
db9f46a9
TG
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23129$as_echo_n "checking for erf... " >&6; }
23130if test "${gcc_cv_math_func_erf+set}" = set; then :
5213506e 23131 $as_echo_n "(cached) " >&6
1409cd0b 23132else
db9f46a9 23133 if test x$gcc_no_link = xyes; then
5213506e 23134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23135fi
5213506e 23136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23137/* end confdefs.h. */
23138
db9f46a9
TG
23139#ifdef HAVE_COMPLEX_H
23140#include <complex.h>
23141#endif
23142#ifdef HAVE_MATH_H
23143#include <math.h>
1409cd0b 23144#endif
db9f46a9
TG
23145
23146int (*ptr)() = (int (*)())erf;
23147
1409cd0b
FXC
23148int
23149main ()
23150{
1409cd0b
FXC
23151 return 0;
23152}
db9f46a9 23153
1409cd0b 23154_ACEOF
5213506e 23155if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23156 gcc_cv_math_func_erf=yes
1409cd0b 23157else
db9f46a9 23158 gcc_cv_math_func_erf=no
1409cd0b 23159fi
5213506e
RW
23160rm -f core conftest.err conftest.$ac_objext \
23161 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23162fi
db9f46a9
TG
23163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23164$as_echo "$gcc_cv_math_func_erf" >&6; }
23165 if test $gcc_cv_math_func_erf = yes; then
f1cdfa01 23166
f38a14ca
TG
23167cat >>confdefs.h <<_ACEOF
23168#define HAVE_ERF 1
23169_ACEOF
db9f46a9
TG
23170
23171 fi
1409cd0b 23172
1409cd0b 23173
1409cd0b 23174
db9f46a9
TG
23175
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23177$as_echo_n "checking for erfl... " >&6; }
23178if test "${gcc_cv_math_func_erfl+set}" = set; then :
5213506e 23179 $as_echo_n "(cached) " >&6
1409cd0b 23180else
db9f46a9 23181 if test x$gcc_no_link = xyes; then
5213506e 23182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23183fi
5213506e 23184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23185/* end confdefs.h. */
23186
db9f46a9
TG
23187#ifdef HAVE_COMPLEX_H
23188#include <complex.h>
1409cd0b 23189#endif
db9f46a9
TG
23190#ifdef HAVE_MATH_H
23191#include <math.h>
23192#endif
23193
23194int (*ptr)() = (int (*)())erfl;
23195
1409cd0b
FXC
23196int
23197main ()
23198{
1409cd0b
FXC
23199 return 0;
23200}
db9f46a9 23201
1409cd0b 23202_ACEOF
5213506e 23203if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23204 gcc_cv_math_func_erfl=yes
1409cd0b 23205else
db9f46a9 23206 gcc_cv_math_func_erfl=no
1409cd0b 23207fi
5213506e
RW
23208rm -f core conftest.err conftest.$ac_objext \
23209 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23210fi
db9f46a9
TG
23211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23212$as_echo "$gcc_cv_math_func_erfl" >&6; }
23213 if test $gcc_cv_math_func_erfl = yes; then
f1cdfa01 23214
f38a14ca
TG
23215cat >>confdefs.h <<_ACEOF
23216#define HAVE_ERFL 1
23217_ACEOF
1409cd0b 23218
db9f46a9 23219 fi
1409cd0b 23220
1409cd0b 23221
db9f46a9
TG
23222
23223
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23225$as_echo_n "checking for erfcf... " >&6; }
23226if test "${gcc_cv_math_func_erfcf+set}" = set; then :
5213506e 23227 $as_echo_n "(cached) " >&6
1409cd0b 23228else
db9f46a9 23229 if test x$gcc_no_link = xyes; then
5213506e 23230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23231fi
5213506e 23232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23233/* end confdefs.h. */
23234
db9f46a9
TG
23235#ifdef HAVE_COMPLEX_H
23236#include <complex.h>
23237#endif
23238#ifdef HAVE_MATH_H
23239#include <math.h>
1409cd0b 23240#endif
db9f46a9
TG
23241
23242int (*ptr)() = (int (*)())erfcf;
23243
1409cd0b
FXC
23244int
23245main ()
23246{
1409cd0b
FXC
23247 return 0;
23248}
db9f46a9 23249
1409cd0b 23250_ACEOF
5213506e 23251if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23252 gcc_cv_math_func_erfcf=yes
1409cd0b 23253else
db9f46a9 23254 gcc_cv_math_func_erfcf=no
1409cd0b 23255fi
5213506e
RW
23256rm -f core conftest.err conftest.$ac_objext \
23257 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23258fi
db9f46a9
TG
23259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23260$as_echo "$gcc_cv_math_func_erfcf" >&6; }
23261 if test $gcc_cv_math_func_erfcf = yes; then
f1cdfa01 23262
f38a14ca
TG
23263cat >>confdefs.h <<_ACEOF
23264#define HAVE_ERFCF 1
23265_ACEOF
db9f46a9
TG
23266
23267 fi
1409cd0b 23268
1409cd0b 23269
1409cd0b 23270
db9f46a9
TG
23271
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23273$as_echo_n "checking for erfc... " >&6; }
23274if test "${gcc_cv_math_func_erfc+set}" = set; then :
5213506e 23275 $as_echo_n "(cached) " >&6
1409cd0b 23276else
db9f46a9 23277 if test x$gcc_no_link = xyes; then
5213506e 23278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23279fi
5213506e 23280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23281/* end confdefs.h. */
23282
db9f46a9
TG
23283#ifdef HAVE_COMPLEX_H
23284#include <complex.h>
1409cd0b 23285#endif
db9f46a9
TG
23286#ifdef HAVE_MATH_H
23287#include <math.h>
23288#endif
23289
23290int (*ptr)() = (int (*)())erfc;
23291
69a2d125
EB
23292int
23293main ()
23294{
69a2d125
EB
23295 return 0;
23296}
db9f46a9 23297
69a2d125 23298_ACEOF
5213506e 23299if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23300 gcc_cv_math_func_erfc=yes
69a2d125 23301else
db9f46a9 23302 gcc_cv_math_func_erfc=no
69a2d125 23303fi
5213506e
RW
23304rm -f core conftest.err conftest.$ac_objext \
23305 conftest$ac_exeext conftest.$ac_ext
69a2d125 23306fi
db9f46a9
TG
23307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23308$as_echo "$gcc_cv_math_func_erfc" >&6; }
23309 if test $gcc_cv_math_func_erfc = yes; then
f1cdfa01 23310
f38a14ca
TG
23311cat >>confdefs.h <<_ACEOF
23312#define HAVE_ERFC 1
23313_ACEOF
db9f46a9
TG
23314
23315 fi
23316
69a2d125 23317
69a2d125 23318
69a2d125 23319
db9f46a9
TG
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23321$as_echo_n "checking for erfcl... " >&6; }
23322if test "${gcc_cv_math_func_erfcl+set}" = set; then :
5213506e 23323 $as_echo_n "(cached) " >&6
e8525382 23324else
db9f46a9 23325 if test x$gcc_no_link = xyes; then
5213506e 23326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23327fi
5213506e 23328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23329/* end confdefs.h. */
23330
db9f46a9
TG
23331#ifdef HAVE_COMPLEX_H
23332#include <complex.h>
23333#endif
23334#ifdef HAVE_MATH_H
23335#include <math.h>
e8525382 23336#endif
db9f46a9
TG
23337
23338int (*ptr)() = (int (*)())erfcl;
23339
e8525382
SK
23340int
23341main ()
23342{
e8525382
SK
23343 return 0;
23344}
db9f46a9 23345
e8525382 23346_ACEOF
5213506e 23347if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23348 gcc_cv_math_func_erfcl=yes
e8525382 23349else
db9f46a9 23350 gcc_cv_math_func_erfcl=no
e8525382 23351fi
5213506e
RW
23352rm -f core conftest.err conftest.$ac_objext \
23353 conftest$ac_exeext conftest.$ac_ext
e8525382 23354fi
db9f46a9
TG
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23356$as_echo "$gcc_cv_math_func_erfcl" >&6; }
23357 if test $gcc_cv_math_func_erfcl = yes; then
f1cdfa01 23358
f38a14ca
TG
23359cat >>confdefs.h <<_ACEOF
23360#define HAVE_ERFCL 1
23361_ACEOF
db9f46a9
TG
23362
23363 fi
e8525382 23364
e8525382 23365
e8525382 23366
db9f46a9
TG
23367
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23369$as_echo_n "checking for j0f... " >&6; }
23370if test "${gcc_cv_math_func_j0f+set}" = set; then :
5213506e 23371 $as_echo_n "(cached) " >&6
e8525382 23372else
db9f46a9 23373 if test x$gcc_no_link = xyes; then
5213506e 23374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23375fi
5213506e 23376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23377/* end confdefs.h. */
23378
db9f46a9
TG
23379#ifdef HAVE_COMPLEX_H
23380#include <complex.h>
e8525382 23381#endif
db9f46a9
TG
23382#ifdef HAVE_MATH_H
23383#include <math.h>
23384#endif
23385
23386int (*ptr)() = (int (*)())j0f;
23387
e8525382
SK
23388int
23389main ()
23390{
e8525382
SK
23391 return 0;
23392}
db9f46a9 23393
e8525382 23394_ACEOF
5213506e 23395if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23396 gcc_cv_math_func_j0f=yes
e8525382 23397else
db9f46a9 23398 gcc_cv_math_func_j0f=no
1409cd0b 23399fi
5213506e
RW
23400rm -f core conftest.err conftest.$ac_objext \
23401 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23402fi
db9f46a9
TG
23403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23404$as_echo "$gcc_cv_math_func_j0f" >&6; }
23405 if test $gcc_cv_math_func_j0f = yes; then
f1cdfa01 23406
f38a14ca
TG
23407cat >>confdefs.h <<_ACEOF
23408#define HAVE_J0F 1
23409_ACEOF
1409cd0b 23410
db9f46a9 23411 fi
1409cd0b 23412
1409cd0b 23413
db9f46a9
TG
23414
23415
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23417$as_echo_n "checking for j0... " >&6; }
23418if test "${gcc_cv_math_func_j0+set}" = set; then :
5213506e 23419 $as_echo_n "(cached) " >&6
1409cd0b 23420else
db9f46a9 23421 if test x$gcc_no_link = xyes; then
5213506e 23422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23423fi
5213506e 23424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23425/* end confdefs.h. */
23426
db9f46a9
TG
23427#ifdef HAVE_COMPLEX_H
23428#include <complex.h>
23429#endif
23430#ifdef HAVE_MATH_H
23431#include <math.h>
1409cd0b 23432#endif
db9f46a9
TG
23433
23434int (*ptr)() = (int (*)())j0;
23435
1409cd0b
FXC
23436int
23437main ()
23438{
1409cd0b
FXC
23439 return 0;
23440}
db9f46a9 23441
1409cd0b 23442_ACEOF
5213506e 23443if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23444 gcc_cv_math_func_j0=yes
1409cd0b 23445else
db9f46a9 23446 gcc_cv_math_func_j0=no
1409cd0b 23447fi
5213506e
RW
23448rm -f core conftest.err conftest.$ac_objext \
23449 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23450fi
db9f46a9
TG
23451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23452$as_echo "$gcc_cv_math_func_j0" >&6; }
23453 if test $gcc_cv_math_func_j0 = yes; then
f1cdfa01 23454
f38a14ca
TG
23455cat >>confdefs.h <<_ACEOF
23456#define HAVE_J0 1
23457_ACEOF
db9f46a9
TG
23458
23459 fi
1409cd0b 23460
1409cd0b 23461
1409cd0b 23462
db9f46a9
TG
23463
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23465$as_echo_n "checking for j0l... " >&6; }
23466if test "${gcc_cv_math_func_j0l+set}" = set; then :
5213506e 23467 $as_echo_n "(cached) " >&6
1409cd0b 23468else
db9f46a9 23469 if test x$gcc_no_link = xyes; then
5213506e 23470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23471fi
5213506e 23472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23473/* end confdefs.h. */
23474
db9f46a9
TG
23475#ifdef HAVE_COMPLEX_H
23476#include <complex.h>
1409cd0b 23477#endif
db9f46a9
TG
23478#ifdef HAVE_MATH_H
23479#include <math.h>
23480#endif
23481
23482int (*ptr)() = (int (*)())j0l;
23483
1409cd0b
FXC
23484int
23485main ()
23486{
1409cd0b
FXC
23487 return 0;
23488}
db9f46a9 23489
1409cd0b 23490_ACEOF
5213506e 23491if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23492 gcc_cv_math_func_j0l=yes
1409cd0b 23493else
db9f46a9 23494 gcc_cv_math_func_j0l=no
1409cd0b 23495fi
5213506e
RW
23496rm -f core conftest.err conftest.$ac_objext \
23497 conftest$ac_exeext conftest.$ac_ext
1409cd0b 23498fi
db9f46a9
TG
23499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23500$as_echo "$gcc_cv_math_func_j0l" >&6; }
23501 if test $gcc_cv_math_func_j0l = yes; then
f1cdfa01 23502
f38a14ca
TG
23503cat >>confdefs.h <<_ACEOF
23504#define HAVE_J0L 1
23505_ACEOF
db9f46a9
TG
23506
23507 fi
23508
1409cd0b 23509
1409cd0b 23510
1409cd0b 23511
db9f46a9
TG
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23513$as_echo_n "checking for j1f... " >&6; }
23514if test "${gcc_cv_math_func_j1f+set}" = set; then :
5213506e 23515 $as_echo_n "(cached) " >&6
1409cd0b 23516else
db9f46a9 23517 if test x$gcc_no_link = xyes; then
5213506e 23518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23519fi
5213506e 23520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23521/* end confdefs.h. */
23522
db9f46a9
TG
23523#ifdef HAVE_COMPLEX_H
23524#include <complex.h>
23525#endif
23526#ifdef HAVE_MATH_H
23527#include <math.h>
1409cd0b 23528#endif
db9f46a9
TG
23529
23530int (*ptr)() = (int (*)())j1f;
23531
1409cd0b
FXC
23532int
23533main ()
23534{
1409cd0b
FXC
23535 return 0;
23536}
db9f46a9 23537
1409cd0b 23538_ACEOF
5213506e 23539if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23540 gcc_cv_math_func_j1f=yes
1409cd0b 23541else
db9f46a9 23542 gcc_cv_math_func_j1f=no
e8525382 23543fi
5213506e
RW
23544rm -f core conftest.err conftest.$ac_objext \
23545 conftest$ac_exeext conftest.$ac_ext
e8525382 23546fi
db9f46a9
TG
23547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23548$as_echo "$gcc_cv_math_func_j1f" >&6; }
23549 if test $gcc_cv_math_func_j1f = yes; then
f1cdfa01 23550
f38a14ca
TG
23551cat >>confdefs.h <<_ACEOF
23552#define HAVE_J1F 1
23553_ACEOF
db9f46a9
TG
23554
23555 fi
e8525382 23556
e8525382 23557
e8525382 23558
db9f46a9
TG
23559
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23561$as_echo_n "checking for j1... " >&6; }
23562if test "${gcc_cv_math_func_j1+set}" = set; then :
5213506e 23563 $as_echo_n "(cached) " >&6
e8525382 23564else
db9f46a9 23565 if test x$gcc_no_link = xyes; then
5213506e 23566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23567fi
5213506e 23568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23569/* end confdefs.h. */
23570
db9f46a9
TG
23571#ifdef HAVE_COMPLEX_H
23572#include <complex.h>
e8525382 23573#endif
db9f46a9
TG
23574#ifdef HAVE_MATH_H
23575#include <math.h>
23576#endif
23577
23578int (*ptr)() = (int (*)())j1;
23579
e8525382
SK
23580int
23581main ()
23582{
e8525382
SK
23583 return 0;
23584}
db9f46a9 23585
e8525382 23586_ACEOF
5213506e 23587if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23588 gcc_cv_math_func_j1=yes
e8525382 23589else
db9f46a9 23590 gcc_cv_math_func_j1=no
e8525382 23591fi
5213506e
RW
23592rm -f core conftest.err conftest.$ac_objext \
23593 conftest$ac_exeext conftest.$ac_ext
e8525382 23594fi
db9f46a9
TG
23595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23596$as_echo "$gcc_cv_math_func_j1" >&6; }
23597 if test $gcc_cv_math_func_j1 = yes; then
f1cdfa01 23598
f38a14ca
TG
23599cat >>confdefs.h <<_ACEOF
23600#define HAVE_J1 1
23601_ACEOF
e8525382 23602
db9f46a9 23603 fi
e8525382 23604
e8525382 23605
db9f46a9
TG
23606
23607
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23609$as_echo_n "checking for j1l... " >&6; }
23610if test "${gcc_cv_math_func_j1l+set}" = set; then :
5213506e 23611 $as_echo_n "(cached) " >&6
e8525382 23612else
db9f46a9 23613 if test x$gcc_no_link = xyes; then
5213506e 23614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23615fi
5213506e 23616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23617/* end confdefs.h. */
23618
db9f46a9
TG
23619#ifdef HAVE_COMPLEX_H
23620#include <complex.h>
23621#endif
23622#ifdef HAVE_MATH_H
23623#include <math.h>
e8525382 23624#endif
db9f46a9
TG
23625
23626int (*ptr)() = (int (*)())j1l;
23627
e8525382
SK
23628int
23629main ()
23630{
e8525382
SK
23631 return 0;
23632}
db9f46a9 23633
e8525382 23634_ACEOF
5213506e 23635if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23636 gcc_cv_math_func_j1l=yes
e8525382 23637else
db9f46a9 23638 gcc_cv_math_func_j1l=no
e8525382 23639fi
5213506e
RW
23640rm -f core conftest.err conftest.$ac_objext \
23641 conftest$ac_exeext conftest.$ac_ext
e8525382 23642fi
db9f46a9
TG
23643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23644$as_echo "$gcc_cv_math_func_j1l" >&6; }
23645 if test $gcc_cv_math_func_j1l = yes; then
f1cdfa01 23646
f38a14ca
TG
23647cat >>confdefs.h <<_ACEOF
23648#define HAVE_J1L 1
23649_ACEOF
db9f46a9
TG
23650
23651 fi
e8525382 23652
e8525382 23653
e8525382 23654
db9f46a9
TG
23655
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23657$as_echo_n "checking for jnf... " >&6; }
23658if test "${gcc_cv_math_func_jnf+set}" = set; then :
5213506e 23659 $as_echo_n "(cached) " >&6
e8525382 23660else
db9f46a9 23661 if test x$gcc_no_link = xyes; then
5213506e 23662 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23663fi
5213506e 23664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23665/* end confdefs.h. */
23666
db9f46a9
TG
23667#ifdef HAVE_COMPLEX_H
23668#include <complex.h>
e8525382 23669#endif
db9f46a9
TG
23670#ifdef HAVE_MATH_H
23671#include <math.h>
23672#endif
23673
23674int (*ptr)() = (int (*)())jnf;
23675
e8525382
SK
23676int
23677main ()
23678{
e8525382
SK
23679 return 0;
23680}
db9f46a9 23681
e8525382 23682_ACEOF
5213506e 23683if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23684 gcc_cv_math_func_jnf=yes
e8525382 23685else
db9f46a9 23686 gcc_cv_math_func_jnf=no
e8525382 23687fi
5213506e
RW
23688rm -f core conftest.err conftest.$ac_objext \
23689 conftest$ac_exeext conftest.$ac_ext
e8525382 23690fi
db9f46a9
TG
23691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23692$as_echo "$gcc_cv_math_func_jnf" >&6; }
23693 if test $gcc_cv_math_func_jnf = yes; then
f1cdfa01 23694
f38a14ca
TG
23695cat >>confdefs.h <<_ACEOF
23696#define HAVE_JNF 1
23697_ACEOF
db9f46a9
TG
23698
23699 fi
23700
e8525382 23701
e8525382 23702
e8525382 23703
db9f46a9
TG
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23705$as_echo_n "checking for jn... " >&6; }
23706if test "${gcc_cv_math_func_jn+set}" = set; then :
5213506e 23707 $as_echo_n "(cached) " >&6
e8525382 23708else
db9f46a9 23709 if test x$gcc_no_link = xyes; then
5213506e 23710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23711fi
5213506e 23712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23713/* end confdefs.h. */
23714
db9f46a9
TG
23715#ifdef HAVE_COMPLEX_H
23716#include <complex.h>
23717#endif
23718#ifdef HAVE_MATH_H
23719#include <math.h>
e8525382 23720#endif
db9f46a9
TG
23721
23722int (*ptr)() = (int (*)())jn;
23723
e8525382
SK
23724int
23725main ()
23726{
e8525382
SK
23727 return 0;
23728}
db9f46a9 23729
e8525382 23730_ACEOF
5213506e 23731if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23732 gcc_cv_math_func_jn=yes
e8525382 23733else
db9f46a9 23734 gcc_cv_math_func_jn=no
e8525382 23735fi
5213506e
RW
23736rm -f core conftest.err conftest.$ac_objext \
23737 conftest$ac_exeext conftest.$ac_ext
e8525382 23738fi
db9f46a9
TG
23739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23740$as_echo "$gcc_cv_math_func_jn" >&6; }
23741 if test $gcc_cv_math_func_jn = yes; then
f1cdfa01 23742
f38a14ca
TG
23743cat >>confdefs.h <<_ACEOF
23744#define HAVE_JN 1
23745_ACEOF
db9f46a9
TG
23746
23747 fi
e8525382 23748
e8525382 23749
e8525382 23750
db9f46a9
TG
23751
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23753$as_echo_n "checking for jnl... " >&6; }
23754if test "${gcc_cv_math_func_jnl+set}" = set; then :
5213506e 23755 $as_echo_n "(cached) " >&6
e8525382 23756else
db9f46a9 23757 if test x$gcc_no_link = xyes; then
5213506e 23758 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23759fi
5213506e 23760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23761/* end confdefs.h. */
23762
db9f46a9
TG
23763#ifdef HAVE_COMPLEX_H
23764#include <complex.h>
e8525382 23765#endif
db9f46a9
TG
23766#ifdef HAVE_MATH_H
23767#include <math.h>
23768#endif
23769
23770int (*ptr)() = (int (*)())jnl;
23771
e8525382
SK
23772int
23773main ()
23774{
e8525382
SK
23775 return 0;
23776}
db9f46a9 23777
e8525382 23778_ACEOF
5213506e 23779if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23780 gcc_cv_math_func_jnl=yes
e8525382 23781else
db9f46a9 23782 gcc_cv_math_func_jnl=no
e8525382 23783fi
5213506e
RW
23784rm -f core conftest.err conftest.$ac_objext \
23785 conftest$ac_exeext conftest.$ac_ext
e8525382 23786fi
db9f46a9
TG
23787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23788$as_echo "$gcc_cv_math_func_jnl" >&6; }
23789 if test $gcc_cv_math_func_jnl = yes; then
f1cdfa01 23790
f38a14ca
TG
23791cat >>confdefs.h <<_ACEOF
23792#define HAVE_JNL 1
23793_ACEOF
e8525382 23794
db9f46a9 23795 fi
e8525382 23796
e8525382 23797
db9f46a9
TG
23798
23799
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23801$as_echo_n "checking for y0f... " >&6; }
23802if test "${gcc_cv_math_func_y0f+set}" = set; then :
5213506e 23803 $as_echo_n "(cached) " >&6
e8525382 23804else
db9f46a9 23805 if test x$gcc_no_link = xyes; then
5213506e 23806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23807fi
5213506e 23808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23809/* end confdefs.h. */
23810
db9f46a9
TG
23811#ifdef HAVE_COMPLEX_H
23812#include <complex.h>
23813#endif
23814#ifdef HAVE_MATH_H
23815#include <math.h>
e8525382 23816#endif
db9f46a9
TG
23817
23818int (*ptr)() = (int (*)())y0f;
23819
e8525382
SK
23820int
23821main ()
23822{
e8525382
SK
23823 return 0;
23824}
db9f46a9 23825
e8525382 23826_ACEOF
5213506e 23827if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23828 gcc_cv_math_func_y0f=yes
e8525382 23829else
db9f46a9 23830 gcc_cv_math_func_y0f=no
e8525382 23831fi
5213506e
RW
23832rm -f core conftest.err conftest.$ac_objext \
23833 conftest$ac_exeext conftest.$ac_ext
e8525382 23834fi
db9f46a9
TG
23835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23836$as_echo "$gcc_cv_math_func_y0f" >&6; }
23837 if test $gcc_cv_math_func_y0f = yes; then
f1cdfa01 23838
f38a14ca
TG
23839cat >>confdefs.h <<_ACEOF
23840#define HAVE_Y0F 1
23841_ACEOF
db9f46a9
TG
23842
23843 fi
e8525382 23844
e8525382 23845
e8525382 23846
db9f46a9
TG
23847
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23849$as_echo_n "checking for y0... " >&6; }
23850if test "${gcc_cv_math_func_y0+set}" = set; then :
5213506e 23851 $as_echo_n "(cached) " >&6
e8525382 23852else
db9f46a9 23853 if test x$gcc_no_link = xyes; then
5213506e 23854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23855fi
5213506e 23856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23857/* end confdefs.h. */
23858
db9f46a9
TG
23859#ifdef HAVE_COMPLEX_H
23860#include <complex.h>
e8525382 23861#endif
db9f46a9
TG
23862#ifdef HAVE_MATH_H
23863#include <math.h>
23864#endif
23865
23866int (*ptr)() = (int (*)())y0;
23867
e8525382
SK
23868int
23869main ()
23870{
e8525382
SK
23871 return 0;
23872}
db9f46a9 23873
e8525382 23874_ACEOF
5213506e 23875if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23876 gcc_cv_math_func_y0=yes
e8525382 23877else
db9f46a9 23878 gcc_cv_math_func_y0=no
e8525382 23879fi
5213506e
RW
23880rm -f core conftest.err conftest.$ac_objext \
23881 conftest$ac_exeext conftest.$ac_ext
e8525382 23882fi
db9f46a9
TG
23883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23884$as_echo "$gcc_cv_math_func_y0" >&6; }
23885 if test $gcc_cv_math_func_y0 = yes; then
f1cdfa01 23886
f38a14ca
TG
23887cat >>confdefs.h <<_ACEOF
23888#define HAVE_Y0 1
23889_ACEOF
db9f46a9
TG
23890
23891 fi
23892
e8525382 23893
e8525382 23894
e8525382 23895
db9f46a9
TG
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
23897$as_echo_n "checking for y0l... " >&6; }
23898if test "${gcc_cv_math_func_y0l+set}" = set; then :
5213506e 23899 $as_echo_n "(cached) " >&6
e8525382 23900else
db9f46a9 23901 if test x$gcc_no_link = xyes; then
5213506e 23902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23903fi
5213506e 23904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23905/* end confdefs.h. */
23906
db9f46a9
TG
23907#ifdef HAVE_COMPLEX_H
23908#include <complex.h>
23909#endif
23910#ifdef HAVE_MATH_H
23911#include <math.h>
e8525382 23912#endif
db9f46a9
TG
23913
23914int (*ptr)() = (int (*)())y0l;
23915
e8525382
SK
23916int
23917main ()
23918{
e8525382
SK
23919 return 0;
23920}
db9f46a9 23921
e8525382 23922_ACEOF
5213506e 23923if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23924 gcc_cv_math_func_y0l=yes
e8525382 23925else
db9f46a9 23926 gcc_cv_math_func_y0l=no
e8525382 23927fi
5213506e
RW
23928rm -f core conftest.err conftest.$ac_objext \
23929 conftest$ac_exeext conftest.$ac_ext
e8525382 23930fi
db9f46a9
TG
23931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
23932$as_echo "$gcc_cv_math_func_y0l" >&6; }
23933 if test $gcc_cv_math_func_y0l = yes; then
f1cdfa01 23934
f38a14ca
TG
23935cat >>confdefs.h <<_ACEOF
23936#define HAVE_Y0L 1
23937_ACEOF
db9f46a9
TG
23938
23939 fi
e8525382 23940
e8525382 23941
e8525382 23942
db9f46a9
TG
23943
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23945$as_echo_n "checking for y1f... " >&6; }
23946if test "${gcc_cv_math_func_y1f+set}" = set; then :
5213506e 23947 $as_echo_n "(cached) " >&6
e8525382 23948else
db9f46a9 23949 if test x$gcc_no_link = xyes; then
5213506e 23950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23951fi
5213506e 23952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23953/* end confdefs.h. */
23954
db9f46a9
TG
23955#ifdef HAVE_COMPLEX_H
23956#include <complex.h>
e8525382 23957#endif
db9f46a9
TG
23958#ifdef HAVE_MATH_H
23959#include <math.h>
23960#endif
23961
23962int (*ptr)() = (int (*)())y1f;
23963
e8525382
SK
23964int
23965main ()
23966{
e8525382
SK
23967 return 0;
23968}
db9f46a9 23969
e8525382 23970_ACEOF
5213506e 23971if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 23972 gcc_cv_math_func_y1f=yes
e8525382 23973else
db9f46a9 23974 gcc_cv_math_func_y1f=no
e8525382 23975fi
5213506e
RW
23976rm -f core conftest.err conftest.$ac_objext \
23977 conftest$ac_exeext conftest.$ac_ext
e8525382 23978fi
db9f46a9
TG
23979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
23980$as_echo "$gcc_cv_math_func_y1f" >&6; }
23981 if test $gcc_cv_math_func_y1f = yes; then
f1cdfa01 23982
f38a14ca
TG
23983cat >>confdefs.h <<_ACEOF
23984#define HAVE_Y1F 1
23985_ACEOF
e8525382 23986
db9f46a9 23987 fi
e8525382 23988
e8525382 23989
db9f46a9
TG
23990
23991
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
23993$as_echo_n "checking for y1... " >&6; }
23994if test "${gcc_cv_math_func_y1+set}" = set; then :
5213506e 23995 $as_echo_n "(cached) " >&6
e8525382 23996else
db9f46a9 23997 if test x$gcc_no_link = xyes; then
5213506e 23998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23999fi
5213506e 24000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24001/* end confdefs.h. */
24002
db9f46a9
TG
24003#ifdef HAVE_COMPLEX_H
24004#include <complex.h>
24005#endif
24006#ifdef HAVE_MATH_H
24007#include <math.h>
e8525382 24008#endif
db9f46a9
TG
24009
24010int (*ptr)() = (int (*)())y1;
24011
e8525382
SK
24012int
24013main ()
24014{
e8525382
SK
24015 return 0;
24016}
db9f46a9 24017
e8525382 24018_ACEOF
5213506e 24019if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24020 gcc_cv_math_func_y1=yes
e8525382 24021else
db9f46a9 24022 gcc_cv_math_func_y1=no
e8525382 24023fi
5213506e
RW
24024rm -f core conftest.err conftest.$ac_objext \
24025 conftest$ac_exeext conftest.$ac_ext
e8525382 24026fi
db9f46a9
TG
24027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24028$as_echo "$gcc_cv_math_func_y1" >&6; }
24029 if test $gcc_cv_math_func_y1 = yes; then
f1cdfa01 24030
f38a14ca
TG
24031cat >>confdefs.h <<_ACEOF
24032#define HAVE_Y1 1
24033_ACEOF
db9f46a9
TG
24034
24035 fi
e8525382 24036
e8525382 24037
e8525382 24038
db9f46a9
TG
24039
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24041$as_echo_n "checking for y1l... " >&6; }
24042if test "${gcc_cv_math_func_y1l+set}" = set; then :
5213506e 24043 $as_echo_n "(cached) " >&6
e8525382 24044else
db9f46a9 24045 if test x$gcc_no_link = xyes; then
5213506e 24046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24047fi
5213506e 24048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24049/* end confdefs.h. */
24050
db9f46a9
TG
24051#ifdef HAVE_COMPLEX_H
24052#include <complex.h>
e8525382 24053#endif
db9f46a9
TG
24054#ifdef HAVE_MATH_H
24055#include <math.h>
24056#endif
24057
24058int (*ptr)() = (int (*)())y1l;
24059
e8525382
SK
24060int
24061main ()
24062{
e8525382
SK
24063 return 0;
24064}
db9f46a9 24065
e8525382 24066_ACEOF
5213506e 24067if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24068 gcc_cv_math_func_y1l=yes
e8525382 24069else
db9f46a9 24070 gcc_cv_math_func_y1l=no
e8525382 24071fi
5213506e
RW
24072rm -f core conftest.err conftest.$ac_objext \
24073 conftest$ac_exeext conftest.$ac_ext
e8525382 24074fi
db9f46a9
TG
24075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24076$as_echo "$gcc_cv_math_func_y1l" >&6; }
24077 if test $gcc_cv_math_func_y1l = yes; then
f1cdfa01 24078
f38a14ca
TG
24079cat >>confdefs.h <<_ACEOF
24080#define HAVE_Y1L 1
24081_ACEOF
db9f46a9
TG
24082
24083 fi
24084
e8525382 24085
e8525382 24086
e8525382 24087
db9f46a9
TG
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24089$as_echo_n "checking for ynf... " >&6; }
24090if test "${gcc_cv_math_func_ynf+set}" = set; then :
5213506e 24091 $as_echo_n "(cached) " >&6
db9f46a9
TG
24092else
24093 if test x$gcc_no_link = xyes; then
5213506e 24094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24095fi
5213506e 24096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24097/* end confdefs.h. */
24098
db9f46a9
TG
24099#ifdef HAVE_COMPLEX_H
24100#include <complex.h>
24101#endif
24102#ifdef HAVE_MATH_H
24103#include <math.h>
e8525382 24104#endif
db9f46a9
TG
24105
24106int (*ptr)() = (int (*)())ynf;
24107
e8525382
SK
24108int
24109main ()
24110{
e8525382
SK
24111 return 0;
24112}
db9f46a9 24113
e8525382 24114_ACEOF
5213506e 24115if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24116 gcc_cv_math_func_ynf=yes
e8525382 24117else
db9f46a9 24118 gcc_cv_math_func_ynf=no
e8525382 24119fi
5213506e
RW
24120rm -f core conftest.err conftest.$ac_objext \
24121 conftest$ac_exeext conftest.$ac_ext
e8525382 24122fi
db9f46a9
TG
24123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24124$as_echo "$gcc_cv_math_func_ynf" >&6; }
24125 if test $gcc_cv_math_func_ynf = yes; then
f1cdfa01 24126
f38a14ca
TG
24127cat >>confdefs.h <<_ACEOF
24128#define HAVE_YNF 1
24129_ACEOF
db9f46a9
TG
24130
24131 fi
e8525382 24132
e8525382 24133
e8525382 24134
db9f46a9
TG
24135
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24137$as_echo_n "checking for yn... " >&6; }
24138if test "${gcc_cv_math_func_yn+set}" = set; then :
5213506e 24139 $as_echo_n "(cached) " >&6
e8525382 24140else
db9f46a9 24141 if test x$gcc_no_link = xyes; then
5213506e 24142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24143fi
5213506e 24144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24145/* end confdefs.h. */
24146
db9f46a9
TG
24147#ifdef HAVE_COMPLEX_H
24148#include <complex.h>
e8525382 24149#endif
db9f46a9
TG
24150#ifdef HAVE_MATH_H
24151#include <math.h>
24152#endif
24153
24154int (*ptr)() = (int (*)())yn;
24155
e8525382
SK
24156int
24157main ()
24158{
e8525382
SK
24159 return 0;
24160}
db9f46a9 24161
e8525382 24162_ACEOF
5213506e 24163if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24164 gcc_cv_math_func_yn=yes
e8525382 24165else
db9f46a9 24166 gcc_cv_math_func_yn=no
e8525382 24167fi
5213506e
RW
24168rm -f core conftest.err conftest.$ac_objext \
24169 conftest$ac_exeext conftest.$ac_ext
e8525382 24170fi
db9f46a9
TG
24171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24172$as_echo "$gcc_cv_math_func_yn" >&6; }
24173 if test $gcc_cv_math_func_yn = yes; then
f1cdfa01 24174
f38a14ca
TG
24175cat >>confdefs.h <<_ACEOF
24176#define HAVE_YN 1
24177_ACEOF
db9f46a9
TG
24178
24179 fi
24180
e8525382 24181
e8525382 24182
e8525382 24183
db9f46a9
TG
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24185$as_echo_n "checking for ynl... " >&6; }
24186if test "${gcc_cv_math_func_ynl+set}" = set; then :
5213506e 24187 $as_echo_n "(cached) " >&6
e8525382 24188else
db9f46a9 24189 if test x$gcc_no_link = xyes; then
5213506e 24190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 24191fi
5213506e 24192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
24193/* end confdefs.h. */
24194
db9f46a9
TG
24195#ifdef HAVE_COMPLEX_H
24196#include <complex.h>
24197#endif
24198#ifdef HAVE_MATH_H
24199#include <math.h>
e8525382 24200#endif
db9f46a9
TG
24201
24202int (*ptr)() = (int (*)())ynl;
24203
e8525382
SK
24204int
24205main ()
24206{
e8525382
SK
24207 return 0;
24208}
db9f46a9 24209
e8525382 24210_ACEOF
5213506e 24211if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24212 gcc_cv_math_func_ynl=yes
e8525382 24213else
db9f46a9 24214 gcc_cv_math_func_ynl=no
e8525382 24215fi
5213506e
RW
24216rm -f core conftest.err conftest.$ac_objext \
24217 conftest$ac_exeext conftest.$ac_ext
e8525382 24218fi
db9f46a9
TG
24219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24220$as_echo "$gcc_cv_math_func_ynl" >&6; }
24221 if test $gcc_cv_math_func_ynl = yes; then
f1cdfa01 24222
f38a14ca
TG
24223cat >>confdefs.h <<_ACEOF
24224#define HAVE_YNL 1
24225_ACEOF
db9f46a9
TG
24226
24227 fi
e8525382 24228
e8525382 24229
e8525382 24230
db9f46a9
TG
24231
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24233$as_echo_n "checking for tgamma... " >&6; }
24234if test "${gcc_cv_math_func_tgamma+set}" = set; then :
5213506e 24235 $as_echo_n "(cached) " >&6
fb0a0e15 24236else
db9f46a9 24237 if test x$gcc_no_link = xyes; then
5213506e 24238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24239fi
5213506e 24240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24241/* end confdefs.h. */
24242
db9f46a9
TG
24243#ifdef HAVE_COMPLEX_H
24244#include <complex.h>
fb0a0e15 24245#endif
db9f46a9
TG
24246#ifdef HAVE_MATH_H
24247#include <math.h>
24248#endif
24249
24250int (*ptr)() = (int (*)())tgamma;
24251
fb0a0e15
FXC
24252int
24253main ()
24254{
fb0a0e15
FXC
24255 return 0;
24256}
db9f46a9 24257
fb0a0e15 24258_ACEOF
5213506e 24259if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24260 gcc_cv_math_func_tgamma=yes
fb0a0e15 24261else
db9f46a9 24262 gcc_cv_math_func_tgamma=no
fb0a0e15 24263fi
5213506e
RW
24264rm -f core conftest.err conftest.$ac_objext \
24265 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24266fi
db9f46a9
TG
24267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24268$as_echo "$gcc_cv_math_func_tgamma" >&6; }
24269 if test $gcc_cv_math_func_tgamma = yes; then
f1cdfa01 24270
f38a14ca
TG
24271cat >>confdefs.h <<_ACEOF
24272#define HAVE_TGAMMA 1
24273_ACEOF
fb0a0e15 24274
db9f46a9 24275 fi
fb0a0e15 24276
fb0a0e15 24277
db9f46a9
TG
24278
24279
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24281$as_echo_n "checking for tgammaf... " >&6; }
24282if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
5213506e 24283 $as_echo_n "(cached) " >&6
fb0a0e15 24284else
db9f46a9 24285 if test x$gcc_no_link = xyes; then
5213506e 24286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24287fi
5213506e 24288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24289/* end confdefs.h. */
24290
db9f46a9
TG
24291#ifdef HAVE_COMPLEX_H
24292#include <complex.h>
24293#endif
24294#ifdef HAVE_MATH_H
24295#include <math.h>
fb0a0e15 24296#endif
db9f46a9
TG
24297
24298int (*ptr)() = (int (*)())tgammaf;
24299
fb0a0e15
FXC
24300int
24301main ()
24302{
fb0a0e15
FXC
24303 return 0;
24304}
db9f46a9 24305
fb0a0e15 24306_ACEOF
5213506e 24307if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24308 gcc_cv_math_func_tgammaf=yes
fb0a0e15 24309else
db9f46a9 24310 gcc_cv_math_func_tgammaf=no
fb0a0e15 24311fi
5213506e
RW
24312rm -f core conftest.err conftest.$ac_objext \
24313 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24314fi
db9f46a9
TG
24315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24316$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24317 if test $gcc_cv_math_func_tgammaf = yes; then
f1cdfa01 24318
f38a14ca
TG
24319cat >>confdefs.h <<_ACEOF
24320#define HAVE_TGAMMAF 1
24321_ACEOF
db9f46a9
TG
24322
24323 fi
fb0a0e15 24324
fb0a0e15 24325
fb0a0e15 24326
db9f46a9
TG
24327
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24329$as_echo_n "checking for tgammal... " >&6; }
24330if test "${gcc_cv_math_func_tgammal+set}" = set; then :
5213506e 24331 $as_echo_n "(cached) " >&6
fb0a0e15 24332else
db9f46a9 24333 if test x$gcc_no_link = xyes; then
5213506e 24334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24335fi
5213506e 24336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24337/* end confdefs.h. */
24338
db9f46a9
TG
24339#ifdef HAVE_COMPLEX_H
24340#include <complex.h>
fb0a0e15 24341#endif
db9f46a9
TG
24342#ifdef HAVE_MATH_H
24343#include <math.h>
24344#endif
24345
24346int (*ptr)() = (int (*)())tgammal;
24347
fb0a0e15
FXC
24348int
24349main ()
24350{
fb0a0e15
FXC
24351 return 0;
24352}
db9f46a9 24353
fb0a0e15 24354_ACEOF
5213506e 24355if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24356 gcc_cv_math_func_tgammal=yes
fb0a0e15 24357else
db9f46a9 24358 gcc_cv_math_func_tgammal=no
fb0a0e15 24359fi
5213506e
RW
24360rm -f core conftest.err conftest.$ac_objext \
24361 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24362fi
db9f46a9
TG
24363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24364$as_echo "$gcc_cv_math_func_tgammal" >&6; }
24365 if test $gcc_cv_math_func_tgammal = yes; then
f1cdfa01 24366
f38a14ca
TG
24367cat >>confdefs.h <<_ACEOF
24368#define HAVE_TGAMMAL 1
24369_ACEOF
db9f46a9
TG
24370
24371 fi
24372
fb0a0e15 24373
fb0a0e15 24374
fb0a0e15 24375
db9f46a9
TG
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24377$as_echo_n "checking for lgamma... " >&6; }
24378if test "${gcc_cv_math_func_lgamma+set}" = set; then :
5213506e 24379 $as_echo_n "(cached) " >&6
fb0a0e15 24380else
db9f46a9 24381 if test x$gcc_no_link = xyes; then
5213506e 24382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24383fi
5213506e 24384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24385/* end confdefs.h. */
24386
db9f46a9
TG
24387#ifdef HAVE_COMPLEX_H
24388#include <complex.h>
24389#endif
24390#ifdef HAVE_MATH_H
24391#include <math.h>
fb0a0e15 24392#endif
db9f46a9
TG
24393
24394int (*ptr)() = (int (*)())lgamma;
24395
fb0a0e15
FXC
24396int
24397main ()
24398{
fb0a0e15
FXC
24399 return 0;
24400}
db9f46a9 24401
fb0a0e15 24402_ACEOF
5213506e 24403if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24404 gcc_cv_math_func_lgamma=yes
fb0a0e15 24405else
db9f46a9 24406 gcc_cv_math_func_lgamma=no
fb0a0e15 24407fi
5213506e
RW
24408rm -f core conftest.err conftest.$ac_objext \
24409 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24410fi
db9f46a9
TG
24411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24412$as_echo "$gcc_cv_math_func_lgamma" >&6; }
24413 if test $gcc_cv_math_func_lgamma = yes; then
f1cdfa01 24414
f38a14ca
TG
24415cat >>confdefs.h <<_ACEOF
24416#define HAVE_LGAMMA 1
24417_ACEOF
db9f46a9
TG
24418
24419 fi
fb0a0e15 24420
fb0a0e15 24421
fb0a0e15 24422
db9f46a9
TG
24423
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24425$as_echo_n "checking for lgammaf... " >&6; }
24426if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
5213506e 24427 $as_echo_n "(cached) " >&6
fb0a0e15 24428else
db9f46a9 24429 if test x$gcc_no_link = xyes; then
5213506e 24430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24431fi
5213506e 24432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24433/* end confdefs.h. */
24434
db9f46a9
TG
24435#ifdef HAVE_COMPLEX_H
24436#include <complex.h>
fb0a0e15 24437#endif
db9f46a9
TG
24438#ifdef HAVE_MATH_H
24439#include <math.h>
24440#endif
24441
24442int (*ptr)() = (int (*)())lgammaf;
24443
fb0a0e15
FXC
24444int
24445main ()
24446{
fb0a0e15
FXC
24447 return 0;
24448}
db9f46a9 24449
fb0a0e15 24450_ACEOF
5213506e 24451if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24452 gcc_cv_math_func_lgammaf=yes
fb0a0e15 24453else
db9f46a9 24454 gcc_cv_math_func_lgammaf=no
fb0a0e15 24455fi
5213506e
RW
24456rm -f core conftest.err conftest.$ac_objext \
24457 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24458fi
db9f46a9
TG
24459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24460$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24461 if test $gcc_cv_math_func_lgammaf = yes; then
f1cdfa01 24462
f38a14ca
TG
24463cat >>confdefs.h <<_ACEOF
24464#define HAVE_LGAMMAF 1
24465_ACEOF
fb0a0e15 24466
db9f46a9 24467 fi
fb0a0e15 24468
fb0a0e15 24469
db9f46a9
TG
24470
24471
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24473$as_echo_n "checking for lgammal... " >&6; }
24474if test "${gcc_cv_math_func_lgammal+set}" = set; then :
5213506e 24475 $as_echo_n "(cached) " >&6
fb0a0e15 24476else
db9f46a9 24477 if test x$gcc_no_link = xyes; then
5213506e 24478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24479fi
5213506e 24480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24481/* end confdefs.h. */
24482
db9f46a9
TG
24483#ifdef HAVE_COMPLEX_H
24484#include <complex.h>
24485#endif
24486#ifdef HAVE_MATH_H
24487#include <math.h>
fb0a0e15 24488#endif
db9f46a9
TG
24489
24490int (*ptr)() = (int (*)())lgammal;
24491
fb0a0e15
FXC
24492int
24493main ()
24494{
fb0a0e15
FXC
24495 return 0;
24496}
db9f46a9 24497
fb0a0e15 24498_ACEOF
5213506e 24499if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24500 gcc_cv_math_func_lgammal=yes
fb0a0e15 24501else
db9f46a9 24502 gcc_cv_math_func_lgammal=no
fb0a0e15 24503fi
5213506e
RW
24504rm -f core conftest.err conftest.$ac_objext \
24505 conftest$ac_exeext conftest.$ac_ext
fb0a0e15 24506fi
db9f46a9
TG
24507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24508$as_echo "$gcc_cv_math_func_lgammal" >&6; }
24509 if test $gcc_cv_math_func_lgammal = yes; then
f1cdfa01 24510
f38a14ca
TG
24511cat >>confdefs.h <<_ACEOF
24512#define HAVE_LGAMMAL 1
24513_ACEOF
fb0a0e15 24514
db9f46a9 24515 fi
fb0a0e15 24516
a2a2059f 24517
db1cf15c 24518# Check for GFORTRAN_C99_1.1 funcs
db9f46a9
TG
24519
24520
24521
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24523$as_echo_n "checking for cacos... " >&6; }
24524if test "${gcc_cv_math_func_cacos+set}" = set; then :
db1cf15c
IS
24525 $as_echo_n "(cached) " >&6
24526else
db9f46a9 24527 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24529fi
24530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24531/* end confdefs.h. */
24532
db9f46a9
TG
24533#ifdef HAVE_COMPLEX_H
24534#include <complex.h>
db1cf15c 24535#endif
db9f46a9
TG
24536#ifdef HAVE_MATH_H
24537#include <math.h>
24538#endif
24539
24540int (*ptr)() = (int (*)())cacos;
24541
db1cf15c
IS
24542int
24543main ()
24544{
db1cf15c
IS
24545 return 0;
24546}
db9f46a9 24547
db1cf15c
IS
24548_ACEOF
24549if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24550 gcc_cv_math_func_cacos=yes
db1cf15c 24551else
db9f46a9 24552 gcc_cv_math_func_cacos=no
db1cf15c
IS
24553fi
24554rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24556fi
db9f46a9
TG
24557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24558$as_echo "$gcc_cv_math_func_cacos" >&6; }
24559 if test $gcc_cv_math_func_cacos = yes; then
f1cdfa01 24560
f38a14ca
TG
24561cat >>confdefs.h <<_ACEOF
24562#define HAVE_CACOS 1
24563_ACEOF
db1cf15c 24564
db9f46a9 24565 fi
db1cf15c 24566
db1cf15c 24567
db9f46a9
TG
24568
24569
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24571$as_echo_n "checking for cacosf... " >&6; }
24572if test "${gcc_cv_math_func_cacosf+set}" = set; then :
db1cf15c
IS
24573 $as_echo_n "(cached) " >&6
24574else
db9f46a9 24575 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24577fi
24578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24579/* end confdefs.h. */
24580
db9f46a9
TG
24581#ifdef HAVE_COMPLEX_H
24582#include <complex.h>
24583#endif
24584#ifdef HAVE_MATH_H
24585#include <math.h>
db1cf15c 24586#endif
db9f46a9
TG
24587
24588int (*ptr)() = (int (*)())cacosf;
24589
db1cf15c
IS
24590int
24591main ()
24592{
db1cf15c
IS
24593 return 0;
24594}
db9f46a9 24595
db1cf15c
IS
24596_ACEOF
24597if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24598 gcc_cv_math_func_cacosf=yes
db1cf15c 24599else
db9f46a9 24600 gcc_cv_math_func_cacosf=no
db1cf15c
IS
24601fi
24602rm -f core conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24604fi
db9f46a9
TG
24605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24606$as_echo "$gcc_cv_math_func_cacosf" >&6; }
24607 if test $gcc_cv_math_func_cacosf = yes; then
f1cdfa01 24608
f38a14ca
TG
24609cat >>confdefs.h <<_ACEOF
24610#define HAVE_CACOSF 1
24611_ACEOF
db9f46a9
TG
24612
24613 fi
db1cf15c 24614
db1cf15c 24615
db1cf15c 24616
db9f46a9
TG
24617
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24619$as_echo_n "checking for cacosh... " >&6; }
24620if test "${gcc_cv_math_func_cacosh+set}" = set; then :
db1cf15c
IS
24621 $as_echo_n "(cached) " >&6
24622else
db9f46a9 24623 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24625fi
24626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24627/* end confdefs.h. */
24628
db9f46a9
TG
24629#ifdef HAVE_COMPLEX_H
24630#include <complex.h>
db1cf15c 24631#endif
db9f46a9
TG
24632#ifdef HAVE_MATH_H
24633#include <math.h>
24634#endif
24635
24636int (*ptr)() = (int (*)())cacosh;
24637
db1cf15c
IS
24638int
24639main ()
24640{
db1cf15c
IS
24641 return 0;
24642}
db9f46a9 24643
db1cf15c
IS
24644_ACEOF
24645if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24646 gcc_cv_math_func_cacosh=yes
db1cf15c 24647else
db9f46a9 24648 gcc_cv_math_func_cacosh=no
db1cf15c
IS
24649fi
24650rm -f core conftest.err conftest.$ac_objext \
24651 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24652fi
db9f46a9
TG
24653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24654$as_echo "$gcc_cv_math_func_cacosh" >&6; }
24655 if test $gcc_cv_math_func_cacosh = yes; then
f1cdfa01 24656
f38a14ca
TG
24657cat >>confdefs.h <<_ACEOF
24658#define HAVE_CACOSH 1
24659_ACEOF
db9f46a9
TG
24660
24661 fi
24662
db1cf15c 24663
db1cf15c 24664
db1cf15c 24665
db9f46a9
TG
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24667$as_echo_n "checking for cacoshf... " >&6; }
24668if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
db1cf15c
IS
24669 $as_echo_n "(cached) " >&6
24670else
db9f46a9 24671 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24673fi
24674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24675/* end confdefs.h. */
24676
db9f46a9
TG
24677#ifdef HAVE_COMPLEX_H
24678#include <complex.h>
24679#endif
24680#ifdef HAVE_MATH_H
24681#include <math.h>
db1cf15c 24682#endif
db9f46a9
TG
24683
24684int (*ptr)() = (int (*)())cacoshf;
24685
db1cf15c
IS
24686int
24687main ()
24688{
db1cf15c
IS
24689 return 0;
24690}
db9f46a9 24691
db1cf15c
IS
24692_ACEOF
24693if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24694 gcc_cv_math_func_cacoshf=yes
db1cf15c 24695else
db9f46a9 24696 gcc_cv_math_func_cacoshf=no
db1cf15c
IS
24697fi
24698rm -f core conftest.err conftest.$ac_objext \
24699 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24700fi
db9f46a9
TG
24701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24702$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24703 if test $gcc_cv_math_func_cacoshf = yes; then
f1cdfa01 24704
f38a14ca
TG
24705cat >>confdefs.h <<_ACEOF
24706#define HAVE_CACOSHF 1
24707_ACEOF
db9f46a9
TG
24708
24709 fi
db1cf15c 24710
db1cf15c 24711
db1cf15c 24712
db9f46a9
TG
24713
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24715$as_echo_n "checking for cacoshl... " >&6; }
24716if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
db1cf15c
IS
24717 $as_echo_n "(cached) " >&6
24718else
db9f46a9 24719 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24721fi
24722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723/* end confdefs.h. */
24724
db9f46a9
TG
24725#ifdef HAVE_COMPLEX_H
24726#include <complex.h>
db1cf15c 24727#endif
db9f46a9
TG
24728#ifdef HAVE_MATH_H
24729#include <math.h>
24730#endif
24731
24732int (*ptr)() = (int (*)())cacoshl;
24733
db1cf15c
IS
24734int
24735main ()
24736{
db1cf15c
IS
24737 return 0;
24738}
db9f46a9 24739
db1cf15c
IS
24740_ACEOF
24741if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24742 gcc_cv_math_func_cacoshl=yes
db1cf15c 24743else
db9f46a9 24744 gcc_cv_math_func_cacoshl=no
db1cf15c
IS
24745fi
24746rm -f core conftest.err conftest.$ac_objext \
24747 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24748fi
db9f46a9
TG
24749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24750$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24751 if test $gcc_cv_math_func_cacoshl = yes; then
f1cdfa01 24752
f38a14ca
TG
24753cat >>confdefs.h <<_ACEOF
24754#define HAVE_CACOSHL 1
24755_ACEOF
db1cf15c 24756
db9f46a9 24757 fi
db1cf15c 24758
db1cf15c 24759
db9f46a9
TG
24760
24761
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24763$as_echo_n "checking for cacosl... " >&6; }
24764if test "${gcc_cv_math_func_cacosl+set}" = set; then :
db1cf15c
IS
24765 $as_echo_n "(cached) " >&6
24766else
db9f46a9 24767 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24768 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24769fi
24770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24771/* end confdefs.h. */
24772
db9f46a9
TG
24773#ifdef HAVE_COMPLEX_H
24774#include <complex.h>
24775#endif
24776#ifdef HAVE_MATH_H
24777#include <math.h>
db1cf15c 24778#endif
db9f46a9
TG
24779
24780int (*ptr)() = (int (*)())cacosl;
24781
db1cf15c
IS
24782int
24783main ()
24784{
db1cf15c
IS
24785 return 0;
24786}
db9f46a9 24787
db1cf15c
IS
24788_ACEOF
24789if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24790 gcc_cv_math_func_cacosl=yes
db1cf15c 24791else
db9f46a9 24792 gcc_cv_math_func_cacosl=no
db1cf15c
IS
24793fi
24794rm -f core conftest.err conftest.$ac_objext \
24795 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24796fi
db9f46a9
TG
24797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24798$as_echo "$gcc_cv_math_func_cacosl" >&6; }
24799 if test $gcc_cv_math_func_cacosl = yes; then
f1cdfa01 24800
f38a14ca
TG
24801cat >>confdefs.h <<_ACEOF
24802#define HAVE_CACOSL 1
24803_ACEOF
db9f46a9
TG
24804
24805 fi
db1cf15c 24806
db1cf15c 24807
db1cf15c 24808
db9f46a9
TG
24809
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24811$as_echo_n "checking for casin... " >&6; }
24812if test "${gcc_cv_math_func_casin+set}" = set; then :
db1cf15c
IS
24813 $as_echo_n "(cached) " >&6
24814else
db9f46a9 24815 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24816 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24817fi
24818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24819/* end confdefs.h. */
24820
db9f46a9
TG
24821#ifdef HAVE_COMPLEX_H
24822#include <complex.h>
db1cf15c 24823#endif
db9f46a9
TG
24824#ifdef HAVE_MATH_H
24825#include <math.h>
24826#endif
24827
24828int (*ptr)() = (int (*)())casin;
24829
db1cf15c
IS
24830int
24831main ()
24832{
db1cf15c
IS
24833 return 0;
24834}
db9f46a9 24835
db1cf15c
IS
24836_ACEOF
24837if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24838 gcc_cv_math_func_casin=yes
db1cf15c 24839else
db9f46a9 24840 gcc_cv_math_func_casin=no
db1cf15c
IS
24841fi
24842rm -f core conftest.err conftest.$ac_objext \
24843 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24844fi
db9f46a9
TG
24845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24846$as_echo "$gcc_cv_math_func_casin" >&6; }
24847 if test $gcc_cv_math_func_casin = yes; then
f1cdfa01 24848
f38a14ca
TG
24849cat >>confdefs.h <<_ACEOF
24850#define HAVE_CASIN 1
24851_ACEOF
db9f46a9
TG
24852
24853 fi
24854
db1cf15c 24855
db1cf15c 24856
db1cf15c 24857
db9f46a9
TG
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24859$as_echo_n "checking for casinf... " >&6; }
24860if test "${gcc_cv_math_func_casinf+set}" = set; then :
db1cf15c
IS
24861 $as_echo_n "(cached) " >&6
24862else
db9f46a9 24863 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24864 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24865fi
24866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24867/* end confdefs.h. */
24868
db9f46a9
TG
24869#ifdef HAVE_COMPLEX_H
24870#include <complex.h>
24871#endif
24872#ifdef HAVE_MATH_H
24873#include <math.h>
db1cf15c 24874#endif
db9f46a9
TG
24875
24876int (*ptr)() = (int (*)())casinf;
24877
db1cf15c
IS
24878int
24879main ()
24880{
db1cf15c
IS
24881 return 0;
24882}
db9f46a9 24883
db1cf15c
IS
24884_ACEOF
24885if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24886 gcc_cv_math_func_casinf=yes
db1cf15c 24887else
db9f46a9 24888 gcc_cv_math_func_casinf=no
db1cf15c
IS
24889fi
24890rm -f core conftest.err conftest.$ac_objext \
24891 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24892fi
db9f46a9
TG
24893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24894$as_echo "$gcc_cv_math_func_casinf" >&6; }
24895 if test $gcc_cv_math_func_casinf = yes; then
f1cdfa01 24896
f38a14ca
TG
24897cat >>confdefs.h <<_ACEOF
24898#define HAVE_CASINF 1
24899_ACEOF
db9f46a9
TG
24900
24901 fi
db1cf15c 24902
db1cf15c 24903
db1cf15c 24904
db9f46a9
TG
24905
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24907$as_echo_n "checking for casinh... " >&6; }
24908if test "${gcc_cv_math_func_casinh+set}" = set; then :
db1cf15c
IS
24909 $as_echo_n "(cached) " >&6
24910else
db9f46a9 24911 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24913fi
24914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915/* end confdefs.h. */
24916
db9f46a9
TG
24917#ifdef HAVE_COMPLEX_H
24918#include <complex.h>
db1cf15c 24919#endif
db9f46a9
TG
24920#ifdef HAVE_MATH_H
24921#include <math.h>
24922#endif
24923
24924int (*ptr)() = (int (*)())casinh;
24925
db1cf15c
IS
24926int
24927main ()
24928{
db1cf15c
IS
24929 return 0;
24930}
db9f46a9 24931
db1cf15c
IS
24932_ACEOF
24933if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24934 gcc_cv_math_func_casinh=yes
db1cf15c 24935else
db9f46a9 24936 gcc_cv_math_func_casinh=no
db1cf15c
IS
24937fi
24938rm -f core conftest.err conftest.$ac_objext \
24939 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24940fi
db9f46a9
TG
24941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24942$as_echo "$gcc_cv_math_func_casinh" >&6; }
24943 if test $gcc_cv_math_func_casinh = yes; then
f1cdfa01 24944
f38a14ca
TG
24945cat >>confdefs.h <<_ACEOF
24946#define HAVE_CASINH 1
24947_ACEOF
db1cf15c 24948
db9f46a9 24949 fi
db1cf15c 24950
db1cf15c 24951
db9f46a9
TG
24952
24953
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24955$as_echo_n "checking for casinhf... " >&6; }
24956if test "${gcc_cv_math_func_casinhf+set}" = set; then :
db1cf15c
IS
24957 $as_echo_n "(cached) " >&6
24958else
db9f46a9 24959 if test x$gcc_no_link = xyes; then
db1cf15c
IS
24960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24961fi
24962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24963/* end confdefs.h. */
24964
db9f46a9
TG
24965#ifdef HAVE_COMPLEX_H
24966#include <complex.h>
24967#endif
24968#ifdef HAVE_MATH_H
24969#include <math.h>
db1cf15c 24970#endif
db9f46a9
TG
24971
24972int (*ptr)() = (int (*)())casinhf;
24973
db1cf15c
IS
24974int
24975main ()
24976{
db1cf15c
IS
24977 return 0;
24978}
db9f46a9 24979
db1cf15c
IS
24980_ACEOF
24981if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 24982 gcc_cv_math_func_casinhf=yes
db1cf15c 24983else
db9f46a9 24984 gcc_cv_math_func_casinhf=no
db1cf15c
IS
24985fi
24986rm -f core conftest.err conftest.$ac_objext \
24987 conftest$ac_exeext conftest.$ac_ext
db1cf15c 24988fi
db9f46a9
TG
24989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24990$as_echo "$gcc_cv_math_func_casinhf" >&6; }
24991 if test $gcc_cv_math_func_casinhf = yes; then
f1cdfa01 24992
f38a14ca
TG
24993cat >>confdefs.h <<_ACEOF
24994#define HAVE_CASINHF 1
24995_ACEOF
db9f46a9
TG
24996
24997 fi
db1cf15c 24998
db1cf15c 24999
db1cf15c 25000
db9f46a9
TG
25001
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25003$as_echo_n "checking for casinhl... " >&6; }
25004if test "${gcc_cv_math_func_casinhl+set}" = set; then :
db1cf15c
IS
25005 $as_echo_n "(cached) " >&6
25006else
db9f46a9 25007 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25008 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25009fi
25010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25011/* end confdefs.h. */
25012
db9f46a9
TG
25013#ifdef HAVE_COMPLEX_H
25014#include <complex.h>
db1cf15c 25015#endif
db9f46a9
TG
25016#ifdef HAVE_MATH_H
25017#include <math.h>
25018#endif
25019
25020int (*ptr)() = (int (*)())casinhl;
25021
db1cf15c
IS
25022int
25023main ()
25024{
db1cf15c
IS
25025 return 0;
25026}
db9f46a9 25027
db1cf15c
IS
25028_ACEOF
25029if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25030 gcc_cv_math_func_casinhl=yes
db1cf15c 25031else
db9f46a9 25032 gcc_cv_math_func_casinhl=no
db1cf15c
IS
25033fi
25034rm -f core conftest.err conftest.$ac_objext \
25035 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25036fi
db9f46a9
TG
25037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25038$as_echo "$gcc_cv_math_func_casinhl" >&6; }
25039 if test $gcc_cv_math_func_casinhl = yes; then
f1cdfa01 25040
f38a14ca
TG
25041cat >>confdefs.h <<_ACEOF
25042#define HAVE_CASINHL 1
25043_ACEOF
db9f46a9
TG
25044
25045 fi
25046
db1cf15c 25047
db1cf15c 25048
db1cf15c 25049
db9f46a9
TG
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25051$as_echo_n "checking for casinl... " >&6; }
25052if test "${gcc_cv_math_func_casinl+set}" = set; then :
db1cf15c
IS
25053 $as_echo_n "(cached) " >&6
25054else
db9f46a9 25055 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25057fi
25058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059/* end confdefs.h. */
25060
db9f46a9
TG
25061#ifdef HAVE_COMPLEX_H
25062#include <complex.h>
25063#endif
25064#ifdef HAVE_MATH_H
25065#include <math.h>
db1cf15c 25066#endif
db9f46a9
TG
25067
25068int (*ptr)() = (int (*)())casinl;
25069
db1cf15c
IS
25070int
25071main ()
25072{
db1cf15c
IS
25073 return 0;
25074}
db9f46a9 25075
db1cf15c
IS
25076_ACEOF
25077if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25078 gcc_cv_math_func_casinl=yes
db1cf15c 25079else
db9f46a9 25080 gcc_cv_math_func_casinl=no
db1cf15c
IS
25081fi
25082rm -f core conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25084fi
db9f46a9
TG
25085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25086$as_echo "$gcc_cv_math_func_casinl" >&6; }
25087 if test $gcc_cv_math_func_casinl = yes; then
f1cdfa01 25088
f38a14ca
TG
25089cat >>confdefs.h <<_ACEOF
25090#define HAVE_CASINL 1
25091_ACEOF
db9f46a9
TG
25092
25093 fi
db1cf15c 25094
db1cf15c 25095
db1cf15c 25096
db9f46a9
TG
25097
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25099$as_echo_n "checking for catan... " >&6; }
25100if test "${gcc_cv_math_func_catan+set}" = set; then :
db1cf15c
IS
25101 $as_echo_n "(cached) " >&6
25102else
db9f46a9 25103 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25105fi
25106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25107/* end confdefs.h. */
25108
db9f46a9
TG
25109#ifdef HAVE_COMPLEX_H
25110#include <complex.h>
db1cf15c 25111#endif
db9f46a9
TG
25112#ifdef HAVE_MATH_H
25113#include <math.h>
25114#endif
25115
25116int (*ptr)() = (int (*)())catan;
25117
db1cf15c
IS
25118int
25119main ()
25120{
db1cf15c
IS
25121 return 0;
25122}
db9f46a9 25123
db1cf15c
IS
25124_ACEOF
25125if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25126 gcc_cv_math_func_catan=yes
db1cf15c 25127else
db9f46a9 25128 gcc_cv_math_func_catan=no
db1cf15c
IS
25129fi
25130rm -f core conftest.err conftest.$ac_objext \
25131 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25132fi
db9f46a9
TG
25133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25134$as_echo "$gcc_cv_math_func_catan" >&6; }
25135 if test $gcc_cv_math_func_catan = yes; then
f1cdfa01 25136
f38a14ca
TG
25137cat >>confdefs.h <<_ACEOF
25138#define HAVE_CATAN 1
25139_ACEOF
db1cf15c 25140
db9f46a9 25141 fi
db1cf15c 25142
db1cf15c 25143
db9f46a9
TG
25144
25145
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25147$as_echo_n "checking for catanf... " >&6; }
25148if test "${gcc_cv_math_func_catanf+set}" = set; then :
db1cf15c
IS
25149 $as_echo_n "(cached) " >&6
25150else
db9f46a9 25151 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25153fi
25154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155/* end confdefs.h. */
25156
db9f46a9
TG
25157#ifdef HAVE_COMPLEX_H
25158#include <complex.h>
25159#endif
25160#ifdef HAVE_MATH_H
25161#include <math.h>
db1cf15c 25162#endif
db9f46a9
TG
25163
25164int (*ptr)() = (int (*)())catanf;
25165
db1cf15c
IS
25166int
25167main ()
25168{
db1cf15c
IS
25169 return 0;
25170}
db9f46a9 25171
db1cf15c
IS
25172_ACEOF
25173if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25174 gcc_cv_math_func_catanf=yes
db1cf15c 25175else
db9f46a9 25176 gcc_cv_math_func_catanf=no
db1cf15c
IS
25177fi
25178rm -f core conftest.err conftest.$ac_objext \
25179 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25180fi
db9f46a9
TG
25181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25182$as_echo "$gcc_cv_math_func_catanf" >&6; }
25183 if test $gcc_cv_math_func_catanf = yes; then
f1cdfa01 25184
f38a14ca
TG
25185cat >>confdefs.h <<_ACEOF
25186#define HAVE_CATANF 1
25187_ACEOF
db9f46a9
TG
25188
25189 fi
db1cf15c 25190
db1cf15c 25191
db1cf15c 25192
db9f46a9
TG
25193
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25195$as_echo_n "checking for catanh... " >&6; }
25196if test "${gcc_cv_math_func_catanh+set}" = set; then :
db1cf15c
IS
25197 $as_echo_n "(cached) " >&6
25198else
db9f46a9 25199 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25201fi
25202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203/* end confdefs.h. */
25204
db9f46a9
TG
25205#ifdef HAVE_COMPLEX_H
25206#include <complex.h>
db1cf15c 25207#endif
db9f46a9
TG
25208#ifdef HAVE_MATH_H
25209#include <math.h>
25210#endif
25211
25212int (*ptr)() = (int (*)())catanh;
25213
db1cf15c
IS
25214int
25215main ()
25216{
db1cf15c
IS
25217 return 0;
25218}
db9f46a9 25219
db1cf15c
IS
25220_ACEOF
25221if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25222 gcc_cv_math_func_catanh=yes
db1cf15c 25223else
db9f46a9 25224 gcc_cv_math_func_catanh=no
db1cf15c
IS
25225fi
25226rm -f core conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25228fi
db9f46a9
TG
25229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25230$as_echo "$gcc_cv_math_func_catanh" >&6; }
25231 if test $gcc_cv_math_func_catanh = yes; then
f1cdfa01 25232
f38a14ca
TG
25233cat >>confdefs.h <<_ACEOF
25234#define HAVE_CATANH 1
25235_ACEOF
db9f46a9
TG
25236
25237 fi
25238
db1cf15c 25239
db1cf15c 25240
db1cf15c 25241
db9f46a9
TG
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25243$as_echo_n "checking for catanhf... " >&6; }
25244if test "${gcc_cv_math_func_catanhf+set}" = set; then :
db1cf15c
IS
25245 $as_echo_n "(cached) " >&6
25246else
db9f46a9 25247 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25249fi
25250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251/* end confdefs.h. */
25252
db9f46a9
TG
25253#ifdef HAVE_COMPLEX_H
25254#include <complex.h>
25255#endif
25256#ifdef HAVE_MATH_H
25257#include <math.h>
db1cf15c 25258#endif
db9f46a9
TG
25259
25260int (*ptr)() = (int (*)())catanhf;
25261
db1cf15c
IS
25262int
25263main ()
25264{
db1cf15c
IS
25265 return 0;
25266}
db9f46a9 25267
db1cf15c
IS
25268_ACEOF
25269if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25270 gcc_cv_math_func_catanhf=yes
db1cf15c 25271else
db9f46a9 25272 gcc_cv_math_func_catanhf=no
db1cf15c
IS
25273fi
25274rm -f core conftest.err conftest.$ac_objext \
25275 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25276fi
db9f46a9
TG
25277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25278$as_echo "$gcc_cv_math_func_catanhf" >&6; }
25279 if test $gcc_cv_math_func_catanhf = yes; then
f1cdfa01 25280
f38a14ca
TG
25281cat >>confdefs.h <<_ACEOF
25282#define HAVE_CATANHF 1
25283_ACEOF
db9f46a9
TG
25284
25285 fi
db1cf15c 25286
db1cf15c 25287
db1cf15c 25288
db9f46a9
TG
25289
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25291$as_echo_n "checking for catanhl... " >&6; }
25292if test "${gcc_cv_math_func_catanhl+set}" = set; then :
db1cf15c
IS
25293 $as_echo_n "(cached) " >&6
25294else
db9f46a9 25295 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25296 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25297fi
25298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25299/* end confdefs.h. */
25300
db9f46a9
TG
25301#ifdef HAVE_COMPLEX_H
25302#include <complex.h>
db1cf15c 25303#endif
db9f46a9
TG
25304#ifdef HAVE_MATH_H
25305#include <math.h>
25306#endif
25307
25308int (*ptr)() = (int (*)())catanhl;
25309
db1cf15c
IS
25310int
25311main ()
25312{
db1cf15c
IS
25313 return 0;
25314}
db9f46a9 25315
db1cf15c
IS
25316_ACEOF
25317if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25318 gcc_cv_math_func_catanhl=yes
db1cf15c 25319else
db9f46a9 25320 gcc_cv_math_func_catanhl=no
db1cf15c
IS
25321fi
25322rm -f core conftest.err conftest.$ac_objext \
25323 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25324fi
db9f46a9
TG
25325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25326$as_echo "$gcc_cv_math_func_catanhl" >&6; }
25327 if test $gcc_cv_math_func_catanhl = yes; then
f1cdfa01 25328
f38a14ca
TG
25329cat >>confdefs.h <<_ACEOF
25330#define HAVE_CATANHL 1
25331_ACEOF
db1cf15c 25332
db9f46a9 25333 fi
db1cf15c 25334
db1cf15c 25335
db9f46a9
TG
25336
25337
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25339$as_echo_n "checking for catanl... " >&6; }
25340if test "${gcc_cv_math_func_catanl+set}" = set; then :
db1cf15c
IS
25341 $as_echo_n "(cached) " >&6
25342else
db9f46a9 25343 if test x$gcc_no_link = xyes; then
db1cf15c
IS
25344 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25345fi
25346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25347/* end confdefs.h. */
25348
db9f46a9
TG
25349#ifdef HAVE_COMPLEX_H
25350#include <complex.h>
25351#endif
25352#ifdef HAVE_MATH_H
25353#include <math.h>
db1cf15c 25354#endif
db9f46a9
TG
25355
25356int (*ptr)() = (int (*)())catanl;
25357
db1cf15c
IS
25358int
25359main ()
25360{
db1cf15c
IS
25361 return 0;
25362}
db9f46a9 25363
db1cf15c
IS
25364_ACEOF
25365if ac_fn_c_try_link "$LINENO"; then :
db9f46a9 25366 gcc_cv_math_func_catanl=yes
db1cf15c 25367else
db9f46a9 25368 gcc_cv_math_func_catanl=no
db1cf15c
IS
25369fi
25370rm -f core conftest.err conftest.$ac_objext \
25371 conftest$ac_exeext conftest.$ac_ext
db1cf15c 25372fi
db9f46a9
TG
25373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25374$as_echo "$gcc_cv_math_func_catanl" >&6; }
25375 if test $gcc_cv_math_func_catanl = yes; then
f1cdfa01 25376
f38a14ca
TG
25377cat >>confdefs.h <<_ACEOF
25378#define HAVE_CATANL 1
25379_ACEOF
db1cf15c 25380
db9f46a9 25381 fi
db1cf15c
IS
25382
25383
118ea208 25384# On AIX, clog is present in libm as __clog
5213506e
RW
25385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25386$as_echo_n "checking for __clog in -lm... " >&6; }
25387if test "${ac_cv_lib_m___clog+set}" = set; then :
25388 $as_echo_n "(cached) " >&6
e097b4f1
DE
25389else
25390 ac_check_lib_save_LIBS=$LIBS
25391LIBS="-lm $LIBS"
25392if test x$gcc_no_link = xyes; then
5213506e 25393 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 25394fi
5213506e 25395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
25396/* end confdefs.h. */
25397
5213506e
RW
25398/* Override any GCC internal prototype to avoid an error.
25399 Use char because int might match the return type of a GCC
25400 builtin and then its argument prototype would still apply. */
e097b4f1
DE
25401#ifdef __cplusplus
25402extern "C"
25403#endif
e097b4f1
DE
25404char __clog ();
25405int
25406main ()
25407{
5213506e 25408return __clog ();
e097b4f1
DE
25409 ;
25410 return 0;
25411}
25412_ACEOF
5213506e 25413if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
25414 ac_cv_lib_m___clog=yes
25415else
5213506e 25416 ac_cv_lib_m___clog=no
e097b4f1 25417fi
5213506e
RW
25418rm -f core conftest.err conftest.$ac_objext \
25419 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
25420LIBS=$ac_check_lib_save_LIBS
25421fi
5213506e
RW
25422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25423$as_echo "$ac_cv_lib_m___clog" >&6; }
25424if test "x$ac_cv_lib_m___clog" = x""yes; then :
e097b4f1 25425
5213506e 25426$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
25427
25428fi
25429
25430
ad238e4f
FXC
25431# Check whether the system has a working stat()
25432
5213506e
RW
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25434$as_echo_n "checking whether the target stat is reliable... " >&6; }
25435if test "${libgfor_cv_have_working_stat+set}" = set; then :
25436 $as_echo_n "(cached) " >&6
ad238e4f
FXC
25437else
25438
5213506e 25439 if test "$cross_compiling" = yes; then :
ad238e4f
FXC
25440
25441case "${target}" in
6d26724a
RW
25442 *mingw*) libgfor_cv_have_working_stat=no ;;
25443 *) libgfor_cv_have_working_stat=yes;;
ad238e4f
FXC
25444esac
25445else
5213506e 25446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
25447/* end confdefs.h. */
25448
25449#include <stdio.h>
25450#include <sys/types.h>
25451#include <sys/stat.h>
25452#include <unistd.h>
25453
25454int main ()
25455{
25456 FILE *f, *g;
25457 struct stat st1, st2;
25458
25459 f = fopen ("foo", "w");
25460 g = fopen ("bar", "w");
25461 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25462 return 1;
25463 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25464 return 1;
25465 fclose(f);
25466 fclose(g);
25467 return 0;
25468}
25469_ACEOF
5213506e 25470if ac_fn_c_try_run "$LINENO"; then :
6d26724a 25471 libgfor_cv_have_working_stat=yes
ad238e4f 25472else
5213506e 25473 libgfor_cv_have_working_stat=no
ad238e4f 25474fi
5213506e
RW
25475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25476 conftest.$ac_objext conftest.beam conftest.$ac_ext
ad238e4f 25477fi
5213506e 25478
ad238e4f 25479fi
5213506e
RW
25480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25481$as_echo "$libgfor_cv_have_working_stat" >&6; }
6d26724a 25482if test x"$libgfor_cv_have_working_stat" = xyes; then
ad238e4f 25483
5213506e 25484$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
ad238e4f
FXC
25485
25486fi
25487
db8092dc
FXC
25488# Check whether __mingw_snprintf() is present
25489
5213506e
RW
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25491$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25492if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25493 $as_echo_n "(cached) " >&6
db8092dc
FXC
25494else
25495
25496 if test x$gcc_no_link = xyes; then
5213506e 25497 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 25498fi
5213506e 25499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
25500/* end confdefs.h. */
25501
25502#include <stdio.h>
25503extern int __mingw_snprintf (char *, size_t, const char *, ...);
25504
25505int
25506main ()
25507{
25508
25509__mingw_snprintf (NULL, 0, "%d\n", 1);
25510
25511 ;
25512 return 0;
25513}
25514_ACEOF
5213506e 25515if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25516 eval "libgfor_cv_have_mingw_snprintf=yes"
db8092dc 25517else
5213506e 25518 eval "libgfor_cv_have_mingw_snprintf=no"
db8092dc 25519fi
5213506e
RW
25520rm -f core conftest.err conftest.$ac_objext \
25521 conftest$ac_exeext conftest.$ac_ext
db8092dc
FXC
25522
25523fi
5213506e
RW
25524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25525$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6d26724a 25526 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
db8092dc 25527
5213506e 25528$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
db8092dc
FXC
25529
25530 fi
25531
25532
c0c3c409
JDA
25533# Check for a broken powf implementation
25534
5213506e
RW
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether powf is broken" >&5
25536$as_echo_n "checking whether powf is broken... " >&6; }
25537if test "${libgfor_cv_have_broken_powf+set}" = set; then :
25538 $as_echo_n "(cached) " >&6
c0c3c409
JDA
25539else
25540
25541case "${target}" in
25542 hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
25543 *) libgfor_cv_have_broken_powf=no;;
25544esac
25545fi
5213506e
RW
25546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_powf" >&5
25547$as_echo "$libgfor_cv_have_broken_powf" >&6; }
c0c3c409
JDA
25548 if test x"$libgfor_cv_have_broken_powf" = xyes; then
25549
5213506e 25550$as_echo "#define HAVE_BROKEN_POWF 1" >>confdefs.h
c0c3c409
JDA
25551
25552 fi
25553
25554
87e6d9dc
TB
25555# Check whether libquadmath should be used
25556# Check whether --enable-libquadmath-support was given.
25557if test "${enable_libquadmath_support+set}" = set; then :
25558 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25559else
25560 ENABLE_LIBQUADMATH_SUPPORT=yes
25561fi
25562
25563enable_libquadmath_support=
25564if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25565 enable_libquadmath_support=no
25566fi
25567
25568# Check whether we have a __float128 type, depends on enable_libquadmath_support
1ec601bf
FXC
25569
25570 LIBQUADSPEC=
87e6d9dc
TB
25571
25572 if test "x$enable_libquadmath_support" != xno; then
25573
1ec601bf
FXC
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25575$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25576if test "${libgfor_cv_have_float128+set}" = set; then :
25577 $as_echo_n "(cached) " >&6
25578else
25579
69eb61d4
TB
25580 if test x$gcc_no_link = xyes; then
25581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
25582/* end confdefs.h. */
25583
69eb61d4
TB
25584 typedef _Complex float __attribute__((mode(TC))) __complex128;
25585
25586 __float128 foo (__float128 x)
25587 {
25588
25589 __complex128 z1, z2;
25590
25591 z1 = x;
25592 z2 = x / 7.Q;
25593 z2 /= z1;
25594
25595 return (__float128) z2;
25596 }
25597
25598 __float128 bar (__float128 x)
25599 {
25600 return x * __builtin_huge_valq ();
25601 }
1ec601bf
FXC
25602
25603int
25604main ()
25605{
25606
69eb61d4
TB
25607 foo (1.2Q);
25608 bar (1.2Q);
1ec601bf 25609
69eb61d4
TB
25610 ;
25611 return 0;
25612}
25613_ACEOF
25614if ac_fn_c_try_compile "$LINENO"; then :
1ec601bf 25615
69eb61d4 25616 libgfor_cv_have_float128=yes
1ec601bf 25617
69eb61d4
TB
25618else
25619
25620 libgfor_cv_have_float128=no
25621
25622fi
25623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25624else
25625 if test x$gcc_no_link = xyes; then
25626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25627fi
25628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629/* end confdefs.h. */
25630
25631 typedef _Complex float __attribute__((mode(TC))) __complex128;
25632
25633 __float128 foo (__float128 x)
25634 {
25635
25636 __complex128 z1, z2;
25637
25638 z1 = x;
25639 z2 = x / 7.Q;
25640 z2 /= z1;
25641
25642 return (__float128) z2;
25643 }
25644
25645 __float128 bar (__float128 x)
25646 {
25647 return x * __builtin_huge_valq ();
25648 }
25649
25650int
25651main ()
25652{
25653
25654 foo (1.2Q);
25655 bar (1.2Q);
1ec601bf
FXC
25656
25657 ;
25658 return 0;
25659}
25660_ACEOF
25661if ac_fn_c_try_link "$LINENO"; then :
69eb61d4
TB
25662
25663 libgfor_cv_have_float128=yes
25664
1ec601bf 25665else
69eb61d4
TB
25666
25667 libgfor_cv_have_float128=no
25668
1ec601bf
FXC
25669fi
25670rm -f core conftest.err conftest.$ac_objext \
25671 conftest$ac_exeext conftest.$ac_ext
69eb61d4 25672fi
1ec601bf
FXC
25673fi
25674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25675$as_echo "$libgfor_cv_have_float128" >&6; }
25676
25677 if test "x$libgfor_cv_have_float128" = xyes; then
25678
25679$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25680
25681
25682 ac_xsave_c_werror_flag=$ac_c_werror_flag
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed works" >&5
25684$as_echo_n "checking whether --as-needed works... " >&6; }
25685if test "${libgfor_cv_have_as_needed+set}" = set; then :
25686 $as_echo_n "(cached) " >&6
25687else
25688
25689 save_LDFLAGS="$LDFLAGS"
25690 LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed"
25691 libgfor_cv_have_as_needed=no
25692
25693ac_c_werror_flag=yes
25694 if test x$gcc_no_link = xyes; then
25695 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25696fi
25697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698/* end confdefs.h. */
25699
25700int
25701main ()
25702{
25703
25704 ;
25705 return 0;
25706}
25707_ACEOF
25708if ac_fn_c_try_link "$LINENO"; then :
25709 libgfor_cv_have_as_needed=yes
25710else
25711 libgfor_cv_have_as_needed=no
25712fi
25713rm -f core conftest.err conftest.$ac_objext \
25714 conftest$ac_exeext conftest.$ac_ext
25715 LDFLAGS="$save_LDFLAGS"
25716 ac_c_werror_flag=$ac_xsave_c_werror_flag
25717
25718fi
25719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25720$as_echo "$libgfor_cv_have_as_needed" >&6; }
25721
25722 if test "x$libgfor_cv_have_as_needed" = xyes; then
25723 LIBQUADSPEC="%{static-libgfortran:--as-needed} -lquadmath %{static-libgfortran:--no-as-needed}"
25724 else
25725 LIBQUADSPEC="-lquadmath"
25726 fi
25727 if test -f ../libquadmath/libquadmath.la; then
25728 LIBQUADLIB=../libquadmath/libquadmath.la
25729 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25730 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25731 else
25732 LIBQUADLIB="-lquadmath"
25733 LIBQUADLIB_DEP=
25734 LIBQUADINCLUDE=
25735 fi
25736 fi
87e6d9dc
TB
25737 else
25738 # for --disable-quadmath
25739 LIBQUADLIB=
25740 LIBQUADLIB_DEP=
25741 LIBQUADINCLUDE=
25742 fi
1ec601bf
FXC
25743
25744
25745
25746
25747
25748
25749 if test "x$libgfor_cv_have_float128" = xyes; then
25750 LIBGFOR_BUILD_QUAD_TRUE=
25751 LIBGFOR_BUILD_QUAD_FALSE='#'
25752else
25753 LIBGFOR_BUILD_QUAD_TRUE='#'
25754 LIBGFOR_BUILD_QUAD_FALSE=
25755fi
25756
25757
25758
944b8b35 25759# Check for GNU libc feenableexcept
5213506e
RW
25760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25761$as_echo_n "checking for feenableexcept in -lm... " >&6; }
25762if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25763 $as_echo_n "(cached) " >&6
944b8b35
FXC
25764else
25765 ac_check_lib_save_LIBS=$LIBS
25766LIBS="-lm $LIBS"
25767if test x$gcc_no_link = xyes; then
5213506e 25768 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 25769fi
5213506e 25770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
25771/* end confdefs.h. */
25772
5213506e
RW
25773/* Override any GCC internal prototype to avoid an error.
25774 Use char because int might match the return type of a GCC
25775 builtin and then its argument prototype would still apply. */
944b8b35
FXC
25776#ifdef __cplusplus
25777extern "C"
25778#endif
944b8b35
FXC
25779char feenableexcept ();
25780int
25781main ()
25782{
5213506e 25783return feenableexcept ();
944b8b35
FXC
25784 ;
25785 return 0;
25786}
25787_ACEOF
5213506e 25788if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
25789 ac_cv_lib_m_feenableexcept=yes
25790else
5213506e 25791 ac_cv_lib_m_feenableexcept=no
944b8b35 25792fi
5213506e
RW
25793rm -f core conftest.err conftest.$ac_objext \
25794 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
25795LIBS=$ac_check_lib_save_LIBS
25796fi
5213506e
RW
25797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25798$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25799if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
944b8b35 25800 have_feenableexcept=yes
5213506e 25801$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
25802
25803fi
25804
3b14f664 25805
5c30094f 25806# At least for glibc, clock_gettime is in librt. But don't
2aadeae2
JB
25807# pull that in if it still doesn't give us the function we want. This
25808# test is copied from libgomp, and modified to not link in -lrt as
25809# libgfortran calls clock_gettime via a weak reference if it's found
25810# in librt.
b6e7a3d1
JB
25811if test $ac_cv_func_clock_gettime = no; then
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25813$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25814if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25815 $as_echo_n "(cached) " >&6
25816else
25817 ac_check_lib_save_LIBS=$LIBS
25818LIBS="-lrt $LIBS"
25819if test x$gcc_no_link = xyes; then
25820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25821fi
25822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25823/* end confdefs.h. */
25824
25825/* Override any GCC internal prototype to avoid an error.
25826 Use char because int might match the return type of a GCC
25827 builtin and then its argument prototype would still apply. */
25828#ifdef __cplusplus
25829extern "C"
25830#endif
25831char clock_gettime ();
25832int
25833main ()
25834{
25835return clock_gettime ();
25836 ;
25837 return 0;
25838}
25839_ACEOF
25840if ac_fn_c_try_link "$LINENO"; then :
25841 ac_cv_lib_rt_clock_gettime=yes
25842else
25843 ac_cv_lib_rt_clock_gettime=no
25844fi
25845rm -f core conftest.err conftest.$ac_objext \
25846 conftest$ac_exeext conftest.$ac_ext
25847LIBS=$ac_check_lib_save_LIBS
25848fi
25849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25850$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25851if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
b6e7a3d1 25852
2aadeae2 25853$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
b6e7a3d1
JB
25854
25855fi
25856
25857fi
25858
5213506e 25859# Check for SysV fpsetmask
3b14f664 25860
5213506e
RW
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25862$as_echo_n "checking whether fpsetmask is present... " >&6; }
25863if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25864 $as_echo_n "(cached) " >&6
25865else
3b14f664 25866
5213506e
RW
25867 if test x$gcc_no_link = xyes; then
25868 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25869fi
25870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25871/* end confdefs.h. */
3b14f664 25872
5213506e
RW
25873#if HAVE_FLOATINGPOINT_H
25874# include <floatingpoint.h>
25875#endif /* HAVE_FLOATINGPOINT_H */
25876#if HAVE_IEEEFP_H
25877# include <ieeefp.h>
25878#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
25879int
25880main ()
25881{
5213506e 25882fpsetmask(0);
3b14f664
FXC
25883 ;
25884 return 0;
25885}
25886_ACEOF
5213506e
RW
25887if ac_fn_c_try_link "$LINENO"; then :
25888 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 25889else
5213506e
RW
25890 eval "libgfor_cv_have_fpsetmask=no"
25891fi
25892rm -f core conftest.err conftest.$ac_objext \
25893 conftest$ac_exeext conftest.$ac_ext
3b14f664 25894
3b14f664 25895fi
5213506e
RW
25896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25897$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25898 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
1b9fef3e 25899 have_fpsetmask=yes
5213506e
RW
25900
25901$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25902
25903 fi
25904
25905
25906# Check for AIX fp_trap and fp_enable
25907ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25908if test "x$ac_cv_func_fp_trap" = x""yes; then :
25909 have_fp_trap=yes
25910$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25911
3b14f664 25912fi
5213506e
RW
25913
25914ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25915if test "x$ac_cv_func_fp_enable" = x""yes; then :
3b14f664 25916 have_fp_enable=yes
5213506e 25917$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
25918
25919fi
25920
25921
944b8b35
FXC
25922# Runs configure.host to set up necessary host-dependent shell variables.
25923# We then display a message about it, and propagate them through the
25924# build chain.
25925. ${srcdir}/configure.host
5213506e
RW
25926{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25927$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
944b8b35
FXC
25928FPU_HOST_HEADER=config/${fpu_host}.h
25929
25930
9fc77574
KK
25931# Some targets require additional compiler options for IEEE compatibility.
25932IEEE_FLAGS="${ieee_flags}"
25933
25934
23e6d4a5
JB
25935
25936# Check for POSIX getpwuid_r
25937#
25938# There are two versions of getpwuid_r, the POSIX one with 5
25939# arguments, and another one with 4 arguments used by at least HP-UX
25940# 10.2.
25941if test "$ac_cv_func_getpwuid_r" = "yes"; then
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25943$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25944if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25945 $as_echo_n "(cached) " >&6
25946else
25947
25948 if test x$gcc_no_link = xyes; then
25949 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25950fi
25951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25952/* end confdefs.h. */
25953
25954#include <stdio.h>
25955#include <sys/types.h>
25956#include <pwd.h>
25957int
25958main ()
25959{
25960
25961 getpwuid_r(0, NULL, NULL, 0, NULL);
25962
25963 ;
25964 return 0;
25965}
25966_ACEOF
25967if ac_fn_c_try_link "$LINENO"; then :
25968 libgfor_cv_posix_getpwuid_r="yes"
25969else
25970 libgfor_cv_posix_getpwuid_r="no"
25971fi
25972rm -f core conftest.err conftest.$ac_objext \
25973 conftest$ac_exeext conftest.$ac_ext
25974fi
25975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
25976$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
25977fi
25978if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
25979
25980$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25981
25982fi
25983
25984
7d7b8bfe
RH
25985# Check out attribute support.
25986
5213506e
RW
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25988$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25989if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25990 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
25991else
25992
25993 save_CFLAGS="$CFLAGS"
25994 CFLAGS="$CFLAGS -Werror"
5213506e 25995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
25996/* end confdefs.h. */
25997void __attribute__((visibility("hidden"))) foo(void) { }
25998int
25999main ()
26000{
26001
26002 ;
26003 return 0;
26004}
26005_ACEOF
5213506e 26006if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 26007 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 26008else
5213506e 26009 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 26010fi
5213506e 26011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
26012 CFLAGS="$save_CFLAGS"
26013fi
5213506e
RW
26014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26015$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 26016 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 26017
5213506e 26018$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
26019
26020 fi
26021
5213506e
RW
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26023$as_echo_n "checking whether the target supports dllexport... " >&6; }
26024if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26025 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
26026else
26027
26028 save_CFLAGS="$CFLAGS"
26029 CFLAGS="$CFLAGS -Werror"
5213506e 26030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
26031/* end confdefs.h. */
26032void __attribute__((dllexport)) foo(void) { }
26033int
26034main ()
26035{
26036
26037 ;
26038 return 0;
26039}
26040_ACEOF
5213506e 26041if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 26042 libgfor_cv_have_attribute_dllexport=yes
7d7b8bfe 26043else
5213506e 26044 libgfor_cv_have_attribute_dllexport=no
7d7b8bfe 26045fi
5213506e 26046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
26047 CFLAGS="$save_CFLAGS"
26048fi
5213506e
RW
26049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26050$as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
6d26724a 26051 if test $libgfor_cv_have_attribute_dllexport = yes; then
7d7b8bfe 26052
5213506e 26053$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
7d7b8bfe
RH
26054
26055 fi
26056
5213506e
RW
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26058$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26059if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
26061else
26062
f02d008e 26063 if test x$gcc_no_link = xyes; then
5213506e 26064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 26065fi
5213506e 26066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
26067/* end confdefs.h. */
26068
7d7b8bfe 26069void foo(void) { }
16a314a9 26070extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
26071int
26072main ()
26073{
26074bar();
26075 ;
26076 return 0;
26077}
26078_ACEOF
5213506e 26079if ac_fn_c_try_link "$LINENO"; then :
6d26724a 26080 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 26081else
5213506e 26082 libgfor_cv_have_attribute_alias=no
7d7b8bfe 26083fi
5213506e
RW
26084rm -f core conftest.err conftest.$ac_objext \
26085 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 26086fi
5213506e
RW
26087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26088$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 26089 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 26090
5213506e 26091$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
26092
26093 fi
26094
5e805e44
JJ
26095# Check out sync builtins support.
26096
5213506e
RW
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26098$as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26099if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26100 $as_echo_n "(cached) " >&6
5e805e44
JJ
26101else
26102
26103 if test x$gcc_no_link = xyes; then
5213506e 26104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 26105fi
5213506e 26106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
26107/* end confdefs.h. */
26108int foovar = 0;
26109int
26110main ()
26111{
26112
26113if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26114if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26115 ;
26116 return 0;
26117}
26118_ACEOF
5213506e 26119if ac_fn_c_try_link "$LINENO"; then :
6d26724a 26120 libgfor_cv_have_sync_fetch_and_add=yes
5e805e44 26121else
5213506e 26122 libgfor_cv_have_sync_fetch_and_add=no
5e805e44 26123fi
5213506e
RW
26124rm -f core conftest.err conftest.$ac_objext \
26125 conftest$ac_exeext conftest.$ac_ext
5e805e44 26126fi
5213506e
RW
26127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26128$as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
6d26724a 26129 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
5e805e44 26130
5213506e 26131$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
5e805e44
JJ
26132
26133 fi
26134
5e805e44
JJ
26135# Check out #pragma weak.
26136
5213506e
RW
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26138$as_echo_n "checking whether pragma weak works... " >&6; }
26139if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
5e805e44
JJ
26141else
26142
26143 gfor_save_CFLAGS="$CFLAGS"
26144 CFLAGS="$CFLAGS -Wunknown-pragmas"
5213506e 26145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44 26146/* end confdefs.h. */
de15ea94 26147
5e805e44
JJ
26148void foo (void);
26149#pragma weak foo
de15ea94 26150
5e805e44
JJ
26151int
26152main ()
26153{
26154if (foo) foo ();
26155 ;
26156 return 0;
26157}
26158_ACEOF
5213506e 26159if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 26160 libgfor_cv_have_pragma_weak=yes
5e805e44 26161else
5213506e 26162 libgfor_cv_have_pragma_weak=no
5e805e44 26163fi
5213506e 26164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e805e44 26165fi
5213506e
RW
26166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26167$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
6d26724a 26168 if test $libgfor_cv_have_pragma_weak = yes; then
5e805e44 26169
5213506e 26170$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
5e805e44
JJ
26171
26172 fi
e669bd2b 26173 case "$host" in
5c30094f 26174 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
e669bd2b 26175
5213506e 26176$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
e669bd2b
JJ
26177
26178 ;;
26179 esac
5e805e44 26180
10c682a0
FXC
26181# Various other checks on target
26182
5213506e
RW
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26184$as_echo_n "checking whether the target can unlink an open file... " >&6; }
26185if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26186 $as_echo_n "(cached) " >&6
10c682a0
FXC
26187else
26188
5213506e 26189 if test "$cross_compiling" = yes; then :
10c682a0
FXC
26190
26191case "${target}" in
6d26724a
RW
26192 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26193 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
26194esac
26195else
5213506e 26196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
26197/* end confdefs.h. */
26198
26199#include <errno.h>
26200#include <fcntl.h>
26201#include <unistd.h>
26202#include <sys/stat.h>
26203
26204int main ()
26205{
26206 int fd;
26207
42dfafa9 26208 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
10c682a0
FXC
26209 if (fd <= 0)
26210 return 0;
26211 if (unlink ("testfile") == -1)
26212 return 1;
26213 write (fd, "This is a test\n", 15);
26214 close (fd);
26215
42dfafa9 26216 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
10c682a0
FXC
26217 return 0;
26218 else
26219 return 1;
26220}
26221_ACEOF
5213506e 26222if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26223 libgfor_cv_have_unlink_open_file=yes
10c682a0 26224else
5213506e 26225 libgfor_cv_have_unlink_open_file=no
10c682a0 26226fi
5213506e
RW
26227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26228 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 26229fi
5213506e 26230
10c682a0 26231fi
5213506e
RW
26232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26233$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 26234if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 26235
5213506e 26236$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
26237
26238fi
26239
3c127520
FXC
26240# Check whether line terminator is LF or CRLF
26241
5213506e
RW
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26243$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26244if test "${libgfor_cv_have_crlf+set}" = set; then :
26245 $as_echo_n "(cached) " >&6
3c127520
FXC
26246else
26247
5213506e 26248 if test "$cross_compiling" = yes; then :
3c127520
FXC
26249
26250case "${target}" in
6d26724a
RW
26251 *mingw*) libgfor_cv_have_crlf=yes ;;
26252 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
26253esac
26254else
5213506e 26255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
26256/* end confdefs.h. */
26257
26258/* This test program should exit with status 0 if system uses a CRLF as
26259 line terminator, and status 1 otherwise.
26260 Since it is used to check for mingw systems, and should return 0 in any
26261 other case, in case of a failure we will not use CRLF. */
26262#include <sys/stat.h>
26263#include <stdlib.h>
26264#include <fcntl.h>
26265#include <stdio.h>
26266
26267int main ()
26268{
26269#ifndef O_BINARY
26270 exit(1);
26271#else
26272 int fd, bytes;
26273 char buff[5];
26274
26275 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26276 if (fd < 0)
26277 exit(1);
26278 if (write (fd, "\n", 1) < 0)
26279 perror ("write");
26280
26281 close (fd);
26282
26283 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26284 exit(1);
26285 bytes = read (fd, buff, 5);
26286 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26287 exit(0);
26288 else
26289 exit(1);
26290#endif
26291}
26292_ACEOF
5213506e 26293if ac_fn_c_try_run "$LINENO"; then :
6d26724a 26294 libgfor_cv_have_crlf=yes
3c127520 26295else
5213506e 26296 libgfor_cv_have_crlf=no
3c127520 26297fi
5213506e
RW
26298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26299 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 26300fi
5213506e 26301
3c127520 26302fi
5213506e
RW
26303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26304$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 26305if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 26306
5213506e 26307$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
26308
26309fi
26310
1ff101ff
JB
26311# Check whether we have _Unwind_GetIPInfo for backtrace
26312
26313
26314# Check whether --with-system-libunwind was given.
26315if test "${with_system_libunwind+set}" = set; then :
26316 withval=$with_system_libunwind;
26317fi
26318
26319 # If system-libunwind was not specifically set, pick a default setting.
26320 if test x$with_system_libunwind = x; then
26321 case ${target} in
26322 ia64-*-hpux*) with_system_libunwind=yes ;;
26323 *) with_system_libunwind=no ;;
26324 esac
26325 fi
26326 # Based on system-libunwind and target, do we have ipinfo?
26327 if test x$with_system_libunwind = xyes; then
26328 case ${target} in
26329 ia64-*-*) have_unwind_getipinfo=no ;;
26330 *) have_unwind_getipinfo=yes ;;
26331 esac
26332 else
26333 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26334
26335 case ${target} in
26336 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26337 *) have_unwind_getipinfo=yes ;;
26338 esac
26339
26340 fi
26341
26342 if test x$have_unwind_getipinfo = xyes; then
26343
26344$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26345
26346 fi
26347
26348
6de9cd9a
DN
26349cat >confcache <<\_ACEOF
26350# This file is a shell script that caches the results of configure
26351# tests run on this system so they can be shared between configure
26352# scripts and configure runs, see configure's option --config-cache.
26353# It is not useful on other systems. If it contains results you don't
26354# want to keep, you may remove or edit it.
26355#
26356# config.status only pays attention to the cache file if you give it
26357# the --recheck option to rerun configure.
26358#
26359# `ac_cv_env_foo' variables (set or unset) will be overridden when
26360# loading this file, other *unset* `ac_cv_foo' will be assigned the
26361# following values.
26362
26363_ACEOF
26364
26365# The following way of writing the cache mishandles newlines in values,
26366# but we know of no workaround that is simple, portable, and efficient.
5213506e 26367# So, we kill variables containing newlines.
6de9cd9a
DN
26368# Ultrix sh set writes to stderr and can't be redirected directly,
26369# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26370(
26371 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26372 eval ac_val=\$$ac_var
26373 case $ac_val in #(
26374 *${as_nl}*)
26375 case $ac_var in #(
26376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26377$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26378 esac
26379 case $ac_var in #(
26380 _ | IFS | as_nl) ;; #(
26381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26382 *) { eval $ac_var=; unset $ac_var;} ;;
26383 esac ;;
26384 esac
26385 done
26386
6de9cd9a 26387 (set) 2>&1 |
5213506e
RW
26388 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26389 *${as_nl}ac_space=\ *)
26390 # `set' does not quote correctly, so add quotes: double-quote
26391 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26392 sed -n \
26393 "s/'/'\\\\''/g;
26394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26395 ;; #(
6de9cd9a
DN
26396 *)
26397 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26399 ;;
5213506e
RW
26400 esac |
26401 sort
26402) |
6de9cd9a 26403 sed '
5213506e 26404 /^ac_cv_env_/b end
6de9cd9a 26405 t clear
5213506e 26406 :clear
6de9cd9a
DN
26407 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26408 t end
5213506e
RW
26409 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26410 :end' >>confcache
26411if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26412 if test -w "$cache_file"; then
26413 test "x$cache_file" != "x/dev/null" &&
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26415$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26416 cat confcache >$cache_file
26417 else
5213506e
RW
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26419$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26420 fi
26421fi
26422rm -f confcache
26423
96b8a615
AJ
26424if test ${multilib} = yes; then
26425 multilib_arg="--enable-multilib"
6de9cd9a 26426else
96b8a615 26427 multilib_arg=
6de9cd9a 26428fi
6de9cd9a 26429
1ec601bf
FXC
26430# Write our Makefile and spec file.
26431ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 26432
6de9cd9a
DN
26433cat >confcache <<\_ACEOF
26434# This file is a shell script that caches the results of configure
26435# tests run on this system so they can be shared between configure
26436# scripts and configure runs, see configure's option --config-cache.
26437# It is not useful on other systems. If it contains results you don't
26438# want to keep, you may remove or edit it.
26439#
26440# config.status only pays attention to the cache file if you give it
26441# the --recheck option to rerun configure.
26442#
26443# `ac_cv_env_foo' variables (set or unset) will be overridden when
26444# loading this file, other *unset* `ac_cv_foo' will be assigned the
26445# following values.
26446
26447_ACEOF
26448
26449# The following way of writing the cache mishandles newlines in values,
26450# but we know of no workaround that is simple, portable, and efficient.
5213506e 26451# So, we kill variables containing newlines.
6de9cd9a
DN
26452# Ultrix sh set writes to stderr and can't be redirected directly,
26453# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
26454(
26455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26456 eval ac_val=\$$ac_var
26457 case $ac_val in #(
26458 *${as_nl}*)
26459 case $ac_var in #(
26460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26461$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26462 esac
26463 case $ac_var in #(
26464 _ | IFS | as_nl) ;; #(
26465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26466 *) { eval $ac_var=; unset $ac_var;} ;;
26467 esac ;;
26468 esac
26469 done
26470
6de9cd9a 26471 (set) 2>&1 |
5213506e
RW
26472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26473 *${as_nl}ac_space=\ *)
26474 # `set' does not quote correctly, so add quotes: double-quote
26475 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
26476 sed -n \
26477 "s/'/'\\\\''/g;
26478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 26479 ;; #(
6de9cd9a
DN
26480 *)
26481 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 26482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 26483 ;;
5213506e
RW
26484 esac |
26485 sort
26486) |
6de9cd9a 26487 sed '
5213506e 26488 /^ac_cv_env_/b end
6de9cd9a 26489 t clear
5213506e 26490 :clear
6de9cd9a
DN
26491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26492 t end
5213506e
RW
26493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26494 :end' >>confcache
26495if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26496 if test -w "$cache_file"; then
26497 test "x$cache_file" != "x/dev/null" &&
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26499$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
26500 cat confcache >$cache_file
26501 else
5213506e
RW
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26503$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
26504 fi
26505fi
26506rm -f confcache
26507
26508test "x$prefix" = xNONE && prefix=$ac_default_prefix
26509# Let make expand exec_prefix.
26510test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26511
6de9cd9a
DN
26512DEFS=-DHAVE_CONFIG_H
26513
26514ac_libobjs=
26515ac_ltlibobjs=
26516for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26517 # 1. Remove the extension, and $U if already installed.
5213506e
RW
26518 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26519 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26520 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26521 # will be set to the directory where LIBOBJS objects are built.
26522 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26523 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
26524done
26525LIBOBJS=$ac_libobjs
26526
26527LTLIBOBJS=$ac_ltlibobjs
26528
26529
b808ac33 26530if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
5213506e
RW
26531 as_fn_error "conditional \"onestep\" was never defined.
26532Usually this means the macro was only invoked conditionally." "$LINENO" 5
26533fi
26534 if test -n "$EXEEXT"; then
26535 am__EXEEXT_TRUE=
26536 am__EXEEXT_FALSE='#'
26537else
26538 am__EXEEXT_TRUE='#'
26539 am__EXEEXT_FALSE=
b808ac33 26540fi
5213506e 26541
6de9cd9a 26542if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
26543 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26544Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 26545fi
679c0f9a 26546if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
26547 as_fn_error "conditional \"AMDEP\" was never defined.
26548Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
26549fi
26550if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
26551 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26552Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 26553fi
21be0a5a
JB
26554if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26555 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26556Usually this means the macro was only invoked conditionally." "$LINENO" 5
26557fi
c0e7e2bf 26558if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
5213506e
RW
26559 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26560Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 26561fi
49ea7a0e
RO
26562if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26563 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26564Usually this means the macro was only invoked conditionally." "$LINENO" 5
26565fi
26566if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26567 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26568Usually this means the macro was only invoked conditionally." "$LINENO" 5
26569fi
1ec601bf
FXC
26570if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26571 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26572Usually this means the macro was only invoked conditionally." "$LINENO" 5
26573fi
6de9cd9a
DN
26574
26575: ${CONFIG_STATUS=./config.status}
5213506e 26576ac_write_fail=0
6de9cd9a
DN
26577ac_clean_files_save=$ac_clean_files
26578ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
26579{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26580$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26581as_write_fail=0
26582cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
26583#! $SHELL
26584# Generated by $as_me.
26585# Run this file to recreate the current configuration.
26586# Compiler output produced by configure, useful for debugging
26587# configure, is in config.log if it exists.
26588
26589debug=false
26590ac_cs_recheck=false
26591ac_cs_silent=false
6de9cd9a 26592
5213506e
RW
26593SHELL=\${CONFIG_SHELL-$SHELL}
26594export SHELL
26595_ASEOF
26596cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26597## -------------------- ##
26598## M4sh Initialization. ##
26599## -------------------- ##
26600
26601# Be more Bourne compatible
26602DUALCASE=1; export DUALCASE # for MKS sh
26603if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
26604 emulate sh
26605 NULLCMD=:
5213506e 26606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
26607 # is contrary to our usage. Disable this feature.
26608 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
26609 setopt NO_GLOB_SUBST
26610else
26611 case `(set -o) 2>/dev/null` in #(
26612 *posix*) :
26613 set -o posix ;; #(
26614 *) :
26615 ;;
26616esac
6de9cd9a 26617fi
6de9cd9a 26618
5213506e
RW
26619
26620as_nl='
26621'
26622export as_nl
26623# Printing a long string crashes Solaris 7 /usr/bin/printf.
26624as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26625as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26626as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26627# Prefer a ksh shell builtin over an external printf program on Solaris,
26628# but without wasting forks for bash or zsh.
26629if test -z "$BASH_VERSION$ZSH_VERSION" \
26630 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26631 as_echo='print -r --'
26632 as_echo_n='print -rn --'
26633elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26634 as_echo='printf %s\n'
26635 as_echo_n='printf %s'
26636else
26637 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26638 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26639 as_echo_n='/usr/ucb/echo -n'
26640 else
26641 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26642 as_echo_n_body='eval
26643 arg=$1;
26644 case $arg in #(
26645 *"$as_nl"*)
26646 expr "X$arg" : "X\\(.*\\)$as_nl";
26647 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26648 esac;
26649 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26650 '
26651 export as_echo_n_body
26652 as_echo_n='sh -c $as_echo_n_body as_echo'
26653 fi
26654 export as_echo_body
26655 as_echo='sh -c $as_echo_body as_echo'
26656fi
26657
26658# The user is always right.
26659if test "${PATH_SEPARATOR+set}" != set; then
26660 PATH_SEPARATOR=:
26661 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26662 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26663 PATH_SEPARATOR=';'
26664 }
6de9cd9a
DN
26665fi
26666
26667
5213506e
RW
26668# IFS
26669# We need space, tab and new line, in precisely that order. Quoting is
26670# there to prevent editors from complaining about space-tab.
26671# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26672# splitting by setting IFS to empty value.)
26673IFS=" "" $as_nl"
26674
26675# Find who we are. Look in the path if we contain no directory separator.
26676case $0 in #((
26677 *[\\/]* ) as_myself=$0 ;;
26678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26679for as_dir in $PATH
26680do
26681 IFS=$as_save_IFS
26682 test -z "$as_dir" && as_dir=.
26683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26684 done
26685IFS=$as_save_IFS
26686
26687 ;;
26688esac
26689# We did not find ourselves, most probably we were run as `sh COMMAND'
26690# in which case we are not to be found in the path.
26691if test "x$as_myself" = x; then
26692 as_myself=$0
26693fi
26694if test ! -f "$as_myself"; then
26695 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26696 exit 1
26697fi
26698
26699# Unset variables that we do not need and which cause bugs (e.g. in
26700# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26701# suppresses any "Segmentation fault" message there. '((' could
26702# trigger a bug in pdksh 5.2.14.
26703for as_var in BASH_ENV ENV MAIL MAILPATH
26704do eval test x\${$as_var+set} = xset \
26705 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26706done
6de9cd9a
DN
26707PS1='$ '
26708PS2='> '
26709PS4='+ '
26710
26711# NLS nuisances.
5213506e
RW
26712LC_ALL=C
26713export LC_ALL
26714LANGUAGE=C
26715export LANGUAGE
26716
26717# CDPATH.
26718(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26719
26720
26721# as_fn_error ERROR [LINENO LOG_FD]
26722# ---------------------------------
26723# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26724# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26725# script with status $?, using 1 if that was 0.
26726as_fn_error ()
26727{
26728 as_status=$?; test $as_status -eq 0 && as_status=1
26729 if test "$3"; then
26730 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26731 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6de9cd9a 26732 fi
5213506e
RW
26733 $as_echo "$as_me: error: $1" >&2
26734 as_fn_exit $as_status
26735} # as_fn_error
26736
26737
26738# as_fn_set_status STATUS
26739# -----------------------
26740# Set $? to STATUS, without forking.
26741as_fn_set_status ()
26742{
26743 return $1
26744} # as_fn_set_status
26745
26746# as_fn_exit STATUS
26747# -----------------
26748# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26749as_fn_exit ()
26750{
26751 set +e
26752 as_fn_set_status $1
26753 exit $1
26754} # as_fn_exit
26755
26756# as_fn_unset VAR
26757# ---------------
26758# Portably unset VAR.
26759as_fn_unset ()
26760{
26761 { eval $1=; unset $1;}
26762}
26763as_unset=as_fn_unset
26764# as_fn_append VAR VALUE
26765# ----------------------
26766# Append the text in VALUE to the end of the definition contained in VAR. Take
26767# advantage of any shell optimizations that allow amortized linear growth over
26768# repeated appends, instead of the typical quadratic growth present in naive
26769# implementations.
26770if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26771 eval 'as_fn_append ()
26772 {
26773 eval $1+=\$2
26774 }'
26775else
26776 as_fn_append ()
26777 {
26778 eval $1=\$$1\$2
26779 }
26780fi # as_fn_append
26781
26782# as_fn_arith ARG...
26783# ------------------
26784# Perform arithmetic evaluation on the ARGs, and store the result in the
26785# global $as_val. Take advantage of shells that can avoid forks. The arguments
26786# must be portable across $(()) and expr.
26787if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26788 eval 'as_fn_arith ()
26789 {
26790 as_val=$(( $* ))
26791 }'
26792else
26793 as_fn_arith ()
26794 {
26795 as_val=`expr "$@" || test $? -eq 1`
26796 }
26797fi # as_fn_arith
6de9cd9a 26798
5213506e
RW
26799
26800if expr a : '\(a\)' >/dev/null 2>&1 &&
26801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
26802 as_expr=expr
26803else
26804 as_expr=false
26805fi
26806
5213506e 26807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
26808 as_basename=basename
26809else
26810 as_basename=false
26811fi
26812
5213506e
RW
26813if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26814 as_dirname=dirname
26815else
26816 as_dirname=false
26817fi
6de9cd9a 26818
5213506e 26819as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
26820$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26821 X"$0" : 'X\(//\)$' \| \
5213506e
RW
26822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26823$as_echo X/"$0" |
26824 sed '/^.*\/\([^/][^/]*\)\/*$/{
26825 s//\1/
26826 q
26827 }
26828 /^X\/\(\/\/\)$/{
26829 s//\1/
26830 q
26831 }
26832 /^X\/\(\/\).*/{
26833 s//\1/
26834 q
26835 }
26836 s/.*/./; q'`
38d24731 26837
38d24731
RW
26838# Avoid depending upon Character Ranges.
26839as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26840as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26841as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26842as_cr_digits='0123456789'
26843as_cr_alnum=$as_cr_Letters$as_cr_digits
26844
5213506e
RW
26845ECHO_C= ECHO_N= ECHO_T=
26846case `echo -n x` in #(((((
26847-n*)
26848 case `echo 'xy\c'` in
26849 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26850 xy) ECHO_C='\c';;
26851 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26852 ECHO_T=' ';;
26853 esac;;
26854*)
26855 ECHO_N='-n';;
6de9cd9a
DN
26856esac
26857
5213506e
RW
26858rm -f conf$$ conf$$.exe conf$$.file
26859if test -d conf$$.dir; then
26860 rm -f conf$$.dir/conf$$.file
6de9cd9a 26861else
5213506e
RW
26862 rm -f conf$$.dir
26863 mkdir conf$$.dir 2>/dev/null
6de9cd9a 26864fi
5213506e
RW
26865if (echo >conf$$.file) 2>/dev/null; then
26866 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 26867 as_ln_s='ln -s'
5213506e
RW
26868 # ... but there are two gotchas:
26869 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26870 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26871 # In both cases, we have to default to `cp -p'.
26872 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26873 as_ln_s='cp -p'
26874 elif ln conf$$.file conf$$ 2>/dev/null; then
26875 as_ln_s=ln
26876 else
26877 as_ln_s='cp -p'
38d24731 26878 fi
6de9cd9a
DN
26879else
26880 as_ln_s='cp -p'
26881fi
5213506e
RW
26882rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26883rmdir conf$$.dir 2>/dev/null
26884
26885
26886# as_fn_mkdir_p
26887# -------------
26888# Create "$as_dir" as a directory, including parents if necessary.
26889as_fn_mkdir_p ()
26890{
26891
26892 case $as_dir in #(
26893 -*) as_dir=./$as_dir;;
26894 esac
26895 test -d "$as_dir" || eval $as_mkdir_p || {
26896 as_dirs=
26897 while :; do
26898 case $as_dir in #(
26899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26900 *) as_qdir=$as_dir;;
26901 esac
26902 as_dirs="'$as_qdir' $as_dirs"
26903 as_dir=`$as_dirname -- "$as_dir" ||
26904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26905 X"$as_dir" : 'X\(//\)[^/]' \| \
26906 X"$as_dir" : 'X\(//\)$' \| \
26907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26908$as_echo X"$as_dir" |
26909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26910 s//\1/
26911 q
26912 }
26913 /^X\(\/\/\)[^/].*/{
26914 s//\1/
26915 q
26916 }
26917 /^X\(\/\/\)$/{
26918 s//\1/
26919 q
26920 }
26921 /^X\(\/\).*/{
26922 s//\1/
26923 q
26924 }
26925 s/.*/./; q'`
26926 test -d "$as_dir" && break
26927 done
26928 test -z "$as_dirs" || eval "mkdir $as_dirs"
26929 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26930
6de9cd9a 26931
5213506e 26932} # as_fn_mkdir_p
6de9cd9a 26933if mkdir -p . 2>/dev/null; then
5213506e 26934 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
26935else
26936 test -d ./-p && rmdir ./-p
26937 as_mkdir_p=false
26938fi
26939
5213506e
RW
26940if test -x / >/dev/null 2>&1; then
26941 as_test_x='test -x'
26942else
26943 if ls -dL / >/dev/null 2>&1; then
26944 as_ls_L_option=L
26945 else
26946 as_ls_L_option=
26947 fi
26948 as_test_x='
26949 eval sh -c '\''
26950 if test -d "$1"; then
26951 test -d "$1/.";
26952 else
26953 case $1 in #(
26954 -*)set "./$1";;
26955 esac;
26956 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26957 ???[sx]*):;;*)false;;esac;fi
26958 '\'' sh
26959 '
26960fi
26961as_executable_p=$as_test_x
6de9cd9a
DN
26962
26963# Sed expression to map a string onto a valid CPP name.
26964as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26965
26966# Sed expression to map a string onto a valid variable name.
26967as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26968
26969
6de9cd9a 26970exec 6>&1
5213506e
RW
26971## ----------------------------------- ##
26972## Main body of $CONFIG_STATUS script. ##
26973## ----------------------------------- ##
26974_ASEOF
26975test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26976
26977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26978# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 26979# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
26980# values after options handling.
26981ac_log="
0dce3ca1 26982This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
5213506e 26983generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a
DN
26984
26985 CONFIG_FILES = $CONFIG_FILES
26986 CONFIG_HEADERS = $CONFIG_HEADERS
26987 CONFIG_LINKS = $CONFIG_LINKS
26988 CONFIG_COMMANDS = $CONFIG_COMMANDS
26989 $ $0 $@
26990
5213506e
RW
26991on `(hostname || uname -n) 2>/dev/null | sed 1q`
26992"
26993
6de9cd9a
DN
26994_ACEOF
26995
5213506e
RW
26996case $ac_config_files in *"
26997"*) set x $ac_config_files; shift; ac_config_files=$*;;
26998esac
78511f8b 26999
5213506e
RW
27000case $ac_config_headers in *"
27001"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27002esac
38d24731 27003
38d24731 27004
5213506e
RW
27005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27006# Files that config.status was made for.
27007config_files="$ac_config_files"
27008config_headers="$ac_config_headers"
27009config_commands="$ac_config_commands"
6de9cd9a 27010
5213506e 27011_ACEOF
38d24731 27012
5213506e 27013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 27014ac_cs_usage="\
5213506e
RW
27015\`$as_me' instantiates files and other configuration actions
27016from templates according to the current configuration. Unless the files
27017and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 27018
5213506e 27019Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
27020
27021 -h, --help print this help, then exit
5213506e
RW
27022 -V, --version print version number and configuration settings, then exit
27023 -q, --quiet, --silent
27024 do not print progress messages
6de9cd9a
DN
27025 -d, --debug don't remove temporary files
27026 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
27027 --file=FILE[:TEMPLATE]
27028 instantiate the configuration file FILE
27029 --header=FILE[:TEMPLATE]
27030 instantiate the configuration header FILE
6de9cd9a
DN
27031
27032Configuration files:
27033$config_files
27034
27035Configuration headers:
27036$config_headers
27037
27038Configuration commands:
27039$config_commands
27040
5213506e
RW
27041Report bugs to the package provider.
27042GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27043General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 27044
5213506e
RW
27045_ACEOF
27046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 27047ac_cs_version="\\
0dce3ca1 27048GNU Fortran Runtime Library config.status 0.3
5213506e
RW
27049configured by $0, generated by GNU Autoconf 2.64,
27050 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6de9cd9a 27051
5213506e 27052Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
27053This config.status script is free software; the Free Software Foundation
27054gives unlimited permission to copy, distribute and modify it."
5213506e
RW
27055
27056ac_pwd='$ac_pwd'
27057srcdir='$srcdir'
27058INSTALL='$INSTALL'
27059MKDIR_P='$MKDIR_P'
27060AWK='$AWK'
27061test -n "\$AWK" || AWK=awk
6de9cd9a
DN
27062_ACEOF
27063
5213506e
RW
27064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27065# The default lists apply if the user does not specify any file.
6de9cd9a
DN
27066ac_need_defaults=:
27067while test $# != 0
27068do
27069 case $1 in
27070 --*=*)
5213506e
RW
27071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
27073 ac_shift=:
27074 ;;
5213506e 27075 *)
6de9cd9a
DN
27076 ac_option=$1
27077 ac_optarg=$2
27078 ac_shift=shift
27079 ;;
6de9cd9a
DN
27080 esac
27081
27082 case $ac_option in
27083 # Handling of the options.
6de9cd9a
DN
27084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27085 ac_cs_recheck=: ;;
5213506e
RW
27086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27087 $as_echo "$ac_cs_version"; exit ;;
27088 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
27089 debug=: ;;
27090 --file | --fil | --fi | --f )
27091 $ac_shift
5213506e
RW
27092 case $ac_optarg in
27093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27094 esac
27095 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
27096 ac_need_defaults=false;;
27097 --header | --heade | --head | --hea )
27098 $ac_shift
5213506e
RW
27099 case $ac_optarg in
27100 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27101 esac
27102 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 27103 ac_need_defaults=false;;
5213506e
RW
27104 --he | --h)
27105 # Conflict between --help and --header
27106 as_fn_error "ambiguous option: \`$1'
27107Try \`$0 --help' for more information.";;
27108 --help | --hel | -h )
27109 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
27110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27111 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27112 ac_cs_silent=: ;;
27113
27114 # This is an error.
5213506e
RW
27115 -*) as_fn_error "unrecognized option: \`$1'
27116Try \`$0 --help' for more information." ;;
6de9cd9a 27117
5213506e
RW
27118 *) as_fn_append ac_config_targets " $1"
27119 ac_need_defaults=false ;;
6de9cd9a
DN
27120
27121 esac
27122 shift
27123done
27124
27125ac_configure_extra_args=
27126
27127if $ac_cs_silent; then
27128 exec 6>/dev/null
27129 ac_configure_extra_args="$ac_configure_extra_args --silent"
27130fi
27131
27132_ACEOF
5213506e 27133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 27134if \$ac_cs_recheck; then
5213506e
RW
27135 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27136 shift
27137 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27138 CONFIG_SHELL='$SHELL'
27139 export CONFIG_SHELL
27140 exec "\$@"
6de9cd9a
DN
27141fi
27142
1cf3d07d 27143_ACEOF
5213506e
RW
27144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27145exec 5>>config.log
27146{
27147 echo
27148 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27149## Running $as_me. ##
27150_ASBOX
27151 $as_echo "$ac_log"
27152} >&5
1cf3d07d 27153
5213506e
RW
27154_ACEOF
27155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 27156#
5213506e 27157# INIT-COMMANDS
1cf3d07d
SE
27158#
27159
1cf3d07d
SE
27160srcdir="$srcdir"
27161host="$host"
27162target="$target"
27163with_multisubdir="$with_multisubdir"
27164with_multisrctop="$with_multisrctop"
27165with_target_subdir="$with_target_subdir"
27166ac_configure_args="${multilib_arg} ${ac_configure_args}"
27167multi_basedir="$multi_basedir"
27168CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27169CC="$CC"
2017c370
JB
27170CXX="$CXX"
27171GFORTRAN="$GFORTRAN"
27172GCJ="$GCJ"
1cf3d07d
SE
27173AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27174
27175
27176# The HP-UX ksh and POSIX shell print the target directory to stdout
27177# if CDPATH is set.
27178(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27179
27180sed_quote_subst='$sed_quote_subst'
27181double_quote_subst='$double_quote_subst'
27182delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
27183macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27184macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27185enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27186enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27187pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27188enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27189SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27190ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27191host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27192host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27193host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27194build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27195build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27196build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27197SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27198Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27199GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27200EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27201FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27202LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27203NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27204LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27205max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27206ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27207exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27208lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27209lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27210lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27211reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27212reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27213OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27214deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27215file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27216AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27217AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27218STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27219RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27220old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27221old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27222old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27223lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27224CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27225CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27226compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27227GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27228lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27229lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27230lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27231lt_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"`'
27232objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27233MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27234lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27235lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27236lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27237lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27238lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27239need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27240DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27241NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27242LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27243OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27244OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27245libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27246shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27247extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27248archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27249enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27250export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27251whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27252compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27253old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27254old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27255archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27256archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27257module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27258module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27259with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27260allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27261no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27262hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27263hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27264hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27265hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27266hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27267hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27268hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27269hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27270inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27271link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27272fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27273always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27274export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27275exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27276include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27277prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27278file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27279variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27280need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27281need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27282version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27283runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27284shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27285shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27286libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27287library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27288soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27289install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27290postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27291postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27292finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27293finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27294hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27295sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27296sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27297hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27298enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27299enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27300enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27301old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27302striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27303compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27304predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27305postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27306predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27307postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27308compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27309LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27310reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27311reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27312old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27313compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27314GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27315lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27316lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27317lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27318lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27319lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27320archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27321enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27322export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27323whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27324compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27325old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27326old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27327archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27328archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27329module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27330module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27331with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27332allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27333no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27334hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27335hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27336hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27337hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27338hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27339hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27340hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27341hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27342inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27343link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27344fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27345always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27346export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27347exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27348include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27349prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27350file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27351hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27352compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27353predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27354postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27355predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27356postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27357compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
27358
27359LTCC='$LTCC'
27360LTCFLAGS='$LTCFLAGS'
27361compiler='$compiler_DEFAULT'
27362
43e02a8a
RW
27363# A function that is used when there is no print builtin or printf.
27364func_fallback_echo ()
27365{
27366 eval 'cat <<_LTECHO_EOF
27367\$1
27368_LTECHO_EOF'
27369}
27370
1cf3d07d 27371# Quote evaled strings.
43e02a8a
RW
27372for var in SHELL \
27373ECHO \
27374SED \
1cf3d07d
SE
27375GREP \
27376EGREP \
27377FGREP \
27378LD \
27379NM \
27380LN_S \
27381lt_SP2NL \
27382lt_NL2SP \
27383reload_flag \
d58dead8 27384OBJDUMP \
1cf3d07d
SE
27385deplibs_check_method \
27386file_magic_cmd \
27387AR \
27388AR_FLAGS \
27389STRIP \
27390RANLIB \
27391CC \
27392CFLAGS \
27393compiler \
27394lt_cv_sys_global_symbol_pipe \
27395lt_cv_sys_global_symbol_to_cdecl \
27396lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 27397lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
27398lt_prog_compiler_no_builtin_flag \
27399lt_prog_compiler_wl \
27400lt_prog_compiler_pic \
27401lt_prog_compiler_static \
27402lt_cv_prog_compiler_c_o \
27403need_locks \
d58dead8
PG
27404DSYMUTIL \
27405NMEDIT \
27406LIPO \
27407OTOOL \
27408OTOOL64 \
1cf3d07d
SE
27409shrext_cmds \
27410export_dynamic_flag_spec \
27411whole_archive_flag_spec \
27412compiler_needs_object \
27413with_gnu_ld \
27414allow_undefined_flag \
27415no_undefined_flag \
27416hardcode_libdir_flag_spec \
27417hardcode_libdir_flag_spec_ld \
27418hardcode_libdir_separator \
27419fix_srcfile_path \
27420exclude_expsyms \
27421include_expsyms \
27422file_list_spec \
27423variables_saved_for_relink \
27424libname_spec \
27425library_names_spec \
27426soname_spec \
43e02a8a 27427install_override_mode \
1cf3d07d
SE
27428finish_eval \
27429old_striplib \
27430striplib \
d58dead8 27431compiler_lib_search_dirs \
1cf3d07d
SE
27432predep_objects \
27433postdep_objects \
27434predeps \
27435postdeps \
27436compiler_lib_search_path \
27437LD_FC \
43e02a8a 27438reload_flag_FC \
1cf3d07d
SE
27439compiler_FC \
27440lt_prog_compiler_no_builtin_flag_FC \
27441lt_prog_compiler_wl_FC \
27442lt_prog_compiler_pic_FC \
27443lt_prog_compiler_static_FC \
27444lt_cv_prog_compiler_c_o_FC \
27445export_dynamic_flag_spec_FC \
27446whole_archive_flag_spec_FC \
27447compiler_needs_object_FC \
27448with_gnu_ld_FC \
27449allow_undefined_flag_FC \
27450no_undefined_flag_FC \
27451hardcode_libdir_flag_spec_FC \
27452hardcode_libdir_flag_spec_ld_FC \
27453hardcode_libdir_separator_FC \
27454fix_srcfile_path_FC \
27455exclude_expsyms_FC \
27456include_expsyms_FC \
27457file_list_spec_FC \
d58dead8 27458compiler_lib_search_dirs_FC \
1cf3d07d
SE
27459predep_objects_FC \
27460postdep_objects_FC \
27461predeps_FC \
27462postdeps_FC \
27463compiler_lib_search_path_FC; do
43e02a8a 27464 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27465 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27466 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27467 ;;
27468 *)
27469 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27470 ;;
27471 esac
27472done
27473
27474# Double-quote double-evaled strings.
27475for var in reload_cmds \
27476old_postinstall_cmds \
27477old_postuninstall_cmds \
27478old_archive_cmds \
27479extract_expsyms_cmds \
27480old_archive_from_new_cmds \
27481old_archive_from_expsyms_cmds \
27482archive_cmds \
27483archive_expsym_cmds \
27484module_cmds \
27485module_expsym_cmds \
27486export_symbols_cmds \
27487prelink_cmds \
27488postinstall_cmds \
27489postuninstall_cmds \
27490finish_cmds \
27491sys_lib_search_path_spec \
27492sys_lib_dlsearch_path_spec \
43e02a8a 27493reload_cmds_FC \
1cf3d07d
SE
27494old_archive_cmds_FC \
27495old_archive_from_new_cmds_FC \
27496old_archive_from_expsyms_cmds_FC \
27497archive_cmds_FC \
27498archive_expsym_cmds_FC \
27499module_cmds_FC \
27500module_expsym_cmds_FC \
27501export_symbols_cmds_FC \
27502prelink_cmds_FC; do
43e02a8a 27503 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 27504 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27505 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
27506 ;;
27507 *)
27508 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27509 ;;
27510 esac
27511done
27512
1cf3d07d
SE
27513ac_aux_dir='$ac_aux_dir'
27514xsi_shell='$xsi_shell'
27515lt_shell_append='$lt_shell_append'
27516
27517# See if we are running on zsh, and set the options which allow our
27518# commands through without removal of \ escapes INIT.
27519if test -n "\${ZSH_VERSION+set}" ; then
27520 setopt NO_GLOB_SUBST
27521fi
27522
27523
27524 PACKAGE='$PACKAGE'
27525 VERSION='$VERSION'
27526 TIMESTAMP='$TIMESTAMP'
27527 RM='$RM'
27528 ofile='$ofile'
27529
27530
6de9cd9a 27531
6de9cd9a 27532
78511f8b 27533
6de9cd9a 27534
c13e029b
PB
27535GCC="$GCC"
27536CC="$CC"
27537acx_cv_header_stdint="$acx_cv_header_stdint"
27538acx_cv_type_int8_t="$acx_cv_type_int8_t"
27539acx_cv_type_int16_t="$acx_cv_type_int16_t"
27540acx_cv_type_int32_t="$acx_cv_type_int32_t"
27541acx_cv_type_int64_t="$acx_cv_type_int64_t"
27542acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27543ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27544ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27545ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27546ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27547ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
27548ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27549ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 27550ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
27551
27552
6de9cd9a
DN
27553_ACEOF
27554
5213506e 27555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 27556
5213506e 27557# Handling of arguments.
6de9cd9a
DN
27558for ac_config_target in $ac_config_targets
27559do
5213506e
RW
27560 case $ac_config_target in
27561 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27562 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27563 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27564 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27565 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27566 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 27567 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e
RW
27568
27569 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
27570 esac
27571done
27572
5213506e 27573
6de9cd9a
DN
27574# If the user did not use the arguments to specify the items to instantiate,
27575# then the envvar interface is used. Set only those that are not.
27576# We use the long form for the default assignment because of an extremely
27577# bizarre bug on SunOS 4.1.3.
27578if $ac_need_defaults; then
27579 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27580 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27581 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27582fi
27583
27584# Have a temporary directory for convenience. Make it in the build tree
5213506e 27585# simply because there is no reason against having it here, and in addition,
6de9cd9a 27586# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
27587# Hook for its removal unless debugging.
27588# Note that there is a small window in which the directory will not be cleaned:
27589# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
27590$debug ||
27591{
5213506e
RW
27592 tmp=
27593 trap 'exit_status=$?
27594 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27595' 0
27596 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 27597}
6de9cd9a
DN
27598# Create a (secure) tmp directory for tmp files.
27599
27600{
5213506e 27601 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6de9cd9a
DN
27602 test -n "$tmp" && test -d "$tmp"
27603} ||
27604{
5213506e
RW
27605 tmp=./conf$$-$RANDOM
27606 (umask 077 && mkdir "$tmp")
27607} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27608
27609# Set up the scripts for CONFIG_FILES section.
27610# No need to generate them if there are no CONFIG_FILES.
27611# This happens for instance with `./config.status config.h'.
27612if test -n "$CONFIG_FILES"; then
27613
27614
27615ac_cr=`echo X | tr X '\015'`
27616# On cygwin, bash can eat \r inside `` if the user requested igncr.
27617# But we know of no other shell where ac_cr would be empty at this
27618# point, so we can use a bashism as a fallback.
27619if test "x$ac_cr" = x; then
27620 eval ac_cr=\$\'\\r\'
27621fi
27622ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27623if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27624 ac_cs_awk_cr='\r'
27625else
27626 ac_cs_awk_cr=$ac_cr
27627fi
27628
27629echo 'BEGIN {' >"$tmp/subs1.awk" &&
27630_ACEOF
27631
27632
6de9cd9a 27633{
5213506e
RW
27634 echo "cat >conf$$subs.awk <<_ACEOF" &&
27635 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27636 echo "_ACEOF"
27637} >conf$$subs.sh ||
27638 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27639ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27640ac_delim='%!_!# '
27641for ac_last_try in false false false false false :; do
27642 . ./conf$$subs.sh ||
27643 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27644
27645 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27646 if test $ac_delim_n = $ac_delim_num; then
27647 break
27648 elif $ac_last_try; then
27649 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27650 else
27651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27652 fi
27653done
27654rm -f conf$$subs.sh
27655
27656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27657cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27658_ACEOF
27659sed -n '
27660h
27661s/^/S["/; s/!.*/"]=/
27662p
27663g
27664s/^[^!]*!//
27665:repl
27666t repl
27667s/'"$ac_delim"'$//
27668t delim
27669:nl
27670h
27671s/\(.\{148\}\).*/\1/
27672t more1
27673s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27674p
27675n
27676b repl
27677:more1
27678s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27679p
27680g
27681s/.\{148\}//
27682t nl
27683:delim
27684h
27685s/\(.\{148\}\).*/\1/
27686t more2
27687s/["\\]/\\&/g; s/^/"/; s/$/"/
27688p
27689b
27690:more2
27691s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27692p
27693g
27694s/.\{148\}//
27695t delim
27696' <conf$$subs.awk | sed '
27697/^[^""]/{
27698 N
27699 s/\n//
27700}
27701' >>$CONFIG_STATUS || ac_write_fail=1
27702rm -f conf$$subs.awk
27703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27704_ACAWK
27705cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27706 for (key in S) S_is_set[key] = 1
27707 FS = "\a"
27708
27709}
27710{
27711 line = $ 0
27712 nfields = split(line, field, "@")
27713 substed = 0
27714 len = length(field[1])
27715 for (i = 2; i < nfields; i++) {
27716 key = field[i]
27717 keylen = length(key)
27718 if (S_is_set[key]) {
27719 value = S[key]
27720 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27721 len += length(value) + length(field[++i])
27722 substed = 1
27723 } else
27724 len += 1 + keylen
27725 }
27726
27727 print line
6de9cd9a
DN
27728}
27729
5213506e
RW
27730_ACAWK
27731_ACEOF
27732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27733if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27734 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27735else
27736 cat
27737fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27738 || as_fn_error "could not setup config files machinery" "$LINENO" 5
38d24731
RW
27739_ACEOF
27740
5213506e
RW
27741# VPATH may cause trouble with some makes, so we remove $(srcdir),
27742# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27743# trailing colons and then remove the whole line if VPATH becomes empty
27744# (actually we leave an empty line to preserve line numbers).
27745if test "x$srcdir" = x.; then
27746 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27747s/:*\$(srcdir):*/:/
27748s/:*\${srcdir}:*/:/
27749s/:*@srcdir@:*/:/
27750s/^\([^=]*=[ ]*\):*/\1/
27751s/:*$//
27752s/^[^=]*=[ ]*$//
27753}'
27754fi
38d24731 27755
5213506e
RW
27756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27757fi # test -n "$CONFIG_FILES"
6de9cd9a 27758
5213506e
RW
27759# Set up the scripts for CONFIG_HEADERS section.
27760# No need to generate them if there are no CONFIG_HEADERS.
27761# This happens for instance with `./config.status Makefile'.
27762if test -n "$CONFIG_HEADERS"; then
27763cat >"$tmp/defines.awk" <<\_ACAWK ||
27764BEGIN {
27765_ACEOF
27766
27767# Transform confdefs.h into an awk script `defines.awk', embedded as
27768# here-document in config.status, that substitutes the proper values into
27769# config.h.in to produce config.h.
27770
27771# Create a delimiter string that does not exist in confdefs.h, to ease
27772# handling of long lines.
27773ac_delim='%!_!# '
27774for ac_last_try in false false :; do
27775 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27776 if test -z "$ac_t"; then
27777 break
27778 elif $ac_last_try; then
27779 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27780 else
27781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 27782 fi
5213506e 27783done
c0e7e2bf 27784
5213506e
RW
27785# For the awk script, D is an array of macro values keyed by name,
27786# likewise P contains macro parameters if any. Preserve backslash
27787# newline sequences.
27788
27789ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27790sed -n '
27791s/.\{148\}/&'"$ac_delim"'/g
27792t rset
27793:rset
27794s/^[ ]*#[ ]*define[ ][ ]*/ /
27795t def
27796d
27797:def
27798s/\\$//
27799t bsnl
27800s/["\\]/\\&/g
27801s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27802D["\1"]=" \3"/p
27803s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27804d
27805:bsnl
27806s/["\\]/\\&/g
27807s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27808D["\1"]=" \3\\\\\\n"\\/p
27809t cont
27810s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27811t cont
27812d
27813:cont
27814n
27815s/.\{148\}/&'"$ac_delim"'/g
27816t clear
27817:clear
27818s/\\$//
27819t bsnlc
27820s/["\\]/\\&/g; s/^/"/; s/$/"/p
27821d
27822:bsnlc
27823s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27824b cont
27825' <confdefs.h | sed '
27826s/'"$ac_delim"'/"\\\
27827"/g' >>$CONFIG_STATUS || ac_write_fail=1
27828
27829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27830 for (key in D) D_is_set[key] = 1
27831 FS = "\a"
27832}
27833/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27834 line = \$ 0
27835 split(line, arg, " ")
27836 if (arg[1] == "#") {
27837 defundef = arg[2]
27838 mac1 = arg[3]
27839 } else {
27840 defundef = substr(arg[1], 2)
27841 mac1 = arg[2]
27842 }
27843 split(mac1, mac2, "(") #)
27844 macro = mac2[1]
27845 prefix = substr(line, 1, index(line, defundef) - 1)
27846 if (D_is_set[macro]) {
27847 # Preserve the white space surrounding the "#".
27848 print prefix "define", macro P[macro] D[macro]
27849 next
27850 } else {
27851 # Replace #undef with comments. This is necessary, for example,
27852 # in the case of _POSIX_SOURCE, which is predefined and required
27853 # on some systems where configure will not decide to define it.
27854 if (defundef == "undef") {
27855 print "/*", prefix defundef, macro, "*/"
27856 next
27857 }
27858 }
27859}
27860{ print }
27861_ACAWK
6de9cd9a 27862_ACEOF
5213506e
RW
27863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27864 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27865fi # test -n "$CONFIG_HEADERS"
27866
27867
27868eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27869shift
27870for ac_tag
27871do
27872 case $ac_tag in
27873 :[FHLC]) ac_mode=$ac_tag; continue;;
27874 esac
27875 case $ac_mode$ac_tag in
27876 :[FHL]*:*);;
27877 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27878 :[FH]-) ac_tag=-:-;;
27879 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27880 esac
27881 ac_save_IFS=$IFS
27882 IFS=:
27883 set x $ac_tag
27884 IFS=$ac_save_IFS
27885 shift
27886 ac_file=$1
27887 shift
27888
27889 case $ac_mode in
27890 :L) ac_source=$1;;
27891 :[FH])
27892 ac_file_inputs=
27893 for ac_f
27894 do
27895 case $ac_f in
27896 -) ac_f="$tmp/stdin";;
27897 *) # Look for the file first in the build tree, then in the source tree
27898 # (if the path is not absolute). The absolute path cannot be DOS-style,
27899 # because $ac_f cannot contain `:'.
27900 test -f "$ac_f" ||
27901 case $ac_f in
27902 [\\/$]*) false;;
27903 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27904 esac ||
27905 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27906 esac
27907 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27908 as_fn_append ac_file_inputs " '$ac_f'"
27909 done
27910
27911 # Let's still pretend it is `configure' which instantiates (i.e., don't
27912 # use $as_me), people would be surprised to read:
27913 # /* config.h. Generated by config.status. */
27914 configure_input='Generated from '`
27915 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27916 `' by configure.'
27917 if test x"$ac_file" != x-; then
27918 configure_input="$ac_file. $configure_input"
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27920$as_echo "$as_me: creating $ac_file" >&6;}
27921 fi
27922 # Neutralize special characters interpreted by sed in replacement strings.
27923 case $configure_input in #(
27924 *\&* | *\|* | *\\* )
27925 ac_sed_conf_input=`$as_echo "$configure_input" |
27926 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27927 *) ac_sed_conf_input=$configure_input;;
27928 esac
27929
27930 case $ac_tag in
27931 *:-:* | *:-) cat >"$tmp/stdin" \
27932 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27933 esac
27934 ;;
6de9cd9a
DN
27935 esac
27936
5213506e 27937 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
27938$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27939 X"$ac_file" : 'X\(//\)[^/]' \| \
27940 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
27941 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27942$as_echo X"$ac_file" |
27943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27944 s//\1/
27945 q
27946 }
27947 /^X\(\/\/\)[^/].*/{
27948 s//\1/
27949 q
27950 }
27951 /^X\(\/\/\)$/{
27952 s//\1/
27953 q
27954 }
27955 /^X\(\/\).*/{
27956 s//\1/
27957 q
27958 }
27959 s/.*/./; q'`
27960 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
27961 ac_builddir=.
27962
5213506e
RW
27963case "$ac_dir" in
27964.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27965*)
27966 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27967 # A ".." for each directory in $ac_dir_suffix.
27968 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27969 case $ac_top_builddir_sub in
27970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27972 esac ;;
27973esac
27974ac_abs_top_builddir=$ac_pwd
27975ac_abs_builddir=$ac_pwd$ac_dir_suffix
27976# for backward compatibility:
27977ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
27978
27979case $srcdir in
5213506e 27980 .) # We are building in place.
6de9cd9a 27981 ac_srcdir=.
5213506e
RW
27982 ac_top_srcdir=$ac_top_builddir_sub
27983 ac_abs_top_srcdir=$ac_pwd ;;
27984 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 27985 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
27986 ac_top_srcdir=$srcdir
27987 ac_abs_top_srcdir=$srcdir ;;
27988 *) # Relative name.
27989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27990 ac_top_srcdir=$ac_top_build_prefix$srcdir
27991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 27992esac
5213506e 27993ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 27994
6de9cd9a 27995
5213506e
RW
27996 case $ac_mode in
27997 :F)
27998 #
27999 # CONFIG_FILE
28000 #
6de9cd9a
DN
28001
28002 case $INSTALL in
28003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
28004 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28005 esac
28006 ac_MKDIR_P=$MKDIR_P
28007 case $MKDIR_P in
28008 [\\/$]* | ?:[\\/]* ) ;;
28009 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 28010 esac
5213506e 28011_ACEOF
6de9cd9a 28012
5213506e
RW
28013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28014# If the template does not know about datarootdir, expand it.
28015# FIXME: This hack should be removed a few years after 2.60.
28016ac_datarootdir_hack=; ac_datarootdir_seen=
28017ac_sed_dataroot='
28018/datarootdir/ {
28019 p
28020 q
28021}
28022/@datadir@/p
28023/@docdir@/p
28024/@infodir@/p
28025/@localedir@/p
28026/@mandir@/p'
28027case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28028*datarootdir*) ac_datarootdir_seen=yes;;
28029*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28031$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28032_ACEOF
28033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28034 ac_datarootdir_hack='
28035 s&@datadir@&$datadir&g
28036 s&@docdir@&$docdir&g
28037 s&@infodir@&$infodir&g
28038 s&@localedir@&$localedir&g
28039 s&@mandir@&$mandir&g
28040 s&\\\${datarootdir}&$datarootdir&g' ;;
28041esac
78511f8b 28042_ACEOF
5213506e
RW
28043
28044# Neutralize VPATH when `$srcdir' = `.'.
28045# Shell code in configure.ac might set extrasub.
28046# FIXME: do we really want to maintain this feature?
28047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28048ac_sed_extra="$ac_vpsub
6de9cd9a
DN
28049$extrasub
28050_ACEOF
5213506e 28051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
28052:t
28053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
28054s|@configure_input@|$ac_sed_conf_input|;t t
28055s&@top_builddir@&$ac_top_builddir_sub&;t t
28056s&@top_build_prefix@&$ac_top_build_prefix&;t t
28057s&@srcdir@&$ac_srcdir&;t t
28058s&@abs_srcdir@&$ac_abs_srcdir&;t t
28059s&@top_srcdir@&$ac_top_srcdir&;t t
28060s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28061s&@builddir@&$ac_builddir&;t t
28062s&@abs_builddir@&$ac_abs_builddir&;t t
28063s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28064s&@INSTALL@&$ac_INSTALL&;t t
28065s&@MKDIR_P@&$ac_MKDIR_P&;t t
28066$ac_datarootdir_hack
28067"
28068eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28069 || as_fn_error "could not create $ac_file" "$LINENO" 5
28070
28071test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28072 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28073 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28075which seems to be undefined. Please make sure it is defined." >&5
28076$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28077which seems to be undefined. Please make sure it is defined." >&2;}
28078
28079 rm -f "$tmp/stdin"
6de9cd9a 28080 case $ac_file in
5213506e
RW
28081 -) cat "$tmp/out" && rm -f "$tmp/out";;
28082 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28083 esac \
28084 || as_fn_error "could not create $ac_file" "$LINENO" 5
28085 ;;
28086 :H)
28087 #
28088 # CONFIG_HEADER
28089 #
6de9cd9a 28090 if test x"$ac_file" != x-; then
5213506e
RW
28091 {
28092 $as_echo "/* $configure_input */" \
28093 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28094 } >"$tmp/config.h" \
28095 || as_fn_error "could not create $ac_file" "$LINENO" 5
28096 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28098$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 28099 else
5213506e
RW
28100 rm -f "$ac_file"
28101 mv "$tmp/config.h" "$ac_file" \
28102 || as_fn_error "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
28103 fi
28104 else
5213506e
RW
28105 $as_echo "/* $configure_input */" \
28106 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28107 || as_fn_error "could not create -" "$LINENO" 5
6de9cd9a 28108 fi
5213506e
RW
28109# Compute "$ac_file"'s index in $config_headers.
28110_am_arg="$ac_file"
6de9cd9a
DN
28111_am_stamp_count=1
28112for _am_header in $config_headers :; do
28113 case $_am_header in
5213506e 28114 $_am_arg | $_am_arg:* )
6de9cd9a
DN
28115 break ;;
28116 * )
28117 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28118 esac
28119done
5213506e
RW
28120echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28121$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28122 X"$_am_arg" : 'X\(//\)[^/]' \| \
28123 X"$_am_arg" : 'X\(//\)$' \| \
28124 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28125$as_echo X"$_am_arg" |
28126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28127 s//\1/
28128 q
28129 }
28130 /^X\(\/\/\)[^/].*/{
28131 s//\1/
28132 q
28133 }
28134 /^X\(\/\/\)$/{
28135 s//\1/
28136 q
28137 }
28138 /^X\(\/\).*/{
28139 s//\1/
28140 q
28141 }
28142 s/.*/./; q'`/stamp-h$_am_stamp_count
28143 ;;
38d24731 28144
5213506e
RW
28145 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28146$as_echo "$as_me: executing $ac_file commands" >&6;}
28147 ;;
28148 esac
6de9cd9a
DN
28149
28150
5213506e
RW
28151 case $ac_file$ac_mode in
28152 "default-1":C)
96b8a615
AJ
28153# Only add multilib support code if we just rebuilt the top-level
28154# Makefile.
28155case " $CONFIG_FILES " in
28156 *" Makefile "*)
28157 ac_file=Makefile . ${multi_basedir}/config-ml.in
28158 ;;
28159esac ;;
5213506e
RW
28160 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28161 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28162 # are listed without --file. Let's play safe and only enable the eval
28163 # if we detect the quoting.
28164 case $CONFIG_FILES in
28165 *\'*) eval set x "$CONFIG_FILES" ;;
28166 *) set x $CONFIG_FILES ;;
28167 esac
28168 shift
28169 for mf
28170 do
28171 # Strip MF so we end up with the name of the file.
28172 mf=`echo "$mf" | sed -e 's/:.*$//'`
28173 # Check whether this is an Automake generated Makefile or not.
28174 # We used to match only the files named `Makefile.in', but
28175 # some people rename them; so instead we look at the file content.
28176 # Grep'ing the first line is not enough: some people post-process
28177 # each Makefile.in and add a new line on top of each file to say so.
28178 # Grep'ing the whole file is not good either: AIX grep has a line
28179 # limit of 2048, but all sed's we know have understand at least 4000.
28180 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28181 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
28182$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28183 X"$mf" : 'X\(//\)[^/]' \| \
28184 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
28185 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28186$as_echo X"$mf" |
28187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28188 s//\1/
28189 q
28190 }
28191 /^X\(\/\/\)[^/].*/{
28192 s//\1/
28193 q
28194 }
28195 /^X\(\/\/\)$/{
28196 s//\1/
28197 q
28198 }
28199 /^X\(\/\).*/{
28200 s//\1/
28201 q
28202 }
28203 s/.*/./; q'`
28204 else
28205 continue
28206 fi
28207 # Extract the definition of DEPDIR, am__include, and am__quote
28208 # from the Makefile without running `make'.
28209 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28210 test -z "$DEPDIR" && continue
28211 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28212 test -z "am__include" && continue
28213 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28214 # When using ansi2knr, U may be empty or an underscore; expand it
28215 U=`sed -n 's/^U = //p' < "$mf"`
28216 # Find all dependency output files, they are included files with
28217 # $(DEPDIR) in their names. We invoke sed twice because it is the
28218 # simplest approach to changing $(DEPDIR) to its actual value in the
28219 # expansion.
28220 for file in `sed -n "
28221 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28222 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28223 # Make sure the directory exists.
28224 test -f "$dirpart/$file" && continue
28225 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
28226$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28227 X"$file" : 'X\(//\)[^/]' \| \
28228 X"$file" : 'X\(//\)$' \| \
5213506e
RW
28229 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28230$as_echo X"$file" |
28231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28232 s//\1/
28233 q
28234 }
28235 /^X\(\/\/\)[^/].*/{
28236 s//\1/
28237 q
28238 }
28239 /^X\(\/\/\)$/{
28240 s//\1/
28241 q
28242 }
28243 /^X\(\/\).*/{
28244 s//\1/
28245 q
28246 }
28247 s/.*/./; q'`
28248 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28249 # echo "creating $dirpart/$file"
28250 echo '# dummy' > "$dirpart/$file"
679c0f9a 28251 done
679c0f9a 28252 done
5213506e 28253}
1cf3d07d 28254 ;;
5213506e 28255 "libtool":C)
1cf3d07d
SE
28256
28257 # See if we are running on zsh, and set the options which allow our
28258 # commands through without removal of \ escapes.
28259 if test -n "${ZSH_VERSION+set}" ; then
28260 setopt NO_GLOB_SUBST
28261 fi
28262
28263 cfgfile="${ofile}T"
28264 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28265 $RM "$cfgfile"
28266
28267 cat <<_LT_EOF >> "$cfgfile"
28268#! $SHELL
28269
28270# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 28271# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
28272# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28273# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28274#
d58dead8 28275# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 28276# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 28277# Written by Gordon Matzigkeit, 1996
1cf3d07d 28278#
d58dead8 28279# This file is part of GNU Libtool.
1cf3d07d 28280#
d58dead8
PG
28281# GNU Libtool is free software; you can redistribute it and/or
28282# modify it under the terms of the GNU General Public License as
28283# published by the Free Software Foundation; either version 2 of
28284# the License, or (at your option) any later version.
1cf3d07d 28285#
d58dead8
PG
28286# As a special exception to the GNU General Public License,
28287# if you distribute this file as part of a program or library that
28288# is built using GNU Libtool, you may include this file under the
28289# same distribution terms that you use for the rest of that program.
1cf3d07d 28290#
d58dead8
PG
28291# GNU Libtool is distributed in the hope that it will be useful,
28292# but WITHOUT ANY WARRANTY; without even the implied warranty of
28293# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28294# GNU General Public License for more details.
1cf3d07d 28295#
d58dead8
PG
28296# You should have received a copy of the GNU General Public License
28297# along with GNU Libtool; see the file COPYING. If not, a copy
28298# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28299# obtained by writing to the Free Software Foundation, Inc.,
28300# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
28301
28302
28303# The names of the tagged configurations supported by this script.
28304available_tags="FC "
28305
28306# ### BEGIN LIBTOOL CONFIG
28307
28308# Which release of libtool.m4 was used?
28309macro_version=$macro_version
28310macro_revision=$macro_revision
28311
28312# Whether or not to build shared libraries.
28313build_libtool_libs=$enable_shared
28314
28315# Whether or not to build static libraries.
28316build_old_libs=$enable_static
28317
28318# What type of objects to build.
28319pic_mode=$pic_mode
28320
28321# Whether or not to optimize for fast installation.
28322fast_install=$enable_fast_install
28323
43e02a8a
RW
28324# Shell to use when invoking shell scripts.
28325SHELL=$lt_SHELL
28326
28327# An echo program that protects backslashes.
28328ECHO=$lt_ECHO
28329
1cf3d07d
SE
28330# The host system.
28331host_alias=$host_alias
28332host=$host
28333host_os=$host_os
28334
28335# The build system.
28336build_alias=$build_alias
28337build=$build
28338build_os=$build_os
28339
28340# A sed program that does not truncate output.
28341SED=$lt_SED
28342
28343# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28344Xsed="\$SED -e 1s/^X//"
28345
28346# A grep program that handles long lines.
28347GREP=$lt_GREP
28348
28349# An ERE matcher.
28350EGREP=$lt_EGREP
28351
28352# A literal string matcher.
28353FGREP=$lt_FGREP
28354
28355# A BSD- or MS-compatible name lister.
28356NM=$lt_NM
28357
28358# Whether we need soft or hard links.
28359LN_S=$lt_LN_S
28360
28361# What is the maximum length of a command?
28362max_cmd_len=$max_cmd_len
28363
28364# Object file suffix (normally "o").
28365objext=$ac_objext
28366
28367# Executable file suffix (normally "").
28368exeext=$exeext
28369
28370# whether the shell understands "unset".
28371lt_unset=$lt_unset
28372
28373# turn spaces into newlines.
28374SP2NL=$lt_lt_SP2NL
28375
28376# turn newlines into spaces.
28377NL2SP=$lt_lt_NL2SP
28378
d58dead8
PG
28379# An object symbol dumper.
28380OBJDUMP=$lt_OBJDUMP
28381
1cf3d07d
SE
28382# Method to check whether dependent libraries are shared objects.
28383deplibs_check_method=$lt_deplibs_check_method
28384
28385# Command to use when deplibs_check_method == "file_magic".
28386file_magic_cmd=$lt_file_magic_cmd
28387
28388# The archiver.
28389AR=$lt_AR
28390AR_FLAGS=$lt_AR_FLAGS
28391
28392# A symbol stripping program.
28393STRIP=$lt_STRIP
28394
28395# Commands used to install an old-style archive.
28396RANLIB=$lt_RANLIB
28397old_postinstall_cmds=$lt_old_postinstall_cmds
28398old_postuninstall_cmds=$lt_old_postuninstall_cmds
28399
43e02a8a
RW
28400# Whether to use a lock for old archive extraction.
28401lock_old_archive_extraction=$lock_old_archive_extraction
28402
1cf3d07d
SE
28403# A C compiler.
28404LTCC=$lt_CC
28405
28406# LTCC compiler flags.
28407LTCFLAGS=$lt_CFLAGS
28408
28409# Take the output of nm and produce a listing of raw symbols and C names.
28410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28411
28412# Transform the output of nm in a proper C declaration.
28413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28414
28415# Transform the output of nm in a C name address pair.
28416global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28417
d58dead8
PG
28418# Transform the output of nm in a C name address pair when lib prefix is needed.
28419global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28420
1cf3d07d
SE
28421# The name of the directory that contains temporary libtool files.
28422objdir=$objdir
28423
1cf3d07d
SE
28424# Used to examine libraries when file_magic_cmd begins with "file".
28425MAGIC_CMD=$MAGIC_CMD
28426
28427# Must we lock files when doing compilation?
28428need_locks=$lt_need_locks
28429
d58dead8
PG
28430# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28431DSYMUTIL=$lt_DSYMUTIL
28432
28433# Tool to change global to local symbols on Mac OS X.
28434NMEDIT=$lt_NMEDIT
28435
28436# Tool to manipulate fat objects and archives on Mac OS X.
28437LIPO=$lt_LIPO
28438
28439# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28440OTOOL=$lt_OTOOL
28441
28442# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28443OTOOL64=$lt_OTOOL64
28444
1cf3d07d
SE
28445# Old archive suffix (normally "a").
28446libext=$libext
28447
28448# Shared library suffix (normally ".so").
28449shrext_cmds=$lt_shrext_cmds
28450
28451# The commands to extract the exported symbol list from a shared archive.
28452extract_expsyms_cmds=$lt_extract_expsyms_cmds
28453
28454# Variables whose values should be saved in libtool wrapper scripts and
28455# restored at link time.
28456variables_saved_for_relink=$lt_variables_saved_for_relink
28457
28458# Do we need the "lib" prefix for modules?
28459need_lib_prefix=$need_lib_prefix
28460
28461# Do we need a version for libraries?
28462need_version=$need_version
28463
28464# Library versioning type.
28465version_type=$version_type
28466
28467# Shared library runtime path variable.
28468runpath_var=$runpath_var
28469
28470# Shared library path variable.
28471shlibpath_var=$shlibpath_var
28472
28473# Is shlibpath searched before the hard-coded library search path?
28474shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28475
28476# Format of library name prefix.
28477libname_spec=$lt_libname_spec
28478
28479# List of archive names. First name is the real one, the rest are links.
28480# The last name is the one that the linker finds with -lNAME
28481library_names_spec=$lt_library_names_spec
28482
28483# The coded name of the library, if different from the real name.
28484soname_spec=$lt_soname_spec
28485
43e02a8a
RW
28486# Permission mode override for installation of shared libraries.
28487install_override_mode=$lt_install_override_mode
28488
1cf3d07d
SE
28489# Command to use after installation of a shared archive.
28490postinstall_cmds=$lt_postinstall_cmds
28491
28492# Command to use after uninstallation of a shared archive.
28493postuninstall_cmds=$lt_postuninstall_cmds
28494
28495# Commands used to finish a libtool library installation in a directory.
28496finish_cmds=$lt_finish_cmds
28497
28498# As "finish_cmds", except a single script fragment to be evaled but
28499# not shown.
28500finish_eval=$lt_finish_eval
28501
28502# Whether we should hardcode library paths into libraries.
28503hardcode_into_libs=$hardcode_into_libs
28504
28505# Compile-time system search path for libraries.
28506sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28507
28508# Run-time system search path for libraries.
28509sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28510
28511# Whether dlopen is supported.
28512dlopen_support=$enable_dlopen
28513
28514# Whether dlopen of programs is supported.
28515dlopen_self=$enable_dlopen_self
28516
28517# Whether dlopen of statically linked programs is supported.
28518dlopen_self_static=$enable_dlopen_self_static
28519
28520# Commands to strip libraries.
28521old_striplib=$lt_old_striplib
28522striplib=$lt_striplib
28523
28524
28525# The linker used to build libraries.
28526LD=$lt_LD
28527
43e02a8a
RW
28528# How to create reloadable object files.
28529reload_flag=$lt_reload_flag
28530reload_cmds=$lt_reload_cmds
28531
1cf3d07d
SE
28532# Commands used to build an old-style archive.
28533old_archive_cmds=$lt_old_archive_cmds
28534
28535# A language specific compiler.
28536CC=$lt_compiler
28537
28538# Is the compiler the GNU compiler?
28539with_gcc=$GCC
28540
28541# Compiler flag to turn off builtin functions.
28542no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28543
28544# How to pass a linker flag through the compiler.
28545wl=$lt_lt_prog_compiler_wl
28546
28547# Additional compiler flags for building library objects.
28548pic_flag=$lt_lt_prog_compiler_pic
28549
28550# Compiler flag to prevent dynamic linking.
28551link_static_flag=$lt_lt_prog_compiler_static
28552
28553# Does compiler simultaneously support -c and -o options?
28554compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28555
28556# Whether or not to add -lc for building shared libraries.
28557build_libtool_need_lc=$archive_cmds_need_lc
28558
28559# Whether or not to disallow shared libs when runtime libs are static.
28560allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28561
28562# Compiler flag to allow reflexive dlopens.
28563export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28564
28565# Compiler flag to generate shared objects directly from archives.
28566whole_archive_flag_spec=$lt_whole_archive_flag_spec
28567
28568# Whether the compiler copes with passing no objects directly.
28569compiler_needs_object=$lt_compiler_needs_object
28570
28571# Create an old-style archive from a shared archive.
28572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28573
28574# Create a temporary old-style archive to link instead of a shared archive.
28575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28576
28577# Commands used to build a shared archive.
28578archive_cmds=$lt_archive_cmds
28579archive_expsym_cmds=$lt_archive_expsym_cmds
28580
28581# Commands used to build a loadable module if different from building
28582# a shared archive.
28583module_cmds=$lt_module_cmds
28584module_expsym_cmds=$lt_module_expsym_cmds
28585
28586# Whether we are building with GNU ld or not.
28587with_gnu_ld=$lt_with_gnu_ld
28588
28589# Flag that allows shared libraries with undefined symbols to be built.
28590allow_undefined_flag=$lt_allow_undefined_flag
28591
28592# Flag that enforces no undefined symbols.
28593no_undefined_flag=$lt_no_undefined_flag
28594
28595# Flag to hardcode \$libdir into a binary during linking.
28596# This must work even if \$libdir does not exist
28597hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28598
28599# If ld is used when linking, flag to hardcode \$libdir into a binary
28600# during linking. This must work even if \$libdir does not exist.
28601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28602
28603# Whether we need a single "-rpath" flag with a separated argument.
28604hardcode_libdir_separator=$lt_hardcode_libdir_separator
28605
28606# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28607# DIR into the resulting binary.
28608hardcode_direct=$hardcode_direct
28609
28610# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28611# DIR into the resulting binary and the resulting library dependency is
28612# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28613# library is relocated.
28614hardcode_direct_absolute=$hardcode_direct_absolute
28615
28616# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28617# into the resulting binary.
28618hardcode_minus_L=$hardcode_minus_L
28619
28620# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28621# into the resulting binary.
28622hardcode_shlibpath_var=$hardcode_shlibpath_var
28623
28624# Set to "yes" if building a shared library automatically hardcodes DIR
28625# into the library and all subsequent libraries and executables linked
28626# against it.
28627hardcode_automatic=$hardcode_automatic
28628
28629# Set to yes if linker adds runtime paths of dependent libraries
28630# to runtime path list.
28631inherit_rpath=$inherit_rpath
28632
28633# Whether libtool must link a program against all its dependency libraries.
28634link_all_deplibs=$link_all_deplibs
28635
28636# Fix the shell variable \$srcfile for the compiler.
28637fix_srcfile_path=$lt_fix_srcfile_path
28638
28639# Set to "yes" if exported symbols are required.
28640always_export_symbols=$always_export_symbols
28641
28642# The commands to list exported symbols.
28643export_symbols_cmds=$lt_export_symbols_cmds
28644
28645# Symbols that should not be listed in the preloaded symbols.
28646exclude_expsyms=$lt_exclude_expsyms
28647
28648# Symbols that must always be exported.
28649include_expsyms=$lt_include_expsyms
28650
28651# Commands necessary for linking programs (against libraries) with templates.
28652prelink_cmds=$lt_prelink_cmds
28653
28654# Specify filename containing input files.
28655file_list_spec=$lt_file_list_spec
28656
28657# How to hardcode a shared library path into an executable.
28658hardcode_action=$hardcode_action
28659
d58dead8
PG
28660# The directories searched by this compiler when creating a shared library.
28661compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28662
1cf3d07d
SE
28663# Dependencies to place before and after the objects being linked to
28664# create a shared library.
28665predep_objects=$lt_predep_objects
28666postdep_objects=$lt_postdep_objects
28667predeps=$lt_predeps
28668postdeps=$lt_postdeps
28669
28670# The library search path used internally by the compiler when linking
28671# a shared library.
28672compiler_lib_search_path=$lt_compiler_lib_search_path
28673
28674# ### END LIBTOOL CONFIG
28675
28676_LT_EOF
28677
28678 case $host_os in
28679 aix3*)
28680 cat <<\_LT_EOF >> "$cfgfile"
28681# AIX sometimes has problems with the GCC collect2 program. For some
28682# reason, if we set the COLLECT_NAMES environment variable, the problems
28683# vanish in a puff of smoke.
28684if test "X${COLLECT_NAMES+set}" != Xset; then
28685 COLLECT_NAMES=
28686 export COLLECT_NAMES
28687fi
28688_LT_EOF
28689 ;;
28690 esac
28691
28692
28693ltmain="$ac_aux_dir/ltmain.sh"
28694
28695
28696 # We use sed instead of cat because bash on DJGPP gets confused if
28697 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28698 # text mode, it properly converts lines to CR/LF. This bash problem
28699 # is reportedly fixed, but why not run on old versions too?
28700 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28701 || (rm -f "$cfgfile"; exit 1)
28702
28703 case $xsi_shell in
28704 yes)
28705 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28706
1cf3d07d
SE
28707# func_dirname file append nondir_replacement
28708# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28709# otherwise set result to NONDIR_REPLACEMENT.
28710func_dirname ()
28711{
28712 case ${1} in
28713 */*) func_dirname_result="${1%/*}${2}" ;;
28714 * ) func_dirname_result="${3}" ;;
28715 esac
28716}
28717
28718# func_basename file
28719func_basename ()
28720{
28721 func_basename_result="${1##*/}"
28722}
28723
d58dead8
PG
28724# func_dirname_and_basename file append nondir_replacement
28725# perform func_basename and func_dirname in a single function
28726# call:
28727# dirname: Compute the dirname of FILE. If nonempty,
28728# add APPEND to the result, otherwise set result
28729# to NONDIR_REPLACEMENT.
28730# value returned in "$func_dirname_result"
28731# basename: Compute filename of FILE.
28732# value retuned in "$func_basename_result"
28733# Implementation must be kept synchronized with func_dirname
28734# and func_basename. For efficiency, we do not delegate to
28735# those functions but instead duplicate the functionality here.
28736func_dirname_and_basename ()
28737{
28738 case ${1} in
28739 */*) func_dirname_result="${1%/*}${2}" ;;
28740 * ) func_dirname_result="${3}" ;;
28741 esac
28742 func_basename_result="${1##*/}"
28743}
28744
1cf3d07d
SE
28745# func_stripname prefix suffix name
28746# strip PREFIX and SUFFIX off of NAME.
28747# PREFIX and SUFFIX must not contain globbing or regex special
28748# characters, hashes, percent signs, but SUFFIX may contain a leading
28749# dot (in which case that matches only a dot).
28750func_stripname ()
28751{
28752 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28753 # positional parameters, so assign one to ordinary parameter first.
28754 func_stripname_result=${3}
28755 func_stripname_result=${func_stripname_result#"${1}"}
28756 func_stripname_result=${func_stripname_result%"${2}"}
28757}
28758
28759# func_opt_split
28760func_opt_split ()
28761{
28762 func_opt_split_opt=${1%%=*}
28763 func_opt_split_arg=${1#*=}
28764}
28765
28766# func_lo2o object
28767func_lo2o ()
28768{
28769 case ${1} in
28770 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28771 *) func_lo2o_result=${1} ;;
28772 esac
28773}
d58dead8
PG
28774
28775# func_xform libobj-or-source
28776func_xform ()
28777{
28778 func_xform_result=${1%.*}.lo
28779}
28780
28781# func_arith arithmetic-term...
28782func_arith ()
28783{
28784 func_arith_result=$(( $* ))
28785}
28786
28787# func_len string
28788# STRING may not start with a hyphen.
28789func_len ()
28790{
28791 func_len_result=${#1}
28792}
28793
1cf3d07d
SE
28794_LT_EOF
28795 ;;
28796 *) # Bourne compatible functions.
28797 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28798
1cf3d07d
SE
28799# func_dirname file append nondir_replacement
28800# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28801# otherwise set result to NONDIR_REPLACEMENT.
28802func_dirname ()
28803{
28804 # Extract subdirectory from the argument.
43e02a8a 28805 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
28806 if test "X$func_dirname_result" = "X${1}"; then
28807 func_dirname_result="${3}"
28808 else
28809 func_dirname_result="$func_dirname_result${2}"
28810 fi
28811}
28812
28813# func_basename file
28814func_basename ()
28815{
43e02a8a 28816 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
28817}
28818
d58dead8 28819
1cf3d07d
SE
28820# func_stripname prefix suffix name
28821# strip PREFIX and SUFFIX off of NAME.
28822# PREFIX and SUFFIX must not contain globbing or regex special
28823# characters, hashes, percent signs, but SUFFIX may contain a leading
28824# dot (in which case that matches only a dot).
28825# func_strip_suffix prefix name
28826func_stripname ()
28827{
28828 case ${2} in
43e02a8a
RW
28829 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28830 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
28831 esac
28832}
28833
28834# sed scripts:
28835my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28836my_sed_long_arg='1s/^-[^=]*=//'
28837
28838# func_opt_split
28839func_opt_split ()
28840{
43e02a8a
RW
28841 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28842 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
28843}
28844
28845# func_lo2o object
28846func_lo2o ()
28847{
43e02a8a 28848 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 28849}
d58dead8
PG
28850
28851# func_xform libobj-or-source
28852func_xform ()
28853{
43e02a8a 28854 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
28855}
28856
28857# func_arith arithmetic-term...
28858func_arith ()
28859{
28860 func_arith_result=`expr "$@"`
28861}
28862
28863# func_len string
28864# STRING may not start with a hyphen.
28865func_len ()
28866{
28867 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28868}
28869
1cf3d07d
SE
28870_LT_EOF
28871esac
28872
28873case $lt_shell_append in
28874 yes)
28875 cat << \_LT_EOF >> "$cfgfile"
28876
28877# func_append var value
28878# Append VALUE to the end of shell variable VAR.
28879func_append ()
28880{
28881 eval "$1+=\$2"
28882}
28883_LT_EOF
28884 ;;
28885 *)
28886 cat << \_LT_EOF >> "$cfgfile"
28887
28888# func_append var value
28889# Append VALUE to the end of shell variable VAR.
28890func_append ()
28891{
28892 eval "$1=\$$1\$2"
28893}
d58dead8 28894
1cf3d07d
SE
28895_LT_EOF
28896 ;;
28897 esac
28898
28899
28900 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28901 || (rm -f "$cfgfile"; exit 1)
28902
28903 mv -f "$cfgfile" "$ofile" ||
28904 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28905 chmod +x "$ofile"
28906
28907
28908 cat <<_LT_EOF >> "$ofile"
28909
28910# ### BEGIN LIBTOOL TAG CONFIG: FC
28911
28912# The linker used to build libraries.
28913LD=$lt_LD_FC
28914
43e02a8a
RW
28915# How to create reloadable object files.
28916reload_flag=$lt_reload_flag_FC
28917reload_cmds=$lt_reload_cmds_FC
28918
1cf3d07d
SE
28919# Commands used to build an old-style archive.
28920old_archive_cmds=$lt_old_archive_cmds_FC
28921
28922# A language specific compiler.
28923CC=$lt_compiler_FC
28924
28925# Is the compiler the GNU compiler?
28926with_gcc=$GCC_FC
28927
28928# Compiler flag to turn off builtin functions.
28929no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28930
28931# How to pass a linker flag through the compiler.
28932wl=$lt_lt_prog_compiler_wl_FC
28933
28934# Additional compiler flags for building library objects.
28935pic_flag=$lt_lt_prog_compiler_pic_FC
28936
28937# Compiler flag to prevent dynamic linking.
28938link_static_flag=$lt_lt_prog_compiler_static_FC
28939
28940# Does compiler simultaneously support -c and -o options?
28941compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28942
28943# Whether or not to add -lc for building shared libraries.
28944build_libtool_need_lc=$archive_cmds_need_lc_FC
28945
28946# Whether or not to disallow shared libs when runtime libs are static.
28947allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28948
28949# Compiler flag to allow reflexive dlopens.
28950export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28951
28952# Compiler flag to generate shared objects directly from archives.
28953whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28954
28955# Whether the compiler copes with passing no objects directly.
28956compiler_needs_object=$lt_compiler_needs_object_FC
28957
28958# Create an old-style archive from a shared archive.
28959old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
28960
28961# Create a temporary old-style archive to link instead of a shared archive.
28962old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
28963
28964# Commands used to build a shared archive.
28965archive_cmds=$lt_archive_cmds_FC
28966archive_expsym_cmds=$lt_archive_expsym_cmds_FC
28967
28968# Commands used to build a loadable module if different from building
28969# a shared archive.
28970module_cmds=$lt_module_cmds_FC
28971module_expsym_cmds=$lt_module_expsym_cmds_FC
28972
28973# Whether we are building with GNU ld or not.
28974with_gnu_ld=$lt_with_gnu_ld_FC
28975
28976# Flag that allows shared libraries with undefined symbols to be built.
28977allow_undefined_flag=$lt_allow_undefined_flag_FC
28978
28979# Flag that enforces no undefined symbols.
28980no_undefined_flag=$lt_no_undefined_flag_FC
28981
28982# Flag to hardcode \$libdir into a binary during linking.
28983# This must work even if \$libdir does not exist
28984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
28985
28986# If ld is used when linking, flag to hardcode \$libdir into a binary
28987# during linking. This must work even if \$libdir does not exist.
28988hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
28989
28990# Whether we need a single "-rpath" flag with a separated argument.
28991hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
28992
28993# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28994# DIR into the resulting binary.
28995hardcode_direct=$hardcode_direct_FC
28996
28997# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28998# DIR into the resulting binary and the resulting library dependency is
28999# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29000# library is relocated.
29001hardcode_direct_absolute=$hardcode_direct_absolute_FC
29002
29003# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29004# into the resulting binary.
29005hardcode_minus_L=$hardcode_minus_L_FC
29006
29007# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29008# into the resulting binary.
29009hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29010
29011# Set to "yes" if building a shared library automatically hardcodes DIR
29012# into the library and all subsequent libraries and executables linked
29013# against it.
29014hardcode_automatic=$hardcode_automatic_FC
29015
29016# Set to yes if linker adds runtime paths of dependent libraries
29017# to runtime path list.
29018inherit_rpath=$inherit_rpath_FC
29019
29020# Whether libtool must link a program against all its dependency libraries.
29021link_all_deplibs=$link_all_deplibs_FC
29022
29023# Fix the shell variable \$srcfile for the compiler.
29024fix_srcfile_path=$lt_fix_srcfile_path_FC
29025
29026# Set to "yes" if exported symbols are required.
29027always_export_symbols=$always_export_symbols_FC
29028
29029# The commands to list exported symbols.
29030export_symbols_cmds=$lt_export_symbols_cmds_FC
29031
29032# Symbols that should not be listed in the preloaded symbols.
29033exclude_expsyms=$lt_exclude_expsyms_FC
29034
29035# Symbols that must always be exported.
29036include_expsyms=$lt_include_expsyms_FC
29037
29038# Commands necessary for linking programs (against libraries) with templates.
29039prelink_cmds=$lt_prelink_cmds_FC
29040
29041# Specify filename containing input files.
29042file_list_spec=$lt_file_list_spec_FC
29043
29044# How to hardcode a shared library path into an executable.
29045hardcode_action=$hardcode_action_FC
29046
d58dead8
PG
29047# The directories searched by this compiler when creating a shared library.
29048compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29049
1cf3d07d
SE
29050# Dependencies to place before and after the objects being linked to
29051# create a shared library.
29052predep_objects=$lt_predep_objects_FC
29053postdep_objects=$lt_postdep_objects_FC
29054predeps=$lt_predeps_FC
29055postdeps=$lt_postdeps_FC
29056
29057# The library search path used internally by the compiler when linking
29058# a shared library.
29059compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29060
29061# ### END LIBTOOL TAG CONFIG: FC
29062_LT_EOF
29063
679c0f9a 29064 ;;
5213506e 29065 "gstdint.h":C)
c13e029b
PB
29066if test "$GCC" = yes; then
29067 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29068else
29069 echo "/* generated for $CC */" > tmp-stdint.h
29070fi
4c4b3eb0 29071
c13e029b
PB
29072sed 's/^ *//' >> tmp-stdint.h <<EOF
29073
29074 #ifndef GCC_GENERATED_STDINT_H
29075 #define GCC_GENERATED_STDINT_H 1
29076
29077 #include <sys/types.h>
4c4b3eb0 29078EOF
4c4b3eb0 29079
c13e029b
PB
29080if test "$acx_cv_header_stdint" != stdint.h; then
29081 echo "#include <stddef.h>" >> tmp-stdint.h
29082fi
29083if test "$acx_cv_header_stdint" != stddef.h; then
29084 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29085fi
29086
29087sed 's/^ *//' >> tmp-stdint.h <<EOF
29088 /* glibc uses these symbols as guards to prevent redefinitions. */
29089 #ifdef __int8_t_defined
29090 #define _INT8_T
29091 #define _INT16_T
29092 #define _INT32_T
29093 #endif
29094 #ifdef __uint32_t_defined
29095 #define _UINT32_T
29096 #endif
29097
29098EOF
29099
29100# ----------------- done header, emit basic int types -------------
29101if test "$acx_cv_header_stdint" = stddef.h; then
29102 sed 's/^ *//' >> tmp-stdint.h <<EOF
29103
29104 #ifndef _UINT8_T
29105 #define _UINT8_T
29106 #ifndef __uint8_t_defined
29107 #define __uint8_t_defined
b9497ab5 29108 #ifndef uint8_t
c13e029b
PB
29109 typedef unsigned $acx_cv_type_int8_t uint8_t;
29110 #endif
29111 #endif
b9497ab5 29112 #endif
c13e029b
PB
29113
29114 #ifndef _UINT16_T
29115 #define _UINT16_T
29116 #ifndef __uint16_t_defined
29117 #define __uint16_t_defined
b9497ab5 29118 #ifndef uint16_t
c13e029b
PB
29119 typedef unsigned $acx_cv_type_int16_t uint16_t;
29120 #endif
29121 #endif
b9497ab5 29122 #endif
c13e029b
PB
29123
29124 #ifndef _UINT32_T
29125 #define _UINT32_T
29126 #ifndef __uint32_t_defined
29127 #define __uint32_t_defined
b9497ab5 29128 #ifndef uint32_t
c13e029b
PB
29129 typedef unsigned $acx_cv_type_int32_t uint32_t;
29130 #endif
29131 #endif
b9497ab5 29132 #endif
c13e029b
PB
29133
29134 #ifndef _INT8_T
29135 #define _INT8_T
29136 #ifndef __int8_t_defined
29137 #define __int8_t_defined
b9497ab5 29138 #ifndef int8_t
c13e029b
PB
29139 typedef $acx_cv_type_int8_t int8_t;
29140 #endif
29141 #endif
b9497ab5 29142 #endif
c13e029b
PB
29143
29144 #ifndef _INT16_T
29145 #define _INT16_T
29146 #ifndef __int16_t_defined
29147 #define __int16_t_defined
b9497ab5 29148 #ifndef int16_t
c13e029b
PB
29149 typedef $acx_cv_type_int16_t int16_t;
29150 #endif
29151 #endif
b9497ab5 29152 #endif
c13e029b
PB
29153
29154 #ifndef _INT32_T
29155 #define _INT32_T
29156 #ifndef __int32_t_defined
29157 #define __int32_t_defined
b9497ab5 29158 #ifndef int32_t
c13e029b
PB
29159 typedef $acx_cv_type_int32_t int32_t;
29160 #endif
29161 #endif
b9497ab5 29162 #endif
c13e029b
PB
29163EOF
29164elif test "$ac_cv_type_u_int32_t" = yes; then
29165 sed 's/^ *//' >> tmp-stdint.h <<EOF
29166
29167 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29168 #ifndef _INT8_T
29169 #define _INT8_T
29170 #endif
29171 #ifndef _INT16_T
29172 #define _INT16_T
29173 #endif
29174 #ifndef _INT32_T
29175 #define _INT32_T
29176 #endif
29177
29178 #ifndef _UINT8_T
29179 #define _UINT8_T
29180 #ifndef __uint8_t_defined
29181 #define __uint8_t_defined
b9497ab5 29182 #ifndef uint8_t
c13e029b
PB
29183 typedef u_int8_t uint8_t;
29184 #endif
29185 #endif
b9497ab5 29186 #endif
c13e029b
PB
29187
29188 #ifndef _UINT16_T
29189 #define _UINT16_T
29190 #ifndef __uint16_t_defined
29191 #define __uint16_t_defined
b9497ab5 29192 #ifndef uint16_t
c13e029b
PB
29193 typedef u_int16_t uint16_t;
29194 #endif
29195 #endif
b9497ab5 29196 #endif
c13e029b
PB
29197
29198 #ifndef _UINT32_T
29199 #define _UINT32_T
29200 #ifndef __uint32_t_defined
29201 #define __uint32_t_defined
b9497ab5 29202 #ifndef uint32_t
c13e029b
PB
29203 typedef u_int32_t uint32_t;
29204 #endif
29205 #endif
b9497ab5 29206 #endif
c13e029b
PB
29207EOF
29208else
29209 sed 's/^ *//' >> tmp-stdint.h <<EOF
29210
29211 /* Some systems have guard macros to prevent redefinitions, define them. */
29212 #ifndef _INT8_T
29213 #define _INT8_T
29214 #endif
29215 #ifndef _INT16_T
29216 #define _INT16_T
29217 #endif
29218 #ifndef _INT32_T
29219 #define _INT32_T
29220 #endif
29221 #ifndef _UINT8_T
29222 #define _UINT8_T
29223 #endif
29224 #ifndef _UINT16_T
29225 #define _UINT16_T
29226 #endif
29227 #ifndef _UINT32_T
29228 #define _UINT32_T
29229 #endif
29230EOF
29231fi
29232
29233# ------------- done basic int types, emit int64_t types ------------
29234if test "$ac_cv_type_uint64_t" = yes; then
29235 sed 's/^ *//' >> tmp-stdint.h <<EOF
29236
29237 /* system headers have good uint64_t and int64_t */
29238 #ifndef _INT64_T
29239 #define _INT64_T
29240 #endif
29241 #ifndef _UINT64_T
29242 #define _UINT64_T
29243 #endif
29244EOF
29245elif test "$ac_cv_type_u_int64_t" = yes; then
29246 sed 's/^ *//' >> tmp-stdint.h <<EOF
29247
29248 /* system headers have an u_int64_t (and int64_t) */
29249 #ifndef _INT64_T
29250 #define _INT64_T
29251 #endif
29252 #ifndef _UINT64_T
29253 #define _UINT64_T
29254 #ifndef __uint64_t_defined
29255 #define __uint64_t_defined
b9497ab5 29256 #ifndef uint64_t
c13e029b
PB
29257 typedef u_int64_t uint64_t;
29258 #endif
29259 #endif
b9497ab5 29260 #endif
c13e029b
PB
29261EOF
29262elif test -n "$acx_cv_type_int64_t"; then
29263 sed 's/^ *//' >> tmp-stdint.h <<EOF
29264
29265 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29266 #ifndef _INT64_T
29267 #define _INT64_T
b9497ab5 29268 #ifndef int64_t
c13e029b
PB
29269 typedef $acx_cv_type_int64_t int64_t;
29270 #endif
b9497ab5 29271 #endif
c13e029b
PB
29272 #ifndef _UINT64_T
29273 #define _UINT64_T
29274 #ifndef __uint64_t_defined
29275 #define __uint64_t_defined
b9497ab5 29276 #ifndef uint64_t
c13e029b
PB
29277 typedef unsigned $acx_cv_type_int64_t uint64_t;
29278 #endif
29279 #endif
b9497ab5 29280 #endif
c13e029b
PB
29281EOF
29282else
29283 sed 's/^ *//' >> tmp-stdint.h <<EOF
29284
29285 /* some common heuristics for int64_t, using compiler-specific tests */
29286 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29287 #ifndef _INT64_T
29288 #define _INT64_T
29289 #ifndef __int64_t_defined
b9497ab5 29290 #ifndef int64_t
c13e029b
PB
29291 typedef long long int64_t;
29292 #endif
29293 #endif
b9497ab5 29294 #endif
c13e029b
PB
29295 #ifndef _UINT64_T
29296 #define _UINT64_T
b9497ab5 29297 #ifndef uint64_t
c13e029b
PB
29298 typedef unsigned long long uint64_t;
29299 #endif
b9497ab5 29300 #endif
c13e029b
PB
29301
29302 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29303 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29304 does not implement __extension__. But that compiler doesn't define
29305 __GNUC_MINOR__. */
29306 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29307 # define __extension__
29308 # endif
29309
29310 # ifndef _INT64_T
29311 # define _INT64_T
b9497ab5 29312 # ifndef int64_t
c13e029b
PB
29313 __extension__ typedef long long int64_t;
29314 # endif
b9497ab5 29315 # endif
c13e029b
PB
29316 # ifndef _UINT64_T
29317 # define _UINT64_T
b9497ab5 29318 # ifndef uint64_t
c13e029b
PB
29319 __extension__ typedef unsigned long long uint64_t;
29320 # endif
b9497ab5 29321 # endif
c13e029b
PB
29322
29323 #elif !defined __STRICT_ANSI__
29324 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29325
29326 # ifndef _INT64_T
29327 # define _INT64_T
b9497ab5 29328 # ifndef int64_t
c13e029b
PB
29329 typedef __int64 int64_t;
29330 # endif
b9497ab5 29331 # endif
c13e029b
PB
29332 # ifndef _UINT64_T
29333 # define _UINT64_T
b9497ab5 29334 # ifndef uint64_t
c13e029b
PB
29335 typedef unsigned __int64 uint64_t;
29336 # endif
b9497ab5 29337 # endif
c13e029b
PB
29338 # endif /* compiler */
29339
29340 #endif /* ANSI version */
29341EOF
29342fi
29343
29344# ------------- done int64_t types, emit intptr types ------------
29345if test "$ac_cv_type_uintptr_t" != yes; then
29346 sed 's/^ *//' >> tmp-stdint.h <<EOF
29347
29348 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29349 #ifndef __uintptr_t_defined
b9497ab5 29350 #ifndef uintptr_t
c13e029b
PB
29351 typedef u$acx_cv_type_intptr_t uintptr_t;
29352 #endif
b9497ab5 29353 #endif
c13e029b 29354 #ifndef __intptr_t_defined
b9497ab5 29355 #ifndef intptr_t
c13e029b
PB
29356 typedef $acx_cv_type_intptr_t intptr_t;
29357 #endif
b9497ab5 29358 #endif
c13e029b
PB
29359EOF
29360fi
29361
29362# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 29363if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 29364 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29365
29366 /* Define int_least types */
29367 typedef int8_t int_least8_t;
29368 typedef int16_t int_least16_t;
29369 typedef int32_t int_least32_t;
c13e029b 29370 #ifdef _INT64_T
4c4b3eb0 29371 typedef int64_t int_least64_t;
c13e029b 29372 #endif
4c4b3eb0
PB
29373
29374 typedef uint8_t uint_least8_t;
29375 typedef uint16_t uint_least16_t;
29376 typedef uint32_t uint_least32_t;
c13e029b 29377 #ifdef _UINT64_T
4c4b3eb0 29378 typedef uint64_t uint_least64_t;
c13e029b 29379 #endif
4c4b3eb0
PB
29380EOF
29381fi
29382
c13e029b 29383# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 29384if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 29385 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
29386
29387 /* Define int_fast types. short is often slow */
29388 typedef int8_t int_fast8_t;
29389 typedef int int_fast16_t;
29390 typedef int32_t int_fast32_t;
c13e029b 29391 #ifdef _INT64_T
4c4b3eb0 29392 typedef int64_t int_fast64_t;
c13e029b 29393 #endif
4c4b3eb0
PB
29394
29395 typedef uint8_t uint_fast8_t;
29396 typedef unsigned int uint_fast16_t;
29397 typedef uint32_t uint_fast32_t;
c13e029b 29398 #ifdef _UINT64_T
4c4b3eb0 29399 typedef uint64_t uint_fast64_t;
c13e029b
PB
29400 #endif
29401EOF
29402fi
29403
29404if test "$ac_cv_type_uintmax_t" != yes; then
29405 sed 's/^ *//' >> tmp-stdint.h <<EOF
29406
29407 /* Define intmax based on what we found */
b9497ab5 29408 #ifndef intmax_t
c13e029b
PB
29409 #ifdef _INT64_T
29410 typedef int64_t intmax_t;
29411 #else
29412 typedef long intmax_t;
29413 #endif
b9497ab5
RO
29414 #endif
29415 #ifndef uintmax_t
c13e029b
PB
29416 #ifdef _UINT64_T
29417 typedef uint64_t uintmax_t;
29418 #else
29419 typedef unsigned long uintmax_t;
29420 #endif
b9497ab5 29421 #endif
4c4b3eb0
PB
29422EOF
29423fi
29424
c13e029b
PB
29425sed 's/^ *//' >> tmp-stdint.h <<EOF
29426
29427 #endif /* GCC_GENERATED_STDINT_H */
29428EOF
4c4b3eb0 29429
c13e029b
PB
29430if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29431 rm -f tmp-stdint.h
4c4b3eb0 29432else
c13e029b 29433 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
29434fi
29435
29436 ;;
5213506e 29437
6de9cd9a 29438 esac
5213506e 29439done # for ac_tag
6de9cd9a 29440
6de9cd9a 29441
5213506e 29442as_fn_exit 0
6de9cd9a 29443_ACEOF
6de9cd9a
DN
29444ac_clean_files=$ac_clean_files_save
29445
5213506e
RW
29446test $ac_write_fail = 0 ||
29447 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29448
6de9cd9a
DN
29449
29450# configure is writing to config.log, and then calls config.status.
29451# config.status does its own redirection, appending to config.log.
29452# Unfortunately, on DOS this fails, as config.log is still kept open
29453# by configure, so config.status won't be able to write to it; its
29454# output is simply discarded. So we exec the FD to /dev/null,
29455# effectively closing config.log, so it can be properly (re)opened and
29456# appended to by config.status. When coming back to configure, we
29457# need to make the FD available again.
29458if test "$no_create" != yes; then
29459 ac_cs_success=:
29460 ac_config_status_args=
29461 test "$silent" = yes &&
29462 ac_config_status_args="$ac_config_status_args --quiet"
29463 exec 5>/dev/null
29464 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29465 exec 5>>config.log
29466 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29467 # would make configure fail if this is the last instruction.
5213506e
RW
29468 $ac_cs_success || as_fn_exit $?
29469fi
29470if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29472$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
29473fi
29474
This page took 5.719655 seconds and 5 git commands to generate.