]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
Remove freebsd1 from libtool.m4 macros and config.rpath.
[thirdparty/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
1ec601bf 600ac_c_werror_flag=
5213506e
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605IEEE_FLAGS
606FPU_HOST_HEADER
1ec601bf
FXC
607LIBGFOR_BUILD_QUAD_FALSE
608LIBGFOR_BUILD_QUAD_TRUE
609LIBQUADINCLUDE
610LIBQUADLIB_DEP
611LIBQUADLIB
612LIBQUADSPEC
5213506e
RW
613extra_ldflags_libgfortran
614ac_ct_FC
615FCFLAGS
616FC
617enable_static
618enable_shared
7de6ba7a 619lt_host_flags
5213506e
RW
620OTOOL64
621OTOOL
622LIPO
623NMEDIT
624DSYMUTIL
5213506e
RW
625OBJDUMP
626LN_S
627NM
628ac_ct_DUMPBIN
629DUMPBIN
630LD
631FGREP
5213506e
RW
632SED
633LIBTOOL
634RANLIB
635AR
636AS
637SECTION_FLAGS
49ea7a0e
RO
638LIBGFOR_USE_SYMVER_SUN_FALSE
639LIBGFOR_USE_SYMVER_SUN_TRUE
640LIBGFOR_USE_SYMVER_GNU_FALSE
641LIBGFOR_USE_SYMVER_GNU_TRUE
5213506e
RW
642LIBGFOR_USE_SYMVER_FALSE
643LIBGFOR_USE_SYMVER_TRUE
644AM_CFLAGS
645AM_FCFLAGS
21be0a5a
JB
646toolexeclibdir
647toolexecdir
648EGREP
649GREP
650CPP
5213506e
RW
651am__fastdepCC_FALSE
652am__fastdepCC_TRUE
653CCDEPMODE
654AMDEPBACKSLASH
655AMDEP_FALSE
656AMDEP_TRUE
657am__quote
658am__include
659DEPDIR
660OBJEXT
661EXEEXT
662ac_ct_CC
663CPPFLAGS
664LDFLAGS
665CFLAGS
666CC
5213506e
RW
667multi_basedir
668MAINT
669MAINTAINER_MODE_FALSE
670MAINTAINER_MODE_TRUE
671am__untar
672am__tar
673AMTAR
674am__leading_dot
675SET_MAKE
676AWK
677mkdir_p
678MKDIR_P
679INSTALL_STRIP_PROGRAM
680STRIP
681install_sh
682MAKEINFO
683AUTOHEADER
684AUTOMAKE
685AUTOCONF
686ACLOCAL
687VERSION
688PACKAGE
689CYGPATH_W
690am__isrc
691INSTALL_DATA
692INSTALL_SCRIPT
693INSTALL_PROGRAM
694target_os
695target_vendor
696target_cpu
697target
698host_os
699host_vendor
700host_cpu
701host
702onestep
703onestep_FALSE
704onestep_TRUE
705target_subdir
706host_subdir
707build_subdir
708build_libsubdir
709build_os
710build_vendor
711build_cpu
712build
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL'
6de9cd9a 751ac_subst_files=''
5213506e
RW
752ac_user_opts='
753enable_option_checking
754with_build_libsubdir
755enable_version_specific_runtime_libs
756enable_intermodule
757enable_maintainer_mode
758enable_multilib
759enable_dependency_tracking
760enable_shared
761enable_static
762with_pic
763enable_fast_install
764with_gnu_ld
765enable_libtool_lock
766enable_largefile
87e6d9dc 767enable_libquadmath_support
5213506e
RW
768'
769 ac_precious_vars='build_alias
770host_alias
771target_alias
21be0a5a
JB
772CC
773CFLAGS
774LDFLAGS
775LIBS
5213506e 776CPPFLAGS
21be0a5a 777CPP
5213506e 778FC
21be0a5a 779FCFLAGS'
5213506e 780
6de9cd9a
DN
781
782# Initialize some variables set by options.
783ac_init_help=
784ac_init_version=false
5213506e
RW
785ac_unrecognized_opts=
786ac_unrecognized_sep=
6de9cd9a
DN
787# The variables have the same names as the options, with
788# dashes changed to underlines.
789cache_file=/dev/null
790exec_prefix=NONE
791no_create=
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
800verbose=
801x_includes=NONE
802x_libraries=NONE
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 809# (The list follows the same order as the GNU Coding Standards.)
6de9cd9a
DN
810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
5213506e
RW
813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
6de9cd9a
DN
815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
6de9cd9a
DN
818includedir='${prefix}/include'
819oldincludedir='/usr/include'
5213506e
RW
820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
6de9cd9a
DN
829
830ac_prev=
5213506e 831ac_dashdash=
6de9cd9a
DN
832for ac_option
833do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
5213506e 836 eval $ac_prev=\$ac_option
6de9cd9a
DN
837 ac_prev=
838 continue
839 fi
840
5213506e
RW
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
6de9cd9a
DN
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
5213506e
RW
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
6de9cd9a
DN
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
5213506e 872 -datadir | --datadir | --datadi | --datad)
6de9cd9a 873 ac_prev=datadir ;;
5213506e 874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6de9cd9a
DN
875 datadir=$ac_optarg ;;
876
5213506e
RW
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
6de9cd9a 884 -disable-* | --disable-*)
5213506e 885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
6de9cd9a 886 # Reject names that are not valid shell variable names.
5213506e
RW
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893"enable_$ac_useropt"
894"*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
6de9cd9a
DN
909
910 -enable-* | --enable-*)
5213506e 911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
6de9cd9a 912 # Reject names that are not valid shell variable names.
5213506e
RW
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919"enable_$ac_useropt"
920"*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
38d24731 923 esac
5213506e 924 eval enable_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
5213506e
RW
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
6de9cd9a
DN
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
5213506e
RW
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
6de9cd9a 986 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 987 | --localstate | --localstat | --localsta | --localst | --locals)
6de9cd9a
DN
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6de9cd9a
DN
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
5213506e
RW
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
6de9cd9a
DN
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1090
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1113
1114 -with-* | --with-*)
5213506e 1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
6de9cd9a 1116 # Reject names that are not valid shell variable names.
5213506e
RW
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123"with_$ac_useropt"
1124"*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
38d24731 1127 esac
5213506e 1128 eval with_$ac_useropt=\$ac_optarg ;;
6de9cd9a
DN
1129
1130 -without-* | --without-*)
5213506e 1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6de9cd9a 1132 # Reject names that are not valid shell variable names.
5213506e
RW
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139"with_$ac_useropt"
1140"*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
6de9cd9a
DN
1145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1163
5213506e
RW
1164 -*) as_fn_error "unrecognized option: \`$ac_option'
1165Try \`$0 --help' for more information."
6de9cd9a
DN
1166 ;;
1167
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
5213506e
RW
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
6de9cd9a
DN
1176 export $ac_envvar ;;
1177
1178 *)
1179 # FIXME: should be removed in autoconf 3.0.
5213506e 1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6de9cd9a 1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6de9cd9a
DN
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 ;;
1185
1186 esac
1187done
1188
1189if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1191 as_fn_error "missing argument to $ac_option"
6de9cd9a
DN
1192fi
1193
5213506e
RW
1194if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
38d24731 1199 esac
5213506e 1200fi
38d24731 1201
5213506e
RW
1202# Check all directory arguments for consistency.
1203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
38d24731 1207do
5213506e
RW
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
38d24731 1216 case $ac_val in
5213506e
RW
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6de9cd9a 1219 esac
5213506e 1220 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
6de9cd9a
DN
1221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
5213506e 1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6de9cd9a
DN
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
5213506e
RW
1247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error "working directory cannot be determined"
1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error "pwd does not report name of working directory"
1253
1254
6de9cd9a
DN
1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
5213506e
RW
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264$as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
6de9cd9a 1282 srcdir=$ac_confdir
5213506e 1283 if test ! -r "$srcdir/$ac_unique_file"; then
6de9cd9a
DN
1284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
5213506e
RW
1289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1292fi
1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
6de9cd9a
DN
1313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
0dce3ca1 1321\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
6de9cd9a
DN
1322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
6de9cd9a
DN
1341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1343 [$ac_default_prefix]
6de9cd9a 1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1345 [PREFIX]
6de9cd9a
DN
1346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
5213506e
RW
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
6de9cd9a
DN
1374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 1386 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
1387_ACEOF
1388fi
1389
1390if test -n "$ac_init_help"; then
1391 case $ac_init_help in
0dce3ca1 1392 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
6de9cd9a
DN
1393 esac
1394 cat <<\_ACEOF
1395
1396Optional Features:
5213506e 1397 --disable-option-checking ignore unrecognized --enable/--with options
6de9cd9a
DN
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87e6d9dc
TB
1400 --enable-version-specific-runtime-libs
1401 specify that runtime libraries should be installed
1402 in a compiler-specific directory
b808ac33 1403 --enable-intermodule build the library in one step
6de9cd9a
DN
1404 --enable-maintainer-mode enable make rules and dependencies not useful
1405 (and sometimes confusing) to the casual installer
96b8a615 1406 --enable-multilib build many library versions (default)
679c0f9a
TT
1407 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
5213506e
RW
1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
6de9cd9a 1413 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 1414 --disable-largefile omit support for large files
87e6d9dc
TB
1415 --disable-libquadmath-support
1416 disable libquadmath support for Fortran
6de9cd9a
DN
1417
1418Optional Packages:
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 1421 --with-build-libsubdir=DIR Directory where to find libraries for build system
1cf3d07d
SE
1422 --with-pic try to use only PIC/non-PIC objects [default=use
1423 both]
1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6de9cd9a
DN
1425
1426Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
5213506e
RW
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1cf3d07d 1434 CPP C preprocessor
c7a35fe9
AS
1435 FC Fortran compiler command
1436 FCFLAGS Fortran compiler flags
6de9cd9a
DN
1437
1438Use these variables to override the choices made by `configure' or to help
1439it to find libraries and programs with nonstandard names/locations.
1440
5213506e
RW
1441Report bugs to the package provider.
1442GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1443General help using GNU software: <http://www.gnu.org/gethelp/>.
6de9cd9a 1444_ACEOF
5213506e 1445ac_status=$?
6de9cd9a
DN
1446fi
1447
1448if test "$ac_init_help" = "recursive"; then
1449 # If there are subdirs, report their specific --help.
6de9cd9a 1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1451 test -d "$ac_dir" ||
1452 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453 continue
6de9cd9a
DN
1454 ac_builddir=.
1455
5213506e
RW
1456case "$ac_dir" in
1457.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458*)
1459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1460 # A ".." for each directory in $ac_dir_suffix.
1461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1462 case $ac_top_builddir_sub in
1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465 esac ;;
1466esac
1467ac_abs_top_builddir=$ac_pwd
1468ac_abs_builddir=$ac_pwd$ac_dir_suffix
1469# for backward compatibility:
1470ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
1471
1472case $srcdir in
5213506e 1473 .) # We are building in place.
6de9cd9a 1474 ac_srcdir=.
5213506e
RW
1475 ac_top_srcdir=$ac_top_builddir_sub
1476 ac_abs_top_srcdir=$ac_pwd ;;
1477 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 1478 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1479 ac_top_srcdir=$srcdir
1480 ac_abs_top_srcdir=$srcdir ;;
1481 *) # Relative name.
1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483 ac_top_srcdir=$ac_top_build_prefix$srcdir
1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
78511f8b 1485esac
5213506e
RW
1486ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487
1488 cd "$ac_dir" || { ac_status=$?; continue; }
1489 # Check for guested configure.
1490 if test -f "$ac_srcdir/configure.gnu"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493 elif test -f "$ac_srcdir/configure"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure" --help=recursive
6de9cd9a 1496 else
5213506e
RW
1497 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 fi || ac_status=$?
1499 cd "$ac_pwd" || { ac_status=$?; break; }
6de9cd9a
DN
1500 done
1501fi
1502
5213506e 1503test -n "$ac_init_help" && exit $ac_status
6de9cd9a
DN
1504if $ac_init_version; then
1505 cat <<\_ACEOF
0dce3ca1 1506GNU Fortran Runtime Library configure 0.3
5213506e 1507generated by GNU Autoconf 2.64
6de9cd9a 1508
5213506e 1509Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
1510This configure script is free software; the Free Software Foundation
1511gives unlimited permission to copy, distribute and modify it.
1512_ACEOF
5213506e 1513 exit
6de9cd9a 1514fi
6de9cd9a 1515
5213506e
RW
1516## ------------------------ ##
1517## Autoconf initialization. ##
1518## ------------------------ ##
6de9cd9a 1519
5213506e
RW
1520# ac_fn_c_try_compile LINENO
1521# --------------------------
1522# Try to compile conftest.$ac_ext, and return whether this succeeded.
1523ac_fn_c_try_compile ()
1524{
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 rm -f conftest.$ac_objext
1527 if { { ac_try="$ac_compile"
1528case "(($ac_try" in
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1531esac
1532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533$as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_compile") 2>conftest.err
1535 ac_status=$?
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1540 fi
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest.$ac_objext; then :
1546 ac_retval=0
1547else
1548 $as_echo "$as_me: failed program was:" >&5
1549sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1550
5213506e
RW
1551 ac_retval=1
1552fi
1553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554 return $ac_retval
1555
1556} # ac_fn_c_try_compile
1557
21be0a5a
JB
1558# ac_fn_c_try_cpp LINENO
1559# ----------------------
1560# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_cpp ()
6de9cd9a 1562{
5213506e 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1564 if { { ac_try="$ac_cpp conftest.$ac_ext"
5213506e
RW
1565case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
21be0a5a 1571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5213506e
RW
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21be0a5a
JB
1579 test $ac_status = 0; } >/dev/null && {
1580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5213506e 1581 test ! -s conftest.err
5213506e
RW
1582 }; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1587
21be0a5a 1588 ac_retval=1
5213506e 1589fi
5213506e
RW
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 return $ac_retval
6de9cd9a 1592
21be0a5a 1593} # ac_fn_c_try_cpp
6de9cd9a 1594
21be0a5a 1595# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5213506e 1596# -------------------------------------------------------
21be0a5a
JB
1597# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1598# the include files in INCLUDES and setting the cache variable VAR
1599# accordingly.
1600ac_fn_c_check_header_mongrel ()
5213506e
RW
1601{
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21be0a5a 1603 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5213506e
RW
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605$as_echo_n "checking for $2... " >&6; }
1606if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1607 $as_echo_n "(cached) " >&6
21be0a5a
JB
1608fi
1609eval ac_res=\$$3
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611$as_echo "$ac_res" >&6; }
5213506e 1612else
21be0a5a
JB
1613 # Is the header compilable?
1614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1615$as_echo_n "checking $2 usability... " >&6; }
1616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
1617/* end confdefs.h. */
1618$4
1619#include <$2>
1620_ACEOF
1621if ac_fn_c_try_compile "$LINENO"; then :
21be0a5a 1622 ac_header_compiler=yes
5213506e 1623else
21be0a5a 1624 ac_header_compiler=no
5213506e
RW
1625fi
1626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21be0a5a
JB
1627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1628$as_echo "$ac_header_compiler" >&6; }
6de9cd9a 1629
21be0a5a
JB
1630# Is the header present?
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1632$as_echo_n "checking $2 presence... " >&6; }
1633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634/* end confdefs.h. */
1635#include <$2>
1636_ACEOF
1637if ac_fn_c_try_cpp "$LINENO"; then :
1638 ac_header_preproc=yes
1639else
1640 ac_header_preproc=no
1641fi
1642rm -f conftest.err conftest.$ac_ext
1643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1644$as_echo "$ac_header_preproc" >&6; }
6de9cd9a 1645
21be0a5a
JB
1646# So? What about this header?
1647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1648 yes:no: )
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1650$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653 ;;
1654 no:yes:* )
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1656$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1658$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1660$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1662$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1665 ;;
5213506e 1666esac
21be0a5a
JB
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668$as_echo_n "checking for $2... " >&6; }
1669if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1670 $as_echo_n "(cached) " >&6
5213506e 1671else
21be0a5a
JB
1672 eval "$3=\$ac_header_compiler"
1673fi
1674eval ac_res=\$$3
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676$as_echo "$ac_res" >&6; }
5213506e
RW
1677fi
1678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1679
21be0a5a 1680} # ac_fn_c_check_header_mongrel
6de9cd9a 1681
5213506e
RW
1682# ac_fn_c_try_run LINENO
1683# ----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685# that executables *can* be run.
1686ac_fn_c_try_run ()
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700 { { case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_try") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; }; }; then :
1710 ac_retval=0
1711else
1712 $as_echo "$as_me: program exited with status $ac_status" >&5
1713 $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1715
5213506e
RW
1716 ac_retval=$ac_status
1717fi
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
6de9cd9a 1721
5213506e 1722} # ac_fn_c_try_run
6de9cd9a 1723
21be0a5a
JB
1724# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725# -------------------------------------------------------
1726# Tests whether HEADER exists and can be compiled using the include files in
1727# INCLUDES, setting the cache variable VAR accordingly.
1728ac_fn_c_check_header_compile ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735else
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742 eval "$3=yes"
1743else
1744 eval "$3=no"
1745fi
1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747fi
1748eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752
1753} # ac_fn_c_check_header_compile
1754
1755# ac_fn_c_try_link LINENO
1756# -----------------------
1757# Try to link conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_link ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 rm -f conftest.$ac_objext conftest$ac_exeext
1762 if { { ac_try="$ac_link"
1763case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766esac
1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768$as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1775 fi
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } && {
1778 test -z "$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 } && test -s conftest$ac_exeext && {
1781 test "$cross_compiling" = yes ||
1782 $as_test_x conftest$ac_exeext
1783 }; then :
1784 ac_retval=0
1785else
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790fi
1791 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1792 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1793 # interfere with the next link command; also delete a directory that is
1794 # left behind by Apple's compiler. We do this before executing the actions.
1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 return $ac_retval
1798
1799} # ac_fn_c_try_link
1800
5213506e
RW
1801# ac_fn_c_check_func LINENO FUNC VAR
1802# ----------------------------------
1803# Tests whether FUNC exists, setting the cache variable VAR accordingly
1804ac_fn_c_check_func ()
1805{
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808$as_echo_n "checking for $2... " >&6; }
1809if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1811else
1812 if test x$gcc_no_link = xyes; then
1813 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1814fi
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819#define $2 innocuous_$2
6de9cd9a 1820
5213506e
RW
1821/* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char $2 (); below.
1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824 <limits.h> exists even on freestanding compilers. */
6de9cd9a 1825
5213506e
RW
1826#ifdef __STDC__
1827# include <limits.h>
1828#else
1829# include <assert.h>
1830#endif
6de9cd9a 1831
5213506e
RW
1832#undef $2
1833
1834/* Override any GCC internal prototype to avoid an error.
1835 Use char because int might match the return type of a GCC
1836 builtin and then its argument prototype would still apply. */
1837#ifdef __cplusplus
1838extern "C"
1839#endif
1840char $2 ();
1841/* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844#if defined __stub_$2 || defined __stub___$2
1845choke me
1846#endif
1847
1848int
1849main ()
38d24731 1850{
5213506e
RW
1851return $2 ();
1852 ;
1853 return 0;
38d24731 1854}
5213506e
RW
1855_ACEOF
1856if ac_fn_c_try_link "$LINENO"; then :
1857 eval "$3=yes"
1858else
1859 eval "$3=no"
1860fi
1861rm -f core conftest.err conftest.$ac_objext \
1862 conftest$ac_exeext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 1868
5213506e 1869} # ac_fn_c_check_func
6de9cd9a 1870
5213506e
RW
1871# ac_fn_fc_try_compile LINENO
1872# ---------------------------
1873# Try to compile conftest.$ac_ext, and return whether this succeeded.
1874ac_fn_fc_try_compile ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext
1878 if { { ac_try="$ac_compile"
1879case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_compile") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_fc_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest.$ac_objext; then :
1897 ac_retval=0
1898else
1899 $as_echo "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1901
5213506e
RW
1902 ac_retval=1
1903fi
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 return $ac_retval
6de9cd9a 1906
5213506e 1907} # ac_fn_fc_try_compile
6de9cd9a 1908
5213506e
RW
1909# ac_fn_fc_try_link LINENO
1910# ------------------------
1911# Try to link conftest.$ac_ext, and return whether this succeeded.
1912ac_fn_fc_try_link ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920esac
1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922$as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_fc_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 $as_test_x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939else
1940 $as_echo "$as_me: failed program was:" >&5
1941sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 1942
5213506e
RW
1943 ac_retval=1
1944fi
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 return $ac_retval
6de9cd9a 1952
5213506e 1953} # ac_fn_fc_try_link
6de9cd9a 1954
5213506e
RW
1955# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1956# -------------------------------------------
1957# Tests whether TYPE exists after having included INCLUDES, setting cache
1958# variable VAR accordingly.
1959ac_fn_c_check_type ()
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963$as_echo_n "checking for $2... " >&6; }
1964if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1966else
1967 eval "$3=no"
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h. */
1970$4
1971int
1972main ()
1973{
1974if (sizeof ($2))
1975 return 0;
1976 ;
1977 return 0;
1978}
6de9cd9a 1979_ACEOF
5213506e
RW
1980if ac_fn_c_try_compile "$LINENO"; then :
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h. */
1983$4
1984int
1985main ()
1986{
1987if (sizeof (($2)))
1988 return 0;
1989 ;
1990 return 0;
1991}
6de9cd9a 1992_ACEOF
5213506e 1993if ac_fn_c_try_compile "$LINENO"; then :
6de9cd9a 1994
5213506e
RW
1995else
1996 eval "$3=yes"
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999fi
2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001fi
2002eval ac_res=\$$3
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004$as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2006
5213506e 2007} # ac_fn_c_check_type
6de9cd9a 2008
21be0a5a
JB
2009# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2010# --------------------------------------------
2011# Tries to find the compile-time value of EXPR in a program that includes
2012# INCLUDES, setting VAR accordingly. Returns whether the value could be
2013# computed
2014ac_fn_c_compute_int ()
5213506e
RW
2015{
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c13e029b
PB
2017 if test "$cross_compiling" = yes; then
2018 # Depending upon the size, compute the lo and hi bounds.
2019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2020/* end confdefs.h. */
c13e029b 2021$4
5213506e
RW
2022int
2023main ()
2024{
c13e029b 2025static int test_array [1 - 2 * !(($2) >= 0)];
5213506e 2026test_array [0] = 0
6de9cd9a 2027
5213506e
RW
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2033 ac_lo=0 ac_mid=0
2034 while :; do
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2036/* end confdefs.h. */
c13e029b 2037$4
5213506e
RW
2038int
2039main ()
2040{
c13e029b 2041static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2042test_array [0] = 0
6de9cd9a 2043
5213506e
RW
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048if ac_fn_c_try_compile "$LINENO"; then :
c13e029b 2049 ac_hi=$ac_mid; break
5213506e 2050else
c13e029b
PB
2051 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2052 if test $ac_lo -le $ac_mid; then
2053 ac_lo= ac_hi=
2054 break
2055 fi
2056 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5213506e
RW
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2059 done
2060else
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h. */
2063$4
2064int
2065main ()
2066{
2067static int test_array [1 - 2 * !(($2) < 0)];
2068test_array [0] = 0
2069
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=-1 ac_mid=-1
2076 while :; do
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2084test_array [0] = 0
2085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091 ac_lo=$ac_mid; break
2092else
2093 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2094 if test $ac_mid -le $ac_hi; then
2095 ac_lo= ac_hi=
2096 break
2097 fi
2098 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5213506e
RW
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b 2101 done
d72a3ac1 2102else
c13e029b 2103 ac_lo= ac_hi=
5213506e 2104fi
c13e029b 2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d72a3ac1 2106fi
c13e029b
PB
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108# Binary search between lo and hi bounds.
2109while test "x$ac_lo" != "x$ac_hi"; do
2110 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e 2112/* end confdefs.h. */
c13e029b 2113$4
5213506e
RW
2114int
2115main ()
2116{
c13e029b 2117static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5213506e 2118test_array [0] = 0
6de9cd9a 2119
5213506e
RW
2120 ;
2121 return 0;
2122}
2123_ACEOF
2124if ac_fn_c_try_compile "$LINENO"; then :
c13e029b
PB
2125 ac_hi=$ac_mid
2126else
2127 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5213506e
RW
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c13e029b
PB
2130done
2131case $ac_lo in #((
2132?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2133'') ac_retval=1 ;;
2134esac
2135 else
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h. */
2138$4
2139static long int longval () { return $2; }
2140static unsigned long int ulongval () { return $2; }
2141#include <stdio.h>
2142#include <stdlib.h>
2143int
2144main ()
2145{
6de9cd9a 2146
c13e029b
PB
2147 FILE *f = fopen ("conftest.val", "w");
2148 if (! f)
2149 return 1;
2150 if (($2) < 0)
2151 {
2152 long int i = longval ();
2153 if (i != ($2))
2154 return 1;
2155 fprintf (f, "%ld", i);
2156 }
2157 else
2158 {
2159 unsigned long int i = ulongval ();
2160 if (i != ($2))
2161 return 1;
2162 fprintf (f, "%lu", i);
2163 }
2164 /* Do not output a trailing newline, as this causes \r\n confusion
2165 on some platforms. */
2166 return ferror (f) || fclose (f) != 0;
2167
2168 ;
2169 return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_run "$LINENO"; then :
2173 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5213506e 2174else
c13e029b 2175 ac_retval=1
d72a3ac1 2176fi
c13e029b
PB
2177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2178 conftest.$ac_objext conftest.beam conftest.$ac_ext
2179rm -f conftest.val
2180
2181 fi
5213506e 2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
c13e029b 2183 return $ac_retval
6de9cd9a 2184
c13e029b 2185} # ac_fn_c_compute_int
6de9cd9a 2186
5213506e
RW
2187# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2188# ----------------------------------------------------
2189# Tries to find if the field MEMBER exists in type AGGR, after including
2190# INCLUDES, setting cache variable VAR accordingly.
2191ac_fn_c_check_member ()
2192{
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2195$as_echo_n "checking for $2.$3... " >&6; }
2196if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2197 $as_echo_n "(cached) " >&6
2198else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h. */
2201$5
2202int
2203main ()
2204{
2205static $2 ac_aggr;
2206if (ac_aggr.$3)
2207return 0;
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 eval "$4=yes"
2214else
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h. */
2217$5
2218int
2219main ()
2220{
2221static $2 ac_aggr;
2222if (sizeof ac_aggr.$3)
2223return 0;
2224 ;
2225 return 0;
2226}
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"; then :
2229 eval "$4=yes"
2230else
2231 eval "$4=no"
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234fi
2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236fi
2237eval ac_res=\$$4
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239$as_echo "$ac_res" >&6; }
2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6de9cd9a 2241
5213506e
RW
2242} # ac_fn_c_check_member
2243cat >config.log <<_ACEOF
2244This file contains any messages produced by compilers while
2245running configure, to aid debugging if configure makes a mistake.
6de9cd9a 2246
5213506e
RW
2247It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2248generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a 2249
5213506e 2250 $ $0 $@
6de9cd9a 2251
5213506e
RW
2252_ACEOF
2253exec 5>>config.log
2254{
2255cat <<_ASUNAME
2256## --------- ##
2257## Platform. ##
2258## --------- ##
6de9cd9a 2259
5213506e
RW
2260hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2261uname -m = `(uname -m) 2>/dev/null || echo unknown`
2262uname -r = `(uname -r) 2>/dev/null || echo unknown`
2263uname -s = `(uname -s) 2>/dev/null || echo unknown`
2264uname -v = `(uname -v) 2>/dev/null || echo unknown`
6de9cd9a 2265
5213506e
RW
2266/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2267/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
6de9cd9a 2268
5213506e
RW
2269/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2270/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2271/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2272/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2273/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2274/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2275/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
6de9cd9a 2276
5213506e 2277_ASUNAME
18c04407 2278
5213506e
RW
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 $as_echo "PATH: $as_dir"
2285 done
2286IFS=$as_save_IFS
18c04407 2287
5213506e 2288} >&5
18c04407 2289
5213506e 2290cat >&5 <<_ACEOF
6de9cd9a
DN
2291
2292
5213506e
RW
2293## ----------- ##
2294## Core tests. ##
2295## ----------- ##
78511f8b 2296
5213506e 2297_ACEOF
38d24731 2298
96b8a615 2299
5213506e
RW
2300# Keep a trace of the command line.
2301# Strip out --no-create and --no-recursion so they do not pile up.
2302# Strip out --silent because we don't want to record it for future runs.
2303# Also quote any args containing shell meta-characters.
2304# Make two passes to allow for proper duplicate-argument suppression.
2305ac_configure_args=
2306ac_configure_args0=
2307ac_configure_args1=
2308ac_must_keep_next=false
2309for ac_pass in 1 2
2310do
2311 for ac_arg
2312 do
2313 case $ac_arg in
2314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2316 | -silent | --silent | --silen | --sile | --sil)
2317 continue ;;
2318 *\'*)
2319 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 esac
2321 case $ac_pass in
2322 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2323 2)
2324 as_fn_append ac_configure_args1 " '$ac_arg'"
2325 if test $ac_must_keep_next = true; then
2326 ac_must_keep_next=false # Got value, back to normal.
2327 else
2328 case $ac_arg in
2329 *=* | --config-cache | -C | -disable-* | --disable-* \
2330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2332 | -with-* | --with-* | -without-* | --without-* | --x)
2333 case "$ac_configure_args0 " in
2334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2335 esac
2336 ;;
2337 -* ) ac_must_keep_next=true ;;
2338 esac
2339 fi
2340 as_fn_append ac_configure_args " '$ac_arg'"
2341 ;;
2342 esac
2343 done
6de9cd9a 2344done
5213506e
RW
2345{ ac_configure_args0=; unset ac_configure_args0;}
2346{ ac_configure_args1=; unset ac_configure_args1;}
96b8a615 2347
5213506e
RW
2348# When interrupted or exit'd, cleanup temporary files, and complete
2349# config.log. We remove comments because anyway the quotes in there
2350# would cause problems or look ugly.
2351# WARNING: Use '\'' to represent an apostrophe within the trap.
2352# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2353trap 'exit_status=$?
2354 # Save into config.log some information that might help in debugging.
2355 {
2356 echo
96b8a615 2357
5213506e
RW
2358 cat <<\_ASBOX
2359## ---------------- ##
2360## Cache variables. ##
2361## ---------------- ##
2362_ASBOX
2363 echo
2364 # The following way of writing the cache mishandles newlines in values,
2365(
2366 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in #(
2369 *${as_nl}*)
2370 case $ac_var in #(
2371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373 esac
2374 case $ac_var in #(
2375 _ | IFS | as_nl) ;; #(
2376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377 *) { eval $ac_var=; unset $ac_var;} ;;
2378 esac ;;
2379 esac
2380 done
2381 (set) 2>&1 |
2382 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383 *${as_nl}ac_space=\ *)
2384 sed -n \
2385 "s/'\''/'\''\\\\'\'''\''/g;
2386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387 ;; #(
2388 *)
2389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2390 ;;
2391 esac |
2392 sort
2393)
2394 echo
2395
2396 cat <<\_ASBOX
2397## ----------------- ##
2398## Output variables. ##
2399## ----------------- ##
2400_ASBOX
2401 echo
2402 for ac_var in $ac_subst_vars
2403 do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2411
2412 if test -n "$ac_subst_files"; then
2413 cat <<\_ASBOX
2414## ------------------- ##
2415## File substitutions. ##
2416## ------------------- ##
2417_ASBOX
2418 echo
2419 for ac_var in $ac_subst_files
2420 do
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2428 fi
2429
2430 if test -s confdefs.h; then
2431 cat <<\_ASBOX
2432## ----------- ##
2433## confdefs.h. ##
2434## ----------- ##
2435_ASBOX
2436 echo
2437 cat confdefs.h
2438 echo
2439 fi
2440 test "$ac_signal" != 0 &&
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
2443 } >&5
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 exit $exit_status
2447' 0
2448for ac_signal in 1 2 13 15; do
2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450done
2451ac_signal=0
2452
2453# confdefs.h avoids OS command line length limits that DEFS can exceed.
2454rm -f -r conftest* confdefs.h
2455
2456$as_echo "/* confdefs.h */" > confdefs.h
2457
2458# Predefined preprocessor variables.
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_NAME "$PACKAGE_NAME"
2462_ACEOF
2463
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466_ACEOF
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_VERSION "$PACKAGE_VERSION"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_STRING "$PACKAGE_STRING"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_URL "$PACKAGE_URL"
2482_ACEOF
2483
2484
2485# Let the site file select an alternate cache file if it wants to.
2486# Prefer an explicitly selected file to automatically selected ones.
2487ac_site_file1=NONE
2488ac_site_file2=NONE
2489if test -n "$CONFIG_SITE"; then
2490 ac_site_file1=$CONFIG_SITE
2491elif test "x$prefix" != xNONE; then
2492 ac_site_file1=$prefix/share/config.site
2493 ac_site_file2=$prefix/etc/config.site
2494else
2495 ac_site_file1=$ac_default_prefix/share/config.site
2496 ac_site_file2=$ac_default_prefix/etc/config.site
2497fi
2498for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2499do
2500 test "x$ac_site_file" = xNONE && continue
2501 if test -r "$ac_site_file"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2504 sed 's/^/| /' "$ac_site_file" >&5
2505 . "$ac_site_file"
2506 fi
2507done
2508
2509if test -r "$cache_file"; then
2510 # Some versions of bash will fail to source /dev/null (special
2511 # files actually), so we avoid doing that.
2512 if test -f "$cache_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514$as_echo "$as_me: loading cache $cache_file" >&6;}
2515 case $cache_file in
2516 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517 *) . "./$cache_file";;
2518 esac
2519 fi
2520else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522$as_echo "$as_me: creating cache $cache_file" >&6;}
2523 >$cache_file
2524fi
2525
2526# Check that the precious variables saved in the cache have kept the same
2527# value.
2528ac_cache_corrupted=false
2529for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2535 set,)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2539 ,set)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2543 ,);;
2544 *)
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=:
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 fi;;
2563 esac
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2566 case $ac_new_val in
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573 esac
2574 fi
2575done
2576if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2582fi
2583## -------------------- ##
2584## Main body of script. ##
2585## -------------------- ##
2586
2587ac_ext=c
2588ac_cpp='$CPP $CPPFLAGS'
2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592
2593
2594
2595
2596
2597ac_config_headers="$ac_config_headers config.h"
2598
2599ac_aux_dir=
2600for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2601 for ac_t in install-sh install.sh shtool; do
2602 if test -f "$ac_dir/$ac_t"; then
2603 ac_aux_dir=$ac_dir
2604 ac_install_sh="$ac_aux_dir/$ac_t -c"
2605 break 2
2606 fi
2607 done
2608done
2609if test -z "$ac_aux_dir"; then
2610 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2611fi
2612
2613# These three variables are undocumented and unsupported,
2614# and are intended to be withdrawn in a future Autoconf release.
2615# They can cause serious problems if a builder's source tree is in a directory
2616# whose full name contains unusual characters.
2617ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2618ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2619ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2620
2621
2622# Make sure we can run config.sub.
2623$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2624 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2625
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2627$as_echo_n "checking build system type... " >&6; }
2628if test "${ac_cv_build+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630else
2631 ac_build_alias=$build_alias
2632test "x$ac_build_alias" = x &&
2633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2634test "x$ac_build_alias" = x &&
2635 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2636ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2637 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2638
2639fi
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2641$as_echo "$ac_cv_build" >&6; }
2642case $ac_cv_build in
2643*-*-*) ;;
2644*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2645esac
2646build=$ac_cv_build
2647ac_save_IFS=$IFS; IFS='-'
2648set x $ac_cv_build
2649shift
2650build_cpu=$1
2651build_vendor=$2
2652shift; shift
2653# Remember, the first character of IFS is used to create $*,
2654# except with old shells:
2655build_os=$*
2656IFS=$ac_save_IFS
2657case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2658
2659
2660 case ${build_alias} in
2661 "") build_noncanonical=${build} ;;
2662 *) build_noncanonical=${build_alias} ;;
2663esac
891c05b1
JJ
2664
2665 case ${host_alias} in
2666 "") host_noncanonical=${build_noncanonical} ;;
2667 *) host_noncanonical=${host_alias} ;;
2668esac
2669
2670 case ${target_alias} in
2671 "") target_noncanonical=${host_noncanonical} ;;
2672 *) target_noncanonical=${target_alias} ;;
2673esac
2674
57255173
PB
2675
2676# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2677# have matching libraries, they should use host libraries: Makefile.tpl
2678# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2679# However, they still use the build modules, because the corresponding
2680# host modules (e.g. bison) are only built for the host when bootstrap
2681# finishes. So:
2682# - build_subdir is where we find build modules, and never changes.
2683# - build_libsubdir is where we find build libraries, and can be overridden.
2684
2685# Prefix 'build-' so this never conflicts with target_subdir.
891c05b1 2686build_subdir="build-${build_noncanonical}"
57255173 2687
5213506e
RW
2688# Check whether --with-build-libsubdir was given.
2689if test "${with_build_libsubdir+set}" = set; then :
2690 withval=$with_build_libsubdir; build_libsubdir="$withval"
57255173
PB
2691else
2692 build_libsubdir="$build_subdir"
5213506e
RW
2693fi
2694
891c05b1
JJ
2695# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2696if ( test $srcdir = . && test -d gcc ) \
2697 || test -d $srcdir/../host-${host_noncanonical}; then
2698 host_subdir="host-${host_noncanonical}"
2699else
2700 host_subdir=.
2701fi
2702# No prefix.
2703target_subdir=${target_noncanonical}
2704
2705
2706# -------
2707# Options
2708# -------
2709
5213506e
RW
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2711$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2712# Check whether --enable-version-specific-runtime-libs was given.
2713if test "${enable_version_specific_runtime_libs+set}" = set; then :
2714 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
891c05b1
JJ
2715 yes) version_specific_libs=yes ;;
2716 no) version_specific_libs=no ;;
5213506e 2717 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
891c05b1
JJ
2718 esac
2719else
2720 version_specific_libs=no
5213506e
RW
2721fi
2722
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2724$as_echo "$version_specific_libs" >&6; }
891c05b1 2725
b808ac33 2726# Build with intermodule optimisations
5213506e
RW
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2728$as_echo_n "checking for --enable-intermodule... " >&6; }
2729# Check whether --enable-intermodule was given.
2730if test "${enable_intermodule+set}" = set; then :
2731 enableval=$enable_intermodule; case "$enable_intermodule" in
b808ac33
BF
2732 yes) onestep="-onestep";;
2733 *) onestep="";;
2734esac
2735else
2736 onestep=""
5213506e 2737fi
b808ac33 2738
5213506e
RW
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2740$as_echo "$enable_intermodule" >&6; }
2741 if test x$onestep = x-onestep; then
b808ac33
BF
2742 onestep_TRUE=
2743 onestep_FALSE='#'
2744else
2745 onestep_TRUE='#'
2746 onestep_FALSE=
2747fi
2748
2749
891c05b1
JJ
2750
2751# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2752#
2753# You will slowly go insane if you do not grok the following fact: when
2754# building this library, the top-level /target/ becomes the library's /host/.
2755#
2756# configure then causes --target to default to --host, exactly like any
2757# other package using autoconf. Therefore, 'target' and 'host' will
2758# always be the same. This makes sense both for native and cross compilers
2759# just think about it for a little while. :-)
2760#
2761# Also, if this library is being configured as part of a cross compiler, the
2762# top-level configure script will pass the "real" host as $with_cross_host.
2763#
2764# Do not delete or change the following two lines. For why, see
2765# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
5213506e
RW
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767$as_echo_n "checking host system type... " >&6; }
2768if test "${ac_cv_host+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test "x$host_alias" = x; then
2772 ac_cv_host=$ac_cv_build
2773else
2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776fi
2777
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780$as_echo "$ac_cv_host" >&6; }
2781case $ac_cv_host in
2782*-*-*) ;;
2783*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2784esac
96b8a615 2785host=$ac_cv_host
5213506e
RW
2786ac_save_IFS=$IFS; IFS='-'
2787set x $ac_cv_host
2788shift
2789host_cpu=$1
2790host_vendor=$2
2791shift; shift
2792# Remember, the first character of IFS is used to create $*,
2793# except with old shells:
2794host_os=$*
2795IFS=$ac_save_IFS
2796case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
38d24731
RW
2797
2798
5213506e
RW
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800$as_echo_n "checking target system type... " >&6; }
2801if test "${ac_cv_target+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
96b8a615 2803else
5213506e
RW
2804 if test "x$target_alias" = x; then
2805 ac_cv_target=$ac_cv_host
2806else
2807 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2809fi
96b8a615
AJ
2810
2811fi
5213506e
RW
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813$as_echo "$ac_cv_target" >&6; }
2814case $ac_cv_target in
2815*-*-*) ;;
2816*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2817esac
96b8a615 2818target=$ac_cv_target
5213506e
RW
2819ac_save_IFS=$IFS; IFS='-'
2820set x $ac_cv_target
2821shift
2822target_cpu=$1
2823target_vendor=$2
2824shift; shift
2825# Remember, the first character of IFS is used to create $*,
2826# except with old shells:
2827target_os=$*
2828IFS=$ac_save_IFS
2829case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
96b8a615
AJ
2830
2831
2832# The aliases save the names the user supplied, while $host etc.
2833# will get canonicalized.
2834test -n "$target_alias" &&
2835 test "$program_prefix$program_suffix$program_transform_name" = \
2836 NONENONEs,x,x, &&
2837 program_prefix=${target_alias}-
5213506e 2838
96b8a615
AJ
2839target_alias=${target_alias-$host_alias}
2840
2841# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2842# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
679c0f9a 2843# 1.9.6: minimum required version
96b8a615
AJ
2844# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2845# of other PACKAGE_* variables will, however, and there's nothing
2846# we can do about that; they come from AC_INIT).
2847# foreign: we don't follow the normal rules for GNU packages (no COPYING
2848# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 2849# no-dist: we don't want 'dist' and related rules.
96b8a615
AJ
2850# -Wall: turns on all automake warnings...
2851# -Wno-portability: ...except this one, since GNU make is required.
5213506e
RW
2852am__api_version='1.11'
2853
6de9cd9a
DN
2854# Find a good install program. We prefer a C program (faster),
2855# so one script is as good as another. But avoid the broken or
2856# incompatible versions:
2857# SysV /etc/install, /usr/sbin/install
2858# SunOS /usr/etc/install
2859# IRIX /sbin/install
2860# AIX /bin/install
2861# AmigaOS /C/install, which installs bootblocks on floppy discs
2862# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2863# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2864# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2865# OS/2's system install, which has a completely different semantic
2866# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2867# Reject install programs that cannot install multiple files.
5213506e
RW
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2869$as_echo_n "checking for a BSD-compatible install... " >&6; }
6de9cd9a 2870if test -z "$INSTALL"; then
5213506e
RW
2871if test "${ac_cv_path_install+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
6de9cd9a
DN
2873else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
5213506e
RW
2879 # Account for people who put trailing slashes in PATH elements.
2880case $as_dir/ in #((
2881 ./ | .// | /[cC]/* | \
6de9cd9a 2882 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2883 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6de9cd9a
DN
2884 /usr/ucb/* ) ;;
2885 *)
2886 # OSF1 and SCO ODT 3.0 have their own names for install.
2887 # Don't use installbsd from OSF since it installs stuff as root
2888 # by default.
2889 for ac_prog in ginstall scoinst install; do
2890 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2891 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6de9cd9a
DN
2892 if test $ac_prog = install &&
2893 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2894 # AIX install. It has an incompatible calling convention.
2895 :
2896 elif test $ac_prog = install &&
2897 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2898 # program-specific install script used by HP pwplus--don't use.
2899 :
2900 else
38d24731
RW
2901 rm -rf conftest.one conftest.two conftest.dir
2902 echo one > conftest.one
2903 echo two > conftest.two
2904 mkdir conftest.dir
2905 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2906 test -s conftest.one && test -s conftest.two &&
2907 test -s conftest.dir/conftest.one &&
2908 test -s conftest.dir/conftest.two
2909 then
2910 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2911 break 3
2912 fi
6de9cd9a
DN
2913 fi
2914 fi
2915 done
2916 done
2917 ;;
2918esac
5213506e
RW
2919
2920 done
2921IFS=$as_save_IFS
6de9cd9a 2922
38d24731 2923rm -rf conftest.one conftest.two conftest.dir
6de9cd9a
DN
2924
2925fi
2926 if test "${ac_cv_path_install+set}" = set; then
2927 INSTALL=$ac_cv_path_install
2928 else
f489fba1
FXC
2929 # As a last resort, use the slow shell script. Don't cache a
2930 # value for INSTALL within a source directory, because that will
6de9cd9a 2931 # break other packages using the cache if that directory is
f489fba1 2932 # removed, or if the value is a relative name.
6de9cd9a
DN
2933 INSTALL=$ac_install_sh
2934 fi
2935fi
5213506e
RW
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2937$as_echo "$INSTALL" >&6; }
6de9cd9a
DN
2938
2939# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2940# It thinks the first close brace ends the variable substitution.
2941test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2942
2943test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2944
2945test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2946
5213506e
RW
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2948$as_echo_n "checking whether build environment is sane... " >&6; }
6de9cd9a
DN
2949# Just in case
2950sleep 1
2951echo timestamp > conftest.file
5213506e
RW
2952# Reject unsafe characters in $srcdir or the absolute working directory
2953# name. Accept space and tab only in the latter.
2954am_lf='
2955'
2956case `pwd` in
2957 *[\\\"\#\$\&\'\`$am_lf]*)
2958 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2959esac
2960case $srcdir in
2961 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2962 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2963esac
2964
6de9cd9a
DN
2965# Do `set' in a subshell so we don't clobber the current shell's
2966# arguments. Must try -L first in case configure is actually a
2967# symlink; some systems play weird games with the mod time of symlinks
2968# (eg FreeBSD returns the mod time of the symlink's containing
2969# directory).
2970if (
5213506e 2971 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6de9cd9a
DN
2972 if test "$*" = "X"; then
2973 # -L didn't work.
5213506e 2974 set X `ls -t "$srcdir/configure" conftest.file`
6de9cd9a
DN
2975 fi
2976 rm -f conftest.file
2977 if test "$*" != "X $srcdir/configure conftest.file" \
2978 && test "$*" != "X conftest.file $srcdir/configure"; then
2979
2980 # If neither matched, then we have a broken ls. This can happen
2981 # if, for instance, CONFIG_SHELL is bash and it inherits a
2982 # broken ls alias from the environment. This has actually
2983 # happened. Such a system could not be considered "sane".
5213506e
RW
2984 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2985alias in your environment" "$LINENO" 5
6de9cd9a
DN
2986 fi
2987
2988 test "$2" = conftest.file
2989 )
2990then
2991 # Ok.
2992 :
2993else
5213506e
RW
2994 as_fn_error "newly created file is older than distributed files!
2995Check your system clock" "$LINENO" 5
6de9cd9a 2996fi
5213506e
RW
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998$as_echo "yes" >&6; }
6de9cd9a 2999test "$program_prefix" != NONE &&
5213506e 3000 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6de9cd9a
DN
3001# Use a double $ so make ignores it.
3002test "$program_suffix" != NONE &&
5213506e
RW
3003 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3004# Double any \ or $.
6de9cd9a 3005# By default was `s,x,x', remove it if useless.
5213506e
RW
3006ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3007program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6de9cd9a
DN
3008
3009# expand $ac_aux_dir to an absolute path
3010am_aux_dir=`cd $ac_aux_dir && pwd`
3011
5213506e
RW
3012if test x"${MISSING+set}" != xset; then
3013 case $am_aux_dir in
3014 *\ * | *\ *)
3015 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3016 *)
3017 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3018 esac
3019fi
6de9cd9a
DN
3020# Use eval to expand $SHELL
3021if eval "$MISSING --run true"; then
3022 am_missing_run="$MISSING --run "
3023else
3024 am_missing_run=
5213506e
RW
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3026$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6de9cd9a
DN
3027fi
3028
5213506e
RW
3029if test x"${install_sh}" != xset; then
3030 case $am_aux_dir in
3031 *\ * | *\ *)
3032 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3033 *)
3034 install_sh="\${SHELL} $am_aux_dir/install-sh"
3035 esac
3036fi
3037
3038# Installed binaries are usually stripped using `strip' when the user
3039# run `make install-strip'. However `strip' might not be the right
3040# tool to use in cross-compilation environments, therefore Automake
3041# will honor the `STRIP' environment variable to overrule this program.
3042if test "$cross_compiling" != no; then
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3045set dummy ${ac_tool_prefix}strip; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if test "${ac_cv_prog_STRIP+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
6de9cd9a 3050else
5213506e
RW
3051 if test -n "$STRIP"; then
3052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6de9cd9a
DN
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
5213506e
RW
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3063 break 2
3064 fi
3065done
5213506e
RW
3066 done
3067IFS=$as_save_IFS
6de9cd9a
DN
3068
3069fi
3070fi
5213506e
RW
3071STRIP=$ac_cv_prog_STRIP
3072if test -n "$STRIP"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3074$as_echo "$STRIP" >&6; }
6de9cd9a 3075else
5213506e
RW
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
6de9cd9a
DN
3078fi
3079
6de9cd9a 3080
5213506e
RW
3081fi
3082if test -z "$ac_cv_prog_STRIP"; then
3083 ac_ct_STRIP=$STRIP
3084 # Extract the first word of "strip", so it can be a program name with args.
3085set dummy strip; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
6de9cd9a 3090else
5213506e
RW
3091 if test -n "$ac_ct_STRIP"; then
3092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38d24731 3093else
5213506e
RW
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 ac_cv_prog_ac_ct_STRIP="strip"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105done
3106 done
3107IFS=$as_save_IFS
3108
38d24731 3109fi
6de9cd9a 3110fi
5213506e
RW
3111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112if test -n "$ac_ct_STRIP"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3114$as_echo "$ac_ct_STRIP" >&6; }
3115else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119
3120 if test "x$ac_ct_STRIP" = x; then
3121 STRIP=":"
3122 else
3123 case $cross_compiling:$ac_tool_warned in
3124yes:)
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127ac_tool_warned=yes ;;
3128esac
3129 STRIP=$ac_ct_STRIP
3130 fi
3131else
3132 STRIP="$ac_cv_prog_STRIP"
3133fi
3134
3135fi
3136INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3137
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3139$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3140if test -z "$MKDIR_P"; then
3141 if test "${ac_cv_path_mkdir+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3143else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_prog in mkdir gmkdir; do
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3152 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3153 'mkdir (GNU coreutils) '* | \
3154 'mkdir (coreutils) '* | \
3155 'mkdir (fileutils) '4.1*)
3156 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3157 break 3;;
3158 esac
3159 done
3160 done
3161 done
3162IFS=$as_save_IFS
3163
3164fi
3165
3166 if test "${ac_cv_path_mkdir+set}" = set; then
3167 MKDIR_P="$ac_cv_path_mkdir -p"
3168 else
3169 # As a last resort, use the slow shell script. Don't cache a
3170 # value for MKDIR_P within a source directory, because that will
3171 # break other packages using the cache if that directory is
3172 # removed, or if the value is a relative name.
3173 test -d ./--version && rmdir ./--version
3174 MKDIR_P="$ac_install_sh -d"
3175 fi
3176fi
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3178$as_echo "$MKDIR_P" >&6; }
3179
3180mkdir_p="$MKDIR_P"
3181case $mkdir_p in
3182 [\\/$]* | ?:[\\/]*) ;;
3183 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3184esac
3185
3186for ac_prog in gawk mawk nawk awk
3187do
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189set dummy $ac_prog; ac_word=$2
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191$as_echo_n "checking for $ac_word... " >&6; }
3192if test "${ac_cv_prog_AWK+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3194else
3195 if test -n "$AWK"; then
3196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3197else
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_AWK="$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209done
3210 done
3211IFS=$as_save_IFS
3212
3213fi
3214fi
3215AWK=$ac_cv_prog_AWK
3216if test -n "$AWK"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3218$as_echo "$AWK" >&6; }
3219else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221$as_echo "no" >&6; }
3222fi
3223
3224
3225 test -n "$AWK" && break
3226done
3227
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3229$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3230set x ${MAKE-make}
3231ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3232if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3233 $as_echo_n "(cached) " >&6
3234else
3235 cat >conftest.make <<\_ACEOF
3236SHELL = /bin/sh
3237all:
3238 @echo '@@@%%%=$(MAKE)=@@@%%%'
3239_ACEOF
3240# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3241case `${MAKE-make} -f conftest.make 2>/dev/null` in
3242 *@@@%%%=?*=@@@%%%*)
3243 eval ac_cv_prog_make_${ac_make}_set=yes;;
3244 *)
3245 eval ac_cv_prog_make_${ac_make}_set=no;;
3246esac
3247rm -f conftest.make
3248fi
3249if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251$as_echo "yes" >&6; }
6de9cd9a
DN
3252 SET_MAKE=
3253else
5213506e
RW
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
6de9cd9a
DN
3256 SET_MAKE="MAKE=${MAKE-make}"
3257fi
3258
3259rm -rf .tst 2>/dev/null
3260mkdir .tst 2>/dev/null
3261if test -d .tst; then
3262 am__leading_dot=.
3263else
3264 am__leading_dot=_
3265fi
3266rmdir .tst 2>/dev/null
3267
5213506e
RW
3268if test "`cd $srcdir && pwd`" != "`pwd`"; then
3269 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3270 # is not polluted with repeated "-I."
3271 am__isrc=' -I$(srcdir)'
3272 # test to see if srcdir already configured
3273 if test -f $srcdir/config.status; then
3274 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3275 fi
6de9cd9a
DN
3276fi
3277
3278# test whether we have cygpath
3279if test -z "$CYGPATH_W"; then
3280 if (cygpath --version) >/dev/null 2>/dev/null; then
3281 CYGPATH_W='cygpath -w'
3282 else
3283 CYGPATH_W=echo
3284 fi
3285fi
3286
3287
3288# Define the identity of the package.
3289 PACKAGE='libgfortran'
0dce3ca1 3290 VERSION='0.3'
6de9cd9a
DN
3291
3292
6de9cd9a
DN
3293# Some tools Automake needs.
3294
3295ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3296
3297
3298AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3299
3300
3301AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3302
3303
3304AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3305
3306
3307MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3308
6de9cd9a
DN
3309# We need awk for the "check" target. The system "awk" is bad on
3310# some platforms.
d49ec2d1
KC
3311# Always define AMTAR for backward compatibility.
3312
3313AMTAR=${AMTAR-"${am_missing_run}tar"}
3314
3315am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3316
3317
6de9cd9a
DN
3318
3319
3320
6de9cd9a 3321
5213506e
RW
3322
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3324$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3325 # Check whether --enable-maintainer-mode was given.
3326if test "${enable_maintainer_mode+set}" = set; then :
3327 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6de9cd9a
DN
3328else
3329 USE_MAINTAINER_MODE=no
5213506e 3330fi
6de9cd9a 3331
5213506e
RW
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3333$as_echo "$USE_MAINTAINER_MODE" >&6; }
3334 if test $USE_MAINTAINER_MODE = yes; then
6de9cd9a
DN
3335 MAINTAINER_MODE_TRUE=
3336 MAINTAINER_MODE_FALSE='#'
3337else
3338 MAINTAINER_MODE_TRUE='#'
3339 MAINTAINER_MODE_FALSE=
3340fi
3341
3342 MAINT=$MAINTAINER_MODE_TRUE
3343
3344
96b8a615 3345# Default to --enable-multilib
5213506e
RW
3346# Check whether --enable-multilib was given.
3347if test "${enable_multilib+set}" = set; then :
3348 enableval=$enable_multilib; case "$enableval" in
96b8a615
AJ
3349 yes) multilib=yes ;;
3350 no) multilib=no ;;
5213506e 3351 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
96b8a615
AJ
3352 esac
3353else
3354 multilib=yes
5213506e
RW
3355fi
3356
96b8a615
AJ
3357
3358# We may get other options which we leave undocumented:
3359# --with-target-subdir, --with-multisrctop, --with-multisubdir
3360# See config-ml.in if you want the gory details.
3361
3362if test "$srcdir" = "."; then
3363 if test "$with_target_subdir" != "."; then
3364 multi_basedir="$srcdir/$with_multisrctop../.."
3365 else
3366 multi_basedir="$srcdir/$with_multisrctop.."
3367 fi
3368else
3369 multi_basedir="$srcdir/.."
3370fi
3371
3372
9f9ef303
FXC
3373# Even if the default multilib is not a cross compilation,
3374# it may be that some of the other multilibs are.
3375if test $cross_compiling = no && test $multilib = yes \
3376 && test "x${with_multisubdir}" != x ; then
3377 cross_compiling=maybe
3378fi
3379
5213506e 3380ac_config_commands="$ac_config_commands default-1"
96b8a615
AJ
3381
3382
3383# Handy for debugging:
3384#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3385
3386# Are we being configured with some form of cross compiler?
3387# NB: We don't actually need to know this just now, but when, say, a test
3388# suite is included, we'll have to know.
3389if test "$build" != "$host"; then
3390 LIBGFOR_IS_NATIVE=false
f02d008e 3391
96b8a615
AJ
3392else
3393 LIBGFOR_IS_NATIVE=true
3394fi
3395
21be0a5a 3396DEPDIR="${am__leading_dot}deps"
96b8a615 3397
21be0a5a 3398ac_config_commands="$ac_config_commands depfiles"
96b8a615 3399
6de9cd9a 3400
21be0a5a
JB
3401am_make=${MAKE-make}
3402cat > confinc << 'END'
3403am__doit:
3404 @echo this is the am__doit target
3405.PHONY: am__doit
3406END
3407# If we don't find an include directive, just comment out the code.
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3409$as_echo_n "checking for style of include used by $am_make... " >&6; }
3410am__include="#"
3411am__quote=
3412_am_result=none
3413# First try GNU make style include.
3414echo "include confinc" > confmf
3415# Ignore all kinds of additional output from `make'.
3416case `$am_make -s -f confmf 2> /dev/null` in #(
3417*the\ am__doit\ target*)
3418 am__include=include
3419 am__quote=
3420 _am_result=GNU
3421 ;;
3422esac
3423# Now try BSD make style include.
3424if test "$am__include" = "#"; then
3425 echo '.include "confinc"' > confmf
3426 case `$am_make -s -f confmf 2> /dev/null` in #(
3427 *the\ am__doit\ target*)
3428 am__include=.include
3429 am__quote="\""
3430 _am_result=BSD
3431 ;;
3432 esac
3433fi
1ec601bf 3434
6de9cd9a 3435
21be0a5a
JB
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3437$as_echo "$_am_result" >&6; }
3438rm -f confinc confmf
3439
3440# Check whether --enable-dependency-tracking was given.
3441if test "${enable_dependency_tracking+set}" = set; then :
3442 enableval=$enable_dependency_tracking;
3443fi
3444
3445if test "x$enable_dependency_tracking" != xno; then
3446 am_depcomp="$ac_aux_dir/depcomp"
3447 AMDEPBACKSLASH='\'
3448fi
3449 if test "x$enable_dependency_tracking" != xno; then
3450 AMDEP_TRUE=
3451 AMDEP_FALSE='#'
3452else
3453 AMDEP_TRUE='#'
3454 AMDEP_FALSE=
3455fi
6de9cd9a
DN
3456
3457
6de9cd9a
DN
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463if test -n "$ac_tool_prefix"; then
3464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3465set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
3468if test "${ac_cv_prog_CC+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3470else
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
5213506e
RW
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3483 break 2
3484 fi
3485done
5213506e
RW
3486 done
3487IFS=$as_save_IFS
6de9cd9a
DN
3488
3489fi
3490fi
3491CC=$ac_cv_prog_CC
3492if test -n "$CC"; then
5213506e
RW
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3494$as_echo "$CC" >&6; }
6de9cd9a 3495else
5213506e
RW
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
6de9cd9a
DN
3498fi
3499
5213506e 3500
6de9cd9a
DN
3501fi
3502if test -z "$ac_cv_prog_CC"; then
3503 ac_ct_CC=$CC
3504 # Extract the first word of "gcc", so it can be a program name with args.
3505set dummy gcc; ac_word=$2
5213506e
RW
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507$as_echo_n "checking for $ac_word... " >&6; }
3508if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3510else
3511 if test -n "$ac_ct_CC"; then
3512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3513else
3514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515for as_dir in $PATH
3516do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
5213506e
RW
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3521 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3523 break 2
3524 fi
3525done
5213506e
RW
3526 done
3527IFS=$as_save_IFS
6de9cd9a
DN
3528
3529fi
3530fi
3531ac_ct_CC=$ac_cv_prog_ac_ct_CC
3532if test -n "$ac_ct_CC"; then
5213506e
RW
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3534$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3535else
5213506e
RW
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537$as_echo "no" >&6; }
6de9cd9a
DN
3538fi
3539
5213506e
RW
3540 if test "x$ac_ct_CC" = x; then
3541 CC=""
3542 else
3543 case $cross_compiling:$ac_tool_warned in
3544yes:)
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547ac_tool_warned=yes ;;
3548esac
3549 CC=$ac_ct_CC
3550 fi
6de9cd9a
DN
3551else
3552 CC="$ac_cv_prog_CC"
3553fi
3554
3555if test -z "$CC"; then
5213506e
RW
3556 if test -n "$ac_tool_prefix"; then
3557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6de9cd9a 3558set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560$as_echo_n "checking for $ac_word... " >&6; }
3561if test "${ac_cv_prog_CC+set}" = set; then :
3562 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3563else
3564 if test -n "$CC"; then
3565 ac_cv_prog_CC="$CC" # Let the user override the test.
3566else
3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
5213506e
RW
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3574 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3576 break 2
3577 fi
3578done
5213506e
RW
3579 done
3580IFS=$as_save_IFS
6de9cd9a
DN
3581
3582fi
3583fi
3584CC=$ac_cv_prog_CC
3585if test -n "$CC"; then
5213506e
RW
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3587$as_echo "$CC" >&6; }
38d24731 3588else
5213506e
RW
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
38d24731
RW
3591fi
3592
38d24731 3593
5213506e 3594 fi
6de9cd9a
DN
3595fi
3596if test -z "$CC"; then
3597 # Extract the first word of "cc", so it can be a program name with args.
3598set dummy cc; ac_word=$2
5213506e
RW
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600$as_echo_n "checking for $ac_word... " >&6; }
3601if test "${ac_cv_prog_CC+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3603else
3604 if test -n "$CC"; then
3605 ac_cv_prog_CC="$CC" # Let the user override the test.
3606else
3607 ac_prog_rejected=no
3608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH
3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
5213506e
RW
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a
DN
3615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3616 ac_prog_rejected=yes
3617 continue
3618 fi
3619 ac_cv_prog_CC="cc"
5213506e 3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3621 break 2
3622 fi
3623done
5213506e
RW
3624 done
3625IFS=$as_save_IFS
6de9cd9a
DN
3626
3627if test $ac_prog_rejected = yes; then
3628 # We found a bogon in the path, so make sure we never use it.
3629 set dummy $ac_cv_prog_CC
3630 shift
3631 if test $# != 0; then
3632 # We chose a different compiler from the bogus one.
3633 # However, it has the same basename, so the bogon will be chosen
3634 # first if we set CC to just the basename; use the full file name.
3635 shift
3636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3637 fi
3638fi
3639fi
3640fi
3641CC=$ac_cv_prog_CC
3642if test -n "$CC"; then
5213506e
RW
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644$as_echo "$CC" >&6; }
6de9cd9a 3645else
5213506e
RW
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647$as_echo "no" >&6; }
6de9cd9a
DN
3648fi
3649
5213506e 3650
6de9cd9a
DN
3651fi
3652if test -z "$CC"; then
3653 if test -n "$ac_tool_prefix"; then
5213506e 3654 for ac_prog in cl.exe
6de9cd9a
DN
3655 do
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
3660if test "${ac_cv_prog_CC+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3662else
3663 if test -n "$CC"; then
3664 ac_cv_prog_CC="$CC" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
5213506e
RW
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3675 break 2
3676 fi
3677done
5213506e
RW
3678 done
3679IFS=$as_save_IFS
6de9cd9a
DN
3680
3681fi
3682fi
3683CC=$ac_cv_prog_CC
3684if test -n "$CC"; then
5213506e
RW
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686$as_echo "$CC" >&6; }
6de9cd9a 3687else
5213506e
RW
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689$as_echo "no" >&6; }
6de9cd9a
DN
3690fi
3691
5213506e 3692
6de9cd9a
DN
3693 test -n "$CC" && break
3694 done
3695fi
3696if test -z "$CC"; then
3697 ac_ct_CC=$CC
5213506e 3698 for ac_prog in cl.exe
6de9cd9a
DN
3699do
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701set dummy $ac_prog; ac_word=$2
5213506e
RW
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703$as_echo_n "checking for $ac_word... " >&6; }
3704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
6de9cd9a
DN
3706else
3707 if test -n "$ac_ct_CC"; then
3708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
5213506e
RW
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6de9cd9a 3717 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6de9cd9a
DN
3719 break 2
3720 fi
3721done
5213506e
RW
3722 done
3723IFS=$as_save_IFS
6de9cd9a
DN
3724
3725fi
3726fi
3727ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728if test -n "$ac_ct_CC"; then
5213506e
RW
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3730$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 3731else
5213506e
RW
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733$as_echo "no" >&6; }
6de9cd9a
DN
3734fi
3735
5213506e 3736
6de9cd9a
DN
3737 test -n "$ac_ct_CC" && break
3738done
3739
5213506e
RW
3740 if test "x$ac_ct_CC" = x; then
3741 CC=""
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744yes:)
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747ac_tool_warned=yes ;;
3748esac
3749 CC=$ac_ct_CC
3750 fi
6de9cd9a
DN
3751fi
3752
3753fi
3754
3755
5213506e
RW
3756test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758as_fn_error "no acceptable C compiler found in \$PATH
3759See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
3760
3761# Provide some information about the compiler.
5213506e
RW
3762$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3763set X $ac_compile
3764ac_compiler=$2
3765for ac_option in --version -v -V -qversion; do
3766 { { ac_try="$ac_compiler $ac_option >&5"
3767case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770esac
3771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772$as_echo "$ac_try_echo"; } >&5
3773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6de9cd9a 3774 ac_status=$?
5213506e
RW
3775 if test -s conftest.err; then
3776 sed '10a\
3777... rest of stderr output deleted ...
3778 10q' conftest.err >conftest.er1
3779 cat conftest.er1 >&5
3780 rm -f conftest.er1 conftest.err
3781 fi
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }
3784done
6de9cd9a 3785
5213506e 3786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
3787/* end confdefs.h. */
3788
f02d008e
JD
3789int
3790main ()
3791{
3792
3793 ;
3794 return 0;
3795}
3796_ACEOF
3797# FIXME: Cleanup?
5213506e 3798if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
f02d008e
JD
3799 (eval $ac_link) 2>&5
3800 ac_status=$?
5213506e
RW
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }; then :
f02d008e
JD
3803 gcc_no_link=no
3804else
3805 gcc_no_link=yes
3806fi
f02d008e
JD
3807if test x$gcc_no_link = xyes; then
3808 # Setting cross_compile will disable run tests; it will
3809 # also disable AC_CHECK_FILE but that's generally
3810 # correct if we can't link.
3811 cross_compiling=yes
3812 EXEEXT=
3813else
5213506e 3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
3815/* end confdefs.h. */
3816
6de9cd9a
DN
3817int
3818main ()
3819{
3820
3821 ;
3822 return 0;
3823}
3824_ACEOF
3825ac_clean_files_save=$ac_clean_files
5213506e 3826ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6de9cd9a
DN
3827# Try to create an executable without -o first, disregard a.out.
3828# It will help us diagnose broken compilers, and finding out an intuition
3829# of exeext.
5213506e
RW
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3831$as_echo_n "checking for C compiler default output file name... " >&6; }
3832ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833
3834# The possible output files:
3835ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836
3837ac_rmfiles=
3838for ac_file in $ac_files
3839do
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843 esac
3844done
3845rm -f $ac_rmfiles
3846
3847if { { ac_try="$ac_link_default"
3848case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853$as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_link_default") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3859# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3860# in a Makefile. We should not override ac_cv_exeext if it was cached,
3861# so that the user can short-circuit this test for compilers unknown to
3862# Autoconf.
3863for ac_file in $ac_files ''
6de9cd9a
DN
3864do
3865 test -f "$ac_file" || continue
3866 case $ac_file in
5213506e 3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6de9cd9a
DN
3868 ;;
3869 [ab].out )
3870 # We found the default executable, but exeext='' is most
3871 # certainly right.
3872 break;;
3873 *.* )
5213506e
RW
3874 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3875 then :; else
3876 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877 fi
3878 # We set ac_cv_exeext here because the later test for it is not
3879 # safe: cross compilers may not add the suffix if given an `-o'
3880 # argument, so we may need to know it at that point already.
3881 # Even if this section looks crufty: it has the advantage of
3882 # actually working.
6de9cd9a
DN
3883 break;;
3884 * )
3885 break;;
3886 esac
3887done
5213506e
RW
3888test "$ac_cv_exeext" = no && ac_cv_exeext=
3889
6de9cd9a 3890else
5213506e
RW
3891 ac_file=''
3892fi
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3894$as_echo "$ac_file" >&6; }
3895if test -z "$ac_file"; then :
3896 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
5213506e
RW
3899{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901{ as_fn_set_status 77
3902as_fn_error "C compiler cannot create executables
3903See \`config.log' for more details." "$LINENO" 5; }; }
6de9cd9a 3904fi
6de9cd9a 3905ac_exeext=$ac_cv_exeext
6de9cd9a 3906
5213506e 3907# Check that the compiler produces executables we can run. If not, either
6de9cd9a 3908# the compiler is broken, or we cross compile.
5213506e
RW
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3910$as_echo_n "checking whether the C compiler works... " >&6; }
6de9cd9a
DN
3911# If not cross compiling, check that we can run a simple program.
3912if test "$cross_compiling" != yes; then
3913 if { ac_try='./$ac_file'
5213506e
RW
3914 { { case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917esac
3918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919$as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_try") 2>&5
6de9cd9a 3921 ac_status=$?
5213506e
RW
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; }; then
6de9cd9a
DN
3924 cross_compiling=no
3925 else
3926 if test "$cross_compiling" = maybe; then
3927 cross_compiling=yes
3928 else
5213506e
RW
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931as_fn_error "cannot run C compiled programs.
6de9cd9a 3932If you meant to cross compile, use \`--host'.
5213506e 3933See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a
DN
3934 fi
3935 fi
3936fi
5213506e
RW
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938$as_echo "yes" >&6; }
6de9cd9a 3939
5213506e 3940rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6de9cd9a 3941ac_clean_files=$ac_clean_files_save
5213506e 3942# Check that the compiler produces executables we can run. If not, either
6de9cd9a 3943# the compiler is broken, or we cross compile.
5213506e
RW
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3945$as_echo_n "checking whether we are cross compiling... " >&6; }
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3947$as_echo "$cross_compiling" >&6; }
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3950$as_echo_n "checking for suffix of executables... " >&6; }
3951if { { ac_try="$ac_link"
3952case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955esac
3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957$as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_link") 2>&5
6de9cd9a 3959 ac_status=$?
5213506e
RW
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; then :
6de9cd9a
DN
3962 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3963# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3964# work properly (i.e., refer to `conftest.exe'), while it won't with
3965# `rm'.
3966for ac_file in conftest.exe conftest conftest.*; do
3967 test -f "$ac_file" || continue
3968 case $ac_file in
5213506e 3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6de9cd9a 3970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6de9cd9a
DN
3971 break;;
3972 * ) break;;
3973 esac
3974done
3975else
5213506e
RW
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978as_fn_error "cannot compute suffix of executables: cannot compile and link
3979See \`config.log' for more details." "$LINENO" 5; }
6de9cd9a 3980fi
6de9cd9a 3981rm -f conftest$ac_cv_exeext
5213506e
RW
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3983$as_echo "$ac_cv_exeext" >&6; }
6de9cd9a
DN
3984
3985rm -f conftest.$ac_ext
3986EXEEXT=$ac_cv_exeext
3987ac_exeext=$EXEEXT
f02d008e 3988fi
5213506e
RW
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990$as_echo_n "checking for suffix of object files... " >&6; }
3991if test "${ac_cv_objext+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
6de9cd9a 3993else
5213506e 3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a
DN
3995/* end confdefs.h. */
3996
3997int
3998main ()
3999{
4000
4001 ;
4002 return 0;
4003}
4004_ACEOF
4005rm -f conftest.o conftest.obj
5213506e
RW
4006if { { ac_try="$ac_compile"
4007case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010esac
4011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012$as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
6de9cd9a 4019 case $ac_file in
5213506e 4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6de9cd9a
DN
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 break;;
4023 esac
4024done
4025else
5213506e 4026 $as_echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
5213506e
RW
4029{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031as_fn_error "cannot compute suffix of object files: cannot compile
4032See \`config.log' for more details." "$LINENO" 5; }
78511f8b 4033fi
78511f8b
JB
4034rm -f conftest.$ac_cv_objext conftest.$ac_ext
4035fi
5213506e
RW
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037$as_echo "$ac_cv_objext" >&6; }
78511f8b
JB
4038OBJEXT=$ac_cv_objext
4039ac_objext=$OBJEXT
5213506e
RW
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
78511f8b 4044else
5213506e 4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4046/* end confdefs.h. */
6de9cd9a 4047
6de9cd9a
DN
4048int
4049main ()
4050{
78511f8b
JB
4051#ifndef __GNUC__
4052 choke me
4053#endif
c0e7e2bf 4054
6de9cd9a
DN
4055 ;
4056 return 0;
4057}
4058_ACEOF
5213506e 4059if ac_fn_c_try_compile "$LINENO"; then :
78511f8b 4060 ac_compiler_gnu=yes
6de9cd9a 4061else
5213506e 4062 ac_compiler_gnu=no
78511f8b 4063fi
5213506e 4064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78511f8b
JB
4065ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066
4067fi
5213506e
RW
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070if test $ac_compiler_gnu = yes; then
4071 GCC=yes
4072else
4073 GCC=
4074fi
78511f8b
JB
4075ac_test_CFLAGS=${CFLAGS+set}
4076ac_save_CFLAGS=$CFLAGS
5213506e
RW
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078$as_echo_n "checking whether $CC accepts -g... " >&6; }
4079if test "${ac_cv_prog_cc_g+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
78511f8b 4081else
5213506e
RW
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 ac_cv_prog_cc_g=no
4085 CFLAGS="-g"
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 4087/* end confdefs.h. */
c0e7e2bf 4088
6de9cd9a
DN
4089int
4090main ()
4091{
c0e7e2bf 4092
6de9cd9a
DN
4093 ;
4094 return 0;
4095}
4096_ACEOF
5213506e 4097if ac_fn_c_try_compile "$LINENO"; then :
f489fba1
FXC
4098 ac_cv_prog_cc_g=yes
4099else
5213506e
RW
4100 CFLAGS=""
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h. */
4103
4104int
4105main ()
4106{
4107
4108 ;
4109 return 0;
4110}
4111_ACEOF
4112if ac_fn_c_try_compile "$LINENO"; then :
4113
4114else
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4116 CFLAGS="-g"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h. */
f489fba1 4119
5213506e
RW
4120int
4121main ()
4122{
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_g=yes
4130fi
4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4132fi
5213506e 4133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38d24731 4134fi
5213506e
RW
4135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139$as_echo "$ac_cv_prog_cc_g" >&6; }
38d24731
RW
4140if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4144 CFLAGS="-g -O2"
4145 else
4146 CFLAGS="-g"
4147 fi
4148else
4149 if test "$GCC" = yes; then
4150 CFLAGS="-O2"
4151 else
4152 CFLAGS=
4153 fi
4154fi
5213506e
RW
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157if test "${ac_cv_prog_cc_c89+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
38d24731 4159else
5213506e 4160 ac_cv_prog_cc_c89=no
38d24731 4161ac_save_CC=$CC
5213506e 4162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f489fba1 4163/* end confdefs.h. */
38d24731
RW
4164#include <stdarg.h>
4165#include <stdio.h>
4166#include <sys/types.h>
4167#include <sys/stat.h>
4168/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169struct buf { int x; };
4170FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171static char *e (p, i)
4172 char **p;
4173 int i;
4174{
4175 return p[i];
4176}
4177static char *f (char * (*g) (char **, int), char **p, ...)
4178{
4179 char *s;
4180 va_list v;
4181 va_start (v,p);
4182 s = g (p, va_arg (v,int));
4183 va_end (v);
4184 return s;
4185}
f489fba1 4186
38d24731
RW
4187/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188 function prototypes and stuff, but not '\xHH' hex character constants.
4189 These don't provoke an error unfortunately, instead are silently treated
5213506e 4190 as 'x'. The following induces an error, until -std is added to get
38d24731
RW
4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4193 that's true only with -std. */
38d24731
RW
4194int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195
5213506e
RW
4196/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197 inside strings and character constants. */
4198#define FOO(x) 'x'
4199int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200
38d24731
RW
4201int test (int i, double x);
4202struct s1 {int (*f) (int a);};
4203struct s2 {int (*f) (double a);};
4204int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205int argc;
4206char **argv;
f489fba1
FXC
4207int
4208main ()
4209{
38d24731 4210return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f489fba1
FXC
4211 ;
4212 return 0;
4213}
4214_ACEOF
5213506e
RW
4215for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
38d24731
RW
4217do
4218 CC="$ac_save_CC $ac_arg"
5213506e
RW
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c89=$ac_arg
38d24731 4221fi
5213506e
RW
4222rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c89" != "xno" && break
38d24731 4224done
5213506e 4225rm -f conftest.$ac_ext
38d24731
RW
4226CC=$ac_save_CC
4227
4228fi
5213506e
RW
4229# AC_CACHE_VAL
4230case "x$ac_cv_prog_cc_c89" in
4231 x)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233$as_echo "none needed" >&6; } ;;
4234 xno)
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236$as_echo "unsupported" >&6; } ;;
38d24731 4237 *)
5213506e
RW
4238 CC="$CC $ac_cv_prog_cc_c89"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
38d24731 4241esac
5213506e 4242if test "x$ac_cv_prog_cc_c89" != xno; then :
6de9cd9a
DN
4243
4244fi
6de9cd9a 4245
6de9cd9a
DN
4246ac_ext=c
4247ac_cpp='$CPP $CPPFLAGS'
4248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250ac_compiler_gnu=$ac_cv_c_compiler_gnu
679c0f9a 4251
679c0f9a
TT
4252depcc="$CC" am_compiler_list=
4253
5213506e
RW
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4255$as_echo_n "checking dependency style of $depcc... " >&6; }
4256if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
679c0f9a
TT
4258else
4259 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4260 # We make a subdir and do the tests there. Otherwise we can end up
4261 # making bogus files that we don't know about and never remove. For
4262 # instance it was reported that on HP-UX the gcc test will end up
4263 # making a dummy file named `D' -- because `-MD' means `put the output
4264 # in D'.
4265 mkdir conftest.dir
4266 # Copy depcomp to subdir because otherwise we won't find it if we're
4267 # using a relative directory.
4268 cp "$am_depcomp" conftest.dir
4269 cd conftest.dir
4270 # We will build objects and dependencies in a subdirectory because
4271 # it helps to detect inapplicable dependency modes. For instance
4272 # both Tru64's cc and ICC support -MD to output dependencies as a
4273 # side effect of compilation, but ICC will put the dependencies in
4274 # the current directory while Tru64 will put them in the object
4275 # directory.
4276 mkdir sub
4277
4278 am_cv_CC_dependencies_compiler_type=none
4279 if test "$am_compiler_list" = ""; then
4280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4281 fi
5213506e
RW
4282 am__universal=false
4283 case " $depcc " in #(
4284 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4285 esac
4286
679c0f9a
TT
4287 for depmode in $am_compiler_list; do
4288 # Setup a source with many dependencies, because some compilers
4289 # like to wrap large dependency lists on column 80 (with \), and
4290 # we should not choose a depcomp mode which is confused by this.
4291 #
4292 # We need to recreate these files for each test, as the compiler may
4293 # overwrite some of them when testing with obscure command lines.
4294 # This happens at least with the AIX C compiler.
4295 : > sub/conftest.c
4296 for i in 1 2 3 4 5 6; do
4297 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4298 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4299 # Solaris 8's {/usr,}/bin/sh.
4300 touch sub/conftst$i.h
4301 done
4302 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4303
5213506e
RW
4304 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4305 # mode. It turns out that the SunPro C++ compiler does not properly
4306 # handle `-M -o', and we need to detect this. Also, some Intel
4307 # versions had trouble with output in subdirs
4308 am__obj=sub/conftest.${OBJEXT-o}
4309 am__minus_obj="-o $am__obj"
679c0f9a 4310 case $depmode in
5213506e
RW
4311 gcc)
4312 # This depmode causes a compiler race in universal mode.
4313 test "$am__universal" = false || continue
4314 ;;
679c0f9a
TT
4315 nosideeffect)
4316 # after this tag, mechanisms are not by side-effect, so they'll
4317 # only be used when explicitly requested
4318 if test "x$enable_dependency_tracking" = xyes; then
4319 continue
4320 else
4321 break
4322 fi
4323 ;;
5213506e
RW
4324 msvisualcpp | msvcmsys)
4325 # This compiler won't grok `-c -o', but also, the minuso test has
4326 # not run yet. These depmodes are late enough in the game, and
4327 # so weak that their functioning should not be impacted.
4328 am__obj=conftest.${OBJEXT-o}
4329 am__minus_obj=
4330 ;;
679c0f9a
TT
4331 none) break ;;
4332 esac
679c0f9a 4333 if depmode=$depmode \
5213506e 4334 source=sub/conftest.c object=$am__obj \
679c0f9a 4335 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4336 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
679c0f9a 4337 >/dev/null 2>conftest.err &&
5213506e 4338 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a 4339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4340 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
679c0f9a
TT
4341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4342 # icc doesn't choke on unknown options, it will just issue warnings
4343 # or remarks (even with -Werror). So we grep stderr for any message
4344 # that says an option was ignored or not supported.
4345 # When given -MP, icc 7.0 and 7.1 complain thusly:
4346 # icc: Command line warning: ignoring option '-M'; no argument required
4347 # The diagnosis changed in icc 8.0:
4348 # icc: Command line remark: option '-MP' not supported
4349 if (grep 'ignoring option' conftest.err ||
4350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4351 am_cv_CC_dependencies_compiler_type=$depmode
4352 break
4353 fi
4354 fi
4355 done
4356
4357 cd ..
4358 rm -rf conftest.dir
4359else
4360 am_cv_CC_dependencies_compiler_type=none
4361fi
4362
4363fi
5213506e
RW
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4365$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
679c0f9a
TT
4366CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4367
5213506e 4368 if
679c0f9a
TT
4369 test "x$enable_dependency_tracking" != xno \
4370 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4371 am__fastdepCC_TRUE=
4372 am__fastdepCC_FALSE='#'
4373else
4374 am__fastdepCC_TRUE='#'
4375 am__fastdepCC_FALSE=
4376fi
4377
6de9cd9a 4378
6de9cd9a 4379
21be0a5a
JB
4380ac_ext=c
4381ac_cpp='$CPP $CPPFLAGS'
4382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4386$as_echo_n "checking how to run the C preprocessor... " >&6; }
4387# On Suns, sometimes $CPP names a directory.
4388if test -n "$CPP" && test -d "$CPP"; then
4389 CPP=
6de9cd9a 4390fi
21be0a5a
JB
4391if test -z "$CPP"; then
4392 if test "${ac_cv_prog_CPP+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394else
4395 # Double quotes because CPP needs to be expanded
4396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4397 do
4398 ac_preproc_ok=false
4399for ac_c_preproc_warn_flag in '' yes
4400do
4401 # Use a header file that comes with gcc, so configuring glibc
4402 # with a fresh cross-compiler works.
4403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4404 # <limits.h> exists even on freestanding compilers.
4405 # On the NeXT, cc -E runs the code through the compiler's parser,
4406 # not just through cpp. "Syntax error" is here to catch this case.
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c0e7e2bf 4408/* end confdefs.h. */
21be0a5a
JB
4409#ifdef __STDC__
4410# include <limits.h>
4411#else
4412# include <assert.h>
4413#endif
4414 Syntax error
c0e7e2bf 4415_ACEOF
21be0a5a
JB
4416if ac_fn_c_try_cpp "$LINENO"; then :
4417
49ea7a0e 4418else
21be0a5a
JB
4419 # Broken: fails on valid input.
4420continue
49ea7a0e 4421fi
21be0a5a 4422rm -f conftest.err conftest.$ac_ext
49ea7a0e 4423
21be0a5a
JB
4424 # OK, works on sane cases. Now check whether nonexistent headers
4425 # can be detected and how.
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427/* end confdefs.h. */
4428#include <ac_nonexistent.h>
49ea7a0e 4429_ACEOF
21be0a5a
JB
4430if ac_fn_c_try_cpp "$LINENO"; then :
4431 # Broken: success on invalid input.
4432continue
c0e7e2bf 4433else
21be0a5a
JB
4434 # Passes both tests.
4435ac_preproc_ok=:
4436break
49ea7a0e 4437fi
21be0a5a
JB
4438rm -f conftest.err conftest.$ac_ext
4439
4440done
4441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4442rm -f conftest.err conftest.$ac_ext
4443if $ac_preproc_ok; then :
4444 break
c0e7e2bf
JB
4445fi
4446
21be0a5a
JB
4447 done
4448 ac_cv_prog_CPP=$CPP
4449
4450fi
4451 CPP=$ac_cv_prog_CPP
49ea7a0e 4452else
21be0a5a 4453 ac_cv_prog_CPP=$CPP
49ea7a0e 4454fi
21be0a5a
JB
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4456$as_echo "$CPP" >&6; }
4457ac_preproc_ok=false
4458for ac_c_preproc_warn_flag in '' yes
4459do
4460 # Use a header file that comes with gcc, so configuring glibc
4461 # with a fresh cross-compiler works.
4462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4463 # <limits.h> exists even on freestanding compilers.
4464 # On the NeXT, cc -E runs the code through the compiler's parser,
4465 # not just through cpp. "Syntax error" is here to catch this case.
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h. */
4468#ifdef __STDC__
4469# include <limits.h>
4470#else
4471# include <assert.h>
4472#endif
4473 Syntax error
4474_ACEOF
4475if ac_fn_c_try_cpp "$LINENO"; then :
49ea7a0e 4476
49ea7a0e 4477else
21be0a5a
JB
4478 # Broken: fails on valid input.
4479continue
49ea7a0e 4480fi
21be0a5a 4481rm -f conftest.err conftest.$ac_ext
49ea7a0e 4482
21be0a5a
JB
4483 # OK, works on sane cases. Now check whether nonexistent headers
4484 # can be detected and how.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c049309d 4486/* end confdefs.h. */
21be0a5a 4487#include <ac_nonexistent.h>
c049309d 4488_ACEOF
21be0a5a
JB
4489if ac_fn_c_try_cpp "$LINENO"; then :
4490 # Broken: success on invalid input.
4491continue
c049309d 4492else
21be0a5a
JB
4493 # Passes both tests.
4494ac_preproc_ok=:
4495break
c049309d 4496fi
21be0a5a
JB
4497rm -f conftest.err conftest.$ac_ext
4498
4499done
4500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4501rm -f conftest.err conftest.$ac_ext
4502if $ac_preproc_ok; then :
4503
c049309d 4504else
21be0a5a
JB
4505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4507as_fn_error "C preprocessor \"$CPP\" fails sanity check
4508See \`config.log' for more details." "$LINENO" 5; }
c049309d 4509fi
c049309d 4510
21be0a5a
JB
4511ac_ext=c
4512ac_cpp='$CPP $CPPFLAGS'
4513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515ac_compiler_gnu=$ac_cv_c_compiler_gnu
c049309d 4516
21be0a5a
JB
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4519$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4520if test "${ac_cv_path_GREP+set}" = set; then :
5213506e 4521 $as_echo_n "(cached) " >&6
6de9cd9a 4522else
21be0a5a
JB
4523 if test -z "$GREP"; then
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
96b8a615
AJ
4528do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
21be0a5a 4531 for ac_prog in grep ggrep; do
5213506e 4532 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4535# Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537case `"$ac_path_GREP" --version 2>&1` in
4538*GNU*)
4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4540*)
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4544 do
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'GREP' >> "conftest.nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP="$ac_path_GREP"
4555 ac_path_GREP_max=$ac_count
4556 fi
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
5213506e 4559 done
21be0a5a
JB
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561esac
6de9cd9a 4562
21be0a5a
JB
4563 $ac_path_GREP_found && break 3
4564 done
4565 done
4566 done
4567IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_GREP"; then
4569 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4570 fi
6de9cd9a 4571else
21be0a5a 4572 ac_cv_path_GREP=$GREP
6de9cd9a
DN
4573fi
4574
6de9cd9a 4575fi
21be0a5a
JB
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4577$as_echo "$ac_cv_path_GREP" >&6; }
4578 GREP="$ac_cv_path_GREP"
6de9cd9a 4579
21be0a5a
JB
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4582$as_echo_n "checking for egrep... " >&6; }
4583if test "${ac_cv_path_EGREP+set}" = set; then :
5213506e 4584 $as_echo_n "(cached) " >&6
6de9cd9a 4585else
21be0a5a
JB
4586 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4587 then ac_cv_path_EGREP="$GREP -E"
4588 else
4589 if test -z "$EGREP"; then
4590 ac_path_EGREP_found=false
4591 # Loop through the user's path and test for each of PROGNAME-LIST
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6de9cd9a
DN
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
21be0a5a 4597 for ac_prog in egrep; do
5213506e 4598 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
4599 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4600 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4601# Check for GNU ac_path_EGREP and select it if it is found.
4602 # Check for GNU $ac_path_EGREP
4603case `"$ac_path_EGREP" --version 2>&1` in
4604*GNU*)
4605 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4606*)
4607 ac_count=0
4608 $as_echo_n 0123456789 >"conftest.in"
4609 while :
4610 do
4611 cat "conftest.in" "conftest.in" >"conftest.tmp"
4612 mv "conftest.tmp" "conftest.in"
4613 cp "conftest.in" "conftest.nl"
4614 $as_echo 'EGREP' >> "conftest.nl"
4615 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4617 as_fn_arith $ac_count + 1 && ac_count=$as_val
4618 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4619 # Best one so far, save it but keep looking for a better one
4620 ac_cv_path_EGREP="$ac_path_EGREP"
4621 ac_path_EGREP_max=$ac_count
4622 fi
4623 # 10*(2^10) chars as input seems more than enough
4624 test $ac_count -gt 10 && break
5213506e 4625 done
21be0a5a
JB
4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627esac
6de9cd9a 4628
21be0a5a
JB
4629 $ac_path_EGREP_found && break 3
4630 done
4631 done
4632 done
4633IFS=$as_save_IFS
4634 if test -z "$ac_cv_path_EGREP"; then
4635 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4636 fi
6de9cd9a 4637else
21be0a5a 4638 ac_cv_path_EGREP=$EGREP
6de9cd9a
DN
4639fi
4640
21be0a5a 4641 fi
6de9cd9a 4642fi
21be0a5a
JB
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4644$as_echo "$ac_cv_path_EGREP" >&6; }
4645 EGREP="$ac_cv_path_EGREP"
4646
4647
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4649$as_echo_n "checking for ANSI C header files... " >&6; }
4650if test "${ac_cv_header_stdc+set}" = set; then :
5213506e 4651 $as_echo_n "(cached) " >&6
6de9cd9a 4652else
21be0a5a
JB
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h. */
4655#include <stdlib.h>
4656#include <stdarg.h>
4657#include <string.h>
4658#include <float.h>
4659
4660int
4661main ()
4662{
4663
4664 ;
4665 return 0;
4666}
4667_ACEOF
4668if ac_fn_c_try_compile "$LINENO"; then :
4669 ac_cv_header_stdc=yes
6de9cd9a 4670else
21be0a5a
JB
4671 ac_cv_header_stdc=no
4672fi
4673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4674
21be0a5a
JB
4675if test $ac_cv_header_stdc = yes; then
4676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h. */
4679#include <string.h>
4680
4681_ACEOF
4682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4683 $EGREP "memchr" >/dev/null 2>&1; then :
4684
4685else
4686 ac_cv_header_stdc=no
6de9cd9a 4687fi
21be0a5a
JB
4688rm -f conftest*
4689
6de9cd9a 4690fi
21be0a5a
JB
4691
4692if test $ac_cv_header_stdc = yes; then
4693 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695/* end confdefs.h. */
4696#include <stdlib.h>
4697
4698_ACEOF
4699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4700 $EGREP "free" >/dev/null 2>&1; then :
4701
6de9cd9a 4702else
21be0a5a 4703 ac_cv_header_stdc=no
6de9cd9a 4704fi
21be0a5a 4705rm -f conftest*
6de9cd9a 4706
6de9cd9a
DN
4707fi
4708
21be0a5a
JB
4709if test $ac_cv_header_stdc = yes; then
4710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4711 if test "$cross_compiling" = yes; then :
4712 :
4713else
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h. */
4716#include <ctype.h>
4717#include <stdlib.h>
4718#if ((' ' & 0x0FF) == 0x020)
4719# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4720# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4721#else
4722# define ISLOWER(c) \
4723 (('a' <= (c) && (c) <= 'i') \
4724 || ('j' <= (c) && (c) <= 'r') \
4725 || ('s' <= (c) && (c) <= 'z'))
4726# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4727#endif
4728
4729#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4730int
4731main ()
4732{
4733 int i;
4734 for (i = 0; i < 256; i++)
4735 if (XOR (islower (i), ISLOWER (i))
4736 || toupper (i) != TOUPPER (i))
4737 return 2;
4738 return 0;
4739}
4740_ACEOF
4741if ac_fn_c_try_run "$LINENO"; then :
4742
4743else
4744 ac_cv_header_stdc=no
4745fi
4746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4747 conftest.$ac_objext conftest.beam conftest.$ac_ext
4748fi
4749
4750fi
4751fi
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4753$as_echo "$ac_cv_header_stdc" >&6; }
4754if test $ac_cv_header_stdc = yes; then
4755
4756$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4757
4758fi
4759
4760# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4761for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4762 inttypes.h stdint.h unistd.h
4763do :
4764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4765ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4766"
4767eval as_val=\$$as_ac_Header
4768 if test "x$as_val" = x""yes; then :
4769 cat >>confdefs.h <<_ACEOF
4770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771_ACEOF
4772
4773fi
4774
4775done
4776
4777
4778
4779 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4780if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4781 MINIX=yes
4782else
4783 MINIX=
4784fi
4785
4786
4787 if test "$MINIX" = yes; then
4788
4789$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4790
4791
4792$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4793
4794
4795$as_echo "#define _MINIX 1" >>confdefs.h
4796
4797 fi
4798
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4801$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4802if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4804else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h. */
4807
4808# define __EXTENSIONS__ 1
4809 $ac_includes_default
4810int
4811main ()
4812{
4813
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818if ac_fn_c_try_compile "$LINENO"; then :
4819 ac_cv_safe_to_define___extensions__=yes
4820else
4821 ac_cv_safe_to_define___extensions__=no
4822fi
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824fi
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4826$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4827 test $ac_cv_safe_to_define___extensions__ = yes &&
4828 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4829
4830 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4831
4832 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4833
4834 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4835
4836 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4837
4838
4839
4840# Calculate toolexeclibdir
4841# Also toolexecdir, though it's only used in toolexeclibdir
4842case ${version_specific_libs} in
4843 yes)
4844 # Need the gcc compiler version to know where to install libraries
4845 # and header files if --enable-version-specific-runtime-libs option
4846 # is selected.
4847 toolexecdir='$(libdir)/gcc/$(target_alias)'
4848 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4849 ;;
4850 no)
4851 if test -n "$with_cross_host" &&
4852 test x"$with_cross_host" != x"no"; then
4853 # Install a library built with a cross compiler in tooldir, not libdir.
4854 toolexecdir='$(exec_prefix)/$(target_alias)'
4855 toolexeclibdir='$(toolexecdir)/lib'
4856 else
4857 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4858 toolexeclibdir='$(libdir)'
4859 fi
4860 multi_os_directory=`$CC -print-multi-os-directory`
4861 case $multi_os_directory in
4862 .) ;; # Avoid trailing /.
4863 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4864 esac
4865 ;;
4866esac
4867
4868
4869
4870# Create a spec file, so that compile/link tests don't fail
4871test -f libgfortran.spec || touch libgfortran.spec
4872
4873# Check the compiler.
4874# The same as in boehm-gc and libstdc++. Have to borrow it from there.
4875# We must force CC to /not/ be precious variables; otherwise
4876# the wrong, non-multilib-adjusted value will be used in multilibs.
4877# As a side effect, we have to subst CFLAGS ourselves.
4878
4879
4880
4881ac_ext=c
4882ac_cpp='$CPP $CPPFLAGS'
4883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4888set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 4891if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 4892 $as_echo_n "(cached) " >&6
6de9cd9a 4893else
21be0a5a
JB
4894 if test -n "$CC"; then
4895 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 4896else
96b8a615
AJ
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
5213506e
RW
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 4904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
4906 break 2
4907 fi
4908done
5213506e
RW
4909 done
4910IFS=$as_save_IFS
6de9cd9a 4911
6de9cd9a 4912fi
96b8a615 4913fi
21be0a5a
JB
4914CC=$ac_cv_prog_CC
4915if test -n "$CC"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4917$as_echo "$CC" >&6; }
96b8a615 4918else
5213506e
RW
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920$as_echo "no" >&6; }
96b8a615 4921fi
6de9cd9a 4922
5213506e 4923
6de9cd9a 4924fi
21be0a5a
JB
4925if test -z "$ac_cv_prog_CC"; then
4926 ac_ct_CC=$CC
4927 # Extract the first word of "gcc", so it can be a program name with args.
4928set dummy gcc; ac_word=$2
5213506e
RW
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 4931if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5213506e 4932 $as_echo_n "(cached) " >&6
6de9cd9a 4933else
21be0a5a
JB
4934 if test -n "$ac_ct_CC"; then
4935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6de9cd9a 4936else
96b8a615
AJ
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
5213506e
RW
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 4944 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
4946 break 2
4947 fi
4948done
5213506e
RW
4949 done
4950IFS=$as_save_IFS
6de9cd9a 4951
6de9cd9a 4952fi
6de9cd9a 4953fi
21be0a5a
JB
4954ac_ct_CC=$ac_cv_prog_ac_ct_CC
4955if test -n "$ac_ct_CC"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4957$as_echo "$ac_ct_CC" >&6; }
6de9cd9a 4958else
5213506e
RW
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
6de9cd9a
DN
4961fi
4962
21be0a5a
JB
4963 if test "x$ac_ct_CC" = x; then
4964 CC=""
5213506e
RW
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967yes:)
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970ac_tool_warned=yes ;;
4971esac
21be0a5a 4972 CC=$ac_ct_CC
5213506e 4973 fi
96b8a615 4974else
21be0a5a 4975 CC="$ac_cv_prog_CC"
6de9cd9a 4976fi
96b8a615 4977
21be0a5a
JB
4978if test -z "$CC"; then
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4981set dummy ${ac_tool_prefix}cc; ac_word=$2
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983$as_echo_n "checking for $ac_word... " >&6; }
4984if test "${ac_cv_prog_CC+set}" = set; then :
5213506e 4985 $as_echo_n "(cached) " >&6
6de9cd9a 4986else
21be0a5a
JB
4987 if test -n "$CC"; then
4988 ac_cv_prog_CC="$CC" # Let the user override the test.
6de9cd9a 4989else
21be0a5a
JB
4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_CC="${ac_tool_prefix}cc"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001done
5002 done
5003IFS=$as_save_IFS
5004
5005fi
5006fi
5007CC=$ac_cv_prog_CC
5008if test -n "$CC"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5010$as_echo "$CC" >&6; }
5011else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013$as_echo "no" >&6; }
5014fi
5015
5016
5017 fi
5018fi
5019if test -z "$CC"; then
5020 # Extract the first word of "cc", so it can be a program name with args.
5021set dummy cc; ac_word=$2
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023$as_echo_n "checking for $ac_word... " >&6; }
5024if test "${ac_cv_prog_CC+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5026else
5027 if test -n "$CC"; then
5028 ac_cv_prog_CC="$CC" # Let the user override the test.
5029else
5030 ac_prog_rejected=no
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5039 ac_prog_rejected=yes
5040 continue
5041 fi
5042 ac_cv_prog_CC="cc"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5045 fi
5046done
5047 done
5048IFS=$as_save_IFS
5049
5050if test $ac_prog_rejected = yes; then
5051 # We found a bogon in the path, so make sure we never use it.
5052 set dummy $ac_cv_prog_CC
5053 shift
5054 if test $# != 0; then
5055 # We chose a different compiler from the bogus one.
5056 # However, it has the same basename, so the bogon will be chosen
5057 # first if we set CC to just the basename; use the full file name.
5058 shift
5059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5060 fi
5061fi
5062fi
5063fi
5064CC=$ac_cv_prog_CC
5065if test -n "$CC"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5067$as_echo "$CC" >&6; }
5068else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070$as_echo "no" >&6; }
5071fi
5072
5073
5074fi
5075if test -z "$CC"; then
5076 if test -n "$ac_tool_prefix"; then
5077 for ac_prog in cl.exe
5078 do
5079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082$as_echo_n "checking for $ac_word... " >&6; }
5083if test "${ac_cv_prog_CC+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085else
5086 if test -n "$CC"; then
5087 ac_cv_prog_CC="$CC" # Let the user override the test.
5088else
5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH
5091do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5099 fi
5100done
5101 done
5102IFS=$as_save_IFS
5103
5104fi
5105fi
5106CC=$ac_cv_prog_CC
5107if test -n "$CC"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5109$as_echo "$CC" >&6; }
5110else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112$as_echo "no" >&6; }
5113fi
5114
5115
5116 test -n "$CC" && break
5117 done
5118fi
5119if test -z "$CC"; then
5120 ac_ct_CC=$CC
5121 for ac_prog in cl.exe
5122do
5123 # Extract the first word of "$ac_prog", so it can be a program name with args.
5124set dummy $ac_prog; ac_word=$2
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5129else
5130 if test -n "$ac_ct_CC"; then
5131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_ac_ct_CC="$ac_prog"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144done
5145 done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150ac_ct_CC=$ac_cv_prog_ac_ct_CC
5151if test -n "$ac_ct_CC"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5153$as_echo "$ac_ct_CC" >&6; }
5154else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160 test -n "$ac_ct_CC" && break
5161done
5162
5163 if test "x$ac_ct_CC" = x; then
5164 CC=""
5165 else
5166 case $cross_compiling:$ac_tool_warned in
5167yes:)
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170ac_tool_warned=yes ;;
5171esac
5172 CC=$ac_ct_CC
5173 fi
5174fi
5175
5176fi
5177
5178
5179test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5181as_fn_error "no acceptable C compiler found in \$PATH
5182See \`config.log' for more details." "$LINENO" 5; }
5183
5184# Provide some information about the compiler.
5185$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5186set X $ac_compile
5187ac_compiler=$2
5188for ac_option in --version -v -V -qversion; do
5189 { { ac_try="$ac_compiler $ac_option >&5"
5190case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193esac
5194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5195$as_echo "$ac_try_echo"; } >&5
5196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5197 ac_status=$?
5198 if test -s conftest.err; then
5199 sed '10a\
5200... rest of stderr output deleted ...
5201 10q' conftest.err >conftest.er1
5202 cat conftest.er1 >&5
5203 rm -f conftest.er1 conftest.err
5204 fi
5205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5206 test $ac_status = 0; }
5207done
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5210$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5211if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5213else
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h. */
5216
5217int
5218main ()
5219{
5220#ifndef __GNUC__
5221 choke me
5222#endif
5223
5224 ;
5225 return 0;
5226}
5227_ACEOF
5228if ac_fn_c_try_compile "$LINENO"; then :
5229 ac_compiler_gnu=yes
5230else
5231 ac_compiler_gnu=no
5232fi
5233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234ac_cv_c_compiler_gnu=$ac_compiler_gnu
5235
5236fi
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5238$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5239if test $ac_compiler_gnu = yes; then
5240 GCC=yes
5241else
5242 GCC=
5243fi
5244ac_test_CFLAGS=${CFLAGS+set}
5245ac_save_CFLAGS=$CFLAGS
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5247$as_echo_n "checking whether $CC accepts -g... " >&6; }
5248if test "${ac_cv_prog_cc_g+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250else
5251 ac_save_c_werror_flag=$ac_c_werror_flag
5252 ac_c_werror_flag=yes
5253 ac_cv_prog_cc_g=no
5254 CFLAGS="-g"
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h. */
5257
5258int
5259main ()
5260{
5261
5262 ;
5263 return 0;
5264}
5265_ACEOF
5266if ac_fn_c_try_compile "$LINENO"; then :
5267 ac_cv_prog_cc_g=yes
5268else
5269 CFLAGS=""
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h. */
5272
5273int
5274main ()
5275{
5276
5277 ;
5278 return 0;
5279}
5280_ACEOF
5281if ac_fn_c_try_compile "$LINENO"; then :
5282
5283else
5284 ac_c_werror_flag=$ac_save_c_werror_flag
5285 CFLAGS="-g"
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287/* end confdefs.h. */
5288
5289int
5290main ()
5291{
5292
5293 ;
5294 return 0;
5295}
5296_ACEOF
5297if ac_fn_c_try_compile "$LINENO"; then :
5298 ac_cv_prog_cc_g=yes
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301fi
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303fi
5304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 ac_c_werror_flag=$ac_save_c_werror_flag
5306fi
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5308$as_echo "$ac_cv_prog_cc_g" >&6; }
5309if test "$ac_test_CFLAGS" = set; then
5310 CFLAGS=$ac_save_CFLAGS
5311elif test $ac_cv_prog_cc_g = yes; then
5312 if test "$GCC" = yes; then
5313 CFLAGS="-g -O2"
5314 else
5315 CFLAGS="-g"
5316 fi
5317else
5318 if test "$GCC" = yes; then
5319 CFLAGS="-O2"
5320 else
5321 CFLAGS=
5322 fi
5323fi
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5325$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5326if test "${ac_cv_prog_cc_c89+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328else
5329 ac_cv_prog_cc_c89=no
5330ac_save_CC=$CC
5331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332/* end confdefs.h. */
5333#include <stdarg.h>
5334#include <stdio.h>
5335#include <sys/types.h>
5336#include <sys/stat.h>
5337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5338struct buf { int x; };
5339FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340static char *e (p, i)
5341 char **p;
5342 int i;
5343{
5344 return p[i];
5345}
5346static char *f (char * (*g) (char **, int), char **p, ...)
5347{
5348 char *s;
5349 va_list v;
5350 va_start (v,p);
5351 s = g (p, va_arg (v,int));
5352 va_end (v);
5353 return s;
5354}
5355
5356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5357 function prototypes and stuff, but not '\xHH' hex character constants.
5358 These don't provoke an error unfortunately, instead are silently treated
5359 as 'x'. The following induces an error, until -std is added to get
5360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5361 array size at least. It's necessary to write '\x00'==0 to get something
5362 that's true only with -std. */
5363int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5364
5365/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366 inside strings and character constants. */
5367#define FOO(x) 'x'
5368int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5369
5370int test (int i, double x);
5371struct s1 {int (*f) (int a);};
5372struct s2 {int (*f) (double a);};
5373int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5374int argc;
5375char **argv;
5376int
5377main ()
5378{
5379return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5380 ;
5381 return 0;
5382}
5383_ACEOF
5384for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5386do
5387 CC="$ac_save_CC $ac_arg"
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_prog_cc_c89=$ac_arg
5390fi
5391rm -f core conftest.err conftest.$ac_objext
5392 test "x$ac_cv_prog_cc_c89" != "xno" && break
5393done
5394rm -f conftest.$ac_ext
5395CC=$ac_save_CC
5396
5397fi
5398# AC_CACHE_VAL
5399case "x$ac_cv_prog_cc_c89" in
5400 x)
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402$as_echo "none needed" >&6; } ;;
5403 xno)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5405$as_echo "unsupported" >&6; } ;;
5406 *)
5407 CC="$CC $ac_cv_prog_cc_c89"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5409$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5410esac
5411if test "x$ac_cv_prog_cc_c89" != xno; then :
5412
5413fi
5414
5415ac_ext=c
5416ac_cpp='$CPP $CPPFLAGS'
5417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420
5421depcc="$CC" am_compiler_list=
5422
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5424$as_echo_n "checking dependency style of $depcc... " >&6; }
5425if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427else
5428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5429 # We make a subdir and do the tests there. Otherwise we can end up
5430 # making bogus files that we don't know about and never remove. For
5431 # instance it was reported that on HP-UX the gcc test will end up
5432 # making a dummy file named `D' -- because `-MD' means `put the output
5433 # in D'.
5434 mkdir conftest.dir
5435 # Copy depcomp to subdir because otherwise we won't find it if we're
5436 # using a relative directory.
5437 cp "$am_depcomp" conftest.dir
5438 cd conftest.dir
5439 # We will build objects and dependencies in a subdirectory because
5440 # it helps to detect inapplicable dependency modes. For instance
5441 # both Tru64's cc and ICC support -MD to output dependencies as a
5442 # side effect of compilation, but ICC will put the dependencies in
5443 # the current directory while Tru64 will put them in the object
5444 # directory.
5445 mkdir sub
5446
5447 am_cv_CC_dependencies_compiler_type=none
5448 if test "$am_compiler_list" = ""; then
5449 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5450 fi
5451 am__universal=false
5452 case " $depcc " in #(
5453 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5454 esac
5455
5456 for depmode in $am_compiler_list; do
5457 # Setup a source with many dependencies, because some compilers
5458 # like to wrap large dependency lists on column 80 (with \), and
5459 # we should not choose a depcomp mode which is confused by this.
5460 #
5461 # We need to recreate these files for each test, as the compiler may
5462 # overwrite some of them when testing with obscure command lines.
5463 # This happens at least with the AIX C compiler.
5464 : > sub/conftest.c
5465 for i in 1 2 3 4 5 6; do
5466 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5467 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5468 # Solaris 8's {/usr,}/bin/sh.
5469 touch sub/conftst$i.h
5470 done
5471 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5472
5473 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5474 # mode. It turns out that the SunPro C++ compiler does not properly
5475 # handle `-M -o', and we need to detect this. Also, some Intel
5476 # versions had trouble with output in subdirs
5477 am__obj=sub/conftest.${OBJEXT-o}
5478 am__minus_obj="-o $am__obj"
5479 case $depmode in
5480 gcc)
5481 # This depmode causes a compiler race in universal mode.
5482 test "$am__universal" = false || continue
5483 ;;
5484 nosideeffect)
5485 # after this tag, mechanisms are not by side-effect, so they'll
5486 # only be used when explicitly requested
5487 if test "x$enable_dependency_tracking" = xyes; then
5488 continue
5489 else
5490 break
5491 fi
5492 ;;
5493 msvisualcpp | msvcmsys)
5494 # This compiler won't grok `-c -o', but also, the minuso test has
5495 # not run yet. These depmodes are late enough in the game, and
5496 # so weak that their functioning should not be impacted.
5497 am__obj=conftest.${OBJEXT-o}
5498 am__minus_obj=
5499 ;;
5500 none) break ;;
5501 esac
5502 if depmode=$depmode \
5503 source=sub/conftest.c object=$am__obj \
5504 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5505 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5506 >/dev/null 2>conftest.err &&
5507 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5508 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5509 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5510 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5511 # icc doesn't choke on unknown options, it will just issue warnings
5512 # or remarks (even with -Werror). So we grep stderr for any message
5513 # that says an option was ignored or not supported.
5514 # When given -MP, icc 7.0 and 7.1 complain thusly:
5515 # icc: Command line warning: ignoring option '-M'; no argument required
5516 # The diagnosis changed in icc 8.0:
5517 # icc: Command line remark: option '-MP' not supported
5518 if (grep 'ignoring option' conftest.err ||
5519 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5520 am_cv_CC_dependencies_compiler_type=$depmode
5521 break
5522 fi
5523 fi
5524 done
5525
5526 cd ..
5527 rm -rf conftest.dir
5528else
5529 am_cv_CC_dependencies_compiler_type=none
5530fi
5531
5532fi
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5534$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5535CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5536
5537 if
5538 test "x$enable_dependency_tracking" != xno \
5539 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5540 am__fastdepCC_TRUE=
5541 am__fastdepCC_FALSE='#'
5542else
5543 am__fastdepCC_TRUE='#'
5544 am__fastdepCC_FALSE=
5545fi
5546
5547
5548
5549
5550# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5551if test "x$GCC" = "xyes"; then
5552 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5553 ## We like to use C99 routines when available. This makes sure that
5554 ## __STDC_VERSION__ is set such that libc includes make them available.
5555 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5556 ## Compile the following tests with the same system header contents
5557 ## that we'll encounter when compiling our own source files.
5558 CFLAGS="-std=gnu99 $CFLAGS"
5559fi
5560
5561
5562
5563
5564# Check for symbol versioning (copied from libssp).
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5566$as_echo_n "checking whether symbol versioning is supported... " >&6; }
5567save_LDFLAGS="$LDFLAGS"
5568LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5569cat > conftest.map <<EOF
5570FOO_1.0 {
5571 global: *foo*; bar; local: *;
5572};
5573EOF
5574if test x$gcc_no_link = xyes; then
5575 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5576fi
5577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h. */
5579int foo;
5580int
5581main ()
5582{
5583
5584 ;
5585 return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_link "$LINENO"; then :
5589 gfortran_use_symver=gnu
5590else
5591 gfortran_use_symver=no
5592fi
5593rm -f core conftest.err conftest.$ac_objext \
5594 conftest$ac_exeext conftest.$ac_ext
5595if test x$gfortran_use_symver = xno; then
5596 case "$target_os" in
5597 solaris2*)
5598 LDFLAGS="$save_LDFLAGS"
5599 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5600 # Sun ld cannot handle wildcards and treats all entries as undefined.
5601 cat > conftest.map <<EOF
5602FOO_1.0 {
5603 global: foo; local: *;
5604};
5605EOF
5606 if test x$gcc_no_link = xyes; then
5607 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5608fi
5609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611int foo;
5612int
5613main ()
5614{
5615
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_link "$LINENO"; then :
5621 gfortran_use_symver=sun
5622else
5623 gfortran_use_symver=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5627 ;;
5628 esac
5629fi
5630LDFLAGS="$save_LDFLAGS"
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5632$as_echo "$gfortran_use_symver" >&6; }
5633 if test "x$gfortran_use_symver" != xno; then
5634 LIBGFOR_USE_SYMVER_TRUE=
5635 LIBGFOR_USE_SYMVER_FALSE='#'
5636else
5637 LIBGFOR_USE_SYMVER_TRUE='#'
5638 LIBGFOR_USE_SYMVER_FALSE=
5639fi
5640
5641 if test "x$gfortran_use_symver" = xgnu; then
5642 LIBGFOR_USE_SYMVER_GNU_TRUE=
5643 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5644else
5645 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5646 LIBGFOR_USE_SYMVER_GNU_FALSE=
5647fi
5648
5649 if test "x$gfortran_use_symver" = xsun; then
5650 LIBGFOR_USE_SYMVER_SUN_TRUE=
5651 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5652else
5653 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5654 LIBGFOR_USE_SYMVER_SUN_FALSE=
5655fi
5656
5657
5658# Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5659# similarly to how libstdc++ does it
5660ac_test_CFLAGS="${CFLAGS+set}"
5661ac_save_CFLAGS="$CFLAGS"
5662
5663# Check for -ffunction-sections -fdata-sections
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5665$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5666CFLAGS='-Werror -ffunction-sections -fdata-sections'
5667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668/* end confdefs.h. */
5669
5670int
5671main ()
5672{
5673int foo;
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678if ac_fn_c_try_compile "$LINENO"; then :
5679 ac_fdsections=yes
5680else
5681 ac_fdsections=no
5682fi
5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684if test "$ac_test_CFLAGS" = set; then
5685 CFLAGS="$ac_save_CFLAGS"
5686else
5687 # this is the suspicious part
5688 CFLAGS=""
5689fi
5690if test x"$ac_fdsections" = x"yes"; then
5691 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5694$as_echo "$ac_fdsections" >&6; }
5695
5696
5697# Find other programs we need.
5698if test -n "$ac_tool_prefix"; then
5699 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5700set dummy ${ac_tool_prefix}as; ac_word=$2
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702$as_echo_n "checking for $ac_word... " >&6; }
5703if test "${ac_cv_prog_AS+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5705else
5706 if test -n "$AS"; then
5707 ac_cv_prog_AS="$AS" # Let the user override the test.
5708else
5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_prog_AS="${ac_tool_prefix}as"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720done
5721 done
5722IFS=$as_save_IFS
5723
5724fi
5725fi
5726AS=$ac_cv_prog_AS
5727if test -n "$AS"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5729$as_echo "$AS" >&6; }
5730else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732$as_echo "no" >&6; }
5733fi
5734
5735
5736fi
5737if test -z "$ac_cv_prog_AS"; then
5738 ac_ct_AS=$AS
5739 # Extract the first word of "as", so it can be a program name with args.
5740set dummy as; ac_word=$2
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742$as_echo_n "checking for $ac_word... " >&6; }
5743if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745else
5746 if test -n "$ac_ct_AS"; then
5747 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756 ac_cv_prog_ac_ct_AS="as"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761 done
5762IFS=$as_save_IFS
5763
5764fi
5765fi
5766ac_ct_AS=$ac_cv_prog_ac_ct_AS
5767if test -n "$ac_ct_AS"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5769$as_echo "$ac_ct_AS" >&6; }
5770else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772$as_echo "no" >&6; }
5773fi
5774
5775 if test "x$ac_ct_AS" = x; then
5776 AS=""
5777 else
5778 case $cross_compiling:$ac_tool_warned in
5779yes:)
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782ac_tool_warned=yes ;;
5783esac
5784 AS=$ac_ct_AS
5785 fi
5786else
5787 AS="$ac_cv_prog_AS"
5788fi
5789
5790if test -n "$ac_tool_prefix"; then
5791 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5792set dummy ${ac_tool_prefix}ar; ac_word=$2
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794$as_echo_n "checking for $ac_word... " >&6; }
5795if test "${ac_cv_prog_AR+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5797else
5798 if test -n "$AR"; then
5799 ac_cv_prog_AR="$AR" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_prog_AR="${ac_tool_prefix}ar"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812done
5813 done
5814IFS=$as_save_IFS
5815
5816fi
5817fi
5818AR=$ac_cv_prog_AR
5819if test -n "$AR"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5821$as_echo "$AR" >&6; }
5822else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825fi
5826
5827
5828fi
5829if test -z "$ac_cv_prog_AR"; then
5830 ac_ct_AR=$AR
5831 # Extract the first word of "ar", so it can be a program name with args.
5832set dummy ar; ac_word=$2
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
5835if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837else
5838 if test -n "$ac_ct_AR"; then
5839 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_prog_ac_ct_AR="ar"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853 done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
5858ac_ct_AR=$ac_cv_prog_ac_ct_AR
5859if test -n "$ac_ct_AR"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5861$as_echo "$ac_ct_AR" >&6; }
5862else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
5867 if test "x$ac_ct_AR" = x; then
5868 AR=""
5869 else
5870 case $cross_compiling:$ac_tool_warned in
5871yes:)
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5874ac_tool_warned=yes ;;
5875esac
5876 AR=$ac_ct_AR
5877 fi
5878else
5879 AR="$ac_cv_prog_AR"
5880fi
5881
5882if test -n "$ac_tool_prefix"; then
5883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5884set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886$as_echo_n "checking for $ac_word... " >&6; }
5887if test "${ac_cv_prog_RANLIB+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5889else
5890 if test -n "$RANLIB"; then
5891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5892else
5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894for as_dir in $PATH
5895do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904done
5905 done
5906IFS=$as_save_IFS
5907
5908fi
5909fi
5910RANLIB=$ac_cv_prog_RANLIB
5911if test -n "$RANLIB"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5913$as_echo "$RANLIB" >&6; }
5914else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916$as_echo "no" >&6; }
5917fi
5918
5919
5920fi
5921if test -z "$ac_cv_prog_RANLIB"; then
5922 ac_ct_RANLIB=$RANLIB
5923 # Extract the first word of "ranlib", so it can be a program name with args.
5924set dummy ranlib; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
5927if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5929else
5930 if test -n "$ac_ct_RANLIB"; then
5931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_prog_ac_ct_RANLIB="ranlib"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944done
5945 done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5951if test -n "$ac_ct_RANLIB"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5953$as_echo "$ac_ct_RANLIB" >&6; }
5954else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959 if test "x$ac_ct_RANLIB" = x; then
5960 RANLIB="ranlib-not-found-in-path-error"
5961 else
5962 case $cross_compiling:$ac_tool_warned in
5963yes:)
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966ac_tool_warned=yes ;;
5967esac
5968 RANLIB=$ac_ct_RANLIB
5969 fi
5970else
5971 RANLIB="$ac_cv_prog_RANLIB"
5972fi
5973
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5975$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5976set x ${MAKE-make}
5977ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5978if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5979 $as_echo_n "(cached) " >&6
5980else
5981 cat >conftest.make <<\_ACEOF
5982SHELL = /bin/sh
5983all:
5984 @echo '@@@%%%=$(MAKE)=@@@%%%'
5985_ACEOF
5986# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5987case `${MAKE-make} -f conftest.make 2>/dev/null` in
5988 *@@@%%%=?*=@@@%%%*)
5989 eval ac_cv_prog_make_${ac_make}_set=yes;;
5990 *)
5991 eval ac_cv_prog_make_${ac_make}_set=no;;
5992esac
5993rm -f conftest.make
5994fi
5995if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5997$as_echo "yes" >&6; }
5998 SET_MAKE=
5999else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001$as_echo "no" >&6; }
6002 SET_MAKE="MAKE=${MAKE-make}"
6003fi
6de9cd9a 6004
6de9cd9a 6005
6de9cd9a 6006
96b8a615
AJ
6007# Configure libtool
6008#AC_MSG_NOTICE([====== Starting libtool configuration])
1cf3d07d
SE
6009enable_dlopen=yes
6010
6011
6012
d58dead8
PG
6013case `pwd` in
6014 *\ * | *\ *)
5213506e
RW
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6016$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
d58dead8 6017esac
1cf3d07d
SE
6018
6019
1cf3d07d 6020
43e02a8a
RW
6021macro_version='2.2.7a'
6022macro_revision='1.3134'
1cf3d07d
SE
6023
6024
6025
6026
6027
6028
6de9cd9a 6029
1cf3d07d
SE
6030
6031
6032
6033
6034
6035
d58dead8 6036ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 6037
43e02a8a
RW
6038# Backslashify metacharacters that are still active within
6039# double-quoted strings.
6040sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6041
6042# Same as above, but do not quote variable references.
6043double_quote_subst='s/\(["`\\]\)/\\\1/g'
6044
6045# Sed substitution to delay expansion of an escaped shell variable in a
6046# double_quote_subst'ed string.
6047delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6048
6049# Sed substitution to delay expansion of an escaped single quote.
6050delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6051
6052# Sed substitution to avoid accidental globbing in evaled expressions
6053no_glob_subst='s/\*/\\\*/g'
6054
6055ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6056ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6057ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6058
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6060$as_echo_n "checking how to print strings... " >&6; }
6061# Test print first, because it will be a builtin if present.
6062if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6063 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6064 ECHO='print -r --'
6065elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6066 ECHO='printf %s\n'
6067else
6068 # Use this function as a fallback that always works.
6069 func_fallback_echo ()
6070 {
6071 eval 'cat <<_LTECHO_EOF
6072$1
6073_LTECHO_EOF'
6074 }
6075 ECHO='func_fallback_echo'
6076fi
6077
6078# func_echo_all arg...
6079# Invoke $ECHO with all args, space-separated.
6080func_echo_all ()
6081{
6082 $ECHO ""
6083}
6084
6085case "$ECHO" in
6086 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6087$as_echo "printf" >&6; } ;;
6088 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6089$as_echo "print -r" >&6; } ;;
6090 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6091$as_echo "cat" >&6; } ;;
6092esac
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
21be0a5a
JB
6105
6106
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6108$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6109if test "${ac_cv_path_SED+set}" = set; then :
5213506e 6110 $as_echo_n "(cached) " >&6
1cf3d07d 6111else
21be0a5a
JB
6112 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6113 for ac_i in 1 2 3 4 5 6 7; do
6114 ac_script="$ac_script$as_nl$ac_script"
6115 done
6116 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6117 { ac_script=; unset ac_script;}
6118 if test -z "$SED"; then
6119 ac_path_SED_found=false
5213506e
RW
6120 # Loop through the user's path and test for each of PROGNAME-LIST
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21be0a5a 6122for as_dir in $PATH
5213506e
RW
6123do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
21be0a5a 6126 for ac_prog in sed gsed; do
5213506e 6127 for ac_exec_ext in '' $ac_executable_extensions; do
21be0a5a
JB
6128 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6129 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6130# Check for GNU ac_path_SED and select it if it is found.
6131 # Check for GNU $ac_path_SED
6132case `"$ac_path_SED" --version 2>&1` in
5213506e 6133*GNU*)
21be0a5a 6134 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5213506e
RW
6135*)
6136 ac_count=0
6137 $as_echo_n 0123456789 >"conftest.in"
6138 while :
6139 do
6140 cat "conftest.in" "conftest.in" >"conftest.tmp"
6141 mv "conftest.tmp" "conftest.in"
6142 cp "conftest.in" "conftest.nl"
21be0a5a
JB
6143 $as_echo '' >> "conftest.nl"
6144 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213506e
RW
6145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6146 as_fn_arith $ac_count + 1 && ac_count=$as_val
21be0a5a 6147 if test $ac_count -gt ${ac_path_SED_max-0}; then
5213506e 6148 # Best one so far, save it but keep looking for a better one
21be0a5a
JB
6149 ac_cv_path_SED="$ac_path_SED"
6150 ac_path_SED_max=$ac_count
38d24731 6151 fi
5213506e
RW
6152 # 10*(2^10) chars as input seems more than enough
6153 test $ac_count -gt 10 && break
6154 done
6155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6156esac
6157
21be0a5a 6158 $ac_path_SED_found && break 3
5213506e
RW
6159 done
6160 done
6161 done
6162IFS=$as_save_IFS
21be0a5a
JB
6163 if test -z "$ac_cv_path_SED"; then
6164 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5213506e
RW
6165 fi
6166else
21be0a5a 6167 ac_cv_path_SED=$SED
5213506e
RW
6168fi
6169
1cf3d07d 6170fi
21be0a5a
JB
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6172$as_echo "$ac_cv_path_SED" >&6; }
6173 SED="$ac_cv_path_SED"
6174 rm -f conftest.sed
6175
6176test -z "$SED" && SED=sed
6177Xsed="$SED -e 1s/^X//"
6178
6179
6180
6181
6182
6183
6184
6185
6186
1cf3d07d
SE
6187
6188
5213506e
RW
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6190$as_echo_n "checking for fgrep... " >&6; }
6191if test "${ac_cv_path_FGREP+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
38d24731 6193else
5213506e
RW
6194 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6195 then ac_cv_path_FGREP="$GREP -F"
6196 else
6197 if test -z "$FGREP"; then
6198 ac_path_FGREP_found=false
6199 # Loop through the user's path and test for each of PROGNAME-LIST
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_prog in fgrep; do
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6208 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6209# Check for GNU ac_path_FGREP and select it if it is found.
6210 # Check for GNU $ac_path_FGREP
6211case `"$ac_path_FGREP" --version 2>&1` in
6212*GNU*)
6213 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6214*)
6215 ac_count=0
6216 $as_echo_n 0123456789 >"conftest.in"
6217 while :
6218 do
6219 cat "conftest.in" "conftest.in" >"conftest.tmp"
6220 mv "conftest.tmp" "conftest.in"
6221 cp "conftest.in" "conftest.nl"
6222 $as_echo 'FGREP' >> "conftest.nl"
6223 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6225 as_fn_arith $ac_count + 1 && ac_count=$as_val
6226 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6227 # Best one so far, save it but keep looking for a better one
6228 ac_cv_path_FGREP="$ac_path_FGREP"
6229 ac_path_FGREP_max=$ac_count
38d24731 6230 fi
5213506e
RW
6231 # 10*(2^10) chars as input seems more than enough
6232 test $ac_count -gt 10 && break
6233 done
6234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6235esac
6236
6237 $ac_path_FGREP_found && break 3
6238 done
6239 done
6240 done
6241IFS=$as_save_IFS
6242 if test -z "$ac_cv_path_FGREP"; then
6243 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6244 fi
6245else
6246 ac_cv_path_FGREP=$FGREP
1cf3d07d 6247fi
5213506e
RW
6248
6249 fi
6250fi
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6252$as_echo "$ac_cv_path_FGREP" >&6; }
6253 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
6254
6255
6256test -z "$GREP" && GREP=grep
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
5213506e
RW
6276# Check whether --with-gnu-ld was given.
6277if test "${with_gnu_ld+set}" = set; then :
6278 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
96b8a615
AJ
6279else
6280 with_gnu_ld=no
5213506e
RW
6281fi
6282
96b8a615
AJ
6283ac_prog=ld
6284if test "$GCC" = yes; then
6285 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6287$as_echo_n "checking for ld used by $CC... " >&6; }
96b8a615
AJ
6288 case $host in
6289 *-*-mingw*)
6290 # gcc leaves a trailing carriage return which upsets mingw
6291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6292 *)
6293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6294 esac
6295 case $ac_prog in
6296 # Accept absolute paths.
1cf3d07d 6297 [\\/]* | ?:[\\/]*)
96b8a615 6298 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
6299 # Canonicalize the pathname of ld
6300 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6301 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6302 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
96b8a615
AJ
6303 done
6304 test -z "$LD" && LD="$ac_prog"
6305 ;;
6306 "")
6307 # If it fails, then pretend we aren't using GCC.
6308 ac_prog=ld
6309 ;;
6310 *)
6311 # If it is relative, then search for the first ld in PATH.
6312 with_gnu_ld=unknown
6313 ;;
6314 esac
6315elif test "$with_gnu_ld" = yes; then
5213506e
RW
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6317$as_echo_n "checking for GNU ld... " >&6; }
96b8a615 6318else
5213506e
RW
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6320$as_echo_n "checking for non-GNU ld... " >&6; }
96b8a615 6321fi
5213506e
RW
6322if test "${lt_cv_path_LD+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
96b8a615
AJ
6324else
6325 if test -z "$LD"; then
1cf3d07d 6326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
96b8a615 6327 for ac_dir in $PATH; do
1cf3d07d 6328 IFS="$lt_save_ifs"
96b8a615
AJ
6329 test -z "$ac_dir" && ac_dir=.
6330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6331 lt_cv_path_LD="$ac_dir/$ac_prog"
6332 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 6333 # but apparently some variants of GNU ld only accept -v.
96b8a615 6334 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
6335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6336 *GNU* | *'with BFD'*)
96b8a615 6337 test "$with_gnu_ld" != no && break
1cf3d07d
SE
6338 ;;
6339 *)
96b8a615 6340 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
6341 ;;
6342 esac
96b8a615
AJ
6343 fi
6344 done
1cf3d07d 6345 IFS="$lt_save_ifs"
96b8a615
AJ
6346else
6347 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6348fi
6349fi
6350
6351LD="$lt_cv_path_LD"
6352if test -n "$LD"; then
5213506e
RW
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6354$as_echo "$LD" >&6; }
96b8a615 6355else
5213506e
RW
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
96b8a615 6358fi
5213506e
RW
6359test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6361$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6362if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
96b8a615 6364else
1cf3d07d
SE
6365 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6366case `$LD -v 2>&1 </dev/null` in
6367*GNU* | *'with BFD'*)
96b8a615 6368 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
6369 ;;
6370*)
96b8a615 6371 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
6372 ;;
6373esac
96b8a615 6374fi
5213506e
RW
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6376$as_echo "$lt_cv_prog_gnu_ld" >&6; }
96b8a615
AJ
6377with_gnu_ld=$lt_cv_prog_gnu_ld
6378
6379
96b8a615 6380
1cf3d07d
SE
6381
6382
6383
6384
6385
6386
5213506e
RW
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6388$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6389if test "${lt_cv_path_NM+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
96b8a615
AJ
6391else
6392 if test -n "$NM"; then
6393 # Let the user override the test.
6394 lt_cv_path_NM="$NM"
6395else
1cf3d07d
SE
6396 lt_nm_to_check="${ac_tool_prefix}nm"
6397 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6398 lt_nm_to_check="$lt_nm_to_check nm"
6399 fi
6400 for lt_tmp_nm in $lt_nm_to_check; do
6401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6402 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6403 IFS="$lt_save_ifs"
6404 test -z "$ac_dir" && ac_dir=.
6405 tmp_nm="$ac_dir/$lt_tmp_nm"
6406 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6407 # Check to see if the nm accepts a BSD-compat flag.
6408 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6409 # nm: unknown option "B" ignored
6410 # Tru64's nm complains that /dev/null is an invalid object file
6411 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6412 */dev/null* | *'Invalid file or object type'*)
6413 lt_cv_path_NM="$tmp_nm -B"
6414 break
6415 ;;
6416 *)
6417 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6418 */dev/null*)
6419 lt_cv_path_NM="$tmp_nm -p"
6420 break
6421 ;;
6422 *)
6423 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6424 continue # so that we can try to find one that supports BSD flags
6425 ;;
6426 esac
6427 ;;
6428 esac
6429 fi
6430 done
6431 IFS="$lt_save_ifs"
6432 done
6433 : ${lt_cv_path_NM=no}
6434fi
6435fi
5213506e
RW
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6437$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
6438if test "$lt_cv_path_NM" != "no"; then
6439 NM="$lt_cv_path_NM"
6440else
6441 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
6442 if test -n "$DUMPBIN"; then :
6443 # Let the user override the test.
6444 else
6445 if test -n "$ac_tool_prefix"; then
6446 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6447 do
6448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6449set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451$as_echo_n "checking for $ac_word... " >&6; }
6452if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6454else
6455 if test -n "$DUMPBIN"; then
6456 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6457else
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
5213506e
RW
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6465 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6467 break 2
6468 fi
6469done
5213506e
RW
6470 done
6471IFS=$as_save_IFS
1cf3d07d
SE
6472
6473fi
6474fi
6475DUMPBIN=$ac_cv_prog_DUMPBIN
6476if test -n "$DUMPBIN"; then
5213506e
RW
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6478$as_echo "$DUMPBIN" >&6; }
1cf3d07d 6479else
5213506e
RW
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481$as_echo "no" >&6; }
1cf3d07d
SE
6482fi
6483
5213506e 6484
1cf3d07d
SE
6485 test -n "$DUMPBIN" && break
6486 done
6487fi
6488if test -z "$DUMPBIN"; then
6489 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 6490 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
6491do
6492 # Extract the first word of "$ac_prog", so it can be a program name with args.
6493set dummy $ac_prog; ac_word=$2
5213506e
RW
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6498else
6499 if test -n "$ac_ct_DUMPBIN"; then
6500 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
5213506e
RW
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6509 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6511 break 2
6512 fi
6513done
5213506e
RW
6514 done
6515IFS=$as_save_IFS
1cf3d07d
SE
6516
6517fi
6518fi
6519ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6520if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6522$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 6523else
5213506e
RW
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
1cf3d07d
SE
6526fi
6527
5213506e 6528
1cf3d07d
SE
6529 test -n "$ac_ct_DUMPBIN" && break
6530done
1cf3d07d 6531
5213506e
RW
6532 if test "x$ac_ct_DUMPBIN" = x; then
6533 DUMPBIN=":"
6534 else
6535 case $cross_compiling:$ac_tool_warned in
6536yes:)
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539ac_tool_warned=yes ;;
6540esac
6541 DUMPBIN=$ac_ct_DUMPBIN
6542 fi
96b8a615 6543fi
1cf3d07d 6544
43e02a8a
RW
6545 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6546 *COFF*)
6547 DUMPBIN="$DUMPBIN -symbols"
6548 ;;
6549 *)
6550 DUMPBIN=:
6551 ;;
6552 esac
6553 fi
1cf3d07d
SE
6554
6555 if test "$DUMPBIN" != ":"; then
6556 NM="$DUMPBIN"
6557 fi
96b8a615 6558fi
1cf3d07d
SE
6559test -z "$NM" && NM=nm
6560
6561
96b8a615 6562
1cf3d07d
SE
6563
6564
6565
5213506e
RW
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6567$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6568if test "${lt_cv_nm_interface+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6570else
6571 lt_cv_nm_interface="BSD nm"
6572 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 6573 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
6574 (eval "$ac_compile" 2>conftest.err)
6575 cat conftest.err >&5
43e02a8a 6576 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
6577 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6578 cat conftest.err >&5
43e02a8a 6579 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
6580 cat conftest.out >&5
6581 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6582 lt_cv_nm_interface="MS dumpbin"
6583 fi
6584 rm -f conftest*
6585fi
5213506e
RW
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6587$as_echo "$lt_cv_nm_interface" >&6; }
96b8a615 6588
5213506e
RW
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6590$as_echo_n "checking whether ln -s works... " >&6; }
96b8a615
AJ
6591LN_S=$as_ln_s
6592if test "$LN_S" = "ln -s"; then
5213506e
RW
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6594$as_echo "yes" >&6; }
96b8a615 6595else
5213506e
RW
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6597$as_echo "no, using $LN_S" >&6; }
96b8a615
AJ
6598fi
6599
1cf3d07d 6600# find the maximum length of command line arguments
5213506e
RW
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6602$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6603if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6605else
6606 i=0
6607 teststring="ABCD"
6608
6609 case $build_os in
6610 msdosdjgpp*)
6611 # On DJGPP, this test can blow up pretty badly due to problems in libc
6612 # (any single argument exceeding 2000 bytes causes a buffer overrun
6613 # during glob expansion). Even if it were fixed, the result of this
6614 # check would be larger than it should be.
6615 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6616 ;;
6617
6618 gnu*)
6619 # Under GNU Hurd, this test is not required because there is
6620 # no limit to the length of command line arguments.
6621 # Libtool will interpret -1 as no limit whatsoever
6622 lt_cv_sys_max_cmd_len=-1;
6623 ;;
6624
d58dead8 6625 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
6626 # On Win9x/ME, this test blows up -- it succeeds, but takes
6627 # about 5 minutes as the teststring grows exponentially.
6628 # Worse, since 9x/ME are not pre-emptively multitasking,
6629 # you end up with a "frozen" computer, even though with patience
6630 # the test eventually succeeds (with a max line length of 256k).
6631 # Instead, let's just punt: use the minimum linelength reported by
6632 # all of the supported platforms: 8192 (on NT/2K/XP).
6633 lt_cv_sys_max_cmd_len=8192;
6634 ;;
6635
43e02a8a
RW
6636 mint*)
6637 # On MiNT this can take a long time and run out of memory.
6638 lt_cv_sys_max_cmd_len=8192;
6639 ;;
6640
1cf3d07d
SE
6641 amigaos*)
6642 # On AmigaOS with pdksh, this test takes hours, literally.
6643 # So we just punt and use a minimum line length of 8192.
6644 lt_cv_sys_max_cmd_len=8192;
6645 ;;
6646
6647 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6648 # This has been around since 386BSD, at least. Likely further.
6649 if test -x /sbin/sysctl; then
6650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6651 elif test -x /usr/sbin/sysctl; then
6652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6653 else
6654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6655 fi
6656 # And add a safety zone
6657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6659 ;;
6660
6661 interix*)
6662 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6663 lt_cv_sys_max_cmd_len=196608
6664 ;;
6665
6666 osf*)
6667 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6668 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6669 # nice to cause kernel panics so lets avoid the loop below.
6670 # First set a reasonable default.
6671 lt_cv_sys_max_cmd_len=16384
6672 #
6673 if test -x /sbin/sysconfig; then
6674 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6675 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6676 esac
6677 fi
6678 ;;
6679 sco3.2v5*)
6680 lt_cv_sys_max_cmd_len=102400
6681 ;;
6682 sysv5* | sco5v6* | sysv4.2uw2*)
6683 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6684 if test -n "$kargmax"; then
6685 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6686 else
6687 lt_cv_sys_max_cmd_len=32768
6688 fi
6689 ;;
6690 *)
d58dead8
PG
6691 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6692 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
6693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6695 else
6696 # Make teststring a little bigger before we do anything with it.
6697 # a 1K string should be a reasonable start.
6698 for i in 1 2 3 4 5 6 7 8 ; do
6699 teststring=$teststring$teststring
6700 done
6701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6702 # If test is not a shell built-in, we'll probably end up computing a
6703 # maximum length that is only half of the actual maximum length, but
6704 # we can't tell.
43e02a8a
RW
6705 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6706 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
6707 test $i != 17 # 1/2 MB should be enough
6708 do
6709 i=`expr $i + 1`
6710 teststring=$teststring$teststring
6711 done
6712 # Only check the string length outside the loop.
6713 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6714 teststring=
6715 # Add a significant safety factor because C++ compilers can tack on
6716 # massive amounts of additional arguments before passing them to the
6717 # linker. It appears as though 1/2 is a usable value.
6718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6719 fi
1cf3d07d
SE
6720 ;;
6721 esac
6722
6723fi
6724
6725if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6727$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 6728else
5213506e
RW
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6730$as_echo "none" >&6; }
1cf3d07d
SE
6731fi
6732max_cmd_len=$lt_cv_sys_max_cmd_len
6733
6734
6735
6736
6737
6738
1cf3d07d
SE
6739: ${CP="cp -f"}
6740: ${MV="mv -f"}
6741: ${RM="rm -f"}
6742
5213506e
RW
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6744$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
6745# Try some XSI features
6746xsi_shell=no
6747( _lt_dummy="a/b/c"
6748 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
d58dead8
PG
6749 = c,a/b,, \
6750 && eval 'test $(( 1 + 1 )) -eq 2 \
6751 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 6752 && xsi_shell=yes
5213506e
RW
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6754$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
6755
6756
5213506e
RW
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6758$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
6759lt_shell_append=no
6760( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6761 >/dev/null 2>&1 \
6762 && lt_shell_append=yes
5213506e
RW
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6764$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
6765
6766
6767if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6768 lt_unset=unset
6769else
6770 lt_unset=false
6771fi
6772
6773
6774
6775
6776
6777# test EBCDIC or ASCII
6778case `echo X|tr X '\101'` in
6779 A) # ASCII based system
6780 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6781 lt_SP2NL='tr \040 \012'
6782 lt_NL2SP='tr \015\012 \040\040'
6783 ;;
6784 *) # EBCDIC based system
6785 lt_SP2NL='tr \100 \n'
6786 lt_NL2SP='tr \r\n \100\100'
6787 ;;
6788esac
6789
6790
6791
6792
6793
6794
6795
6796
6797
5213506e
RW
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6799$as_echo_n "checking for $LD option to reload object files... " >&6; }
6800if test "${lt_cv_ld_reload_flag+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6802else
6803 lt_cv_ld_reload_flag='-r'
6804fi
5213506e
RW
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6806$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
6807reload_flag=$lt_cv_ld_reload_flag
6808case $reload_flag in
6809"" | " "*) ;;
6810*) reload_flag=" $reload_flag" ;;
6811esac
6812reload_cmds='$LD$reload_flag -o $output$reload_objs'
6813case $host_os in
6814 darwin*)
6815 if test "$GCC" = yes; then
6816 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6817 else
6818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6819 fi
6820 ;;
6821esac
6822
6823
6824
6825
6826
6827
6828
6829
6830
d58dead8
PG
6831if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6833set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835$as_echo_n "checking for $ac_word... " >&6; }
6836if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
d58dead8
PG
6838else
6839 if test -n "$OBJDUMP"; then
6840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
5213506e
RW
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 6849 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
6851 break 2
6852 fi
6853done
5213506e
RW
6854 done
6855IFS=$as_save_IFS
d58dead8
PG
6856
6857fi
6858fi
6859OBJDUMP=$ac_cv_prog_OBJDUMP
6860if test -n "$OBJDUMP"; then
5213506e
RW
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6862$as_echo "$OBJDUMP" >&6; }
d58dead8 6863else
5213506e
RW
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865$as_echo "no" >&6; }
d58dead8
PG
6866fi
6867
5213506e 6868
d58dead8
PG
6869fi
6870if test -z "$ac_cv_prog_OBJDUMP"; then
6871 ac_ct_OBJDUMP=$OBJDUMP
6872 # Extract the first word of "objdump", so it can be a program name with args.
6873set dummy objdump; ac_word=$2
5213506e
RW
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
d58dead8
PG
6878else
6879 if test -n "$ac_ct_OBJDUMP"; then
6880 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
5213506e
RW
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 6889 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
6891 break 2
6892 fi
6893done
5213506e
RW
6894 done
6895IFS=$as_save_IFS
d58dead8 6896
d58dead8
PG
6897fi
6898fi
6899ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6900if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6902$as_echo "$ac_ct_OBJDUMP" >&6; }
d58dead8 6903else
5213506e
RW
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
d58dead8
PG
6906fi
6907
5213506e
RW
6908 if test "x$ac_ct_OBJDUMP" = x; then
6909 OBJDUMP="false"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912yes:)
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917 OBJDUMP=$ac_ct_OBJDUMP
6918 fi
d58dead8
PG
6919else
6920 OBJDUMP="$ac_cv_prog_OBJDUMP"
6921fi
6922
6923test -z "$OBJDUMP" && OBJDUMP=objdump
6924
6925
6926
6927
6928
6929
6930
6931
1cf3d07d 6932
5213506e
RW
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6934$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6935if test "${lt_cv_deplibs_check_method+set}" = set; then :
6936 $as_echo_n "(cached) " >&6
96b8a615
AJ
6937else
6938 lt_cv_file_magic_cmd='$MAGIC_CMD'
6939lt_cv_file_magic_test_file=
6940lt_cv_deplibs_check_method='unknown'
6941# Need to set the preceding variable on all platforms that support
6942# interlibrary dependencies.
6943# 'none' -- dependencies not supported.
6944# `unknown' -- same as none, but documents that we really don't know.
6945# 'pass_all' -- all dependencies passed with no checks.
6946# 'test_compile' -- check by making test program.
1cf3d07d
SE
6947# 'file_magic [[regex]]' -- check by looking for files in library path
6948# which responds to the $file_magic_cmd with a given extended regex.
96b8a615
AJ
6949# If you have `file' or equivalent on your system and you're not sure
6950# whether `pass_all' will *always* work, you probably want this one.
6951
6952case $host_os in
4f6bebc3 6953aix[4-9]*)
96b8a615
AJ
6954 lt_cv_deplibs_check_method=pass_all
6955 ;;
6956
6957beos*)
6958 lt_cv_deplibs_check_method=pass_all
6959 ;;
6960
1cf3d07d 6961bsdi[45]*)
96b8a615
AJ
6962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6963 lt_cv_file_magic_cmd='/usr/bin/file -L'
6964 lt_cv_file_magic_test_file=/shlib/libc.so
6965 ;;
6966
1cf3d07d
SE
6967cygwin*)
6968 # func_win32_libid is a shell function defined in ltmain.sh
6969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6970 lt_cv_file_magic_cmd='func_win32_libid'
6971 ;;
6972
6973mingw* | pw32*)
6974 # Base MSYS/MinGW do not provide the 'file' command needed by
6975 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6976 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
6977 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6978 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
6979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6980 lt_cv_file_magic_cmd='func_win32_libid'
6981 else
6982 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6983 lt_cv_file_magic_cmd='$OBJDUMP -f'
6984 fi
96b8a615
AJ
6985 ;;
6986
43e02a8a 6987cegcc*)
d58dead8
PG
6988 # use the weaker test based on 'objdump'. See mingw*.
6989 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6990 lt_cv_file_magic_cmd='$OBJDUMP -f'
6991 ;;
6992
96b8a615 6993darwin* | rhapsody*)
96b8a615
AJ
6994 lt_cv_deplibs_check_method=pass_all
6995 ;;
6996
1cf3d07d
SE
6997freebsd* | dragonfly*)
6998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
96b8a615
AJ
6999 case $host_cpu in
7000 i*86 )
7001 # Not sure whether the presence of OpenBSD here was a mistake.
7002 # Let's accept both of them until this is cleared up.
1cf3d07d 7003 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
96b8a615
AJ
7004 lt_cv_file_magic_cmd=/usr/bin/file
7005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7006 ;;
7007 esac
7008 else
7009 lt_cv_deplibs_check_method=pass_all
7010 fi
7011 ;;
7012
7013gnu*)
7014 lt_cv_deplibs_check_method=pass_all
7015 ;;
7016
43e02a8a
RW
7017haiku*)
7018 lt_cv_deplibs_check_method=pass_all
7019 ;;
7020
1cf3d07d
SE
7021hpux10.20* | hpux11*)
7022 lt_cv_file_magic_cmd=/usr/bin/file
96b8a615 7023 case $host_cpu in
96b8a615
AJ
7024 ia64*)
7025 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
7026 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7027 ;;
1cf3d07d 7028 hppa*64*)
43e02a8a 7029 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 7030 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
96b8a615
AJ
7031 ;;
7032 *)
43e02a8a 7033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 7034 lt_cv_file_magic_test_file=/usr/lib/libc.sl
96b8a615
AJ
7035 ;;
7036 esac
1cf3d07d
SE
7037 ;;
7038
7039interix[3-9]*)
7040 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7042 ;;
7043
7044irix5* | irix6* | nonstopux*)
7045 case $LD in
7046 *-32|*"-32 ") libmagic=32-bit;;
7047 *-n32|*"-n32 ") libmagic=N32;;
7048 *-64|*"-64 ") libmagic=64-bit;;
7049 *) libmagic=never-match;;
7050 esac
96b8a615
AJ
7051 lt_cv_deplibs_check_method=pass_all
7052 ;;
7053
7054# This must be Linux ELF.
7a9d3fe8 7055linux* | k*bsd*-gnu | kopensolaris*-gnu)
2c92e90f 7056 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7057 ;;
7058
1cf3d07d
SE
7059netbsd*)
7060 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
96b8a615 7062 else
1cf3d07d 7063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
96b8a615
AJ
7064 fi
7065 ;;
7066
1cf3d07d 7067newos6*)
96b8a615
AJ
7068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7069 lt_cv_file_magic_cmd=/usr/bin/file
7070 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7071 ;;
7072
1cf3d07d
SE
7073*nto* | *qnx*)
7074 lt_cv_deplibs_check_method=pass_all
7075 ;;
7076
7077openbsd*)
7078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7080 else
7081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7082 fi
7083 ;;
7084
96b8a615 7085osf3* | osf4* | osf5*)
96b8a615
AJ
7086 lt_cv_deplibs_check_method=pass_all
7087 ;;
7088
1cf3d07d 7089rdos*)
96b8a615
AJ
7090 lt_cv_deplibs_check_method=pass_all
7091 ;;
7092
7093solaris*)
7094 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
7095 ;;
7096
1cf3d07d 7097sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
96b8a615
AJ
7098 lt_cv_deplibs_check_method=pass_all
7099 ;;
7100
1cf3d07d 7101sysv4 | sysv4.3*)
96b8a615 7102 case $host_vendor in
96b8a615
AJ
7103 motorola)
7104 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]'
7105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7106 ;;
1cf3d07d
SE
7107 ncr)
7108 lt_cv_deplibs_check_method=pass_all
7109 ;;
7110 sequent)
7111 lt_cv_file_magic_cmd='/bin/file'
7112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7113 ;;
7114 sni)
7115 lt_cv_file_magic_cmd='/bin/file'
7116 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7117 lt_cv_file_magic_test_file=/lib/libc.so
7118 ;;
7119 siemens)
7120 lt_cv_deplibs_check_method=pass_all
7121 ;;
7122 pc)
7123 lt_cv_deplibs_check_method=pass_all
7124 ;;
96b8a615
AJ
7125 esac
7126 ;;
1cf3d07d
SE
7127
7128tpf*)
7129 lt_cv_deplibs_check_method=pass_all
7130 ;;
96b8a615
AJ
7131esac
7132
7133fi
5213506e
RW
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7135$as_echo "$lt_cv_deplibs_check_method" >&6; }
96b8a615
AJ
7136file_magic_cmd=$lt_cv_file_magic_cmd
7137deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 7138test -z "$deplibs_check_method" && deplibs_check_method=unknown
96b8a615
AJ
7139
7140
7141
7142
96b8a615 7143
96b8a615 7144
96b8a615 7145
96b8a615 7146
6de9cd9a 7147
6de9cd9a 7148
6de9cd9a 7149
6de9cd9a 7150
96b8a615 7151if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
7152 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7153set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
7156if test "${ac_cv_prog_AR+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
6de9cd9a 7158else
1cf3d07d
SE
7159 if test -n "$AR"; then
7160 ac_cv_prog_AR="$AR" # Let the user override the test.
96b8a615
AJ
7161else
7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
5213506e
RW
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7169 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7171 break 2
7172 fi
7173done
5213506e
RW
7174 done
7175IFS=$as_save_IFS
6de9cd9a 7176
96b8a615
AJ
7177fi
7178fi
1cf3d07d
SE
7179AR=$ac_cv_prog_AR
7180if test -n "$AR"; then
5213506e
RW
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7182$as_echo "$AR" >&6; }
96b8a615 7183else
5213506e
RW
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
6de9cd9a
DN
7186fi
7187
5213506e 7188
96b8a615 7189fi
1cf3d07d
SE
7190if test -z "$ac_cv_prog_AR"; then
7191 ac_ct_AR=$AR
7192 # Extract the first word of "ar", so it can be a program name with args.
7193set dummy ar; ac_word=$2
5213506e
RW
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
7196if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
96b8a615 7198else
1cf3d07d
SE
7199 if test -n "$ac_ct_AR"; then
7200 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
96b8a615
AJ
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
5213506e
RW
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7209 ac_cv_prog_ac_ct_AR="ar"
5213506e 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7211 break 2
7212 fi
7213done
5213506e
RW
7214 done
7215IFS=$as_save_IFS
6de9cd9a 7216
96b8a615
AJ
7217fi
7218fi
1cf3d07d
SE
7219ac_ct_AR=$ac_cv_prog_ac_ct_AR
7220if test -n "$ac_ct_AR"; then
5213506e
RW
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7222$as_echo "$ac_ct_AR" >&6; }
6de9cd9a 7223else
5213506e
RW
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225$as_echo "no" >&6; }
6de9cd9a 7226fi
6de9cd9a 7227
5213506e
RW
7228 if test "x$ac_ct_AR" = x; then
7229 AR="false"
7230 else
7231 case $cross_compiling:$ac_tool_warned in
7232yes:)
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235ac_tool_warned=yes ;;
7236esac
7237 AR=$ac_ct_AR
7238 fi
96b8a615 7239else
1cf3d07d 7240 AR="$ac_cv_prog_AR"
6de9cd9a
DN
7241fi
7242
1cf3d07d
SE
7243test -z "$AR" && AR=ar
7244test -z "$AR_FLAGS" && AR_FLAGS=cru
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
96b8a615
AJ
7256if test -n "$ac_tool_prefix"; then
7257 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7258set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260$as_echo_n "checking for $ac_word... " >&6; }
7261if test "${ac_cv_prog_STRIP+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
6de9cd9a 7263else
96b8a615
AJ
7264 if test -n "$STRIP"; then
7265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
5213506e
RW
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7274 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7276 break 2
7277 fi
7278done
5213506e
RW
7279 done
7280IFS=$as_save_IFS
6de9cd9a 7281
96b8a615
AJ
7282fi
7283fi
7284STRIP=$ac_cv_prog_STRIP
7285if test -n "$STRIP"; then
5213506e
RW
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7287$as_echo "$STRIP" >&6; }
6de9cd9a 7288else
5213506e
RW
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
96b8a615 7291fi
6de9cd9a 7292
5213506e 7293
6de9cd9a 7294fi
96b8a615
AJ
7295if test -z "$ac_cv_prog_STRIP"; then
7296 ac_ct_STRIP=$STRIP
7297 # Extract the first word of "strip", so it can be a program name with args.
7298set dummy strip; ac_word=$2
5213506e
RW
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300$as_echo_n "checking for $ac_word... " >&6; }
7301if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
96b8a615
AJ
7303else
7304 if test -n "$ac_ct_STRIP"; then
7305 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7306else
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
5213506e
RW
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
96b8a615 7314 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
96b8a615
AJ
7316 break 2
7317 fi
7318done
5213506e
RW
7319 done
7320IFS=$as_save_IFS
96b8a615 7321
6de9cd9a
DN
7322fi
7323fi
96b8a615
AJ
7324ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7325if test -n "$ac_ct_STRIP"; then
5213506e
RW
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7327$as_echo "$ac_ct_STRIP" >&6; }
96b8a615 7328else
5213506e
RW
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
6de9cd9a 7331fi
6de9cd9a 7332
5213506e
RW
7333 if test "x$ac_ct_STRIP" = x; then
7334 STRIP=":"
7335 else
7336 case $cross_compiling:$ac_tool_warned in
7337yes:)
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7340ac_tool_warned=yes ;;
7341esac
7342 STRIP=$ac_ct_STRIP
7343 fi
96b8a615
AJ
7344else
7345 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
7346fi
7347
1cf3d07d 7348test -z "$STRIP" && STRIP=:
6de9cd9a
DN
7349
7350
7351
7352
7353
7354
1cf3d07d
SE
7355if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7357set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359$as_echo_n "checking for $ac_word... " >&6; }
7360if test "${ac_cv_prog_RANLIB+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
6de9cd9a 7362else
1cf3d07d
SE
7363 if test -n "$RANLIB"; then
7364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7365else
7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
5213506e
RW
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7375 break 2
7376 fi
7377done
5213506e
RW
7378 done
7379IFS=$as_save_IFS
1cf3d07d
SE
7380
7381fi
7382fi
7383RANLIB=$ac_cv_prog_RANLIB
7384if test -n "$RANLIB"; then
5213506e
RW
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7386$as_echo "$RANLIB" >&6; }
1cf3d07d 7387else
5213506e
RW
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389$as_echo "no" >&6; }
1cf3d07d
SE
7390fi
7391
5213506e 7392
1cf3d07d
SE
7393fi
7394if test -z "$ac_cv_prog_RANLIB"; then
7395 ac_ct_RANLIB=$RANLIB
7396 # Extract the first word of "ranlib", so it can be a program name with args.
7397set dummy ranlib; ac_word=$2
5213506e
RW
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399$as_echo_n "checking for $ac_word... " >&6; }
7400if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7402else
7403 if test -n "$ac_ct_RANLIB"; then
7404 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7405else
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
5213506e
RW
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 7413 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
7415 break 2
7416 fi
7417done
5213506e
RW
7418 done
7419IFS=$as_save_IFS
1cf3d07d 7420
1cf3d07d
SE
7421fi
7422fi
7423ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7424if test -n "$ac_ct_RANLIB"; then
5213506e
RW
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7426$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 7427else
5213506e
RW
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
1cf3d07d
SE
7430fi
7431
5213506e
RW
7432 if test "x$ac_ct_RANLIB" = x; then
7433 RANLIB=":"
7434 else
7435 case $cross_compiling:$ac_tool_warned in
7436yes:)
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439ac_tool_warned=yes ;;
7440esac
7441 RANLIB=$ac_ct_RANLIB
7442 fi
1cf3d07d
SE
7443else
7444 RANLIB="$ac_cv_prog_RANLIB"
7445fi
7446
7447test -z "$RANLIB" && RANLIB=:
7448
7449
7450
7451
7452
7453
7454# Determine commands to create old-style static archives.
d58dead8 7455old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
7456old_postinstall_cmds='chmod 644 $oldlib'
7457old_postuninstall_cmds=
7458
7459if test -n "$RANLIB"; then
7460 case $host_os in
7461 openbsd*)
7462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7463 ;;
7464 *)
7465 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7466 ;;
7467 esac
7468 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7469fi
7470
43e02a8a
RW
7471case $host_os in
7472 darwin*)
7473 lock_old_archive_extraction=yes ;;
7474 *)
7475 lock_old_archive_extraction=no ;;
7476esac
7477
7478
7479
7480
7481
7482
1cf3d07d
SE
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516# If no C compiler was specified, use CC.
7517LTCC=${LTCC-"$CC"}
7518
7519# If no C compiler flags were specified, use CFLAGS.
7520LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7521
7522# Allow CC to be a program name with arguments.
7523compiler=$CC
7524
7525
7526# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7528$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7529if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7531else
7532
7533# These are sane defaults that work on at least a few old systems.
7534# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7535
7536# Character class describing NM global symbol codes.
7537symcode='[BCDEGRST]'
7538
7539# Regexp to match symbols that can be accessed directly from C.
7540sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7541
7542# Define system-specific variables.
7543case $host_os in
7544aix*)
7545 symcode='[BCDT]'
7546 ;;
d58dead8 7547cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7548 symcode='[ABCDGISTW]'
7549 ;;
7550hpux*)
7551 if test "$host_cpu" = ia64; then
7552 symcode='[ABCDEGRST]'
7553 fi
7554 ;;
7555irix* | nonstopux*)
7556 symcode='[BCDEGRST]'
7557 ;;
7558osf*)
7559 symcode='[BCDEGQRST]'
7560 ;;
7561solaris*)
7562 symcode='[BDRT]'
7563 ;;
7564sco3.2v5*)
7565 symcode='[DT]'
7566 ;;
7567sysv4.2uw2*)
7568 symcode='[DT]'
7569 ;;
7570sysv5* | sco5v6* | unixware* | OpenUNIX*)
7571 symcode='[ABDT]'
7572 ;;
7573sysv4)
7574 symcode='[DFNSTU]'
7575 ;;
7576esac
7577
7578# If we're using GNU nm, then use its standard symbol codes.
7579case `$NM -V 2>&1` in
7580*GNU* | *'with BFD'*)
7581 symcode='[ABCDGIRSTW]' ;;
7582esac
7583
7584# Transform an extracted symbol line into a proper C declaration.
7585# Some systems (esp. on ia64) link data and code symbols differently,
7586# so use this general approach.
7587lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7588
7589# Transform an extracted symbol line into symbol name and symbol address
7590lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d58dead8 7591lt_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
7592
7593# Handle CRLF in mingw tool chain
7594opt_cr=
7595case $build_os in
7596mingw*)
7597 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7598 ;;
7599esac
7600
7601# Try without a prefix underscore, then with it.
7602for ac_symprfx in "" "_"; do
7603
7604 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7605 symxfrm="\\1 $ac_symprfx\\2 \\2"
7606
7607 # Write the raw and C identifiers.
7608 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7609 # Fake it for dumpbin and say T for any non-static function
7610 # and D for any global variable.
7611 # Also find C++ and __fastcall symbols from MSVC++,
7612 # which start with @ or ?.
7613 lt_cv_sys_global_symbol_pipe="$AWK '"\
7614" {last_section=section; section=\$ 3};"\
7615" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7616" \$ 0!~/External *\|/{next};"\
7617" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7618" {if(hide[section]) next};"\
7619" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7620" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7621" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7622" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7623" ' prfx=^$ac_symprfx"
7624 else
7625 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7626 fi
7627
7628 # Check to see that the pipe works correctly.
7629 pipe_works=no
7630
7631 rm -f conftest*
7632 cat > conftest.$ac_ext <<_LT_EOF
7633#ifdef __cplusplus
7634extern "C" {
7635#endif
7636char nm_test_var;
7637void nm_test_func(void);
7638void nm_test_func(void){}
7639#ifdef __cplusplus
7640}
7641#endif
7642int main(){nm_test_var='a';nm_test_func();return(0);}
7643_LT_EOF
7644
5213506e 7645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7646 (eval $ac_compile) 2>&5
7647 ac_status=$?
5213506e
RW
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
1cf3d07d
SE
7650 # Now try to grab the symbols.
7651 nlist=conftest.nm
43e02a8a
RW
7652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7653 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 7654 ac_status=$?
5213506e
RW
7655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
7657 # Try sorting and uniquifying the output.
7658 if sort "$nlist" | uniq > "$nlist"T; then
7659 mv -f "$nlist"T "$nlist"
7660 else
7661 rm -f "$nlist"T
7662 fi
7663
7664 # Make sure that we snagged all the symbols we need.
7665 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7666 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7667 cat <<_LT_EOF > conftest.$ac_ext
7668#ifdef __cplusplus
7669extern "C" {
7670#endif
7671
7672_LT_EOF
7673 # Now generate the symbol file.
7674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7675
7676 cat <<_LT_EOF >> conftest.$ac_ext
7677
7678/* The mapping between symbol names and symbols. */
7679const struct {
7680 const char *name;
7681 void *address;
7682}
7683lt__PROGRAM__LTX_preloaded_symbols[] =
7684{
7685 { "@PROGRAM@", (void *) 0 },
7686_LT_EOF
7687 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7688 cat <<\_LT_EOF >> conftest.$ac_ext
7689 {0, (void *) 0}
7690};
7691
7692/* This works around a problem in FreeBSD linker */
7693#ifdef FREEBSD_WORKAROUND
7694static const void *lt_preloaded_setup() {
7695 return lt__PROGRAM__LTX_preloaded_symbols;
7696}
7697#endif
7698
7699#ifdef __cplusplus
7700}
7701#endif
7702_LT_EOF
7703 # Now try linking the two files.
7704 mv conftest.$ac_objext conftstm.$ac_objext
7705 lt_save_LIBS="$LIBS"
7706 lt_save_CFLAGS="$CFLAGS"
7707 LIBS="conftstm.$ac_objext"
7708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 7709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
7710 (eval $ac_link) 2>&5
7711 ac_status=$?
5213506e
RW
7712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
7714 pipe_works=yes
7715 fi
7716 LIBS="$lt_save_LIBS"
7717 CFLAGS="$lt_save_CFLAGS"
7718 else
7719 echo "cannot find nm_test_func in $nlist" >&5
7720 fi
7721 else
7722 echo "cannot find nm_test_var in $nlist" >&5
7723 fi
7724 else
7725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7726 fi
7727 else
7728 echo "$progname: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 fi
d58dead8 7731 rm -rf conftest* conftst*
1cf3d07d
SE
7732
7733 # Do not use the global_symbol_pipe unless it works.
7734 if test "$pipe_works" = yes; then
7735 break
7736 else
7737 lt_cv_sys_global_symbol_pipe=
7738 fi
7739done
7740
7741fi
7742
7743if test -z "$lt_cv_sys_global_symbol_pipe"; then
7744 lt_cv_sys_global_symbol_to_cdecl=
7745fi
7746if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7748$as_echo "failed" >&6; }
1cf3d07d 7749else
5213506e
RW
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7751$as_echo "ok" >&6; }
1cf3d07d
SE
7752fi
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
d58dead8
PG
7768
7769
7770
7771
7772
1cf3d07d
SE
7773
7774
5213506e
RW
7775# Check whether --enable-libtool-lock was given.
7776if test "${enable_libtool_lock+set}" = set; then :
7777 enableval=$enable_libtool_lock;
7778fi
1cf3d07d 7779
1cf3d07d 7780test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6de9cd9a 7781
96b8a615
AJ
7782# Some flags need to be propagated to the compiler or linker for good
7783# libtool support.
7784case $host in
1cf3d07d 7785ia64-*-hpux*)
96b8a615 7786 # Find out which ABI we are using.
1cf3d07d 7787 echo 'int i;' > conftest.$ac_ext
5213506e 7788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 7789 (eval $ac_compile) 2>&5
6de9cd9a 7790 ac_status=$?
5213506e
RW
7791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792 test $ac_status = 0; }; then
96b8a615 7793 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
7794 *ELF-32*)
7795 HPUX_IA64_MODE="32"
7796 ;;
7797 *ELF-64*)
7798 HPUX_IA64_MODE="64"
7799 ;;
96b8a615 7800 esac
96b8a615
AJ
7801 fi
7802 rm -rf conftest*
7803 ;;
1cf3d07d 7804*-*-irix6*)
96b8a615 7805 # Find out which ABI we are using.
43e02a8a 7806 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 7807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 7808 (eval $ac_compile) 2>&5
6de9cd9a 7809 ac_status=$?
5213506e
RW
7810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7811 test $ac_status = 0; }; then
1cf3d07d
SE
7812 if test "$lt_cv_prog_gnu_ld" = yes; then
7813 case `/usr/bin/file conftest.$ac_objext` in
7814 *32-bit*)
7815 LD="${LD-ld} -melf32bsmip"
7816 ;;
7817 *N32*)
7818 LD="${LD-ld} -melf32bmipn32"
7819 ;;
7820 *64-bit*)
7821 LD="${LD-ld} -melf64bmip"
7822 ;;
7823 esac
7824 else
7825 case `/usr/bin/file conftest.$ac_objext` in
7826 *32-bit*)
7827 LD="${LD-ld} -32"
7828 ;;
7829 *N32*)
7830 LD="${LD-ld} -n32"
7831 ;;
7832 *64-bit*)
7833 LD="${LD-ld} -64"
7834 ;;
7835 esac
7836 fi
96b8a615
AJ
7837 fi
7838 rm -rf conftest*
7839 ;;
6de9cd9a 7840
1cf3d07d
SE
7841x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7842s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
96b8a615
AJ
7843 # Find out which ABI we are using.
7844 echo 'int i;' > conftest.$ac_ext
5213506e 7845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
96b8a615 7846 (eval $ac_compile) 2>&5
6de9cd9a 7847 ac_status=$?
5213506e
RW
7848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7849 test $ac_status = 0; }; then
1cf3d07d
SE
7850 case `/usr/bin/file conftest.o` in
7851 *32-bit*)
7852 case $host in
7853 x86_64-*kfreebsd*-gnu)
7854 LD="${LD-ld} -m elf_i386_fbsd"
7855 ;;
7856 x86_64-*linux*)
7857 LD="${LD-ld} -m elf_i386"
7858 ;;
7859 ppc64-*linux*|powerpc64-*linux*)
7860 LD="${LD-ld} -m elf32ppclinux"
7861 ;;
7862 s390x-*linux*)
7863 LD="${LD-ld} -m elf_s390"
7864 ;;
7865 sparc64-*linux*)
7866 LD="${LD-ld} -m elf32_sparc"
7867 ;;
7868 esac
7869 ;;
7870 *64-bit*)
7871 case $host in
7872 x86_64-*kfreebsd*-gnu)
7873 LD="${LD-ld} -m elf_x86_64_fbsd"
7874 ;;
7875 x86_64-*linux*)
7876 LD="${LD-ld} -m elf_x86_64"
7877 ;;
7878 ppc*-*linux*|powerpc*-*linux*)
7879 LD="${LD-ld} -m elf64ppc"
7880 ;;
7881 s390*-*linux*|s390*-*tpf*)
7882 LD="${LD-ld} -m elf64_s390"
7883 ;;
7884 sparc*-*linux*)
7885 LD="${LD-ld} -m elf64_sparc"
7886 ;;
7887 esac
7888 ;;
96b8a615 7889 esac
6de9cd9a 7890 fi
96b8a615
AJ
7891 rm -rf conftest*
7892 ;;
6de9cd9a 7893
96b8a615
AJ
7894*-*-sco3.2v5*)
7895 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7896 SAVE_CFLAGS="$CFLAGS"
7897 CFLAGS="$CFLAGS -belf"
5213506e
RW
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7899$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7900if test "${lt_cv_cc_needs_belf+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
6de9cd9a 7902else
1cf3d07d 7903 ac_ext=c
96b8a615
AJ
7904ac_cpp='$CPP $CPPFLAGS'
7905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 7908
f02d008e 7909 if test x$gcc_no_link = xyes; then
5213506e 7910 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 7911fi
5213506e 7912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6de9cd9a 7913/* end confdefs.h. */
6de9cd9a
DN
7914
7915int
7916main ()
7917{
96b8a615 7918
6de9cd9a
DN
7919 ;
7920 return 0;
7921}
7922_ACEOF
5213506e 7923if ac_fn_c_try_link "$LINENO"; then :
96b8a615 7924 lt_cv_cc_needs_belf=yes
6de9cd9a 7925else
5213506e 7926 lt_cv_cc_needs_belf=no
6de9cd9a 7927fi
5213506e
RW
7928rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
7930 ac_ext=c
7931ac_cpp='$CPP $CPPFLAGS'
7932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935
6de9cd9a 7936fi
5213506e
RW
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7938$as_echo "$lt_cv_cc_needs_belf" >&6; }
96b8a615
AJ
7939 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7940 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7941 CFLAGS="$SAVE_CFLAGS"
7942 fi
7943 ;;
1cf3d07d
SE
7944sparc*-*solaris*)
7945 # Find out which ABI we are using.
7946 echo 'int i;' > conftest.$ac_ext
5213506e 7947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
7948 (eval $ac_compile) 2>&5
7949 ac_status=$?
5213506e
RW
7950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7951 test $ac_status = 0; }; then
1cf3d07d
SE
7952 case `/usr/bin/file conftest.o` in
7953 *64-bit*)
7954 case $lt_cv_prog_gnu_ld in
7955 yes*) LD="${LD-ld} -m elf64_sparc" ;;
d58dead8
PG
7956 *)
7957 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7958 LD="${LD-ld} -64"
7959 fi
7960 ;;
1cf3d07d
SE
7961 esac
7962 ;;
7963 esac
7964 fi
7965 rm -rf conftest*
7966 ;;
96b8a615
AJ
7967esac
7968
1cf3d07d 7969need_locks="$enable_libtool_lock"
96b8a615 7970
d58dead8
PG
7971
7972 case $host_os in
7973 rhapsody* | darwin*)
7974 if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7976set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978$as_echo_n "checking for $ac_word... " >&6; }
7979if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
d58dead8
PG
7981else
7982 if test -n "$DSYMUTIL"; then
7983 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
5213506e
RW
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d58dead8 7992 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
7994 break 2
7995 fi
7996done
5213506e
RW
7997 done
7998IFS=$as_save_IFS
d58dead8
PG
7999
8000fi
8001fi
8002DSYMUTIL=$ac_cv_prog_DSYMUTIL
8003if test -n "$DSYMUTIL"; then
5213506e
RW
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8005$as_echo "$DSYMUTIL" >&6; }
d58dead8 8006else
5213506e
RW
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
d58dead8
PG
8009fi
8010
5213506e 8011
d58dead8
PG
8012fi
8013if test -z "$ac_cv_prog_DSYMUTIL"; then
8014 ac_ct_DSYMUTIL=$DSYMUTIL
8015 # Extract the first word of "dsymutil", so it can be a program name with args.
8016set dummy dsymutil; ac_word=$2
5213506e
RW
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018$as_echo_n "checking for $ac_word... " >&6; }
8019if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8020 $as_echo_n "(cached) " >&6
d58dead8 8021else
21be0a5a
JB
8022 if test -n "$ac_ct_DSYMUTIL"; then
8023 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d58dead8
PG
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
5213506e
RW
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8032 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8034 break 2
8035 fi
8036done
5213506e
RW
8037 done
8038IFS=$as_save_IFS
d58dead8 8039
d58dead8
PG
8040fi
8041fi
21be0a5a
JB
8042ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8043if test -n "$ac_ct_DSYMUTIL"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8045$as_echo "$ac_ct_DSYMUTIL" >&6; }
d58dead8 8046else
5213506e
RW
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
d58dead8
PG
8049fi
8050
21be0a5a
JB
8051 if test "x$ac_ct_DSYMUTIL" = x; then
8052 DSYMUTIL=":"
5213506e
RW
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055yes:)
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058ac_tool_warned=yes ;;
8059esac
21be0a5a 8060 DSYMUTIL=$ac_ct_DSYMUTIL
5213506e 8061 fi
d58dead8 8062else
21be0a5a 8063 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d58dead8
PG
8064fi
8065
8066 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8067 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8068set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8071if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5213506e 8072 $as_echo_n "(cached) " >&6
d58dead8 8073else
21be0a5a
JB
8074 if test -n "$NMEDIT"; then
8075 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d58dead8
PG
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
5213506e
RW
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8084 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8086 break 2
8087 fi
8088done
5213506e
RW
8089 done
8090IFS=$as_save_IFS
d58dead8
PG
8091
8092fi
8093fi
21be0a5a
JB
8094NMEDIT=$ac_cv_prog_NMEDIT
8095if test -n "$NMEDIT"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8097$as_echo "$NMEDIT" >&6; }
d58dead8 8098else
5213506e
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
d58dead8
PG
8101fi
8102
5213506e 8103
d58dead8 8104fi
21be0a5a
JB
8105if test -z "$ac_cv_prog_NMEDIT"; then
8106 ac_ct_NMEDIT=$NMEDIT
8107 # Extract the first word of "nmedit", so it can be a program name with args.
8108set dummy nmedit; ac_word=$2
5213506e
RW
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8111if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5213506e 8112 $as_echo_n "(cached) " >&6
d58dead8 8113else
21be0a5a
JB
8114 if test -n "$ac_ct_NMEDIT"; then
8115 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d58dead8
PG
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
5213506e
RW
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8124 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8126 break 2
8127 fi
8128done
5213506e
RW
8129 done
8130IFS=$as_save_IFS
d58dead8 8131
d58dead8
PG
8132fi
8133fi
21be0a5a
JB
8134ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8135if test -n "$ac_ct_NMEDIT"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8137$as_echo "$ac_ct_NMEDIT" >&6; }
d58dead8 8138else
5213506e
RW
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
d58dead8
PG
8141fi
8142
21be0a5a
JB
8143 if test "x$ac_ct_NMEDIT" = x; then
8144 NMEDIT=":"
5213506e
RW
8145 else
8146 case $cross_compiling:$ac_tool_warned in
8147yes:)
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150ac_tool_warned=yes ;;
8151esac
21be0a5a 8152 NMEDIT=$ac_ct_NMEDIT
5213506e 8153 fi
d58dead8 8154else
21be0a5a 8155 NMEDIT="$ac_cv_prog_NMEDIT"
d58dead8
PG
8156fi
8157
8158 if test -n "$ac_tool_prefix"; then
21be0a5a
JB
8159 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8160set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8163if test "${ac_cv_prog_LIPO+set}" = set; then :
5213506e 8164 $as_echo_n "(cached) " >&6
d58dead8 8165else
21be0a5a
JB
8166 if test -n "$LIPO"; then
8167 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d58dead8
PG
8168else
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
5213506e
RW
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8176 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8178 break 2
8179 fi
8180done
5213506e
RW
8181 done
8182IFS=$as_save_IFS
d58dead8
PG
8183
8184fi
8185fi
21be0a5a
JB
8186LIPO=$ac_cv_prog_LIPO
8187if test -n "$LIPO"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8189$as_echo "$LIPO" >&6; }
d58dead8 8190else
5213506e
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192$as_echo "no" >&6; }
d58dead8
PG
8193fi
8194
5213506e 8195
d58dead8 8196fi
21be0a5a
JB
8197if test -z "$ac_cv_prog_LIPO"; then
8198 ac_ct_LIPO=$LIPO
8199 # Extract the first word of "lipo", so it can be a program name with args.
8200set dummy lipo; ac_word=$2
5213506e
RW
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202$as_echo_n "checking for $ac_word... " >&6; }
21be0a5a 8203if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5213506e 8204 $as_echo_n "(cached) " >&6
d58dead8 8205else
21be0a5a
JB
8206 if test -n "$ac_ct_LIPO"; then
8207 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d58dead8
PG
8208else
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
5213506e
RW
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21be0a5a 8216 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d58dead8
PG
8218 break 2
8219 fi
8220done
5213506e
RW
8221 done
8222IFS=$as_save_IFS
d58dead8 8223
d58dead8
PG
8224fi
8225fi
21be0a5a
JB
8226ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8227if test -n "$ac_ct_LIPO"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8229$as_echo "$ac_ct_LIPO" >&6; }
d58dead8 8230else
5213506e
RW
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232$as_echo "no" >&6; }
d58dead8
PG
8233fi
8234
21be0a5a
JB
8235 if test "x$ac_ct_LIPO" = x; then
8236 LIPO=":"
5213506e
RW
8237 else
8238 case $cross_compiling:$ac_tool_warned in
8239yes:)
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8242ac_tool_warned=yes ;;
8243esac
21be0a5a 8244 LIPO=$ac_ct_LIPO
5213506e 8245 fi
d58dead8 8246else
21be0a5a 8247 LIPO="$ac_cv_prog_LIPO"
d58dead8
PG
8248fi
8249
21be0a5a
JB
8250 if test -n "$ac_tool_prefix"; then
8251 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8252set dummy ${ac_tool_prefix}otool; ac_word=$2
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254$as_echo_n "checking for $ac_word... " >&6; }
8255if test "${ac_cv_prog_OTOOL+set}" = set; then :
5213506e 8256 $as_echo_n "(cached) " >&6
d58dead8 8257else
21be0a5a
JB
8258 if test -n "$OTOOL"; then
8259 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
43e02a8a 8260else
21be0a5a
JB
8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262for as_dir in $PATH
8263do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8268 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272done
8273 done
8274IFS=$as_save_IFS
43e02a8a
RW
8275
8276fi
21be0a5a
JB
8277fi
8278OTOOL=$ac_cv_prog_OTOOL
8279if test -n "$OTOOL"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8281$as_echo "$OTOOL" >&6; }
8282else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284$as_echo "no" >&6; }
8285fi
8286
d58dead8 8287
1cf3d07d 8288fi
21be0a5a
JB
8289if test -z "$ac_cv_prog_OTOOL"; then
8290 ac_ct_OTOOL=$OTOOL
8291 # Extract the first word of "otool", so it can be a program name with args.
8292set dummy otool; ac_word=$2
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294$as_echo_n "checking for $ac_word... " >&6; }
8295if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5213506e 8296 $as_echo_n "(cached) " >&6
1cf3d07d 8297else
21be0a5a
JB
8298 if test -n "$ac_ct_OTOOL"; then
8299 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8300else
8301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302for as_dir in $PATH
1cf3d07d 8303do
21be0a5a
JB
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_ac_ct_OTOOL="otool"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312done
8313 done
8314IFS=$as_save_IFS
6de9cd9a 8315
21be0a5a
JB
8316fi
8317fi
8318ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8319if test -n "$ac_ct_OTOOL"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8321$as_echo "$ac_ct_OTOOL" >&6; }
5213506e 8322else
21be0a5a
JB
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324$as_echo "no" >&6; }
1cf3d07d 8325fi
96b8a615 8326
21be0a5a
JB
8327 if test "x$ac_ct_OTOOL" = x; then
8328 OTOOL=":"
8329 else
8330 case $cross_compiling:$ac_tool_warned in
8331yes:)
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8334ac_tool_warned=yes ;;
8335esac
8336 OTOOL=$ac_ct_OTOOL
8337 fi
1cf3d07d 8338else
21be0a5a 8339 OTOOL="$ac_cv_prog_OTOOL"
1cf3d07d 8340fi
6de9cd9a 8341
21be0a5a
JB
8342 if test -n "$ac_tool_prefix"; then
8343 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8344set dummy ${ac_tool_prefix}otool64; ac_word=$2
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346$as_echo_n "checking for $ac_word... " >&6; }
8347if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8349else
8350 if test -n "$OTOOL64"; then
8351 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8352else
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
1cf3d07d 8364done
21be0a5a
JB
8365 done
8366IFS=$as_save_IFS
8367
8368fi
8369fi
8370OTOOL64=$ac_cv_prog_OTOOL64
8371if test -n "$OTOOL64"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8373$as_echo "$OTOOL64" >&6; }
8374else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
1cf3d07d 8377fi
6de9cd9a 8378
96b8a615 8379
1cf3d07d 8380fi
21be0a5a
JB
8381if test -z "$ac_cv_prog_OTOOL64"; then
8382 ac_ct_OTOOL64=$OTOOL64
8383 # Extract the first word of "otool64", so it can be a program name with args.
8384set dummy otool64; ac_word=$2
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386$as_echo_n "checking for $ac_word... " >&6; }
8387if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
96b8a615 8389else
21be0a5a
JB
8390 if test -n "$ac_ct_OTOOL64"; then
8391 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8392else
8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
96b8a615 8395do
21be0a5a
JB
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_prog_ac_ct_OTOOL64="otool64"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404done
8405 done
8406IFS=$as_save_IFS
96b8a615 8407
21be0a5a
JB
8408fi
8409fi
8410ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8411if test -n "$ac_ct_OTOOL64"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8413$as_echo "$ac_ct_OTOOL64" >&6; }
5213506e 8414else
21be0a5a
JB
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
96b8a615
AJ
8417fi
8418
21be0a5a
JB
8419 if test "x$ac_ct_OTOOL64" = x; then
8420 OTOOL64=":"
8421 else
8422 case $cross_compiling:$ac_tool_warned in
8423yes:)
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8426ac_tool_warned=yes ;;
8427esac
8428 OTOOL64=$ac_ct_OTOOL64
8429 fi
6de9cd9a 8430else
21be0a5a 8431 OTOOL64="$ac_cv_prog_OTOOL64"
6de9cd9a 8432fi
6de9cd9a 8433
5213506e 8434
1cf3d07d 8435
1cf3d07d
SE
8436
8437
6de9cd9a 8438
1cf3d07d 8439
6de9cd9a 8440
1cf3d07d 8441
5213506e 8442
6de9cd9a 8443
e87045f3 8444
15e92535 8445
5213506e 8446
15e92535 8447
15e92535 8448
21be0a5a
JB
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8461$as_echo_n "checking for -single_module linker flag... " >&6; }
8462if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
1cf3d07d 8464else
21be0a5a
JB
8465 lt_cv_apple_cc_single_mod=no
8466 if test -z "${LT_MULTI_MODULE}"; then
8467 # By default we will add the -single_module flag. You can override
8468 # by either setting the environment variable LT_MULTI_MODULE
8469 # non-empty at configure time, or by adding -multi_module to the
8470 # link flags.
8471 rm -rf libconftest.dylib*
8472 echo "int foo(void){return 1;}" > conftest.c
8473 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8474-dynamiclib -Wl,-single_module conftest.c" >&5
8475 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8476 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8477 _lt_result=$?
8478 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8479 lt_cv_apple_cc_single_mod=yes
8480 else
8481 cat conftest.err >&5
8482 fi
8483 rm -rf libconftest.dylib*
8484 rm -f conftest.*
8485 fi
8486fi
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8488$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8490$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8491if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8493else
8494 lt_cv_ld_exported_symbols_list=no
8495 save_LDFLAGS=$LDFLAGS
8496 echo "_main" > conftest.sym
8497 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8498 if test x$gcc_no_link = xyes; then
8499 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8500fi
8501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 8502/* end confdefs.h. */
15e92535 8503
1cf3d07d
SE
8504int
8505main ()
8506{
21be0a5a
JB
8507
8508 ;
5213506e 8509 return 0;
1cf3d07d 8510}
15e92535 8511_ACEOF
21be0a5a
JB
8512if ac_fn_c_try_link "$LINENO"; then :
8513 lt_cv_ld_exported_symbols_list=yes
5213506e 8514else
21be0a5a 8515 lt_cv_ld_exported_symbols_list=no
1cf3d07d 8516fi
21be0a5a
JB
8517rm -f core conftest.err conftest.$ac_objext \
8518 conftest$ac_exeext conftest.$ac_ext
8519 LDFLAGS="$save_LDFLAGS"
15e92535
FXC
8520
8521fi
21be0a5a
JB
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8523$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8525$as_echo_n "checking for -force_load linker flag... " >&6; }
8526if test "${lt_cv_ld_force_load+set}" = set; then :
8527 $as_echo_n "(cached) " >&6
8528else
8529 lt_cv_ld_force_load=no
8530 cat > conftest.c << _LT_EOF
8531int forced_loaded() { return 2;}
8532_LT_EOF
8533 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8534 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8535 echo "$AR cru libconftest.a conftest.o" >&5
8536 $AR cru libconftest.a conftest.o 2>&5
8537 cat > conftest.c << _LT_EOF
8538int main() { return 0;}
8539_LT_EOF
8540 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8541 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8542 _lt_result=$?
8543 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8544 lt_cv_ld_force_load=yes
8545 else
8546 cat conftest.err >&5
8547 fi
8548 rm -f conftest.err libconftest.a conftest conftest.c
8549 rm -rf conftest.dSYM
1cf3d07d
SE
8550
8551fi
21be0a5a
JB
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8553$as_echo "$lt_cv_ld_force_load" >&6; }
8554 case $host_os in
8555 rhapsody* | darwin1.[012])
8556 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8557 darwin1.*)
8558 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8559 darwin*) # darwin 5.x on
8560 # if running on 10.5 or later, the deployment target defaults
8561 # to the OS version, if on x86, and 10.4, the deployment
8562 # target defaults to 10.4. Don't you love it?
8563 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8564 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8565 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8566 10.[012]*)
8567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8568 10.*)
8569 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8570 esac
8571 ;;
8572 esac
8573 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8574 _lt_dar_single_mod='$single_module'
8575 fi
8576 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8577 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8578 else
8579 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8580 fi
8581 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8582 _lt_dsymutil='~$DSYMUTIL $lib || :'
8583 else
8584 _lt_dsymutil=
8585 fi
8586 ;;
8587 esac
1cf3d07d 8588
1cf3d07d 8589for ac_header in dlfcn.h
5213506e
RW
8590do :
8591 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8592"
8593if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 8594 cat >>confdefs.h <<_ACEOF
5213506e 8595#define HAVE_DLFCN_H 1
9cdc381b 8596_ACEOF
9cdc381b 8597
1cf3d07d
SE
8598fi
8599
8600done
8601
8602
8603
43e02a8a
RW
8604
8605
d58dead8
PG
8606# Set options
8607
8608
8609
8610
8611 enable_win32_dll=no
8612
8613
5213506e
RW
8614 # Check whether --enable-shared was given.
8615if test "${enable_shared+set}" = set; then :
8616 enableval=$enable_shared; p=${PACKAGE-default}
d58dead8
PG
8617 case $enableval in
8618 yes) enable_shared=yes ;;
8619 no) enable_shared=no ;;
8620 *)
8621 enable_shared=no
8622 # Look at the argument we got. We use all the common list separators.
8623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8624 for pkg in $enableval; do
8625 IFS="$lt_save_ifs"
8626 if test "X$pkg" = "X$p"; then
8627 enable_shared=yes
8628 fi
8629 done
8630 IFS="$lt_save_ifs"
8631 ;;
8632 esac
8633else
8634 enable_shared=yes
5213506e
RW
8635fi
8636
d58dead8
PG
8637
8638
8639
8640
8641
8642
8643
8644
5213506e
RW
8645 # Check whether --enable-static was given.
8646if test "${enable_static+set}" = set; then :
8647 enableval=$enable_static; p=${PACKAGE-default}
d58dead8
PG
8648 case $enableval in
8649 yes) enable_static=yes ;;
8650 no) enable_static=no ;;
8651 *)
8652 enable_static=no
8653 # Look at the argument we got. We use all the common list separators.
8654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8655 for pkg in $enableval; do
8656 IFS="$lt_save_ifs"
8657 if test "X$pkg" = "X$p"; then
8658 enable_static=yes
8659 fi
8660 done
8661 IFS="$lt_save_ifs"
8662 ;;
8663 esac
8664else
8665 enable_static=yes
5213506e
RW
8666fi
8667
d58dead8
PG
8668
8669
8670
8671
8672
8673
8674
8675
8676
5213506e
RW
8677# Check whether --with-pic was given.
8678if test "${with_pic+set}" = set; then :
8679 withval=$with_pic; pic_mode="$withval"
d58dead8
PG
8680else
8681 pic_mode=default
5213506e
RW
8682fi
8683
d58dead8
PG
8684
8685test -z "$pic_mode" && pic_mode=default
8686
8687
8688
8689
8690
8691
8692
5213506e
RW
8693 # Check whether --enable-fast-install was given.
8694if test "${enable_fast_install+set}" = set; then :
8695 enableval=$enable_fast_install; p=${PACKAGE-default}
d58dead8
PG
8696 case $enableval in
8697 yes) enable_fast_install=yes ;;
8698 no) enable_fast_install=no ;;
8699 *)
8700 enable_fast_install=no
8701 # Look at the argument we got. We use all the common list separators.
8702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8703 for pkg in $enableval; do
8704 IFS="$lt_save_ifs"
8705 if test "X$pkg" = "X$p"; then
8706 enable_fast_install=yes
8707 fi
8708 done
8709 IFS="$lt_save_ifs"
8710 ;;
8711 esac
8712else
8713 enable_fast_install=yes
5213506e
RW
8714fi
8715
d58dead8
PG
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
1cf3d07d
SE
8726# This can be used to rebuild libtool when needed
8727LIBTOOL_DEPS="$ltmain"
8728
8729# Always use our own libtool.
8730LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
43e02a8a 8754
1cf3d07d
SE
8755
8756
8757test -z "$LN_S" && LN_S="ln -s"
8758
8759
8760
8761
8762
9cdc381b 8763
1cf3d07d
SE
8764
8765
8766
8767
8768
8769
8770
8771
8772if test -n "${ZSH_VERSION+set}" ; then
8773 setopt NO_GLOB_SUBST
9cdc381b 8774fi
9cdc381b 8775
5213506e
RW
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8777$as_echo_n "checking for objdir... " >&6; }
8778if test "${lt_cv_objdir+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
9cdc381b 8780else
1cf3d07d
SE
8781 rm -f .libs 2>/dev/null
8782mkdir .libs 2>/dev/null
8783if test -d .libs; then
8784 lt_cv_objdir=.libs
8785else
8786 # MS-DOS does not allow filenames that begin with a dot.
8787 lt_cv_objdir=_libs
9cdc381b 8788fi
1cf3d07d 8789rmdir .libs 2>/dev/null
9cdc381b 8790fi
5213506e
RW
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8792$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
8793objdir=$lt_cv_objdir
8794
8795
8796
8797
9cdc381b
BD
8798
8799cat >>confdefs.h <<_ACEOF
1cf3d07d 8800#define LT_OBJDIR "$lt_cv_objdir/"
9cdc381b
BD
8801_ACEOF
8802
1cf3d07d
SE
8803
8804
8805
1cf3d07d
SE
8806case $host_os in
8807aix3*)
8808 # AIX sometimes has problems with the GCC collect2 program. For some
8809 # reason, if we set the COLLECT_NAMES environment variable, the problems
8810 # vanish in a puff of smoke.
8811 if test "X${COLLECT_NAMES+set}" != Xset; then
8812 COLLECT_NAMES=
8813 export COLLECT_NAMES
8814 fi
8815 ;;
8816esac
8817
1cf3d07d
SE
8818# Global variables:
8819ofile=libtool
8820can_build_shared=yes
8821
8822# All known linkers require a `.a' archive for static linking (except MSVC,
8823# which needs '.lib').
8824libext=a
8825
8826with_gnu_ld="$lt_cv_prog_gnu_ld"
8827
8828old_CC="$CC"
8829old_CFLAGS="$CFLAGS"
8830
8831# Set sane defaults for various variables
8832test -z "$CC" && CC=cc
8833test -z "$LTCC" && LTCC=$CC
8834test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8835test -z "$LD" && LD=ld
8836test -z "$ac_objext" && ac_objext=o
8837
8838for cc_temp in $compiler""; do
8839 case $cc_temp in
8840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8842 \-*) ;;
8843 *) break;;
8844 esac
8845done
43e02a8a 8846cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
8847
8848
8849# Only perform the check for file, if the check method requires it
8850test -z "$MAGIC_CMD" && MAGIC_CMD=file
8851case $deplibs_check_method in
8852file_magic*)
8853 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8855$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8856if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
9cdc381b 8858else
1cf3d07d
SE
8859 case $MAGIC_CMD in
8860[\\/*] | ?:[\\/]*)
8861 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8862 ;;
8863*)
8864 lt_save_MAGIC_CMD="$MAGIC_CMD"
8865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8866 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8867 for ac_dir in $ac_dummy; do
8868 IFS="$lt_save_ifs"
8869 test -z "$ac_dir" && ac_dir=.
8870 if test -f $ac_dir/${ac_tool_prefix}file; then
8871 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8872 if test -n "$file_magic_test_file"; then
8873 case $deplibs_check_method in
8874 "file_magic "*)
8875 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8877 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8878 $EGREP "$file_magic_regex" > /dev/null; then
8879 :
8880 else
8881 cat <<_LT_EOF 1>&2
9cdc381b 8882
1cf3d07d
SE
8883*** Warning: the command libtool uses to detect shared libraries,
8884*** $file_magic_cmd, produces output that libtool cannot recognize.
8885*** The result is that libtool may fail to recognize shared libraries
8886*** as such. This will affect the creation of libtool libraries that
8887*** depend on shared libraries, but programs linked with such libtool
8888*** libraries will work regardless of this problem. Nevertheless, you
8889*** may want to report the problem to your system manager and/or to
8890*** bug-libtool@gnu.org
8891
8892_LT_EOF
8893 fi ;;
8894 esac
8895 fi
8896 break
8897 fi
8898 done
8899 IFS="$lt_save_ifs"
8900 MAGIC_CMD="$lt_save_MAGIC_CMD"
8901 ;;
8902esac
8903fi
8904
8905MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8906if test -n "$MAGIC_CMD"; then
5213506e
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8908$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8909else
5213506e
RW
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
1cf3d07d
SE
8912fi
8913
8914
8915
8916
8917
8918if test -z "$lt_cv_path_MAGIC_CMD"; then
8919 if test -n "$ac_tool_prefix"; then
5213506e
RW
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8921$as_echo_n "checking for file... " >&6; }
8922if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8924else
8925 case $MAGIC_CMD in
8926[\\/*] | ?:[\\/]*)
8927 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8928 ;;
8929*)
8930 lt_save_MAGIC_CMD="$MAGIC_CMD"
8931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8933 for ac_dir in $ac_dummy; do
8934 IFS="$lt_save_ifs"
8935 test -z "$ac_dir" && ac_dir=.
8936 if test -f $ac_dir/file; then
8937 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8938 if test -n "$file_magic_test_file"; then
8939 case $deplibs_check_method in
8940 "file_magic "*)
8941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8944 $EGREP "$file_magic_regex" > /dev/null; then
8945 :
8946 else
8947 cat <<_LT_EOF 1>&2
8948
8949*** Warning: the command libtool uses to detect shared libraries,
8950*** $file_magic_cmd, produces output that libtool cannot recognize.
8951*** The result is that libtool may fail to recognize shared libraries
8952*** as such. This will affect the creation of libtool libraries that
8953*** depend on shared libraries, but programs linked with such libtool
8954*** libraries will work regardless of this problem. Nevertheless, you
8955*** may want to report the problem to your system manager and/or to
8956*** bug-libtool@gnu.org
8957
8958_LT_EOF
8959 fi ;;
8960 esac
8961 fi
8962 break
8963 fi
8964 done
8965 IFS="$lt_save_ifs"
8966 MAGIC_CMD="$lt_save_MAGIC_CMD"
8967 ;;
8968esac
8969fi
8970
8971MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8972if test -n "$MAGIC_CMD"; then
5213506e
RW
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8974$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8975else
5213506e
RW
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977$as_echo "no" >&6; }
1cf3d07d
SE
8978fi
8979
8980
8981 else
8982 MAGIC_CMD=:
8983 fi
8984fi
8985
8986 fi
8987 ;;
8988esac
8989
8990# Use C for the default configuration in the libtool script
8991
8992lt_save_CC="$CC"
8993ac_ext=c
8994ac_cpp='$CPP $CPPFLAGS'
8995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998
8999
9000# Source file extension for C test sources.
9001ac_ext=c
9002
9003# Object file extension for compiled C test sources.
9004objext=o
9005objext=$objext
9006
9007# Code to be used in simple compile tests
9008lt_simple_compile_test_code="int some_variable = 0;"
9009
9010# Code to be used in simple link tests
9011lt_simple_link_test_code='int main(){return(0);}'
9012
9013
9014
9015
9016
9017
9018
9019# If no C compiler was specified, use CC.
9020LTCC=${LTCC-"$CC"}
9021
9022# If no C compiler flags were specified, use CFLAGS.
9023LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9024
9025# Allow CC to be a program name with arguments.
9026compiler=$CC
9027
9028# Save the default compiler, since it gets overwritten when the other
9029# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9030compiler_DEFAULT=$CC
9031
9032# save warnings/boilerplate of simple test code
9033ac_outfile=conftest.$ac_objext
9034echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9035eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9036_lt_compiler_boilerplate=`cat conftest.err`
9037$RM conftest*
9038
9039ac_outfile=conftest.$ac_objext
9040echo "$lt_simple_link_test_code" >conftest.$ac_ext
9041eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9042_lt_linker_boilerplate=`cat conftest.err`
d58dead8 9043$RM -r conftest*
1cf3d07d
SE
9044
9045
9046## CAVEAT EMPTOR:
9047## There is no encapsulation within the following macros, do not change
9048## the running order or otherwise move them around unless you know exactly
9049## what you are doing...
9050if test -n "$compiler"; then
9051
9052lt_prog_compiler_no_builtin_flag=
9053
9054if test "$GCC" = yes; then
43e02a8a
RW
9055 case $cc_basename in
9056 nvcc*)
9057 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9058 *)
9059 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9060 esac
1cf3d07d 9061
5213506e
RW
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9063$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9064if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9065 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9066else
9067 lt_cv_prog_compiler_rtti_exceptions=no
9068 ac_outfile=conftest.$ac_objext
9069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9070 lt_compiler_flag="-fno-rtti -fno-exceptions"
9071 # Insert the option either (1) after the last *FLAGS variable, or
9072 # (2) before a word containing "conftest.", or (3) at the end.
9073 # Note that $ac_compile itself does not contain backslashes and begins
9074 # with a dollar sign (not a hyphen), so the echo should work correctly.
9075 # The option is referenced via a variable to avoid confusing sed.
9076 lt_compile=`echo "$ac_compile" | $SED \
9077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9079 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9081 (eval "$lt_compile" 2>conftest.err)
9082 ac_status=$?
9083 cat conftest.err >&5
43e02a8a 9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9085 if (exit $ac_status) && test -s "$ac_outfile"; then
9086 # The compiler can only warn and ignore the option if not recognized
9087 # So say no if there are warnings other than the usual output.
43e02a8a 9088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9091 lt_cv_prog_compiler_rtti_exceptions=yes
9092 fi
9093 fi
9094 $RM conftest*
9095
9096fi
5213506e
RW
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9098$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
9099
9100if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9101 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9102else
9103 :
9104fi
9105
9106fi
9107
9108
9109
9110
9111
9112
9113 lt_prog_compiler_wl=
9114lt_prog_compiler_pic=
9115lt_prog_compiler_static=
9116
5213506e
RW
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9118$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
9119
9120 if test "$GCC" = yes; then
9121 lt_prog_compiler_wl='-Wl,'
9122 lt_prog_compiler_static='-static'
9123
9124 case $host_os in
9125 aix*)
9126 # All AIX code is PIC.
9127 if test "$host_cpu" = ia64; then
9128 # AIX 5 now supports IA64 processor
9129 lt_prog_compiler_static='-Bstatic'
9130 fi
9131 ;;
9132
9133 amigaos*)
d58dead8
PG
9134 case $host_cpu in
9135 powerpc)
9136 # see comment about AmigaOS4 .so support
9137 lt_prog_compiler_pic='-fPIC'
9138 ;;
9139 m68k)
9140 # FIXME: we need at least 68020 code to build shared libraries, but
9141 # adding the `-m68020' flag to GCC prevents building anything better,
9142 # like `-m68040'.
9143 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9144 ;;
9145 esac
1cf3d07d
SE
9146 ;;
9147
9148 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9149 # PIC is the default for these OSes.
9150 ;;
9151
d58dead8 9152 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9153 # This hack is so that the source file can tell whether it is being
9154 # built for inclusion in a dll (and should export symbols for example).
9155 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9156 # (--disable-auto-import) libraries
9157 lt_prog_compiler_pic='-DDLL_EXPORT'
9158 ;;
9159
9160 darwin* | rhapsody*)
9161 # PIC is the default on this platform
9162 # Common symbols not allowed in MH_DYLIB files
9163 lt_prog_compiler_pic='-fno-common'
9164 ;;
9165
43e02a8a
RW
9166 haiku*)
9167 # PIC is the default for Haiku.
9168 # The "-static" flag exists, but is broken.
9169 lt_prog_compiler_static=
9170 ;;
9171
1cf3d07d 9172 hpux*)
d58dead8
PG
9173 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9174 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9175 # sets the default TLS model and affects inlining.
1cf3d07d 9176 case $host_cpu in
d58dead8 9177 hppa*64*)
1cf3d07d
SE
9178 # +Z the default
9179 ;;
9180 *)
9181 lt_prog_compiler_pic='-fPIC'
9182 ;;
9183 esac
9184 ;;
9185
9186 interix[3-9]*)
9187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9188 # Instead, we relocate shared libraries at runtime.
9189 ;;
9190
9191 msdosdjgpp*)
9192 # Just because we use GCC doesn't mean we suddenly get shared libraries
9193 # on systems that don't support them.
9194 lt_prog_compiler_can_build_shared=no
9195 enable_shared=no
9196 ;;
9197
9198 *nto* | *qnx*)
9199 # QNX uses GNU C++, but need to define -shared option too, otherwise
9200 # it will coredump.
9201 lt_prog_compiler_pic='-fPIC -shared'
9202 ;;
9203
9204 sysv4*MP*)
9205 if test -d /usr/nec; then
9206 lt_prog_compiler_pic=-Kconform_pic
9207 fi
9208 ;;
9209
9210 *)
9211 lt_prog_compiler_pic='-fPIC'
9212 ;;
9213 esac
43e02a8a
RW
9214
9215 case $cc_basename in
9216 nvcc*) # Cuda Compiler Driver 2.2
9217 lt_prog_compiler_wl='-Xlinker '
9218 lt_prog_compiler_pic='-Xcompiler -fPIC'
9219 ;;
9220 esac
1cf3d07d
SE
9221 else
9222 # PORTME Check for flag to pass linker flags through the system compiler.
9223 case $host_os in
9224 aix*)
9225 lt_prog_compiler_wl='-Wl,'
9226 if test "$host_cpu" = ia64; then
9227 # AIX 5 now supports IA64 processor
9228 lt_prog_compiler_static='-Bstatic'
9229 else
9230 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9231 fi
9232 ;;
1cf3d07d 9233
d58dead8 9234 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
9235 # This hack is so that the source file can tell whether it is being
9236 # built for inclusion in a dll (and should export symbols for example).
9237 lt_prog_compiler_pic='-DDLL_EXPORT'
9238 ;;
9239
9240 hpux9* | hpux10* | hpux11*)
9241 lt_prog_compiler_wl='-Wl,'
9242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9243 # not for PA HP-UX.
9244 case $host_cpu in
9245 hppa*64*|ia64*)
9246 # +Z the default
9247 ;;
9248 *)
9249 lt_prog_compiler_pic='+Z'
9250 ;;
9251 esac
9252 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9253 lt_prog_compiler_static='${wl}-a ${wl}archive'
9254 ;;
9255
9256 irix5* | irix6* | nonstopux*)
9257 lt_prog_compiler_wl='-Wl,'
9258 # PIC (with -KPIC) is the default.
9259 lt_prog_compiler_static='-non_shared'
9260 ;;
9261
7a9d3fe8 9262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 9263 case $cc_basename in
d58dead8
PG
9264 # old Intel for x86_64 which still supported -KPIC.
9265 ecc*)
1cf3d07d
SE
9266 lt_prog_compiler_wl='-Wl,'
9267 lt_prog_compiler_pic='-KPIC'
9268 lt_prog_compiler_static='-static'
9269 ;;
d58dead8
PG
9270 # icc used to be incompatible with GCC.
9271 # ICC 10 doesn't accept -KPIC any more.
9272 icc* | ifort*)
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='-fPIC'
9275 lt_prog_compiler_static='-static'
9276 ;;
9277 # Lahey Fortran 8.1.
9278 lf95*)
9279 lt_prog_compiler_wl='-Wl,'
9280 lt_prog_compiler_pic='--shared'
9281 lt_prog_compiler_static='--static'
9282 ;;
43e02a8a 9283 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
9284 # Portland Group compilers (*not* the Pentium gcc compiler,
9285 # which looks to be a dead project)
9286 lt_prog_compiler_wl='-Wl,'
9287 lt_prog_compiler_pic='-fpic'
9288 lt_prog_compiler_static='-Bstatic'
9289 ;;
9290 ccc*)
9291 lt_prog_compiler_wl='-Wl,'
9292 # All Alpha code is PIC.
9293 lt_prog_compiler_static='-non_shared'
9294 ;;
43e02a8a
RW
9295 xl* | bgxl* | bgf* | mpixl*)
9296 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
9297 lt_prog_compiler_wl='-Wl,'
9298 lt_prog_compiler_pic='-qpic'
9299 lt_prog_compiler_static='-qstaticlink'
9300 ;;
1cf3d07d
SE
9301 *)
9302 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9303 *Sun\ F* | *Sun*Fortran*)
9304 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
9305 lt_prog_compiler_pic='-KPIC'
9306 lt_prog_compiler_static='-Bstatic'
43e02a8a 9307 lt_prog_compiler_wl=''
1cf3d07d 9308 ;;
43e02a8a
RW
9309 *Sun\ C*)
9310 # Sun C 5.9
1cf3d07d
SE
9311 lt_prog_compiler_pic='-KPIC'
9312 lt_prog_compiler_static='-Bstatic'
43e02a8a 9313 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
9314 ;;
9315 esac
9316 ;;
9317 esac
9318 ;;
9319
9320 newsos6)
9321 lt_prog_compiler_pic='-KPIC'
9322 lt_prog_compiler_static='-Bstatic'
9323 ;;
9324
9325 *nto* | *qnx*)
9326 # QNX uses GNU C++, but need to define -shared option too, otherwise
9327 # it will coredump.
9328 lt_prog_compiler_pic='-fPIC -shared'
9329 ;;
9330
9331 osf3* | osf4* | osf5*)
9332 lt_prog_compiler_wl='-Wl,'
9333 # All OSF/1 code is PIC.
9334 lt_prog_compiler_static='-non_shared'
9335 ;;
9336
9337 rdos*)
9338 lt_prog_compiler_static='-non_shared'
9339 ;;
9340
9341 solaris*)
9342 lt_prog_compiler_pic='-KPIC'
9343 lt_prog_compiler_static='-Bstatic'
9344 case $cc_basename in
9345 f77* | f90* | f95*)
9346 lt_prog_compiler_wl='-Qoption ld ';;
9347 *)
9348 lt_prog_compiler_wl='-Wl,';;
9349 esac
9350 ;;
9351
9352 sunos4*)
9353 lt_prog_compiler_wl='-Qoption ld '
9354 lt_prog_compiler_pic='-PIC'
9355 lt_prog_compiler_static='-Bstatic'
9356 ;;
9357
9358 sysv4 | sysv4.2uw2* | sysv4.3*)
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-Bstatic'
9362 ;;
9363
9364 sysv4*MP*)
9365 if test -d /usr/nec ;then
9366 lt_prog_compiler_pic='-Kconform_pic'
9367 lt_prog_compiler_static='-Bstatic'
9368 fi
9369 ;;
9370
9371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9372 lt_prog_compiler_wl='-Wl,'
9373 lt_prog_compiler_pic='-KPIC'
9374 lt_prog_compiler_static='-Bstatic'
9375 ;;
9376
9377 unicos*)
9378 lt_prog_compiler_wl='-Wl,'
9379 lt_prog_compiler_can_build_shared=no
9380 ;;
9381
9382 uts4*)
9383 lt_prog_compiler_pic='-pic'
9384 lt_prog_compiler_static='-Bstatic'
9385 ;;
9386
9387 *)
9388 lt_prog_compiler_can_build_shared=no
9389 ;;
9390 esac
9391 fi
9392
9393case $host_os in
9394 # For platforms which do not support PIC, -DPIC is meaningless:
9395 *djgpp*)
9396 lt_prog_compiler_pic=
9397 ;;
9398 *)
9399 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9400 ;;
9401esac
5213506e
RW
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9403$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
9404
9405
9406
9407
9408
9409
9410#
9411# Check to make sure the PIC flag actually works.
9412#
9413if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9415$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9416if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
1cf3d07d 9418else
d58dead8 9419 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
9420 ac_outfile=conftest.$ac_objext
9421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9423 # Insert the option either (1) after the last *FLAGS variable, or
9424 # (2) before a word containing "conftest.", or (3) at the end.
9425 # Note that $ac_compile itself does not contain backslashes and begins
9426 # with a dollar sign (not a hyphen), so the echo should work correctly.
9427 # The option is referenced via a variable to avoid confusing sed.
9428 lt_compile=`echo "$ac_compile" | $SED \
9429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9431 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9433 (eval "$lt_compile" 2>conftest.err)
9434 ac_status=$?
9435 cat conftest.err >&5
43e02a8a 9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9437 if (exit $ac_status) && test -s "$ac_outfile"; then
9438 # The compiler can only warn and ignore the option if not recognized
9439 # So say no if there are warnings other than the usual output.
43e02a8a 9440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
9441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9443 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
9444 fi
9445 fi
9446 $RM conftest*
9447
9448fi
5213506e
RW
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9450$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 9451
d58dead8 9452if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
9453 case $lt_prog_compiler_pic in
9454 "" | " "*) ;;
9455 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9456 esac
9457else
9458 lt_prog_compiler_pic=
9459 lt_prog_compiler_can_build_shared=no
9460fi
9461
9462fi
9463
9464
9465
9466
9467
9468
9469#
9470# Check to make sure the static flag actually works.
9471#
9472wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9474$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9475if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9476 $as_echo_n "(cached) " >&6
1cf3d07d 9477else
d58dead8 9478 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
9479 save_LDFLAGS="$LDFLAGS"
9480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9481 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9483 # The linker can only warn and ignore the option if not recognized
9484 # So say no if there are warnings
9485 if test -s conftest.err; then
9486 # Append any errors to the config.log.
9487 cat conftest.err 1>&5
43e02a8a 9488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
9489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9490 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 9491 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9492 fi
9493 else
d58dead8 9494 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
9495 fi
9496 fi
d58dead8 9497 $RM -r conftest*
1cf3d07d
SE
9498 LDFLAGS="$save_LDFLAGS"
9499
9500fi
5213506e
RW
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9502$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 9503
d58dead8 9504if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
9505 :
9506else
9507 lt_prog_compiler_static=
9508fi
9509
9510
9511
9512
9513
9514
9515
5213506e
RW
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9517$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9518if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9519 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9520else
9521 lt_cv_prog_compiler_c_o=no
9522 $RM -r conftest 2>/dev/null
9523 mkdir conftest
9524 cd conftest
9525 mkdir out
9526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9527
9528 lt_compiler_flag="-o out/conftest2.$ac_objext"
9529 # Insert the option either (1) after the last *FLAGS variable, or
9530 # (2) before a word containing "conftest.", or (3) at the end.
9531 # Note that $ac_compile itself does not contain backslashes and begins
9532 # with a dollar sign (not a hyphen), so the echo should work correctly.
9533 lt_compile=`echo "$ac_compile" | $SED \
9534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9536 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9538 (eval "$lt_compile" 2>out/conftest.err)
9539 ac_status=$?
9540 cat out/conftest.err >&5
43e02a8a 9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9543 then
9544 # The compiler can only warn and ignore the option if not recognized
9545 # So say no if there are warnings
43e02a8a 9546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9549 lt_cv_prog_compiler_c_o=yes
9550 fi
9551 fi
9552 chmod u+w . 2>&5
9553 $RM conftest*
9554 # SGI C++ compiler will create directory out/ii_files/ for
9555 # template instantiation
9556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9557 $RM out/* && rmdir out
9558 cd ..
9559 $RM -r conftest
9560 $RM conftest*
9561
9562fi
5213506e
RW
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9564$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9565
9566
9567
9568
9569
9570
5213506e
RW
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9572$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9573if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
1cf3d07d
SE
9575else
9576 lt_cv_prog_compiler_c_o=no
9577 $RM -r conftest 2>/dev/null
9578 mkdir conftest
9579 cd conftest
9580 mkdir out
9581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9582
9583 lt_compiler_flag="-o out/conftest2.$ac_objext"
9584 # Insert the option either (1) after the last *FLAGS variable, or
9585 # (2) before a word containing "conftest.", or (3) at the end.
9586 # Note that $ac_compile itself does not contain backslashes and begins
9587 # with a dollar sign (not a hyphen), so the echo should work correctly.
9588 lt_compile=`echo "$ac_compile" | $SED \
9589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9591 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
9593 (eval "$lt_compile" 2>out/conftest.err)
9594 ac_status=$?
9595 cat out/conftest.err >&5
43e02a8a 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9598 then
9599 # The compiler can only warn and ignore the option if not recognized
9600 # So say no if there are warnings
43e02a8a 9601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
9602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9604 lt_cv_prog_compiler_c_o=yes
9605 fi
9606 fi
9607 chmod u+w . 2>&5
9608 $RM conftest*
9609 # SGI C++ compiler will create directory out/ii_files/ for
9610 # template instantiation
9611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9612 $RM out/* && rmdir out
9613 cd ..
9614 $RM -r conftest
9615 $RM conftest*
9616
9617fi
5213506e
RW
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9619$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
9620
9621
9622
9623
9624hard_links="nottested"
9625if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9626 # do not overwrite the value of need_locks provided by the user
5213506e
RW
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9628$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
9629 hard_links=yes
9630 $RM conftest*
9631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9632 touch conftest.a
9633 ln conftest.a conftest.b 2>&5 || hard_links=no
9634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9636$as_echo "$hard_links" >&6; }
1cf3d07d 9637 if test "$hard_links" = no; then
5213506e
RW
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9639$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
9640 need_locks=warn
9641 fi
9642else
9643 need_locks=no
9644fi
9645
9646
9647
9648
9649
9650
5213506e
RW
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9652$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
9653
9654 runpath_var=
9655 allow_undefined_flag=
9656 always_export_symbols=no
9657 archive_cmds=
9658 archive_expsym_cmds=
9659 compiler_needs_object=no
9660 enable_shared_with_static_runtimes=no
9661 export_dynamic_flag_spec=
9662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9663 hardcode_automatic=no
9664 hardcode_direct=no
9665 hardcode_direct_absolute=no
9666 hardcode_libdir_flag_spec=
9667 hardcode_libdir_flag_spec_ld=
9668 hardcode_libdir_separator=
9669 hardcode_minus_L=no
9670 hardcode_shlibpath_var=unsupported
9671 inherit_rpath=no
9672 link_all_deplibs=unknown
9673 module_cmds=
9674 module_expsym_cmds=
9675 old_archive_from_new_cmds=
9676 old_archive_from_expsyms_cmds=
9677 thread_safe_flag_spec=
9678 whole_archive_flag_spec=
9679 # include_expsyms should be a list of space-separated symbols to be *always*
9680 # included in the symbol list
9681 include_expsyms=
9682 # exclude_expsyms can be an extended regexp of symbols to exclude
9683 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9685 # as well as any symbol that contains `d'.
d58dead8 9686 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
9687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9688 # platforms (ab)use it in PIC code, but their linkers get confused if
9689 # the symbol is explicitly referenced. Since portable code cannot
9690 # rely on this symbol name, it's probably fine to never include it in
9691 # preloaded symbol tables.
d58dead8 9692 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
9693 extract_expsyms_cmds=
9694
9695 case $host_os in
d58dead8 9696 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9698 # When not using gcc, we currently assume that we are using
9699 # Microsoft Visual C++.
9700 if test "$GCC" != yes; then
9701 with_gnu_ld=no
9702 fi
9703 ;;
9704 interix*)
9705 # we just hope/assume this is gcc and not c89 (= MSVC++)
9706 with_gnu_ld=yes
9707 ;;
9708 openbsd*)
9709 with_gnu_ld=no
9710 ;;
9711 esac
9712
9713 ld_shlibs=yes
43e02a8a
RW
9714
9715 # On some targets, GNU ld is compatible enough with the native linker
9716 # that we're better off using the native interface for both.
9717 lt_use_gnu_ld_interface=no
1cf3d07d 9718 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
9719 case $host_os in
9720 aix*)
9721 # The AIX port of GNU ld has always aspired to compatibility
9722 # with the native linker. However, as the warning in the GNU ld
9723 # block says, versions before 2.19.5* couldn't really create working
9724 # shared libraries, regardless of the interface used.
9725 case `$LD -v 2>&1` in
9726 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9727 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9728 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9729 *)
9730 lt_use_gnu_ld_interface=yes
9731 ;;
9732 esac
9733 ;;
9734 *)
9735 lt_use_gnu_ld_interface=yes
9736 ;;
9737 esac
9738 fi
9739
9740 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
9741 # If archive_cmds runs LD, not CC, wlarc should be empty
9742 wlarc='${wl}'
9743
9744 # Set some defaults for GNU ld with shared library support. These
9745 # are reset later if shared libraries are not supported. Putting them
9746 # here allows them to be overridden if necessary.
9747 runpath_var=LD_RUN_PATH
9748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9749 export_dynamic_flag_spec='${wl}--export-dynamic'
9750 # ancient GNU ld didn't support --whole-archive et. al.
9751 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9752 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9753 else
9754 whole_archive_flag_spec=
9755 fi
9756 supports_anon_versioning=no
9757 case `$LD -v 2>&1` in
43e02a8a 9758 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
9759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9762 *\ 2.11.*) ;; # other 2.11 versions
9763 *) supports_anon_versioning=yes ;;
9764 esac
9765
9766 # See if GNU ld supports shared libraries.
9767 case $host_os in
4f6bebc3 9768 aix[3-9]*)
1cf3d07d
SE
9769 # On AIX/PPC, the GNU linker is very broken
9770 if test "$host_cpu" != ia64; then
9771 ld_shlibs=no
9772 cat <<_LT_EOF 1>&2
9773
43e02a8a 9774*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
9775*** to be unable to reliably create shared libraries on AIX.
9776*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
9777*** really care for shared libraries, you may want to install binutils
9778*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9779*** You will then need to restart the configuration process.
1cf3d07d
SE
9780
9781_LT_EOF
9782 fi
9783 ;;
9784
9785 amigaos*)
d58dead8
PG
9786 case $host_cpu in
9787 powerpc)
9788 # see comment about AmigaOS4 .so support
9789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790 archive_expsym_cmds=''
9791 ;;
9792 m68k)
9793 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)'
9794 hardcode_libdir_flag_spec='-L$libdir'
9795 hardcode_minus_L=yes
9796 ;;
9797 esac
1cf3d07d
SE
9798 ;;
9799
9800 beos*)
9801 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9802 allow_undefined_flag=unsupported
9803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9804 # support --undefined. This deserves some investigation. FIXME
9805 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9806 else
9807 ld_shlibs=no
9808 fi
9809 ;;
9810
d58dead8 9811 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9812 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9813 # as there is no search path for DLLs.
9814 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 9815 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
9816 allow_undefined_flag=unsupported
9817 always_export_symbols=no
9818 enable_shared_with_static_runtimes=yes
9819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9820
9821 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9823 # If the export-symbols file already is a .def file (1st line
9824 # is EXPORTS), use it as is; otherwise, prepend...
9825 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9826 cp $export_symbols $output_objdir/$soname.def;
9827 else
9828 echo EXPORTS > $output_objdir/$soname.def;
9829 cat $export_symbols >> $output_objdir/$soname.def;
9830 fi~
9831 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9832 else
9833 ld_shlibs=no
9834 fi
9835 ;;
9836
43e02a8a
RW
9837 haiku*)
9838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9839 link_all_deplibs=yes
9840 ;;
9841
1cf3d07d
SE
9842 interix[3-9]*)
9843 hardcode_direct=no
9844 hardcode_shlibpath_var=no
9845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9846 export_dynamic_flag_spec='${wl}-E'
9847 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9848 # Instead, shared libraries are loaded at an image base (0x10000000 by
9849 # default) and relocated if they conflict, which is a slow very memory
9850 # consuming and fragmenting process. To avoid this, we pick a random,
9851 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9852 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9854 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'
9855 ;;
9856
7a9d3fe8 9857 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
9858 tmp_diet=no
9859 if test "$host_os" = linux-dietlibc; then
9860 case $cc_basename in
9861 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9862 esac
9863 fi
9864 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9865 && test "$tmp_diet" = no
9866 then
9867 tmp_addflag=
d58dead8 9868 tmp_sharedflag='-shared'
1cf3d07d
SE
9869 case $cc_basename,$host_cpu in
9870 pgcc*) # Portland Group C compiler
43e02a8a 9871 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
9872 tmp_addflag=' $pic_flag'
9873 ;;
43e02a8a
RW
9874 pgf77* | pgf90* | pgf95* | pgfortran*)
9875 # Portland Group f77 and f90 compilers
9876 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
9877 tmp_addflag=' $pic_flag -Mnomain' ;;
9878 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9879 tmp_addflag=' -i_dynamic' ;;
9880 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9881 tmp_addflag=' -i_dynamic -nofor_main' ;;
9882 ifc* | ifort*) # Intel Fortran compiler
9883 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
9884 lf95*) # Lahey Fortran 8.1
9885 whole_archive_flag_spec=
9886 tmp_sharedflag='--shared' ;;
43e02a8a 9887 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
9888 tmp_sharedflag='-qmkshrobj'
9889 tmp_addflag= ;;
43e02a8a
RW
9890 nvcc*) # Cuda Compiler Driver 2.2
9891 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'
9892 compiler_needs_object=yes
9893 ;;
1cf3d07d
SE
9894 esac
9895 case `$CC -V 2>&1 | sed 5q` in
9896 *Sun\ C*) # Sun C 5.9
43e02a8a 9897 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
9898 compiler_needs_object=yes
9899 tmp_sharedflag='-G' ;;
9900 *Sun\ F*) # Sun Fortran 8.3
9901 tmp_sharedflag='-G' ;;
1cf3d07d
SE
9902 esac
9903 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9904
9905 if test "x$supports_anon_versioning" = xyes; then
9906 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9908 echo "local: *; };" >> $output_objdir/$libname.ver~
9909 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9910 fi
d58dead8
PG
9911
9912 case $cc_basename in
43e02a8a 9913 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
9914 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9915 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9916 hardcode_libdir_flag_spec=
9917 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9918 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9919 if test "x$supports_anon_versioning" = xyes; then
9920 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9921 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9922 echo "local: *; };" >> $output_objdir/$libname.ver~
9923 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9924 fi
9925 ;;
9926 esac
1cf3d07d
SE
9927 else
9928 ld_shlibs=no
9929 fi
9930 ;;
9931
9932 netbsd*)
9933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9934 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9935 wlarc=
9936 else
9937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9939 fi
9940 ;;
9941
9942 solaris*)
9943 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9944 ld_shlibs=no
9945 cat <<_LT_EOF 1>&2
9946
9947*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9948*** create shared libraries on Solaris systems. Therefore, libtool
9949*** is disabling shared libraries support. We urge you to upgrade GNU
9950*** binutils to release 2.9.1 or newer. Another option is to modify
9951*** your PATH or compiler configuration so that the native linker is
9952*** used, and then restart.
9953
9954_LT_EOF
9955 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9958 else
9959 ld_shlibs=no
9960 fi
9961 ;;
9962
9963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9964 case `$LD -v 2>&1` in
9965 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9966 ld_shlibs=no
9967 cat <<_LT_EOF 1>&2
9968
9969*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9970*** reliably create shared libraries on SCO systems. Therefore, libtool
9971*** is disabling shared libraries support. We urge you to upgrade GNU
9972*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9973*** your PATH or compiler configuration so that the native linker is
9974*** used, and then restart.
9975
9976_LT_EOF
9977 ;;
9978 *)
9979 # For security reasons, it is highly recommended that you always
9980 # use absolute paths for naming shared libraries, and exclude the
9981 # DT_RUNPATH tag from executables and libraries. But doing so
9982 # requires that you compile everything twice, which is a pain.
9983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9987 else
9988 ld_shlibs=no
9989 fi
9990 ;;
9991 esac
9992 ;;
9993
9994 sunos4*)
9995 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9996 wlarc=
9997 hardcode_direct=yes
9998 hardcode_shlibpath_var=no
9999 ;;
10000
10001 *)
10002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10005 else
10006 ld_shlibs=no
10007 fi
10008 ;;
10009 esac
10010
10011 if test "$ld_shlibs" = no; then
10012 runpath_var=
10013 hardcode_libdir_flag_spec=
10014 export_dynamic_flag_spec=
10015 whole_archive_flag_spec=
10016 fi
10017 else
10018 # PORTME fill in a description of your system's linker (not GNU ld)
10019 case $host_os in
10020 aix3*)
10021 allow_undefined_flag=unsupported
10022 always_export_symbols=yes
10023 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'
10024 # Note: this linker hardcodes the directories in LIBPATH if there
10025 # are no directories specified by -L.
10026 hardcode_minus_L=yes
10027 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10028 # Neither direct hardcoding nor static linking is supported with a
10029 # broken collect2.
10030 hardcode_direct=unsupported
10031 fi
10032 ;;
10033
4f6bebc3 10034 aix[4-9]*)
1cf3d07d
SE
10035 if test "$host_cpu" = ia64; then
10036 # On IA64, the linker does run time linking by default, so we don't
10037 # have to do anything special.
10038 aix_use_runtimelinking=no
10039 exp_sym_flag='-Bexport'
10040 no_entry_flag=""
10041 else
10042 # If we're using GNU nm, then we don't want the "-C" option.
10043 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
10044 # Also, AIX nm treats weak defined symbols like other global
10045 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 10046 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 10047 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
10048 else
10049 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'
10050 fi
10051 aix_use_runtimelinking=no
10052
10053 # Test if we are trying to use run time linking or normal
10054 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10055 # need to do runtime linking.
4f6bebc3 10056 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
10057 for ld_flag in $LDFLAGS; do
10058 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10059 aix_use_runtimelinking=yes
10060 break
10061 fi
10062 done
10063 ;;
10064 esac
10065
10066 exp_sym_flag='-bexport'
10067 no_entry_flag='-bnoentry'
10068 fi
10069
10070 # When large executables or shared objects are built, AIX ld can
10071 # have problems creating the table of contents. If linking a library
10072 # or program results in "error TOC overflow" add -mminimal-toc to
10073 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10074 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10075
10076 archive_cmds=''
10077 hardcode_direct=yes
10078 hardcode_direct_absolute=yes
10079 hardcode_libdir_separator=':'
10080 link_all_deplibs=yes
10081 file_list_spec='${wl}-f,'
10082
10083 if test "$GCC" = yes; then
10084 case $host_os in aix4.[012]|aix4.[012].*)
10085 # We only want to do this on AIX 4.2 and lower, the check
10086 # below for broken collect2 doesn't work under 4.3+
10087 collect2name=`${CC} -print-prog-name=collect2`
10088 if test -f "$collect2name" &&
10089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10090 then
10091 # We have reworked collect2
10092 :
10093 else
10094 # We have old collect2
10095 hardcode_direct=unsupported
10096 # It fails to find uninstalled libraries when the uninstalled
10097 # path is not listed in the libpath. Setting hardcode_minus_L
10098 # to unsupported forces relinking
10099 hardcode_minus_L=yes
10100 hardcode_libdir_flag_spec='-L$libdir'
10101 hardcode_libdir_separator=
10102 fi
10103 ;;
10104 esac
10105 shared_flag='-shared'
10106 if test "$aix_use_runtimelinking" = yes; then
10107 shared_flag="$shared_flag "'${wl}-G'
10108 fi
10109 else
10110 # not using gcc
10111 if test "$host_cpu" = ia64; then
10112 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10113 # chokes on -Wl,-G. The following line is correct:
10114 shared_flag='-G'
10115 else
10116 if test "$aix_use_runtimelinking" = yes; then
10117 shared_flag='${wl}-G'
10118 else
10119 shared_flag='${wl}-bM:SRE'
10120 fi
10121 fi
10122 fi
10123
d58dead8 10124 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
10125 # It seems that -bexpall does not export symbols beginning with
10126 # underscore (_), so it is better to generate a list of symbols to export.
10127 always_export_symbols=yes
10128 if test "$aix_use_runtimelinking" = yes; then
10129 # Warning - without using the other runtime loading flags (-brtl),
10130 # -berok will link without error, but may produce a broken library.
10131 allow_undefined_flag='-berok'
10132 # Determine the default libpath from the value encoded in an
10133 # empty executable.
10134 if test x$gcc_no_link = xyes; then
5213506e 10135 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10136fi
5213506e 10137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10138/* end confdefs.h. */
10139
10140int
10141main ()
10142{
10143
10144 ;
10145 return 0;
10146}
10147_ACEOF
5213506e 10148if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10149
10150lt_aix_libpath_sed='
10151 /Import File Strings/,/^$/ {
10152 /^0/ {
10153 s/^0 *\(.*\)$/\1/
10154 p
10155 }
10156 }'
10157aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10158# Check for a 64-bit object if we didn't find anything.
10159if test -z "$aix_libpath"; then
10160 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10161fi
1cf3d07d 10162fi
5213506e
RW
10163rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10165if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10166
10167 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 10168 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
10169 else
10170 if test "$host_cpu" = ia64; then
10171 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10172 allow_undefined_flag="-z nodefs"
10173 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"
10174 else
10175 # Determine the default libpath from the value encoded in an
10176 # empty executable.
10177 if test x$gcc_no_link = xyes; then
5213506e 10178 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10179fi
5213506e 10180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10181/* end confdefs.h. */
10182
10183int
10184main ()
10185{
10186
10187 ;
10188 return 0;
10189}
10190_ACEOF
5213506e 10191if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10192
10193lt_aix_libpath_sed='
10194 /Import File Strings/,/^$/ {
10195 /^0/ {
10196 s/^0 *\(.*\)$/\1/
10197 p
10198 }
10199 }'
10200aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10201# Check for a 64-bit object if we didn't find anything.
10202if test -z "$aix_libpath"; then
10203 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10204fi
1cf3d07d 10205fi
5213506e
RW
10206rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10208if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10209
10210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10211 # Warning - without using the other run time loading flags,
10212 # -berok will link without error, but may produce a broken library.
10213 no_undefined_flag=' ${wl}-bernotok'
10214 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
10215 if test "$with_gnu_ld" = yes; then
10216 # We only use this code for GNU lds that support --whole-archive.
10217 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10218 else
10219 # Exported symbols can be pulled into shared objects from archives
10220 whole_archive_flag_spec='$convenience'
10221 fi
1cf3d07d
SE
10222 archive_cmds_need_lc=yes
10223 # This is similar to how AIX traditionally builds its shared libraries.
10224 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'
10225 fi
10226 fi
10227 ;;
10228
10229 amigaos*)
d58dead8
PG
10230 case $host_cpu in
10231 powerpc)
10232 # see comment about AmigaOS4 .so support
10233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234 archive_expsym_cmds=''
10235 ;;
10236 m68k)
10237 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)'
10238 hardcode_libdir_flag_spec='-L$libdir'
10239 hardcode_minus_L=yes
10240 ;;
10241 esac
1cf3d07d
SE
10242 ;;
10243
10244 bsdi[45]*)
10245 export_dynamic_flag_spec=-rdynamic
10246 ;;
10247
d58dead8 10248 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10249 # When not using gcc, we currently assume that we are using
10250 # Microsoft Visual C++.
10251 # hardcode_libdir_flag_spec is actually meaningless, as there is
10252 # no search path for DLLs.
10253 hardcode_libdir_flag_spec=' '
10254 allow_undefined_flag=unsupported
10255 # Tell ltmain to make .lib files, not .a files.
10256 libext=lib
10257 # Tell ltmain to make .dll files, not .so files.
10258 shrext_cmds=".dll"
10259 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10260 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
10261 # The linker will automatically build a .lib file if we build a DLL.
10262 old_archive_from_new_cmds='true'
10263 # FIXME: Should let the user specify the lib program.
10264 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10265 fix_srcfile_path='`cygpath -w "$srcfile"`'
10266 enable_shared_with_static_runtimes=yes
10267 ;;
10268
10269 darwin* | rhapsody*)
1cf3d07d 10270
d58dead8
PG
10271
10272 archive_cmds_need_lc=no
10273 hardcode_direct=no
10274 hardcode_automatic=yes
10275 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10276 if test "$lt_cv_ld_force_load" = "yes"; then
10277 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\"`'
10278 else
10279 whole_archive_flag_spec=''
10280 fi
d58dead8
PG
10281 link_all_deplibs=yes
10282 allow_undefined_flag="$_lt_dar_allow_undefined"
10283 case $cc_basename in
10284 ifort*) _lt_dar_can_shared=yes ;;
10285 *) _lt_dar_can_shared=$GCC ;;
10286 esac
10287 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10288 output_verbose_link_cmd=func_echo_all
d58dead8
PG
10289 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10290 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10291 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}"
10292 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}"
10293
10294 else
10295 ld_shlibs=no
10296 fi
10297
1cf3d07d
SE
10298 ;;
10299
10300 dgux*)
10301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_libdir_flag_spec='-L$libdir'
10303 hardcode_shlibpath_var=no
10304 ;;
10305
1cf3d07d
SE
10306 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10307 # support. Future versions do this automatically, but an explicit c++rt0.o
10308 # does not break anything, and helps significantly (at the cost of a little
10309 # extra space).
10310 freebsd2.2*)
10311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10312 hardcode_libdir_flag_spec='-R$libdir'
10313 hardcode_direct=yes
10314 hardcode_shlibpath_var=no
10315 ;;
10316
10317 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10318 freebsd2*)
10319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10320 hardcode_direct=yes
10321 hardcode_minus_L=yes
10322 hardcode_shlibpath_var=no
10323 ;;
10324
10325 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10326 freebsd* | dragonfly*)
10327 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10328 hardcode_libdir_flag_spec='-R$libdir'
10329 hardcode_direct=yes
10330 hardcode_shlibpath_var=no
10331 ;;
10332
10333 hpux9*)
10334 if test "$GCC" = yes; then
10335 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'
10336 else
10337 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'
10338 fi
10339 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10340 hardcode_libdir_separator=:
10341 hardcode_direct=yes
10342
10343 # hardcode_minus_L: Not really in the search PATH,
10344 # but as the default location of the library.
10345 hardcode_minus_L=yes
10346 export_dynamic_flag_spec='${wl}-E'
10347 ;;
10348
10349 hpux10*)
43e02a8a 10350 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10351 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10352 else
10353 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10354 fi
10355 if test "$with_gnu_ld" = no; then
10356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10357 hardcode_libdir_flag_spec_ld='+b $libdir'
10358 hardcode_libdir_separator=:
10359 hardcode_direct=yes
10360 hardcode_direct_absolute=yes
10361 export_dynamic_flag_spec='${wl}-E'
10362 # hardcode_minus_L: Not really in the search PATH,
10363 # but as the default location of the library.
10364 hardcode_minus_L=yes
10365 fi
10366 ;;
10367
10368 hpux11*)
43e02a8a 10369 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
10370 case $host_cpu in
10371 hppa*64*)
10372 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10373 ;;
10374 ia64*)
d58dead8 10375 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
10376 ;;
10377 *)
10378 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10379 ;;
10380 esac
10381 else
10382 case $host_cpu in
10383 hppa*64*)
10384 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10385 ;;
10386 ia64*)
10387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10388 ;;
10389 *)
43e02a8a
RW
10390
10391 # Older versions of the 11.00 compiler do not understand -b yet
10392 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10394$as_echo_n "checking if $CC understands -b... " >&6; }
10395if test "${lt_cv_prog_compiler__b+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10397else
10398 lt_cv_prog_compiler__b=no
10399 save_LDFLAGS="$LDFLAGS"
10400 LDFLAGS="$LDFLAGS -b"
10401 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10402 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10403 # The linker can only warn and ignore the option if not recognized
10404 # So say no if there are warnings
10405 if test -s conftest.err; then
10406 # Append any errors to the config.log.
10407 cat conftest.err 1>&5
10408 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10410 if diff conftest.exp conftest.er2 >/dev/null; then
10411 lt_cv_prog_compiler__b=yes
10412 fi
10413 else
10414 lt_cv_prog_compiler__b=yes
10415 fi
10416 fi
10417 $RM -r conftest*
10418 LDFLAGS="$save_LDFLAGS"
10419
10420fi
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10422$as_echo "$lt_cv_prog_compiler__b" >&6; }
10423
10424if test x"$lt_cv_prog_compiler__b" = xyes; then
10425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10426else
10427 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10428fi
10429
1cf3d07d
SE
10430 ;;
10431 esac
10432 fi
10433 if test "$with_gnu_ld" = no; then
10434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10435 hardcode_libdir_separator=:
10436
10437 case $host_cpu in
10438 hppa*64*|ia64*)
10439 hardcode_direct=no
10440 hardcode_shlibpath_var=no
10441 ;;
10442 *)
10443 hardcode_direct=yes
10444 hardcode_direct_absolute=yes
10445 export_dynamic_flag_spec='${wl}-E'
10446
10447 # hardcode_minus_L: Not really in the search PATH,
10448 # but as the default location of the library.
10449 hardcode_minus_L=yes
10450 ;;
10451 esac
10452 fi
10453 ;;
10454
10455 irix5* | irix6* | nonstopux*)
10456 if test "$GCC" = yes; then
43e02a8a 10457 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
10458 # Try to use the -exported_symbol ld option, if it does not
10459 # work, assume that -exports_file does not work either and
10460 # implicitly export all symbols.
10461 save_LDFLAGS="$LDFLAGS"
10462 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10463 if test x$gcc_no_link = xyes; then
5213506e 10464 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10465fi
5213506e
RW
10466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467/* end confdefs.h. */
1cf3d07d
SE
10468int foo(void) {}
10469_ACEOF
5213506e 10470if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 10471 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 10472
1cf3d07d 10473fi
5213506e
RW
10474rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10476 LDFLAGS="$save_LDFLAGS"
10477 else
43e02a8a
RW
10478 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'
10479 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
10480 fi
10481 archive_cmds_need_lc='no'
10482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10483 hardcode_libdir_separator=:
10484 inherit_rpath=yes
10485 link_all_deplibs=yes
10486 ;;
10487
10488 netbsd*)
10489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10491 else
10492 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10493 fi
10494 hardcode_libdir_flag_spec='-R$libdir'
10495 hardcode_direct=yes
10496 hardcode_shlibpath_var=no
10497 ;;
10498
10499 newsos6)
10500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10501 hardcode_direct=yes
10502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10503 hardcode_libdir_separator=:
10504 hardcode_shlibpath_var=no
10505 ;;
10506
10507 *nto* | *qnx*)
10508 ;;
10509
10510 openbsd*)
d58dead8
PG
10511 if test -f /usr/libexec/ld.so; then
10512 hardcode_direct=yes
10513 hardcode_shlibpath_var=no
10514 hardcode_direct_absolute=yes
10515 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 10516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 10517 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 10518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
d58dead8
PG
10519 export_dynamic_flag_spec='${wl}-E'
10520 else
10521 case $host_os in
10522 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10524 hardcode_libdir_flag_spec='-R$libdir'
10525 ;;
10526 *)
10527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10529 ;;
10530 esac
10531 fi
10532 else
10533 ld_shlibs=no
1cf3d07d
SE
10534 fi
10535 ;;
10536
10537 os2*)
10538 hardcode_libdir_flag_spec='-L$libdir'
10539 hardcode_minus_L=yes
10540 allow_undefined_flag=unsupported
43e02a8a 10541 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
10542 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10543 ;;
10544
10545 osf3*)
10546 if test "$GCC" = yes; then
10547 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10548 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
10549 else
10550 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10551 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
10552 fi
10553 archive_cmds_need_lc='no'
10554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10555 hardcode_libdir_separator=:
10556 ;;
10557
10558 osf4* | osf5*) # as osf3* with the addition of -msym flag
10559 if test "$GCC" = yes; then
10560 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10561 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
10562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10563 else
10564 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10565 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 10566 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 10567 $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
10568
10569 # Both c and cxx compiler support -rpath directly
10570 hardcode_libdir_flag_spec='-rpath $libdir'
10571 fi
10572 archive_cmds_need_lc='no'
10573 hardcode_libdir_separator=:
10574 ;;
10575
10576 solaris*)
10577 no_undefined_flag=' -z defs'
10578 if test "$GCC" = yes; then
10579 wlarc='${wl}'
10580 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10581 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10582 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10583 else
10584 case `$CC -V 2>&1` in
10585 *"Compilers 5.0"*)
10586 wlarc=''
10587 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10588 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10590 ;;
10591 *)
10592 wlarc='${wl}'
10593 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10595 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10596 ;;
10597 esac
10598 fi
10599 hardcode_libdir_flag_spec='-R$libdir'
10600 hardcode_shlibpath_var=no
10601 case $host_os in
10602 solaris2.[0-5] | solaris2.[0-5].*) ;;
10603 *)
10604 # The compiler driver will combine and reorder linker options,
10605 # but understands `-z linker_flag'. GCC discards it without `$wl',
10606 # but is careful enough not to reorder.
10607 # Supported since Solaris 2.6 (maybe 2.5.1?)
10608 if test "$GCC" = yes; then
10609 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10610 else
10611 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10612 fi
10613 ;;
10614 esac
10615 link_all_deplibs=yes
10616 ;;
10617
10618 sunos4*)
10619 if test "x$host_vendor" = xsequent; then
10620 # Use $CC to link under sequent, because it throws in some extra .o
10621 # files that make .init and .fini sections work.
10622 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10623 else
10624 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10625 fi
10626 hardcode_libdir_flag_spec='-L$libdir'
10627 hardcode_direct=yes
10628 hardcode_minus_L=yes
10629 hardcode_shlibpath_var=no
10630 ;;
10631
10632 sysv4)
10633 case $host_vendor in
10634 sni)
10635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10636 hardcode_direct=yes # is this really true???
10637 ;;
10638 siemens)
10639 ## LD is ld it makes a PLAMLIB
10640 ## CC just makes a GrossModule.
10641 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10642 reload_cmds='$CC -r -o $output$reload_objs'
10643 hardcode_direct=no
10644 ;;
10645 motorola)
10646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10647 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10648 ;;
10649 esac
10650 runpath_var='LD_RUN_PATH'
10651 hardcode_shlibpath_var=no
10652 ;;
10653
10654 sysv4.3*)
10655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10656 hardcode_shlibpath_var=no
10657 export_dynamic_flag_spec='-Bexport'
10658 ;;
10659
10660 sysv4*MP*)
10661 if test -d /usr/nec; then
10662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10663 hardcode_shlibpath_var=no
10664 runpath_var=LD_RUN_PATH
10665 hardcode_runpath_var=yes
10666 ld_shlibs=yes
10667 fi
10668 ;;
10669
10670 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10671 no_undefined_flag='${wl}-z,text'
10672 archive_cmds_need_lc=no
10673 hardcode_shlibpath_var=no
10674 runpath_var='LD_RUN_PATH'
10675
10676 if test "$GCC" = yes; then
10677 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10678 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10679 else
10680 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10681 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 fi
10683 ;;
10684
10685 sysv5* | sco3.2v5* | sco5v6*)
10686 # Note: We can NOT use -z defs as we might desire, because we do not
10687 # link with -lc, and that would cause any symbols used from libc to
10688 # always be unresolved, which means just about no library would
10689 # ever link correctly. If we're not using GNU ld we use -z text
10690 # though, which does catch some bad symbols but isn't as heavy-handed
10691 # as -z defs.
10692 no_undefined_flag='${wl}-z,text'
10693 allow_undefined_flag='${wl}-z,nodefs'
10694 archive_cmds_need_lc=no
10695 hardcode_shlibpath_var=no
10696 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10697 hardcode_libdir_separator=':'
10698 link_all_deplibs=yes
10699 export_dynamic_flag_spec='${wl}-Bexport'
10700 runpath_var='LD_RUN_PATH'
10701
10702 if test "$GCC" = yes; then
10703 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10704 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705 else
10706 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 fi
10709 ;;
10710
10711 uts4*)
10712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713 hardcode_libdir_flag_spec='-L$libdir'
10714 hardcode_shlibpath_var=no
10715 ;;
10716
10717 *)
10718 ld_shlibs=no
10719 ;;
10720 esac
10721
10722 if test x$host_vendor = xsni; then
10723 case $host in
10724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10725 export_dynamic_flag_spec='${wl}-Blargedynsym'
10726 ;;
10727 esac
10728 fi
10729 fi
10730
5213506e
RW
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10732$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
10733test "$ld_shlibs" = no && can_build_shared=no
10734
10735with_gnu_ld=$with_gnu_ld
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751#
10752# Do we need to explicitly link libc?
10753#
10754case "x$archive_cmds_need_lc" in
10755x|xyes)
10756 # Assume -lc should be added
10757 archive_cmds_need_lc=yes
10758
10759 if test "$enable_shared" = yes && test "$GCC" = yes; then
10760 case $archive_cmds in
10761 *'~'*)
10762 # FIXME: we may have to deal with multi-command sequences.
10763 ;;
10764 '$CC '*)
10765 # Test whether the compiler implicitly links with -lc since on some
10766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10767 # to ld, don't add -lc before -lgcc.
5213506e
RW
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10769$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10770if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10771 $as_echo_n "(cached) " >&6
baafc534
RW
10772else
10773 $RM conftest*
10774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 10775
5213506e 10776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
10777 (eval $ac_compile) 2>&5
10778 ac_status=$?
5213506e
RW
10779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10780 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
10781 soname=conftest
10782 lib=conftest
10783 libobjs=conftest.$ac_objext
10784 deplibs=
10785 wl=$lt_prog_compiler_wl
10786 pic_flag=$lt_prog_compiler_pic
10787 compiler_flags=-v
10788 linker_flags=-v
10789 verstring=
10790 output_objdir=.
10791 libname=conftest
10792 lt_save_allow_undefined_flag=$allow_undefined_flag
10793 allow_undefined_flag=
5213506e 10794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
10795 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10796 ac_status=$?
5213506e
RW
10797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10798 test $ac_status = 0; }
baafc534
RW
10799 then
10800 lt_cv_archive_cmds_need_lc=no
10801 else
10802 lt_cv_archive_cmds_need_lc=yes
10803 fi
10804 allow_undefined_flag=$lt_save_allow_undefined_flag
10805 else
10806 cat conftest.err 1>&5
10807 fi
10808 $RM conftest*
10809
10810fi
5213506e
RW
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10812$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 10813 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
10814 ;;
10815 esac
10816 fi
10817 ;;
10818esac
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
5213506e
RW
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10977$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8
PG
10978
10979if test "$GCC" = yes; then
1cf3d07d
SE
10980 case $host_os in
10981 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10982 *) lt_awk_arg="/^libraries:/" ;;
10983 esac
43e02a8a
RW
10984 case $host_os in
10985 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10986 *) lt_sed_strip_eq="s,=/,/,g" ;;
10987 esac
10988 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10989 case $lt_search_path_spec in
10990 *\;*)
1cf3d07d
SE
10991 # if the path contains ";" then we assume it to be the separator
10992 # otherwise default to the standard path separator (i.e. ":") - it is
10993 # assumed that no part of a normal pathname contains ";" but that should
10994 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
10995 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10996 ;;
10997 *)
10998 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10999 ;;
11000 esac
1cf3d07d
SE
11001 # Ok, now we have the path, separated by spaces, we can step through it
11002 # and add multilib dir if necessary.
11003 lt_tmp_lt_search_path_spec=
11004 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11005 for lt_sys_path in $lt_search_path_spec; do
11006 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11007 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11008 else
11009 test -d "$lt_sys_path" && \
11010 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11011 fi
11012 done
43e02a8a 11013 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
11014BEGIN {RS=" "; FS="/|\n";} {
11015 lt_foo="";
11016 lt_count=0;
11017 for (lt_i = NF; lt_i > 0; lt_i--) {
11018 if ($lt_i != "" && $lt_i != ".") {
11019 if ($lt_i == "..") {
11020 lt_count++;
11021 } else {
11022 if (lt_count == 0) {
11023 lt_foo="/" $lt_i lt_foo;
11024 } else {
11025 lt_count--;
11026 }
11027 }
11028 }
11029 }
11030 if (lt_foo != "") { lt_freq[lt_foo]++; }
11031 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11032}'`
43e02a8a
RW
11033 # AWK program above erroneously prepends '/' to C:/dos/paths
11034 # for these hosts.
11035 case $host_os in
11036 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11037 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11038 esac
11039 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
11040else
11041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11042fi
11043library_names_spec=
11044libname_spec='lib$name'
11045soname_spec=
11046shrext_cmds=".so"
11047postinstall_cmds=
11048postuninstall_cmds=
11049finish_cmds=
11050finish_eval=
11051shlibpath_var=
11052shlibpath_overrides_runpath=unknown
11053version_type=none
11054dynamic_linker="$host_os ld.so"
11055sys_lib_dlsearch_path_spec="/lib /usr/lib"
11056need_lib_prefix=unknown
11057hardcode_into_libs=no
11058
11059# when you set need_version to no, make sure it does not cause -set_version
11060# flags to be left without arguments
11061need_version=unknown
11062
11063case $host_os in
11064aix3*)
11065 version_type=linux
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11067 shlibpath_var=LIBPATH
11068
11069 # AIX 3 has no versioning support, so we append a major version to the name.
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 ;;
11072
4f6bebc3 11073aix[4-9]*)
1cf3d07d
SE
11074 version_type=linux
11075 need_lib_prefix=no
11076 need_version=no
11077 hardcode_into_libs=yes
11078 if test "$host_cpu" = ia64; then
11079 # AIX 5 supports IA64
11080 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 else
11083 # With GCC up to 2.95.x, collect2 would create an import file
11084 # for dependence libraries. The import file would start with
11085 # the line `#! .'. This would cause the generated library to
11086 # depend on `.', always an invalid library. This was fixed in
11087 # development snapshots of GCC prior to 3.0.
11088 case $host_os in
11089 aix4 | aix4.[01] | aix4.[01].*)
11090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11091 echo ' yes '
11092 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11093 :
11094 else
11095 can_build_shared=no
11096 fi
11097 ;;
11098 esac
11099 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11100 # soname into executable. Probably we can add versioning support to
11101 # collect2, so additional links can be useful in future.
11102 if test "$aix_use_runtimelinking" = yes; then
11103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11104 # instead of lib<name>.a to let people know that these are not
11105 # typical AIX shared libraries.
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 else
11108 # We preserve .a as extension for shared libraries through AIX4.2
11109 # and later when we are not doing run time linking.
11110 library_names_spec='${libname}${release}.a $libname.a'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 fi
11113 shlibpath_var=LIBPATH
11114 fi
11115 ;;
11116
11117amigaos*)
d58dead8
PG
11118 case $host_cpu in
11119 powerpc)
11120 # Since July 2007 AmigaOS4 officially supports .so libraries.
11121 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 ;;
11124 m68k)
1cf3d07d
SE
11125 library_names_spec='$libname.ixlibrary $libname.a'
11126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 11127 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
11128 ;;
11129 esac
1cf3d07d
SE
11130 ;;
11131
11132beos*)
11133 library_names_spec='${libname}${shared_ext}'
11134 dynamic_linker="$host_os ld.so"
11135 shlibpath_var=LIBRARY_PATH
11136 ;;
11137
11138bsdi[45]*)
11139 version_type=linux
11140 need_version=no
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11147 # the default ld.so.conf also contains /usr/contrib/lib and
11148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11149 # libtool to hard-code these into programs
11150 ;;
11151
d58dead8 11152cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
11153 version_type=windows
11154 shrext_cmds=".dll"
11155 need_version=no
11156 need_lib_prefix=no
11157
d58dead8
PG
11158 case $GCC,$host_os in
11159 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
11160 library_names_spec='$libname.dll.a'
11161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11162 postinstall_cmds='base_file=`basename \${file}`~
11163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11164 dldir=$destdir/`dirname \$dlpath`~
11165 test -d \$dldir || mkdir -p \$dldir~
11166 $install_prog $dir/$dlname \$dldir/$dlname~
11167 chmod a+x \$dldir/$dlname~
11168 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11169 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11170 fi'
11171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11172 dlpath=$dir/\$dldll~
11173 $RM \$dlpath'
11174 shlibpath_overrides_runpath=yes
11175
11176 case $host_os in
11177 cygwin*)
11178 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11179 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
11180
11181 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 11182 ;;
d58dead8 11183 mingw* | cegcc*)
1cf3d07d
SE
11184 # MinGW DLLs use traditional 'lib' prefix
11185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
11186 ;;
11187 pw32*)
11188 # pw32 DLLs use 'pw' prefix rather than 'lib'
11189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11190 ;;
11191 esac
11192 ;;
11193
11194 *)
11195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11196 ;;
11197 esac
11198 dynamic_linker='Win32 ld.exe'
11199 # FIXME: first we should search . and the directory the executable is in
11200 shlibpath_var=PATH
11201 ;;
11202
11203darwin* | rhapsody*)
11204 dynamic_linker="$host_os dyld"
11205 version_type=darwin
11206 need_lib_prefix=no
11207 need_version=no
11208 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11209 soname_spec='${libname}${release}${major}$shared_ext'
11210 shlibpath_overrides_runpath=yes
11211 shlibpath_var=DYLD_LIBRARY_PATH
11212 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11213
11214 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11216 ;;
11217
11218dgux*)
11219 version_type=linux
11220 need_lib_prefix=no
11221 need_version=no
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 ;;
11226
1cf3d07d
SE
11227freebsd* | dragonfly*)
11228 # DragonFly does not have aout. When/if they implement a new
11229 # versioning mechanism, adjust this.
11230 if test -x /usr/bin/objformat; then
11231 objformat=`/usr/bin/objformat`
11232 else
11233 case $host_os in
11234 freebsd[123]*) objformat=aout ;;
11235 *) objformat=elf ;;
11236 esac
11237 fi
11238 version_type=freebsd-$objformat
11239 case $version_type in
11240 freebsd-elf*)
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11242 need_version=no
11243 need_lib_prefix=no
11244 ;;
11245 freebsd-*)
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11247 need_version=yes
11248 ;;
11249 esac
11250 shlibpath_var=LD_LIBRARY_PATH
11251 case $host_os in
11252 freebsd2*)
11253 shlibpath_overrides_runpath=yes
11254 ;;
11255 freebsd3.[01]* | freebsdelf3.[01]*)
11256 shlibpath_overrides_runpath=yes
11257 hardcode_into_libs=yes
11258 ;;
11259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11261 shlibpath_overrides_runpath=no
11262 hardcode_into_libs=yes
11263 ;;
11264 *) # from 4.6 on, and DragonFly
11265 shlibpath_overrides_runpath=yes
11266 hardcode_into_libs=yes
11267 ;;
11268 esac
11269 ;;
11270
11271gnu*)
11272 version_type=linux
11273 need_lib_prefix=no
11274 need_version=no
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 hardcode_into_libs=yes
11279 ;;
11280
43e02a8a
RW
11281haiku*)
11282 version_type=linux
11283 need_lib_prefix=no
11284 need_version=no
11285 dynamic_linker="$host_os runtime_loader"
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 shlibpath_var=LIBRARY_PATH
11289 shlibpath_overrides_runpath=yes
11290 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11291 hardcode_into_libs=yes
11292 ;;
11293
1cf3d07d
SE
11294hpux9* | hpux10* | hpux11*)
11295 # Give a soname corresponding to the major version so that dld.sl refuses to
11296 # link against other versions.
11297 version_type=sunos
11298 need_lib_prefix=no
11299 need_version=no
11300 case $host_cpu in
11301 ia64*)
11302 shrext_cmds='.so'
11303 hardcode_into_libs=yes
11304 dynamic_linker="$host_os dld.so"
11305 shlibpath_var=LD_LIBRARY_PATH
11306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 soname_spec='${libname}${release}${shared_ext}$major'
11309 if test "X$HPUX_IA64_MODE" = X32; then
11310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11311 else
11312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11313 fi
11314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11315 ;;
11316 hppa*64*)
11317 shrext_cmds='.sl'
11318 hardcode_into_libs=yes
11319 dynamic_linker="$host_os dld.sl"
11320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323 soname_spec='${libname}${release}${shared_ext}$major'
11324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11326 ;;
11327 *)
11328 shrext_cmds='.sl'
11329 dynamic_linker="$host_os dld.sl"
11330 shlibpath_var=SHLIB_PATH
11331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 ;;
11335 esac
43e02a8a 11336 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 11337 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11338 # or fails outright, so override atomically:
11339 install_override_mode=555
1cf3d07d
SE
11340 ;;
11341
11342interix[3-9]*)
11343 version_type=linux
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=no
11351 hardcode_into_libs=yes
11352 ;;
11353
11354irix5* | irix6* | nonstopux*)
11355 case $host_os in
11356 nonstopux*) version_type=nonstopux ;;
11357 *)
11358 if test "$lt_cv_prog_gnu_ld" = yes; then
11359 version_type=linux
11360 else
11361 version_type=irix
11362 fi ;;
11363 esac
11364 need_lib_prefix=no
11365 need_version=no
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11368 case $host_os in
11369 irix5* | nonstopux*)
11370 libsuff= shlibsuff=
11371 ;;
11372 *)
11373 case $LD in # libtool.m4 will add one of these switches to LD
11374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11375 libsuff= shlibsuff= libmagic=32-bit;;
11376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11377 libsuff=32 shlibsuff=N32 libmagic=N32;;
11378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11380 *) libsuff= shlibsuff= libmagic=never-match;;
11381 esac
11382 ;;
11383 esac
11384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11385 shlibpath_overrides_runpath=no
11386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11388 hardcode_into_libs=yes
11389 ;;
11390
11391# No shared lib support for Linux oldld, aout, or coff.
11392linux*oldld* | linux*aout* | linux*coff*)
11393 dynamic_linker=no
11394 ;;
11395
11396# This must be Linux ELF.
7a9d3fe8 11397linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
11398 version_type=linux
11399 need_lib_prefix=no
11400 need_version=no
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 shlibpath_overrides_runpath=no
baafc534 11406
1cf3d07d 11407 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
11408 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11409 $as_echo_n "(cached) " >&6
baafc534
RW
11410else
11411 lt_cv_shlibpath_overrides_runpath=no
11412 save_LDFLAGS=$LDFLAGS
11413 save_libdir=$libdir
11414 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11415 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11416 if test x$gcc_no_link = xyes; then
5213506e 11417 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11418fi
5213506e 11419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11420/* end confdefs.h. */
11421
11422int
11423main ()
11424{
11425
11426 ;
11427 return 0;
11428}
11429_ACEOF
5213506e
RW
11430if ac_fn_c_try_link "$LINENO"; then :
11431 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 11432 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 11433fi
1cf3d07d 11434fi
5213506e
RW
11435rm -f core conftest.err conftest.$ac_objext \
11436 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
11437 LDFLAGS=$save_LDFLAGS
11438 libdir=$save_libdir
11439
11440fi
11441
11442 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
11443
11444 # This implies no fast_install, which is unacceptable.
11445 # Some rework will be needed to allow for fast_install
11446 # before this can be enabled.
11447 hardcode_into_libs=yes
11448
11449 # Append ld.so.conf contents to the search path
11450 if test -f /etc/ld.so.conf; then
43e02a8a 11451 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
11452 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11453 fi
11454
11455 # We used to test for /lib/ld.so.1 and disable shared libraries on
11456 # powerpc, because MkLinux only supported shared libraries with the
11457 # GNU dynamic linker. Since this was broken with cross compilers,
11458 # most powerpc-linux boxes support dynamic linking these days and
11459 # people can always --disable-shared, the test was removed, and we
11460 # assume the GNU/Linux dynamic linker is in use.
11461 dynamic_linker='GNU/Linux ld.so'
11462 ;;
11463
11464netbsd*)
11465 version_type=sunos
11466 need_lib_prefix=no
11467 need_version=no
11468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11471 dynamic_linker='NetBSD (a.out) ld.so'
11472 else
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11474 soname_spec='${libname}${release}${shared_ext}$major'
11475 dynamic_linker='NetBSD ld.elf_so'
11476 fi
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=yes
11479 hardcode_into_libs=yes
11480 ;;
11481
11482newsos6)
11483 version_type=linux
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 shlibpath_overrides_runpath=yes
11487 ;;
11488
11489*nto* | *qnx*)
11490 version_type=qnx
11491 need_lib_prefix=no
11492 need_version=no
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 shlibpath_overrides_runpath=no
11497 hardcode_into_libs=yes
11498 dynamic_linker='ldqnx.so'
11499 ;;
11500
11501openbsd*)
11502 version_type=sunos
11503 sys_lib_dlsearch_path_spec="/usr/lib"
11504 need_lib_prefix=no
11505 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11506 case $host_os in
11507 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11508 *) need_version=no ;;
11509 esac
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11514 case $host_os in
11515 openbsd2.[89] | openbsd2.[89].*)
11516 shlibpath_overrides_runpath=no
11517 ;;
11518 *)
11519 shlibpath_overrides_runpath=yes
11520 ;;
11521 esac
11522 else
11523 shlibpath_overrides_runpath=yes
11524 fi
11525 ;;
11526
11527os2*)
11528 libname_spec='$name'
11529 shrext_cmds=".dll"
11530 need_lib_prefix=no
11531 library_names_spec='$libname${shared_ext} $libname.a'
11532 dynamic_linker='OS/2 ld.exe'
11533 shlibpath_var=LIBPATH
11534 ;;
11535
11536osf3* | osf4* | osf5*)
11537 version_type=osf
11538 need_lib_prefix=no
11539 need_version=no
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11544 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11545 ;;
11546
11547rdos*)
11548 dynamic_linker=no
11549 ;;
11550
11551solaris*)
11552 version_type=linux
11553 need_lib_prefix=no
11554 need_version=no
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 shlibpath_overrides_runpath=yes
11559 hardcode_into_libs=yes
11560 # ldd complains unless libraries are executable
11561 postinstall_cmds='chmod +x $lib'
11562 ;;
11563
11564sunos4*)
11565 version_type=sunos
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11567 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes
11570 if test "$with_gnu_ld" = yes; then
11571 need_lib_prefix=no
11572 fi
11573 need_version=yes
11574 ;;
11575
11576sysv4 | sysv4.3*)
11577 version_type=linux
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11581 case $host_vendor in
11582 sni)
11583 shlibpath_overrides_runpath=no
11584 need_lib_prefix=no
11585 runpath_var=LD_RUN_PATH
11586 ;;
11587 siemens)
11588 need_lib_prefix=no
11589 ;;
11590 motorola)
11591 need_lib_prefix=no
11592 need_version=no
11593 shlibpath_overrides_runpath=no
11594 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11595 ;;
11596 esac
11597 ;;
11598
11599sysv4*MP*)
11600 if test -d /usr/nec ;then
11601 version_type=linux
11602 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11603 soname_spec='$libname${shared_ext}.$major'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 fi
11606 ;;
11607
11608sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11609 version_type=freebsd-elf
11610 need_lib_prefix=no
11611 need_version=no
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=yes
11616 hardcode_into_libs=yes
11617 if test "$with_gnu_ld" = yes; then
11618 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11619 else
11620 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11621 case $host_os in
11622 sco3.2v5*)
11623 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11624 ;;
11625 esac
11626 fi
11627 sys_lib_dlsearch_path_spec='/usr/lib'
11628 ;;
11629
11630tpf*)
11631 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11632 version_type=linux
11633 need_lib_prefix=no
11634 need_version=no
d58dead8 11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=no
11638 hardcode_into_libs=yes
11639 ;;
11640
11641uts4*)
11642 version_type=linux
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 ;;
11647
11648*)
11649 dynamic_linker=no
11650 ;;
11651esac
5213506e
RW
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11653$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
11654test "$dynamic_linker" = no && can_build_shared=no
11655
11656variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11657if test "$GCC" = yes; then
11658 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11659fi
11660
d58dead8
PG
11661if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11662 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11663fi
11664if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11665 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11666fi
11667
1cf3d07d
SE
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
43e02a8a
RW
11748
11749
11750
11751
11752
1cf3d07d
SE
11753
11754
11755
11756
11757
11758
5213506e
RW
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11760$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
11761hardcode_action=
11762if test -n "$hardcode_libdir_flag_spec" ||
11763 test -n "$runpath_var" ||
11764 test "X$hardcode_automatic" = "Xyes" ; then
11765
11766 # We can hardcode non-existent directories.
11767 if test "$hardcode_direct" != no &&
11768 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11769 # have to relink, otherwise we might link with an installed library
11770 # when we should be linking with a yet-to-be-installed one
11771 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11772 test "$hardcode_minus_L" != no; then
11773 # Linking always hardcodes the temporary library directory.
11774 hardcode_action=relink
11775 else
11776 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11777 hardcode_action=immediate
11778 fi
11779else
11780 # We cannot hardcode anything, or else we can only hardcode existing
11781 # directories.
11782 hardcode_action=unsupported
11783fi
5213506e
RW
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11785$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
11786
11787if test "$hardcode_action" = relink ||
11788 test "$inherit_rpath" = yes; then
11789 # Fast installation is not supported
11790 enable_fast_install=no
11791elif test "$shlibpath_overrides_runpath" = yes ||
11792 test "$enable_shared" = no; then
11793 # Fast installation is not necessary
11794 enable_fast_install=needless
11795fi
11796
11797
11798
11799
11800
11801
11802 if test "x$enable_dlopen" != xyes; then
11803 enable_dlopen=unknown
11804 enable_dlopen_self=unknown
11805 enable_dlopen_self_static=unknown
11806else
11807 lt_cv_dlopen=no
11808 lt_cv_dlopen_libs=
11809
11810 case $host_os in
11811 beos*)
11812 lt_cv_dlopen="load_add_on"
11813 lt_cv_dlopen_libs=
11814 lt_cv_dlopen_self=yes
11815 ;;
11816
d58dead8 11817 mingw* | pw32* | cegcc*)
1cf3d07d
SE
11818 lt_cv_dlopen="LoadLibrary"
11819 lt_cv_dlopen_libs=
11820 ;;
11821
11822 cygwin*)
11823 lt_cv_dlopen="dlopen"
11824 lt_cv_dlopen_libs=
11825 ;;
11826
11827 darwin*)
11828 # if libdl is installed we need to link against it
5213506e
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11830$as_echo_n "checking for dlopen in -ldl... " >&6; }
11831if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11832 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11833else
11834 ac_check_lib_save_LIBS=$LIBS
11835LIBS="-ldl $LIBS"
11836if test x$gcc_no_link = xyes; then
5213506e 11837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11838fi
5213506e 11839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11840/* end confdefs.h. */
11841
5213506e
RW
11842/* Override any GCC internal prototype to avoid an error.
11843 Use char because int might match the return type of a GCC
11844 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11845#ifdef __cplusplus
11846extern "C"
11847#endif
1cf3d07d
SE
11848char dlopen ();
11849int
11850main ()
11851{
5213506e 11852return dlopen ();
1cf3d07d
SE
11853 ;
11854 return 0;
11855}
11856_ACEOF
5213506e 11857if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11858 ac_cv_lib_dl_dlopen=yes
11859else
5213506e 11860 ac_cv_lib_dl_dlopen=no
1cf3d07d 11861fi
5213506e
RW
11862rm -f core conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11864LIBS=$ac_check_lib_save_LIBS
11865fi
5213506e
RW
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11867$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11868if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
11869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11870else
11871
11872 lt_cv_dlopen="dyld"
11873 lt_cv_dlopen_libs=
11874 lt_cv_dlopen_self=yes
11875
11876fi
11877
11878 ;;
11879
11880 *)
5213506e
RW
11881 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11882if test "x$ac_cv_func_shl_load" = x""yes; then :
1cf3d07d
SE
11883 lt_cv_dlopen="shl_load"
11884else
5213506e
RW
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11886$as_echo_n "checking for shl_load in -ldld... " >&6; }
11887if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11888 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11889else
11890 ac_check_lib_save_LIBS=$LIBS
11891LIBS="-ldld $LIBS"
11892if test x$gcc_no_link = xyes; then
5213506e 11893 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11894fi
5213506e 11895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11896/* end confdefs.h. */
11897
5213506e
RW
11898/* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11901#ifdef __cplusplus
11902extern "C"
11903#endif
1cf3d07d
SE
11904char shl_load ();
11905int
11906main ()
11907{
5213506e 11908return shl_load ();
1cf3d07d
SE
11909 ;
11910 return 0;
11911}
11912_ACEOF
5213506e 11913if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11914 ac_cv_lib_dld_shl_load=yes
11915else
5213506e 11916 ac_cv_lib_dld_shl_load=no
1cf3d07d 11917fi
5213506e
RW
11918rm -f core conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11920LIBS=$ac_check_lib_save_LIBS
11921fi
5213506e
RW
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11923$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11924if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
d58dead8 11925 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 11926else
5213506e
RW
11927 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11928if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
11929 lt_cv_dlopen="dlopen"
11930else
5213506e
RW
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11932$as_echo_n "checking for dlopen in -ldl... " >&6; }
11933if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11935else
11936 ac_check_lib_save_LIBS=$LIBS
11937LIBS="-ldl $LIBS"
11938if test x$gcc_no_link = xyes; then
5213506e 11939 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11940fi
5213506e 11941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11942/* end confdefs.h. */
11943
5213506e
RW
11944/* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11947#ifdef __cplusplus
11948extern "C"
11949#endif
1cf3d07d
SE
11950char dlopen ();
11951int
11952main ()
11953{
5213506e 11954return dlopen ();
1cf3d07d
SE
11955 ;
11956 return 0;
11957}
11958_ACEOF
5213506e 11959if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11960 ac_cv_lib_dl_dlopen=yes
11961else
5213506e 11962 ac_cv_lib_dl_dlopen=no
1cf3d07d 11963fi
5213506e
RW
11964rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11966LIBS=$ac_check_lib_save_LIBS
11967fi
5213506e
RW
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11969$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11970if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
11971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11972else
5213506e
RW
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11974$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11975if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11977else
11978 ac_check_lib_save_LIBS=$LIBS
11979LIBS="-lsvld $LIBS"
11980if test x$gcc_no_link = xyes; then
5213506e 11981 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 11982fi
5213506e 11983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11984/* end confdefs.h. */
11985
5213506e
RW
11986/* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11989#ifdef __cplusplus
11990extern "C"
11991#endif
1cf3d07d
SE
11992char dlopen ();
11993int
11994main ()
11995{
5213506e 11996return dlopen ();
1cf3d07d
SE
11997 ;
11998 return 0;
11999}
12000_ACEOF
5213506e 12001if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12002 ac_cv_lib_svld_dlopen=yes
12003else
5213506e 12004 ac_cv_lib_svld_dlopen=no
1cf3d07d 12005fi
5213506e
RW
12006rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12008LIBS=$ac_check_lib_save_LIBS
12009fi
5213506e
RW
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12011$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12012if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
12013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12014else
5213506e
RW
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12016$as_echo_n "checking for dld_link in -ldld... " >&6; }
12017if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12019else
12020 ac_check_lib_save_LIBS=$LIBS
12021LIBS="-ldld $LIBS"
12022if test x$gcc_no_link = xyes; then
5213506e 12023 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 12024fi
5213506e 12025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
12026/* end confdefs.h. */
12027
5213506e
RW
12028/* Override any GCC internal prototype to avoid an error.
12029 Use char because int might match the return type of a GCC
12030 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
12031#ifdef __cplusplus
12032extern "C"
12033#endif
1cf3d07d
SE
12034char dld_link ();
12035int
12036main ()
12037{
5213506e 12038return dld_link ();
1cf3d07d
SE
12039 ;
12040 return 0;
12041}
12042_ACEOF
5213506e 12043if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
12044 ac_cv_lib_dld_dld_link=yes
12045else
5213506e 12046 ac_cv_lib_dld_dld_link=no
1cf3d07d 12047fi
5213506e
RW
12048rm -f core conftest.err conftest.$ac_objext \
12049 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
12050LIBS=$ac_check_lib_save_LIBS
12051fi
5213506e
RW
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12053$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12054if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
d58dead8 12055 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
12056fi
12057
12058
12059fi
12060
12061
12062fi
12063
12064
12065fi
12066
12067
12068fi
12069
12070
12071fi
12072
12073 ;;
12074 esac
12075
12076 if test "x$lt_cv_dlopen" != xno; then
12077 enable_dlopen=yes
12078 else
12079 enable_dlopen=no
12080 fi
12081
12082 case $lt_cv_dlopen in
12083 dlopen)
12084 save_CPPFLAGS="$CPPFLAGS"
12085 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12086
12087 save_LDFLAGS="$LDFLAGS"
12088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12089
12090 save_LIBS="$LIBS"
12091 LIBS="$lt_cv_dlopen_libs $LIBS"
12092
5213506e
RW
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12094$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12095if test "${lt_cv_dlopen_self+set}" = set; then :
12096 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12097else
12098 if test "$cross_compiling" = yes; then :
12099 lt_cv_dlopen_self=cross
12100else
12101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12102 lt_status=$lt_dlunknown
12103 cat > conftest.$ac_ext <<_LT_EOF
029c8f3e 12104#line 12104 "configure"
1cf3d07d
SE
12105#include "confdefs.h"
12106
12107#if HAVE_DLFCN_H
12108#include <dlfcn.h>
12109#endif
12110
12111#include <stdio.h>
12112
12113#ifdef RTLD_GLOBAL
12114# define LT_DLGLOBAL RTLD_GLOBAL
12115#else
12116# ifdef DL_GLOBAL
12117# define LT_DLGLOBAL DL_GLOBAL
12118# else
12119# define LT_DLGLOBAL 0
12120# endif
12121#endif
12122
12123/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12124 find out it does not work in some platform. */
12125#ifndef LT_DLLAZY_OR_NOW
12126# ifdef RTLD_LAZY
12127# define LT_DLLAZY_OR_NOW RTLD_LAZY
12128# else
12129# ifdef DL_LAZY
12130# define LT_DLLAZY_OR_NOW DL_LAZY
12131# else
12132# ifdef RTLD_NOW
12133# define LT_DLLAZY_OR_NOW RTLD_NOW
12134# else
12135# ifdef DL_NOW
12136# define LT_DLLAZY_OR_NOW DL_NOW
12137# else
12138# define LT_DLLAZY_OR_NOW 0
12139# endif
12140# endif
12141# endif
12142# endif
12143#endif
12144
43e02a8a
RW
12145/* When -fvisbility=hidden is used, assume the code has been annotated
12146 correspondingly for the symbols needed. */
12147#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12148void fnord () __attribute__((visibility("default")));
12149#endif
12150
12151void fnord () { int i=42; }
1cf3d07d
SE
12152int main ()
12153{
12154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12155 int status = $lt_dlunknown;
12156
12157 if (self)
12158 {
12159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12160 else
12161 {
12162 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12163 else puts (dlerror ());
12164 }
1cf3d07d
SE
12165 /* dlclose (self); */
12166 }
12167 else
12168 puts (dlerror ());
12169
d58dead8 12170 return status;
1cf3d07d
SE
12171}
12172_LT_EOF
5213506e 12173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12174 (eval $ac_link) 2>&5
12175 ac_status=$?
5213506e
RW
12176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12177 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12178 (./conftest; exit; ) >&5 2>/dev/null
12179 lt_status=$?
12180 case x$lt_status in
12181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12183 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12184 esac
12185 else :
12186 # compilation failed
12187 lt_cv_dlopen_self=no
12188 fi
12189fi
12190rm -fr conftest*
12191
12192
12193fi
5213506e
RW
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12195$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
12196
12197 if test "x$lt_cv_dlopen_self" = xyes; then
12198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12200$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12201if test "${lt_cv_dlopen_self_static+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12203else
12204 if test "$cross_compiling" = yes; then :
12205 lt_cv_dlopen_self_static=cross
12206else
12207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12208 lt_status=$lt_dlunknown
12209 cat > conftest.$ac_ext <<_LT_EOF
029c8f3e 12210#line 12210 "configure"
1cf3d07d
SE
12211#include "confdefs.h"
12212
12213#if HAVE_DLFCN_H
12214#include <dlfcn.h>
12215#endif
12216
12217#include <stdio.h>
12218
12219#ifdef RTLD_GLOBAL
12220# define LT_DLGLOBAL RTLD_GLOBAL
12221#else
12222# ifdef DL_GLOBAL
12223# define LT_DLGLOBAL DL_GLOBAL
12224# else
12225# define LT_DLGLOBAL 0
12226# endif
12227#endif
12228
12229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12230 find out it does not work in some platform. */
12231#ifndef LT_DLLAZY_OR_NOW
12232# ifdef RTLD_LAZY
12233# define LT_DLLAZY_OR_NOW RTLD_LAZY
12234# else
12235# ifdef DL_LAZY
12236# define LT_DLLAZY_OR_NOW DL_LAZY
12237# else
12238# ifdef RTLD_NOW
12239# define LT_DLLAZY_OR_NOW RTLD_NOW
12240# else
12241# ifdef DL_NOW
12242# define LT_DLLAZY_OR_NOW DL_NOW
12243# else
12244# define LT_DLLAZY_OR_NOW 0
12245# endif
12246# endif
12247# endif
12248# endif
12249#endif
12250
43e02a8a
RW
12251/* When -fvisbility=hidden is used, assume the code has been annotated
12252 correspondingly for the symbols needed. */
12253#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12254void fnord () __attribute__((visibility("default")));
12255#endif
12256
12257void fnord () { int i=42; }
1cf3d07d
SE
12258int main ()
12259{
12260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12261 int status = $lt_dlunknown;
12262
12263 if (self)
12264 {
12265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12266 else
12267 {
12268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12269 else puts (dlerror ());
12270 }
1cf3d07d
SE
12271 /* dlclose (self); */
12272 }
12273 else
12274 puts (dlerror ());
12275
d58dead8 12276 return status;
1cf3d07d
SE
12277}
12278_LT_EOF
5213506e 12279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
12280 (eval $ac_link) 2>&5
12281 ac_status=$?
5213506e
RW
12282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12283 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
12284 (./conftest; exit; ) >&5 2>/dev/null
12285 lt_status=$?
12286 case x$lt_status in
12287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12290 esac
12291 else :
12292 # compilation failed
12293 lt_cv_dlopen_self_static=no
12294 fi
12295fi
12296rm -fr conftest*
12297
12298
12299fi
5213506e
RW
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12301$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
12302 fi
12303
12304 CPPFLAGS="$save_CPPFLAGS"
12305 LDFLAGS="$save_LDFLAGS"
12306 LIBS="$save_LIBS"
12307 ;;
12308 esac
12309
12310 case $lt_cv_dlopen_self in
12311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12312 *) enable_dlopen_self=unknown ;;
12313 esac
12314
12315 case $lt_cv_dlopen_self_static in
12316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12317 *) enable_dlopen_self_static=unknown ;;
12318 esac
12319fi
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337striplib=
12338old_striplib=
5213506e
RW
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12340$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
12341if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12345$as_echo "yes" >&6; }
1cf3d07d
SE
12346else
12347# FIXME - insert some real tests, host_os isn't really good enough
12348 case $host_os in
12349 darwin*)
12350 if test -n "$STRIP" ; then
12351 striplib="$STRIP -x"
12352 old_striplib="$STRIP -S"
5213506e
RW
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12354$as_echo "yes" >&6; }
1cf3d07d 12355 else
5213506e
RW
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357$as_echo "no" >&6; }
1cf3d07d
SE
12358 fi
12359 ;;
12360 *)
5213506e
RW
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
1cf3d07d
SE
12363 ;;
12364 esac
12365fi
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
43e02a8a
RW
12378 # Report which library types will actually be built
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12380$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12382$as_echo "$can_build_shared" >&6; }
1cf3d07d 12383
43e02a8a
RW
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12385$as_echo_n "checking whether to build shared libraries... " >&6; }
12386 test "$can_build_shared" = "no" && enable_shared=no
1cf3d07d 12387
43e02a8a
RW
12388 # On AIX, shared libraries and static libraries use the same namespace, and
12389 # are all built from PIC.
12390 case $host_os in
12391 aix3*)
12392 test "$enable_shared" = yes && enable_static=no
12393 if test -n "$RANLIB"; then
12394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12395 postinstall_cmds='$RANLIB $lib'
12396 fi
12397 ;;
1cf3d07d 12398
43e02a8a
RW
12399 aix[4-9]*)
12400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12401 test "$enable_shared" = yes && enable_static=no
12402 fi
12403 ;;
12404 esac
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12406$as_echo "$enable_shared" >&6; }
1cf3d07d 12407
43e02a8a
RW
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12409$as_echo_n "checking whether to build static libraries... " >&6; }
12410 # Make sure either enable_shared or enable_static is yes.
12411 test "$enable_shared" = yes || enable_static=yes
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12413$as_echo "$enable_static" >&6; }
1cf3d07d 12414
1cf3d07d 12415
1cf3d07d 12416
1cf3d07d
SE
12417
12418fi
1cf3d07d
SE
12419ac_ext=c
12420ac_cpp='$CPP $CPPFLAGS'
12421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423ac_compiler_gnu=$ac_cv_c_compiler_gnu
12424
43e02a8a
RW
12425CC="$lt_save_CC"
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439 ac_config_commands="$ac_config_commands libtool"
12440
12441
12442
12443
12444# Only expand once:
12445
12446
12447
12448
7de6ba7a
DK
12449
12450case $host in
12451 *-cygwin* | *-mingw*)
12452 # 'host' will be top-level target in the case of a target lib,
12453 # we must compare to with_cross_host to decide if this is a native
12454 # or cross-compiler and select where to install dlls appropriately.
12455 if test -n "$with_cross_host" &&
12456 test x"$with_cross_host" != x"no"; then
12457 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12458 else
12459 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12460 fi
12461 ;;
12462 *)
12463 lt_host_flags=
12464 ;;
12465esac
12466
12467
12468
12469
12470
43e02a8a 12471#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
1cf3d07d 12472
43e02a8a
RW
12473# We need gfortran to compile parts of the library
12474#AC_PROG_FC(gfortran)
12475FC="$GFORTRAN"
5213506e
RW
12476ac_ext=${ac_fc_srcext-f}
12477ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12478ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12479ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12480if test -n "$ac_tool_prefix"; then
43e02a8a 12481 for ac_prog in gfortran
1cf3d07d
SE
12482 do
12483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12484set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486$as_echo_n "checking for $ac_word... " >&6; }
12487if test "${ac_cv_prog_FC+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12489else
12490 if test -n "$FC"; then
12491 ac_cv_prog_FC="$FC" # Let the user override the test.
12492else
12493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494for as_dir in $PATH
12495do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
5213506e
RW
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12500 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12502 break 2
12503 fi
12504done
5213506e
RW
12505 done
12506IFS=$as_save_IFS
1cf3d07d
SE
12507
12508fi
12509fi
12510FC=$ac_cv_prog_FC
12511if test -n "$FC"; then
5213506e
RW
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12513$as_echo "$FC" >&6; }
1cf3d07d 12514else
5213506e
RW
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516$as_echo "no" >&6; }
1cf3d07d
SE
12517fi
12518
5213506e 12519
1cf3d07d
SE
12520 test -n "$FC" && break
12521 done
12522fi
12523if test -z "$FC"; then
12524 ac_ct_FC=$FC
43e02a8a 12525 for ac_prog in gfortran
1cf3d07d
SE
12526do
12527 # Extract the first word of "$ac_prog", so it can be a program name with args.
12528set dummy $ac_prog; ac_word=$2
5213506e
RW
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530$as_echo_n "checking for $ac_word... " >&6; }
12531if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12532 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12533else
12534 if test -n "$ac_ct_FC"; then
12535 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12536else
12537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538for as_dir in $PATH
12539do
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
5213506e
RW
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 12544 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
12546 break 2
12547 fi
12548done
5213506e
RW
12549 done
12550IFS=$as_save_IFS
1cf3d07d
SE
12551
12552fi
12553fi
12554ac_ct_FC=$ac_cv_prog_ac_ct_FC
12555if test -n "$ac_ct_FC"; then
5213506e
RW
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12557$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 12558else
5213506e
RW
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560$as_echo "no" >&6; }
1cf3d07d
SE
12561fi
12562
5213506e 12563
1cf3d07d 12564 test -n "$ac_ct_FC" && break
38d24731
RW
12565done
12566
5213506e
RW
12567 if test "x$ac_ct_FC" = x; then
12568 FC=""
12569 else
12570 case $cross_compiling:$ac_tool_warned in
12571yes:)
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12574ac_tool_warned=yes ;;
12575esac
12576 FC=$ac_ct_FC
12577 fi
1cf3d07d
SE
12578fi
12579
12580
12581# Provide some information about the compiler.
5213506e
RW
12582$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12583set X $ac_compile
12584ac_compiler=$2
12585for ac_option in --version -v -V -qversion; do
12586 { { ac_try="$ac_compiler $ac_option >&5"
12587case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590esac
12591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12592$as_echo "$ac_try_echo"; } >&5
12593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 12594 ac_status=$?
5213506e
RW
12595 if test -s conftest.err; then
12596 sed '10a\
12597... rest of stderr output deleted ...
12598 10q' conftest.err >conftest.er1
12599 cat conftest.er1 >&5
12600 rm -f conftest.er1 conftest.err
12601 fi
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; }
12604done
1cf3d07d
SE
12605rm -f a.out
12606
12607# If we don't use `.F' as extension, the preprocessor is not run on the
12608# input file. (Note that this only needs to work for GNU compilers.)
12609ac_save_ext=$ac_ext
12610ac_ext=F
5213506e
RW
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12612$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12613if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
1cf3d07d 12615else
5213506e 12616 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12617 program main
12618#ifndef __GNUC__
12619 choke me
12620#endif
12621
12622 end
12623_ACEOF
5213506e 12624if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12625 ac_compiler_gnu=yes
12626else
5213506e 12627 ac_compiler_gnu=no
1cf3d07d 12628fi
5213506e 12629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12630ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12631
12632fi
5213506e
RW
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12634$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 12635ac_ext=$ac_save_ext
5213506e
RW
12636ac_test_FCFLAGS=${FCFLAGS+set}
12637ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 12638FCFLAGS=
5213506e
RW
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12640$as_echo_n "checking whether $FC accepts -g... " >&6; }
12641if test "${ac_cv_prog_fc_g+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12643else
12644 FCFLAGS=-g
5213506e 12645cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
12646 program main
12647
12648 end
12649_ACEOF
5213506e 12650if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
12651 ac_cv_prog_fc_g=yes
12652else
5213506e 12653 ac_cv_prog_fc_g=no
1cf3d07d 12654fi
5213506e 12655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
12656
12657fi
5213506e
RW
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12659$as_echo "$ac_cv_prog_fc_g" >&6; }
12660if test "$ac_test_FCFLAGS" = set; then
12661 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
12662elif test $ac_cv_prog_fc_g = yes; then
12663 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12664 FCFLAGS="-g -O2"
12665 else
12666 FCFLAGS="-g"
12667 fi
12668else
12669 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12670 FCFLAGS="-O2"
12671 else
12672 FCFLAGS=
12673 fi
12674fi
12675
12676ac_ext=c
12677ac_cpp='$CPP $CPPFLAGS'
12678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680ac_compiler_gnu=$ac_cv_c_compiler_gnu
12681
5213506e
RW
12682 ac_ext=${ac_fc_srcext-f}
12683ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12684ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
12685ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12686
12687
43e02a8a
RW
12688if test -z "$FC" || test "X$FC" = "Xno"; then
12689 _lt_disable_FC=yes
12690fi
12691
1cf3d07d
SE
12692archive_cmds_need_lc_FC=no
12693allow_undefined_flag_FC=
12694always_export_symbols_FC=no
12695archive_expsym_cmds_FC=
12696export_dynamic_flag_spec_FC=
12697hardcode_direct_FC=no
12698hardcode_direct_absolute_FC=no
12699hardcode_libdir_flag_spec_FC=
12700hardcode_libdir_flag_spec_ld_FC=
12701hardcode_libdir_separator_FC=
12702hardcode_minus_L_FC=no
12703hardcode_automatic_FC=no
12704inherit_rpath_FC=no
12705module_cmds_FC=
12706module_expsym_cmds_FC=
12707link_all_deplibs_FC=unknown
12708old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
12709reload_flag_FC=$reload_flag
12710reload_cmds_FC=$reload_cmds
1cf3d07d
SE
12711no_undefined_flag_FC=
12712whole_archive_flag_spec_FC=
12713enable_shared_with_static_runtimes_FC=no
12714
12715# Source file extension for fc test sources.
12716ac_ext=${ac_fc_srcext-f}
12717
12718# Object file extension for compiled fc test sources.
12719objext=o
12720objext_FC=$objext
12721
12722# No sense in running all these tests if we already determined that
12723# the FC compiler isn't working. Some variables (like enable_shared)
12724# are currently assumed to apply to all compilers on this platform,
12725# and will be corrupted by setting them based on a non-working compiler.
12726if test "$_lt_disable_FC" != yes; then
12727 # Code to be used in simple compile tests
12728 lt_simple_compile_test_code="\
12729 subroutine t
12730 return
12731 end
12732"
12733
12734 # Code to be used in simple link tests
12735 lt_simple_link_test_code="\
12736 program t
12737 end
12738"
12739
12740 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12741
12742
12743
12744
12745
12746
12747# If no C compiler was specified, use CC.
12748LTCC=${LTCC-"$CC"}
12749
12750# If no C compiler flags were specified, use CFLAGS.
12751LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12752
12753# Allow CC to be a program name with arguments.
12754compiler=$CC
12755
12756
12757 # save warnings/boilerplate of simple test code
12758 ac_outfile=conftest.$ac_objext
12759echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12760eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12761_lt_compiler_boilerplate=`cat conftest.err`
12762$RM conftest*
12763
12764 ac_outfile=conftest.$ac_objext
12765echo "$lt_simple_link_test_code" >conftest.$ac_ext
12766eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12767_lt_linker_boilerplate=`cat conftest.err`
d58dead8 12768$RM -r conftest*
1cf3d07d
SE
12769
12770
12771 # Allow CC to be a program name with arguments.
12772 lt_save_CC="$CC"
d58dead8 12773 lt_save_GCC=$GCC
1cf3d07d
SE
12774 CC=${FC-"f95"}
12775 compiler=$CC
d58dead8
PG
12776 GCC=$ac_cv_fc_compiler_gnu
12777
1cf3d07d
SE
12778 compiler_FC=$CC
12779 for cc_temp in $compiler""; do
12780 case $cc_temp in
12781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12783 \-*) ;;
12784 *) break;;
12785 esac
12786done
43e02a8a 12787cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
12788
12789
12790 if test -n "$compiler"; then
5213506e
RW
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12792$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12794$as_echo "$can_build_shared" >&6; }
1cf3d07d 12795
5213506e
RW
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12797$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
12798 test "$can_build_shared" = "no" && enable_shared=no
12799
12800 # On AIX, shared libraries and static libraries use the same namespace, and
12801 # are all built from PIC.
12802 case $host_os in
12803 aix3*)
12804 test "$enable_shared" = yes && enable_static=no
12805 if test -n "$RANLIB"; then
12806 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12807 postinstall_cmds='$RANLIB $lib'
12808 fi
12809 ;;
4f6bebc3 12810 aix[4-9]*)
1cf3d07d
SE
12811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12812 test "$enable_shared" = yes && enable_static=no
12813 fi
12814 ;;
12815 esac
5213506e
RW
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12817$as_echo "$enable_shared" >&6; }
1cf3d07d 12818
5213506e
RW
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12820$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
12821 # Make sure either enable_shared or enable_static is yes.
12822 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12824$as_echo "$enable_static" >&6; }
1cf3d07d
SE
12825
12826 GCC_FC="$ac_cv_fc_compiler_gnu"
12827 LD_FC="$LD"
12828
12829 ## CAVEAT EMPTOR:
12830 ## There is no encapsulation within the following macros, do not change
12831 ## the running order or otherwise move them around unless you know exactly
12832 ## what you are doing...
12833 # Dependencies to place before and after the object being linked:
12834predep_objects_FC=
12835postdep_objects_FC=
12836predeps_FC=
12837postdeps_FC=
12838compiler_lib_search_path_FC=
12839
12840cat > conftest.$ac_ext <<_LT_EOF
12841 subroutine foo
12842 implicit none
12843 integer a
12844 a=0
12845 return
12846 end
12847_LT_EOF
12848
5213506e 12849if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
12850 (eval $ac_compile) 2>&5
12851 ac_status=$?
5213506e
RW
12852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12853 test $ac_status = 0; }; then
1cf3d07d
SE
12854 # Parse the compiler output and extract the necessary
12855 # objects, libraries and library flags.
12856
12857 # Sentinel used to keep track of whether or not we are before
12858 # the conftest object file.
12859 pre_test_object_deps_done=no
12860
d58dead8 12861 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
12862 case $p in
12863
12864 -L* | -R* | -l*)
12865 # Some compilers place space between "-{L,R}" and the path.
12866 # Remove the space.
12867 if test $p = "-L" ||
12868 test $p = "-R"; then
12869 prev=$p
12870 continue
12871 else
12872 prev=
12873 fi
12874
12875 if test "$pre_test_object_deps_done" = no; then
12876 case $p in
12877 -L* | -R*)
12878 # Internal compiler library paths should come after those
12879 # provided the user. The postdeps already come after the
12880 # user supplied libs so there is no need to process them.
12881 if test -z "$compiler_lib_search_path_FC"; then
12882 compiler_lib_search_path_FC="${prev}${p}"
12883 else
12884 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12885 fi
12886 ;;
12887 # The "-l" case would never come before the object being
12888 # linked, so don't bother handling this case.
12889 esac
12890 else
12891 if test -z "$postdeps_FC"; then
12892 postdeps_FC="${prev}${p}"
12893 else
12894 postdeps_FC="${postdeps_FC} ${prev}${p}"
12895 fi
12896 fi
12897 ;;
12898
12899 *.$objext)
12900 # This assumes that the test object file only shows up
12901 # once in the compiler output.
12902 if test "$p" = "conftest.$objext"; then
12903 pre_test_object_deps_done=yes
12904 continue
12905 fi
12906
12907 if test "$pre_test_object_deps_done" = no; then
12908 if test -z "$predep_objects_FC"; then
12909 predep_objects_FC="$p"
12910 else
12911 predep_objects_FC="$predep_objects_FC $p"
12912 fi
12913 else
12914 if test -z "$postdep_objects_FC"; then
12915 postdep_objects_FC="$p"
12916 else
12917 postdep_objects_FC="$postdep_objects_FC $p"
12918 fi
12919 fi
12920 ;;
12921
12922 *) ;; # Ignore the rest.
12923
12924 esac
12925 done
12926
12927 # Clean up.
12928 rm -f a.out a.exe
12929else
12930 echo "libtool.m4: error: problem compiling FC test program"
12931fi
12932
12933$RM -f confest.$objext
12934
12935# PORTME: override above test on systems where it is broken
12936
12937
12938case " $postdeps_FC " in
12939*" -lc "*) archive_cmds_need_lc_FC=no ;;
12940esac
d58dead8
PG
12941 compiler_lib_search_dirs_FC=
12942if test -n "${compiler_lib_search_path_FC}"; then
12943 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12944fi
12945
12946
12947
12948
12949
1cf3d07d
SE
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976 lt_prog_compiler_wl_FC=
12977lt_prog_compiler_pic_FC=
12978lt_prog_compiler_static_FC=
12979
5213506e
RW
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12981$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
12982
12983 if test "$GCC" = yes; then
12984 lt_prog_compiler_wl_FC='-Wl,'
12985 lt_prog_compiler_static_FC='-static'
12986
12987 case $host_os in
12988 aix*)
12989 # All AIX code is PIC.
12990 if test "$host_cpu" = ia64; then
12991 # AIX 5 now supports IA64 processor
12992 lt_prog_compiler_static_FC='-Bstatic'
12993 fi
12994 ;;
12995
12996 amigaos*)
d58dead8
PG
12997 case $host_cpu in
12998 powerpc)
12999 # see comment about AmigaOS4 .so support
13000 lt_prog_compiler_pic_FC='-fPIC'
13001 ;;
13002 m68k)
13003 # FIXME: we need at least 68020 code to build shared libraries, but
13004 # adding the `-m68020' flag to GCC prevents building anything better,
13005 # like `-m68040'.
13006 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13007 ;;
13008 esac
1cf3d07d
SE
13009 ;;
13010
13011 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13012 # PIC is the default for these OSes.
13013 ;;
13014
d58dead8 13015 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13016 # This hack is so that the source file can tell whether it is being
13017 # built for inclusion in a dll (and should export symbols for example).
13018 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13019 # (--disable-auto-import) libraries
13020 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13021 ;;
13022
13023 darwin* | rhapsody*)
13024 # PIC is the default on this platform
13025 # Common symbols not allowed in MH_DYLIB files
13026 lt_prog_compiler_pic_FC='-fno-common'
13027 ;;
13028
43e02a8a
RW
13029 haiku*)
13030 # PIC is the default for Haiku.
13031 # The "-static" flag exists, but is broken.
13032 lt_prog_compiler_static_FC=
13033 ;;
13034
1cf3d07d 13035 hpux*)
d58dead8
PG
13036 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13037 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13038 # sets the default TLS model and affects inlining.
1cf3d07d 13039 case $host_cpu in
d58dead8 13040 hppa*64*)
1cf3d07d
SE
13041 # +Z the default
13042 ;;
13043 *)
13044 lt_prog_compiler_pic_FC='-fPIC'
13045 ;;
13046 esac
13047 ;;
13048
13049 interix[3-9]*)
13050 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13051 # Instead, we relocate shared libraries at runtime.
13052 ;;
13053
13054 msdosdjgpp*)
13055 # Just because we use GCC doesn't mean we suddenly get shared libraries
13056 # on systems that don't support them.
13057 lt_prog_compiler_can_build_shared_FC=no
13058 enable_shared=no
13059 ;;
13060
13061 *nto* | *qnx*)
13062 # QNX uses GNU C++, but need to define -shared option too, otherwise
13063 # it will coredump.
13064 lt_prog_compiler_pic_FC='-fPIC -shared'
13065 ;;
13066
13067 sysv4*MP*)
13068 if test -d /usr/nec; then
13069 lt_prog_compiler_pic_FC=-Kconform_pic
13070 fi
13071 ;;
13072
13073 *)
13074 lt_prog_compiler_pic_FC='-fPIC'
13075 ;;
13076 esac
43e02a8a
RW
13077
13078 case $cc_basename in
13079 nvcc*) # Cuda Compiler Driver 2.2
13080 lt_prog_compiler_wl_FC='-Xlinker '
13081 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13082 ;;
13083 esac
1cf3d07d
SE
13084 else
13085 # PORTME Check for flag to pass linker flags through the system compiler.
13086 case $host_os in
13087 aix*)
13088 lt_prog_compiler_wl_FC='-Wl,'
13089 if test "$host_cpu" = ia64; then
13090 # AIX 5 now supports IA64 processor
13091 lt_prog_compiler_static_FC='-Bstatic'
13092 else
13093 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13094 fi
13095 ;;
1cf3d07d 13096
d58dead8 13097 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
13098 # This hack is so that the source file can tell whether it is being
13099 # built for inclusion in a dll (and should export symbols for example).
13100 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13101 ;;
13102
13103 hpux9* | hpux10* | hpux11*)
13104 lt_prog_compiler_wl_FC='-Wl,'
13105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13106 # not for PA HP-UX.
13107 case $host_cpu in
13108 hppa*64*|ia64*)
13109 # +Z the default
13110 ;;
13111 *)
13112 lt_prog_compiler_pic_FC='+Z'
13113 ;;
13114 esac
13115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13116 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13117 ;;
13118
13119 irix5* | irix6* | nonstopux*)
13120 lt_prog_compiler_wl_FC='-Wl,'
13121 # PIC (with -KPIC) is the default.
13122 lt_prog_compiler_static_FC='-non_shared'
13123 ;;
13124
7a9d3fe8 13125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 13126 case $cc_basename in
d58dead8
PG
13127 # old Intel for x86_64 which still supported -KPIC.
13128 ecc*)
1cf3d07d
SE
13129 lt_prog_compiler_wl_FC='-Wl,'
13130 lt_prog_compiler_pic_FC='-KPIC'
13131 lt_prog_compiler_static_FC='-static'
13132 ;;
d58dead8
PG
13133 # icc used to be incompatible with GCC.
13134 # ICC 10 doesn't accept -KPIC any more.
13135 icc* | ifort*)
13136 lt_prog_compiler_wl_FC='-Wl,'
13137 lt_prog_compiler_pic_FC='-fPIC'
13138 lt_prog_compiler_static_FC='-static'
13139 ;;
13140 # Lahey Fortran 8.1.
13141 lf95*)
13142 lt_prog_compiler_wl_FC='-Wl,'
13143 lt_prog_compiler_pic_FC='--shared'
13144 lt_prog_compiler_static_FC='--static'
13145 ;;
43e02a8a 13146 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
13147 # Portland Group compilers (*not* the Pentium gcc compiler,
13148 # which looks to be a dead project)
13149 lt_prog_compiler_wl_FC='-Wl,'
13150 lt_prog_compiler_pic_FC='-fpic'
13151 lt_prog_compiler_static_FC='-Bstatic'
13152 ;;
13153 ccc*)
13154 lt_prog_compiler_wl_FC='-Wl,'
13155 # All Alpha code is PIC.
13156 lt_prog_compiler_static_FC='-non_shared'
13157 ;;
43e02a8a
RW
13158 xl* | bgxl* | bgf* | mpixl*)
13159 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d58dead8
PG
13160 lt_prog_compiler_wl_FC='-Wl,'
13161 lt_prog_compiler_pic_FC='-qpic'
13162 lt_prog_compiler_static_FC='-qstaticlink'
13163 ;;
1cf3d07d
SE
13164 *)
13165 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
13166 *Sun\ F* | *Sun*Fortran*)
13167 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
13168 lt_prog_compiler_pic_FC='-KPIC'
13169 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13170 lt_prog_compiler_wl_FC=''
1cf3d07d 13171 ;;
43e02a8a
RW
13172 *Sun\ C*)
13173 # Sun C 5.9
1cf3d07d
SE
13174 lt_prog_compiler_pic_FC='-KPIC'
13175 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 13176 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
13177 ;;
13178 esac
13179 ;;
13180 esac
13181 ;;
13182
13183 newsos6)
13184 lt_prog_compiler_pic_FC='-KPIC'
13185 lt_prog_compiler_static_FC='-Bstatic'
13186 ;;
13187
13188 *nto* | *qnx*)
13189 # QNX uses GNU C++, but need to define -shared option too, otherwise
13190 # it will coredump.
13191 lt_prog_compiler_pic_FC='-fPIC -shared'
13192 ;;
13193
13194 osf3* | osf4* | osf5*)
13195 lt_prog_compiler_wl_FC='-Wl,'
13196 # All OSF/1 code is PIC.
13197 lt_prog_compiler_static_FC='-non_shared'
13198 ;;
13199
13200 rdos*)
13201 lt_prog_compiler_static_FC='-non_shared'
13202 ;;
13203
13204 solaris*)
13205 lt_prog_compiler_pic_FC='-KPIC'
13206 lt_prog_compiler_static_FC='-Bstatic'
13207 case $cc_basename in
13208 f77* | f90* | f95*)
13209 lt_prog_compiler_wl_FC='-Qoption ld ';;
13210 *)
13211 lt_prog_compiler_wl_FC='-Wl,';;
13212 esac
13213 ;;
13214
13215 sunos4*)
13216 lt_prog_compiler_wl_FC='-Qoption ld '
13217 lt_prog_compiler_pic_FC='-PIC'
13218 lt_prog_compiler_static_FC='-Bstatic'
13219 ;;
13220
13221 sysv4 | sysv4.2uw2* | sysv4.3*)
13222 lt_prog_compiler_wl_FC='-Wl,'
13223 lt_prog_compiler_pic_FC='-KPIC'
13224 lt_prog_compiler_static_FC='-Bstatic'
13225 ;;
13226
13227 sysv4*MP*)
13228 if test -d /usr/nec ;then
13229 lt_prog_compiler_pic_FC='-Kconform_pic'
13230 lt_prog_compiler_static_FC='-Bstatic'
13231 fi
13232 ;;
13233
13234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13235 lt_prog_compiler_wl_FC='-Wl,'
13236 lt_prog_compiler_pic_FC='-KPIC'
13237 lt_prog_compiler_static_FC='-Bstatic'
13238 ;;
13239
13240 unicos*)
13241 lt_prog_compiler_wl_FC='-Wl,'
13242 lt_prog_compiler_can_build_shared_FC=no
13243 ;;
13244
13245 uts4*)
13246 lt_prog_compiler_pic_FC='-pic'
13247 lt_prog_compiler_static_FC='-Bstatic'
13248 ;;
13249
13250 *)
13251 lt_prog_compiler_can_build_shared_FC=no
13252 ;;
13253 esac
13254 fi
13255
13256case $host_os in
13257 # For platforms which do not support PIC, -DPIC is meaningless:
13258 *djgpp*)
13259 lt_prog_compiler_pic_FC=
13260 ;;
13261 *)
13262 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13263 ;;
13264esac
5213506e
RW
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13266$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
13267
13268
13269
13270#
13271# Check to make sure the PIC flag actually works.
13272#
13273if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13275$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13276if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
1cf3d07d 13278else
d58dead8 13279 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
13280 ac_outfile=conftest.$ac_objext
13281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13282 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13283 # Insert the option either (1) after the last *FLAGS variable, or
13284 # (2) before a word containing "conftest.", or (3) at the end.
13285 # Note that $ac_compile itself does not contain backslashes and begins
13286 # with a dollar sign (not a hyphen), so the echo should work correctly.
13287 # The option is referenced via a variable to avoid confusing sed.
13288 lt_compile=`echo "$ac_compile" | $SED \
13289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13291 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13293 (eval "$lt_compile" 2>conftest.err)
13294 ac_status=$?
13295 cat conftest.err >&5
43e02a8a 13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13297 if (exit $ac_status) && test -s "$ac_outfile"; then
13298 # The compiler can only warn and ignore the option if not recognized
13299 # So say no if there are warnings other than the usual output.
43e02a8a 13300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
13301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13303 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
13304 fi
13305 fi
13306 $RM conftest*
13307
13308fi
5213506e
RW
13309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13310$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 13311
d58dead8 13312if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
13313 case $lt_prog_compiler_pic_FC in
13314 "" | " "*) ;;
13315 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13316 esac
13317else
13318 lt_prog_compiler_pic_FC=
13319 lt_prog_compiler_can_build_shared_FC=no
13320fi
13321
13322fi
13323
13324
13325
13326#
13327# Check to make sure the static flag actually works.
13328#
13329wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13331$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13332if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
1cf3d07d 13334else
d58dead8 13335 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
13336 save_LDFLAGS="$LDFLAGS"
13337 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13338 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13339 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13340 # The linker can only warn and ignore the option if not recognized
13341 # So say no if there are warnings
13342 if test -s conftest.err; then
13343 # Append any errors to the config.log.
13344 cat conftest.err 1>&5
43e02a8a 13345 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
13346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13347 if diff conftest.exp conftest.er2 >/dev/null; then
d58dead8 13348 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13349 fi
13350 else
d58dead8 13351 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
13352 fi
13353 fi
d58dead8 13354 $RM -r conftest*
1cf3d07d
SE
13355 LDFLAGS="$save_LDFLAGS"
13356
13357fi
5213506e
RW
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13359$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 13360
d58dead8 13361if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
13362 :
13363else
13364 lt_prog_compiler_static_FC=
13365fi
13366
13367
13368
13369
5213506e
RW
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13371$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13372if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13374else
13375 lt_cv_prog_compiler_c_o_FC=no
13376 $RM -r conftest 2>/dev/null
13377 mkdir conftest
13378 cd conftest
13379 mkdir out
13380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13381
13382 lt_compiler_flag="-o out/conftest2.$ac_objext"
13383 # Insert the option either (1) after the last *FLAGS variable, or
13384 # (2) before a word containing "conftest.", or (3) at the end.
13385 # Note that $ac_compile itself does not contain backslashes and begins
13386 # with a dollar sign (not a hyphen), so the echo should work correctly.
13387 lt_compile=`echo "$ac_compile" | $SED \
13388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13390 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13392 (eval "$lt_compile" 2>out/conftest.err)
13393 ac_status=$?
13394 cat out/conftest.err >&5
43e02a8a 13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13397 then
13398 # The compiler can only warn and ignore the option if not recognized
13399 # So say no if there are warnings
43e02a8a 13400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13403 lt_cv_prog_compiler_c_o_FC=yes
13404 fi
13405 fi
13406 chmod u+w . 2>&5
13407 $RM conftest*
13408 # SGI C++ compiler will create directory out/ii_files/ for
13409 # template instantiation
13410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13411 $RM out/* && rmdir out
13412 cd ..
13413 $RM -r conftest
13414 $RM conftest*
13415
13416fi
5213506e
RW
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13418$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13419
13420
13421
5213506e
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13423$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13424if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
1cf3d07d
SE
13426else
13427 lt_cv_prog_compiler_c_o_FC=no
13428 $RM -r conftest 2>/dev/null
13429 mkdir conftest
13430 cd conftest
13431 mkdir out
13432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13433
13434 lt_compiler_flag="-o out/conftest2.$ac_objext"
13435 # Insert the option either (1) after the last *FLAGS variable, or
13436 # (2) before a word containing "conftest.", or (3) at the end.
13437 # Note that $ac_compile itself does not contain backslashes and begins
13438 # with a dollar sign (not a hyphen), so the echo should work correctly.
13439 lt_compile=`echo "$ac_compile" | $SED \
13440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13442 -e 's:$: $lt_compiler_flag:'`
43e02a8a 13443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
13444 (eval "$lt_compile" 2>out/conftest.err)
13445 ac_status=$?
13446 cat out/conftest.err >&5
43e02a8a 13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13448 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13449 then
13450 # The compiler can only warn and ignore the option if not recognized
13451 # So say no if there are warnings
43e02a8a 13452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
13453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13455 lt_cv_prog_compiler_c_o_FC=yes
13456 fi
13457 fi
13458 chmod u+w . 2>&5
13459 $RM conftest*
13460 # SGI C++ compiler will create directory out/ii_files/ for
13461 # template instantiation
13462 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13463 $RM out/* && rmdir out
13464 cd ..
13465 $RM -r conftest
13466 $RM conftest*
13467
13468fi
5213506e
RW
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13470$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
13471
13472
13473
13474
13475hard_links="nottested"
13476if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13477 # do not overwrite the value of need_locks provided by the user
5213506e
RW
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13479$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
13480 hard_links=yes
13481 $RM conftest*
13482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13483 touch conftest.a
13484 ln conftest.a conftest.b 2>&5 || hard_links=no
13485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13487$as_echo "$hard_links" >&6; }
1cf3d07d 13488 if test "$hard_links" = no; then
5213506e
RW
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13490$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
13491 need_locks=warn
13492 fi
13493else
13494 need_locks=no
13495fi
13496
13497
13498
5213506e
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13500$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
13501
13502 runpath_var=
13503 allow_undefined_flag_FC=
13504 always_export_symbols_FC=no
13505 archive_cmds_FC=
13506 archive_expsym_cmds_FC=
13507 compiler_needs_object_FC=no
13508 enable_shared_with_static_runtimes_FC=no
13509 export_dynamic_flag_spec_FC=
13510 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13511 hardcode_automatic_FC=no
13512 hardcode_direct_FC=no
13513 hardcode_direct_absolute_FC=no
13514 hardcode_libdir_flag_spec_FC=
13515 hardcode_libdir_flag_spec_ld_FC=
13516 hardcode_libdir_separator_FC=
13517 hardcode_minus_L_FC=no
13518 hardcode_shlibpath_var_FC=unsupported
13519 inherit_rpath_FC=no
13520 link_all_deplibs_FC=unknown
13521 module_cmds_FC=
13522 module_expsym_cmds_FC=
13523 old_archive_from_new_cmds_FC=
13524 old_archive_from_expsyms_cmds_FC=
13525 thread_safe_flag_spec_FC=
13526 whole_archive_flag_spec_FC=
13527 # include_expsyms should be a list of space-separated symbols to be *always*
13528 # included in the symbol list
13529 include_expsyms_FC=
13530 # exclude_expsyms can be an extended regexp of symbols to exclude
13531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13533 # as well as any symbol that contains `d'.
d58dead8 13534 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
13535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13536 # platforms (ab)use it in PIC code, but their linkers get confused if
13537 # the symbol is explicitly referenced. Since portable code cannot
13538 # rely on this symbol name, it's probably fine to never include it in
13539 # preloaded symbol tables.
d58dead8 13540 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
13541 extract_expsyms_cmds=
13542
13543 case $host_os in
d58dead8 13544 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13545 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13546 # When not using gcc, we currently assume that we are using
13547 # Microsoft Visual C++.
13548 if test "$GCC" != yes; then
13549 with_gnu_ld=no
13550 fi
13551 ;;
13552 interix*)
13553 # we just hope/assume this is gcc and not c89 (= MSVC++)
13554 with_gnu_ld=yes
13555 ;;
13556 openbsd*)
13557 with_gnu_ld=no
13558 ;;
13559 esac
13560
13561 ld_shlibs_FC=yes
43e02a8a
RW
13562
13563 # On some targets, GNU ld is compatible enough with the native linker
13564 # that we're better off using the native interface for both.
13565 lt_use_gnu_ld_interface=no
1cf3d07d 13566 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
13567 case $host_os in
13568 aix*)
13569 # The AIX port of GNU ld has always aspired to compatibility
13570 # with the native linker. However, as the warning in the GNU ld
13571 # block says, versions before 2.19.5* couldn't really create working
13572 # shared libraries, regardless of the interface used.
13573 case `$LD -v 2>&1` in
13574 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13575 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13576 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13577 *)
13578 lt_use_gnu_ld_interface=yes
13579 ;;
13580 esac
13581 ;;
13582 *)
13583 lt_use_gnu_ld_interface=yes
13584 ;;
13585 esac
13586 fi
13587
13588 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
13589 # If archive_cmds runs LD, not CC, wlarc should be empty
13590 wlarc='${wl}'
13591
13592 # Set some defaults for GNU ld with shared library support. These
13593 # are reset later if shared libraries are not supported. Putting them
13594 # here allows them to be overridden if necessary.
13595 runpath_var=LD_RUN_PATH
13596 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13597 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13598 # ancient GNU ld didn't support --whole-archive et. al.
13599 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13600 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13601 else
13602 whole_archive_flag_spec_FC=
13603 fi
13604 supports_anon_versioning=no
13605 case `$LD -v 2>&1` in
43e02a8a 13606 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
13607 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13610 *\ 2.11.*) ;; # other 2.11 versions
13611 *) supports_anon_versioning=yes ;;
13612 esac
13613
13614 # See if GNU ld supports shared libraries.
13615 case $host_os in
4f6bebc3 13616 aix[3-9]*)
1cf3d07d
SE
13617 # On AIX/PPC, the GNU linker is very broken
13618 if test "$host_cpu" != ia64; then
13619 ld_shlibs_FC=no
13620 cat <<_LT_EOF 1>&2
13621
43e02a8a 13622*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
13623*** to be unable to reliably create shared libraries on AIX.
13624*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
13625*** really care for shared libraries, you may want to install binutils
13626*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13627*** You will then need to restart the configuration process.
1cf3d07d
SE
13628
13629_LT_EOF
13630 fi
13631 ;;
13632
13633 amigaos*)
d58dead8
PG
13634 case $host_cpu in
13635 powerpc)
13636 # see comment about AmigaOS4 .so support
13637 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13638 archive_expsym_cmds_FC=''
13639 ;;
13640 m68k)
13641 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)'
13642 hardcode_libdir_flag_spec_FC='-L$libdir'
13643 hardcode_minus_L_FC=yes
13644 ;;
13645 esac
1cf3d07d
SE
13646 ;;
13647
13648 beos*)
13649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13650 allow_undefined_flag_FC=unsupported
13651 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13652 # support --undefined. This deserves some investigation. FIXME
13653 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13654 else
13655 ld_shlibs_FC=no
13656 fi
13657 ;;
13658
d58dead8 13659 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13660 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13661 # as there is no search path for DLLs.
13662 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 13663 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
13664 allow_undefined_flag_FC=unsupported
13665 always_export_symbols_FC=no
13666 enable_shared_with_static_runtimes_FC=yes
13667 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13668
13669 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13670 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13671 # If the export-symbols file already is a .def file (1st line
13672 # is EXPORTS), use it as is; otherwise, prepend...
13673 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13674 cp $export_symbols $output_objdir/$soname.def;
13675 else
13676 echo EXPORTS > $output_objdir/$soname.def;
13677 cat $export_symbols >> $output_objdir/$soname.def;
13678 fi~
13679 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13680 else
13681 ld_shlibs_FC=no
13682 fi
13683 ;;
13684
43e02a8a
RW
13685 haiku*)
13686 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13687 link_all_deplibs_FC=yes
13688 ;;
13689
1cf3d07d
SE
13690 interix[3-9]*)
13691 hardcode_direct_FC=no
13692 hardcode_shlibpath_var_FC=no
13693 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13694 export_dynamic_flag_spec_FC='${wl}-E'
13695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13696 # Instead, shared libraries are loaded at an image base (0x10000000 by
13697 # default) and relocated if they conflict, which is a slow very memory
13698 # consuming and fragmenting process. To avoid this, we pick a random,
13699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13700 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13701 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'
13702 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'
13703 ;;
13704
7a9d3fe8 13705 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
13706 tmp_diet=no
13707 if test "$host_os" = linux-dietlibc; then
13708 case $cc_basename in
13709 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13710 esac
13711 fi
13712 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13713 && test "$tmp_diet" = no
13714 then
13715 tmp_addflag=
d58dead8 13716 tmp_sharedflag='-shared'
1cf3d07d
SE
13717 case $cc_basename,$host_cpu in
13718 pgcc*) # Portland Group C compiler
43e02a8a 13719 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
13720 tmp_addflag=' $pic_flag'
13721 ;;
43e02a8a
RW
13722 pgf77* | pgf90* | pgf95* | pgfortran*)
13723 # Portland Group f77 and f90 compilers
13724 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
13725 tmp_addflag=' $pic_flag -Mnomain' ;;
13726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13727 tmp_addflag=' -i_dynamic' ;;
13728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13729 tmp_addflag=' -i_dynamic -nofor_main' ;;
13730 ifc* | ifort*) # Intel Fortran compiler
13731 tmp_addflag=' -nofor_main' ;;
d58dead8
PG
13732 lf95*) # Lahey Fortran 8.1
13733 whole_archive_flag_spec_FC=
13734 tmp_sharedflag='--shared' ;;
43e02a8a 13735 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d58dead8
PG
13736 tmp_sharedflag='-qmkshrobj'
13737 tmp_addflag= ;;
43e02a8a
RW
13738 nvcc*) # Cuda Compiler Driver 2.2
13739 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'
13740 compiler_needs_object_FC=yes
13741 ;;
1cf3d07d
SE
13742 esac
13743 case `$CC -V 2>&1 | sed 5q` in
13744 *Sun\ C*) # Sun C 5.9
43e02a8a 13745 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
13746 compiler_needs_object_FC=yes
13747 tmp_sharedflag='-G' ;;
13748 *Sun\ F*) # Sun Fortran 8.3
13749 tmp_sharedflag='-G' ;;
1cf3d07d
SE
13750 esac
13751 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13752
13753 if test "x$supports_anon_versioning" = xyes; then
13754 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13756 echo "local: *; };" >> $output_objdir/$libname.ver~
13757 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13758 fi
d58dead8
PG
13759
13760 case $cc_basename in
43e02a8a 13761 xlf* | bgf* | bgxlf* | mpixlf*)
d58dead8
PG
13762 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13763 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13764 hardcode_libdir_flag_spec_FC=
13765 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13766 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13767 if test "x$supports_anon_versioning" = xyes; then
13768 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13770 echo "local: *; };" >> $output_objdir/$libname.ver~
13771 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13772 fi
13773 ;;
13774 esac
1cf3d07d
SE
13775 else
13776 ld_shlibs_FC=no
13777 fi
13778 ;;
13779
13780 netbsd*)
13781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13782 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13783 wlarc=
13784 else
13785 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13786 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13787 fi
13788 ;;
13789
13790 solaris*)
13791 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13792 ld_shlibs_FC=no
13793 cat <<_LT_EOF 1>&2
13794
13795*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13796*** create shared libraries on Solaris systems. Therefore, libtool
13797*** is disabling shared libraries support. We urge you to upgrade GNU
13798*** binutils to release 2.9.1 or newer. Another option is to modify
13799*** your PATH or compiler configuration so that the native linker is
13800*** used, and then restart.
13801
13802_LT_EOF
13803 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13804 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13805 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13806 else
13807 ld_shlibs_FC=no
13808 fi
13809 ;;
13810
13811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13812 case `$LD -v 2>&1` in
13813 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13814 ld_shlibs_FC=no
13815 cat <<_LT_EOF 1>&2
13816
13817*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13818*** reliably create shared libraries on SCO systems. Therefore, libtool
13819*** is disabling shared libraries support. We urge you to upgrade GNU
13820*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13821*** your PATH or compiler configuration so that the native linker is
13822*** used, and then restart.
13823
13824_LT_EOF
13825 ;;
13826 *)
13827 # For security reasons, it is highly recommended that you always
13828 # use absolute paths for naming shared libraries, and exclude the
13829 # DT_RUNPATH tag from executables and libraries. But doing so
13830 # requires that you compile everything twice, which is a pain.
13831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13832 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13833 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13835 else
13836 ld_shlibs_FC=no
13837 fi
13838 ;;
13839 esac
13840 ;;
13841
13842 sunos4*)
13843 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13844 wlarc=
13845 hardcode_direct_FC=yes
13846 hardcode_shlibpath_var_FC=no
13847 ;;
13848
13849 *)
13850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13851 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13852 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13853 else
13854 ld_shlibs_FC=no
13855 fi
13856 ;;
13857 esac
13858
13859 if test "$ld_shlibs_FC" = no; then
13860 runpath_var=
13861 hardcode_libdir_flag_spec_FC=
13862 export_dynamic_flag_spec_FC=
13863 whole_archive_flag_spec_FC=
13864 fi
13865 else
13866 # PORTME fill in a description of your system's linker (not GNU ld)
13867 case $host_os in
13868 aix3*)
13869 allow_undefined_flag_FC=unsupported
13870 always_export_symbols_FC=yes
13871 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'
13872 # Note: this linker hardcodes the directories in LIBPATH if there
13873 # are no directories specified by -L.
13874 hardcode_minus_L_FC=yes
13875 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13876 # Neither direct hardcoding nor static linking is supported with a
13877 # broken collect2.
13878 hardcode_direct_FC=unsupported
13879 fi
13880 ;;
13881
4f6bebc3 13882 aix[4-9]*)
1cf3d07d
SE
13883 if test "$host_cpu" = ia64; then
13884 # On IA64, the linker does run time linking by default, so we don't
13885 # have to do anything special.
13886 aix_use_runtimelinking=no
13887 exp_sym_flag='-Bexport'
13888 no_entry_flag=""
13889 else
13890 # If we're using GNU nm, then we don't want the "-C" option.
13891 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
13892 # Also, AIX nm treats weak defined symbols like other global
13893 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 13894 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 13895 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
13896 else
13897 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'
13898 fi
13899 aix_use_runtimelinking=no
13900
13901 # Test if we are trying to use run time linking or normal
13902 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13903 # need to do runtime linking.
4f6bebc3 13904 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
13905 for ld_flag in $LDFLAGS; do
13906 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13907 aix_use_runtimelinking=yes
13908 break
13909 fi
13910 done
13911 ;;
13912 esac
13913
13914 exp_sym_flag='-bexport'
13915 no_entry_flag='-bnoentry'
13916 fi
13917
13918 # When large executables or shared objects are built, AIX ld can
13919 # have problems creating the table of contents. If linking a library
13920 # or program results in "error TOC overflow" add -mminimal-toc to
13921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13923
13924 archive_cmds_FC=''
13925 hardcode_direct_FC=yes
13926 hardcode_direct_absolute_FC=yes
13927 hardcode_libdir_separator_FC=':'
13928 link_all_deplibs_FC=yes
13929 file_list_spec_FC='${wl}-f,'
13930
13931 if test "$GCC" = yes; then
13932 case $host_os in aix4.[012]|aix4.[012].*)
13933 # We only want to do this on AIX 4.2 and lower, the check
13934 # below for broken collect2 doesn't work under 4.3+
13935 collect2name=`${CC} -print-prog-name=collect2`
13936 if test -f "$collect2name" &&
13937 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13938 then
13939 # We have reworked collect2
13940 :
13941 else
13942 # We have old collect2
13943 hardcode_direct_FC=unsupported
13944 # It fails to find uninstalled libraries when the uninstalled
13945 # path is not listed in the libpath. Setting hardcode_minus_L
13946 # to unsupported forces relinking
13947 hardcode_minus_L_FC=yes
13948 hardcode_libdir_flag_spec_FC='-L$libdir'
13949 hardcode_libdir_separator_FC=
13950 fi
13951 ;;
13952 esac
13953 shared_flag='-shared'
13954 if test "$aix_use_runtimelinking" = yes; then
13955 shared_flag="$shared_flag "'${wl}-G'
13956 fi
13957 else
13958 # not using gcc
13959 if test "$host_cpu" = ia64; then
13960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13961 # chokes on -Wl,-G. The following line is correct:
13962 shared_flag='-G'
13963 else
13964 if test "$aix_use_runtimelinking" = yes; then
13965 shared_flag='${wl}-G'
13966 else
13967 shared_flag='${wl}-bM:SRE'
13968 fi
13969 fi
13970 fi
13971
d58dead8 13972 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
13973 # It seems that -bexpall does not export symbols beginning with
13974 # underscore (_), so it is better to generate a list of symbols to export.
13975 always_export_symbols_FC=yes
13976 if test "$aix_use_runtimelinking" = yes; then
13977 # Warning - without using the other runtime loading flags (-brtl),
13978 # -berok will link without error, but may produce a broken library.
13979 allow_undefined_flag_FC='-berok'
13980 # Determine the default libpath from the value encoded in an
13981 # empty executable.
13982 if test x$gcc_no_link = xyes; then
5213506e 13983 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 13984fi
5213506e 13985cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13986 program main
13987
13988 end
13989_ACEOF
5213506e 13990if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
13991
13992lt_aix_libpath_sed='
13993 /Import File Strings/,/^$/ {
13994 /^0/ {
13995 s/^0 *\(.*\)$/\1/
13996 p
13997 }
13998 }'
13999aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14000# Check for a 64-bit object if we didn't find anything.
14001if test -z "$aix_libpath"; then
14002 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14003fi
1cf3d07d 14004fi
5213506e
RW
14005rm -f core conftest.err conftest.$ac_objext \
14006 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14007if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14008
14009 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 14010 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
14011 else
14012 if test "$host_cpu" = ia64; then
14013 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14014 allow_undefined_flag_FC="-z nodefs"
14015 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"
14016 else
14017 # Determine the default libpath from the value encoded in an
14018 # empty executable.
14019 if test x$gcc_no_link = xyes; then
5213506e 14020 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14021fi
5213506e 14022cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14023 program main
14024
14025 end
14026_ACEOF
5213506e 14027if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
14028
14029lt_aix_libpath_sed='
14030 /Import File Strings/,/^$/ {
14031 /^0/ {
14032 s/^0 *\(.*\)$/\1/
14033 p
14034 }
14035 }'
14036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14037# Check for a 64-bit object if we didn't find anything.
14038if test -z "$aix_libpath"; then
14039 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14040fi
1cf3d07d 14041fi
5213506e
RW
14042rm -f core conftest.err conftest.$ac_objext \
14043 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14045
14046 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14047 # Warning - without using the other run time loading flags,
14048 # -berok will link without error, but may produce a broken library.
14049 no_undefined_flag_FC=' ${wl}-bernotok'
14050 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
14051 if test "$with_gnu_ld" = yes; then
14052 # We only use this code for GNU lds that support --whole-archive.
14053 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14054 else
14055 # Exported symbols can be pulled into shared objects from archives
14056 whole_archive_flag_spec_FC='$convenience'
14057 fi
1cf3d07d
SE
14058 archive_cmds_need_lc_FC=yes
14059 # This is similar to how AIX traditionally builds its shared libraries.
14060 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'
14061 fi
14062 fi
14063 ;;
14064
14065 amigaos*)
d58dead8
PG
14066 case $host_cpu in
14067 powerpc)
14068 # see comment about AmigaOS4 .so support
14069 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 archive_expsym_cmds_FC=''
14071 ;;
14072 m68k)
14073 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)'
14074 hardcode_libdir_flag_spec_FC='-L$libdir'
14075 hardcode_minus_L_FC=yes
14076 ;;
14077 esac
1cf3d07d
SE
14078 ;;
14079
14080 bsdi[45]*)
14081 export_dynamic_flag_spec_FC=-rdynamic
14082 ;;
14083
d58dead8 14084 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14085 # When not using gcc, we currently assume that we are using
14086 # Microsoft Visual C++.
14087 # hardcode_libdir_flag_spec is actually meaningless, as there is
14088 # no search path for DLLs.
14089 hardcode_libdir_flag_spec_FC=' '
14090 allow_undefined_flag_FC=unsupported
14091 # Tell ltmain to make .lib files, not .a files.
14092 libext=lib
14093 # Tell ltmain to make .dll files, not .so files.
14094 shrext_cmds=".dll"
14095 # FIXME: Setting linknames here is a bad hack.
43e02a8a 14096 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
14097 # The linker will automatically build a .lib file if we build a DLL.
14098 old_archive_from_new_cmds_FC='true'
14099 # FIXME: Should let the user specify the lib program.
14100 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14101 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14102 enable_shared_with_static_runtimes_FC=yes
14103 ;;
14104
14105 darwin* | rhapsody*)
1cf3d07d 14106
d58dead8
PG
14107
14108 archive_cmds_need_lc_FC=no
14109 hardcode_direct_FC=no
14110 hardcode_automatic_FC=yes
14111 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
14112 if test "$lt_cv_ld_force_load" = "yes"; then
14113 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\"`'
14114 else
14115 whole_archive_flag_spec_FC=''
14116 fi
d58dead8
PG
14117 link_all_deplibs_FC=yes
14118 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14119 case $cc_basename in
14120 ifort*) _lt_dar_can_shared=yes ;;
14121 *) _lt_dar_can_shared=$GCC ;;
14122 esac
14123 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14124 output_verbose_link_cmd=func_echo_all
d58dead8
PG
14125 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}"
14126 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14127 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}"
14128 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}"
14129
14130 else
14131 ld_shlibs_FC=no
14132 fi
14133
1cf3d07d
SE
14134 ;;
14135
14136 dgux*)
14137 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14138 hardcode_libdir_flag_spec_FC='-L$libdir'
14139 hardcode_shlibpath_var_FC=no
14140 ;;
14141
1cf3d07d
SE
14142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14143 # support. Future versions do this automatically, but an explicit c++rt0.o
14144 # does not break anything, and helps significantly (at the cost of a little
14145 # extra space).
14146 freebsd2.2*)
14147 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14148 hardcode_libdir_flag_spec_FC='-R$libdir'
14149 hardcode_direct_FC=yes
14150 hardcode_shlibpath_var_FC=no
14151 ;;
14152
14153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14154 freebsd2*)
14155 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14156 hardcode_direct_FC=yes
14157 hardcode_minus_L_FC=yes
14158 hardcode_shlibpath_var_FC=no
14159 ;;
14160
14161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14162 freebsd* | dragonfly*)
14163 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14164 hardcode_libdir_flag_spec_FC='-R$libdir'
14165 hardcode_direct_FC=yes
14166 hardcode_shlibpath_var_FC=no
14167 ;;
14168
14169 hpux9*)
14170 if test "$GCC" = yes; then
14171 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'
14172 else
14173 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'
14174 fi
14175 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14176 hardcode_libdir_separator_FC=:
14177 hardcode_direct_FC=yes
14178
14179 # hardcode_minus_L: Not really in the search PATH,
14180 # but as the default location of the library.
14181 hardcode_minus_L_FC=yes
14182 export_dynamic_flag_spec_FC='${wl}-E'
14183 ;;
14184
14185 hpux10*)
43e02a8a 14186 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14187 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14188 else
14189 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14190 fi
14191 if test "$with_gnu_ld" = no; then
14192 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14193 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14194 hardcode_libdir_separator_FC=:
14195 hardcode_direct_FC=yes
14196 hardcode_direct_absolute_FC=yes
14197 export_dynamic_flag_spec_FC='${wl}-E'
14198 # hardcode_minus_L: Not really in the search PATH,
14199 # but as the default location of the library.
14200 hardcode_minus_L_FC=yes
14201 fi
14202 ;;
14203
14204 hpux11*)
43e02a8a 14205 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
14206 case $host_cpu in
14207 hppa*64*)
14208 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 ;;
14210 ia64*)
d58dead8 14211 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14212 ;;
14213 *)
14214 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14215 ;;
14216 esac
14217 else
14218 case $host_cpu in
14219 hppa*64*)
14220 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221 ;;
14222 ia64*)
14223 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14224 ;;
14225 *)
43e02a8a 14226 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
14227 ;;
14228 esac
14229 fi
14230 if test "$with_gnu_ld" = no; then
14231 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14232 hardcode_libdir_separator_FC=:
14233
14234 case $host_cpu in
14235 hppa*64*|ia64*)
14236 hardcode_direct_FC=no
14237 hardcode_shlibpath_var_FC=no
14238 ;;
14239 *)
14240 hardcode_direct_FC=yes
14241 hardcode_direct_absolute_FC=yes
14242 export_dynamic_flag_spec_FC='${wl}-E'
14243
14244 # hardcode_minus_L: Not really in the search PATH,
14245 # but as the default location of the library.
14246 hardcode_minus_L_FC=yes
14247 ;;
14248 esac
14249 fi
14250 ;;
14251
14252 irix5* | irix6* | nonstopux*)
14253 if test "$GCC" = yes; then
43e02a8a 14254 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
14255 # Try to use the -exported_symbol ld option, if it does not
14256 # work, assume that -exports_file does not work either and
14257 # implicitly export all symbols.
14258 save_LDFLAGS="$LDFLAGS"
14259 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14260 if test x$gcc_no_link = xyes; then
5213506e 14261 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 14262fi
5213506e 14263cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14264int foo(void) {}
14265_ACEOF
5213506e 14266if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 14267 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 14268
1cf3d07d 14269fi
5213506e
RW
14270rm -f core conftest.err conftest.$ac_objext \
14271 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
14272 LDFLAGS="$save_LDFLAGS"
14273 else
43e02a8a
RW
14274 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'
14275 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
14276 fi
14277 archive_cmds_need_lc_FC='no'
14278 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14279 hardcode_libdir_separator_FC=:
14280 inherit_rpath_FC=yes
14281 link_all_deplibs_FC=yes
14282 ;;
14283
14284 netbsd*)
14285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14286 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14287 else
14288 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14289 fi
14290 hardcode_libdir_flag_spec_FC='-R$libdir'
14291 hardcode_direct_FC=yes
14292 hardcode_shlibpath_var_FC=no
14293 ;;
14294
14295 newsos6)
14296 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297 hardcode_direct_FC=yes
14298 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14299 hardcode_libdir_separator_FC=:
14300 hardcode_shlibpath_var_FC=no
14301 ;;
14302
14303 *nto* | *qnx*)
14304 ;;
14305
14306 openbsd*)
d58dead8
PG
14307 if test -f /usr/libexec/ld.so; then
14308 hardcode_direct_FC=yes
14309 hardcode_shlibpath_var_FC=no
14310 hardcode_direct_absolute_FC=yes
14311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 14312 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d58dead8 14313 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 14314 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
d58dead8
PG
14315 export_dynamic_flag_spec_FC='${wl}-E'
14316 else
14317 case $host_os in
14318 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14319 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14320 hardcode_libdir_flag_spec_FC='-R$libdir'
14321 ;;
14322 *)
14323 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14324 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14325 ;;
14326 esac
14327 fi
14328 else
14329 ld_shlibs_FC=no
1cf3d07d
SE
14330 fi
14331 ;;
14332
14333 os2*)
14334 hardcode_libdir_flag_spec_FC='-L$libdir'
14335 hardcode_minus_L_FC=yes
14336 allow_undefined_flag_FC=unsupported
43e02a8a 14337 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
14338 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14339 ;;
14340
14341 osf3*)
14342 if test "$GCC" = yes; then
14343 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14344 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
14345 else
14346 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14347 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
14348 fi
14349 archive_cmds_need_lc_FC='no'
14350 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14351 hardcode_libdir_separator_FC=:
14352 ;;
14353
14354 osf4* | osf5*) # as osf3* with the addition of -msym flag
14355 if test "$GCC" = yes; then
14356 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14357 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
14358 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14359 else
14360 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 14361 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 14362 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 14363 $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
14364
14365 # Both c and cxx compiler support -rpath directly
14366 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14367 fi
14368 archive_cmds_need_lc_FC='no'
14369 hardcode_libdir_separator_FC=:
14370 ;;
14371
14372 solaris*)
14373 no_undefined_flag_FC=' -z defs'
14374 if test "$GCC" = yes; then
14375 wlarc='${wl}'
14376 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14377 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14378 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14379 else
14380 case `$CC -V 2>&1` in
14381 *"Compilers 5.0"*)
14382 wlarc=''
14383 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14384 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14386 ;;
14387 *)
14388 wlarc='${wl}'
14389 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14390 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14391 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14392 ;;
14393 esac
14394 fi
14395 hardcode_libdir_flag_spec_FC='-R$libdir'
14396 hardcode_shlibpath_var_FC=no
14397 case $host_os in
14398 solaris2.[0-5] | solaris2.[0-5].*) ;;
14399 *)
14400 # The compiler driver will combine and reorder linker options,
14401 # but understands `-z linker_flag'. GCC discards it without `$wl',
14402 # but is careful enough not to reorder.
14403 # Supported since Solaris 2.6 (maybe 2.5.1?)
14404 if test "$GCC" = yes; then
14405 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14406 else
14407 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14408 fi
14409 ;;
14410 esac
14411 link_all_deplibs_FC=yes
14412 ;;
14413
14414 sunos4*)
14415 if test "x$host_vendor" = xsequent; then
14416 # Use $CC to link under sequent, because it throws in some extra .o
14417 # files that make .init and .fini sections work.
14418 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14419 else
14420 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14421 fi
14422 hardcode_libdir_flag_spec_FC='-L$libdir'
14423 hardcode_direct_FC=yes
14424 hardcode_minus_L_FC=yes
14425 hardcode_shlibpath_var_FC=no
14426 ;;
14427
14428 sysv4)
14429 case $host_vendor in
14430 sni)
14431 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14432 hardcode_direct_FC=yes # is this really true???
14433 ;;
14434 siemens)
14435 ## LD is ld it makes a PLAMLIB
14436 ## CC just makes a GrossModule.
14437 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14438 reload_cmds_FC='$CC -r -o $output$reload_objs'
14439 hardcode_direct_FC=no
14440 ;;
14441 motorola)
14442 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14443 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14444 ;;
14445 esac
14446 runpath_var='LD_RUN_PATH'
14447 hardcode_shlibpath_var_FC=no
14448 ;;
14449
14450 sysv4.3*)
14451 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14452 hardcode_shlibpath_var_FC=no
14453 export_dynamic_flag_spec_FC='-Bexport'
14454 ;;
14455
14456 sysv4*MP*)
14457 if test -d /usr/nec; then
14458 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14459 hardcode_shlibpath_var_FC=no
14460 runpath_var=LD_RUN_PATH
14461 hardcode_runpath_var=yes
14462 ld_shlibs_FC=yes
14463 fi
14464 ;;
14465
14466 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14467 no_undefined_flag_FC='${wl}-z,text'
14468 archive_cmds_need_lc_FC=no
14469 hardcode_shlibpath_var_FC=no
14470 runpath_var='LD_RUN_PATH'
14471
14472 if test "$GCC" = yes; then
14473 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14474 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14475 else
14476 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14477 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14478 fi
14479 ;;
14480
14481 sysv5* | sco3.2v5* | sco5v6*)
14482 # Note: We can NOT use -z defs as we might desire, because we do not
14483 # link with -lc, and that would cause any symbols used from libc to
14484 # always be unresolved, which means just about no library would
14485 # ever link correctly. If we're not using GNU ld we use -z text
14486 # though, which does catch some bad symbols but isn't as heavy-handed
14487 # as -z defs.
14488 no_undefined_flag_FC='${wl}-z,text'
14489 allow_undefined_flag_FC='${wl}-z,nodefs'
14490 archive_cmds_need_lc_FC=no
14491 hardcode_shlibpath_var_FC=no
14492 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14493 hardcode_libdir_separator_FC=':'
14494 link_all_deplibs_FC=yes
14495 export_dynamic_flag_spec_FC='${wl}-Bexport'
14496 runpath_var='LD_RUN_PATH'
14497
14498 if test "$GCC" = yes; then
14499 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14500 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501 else
14502 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504 fi
14505 ;;
14506
14507 uts4*)
14508 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509 hardcode_libdir_flag_spec_FC='-L$libdir'
14510 hardcode_shlibpath_var_FC=no
14511 ;;
14512
14513 *)
14514 ld_shlibs_FC=no
14515 ;;
14516 esac
14517
14518 if test x$host_vendor = xsni; then
14519 case $host in
14520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14521 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14522 ;;
14523 esac
14524 fi
14525 fi
14526
5213506e
RW
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14528$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d
SE
14529test "$ld_shlibs_FC" = no && can_build_shared=no
14530
14531with_gnu_ld_FC=$with_gnu_ld
14532
14533
14534
14535
14536
14537
14538#
14539# Do we need to explicitly link libc?
14540#
14541case "x$archive_cmds_need_lc_FC" in
14542x|xyes)
14543 # Assume -lc should be added
14544 archive_cmds_need_lc_FC=yes
14545
14546 if test "$enable_shared" = yes && test "$GCC" = yes; then
14547 case $archive_cmds_FC in
14548 *'~'*)
14549 # FIXME: we may have to deal with multi-command sequences.
14550 ;;
14551 '$CC '*)
14552 # Test whether the compiler implicitly links with -lc since on some
14553 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14554 # to ld, don't add -lc before -lgcc.
5213506e
RW
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14556$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14557if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14558 $as_echo_n "(cached) " >&6
baafc534
RW
14559else
14560 $RM conftest*
14561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 14562
5213506e 14563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
14564 (eval $ac_compile) 2>&5
14565 ac_status=$?
5213506e
RW
14566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14567 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
14568 soname=conftest
14569 lib=conftest
14570 libobjs=conftest.$ac_objext
14571 deplibs=
14572 wl=$lt_prog_compiler_wl_FC
14573 pic_flag=$lt_prog_compiler_pic_FC
14574 compiler_flags=-v
14575 linker_flags=-v
14576 verstring=
14577 output_objdir=.
14578 libname=conftest
14579 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14580 allow_undefined_flag_FC=
5213506e 14581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 14582 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9cdc381b 14583 ac_status=$?
5213506e
RW
14584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14585 test $ac_status = 0; }
baafc534
RW
14586 then
14587 lt_cv_archive_cmds_need_lc_FC=no
14588 else
14589 lt_cv_archive_cmds_need_lc_FC=yes
14590 fi
14591 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14592 else
14593 cat conftest.err 1>&5
14594 fi
14595 $RM conftest*
14596
14597fi
5213506e
RW
14598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14599$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 14600 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
14601 ;;
14602 esac
14603 fi
14604 ;;
14605esac
9cdc381b 14606
9cdc381b 14607
1cf3d07d
SE
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
5213506e
RW
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14671$as_echo_n "checking dynamic linker characteristics... " >&6; }
d58dead8 14672
1cf3d07d
SE
14673library_names_spec=
14674libname_spec='lib$name'
14675soname_spec=
14676shrext_cmds=".so"
14677postinstall_cmds=
14678postuninstall_cmds=
14679finish_cmds=
14680finish_eval=
14681shlibpath_var=
14682shlibpath_overrides_runpath=unknown
14683version_type=none
14684dynamic_linker="$host_os ld.so"
14685sys_lib_dlsearch_path_spec="/lib /usr/lib"
14686need_lib_prefix=unknown
14687hardcode_into_libs=no
14688
14689# when you set need_version to no, make sure it does not cause -set_version
14690# flags to be left without arguments
14691need_version=unknown
14692
14693case $host_os in
14694aix3*)
14695 version_type=linux
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14697 shlibpath_var=LIBPATH
14698
14699 # AIX 3 has no versioning support, so we append a major version to the name.
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 ;;
14702
4f6bebc3 14703aix[4-9]*)
1cf3d07d
SE
14704 version_type=linux
14705 need_lib_prefix=no
14706 need_version=no
14707 hardcode_into_libs=yes
14708 if test "$host_cpu" = ia64; then
14709 # AIX 5 supports IA64
14710 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14711 shlibpath_var=LD_LIBRARY_PATH
14712 else
14713 # With GCC up to 2.95.x, collect2 would create an import file
14714 # for dependence libraries. The import file would start with
14715 # the line `#! .'. This would cause the generated library to
14716 # depend on `.', always an invalid library. This was fixed in
14717 # development snapshots of GCC prior to 3.0.
14718 case $host_os in
14719 aix4 | aix4.[01] | aix4.[01].*)
14720 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14721 echo ' yes '
14722 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14723 :
14724 else
14725 can_build_shared=no
14726 fi
14727 ;;
14728 esac
14729 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14730 # soname into executable. Probably we can add versioning support to
14731 # collect2, so additional links can be useful in future.
14732 if test "$aix_use_runtimelinking" = yes; then
14733 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14734 # instead of lib<name>.a to let people know that these are not
14735 # typical AIX shared libraries.
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 else
14738 # We preserve .a as extension for shared libraries through AIX4.2
14739 # and later when we are not doing run time linking.
14740 library_names_spec='${libname}${release}.a $libname.a'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 fi
14743 shlibpath_var=LIBPATH
14744 fi
14745 ;;
14746
14747amigaos*)
d58dead8
PG
14748 case $host_cpu in
14749 powerpc)
14750 # Since July 2007 AmigaOS4 officially supports .so libraries.
14751 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 ;;
14754 m68k)
1cf3d07d
SE
14755 library_names_spec='$libname.ixlibrary $libname.a'
14756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 14757 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
14758 ;;
14759 esac
1cf3d07d
SE
14760 ;;
14761
14762beos*)
14763 library_names_spec='${libname}${shared_ext}'
14764 dynamic_linker="$host_os ld.so"
14765 shlibpath_var=LIBRARY_PATH
14766 ;;
14767
14768bsdi[45]*)
14769 version_type=linux
14770 need_version=no
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14777 # the default ld.so.conf also contains /usr/contrib/lib and
14778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14779 # libtool to hard-code these into programs
14780 ;;
14781
d58dead8 14782cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14783 version_type=windows
14784 shrext_cmds=".dll"
14785 need_version=no
14786 need_lib_prefix=no
14787
d58dead8
PG
14788 case $GCC,$host_os in
14789 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
14790 library_names_spec='$libname.dll.a'
14791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14792 postinstall_cmds='base_file=`basename \${file}`~
14793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14794 dldir=$destdir/`dirname \$dlpath`~
14795 test -d \$dldir || mkdir -p \$dldir~
14796 $install_prog $dir/$dlname \$dldir/$dlname~
14797 chmod a+x \$dldir/$dlname~
14798 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14799 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14800 fi'
14801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14802 dlpath=$dir/\$dldll~
14803 $RM \$dlpath'
14804 shlibpath_overrides_runpath=yes
14805
14806 case $host_os in
14807 cygwin*)
14808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14809 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 14810
1cf3d07d 14811 ;;
d58dead8 14812 mingw* | cegcc*)
1cf3d07d
SE
14813 # MinGW DLLs use traditional 'lib' prefix
14814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
14815 ;;
14816 pw32*)
14817 # pw32 DLLs use 'pw' prefix rather than 'lib'
14818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14819 ;;
14820 esac
14821 ;;
14822
14823 *)
14824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14825 ;;
14826 esac
14827 dynamic_linker='Win32 ld.exe'
14828 # FIXME: first we should search . and the directory the executable is in
14829 shlibpath_var=PATH
14830 ;;
14831
14832darwin* | rhapsody*)
14833 dynamic_linker="$host_os dyld"
14834 version_type=darwin
14835 need_lib_prefix=no
14836 need_version=no
14837 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14838 soname_spec='${libname}${release}${major}$shared_ext'
14839 shlibpath_overrides_runpath=yes
14840 shlibpath_var=DYLD_LIBRARY_PATH
14841 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14842
14843 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14844 ;;
14845
14846dgux*)
14847 version_type=linux
14848 need_lib_prefix=no
14849 need_version=no
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 shlibpath_var=LD_LIBRARY_PATH
14853 ;;
14854
1cf3d07d
SE
14855freebsd* | dragonfly*)
14856 # DragonFly does not have aout. When/if they implement a new
14857 # versioning mechanism, adjust this.
14858 if test -x /usr/bin/objformat; then
14859 objformat=`/usr/bin/objformat`
14860 else
14861 case $host_os in
14862 freebsd[123]*) objformat=aout ;;
14863 *) objformat=elf ;;
14864 esac
14865 fi
14866 version_type=freebsd-$objformat
14867 case $version_type in
14868 freebsd-elf*)
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14870 need_version=no
14871 need_lib_prefix=no
14872 ;;
14873 freebsd-*)
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14875 need_version=yes
14876 ;;
14877 esac
14878 shlibpath_var=LD_LIBRARY_PATH
14879 case $host_os in
14880 freebsd2*)
14881 shlibpath_overrides_runpath=yes
14882 ;;
14883 freebsd3.[01]* | freebsdelf3.[01]*)
14884 shlibpath_overrides_runpath=yes
14885 hardcode_into_libs=yes
14886 ;;
14887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14889 shlibpath_overrides_runpath=no
14890 hardcode_into_libs=yes
14891 ;;
14892 *) # from 4.6 on, and DragonFly
14893 shlibpath_overrides_runpath=yes
14894 hardcode_into_libs=yes
14895 ;;
14896 esac
14897 ;;
14898
14899gnu*)
14900 version_type=linux
14901 need_lib_prefix=no
14902 need_version=no
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 hardcode_into_libs=yes
14907 ;;
14908
43e02a8a
RW
14909haiku*)
14910 version_type=linux
14911 need_lib_prefix=no
14912 need_version=no
14913 dynamic_linker="$host_os runtime_loader"
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LIBRARY_PATH
14917 shlibpath_overrides_runpath=yes
14918 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14919 hardcode_into_libs=yes
14920 ;;
14921
1cf3d07d
SE
14922hpux9* | hpux10* | hpux11*)
14923 # Give a soname corresponding to the major version so that dld.sl refuses to
14924 # link against other versions.
14925 version_type=sunos
14926 need_lib_prefix=no
14927 need_version=no
14928 case $host_cpu in
14929 ia64*)
14930 shrext_cmds='.so'
14931 hardcode_into_libs=yes
14932 dynamic_linker="$host_os dld.so"
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 if test "X$HPUX_IA64_MODE" = X32; then
14938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14939 else
14940 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14941 fi
14942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14943 ;;
14944 hppa*64*)
14945 shrext_cmds='.sl'
14946 hardcode_into_libs=yes
14947 dynamic_linker="$host_os dld.sl"
14948 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14954 ;;
14955 *)
14956 shrext_cmds='.sl'
14957 dynamic_linker="$host_os dld.sl"
14958 shlibpath_var=SHLIB_PATH
14959 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 ;;
14963 esac
43e02a8a 14964 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 14965 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
14966 # or fails outright, so override atomically:
14967 install_override_mode=555
1cf3d07d
SE
14968 ;;
14969
14970interix[3-9]*)
14971 version_type=linux
14972 need_lib_prefix=no
14973 need_version=no
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14975 soname_spec='${libname}${release}${shared_ext}$major'
14976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14977 shlibpath_var=LD_LIBRARY_PATH
14978 shlibpath_overrides_runpath=no
14979 hardcode_into_libs=yes
14980 ;;
14981
14982irix5* | irix6* | nonstopux*)
14983 case $host_os in
14984 nonstopux*) version_type=nonstopux ;;
14985 *)
14986 if test "$lt_cv_prog_gnu_ld" = yes; then
14987 version_type=linux
14988 else
14989 version_type=irix
14990 fi ;;
14991 esac
14992 need_lib_prefix=no
14993 need_version=no
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14996 case $host_os in
14997 irix5* | nonstopux*)
14998 libsuff= shlibsuff=
14999 ;;
15000 *)
15001 case $LD in # libtool.m4 will add one of these switches to LD
15002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15003 libsuff= shlibsuff= libmagic=32-bit;;
15004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15005 libsuff=32 shlibsuff=N32 libmagic=N32;;
15006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15008 *) libsuff= shlibsuff= libmagic=never-match;;
15009 esac
15010 ;;
15011 esac
15012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15013 shlibpath_overrides_runpath=no
15014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15016 hardcode_into_libs=yes
15017 ;;
15018
15019# No shared lib support for Linux oldld, aout, or coff.
15020linux*oldld* | linux*aout* | linux*coff*)
15021 dynamic_linker=no
15022 ;;
15023
15024# This must be Linux ELF.
7a9d3fe8 15025linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
15026 version_type=linux
15027 need_lib_prefix=no
15028 need_version=no
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 shlibpath_overrides_runpath=no
baafc534 15034
1cf3d07d 15035 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
15036 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15037 $as_echo_n "(cached) " >&6
baafc534
RW
15038else
15039 lt_cv_shlibpath_overrides_runpath=no
15040 save_LDFLAGS=$LDFLAGS
15041 save_libdir=$libdir
15042 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15043 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15044 if test x$gcc_no_link = xyes; then
5213506e 15045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 15046fi
5213506e 15047cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15048 program main
15049
15050 end
9cdc381b 15051_ACEOF
5213506e
RW
15052if ac_fn_fc_try_link "$LINENO"; then :
15053 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 15054 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 15055fi
9cdc381b 15056fi
5213506e
RW
15057rm -f core conftest.err conftest.$ac_objext \
15058 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
15059 LDFLAGS=$save_LDFLAGS
15060 libdir=$save_libdir
15061
15062fi
15063
15064 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
15065
15066 # This implies no fast_install, which is unacceptable.
15067 # Some rework will be needed to allow for fast_install
15068 # before this can be enabled.
15069 hardcode_into_libs=yes
15070
15071 # Append ld.so.conf contents to the search path
15072 if test -f /etc/ld.so.conf; then
43e02a8a 15073 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
15074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15075 fi
15076
15077 # We used to test for /lib/ld.so.1 and disable shared libraries on
15078 # powerpc, because MkLinux only supported shared libraries with the
15079 # GNU dynamic linker. Since this was broken with cross compilers,
15080 # most powerpc-linux boxes support dynamic linking these days and
15081 # people can always --disable-shared, the test was removed, and we
15082 # assume the GNU/Linux dynamic linker is in use.
15083 dynamic_linker='GNU/Linux ld.so'
15084 ;;
15085
15086netbsd*)
15087 version_type=sunos
15088 need_lib_prefix=no
15089 need_version=no
15090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15093 dynamic_linker='NetBSD (a.out) ld.so'
15094 else
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 dynamic_linker='NetBSD ld.elf_so'
15098 fi
15099 shlibpath_var=LD_LIBRARY_PATH
15100 shlibpath_overrides_runpath=yes
15101 hardcode_into_libs=yes
15102 ;;
15103
15104newsos6)
15105 version_type=linux
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=yes
15109 ;;
15110
15111*nto* | *qnx*)
15112 version_type=qnx
15113 need_lib_prefix=no
15114 need_version=no
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 shlibpath_overrides_runpath=no
15119 hardcode_into_libs=yes
15120 dynamic_linker='ldqnx.so'
15121 ;;
15122
15123openbsd*)
15124 version_type=sunos
15125 sys_lib_dlsearch_path_spec="/usr/lib"
15126 need_lib_prefix=no
15127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15128 case $host_os in
15129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15130 *) need_version=no ;;
15131 esac
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15134 shlibpath_var=LD_LIBRARY_PATH
15135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15136 case $host_os in
15137 openbsd2.[89] | openbsd2.[89].*)
15138 shlibpath_overrides_runpath=no
15139 ;;
15140 *)
15141 shlibpath_overrides_runpath=yes
15142 ;;
15143 esac
15144 else
15145 shlibpath_overrides_runpath=yes
15146 fi
15147 ;;
15148
15149os2*)
15150 libname_spec='$name'
15151 shrext_cmds=".dll"
15152 need_lib_prefix=no
15153 library_names_spec='$libname${shared_ext} $libname.a'
15154 dynamic_linker='OS/2 ld.exe'
15155 shlibpath_var=LIBPATH
15156 ;;
15157
15158osf3* | osf4* | osf5*)
15159 version_type=osf
15160 need_lib_prefix=no
15161 need_version=no
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15167 ;;
15168
15169rdos*)
15170 dynamic_linker=no
15171 ;;
15172
15173solaris*)
15174 version_type=linux
15175 need_lib_prefix=no
15176 need_version=no
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 shlibpath_var=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath=yes
15181 hardcode_into_libs=yes
15182 # ldd complains unless libraries are executable
15183 postinstall_cmds='chmod +x $lib'
15184 ;;
15185
15186sunos4*)
15187 version_type=sunos
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 shlibpath_overrides_runpath=yes
15192 if test "$with_gnu_ld" = yes; then
15193 need_lib_prefix=no
15194 fi
15195 need_version=yes
15196 ;;
15197
15198sysv4 | sysv4.3*)
15199 version_type=linux
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 case $host_vendor in
15204 sni)
15205 shlibpath_overrides_runpath=no
15206 need_lib_prefix=no
15207 runpath_var=LD_RUN_PATH
15208 ;;
15209 siemens)
15210 need_lib_prefix=no
15211 ;;
15212 motorola)
15213 need_lib_prefix=no
15214 need_version=no
15215 shlibpath_overrides_runpath=no
15216 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15217 ;;
15218 esac
15219 ;;
15220
15221sysv4*MP*)
15222 if test -d /usr/nec ;then
15223 version_type=linux
15224 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15225 soname_spec='$libname${shared_ext}.$major'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 fi
15228 ;;
15229
15230sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15231 version_type=freebsd-elf
15232 need_lib_prefix=no
15233 need_version=no
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15235 soname_spec='${libname}${release}${shared_ext}$major'
15236 shlibpath_var=LD_LIBRARY_PATH
15237 shlibpath_overrides_runpath=yes
15238 hardcode_into_libs=yes
15239 if test "$with_gnu_ld" = yes; then
15240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15241 else
15242 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15243 case $host_os in
15244 sco3.2v5*)
15245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15246 ;;
15247 esac
15248 fi
15249 sys_lib_dlsearch_path_spec='/usr/lib'
15250 ;;
15251
15252tpf*)
15253 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15254 version_type=linux
15255 need_lib_prefix=no
15256 need_version=no
d58dead8 15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
15258 shlibpath_var=LD_LIBRARY_PATH
15259 shlibpath_overrides_runpath=no
15260 hardcode_into_libs=yes
15261 ;;
15262
15263uts4*)
15264 version_type=linux
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266 soname_spec='${libname}${release}${shared_ext}$major'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 ;;
15269
15270*)
15271 dynamic_linker=no
15272 ;;
15273esac
5213506e
RW
15274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15275$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
15276test "$dynamic_linker" = no && can_build_shared=no
15277
15278variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15279if test "$GCC" = yes; then
15280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9cdc381b 15281fi
9cdc381b 15282
d58dead8
PG
15283if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15284 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15285fi
15286if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15287 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15288fi
15289
9cdc381b 15290
1cf3d07d
SE
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
43e02a8a
RW
15322
15323
1cf3d07d
SE
15324
15325
15326
5213506e
RW
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15328$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
15329hardcode_action_FC=
15330if test -n "$hardcode_libdir_flag_spec_FC" ||
15331 test -n "$runpath_var_FC" ||
15332 test "X$hardcode_automatic_FC" = "Xyes" ; then
15333
15334 # We can hardcode non-existent directories.
15335 if test "$hardcode_direct_FC" != no &&
15336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15337 # have to relink, otherwise we might link with an installed library
15338 # when we should be linking with a yet-to-be-installed one
15339 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15340 test "$hardcode_minus_L_FC" != no; then
15341 # Linking always hardcodes the temporary library directory.
15342 hardcode_action_FC=relink
15343 else
15344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15345 hardcode_action_FC=immediate
15346 fi
15347else
15348 # We cannot hardcode anything, or else we can only hardcode existing
15349 # directories.
15350 hardcode_action_FC=unsupported
9cdc381b 15351fi
5213506e
RW
15352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15353$as_echo "$hardcode_action_FC" >&6; }
1cf3d07d
SE
15354
15355if test "$hardcode_action_FC" = relink ||
15356 test "$inherit_rpath_FC" = yes; then
15357 # Fast installation is not supported
15358 enable_fast_install=no
15359elif test "$shlibpath_overrides_runpath" = yes ||
15360 test "$enable_shared" = no; then
15361 # Fast installation is not necessary
15362 enable_fast_install=needless
9cdc381b
BD
15363fi
15364
1cf3d07d
SE
15365
15366
15367
15368
15369
15370
15371 fi # test -n "$compiler"
15372
d58dead8 15373 GCC=$lt_save_GCC
1cf3d07d
SE
15374 CC="$lt_save_CC"
15375fi # test "$_lt_disable_FC" != yes
15376
dd46a4de 15377ac_ext=c
96b8a615
AJ
15378ac_cpp='$CPP $CPPFLAGS'
15379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15381ac_compiler_gnu=$ac_cv_c_compiler_gnu
1cf3d07d
SE
15382
15383
15384
15385# extra LD Flags which are required for targets
15386case "${host}" in
15387 *-darwin*)
15388 # Darwin needs -single_module when linking libgfortran
15389 extra_ldflags_libgfortran=-Wl,-single_module
15390 ;;
15391esac
15392
15393
15394# We need a working compiler at that point, otherwise give a clear
15395# error message and bail out.
15396
5213506e
RW
15397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15398$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15399ac_ext=${ac_fc_srcext-f}
15400ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15401ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
15402ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15403
5213506e 15404cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
15405
15406 program foo
15407 real, parameter :: bar = sin (12.34 / 2.5)
15408 end program foo
6de9cd9a 15409_ACEOF
5213506e
RW
15410if ac_fn_fc_try_compile "$LINENO"; then :
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15412$as_echo "yes" >&6; }
6de9cd9a 15413else
5213506e
RW
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415$as_echo "no" >&6; }
15416 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 15417
96b8a615 15418fi
5213506e 15419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
15420ac_ext=c
15421ac_cpp='$CPP $CPPFLAGS'
15422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15424ac_compiler_gnu=$ac_cv_c_compiler_gnu
96b8a615 15425
96b8a615 15426
1cf3d07d 15427
5213506e
RW
15428# Check whether --enable-largefile was given.
15429if test "${enable_largefile+set}" = set; then :
15430 enableval=$enable_largefile;
15431fi
1cf3d07d 15432
1cf3d07d
SE
15433if test "$enable_largefile" != no; then
15434
5213506e
RW
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15436$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15437if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15438 $as_echo_n "(cached) " >&6
96b8a615 15439else
1cf3d07d
SE
15440 ac_cv_sys_largefile_CC=no
15441 if test "$GCC" != yes; then
15442 ac_save_CC=$CC
15443 while :; do
5213506e
RW
15444 # IRIX 6.2 and later do not support large files by default,
15445 # so use the C compiler's -n32 option if that helps.
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96b8a615 15447/* end confdefs.h. */
1cf3d07d
SE
15448#include <sys/types.h>
15449 /* Check that off_t can represent 2**63 - 1 correctly.
15450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15451 since some C++ compilers masquerading as C compilers
15452 incorrectly reject 9223372036854775807. */
15453#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5213506e
RW
15454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15455 && LARGE_OFF_T % 2147483647 == 1)
15456 ? 1 : -1];
4c4b3eb0
PB
15457int
15458main ()
15459{
4c4b3eb0
PB
15460
15461 ;
15462 return 0;
15463}
15464_ACEOF
5213506e
RW
15465 if ac_fn_c_try_compile "$LINENO"; then :
15466 break
4c4b3eb0 15467fi
5213506e
RW
15468rm -f core conftest.err conftest.$ac_objext
15469 CC="$CC -n32"
15470 if ac_fn_c_try_compile "$LINENO"; then :
15471 ac_cv_sys_largefile_CC=' -n32'; break
15472fi
15473rm -f core conftest.err conftest.$ac_objext
15474 break
15475 done
15476 CC=$ac_save_CC
15477 rm -f conftest.$ac_ext
15478 fi
15479fi
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15481$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15482 if test "$ac_cv_sys_largefile_CC" != no; then
15483 CC=$CC$ac_cv_sys_largefile_CC
15484 fi
4c4b3eb0 15485
5213506e
RW
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15487$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15488if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15489 $as_echo_n "(cached) " >&6
15490else
15491 while :; do
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15493/* end confdefs.h. */
5213506e
RW
15494#include <sys/types.h>
15495 /* Check that off_t can represent 2**63 - 1 correctly.
15496 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15497 since some C++ compilers masquerading as C compilers
15498 incorrectly reject 9223372036854775807. */
15499#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15501 && LARGE_OFF_T % 2147483647 == 1)
15502 ? 1 : -1];
4c4b3eb0
PB
15503int
15504main ()
15505{
4c4b3eb0
PB
15506
15507 ;
15508 return 0;
15509}
15510_ACEOF
5213506e
RW
15511if ac_fn_c_try_compile "$LINENO"; then :
15512 ac_cv_sys_file_offset_bits=no; break
15513fi
15514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15516/* end confdefs.h. */
5213506e
RW
15517#define _FILE_OFFSET_BITS 64
15518#include <sys/types.h>
15519 /* Check that off_t can represent 2**63 - 1 correctly.
15520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15521 since some C++ compilers masquerading as C compilers
15522 incorrectly reject 9223372036854775807. */
15523#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15525 && LARGE_OFF_T % 2147483647 == 1)
15526 ? 1 : -1];
4c4b3eb0
PB
15527int
15528main ()
15529{
4c4b3eb0
PB
15530
15531 ;
15532 return 0;
15533}
15534_ACEOF
5213506e
RW
15535if ac_fn_c_try_compile "$LINENO"; then :
15536 ac_cv_sys_file_offset_bits=64; break
4c4b3eb0 15537fi
5213506e
RW
15538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 ac_cv_sys_file_offset_bits=unknown
15540 break
15541done
4c4b3eb0 15542fi
5213506e
RW
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15544$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15545case $ac_cv_sys_file_offset_bits in #(
15546 no | unknown) ;;
15547 *)
15548cat >>confdefs.h <<_ACEOF
15549#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4c4b3eb0 15550_ACEOF
5213506e
RW
15551;;
15552esac
15553rm -rf conftest*
15554 if test $ac_cv_sys_file_offset_bits = unknown; then
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15556$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15557if test "${ac_cv_sys_large_files+set}" = set; then :
15558 $as_echo_n "(cached) " >&6
15559else
15560 while :; do
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15562/* end confdefs.h. */
5213506e
RW
15563#include <sys/types.h>
15564 /* Check that off_t can represent 2**63 - 1 correctly.
15565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15566 since some C++ compilers masquerading as C compilers
15567 incorrectly reject 9223372036854775807. */
15568#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15570 && LARGE_OFF_T % 2147483647 == 1)
15571 ? 1 : -1];
4c4b3eb0
PB
15572int
15573main ()
15574{
4c4b3eb0
PB
15575
15576 ;
15577 return 0;
15578}
15579_ACEOF
5213506e
RW
15580if ac_fn_c_try_compile "$LINENO"; then :
15581 ac_cv_sys_large_files=no; break
4c4b3eb0 15582fi
5213506e
RW
15583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c4b3eb0 15585/* end confdefs.h. */
5213506e
RW
15586#define _LARGE_FILES 1
15587#include <sys/types.h>
15588 /* Check that off_t can represent 2**63 - 1 correctly.
15589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15590 since some C++ compilers masquerading as C compilers
15591 incorrectly reject 9223372036854775807. */
15592#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15594 && LARGE_OFF_T % 2147483647 == 1)
15595 ? 1 : -1];
4c4b3eb0
PB
15596int
15597main ()
15598{
15599
4c4b3eb0
PB
15600 ;
15601 return 0;
15602}
15603_ACEOF
5213506e
RW
15604if ac_fn_c_try_compile "$LINENO"; then :
15605 ac_cv_sys_large_files=1; break
4c4b3eb0 15606fi
5213506e
RW
15607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608 ac_cv_sys_large_files=unknown
15609 break
15610done
38d24731 15611fi
5213506e
RW
15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15613$as_echo "$ac_cv_sys_large_files" >&6; }
15614case $ac_cv_sys_large_files in #(
15615 no | unknown) ;;
15616 *)
4c4b3eb0 15617cat >>confdefs.h <<_ACEOF
5213506e 15618#define _LARGE_FILES $ac_cv_sys_large_files
4c4b3eb0 15619_ACEOF
5213506e
RW
15620;;
15621esac
15622rm -rf conftest*
15623 fi
4c4b3eb0
PB
15624fi
15625
5213506e
RW
15626ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15627if test "x$ac_cv_type_off_t" = x""yes; then :
4c4b3eb0 15628
5213506e 15629else
4c4b3eb0 15630
5213506e
RW
15631cat >>confdefs.h <<_ACEOF
15632#define off_t long int
15633_ACEOF
4c4b3eb0 15634
4c4b3eb0
PB
15635fi
15636
4c4b3eb0 15637
5213506e
RW
15638# check header files
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15640$as_echo_n "checking for ANSI C header files... " >&6; }
15641if test "${ac_cv_header_stdc+set}" = set; then :
15642 $as_echo_n "(cached) " >&6
df65f093 15643else
5213506e 15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
df65f093 15645/* end confdefs.h. */
5213506e
RW
15646#include <stdlib.h>
15647#include <stdarg.h>
15648#include <string.h>
15649#include <float.h>
df65f093 15650
df65f093
SK
15651int
15652main ()
15653{
5213506e 15654
df65f093
SK
15655 ;
15656 return 0;
15657}
15658_ACEOF
5213506e
RW
15659if ac_fn_c_try_compile "$LINENO"; then :
15660 ac_cv_header_stdc=yes
df65f093 15661else
5213506e 15662 ac_cv_header_stdc=no
df65f093 15663fi
5213506e
RW
15664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15665
15666if test $ac_cv_header_stdc = yes; then
15667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669/* end confdefs.h. */
15670#include <string.h>
df65f093 15671
df65f093 15672_ACEOF
5213506e
RW
15673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15674 $EGREP "memchr" >/dev/null 2>&1; then :
df65f093 15675
5213506e
RW
15676else
15677 ac_cv_header_stdc=no
15678fi
15679rm -f conftest*
df65f093
SK
15680
15681fi
15682
5213506e
RW
15683if test $ac_cv_header_stdc = yes; then
15684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
df65f093 15686/* end confdefs.h. */
5213506e
RW
15687#include <stdlib.h>
15688
df65f093 15689_ACEOF
5213506e
RW
15690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15691 $EGREP "free" >/dev/null 2>&1; then :
15692
df65f093 15693else
5213506e
RW
15694 ac_cv_header_stdc=no
15695fi
15696rm -f conftest*
df65f093 15697
5213506e
RW
15698fi
15699
15700if test $ac_cv_header_stdc = yes; then
15701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15702 if test "$cross_compiling" = yes; then :
15703 :
15704else
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
df65f093 15706/* end confdefs.h. */
5213506e
RW
15707#include <ctype.h>
15708#include <stdlib.h>
15709#if ((' ' & 0x0FF) == 0x020)
15710# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15712#else
15713# define ISLOWER(c) \
15714 (('a' <= (c) && (c) <= 'i') \
15715 || ('j' <= (c) && (c) <= 'r') \
15716 || ('s' <= (c) && (c) <= 'z'))
15717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15718#endif
15719
15720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
df65f093
SK
15721int
15722main ()
15723{
5213506e
RW
15724 int i;
15725 for (i = 0; i < 256; i++)
15726 if (XOR (islower (i), ISLOWER (i))
15727 || toupper (i) != TOUPPER (i))
15728 return 2;
df65f093
SK
15729 return 0;
15730}
15731_ACEOF
5213506e 15732if ac_fn_c_try_run "$LINENO"; then :
df65f093 15733
5213506e
RW
15734else
15735 ac_cv_header_stdc=no
df65f093 15736fi
5213506e
RW
15737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15738 conftest.$ac_objext conftest.beam conftest.$ac_ext
df65f093 15739fi
df65f093 15740
5213506e
RW
15741fi
15742fi
15743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15744$as_echo "$ac_cv_header_stdc" >&6; }
15745if test $ac_cv_header_stdc = yes; then
df65f093 15746
5213506e 15747$as_echo "#define STDC_HEADERS 1" >>confdefs.h
df65f093
SK
15748
15749fi
15750
5213506e
RW
15751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15752$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15753if test "${ac_cv_header_time+set}" = set; then :
15754 $as_echo_n "(cached) " >&6
df65f093 15755else
5213506e 15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
df65f093 15757/* end confdefs.h. */
5213506e
RW
15758#include <sys/types.h>
15759#include <sys/time.h>
15760#include <time.h>
df65f093 15761
df65f093
SK
15762int
15763main ()
15764{
5213506e 15765if ((struct tm *) 0)
df65f093
SK
15766return 0;
15767 ;
15768 return 0;
15769}
15770_ACEOF
5213506e
RW
15771if ac_fn_c_try_compile "$LINENO"; then :
15772 ac_cv_header_time=yes
df65f093 15773else
5213506e 15774 ac_cv_header_time=no
df65f093 15775fi
5213506e 15776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
df65f093 15777fi
5213506e
RW
15778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15779$as_echo "$ac_cv_header_time" >&6; }
15780if test $ac_cv_header_time = yes; then
df65f093 15781
5213506e 15782$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
df65f093
SK
15783
15784fi
15785
5213506e
RW
15786for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h
15787do :
15788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15789ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15790eval as_val=\$$as_ac_Header
15791 if test "x$as_val" = x""yes; then :
15792 cat >>confdefs.h <<_ACEOF
15793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15794_ACEOF
df65f093 15795
5213506e 15796fi
41724e6a 15797
5213506e 15798done
2cbcdeba 15799
5213506e
RW
15800for ac_header in time.h sys/time.h sys/times.h sys/resource.h
15801do :
15802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15803ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15804eval as_val=\$$as_ac_Header
15805 if test "x$as_val" = x""yes; then :
15806 cat >>confdefs.h <<_ACEOF
15807#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15808_ACEOF
3969c39f 15809
5213506e 15810fi
1fb2002d 15811
5213506e 15812done
1fb2002d 15813
5213506e
RW
15814for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h
15815do :
15816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15817ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15818eval as_val=\$$as_ac_Header
15819 if test "x$as_val" = x""yes; then :
15820 cat >>confdefs.h <<_ACEOF
15821#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15822_ACEOF
32aa3bff 15823
f02d008e 15824fi
f77b6ca3 15825
5213506e 15826done
f77b6ca3 15827
5213506e
RW
15828for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h
15829do :
15830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15831ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15832eval as_val=\$$as_ac_Header
15833 if test "x$as_val" = x""yes; then :
15834 cat >>confdefs.h <<_ACEOF
15835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15836_ACEOF
f77b6ca3 15837
5213506e 15838fi
f77b6ca3 15839
5213506e 15840done
f77b6ca3 15841
5213506e
RW
15842ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
15843if test "x$ac_cv_header_complex_h" = x""yes; then :
f77b6ca3 15844
5213506e 15845$as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
f77b6ca3
FXC
15846
15847fi
f77b6ca3
FXC
15848
15849
f77b6ca3 15850
6de9cd9a 15851
c13e029b 15852inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
6de9cd9a 15853
c13e029b
PB
15854acx_cv_header_stdint=stddef.h
15855acx_cv_header_stdint_kind="(already complete)"
15856for i in stdint.h $inttype_headers; do
15857 unset ac_cv_type_uintptr_t
15858 unset ac_cv_type_uintmax_t
15859 unset ac_cv_type_int_least32_t
15860 unset ac_cv_type_int_fast32_t
15861 unset ac_cv_type_uint64_t
15862 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15863 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15864#include <$i>
15865"
15866if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15867 acx_cv_header_stdint=$i
5213506e 15868else
c13e029b 15869 continue
5213506e 15870fi
6de9cd9a 15871
c13e029b
PB
15872 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15873#include <$i>
15874"
15875if test "x$ac_cv_type_uintptr_t" = x""yes; then :
96b8a615 15876
5213506e 15877else
c13e029b 15878 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 15879fi
96b8a615 15880
c13e029b
PB
15881 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15882#include <$i>
15883"
15884if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15885
f77b6ca3 15886else
c13e029b 15887 acx_cv_header_stdint_kind="(mostly complete)"
5213506e 15888fi
5213506e 15889
c13e029b
PB
15890 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15891#include <$i>
15892"
15893if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
f77b6ca3 15894
c13e029b
PB
15895else
15896 acx_cv_header_stdint_kind="(mostly complete)"
15897fi
d72a3ac1 15898
c13e029b
PB
15899 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15900#include <$i>
15901"
15902if test "x$ac_cv_type_uint64_t" = x""yes; then :
d72a3ac1 15903
5213506e 15904else
c13e029b
PB
15905 acx_cv_header_stdint_kind="(lacks uint64_t)"
15906fi
f77b6ca3 15907
c13e029b
PB
15908 break
15909done
15910if test "$acx_cv_header_stdint" = stddef.h; then
15911 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15912 for i in stdint.h $inttype_headers; do
15913 unset ac_cv_type_uintptr_t
15914 unset ac_cv_type_uint32_t
15915 unset ac_cv_type_uint64_t
15916 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15917 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15918#include <$i>
15919"
15920if test "x$ac_cv_type_uint32_t" = x""yes; then :
15921 acx_cv_header_stdint=$i
15922else
15923 continue
5213506e 15924fi
f77b6ca3 15925
c13e029b
PB
15926 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15927#include <$i>
15928"
15929if test "x$ac_cv_type_uint64_t" = x""yes; then :
8845001b 15930
c13e029b 15931fi
185d7d97 15932
c13e029b
PB
15933 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15934#include <$i>
15935"
15936if test "x$ac_cv_type_uintptr_t" = x""yes; then :
185d7d97 15937
c13e029b 15938fi
35059811 15939
c13e029b
PB
15940 break
15941 done
15942fi
15943if test "$acx_cv_header_stdint" = stddef.h; then
15944 acx_cv_header_stdint_kind="(u_intXX_t style)"
15945 for i in sys/types.h $inttype_headers; do
15946 unset ac_cv_type_u_int32_t
15947 unset ac_cv_type_u_int64_t
15948 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15949 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15950#include <$i>
15951"
15952if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15953 acx_cv_header_stdint=$i
d72a3ac1 15954else
c13e029b
PB
15955 continue
15956fi
a119fc1c 15957
c13e029b
PB
15958 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15959#include <$i>
15960"
15961if test "x$ac_cv_type_u_int64_t" = x""yes; then :
a119fc1c 15962
c13e029b 15963fi
a119fc1c 15964
c13e029b
PB
15965 break
15966 done
a119fc1c 15967fi
c13e029b
PB
15968if test "$acx_cv_header_stdint" = stddef.h; then
15969 acx_cv_header_stdint_kind="(using manual detection)"
5213506e 15970fi
a119fc1c 15971
c13e029b
PB
15972test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15973test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15974test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15975test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15976test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
a119fc1c 15977
c13e029b 15978# ----------------- Summarize what we found so far
5213506e 15979
c13e029b
PB
15980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15981$as_echo_n "checking what to include in gstdint.h... " >&6; }
a119fc1c 15982
c13e029b
PB
15983case `$as_basename -- gstdint.h ||
15984$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15985 Xgstdint.h : 'X\(//\)$' \| \
15986 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15987$as_echo X/gstdint.h |
15988 sed '/^.*\/\([^/][^/]*\)\/*$/{
15989 s//\1/
15990 q
15991 }
15992 /^X\/\(\/\/\)$/{
15993 s//\1/
15994 q
15995 }
15996 /^X\/\(\/\).*/{
15997 s//\1/
15998 q
15999 }
16000 s/.*/./; q'` in
16001 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16002$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16003 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16004$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16005 *) ;;
16006esac
a119fc1c 16007
c13e029b
PB
16008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16009$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
a63a0959 16010
c13e029b 16011# ----------------- done included file, check C basic types --------
868d75db 16012
c13e029b
PB
16013# Lacking an uintptr_t? Test size of void *
16014case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16015 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16016# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16017# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16018# This bug is HP SR number 8606223364.
16019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16020$as_echo_n "checking size of void *... " >&6; }
16021if test "${ac_cv_sizeof_void_p+set}" = set; then :
16022 $as_echo_n "(cached) " >&6
16023else
16024 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
868d75db 16025
c13e029b
PB
16026else
16027 if test "$ac_cv_type_void_p" = yes; then
16028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16030{ as_fn_set_status 77
16031as_fn_error "cannot compute sizeof (void *)
16032See \`config.log' for more details." "$LINENO" 5; }; }
16033 else
16034 ac_cv_sizeof_void_p=0
16035 fi
16036fi
d72a3ac1 16037
c13e029b
PB
16038fi
16039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16040$as_echo "$ac_cv_sizeof_void_p" >&6; }
d72a3ac1 16041
868d75db
FXC
16042
16043
d72a3ac1 16044cat >>confdefs.h <<_ACEOF
c13e029b 16045#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
d72a3ac1 16046_ACEOF
d72a3ac1 16047
c13e029b
PB
16048 ;;
16049esac
d72a3ac1 16050
c13e029b
PB
16051# Lacking an uint64_t? Test size of long
16052case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16053 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16056# This bug is HP SR number 8606223364.
16057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16058$as_echo_n "checking size of long... " >&6; }
16059if test "${ac_cv_sizeof_long+set}" = set; then :
5213506e
RW
16060 $as_echo_n "(cached) " >&6
16061else
c13e029b 16062 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
d72a3ac1 16063
7f483eec 16064else
c13e029b
PB
16065 if test "$ac_cv_type_long" = yes; then
16066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16068{ as_fn_set_status 77
16069as_fn_error "cannot compute sizeof (long)
16070See \`config.log' for more details." "$LINENO" 5; }; }
16071 else
16072 ac_cv_sizeof_long=0
16073 fi
5213506e 16074fi
7f483eec 16075
c13e029b
PB
16076fi
16077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16078$as_echo "$ac_cv_sizeof_long" >&6; }
d72a3ac1 16079
7f483eec 16080
d72a3ac1
PB
16081
16082cat >>confdefs.h <<_ACEOF
c13e029b 16083#define SIZEOF_LONG $ac_cv_sizeof_long
d72a3ac1 16084_ACEOF
7f483eec 16085
c13e029b
PB
16086 ;;
16087esac
29e86cb0 16088
c13e029b
PB
16089if test $acx_cv_header_stdint = stddef.h; then
16090 # Lacking a good header? Test size of everything and deduce all types.
16091 # The cast to long int works around a bug in the HP C Compiler
16092# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16093# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16094# This bug is HP SR number 8606223364.
16095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16096$as_echo_n "checking size of int... " >&6; }
16097if test "${ac_cv_sizeof_int+set}" = set; then :
16098 $as_echo_n "(cached) " >&6
16099else
16100 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6422c112 16101
c13e029b
PB
16102else
16103 if test "$ac_cv_type_int" = yes; then
16104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16106{ as_fn_set_status 77
16107as_fn_error "cannot compute sizeof (int)
16108See \`config.log' for more details." "$LINENO" 5; }; }
16109 else
16110 ac_cv_sizeof_int=0
16111 fi
16112fi
d8163f5c 16113
c13e029b
PB
16114fi
16115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16116$as_echo "$ac_cv_sizeof_int" >&6; }
2515e5a7
FXC
16117
16118
868d75db 16119
d72a3ac1 16120cat >>confdefs.h <<_ACEOF
c13e029b 16121#define SIZEOF_INT $ac_cv_sizeof_int
d72a3ac1
PB
16122_ACEOF
16123
d72a3ac1 16124
c13e029b
PB
16125 # The cast to long int works around a bug in the HP C Compiler
16126# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16127# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16128# This bug is HP SR number 8606223364.
16129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16130$as_echo_n "checking size of short... " >&6; }
16131if test "${ac_cv_sizeof_short+set}" = set; then :
16132 $as_echo_n "(cached) " >&6
16133else
16134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
d72a3ac1 16135
c13e029b
PB
16136else
16137 if test "$ac_cv_type_short" = yes; then
16138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16140{ as_fn_set_status 77
16141as_fn_error "cannot compute sizeof (short)
16142See \`config.log' for more details." "$LINENO" 5; }; }
16143 else
16144 ac_cv_sizeof_short=0
16145 fi
16146fi
d72a3ac1 16147
c13e029b
PB
16148fi
16149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16150$as_echo "$ac_cv_sizeof_short" >&6; }
d72a3ac1
PB
16151
16152
16153
c13e029b
PB
16154cat >>confdefs.h <<_ACEOF
16155#define SIZEOF_SHORT $ac_cv_sizeof_short
16156_ACEOF
d72a3ac1
PB
16157
16158
c13e029b
PB
16159 # The cast to long int works around a bug in the HP C Compiler
16160# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16161# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16162# This bug is HP SR number 8606223364.
16163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16164$as_echo_n "checking size of char... " >&6; }
16165if test "${ac_cv_sizeof_char+set}" = set; then :
16166 $as_echo_n "(cached) " >&6
16167else
16168 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
d72a3ac1 16169
c13e029b
PB
16170else
16171 if test "$ac_cv_type_char" = yes; then
16172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16174{ as_fn_set_status 77
16175as_fn_error "cannot compute sizeof (char)
16176See \`config.log' for more details." "$LINENO" 5; }; }
16177 else
16178 ac_cv_sizeof_char=0
16179 fi
16180fi
d72a3ac1 16181
c13e029b
PB
16182fi
16183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16184$as_echo "$ac_cv_sizeof_char" >&6; }
d72a3ac1
PB
16185
16186
d72a3ac1 16187
5213506e 16188cat >>confdefs.h <<_ACEOF
c13e029b 16189#define SIZEOF_CHAR $ac_cv_sizeof_char
868d75db 16190_ACEOF
868d75db 16191
868d75db 16192
2017c370 16193
c13e029b
PB
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16195$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16196 case "$ac_cv_sizeof_char" in
16197 1) acx_cv_type_int8_t=char ;;
75bc9e5e 16198 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16199 esac
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16201$as_echo "$acx_cv_type_int8_t" >&6; }
16202
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16204$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16205 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16206 2:*) acx_cv_type_int16_t=int ;;
16207 *:2) acx_cv_type_int16_t=short ;;
75bc9e5e 16208 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16209 esac
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16211$as_echo "$acx_cv_type_int16_t" >&6; }
16212
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16214$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16215 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16216 4:*) acx_cv_type_int32_t=int ;;
16217 *:4) acx_cv_type_int32_t=long ;;
75bc9e5e 16218 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
c13e029b
PB
16219 esac
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16221$as_echo "$acx_cv_type_int32_t" >&6; }
5213506e
RW
16222fi
16223
c13e029b 16224# These tests are here to make the output prettier
d72a3ac1 16225
c13e029b
PB
16226if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16227 case "$ac_cv_sizeof_long" in
16228 8) acx_cv_type_int64_t=long ;;
16229 esac
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16231$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16233$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16234fi
16235
16236# Now we can use the above types
16237
16238if test "$ac_cv_type_uintptr_t" != yes; then
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16240$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16241 case $ac_cv_sizeof_void_p in
16242 2) acx_cv_type_intptr_t=int16_t ;;
16243 4) acx_cv_type_intptr_t=int32_t ;;
16244 8) acx_cv_type_intptr_t=int64_t ;;
75bc9e5e 16245 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
c13e029b
PB
16246 esac
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16248$as_echo "$acx_cv_type_intptr_t" >&6; }
16249fi
d72a3ac1 16250
c13e029b 16251# ----------------- done all checks, emit header -------------
5213506e 16252ac_config_commands="$ac_config_commands gstdint.h"
2017c370 16253
2017c370 16254
5213506e
RW
16255
16256
16257ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16258if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16259
16260cat >>confdefs.h <<_ACEOF
16261#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
2017c370 16262_ACEOF
2017c370 16263
5213506e 16264
2017c370 16265fi
5213506e
RW
16266
16267ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16268if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16269
16270cat >>confdefs.h <<_ACEOF
16271#define HAVE_STRUCT_STAT_ST_BLOCKS 1
2017c370
JB
16272_ACEOF
16273
5213506e 16274
2017c370 16275fi
2017c370 16276
5213506e
RW
16277ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16278if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
2017c370 16279
5213506e
RW
16280cat >>confdefs.h <<_ACEOF
16281#define HAVE_STRUCT_STAT_ST_RDEV 1
16282_ACEOF
868d75db
FXC
16283
16284
f02d008e 16285fi
5213506e
RW
16286
16287
16288# Check for library functions.
16289for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize
16290do :
16291 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16292ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16293eval as_val=\$$as_ac_var
16294 if test "x$as_val" = x""yes; then :
16295 cat >>confdefs.h <<_ACEOF
16296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
f77b6ca3 16297_ACEOF
f77b6ca3 16298
5213506e
RW
16299fi
16300done
f77b6ca3 16301
5213506e
RW
16302for ac_func in chdir strerror getlogin gethostname kill link symlink perror
16303do :
16304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16305ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16306eval as_val=\$$as_ac_var
16307 if test "x$as_val" = x""yes; then :
16308 cat >>confdefs.h <<_ACEOF
16309#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16310_ACEOF
f77b6ca3 16311
5213506e
RW
16312fi
16313done
f77b6ca3 16314
5213506e
RW
16315for ac_func in sleep time ttyname signal alarm ctime clock access fork execl
16316do :
16317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16318ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16319eval as_val=\$$as_ac_var
16320 if test "x$as_val" = x""yes; then :
16321 cat >>confdefs.h <<_ACEOF
16322#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16323_ACEOF
f77b6ca3 16324
5213506e
RW
16325fi
16326done
16327
16328for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit
16329do :
16330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16332eval as_val=\$$as_ac_var
16333 if test "x$as_val" = x""yes; then :
16334 cat >>confdefs.h <<_ACEOF
16335#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
f77b6ca3 16336_ACEOF
96b8a615 16337
96b8a615 16338fi
5213506e
RW
16339done
16340
16341for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd
16342do :
16343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16344ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16345eval as_val=\$$as_ac_var
16346 if test "x$as_val" = x""yes; then :
16347 cat >>confdefs.h <<_ACEOF
16348#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16349_ACEOF
16350
6de9cd9a 16351fi
5213506e
RW
16352done
16353
b5fa435a 16354for ac_func in localtime_r gmtime_r strerror_r getpwuid_r ttyname_r ctime_r
5213506e
RW
16355do :
16356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16357ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16358eval as_val=\$$as_ac_var
16359 if test "x$as_val" = x""yes; then :
96b8a615 16360 cat >>confdefs.h <<_ACEOF
5213506e 16361#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
96b8a615 16362_ACEOF
6de9cd9a 16363
6de9cd9a 16364fi
96b8a615 16365done
6de9cd9a 16366
b6e7a3d1
JB
16367for ac_func in clock_gettime
16368do :
16369 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
16370if test "x$ac_cv_func_clock_gettime" = x""yes; then :
16371 cat >>confdefs.h <<_ACEOF
16372#define HAVE_CLOCK_GETTIME 1
16373_ACEOF
16374
16375fi
16376done
16377
6de9cd9a 16378
5213506e
RW
16379# Check for glibc backtrace functions
16380for ac_func in backtrace backtrace_symbols
16381do :
16382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16383ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16384eval as_val=\$$as_ac_var
16385 if test "x$as_val" = x""yes; then :
16386 cat >>confdefs.h <<_ACEOF
16387#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28f8c9e9 16388_ACEOF
28f8c9e9 16389
28f8c9e9 16390fi
5213506e
RW
16391done
16392
16393
16394# Check for types
16395ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16396if test "x$ac_cv_type_intptr_t" = x""yes; then :
28f8c9e9
FXC
16397
16398cat >>confdefs.h <<_ACEOF
16399#define HAVE_INTPTR_T 1
16400_ACEOF
16401
16402
c7d0f4d5
TK
16403fi
16404
5213506e
RW
16405ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16406if test "x$ac_cv_type_uintptr_t" = x""yes; then :
c7d0f4d5
TK
16407
16408cat >>confdefs.h <<_ACEOF
16409#define HAVE_UINTPTR_T 1
16410_ACEOF
16411
16412
28f8c9e9
FXC
16413fi
16414
16415
4c0c6b9f 16416# Check libc for getgid, getpid, getuid
5213506e
RW
16417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
16418$as_echo_n "checking for getgid in -lc... " >&6; }
16419if test "${ac_cv_lib_c_getgid+set}" = set; then :
16420 $as_echo_n "(cached) " >&6
4c0c6b9f
SK
16421else
16422 ac_check_lib_save_LIBS=$LIBS
16423LIBS="-lc $LIBS"
f02d008e 16424if test x$gcc_no_link = xyes; then
5213506e 16425 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16426fi
5213506e 16427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c0c6b9f
SK
16428/* end confdefs.h. */
16429
5213506e
RW
16430/* Override any GCC internal prototype to avoid an error.
16431 Use char because int might match the return type of a GCC
16432 builtin and then its argument prototype would still apply. */
4c0c6b9f
SK
16433#ifdef __cplusplus
16434extern "C"
16435#endif
4c0c6b9f
SK
16436char getgid ();
16437int
16438main ()
16439{
5213506e 16440return getgid ();
4c0c6b9f
SK
16441 ;
16442 return 0;
16443}
16444_ACEOF
5213506e 16445if ac_fn_c_try_link "$LINENO"; then :
4c0c6b9f
SK
16446 ac_cv_lib_c_getgid=yes
16447else
5213506e 16448 ac_cv_lib_c_getgid=no
4c0c6b9f 16449fi
5213506e
RW
16450rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
4c0c6b9f
SK
16452LIBS=$ac_check_lib_save_LIBS
16453fi
5213506e
RW
16454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
16455$as_echo "$ac_cv_lib_c_getgid" >&6; }
16456if test "x$ac_cv_lib_c_getgid" = x""yes; then :
4c0c6b9f 16457
5213506e 16458$as_echo "#define HAVE_GETGID 1" >>confdefs.h
4c0c6b9f
SK
16459
16460fi
16461
5213506e
RW
16462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
16463$as_echo_n "checking for getpid in -lc... " >&6; }
16464if test "${ac_cv_lib_c_getpid+set}" = set; then :
16465 $as_echo_n "(cached) " >&6
4c0c6b9f
SK
16466else
16467 ac_check_lib_save_LIBS=$LIBS
16468LIBS="-lc $LIBS"
f02d008e 16469if test x$gcc_no_link = xyes; then
5213506e 16470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16471fi
5213506e 16472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c0c6b9f
SK
16473/* end confdefs.h. */
16474
5213506e
RW
16475/* Override any GCC internal prototype to avoid an error.
16476 Use char because int might match the return type of a GCC
16477 builtin and then its argument prototype would still apply. */
4c0c6b9f
SK
16478#ifdef __cplusplus
16479extern "C"
16480#endif
4c0c6b9f
SK
16481char getpid ();
16482int
16483main ()
16484{
5213506e 16485return getpid ();
4c0c6b9f
SK
16486 ;
16487 return 0;
16488}
16489_ACEOF
5213506e 16490if ac_fn_c_try_link "$LINENO"; then :
4c0c6b9f
SK
16491 ac_cv_lib_c_getpid=yes
16492else
5213506e 16493 ac_cv_lib_c_getpid=no
4c0c6b9f 16494fi
5213506e
RW
16495rm -f core conftest.err conftest.$ac_objext \
16496 conftest$ac_exeext conftest.$ac_ext
4c0c6b9f
SK
16497LIBS=$ac_check_lib_save_LIBS
16498fi
5213506e
RW
16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
16500$as_echo "$ac_cv_lib_c_getpid" >&6; }
16501if test "x$ac_cv_lib_c_getpid" = x""yes; then :
4c0c6b9f 16502
5213506e 16503$as_echo "#define HAVE_GETPID 1" >>confdefs.h
4c0c6b9f
SK
16504
16505fi
16506
5213506e
RW
16507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getppid in -lc" >&5
16508$as_echo_n "checking for getppid in -lc... " >&6; }
16509if test "${ac_cv_lib_c_getppid+set}" = set; then :
16510 $as_echo_n "(cached) " >&6
868d75db
FXC
16511else
16512 ac_check_lib_save_LIBS=$LIBS
16513LIBS="-lc $LIBS"
16514if test x$gcc_no_link = xyes; then
5213506e 16515 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
868d75db 16516fi
5213506e 16517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
868d75db
FXC
16518/* end confdefs.h. */
16519
5213506e
RW
16520/* Override any GCC internal prototype to avoid an error.
16521 Use char because int might match the return type of a GCC
16522 builtin and then its argument prototype would still apply. */
868d75db
FXC
16523#ifdef __cplusplus
16524extern "C"
16525#endif
868d75db
FXC
16526char getppid ();
16527int
16528main ()
16529{
5213506e 16530return getppid ();
868d75db
FXC
16531 ;
16532 return 0;
16533}
16534_ACEOF
5213506e 16535if ac_fn_c_try_link "$LINENO"; then :
868d75db
FXC
16536 ac_cv_lib_c_getppid=yes
16537else
5213506e 16538 ac_cv_lib_c_getppid=no
868d75db 16539fi
5213506e
RW
16540rm -f core conftest.err conftest.$ac_objext \
16541 conftest$ac_exeext conftest.$ac_ext
868d75db
FXC
16542LIBS=$ac_check_lib_save_LIBS
16543fi
5213506e
RW
16544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getppid" >&5
16545$as_echo "$ac_cv_lib_c_getppid" >&6; }
16546if test "x$ac_cv_lib_c_getppid" = x""yes; then :
868d75db 16547
5213506e 16548$as_echo "#define HAVE_GETPPID 1" >>confdefs.h
868d75db
FXC
16549
16550fi
16551
5213506e
RW
16552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
16553$as_echo_n "checking for getuid in -lc... " >&6; }
16554if test "${ac_cv_lib_c_getuid+set}" = set; then :
16555 $as_echo_n "(cached) " >&6
4c0c6b9f
SK
16556else
16557 ac_check_lib_save_LIBS=$LIBS
16558LIBS="-lc $LIBS"
f02d008e 16559if test x$gcc_no_link = xyes; then
5213506e 16560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16561fi
5213506e 16562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c0c6b9f
SK
16563/* end confdefs.h. */
16564
5213506e
RW
16565/* Override any GCC internal prototype to avoid an error.
16566 Use char because int might match the return type of a GCC
16567 builtin and then its argument prototype would still apply. */
4c0c6b9f
SK
16568#ifdef __cplusplus
16569extern "C"
16570#endif
4c0c6b9f
SK
16571char getuid ();
16572int
16573main ()
16574{
5213506e 16575return getuid ();
4c0c6b9f
SK
16576 ;
16577 return 0;
16578}
16579_ACEOF
5213506e 16580if ac_fn_c_try_link "$LINENO"; then :
4c0c6b9f
SK
16581 ac_cv_lib_c_getuid=yes
16582else
5213506e 16583 ac_cv_lib_c_getuid=no
4c0c6b9f 16584fi
5213506e
RW
16585rm -f core conftest.err conftest.$ac_objext \
16586 conftest$ac_exeext conftest.$ac_ext
4c0c6b9f
SK
16587LIBS=$ac_check_lib_save_LIBS
16588fi
5213506e
RW
16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
16590$as_echo "$ac_cv_lib_c_getuid" >&6; }
16591if test "x$ac_cv_lib_c_getuid" = x""yes; then :
4c0c6b9f 16592
5213506e 16593$as_echo "#define HAVE_GETUID 1" >>confdefs.h
4c0c6b9f
SK
16594
16595fi
16596
5213506e
RW
16597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for geteuid in -lc" >&5
16598$as_echo_n "checking for geteuid in -lc... " >&6; }
16599if test "${ac_cv_lib_c_geteuid+set}" = set; then :
16600 $as_echo_n "(cached) " >&6
6422c112
FXC
16601else
16602 ac_check_lib_save_LIBS=$LIBS
16603LIBS="-lc $LIBS"
16604if test x$gcc_no_link = xyes; then
5213506e 16605 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6422c112 16606fi
5213506e 16607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422c112
FXC
16608/* end confdefs.h. */
16609
5213506e
RW
16610/* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
6422c112
FXC
16613#ifdef __cplusplus
16614extern "C"
16615#endif
6422c112
FXC
16616char geteuid ();
16617int
16618main ()
16619{
5213506e 16620return geteuid ();
6422c112
FXC
16621 ;
16622 return 0;
16623}
16624_ACEOF
5213506e 16625if ac_fn_c_try_link "$LINENO"; then :
6422c112
FXC
16626 ac_cv_lib_c_geteuid=yes
16627else
5213506e 16628 ac_cv_lib_c_geteuid=no
6422c112 16629fi
5213506e
RW
16630rm -f core conftest.err conftest.$ac_objext \
16631 conftest$ac_exeext conftest.$ac_ext
6422c112
FXC
16632LIBS=$ac_check_lib_save_LIBS
16633fi
5213506e
RW
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_geteuid" >&5
16635$as_echo "$ac_cv_lib_c_geteuid" >&6; }
16636if test "x$ac_cv_lib_c_geteuid" = x""yes; then :
6422c112 16637
5213506e 16638$as_echo "#define HAVE_GETEUID 1" >>confdefs.h
6422c112
FXC
16639
16640fi
16641
4c0c6b9f 16642
453310d8 16643# Check for C99 (and other IEEE) math functions
5213506e
RW
16644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf in -lm" >&5
16645$as_echo_n "checking for acosf in -lm... " >&6; }
16646if test "${ac_cv_lib_m_acosf+set}" = set; then :
16647 $as_echo_n "(cached) " >&6
453310d8
RS
16648else
16649 ac_check_lib_save_LIBS=$LIBS
16650LIBS="-lm $LIBS"
f02d008e 16651if test x$gcc_no_link = xyes; then
5213506e 16652 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16653fi
5213506e 16654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16655/* end confdefs.h. */
16656
5213506e
RW
16657/* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
453310d8
RS
16660#ifdef __cplusplus
16661extern "C"
16662#endif
453310d8
RS
16663char acosf ();
16664int
16665main ()
16666{
5213506e 16667return acosf ();
453310d8
RS
16668 ;
16669 return 0;
16670}
16671_ACEOF
5213506e 16672if ac_fn_c_try_link "$LINENO"; then :
453310d8
RS
16673 ac_cv_lib_m_acosf=yes
16674else
5213506e 16675 ac_cv_lib_m_acosf=no
453310d8 16676fi
5213506e
RW
16677rm -f core conftest.err conftest.$ac_objext \
16678 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16679LIBS=$ac_check_lib_save_LIBS
16680fi
5213506e
RW
16681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosf" >&5
16682$as_echo "$ac_cv_lib_m_acosf" >&6; }
16683if test "x$ac_cv_lib_m_acosf" = x""yes; then :
453310d8 16684
5213506e 16685$as_echo "#define HAVE_ACOSF 1" >>confdefs.h
453310d8
RS
16686
16687fi
16688
5213506e
RW
16689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
16690$as_echo_n "checking for acos in -lm... " >&6; }
16691if test "${ac_cv_lib_m_acos+set}" = set; then :
16692 $as_echo_n "(cached) " >&6
f02d008e
JD
16693else
16694 ac_check_lib_save_LIBS=$LIBS
16695LIBS="-lm $LIBS"
16696if test x$gcc_no_link = xyes; then
5213506e 16697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16698fi
5213506e 16699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16700/* end confdefs.h. */
16701
5213506e
RW
16702/* Override any GCC internal prototype to avoid an error.
16703 Use char because int might match the return type of a GCC
16704 builtin and then its argument prototype would still apply. */
f02d008e
JD
16705#ifdef __cplusplus
16706extern "C"
16707#endif
1409cd0b 16708char acos ();
f02d008e
JD
16709int
16710main ()
16711{
5213506e 16712return acos ();
f02d008e
JD
16713 ;
16714 return 0;
16715}
16716_ACEOF
5213506e 16717if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 16718 ac_cv_lib_m_acos=yes
f02d008e 16719else
5213506e 16720 ac_cv_lib_m_acos=no
f02d008e 16721fi
5213506e
RW
16722rm -f core conftest.err conftest.$ac_objext \
16723 conftest$ac_exeext conftest.$ac_ext
f02d008e
JD
16724LIBS=$ac_check_lib_save_LIBS
16725fi
5213506e
RW
16726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
16727$as_echo "$ac_cv_lib_m_acos" >&6; }
16728if test "x$ac_cv_lib_m_acos" = x""yes; then :
f02d008e 16729
5213506e 16730$as_echo "#define HAVE_ACOS 1" >>confdefs.h
f02d008e
JD
16731
16732fi
16733
5213506e
RW
16734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl in -lm" >&5
16735$as_echo_n "checking for acosl in -lm... " >&6; }
16736if test "${ac_cv_lib_m_acosl+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
453310d8
RS
16738else
16739 ac_check_lib_save_LIBS=$LIBS
16740LIBS="-lm $LIBS"
f02d008e 16741if test x$gcc_no_link = xyes; then
5213506e 16742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16743fi
5213506e 16744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16745/* end confdefs.h. */
16746
5213506e
RW
16747/* Override any GCC internal prototype to avoid an error.
16748 Use char because int might match the return type of a GCC
16749 builtin and then its argument prototype would still apply. */
453310d8
RS
16750#ifdef __cplusplus
16751extern "C"
16752#endif
1409cd0b 16753char acosl ();
453310d8
RS
16754int
16755main ()
16756{
5213506e 16757return acosl ();
453310d8
RS
16758 ;
16759 return 0;
16760}
16761_ACEOF
5213506e 16762if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 16763 ac_cv_lib_m_acosl=yes
453310d8 16764else
5213506e 16765 ac_cv_lib_m_acosl=no
453310d8 16766fi
5213506e
RW
16767rm -f core conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16769LIBS=$ac_check_lib_save_LIBS
16770fi
5213506e
RW
16771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosl" >&5
16772$as_echo "$ac_cv_lib_m_acosl" >&6; }
16773if test "x$ac_cv_lib_m_acosl" = x""yes; then :
453310d8 16774
5213506e 16775$as_echo "#define HAVE_ACOSL 1" >>confdefs.h
453310d8
RS
16776
16777fi
16778
5213506e
RW
16779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf in -lm" >&5
16780$as_echo_n "checking for acoshf in -lm... " >&6; }
16781if test "${ac_cv_lib_m_acoshf+set}" = set; then :
16782 $as_echo_n "(cached) " >&6
f02d008e
JD
16783else
16784 ac_check_lib_save_LIBS=$LIBS
16785LIBS="-lm $LIBS"
16786if test x$gcc_no_link = xyes; then
5213506e 16787 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16788fi
5213506e 16789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16790/* end confdefs.h. */
16791
5213506e
RW
16792/* Override any GCC internal prototype to avoid an error.
16793 Use char because int might match the return type of a GCC
16794 builtin and then its argument prototype would still apply. */
f02d008e
JD
16795#ifdef __cplusplus
16796extern "C"
16797#endif
1409cd0b 16798char acoshf ();
f02d008e
JD
16799int
16800main ()
16801{
5213506e 16802return acoshf ();
f02d008e
JD
16803 ;
16804 return 0;
16805}
16806_ACEOF
5213506e 16807if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 16808 ac_cv_lib_m_acoshf=yes
f02d008e 16809else
5213506e 16810 ac_cv_lib_m_acoshf=no
f02d008e 16811fi
5213506e
RW
16812rm -f core conftest.err conftest.$ac_objext \
16813 conftest$ac_exeext conftest.$ac_ext
f02d008e
JD
16814LIBS=$ac_check_lib_save_LIBS
16815fi
5213506e
RW
16816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshf" >&5
16817$as_echo "$ac_cv_lib_m_acoshf" >&6; }
16818if test "x$ac_cv_lib_m_acoshf" = x""yes; then :
f02d008e 16819
5213506e 16820$as_echo "#define HAVE_ACOSHF 1" >>confdefs.h
f02d008e
JD
16821
16822fi
16823
5213506e
RW
16824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh in -lm" >&5
16825$as_echo_n "checking for acosh in -lm... " >&6; }
16826if test "${ac_cv_lib_m_acosh+set}" = set; then :
16827 $as_echo_n "(cached) " >&6
453310d8
RS
16828else
16829 ac_check_lib_save_LIBS=$LIBS
16830LIBS="-lm $LIBS"
f02d008e 16831if test x$gcc_no_link = xyes; then
5213506e 16832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16833fi
5213506e 16834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16835/* end confdefs.h. */
16836
5213506e
RW
16837/* Override any GCC internal prototype to avoid an error.
16838 Use char because int might match the return type of a GCC
16839 builtin and then its argument prototype would still apply. */
453310d8
RS
16840#ifdef __cplusplus
16841extern "C"
16842#endif
1409cd0b 16843char acosh ();
453310d8
RS
16844int
16845main ()
16846{
5213506e 16847return acosh ();
453310d8
RS
16848 ;
16849 return 0;
16850}
16851_ACEOF
5213506e 16852if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 16853 ac_cv_lib_m_acosh=yes
453310d8 16854else
5213506e 16855 ac_cv_lib_m_acosh=no
453310d8 16856fi
5213506e
RW
16857rm -f core conftest.err conftest.$ac_objext \
16858 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16859LIBS=$ac_check_lib_save_LIBS
16860fi
5213506e
RW
16861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosh" >&5
16862$as_echo "$ac_cv_lib_m_acosh" >&6; }
16863if test "x$ac_cv_lib_m_acosh" = x""yes; then :
453310d8 16864
5213506e 16865$as_echo "#define HAVE_ACOSH 1" >>confdefs.h
453310d8
RS
16866
16867fi
16868
5213506e
RW
16869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl in -lm" >&5
16870$as_echo_n "checking for acoshl in -lm... " >&6; }
16871if test "${ac_cv_lib_m_acoshl+set}" = set; then :
16872 $as_echo_n "(cached) " >&6
453310d8
RS
16873else
16874 ac_check_lib_save_LIBS=$LIBS
16875LIBS="-lm $LIBS"
f02d008e 16876if test x$gcc_no_link = xyes; then
5213506e 16877 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16878fi
5213506e 16879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16880/* end confdefs.h. */
16881
5213506e
RW
16882/* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
453310d8
RS
16885#ifdef __cplusplus
16886extern "C"
16887#endif
1409cd0b 16888char acoshl ();
453310d8
RS
16889int
16890main ()
16891{
5213506e 16892return acoshl ();
453310d8 16893 ;
5213506e
RW
16894 return 0;
16895}
16896_ACEOF
16897if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 16898 ac_cv_lib_m_acoshl=yes
453310d8 16899else
5213506e 16900 ac_cv_lib_m_acoshl=no
453310d8 16901fi
5213506e
RW
16902rm -f core conftest.err conftest.$ac_objext \
16903 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16904LIBS=$ac_check_lib_save_LIBS
16905fi
5213506e
RW
16906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshl" >&5
16907$as_echo "$ac_cv_lib_m_acoshl" >&6; }
16908if test "x$ac_cv_lib_m_acoshl" = x""yes; then :
453310d8 16909
5213506e 16910$as_echo "#define HAVE_ACOSHL 1" >>confdefs.h
453310d8
RS
16911
16912fi
16913
5213506e
RW
16914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf in -lm" >&5
16915$as_echo_n "checking for asinf in -lm... " >&6; }
16916if test "${ac_cv_lib_m_asinf+set}" = set; then :
16917 $as_echo_n "(cached) " >&6
f02d008e
JD
16918else
16919 ac_check_lib_save_LIBS=$LIBS
16920LIBS="-lm $LIBS"
16921if test x$gcc_no_link = xyes; then
5213506e 16922 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16923fi
5213506e 16924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f02d008e
JD
16925/* end confdefs.h. */
16926
5213506e
RW
16927/* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
f02d008e
JD
16930#ifdef __cplusplus
16931extern "C"
16932#endif
1409cd0b 16933char asinf ();
f02d008e
JD
16934int
16935main ()
16936{
5213506e 16937return asinf ();
f02d008e
JD
16938 ;
16939 return 0;
16940}
16941_ACEOF
5213506e 16942if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 16943 ac_cv_lib_m_asinf=yes
f02d008e 16944else
5213506e 16945 ac_cv_lib_m_asinf=no
f02d008e 16946fi
5213506e
RW
16947rm -f core conftest.err conftest.$ac_objext \
16948 conftest$ac_exeext conftest.$ac_ext
f02d008e
JD
16949LIBS=$ac_check_lib_save_LIBS
16950fi
5213506e
RW
16951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinf" >&5
16952$as_echo "$ac_cv_lib_m_asinf" >&6; }
16953if test "x$ac_cv_lib_m_asinf" = x""yes; then :
f02d008e 16954
5213506e 16955$as_echo "#define HAVE_ASINF 1" >>confdefs.h
f02d008e
JD
16956
16957fi
16958
5213506e
RW
16959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
16960$as_echo_n "checking for asin in -lm... " >&6; }
16961if test "${ac_cv_lib_m_asin+set}" = set; then :
16962 $as_echo_n "(cached) " >&6
453310d8
RS
16963else
16964 ac_check_lib_save_LIBS=$LIBS
16965LIBS="-lm $LIBS"
f02d008e 16966if test x$gcc_no_link = xyes; then
5213506e 16967 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 16968fi
5213506e 16969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
16970/* end confdefs.h. */
16971
5213506e
RW
16972/* Override any GCC internal prototype to avoid an error.
16973 Use char because int might match the return type of a GCC
16974 builtin and then its argument prototype would still apply. */
453310d8
RS
16975#ifdef __cplusplus
16976extern "C"
16977#endif
1409cd0b 16978char asin ();
453310d8
RS
16979int
16980main ()
16981{
5213506e 16982return asin ();
453310d8
RS
16983 ;
16984 return 0;
16985}
16986_ACEOF
5213506e 16987if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 16988 ac_cv_lib_m_asin=yes
453310d8 16989else
5213506e 16990 ac_cv_lib_m_asin=no
453310d8 16991fi
5213506e
RW
16992rm -f core conftest.err conftest.$ac_objext \
16993 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
16994LIBS=$ac_check_lib_save_LIBS
16995fi
5213506e
RW
16996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
16997$as_echo "$ac_cv_lib_m_asin" >&6; }
16998if test "x$ac_cv_lib_m_asin" = x""yes; then :
453310d8 16999
5213506e 17000$as_echo "#define HAVE_ASIN 1" >>confdefs.h
453310d8
RS
17001
17002fi
17003
5213506e
RW
17004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl in -lm" >&5
17005$as_echo_n "checking for asinl in -lm... " >&6; }
17006if test "${ac_cv_lib_m_asinl+set}" = set; then :
17007 $as_echo_n "(cached) " >&6
453310d8
RS
17008else
17009 ac_check_lib_save_LIBS=$LIBS
17010LIBS="-lm $LIBS"
f02d008e 17011if test x$gcc_no_link = xyes; then
5213506e 17012 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17013fi
5213506e 17014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17015/* end confdefs.h. */
17016
5213506e
RW
17017/* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
453310d8
RS
17020#ifdef __cplusplus
17021extern "C"
17022#endif
1409cd0b 17023char asinl ();
453310d8
RS
17024int
17025main ()
17026{
5213506e 17027return asinl ();
453310d8
RS
17028 ;
17029 return 0;
17030}
17031_ACEOF
5213506e 17032if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17033 ac_cv_lib_m_asinl=yes
453310d8 17034else
5213506e 17035 ac_cv_lib_m_asinl=no
453310d8 17036fi
5213506e
RW
17037rm -f core conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17039LIBS=$ac_check_lib_save_LIBS
17040fi
5213506e
RW
17041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinl" >&5
17042$as_echo "$ac_cv_lib_m_asinl" >&6; }
17043if test "x$ac_cv_lib_m_asinl" = x""yes; then :
453310d8 17044
5213506e 17045$as_echo "#define HAVE_ASINL 1" >>confdefs.h
453310d8
RS
17046
17047fi
17048
5213506e
RW
17049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf in -lm" >&5
17050$as_echo_n "checking for asinhf in -lm... " >&6; }
17051if test "${ac_cv_lib_m_asinhf+set}" = set; then :
17052 $as_echo_n "(cached) " >&6
453310d8
RS
17053else
17054 ac_check_lib_save_LIBS=$LIBS
17055LIBS="-lm $LIBS"
f02d008e 17056if test x$gcc_no_link = xyes; then
5213506e 17057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17058fi
5213506e 17059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17060/* end confdefs.h. */
17061
5213506e
RW
17062/* Override any GCC internal prototype to avoid an error.
17063 Use char because int might match the return type of a GCC
17064 builtin and then its argument prototype would still apply. */
453310d8
RS
17065#ifdef __cplusplus
17066extern "C"
17067#endif
1409cd0b 17068char asinhf ();
453310d8
RS
17069int
17070main ()
17071{
5213506e 17072return asinhf ();
453310d8
RS
17073 ;
17074 return 0;
17075}
17076_ACEOF
5213506e 17077if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17078 ac_cv_lib_m_asinhf=yes
453310d8 17079else
5213506e 17080 ac_cv_lib_m_asinhf=no
453310d8 17081fi
5213506e
RW
17082rm -f core conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17084LIBS=$ac_check_lib_save_LIBS
17085fi
5213506e
RW
17086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhf" >&5
17087$as_echo "$ac_cv_lib_m_asinhf" >&6; }
17088if test "x$ac_cv_lib_m_asinhf" = x""yes; then :
453310d8 17089
5213506e 17090$as_echo "#define HAVE_ASINHF 1" >>confdefs.h
453310d8
RS
17091
17092fi
17093
5213506e
RW
17094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh in -lm" >&5
17095$as_echo_n "checking for asinh in -lm... " >&6; }
17096if test "${ac_cv_lib_m_asinh+set}" = set; then :
17097 $as_echo_n "(cached) " >&6
453310d8
RS
17098else
17099 ac_check_lib_save_LIBS=$LIBS
17100LIBS="-lm $LIBS"
f02d008e 17101if test x$gcc_no_link = xyes; then
5213506e 17102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17103fi
5213506e 17104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17105/* end confdefs.h. */
17106
5213506e
RW
17107/* Override any GCC internal prototype to avoid an error.
17108 Use char because int might match the return type of a GCC
17109 builtin and then its argument prototype would still apply. */
453310d8
RS
17110#ifdef __cplusplus
17111extern "C"
17112#endif
1409cd0b 17113char asinh ();
453310d8
RS
17114int
17115main ()
17116{
5213506e 17117return asinh ();
453310d8
RS
17118 ;
17119 return 0;
17120}
17121_ACEOF
5213506e 17122if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17123 ac_cv_lib_m_asinh=yes
453310d8 17124else
5213506e 17125 ac_cv_lib_m_asinh=no
453310d8 17126fi
5213506e
RW
17127rm -f core conftest.err conftest.$ac_objext \
17128 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17129LIBS=$ac_check_lib_save_LIBS
17130fi
5213506e
RW
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinh" >&5
17132$as_echo "$ac_cv_lib_m_asinh" >&6; }
17133if test "x$ac_cv_lib_m_asinh" = x""yes; then :
453310d8 17134
5213506e 17135$as_echo "#define HAVE_ASINH 1" >>confdefs.h
453310d8
RS
17136
17137fi
17138
5213506e
RW
17139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl in -lm" >&5
17140$as_echo_n "checking for asinhl in -lm... " >&6; }
17141if test "${ac_cv_lib_m_asinhl+set}" = set; then :
17142 $as_echo_n "(cached) " >&6
453310d8
RS
17143else
17144 ac_check_lib_save_LIBS=$LIBS
17145LIBS="-lm $LIBS"
f02d008e 17146if test x$gcc_no_link = xyes; then
5213506e 17147 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17148fi
5213506e 17149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17150/* end confdefs.h. */
17151
5213506e
RW
17152/* Override any GCC internal prototype to avoid an error.
17153 Use char because int might match the return type of a GCC
17154 builtin and then its argument prototype would still apply. */
453310d8
RS
17155#ifdef __cplusplus
17156extern "C"
17157#endif
1409cd0b 17158char asinhl ();
453310d8
RS
17159int
17160main ()
17161{
5213506e 17162return asinhl ();
453310d8
RS
17163 ;
17164 return 0;
17165}
17166_ACEOF
5213506e 17167if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17168 ac_cv_lib_m_asinhl=yes
453310d8 17169else
5213506e 17170 ac_cv_lib_m_asinhl=no
453310d8 17171fi
5213506e
RW
17172rm -f core conftest.err conftest.$ac_objext \
17173 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17174LIBS=$ac_check_lib_save_LIBS
17175fi
5213506e
RW
17176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhl" >&5
17177$as_echo "$ac_cv_lib_m_asinhl" >&6; }
17178if test "x$ac_cv_lib_m_asinhl" = x""yes; then :
453310d8 17179
5213506e 17180$as_echo "#define HAVE_ASINHL 1" >>confdefs.h
453310d8
RS
17181
17182fi
17183
5213506e
RW
17184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f in -lm" >&5
17185$as_echo_n "checking for atan2f in -lm... " >&6; }
17186if test "${ac_cv_lib_m_atan2f+set}" = set; then :
17187 $as_echo_n "(cached) " >&6
6e4d9244
EB
17188else
17189 ac_check_lib_save_LIBS=$LIBS
17190LIBS="-lm $LIBS"
f02d008e 17191if test x$gcc_no_link = xyes; then
5213506e 17192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17193fi
5213506e 17194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6e4d9244
EB
17195/* end confdefs.h. */
17196
5213506e
RW
17197/* Override any GCC internal prototype to avoid an error.
17198 Use char because int might match the return type of a GCC
17199 builtin and then its argument prototype would still apply. */
6e4d9244
EB
17200#ifdef __cplusplus
17201extern "C"
17202#endif
1409cd0b 17203char atan2f ();
6e4d9244
EB
17204int
17205main ()
17206{
5213506e 17207return atan2f ();
6e4d9244
EB
17208 ;
17209 return 0;
17210}
17211_ACEOF
5213506e 17212if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17213 ac_cv_lib_m_atan2f=yes
6e4d9244 17214else
5213506e 17215 ac_cv_lib_m_atan2f=no
6e4d9244 17216fi
5213506e
RW
17217rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
6e4d9244
EB
17219LIBS=$ac_check_lib_save_LIBS
17220fi
5213506e
RW
17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2f" >&5
17222$as_echo "$ac_cv_lib_m_atan2f" >&6; }
17223if test "x$ac_cv_lib_m_atan2f" = x""yes; then :
6e4d9244 17224
5213506e 17225$as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
6e4d9244
EB
17226
17227fi
17228
5213506e
RW
17229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
17230$as_echo_n "checking for atan2 in -lm... " >&6; }
17231if test "${ac_cv_lib_m_atan2+set}" = set; then :
17232 $as_echo_n "(cached) " >&6
453310d8
RS
17233else
17234 ac_check_lib_save_LIBS=$LIBS
17235LIBS="-lm $LIBS"
f02d008e 17236if test x$gcc_no_link = xyes; then
5213506e 17237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17238fi
5213506e 17239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17240/* end confdefs.h. */
17241
5213506e
RW
17242/* Override any GCC internal prototype to avoid an error.
17243 Use char because int might match the return type of a GCC
17244 builtin and then its argument prototype would still apply. */
453310d8
RS
17245#ifdef __cplusplus
17246extern "C"
17247#endif
1409cd0b 17248char atan2 ();
453310d8
RS
17249int
17250main ()
17251{
5213506e 17252return atan2 ();
453310d8
RS
17253 ;
17254 return 0;
17255}
17256_ACEOF
5213506e 17257if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17258 ac_cv_lib_m_atan2=yes
453310d8 17259else
5213506e 17260 ac_cv_lib_m_atan2=no
453310d8 17261fi
5213506e
RW
17262rm -f core conftest.err conftest.$ac_objext \
17263 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17264LIBS=$ac_check_lib_save_LIBS
17265fi
5213506e
RW
17266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
17267$as_echo "$ac_cv_lib_m_atan2" >&6; }
17268if test "x$ac_cv_lib_m_atan2" = x""yes; then :
453310d8 17269
5213506e 17270$as_echo "#define HAVE_ATAN2 1" >>confdefs.h
453310d8
RS
17271
17272fi
17273
5213506e
RW
17274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l in -lm" >&5
17275$as_echo_n "checking for atan2l in -lm... " >&6; }
17276if test "${ac_cv_lib_m_atan2l+set}" = set; then :
17277 $as_echo_n "(cached) " >&6
453310d8
RS
17278else
17279 ac_check_lib_save_LIBS=$LIBS
17280LIBS="-lm $LIBS"
f02d008e 17281if test x$gcc_no_link = xyes; then
5213506e 17282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17283fi
5213506e 17284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17285/* end confdefs.h. */
17286
5213506e
RW
17287/* Override any GCC internal prototype to avoid an error.
17288 Use char because int might match the return type of a GCC
17289 builtin and then its argument prototype would still apply. */
453310d8
RS
17290#ifdef __cplusplus
17291extern "C"
17292#endif
1409cd0b 17293char atan2l ();
453310d8
RS
17294int
17295main ()
17296{
5213506e 17297return atan2l ();
453310d8
RS
17298 ;
17299 return 0;
17300}
17301_ACEOF
5213506e 17302if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17303 ac_cv_lib_m_atan2l=yes
453310d8 17304else
5213506e 17305 ac_cv_lib_m_atan2l=no
453310d8 17306fi
5213506e
RW
17307rm -f core conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17309LIBS=$ac_check_lib_save_LIBS
17310fi
5213506e
RW
17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2l" >&5
17312$as_echo "$ac_cv_lib_m_atan2l" >&6; }
17313if test "x$ac_cv_lib_m_atan2l" = x""yes; then :
453310d8 17314
5213506e 17315$as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
453310d8
RS
17316
17317fi
17318
5213506e
RW
17319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf in -lm" >&5
17320$as_echo_n "checking for atanf in -lm... " >&6; }
17321if test "${ac_cv_lib_m_atanf+set}" = set; then :
17322 $as_echo_n "(cached) " >&6
453310d8
RS
17323else
17324 ac_check_lib_save_LIBS=$LIBS
17325LIBS="-lm $LIBS"
f02d008e 17326if test x$gcc_no_link = xyes; then
5213506e 17327 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17328fi
5213506e 17329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17330/* end confdefs.h. */
17331
5213506e
RW
17332/* Override any GCC internal prototype to avoid an error.
17333 Use char because int might match the return type of a GCC
17334 builtin and then its argument prototype would still apply. */
453310d8
RS
17335#ifdef __cplusplus
17336extern "C"
17337#endif
1409cd0b 17338char atanf ();
453310d8
RS
17339int
17340main ()
17341{
5213506e 17342return atanf ();
453310d8
RS
17343 ;
17344 return 0;
17345}
17346_ACEOF
5213506e 17347if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17348 ac_cv_lib_m_atanf=yes
453310d8 17349else
5213506e 17350 ac_cv_lib_m_atanf=no
453310d8 17351fi
5213506e
RW
17352rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17354LIBS=$ac_check_lib_save_LIBS
17355fi
5213506e
RW
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanf" >&5
17357$as_echo "$ac_cv_lib_m_atanf" >&6; }
17358if test "x$ac_cv_lib_m_atanf" = x""yes; then :
453310d8 17359
5213506e 17360$as_echo "#define HAVE_ATANF 1" >>confdefs.h
453310d8
RS
17361
17362fi
17363
5213506e
RW
17364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan in -lm" >&5
17365$as_echo_n "checking for atan in -lm... " >&6; }
17366if test "${ac_cv_lib_m_atan+set}" = set; then :
17367 $as_echo_n "(cached) " >&6
453310d8
RS
17368else
17369 ac_check_lib_save_LIBS=$LIBS
17370LIBS="-lm $LIBS"
f02d008e 17371if test x$gcc_no_link = xyes; then
5213506e 17372 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17373fi
5213506e 17374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17375/* end confdefs.h. */
17376
5213506e
RW
17377/* Override any GCC internal prototype to avoid an error.
17378 Use char because int might match the return type of a GCC
17379 builtin and then its argument prototype would still apply. */
453310d8
RS
17380#ifdef __cplusplus
17381extern "C"
17382#endif
1409cd0b 17383char atan ();
453310d8
RS
17384int
17385main ()
17386{
5213506e 17387return atan ();
453310d8
RS
17388 ;
17389 return 0;
17390}
17391_ACEOF
5213506e 17392if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17393 ac_cv_lib_m_atan=yes
453310d8 17394else
5213506e 17395 ac_cv_lib_m_atan=no
453310d8 17396fi
5213506e
RW
17397rm -f core conftest.err conftest.$ac_objext \
17398 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17399LIBS=$ac_check_lib_save_LIBS
17400fi
5213506e
RW
17401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan" >&5
17402$as_echo "$ac_cv_lib_m_atan" >&6; }
17403if test "x$ac_cv_lib_m_atan" = x""yes; then :
453310d8 17404
5213506e 17405$as_echo "#define HAVE_ATAN 1" >>confdefs.h
453310d8
RS
17406
17407fi
17408
5213506e
RW
17409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl in -lm" >&5
17410$as_echo_n "checking for atanl in -lm... " >&6; }
17411if test "${ac_cv_lib_m_atanl+set}" = set; then :
17412 $as_echo_n "(cached) " >&6
453310d8
RS
17413else
17414 ac_check_lib_save_LIBS=$LIBS
17415LIBS="-lm $LIBS"
f02d008e 17416if test x$gcc_no_link = xyes; then
5213506e 17417 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17418fi
5213506e 17419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17420/* end confdefs.h. */
17421
5213506e
RW
17422/* Override any GCC internal prototype to avoid an error.
17423 Use char because int might match the return type of a GCC
17424 builtin and then its argument prototype would still apply. */
453310d8
RS
17425#ifdef __cplusplus
17426extern "C"
17427#endif
1409cd0b 17428char atanl ();
453310d8
RS
17429int
17430main ()
17431{
5213506e 17432return atanl ();
453310d8
RS
17433 ;
17434 return 0;
17435}
17436_ACEOF
5213506e 17437if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17438 ac_cv_lib_m_atanl=yes
453310d8 17439else
5213506e 17440 ac_cv_lib_m_atanl=no
453310d8 17441fi
5213506e
RW
17442rm -f core conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17444LIBS=$ac_check_lib_save_LIBS
17445fi
5213506e
RW
17446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanl" >&5
17447$as_echo "$ac_cv_lib_m_atanl" >&6; }
17448if test "x$ac_cv_lib_m_atanl" = x""yes; then :
453310d8 17449
5213506e 17450$as_echo "#define HAVE_ATANL 1" >>confdefs.h
453310d8
RS
17451
17452fi
17453
5213506e
RW
17454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf in -lm" >&5
17455$as_echo_n "checking for atanhf in -lm... " >&6; }
17456if test "${ac_cv_lib_m_atanhf+set}" = set; then :
17457 $as_echo_n "(cached) " >&6
32aa3bff
FXC
17458else
17459 ac_check_lib_save_LIBS=$LIBS
17460LIBS="-lm $LIBS"
f02d008e 17461if test x$gcc_no_link = xyes; then
5213506e 17462 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17463fi
5213506e 17464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32aa3bff
FXC
17465/* end confdefs.h. */
17466
5213506e
RW
17467/* Override any GCC internal prototype to avoid an error.
17468 Use char because int might match the return type of a GCC
17469 builtin and then its argument prototype would still apply. */
32aa3bff
FXC
17470#ifdef __cplusplus
17471extern "C"
17472#endif
1409cd0b 17473char atanhf ();
32aa3bff
FXC
17474int
17475main ()
17476{
5213506e 17477return atanhf ();
32aa3bff
FXC
17478 ;
17479 return 0;
17480}
17481_ACEOF
5213506e 17482if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17483 ac_cv_lib_m_atanhf=yes
32aa3bff 17484else
5213506e 17485 ac_cv_lib_m_atanhf=no
32aa3bff 17486fi
5213506e
RW
17487rm -f core conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
32aa3bff
FXC
17489LIBS=$ac_check_lib_save_LIBS
17490fi
5213506e
RW
17491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhf" >&5
17492$as_echo "$ac_cv_lib_m_atanhf" >&6; }
17493if test "x$ac_cv_lib_m_atanhf" = x""yes; then :
32aa3bff 17494
5213506e 17495$as_echo "#define HAVE_ATANHF 1" >>confdefs.h
32aa3bff
FXC
17496
17497fi
17498
5213506e
RW
17499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh in -lm" >&5
17500$as_echo_n "checking for atanh in -lm... " >&6; }
17501if test "${ac_cv_lib_m_atanh+set}" = set; then :
17502 $as_echo_n "(cached) " >&6
453310d8
RS
17503else
17504 ac_check_lib_save_LIBS=$LIBS
17505LIBS="-lm $LIBS"
f02d008e 17506if test x$gcc_no_link = xyes; then
5213506e 17507 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17508fi
5213506e 17509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17510/* end confdefs.h. */
17511
5213506e
RW
17512/* Override any GCC internal prototype to avoid an error.
17513 Use char because int might match the return type of a GCC
17514 builtin and then its argument prototype would still apply. */
453310d8
RS
17515#ifdef __cplusplus
17516extern "C"
17517#endif
1409cd0b 17518char atanh ();
453310d8
RS
17519int
17520main ()
17521{
5213506e 17522return atanh ();
453310d8
RS
17523 ;
17524 return 0;
17525}
17526_ACEOF
5213506e 17527if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17528 ac_cv_lib_m_atanh=yes
453310d8 17529else
5213506e 17530 ac_cv_lib_m_atanh=no
453310d8 17531fi
5213506e
RW
17532rm -f core conftest.err conftest.$ac_objext \
17533 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17534LIBS=$ac_check_lib_save_LIBS
17535fi
5213506e
RW
17536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanh" >&5
17537$as_echo "$ac_cv_lib_m_atanh" >&6; }
17538if test "x$ac_cv_lib_m_atanh" = x""yes; then :
453310d8 17539
5213506e 17540$as_echo "#define HAVE_ATANH 1" >>confdefs.h
453310d8
RS
17541
17542fi
17543
5213506e
RW
17544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl in -lm" >&5
17545$as_echo_n "checking for atanhl in -lm... " >&6; }
17546if test "${ac_cv_lib_m_atanhl+set}" = set; then :
17547 $as_echo_n "(cached) " >&6
453310d8
RS
17548else
17549 ac_check_lib_save_LIBS=$LIBS
17550LIBS="-lm $LIBS"
f02d008e 17551if test x$gcc_no_link = xyes; then
5213506e 17552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17553fi
5213506e 17554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17555/* end confdefs.h. */
17556
5213506e
RW
17557/* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
453310d8
RS
17560#ifdef __cplusplus
17561extern "C"
17562#endif
1409cd0b 17563char atanhl ();
453310d8
RS
17564int
17565main ()
17566{
5213506e 17567return atanhl ();
453310d8
RS
17568 ;
17569 return 0;
17570}
17571_ACEOF
5213506e 17572if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17573 ac_cv_lib_m_atanhl=yes
453310d8 17574else
5213506e 17575 ac_cv_lib_m_atanhl=no
453310d8 17576fi
5213506e
RW
17577rm -f core conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17579LIBS=$ac_check_lib_save_LIBS
17580fi
5213506e
RW
17581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhl" >&5
17582$as_echo "$ac_cv_lib_m_atanhl" >&6; }
17583if test "x$ac_cv_lib_m_atanhl" = x""yes; then :
453310d8 17584
5213506e 17585$as_echo "#define HAVE_ATANHL 1" >>confdefs.h
453310d8
RS
17586
17587fi
17588
5213506e
RW
17589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf in -lm" >&5
17590$as_echo_n "checking for cargf in -lm... " >&6; }
17591if test "${ac_cv_lib_m_cargf+set}" = set; then :
17592 $as_echo_n "(cached) " >&6
bf4d99cf
TS
17593else
17594 ac_check_lib_save_LIBS=$LIBS
17595LIBS="-lm $LIBS"
f02d008e 17596if test x$gcc_no_link = xyes; then
5213506e 17597 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17598fi
5213506e 17599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bf4d99cf
TS
17600/* end confdefs.h. */
17601
5213506e
RW
17602/* Override any GCC internal prototype to avoid an error.
17603 Use char because int might match the return type of a GCC
17604 builtin and then its argument prototype would still apply. */
bf4d99cf
TS
17605#ifdef __cplusplus
17606extern "C"
17607#endif
1409cd0b 17608char cargf ();
bf4d99cf
TS
17609int
17610main ()
17611{
5213506e 17612return cargf ();
bf4d99cf
TS
17613 ;
17614 return 0;
17615}
17616_ACEOF
5213506e 17617if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17618 ac_cv_lib_m_cargf=yes
bf4d99cf 17619else
5213506e 17620 ac_cv_lib_m_cargf=no
bf4d99cf 17621fi
5213506e
RW
17622rm -f core conftest.err conftest.$ac_objext \
17623 conftest$ac_exeext conftest.$ac_ext
bf4d99cf
TS
17624LIBS=$ac_check_lib_save_LIBS
17625fi
5213506e
RW
17626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargf" >&5
17627$as_echo "$ac_cv_lib_m_cargf" >&6; }
17628if test "x$ac_cv_lib_m_cargf" = x""yes; then :
bf4d99cf 17629
5213506e 17630$as_echo "#define HAVE_CARGF 1" >>confdefs.h
bf4d99cf
TS
17631
17632fi
17633
5213506e
RW
17634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg in -lm" >&5
17635$as_echo_n "checking for carg in -lm... " >&6; }
17636if test "${ac_cv_lib_m_carg+set}" = set; then :
17637 $as_echo_n "(cached) " >&6
a2a2059f
BD
17638else
17639 ac_check_lib_save_LIBS=$LIBS
17640LIBS="-lm $LIBS"
f02d008e 17641if test x$gcc_no_link = xyes; then
5213506e 17642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17643fi
5213506e 17644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17645/* end confdefs.h. */
17646
5213506e
RW
17647/* Override any GCC internal prototype to avoid an error.
17648 Use char because int might match the return type of a GCC
17649 builtin and then its argument prototype would still apply. */
a2a2059f
BD
17650#ifdef __cplusplus
17651extern "C"
17652#endif
1409cd0b 17653char carg ();
453310d8
RS
17654int
17655main ()
17656{
5213506e 17657return carg ();
453310d8
RS
17658 ;
17659 return 0;
17660}
17661_ACEOF
5213506e 17662if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17663 ac_cv_lib_m_carg=yes
453310d8 17664else
5213506e 17665 ac_cv_lib_m_carg=no
453310d8 17666fi
5213506e
RW
17667rm -f core conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17669LIBS=$ac_check_lib_save_LIBS
17670fi
5213506e
RW
17671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_carg" >&5
17672$as_echo "$ac_cv_lib_m_carg" >&6; }
17673if test "x$ac_cv_lib_m_carg" = x""yes; then :
453310d8 17674
5213506e 17675$as_echo "#define HAVE_CARG 1" >>confdefs.h
453310d8
RS
17676
17677fi
17678
5213506e
RW
17679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl in -lm" >&5
17680$as_echo_n "checking for cargl in -lm... " >&6; }
17681if test "${ac_cv_lib_m_cargl+set}" = set; then :
17682 $as_echo_n "(cached) " >&6
453310d8
RS
17683else
17684 ac_check_lib_save_LIBS=$LIBS
17685LIBS="-lm $LIBS"
f02d008e 17686if test x$gcc_no_link = xyes; then
5213506e 17687 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17688fi
5213506e 17689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17690/* end confdefs.h. */
17691
5213506e
RW
17692/* Override any GCC internal prototype to avoid an error.
17693 Use char because int might match the return type of a GCC
17694 builtin and then its argument prototype would still apply. */
453310d8
RS
17695#ifdef __cplusplus
17696extern "C"
17697#endif
1409cd0b 17698char cargl ();
a2a2059f
BD
17699int
17700main ()
17701{
5213506e 17702return cargl ();
a2a2059f
BD
17703 ;
17704 return 0;
17705}
17706_ACEOF
5213506e 17707if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17708 ac_cv_lib_m_cargl=yes
a2a2059f 17709else
5213506e 17710 ac_cv_lib_m_cargl=no
a2a2059f 17711fi
5213506e
RW
17712rm -f core conftest.err conftest.$ac_objext \
17713 conftest$ac_exeext conftest.$ac_ext
a2a2059f
BD
17714LIBS=$ac_check_lib_save_LIBS
17715fi
5213506e
RW
17716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargl" >&5
17717$as_echo "$ac_cv_lib_m_cargl" >&6; }
17718if test "x$ac_cv_lib_m_cargl" = x""yes; then :
a2a2059f 17719
5213506e 17720$as_echo "#define HAVE_CARGL 1" >>confdefs.h
a2a2059f
BD
17721
17722fi
17723
5213506e
RW
17724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf in -lm" >&5
17725$as_echo_n "checking for ceilf in -lm... " >&6; }
17726if test "${ac_cv_lib_m_ceilf+set}" = set; then :
17727 $as_echo_n "(cached) " >&6
a2a2059f
BD
17728else
17729 ac_check_lib_save_LIBS=$LIBS
17730LIBS="-lm $LIBS"
f02d008e 17731if test x$gcc_no_link = xyes; then
5213506e 17732 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17733fi
5213506e 17734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2a2059f
BD
17735/* end confdefs.h. */
17736
5213506e
RW
17737/* Override any GCC internal prototype to avoid an error.
17738 Use char because int might match the return type of a GCC
17739 builtin and then its argument prototype would still apply. */
a2a2059f
BD
17740#ifdef __cplusplus
17741extern "C"
17742#endif
1409cd0b 17743char ceilf ();
a2a2059f
BD
17744int
17745main ()
17746{
5213506e 17747return ceilf ();
a2a2059f
BD
17748 ;
17749 return 0;
17750}
17751_ACEOF
5213506e 17752if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17753 ac_cv_lib_m_ceilf=yes
a2a2059f 17754else
5213506e 17755 ac_cv_lib_m_ceilf=no
a2a2059f 17756fi
5213506e
RW
17757rm -f core conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
a2a2059f
BD
17759LIBS=$ac_check_lib_save_LIBS
17760fi
5213506e
RW
17761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceilf" >&5
17762$as_echo "$ac_cv_lib_m_ceilf" >&6; }
17763if test "x$ac_cv_lib_m_ceilf" = x""yes; then :
a2a2059f 17764
5213506e 17765$as_echo "#define HAVE_CEILF 1" >>confdefs.h
a2a2059f
BD
17766
17767fi
17768
5213506e
RW
17769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
17770$as_echo_n "checking for ceil in -lm... " >&6; }
17771if test "${ac_cv_lib_m_ceil+set}" = set; then :
17772 $as_echo_n "(cached) " >&6
ae973d6a
FXC
17773else
17774 ac_check_lib_save_LIBS=$LIBS
17775LIBS="-lm $LIBS"
f02d008e 17776if test x$gcc_no_link = xyes; then
5213506e 17777 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17778fi
5213506e 17779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae973d6a
FXC
17780/* end confdefs.h. */
17781
5213506e
RW
17782/* Override any GCC internal prototype to avoid an error.
17783 Use char because int might match the return type of a GCC
17784 builtin and then its argument prototype would still apply. */
ae973d6a
FXC
17785#ifdef __cplusplus
17786extern "C"
17787#endif
1409cd0b 17788char ceil ();
ae973d6a
FXC
17789int
17790main ()
17791{
5213506e 17792return ceil ();
ae973d6a
FXC
17793 ;
17794 return 0;
17795}
17796_ACEOF
5213506e 17797if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17798 ac_cv_lib_m_ceil=yes
ae973d6a 17799else
5213506e 17800 ac_cv_lib_m_ceil=no
ae973d6a 17801fi
5213506e
RW
17802rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
ae973d6a
FXC
17804LIBS=$ac_check_lib_save_LIBS
17805fi
5213506e
RW
17806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
17807$as_echo "$ac_cv_lib_m_ceil" >&6; }
17808if test "x$ac_cv_lib_m_ceil" = x""yes; then :
ae973d6a 17809
5213506e 17810$as_echo "#define HAVE_CEIL 1" >>confdefs.h
ae973d6a
FXC
17811
17812fi
17813
5213506e
RW
17814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill in -lm" >&5
17815$as_echo_n "checking for ceill in -lm... " >&6; }
17816if test "${ac_cv_lib_m_ceill+set}" = set; then :
17817 $as_echo_n "(cached) " >&6
a9e7b9d3
PB
17818else
17819 ac_check_lib_save_LIBS=$LIBS
17820LIBS="-lm $LIBS"
f02d008e 17821if test x$gcc_no_link = xyes; then
5213506e 17822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17823fi
5213506e 17824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
17825/* end confdefs.h. */
17826
5213506e
RW
17827/* Override any GCC internal prototype to avoid an error.
17828 Use char because int might match the return type of a GCC
17829 builtin and then its argument prototype would still apply. */
a9e7b9d3
PB
17830#ifdef __cplusplus
17831extern "C"
17832#endif
1409cd0b 17833char ceill ();
a9e7b9d3
PB
17834int
17835main ()
17836{
5213506e 17837return ceill ();
a9e7b9d3
PB
17838 ;
17839 return 0;
17840}
17841_ACEOF
5213506e 17842if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17843 ac_cv_lib_m_ceill=yes
a9e7b9d3 17844else
5213506e 17845 ac_cv_lib_m_ceill=no
a9e7b9d3 17846fi
5213506e
RW
17847rm -f core conftest.err conftest.$ac_objext \
17848 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3
PB
17849LIBS=$ac_check_lib_save_LIBS
17850fi
5213506e
RW
17851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceill" >&5
17852$as_echo "$ac_cv_lib_m_ceill" >&6; }
17853if test "x$ac_cv_lib_m_ceill" = x""yes; then :
a9e7b9d3 17854
5213506e 17855$as_echo "#define HAVE_CEILL 1" >>confdefs.h
a9e7b9d3
PB
17856
17857fi
17858
5213506e
RW
17859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf in -lm" >&5
17860$as_echo_n "checking for copysignf in -lm... " >&6; }
17861if test "${ac_cv_lib_m_copysignf+set}" = set; then :
17862 $as_echo_n "(cached) " >&6
a9e7b9d3
PB
17863else
17864 ac_check_lib_save_LIBS=$LIBS
17865LIBS="-lm $LIBS"
f02d008e 17866if test x$gcc_no_link = xyes; then
5213506e 17867 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17868fi
5213506e 17869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9e7b9d3
PB
17870/* end confdefs.h. */
17871
5213506e
RW
17872/* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
a9e7b9d3
PB
17875#ifdef __cplusplus
17876extern "C"
17877#endif
1409cd0b 17878char copysignf ();
a9e7b9d3
PB
17879int
17880main ()
17881{
5213506e 17882return copysignf ();
a9e7b9d3
PB
17883 ;
17884 return 0;
17885}
17886_ACEOF
5213506e 17887if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17888 ac_cv_lib_m_copysignf=yes
a9e7b9d3 17889else
5213506e 17890 ac_cv_lib_m_copysignf=no
a9e7b9d3 17891fi
5213506e
RW
17892rm -f core conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
a9e7b9d3
PB
17894LIBS=$ac_check_lib_save_LIBS
17895fi
5213506e
RW
17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignf" >&5
17897$as_echo "$ac_cv_lib_m_copysignf" >&6; }
17898if test "x$ac_cv_lib_m_copysignf" = x""yes; then :
a9e7b9d3 17899
5213506e 17900$as_echo "#define HAVE_COPYSIGNF 1" >>confdefs.h
453310d8
RS
17901
17902fi
17903
5213506e
RW
17904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign in -lm" >&5
17905$as_echo_n "checking for copysign in -lm... " >&6; }
17906if test "${ac_cv_lib_m_copysign+set}" = set; then :
17907 $as_echo_n "(cached) " >&6
453310d8
RS
17908else
17909 ac_check_lib_save_LIBS=$LIBS
17910LIBS="-lm $LIBS"
f02d008e 17911if test x$gcc_no_link = xyes; then
5213506e 17912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17913fi
5213506e 17914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17915/* end confdefs.h. */
17916
5213506e
RW
17917/* Override any GCC internal prototype to avoid an error.
17918 Use char because int might match the return type of a GCC
17919 builtin and then its argument prototype would still apply. */
453310d8
RS
17920#ifdef __cplusplus
17921extern "C"
17922#endif
1409cd0b 17923char copysign ();
453310d8
RS
17924int
17925main ()
17926{
5213506e 17927return copysign ();
453310d8
RS
17928 ;
17929 return 0;
17930}
17931_ACEOF
5213506e 17932if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17933 ac_cv_lib_m_copysign=yes
453310d8 17934else
5213506e 17935 ac_cv_lib_m_copysign=no
453310d8 17936fi
5213506e
RW
17937rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17939LIBS=$ac_check_lib_save_LIBS
17940fi
5213506e
RW
17941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysign" >&5
17942$as_echo "$ac_cv_lib_m_copysign" >&6; }
17943if test "x$ac_cv_lib_m_copysign" = x""yes; then :
453310d8 17944
5213506e 17945$as_echo "#define HAVE_COPYSIGN 1" >>confdefs.h
453310d8
RS
17946
17947fi
17948
5213506e
RW
17949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl in -lm" >&5
17950$as_echo_n "checking for copysignl in -lm... " >&6; }
17951if test "${ac_cv_lib_m_copysignl+set}" = set; then :
17952 $as_echo_n "(cached) " >&6
453310d8
RS
17953else
17954 ac_check_lib_save_LIBS=$LIBS
17955LIBS="-lm $LIBS"
f02d008e 17956if test x$gcc_no_link = xyes; then
5213506e 17957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 17958fi
5213506e 17959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
17960/* end confdefs.h. */
17961
5213506e
RW
17962/* Override any GCC internal prototype to avoid an error.
17963 Use char because int might match the return type of a GCC
17964 builtin and then its argument prototype would still apply. */
453310d8
RS
17965#ifdef __cplusplus
17966extern "C"
17967#endif
1409cd0b 17968char copysignl ();
453310d8
RS
17969int
17970main ()
17971{
5213506e 17972return copysignl ();
453310d8
RS
17973 ;
17974 return 0;
17975}
17976_ACEOF
5213506e 17977if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 17978 ac_cv_lib_m_copysignl=yes
453310d8 17979else
5213506e 17980 ac_cv_lib_m_copysignl=no
453310d8 17981fi
5213506e
RW
17982rm -f core conftest.err conftest.$ac_objext \
17983 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
17984LIBS=$ac_check_lib_save_LIBS
17985fi
5213506e
RW
17986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignl" >&5
17987$as_echo "$ac_cv_lib_m_copysignl" >&6; }
17988if test "x$ac_cv_lib_m_copysignl" = x""yes; then :
453310d8 17989
5213506e 17990$as_echo "#define HAVE_COPYSIGNL 1" >>confdefs.h
453310d8
RS
17991
17992fi
17993
5213506e
RW
17994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf in -lm" >&5
17995$as_echo_n "checking for cosf in -lm... " >&6; }
17996if test "${ac_cv_lib_m_cosf+set}" = set; then :
17997 $as_echo_n "(cached) " >&6
453310d8
RS
17998else
17999 ac_check_lib_save_LIBS=$LIBS
18000LIBS="-lm $LIBS"
f02d008e 18001if test x$gcc_no_link = xyes; then
5213506e 18002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18003fi
5213506e 18004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453310d8
RS
18005/* end confdefs.h. */
18006
5213506e
RW
18007/* Override any GCC internal prototype to avoid an error.
18008 Use char because int might match the return type of a GCC
18009 builtin and then its argument prototype would still apply. */
453310d8
RS
18010#ifdef __cplusplus
18011extern "C"
18012#endif
1409cd0b 18013char cosf ();
453310d8
RS
18014int
18015main ()
18016{
5213506e 18017return cosf ();
453310d8 18018 ;
5213506e
RW
18019 return 0;
18020}
18021_ACEOF
18022if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 18023 ac_cv_lib_m_cosf=yes
453310d8 18024else
5213506e 18025 ac_cv_lib_m_cosf=no
453310d8 18026fi
5213506e
RW
18027rm -f core conftest.err conftest.$ac_objext \
18028 conftest$ac_exeext conftest.$ac_ext
453310d8
RS
18029LIBS=$ac_check_lib_save_LIBS
18030fi
5213506e
RW
18031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosf" >&5
18032$as_echo "$ac_cv_lib_m_cosf" >&6; }
18033if test "x$ac_cv_lib_m_cosf" = x""yes; then :
453310d8 18034
5213506e 18035$as_echo "#define HAVE_COSF 1" >>confdefs.h
a9e7b9d3
PB
18036
18037fi
18038
5213506e
RW
18039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
18040$as_echo_n "checking for cos in -lm... " >&6; }
18041if test "${ac_cv_lib_m_cos+set}" = set; then :
18042 $as_echo_n "(cached) " >&6
69a2d125
EB
18043else
18044 ac_check_lib_save_LIBS=$LIBS
18045LIBS="-lm $LIBS"
f02d008e 18046if test x$gcc_no_link = xyes; then
5213506e 18047 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 18048fi
5213506e 18049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
18050/* end confdefs.h. */
18051
5213506e
RW
18052/* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
69a2d125
EB
18055#ifdef __cplusplus
18056extern "C"
18057#endif
1409cd0b 18058char cos ();
69a2d125
EB
18059int
18060main ()
18061{
5213506e 18062return cos ();
69a2d125
EB
18063 ;
18064 return 0;
18065}
18066_ACEOF
5213506e 18067if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 18068 ac_cv_lib_m_cos=yes
69a2d125 18069else
5213506e 18070 ac_cv_lib_m_cos=no
69a2d125 18071fi
5213506e
RW
18072rm -f core conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
69a2d125
EB
18074LIBS=$ac_check_lib_save_LIBS
18075fi
5213506e
RW
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
18077$as_echo "$ac_cv_lib_m_cos" >&6; }
18078if test "x$ac_cv_lib_m_cos" = x""yes; then :
69a2d125 18079
5213506e 18080$as_echo "#define HAVE_COS 1" >>confdefs.h
1409cd0b
FXC
18081
18082fi
18083
5213506e
RW
18084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl in -lm" >&5
18085$as_echo_n "checking for cosl in -lm... " >&6; }
18086if test "${ac_cv_lib_m_cosl+set}" = set; then :
18087 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18088else
18089 ac_check_lib_save_LIBS=$LIBS
18090LIBS="-lm $LIBS"
18091if test x$gcc_no_link = xyes; then
5213506e 18092 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18093fi
5213506e 18094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18095/* end confdefs.h. */
18096
5213506e
RW
18097/* Override any GCC internal prototype to avoid an error.
18098 Use char because int might match the return type of a GCC
18099 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18100#ifdef __cplusplus
18101extern "C"
18102#endif
1409cd0b
FXC
18103char cosl ();
18104int
18105main ()
18106{
5213506e 18107return cosl ();
1409cd0b
FXC
18108 ;
18109 return 0;
18110}
18111_ACEOF
5213506e 18112if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18113 ac_cv_lib_m_cosl=yes
18114else
5213506e 18115 ac_cv_lib_m_cosl=no
1409cd0b 18116fi
5213506e
RW
18117rm -f core conftest.err conftest.$ac_objext \
18118 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18119LIBS=$ac_check_lib_save_LIBS
18120fi
5213506e
RW
18121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosl" >&5
18122$as_echo "$ac_cv_lib_m_cosl" >&6; }
18123if test "x$ac_cv_lib_m_cosl" = x""yes; then :
1409cd0b 18124
5213506e 18125$as_echo "#define HAVE_COSL 1" >>confdefs.h
1409cd0b
FXC
18126
18127fi
18128
5213506e
RW
18129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf in -lm" >&5
18130$as_echo_n "checking for ccosf in -lm... " >&6; }
18131if test "${ac_cv_lib_m_ccosf+set}" = set; then :
18132 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18133else
18134 ac_check_lib_save_LIBS=$LIBS
18135LIBS="-lm $LIBS"
18136if test x$gcc_no_link = xyes; then
5213506e 18137 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18138fi
5213506e 18139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18140/* end confdefs.h. */
18141
5213506e
RW
18142/* Override any GCC internal prototype to avoid an error.
18143 Use char because int might match the return type of a GCC
18144 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18145#ifdef __cplusplus
18146extern "C"
18147#endif
1409cd0b
FXC
18148char ccosf ();
18149int
18150main ()
18151{
5213506e 18152return ccosf ();
1409cd0b
FXC
18153 ;
18154 return 0;
18155}
18156_ACEOF
5213506e 18157if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18158 ac_cv_lib_m_ccosf=yes
18159else
5213506e 18160 ac_cv_lib_m_ccosf=no
1409cd0b 18161fi
5213506e
RW
18162rm -f core conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18164LIBS=$ac_check_lib_save_LIBS
18165fi
5213506e
RW
18166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosf" >&5
18167$as_echo "$ac_cv_lib_m_ccosf" >&6; }
18168if test "x$ac_cv_lib_m_ccosf" = x""yes; then :
1409cd0b 18169
5213506e 18170$as_echo "#define HAVE_CCOSF 1" >>confdefs.h
1409cd0b
FXC
18171
18172fi
18173
5213506e
RW
18174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos in -lm" >&5
18175$as_echo_n "checking for ccos in -lm... " >&6; }
18176if test "${ac_cv_lib_m_ccos+set}" = set; then :
18177 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18178else
18179 ac_check_lib_save_LIBS=$LIBS
18180LIBS="-lm $LIBS"
18181if test x$gcc_no_link = xyes; then
5213506e 18182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18183fi
5213506e 18184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18185/* end confdefs.h. */
18186
5213506e
RW
18187/* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18190#ifdef __cplusplus
18191extern "C"
18192#endif
1409cd0b
FXC
18193char ccos ();
18194int
18195main ()
18196{
5213506e 18197return ccos ();
1409cd0b
FXC
18198 ;
18199 return 0;
18200}
18201_ACEOF
5213506e 18202if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18203 ac_cv_lib_m_ccos=yes
18204else
5213506e 18205 ac_cv_lib_m_ccos=no
1409cd0b 18206fi
5213506e
RW
18207rm -f core conftest.err conftest.$ac_objext \
18208 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18209LIBS=$ac_check_lib_save_LIBS
18210fi
5213506e
RW
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccos" >&5
18212$as_echo "$ac_cv_lib_m_ccos" >&6; }
18213if test "x$ac_cv_lib_m_ccos" = x""yes; then :
1409cd0b 18214
5213506e 18215$as_echo "#define HAVE_CCOS 1" >>confdefs.h
1409cd0b
FXC
18216
18217fi
18218
5213506e
RW
18219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl in -lm" >&5
18220$as_echo_n "checking for ccosl in -lm... " >&6; }
18221if test "${ac_cv_lib_m_ccosl+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18223else
18224 ac_check_lib_save_LIBS=$LIBS
18225LIBS="-lm $LIBS"
18226if test x$gcc_no_link = xyes; then
5213506e 18227 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18228fi
5213506e 18229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18230/* end confdefs.h. */
18231
5213506e
RW
18232/* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18235#ifdef __cplusplus
18236extern "C"
18237#endif
1409cd0b
FXC
18238char ccosl ();
18239int
18240main ()
18241{
5213506e 18242return ccosl ();
1409cd0b
FXC
18243 ;
18244 return 0;
18245}
18246_ACEOF
5213506e 18247if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18248 ac_cv_lib_m_ccosl=yes
18249else
5213506e 18250 ac_cv_lib_m_ccosl=no
1409cd0b 18251fi
5213506e
RW
18252rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18254LIBS=$ac_check_lib_save_LIBS
18255fi
5213506e
RW
18256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosl" >&5
18257$as_echo "$ac_cv_lib_m_ccosl" >&6; }
18258if test "x$ac_cv_lib_m_ccosl" = x""yes; then :
1409cd0b 18259
5213506e 18260$as_echo "#define HAVE_CCOSL 1" >>confdefs.h
1409cd0b
FXC
18261
18262fi
18263
5213506e
RW
18264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf in -lm" >&5
18265$as_echo_n "checking for coshf in -lm... " >&6; }
18266if test "${ac_cv_lib_m_coshf+set}" = set; then :
18267 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18268else
18269 ac_check_lib_save_LIBS=$LIBS
18270LIBS="-lm $LIBS"
18271if test x$gcc_no_link = xyes; then
5213506e 18272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18273fi
5213506e 18274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18275/* end confdefs.h. */
18276
5213506e
RW
18277/* Override any GCC internal prototype to avoid an error.
18278 Use char because int might match the return type of a GCC
18279 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18280#ifdef __cplusplus
18281extern "C"
18282#endif
1409cd0b
FXC
18283char coshf ();
18284int
18285main ()
18286{
5213506e 18287return coshf ();
1409cd0b
FXC
18288 ;
18289 return 0;
18290}
18291_ACEOF
5213506e 18292if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18293 ac_cv_lib_m_coshf=yes
18294else
5213506e 18295 ac_cv_lib_m_coshf=no
1409cd0b 18296fi
5213506e
RW
18297rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18299LIBS=$ac_check_lib_save_LIBS
18300fi
5213506e
RW
18301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshf" >&5
18302$as_echo "$ac_cv_lib_m_coshf" >&6; }
18303if test "x$ac_cv_lib_m_coshf" = x""yes; then :
1409cd0b 18304
5213506e 18305$as_echo "#define HAVE_COSHF 1" >>confdefs.h
1409cd0b
FXC
18306
18307fi
18308
5213506e
RW
18309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh in -lm" >&5
18310$as_echo_n "checking for cosh in -lm... " >&6; }
18311if test "${ac_cv_lib_m_cosh+set}" = set; then :
18312 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18313else
18314 ac_check_lib_save_LIBS=$LIBS
18315LIBS="-lm $LIBS"
18316if test x$gcc_no_link = xyes; then
5213506e 18317 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18318fi
5213506e 18319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18320/* end confdefs.h. */
18321
5213506e
RW
18322/* Override any GCC internal prototype to avoid an error.
18323 Use char because int might match the return type of a GCC
18324 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18325#ifdef __cplusplus
18326extern "C"
18327#endif
1409cd0b
FXC
18328char cosh ();
18329int
18330main ()
18331{
5213506e 18332return cosh ();
1409cd0b
FXC
18333 ;
18334 return 0;
18335}
18336_ACEOF
5213506e 18337if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18338 ac_cv_lib_m_cosh=yes
18339else
5213506e 18340 ac_cv_lib_m_cosh=no
1409cd0b 18341fi
5213506e
RW
18342rm -f core conftest.err conftest.$ac_objext \
18343 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18344LIBS=$ac_check_lib_save_LIBS
18345fi
5213506e
RW
18346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosh" >&5
18347$as_echo "$ac_cv_lib_m_cosh" >&6; }
18348if test "x$ac_cv_lib_m_cosh" = x""yes; then :
1409cd0b 18349
5213506e 18350$as_echo "#define HAVE_COSH 1" >>confdefs.h
1409cd0b
FXC
18351
18352fi
18353
5213506e
RW
18354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl in -lm" >&5
18355$as_echo_n "checking for coshl in -lm... " >&6; }
18356if test "${ac_cv_lib_m_coshl+set}" = set; then :
18357 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18358else
18359 ac_check_lib_save_LIBS=$LIBS
18360LIBS="-lm $LIBS"
18361if test x$gcc_no_link = xyes; then
5213506e 18362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18363fi
5213506e 18364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18365/* end confdefs.h. */
18366
5213506e
RW
18367/* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18370#ifdef __cplusplus
18371extern "C"
18372#endif
1409cd0b
FXC
18373char coshl ();
18374int
18375main ()
18376{
5213506e 18377return coshl ();
1409cd0b
FXC
18378 ;
18379 return 0;
18380}
18381_ACEOF
5213506e 18382if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18383 ac_cv_lib_m_coshl=yes
18384else
5213506e 18385 ac_cv_lib_m_coshl=no
1409cd0b 18386fi
5213506e
RW
18387rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18389LIBS=$ac_check_lib_save_LIBS
18390fi
5213506e
RW
18391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshl" >&5
18392$as_echo "$ac_cv_lib_m_coshl" >&6; }
18393if test "x$ac_cv_lib_m_coshl" = x""yes; then :
1409cd0b 18394
5213506e 18395$as_echo "#define HAVE_COSHL 1" >>confdefs.h
1409cd0b
FXC
18396
18397fi
18398
5213506e
RW
18399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf in -lm" >&5
18400$as_echo_n "checking for ccoshf in -lm... " >&6; }
18401if test "${ac_cv_lib_m_ccoshf+set}" = set; then :
18402 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18403else
18404 ac_check_lib_save_LIBS=$LIBS
18405LIBS="-lm $LIBS"
18406if test x$gcc_no_link = xyes; then
5213506e 18407 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18408fi
5213506e 18409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18410/* end confdefs.h. */
18411
5213506e
RW
18412/* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18415#ifdef __cplusplus
18416extern "C"
18417#endif
1409cd0b
FXC
18418char ccoshf ();
18419int
18420main ()
18421{
5213506e 18422return ccoshf ();
1409cd0b
FXC
18423 ;
18424 return 0;
18425}
18426_ACEOF
5213506e 18427if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18428 ac_cv_lib_m_ccoshf=yes
18429else
5213506e 18430 ac_cv_lib_m_ccoshf=no
1409cd0b 18431fi
5213506e
RW
18432rm -f core conftest.err conftest.$ac_objext \
18433 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18434LIBS=$ac_check_lib_save_LIBS
18435fi
5213506e
RW
18436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshf" >&5
18437$as_echo "$ac_cv_lib_m_ccoshf" >&6; }
18438if test "x$ac_cv_lib_m_ccoshf" = x""yes; then :
1409cd0b 18439
5213506e 18440$as_echo "#define HAVE_CCOSHF 1" >>confdefs.h
1409cd0b
FXC
18441
18442fi
18443
5213506e
RW
18444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh in -lm" >&5
18445$as_echo_n "checking for ccosh in -lm... " >&6; }
18446if test "${ac_cv_lib_m_ccosh+set}" = set; then :
18447 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18448else
18449 ac_check_lib_save_LIBS=$LIBS
18450LIBS="-lm $LIBS"
18451if test x$gcc_no_link = xyes; then
5213506e 18452 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18453fi
5213506e 18454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18455/* end confdefs.h. */
18456
5213506e
RW
18457/* Override any GCC internal prototype to avoid an error.
18458 Use char because int might match the return type of a GCC
18459 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18460#ifdef __cplusplus
18461extern "C"
18462#endif
1409cd0b
FXC
18463char ccosh ();
18464int
18465main ()
18466{
5213506e 18467return ccosh ();
1409cd0b
FXC
18468 ;
18469 return 0;
18470}
18471_ACEOF
5213506e 18472if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18473 ac_cv_lib_m_ccosh=yes
18474else
5213506e 18475 ac_cv_lib_m_ccosh=no
1409cd0b 18476fi
5213506e
RW
18477rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18479LIBS=$ac_check_lib_save_LIBS
18480fi
5213506e
RW
18481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosh" >&5
18482$as_echo "$ac_cv_lib_m_ccosh" >&6; }
18483if test "x$ac_cv_lib_m_ccosh" = x""yes; then :
1409cd0b 18484
5213506e 18485$as_echo "#define HAVE_CCOSH 1" >>confdefs.h
1409cd0b
FXC
18486
18487fi
18488
5213506e
RW
18489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl in -lm" >&5
18490$as_echo_n "checking for ccoshl in -lm... " >&6; }
18491if test "${ac_cv_lib_m_ccoshl+set}" = set; then :
18492 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18493else
18494 ac_check_lib_save_LIBS=$LIBS
18495LIBS="-lm $LIBS"
18496if test x$gcc_no_link = xyes; then
5213506e 18497 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18498fi
5213506e 18499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18500/* end confdefs.h. */
18501
5213506e
RW
18502/* Override any GCC internal prototype to avoid an error.
18503 Use char because int might match the return type of a GCC
18504 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18505#ifdef __cplusplus
18506extern "C"
18507#endif
1409cd0b
FXC
18508char ccoshl ();
18509int
18510main ()
18511{
5213506e 18512return ccoshl ();
1409cd0b
FXC
18513 ;
18514 return 0;
18515}
18516_ACEOF
5213506e 18517if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18518 ac_cv_lib_m_ccoshl=yes
18519else
5213506e 18520 ac_cv_lib_m_ccoshl=no
1409cd0b 18521fi
5213506e
RW
18522rm -f core conftest.err conftest.$ac_objext \
18523 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18524LIBS=$ac_check_lib_save_LIBS
18525fi
5213506e
RW
18526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshl" >&5
18527$as_echo "$ac_cv_lib_m_ccoshl" >&6; }
18528if test "x$ac_cv_lib_m_ccoshl" = x""yes; then :
1409cd0b 18529
5213506e 18530$as_echo "#define HAVE_CCOSHL 1" >>confdefs.h
1409cd0b
FXC
18531
18532fi
18533
5213506e
RW
18534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf in -lm" >&5
18535$as_echo_n "checking for expf in -lm... " >&6; }
18536if test "${ac_cv_lib_m_expf+set}" = set; then :
18537 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18538else
18539 ac_check_lib_save_LIBS=$LIBS
18540LIBS="-lm $LIBS"
18541if test x$gcc_no_link = xyes; then
5213506e 18542 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18543fi
5213506e 18544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18545/* end confdefs.h. */
18546
5213506e
RW
18547/* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18550#ifdef __cplusplus
18551extern "C"
18552#endif
1409cd0b
FXC
18553char expf ();
18554int
18555main ()
18556{
5213506e 18557return expf ();
1409cd0b
FXC
18558 ;
18559 return 0;
18560}
18561_ACEOF
5213506e 18562if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18563 ac_cv_lib_m_expf=yes
18564else
5213506e 18565 ac_cv_lib_m_expf=no
1409cd0b 18566fi
5213506e
RW
18567rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18569LIBS=$ac_check_lib_save_LIBS
18570fi
5213506e
RW
18571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expf" >&5
18572$as_echo "$ac_cv_lib_m_expf" >&6; }
18573if test "x$ac_cv_lib_m_expf" = x""yes; then :
1409cd0b 18574
5213506e 18575$as_echo "#define HAVE_EXPF 1" >>confdefs.h
1409cd0b
FXC
18576
18577fi
18578
5213506e
RW
18579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
18580$as_echo_n "checking for exp in -lm... " >&6; }
18581if test "${ac_cv_lib_m_exp+set}" = set; then :
18582 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18583else
18584 ac_check_lib_save_LIBS=$LIBS
18585LIBS="-lm $LIBS"
18586if test x$gcc_no_link = xyes; then
5213506e 18587 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18588fi
5213506e 18589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18590/* end confdefs.h. */
18591
5213506e
RW
18592/* Override any GCC internal prototype to avoid an error.
18593 Use char because int might match the return type of a GCC
18594 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18595#ifdef __cplusplus
18596extern "C"
18597#endif
1409cd0b
FXC
18598char exp ();
18599int
18600main ()
18601{
5213506e 18602return exp ();
1409cd0b
FXC
18603 ;
18604 return 0;
18605}
18606_ACEOF
5213506e 18607if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18608 ac_cv_lib_m_exp=yes
18609else
5213506e 18610 ac_cv_lib_m_exp=no
1409cd0b 18611fi
5213506e
RW
18612rm -f core conftest.err conftest.$ac_objext \
18613 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18614LIBS=$ac_check_lib_save_LIBS
18615fi
5213506e
RW
18616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
18617$as_echo "$ac_cv_lib_m_exp" >&6; }
18618if test "x$ac_cv_lib_m_exp" = x""yes; then :
1409cd0b 18619
5213506e 18620$as_echo "#define HAVE_EXP 1" >>confdefs.h
1409cd0b
FXC
18621
18622fi
18623
5213506e
RW
18624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl in -lm" >&5
18625$as_echo_n "checking for expl in -lm... " >&6; }
18626if test "${ac_cv_lib_m_expl+set}" = set; then :
18627 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18628else
18629 ac_check_lib_save_LIBS=$LIBS
18630LIBS="-lm $LIBS"
18631if test x$gcc_no_link = xyes; then
5213506e 18632 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18633fi
5213506e 18634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18635/* end confdefs.h. */
18636
5213506e
RW
18637/* Override any GCC internal prototype to avoid an error.
18638 Use char because int might match the return type of a GCC
18639 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18640#ifdef __cplusplus
18641extern "C"
18642#endif
1409cd0b
FXC
18643char expl ();
18644int
18645main ()
18646{
5213506e 18647return expl ();
1409cd0b
FXC
18648 ;
18649 return 0;
18650}
18651_ACEOF
5213506e 18652if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18653 ac_cv_lib_m_expl=yes
18654else
5213506e 18655 ac_cv_lib_m_expl=no
1409cd0b 18656fi
5213506e
RW
18657rm -f core conftest.err conftest.$ac_objext \
18658 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18659LIBS=$ac_check_lib_save_LIBS
18660fi
5213506e
RW
18661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expl" >&5
18662$as_echo "$ac_cv_lib_m_expl" >&6; }
18663if test "x$ac_cv_lib_m_expl" = x""yes; then :
1409cd0b 18664
5213506e 18665$as_echo "#define HAVE_EXPL 1" >>confdefs.h
1409cd0b
FXC
18666
18667fi
18668
5213506e
RW
18669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf in -lm" >&5
18670$as_echo_n "checking for cexpf in -lm... " >&6; }
18671if test "${ac_cv_lib_m_cexpf+set}" = set; then :
18672 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18673else
18674 ac_check_lib_save_LIBS=$LIBS
18675LIBS="-lm $LIBS"
18676if test x$gcc_no_link = xyes; then
5213506e 18677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18678fi
5213506e 18679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18680/* end confdefs.h. */
18681
5213506e
RW
18682/* Override any GCC internal prototype to avoid an error.
18683 Use char because int might match the return type of a GCC
18684 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18685#ifdef __cplusplus
18686extern "C"
18687#endif
1409cd0b
FXC
18688char cexpf ();
18689int
18690main ()
18691{
5213506e 18692return cexpf ();
1409cd0b
FXC
18693 ;
18694 return 0;
18695}
18696_ACEOF
5213506e 18697if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18698 ac_cv_lib_m_cexpf=yes
18699else
5213506e 18700 ac_cv_lib_m_cexpf=no
1409cd0b 18701fi
5213506e
RW
18702rm -f core conftest.err conftest.$ac_objext \
18703 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18704LIBS=$ac_check_lib_save_LIBS
18705fi
5213506e
RW
18706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpf" >&5
18707$as_echo "$ac_cv_lib_m_cexpf" >&6; }
18708if test "x$ac_cv_lib_m_cexpf" = x""yes; then :
1409cd0b 18709
5213506e 18710$as_echo "#define HAVE_CEXPF 1" >>confdefs.h
1409cd0b
FXC
18711
18712fi
18713
5213506e
RW
18714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp in -lm" >&5
18715$as_echo_n "checking for cexp in -lm... " >&6; }
18716if test "${ac_cv_lib_m_cexp+set}" = set; then :
18717 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18718else
18719 ac_check_lib_save_LIBS=$LIBS
18720LIBS="-lm $LIBS"
18721if test x$gcc_no_link = xyes; then
5213506e 18722 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18723fi
5213506e 18724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18725/* end confdefs.h. */
18726
5213506e
RW
18727/* Override any GCC internal prototype to avoid an error.
18728 Use char because int might match the return type of a GCC
18729 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18730#ifdef __cplusplus
18731extern "C"
18732#endif
1409cd0b
FXC
18733char cexp ();
18734int
18735main ()
18736{
5213506e 18737return cexp ();
1409cd0b
FXC
18738 ;
18739 return 0;
18740}
18741_ACEOF
5213506e 18742if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18743 ac_cv_lib_m_cexp=yes
18744else
5213506e 18745 ac_cv_lib_m_cexp=no
1409cd0b 18746fi
5213506e
RW
18747rm -f core conftest.err conftest.$ac_objext \
18748 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18749LIBS=$ac_check_lib_save_LIBS
18750fi
5213506e
RW
18751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexp" >&5
18752$as_echo "$ac_cv_lib_m_cexp" >&6; }
18753if test "x$ac_cv_lib_m_cexp" = x""yes; then :
1409cd0b 18754
5213506e 18755$as_echo "#define HAVE_CEXP 1" >>confdefs.h
1409cd0b
FXC
18756
18757fi
18758
5213506e
RW
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl in -lm" >&5
18760$as_echo_n "checking for cexpl in -lm... " >&6; }
18761if test "${ac_cv_lib_m_cexpl+set}" = set; then :
18762 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18763else
18764 ac_check_lib_save_LIBS=$LIBS
18765LIBS="-lm $LIBS"
18766if test x$gcc_no_link = xyes; then
5213506e 18767 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18768fi
5213506e 18769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18770/* end confdefs.h. */
18771
5213506e
RW
18772/* Override any GCC internal prototype to avoid an error.
18773 Use char because int might match the return type of a GCC
18774 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18775#ifdef __cplusplus
18776extern "C"
18777#endif
1409cd0b
FXC
18778char cexpl ();
18779int
18780main ()
18781{
5213506e 18782return cexpl ();
1409cd0b
FXC
18783 ;
18784 return 0;
18785}
18786_ACEOF
5213506e 18787if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18788 ac_cv_lib_m_cexpl=yes
18789else
5213506e 18790 ac_cv_lib_m_cexpl=no
1409cd0b 18791fi
5213506e
RW
18792rm -f core conftest.err conftest.$ac_objext \
18793 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18794LIBS=$ac_check_lib_save_LIBS
18795fi
5213506e
RW
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpl" >&5
18797$as_echo "$ac_cv_lib_m_cexpl" >&6; }
18798if test "x$ac_cv_lib_m_cexpl" = x""yes; then :
1409cd0b 18799
5213506e 18800$as_echo "#define HAVE_CEXPL 1" >>confdefs.h
1409cd0b
FXC
18801
18802fi
18803
5213506e
RW
18804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5
18805$as_echo_n "checking for fabsf in -lm... " >&6; }
18806if test "${ac_cv_lib_m_fabsf+set}" = set; then :
18807 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18808else
18809 ac_check_lib_save_LIBS=$LIBS
18810LIBS="-lm $LIBS"
18811if test x$gcc_no_link = xyes; then
5213506e 18812 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18813fi
5213506e 18814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18815/* end confdefs.h. */
18816
5213506e
RW
18817/* Override any GCC internal prototype to avoid an error.
18818 Use char because int might match the return type of a GCC
18819 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18820#ifdef __cplusplus
18821extern "C"
18822#endif
1409cd0b
FXC
18823char fabsf ();
18824int
18825main ()
18826{
5213506e 18827return fabsf ();
1409cd0b
FXC
18828 ;
18829 return 0;
18830}
18831_ACEOF
5213506e 18832if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18833 ac_cv_lib_m_fabsf=yes
18834else
5213506e 18835 ac_cv_lib_m_fabsf=no
1409cd0b 18836fi
5213506e
RW
18837rm -f core conftest.err conftest.$ac_objext \
18838 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18839LIBS=$ac_check_lib_save_LIBS
18840fi
5213506e
RW
18841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5
18842$as_echo "$ac_cv_lib_m_fabsf" >&6; }
18843if test "x$ac_cv_lib_m_fabsf" = x""yes; then :
1409cd0b 18844
5213506e 18845$as_echo "#define HAVE_FABSF 1" >>confdefs.h
1409cd0b
FXC
18846
18847fi
18848
5213506e
RW
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
18850$as_echo_n "checking for fabs in -lm... " >&6; }
18851if test "${ac_cv_lib_m_fabs+set}" = set; then :
18852 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18853else
18854 ac_check_lib_save_LIBS=$LIBS
18855LIBS="-lm $LIBS"
18856if test x$gcc_no_link = xyes; then
5213506e 18857 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18858fi
5213506e 18859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18860/* end confdefs.h. */
18861
5213506e
RW
18862/* Override any GCC internal prototype to avoid an error.
18863 Use char because int might match the return type of a GCC
18864 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18865#ifdef __cplusplus
18866extern "C"
18867#endif
1409cd0b
FXC
18868char fabs ();
18869int
18870main ()
18871{
5213506e 18872return fabs ();
1409cd0b
FXC
18873 ;
18874 return 0;
18875}
18876_ACEOF
5213506e 18877if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18878 ac_cv_lib_m_fabs=yes
18879else
5213506e 18880 ac_cv_lib_m_fabs=no
1409cd0b 18881fi
5213506e
RW
18882rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18884LIBS=$ac_check_lib_save_LIBS
18885fi
5213506e
RW
18886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
18887$as_echo "$ac_cv_lib_m_fabs" >&6; }
18888if test "x$ac_cv_lib_m_fabs" = x""yes; then :
1409cd0b 18889
5213506e 18890$as_echo "#define HAVE_FABS 1" >>confdefs.h
1409cd0b
FXC
18891
18892fi
18893
5213506e
RW
18894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl in -lm" >&5
18895$as_echo_n "checking for fabsl in -lm... " >&6; }
18896if test "${ac_cv_lib_m_fabsl+set}" = set; then :
18897 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18898else
18899 ac_check_lib_save_LIBS=$LIBS
18900LIBS="-lm $LIBS"
18901if test x$gcc_no_link = xyes; then
5213506e 18902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18903fi
5213506e 18904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18905/* end confdefs.h. */
18906
5213506e
RW
18907/* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18910#ifdef __cplusplus
18911extern "C"
18912#endif
1409cd0b
FXC
18913char fabsl ();
18914int
18915main ()
18916{
5213506e 18917return fabsl ();
1409cd0b
FXC
18918 ;
18919 return 0;
18920}
18921_ACEOF
5213506e 18922if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18923 ac_cv_lib_m_fabsl=yes
18924else
5213506e 18925 ac_cv_lib_m_fabsl=no
1409cd0b 18926fi
5213506e
RW
18927rm -f core conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18929LIBS=$ac_check_lib_save_LIBS
18930fi
5213506e
RW
18931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsl" >&5
18932$as_echo "$ac_cv_lib_m_fabsl" >&6; }
18933if test "x$ac_cv_lib_m_fabsl" = x""yes; then :
1409cd0b 18934
5213506e 18935$as_echo "#define HAVE_FABSL 1" >>confdefs.h
1409cd0b
FXC
18936
18937fi
18938
5213506e
RW
18939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf in -lm" >&5
18940$as_echo_n "checking for cabsf in -lm... " >&6; }
18941if test "${ac_cv_lib_m_cabsf+set}" = set; then :
18942 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18943else
18944 ac_check_lib_save_LIBS=$LIBS
18945LIBS="-lm $LIBS"
18946if test x$gcc_no_link = xyes; then
5213506e 18947 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18948fi
5213506e 18949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18950/* end confdefs.h. */
18951
5213506e
RW
18952/* Override any GCC internal prototype to avoid an error.
18953 Use char because int might match the return type of a GCC
18954 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
18955#ifdef __cplusplus
18956extern "C"
18957#endif
1409cd0b
FXC
18958char cabsf ();
18959int
18960main ()
18961{
5213506e 18962return cabsf ();
1409cd0b
FXC
18963 ;
18964 return 0;
18965}
18966_ACEOF
5213506e 18967if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
18968 ac_cv_lib_m_cabsf=yes
18969else
5213506e 18970 ac_cv_lib_m_cabsf=no
1409cd0b 18971fi
5213506e
RW
18972rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
18974LIBS=$ac_check_lib_save_LIBS
18975fi
5213506e
RW
18976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsf" >&5
18977$as_echo "$ac_cv_lib_m_cabsf" >&6; }
18978if test "x$ac_cv_lib_m_cabsf" = x""yes; then :
1409cd0b 18979
5213506e 18980$as_echo "#define HAVE_CABSF 1" >>confdefs.h
1409cd0b
FXC
18981
18982fi
18983
5213506e
RW
18984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5
18985$as_echo_n "checking for cabs in -lm... " >&6; }
18986if test "${ac_cv_lib_m_cabs+set}" = set; then :
18987 $as_echo_n "(cached) " >&6
1409cd0b
FXC
18988else
18989 ac_check_lib_save_LIBS=$LIBS
18990LIBS="-lm $LIBS"
18991if test x$gcc_no_link = xyes; then
5213506e 18992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 18993fi
5213506e 18994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
18995/* end confdefs.h. */
18996
5213506e
RW
18997/* Override any GCC internal prototype to avoid an error.
18998 Use char because int might match the return type of a GCC
18999 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19000#ifdef __cplusplus
19001extern "C"
19002#endif
1409cd0b
FXC
19003char cabs ();
19004int
19005main ()
19006{
5213506e 19007return cabs ();
1409cd0b
FXC
19008 ;
19009 return 0;
19010}
19011_ACEOF
5213506e 19012if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19013 ac_cv_lib_m_cabs=yes
19014else
5213506e 19015 ac_cv_lib_m_cabs=no
1409cd0b 19016fi
5213506e
RW
19017rm -f core conftest.err conftest.$ac_objext \
19018 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19019LIBS=$ac_check_lib_save_LIBS
19020fi
5213506e
RW
19021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabs" >&5
19022$as_echo "$ac_cv_lib_m_cabs" >&6; }
19023if test "x$ac_cv_lib_m_cabs" = x""yes; then :
1409cd0b 19024
5213506e 19025$as_echo "#define HAVE_CABS 1" >>confdefs.h
1409cd0b
FXC
19026
19027fi
19028
5213506e
RW
19029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl in -lm" >&5
19030$as_echo_n "checking for cabsl in -lm... " >&6; }
19031if test "${ac_cv_lib_m_cabsl+set}" = set; then :
19032 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19033else
19034 ac_check_lib_save_LIBS=$LIBS
19035LIBS="-lm $LIBS"
19036if test x$gcc_no_link = xyes; then
5213506e 19037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19038fi
5213506e 19039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19040/* end confdefs.h. */
19041
5213506e
RW
19042/* Override any GCC internal prototype to avoid an error.
19043 Use char because int might match the return type of a GCC
19044 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19045#ifdef __cplusplus
19046extern "C"
19047#endif
1409cd0b
FXC
19048char cabsl ();
19049int
19050main ()
19051{
5213506e 19052return cabsl ();
1409cd0b
FXC
19053 ;
19054 return 0;
19055}
19056_ACEOF
5213506e 19057if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19058 ac_cv_lib_m_cabsl=yes
19059else
5213506e 19060 ac_cv_lib_m_cabsl=no
1409cd0b 19061fi
5213506e
RW
19062rm -f core conftest.err conftest.$ac_objext \
19063 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19064LIBS=$ac_check_lib_save_LIBS
19065fi
5213506e
RW
19066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsl" >&5
19067$as_echo "$ac_cv_lib_m_cabsl" >&6; }
19068if test "x$ac_cv_lib_m_cabsl" = x""yes; then :
1409cd0b 19069
5213506e 19070$as_echo "#define HAVE_CABSL 1" >>confdefs.h
1409cd0b
FXC
19071
19072fi
19073
5213506e
RW
19074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf in -lm" >&5
19075$as_echo_n "checking for floorf in -lm... " >&6; }
19076if test "${ac_cv_lib_m_floorf+set}" = set; then :
19077 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19078else
19079 ac_check_lib_save_LIBS=$LIBS
19080LIBS="-lm $LIBS"
19081if test x$gcc_no_link = xyes; then
5213506e 19082 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19083fi
5213506e 19084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19085/* end confdefs.h. */
19086
5213506e
RW
19087/* Override any GCC internal prototype to avoid an error.
19088 Use char because int might match the return type of a GCC
19089 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19090#ifdef __cplusplus
19091extern "C"
19092#endif
1409cd0b
FXC
19093char floorf ();
19094int
19095main ()
19096{
5213506e 19097return floorf ();
1409cd0b
FXC
19098 ;
19099 return 0;
19100}
19101_ACEOF
5213506e 19102if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19103 ac_cv_lib_m_floorf=yes
19104else
5213506e 19105 ac_cv_lib_m_floorf=no
1409cd0b 19106fi
5213506e
RW
19107rm -f core conftest.err conftest.$ac_objext \
19108 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19109LIBS=$ac_check_lib_save_LIBS
19110fi
5213506e
RW
19111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorf" >&5
19112$as_echo "$ac_cv_lib_m_floorf" >&6; }
19113if test "x$ac_cv_lib_m_floorf" = x""yes; then :
1409cd0b 19114
5213506e 19115$as_echo "#define HAVE_FLOORF 1" >>confdefs.h
1409cd0b
FXC
19116
19117fi
19118
5213506e
RW
19119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
19120$as_echo_n "checking for floor in -lm... " >&6; }
19121if test "${ac_cv_lib_m_floor+set}" = set; then :
19122 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19123else
19124 ac_check_lib_save_LIBS=$LIBS
19125LIBS="-lm $LIBS"
19126if test x$gcc_no_link = xyes; then
5213506e 19127 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19128fi
5213506e 19129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19130/* end confdefs.h. */
19131
5213506e
RW
19132/* Override any GCC internal prototype to avoid an error.
19133 Use char because int might match the return type of a GCC
19134 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19135#ifdef __cplusplus
19136extern "C"
19137#endif
1409cd0b
FXC
19138char floor ();
19139int
19140main ()
19141{
5213506e 19142return floor ();
1409cd0b 19143 ;
5213506e
RW
19144 return 0;
19145}
19146_ACEOF
19147if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19148 ac_cv_lib_m_floor=yes
19149else
5213506e 19150 ac_cv_lib_m_floor=no
1409cd0b 19151fi
5213506e
RW
19152rm -f core conftest.err conftest.$ac_objext \
19153 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19154LIBS=$ac_check_lib_save_LIBS
19155fi
5213506e
RW
19156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
19157$as_echo "$ac_cv_lib_m_floor" >&6; }
19158if test "x$ac_cv_lib_m_floor" = x""yes; then :
1409cd0b 19159
5213506e 19160$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
1409cd0b
FXC
19161
19162fi
19163
5213506e
RW
19164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl in -lm" >&5
19165$as_echo_n "checking for floorl in -lm... " >&6; }
19166if test "${ac_cv_lib_m_floorl+set}" = set; then :
19167 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19168else
19169 ac_check_lib_save_LIBS=$LIBS
19170LIBS="-lm $LIBS"
19171if test x$gcc_no_link = xyes; then
5213506e 19172 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19173fi
5213506e 19174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19175/* end confdefs.h. */
19176
5213506e
RW
19177/* Override any GCC internal prototype to avoid an error.
19178 Use char because int might match the return type of a GCC
19179 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19180#ifdef __cplusplus
19181extern "C"
19182#endif
1409cd0b
FXC
19183char floorl ();
19184int
19185main ()
19186{
5213506e 19187return floorl ();
1409cd0b
FXC
19188 ;
19189 return 0;
19190}
19191_ACEOF
5213506e 19192if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19193 ac_cv_lib_m_floorl=yes
19194else
5213506e 19195 ac_cv_lib_m_floorl=no
1409cd0b 19196fi
5213506e
RW
19197rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19199LIBS=$ac_check_lib_save_LIBS
19200fi
5213506e
RW
19201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorl" >&5
19202$as_echo "$ac_cv_lib_m_floorl" >&6; }
19203if test "x$ac_cv_lib_m_floorl" = x""yes; then :
1409cd0b 19204
5213506e 19205$as_echo "#define HAVE_FLOORL 1" >>confdefs.h
1409cd0b
FXC
19206
19207fi
19208
5213506e
RW
19209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf in -lm" >&5
19210$as_echo_n "checking for fmodf in -lm... " >&6; }
19211if test "${ac_cv_lib_m_fmodf+set}" = set; then :
19212 $as_echo_n "(cached) " >&6
eb647f7d
FXC
19213else
19214 ac_check_lib_save_LIBS=$LIBS
19215LIBS="-lm $LIBS"
19216if test x$gcc_no_link = xyes; then
5213506e 19217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19218fi
5213506e 19219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19220/* end confdefs.h. */
19221
5213506e
RW
19222/* Override any GCC internal prototype to avoid an error.
19223 Use char because int might match the return type of a GCC
19224 builtin and then its argument prototype would still apply. */
eb647f7d
FXC
19225#ifdef __cplusplus
19226extern "C"
19227#endif
eb647f7d
FXC
19228char fmodf ();
19229int
19230main ()
19231{
5213506e 19232return fmodf ();
eb647f7d
FXC
19233 ;
19234 return 0;
19235}
19236_ACEOF
5213506e 19237if ac_fn_c_try_link "$LINENO"; then :
eb647f7d
FXC
19238 ac_cv_lib_m_fmodf=yes
19239else
5213506e 19240 ac_cv_lib_m_fmodf=no
eb647f7d 19241fi
5213506e
RW
19242rm -f core conftest.err conftest.$ac_objext \
19243 conftest$ac_exeext conftest.$ac_ext
eb647f7d
FXC
19244LIBS=$ac_check_lib_save_LIBS
19245fi
5213506e
RW
19246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodf" >&5
19247$as_echo "$ac_cv_lib_m_fmodf" >&6; }
19248if test "x$ac_cv_lib_m_fmodf" = x""yes; then :
eb647f7d 19249
5213506e 19250$as_echo "#define HAVE_FMODF 1" >>confdefs.h
eb647f7d
FXC
19251
19252fi
19253
5213506e
RW
19254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
19255$as_echo_n "checking for fmod in -lm... " >&6; }
19256if test "${ac_cv_lib_m_fmod+set}" = set; then :
19257 $as_echo_n "(cached) " >&6
eb647f7d
FXC
19258else
19259 ac_check_lib_save_LIBS=$LIBS
19260LIBS="-lm $LIBS"
19261if test x$gcc_no_link = xyes; then
5213506e 19262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19263fi
5213506e 19264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19265/* end confdefs.h. */
19266
5213506e
RW
19267/* Override any GCC internal prototype to avoid an error.
19268 Use char because int might match the return type of a GCC
19269 builtin and then its argument prototype would still apply. */
eb647f7d
FXC
19270#ifdef __cplusplus
19271extern "C"
19272#endif
eb647f7d
FXC
19273char fmod ();
19274int
19275main ()
19276{
5213506e 19277return fmod ();
eb647f7d
FXC
19278 ;
19279 return 0;
19280}
19281_ACEOF
5213506e 19282if ac_fn_c_try_link "$LINENO"; then :
eb647f7d
FXC
19283 ac_cv_lib_m_fmod=yes
19284else
5213506e 19285 ac_cv_lib_m_fmod=no
eb647f7d 19286fi
5213506e
RW
19287rm -f core conftest.err conftest.$ac_objext \
19288 conftest$ac_exeext conftest.$ac_ext
eb647f7d
FXC
19289LIBS=$ac_check_lib_save_LIBS
19290fi
5213506e
RW
19291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
19292$as_echo "$ac_cv_lib_m_fmod" >&6; }
19293if test "x$ac_cv_lib_m_fmod" = x""yes; then :
eb647f7d 19294
5213506e 19295$as_echo "#define HAVE_FMOD 1" >>confdefs.h
eb647f7d
FXC
19296
19297fi
19298
5213506e
RW
19299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl in -lm" >&5
19300$as_echo_n "checking for fmodl in -lm... " >&6; }
19301if test "${ac_cv_lib_m_fmodl+set}" = set; then :
19302 $as_echo_n "(cached) " >&6
eb647f7d
FXC
19303else
19304 ac_check_lib_save_LIBS=$LIBS
19305LIBS="-lm $LIBS"
19306if test x$gcc_no_link = xyes; then
5213506e 19307 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
eb647f7d 19308fi
5213506e 19309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eb647f7d
FXC
19310/* end confdefs.h. */
19311
5213506e
RW
19312/* Override any GCC internal prototype to avoid an error.
19313 Use char because int might match the return type of a GCC
19314 builtin and then its argument prototype would still apply. */
eb647f7d
FXC
19315#ifdef __cplusplus
19316extern "C"
19317#endif
eb647f7d
FXC
19318char fmodl ();
19319int
19320main ()
19321{
5213506e 19322return fmodl ();
eb647f7d
FXC
19323 ;
19324 return 0;
19325}
19326_ACEOF
5213506e 19327if ac_fn_c_try_link "$LINENO"; then :
eb647f7d
FXC
19328 ac_cv_lib_m_fmodl=yes
19329else
5213506e 19330 ac_cv_lib_m_fmodl=no
eb647f7d 19331fi
5213506e
RW
19332rm -f core conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext conftest.$ac_ext
eb647f7d
FXC
19334LIBS=$ac_check_lib_save_LIBS
19335fi
5213506e
RW
19336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodl" >&5
19337$as_echo "$ac_cv_lib_m_fmodl" >&6; }
19338if test "x$ac_cv_lib_m_fmodl" = x""yes; then :
eb647f7d 19339
5213506e 19340$as_echo "#define HAVE_FMODL 1" >>confdefs.h
eb647f7d
FXC
19341
19342fi
19343
5213506e
RW
19344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf in -lm" >&5
19345$as_echo_n "checking for frexpf in -lm... " >&6; }
19346if test "${ac_cv_lib_m_frexpf+set}" = set; then :
19347 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19348else
19349 ac_check_lib_save_LIBS=$LIBS
19350LIBS="-lm $LIBS"
19351if test x$gcc_no_link = xyes; then
5213506e 19352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19353fi
5213506e 19354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19355/* end confdefs.h. */
19356
5213506e
RW
19357/* Override any GCC internal prototype to avoid an error.
19358 Use char because int might match the return type of a GCC
19359 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19360#ifdef __cplusplus
19361extern "C"
19362#endif
1409cd0b
FXC
19363char frexpf ();
19364int
19365main ()
19366{
5213506e 19367return frexpf ();
1409cd0b
FXC
19368 ;
19369 return 0;
19370}
19371_ACEOF
5213506e 19372if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19373 ac_cv_lib_m_frexpf=yes
19374else
5213506e 19375 ac_cv_lib_m_frexpf=no
1409cd0b 19376fi
5213506e
RW
19377rm -f core conftest.err conftest.$ac_objext \
19378 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19379LIBS=$ac_check_lib_save_LIBS
19380fi
5213506e
RW
19381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpf" >&5
19382$as_echo "$ac_cv_lib_m_frexpf" >&6; }
19383if test "x$ac_cv_lib_m_frexpf" = x""yes; then :
1409cd0b 19384
5213506e 19385$as_echo "#define HAVE_FREXPF 1" >>confdefs.h
1409cd0b
FXC
19386
19387fi
19388
5213506e
RW
19389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp in -lm" >&5
19390$as_echo_n "checking for frexp in -lm... " >&6; }
19391if test "${ac_cv_lib_m_frexp+set}" = set; then :
19392 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19393else
19394 ac_check_lib_save_LIBS=$LIBS
19395LIBS="-lm $LIBS"
19396if test x$gcc_no_link = xyes; then
5213506e 19397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19398fi
5213506e 19399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19400/* end confdefs.h. */
19401
5213506e
RW
19402/* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19405#ifdef __cplusplus
19406extern "C"
19407#endif
1409cd0b
FXC
19408char frexp ();
19409int
19410main ()
19411{
5213506e 19412return frexp ();
1409cd0b
FXC
19413 ;
19414 return 0;
19415}
19416_ACEOF
5213506e 19417if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19418 ac_cv_lib_m_frexp=yes
19419else
5213506e 19420 ac_cv_lib_m_frexp=no
1409cd0b 19421fi
5213506e
RW
19422rm -f core conftest.err conftest.$ac_objext \
19423 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19424LIBS=$ac_check_lib_save_LIBS
19425fi
5213506e
RW
19426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexp" >&5
19427$as_echo "$ac_cv_lib_m_frexp" >&6; }
19428if test "x$ac_cv_lib_m_frexp" = x""yes; then :
1409cd0b 19429
5213506e 19430$as_echo "#define HAVE_FREXP 1" >>confdefs.h
1409cd0b
FXC
19431
19432fi
19433
5213506e
RW
19434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl in -lm" >&5
19435$as_echo_n "checking for frexpl in -lm... " >&6; }
19436if test "${ac_cv_lib_m_frexpl+set}" = set; then :
19437 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19438else
19439 ac_check_lib_save_LIBS=$LIBS
19440LIBS="-lm $LIBS"
19441if test x$gcc_no_link = xyes; then
5213506e 19442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19443fi
5213506e 19444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19445/* end confdefs.h. */
19446
5213506e
RW
19447/* Override any GCC internal prototype to avoid an error.
19448 Use char because int might match the return type of a GCC
19449 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19450#ifdef __cplusplus
19451extern "C"
19452#endif
1409cd0b
FXC
19453char frexpl ();
19454int
19455main ()
19456{
5213506e 19457return frexpl ();
1409cd0b
FXC
19458 ;
19459 return 0;
19460}
19461_ACEOF
5213506e 19462if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19463 ac_cv_lib_m_frexpl=yes
19464else
5213506e 19465 ac_cv_lib_m_frexpl=no
1409cd0b 19466fi
5213506e
RW
19467rm -f core conftest.err conftest.$ac_objext \
19468 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19469LIBS=$ac_check_lib_save_LIBS
19470fi
5213506e
RW
19471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpl" >&5
19472$as_echo "$ac_cv_lib_m_frexpl" >&6; }
19473if test "x$ac_cv_lib_m_frexpl" = x""yes; then :
1409cd0b 19474
5213506e 19475$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
1409cd0b
FXC
19476
19477fi
19478
5213506e
RW
19479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf in -lm" >&5
19480$as_echo_n "checking for hypotf in -lm... " >&6; }
19481if test "${ac_cv_lib_m_hypotf+set}" = set; then :
19482 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19483else
19484 ac_check_lib_save_LIBS=$LIBS
19485LIBS="-lm $LIBS"
19486if test x$gcc_no_link = xyes; then
5213506e 19487 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19488fi
5213506e 19489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19490/* end confdefs.h. */
19491
5213506e
RW
19492/* Override any GCC internal prototype to avoid an error.
19493 Use char because int might match the return type of a GCC
19494 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19495#ifdef __cplusplus
19496extern "C"
19497#endif
1409cd0b
FXC
19498char hypotf ();
19499int
19500main ()
19501{
5213506e 19502return hypotf ();
1409cd0b
FXC
19503 ;
19504 return 0;
19505}
19506_ACEOF
5213506e 19507if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19508 ac_cv_lib_m_hypotf=yes
19509else
5213506e 19510 ac_cv_lib_m_hypotf=no
1409cd0b 19511fi
5213506e
RW
19512rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19514LIBS=$ac_check_lib_save_LIBS
19515fi
5213506e
RW
19516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotf" >&5
19517$as_echo "$ac_cv_lib_m_hypotf" >&6; }
19518if test "x$ac_cv_lib_m_hypotf" = x""yes; then :
1409cd0b 19519
5213506e 19520$as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
1409cd0b
FXC
19521
19522fi
19523
5213506e
RW
19524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
19525$as_echo_n "checking for hypot in -lm... " >&6; }
19526if test "${ac_cv_lib_m_hypot+set}" = set; then :
19527 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19528else
19529 ac_check_lib_save_LIBS=$LIBS
19530LIBS="-lm $LIBS"
19531if test x$gcc_no_link = xyes; then
5213506e 19532 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19533fi
5213506e 19534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19535/* end confdefs.h. */
19536
5213506e
RW
19537/* Override any GCC internal prototype to avoid an error.
19538 Use char because int might match the return type of a GCC
19539 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19540#ifdef __cplusplus
19541extern "C"
19542#endif
1409cd0b
FXC
19543char hypot ();
19544int
19545main ()
19546{
5213506e 19547return hypot ();
1409cd0b
FXC
19548 ;
19549 return 0;
19550}
19551_ACEOF
5213506e 19552if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19553 ac_cv_lib_m_hypot=yes
19554else
5213506e 19555 ac_cv_lib_m_hypot=no
1409cd0b 19556fi
5213506e
RW
19557rm -f core conftest.err conftest.$ac_objext \
19558 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19559LIBS=$ac_check_lib_save_LIBS
19560fi
5213506e
RW
19561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
19562$as_echo "$ac_cv_lib_m_hypot" >&6; }
19563if test "x$ac_cv_lib_m_hypot" = x""yes; then :
1409cd0b 19564
5213506e 19565$as_echo "#define HAVE_HYPOT 1" >>confdefs.h
1409cd0b
FXC
19566
19567fi
19568
5213506e
RW
19569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl in -lm" >&5
19570$as_echo_n "checking for hypotl in -lm... " >&6; }
19571if test "${ac_cv_lib_m_hypotl+set}" = set; then :
19572 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19573else
19574 ac_check_lib_save_LIBS=$LIBS
19575LIBS="-lm $LIBS"
19576if test x$gcc_no_link = xyes; then
5213506e 19577 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19578fi
5213506e 19579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19580/* end confdefs.h. */
19581
5213506e
RW
19582/* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19585#ifdef __cplusplus
19586extern "C"
19587#endif
1409cd0b
FXC
19588char hypotl ();
19589int
19590main ()
19591{
5213506e 19592return hypotl ();
1409cd0b
FXC
19593 ;
19594 return 0;
19595}
19596_ACEOF
5213506e 19597if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19598 ac_cv_lib_m_hypotl=yes
19599else
5213506e 19600 ac_cv_lib_m_hypotl=no
1409cd0b 19601fi
5213506e
RW
19602rm -f core conftest.err conftest.$ac_objext \
19603 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19604LIBS=$ac_check_lib_save_LIBS
19605fi
5213506e
RW
19606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotl" >&5
19607$as_echo "$ac_cv_lib_m_hypotl" >&6; }
19608if test "x$ac_cv_lib_m_hypotl" = x""yes; then :
1409cd0b 19609
5213506e 19610$as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
1409cd0b
FXC
19611
19612fi
19613
5213506e
RW
19614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf in -lm" >&5
19615$as_echo_n "checking for ldexpf in -lm... " >&6; }
19616if test "${ac_cv_lib_m_ldexpf+set}" = set; then :
19617 $as_echo_n "(cached) " >&6
cc6d3bde
SK
19618else
19619 ac_check_lib_save_LIBS=$LIBS
19620LIBS="-lm $LIBS"
19621if test x$gcc_no_link = xyes; then
5213506e 19622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19623fi
5213506e 19624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19625/* end confdefs.h. */
19626
5213506e
RW
19627/* Override any GCC internal prototype to avoid an error.
19628 Use char because int might match the return type of a GCC
19629 builtin and then its argument prototype would still apply. */
cc6d3bde
SK
19630#ifdef __cplusplus
19631extern "C"
19632#endif
cc6d3bde
SK
19633char ldexpf ();
19634int
19635main ()
19636{
5213506e 19637return ldexpf ();
cc6d3bde
SK
19638 ;
19639 return 0;
19640}
19641_ACEOF
5213506e 19642if ac_fn_c_try_link "$LINENO"; then :
cc6d3bde
SK
19643 ac_cv_lib_m_ldexpf=yes
19644else
5213506e 19645 ac_cv_lib_m_ldexpf=no
cc6d3bde 19646fi
5213506e
RW
19647rm -f core conftest.err conftest.$ac_objext \
19648 conftest$ac_exeext conftest.$ac_ext
cc6d3bde
SK
19649LIBS=$ac_check_lib_save_LIBS
19650fi
5213506e
RW
19651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpf" >&5
19652$as_echo "$ac_cv_lib_m_ldexpf" >&6; }
19653if test "x$ac_cv_lib_m_ldexpf" = x""yes; then :
cc6d3bde 19654
5213506e 19655$as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
cc6d3bde
SK
19656
19657fi
19658
5213506e
RW
19659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp in -lm" >&5
19660$as_echo_n "checking for ldexp in -lm... " >&6; }
19661if test "${ac_cv_lib_m_ldexp+set}" = set; then :
19662 $as_echo_n "(cached) " >&6
cc6d3bde
SK
19663else
19664 ac_check_lib_save_LIBS=$LIBS
19665LIBS="-lm $LIBS"
19666if test x$gcc_no_link = xyes; then
5213506e 19667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19668fi
5213506e 19669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19670/* end confdefs.h. */
19671
5213506e
RW
19672/* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
cc6d3bde
SK
19675#ifdef __cplusplus
19676extern "C"
19677#endif
cc6d3bde
SK
19678char ldexp ();
19679int
19680main ()
19681{
5213506e 19682return ldexp ();
cc6d3bde
SK
19683 ;
19684 return 0;
19685}
19686_ACEOF
5213506e 19687if ac_fn_c_try_link "$LINENO"; then :
cc6d3bde
SK
19688 ac_cv_lib_m_ldexp=yes
19689else
5213506e 19690 ac_cv_lib_m_ldexp=no
cc6d3bde 19691fi
5213506e
RW
19692rm -f core conftest.err conftest.$ac_objext \
19693 conftest$ac_exeext conftest.$ac_ext
cc6d3bde
SK
19694LIBS=$ac_check_lib_save_LIBS
19695fi
5213506e
RW
19696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexp" >&5
19697$as_echo "$ac_cv_lib_m_ldexp" >&6; }
19698if test "x$ac_cv_lib_m_ldexp" = x""yes; then :
cc6d3bde 19699
5213506e 19700$as_echo "#define HAVE_LDEXP 1" >>confdefs.h
cc6d3bde
SK
19701
19702fi
19703
5213506e
RW
19704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl in -lm" >&5
19705$as_echo_n "checking for ldexpl in -lm... " >&6; }
19706if test "${ac_cv_lib_m_ldexpl+set}" = set; then :
19707 $as_echo_n "(cached) " >&6
cc6d3bde
SK
19708else
19709 ac_check_lib_save_LIBS=$LIBS
19710LIBS="-lm $LIBS"
19711if test x$gcc_no_link = xyes; then
5213506e 19712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cc6d3bde 19713fi
5213506e 19714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cc6d3bde
SK
19715/* end confdefs.h. */
19716
5213506e
RW
19717/* Override any GCC internal prototype to avoid an error.
19718 Use char because int might match the return type of a GCC
19719 builtin and then its argument prototype would still apply. */
cc6d3bde
SK
19720#ifdef __cplusplus
19721extern "C"
19722#endif
cc6d3bde
SK
19723char ldexpl ();
19724int
19725main ()
19726{
5213506e 19727return ldexpl ();
cc6d3bde
SK
19728 ;
19729 return 0;
19730}
19731_ACEOF
5213506e 19732if ac_fn_c_try_link "$LINENO"; then :
cc6d3bde
SK
19733 ac_cv_lib_m_ldexpl=yes
19734else
5213506e 19735 ac_cv_lib_m_ldexpl=no
cc6d3bde 19736fi
5213506e
RW
19737rm -f core conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
cc6d3bde
SK
19739LIBS=$ac_check_lib_save_LIBS
19740fi
5213506e
RW
19741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpl" >&5
19742$as_echo "$ac_cv_lib_m_ldexpl" >&6; }
19743if test "x$ac_cv_lib_m_ldexpl" = x""yes; then :
cc6d3bde 19744
5213506e 19745$as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
cc6d3bde
SK
19746
19747fi
19748
5213506e
RW
19749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf in -lm" >&5
19750$as_echo_n "checking for logf in -lm... " >&6; }
19751if test "${ac_cv_lib_m_logf+set}" = set; then :
19752 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19753else
19754 ac_check_lib_save_LIBS=$LIBS
19755LIBS="-lm $LIBS"
19756if test x$gcc_no_link = xyes; then
5213506e 19757 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19758fi
5213506e 19759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19760/* end confdefs.h. */
19761
5213506e
RW
19762/* Override any GCC internal prototype to avoid an error.
19763 Use char because int might match the return type of a GCC
19764 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19765#ifdef __cplusplus
19766extern "C"
19767#endif
1409cd0b
FXC
19768char logf ();
19769int
19770main ()
19771{
5213506e 19772return logf ();
1409cd0b
FXC
19773 ;
19774 return 0;
19775}
19776_ACEOF
5213506e 19777if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19778 ac_cv_lib_m_logf=yes
19779else
5213506e 19780 ac_cv_lib_m_logf=no
1409cd0b 19781fi
5213506e
RW
19782rm -f core conftest.err conftest.$ac_objext \
19783 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19784LIBS=$ac_check_lib_save_LIBS
19785fi
5213506e
RW
19786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logf" >&5
19787$as_echo "$ac_cv_lib_m_logf" >&6; }
19788if test "x$ac_cv_lib_m_logf" = x""yes; then :
1409cd0b 19789
5213506e 19790$as_echo "#define HAVE_LOGF 1" >>confdefs.h
1409cd0b
FXC
19791
19792fi
19793
5213506e
RW
19794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
19795$as_echo_n "checking for log in -lm... " >&6; }
19796if test "${ac_cv_lib_m_log+set}" = set; then :
19797 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19798else
19799 ac_check_lib_save_LIBS=$LIBS
19800LIBS="-lm $LIBS"
19801if test x$gcc_no_link = xyes; then
5213506e 19802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19803fi
5213506e 19804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19805/* end confdefs.h. */
19806
5213506e
RW
19807/* Override any GCC internal prototype to avoid an error.
19808 Use char because int might match the return type of a GCC
19809 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19810#ifdef __cplusplus
19811extern "C"
19812#endif
1409cd0b
FXC
19813char log ();
19814int
19815main ()
19816{
5213506e 19817return log ();
1409cd0b
FXC
19818 ;
19819 return 0;
19820}
19821_ACEOF
5213506e 19822if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19823 ac_cv_lib_m_log=yes
19824else
5213506e 19825 ac_cv_lib_m_log=no
1409cd0b 19826fi
5213506e
RW
19827rm -f core conftest.err conftest.$ac_objext \
19828 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19829LIBS=$ac_check_lib_save_LIBS
19830fi
5213506e
RW
19831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
19832$as_echo "$ac_cv_lib_m_log" >&6; }
19833if test "x$ac_cv_lib_m_log" = x""yes; then :
1409cd0b 19834
5213506e 19835$as_echo "#define HAVE_LOG 1" >>confdefs.h
1409cd0b
FXC
19836
19837fi
19838
5213506e
RW
19839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl in -lm" >&5
19840$as_echo_n "checking for logl in -lm... " >&6; }
19841if test "${ac_cv_lib_m_logl+set}" = set; then :
19842 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19843else
19844 ac_check_lib_save_LIBS=$LIBS
19845LIBS="-lm $LIBS"
19846if test x$gcc_no_link = xyes; then
5213506e 19847 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19848fi
5213506e 19849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19850/* end confdefs.h. */
19851
5213506e
RW
19852/* Override any GCC internal prototype to avoid an error.
19853 Use char because int might match the return type of a GCC
19854 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19855#ifdef __cplusplus
19856extern "C"
19857#endif
1409cd0b
FXC
19858char logl ();
19859int
19860main ()
19861{
5213506e 19862return logl ();
1409cd0b
FXC
19863 ;
19864 return 0;
19865}
19866_ACEOF
5213506e 19867if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19868 ac_cv_lib_m_logl=yes
19869else
5213506e 19870 ac_cv_lib_m_logl=no
1409cd0b 19871fi
5213506e
RW
19872rm -f core conftest.err conftest.$ac_objext \
19873 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19874LIBS=$ac_check_lib_save_LIBS
19875fi
5213506e
RW
19876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logl" >&5
19877$as_echo "$ac_cv_lib_m_logl" >&6; }
19878if test "x$ac_cv_lib_m_logl" = x""yes; then :
1409cd0b 19879
5213506e 19880$as_echo "#define HAVE_LOGL 1" >>confdefs.h
1409cd0b
FXC
19881
19882fi
19883
5213506e
RW
19884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf in -lm" >&5
19885$as_echo_n "checking for clogf in -lm... " >&6; }
19886if test "${ac_cv_lib_m_clogf+set}" = set; then :
19887 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19888else
19889 ac_check_lib_save_LIBS=$LIBS
19890LIBS="-lm $LIBS"
19891if test x$gcc_no_link = xyes; then
5213506e 19892 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19893fi
5213506e 19894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19895/* end confdefs.h. */
19896
5213506e
RW
19897/* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19900#ifdef __cplusplus
19901extern "C"
19902#endif
1409cd0b
FXC
19903char clogf ();
19904int
19905main ()
19906{
5213506e 19907return clogf ();
1409cd0b
FXC
19908 ;
19909 return 0;
19910}
19911_ACEOF
5213506e 19912if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19913 ac_cv_lib_m_clogf=yes
19914else
5213506e 19915 ac_cv_lib_m_clogf=no
1409cd0b 19916fi
5213506e
RW
19917rm -f core conftest.err conftest.$ac_objext \
19918 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19919LIBS=$ac_check_lib_save_LIBS
19920fi
5213506e
RW
19921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogf" >&5
19922$as_echo "$ac_cv_lib_m_clogf" >&6; }
19923if test "x$ac_cv_lib_m_clogf" = x""yes; then :
1409cd0b 19924
5213506e 19925$as_echo "#define HAVE_CLOGF 1" >>confdefs.h
1409cd0b
FXC
19926
19927fi
19928
5213506e
RW
19929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog in -lm" >&5
19930$as_echo_n "checking for clog in -lm... " >&6; }
19931if test "${ac_cv_lib_m_clog+set}" = set; then :
19932 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19933else
19934 ac_check_lib_save_LIBS=$LIBS
19935LIBS="-lm $LIBS"
19936if test x$gcc_no_link = xyes; then
5213506e 19937 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19938fi
5213506e 19939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19940/* end confdefs.h. */
19941
5213506e
RW
19942/* Override any GCC internal prototype to avoid an error.
19943 Use char because int might match the return type of a GCC
19944 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19945#ifdef __cplusplus
19946extern "C"
19947#endif
1409cd0b
FXC
19948char clog ();
19949int
19950main ()
19951{
5213506e 19952return clog ();
1409cd0b
FXC
19953 ;
19954 return 0;
19955}
19956_ACEOF
5213506e 19957if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
19958 ac_cv_lib_m_clog=yes
19959else
5213506e 19960 ac_cv_lib_m_clog=no
1409cd0b 19961fi
5213506e
RW
19962rm -f core conftest.err conftest.$ac_objext \
19963 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
19964LIBS=$ac_check_lib_save_LIBS
19965fi
5213506e
RW
19966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog" >&5
19967$as_echo "$ac_cv_lib_m_clog" >&6; }
19968if test "x$ac_cv_lib_m_clog" = x""yes; then :
1409cd0b 19969
5213506e 19970$as_echo "#define HAVE_CLOG 1" >>confdefs.h
1409cd0b
FXC
19971
19972fi
19973
5213506e
RW
19974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl in -lm" >&5
19975$as_echo_n "checking for clogl in -lm... " >&6; }
19976if test "${ac_cv_lib_m_clogl+set}" = set; then :
19977 $as_echo_n "(cached) " >&6
1409cd0b
FXC
19978else
19979 ac_check_lib_save_LIBS=$LIBS
19980LIBS="-lm $LIBS"
19981if test x$gcc_no_link = xyes; then
5213506e 19982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 19983fi
5213506e 19984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
19985/* end confdefs.h. */
19986
5213506e
RW
19987/* Override any GCC internal prototype to avoid an error.
19988 Use char because int might match the return type of a GCC
19989 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
19990#ifdef __cplusplus
19991extern "C"
19992#endif
1409cd0b
FXC
19993char clogl ();
19994int
19995main ()
19996{
5213506e 19997return clogl ();
1409cd0b
FXC
19998 ;
19999 return 0;
20000}
20001_ACEOF
5213506e 20002if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20003 ac_cv_lib_m_clogl=yes
20004else
5213506e 20005 ac_cv_lib_m_clogl=no
1409cd0b 20006fi
5213506e
RW
20007rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20009LIBS=$ac_check_lib_save_LIBS
20010fi
5213506e
RW
20011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogl" >&5
20012$as_echo "$ac_cv_lib_m_clogl" >&6; }
20013if test "x$ac_cv_lib_m_clogl" = x""yes; then :
1409cd0b 20014
5213506e 20015$as_echo "#define HAVE_CLOGL 1" >>confdefs.h
1409cd0b
FXC
20016
20017fi
20018
5213506e
RW
20019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f in -lm" >&5
20020$as_echo_n "checking for log10f in -lm... " >&6; }
20021if test "${ac_cv_lib_m_log10f+set}" = set; then :
20022 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20023else
20024 ac_check_lib_save_LIBS=$LIBS
20025LIBS="-lm $LIBS"
20026if test x$gcc_no_link = xyes; then
5213506e 20027 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20028fi
5213506e 20029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20030/* end confdefs.h. */
20031
5213506e
RW
20032/* Override any GCC internal prototype to avoid an error.
20033 Use char because int might match the return type of a GCC
20034 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20035#ifdef __cplusplus
20036extern "C"
20037#endif
1409cd0b
FXC
20038char log10f ();
20039int
20040main ()
20041{
5213506e 20042return log10f ();
1409cd0b
FXC
20043 ;
20044 return 0;
20045}
20046_ACEOF
5213506e 20047if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20048 ac_cv_lib_m_log10f=yes
20049else
5213506e 20050 ac_cv_lib_m_log10f=no
1409cd0b 20051fi
5213506e
RW
20052rm -f core conftest.err conftest.$ac_objext \
20053 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20054LIBS=$ac_check_lib_save_LIBS
20055fi
5213506e
RW
20056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10f" >&5
20057$as_echo "$ac_cv_lib_m_log10f" >&6; }
20058if test "x$ac_cv_lib_m_log10f" = x""yes; then :
1409cd0b 20059
5213506e 20060$as_echo "#define HAVE_LOG10F 1" >>confdefs.h
1409cd0b
FXC
20061
20062fi
20063
5213506e
RW
20064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
20065$as_echo_n "checking for log10 in -lm... " >&6; }
20066if test "${ac_cv_lib_m_log10+set}" = set; then :
20067 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20068else
20069 ac_check_lib_save_LIBS=$LIBS
20070LIBS="-lm $LIBS"
20071if test x$gcc_no_link = xyes; then
5213506e 20072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20073fi
5213506e 20074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20075/* end confdefs.h. */
20076
5213506e
RW
20077/* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20080#ifdef __cplusplus
20081extern "C"
20082#endif
1409cd0b
FXC
20083char log10 ();
20084int
20085main ()
20086{
5213506e 20087return log10 ();
1409cd0b
FXC
20088 ;
20089 return 0;
20090}
20091_ACEOF
5213506e 20092if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20093 ac_cv_lib_m_log10=yes
20094else
5213506e 20095 ac_cv_lib_m_log10=no
1409cd0b 20096fi
5213506e
RW
20097rm -f core conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20099LIBS=$ac_check_lib_save_LIBS
20100fi
5213506e
RW
20101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
20102$as_echo "$ac_cv_lib_m_log10" >&6; }
20103if test "x$ac_cv_lib_m_log10" = x""yes; then :
1409cd0b 20104
5213506e 20105$as_echo "#define HAVE_LOG10 1" >>confdefs.h
1409cd0b
FXC
20106
20107fi
20108
5213506e
RW
20109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l in -lm" >&5
20110$as_echo_n "checking for log10l in -lm... " >&6; }
20111if test "${ac_cv_lib_m_log10l+set}" = set; then :
20112 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20113else
20114 ac_check_lib_save_LIBS=$LIBS
20115LIBS="-lm $LIBS"
20116if test x$gcc_no_link = xyes; then
5213506e 20117 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20118fi
5213506e 20119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20120/* end confdefs.h. */
20121
5213506e
RW
20122/* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20125#ifdef __cplusplus
20126extern "C"
20127#endif
1409cd0b
FXC
20128char log10l ();
20129int
20130main ()
20131{
5213506e 20132return log10l ();
1409cd0b
FXC
20133 ;
20134 return 0;
20135}
20136_ACEOF
5213506e 20137if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20138 ac_cv_lib_m_log10l=yes
20139else
5213506e 20140 ac_cv_lib_m_log10l=no
1409cd0b 20141fi
5213506e
RW
20142rm -f core conftest.err conftest.$ac_objext \
20143 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20144LIBS=$ac_check_lib_save_LIBS
20145fi
5213506e
RW
20146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10l" >&5
20147$as_echo "$ac_cv_lib_m_log10l" >&6; }
20148if test "x$ac_cv_lib_m_log10l" = x""yes; then :
1409cd0b 20149
5213506e 20150$as_echo "#define HAVE_LOG10L 1" >>confdefs.h
1409cd0b
FXC
20151
20152fi
20153
5213506e
RW
20154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f in -lm" >&5
20155$as_echo_n "checking for clog10f in -lm... " >&6; }
20156if test "${ac_cv_lib_m_clog10f+set}" = set; then :
20157 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20158else
20159 ac_check_lib_save_LIBS=$LIBS
20160LIBS="-lm $LIBS"
20161if test x$gcc_no_link = xyes; then
5213506e 20162 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20163fi
5213506e 20164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20165/* end confdefs.h. */
20166
5213506e
RW
20167/* Override any GCC internal prototype to avoid an error.
20168 Use char because int might match the return type of a GCC
20169 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20170#ifdef __cplusplus
20171extern "C"
20172#endif
1409cd0b
FXC
20173char clog10f ();
20174int
20175main ()
20176{
5213506e 20177return clog10f ();
1409cd0b
FXC
20178 ;
20179 return 0;
20180}
20181_ACEOF
5213506e 20182if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20183 ac_cv_lib_m_clog10f=yes
20184else
5213506e 20185 ac_cv_lib_m_clog10f=no
1409cd0b 20186fi
5213506e
RW
20187rm -f core conftest.err conftest.$ac_objext \
20188 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20189LIBS=$ac_check_lib_save_LIBS
20190fi
5213506e
RW
20191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10f" >&5
20192$as_echo "$ac_cv_lib_m_clog10f" >&6; }
20193if test "x$ac_cv_lib_m_clog10f" = x""yes; then :
1409cd0b 20194
5213506e 20195$as_echo "#define HAVE_CLOG10F 1" >>confdefs.h
1409cd0b
FXC
20196
20197fi
20198
5213506e
RW
20199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10 in -lm" >&5
20200$as_echo_n "checking for clog10 in -lm... " >&6; }
20201if test "${ac_cv_lib_m_clog10+set}" = set; then :
20202 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20203else
20204 ac_check_lib_save_LIBS=$LIBS
20205LIBS="-lm $LIBS"
20206if test x$gcc_no_link = xyes; then
5213506e 20207 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20208fi
5213506e 20209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20210/* end confdefs.h. */
20211
5213506e
RW
20212/* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20215#ifdef __cplusplus
20216extern "C"
20217#endif
1409cd0b
FXC
20218char clog10 ();
20219int
20220main ()
20221{
5213506e 20222return clog10 ();
1409cd0b
FXC
20223 ;
20224 return 0;
20225}
20226_ACEOF
5213506e 20227if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20228 ac_cv_lib_m_clog10=yes
20229else
5213506e 20230 ac_cv_lib_m_clog10=no
1409cd0b 20231fi
5213506e
RW
20232rm -f core conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20234LIBS=$ac_check_lib_save_LIBS
20235fi
5213506e
RW
20236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10" >&5
20237$as_echo "$ac_cv_lib_m_clog10" >&6; }
20238if test "x$ac_cv_lib_m_clog10" = x""yes; then :
1409cd0b 20239
5213506e 20240$as_echo "#define HAVE_CLOG10 1" >>confdefs.h
1409cd0b
FXC
20241
20242fi
20243
5213506e
RW
20244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l in -lm" >&5
20245$as_echo_n "checking for clog10l in -lm... " >&6; }
20246if test "${ac_cv_lib_m_clog10l+set}" = set; then :
20247 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20248else
20249 ac_check_lib_save_LIBS=$LIBS
20250LIBS="-lm $LIBS"
20251if test x$gcc_no_link = xyes; then
5213506e 20252 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20253fi
5213506e 20254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20255/* end confdefs.h. */
20256
5213506e
RW
20257/* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20260#ifdef __cplusplus
20261extern "C"
20262#endif
1409cd0b
FXC
20263char clog10l ();
20264int
20265main ()
20266{
5213506e 20267return clog10l ();
1409cd0b 20268 ;
5213506e
RW
20269 return 0;
20270}
20271_ACEOF
20272if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20273 ac_cv_lib_m_clog10l=yes
20274else
5213506e 20275 ac_cv_lib_m_clog10l=no
1409cd0b 20276fi
5213506e
RW
20277rm -f core conftest.err conftest.$ac_objext \
20278 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20279LIBS=$ac_check_lib_save_LIBS
20280fi
5213506e
RW
20281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10l" >&5
20282$as_echo "$ac_cv_lib_m_clog10l" >&6; }
20283if test "x$ac_cv_lib_m_clog10l" = x""yes; then :
1409cd0b 20284
5213506e 20285$as_echo "#define HAVE_CLOG10L 1" >>confdefs.h
1409cd0b
FXC
20286
20287fi
20288
5213506e
RW
20289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf in -lm" >&5
20290$as_echo_n "checking for nextafterf in -lm... " >&6; }
20291if test "${ac_cv_lib_m_nextafterf+set}" = set; then :
20292 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20293else
20294 ac_check_lib_save_LIBS=$LIBS
20295LIBS="-lm $LIBS"
20296if test x$gcc_no_link = xyes; then
5213506e 20297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20298fi
5213506e 20299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20300/* end confdefs.h. */
20301
5213506e
RW
20302/* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20305#ifdef __cplusplus
20306extern "C"
20307#endif
1409cd0b
FXC
20308char nextafterf ();
20309int
20310main ()
20311{
5213506e 20312return nextafterf ();
1409cd0b
FXC
20313 ;
20314 return 0;
20315}
20316_ACEOF
5213506e 20317if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20318 ac_cv_lib_m_nextafterf=yes
20319else
5213506e 20320 ac_cv_lib_m_nextafterf=no
1409cd0b 20321fi
5213506e
RW
20322rm -f core conftest.err conftest.$ac_objext \
20323 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20324LIBS=$ac_check_lib_save_LIBS
20325fi
5213506e
RW
20326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterf" >&5
20327$as_echo "$ac_cv_lib_m_nextafterf" >&6; }
20328if test "x$ac_cv_lib_m_nextafterf" = x""yes; then :
1409cd0b 20329
5213506e 20330$as_echo "#define HAVE_NEXTAFTERF 1" >>confdefs.h
1409cd0b
FXC
20331
20332fi
20333
5213506e
RW
20334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter in -lm" >&5
20335$as_echo_n "checking for nextafter in -lm... " >&6; }
20336if test "${ac_cv_lib_m_nextafter+set}" = set; then :
20337 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20338else
20339 ac_check_lib_save_LIBS=$LIBS
20340LIBS="-lm $LIBS"
20341if test x$gcc_no_link = xyes; then
5213506e 20342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20343fi
5213506e 20344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20345/* end confdefs.h. */
20346
5213506e
RW
20347/* Override any GCC internal prototype to avoid an error.
20348 Use char because int might match the return type of a GCC
20349 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20350#ifdef __cplusplus
20351extern "C"
20352#endif
1409cd0b
FXC
20353char nextafter ();
20354int
20355main ()
20356{
5213506e 20357return nextafter ();
1409cd0b
FXC
20358 ;
20359 return 0;
20360}
20361_ACEOF
5213506e 20362if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20363 ac_cv_lib_m_nextafter=yes
20364else
5213506e 20365 ac_cv_lib_m_nextafter=no
1409cd0b 20366fi
5213506e
RW
20367rm -f core conftest.err conftest.$ac_objext \
20368 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20369LIBS=$ac_check_lib_save_LIBS
20370fi
5213506e
RW
20371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafter" >&5
20372$as_echo "$ac_cv_lib_m_nextafter" >&6; }
20373if test "x$ac_cv_lib_m_nextafter" = x""yes; then :
1409cd0b 20374
5213506e 20375$as_echo "#define HAVE_NEXTAFTER 1" >>confdefs.h
1409cd0b
FXC
20376
20377fi
20378
5213506e
RW
20379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl in -lm" >&5
20380$as_echo_n "checking for nextafterl in -lm... " >&6; }
20381if test "${ac_cv_lib_m_nextafterl+set}" = set; then :
20382 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20383else
20384 ac_check_lib_save_LIBS=$LIBS
20385LIBS="-lm $LIBS"
20386if test x$gcc_no_link = xyes; then
5213506e 20387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20388fi
5213506e 20389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20390/* end confdefs.h. */
20391
5213506e
RW
20392/* Override any GCC internal prototype to avoid an error.
20393 Use char because int might match the return type of a GCC
20394 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20395#ifdef __cplusplus
20396extern "C"
20397#endif
1409cd0b
FXC
20398char nextafterl ();
20399int
20400main ()
20401{
5213506e 20402return nextafterl ();
1409cd0b
FXC
20403 ;
20404 return 0;
20405}
20406_ACEOF
5213506e 20407if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20408 ac_cv_lib_m_nextafterl=yes
20409else
5213506e 20410 ac_cv_lib_m_nextafterl=no
1409cd0b 20411fi
5213506e
RW
20412rm -f core conftest.err conftest.$ac_objext \
20413 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20414LIBS=$ac_check_lib_save_LIBS
20415fi
5213506e
RW
20416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterl" >&5
20417$as_echo "$ac_cv_lib_m_nextafterl" >&6; }
20418if test "x$ac_cv_lib_m_nextafterl" = x""yes; then :
1409cd0b 20419
5213506e 20420$as_echo "#define HAVE_NEXTAFTERL 1" >>confdefs.h
1409cd0b
FXC
20421
20422fi
20423
5213506e
RW
20424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lm" >&5
20425$as_echo_n "checking for powf in -lm... " >&6; }
20426if test "${ac_cv_lib_m_powf+set}" = set; then :
20427 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20428else
20429 ac_check_lib_save_LIBS=$LIBS
20430LIBS="-lm $LIBS"
20431if test x$gcc_no_link = xyes; then
5213506e 20432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20433fi
5213506e 20434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20435/* end confdefs.h. */
20436
5213506e
RW
20437/* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20440#ifdef __cplusplus
20441extern "C"
20442#endif
1409cd0b
FXC
20443char powf ();
20444int
20445main ()
20446{
5213506e 20447return powf ();
1409cd0b
FXC
20448 ;
20449 return 0;
20450}
20451_ACEOF
5213506e 20452if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20453 ac_cv_lib_m_powf=yes
20454else
5213506e 20455 ac_cv_lib_m_powf=no
1409cd0b 20456fi
5213506e
RW
20457rm -f core conftest.err conftest.$ac_objext \
20458 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20459LIBS=$ac_check_lib_save_LIBS
20460fi
5213506e
RW
20461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powf" >&5
20462$as_echo "$ac_cv_lib_m_powf" >&6; }
20463if test "x$ac_cv_lib_m_powf" = x""yes; then :
1409cd0b 20464
5213506e 20465$as_echo "#define HAVE_POWF 1" >>confdefs.h
1409cd0b
FXC
20466
20467fi
20468
5213506e
RW
20469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
20470$as_echo_n "checking for pow in -lm... " >&6; }
20471if test "${ac_cv_lib_m_pow+set}" = set; then :
20472 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20473else
20474 ac_check_lib_save_LIBS=$LIBS
20475LIBS="-lm $LIBS"
20476if test x$gcc_no_link = xyes; then
5213506e 20477 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20478fi
5213506e 20479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20480/* end confdefs.h. */
20481
5213506e
RW
20482/* Override any GCC internal prototype to avoid an error.
20483 Use char because int might match the return type of a GCC
20484 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20485#ifdef __cplusplus
20486extern "C"
20487#endif
1409cd0b
FXC
20488char pow ();
20489int
20490main ()
20491{
5213506e 20492return pow ();
1409cd0b
FXC
20493 ;
20494 return 0;
20495}
20496_ACEOF
5213506e 20497if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20498 ac_cv_lib_m_pow=yes
20499else
5213506e 20500 ac_cv_lib_m_pow=no
1409cd0b 20501fi
5213506e
RW
20502rm -f core conftest.err conftest.$ac_objext \
20503 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20504LIBS=$ac_check_lib_save_LIBS
20505fi
5213506e
RW
20506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
20507$as_echo "$ac_cv_lib_m_pow" >&6; }
20508if test "x$ac_cv_lib_m_pow" = x""yes; then :
1409cd0b 20509
5213506e 20510$as_echo "#define HAVE_POW 1" >>confdefs.h
1409cd0b
FXC
20511
20512fi
20513
5213506e
RW
20514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl in -lm" >&5
20515$as_echo_n "checking for powl in -lm... " >&6; }
20516if test "${ac_cv_lib_m_powl+set}" = set; then :
20517 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20518else
20519 ac_check_lib_save_LIBS=$LIBS
20520LIBS="-lm $LIBS"
20521if test x$gcc_no_link = xyes; then
5213506e 20522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20523fi
5213506e 20524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20525/* end confdefs.h. */
20526
5213506e
RW
20527/* Override any GCC internal prototype to avoid an error.
20528 Use char because int might match the return type of a GCC
20529 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20530#ifdef __cplusplus
20531extern "C"
20532#endif
1409cd0b
FXC
20533char powl ();
20534int
20535main ()
20536{
5213506e 20537return powl ();
1409cd0b
FXC
20538 ;
20539 return 0;
20540}
20541_ACEOF
5213506e 20542if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20543 ac_cv_lib_m_powl=yes
20544else
5213506e 20545 ac_cv_lib_m_powl=no
1409cd0b 20546fi
5213506e
RW
20547rm -f core conftest.err conftest.$ac_objext \
20548 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20549LIBS=$ac_check_lib_save_LIBS
20550fi
5213506e
RW
20551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powl" >&5
20552$as_echo "$ac_cv_lib_m_powl" >&6; }
20553if test "x$ac_cv_lib_m_powl" = x""yes; then :
1409cd0b 20554
5213506e 20555$as_echo "#define HAVE_POWL 1" >>confdefs.h
1409cd0b
FXC
20556
20557fi
20558
5213506e
RW
20559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf in -lm" >&5
20560$as_echo_n "checking for cpowf in -lm... " >&6; }
20561if test "${ac_cv_lib_m_cpowf+set}" = set; then :
20562 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20563else
20564 ac_check_lib_save_LIBS=$LIBS
20565LIBS="-lm $LIBS"
20566if test x$gcc_no_link = xyes; then
5213506e 20567 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20568fi
5213506e 20569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20570/* end confdefs.h. */
20571
5213506e
RW
20572/* Override any GCC internal prototype to avoid an error.
20573 Use char because int might match the return type of a GCC
20574 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20575#ifdef __cplusplus
20576extern "C"
20577#endif
1409cd0b
FXC
20578char cpowf ();
20579int
20580main ()
20581{
5213506e 20582return cpowf ();
1409cd0b
FXC
20583 ;
20584 return 0;
20585}
20586_ACEOF
5213506e 20587if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20588 ac_cv_lib_m_cpowf=yes
20589else
5213506e 20590 ac_cv_lib_m_cpowf=no
1409cd0b 20591fi
5213506e
RW
20592rm -f core conftest.err conftest.$ac_objext \
20593 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20594LIBS=$ac_check_lib_save_LIBS
20595fi
5213506e
RW
20596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowf" >&5
20597$as_echo "$ac_cv_lib_m_cpowf" >&6; }
20598if test "x$ac_cv_lib_m_cpowf" = x""yes; then :
1409cd0b 20599
5213506e 20600$as_echo "#define HAVE_CPOWF 1" >>confdefs.h
1409cd0b
FXC
20601
20602fi
20603
5213506e
RW
20604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow in -lm" >&5
20605$as_echo_n "checking for cpow in -lm... " >&6; }
20606if test "${ac_cv_lib_m_cpow+set}" = set; then :
20607 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20608else
20609 ac_check_lib_save_LIBS=$LIBS
20610LIBS="-lm $LIBS"
20611if test x$gcc_no_link = xyes; then
5213506e 20612 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20613fi
5213506e 20614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20615/* end confdefs.h. */
20616
5213506e
RW
20617/* Override any GCC internal prototype to avoid an error.
20618 Use char because int might match the return type of a GCC
20619 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20620#ifdef __cplusplus
20621extern "C"
20622#endif
1409cd0b
FXC
20623char cpow ();
20624int
20625main ()
20626{
5213506e 20627return cpow ();
1409cd0b
FXC
20628 ;
20629 return 0;
20630}
20631_ACEOF
5213506e 20632if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20633 ac_cv_lib_m_cpow=yes
20634else
5213506e 20635 ac_cv_lib_m_cpow=no
1409cd0b 20636fi
5213506e
RW
20637rm -f core conftest.err conftest.$ac_objext \
20638 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20639LIBS=$ac_check_lib_save_LIBS
20640fi
5213506e
RW
20641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpow" >&5
20642$as_echo "$ac_cv_lib_m_cpow" >&6; }
20643if test "x$ac_cv_lib_m_cpow" = x""yes; then :
1409cd0b 20644
5213506e 20645$as_echo "#define HAVE_CPOW 1" >>confdefs.h
1409cd0b
FXC
20646
20647fi
20648
5213506e
RW
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl in -lm" >&5
20650$as_echo_n "checking for cpowl in -lm... " >&6; }
20651if test "${ac_cv_lib_m_cpowl+set}" = set; then :
20652 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20653else
20654 ac_check_lib_save_LIBS=$LIBS
20655LIBS="-lm $LIBS"
20656if test x$gcc_no_link = xyes; then
5213506e 20657 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20658fi
5213506e 20659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20660/* end confdefs.h. */
20661
5213506e
RW
20662/* Override any GCC internal prototype to avoid an error.
20663 Use char because int might match the return type of a GCC
20664 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20665#ifdef __cplusplus
20666extern "C"
20667#endif
1409cd0b
FXC
20668char cpowl ();
20669int
20670main ()
20671{
5213506e 20672return cpowl ();
1409cd0b
FXC
20673 ;
20674 return 0;
20675}
20676_ACEOF
5213506e 20677if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20678 ac_cv_lib_m_cpowl=yes
20679else
5213506e 20680 ac_cv_lib_m_cpowl=no
1409cd0b 20681fi
5213506e
RW
20682rm -f core conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20684LIBS=$ac_check_lib_save_LIBS
20685fi
5213506e
RW
20686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowl" >&5
20687$as_echo "$ac_cv_lib_m_cpowl" >&6; }
20688if test "x$ac_cv_lib_m_cpowl" = x""yes; then :
1409cd0b 20689
5213506e 20690$as_echo "#define HAVE_CPOWL 1" >>confdefs.h
1409cd0b
FXC
20691
20692fi
20693
5213506e
RW
20694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf in -lm" >&5
20695$as_echo_n "checking for roundf in -lm... " >&6; }
20696if test "${ac_cv_lib_m_roundf+set}" = set; then :
20697 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20698else
20699 ac_check_lib_save_LIBS=$LIBS
20700LIBS="-lm $LIBS"
20701if test x$gcc_no_link = xyes; then
5213506e 20702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20703fi
5213506e 20704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20705/* end confdefs.h. */
20706
5213506e
RW
20707/* Override any GCC internal prototype to avoid an error.
20708 Use char because int might match the return type of a GCC
20709 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20710#ifdef __cplusplus
20711extern "C"
20712#endif
1409cd0b
FXC
20713char roundf ();
20714int
20715main ()
20716{
5213506e 20717return roundf ();
1409cd0b
FXC
20718 ;
20719 return 0;
20720}
20721_ACEOF
5213506e 20722if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20723 ac_cv_lib_m_roundf=yes
20724else
5213506e 20725 ac_cv_lib_m_roundf=no
1409cd0b 20726fi
5213506e
RW
20727rm -f core conftest.err conftest.$ac_objext \
20728 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20729LIBS=$ac_check_lib_save_LIBS
20730fi
5213506e
RW
20731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundf" >&5
20732$as_echo "$ac_cv_lib_m_roundf" >&6; }
20733if test "x$ac_cv_lib_m_roundf" = x""yes; then :
1409cd0b 20734
5213506e 20735$as_echo "#define HAVE_ROUNDF 1" >>confdefs.h
1409cd0b
FXC
20736
20737fi
20738
5213506e
RW
20739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
20740$as_echo_n "checking for round in -lm... " >&6; }
20741if test "${ac_cv_lib_m_round+set}" = set; then :
20742 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20743else
20744 ac_check_lib_save_LIBS=$LIBS
20745LIBS="-lm $LIBS"
20746if test x$gcc_no_link = xyes; then
5213506e 20747 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20748fi
5213506e 20749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20750/* end confdefs.h. */
20751
5213506e
RW
20752/* Override any GCC internal prototype to avoid an error.
20753 Use char because int might match the return type of a GCC
20754 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20755#ifdef __cplusplus
20756extern "C"
20757#endif
1409cd0b
FXC
20758char round ();
20759int
20760main ()
20761{
5213506e 20762return round ();
1409cd0b
FXC
20763 ;
20764 return 0;
20765}
20766_ACEOF
5213506e 20767if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20768 ac_cv_lib_m_round=yes
20769else
5213506e 20770 ac_cv_lib_m_round=no
1409cd0b 20771fi
5213506e
RW
20772rm -f core conftest.err conftest.$ac_objext \
20773 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20774LIBS=$ac_check_lib_save_LIBS
20775fi
5213506e
RW
20776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
20777$as_echo "$ac_cv_lib_m_round" >&6; }
20778if test "x$ac_cv_lib_m_round" = x""yes; then :
1409cd0b 20779
5213506e 20780$as_echo "#define HAVE_ROUND 1" >>confdefs.h
1409cd0b
FXC
20781
20782fi
20783
5213506e
RW
20784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl in -lm" >&5
20785$as_echo_n "checking for roundl in -lm... " >&6; }
20786if test "${ac_cv_lib_m_roundl+set}" = set; then :
20787 $as_echo_n "(cached) " >&6
1409cd0b
FXC
20788else
20789 ac_check_lib_save_LIBS=$LIBS
20790LIBS="-lm $LIBS"
20791if test x$gcc_no_link = xyes; then
5213506e 20792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 20793fi
5213506e 20794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
20795/* end confdefs.h. */
20796
5213506e
RW
20797/* Override any GCC internal prototype to avoid an error.
20798 Use char because int might match the return type of a GCC
20799 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
20800#ifdef __cplusplus
20801extern "C"
20802#endif
1409cd0b
FXC
20803char roundl ();
20804int
20805main ()
20806{
5213506e 20807return roundl ();
1409cd0b
FXC
20808 ;
20809 return 0;
20810}
20811_ACEOF
5213506e 20812if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
20813 ac_cv_lib_m_roundl=yes
20814else
5213506e 20815 ac_cv_lib_m_roundl=no
1409cd0b 20816fi
5213506e
RW
20817rm -f core conftest.err conftest.$ac_objext \
20818 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
20819LIBS=$ac_check_lib_save_LIBS
20820fi
5213506e
RW
20821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundl" >&5
20822$as_echo "$ac_cv_lib_m_roundl" >&6; }
20823if test "x$ac_cv_lib_m_roundl" = x""yes; then :
1409cd0b 20824
5213506e 20825$as_echo "#define HAVE_ROUNDL 1" >>confdefs.h
1409cd0b
FXC
20826
20827fi
20828
5213506e
RW
20829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf in -lm" >&5
20830$as_echo_n "checking for lroundf in -lm... " >&6; }
20831if test "${ac_cv_lib_m_lroundf+set}" = set; then :
20832 $as_echo_n "(cached) " >&6
94f548c2
FXC
20833else
20834 ac_check_lib_save_LIBS=$LIBS
20835LIBS="-lm $LIBS"
20836if test x$gcc_no_link = xyes; then
5213506e 20837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 20838fi
5213506e 20839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
20840/* end confdefs.h. */
20841
5213506e
RW
20842/* Override any GCC internal prototype to avoid an error.
20843 Use char because int might match the return type of a GCC
20844 builtin and then its argument prototype would still apply. */
94f548c2
FXC
20845#ifdef __cplusplus
20846extern "C"
20847#endif
94f548c2
FXC
20848char lroundf ();
20849int
20850main ()
20851{
5213506e 20852return lroundf ();
94f548c2
FXC
20853 ;
20854 return 0;
20855}
20856_ACEOF
5213506e 20857if ac_fn_c_try_link "$LINENO"; then :
94f548c2
FXC
20858 ac_cv_lib_m_lroundf=yes
20859else
5213506e 20860 ac_cv_lib_m_lroundf=no
94f548c2 20861fi
5213506e
RW
20862rm -f core conftest.err conftest.$ac_objext \
20863 conftest$ac_exeext conftest.$ac_ext
94f548c2
FXC
20864LIBS=$ac_check_lib_save_LIBS
20865fi
5213506e
RW
20866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundf" >&5
20867$as_echo "$ac_cv_lib_m_lroundf" >&6; }
20868if test "x$ac_cv_lib_m_lroundf" = x""yes; then :
94f548c2 20869
5213506e 20870$as_echo "#define HAVE_LROUNDF 1" >>confdefs.h
94f548c2
FXC
20871
20872fi
20873
5213506e
RW
20874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround in -lm" >&5
20875$as_echo_n "checking for lround in -lm... " >&6; }
20876if test "${ac_cv_lib_m_lround+set}" = set; then :
20877 $as_echo_n "(cached) " >&6
94f548c2
FXC
20878else
20879 ac_check_lib_save_LIBS=$LIBS
20880LIBS="-lm $LIBS"
20881if test x$gcc_no_link = xyes; then
5213506e 20882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 20883fi
5213506e 20884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
20885/* end confdefs.h. */
20886
5213506e
RW
20887/* Override any GCC internal prototype to avoid an error.
20888 Use char because int might match the return type of a GCC
20889 builtin and then its argument prototype would still apply. */
94f548c2
FXC
20890#ifdef __cplusplus
20891extern "C"
20892#endif
94f548c2
FXC
20893char lround ();
20894int
20895main ()
20896{
5213506e 20897return lround ();
94f548c2
FXC
20898 ;
20899 return 0;
20900}
20901_ACEOF
5213506e 20902if ac_fn_c_try_link "$LINENO"; then :
94f548c2
FXC
20903 ac_cv_lib_m_lround=yes
20904else
5213506e 20905 ac_cv_lib_m_lround=no
94f548c2 20906fi
5213506e
RW
20907rm -f core conftest.err conftest.$ac_objext \
20908 conftest$ac_exeext conftest.$ac_ext
94f548c2
FXC
20909LIBS=$ac_check_lib_save_LIBS
20910fi
5213506e
RW
20911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lround" >&5
20912$as_echo "$ac_cv_lib_m_lround" >&6; }
20913if test "x$ac_cv_lib_m_lround" = x""yes; then :
94f548c2 20914
5213506e 20915$as_echo "#define HAVE_LROUND 1" >>confdefs.h
94f548c2
FXC
20916
20917fi
20918
5213506e
RW
20919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl in -lm" >&5
20920$as_echo_n "checking for lroundl in -lm... " >&6; }
20921if test "${ac_cv_lib_m_lroundl+set}" = set; then :
20922 $as_echo_n "(cached) " >&6
94f548c2
FXC
20923else
20924 ac_check_lib_save_LIBS=$LIBS
20925LIBS="-lm $LIBS"
20926if test x$gcc_no_link = xyes; then
5213506e 20927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 20928fi
5213506e 20929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
20930/* end confdefs.h. */
20931
5213506e
RW
20932/* Override any GCC internal prototype to avoid an error.
20933 Use char because int might match the return type of a GCC
20934 builtin and then its argument prototype would still apply. */
94f548c2
FXC
20935#ifdef __cplusplus
20936extern "C"
20937#endif
94f548c2
FXC
20938char lroundl ();
20939int
20940main ()
20941{
5213506e 20942return lroundl ();
94f548c2
FXC
20943 ;
20944 return 0;
20945}
20946_ACEOF
5213506e 20947if ac_fn_c_try_link "$LINENO"; then :
94f548c2
FXC
20948 ac_cv_lib_m_lroundl=yes
20949else
5213506e 20950 ac_cv_lib_m_lroundl=no
94f548c2 20951fi
5213506e
RW
20952rm -f core conftest.err conftest.$ac_objext \
20953 conftest$ac_exeext conftest.$ac_ext
94f548c2
FXC
20954LIBS=$ac_check_lib_save_LIBS
20955fi
5213506e
RW
20956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundl" >&5
20957$as_echo "$ac_cv_lib_m_lroundl" >&6; }
20958if test "x$ac_cv_lib_m_lroundl" = x""yes; then :
94f548c2 20959
5213506e 20960$as_echo "#define HAVE_LROUNDL 1" >>confdefs.h
94f548c2
FXC
20961
20962fi
20963
5213506e
RW
20964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf in -lm" >&5
20965$as_echo_n "checking for llroundf in -lm... " >&6; }
20966if test "${ac_cv_lib_m_llroundf+set}" = set; then :
20967 $as_echo_n "(cached) " >&6
94f548c2
FXC
20968else
20969 ac_check_lib_save_LIBS=$LIBS
20970LIBS="-lm $LIBS"
20971if test x$gcc_no_link = xyes; then
5213506e 20972 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 20973fi
5213506e 20974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
20975/* end confdefs.h. */
20976
5213506e
RW
20977/* Override any GCC internal prototype to avoid an error.
20978 Use char because int might match the return type of a GCC
20979 builtin and then its argument prototype would still apply. */
94f548c2
FXC
20980#ifdef __cplusplus
20981extern "C"
20982#endif
94f548c2
FXC
20983char llroundf ();
20984int
20985main ()
20986{
5213506e 20987return llroundf ();
94f548c2
FXC
20988 ;
20989 return 0;
20990}
20991_ACEOF
5213506e 20992if ac_fn_c_try_link "$LINENO"; then :
94f548c2
FXC
20993 ac_cv_lib_m_llroundf=yes
20994else
5213506e 20995 ac_cv_lib_m_llroundf=no
94f548c2 20996fi
5213506e
RW
20997rm -f core conftest.err conftest.$ac_objext \
20998 conftest$ac_exeext conftest.$ac_ext
94f548c2
FXC
20999LIBS=$ac_check_lib_save_LIBS
21000fi
5213506e
RW
21001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundf" >&5
21002$as_echo "$ac_cv_lib_m_llroundf" >&6; }
21003if test "x$ac_cv_lib_m_llroundf" = x""yes; then :
94f548c2 21004
5213506e 21005$as_echo "#define HAVE_LLROUNDF 1" >>confdefs.h
94f548c2
FXC
21006
21007fi
21008
5213506e
RW
21009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround in -lm" >&5
21010$as_echo_n "checking for llround in -lm... " >&6; }
21011if test "${ac_cv_lib_m_llround+set}" = set; then :
21012 $as_echo_n "(cached) " >&6
94f548c2
FXC
21013else
21014 ac_check_lib_save_LIBS=$LIBS
21015LIBS="-lm $LIBS"
21016if test x$gcc_no_link = xyes; then
5213506e 21017 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21018fi
5213506e 21019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21020/* end confdefs.h. */
21021
5213506e
RW
21022/* Override any GCC internal prototype to avoid an error.
21023 Use char because int might match the return type of a GCC
21024 builtin and then its argument prototype would still apply. */
94f548c2
FXC
21025#ifdef __cplusplus
21026extern "C"
21027#endif
94f548c2
FXC
21028char llround ();
21029int
21030main ()
21031{
5213506e 21032return llround ();
94f548c2
FXC
21033 ;
21034 return 0;
21035}
21036_ACEOF
5213506e 21037if ac_fn_c_try_link "$LINENO"; then :
94f548c2
FXC
21038 ac_cv_lib_m_llround=yes
21039else
5213506e 21040 ac_cv_lib_m_llround=no
94f548c2 21041fi
5213506e
RW
21042rm -f core conftest.err conftest.$ac_objext \
21043 conftest$ac_exeext conftest.$ac_ext
94f548c2
FXC
21044LIBS=$ac_check_lib_save_LIBS
21045fi
5213506e
RW
21046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llround" >&5
21047$as_echo "$ac_cv_lib_m_llround" >&6; }
21048if test "x$ac_cv_lib_m_llround" = x""yes; then :
94f548c2 21049
5213506e 21050$as_echo "#define HAVE_LLROUND 1" >>confdefs.h
94f548c2
FXC
21051
21052fi
21053
5213506e
RW
21054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl in -lm" >&5
21055$as_echo_n "checking for llroundl in -lm... " >&6; }
21056if test "${ac_cv_lib_m_llroundl+set}" = set; then :
21057 $as_echo_n "(cached) " >&6
94f548c2
FXC
21058else
21059 ac_check_lib_save_LIBS=$LIBS
21060LIBS="-lm $LIBS"
21061if test x$gcc_no_link = xyes; then
5213506e 21062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
94f548c2 21063fi
5213506e 21064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94f548c2
FXC
21065/* end confdefs.h. */
21066
5213506e
RW
21067/* Override any GCC internal prototype to avoid an error.
21068 Use char because int might match the return type of a GCC
21069 builtin and then its argument prototype would still apply. */
94f548c2
FXC
21070#ifdef __cplusplus
21071extern "C"
21072#endif
94f548c2
FXC
21073char llroundl ();
21074int
21075main ()
21076{
5213506e 21077return llroundl ();
94f548c2
FXC
21078 ;
21079 return 0;
21080}
21081_ACEOF
5213506e 21082if ac_fn_c_try_link "$LINENO"; then :
94f548c2
FXC
21083 ac_cv_lib_m_llroundl=yes
21084else
5213506e 21085 ac_cv_lib_m_llroundl=no
94f548c2 21086fi
5213506e
RW
21087rm -f core conftest.err conftest.$ac_objext \
21088 conftest$ac_exeext conftest.$ac_ext
94f548c2
FXC
21089LIBS=$ac_check_lib_save_LIBS
21090fi
5213506e
RW
21091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundl" >&5
21092$as_echo "$ac_cv_lib_m_llroundl" >&6; }
21093if test "x$ac_cv_lib_m_llroundl" = x""yes; then :
94f548c2 21094
5213506e 21095$as_echo "#define HAVE_LLROUNDL 1" >>confdefs.h
94f548c2
FXC
21096
21097fi
21098
5213506e
RW
21099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf in -lm" >&5
21100$as_echo_n "checking for scalbnf in -lm... " >&6; }
21101if test "${ac_cv_lib_m_scalbnf+set}" = set; then :
21102 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21103else
21104 ac_check_lib_save_LIBS=$LIBS
21105LIBS="-lm $LIBS"
21106if test x$gcc_no_link = xyes; then
5213506e 21107 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21108fi
5213506e 21109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21110/* end confdefs.h. */
21111
5213506e
RW
21112/* Override any GCC internal prototype to avoid an error.
21113 Use char because int might match the return type of a GCC
21114 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21115#ifdef __cplusplus
21116extern "C"
21117#endif
1409cd0b
FXC
21118char scalbnf ();
21119int
21120main ()
21121{
5213506e 21122return scalbnf ();
1409cd0b
FXC
21123 ;
21124 return 0;
21125}
21126_ACEOF
5213506e 21127if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21128 ac_cv_lib_m_scalbnf=yes
21129else
5213506e 21130 ac_cv_lib_m_scalbnf=no
1409cd0b 21131fi
5213506e
RW
21132rm -f core conftest.err conftest.$ac_objext \
21133 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21134LIBS=$ac_check_lib_save_LIBS
21135fi
5213506e
RW
21136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnf" >&5
21137$as_echo "$ac_cv_lib_m_scalbnf" >&6; }
21138if test "x$ac_cv_lib_m_scalbnf" = x""yes; then :
1409cd0b 21139
5213506e 21140$as_echo "#define HAVE_SCALBNF 1" >>confdefs.h
1409cd0b
FXC
21141
21142fi
21143
5213506e
RW
21144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn in -lm" >&5
21145$as_echo_n "checking for scalbn in -lm... " >&6; }
21146if test "${ac_cv_lib_m_scalbn+set}" = set; then :
21147 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21148else
21149 ac_check_lib_save_LIBS=$LIBS
21150LIBS="-lm $LIBS"
21151if test x$gcc_no_link = xyes; then
5213506e 21152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21153fi
5213506e 21154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21155/* end confdefs.h. */
21156
5213506e
RW
21157/* Override any GCC internal prototype to avoid an error.
21158 Use char because int might match the return type of a GCC
21159 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21160#ifdef __cplusplus
21161extern "C"
21162#endif
1409cd0b
FXC
21163char scalbn ();
21164int
21165main ()
21166{
5213506e 21167return scalbn ();
1409cd0b
FXC
21168 ;
21169 return 0;
21170}
21171_ACEOF
5213506e 21172if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21173 ac_cv_lib_m_scalbn=yes
21174else
5213506e 21175 ac_cv_lib_m_scalbn=no
1409cd0b 21176fi
5213506e
RW
21177rm -f core conftest.err conftest.$ac_objext \
21178 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21179LIBS=$ac_check_lib_save_LIBS
21180fi
5213506e
RW
21181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbn" >&5
21182$as_echo "$ac_cv_lib_m_scalbn" >&6; }
21183if test "x$ac_cv_lib_m_scalbn" = x""yes; then :
1409cd0b 21184
5213506e 21185$as_echo "#define HAVE_SCALBN 1" >>confdefs.h
1409cd0b
FXC
21186
21187fi
21188
5213506e
RW
21189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl in -lm" >&5
21190$as_echo_n "checking for scalbnl in -lm... " >&6; }
21191if test "${ac_cv_lib_m_scalbnl+set}" = set; then :
21192 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21193else
21194 ac_check_lib_save_LIBS=$LIBS
21195LIBS="-lm $LIBS"
21196if test x$gcc_no_link = xyes; then
5213506e 21197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21198fi
5213506e 21199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21200/* end confdefs.h. */
21201
5213506e
RW
21202/* Override any GCC internal prototype to avoid an error.
21203 Use char because int might match the return type of a GCC
21204 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21205#ifdef __cplusplus
21206extern "C"
21207#endif
1409cd0b
FXC
21208char scalbnl ();
21209int
21210main ()
21211{
5213506e 21212return scalbnl ();
1409cd0b
FXC
21213 ;
21214 return 0;
21215}
21216_ACEOF
5213506e 21217if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21218 ac_cv_lib_m_scalbnl=yes
21219else
5213506e 21220 ac_cv_lib_m_scalbnl=no
1409cd0b 21221fi
5213506e
RW
21222rm -f core conftest.err conftest.$ac_objext \
21223 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21224LIBS=$ac_check_lib_save_LIBS
21225fi
5213506e
RW
21226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnl" >&5
21227$as_echo "$ac_cv_lib_m_scalbnl" >&6; }
21228if test "x$ac_cv_lib_m_scalbnl" = x""yes; then :
1409cd0b 21229
5213506e 21230$as_echo "#define HAVE_SCALBNL 1" >>confdefs.h
1409cd0b
FXC
21231
21232fi
21233
5213506e
RW
21234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf in -lm" >&5
21235$as_echo_n "checking for sinf in -lm... " >&6; }
21236if test "${ac_cv_lib_m_sinf+set}" = set; then :
21237 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21238else
21239 ac_check_lib_save_LIBS=$LIBS
21240LIBS="-lm $LIBS"
21241if test x$gcc_no_link = xyes; then
5213506e 21242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21243fi
5213506e 21244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21245/* end confdefs.h. */
21246
5213506e
RW
21247/* Override any GCC internal prototype to avoid an error.
21248 Use char because int might match the return type of a GCC
21249 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21250#ifdef __cplusplus
21251extern "C"
21252#endif
1409cd0b
FXC
21253char sinf ();
21254int
21255main ()
21256{
5213506e 21257return sinf ();
1409cd0b
FXC
21258 ;
21259 return 0;
21260}
21261_ACEOF
5213506e 21262if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21263 ac_cv_lib_m_sinf=yes
21264else
5213506e 21265 ac_cv_lib_m_sinf=no
1409cd0b 21266fi
5213506e
RW
21267rm -f core conftest.err conftest.$ac_objext \
21268 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21269LIBS=$ac_check_lib_save_LIBS
21270fi
5213506e
RW
21271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinf" >&5
21272$as_echo "$ac_cv_lib_m_sinf" >&6; }
21273if test "x$ac_cv_lib_m_sinf" = x""yes; then :
1409cd0b 21274
5213506e 21275$as_echo "#define HAVE_SINF 1" >>confdefs.h
1409cd0b
FXC
21276
21277fi
21278
5213506e
RW
21279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
21280$as_echo_n "checking for sin in -lm... " >&6; }
21281if test "${ac_cv_lib_m_sin+set}" = set; then :
21282 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21283else
21284 ac_check_lib_save_LIBS=$LIBS
21285LIBS="-lm $LIBS"
21286if test x$gcc_no_link = xyes; then
5213506e 21287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21288fi
5213506e 21289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21290/* end confdefs.h. */
21291
5213506e
RW
21292/* Override any GCC internal prototype to avoid an error.
21293 Use char because int might match the return type of a GCC
21294 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21295#ifdef __cplusplus
21296extern "C"
21297#endif
1409cd0b
FXC
21298char sin ();
21299int
21300main ()
21301{
5213506e 21302return sin ();
1409cd0b
FXC
21303 ;
21304 return 0;
21305}
21306_ACEOF
5213506e 21307if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21308 ac_cv_lib_m_sin=yes
21309else
5213506e 21310 ac_cv_lib_m_sin=no
1409cd0b 21311fi
5213506e
RW
21312rm -f core conftest.err conftest.$ac_objext \
21313 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21314LIBS=$ac_check_lib_save_LIBS
21315fi
5213506e
RW
21316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
21317$as_echo "$ac_cv_lib_m_sin" >&6; }
21318if test "x$ac_cv_lib_m_sin" = x""yes; then :
1409cd0b 21319
5213506e 21320$as_echo "#define HAVE_SIN 1" >>confdefs.h
1409cd0b
FXC
21321
21322fi
21323
5213506e
RW
21324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl in -lm" >&5
21325$as_echo_n "checking for sinl in -lm... " >&6; }
21326if test "${ac_cv_lib_m_sinl+set}" = set; then :
21327 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21328else
21329 ac_check_lib_save_LIBS=$LIBS
21330LIBS="-lm $LIBS"
21331if test x$gcc_no_link = xyes; then
5213506e 21332 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21333fi
5213506e 21334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21335/* end confdefs.h. */
21336
5213506e
RW
21337/* Override any GCC internal prototype to avoid an error.
21338 Use char because int might match the return type of a GCC
21339 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21340#ifdef __cplusplus
21341extern "C"
21342#endif
1409cd0b
FXC
21343char sinl ();
21344int
21345main ()
21346{
5213506e 21347return sinl ();
1409cd0b
FXC
21348 ;
21349 return 0;
21350}
21351_ACEOF
5213506e 21352if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21353 ac_cv_lib_m_sinl=yes
21354else
5213506e 21355 ac_cv_lib_m_sinl=no
1409cd0b 21356fi
5213506e
RW
21357rm -f core conftest.err conftest.$ac_objext \
21358 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21359LIBS=$ac_check_lib_save_LIBS
21360fi
5213506e
RW
21361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinl" >&5
21362$as_echo "$ac_cv_lib_m_sinl" >&6; }
21363if test "x$ac_cv_lib_m_sinl" = x""yes; then :
1409cd0b 21364
5213506e 21365$as_echo "#define HAVE_SINL 1" >>confdefs.h
1409cd0b
FXC
21366
21367fi
21368
5213506e
RW
21369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf in -lm" >&5
21370$as_echo_n "checking for csinf in -lm... " >&6; }
21371if test "${ac_cv_lib_m_csinf+set}" = set; then :
21372 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21373else
21374 ac_check_lib_save_LIBS=$LIBS
21375LIBS="-lm $LIBS"
21376if test x$gcc_no_link = xyes; then
5213506e 21377 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21378fi
5213506e 21379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21380/* end confdefs.h. */
21381
5213506e
RW
21382/* Override any GCC internal prototype to avoid an error.
21383 Use char because int might match the return type of a GCC
21384 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21385#ifdef __cplusplus
21386extern "C"
21387#endif
1409cd0b
FXC
21388char csinf ();
21389int
21390main ()
21391{
5213506e 21392return csinf ();
1409cd0b 21393 ;
5213506e
RW
21394 return 0;
21395}
21396_ACEOF
21397if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21398 ac_cv_lib_m_csinf=yes
21399else
5213506e 21400 ac_cv_lib_m_csinf=no
1409cd0b 21401fi
5213506e
RW
21402rm -f core conftest.err conftest.$ac_objext \
21403 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21404LIBS=$ac_check_lib_save_LIBS
21405fi
5213506e
RW
21406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinf" >&5
21407$as_echo "$ac_cv_lib_m_csinf" >&6; }
21408if test "x$ac_cv_lib_m_csinf" = x""yes; then :
1409cd0b 21409
5213506e 21410$as_echo "#define HAVE_CSINF 1" >>confdefs.h
1409cd0b
FXC
21411
21412fi
21413
5213506e
RW
21414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin in -lm" >&5
21415$as_echo_n "checking for csin in -lm... " >&6; }
21416if test "${ac_cv_lib_m_csin+set}" = set; then :
21417 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21418else
21419 ac_check_lib_save_LIBS=$LIBS
21420LIBS="-lm $LIBS"
21421if test x$gcc_no_link = xyes; then
5213506e 21422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21423fi
5213506e 21424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21425/* end confdefs.h. */
21426
5213506e
RW
21427/* Override any GCC internal prototype to avoid an error.
21428 Use char because int might match the return type of a GCC
21429 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21430#ifdef __cplusplus
21431extern "C"
21432#endif
1409cd0b
FXC
21433char csin ();
21434int
21435main ()
21436{
5213506e 21437return csin ();
1409cd0b
FXC
21438 ;
21439 return 0;
21440}
21441_ACEOF
5213506e 21442if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21443 ac_cv_lib_m_csin=yes
21444else
5213506e 21445 ac_cv_lib_m_csin=no
1409cd0b 21446fi
5213506e
RW
21447rm -f core conftest.err conftest.$ac_objext \
21448 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21449LIBS=$ac_check_lib_save_LIBS
21450fi
5213506e
RW
21451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csin" >&5
21452$as_echo "$ac_cv_lib_m_csin" >&6; }
21453if test "x$ac_cv_lib_m_csin" = x""yes; then :
1409cd0b 21454
5213506e 21455$as_echo "#define HAVE_CSIN 1" >>confdefs.h
1409cd0b
FXC
21456
21457fi
21458
5213506e
RW
21459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl in -lm" >&5
21460$as_echo_n "checking for csinl in -lm... " >&6; }
21461if test "${ac_cv_lib_m_csinl+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21463else
21464 ac_check_lib_save_LIBS=$LIBS
21465LIBS="-lm $LIBS"
21466if test x$gcc_no_link = xyes; then
5213506e 21467 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21468fi
5213506e 21469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21470/* end confdefs.h. */
21471
5213506e
RW
21472/* Override any GCC internal prototype to avoid an error.
21473 Use char because int might match the return type of a GCC
21474 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21475#ifdef __cplusplus
21476extern "C"
21477#endif
1409cd0b
FXC
21478char csinl ();
21479int
21480main ()
21481{
5213506e 21482return csinl ();
1409cd0b
FXC
21483 ;
21484 return 0;
21485}
21486_ACEOF
5213506e 21487if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21488 ac_cv_lib_m_csinl=yes
21489else
5213506e 21490 ac_cv_lib_m_csinl=no
1409cd0b 21491fi
5213506e
RW
21492rm -f core conftest.err conftest.$ac_objext \
21493 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21494LIBS=$ac_check_lib_save_LIBS
21495fi
5213506e
RW
21496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinl" >&5
21497$as_echo "$ac_cv_lib_m_csinl" >&6; }
21498if test "x$ac_cv_lib_m_csinl" = x""yes; then :
1409cd0b 21499
5213506e 21500$as_echo "#define HAVE_CSINL 1" >>confdefs.h
1409cd0b
FXC
21501
21502fi
21503
5213506e
RW
21504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf in -lm" >&5
21505$as_echo_n "checking for sinhf in -lm... " >&6; }
21506if test "${ac_cv_lib_m_sinhf+set}" = set; then :
21507 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21508else
21509 ac_check_lib_save_LIBS=$LIBS
21510LIBS="-lm $LIBS"
21511if test x$gcc_no_link = xyes; then
5213506e 21512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21513fi
5213506e 21514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21515/* end confdefs.h. */
21516
5213506e
RW
21517/* Override any GCC internal prototype to avoid an error.
21518 Use char because int might match the return type of a GCC
21519 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21520#ifdef __cplusplus
21521extern "C"
21522#endif
1409cd0b
FXC
21523char sinhf ();
21524int
21525main ()
21526{
5213506e 21527return sinhf ();
1409cd0b
FXC
21528 ;
21529 return 0;
21530}
21531_ACEOF
5213506e 21532if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21533 ac_cv_lib_m_sinhf=yes
21534else
5213506e 21535 ac_cv_lib_m_sinhf=no
1409cd0b 21536fi
5213506e
RW
21537rm -f core conftest.err conftest.$ac_objext \
21538 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21539LIBS=$ac_check_lib_save_LIBS
21540fi
5213506e
RW
21541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhf" >&5
21542$as_echo "$ac_cv_lib_m_sinhf" >&6; }
21543if test "x$ac_cv_lib_m_sinhf" = x""yes; then :
1409cd0b 21544
5213506e 21545$as_echo "#define HAVE_SINHF 1" >>confdefs.h
1409cd0b
FXC
21546
21547fi
21548
5213506e
RW
21549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh in -lm" >&5
21550$as_echo_n "checking for sinh in -lm... " >&6; }
21551if test "${ac_cv_lib_m_sinh+set}" = set; then :
21552 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21553else
21554 ac_check_lib_save_LIBS=$LIBS
21555LIBS="-lm $LIBS"
21556if test x$gcc_no_link = xyes; then
5213506e 21557 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21558fi
5213506e 21559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21560/* end confdefs.h. */
21561
5213506e
RW
21562/* Override any GCC internal prototype to avoid an error.
21563 Use char because int might match the return type of a GCC
21564 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21565#ifdef __cplusplus
21566extern "C"
21567#endif
1409cd0b
FXC
21568char sinh ();
21569int
21570main ()
21571{
5213506e 21572return sinh ();
1409cd0b
FXC
21573 ;
21574 return 0;
21575}
21576_ACEOF
5213506e 21577if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21578 ac_cv_lib_m_sinh=yes
21579else
5213506e 21580 ac_cv_lib_m_sinh=no
1409cd0b 21581fi
5213506e
RW
21582rm -f core conftest.err conftest.$ac_objext \
21583 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21584LIBS=$ac_check_lib_save_LIBS
21585fi
5213506e
RW
21586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinh" >&5
21587$as_echo "$ac_cv_lib_m_sinh" >&6; }
21588if test "x$ac_cv_lib_m_sinh" = x""yes; then :
1409cd0b 21589
5213506e 21590$as_echo "#define HAVE_SINH 1" >>confdefs.h
1409cd0b
FXC
21591
21592fi
21593
5213506e
RW
21594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl in -lm" >&5
21595$as_echo_n "checking for sinhl in -lm... " >&6; }
21596if test "${ac_cv_lib_m_sinhl+set}" = set; then :
21597 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21598else
21599 ac_check_lib_save_LIBS=$LIBS
21600LIBS="-lm $LIBS"
21601if test x$gcc_no_link = xyes; then
5213506e 21602 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21603fi
5213506e 21604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21605/* end confdefs.h. */
21606
5213506e
RW
21607/* Override any GCC internal prototype to avoid an error.
21608 Use char because int might match the return type of a GCC
21609 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21610#ifdef __cplusplus
21611extern "C"
21612#endif
1409cd0b
FXC
21613char sinhl ();
21614int
21615main ()
21616{
5213506e 21617return sinhl ();
1409cd0b
FXC
21618 ;
21619 return 0;
21620}
21621_ACEOF
5213506e 21622if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21623 ac_cv_lib_m_sinhl=yes
21624else
5213506e 21625 ac_cv_lib_m_sinhl=no
1409cd0b 21626fi
5213506e
RW
21627rm -f core conftest.err conftest.$ac_objext \
21628 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21629LIBS=$ac_check_lib_save_LIBS
21630fi
5213506e
RW
21631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhl" >&5
21632$as_echo "$ac_cv_lib_m_sinhl" >&6; }
21633if test "x$ac_cv_lib_m_sinhl" = x""yes; then :
1409cd0b 21634
5213506e 21635$as_echo "#define HAVE_SINHL 1" >>confdefs.h
1409cd0b
FXC
21636
21637fi
21638
5213506e
RW
21639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf in -lm" >&5
21640$as_echo_n "checking for csinhf in -lm... " >&6; }
21641if test "${ac_cv_lib_m_csinhf+set}" = set; then :
21642 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21643else
21644 ac_check_lib_save_LIBS=$LIBS
21645LIBS="-lm $LIBS"
21646if test x$gcc_no_link = xyes; then
5213506e 21647 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21648fi
5213506e 21649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21650/* end confdefs.h. */
21651
5213506e
RW
21652/* Override any GCC internal prototype to avoid an error.
21653 Use char because int might match the return type of a GCC
21654 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21655#ifdef __cplusplus
21656extern "C"
21657#endif
1409cd0b
FXC
21658char csinhf ();
21659int
21660main ()
21661{
5213506e 21662return csinhf ();
1409cd0b
FXC
21663 ;
21664 return 0;
21665}
21666_ACEOF
5213506e 21667if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21668 ac_cv_lib_m_csinhf=yes
21669else
5213506e 21670 ac_cv_lib_m_csinhf=no
1409cd0b 21671fi
5213506e
RW
21672rm -f core conftest.err conftest.$ac_objext \
21673 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21674LIBS=$ac_check_lib_save_LIBS
21675fi
5213506e
RW
21676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhf" >&5
21677$as_echo "$ac_cv_lib_m_csinhf" >&6; }
21678if test "x$ac_cv_lib_m_csinhf" = x""yes; then :
1409cd0b 21679
5213506e 21680$as_echo "#define HAVE_CSINHF 1" >>confdefs.h
1409cd0b
FXC
21681
21682fi
21683
5213506e
RW
21684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh in -lm" >&5
21685$as_echo_n "checking for csinh in -lm... " >&6; }
21686if test "${ac_cv_lib_m_csinh+set}" = set; then :
21687 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21688else
21689 ac_check_lib_save_LIBS=$LIBS
21690LIBS="-lm $LIBS"
21691if test x$gcc_no_link = xyes; then
5213506e 21692 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21693fi
5213506e 21694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21695/* end confdefs.h. */
21696
5213506e
RW
21697/* Override any GCC internal prototype to avoid an error.
21698 Use char because int might match the return type of a GCC
21699 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21700#ifdef __cplusplus
21701extern "C"
21702#endif
1409cd0b
FXC
21703char csinh ();
21704int
21705main ()
21706{
5213506e 21707return csinh ();
1409cd0b
FXC
21708 ;
21709 return 0;
21710}
21711_ACEOF
5213506e 21712if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21713 ac_cv_lib_m_csinh=yes
21714else
5213506e 21715 ac_cv_lib_m_csinh=no
1409cd0b 21716fi
5213506e
RW
21717rm -f core conftest.err conftest.$ac_objext \
21718 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21719LIBS=$ac_check_lib_save_LIBS
21720fi
5213506e
RW
21721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinh" >&5
21722$as_echo "$ac_cv_lib_m_csinh" >&6; }
21723if test "x$ac_cv_lib_m_csinh" = x""yes; then :
1409cd0b 21724
5213506e 21725$as_echo "#define HAVE_CSINH 1" >>confdefs.h
1409cd0b
FXC
21726
21727fi
21728
5213506e
RW
21729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl in -lm" >&5
21730$as_echo_n "checking for csinhl in -lm... " >&6; }
21731if test "${ac_cv_lib_m_csinhl+set}" = set; then :
21732 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21733else
21734 ac_check_lib_save_LIBS=$LIBS
21735LIBS="-lm $LIBS"
21736if test x$gcc_no_link = xyes; then
5213506e 21737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21738fi
5213506e 21739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21740/* end confdefs.h. */
21741
5213506e
RW
21742/* Override any GCC internal prototype to avoid an error.
21743 Use char because int might match the return type of a GCC
21744 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21745#ifdef __cplusplus
21746extern "C"
21747#endif
1409cd0b
FXC
21748char csinhl ();
21749int
21750main ()
21751{
5213506e 21752return csinhl ();
1409cd0b
FXC
21753 ;
21754 return 0;
21755}
21756_ACEOF
5213506e 21757if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21758 ac_cv_lib_m_csinhl=yes
21759else
5213506e 21760 ac_cv_lib_m_csinhl=no
1409cd0b 21761fi
5213506e
RW
21762rm -f core conftest.err conftest.$ac_objext \
21763 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21764LIBS=$ac_check_lib_save_LIBS
21765fi
5213506e
RW
21766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhl" >&5
21767$as_echo "$ac_cv_lib_m_csinhl" >&6; }
21768if test "x$ac_cv_lib_m_csinhl" = x""yes; then :
1409cd0b 21769
5213506e 21770$as_echo "#define HAVE_CSINHL 1" >>confdefs.h
1409cd0b
FXC
21771
21772fi
21773
5213506e
RW
21774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf in -lm" >&5
21775$as_echo_n "checking for sqrtf in -lm... " >&6; }
21776if test "${ac_cv_lib_m_sqrtf+set}" = set; then :
21777 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21778else
21779 ac_check_lib_save_LIBS=$LIBS
21780LIBS="-lm $LIBS"
21781if test x$gcc_no_link = xyes; then
5213506e 21782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21783fi
5213506e 21784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21785/* end confdefs.h. */
21786
5213506e
RW
21787/* Override any GCC internal prototype to avoid an error.
21788 Use char because int might match the return type of a GCC
21789 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21790#ifdef __cplusplus
21791extern "C"
21792#endif
1409cd0b
FXC
21793char sqrtf ();
21794int
21795main ()
21796{
5213506e 21797return sqrtf ();
1409cd0b
FXC
21798 ;
21799 return 0;
21800}
21801_ACEOF
5213506e 21802if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21803 ac_cv_lib_m_sqrtf=yes
21804else
5213506e 21805 ac_cv_lib_m_sqrtf=no
1409cd0b 21806fi
5213506e
RW
21807rm -f core conftest.err conftest.$ac_objext \
21808 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21809LIBS=$ac_check_lib_save_LIBS
21810fi
5213506e
RW
21811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtf" >&5
21812$as_echo "$ac_cv_lib_m_sqrtf" >&6; }
21813if test "x$ac_cv_lib_m_sqrtf" = x""yes; then :
1409cd0b 21814
5213506e 21815$as_echo "#define HAVE_SQRTF 1" >>confdefs.h
1409cd0b
FXC
21816
21817fi
21818
5213506e
RW
21819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
21820$as_echo_n "checking for sqrt in -lm... " >&6; }
21821if test "${ac_cv_lib_m_sqrt+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21823else
21824 ac_check_lib_save_LIBS=$LIBS
21825LIBS="-lm $LIBS"
21826if test x$gcc_no_link = xyes; then
5213506e 21827 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21828fi
5213506e 21829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21830/* end confdefs.h. */
21831
5213506e
RW
21832/* Override any GCC internal prototype to avoid an error.
21833 Use char because int might match the return type of a GCC
21834 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21835#ifdef __cplusplus
21836extern "C"
21837#endif
1409cd0b
FXC
21838char sqrt ();
21839int
21840main ()
21841{
5213506e 21842return sqrt ();
1409cd0b
FXC
21843 ;
21844 return 0;
21845}
21846_ACEOF
5213506e 21847if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21848 ac_cv_lib_m_sqrt=yes
21849else
5213506e 21850 ac_cv_lib_m_sqrt=no
1409cd0b 21851fi
5213506e
RW
21852rm -f core conftest.err conftest.$ac_objext \
21853 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21854LIBS=$ac_check_lib_save_LIBS
21855fi
5213506e
RW
21856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
21857$as_echo "$ac_cv_lib_m_sqrt" >&6; }
21858if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
1409cd0b 21859
5213506e 21860$as_echo "#define HAVE_SQRT 1" >>confdefs.h
1409cd0b
FXC
21861
21862fi
21863
5213506e
RW
21864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
21865$as_echo_n "checking for sqrtl in -lm... " >&6; }
21866if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
21867 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21868else
21869 ac_check_lib_save_LIBS=$LIBS
21870LIBS="-lm $LIBS"
21871if test x$gcc_no_link = xyes; then
5213506e 21872 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21873fi
5213506e 21874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21875/* end confdefs.h. */
21876
5213506e
RW
21877/* Override any GCC internal prototype to avoid an error.
21878 Use char because int might match the return type of a GCC
21879 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21880#ifdef __cplusplus
21881extern "C"
21882#endif
1409cd0b
FXC
21883char sqrtl ();
21884int
21885main ()
21886{
5213506e 21887return sqrtl ();
1409cd0b
FXC
21888 ;
21889 return 0;
21890}
21891_ACEOF
5213506e 21892if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21893 ac_cv_lib_m_sqrtl=yes
21894else
5213506e 21895 ac_cv_lib_m_sqrtl=no
1409cd0b 21896fi
5213506e
RW
21897rm -f core conftest.err conftest.$ac_objext \
21898 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21899LIBS=$ac_check_lib_save_LIBS
21900fi
5213506e
RW
21901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
21902$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
21903if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
1409cd0b 21904
5213506e 21905$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
1409cd0b
FXC
21906
21907fi
21908
5213506e
RW
21909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf in -lm" >&5
21910$as_echo_n "checking for csqrtf in -lm... " >&6; }
21911if test "${ac_cv_lib_m_csqrtf+set}" = set; then :
21912 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21913else
21914 ac_check_lib_save_LIBS=$LIBS
21915LIBS="-lm $LIBS"
21916if test x$gcc_no_link = xyes; then
5213506e 21917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21918fi
5213506e 21919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21920/* end confdefs.h. */
21921
5213506e
RW
21922/* Override any GCC internal prototype to avoid an error.
21923 Use char because int might match the return type of a GCC
21924 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21925#ifdef __cplusplus
21926extern "C"
21927#endif
1409cd0b
FXC
21928char csqrtf ();
21929int
21930main ()
21931{
5213506e 21932return csqrtf ();
1409cd0b
FXC
21933 ;
21934 return 0;
21935}
21936_ACEOF
5213506e 21937if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21938 ac_cv_lib_m_csqrtf=yes
21939else
5213506e 21940 ac_cv_lib_m_csqrtf=no
1409cd0b 21941fi
5213506e
RW
21942rm -f core conftest.err conftest.$ac_objext \
21943 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21944LIBS=$ac_check_lib_save_LIBS
21945fi
5213506e
RW
21946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtf" >&5
21947$as_echo "$ac_cv_lib_m_csqrtf" >&6; }
21948if test "x$ac_cv_lib_m_csqrtf" = x""yes; then :
1409cd0b 21949
5213506e 21950$as_echo "#define HAVE_CSQRTF 1" >>confdefs.h
1409cd0b
FXC
21951
21952fi
21953
5213506e
RW
21954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt in -lm" >&5
21955$as_echo_n "checking for csqrt in -lm... " >&6; }
21956if test "${ac_cv_lib_m_csqrt+set}" = set; then :
21957 $as_echo_n "(cached) " >&6
1409cd0b
FXC
21958else
21959 ac_check_lib_save_LIBS=$LIBS
21960LIBS="-lm $LIBS"
21961if test x$gcc_no_link = xyes; then
5213506e 21962 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 21963fi
5213506e 21964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
21965/* end confdefs.h. */
21966
5213506e
RW
21967/* Override any GCC internal prototype to avoid an error.
21968 Use char because int might match the return type of a GCC
21969 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
21970#ifdef __cplusplus
21971extern "C"
21972#endif
1409cd0b
FXC
21973char csqrt ();
21974int
21975main ()
21976{
5213506e 21977return csqrt ();
1409cd0b
FXC
21978 ;
21979 return 0;
21980}
21981_ACEOF
5213506e 21982if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
21983 ac_cv_lib_m_csqrt=yes
21984else
5213506e 21985 ac_cv_lib_m_csqrt=no
1409cd0b 21986fi
5213506e
RW
21987rm -f core conftest.err conftest.$ac_objext \
21988 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
21989LIBS=$ac_check_lib_save_LIBS
21990fi
5213506e
RW
21991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrt" >&5
21992$as_echo "$ac_cv_lib_m_csqrt" >&6; }
21993if test "x$ac_cv_lib_m_csqrt" = x""yes; then :
1409cd0b 21994
5213506e 21995$as_echo "#define HAVE_CSQRT 1" >>confdefs.h
1409cd0b
FXC
21996
21997fi
21998
5213506e
RW
21999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl in -lm" >&5
22000$as_echo_n "checking for csqrtl in -lm... " >&6; }
22001if test "${ac_cv_lib_m_csqrtl+set}" = set; then :
22002 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22003else
22004 ac_check_lib_save_LIBS=$LIBS
22005LIBS="-lm $LIBS"
22006if test x$gcc_no_link = xyes; then
5213506e 22007 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22008fi
5213506e 22009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22010/* end confdefs.h. */
22011
5213506e
RW
22012/* Override any GCC internal prototype to avoid an error.
22013 Use char because int might match the return type of a GCC
22014 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22015#ifdef __cplusplus
22016extern "C"
22017#endif
1409cd0b
FXC
22018char csqrtl ();
22019int
22020main ()
22021{
5213506e 22022return csqrtl ();
1409cd0b
FXC
22023 ;
22024 return 0;
22025}
22026_ACEOF
5213506e 22027if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22028 ac_cv_lib_m_csqrtl=yes
22029else
5213506e 22030 ac_cv_lib_m_csqrtl=no
1409cd0b 22031fi
5213506e
RW
22032rm -f core conftest.err conftest.$ac_objext \
22033 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22034LIBS=$ac_check_lib_save_LIBS
22035fi
5213506e
RW
22036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtl" >&5
22037$as_echo "$ac_cv_lib_m_csqrtl" >&6; }
22038if test "x$ac_cv_lib_m_csqrtl" = x""yes; then :
1409cd0b 22039
5213506e 22040$as_echo "#define HAVE_CSQRTL 1" >>confdefs.h
1409cd0b
FXC
22041
22042fi
22043
5213506e
RW
22044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf in -lm" >&5
22045$as_echo_n "checking for tanf in -lm... " >&6; }
22046if test "${ac_cv_lib_m_tanf+set}" = set; then :
22047 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22048else
22049 ac_check_lib_save_LIBS=$LIBS
22050LIBS="-lm $LIBS"
22051if test x$gcc_no_link = xyes; then
5213506e 22052 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22053fi
5213506e 22054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22055/* end confdefs.h. */
22056
5213506e
RW
22057/* Override any GCC internal prototype to avoid an error.
22058 Use char because int might match the return type of a GCC
22059 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22060#ifdef __cplusplus
22061extern "C"
22062#endif
1409cd0b
FXC
22063char tanf ();
22064int
22065main ()
22066{
5213506e 22067return tanf ();
1409cd0b
FXC
22068 ;
22069 return 0;
22070}
22071_ACEOF
5213506e 22072if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22073 ac_cv_lib_m_tanf=yes
22074else
5213506e 22075 ac_cv_lib_m_tanf=no
1409cd0b 22076fi
5213506e
RW
22077rm -f core conftest.err conftest.$ac_objext \
22078 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22079LIBS=$ac_check_lib_save_LIBS
22080fi
5213506e
RW
22081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanf" >&5
22082$as_echo "$ac_cv_lib_m_tanf" >&6; }
22083if test "x$ac_cv_lib_m_tanf" = x""yes; then :
1409cd0b 22084
5213506e 22085$as_echo "#define HAVE_TANF 1" >>confdefs.h
1409cd0b
FXC
22086
22087fi
22088
5213506e
RW
22089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan in -lm" >&5
22090$as_echo_n "checking for tan in -lm... " >&6; }
22091if test "${ac_cv_lib_m_tan+set}" = set; then :
22092 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22093else
22094 ac_check_lib_save_LIBS=$LIBS
22095LIBS="-lm $LIBS"
22096if test x$gcc_no_link = xyes; then
5213506e 22097 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22098fi
5213506e 22099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22100/* end confdefs.h. */
22101
5213506e
RW
22102/* Override any GCC internal prototype to avoid an error.
22103 Use char because int might match the return type of a GCC
22104 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22105#ifdef __cplusplus
22106extern "C"
22107#endif
1409cd0b
FXC
22108char tan ();
22109int
22110main ()
22111{
5213506e 22112return tan ();
1409cd0b
FXC
22113 ;
22114 return 0;
22115}
22116_ACEOF
5213506e 22117if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22118 ac_cv_lib_m_tan=yes
22119else
5213506e 22120 ac_cv_lib_m_tan=no
1409cd0b 22121fi
5213506e
RW
22122rm -f core conftest.err conftest.$ac_objext \
22123 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22124LIBS=$ac_check_lib_save_LIBS
22125fi
5213506e
RW
22126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tan" >&5
22127$as_echo "$ac_cv_lib_m_tan" >&6; }
22128if test "x$ac_cv_lib_m_tan" = x""yes; then :
1409cd0b 22129
5213506e 22130$as_echo "#define HAVE_TAN 1" >>confdefs.h
1409cd0b
FXC
22131
22132fi
22133
5213506e
RW
22134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl in -lm" >&5
22135$as_echo_n "checking for tanl in -lm... " >&6; }
22136if test "${ac_cv_lib_m_tanl+set}" = set; then :
22137 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22138else
22139 ac_check_lib_save_LIBS=$LIBS
22140LIBS="-lm $LIBS"
22141if test x$gcc_no_link = xyes; then
5213506e 22142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22143fi
5213506e 22144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22145/* end confdefs.h. */
22146
5213506e
RW
22147/* Override any GCC internal prototype to avoid an error.
22148 Use char because int might match the return type of a GCC
22149 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22150#ifdef __cplusplus
22151extern "C"
22152#endif
1409cd0b
FXC
22153char tanl ();
22154int
22155main ()
22156{
5213506e 22157return tanl ();
1409cd0b
FXC
22158 ;
22159 return 0;
22160}
22161_ACEOF
5213506e 22162if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22163 ac_cv_lib_m_tanl=yes
22164else
5213506e 22165 ac_cv_lib_m_tanl=no
1409cd0b 22166fi
5213506e
RW
22167rm -f core conftest.err conftest.$ac_objext \
22168 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22169LIBS=$ac_check_lib_save_LIBS
22170fi
5213506e
RW
22171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanl" >&5
22172$as_echo "$ac_cv_lib_m_tanl" >&6; }
22173if test "x$ac_cv_lib_m_tanl" = x""yes; then :
1409cd0b 22174
5213506e 22175$as_echo "#define HAVE_TANL 1" >>confdefs.h
1409cd0b
FXC
22176
22177fi
22178
5213506e
RW
22179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf in -lm" >&5
22180$as_echo_n "checking for ctanf in -lm... " >&6; }
22181if test "${ac_cv_lib_m_ctanf+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22183else
22184 ac_check_lib_save_LIBS=$LIBS
22185LIBS="-lm $LIBS"
22186if test x$gcc_no_link = xyes; then
5213506e 22187 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22188fi
5213506e 22189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22190/* end confdefs.h. */
22191
5213506e
RW
22192/* Override any GCC internal prototype to avoid an error.
22193 Use char because int might match the return type of a GCC
22194 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22195#ifdef __cplusplus
22196extern "C"
22197#endif
1409cd0b
FXC
22198char ctanf ();
22199int
22200main ()
22201{
5213506e 22202return ctanf ();
1409cd0b
FXC
22203 ;
22204 return 0;
22205}
22206_ACEOF
5213506e 22207if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22208 ac_cv_lib_m_ctanf=yes
22209else
5213506e 22210 ac_cv_lib_m_ctanf=no
1409cd0b 22211fi
5213506e
RW
22212rm -f core conftest.err conftest.$ac_objext \
22213 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22214LIBS=$ac_check_lib_save_LIBS
22215fi
5213506e
RW
22216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanf" >&5
22217$as_echo "$ac_cv_lib_m_ctanf" >&6; }
22218if test "x$ac_cv_lib_m_ctanf" = x""yes; then :
1409cd0b 22219
5213506e 22220$as_echo "#define HAVE_CTANF 1" >>confdefs.h
1409cd0b
FXC
22221
22222fi
22223
5213506e
RW
22224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan in -lm" >&5
22225$as_echo_n "checking for ctan in -lm... " >&6; }
22226if test "${ac_cv_lib_m_ctan+set}" = set; then :
22227 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22228else
22229 ac_check_lib_save_LIBS=$LIBS
22230LIBS="-lm $LIBS"
22231if test x$gcc_no_link = xyes; then
5213506e 22232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22233fi
5213506e 22234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22235/* end confdefs.h. */
22236
5213506e
RW
22237/* Override any GCC internal prototype to avoid an error.
22238 Use char because int might match the return type of a GCC
22239 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22240#ifdef __cplusplus
22241extern "C"
22242#endif
1409cd0b
FXC
22243char ctan ();
22244int
22245main ()
22246{
5213506e 22247return ctan ();
1409cd0b
FXC
22248 ;
22249 return 0;
22250}
22251_ACEOF
5213506e 22252if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22253 ac_cv_lib_m_ctan=yes
22254else
5213506e 22255 ac_cv_lib_m_ctan=no
1409cd0b 22256fi
5213506e
RW
22257rm -f core conftest.err conftest.$ac_objext \
22258 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22259LIBS=$ac_check_lib_save_LIBS
22260fi
5213506e
RW
22261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctan" >&5
22262$as_echo "$ac_cv_lib_m_ctan" >&6; }
22263if test "x$ac_cv_lib_m_ctan" = x""yes; then :
1409cd0b 22264
5213506e 22265$as_echo "#define HAVE_CTAN 1" >>confdefs.h
1409cd0b
FXC
22266
22267fi
22268
5213506e
RW
22269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl in -lm" >&5
22270$as_echo_n "checking for ctanl in -lm... " >&6; }
22271if test "${ac_cv_lib_m_ctanl+set}" = set; then :
22272 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22273else
22274 ac_check_lib_save_LIBS=$LIBS
22275LIBS="-lm $LIBS"
22276if test x$gcc_no_link = xyes; then
5213506e 22277 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22278fi
5213506e 22279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22280/* end confdefs.h. */
22281
5213506e
RW
22282/* Override any GCC internal prototype to avoid an error.
22283 Use char because int might match the return type of a GCC
22284 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22285#ifdef __cplusplus
22286extern "C"
22287#endif
1409cd0b
FXC
22288char ctanl ();
22289int
22290main ()
22291{
5213506e 22292return ctanl ();
1409cd0b
FXC
22293 ;
22294 return 0;
22295}
22296_ACEOF
5213506e 22297if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22298 ac_cv_lib_m_ctanl=yes
22299else
5213506e 22300 ac_cv_lib_m_ctanl=no
1409cd0b 22301fi
5213506e
RW
22302rm -f core conftest.err conftest.$ac_objext \
22303 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22304LIBS=$ac_check_lib_save_LIBS
22305fi
5213506e
RW
22306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanl" >&5
22307$as_echo "$ac_cv_lib_m_ctanl" >&6; }
22308if test "x$ac_cv_lib_m_ctanl" = x""yes; then :
1409cd0b 22309
5213506e 22310$as_echo "#define HAVE_CTANL 1" >>confdefs.h
1409cd0b
FXC
22311
22312fi
22313
5213506e
RW
22314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf in -lm" >&5
22315$as_echo_n "checking for tanhf in -lm... " >&6; }
22316if test "${ac_cv_lib_m_tanhf+set}" = set; then :
22317 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22318else
22319 ac_check_lib_save_LIBS=$LIBS
22320LIBS="-lm $LIBS"
22321if test x$gcc_no_link = xyes; then
5213506e 22322 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22323fi
5213506e 22324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22325/* end confdefs.h. */
22326
5213506e
RW
22327/* Override any GCC internal prototype to avoid an error.
22328 Use char because int might match the return type of a GCC
22329 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22330#ifdef __cplusplus
22331extern "C"
22332#endif
1409cd0b
FXC
22333char tanhf ();
22334int
22335main ()
22336{
5213506e 22337return tanhf ();
1409cd0b
FXC
22338 ;
22339 return 0;
22340}
22341_ACEOF
5213506e 22342if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22343 ac_cv_lib_m_tanhf=yes
22344else
5213506e 22345 ac_cv_lib_m_tanhf=no
1409cd0b 22346fi
5213506e
RW
22347rm -f core conftest.err conftest.$ac_objext \
22348 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22349LIBS=$ac_check_lib_save_LIBS
22350fi
5213506e
RW
22351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhf" >&5
22352$as_echo "$ac_cv_lib_m_tanhf" >&6; }
22353if test "x$ac_cv_lib_m_tanhf" = x""yes; then :
1409cd0b 22354
5213506e 22355$as_echo "#define HAVE_TANHF 1" >>confdefs.h
1409cd0b
FXC
22356
22357fi
22358
5213506e
RW
22359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh in -lm" >&5
22360$as_echo_n "checking for tanh in -lm... " >&6; }
22361if test "${ac_cv_lib_m_tanh+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22363else
22364 ac_check_lib_save_LIBS=$LIBS
22365LIBS="-lm $LIBS"
22366if test x$gcc_no_link = xyes; then
5213506e 22367 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22368fi
5213506e 22369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22370/* end confdefs.h. */
22371
5213506e
RW
22372/* Override any GCC internal prototype to avoid an error.
22373 Use char because int might match the return type of a GCC
22374 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22375#ifdef __cplusplus
22376extern "C"
22377#endif
1409cd0b
FXC
22378char tanh ();
22379int
22380main ()
22381{
5213506e 22382return tanh ();
1409cd0b
FXC
22383 ;
22384 return 0;
22385}
22386_ACEOF
5213506e 22387if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22388 ac_cv_lib_m_tanh=yes
22389else
5213506e 22390 ac_cv_lib_m_tanh=no
1409cd0b 22391fi
5213506e
RW
22392rm -f core conftest.err conftest.$ac_objext \
22393 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22394LIBS=$ac_check_lib_save_LIBS
22395fi
5213506e
RW
22396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanh" >&5
22397$as_echo "$ac_cv_lib_m_tanh" >&6; }
22398if test "x$ac_cv_lib_m_tanh" = x""yes; then :
1409cd0b 22399
5213506e 22400$as_echo "#define HAVE_TANH 1" >>confdefs.h
1409cd0b
FXC
22401
22402fi
22403
5213506e
RW
22404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl in -lm" >&5
22405$as_echo_n "checking for tanhl in -lm... " >&6; }
22406if test "${ac_cv_lib_m_tanhl+set}" = set; then :
22407 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22408else
22409 ac_check_lib_save_LIBS=$LIBS
22410LIBS="-lm $LIBS"
22411if test x$gcc_no_link = xyes; then
5213506e 22412 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22413fi
5213506e 22414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22415/* end confdefs.h. */
22416
5213506e
RW
22417/* Override any GCC internal prototype to avoid an error.
22418 Use char because int might match the return type of a GCC
22419 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22420#ifdef __cplusplus
22421extern "C"
22422#endif
1409cd0b
FXC
22423char tanhl ();
22424int
22425main ()
22426{
5213506e 22427return tanhl ();
1409cd0b
FXC
22428 ;
22429 return 0;
22430}
22431_ACEOF
5213506e 22432if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22433 ac_cv_lib_m_tanhl=yes
22434else
5213506e 22435 ac_cv_lib_m_tanhl=no
1409cd0b 22436fi
5213506e
RW
22437rm -f core conftest.err conftest.$ac_objext \
22438 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22439LIBS=$ac_check_lib_save_LIBS
22440fi
5213506e
RW
22441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhl" >&5
22442$as_echo "$ac_cv_lib_m_tanhl" >&6; }
22443if test "x$ac_cv_lib_m_tanhl" = x""yes; then :
1409cd0b 22444
5213506e 22445$as_echo "#define HAVE_TANHL 1" >>confdefs.h
1409cd0b
FXC
22446
22447fi
22448
5213506e
RW
22449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf in -lm" >&5
22450$as_echo_n "checking for ctanhf in -lm... " >&6; }
22451if test "${ac_cv_lib_m_ctanhf+set}" = set; then :
22452 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22453else
22454 ac_check_lib_save_LIBS=$LIBS
22455LIBS="-lm $LIBS"
22456if test x$gcc_no_link = xyes; then
5213506e 22457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22458fi
5213506e 22459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22460/* end confdefs.h. */
22461
5213506e
RW
22462/* Override any GCC internal prototype to avoid an error.
22463 Use char because int might match the return type of a GCC
22464 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22465#ifdef __cplusplus
22466extern "C"
22467#endif
1409cd0b
FXC
22468char ctanhf ();
22469int
22470main ()
22471{
5213506e 22472return ctanhf ();
1409cd0b
FXC
22473 ;
22474 return 0;
22475}
22476_ACEOF
5213506e 22477if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22478 ac_cv_lib_m_ctanhf=yes
22479else
5213506e 22480 ac_cv_lib_m_ctanhf=no
1409cd0b 22481fi
5213506e
RW
22482rm -f core conftest.err conftest.$ac_objext \
22483 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22484LIBS=$ac_check_lib_save_LIBS
22485fi
5213506e
RW
22486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhf" >&5
22487$as_echo "$ac_cv_lib_m_ctanhf" >&6; }
22488if test "x$ac_cv_lib_m_ctanhf" = x""yes; then :
1409cd0b 22489
5213506e 22490$as_echo "#define HAVE_CTANHF 1" >>confdefs.h
1409cd0b
FXC
22491
22492fi
22493
5213506e
RW
22494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh in -lm" >&5
22495$as_echo_n "checking for ctanh in -lm... " >&6; }
22496if test "${ac_cv_lib_m_ctanh+set}" = set; then :
22497 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22498else
22499 ac_check_lib_save_LIBS=$LIBS
22500LIBS="-lm $LIBS"
22501if test x$gcc_no_link = xyes; then
5213506e 22502 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22503fi
5213506e 22504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22505/* end confdefs.h. */
22506
5213506e
RW
22507/* Override any GCC internal prototype to avoid an error.
22508 Use char because int might match the return type of a GCC
22509 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22510#ifdef __cplusplus
22511extern "C"
22512#endif
1409cd0b
FXC
22513char ctanh ();
22514int
22515main ()
22516{
5213506e 22517return ctanh ();
1409cd0b 22518 ;
5213506e
RW
22519 return 0;
22520}
22521_ACEOF
22522if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22523 ac_cv_lib_m_ctanh=yes
22524else
5213506e 22525 ac_cv_lib_m_ctanh=no
1409cd0b 22526fi
5213506e
RW
22527rm -f core conftest.err conftest.$ac_objext \
22528 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22529LIBS=$ac_check_lib_save_LIBS
22530fi
5213506e
RW
22531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanh" >&5
22532$as_echo "$ac_cv_lib_m_ctanh" >&6; }
22533if test "x$ac_cv_lib_m_ctanh" = x""yes; then :
1409cd0b 22534
5213506e 22535$as_echo "#define HAVE_CTANH 1" >>confdefs.h
1409cd0b
FXC
22536
22537fi
22538
5213506e
RW
22539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl in -lm" >&5
22540$as_echo_n "checking for ctanhl in -lm... " >&6; }
22541if test "${ac_cv_lib_m_ctanhl+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22543else
22544 ac_check_lib_save_LIBS=$LIBS
22545LIBS="-lm $LIBS"
22546if test x$gcc_no_link = xyes; then
5213506e 22547 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22548fi
5213506e 22549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22550/* end confdefs.h. */
22551
5213506e
RW
22552/* Override any GCC internal prototype to avoid an error.
22553 Use char because int might match the return type of a GCC
22554 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22555#ifdef __cplusplus
22556extern "C"
22557#endif
1409cd0b
FXC
22558char ctanhl ();
22559int
22560main ()
22561{
5213506e 22562return ctanhl ();
1409cd0b
FXC
22563 ;
22564 return 0;
22565}
22566_ACEOF
5213506e 22567if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22568 ac_cv_lib_m_ctanhl=yes
22569else
5213506e 22570 ac_cv_lib_m_ctanhl=no
1409cd0b 22571fi
5213506e
RW
22572rm -f core conftest.err conftest.$ac_objext \
22573 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22574LIBS=$ac_check_lib_save_LIBS
22575fi
5213506e
RW
22576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhl" >&5
22577$as_echo "$ac_cv_lib_m_ctanhl" >&6; }
22578if test "x$ac_cv_lib_m_ctanhl" = x""yes; then :
1409cd0b 22579
5213506e 22580$as_echo "#define HAVE_CTANHL 1" >>confdefs.h
69a2d125
EB
22581
22582fi
22583
5213506e
RW
22584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf in -lm" >&5
22585$as_echo_n "checking for truncf in -lm... " >&6; }
22586if test "${ac_cv_lib_m_truncf+set}" = set; then :
22587 $as_echo_n "(cached) " >&6
69a2d125
EB
22588else
22589 ac_check_lib_save_LIBS=$LIBS
22590LIBS="-lm $LIBS"
f02d008e 22591if test x$gcc_no_link = xyes; then
5213506e 22592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 22593fi
5213506e 22594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69a2d125
EB
22595/* end confdefs.h. */
22596
5213506e
RW
22597/* Override any GCC internal prototype to avoid an error.
22598 Use char because int might match the return type of a GCC
22599 builtin and then its argument prototype would still apply. */
69a2d125
EB
22600#ifdef __cplusplus
22601extern "C"
22602#endif
1409cd0b
FXC
22603char truncf ();
22604int
22605main ()
22606{
5213506e 22607return truncf ();
1409cd0b
FXC
22608 ;
22609 return 0;
22610}
22611_ACEOF
5213506e 22612if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22613 ac_cv_lib_m_truncf=yes
22614else
5213506e 22615 ac_cv_lib_m_truncf=no
1409cd0b 22616fi
5213506e
RW
22617rm -f core conftest.err conftest.$ac_objext \
22618 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22619LIBS=$ac_check_lib_save_LIBS
22620fi
5213506e
RW
22621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncf" >&5
22622$as_echo "$ac_cv_lib_m_truncf" >&6; }
22623if test "x$ac_cv_lib_m_truncf" = x""yes; then :
1409cd0b 22624
5213506e 22625$as_echo "#define HAVE_TRUNCF 1" >>confdefs.h
1409cd0b
FXC
22626
22627fi
22628
5213506e
RW
22629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc in -lm" >&5
22630$as_echo_n "checking for trunc in -lm... " >&6; }
22631if test "${ac_cv_lib_m_trunc+set}" = set; then :
22632 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22633else
22634 ac_check_lib_save_LIBS=$LIBS
22635LIBS="-lm $LIBS"
22636if test x$gcc_no_link = xyes; then
5213506e 22637 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22638fi
5213506e 22639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22640/* end confdefs.h. */
22641
5213506e
RW
22642/* Override any GCC internal prototype to avoid an error.
22643 Use char because int might match the return type of a GCC
22644 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22645#ifdef __cplusplus
22646extern "C"
22647#endif
1409cd0b
FXC
22648char trunc ();
22649int
22650main ()
22651{
5213506e 22652return trunc ();
1409cd0b
FXC
22653 ;
22654 return 0;
22655}
22656_ACEOF
5213506e 22657if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22658 ac_cv_lib_m_trunc=yes
22659else
5213506e 22660 ac_cv_lib_m_trunc=no
1409cd0b 22661fi
5213506e
RW
22662rm -f core conftest.err conftest.$ac_objext \
22663 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22664LIBS=$ac_check_lib_save_LIBS
22665fi
5213506e
RW
22666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_trunc" >&5
22667$as_echo "$ac_cv_lib_m_trunc" >&6; }
22668if test "x$ac_cv_lib_m_trunc" = x""yes; then :
1409cd0b 22669
5213506e 22670$as_echo "#define HAVE_TRUNC 1" >>confdefs.h
1409cd0b
FXC
22671
22672fi
22673
5213506e
RW
22674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl in -lm" >&5
22675$as_echo_n "checking for truncl in -lm... " >&6; }
22676if test "${ac_cv_lib_m_truncl+set}" = set; then :
22677 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22678else
22679 ac_check_lib_save_LIBS=$LIBS
22680LIBS="-lm $LIBS"
22681if test x$gcc_no_link = xyes; then
5213506e 22682 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22683fi
5213506e 22684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22685/* end confdefs.h. */
22686
5213506e
RW
22687/* Override any GCC internal prototype to avoid an error.
22688 Use char because int might match the return type of a GCC
22689 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22690#ifdef __cplusplus
22691extern "C"
22692#endif
1409cd0b
FXC
22693char truncl ();
22694int
22695main ()
22696{
5213506e 22697return truncl ();
1409cd0b
FXC
22698 ;
22699 return 0;
22700}
22701_ACEOF
5213506e 22702if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22703 ac_cv_lib_m_truncl=yes
22704else
5213506e 22705 ac_cv_lib_m_truncl=no
1409cd0b 22706fi
5213506e
RW
22707rm -f core conftest.err conftest.$ac_objext \
22708 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22709LIBS=$ac_check_lib_save_LIBS
22710fi
5213506e
RW
22711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncl" >&5
22712$as_echo "$ac_cv_lib_m_truncl" >&6; }
22713if test "x$ac_cv_lib_m_truncl" = x""yes; then :
1409cd0b 22714
5213506e 22715$as_echo "#define HAVE_TRUNCL 1" >>confdefs.h
1409cd0b
FXC
22716
22717fi
22718
5213506e
RW
22719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff in -lm" >&5
22720$as_echo_n "checking for erff in -lm... " >&6; }
22721if test "${ac_cv_lib_m_erff+set}" = set; then :
22722 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22723else
22724 ac_check_lib_save_LIBS=$LIBS
22725LIBS="-lm $LIBS"
22726if test x$gcc_no_link = xyes; then
5213506e 22727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22728fi
5213506e 22729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22730/* end confdefs.h. */
22731
5213506e
RW
22732/* Override any GCC internal prototype to avoid an error.
22733 Use char because int might match the return type of a GCC
22734 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22735#ifdef __cplusplus
22736extern "C"
22737#endif
1409cd0b
FXC
22738char erff ();
22739int
22740main ()
22741{
5213506e 22742return erff ();
1409cd0b
FXC
22743 ;
22744 return 0;
22745}
22746_ACEOF
5213506e 22747if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22748 ac_cv_lib_m_erff=yes
22749else
5213506e 22750 ac_cv_lib_m_erff=no
1409cd0b 22751fi
5213506e
RW
22752rm -f core conftest.err conftest.$ac_objext \
22753 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22754LIBS=$ac_check_lib_save_LIBS
22755fi
5213506e
RW
22756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erff" >&5
22757$as_echo "$ac_cv_lib_m_erff" >&6; }
22758if test "x$ac_cv_lib_m_erff" = x""yes; then :
1409cd0b 22759
5213506e 22760$as_echo "#define HAVE_ERFF 1" >>confdefs.h
1409cd0b
FXC
22761
22762fi
22763
5213506e
RW
22764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf in -lm" >&5
22765$as_echo_n "checking for erf in -lm... " >&6; }
22766if test "${ac_cv_lib_m_erf+set}" = set; then :
22767 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22768else
22769 ac_check_lib_save_LIBS=$LIBS
22770LIBS="-lm $LIBS"
22771if test x$gcc_no_link = xyes; then
5213506e 22772 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22773fi
5213506e 22774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22775/* end confdefs.h. */
22776
5213506e
RW
22777/* Override any GCC internal prototype to avoid an error.
22778 Use char because int might match the return type of a GCC
22779 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22780#ifdef __cplusplus
22781extern "C"
22782#endif
1409cd0b
FXC
22783char erf ();
22784int
22785main ()
22786{
5213506e 22787return erf ();
1409cd0b
FXC
22788 ;
22789 return 0;
22790}
22791_ACEOF
5213506e 22792if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22793 ac_cv_lib_m_erf=yes
22794else
5213506e 22795 ac_cv_lib_m_erf=no
1409cd0b 22796fi
5213506e
RW
22797rm -f core conftest.err conftest.$ac_objext \
22798 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22799LIBS=$ac_check_lib_save_LIBS
22800fi
5213506e
RW
22801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erf" >&5
22802$as_echo "$ac_cv_lib_m_erf" >&6; }
22803if test "x$ac_cv_lib_m_erf" = x""yes; then :
1409cd0b 22804
5213506e 22805$as_echo "#define HAVE_ERF 1" >>confdefs.h
1409cd0b
FXC
22806
22807fi
22808
5213506e
RW
22809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl in -lm" >&5
22810$as_echo_n "checking for erfl in -lm... " >&6; }
22811if test "${ac_cv_lib_m_erfl+set}" = set; then :
22812 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22813else
22814 ac_check_lib_save_LIBS=$LIBS
22815LIBS="-lm $LIBS"
22816if test x$gcc_no_link = xyes; then
5213506e 22817 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22818fi
5213506e 22819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22820/* end confdefs.h. */
22821
5213506e
RW
22822/* Override any GCC internal prototype to avoid an error.
22823 Use char because int might match the return type of a GCC
22824 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22825#ifdef __cplusplus
22826extern "C"
22827#endif
1409cd0b
FXC
22828char erfl ();
22829int
22830main ()
22831{
5213506e 22832return erfl ();
1409cd0b
FXC
22833 ;
22834 return 0;
22835}
22836_ACEOF
5213506e 22837if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22838 ac_cv_lib_m_erfl=yes
22839else
5213506e 22840 ac_cv_lib_m_erfl=no
1409cd0b 22841fi
5213506e
RW
22842rm -f core conftest.err conftest.$ac_objext \
22843 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22844LIBS=$ac_check_lib_save_LIBS
22845fi
5213506e
RW
22846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfl" >&5
22847$as_echo "$ac_cv_lib_m_erfl" >&6; }
22848if test "x$ac_cv_lib_m_erfl" = x""yes; then :
1409cd0b 22849
5213506e 22850$as_echo "#define HAVE_ERFL 1" >>confdefs.h
1409cd0b
FXC
22851
22852fi
22853
5213506e
RW
22854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf in -lm" >&5
22855$as_echo_n "checking for erfcf in -lm... " >&6; }
22856if test "${ac_cv_lib_m_erfcf+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22858else
22859 ac_check_lib_save_LIBS=$LIBS
22860LIBS="-lm $LIBS"
22861if test x$gcc_no_link = xyes; then
5213506e 22862 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22863fi
5213506e 22864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22865/* end confdefs.h. */
22866
5213506e
RW
22867/* Override any GCC internal prototype to avoid an error.
22868 Use char because int might match the return type of a GCC
22869 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22870#ifdef __cplusplus
22871extern "C"
22872#endif
1409cd0b
FXC
22873char erfcf ();
22874int
22875main ()
22876{
5213506e 22877return erfcf ();
1409cd0b
FXC
22878 ;
22879 return 0;
22880}
22881_ACEOF
5213506e 22882if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
22883 ac_cv_lib_m_erfcf=yes
22884else
5213506e 22885 ac_cv_lib_m_erfcf=no
1409cd0b 22886fi
5213506e
RW
22887rm -f core conftest.err conftest.$ac_objext \
22888 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
22889LIBS=$ac_check_lib_save_LIBS
22890fi
5213506e
RW
22891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcf" >&5
22892$as_echo "$ac_cv_lib_m_erfcf" >&6; }
22893if test "x$ac_cv_lib_m_erfcf" = x""yes; then :
1409cd0b 22894
5213506e 22895$as_echo "#define HAVE_ERFCF 1" >>confdefs.h
1409cd0b
FXC
22896
22897fi
22898
5213506e
RW
22899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc in -lm" >&5
22900$as_echo_n "checking for erfc in -lm... " >&6; }
22901if test "${ac_cv_lib_m_erfc+set}" = set; then :
22902 $as_echo_n "(cached) " >&6
1409cd0b
FXC
22903else
22904 ac_check_lib_save_LIBS=$LIBS
22905LIBS="-lm $LIBS"
22906if test x$gcc_no_link = xyes; then
5213506e 22907 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 22908fi
5213506e 22909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
22910/* end confdefs.h. */
22911
5213506e
RW
22912/* Override any GCC internal prototype to avoid an error.
22913 Use char because int might match the return type of a GCC
22914 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
22915#ifdef __cplusplus
22916extern "C"
22917#endif
1409cd0b 22918char erfc ();
69a2d125
EB
22919int
22920main ()
22921{
5213506e 22922return erfc ();
69a2d125
EB
22923 ;
22924 return 0;
22925}
22926_ACEOF
5213506e 22927if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 22928 ac_cv_lib_m_erfc=yes
69a2d125 22929else
5213506e 22930 ac_cv_lib_m_erfc=no
69a2d125 22931fi
5213506e
RW
22932rm -f core conftest.err conftest.$ac_objext \
22933 conftest$ac_exeext conftest.$ac_ext
69a2d125
EB
22934LIBS=$ac_check_lib_save_LIBS
22935fi
5213506e
RW
22936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfc" >&5
22937$as_echo "$ac_cv_lib_m_erfc" >&6; }
22938if test "x$ac_cv_lib_m_erfc" = x""yes; then :
69a2d125 22939
5213506e 22940$as_echo "#define HAVE_ERFC 1" >>confdefs.h
69a2d125
EB
22941
22942fi
22943
5213506e
RW
22944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl in -lm" >&5
22945$as_echo_n "checking for erfcl in -lm... " >&6; }
22946if test "${ac_cv_lib_m_erfcl+set}" = set; then :
22947 $as_echo_n "(cached) " >&6
e8525382
SK
22948else
22949 ac_check_lib_save_LIBS=$LIBS
22950LIBS="-lm $LIBS"
f02d008e 22951if test x$gcc_no_link = xyes; then
5213506e 22952 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 22953fi
5213506e 22954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
22955/* end confdefs.h. */
22956
5213506e
RW
22957/* Override any GCC internal prototype to avoid an error.
22958 Use char because int might match the return type of a GCC
22959 builtin and then its argument prototype would still apply. */
e8525382
SK
22960#ifdef __cplusplus
22961extern "C"
22962#endif
1409cd0b 22963char erfcl ();
e8525382
SK
22964int
22965main ()
22966{
5213506e 22967return erfcl ();
e8525382
SK
22968 ;
22969 return 0;
22970}
22971_ACEOF
5213506e 22972if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 22973 ac_cv_lib_m_erfcl=yes
e8525382 22974else
5213506e 22975 ac_cv_lib_m_erfcl=no
e8525382 22976fi
5213506e
RW
22977rm -f core conftest.err conftest.$ac_objext \
22978 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
22979LIBS=$ac_check_lib_save_LIBS
22980fi
5213506e
RW
22981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcl" >&5
22982$as_echo "$ac_cv_lib_m_erfcl" >&6; }
22983if test "x$ac_cv_lib_m_erfcl" = x""yes; then :
e8525382 22984
5213506e 22985$as_echo "#define HAVE_ERFCL 1" >>confdefs.h
e8525382
SK
22986
22987fi
22988
5213506e
RW
22989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f in -lm" >&5
22990$as_echo_n "checking for j0f in -lm... " >&6; }
22991if test "${ac_cv_lib_m_j0f+set}" = set; then :
22992 $as_echo_n "(cached) " >&6
e8525382
SK
22993else
22994 ac_check_lib_save_LIBS=$LIBS
22995LIBS="-lm $LIBS"
f02d008e 22996if test x$gcc_no_link = xyes; then
5213506e 22997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 22998fi
5213506e 22999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23000/* end confdefs.h. */
23001
5213506e
RW
23002/* Override any GCC internal prototype to avoid an error.
23003 Use char because int might match the return type of a GCC
23004 builtin and then its argument prototype would still apply. */
e8525382
SK
23005#ifdef __cplusplus
23006extern "C"
23007#endif
1409cd0b 23008char j0f ();
e8525382
SK
23009int
23010main ()
23011{
5213506e 23012return j0f ();
e8525382
SK
23013 ;
23014 return 0;
23015}
23016_ACEOF
5213506e 23017if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23018 ac_cv_lib_m_j0f=yes
e8525382 23019else
5213506e 23020 ac_cv_lib_m_j0f=no
1409cd0b 23021fi
5213506e
RW
23022rm -f core conftest.err conftest.$ac_objext \
23023 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
23024LIBS=$ac_check_lib_save_LIBS
23025fi
5213506e
RW
23026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0f" >&5
23027$as_echo "$ac_cv_lib_m_j0f" >&6; }
23028if test "x$ac_cv_lib_m_j0f" = x""yes; then :
1409cd0b 23029
5213506e 23030$as_echo "#define HAVE_J0F 1" >>confdefs.h
1409cd0b
FXC
23031
23032fi
23033
5213506e
RW
23034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0 in -lm" >&5
23035$as_echo_n "checking for j0 in -lm... " >&6; }
23036if test "${ac_cv_lib_m_j0+set}" = set; then :
23037 $as_echo_n "(cached) " >&6
1409cd0b
FXC
23038else
23039 ac_check_lib_save_LIBS=$LIBS
23040LIBS="-lm $LIBS"
23041if test x$gcc_no_link = xyes; then
5213506e 23042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23043fi
5213506e 23044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23045/* end confdefs.h. */
23046
5213506e
RW
23047/* Override any GCC internal prototype to avoid an error.
23048 Use char because int might match the return type of a GCC
23049 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23050#ifdef __cplusplus
23051extern "C"
23052#endif
1409cd0b
FXC
23053char j0 ();
23054int
23055main ()
23056{
5213506e 23057return j0 ();
1409cd0b
FXC
23058 ;
23059 return 0;
23060}
23061_ACEOF
5213506e 23062if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
23063 ac_cv_lib_m_j0=yes
23064else
5213506e 23065 ac_cv_lib_m_j0=no
1409cd0b 23066fi
5213506e
RW
23067rm -f core conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
23069LIBS=$ac_check_lib_save_LIBS
23070fi
5213506e
RW
23071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0" >&5
23072$as_echo "$ac_cv_lib_m_j0" >&6; }
23073if test "x$ac_cv_lib_m_j0" = x""yes; then :
1409cd0b 23074
5213506e 23075$as_echo "#define HAVE_J0 1" >>confdefs.h
1409cd0b
FXC
23076
23077fi
23078
5213506e
RW
23079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l in -lm" >&5
23080$as_echo_n "checking for j0l in -lm... " >&6; }
23081if test "${ac_cv_lib_m_j0l+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
1409cd0b
FXC
23083else
23084 ac_check_lib_save_LIBS=$LIBS
23085LIBS="-lm $LIBS"
23086if test x$gcc_no_link = xyes; then
5213506e 23087 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23088fi
5213506e 23089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23090/* end confdefs.h. */
23091
5213506e
RW
23092/* Override any GCC internal prototype to avoid an error.
23093 Use char because int might match the return type of a GCC
23094 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23095#ifdef __cplusplus
23096extern "C"
23097#endif
1409cd0b
FXC
23098char j0l ();
23099int
23100main ()
23101{
5213506e 23102return j0l ();
1409cd0b
FXC
23103 ;
23104 return 0;
23105}
23106_ACEOF
5213506e 23107if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
23108 ac_cv_lib_m_j0l=yes
23109else
5213506e 23110 ac_cv_lib_m_j0l=no
1409cd0b 23111fi
5213506e
RW
23112rm -f core conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
1409cd0b
FXC
23114LIBS=$ac_check_lib_save_LIBS
23115fi
5213506e
RW
23116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0l" >&5
23117$as_echo "$ac_cv_lib_m_j0l" >&6; }
23118if test "x$ac_cv_lib_m_j0l" = x""yes; then :
1409cd0b 23119
5213506e 23120$as_echo "#define HAVE_J0L 1" >>confdefs.h
1409cd0b
FXC
23121
23122fi
23123
5213506e
RW
23124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f in -lm" >&5
23125$as_echo_n "checking for j1f in -lm... " >&6; }
23126if test "${ac_cv_lib_m_j1f+set}" = set; then :
23127 $as_echo_n "(cached) " >&6
1409cd0b
FXC
23128else
23129 ac_check_lib_save_LIBS=$LIBS
23130LIBS="-lm $LIBS"
23131if test x$gcc_no_link = xyes; then
5213506e 23132 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1409cd0b 23133fi
5213506e 23134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1409cd0b
FXC
23135/* end confdefs.h. */
23136
5213506e
RW
23137/* Override any GCC internal prototype to avoid an error.
23138 Use char because int might match the return type of a GCC
23139 builtin and then its argument prototype would still apply. */
1409cd0b
FXC
23140#ifdef __cplusplus
23141extern "C"
23142#endif
1409cd0b
FXC
23143char j1f ();
23144int
23145main ()
23146{
5213506e 23147return j1f ();
1409cd0b
FXC
23148 ;
23149 return 0;
23150}
23151_ACEOF
5213506e 23152if ac_fn_c_try_link "$LINENO"; then :
1409cd0b
FXC
23153 ac_cv_lib_m_j1f=yes
23154else
5213506e 23155 ac_cv_lib_m_j1f=no
e8525382 23156fi
5213506e
RW
23157rm -f core conftest.err conftest.$ac_objext \
23158 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23159LIBS=$ac_check_lib_save_LIBS
23160fi
5213506e
RW
23161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1f" >&5
23162$as_echo "$ac_cv_lib_m_j1f" >&6; }
23163if test "x$ac_cv_lib_m_j1f" = x""yes; then :
e8525382 23164
5213506e 23165$as_echo "#define HAVE_J1F 1" >>confdefs.h
e8525382
SK
23166
23167fi
23168
5213506e
RW
23169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1 in -lm" >&5
23170$as_echo_n "checking for j1 in -lm... " >&6; }
23171if test "${ac_cv_lib_m_j1+set}" = set; then :
23172 $as_echo_n "(cached) " >&6
e8525382
SK
23173else
23174 ac_check_lib_save_LIBS=$LIBS
23175LIBS="-lm $LIBS"
f02d008e 23176if test x$gcc_no_link = xyes; then
5213506e 23177 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23178fi
5213506e 23179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23180/* end confdefs.h. */
23181
5213506e
RW
23182/* Override any GCC internal prototype to avoid an error.
23183 Use char because int might match the return type of a GCC
23184 builtin and then its argument prototype would still apply. */
e8525382
SK
23185#ifdef __cplusplus
23186extern "C"
23187#endif
1409cd0b 23188char j1 ();
e8525382
SK
23189int
23190main ()
23191{
5213506e 23192return j1 ();
e8525382
SK
23193 ;
23194 return 0;
23195}
23196_ACEOF
5213506e 23197if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23198 ac_cv_lib_m_j1=yes
e8525382 23199else
5213506e 23200 ac_cv_lib_m_j1=no
e8525382 23201fi
5213506e
RW
23202rm -f core conftest.err conftest.$ac_objext \
23203 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23204LIBS=$ac_check_lib_save_LIBS
23205fi
5213506e
RW
23206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1" >&5
23207$as_echo "$ac_cv_lib_m_j1" >&6; }
23208if test "x$ac_cv_lib_m_j1" = x""yes; then :
e8525382 23209
5213506e 23210$as_echo "#define HAVE_J1 1" >>confdefs.h
e8525382
SK
23211
23212fi
23213
5213506e
RW
23214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l in -lm" >&5
23215$as_echo_n "checking for j1l in -lm... " >&6; }
23216if test "${ac_cv_lib_m_j1l+set}" = set; then :
23217 $as_echo_n "(cached) " >&6
e8525382
SK
23218else
23219 ac_check_lib_save_LIBS=$LIBS
23220LIBS="-lm $LIBS"
f02d008e 23221if test x$gcc_no_link = xyes; then
5213506e 23222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23223fi
5213506e 23224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23225/* end confdefs.h. */
23226
5213506e
RW
23227/* Override any GCC internal prototype to avoid an error.
23228 Use char because int might match the return type of a GCC
23229 builtin and then its argument prototype would still apply. */
e8525382
SK
23230#ifdef __cplusplus
23231extern "C"
23232#endif
1409cd0b 23233char j1l ();
e8525382
SK
23234int
23235main ()
23236{
5213506e 23237return j1l ();
e8525382
SK
23238 ;
23239 return 0;
23240}
23241_ACEOF
5213506e 23242if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23243 ac_cv_lib_m_j1l=yes
e8525382 23244else
5213506e 23245 ac_cv_lib_m_j1l=no
e8525382 23246fi
5213506e
RW
23247rm -f core conftest.err conftest.$ac_objext \
23248 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23249LIBS=$ac_check_lib_save_LIBS
23250fi
5213506e
RW
23251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1l" >&5
23252$as_echo "$ac_cv_lib_m_j1l" >&6; }
23253if test "x$ac_cv_lib_m_j1l" = x""yes; then :
e8525382 23254
5213506e 23255$as_echo "#define HAVE_J1L 1" >>confdefs.h
e8525382
SK
23256
23257fi
23258
5213506e
RW
23259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf in -lm" >&5
23260$as_echo_n "checking for jnf in -lm... " >&6; }
23261if test "${ac_cv_lib_m_jnf+set}" = set; then :
23262 $as_echo_n "(cached) " >&6
e8525382
SK
23263else
23264 ac_check_lib_save_LIBS=$LIBS
23265LIBS="-lm $LIBS"
f02d008e 23266if test x$gcc_no_link = xyes; then
5213506e 23267 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23268fi
5213506e 23269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23270/* end confdefs.h. */
23271
5213506e
RW
23272/* Override any GCC internal prototype to avoid an error.
23273 Use char because int might match the return type of a GCC
23274 builtin and then its argument prototype would still apply. */
e8525382
SK
23275#ifdef __cplusplus
23276extern "C"
23277#endif
1409cd0b 23278char jnf ();
e8525382
SK
23279int
23280main ()
23281{
5213506e 23282return jnf ();
e8525382
SK
23283 ;
23284 return 0;
23285}
23286_ACEOF
5213506e 23287if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23288 ac_cv_lib_m_jnf=yes
e8525382 23289else
5213506e 23290 ac_cv_lib_m_jnf=no
e8525382 23291fi
5213506e
RW
23292rm -f core conftest.err conftest.$ac_objext \
23293 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23294LIBS=$ac_check_lib_save_LIBS
23295fi
5213506e
RW
23296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnf" >&5
23297$as_echo "$ac_cv_lib_m_jnf" >&6; }
23298if test "x$ac_cv_lib_m_jnf" = x""yes; then :
e8525382 23299
5213506e 23300$as_echo "#define HAVE_JNF 1" >>confdefs.h
e8525382
SK
23301
23302fi
23303
5213506e
RW
23304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn in -lm" >&5
23305$as_echo_n "checking for jn in -lm... " >&6; }
23306if test "${ac_cv_lib_m_jn+set}" = set; then :
23307 $as_echo_n "(cached) " >&6
e8525382
SK
23308else
23309 ac_check_lib_save_LIBS=$LIBS
23310LIBS="-lm $LIBS"
f02d008e 23311if test x$gcc_no_link = xyes; then
5213506e 23312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23313fi
5213506e 23314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23315/* end confdefs.h. */
23316
5213506e
RW
23317/* Override any GCC internal prototype to avoid an error.
23318 Use char because int might match the return type of a GCC
23319 builtin and then its argument prototype would still apply. */
e8525382
SK
23320#ifdef __cplusplus
23321extern "C"
23322#endif
1409cd0b 23323char jn ();
e8525382
SK
23324int
23325main ()
23326{
5213506e 23327return jn ();
e8525382
SK
23328 ;
23329 return 0;
23330}
23331_ACEOF
5213506e 23332if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23333 ac_cv_lib_m_jn=yes
e8525382 23334else
5213506e 23335 ac_cv_lib_m_jn=no
e8525382 23336fi
5213506e
RW
23337rm -f core conftest.err conftest.$ac_objext \
23338 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23339LIBS=$ac_check_lib_save_LIBS
23340fi
5213506e
RW
23341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jn" >&5
23342$as_echo "$ac_cv_lib_m_jn" >&6; }
23343if test "x$ac_cv_lib_m_jn" = x""yes; then :
e8525382 23344
5213506e 23345$as_echo "#define HAVE_JN 1" >>confdefs.h
e8525382
SK
23346
23347fi
23348
5213506e
RW
23349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl in -lm" >&5
23350$as_echo_n "checking for jnl in -lm... " >&6; }
23351if test "${ac_cv_lib_m_jnl+set}" = set; then :
23352 $as_echo_n "(cached) " >&6
e8525382
SK
23353else
23354 ac_check_lib_save_LIBS=$LIBS
23355LIBS="-lm $LIBS"
f02d008e 23356if test x$gcc_no_link = xyes; then
5213506e 23357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23358fi
5213506e 23359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23360/* end confdefs.h. */
23361
5213506e
RW
23362/* Override any GCC internal prototype to avoid an error.
23363 Use char because int might match the return type of a GCC
23364 builtin and then its argument prototype would still apply. */
e8525382
SK
23365#ifdef __cplusplus
23366extern "C"
23367#endif
1409cd0b 23368char jnl ();
e8525382
SK
23369int
23370main ()
23371{
5213506e 23372return jnl ();
e8525382
SK
23373 ;
23374 return 0;
23375}
23376_ACEOF
5213506e 23377if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23378 ac_cv_lib_m_jnl=yes
e8525382 23379else
5213506e 23380 ac_cv_lib_m_jnl=no
e8525382 23381fi
5213506e
RW
23382rm -f core conftest.err conftest.$ac_objext \
23383 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23384LIBS=$ac_check_lib_save_LIBS
23385fi
5213506e
RW
23386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnl" >&5
23387$as_echo "$ac_cv_lib_m_jnl" >&6; }
23388if test "x$ac_cv_lib_m_jnl" = x""yes; then :
e8525382 23389
5213506e 23390$as_echo "#define HAVE_JNL 1" >>confdefs.h
e8525382
SK
23391
23392fi
23393
5213506e
RW
23394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f in -lm" >&5
23395$as_echo_n "checking for y0f in -lm... " >&6; }
23396if test "${ac_cv_lib_m_y0f+set}" = set; then :
23397 $as_echo_n "(cached) " >&6
e8525382
SK
23398else
23399 ac_check_lib_save_LIBS=$LIBS
23400LIBS="-lm $LIBS"
f02d008e 23401if test x$gcc_no_link = xyes; then
5213506e 23402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23403fi
5213506e 23404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23405/* end confdefs.h. */
23406
5213506e
RW
23407/* Override any GCC internal prototype to avoid an error.
23408 Use char because int might match the return type of a GCC
23409 builtin and then its argument prototype would still apply. */
e8525382
SK
23410#ifdef __cplusplus
23411extern "C"
23412#endif
1409cd0b 23413char y0f ();
e8525382
SK
23414int
23415main ()
23416{
5213506e 23417return y0f ();
e8525382
SK
23418 ;
23419 return 0;
23420}
23421_ACEOF
5213506e 23422if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23423 ac_cv_lib_m_y0f=yes
e8525382 23424else
5213506e 23425 ac_cv_lib_m_y0f=no
e8525382 23426fi
5213506e
RW
23427rm -f core conftest.err conftest.$ac_objext \
23428 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23429LIBS=$ac_check_lib_save_LIBS
23430fi
5213506e
RW
23431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0f" >&5
23432$as_echo "$ac_cv_lib_m_y0f" >&6; }
23433if test "x$ac_cv_lib_m_y0f" = x""yes; then :
e8525382 23434
5213506e 23435$as_echo "#define HAVE_Y0F 1" >>confdefs.h
e8525382
SK
23436
23437fi
23438
5213506e
RW
23439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0 in -lm" >&5
23440$as_echo_n "checking for y0 in -lm... " >&6; }
23441if test "${ac_cv_lib_m_y0+set}" = set; then :
23442 $as_echo_n "(cached) " >&6
e8525382
SK
23443else
23444 ac_check_lib_save_LIBS=$LIBS
23445LIBS="-lm $LIBS"
f02d008e 23446if test x$gcc_no_link = xyes; then
5213506e 23447 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23448fi
5213506e 23449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23450/* end confdefs.h. */
23451
5213506e
RW
23452/* Override any GCC internal prototype to avoid an error.
23453 Use char because int might match the return type of a GCC
23454 builtin and then its argument prototype would still apply. */
e8525382
SK
23455#ifdef __cplusplus
23456extern "C"
23457#endif
1409cd0b 23458char y0 ();
e8525382
SK
23459int
23460main ()
23461{
5213506e 23462return y0 ();
e8525382
SK
23463 ;
23464 return 0;
23465}
23466_ACEOF
5213506e 23467if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23468 ac_cv_lib_m_y0=yes
e8525382 23469else
5213506e 23470 ac_cv_lib_m_y0=no
e8525382 23471fi
5213506e
RW
23472rm -f core conftest.err conftest.$ac_objext \
23473 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23474LIBS=$ac_check_lib_save_LIBS
23475fi
5213506e
RW
23476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0" >&5
23477$as_echo "$ac_cv_lib_m_y0" >&6; }
23478if test "x$ac_cv_lib_m_y0" = x""yes; then :
e8525382 23479
5213506e 23480$as_echo "#define HAVE_Y0 1" >>confdefs.h
e8525382
SK
23481
23482fi
23483
5213506e
RW
23484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l in -lm" >&5
23485$as_echo_n "checking for y0l in -lm... " >&6; }
23486if test "${ac_cv_lib_m_y0l+set}" = set; then :
23487 $as_echo_n "(cached) " >&6
e8525382
SK
23488else
23489 ac_check_lib_save_LIBS=$LIBS
23490LIBS="-lm $LIBS"
f02d008e 23491if test x$gcc_no_link = xyes; then
5213506e 23492 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23493fi
5213506e 23494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23495/* end confdefs.h. */
23496
5213506e
RW
23497/* Override any GCC internal prototype to avoid an error.
23498 Use char because int might match the return type of a GCC
23499 builtin and then its argument prototype would still apply. */
e8525382
SK
23500#ifdef __cplusplus
23501extern "C"
23502#endif
1409cd0b 23503char y0l ();
e8525382
SK
23504int
23505main ()
23506{
5213506e 23507return y0l ();
e8525382
SK
23508 ;
23509 return 0;
23510}
23511_ACEOF
5213506e 23512if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23513 ac_cv_lib_m_y0l=yes
e8525382 23514else
5213506e 23515 ac_cv_lib_m_y0l=no
e8525382 23516fi
5213506e
RW
23517rm -f core conftest.err conftest.$ac_objext \
23518 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23519LIBS=$ac_check_lib_save_LIBS
23520fi
5213506e
RW
23521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0l" >&5
23522$as_echo "$ac_cv_lib_m_y0l" >&6; }
23523if test "x$ac_cv_lib_m_y0l" = x""yes; then :
e8525382 23524
5213506e 23525$as_echo "#define HAVE_Y0L 1" >>confdefs.h
e8525382
SK
23526
23527fi
23528
5213506e
RW
23529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f in -lm" >&5
23530$as_echo_n "checking for y1f in -lm... " >&6; }
23531if test "${ac_cv_lib_m_y1f+set}" = set; then :
23532 $as_echo_n "(cached) " >&6
e8525382
SK
23533else
23534 ac_check_lib_save_LIBS=$LIBS
23535LIBS="-lm $LIBS"
f02d008e 23536if test x$gcc_no_link = xyes; then
5213506e 23537 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23538fi
5213506e 23539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23540/* end confdefs.h. */
23541
5213506e
RW
23542/* Override any GCC internal prototype to avoid an error.
23543 Use char because int might match the return type of a GCC
23544 builtin and then its argument prototype would still apply. */
e8525382
SK
23545#ifdef __cplusplus
23546extern "C"
23547#endif
1409cd0b 23548char y1f ();
e8525382
SK
23549int
23550main ()
23551{
5213506e 23552return y1f ();
e8525382
SK
23553 ;
23554 return 0;
23555}
23556_ACEOF
5213506e 23557if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23558 ac_cv_lib_m_y1f=yes
e8525382 23559else
5213506e 23560 ac_cv_lib_m_y1f=no
e8525382 23561fi
5213506e
RW
23562rm -f core conftest.err conftest.$ac_objext \
23563 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23564LIBS=$ac_check_lib_save_LIBS
23565fi
5213506e
RW
23566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1f" >&5
23567$as_echo "$ac_cv_lib_m_y1f" >&6; }
23568if test "x$ac_cv_lib_m_y1f" = x""yes; then :
e8525382 23569
5213506e 23570$as_echo "#define HAVE_Y1F 1" >>confdefs.h
e8525382
SK
23571
23572fi
23573
5213506e
RW
23574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1 in -lm" >&5
23575$as_echo_n "checking for y1 in -lm... " >&6; }
23576if test "${ac_cv_lib_m_y1+set}" = set; then :
23577 $as_echo_n "(cached) " >&6
e8525382
SK
23578else
23579 ac_check_lib_save_LIBS=$LIBS
23580LIBS="-lm $LIBS"
f02d008e 23581if test x$gcc_no_link = xyes; then
5213506e 23582 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23583fi
5213506e 23584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23585/* end confdefs.h. */
23586
5213506e
RW
23587/* Override any GCC internal prototype to avoid an error.
23588 Use char because int might match the return type of a GCC
23589 builtin and then its argument prototype would still apply. */
e8525382
SK
23590#ifdef __cplusplus
23591extern "C"
23592#endif
1409cd0b 23593char y1 ();
e8525382
SK
23594int
23595main ()
23596{
5213506e 23597return y1 ();
e8525382
SK
23598 ;
23599 return 0;
23600}
23601_ACEOF
5213506e 23602if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23603 ac_cv_lib_m_y1=yes
e8525382 23604else
5213506e 23605 ac_cv_lib_m_y1=no
e8525382 23606fi
5213506e
RW
23607rm -f core conftest.err conftest.$ac_objext \
23608 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23609LIBS=$ac_check_lib_save_LIBS
23610fi
5213506e
RW
23611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1" >&5
23612$as_echo "$ac_cv_lib_m_y1" >&6; }
23613if test "x$ac_cv_lib_m_y1" = x""yes; then :
e8525382 23614
5213506e 23615$as_echo "#define HAVE_Y1 1" >>confdefs.h
e8525382
SK
23616
23617fi
23618
5213506e
RW
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l in -lm" >&5
23620$as_echo_n "checking for y1l in -lm... " >&6; }
23621if test "${ac_cv_lib_m_y1l+set}" = set; then :
23622 $as_echo_n "(cached) " >&6
e8525382
SK
23623else
23624 ac_check_lib_save_LIBS=$LIBS
23625LIBS="-lm $LIBS"
f02d008e 23626if test x$gcc_no_link = xyes; then
5213506e 23627 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23628fi
5213506e 23629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23630/* end confdefs.h. */
23631
5213506e
RW
23632/* Override any GCC internal prototype to avoid an error.
23633 Use char because int might match the return type of a GCC
23634 builtin and then its argument prototype would still apply. */
e8525382
SK
23635#ifdef __cplusplus
23636extern "C"
23637#endif
1409cd0b 23638char y1l ();
e8525382
SK
23639int
23640main ()
23641{
5213506e 23642return y1l ();
e8525382
SK
23643 ;
23644 return 0;
23645}
23646_ACEOF
5213506e 23647if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23648 ac_cv_lib_m_y1l=yes
e8525382 23649else
5213506e 23650 ac_cv_lib_m_y1l=no
e8525382 23651fi
5213506e
RW
23652rm -f core conftest.err conftest.$ac_objext \
23653 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23654LIBS=$ac_check_lib_save_LIBS
23655fi
5213506e
RW
23656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1l" >&5
23657$as_echo "$ac_cv_lib_m_y1l" >&6; }
23658if test "x$ac_cv_lib_m_y1l" = x""yes; then :
e8525382 23659
5213506e 23660$as_echo "#define HAVE_Y1L 1" >>confdefs.h
e8525382
SK
23661
23662fi
23663
5213506e
RW
23664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf in -lm" >&5
23665$as_echo_n "checking for ynf in -lm... " >&6; }
23666if test "${ac_cv_lib_m_ynf+set}" = set; then :
23667 $as_echo_n "(cached) " >&6
e8525382
SK
23668else
23669 ac_check_lib_save_LIBS=$LIBS
23670LIBS="-lm $LIBS"
f02d008e 23671if test x$gcc_no_link = xyes; then
5213506e 23672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23673fi
5213506e 23674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23675/* end confdefs.h. */
23676
5213506e
RW
23677/* Override any GCC internal prototype to avoid an error.
23678 Use char because int might match the return type of a GCC
23679 builtin and then its argument prototype would still apply. */
e8525382
SK
23680#ifdef __cplusplus
23681extern "C"
23682#endif
1409cd0b 23683char ynf ();
e8525382
SK
23684int
23685main ()
23686{
5213506e 23687return ynf ();
e8525382
SK
23688 ;
23689 return 0;
23690}
23691_ACEOF
5213506e 23692if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23693 ac_cv_lib_m_ynf=yes
e8525382 23694else
5213506e 23695 ac_cv_lib_m_ynf=no
e8525382 23696fi
5213506e
RW
23697rm -f core conftest.err conftest.$ac_objext \
23698 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23699LIBS=$ac_check_lib_save_LIBS
23700fi
5213506e
RW
23701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynf" >&5
23702$as_echo "$ac_cv_lib_m_ynf" >&6; }
23703if test "x$ac_cv_lib_m_ynf" = x""yes; then :
e8525382 23704
5213506e 23705$as_echo "#define HAVE_YNF 1" >>confdefs.h
e8525382
SK
23706
23707fi
23708
5213506e
RW
23709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn in -lm" >&5
23710$as_echo_n "checking for yn in -lm... " >&6; }
23711if test "${ac_cv_lib_m_yn+set}" = set; then :
23712 $as_echo_n "(cached) " >&6
e8525382
SK
23713else
23714 ac_check_lib_save_LIBS=$LIBS
23715LIBS="-lm $LIBS"
f02d008e 23716if test x$gcc_no_link = xyes; then
5213506e 23717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23718fi
5213506e 23719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23720/* end confdefs.h. */
23721
5213506e
RW
23722/* Override any GCC internal prototype to avoid an error.
23723 Use char because int might match the return type of a GCC
23724 builtin and then its argument prototype would still apply. */
e8525382
SK
23725#ifdef __cplusplus
23726extern "C"
23727#endif
e8525382
SK
23728char yn ();
23729int
23730main ()
23731{
5213506e 23732return yn ();
e8525382
SK
23733 ;
23734 return 0;
23735}
23736_ACEOF
5213506e 23737if ac_fn_c_try_link "$LINENO"; then :
e8525382
SK
23738 ac_cv_lib_m_yn=yes
23739else
5213506e 23740 ac_cv_lib_m_yn=no
e8525382 23741fi
5213506e
RW
23742rm -f core conftest.err conftest.$ac_objext \
23743 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23744LIBS=$ac_check_lib_save_LIBS
23745fi
5213506e
RW
23746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_yn" >&5
23747$as_echo "$ac_cv_lib_m_yn" >&6; }
23748if test "x$ac_cv_lib_m_yn" = x""yes; then :
e8525382 23749
5213506e 23750$as_echo "#define HAVE_YN 1" >>confdefs.h
e8525382
SK
23751
23752fi
23753
5213506e
RW
23754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl in -lm" >&5
23755$as_echo_n "checking for ynl in -lm... " >&6; }
23756if test "${ac_cv_lib_m_ynl+set}" = set; then :
23757 $as_echo_n "(cached) " >&6
e8525382
SK
23758else
23759 ac_check_lib_save_LIBS=$LIBS
23760LIBS="-lm $LIBS"
f02d008e 23761if test x$gcc_no_link = xyes; then
5213506e 23762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 23763fi
5213506e 23764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8525382
SK
23765/* end confdefs.h. */
23766
5213506e
RW
23767/* Override any GCC internal prototype to avoid an error.
23768 Use char because int might match the return type of a GCC
23769 builtin and then its argument prototype would still apply. */
e8525382
SK
23770#ifdef __cplusplus
23771extern "C"
23772#endif
1409cd0b 23773char ynl ();
e8525382
SK
23774int
23775main ()
23776{
5213506e 23777return ynl ();
e8525382
SK
23778 ;
23779 return 0;
23780}
23781_ACEOF
5213506e 23782if ac_fn_c_try_link "$LINENO"; then :
1409cd0b 23783 ac_cv_lib_m_ynl=yes
e8525382 23784else
5213506e 23785 ac_cv_lib_m_ynl=no
e8525382 23786fi
5213506e
RW
23787rm -f core conftest.err conftest.$ac_objext \
23788 conftest$ac_exeext conftest.$ac_ext
e8525382
SK
23789LIBS=$ac_check_lib_save_LIBS
23790fi
5213506e
RW
23791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynl" >&5
23792$as_echo "$ac_cv_lib_m_ynl" >&6; }
23793if test "x$ac_cv_lib_m_ynl" = x""yes; then :
e8525382 23794
5213506e 23795$as_echo "#define HAVE_YNL 1" >>confdefs.h
e8525382
SK
23796
23797fi
23798
5213506e
RW
23799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma in -lm" >&5
23800$as_echo_n "checking for tgamma in -lm... " >&6; }
23801if test "${ac_cv_lib_m_tgamma+set}" = set; then :
23802 $as_echo_n "(cached) " >&6
fb0a0e15
FXC
23803else
23804 ac_check_lib_save_LIBS=$LIBS
23805LIBS="-lm $LIBS"
23806if test x$gcc_no_link = xyes; then
5213506e 23807 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 23808fi
5213506e 23809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
23810/* end confdefs.h. */
23811
5213506e
RW
23812/* Override any GCC internal prototype to avoid an error.
23813 Use char because int might match the return type of a GCC
23814 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
23815#ifdef __cplusplus
23816extern "C"
23817#endif
fb0a0e15
FXC
23818char tgamma ();
23819int
23820main ()
23821{
5213506e 23822return tgamma ();
fb0a0e15
FXC
23823 ;
23824 return 0;
23825}
23826_ACEOF
5213506e 23827if ac_fn_c_try_link "$LINENO"; then :
fb0a0e15
FXC
23828 ac_cv_lib_m_tgamma=yes
23829else
5213506e 23830 ac_cv_lib_m_tgamma=no
fb0a0e15 23831fi
5213506e
RW
23832rm -f core conftest.err conftest.$ac_objext \
23833 conftest$ac_exeext conftest.$ac_ext
fb0a0e15
FXC
23834LIBS=$ac_check_lib_save_LIBS
23835fi
5213506e
RW
23836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgamma" >&5
23837$as_echo "$ac_cv_lib_m_tgamma" >&6; }
23838if test "x$ac_cv_lib_m_tgamma" = x""yes; then :
fb0a0e15 23839
5213506e 23840$as_echo "#define HAVE_TGAMMA 1" >>confdefs.h
fb0a0e15
FXC
23841
23842fi
23843
5213506e
RW
23844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf in -lm" >&5
23845$as_echo_n "checking for tgammaf in -lm... " >&6; }
23846if test "${ac_cv_lib_m_tgammaf+set}" = set; then :
23847 $as_echo_n "(cached) " >&6
fb0a0e15
FXC
23848else
23849 ac_check_lib_save_LIBS=$LIBS
23850LIBS="-lm $LIBS"
23851if test x$gcc_no_link = xyes; then
5213506e 23852 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 23853fi
5213506e 23854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
23855/* end confdefs.h. */
23856
5213506e
RW
23857/* Override any GCC internal prototype to avoid an error.
23858 Use char because int might match the return type of a GCC
23859 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
23860#ifdef __cplusplus
23861extern "C"
23862#endif
fb0a0e15
FXC
23863char tgammaf ();
23864int
23865main ()
23866{
5213506e 23867return tgammaf ();
fb0a0e15
FXC
23868 ;
23869 return 0;
23870}
23871_ACEOF
5213506e 23872if ac_fn_c_try_link "$LINENO"; then :
fb0a0e15
FXC
23873 ac_cv_lib_m_tgammaf=yes
23874else
5213506e 23875 ac_cv_lib_m_tgammaf=no
fb0a0e15 23876fi
5213506e
RW
23877rm -f core conftest.err conftest.$ac_objext \
23878 conftest$ac_exeext conftest.$ac_ext
fb0a0e15
FXC
23879LIBS=$ac_check_lib_save_LIBS
23880fi
5213506e
RW
23881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammaf" >&5
23882$as_echo "$ac_cv_lib_m_tgammaf" >&6; }
23883if test "x$ac_cv_lib_m_tgammaf" = x""yes; then :
fb0a0e15 23884
5213506e 23885$as_echo "#define HAVE_TGAMMAF 1" >>confdefs.h
fb0a0e15
FXC
23886
23887fi
23888
5213506e
RW
23889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal in -lm" >&5
23890$as_echo_n "checking for tgammal in -lm... " >&6; }
23891if test "${ac_cv_lib_m_tgammal+set}" = set; then :
23892 $as_echo_n "(cached) " >&6
fb0a0e15
FXC
23893else
23894 ac_check_lib_save_LIBS=$LIBS
23895LIBS="-lm $LIBS"
23896if test x$gcc_no_link = xyes; then
5213506e 23897 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 23898fi
5213506e 23899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
23900/* end confdefs.h. */
23901
5213506e
RW
23902/* Override any GCC internal prototype to avoid an error.
23903 Use char because int might match the return type of a GCC
23904 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
23905#ifdef __cplusplus
23906extern "C"
23907#endif
fb0a0e15
FXC
23908char tgammal ();
23909int
23910main ()
23911{
5213506e 23912return tgammal ();
fb0a0e15
FXC
23913 ;
23914 return 0;
23915}
23916_ACEOF
5213506e 23917if ac_fn_c_try_link "$LINENO"; then :
fb0a0e15
FXC
23918 ac_cv_lib_m_tgammal=yes
23919else
5213506e 23920 ac_cv_lib_m_tgammal=no
fb0a0e15 23921fi
5213506e
RW
23922rm -f core conftest.err conftest.$ac_objext \
23923 conftest$ac_exeext conftest.$ac_ext
fb0a0e15
FXC
23924LIBS=$ac_check_lib_save_LIBS
23925fi
5213506e
RW
23926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammal" >&5
23927$as_echo "$ac_cv_lib_m_tgammal" >&6; }
23928if test "x$ac_cv_lib_m_tgammal" = x""yes; then :
fb0a0e15 23929
5213506e 23930$as_echo "#define HAVE_TGAMMAL 1" >>confdefs.h
fb0a0e15
FXC
23931
23932fi
23933
5213506e
RW
23934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma in -lm" >&5
23935$as_echo_n "checking for lgamma in -lm... " >&6; }
23936if test "${ac_cv_lib_m_lgamma+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
fb0a0e15
FXC
23938else
23939 ac_check_lib_save_LIBS=$LIBS
23940LIBS="-lm $LIBS"
23941if test x$gcc_no_link = xyes; then
5213506e 23942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 23943fi
5213506e 23944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
23945/* end confdefs.h. */
23946
5213506e
RW
23947/* Override any GCC internal prototype to avoid an error.
23948 Use char because int might match the return type of a GCC
23949 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
23950#ifdef __cplusplus
23951extern "C"
23952#endif
fb0a0e15
FXC
23953char lgamma ();
23954int
23955main ()
23956{
5213506e 23957return lgamma ();
fb0a0e15
FXC
23958 ;
23959 return 0;
23960}
23961_ACEOF
5213506e 23962if ac_fn_c_try_link "$LINENO"; then :
fb0a0e15
FXC
23963 ac_cv_lib_m_lgamma=yes
23964else
5213506e 23965 ac_cv_lib_m_lgamma=no
fb0a0e15 23966fi
5213506e
RW
23967rm -f core conftest.err conftest.$ac_objext \
23968 conftest$ac_exeext conftest.$ac_ext
fb0a0e15
FXC
23969LIBS=$ac_check_lib_save_LIBS
23970fi
5213506e
RW
23971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgamma" >&5
23972$as_echo "$ac_cv_lib_m_lgamma" >&6; }
23973if test "x$ac_cv_lib_m_lgamma" = x""yes; then :
fb0a0e15 23974
5213506e 23975$as_echo "#define HAVE_LGAMMA 1" >>confdefs.h
fb0a0e15
FXC
23976
23977fi
23978
5213506e
RW
23979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf in -lm" >&5
23980$as_echo_n "checking for lgammaf in -lm... " >&6; }
23981if test "${ac_cv_lib_m_lgammaf+set}" = set; then :
23982 $as_echo_n "(cached) " >&6
fb0a0e15
FXC
23983else
23984 ac_check_lib_save_LIBS=$LIBS
23985LIBS="-lm $LIBS"
23986if test x$gcc_no_link = xyes; then
5213506e 23987 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 23988fi
5213506e 23989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
23990/* end confdefs.h. */
23991
5213506e
RW
23992/* Override any GCC internal prototype to avoid an error.
23993 Use char because int might match the return type of a GCC
23994 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
23995#ifdef __cplusplus
23996extern "C"
23997#endif
fb0a0e15
FXC
23998char lgammaf ();
23999int
24000main ()
24001{
5213506e 24002return lgammaf ();
fb0a0e15
FXC
24003 ;
24004 return 0;
24005}
24006_ACEOF
5213506e 24007if ac_fn_c_try_link "$LINENO"; then :
fb0a0e15
FXC
24008 ac_cv_lib_m_lgammaf=yes
24009else
5213506e 24010 ac_cv_lib_m_lgammaf=no
fb0a0e15 24011fi
5213506e
RW
24012rm -f core conftest.err conftest.$ac_objext \
24013 conftest$ac_exeext conftest.$ac_ext
fb0a0e15
FXC
24014LIBS=$ac_check_lib_save_LIBS
24015fi
5213506e
RW
24016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammaf" >&5
24017$as_echo "$ac_cv_lib_m_lgammaf" >&6; }
24018if test "x$ac_cv_lib_m_lgammaf" = x""yes; then :
fb0a0e15 24019
5213506e 24020$as_echo "#define HAVE_LGAMMAF 1" >>confdefs.h
fb0a0e15
FXC
24021
24022fi
24023
5213506e
RW
24024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal in -lm" >&5
24025$as_echo_n "checking for lgammal in -lm... " >&6; }
24026if test "${ac_cv_lib_m_lgammal+set}" = set; then :
24027 $as_echo_n "(cached) " >&6
fb0a0e15
FXC
24028else
24029 ac_check_lib_save_LIBS=$LIBS
24030LIBS="-lm $LIBS"
24031if test x$gcc_no_link = xyes; then
5213506e 24032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fb0a0e15 24033fi
5213506e 24034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fb0a0e15
FXC
24035/* end confdefs.h. */
24036
5213506e
RW
24037/* Override any GCC internal prototype to avoid an error.
24038 Use char because int might match the return type of a GCC
24039 builtin and then its argument prototype would still apply. */
fb0a0e15
FXC
24040#ifdef __cplusplus
24041extern "C"
24042#endif
fb0a0e15
FXC
24043char lgammal ();
24044int
24045main ()
24046{
5213506e 24047return lgammal ();
fb0a0e15
FXC
24048 ;
24049 return 0;
24050}
24051_ACEOF
5213506e 24052if ac_fn_c_try_link "$LINENO"; then :
fb0a0e15
FXC
24053 ac_cv_lib_m_lgammal=yes
24054else
5213506e 24055 ac_cv_lib_m_lgammal=no
fb0a0e15 24056fi
5213506e
RW
24057rm -f core conftest.err conftest.$ac_objext \
24058 conftest$ac_exeext conftest.$ac_ext
fb0a0e15
FXC
24059LIBS=$ac_check_lib_save_LIBS
24060fi
5213506e
RW
24061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammal" >&5
24062$as_echo "$ac_cv_lib_m_lgammal" >&6; }
24063if test "x$ac_cv_lib_m_lgammal" = x""yes; then :
fb0a0e15 24064
5213506e 24065$as_echo "#define HAVE_LGAMMAL 1" >>confdefs.h
fb0a0e15
FXC
24066
24067fi
24068
a2a2059f 24069
db1cf15c
IS
24070# Check for GFORTRAN_C99_1.1 funcs
24071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos in -lm" >&5
24072$as_echo_n "checking for cacos in -lm... " >&6; }
24073if test "${ac_cv_lib_m_cacos+set}" = set; then :
24074 $as_echo_n "(cached) " >&6
24075else
24076 ac_check_lib_save_LIBS=$LIBS
24077LIBS="-lm $LIBS"
24078if test x$gcc_no_link = xyes; then
24079 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24080fi
24081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24082/* end confdefs.h. */
24083
24084/* Override any GCC internal prototype to avoid an error.
24085 Use char because int might match the return type of a GCC
24086 builtin and then its argument prototype would still apply. */
24087#ifdef __cplusplus
24088extern "C"
24089#endif
24090char cacos ();
24091int
24092main ()
24093{
24094return cacos ();
24095 ;
24096 return 0;
24097}
24098_ACEOF
24099if ac_fn_c_try_link "$LINENO"; then :
24100 ac_cv_lib_m_cacos=yes
24101else
24102 ac_cv_lib_m_cacos=no
24103fi
24104rm -f core conftest.err conftest.$ac_objext \
24105 conftest$ac_exeext conftest.$ac_ext
24106LIBS=$ac_check_lib_save_LIBS
24107fi
24108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacos" >&5
24109$as_echo "$ac_cv_lib_m_cacos" >&6; }
24110if test "x$ac_cv_lib_m_cacos" = x""yes; then :
24111
24112$as_echo "#define HAVE_CACOS 1" >>confdefs.h
24113
24114fi
24115
24116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf in -lm" >&5
24117$as_echo_n "checking for cacosf in -lm... " >&6; }
24118if test "${ac_cv_lib_m_cacosf+set}" = set; then :
24119 $as_echo_n "(cached) " >&6
24120else
24121 ac_check_lib_save_LIBS=$LIBS
24122LIBS="-lm $LIBS"
24123if test x$gcc_no_link = xyes; then
24124 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24125fi
24126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24127/* end confdefs.h. */
24128
24129/* Override any GCC internal prototype to avoid an error.
24130 Use char because int might match the return type of a GCC
24131 builtin and then its argument prototype would still apply. */
24132#ifdef __cplusplus
24133extern "C"
24134#endif
24135char cacosf ();
24136int
24137main ()
24138{
24139return cacosf ();
24140 ;
24141 return 0;
24142}
24143_ACEOF
24144if ac_fn_c_try_link "$LINENO"; then :
24145 ac_cv_lib_m_cacosf=yes
24146else
24147 ac_cv_lib_m_cacosf=no
24148fi
24149rm -f core conftest.err conftest.$ac_objext \
24150 conftest$ac_exeext conftest.$ac_ext
24151LIBS=$ac_check_lib_save_LIBS
24152fi
24153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosf" >&5
24154$as_echo "$ac_cv_lib_m_cacosf" >&6; }
24155if test "x$ac_cv_lib_m_cacosf" = x""yes; then :
24156
24157$as_echo "#define HAVE_CACOSF 1" >>confdefs.h
24158
24159fi
24160
24161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh in -lm" >&5
24162$as_echo_n "checking for cacosh in -lm... " >&6; }
24163if test "${ac_cv_lib_m_cacosh+set}" = set; then :
24164 $as_echo_n "(cached) " >&6
24165else
24166 ac_check_lib_save_LIBS=$LIBS
24167LIBS="-lm $LIBS"
24168if test x$gcc_no_link = xyes; then
24169 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24170fi
24171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172/* end confdefs.h. */
24173
24174/* Override any GCC internal prototype to avoid an error.
24175 Use char because int might match the return type of a GCC
24176 builtin and then its argument prototype would still apply. */
24177#ifdef __cplusplus
24178extern "C"
24179#endif
24180char cacosh ();
24181int
24182main ()
24183{
24184return cacosh ();
24185 ;
24186 return 0;
24187}
24188_ACEOF
24189if ac_fn_c_try_link "$LINENO"; then :
24190 ac_cv_lib_m_cacosh=yes
24191else
24192 ac_cv_lib_m_cacosh=no
24193fi
24194rm -f core conftest.err conftest.$ac_objext \
24195 conftest$ac_exeext conftest.$ac_ext
24196LIBS=$ac_check_lib_save_LIBS
24197fi
24198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosh" >&5
24199$as_echo "$ac_cv_lib_m_cacosh" >&6; }
24200if test "x$ac_cv_lib_m_cacosh" = x""yes; then :
24201
24202$as_echo "#define HAVE_CACOSH 1" >>confdefs.h
24203
24204fi
24205
24206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf in -lm" >&5
24207$as_echo_n "checking for cacoshf in -lm... " >&6; }
24208if test "${ac_cv_lib_m_cacoshf+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24210else
24211 ac_check_lib_save_LIBS=$LIBS
24212LIBS="-lm $LIBS"
24213if test x$gcc_no_link = xyes; then
24214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24215fi
24216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24217/* end confdefs.h. */
24218
24219/* Override any GCC internal prototype to avoid an error.
24220 Use char because int might match the return type of a GCC
24221 builtin and then its argument prototype would still apply. */
24222#ifdef __cplusplus
24223extern "C"
24224#endif
24225char cacoshf ();
24226int
24227main ()
24228{
24229return cacoshf ();
24230 ;
24231 return 0;
24232}
24233_ACEOF
24234if ac_fn_c_try_link "$LINENO"; then :
24235 ac_cv_lib_m_cacoshf=yes
24236else
24237 ac_cv_lib_m_cacoshf=no
24238fi
24239rm -f core conftest.err conftest.$ac_objext \
24240 conftest$ac_exeext conftest.$ac_ext
24241LIBS=$ac_check_lib_save_LIBS
24242fi
24243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshf" >&5
24244$as_echo "$ac_cv_lib_m_cacoshf" >&6; }
24245if test "x$ac_cv_lib_m_cacoshf" = x""yes; then :
24246
24247$as_echo "#define HAVE_CACOSHF 1" >>confdefs.h
24248
24249fi
24250
24251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl in -lm" >&5
24252$as_echo_n "checking for cacoshl in -lm... " >&6; }
24253if test "${ac_cv_lib_m_cacoshl+set}" = set; then :
24254 $as_echo_n "(cached) " >&6
24255else
24256 ac_check_lib_save_LIBS=$LIBS
24257LIBS="-lm $LIBS"
24258if test x$gcc_no_link = xyes; then
24259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24260fi
24261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24262/* end confdefs.h. */
24263
24264/* Override any GCC internal prototype to avoid an error.
24265 Use char because int might match the return type of a GCC
24266 builtin and then its argument prototype would still apply. */
24267#ifdef __cplusplus
24268extern "C"
24269#endif
24270char cacoshl ();
24271int
24272main ()
24273{
24274return cacoshl ();
24275 ;
24276 return 0;
24277}
24278_ACEOF
24279if ac_fn_c_try_link "$LINENO"; then :
24280 ac_cv_lib_m_cacoshl=yes
24281else
24282 ac_cv_lib_m_cacoshl=no
24283fi
24284rm -f core conftest.err conftest.$ac_objext \
24285 conftest$ac_exeext conftest.$ac_ext
24286LIBS=$ac_check_lib_save_LIBS
24287fi
24288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshl" >&5
24289$as_echo "$ac_cv_lib_m_cacoshl" >&6; }
24290if test "x$ac_cv_lib_m_cacoshl" = x""yes; then :
24291
24292$as_echo "#define HAVE_CACOSHL 1" >>confdefs.h
24293
24294fi
24295
24296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl in -lm" >&5
24297$as_echo_n "checking for cacosl in -lm... " >&6; }
24298if test "${ac_cv_lib_m_cacosl+set}" = set; then :
24299 $as_echo_n "(cached) " >&6
24300else
24301 ac_check_lib_save_LIBS=$LIBS
24302LIBS="-lm $LIBS"
24303if test x$gcc_no_link = xyes; then
24304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24305fi
24306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24307/* end confdefs.h. */
24308
24309/* Override any GCC internal prototype to avoid an error.
24310 Use char because int might match the return type of a GCC
24311 builtin and then its argument prototype would still apply. */
24312#ifdef __cplusplus
24313extern "C"
24314#endif
24315char cacosl ();
24316int
24317main ()
24318{
24319return cacosl ();
24320 ;
24321 return 0;
24322}
24323_ACEOF
24324if ac_fn_c_try_link "$LINENO"; then :
24325 ac_cv_lib_m_cacosl=yes
24326else
24327 ac_cv_lib_m_cacosl=no
24328fi
24329rm -f core conftest.err conftest.$ac_objext \
24330 conftest$ac_exeext conftest.$ac_ext
24331LIBS=$ac_check_lib_save_LIBS
24332fi
24333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosl" >&5
24334$as_echo "$ac_cv_lib_m_cacosl" >&6; }
24335if test "x$ac_cv_lib_m_cacosl" = x""yes; then :
24336
24337$as_echo "#define HAVE_CACOSL 1" >>confdefs.h
24338
24339fi
24340
24341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin in -lm" >&5
24342$as_echo_n "checking for casin in -lm... " >&6; }
24343if test "${ac_cv_lib_m_casin+set}" = set; then :
24344 $as_echo_n "(cached) " >&6
24345else
24346 ac_check_lib_save_LIBS=$LIBS
24347LIBS="-lm $LIBS"
24348if test x$gcc_no_link = xyes; then
24349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24350fi
24351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24352/* end confdefs.h. */
24353
24354/* Override any GCC internal prototype to avoid an error.
24355 Use char because int might match the return type of a GCC
24356 builtin and then its argument prototype would still apply. */
24357#ifdef __cplusplus
24358extern "C"
24359#endif
24360char casin ();
24361int
24362main ()
24363{
24364return casin ();
24365 ;
24366 return 0;
24367}
24368_ACEOF
24369if ac_fn_c_try_link "$LINENO"; then :
24370 ac_cv_lib_m_casin=yes
24371else
24372 ac_cv_lib_m_casin=no
24373fi
24374rm -f core conftest.err conftest.$ac_objext \
24375 conftest$ac_exeext conftest.$ac_ext
24376LIBS=$ac_check_lib_save_LIBS
24377fi
24378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casin" >&5
24379$as_echo "$ac_cv_lib_m_casin" >&6; }
24380if test "x$ac_cv_lib_m_casin" = x""yes; then :
24381
24382$as_echo "#define HAVE_CASIN 1" >>confdefs.h
24383
24384fi
24385
24386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf in -lm" >&5
24387$as_echo_n "checking for casinf in -lm... " >&6; }
24388if test "${ac_cv_lib_m_casinf+set}" = set; then :
24389 $as_echo_n "(cached) " >&6
24390else
24391 ac_check_lib_save_LIBS=$LIBS
24392LIBS="-lm $LIBS"
24393if test x$gcc_no_link = xyes; then
24394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24395fi
24396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24397/* end confdefs.h. */
24398
24399/* Override any GCC internal prototype to avoid an error.
24400 Use char because int might match the return type of a GCC
24401 builtin and then its argument prototype would still apply. */
24402#ifdef __cplusplus
24403extern "C"
24404#endif
24405char casinf ();
24406int
24407main ()
24408{
24409return casinf ();
24410 ;
24411 return 0;
24412}
24413_ACEOF
24414if ac_fn_c_try_link "$LINENO"; then :
24415 ac_cv_lib_m_casinf=yes
24416else
24417 ac_cv_lib_m_casinf=no
24418fi
24419rm -f core conftest.err conftest.$ac_objext \
24420 conftest$ac_exeext conftest.$ac_ext
24421LIBS=$ac_check_lib_save_LIBS
24422fi
24423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinf" >&5
24424$as_echo "$ac_cv_lib_m_casinf" >&6; }
24425if test "x$ac_cv_lib_m_casinf" = x""yes; then :
24426
24427$as_echo "#define HAVE_CASINF 1" >>confdefs.h
24428
24429fi
24430
24431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh in -lm" >&5
24432$as_echo_n "checking for casinh in -lm... " >&6; }
24433if test "${ac_cv_lib_m_casinh+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24435else
24436 ac_check_lib_save_LIBS=$LIBS
24437LIBS="-lm $LIBS"
24438if test x$gcc_no_link = xyes; then
24439 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24440fi
24441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24442/* end confdefs.h. */
24443
24444/* Override any GCC internal prototype to avoid an error.
24445 Use char because int might match the return type of a GCC
24446 builtin and then its argument prototype would still apply. */
24447#ifdef __cplusplus
24448extern "C"
24449#endif
24450char casinh ();
24451int
24452main ()
24453{
24454return casinh ();
24455 ;
24456 return 0;
24457}
24458_ACEOF
24459if ac_fn_c_try_link "$LINENO"; then :
24460 ac_cv_lib_m_casinh=yes
24461else
24462 ac_cv_lib_m_casinh=no
24463fi
24464rm -f core conftest.err conftest.$ac_objext \
24465 conftest$ac_exeext conftest.$ac_ext
24466LIBS=$ac_check_lib_save_LIBS
24467fi
24468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinh" >&5
24469$as_echo "$ac_cv_lib_m_casinh" >&6; }
24470if test "x$ac_cv_lib_m_casinh" = x""yes; then :
24471
24472$as_echo "#define HAVE_CASINH 1" >>confdefs.h
24473
24474fi
24475
24476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf in -lm" >&5
24477$as_echo_n "checking for casinhf in -lm... " >&6; }
24478if test "${ac_cv_lib_m_casinhf+set}" = set; then :
24479 $as_echo_n "(cached) " >&6
24480else
24481 ac_check_lib_save_LIBS=$LIBS
24482LIBS="-lm $LIBS"
24483if test x$gcc_no_link = xyes; then
24484 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24485fi
24486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24487/* end confdefs.h. */
24488
24489/* Override any GCC internal prototype to avoid an error.
24490 Use char because int might match the return type of a GCC
24491 builtin and then its argument prototype would still apply. */
24492#ifdef __cplusplus
24493extern "C"
24494#endif
24495char casinhf ();
24496int
24497main ()
24498{
24499return casinhf ();
24500 ;
24501 return 0;
24502}
24503_ACEOF
24504if ac_fn_c_try_link "$LINENO"; then :
24505 ac_cv_lib_m_casinhf=yes
24506else
24507 ac_cv_lib_m_casinhf=no
24508fi
24509rm -f core conftest.err conftest.$ac_objext \
24510 conftest$ac_exeext conftest.$ac_ext
24511LIBS=$ac_check_lib_save_LIBS
24512fi
24513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhf" >&5
24514$as_echo "$ac_cv_lib_m_casinhf" >&6; }
24515if test "x$ac_cv_lib_m_casinhf" = x""yes; then :
24516
24517$as_echo "#define HAVE_CASINHF 1" >>confdefs.h
24518
24519fi
24520
24521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl in -lm" >&5
24522$as_echo_n "checking for casinhl in -lm... " >&6; }
24523if test "${ac_cv_lib_m_casinhl+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24525else
24526 ac_check_lib_save_LIBS=$LIBS
24527LIBS="-lm $LIBS"
24528if test x$gcc_no_link = xyes; then
24529 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24530fi
24531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24532/* end confdefs.h. */
24533
24534/* Override any GCC internal prototype to avoid an error.
24535 Use char because int might match the return type of a GCC
24536 builtin and then its argument prototype would still apply. */
24537#ifdef __cplusplus
24538extern "C"
24539#endif
24540char casinhl ();
24541int
24542main ()
24543{
24544return casinhl ();
24545 ;
24546 return 0;
24547}
24548_ACEOF
24549if ac_fn_c_try_link "$LINENO"; then :
24550 ac_cv_lib_m_casinhl=yes
24551else
24552 ac_cv_lib_m_casinhl=no
24553fi
24554rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
24556LIBS=$ac_check_lib_save_LIBS
24557fi
24558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhl" >&5
24559$as_echo "$ac_cv_lib_m_casinhl" >&6; }
24560if test "x$ac_cv_lib_m_casinhl" = x""yes; then :
24561
24562$as_echo "#define HAVE_CASINHL 1" >>confdefs.h
24563
24564fi
24565
24566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl in -lm" >&5
24567$as_echo_n "checking for casinl in -lm... " >&6; }
24568if test "${ac_cv_lib_m_casinl+set}" = set; then :
24569 $as_echo_n "(cached) " >&6
24570else
24571 ac_check_lib_save_LIBS=$LIBS
24572LIBS="-lm $LIBS"
24573if test x$gcc_no_link = xyes; then
24574 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24575fi
24576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24577/* end confdefs.h. */
24578
24579/* Override any GCC internal prototype to avoid an error.
24580 Use char because int might match the return type of a GCC
24581 builtin and then its argument prototype would still apply. */
24582#ifdef __cplusplus
24583extern "C"
24584#endif
24585char casinl ();
24586int
24587main ()
24588{
24589return casinl ();
24590 ;
24591 return 0;
24592}
24593_ACEOF
24594if ac_fn_c_try_link "$LINENO"; then :
24595 ac_cv_lib_m_casinl=yes
24596else
24597 ac_cv_lib_m_casinl=no
24598fi
24599rm -f core conftest.err conftest.$ac_objext \
24600 conftest$ac_exeext conftest.$ac_ext
24601LIBS=$ac_check_lib_save_LIBS
24602fi
24603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinl" >&5
24604$as_echo "$ac_cv_lib_m_casinl" >&6; }
24605if test "x$ac_cv_lib_m_casinl" = x""yes; then :
24606
24607$as_echo "#define HAVE_CASINL 1" >>confdefs.h
24608
24609fi
24610
24611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan in -lm" >&5
24612$as_echo_n "checking for catan in -lm... " >&6; }
24613if test "${ac_cv_lib_m_catan+set}" = set; then :
24614 $as_echo_n "(cached) " >&6
24615else
24616 ac_check_lib_save_LIBS=$LIBS
24617LIBS="-lm $LIBS"
24618if test x$gcc_no_link = xyes; then
24619 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24620fi
24621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24622/* end confdefs.h. */
24623
24624/* Override any GCC internal prototype to avoid an error.
24625 Use char because int might match the return type of a GCC
24626 builtin and then its argument prototype would still apply. */
24627#ifdef __cplusplus
24628extern "C"
24629#endif
24630char catan ();
24631int
24632main ()
24633{
24634return catan ();
24635 ;
24636 return 0;
24637}
24638_ACEOF
24639if ac_fn_c_try_link "$LINENO"; then :
24640 ac_cv_lib_m_catan=yes
24641else
24642 ac_cv_lib_m_catan=no
24643fi
24644rm -f core conftest.err conftest.$ac_objext \
24645 conftest$ac_exeext conftest.$ac_ext
24646LIBS=$ac_check_lib_save_LIBS
24647fi
24648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catan" >&5
24649$as_echo "$ac_cv_lib_m_catan" >&6; }
24650if test "x$ac_cv_lib_m_catan" = x""yes; then :
24651
24652$as_echo "#define HAVE_CATAN 1" >>confdefs.h
24653
24654fi
24655
24656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf in -lm" >&5
24657$as_echo_n "checking for catanf in -lm... " >&6; }
24658if test "${ac_cv_lib_m_catanf+set}" = set; then :
24659 $as_echo_n "(cached) " >&6
24660else
24661 ac_check_lib_save_LIBS=$LIBS
24662LIBS="-lm $LIBS"
24663if test x$gcc_no_link = xyes; then
24664 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24665fi
24666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667/* end confdefs.h. */
24668
24669/* Override any GCC internal prototype to avoid an error.
24670 Use char because int might match the return type of a GCC
24671 builtin and then its argument prototype would still apply. */
24672#ifdef __cplusplus
24673extern "C"
24674#endif
24675char catanf ();
24676int
24677main ()
24678{
24679return catanf ();
24680 ;
24681 return 0;
24682}
24683_ACEOF
24684if ac_fn_c_try_link "$LINENO"; then :
24685 ac_cv_lib_m_catanf=yes
24686else
24687 ac_cv_lib_m_catanf=no
24688fi
24689rm -f core conftest.err conftest.$ac_objext \
24690 conftest$ac_exeext conftest.$ac_ext
24691LIBS=$ac_check_lib_save_LIBS
24692fi
24693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanf" >&5
24694$as_echo "$ac_cv_lib_m_catanf" >&6; }
24695if test "x$ac_cv_lib_m_catanf" = x""yes; then :
24696
24697$as_echo "#define HAVE_CATANF 1" >>confdefs.h
24698
24699fi
24700
24701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh in -lm" >&5
24702$as_echo_n "checking for catanh in -lm... " >&6; }
24703if test "${ac_cv_lib_m_catanh+set}" = set; then :
24704 $as_echo_n "(cached) " >&6
24705else
24706 ac_check_lib_save_LIBS=$LIBS
24707LIBS="-lm $LIBS"
24708if test x$gcc_no_link = xyes; then
24709 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24710fi
24711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712/* end confdefs.h. */
24713
24714/* Override any GCC internal prototype to avoid an error.
24715 Use char because int might match the return type of a GCC
24716 builtin and then its argument prototype would still apply. */
24717#ifdef __cplusplus
24718extern "C"
24719#endif
24720char catanh ();
24721int
24722main ()
24723{
24724return catanh ();
24725 ;
24726 return 0;
24727}
24728_ACEOF
24729if ac_fn_c_try_link "$LINENO"; then :
24730 ac_cv_lib_m_catanh=yes
24731else
24732 ac_cv_lib_m_catanh=no
24733fi
24734rm -f core conftest.err conftest.$ac_objext \
24735 conftest$ac_exeext conftest.$ac_ext
24736LIBS=$ac_check_lib_save_LIBS
24737fi
24738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanh" >&5
24739$as_echo "$ac_cv_lib_m_catanh" >&6; }
24740if test "x$ac_cv_lib_m_catanh" = x""yes; then :
24741
24742$as_echo "#define HAVE_CATANH 1" >>confdefs.h
24743
24744fi
24745
24746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf in -lm" >&5
24747$as_echo_n "checking for catanhf in -lm... " >&6; }
24748if test "${ac_cv_lib_m_catanhf+set}" = set; then :
24749 $as_echo_n "(cached) " >&6
24750else
24751 ac_check_lib_save_LIBS=$LIBS
24752LIBS="-lm $LIBS"
24753if test x$gcc_no_link = xyes; then
24754 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24755fi
24756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757/* end confdefs.h. */
24758
24759/* Override any GCC internal prototype to avoid an error.
24760 Use char because int might match the return type of a GCC
24761 builtin and then its argument prototype would still apply. */
24762#ifdef __cplusplus
24763extern "C"
24764#endif
24765char catanhf ();
24766int
24767main ()
24768{
24769return catanhf ();
24770 ;
24771 return 0;
24772}
24773_ACEOF
24774if ac_fn_c_try_link "$LINENO"; then :
24775 ac_cv_lib_m_catanhf=yes
24776else
24777 ac_cv_lib_m_catanhf=no
24778fi
24779rm -f core conftest.err conftest.$ac_objext \
24780 conftest$ac_exeext conftest.$ac_ext
24781LIBS=$ac_check_lib_save_LIBS
24782fi
24783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhf" >&5
24784$as_echo "$ac_cv_lib_m_catanhf" >&6; }
24785if test "x$ac_cv_lib_m_catanhf" = x""yes; then :
24786
24787$as_echo "#define HAVE_CATANHF 1" >>confdefs.h
24788
24789fi
24790
24791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl in -lm" >&5
24792$as_echo_n "checking for catanhl in -lm... " >&6; }
24793if test "${ac_cv_lib_m_catanhl+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24795else
24796 ac_check_lib_save_LIBS=$LIBS
24797LIBS="-lm $LIBS"
24798if test x$gcc_no_link = xyes; then
24799 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24800fi
24801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24802/* end confdefs.h. */
24803
24804/* Override any GCC internal prototype to avoid an error.
24805 Use char because int might match the return type of a GCC
24806 builtin and then its argument prototype would still apply. */
24807#ifdef __cplusplus
24808extern "C"
24809#endif
24810char catanhl ();
24811int
24812main ()
24813{
24814return catanhl ();
24815 ;
24816 return 0;
24817}
24818_ACEOF
24819if ac_fn_c_try_link "$LINENO"; then :
24820 ac_cv_lib_m_catanhl=yes
24821else
24822 ac_cv_lib_m_catanhl=no
24823fi
24824rm -f core conftest.err conftest.$ac_objext \
24825 conftest$ac_exeext conftest.$ac_ext
24826LIBS=$ac_check_lib_save_LIBS
24827fi
24828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhl" >&5
24829$as_echo "$ac_cv_lib_m_catanhl" >&6; }
24830if test "x$ac_cv_lib_m_catanhl" = x""yes; then :
24831
24832$as_echo "#define HAVE_CATANHL 1" >>confdefs.h
24833
24834fi
24835
24836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl in -lm" >&5
24837$as_echo_n "checking for catanl in -lm... " >&6; }
24838if test "${ac_cv_lib_m_catanl+set}" = set; then :
24839 $as_echo_n "(cached) " >&6
24840else
24841 ac_check_lib_save_LIBS=$LIBS
24842LIBS="-lm $LIBS"
24843if test x$gcc_no_link = xyes; then
24844 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24845fi
24846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24847/* end confdefs.h. */
24848
24849/* Override any GCC internal prototype to avoid an error.
24850 Use char because int might match the return type of a GCC
24851 builtin and then its argument prototype would still apply. */
24852#ifdef __cplusplus
24853extern "C"
24854#endif
24855char catanl ();
24856int
24857main ()
24858{
24859return catanl ();
24860 ;
24861 return 0;
24862}
24863_ACEOF
24864if ac_fn_c_try_link "$LINENO"; then :
24865 ac_cv_lib_m_catanl=yes
24866else
24867 ac_cv_lib_m_catanl=no
24868fi
24869rm -f core conftest.err conftest.$ac_objext \
24870 conftest$ac_exeext conftest.$ac_ext
24871LIBS=$ac_check_lib_save_LIBS
24872fi
24873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanl" >&5
24874$as_echo "$ac_cv_lib_m_catanl" >&6; }
24875if test "x$ac_cv_lib_m_catanl" = x""yes; then :
24876
24877$as_echo "#define HAVE_CATANL 1" >>confdefs.h
24878
24879fi
24880
24881
118ea208 24882# On AIX, clog is present in libm as __clog
5213506e
RW
24883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
24884$as_echo_n "checking for __clog in -lm... " >&6; }
24885if test "${ac_cv_lib_m___clog+set}" = set; then :
24886 $as_echo_n "(cached) " >&6
e097b4f1
DE
24887else
24888 ac_check_lib_save_LIBS=$LIBS
24889LIBS="-lm $LIBS"
24890if test x$gcc_no_link = xyes; then
5213506e 24891 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e097b4f1 24892fi
5213506e 24893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e097b4f1
DE
24894/* end confdefs.h. */
24895
5213506e
RW
24896/* Override any GCC internal prototype to avoid an error.
24897 Use char because int might match the return type of a GCC
24898 builtin and then its argument prototype would still apply. */
e097b4f1
DE
24899#ifdef __cplusplus
24900extern "C"
24901#endif
e097b4f1
DE
24902char __clog ();
24903int
24904main ()
24905{
5213506e 24906return __clog ();
e097b4f1
DE
24907 ;
24908 return 0;
24909}
24910_ACEOF
5213506e 24911if ac_fn_c_try_link "$LINENO"; then :
e097b4f1
DE
24912 ac_cv_lib_m___clog=yes
24913else
5213506e 24914 ac_cv_lib_m___clog=no
e097b4f1 24915fi
5213506e
RW
24916rm -f core conftest.err conftest.$ac_objext \
24917 conftest$ac_exeext conftest.$ac_ext
e097b4f1
DE
24918LIBS=$ac_check_lib_save_LIBS
24919fi
5213506e
RW
24920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
24921$as_echo "$ac_cv_lib_m___clog" >&6; }
24922if test "x$ac_cv_lib_m___clog" = x""yes; then :
e097b4f1 24923
5213506e 24924$as_echo "#define HAVE_CLOG 1" >>confdefs.h
e097b4f1
DE
24925
24926fi
24927
24928
ad238e4f
FXC
24929# Check whether the system has a working stat()
24930
5213506e
RW
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
24932$as_echo_n "checking whether the target stat is reliable... " >&6; }
24933if test "${libgfor_cv_have_working_stat+set}" = set; then :
24934 $as_echo_n "(cached) " >&6
ad238e4f
FXC
24935else
24936
5213506e 24937 if test "$cross_compiling" = yes; then :
ad238e4f
FXC
24938
24939case "${target}" in
6d26724a
RW
24940 *mingw*) libgfor_cv_have_working_stat=no ;;
24941 *) libgfor_cv_have_working_stat=yes;;
ad238e4f
FXC
24942esac
24943else
5213506e 24944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad238e4f
FXC
24945/* end confdefs.h. */
24946
24947#include <stdio.h>
24948#include <sys/types.h>
24949#include <sys/stat.h>
24950#include <unistd.h>
24951
24952int main ()
24953{
24954 FILE *f, *g;
24955 struct stat st1, st2;
24956
24957 f = fopen ("foo", "w");
24958 g = fopen ("bar", "w");
24959 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
24960 return 1;
24961 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
24962 return 1;
24963 fclose(f);
24964 fclose(g);
24965 return 0;
24966}
24967_ACEOF
5213506e 24968if ac_fn_c_try_run "$LINENO"; then :
6d26724a 24969 libgfor_cv_have_working_stat=yes
ad238e4f 24970else
5213506e 24971 libgfor_cv_have_working_stat=no
ad238e4f 24972fi
5213506e
RW
24973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24974 conftest.$ac_objext conftest.beam conftest.$ac_ext
ad238e4f 24975fi
5213506e 24976
ad238e4f 24977fi
5213506e
RW
24978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
24979$as_echo "$libgfor_cv_have_working_stat" >&6; }
6d26724a 24980if test x"$libgfor_cv_have_working_stat" = xyes; then
ad238e4f 24981
5213506e 24982$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
ad238e4f
FXC
24983
24984fi
24985
db8092dc
FXC
24986# Check whether __mingw_snprintf() is present
24987
5213506e
RW
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
24989$as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
24990if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
24991 $as_echo_n "(cached) " >&6
db8092dc
FXC
24992else
24993
24994 if test x$gcc_no_link = xyes; then
5213506e 24995 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
db8092dc 24996fi
5213506e 24997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
db8092dc
FXC
24998/* end confdefs.h. */
24999
25000#include <stdio.h>
25001extern int __mingw_snprintf (char *, size_t, const char *, ...);
25002
25003int
25004main ()
25005{
25006
25007__mingw_snprintf (NULL, 0, "%d\n", 1);
25008
25009 ;
25010 return 0;
25011}
25012_ACEOF
5213506e 25013if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25014 eval "libgfor_cv_have_mingw_snprintf=yes"
db8092dc 25015else
5213506e 25016 eval "libgfor_cv_have_mingw_snprintf=no"
db8092dc 25017fi
5213506e
RW
25018rm -f core conftest.err conftest.$ac_objext \
25019 conftest$ac_exeext conftest.$ac_ext
db8092dc
FXC
25020
25021fi
5213506e
RW
25022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25023$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
6d26724a 25024 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
db8092dc 25025
5213506e 25026$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
db8092dc
FXC
25027
25028 fi
25029
25030
c0c3c409
JDA
25031# Check for a broken powf implementation
25032
5213506e
RW
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether powf is broken" >&5
25034$as_echo_n "checking whether powf is broken... " >&6; }
25035if test "${libgfor_cv_have_broken_powf+set}" = set; then :
25036 $as_echo_n "(cached) " >&6
c0c3c409
JDA
25037else
25038
25039case "${target}" in
25040 hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
25041 *) libgfor_cv_have_broken_powf=no;;
25042esac
25043fi
5213506e
RW
25044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_powf" >&5
25045$as_echo "$libgfor_cv_have_broken_powf" >&6; }
c0c3c409
JDA
25046 if test x"$libgfor_cv_have_broken_powf" = xyes; then
25047
5213506e 25048$as_echo "#define HAVE_BROKEN_POWF 1" >>confdefs.h
c0c3c409
JDA
25049
25050 fi
25051
25052
87e6d9dc
TB
25053# Check whether libquadmath should be used
25054# Check whether --enable-libquadmath-support was given.
25055if test "${enable_libquadmath_support+set}" = set; then :
25056 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25057else
25058 ENABLE_LIBQUADMATH_SUPPORT=yes
25059fi
25060
25061enable_libquadmath_support=
25062if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25063 enable_libquadmath_support=no
25064fi
25065
25066# Check whether we have a __float128 type, depends on enable_libquadmath_support
1ec601bf
FXC
25067
25068 LIBQUADSPEC=
87e6d9dc
TB
25069
25070 if test "x$enable_libquadmath_support" != xno; then
25071
1ec601bf
FXC
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25073$as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25074if test "${libgfor_cv_have_float128+set}" = set; then :
25075 $as_echo_n "(cached) " >&6
25076else
25077
25078 if test x$gcc_no_link = xyes; then
25079 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25080fi
25081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25082/* end confdefs.h. */
25083
25084/* no header */
25085
25086int
25087main ()
25088{
25089
25090 typedef _Complex float __attribute__((mode(TC))) __complex128;
25091
25092 __float128 x;
25093 x = __builtin_huge_valq() - 2.e1000Q;
25094
25095 __complex128 z1, z2;
25096 z1 = x;
25097 z2 = 2.Q;
25098
25099 z1 /= z2;
25100 z1 /= 7.Q;
25101
25102 ;
25103 return 0;
25104}
25105_ACEOF
25106if ac_fn_c_try_link "$LINENO"; then :
25107 libgfor_cv_have_float128=yes
25108else
25109 libgfor_cv_have_float128=no
25110fi
25111rm -f core conftest.err conftest.$ac_objext \
25112 conftest$ac_exeext conftest.$ac_ext
25113
25114fi
25115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25116$as_echo "$libgfor_cv_have_float128" >&6; }
25117
25118 if test "x$libgfor_cv_have_float128" = xyes; then
25119
25120$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25121
25122
25123 ac_xsave_c_werror_flag=$ac_c_werror_flag
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed works" >&5
25125$as_echo_n "checking whether --as-needed works... " >&6; }
25126if test "${libgfor_cv_have_as_needed+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25128else
25129
25130 save_LDFLAGS="$LDFLAGS"
25131 LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed"
25132 libgfor_cv_have_as_needed=no
25133
25134ac_c_werror_flag=yes
25135 if test x$gcc_no_link = xyes; then
25136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25137fi
25138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25139/* end confdefs.h. */
25140
25141int
25142main ()
25143{
25144
25145 ;
25146 return 0;
25147}
25148_ACEOF
25149if ac_fn_c_try_link "$LINENO"; then :
25150 libgfor_cv_have_as_needed=yes
25151else
25152 libgfor_cv_have_as_needed=no
25153fi
25154rm -f core conftest.err conftest.$ac_objext \
25155 conftest$ac_exeext conftest.$ac_ext
25156 LDFLAGS="$save_LDFLAGS"
25157 ac_c_werror_flag=$ac_xsave_c_werror_flag
25158
25159fi
25160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25161$as_echo "$libgfor_cv_have_as_needed" >&6; }
25162
25163 if test "x$libgfor_cv_have_as_needed" = xyes; then
25164 LIBQUADSPEC="%{static-libgfortran:--as-needed} -lquadmath %{static-libgfortran:--no-as-needed}"
25165 else
25166 LIBQUADSPEC="-lquadmath"
25167 fi
25168 if test -f ../libquadmath/libquadmath.la; then
25169 LIBQUADLIB=../libquadmath/libquadmath.la
25170 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25171 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25172 else
25173 LIBQUADLIB="-lquadmath"
25174 LIBQUADLIB_DEP=
25175 LIBQUADINCLUDE=
25176 fi
25177 fi
87e6d9dc
TB
25178 else
25179 # for --disable-quadmath
25180 LIBQUADLIB=
25181 LIBQUADLIB_DEP=
25182 LIBQUADINCLUDE=
25183 fi
1ec601bf
FXC
25184
25185
25186
25187
25188
25189
25190 if test "x$libgfor_cv_have_float128" = xyes; then
25191 LIBGFOR_BUILD_QUAD_TRUE=
25192 LIBGFOR_BUILD_QUAD_FALSE='#'
25193else
25194 LIBGFOR_BUILD_QUAD_TRUE='#'
25195 LIBGFOR_BUILD_QUAD_FALSE=
25196fi
25197
25198
25199
944b8b35 25200# Check for GNU libc feenableexcept
5213506e
RW
25201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25202$as_echo_n "checking for feenableexcept in -lm... " >&6; }
25203if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
944b8b35
FXC
25205else
25206 ac_check_lib_save_LIBS=$LIBS
25207LIBS="-lm $LIBS"
25208if test x$gcc_no_link = xyes; then
5213506e 25209 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
944b8b35 25210fi
5213506e 25211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
944b8b35
FXC
25212/* end confdefs.h. */
25213
5213506e
RW
25214/* Override any GCC internal prototype to avoid an error.
25215 Use char because int might match the return type of a GCC
25216 builtin and then its argument prototype would still apply. */
944b8b35
FXC
25217#ifdef __cplusplus
25218extern "C"
25219#endif
944b8b35
FXC
25220char feenableexcept ();
25221int
25222main ()
25223{
5213506e 25224return feenableexcept ();
944b8b35
FXC
25225 ;
25226 return 0;
25227}
25228_ACEOF
5213506e 25229if ac_fn_c_try_link "$LINENO"; then :
944b8b35
FXC
25230 ac_cv_lib_m_feenableexcept=yes
25231else
5213506e 25232 ac_cv_lib_m_feenableexcept=no
944b8b35 25233fi
5213506e
RW
25234rm -f core conftest.err conftest.$ac_objext \
25235 conftest$ac_exeext conftest.$ac_ext
944b8b35
FXC
25236LIBS=$ac_check_lib_save_LIBS
25237fi
5213506e
RW
25238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25239$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25240if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
944b8b35 25241 have_feenableexcept=yes
5213506e 25242$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
3b14f664
FXC
25243
25244fi
25245
3b14f664 25246
b6e7a3d1
JB
25247# At least for glibc, clock_gettime is in librt. But don't pull that
25248# in if it still doesn't give us the function we want.
aa837470
JB
25249# This test is copied from libgomp, and modified to not link in -lrt
25250# as libgfortran calls clock_gettime via a weak reference.
b6e7a3d1
JB
25251if test $ac_cv_func_clock_gettime = no; then
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25253$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25254if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25255 $as_echo_n "(cached) " >&6
25256else
25257 ac_check_lib_save_LIBS=$LIBS
25258LIBS="-lrt $LIBS"
25259if test x$gcc_no_link = xyes; then
25260 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25261fi
25262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25263/* end confdefs.h. */
25264
25265/* Override any GCC internal prototype to avoid an error.
25266 Use char because int might match the return type of a GCC
25267 builtin and then its argument prototype would still apply. */
25268#ifdef __cplusplus
25269extern "C"
25270#endif
25271char clock_gettime ();
25272int
25273main ()
25274{
25275return clock_gettime ();
25276 ;
25277 return 0;
25278}
25279_ACEOF
25280if ac_fn_c_try_link "$LINENO"; then :
25281 ac_cv_lib_rt_clock_gettime=yes
25282else
25283 ac_cv_lib_rt_clock_gettime=no
25284fi
25285rm -f core conftest.err conftest.$ac_objext \
25286 conftest$ac_exeext conftest.$ac_ext
25287LIBS=$ac_check_lib_save_LIBS
25288fi
25289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25290$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25291if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
b6e7a3d1
JB
25292
25293$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25294
25295fi
25296
25297fi
25298
5213506e 25299# Check for SysV fpsetmask
3b14f664 25300
5213506e
RW
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25302$as_echo_n "checking whether fpsetmask is present... " >&6; }
25303if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25305else
3b14f664 25306
5213506e
RW
25307 if test x$gcc_no_link = xyes; then
25308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25309fi
25310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25311/* end confdefs.h. */
3b14f664 25312
5213506e
RW
25313#if HAVE_FLOATINGPOINT_H
25314# include <floatingpoint.h>
25315#endif /* HAVE_FLOATINGPOINT_H */
25316#if HAVE_IEEEFP_H
25317# include <ieeefp.h>
25318#endif /* HAVE_IEEEFP_H */
3b14f664
FXC
25319int
25320main ()
25321{
5213506e 25322fpsetmask(0);
3b14f664
FXC
25323 ;
25324 return 0;
25325}
25326_ACEOF
5213506e
RW
25327if ac_fn_c_try_link "$LINENO"; then :
25328 eval "libgfor_cv_have_fpsetmask=yes"
3b14f664 25329else
5213506e
RW
25330 eval "libgfor_cv_have_fpsetmask=no"
25331fi
25332rm -f core conftest.err conftest.$ac_objext \
25333 conftest$ac_exeext conftest.$ac_ext
3b14f664 25334
3b14f664 25335fi
5213506e
RW
25336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25337$as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25338 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25339
25340$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25341
25342 fi
25343
25344
25345# Check for AIX fp_trap and fp_enable
25346ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25347if test "x$ac_cv_func_fp_trap" = x""yes; then :
25348 have_fp_trap=yes
25349$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25350
3b14f664 25351fi
5213506e
RW
25352
25353ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25354if test "x$ac_cv_func_fp_enable" = x""yes; then :
3b14f664 25355 have_fp_enable=yes
5213506e 25356$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
3b14f664
FXC
25357
25358fi
25359
25360
944b8b35
FXC
25361# Runs configure.host to set up necessary host-dependent shell variables.
25362# We then display a message about it, and propagate them through the
25363# build chain.
25364. ${srcdir}/configure.host
5213506e
RW
25365{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25366$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
944b8b35
FXC
25367FPU_HOST_HEADER=config/${fpu_host}.h
25368
25369
9fc77574
KK
25370# Some targets require additional compiler options for IEEE compatibility.
25371IEEE_FLAGS="${ieee_flags}"
25372
25373
7d7b8bfe
RH
25374# Check out attribute support.
25375
5213506e
RW
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25377$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25378if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25379 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
25380else
25381
25382 save_CFLAGS="$CFLAGS"
25383 CFLAGS="$CFLAGS -Werror"
5213506e 25384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
25385/* end confdefs.h. */
25386void __attribute__((visibility("hidden"))) foo(void) { }
25387int
25388main ()
25389{
25390
25391 ;
25392 return 0;
25393}
25394_ACEOF
5213506e 25395if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 25396 libgfor_cv_have_attribute_visibility=yes
7d7b8bfe 25397else
5213506e 25398 libgfor_cv_have_attribute_visibility=no
7d7b8bfe 25399fi
5213506e 25400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
25401 CFLAGS="$save_CFLAGS"
25402fi
5213506e
RW
25403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25404$as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
6d26724a 25405 if test $libgfor_cv_have_attribute_visibility = yes; then
7d7b8bfe 25406
5213506e 25407$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
7d7b8bfe
RH
25408
25409 fi
25410
5213506e
RW
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
25412$as_echo_n "checking whether the target supports dllexport... " >&6; }
25413if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
25414 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
25415else
25416
25417 save_CFLAGS="$CFLAGS"
25418 CFLAGS="$CFLAGS -Werror"
5213506e 25419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
25420/* end confdefs.h. */
25421void __attribute__((dllexport)) foo(void) { }
25422int
25423main ()
25424{
25425
25426 ;
25427 return 0;
25428}
25429_ACEOF
5213506e 25430if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 25431 libgfor_cv_have_attribute_dllexport=yes
7d7b8bfe 25432else
5213506e 25433 libgfor_cv_have_attribute_dllexport=no
7d7b8bfe 25434fi
5213506e 25435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d7b8bfe
RH
25436 CFLAGS="$save_CFLAGS"
25437fi
5213506e
RW
25438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
25439$as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
6d26724a 25440 if test $libgfor_cv_have_attribute_dllexport = yes; then
7d7b8bfe 25441
5213506e 25442$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
7d7b8bfe
RH
25443
25444 fi
25445
5213506e
RW
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
25447$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
25448if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
25449 $as_echo_n "(cached) " >&6
7d7b8bfe
RH
25450else
25451
f02d008e 25452 if test x$gcc_no_link = xyes; then
5213506e 25453 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f02d008e 25454fi
5213506e 25455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d7b8bfe
RH
25456/* end confdefs.h. */
25457
7d7b8bfe 25458void foo(void) { }
16a314a9 25459extern void bar(void) __attribute__((alias("foo")));
7d7b8bfe
RH
25460int
25461main ()
25462{
25463bar();
25464 ;
25465 return 0;
25466}
25467_ACEOF
5213506e 25468if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25469 libgfor_cv_have_attribute_alias=yes
7d7b8bfe 25470else
5213506e 25471 libgfor_cv_have_attribute_alias=no
7d7b8bfe 25472fi
5213506e
RW
25473rm -f core conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
7d7b8bfe 25475fi
5213506e
RW
25476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
25477$as_echo "$libgfor_cv_have_attribute_alias" >&6; }
6d26724a 25478 if test $libgfor_cv_have_attribute_alias = yes; then
7d7b8bfe 25479
5213506e 25480$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
7d7b8bfe
RH
25481
25482 fi
25483
5e805e44
JJ
25484# Check out sync builtins support.
25485
5213506e
RW
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
25487$as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
25488if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
25489 $as_echo_n "(cached) " >&6
5e805e44
JJ
25490else
25491
25492 if test x$gcc_no_link = xyes; then
5213506e 25493 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5e805e44 25494fi
5213506e 25495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
25496/* end confdefs.h. */
25497int foovar = 0;
25498int
25499main ()
25500{
25501
25502if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
25503if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
25504 ;
25505 return 0;
25506}
25507_ACEOF
5213506e 25508if ac_fn_c_try_link "$LINENO"; then :
6d26724a 25509 libgfor_cv_have_sync_fetch_and_add=yes
5e805e44 25510else
5213506e 25511 libgfor_cv_have_sync_fetch_and_add=no
5e805e44 25512fi
5213506e
RW
25513rm -f core conftest.err conftest.$ac_objext \
25514 conftest$ac_exeext conftest.$ac_ext
5e805e44 25515fi
5213506e
RW
25516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
25517$as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
6d26724a 25518 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
5e805e44 25519
5213506e 25520$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
5e805e44
JJ
25521
25522 fi
25523
25524# Check out thread support.
25525
5213506e
RW
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured target thread model" >&5
25527$as_echo_n "checking configured target thread model... " >&6; }
25528if test "${libgfor_cv_target_thread_file+set}" = set; then :
25529 $as_echo_n "(cached) " >&6
5e805e44
JJ
25530else
25531
10465436 25532libgfor_cv_target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5e805e44 25533fi
5213506e
RW
25534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_target_thread_file" >&5
25535$as_echo "$libgfor_cv_target_thread_file" >&6; }
5e805e44 25536
10465436 25537 if test $libgfor_cv_target_thread_file != single; then
5e805e44 25538
5213506e 25539$as_echo "#define HAVE_GTHR_DEFAULT 1" >>confdefs.h
5e805e44
JJ
25540
25541 fi
25542
25543# Check out #pragma weak.
25544
5213506e
RW
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
25546$as_echo_n "checking whether pragma weak works... " >&6; }
25547if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
25548 $as_echo_n "(cached) " >&6
5e805e44
JJ
25549else
25550
25551 gfor_save_CFLAGS="$CFLAGS"
25552 CFLAGS="$CFLAGS -Wunknown-pragmas"
5213506e 25553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5e805e44
JJ
25554/* end confdefs.h. */
25555void foo (void);
25556#pragma weak foo
25557int
25558main ()
25559{
25560if (foo) foo ();
25561 ;
25562 return 0;
25563}
25564_ACEOF
5213506e 25565if ac_fn_c_try_compile "$LINENO"; then :
6d26724a 25566 libgfor_cv_have_pragma_weak=yes
5e805e44 25567else
5213506e 25568 libgfor_cv_have_pragma_weak=no
5e805e44 25569fi
5213506e 25570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e805e44 25571fi
5213506e
RW
25572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
25573$as_echo "$libgfor_cv_have_pragma_weak" >&6; }
6d26724a 25574 if test $libgfor_cv_have_pragma_weak = yes; then
5e805e44 25575
5213506e 25576$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
5e805e44
JJ
25577
25578 fi
e669bd2b 25579 case "$host" in
6e20eae9 25580 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
e669bd2b 25581
5213506e 25582$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
e669bd2b
JJ
25583
25584 ;;
25585 esac
5e805e44 25586
10c682a0
FXC
25587# Various other checks on target
25588
5213506e
RW
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
25590$as_echo_n "checking whether the target can unlink an open file... " >&6; }
25591if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
25592 $as_echo_n "(cached) " >&6
10c682a0
FXC
25593else
25594
5213506e 25595 if test "$cross_compiling" = yes; then :
10c682a0
FXC
25596
25597case "${target}" in
6d26724a
RW
25598 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
25599 *) libgfor_cv_have_unlink_open_file=yes;;
10c682a0
FXC
25600esac
25601else
5213506e 25602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10c682a0
FXC
25603/* end confdefs.h. */
25604
25605#include <errno.h>
25606#include <fcntl.h>
25607#include <unistd.h>
25608#include <sys/stat.h>
25609
25610int main ()
25611{
25612 int fd;
25613
25614 fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD);
25615 if (fd <= 0)
25616 return 0;
25617 if (unlink ("testfile") == -1)
25618 return 1;
25619 write (fd, "This is a test\n", 15);
25620 close (fd);
25621
25622 if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT)
25623 return 0;
25624 else
25625 return 1;
25626}
25627_ACEOF
5213506e 25628if ac_fn_c_try_run "$LINENO"; then :
6d26724a 25629 libgfor_cv_have_unlink_open_file=yes
10c682a0 25630else
5213506e 25631 libgfor_cv_have_unlink_open_file=no
10c682a0 25632fi
5213506e
RW
25633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25634 conftest.$ac_objext conftest.beam conftest.$ac_ext
10c682a0 25635fi
5213506e 25636
10c682a0 25637fi
5213506e
RW
25638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
25639$as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
6d26724a 25640if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
10c682a0 25641
5213506e 25642$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
10c682a0
FXC
25643
25644fi
25645
3c127520
FXC
25646# Check whether line terminator is LF or CRLF
25647
5213506e
RW
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
25649$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
25650if test "${libgfor_cv_have_crlf+set}" = set; then :
25651 $as_echo_n "(cached) " >&6
3c127520
FXC
25652else
25653
5213506e 25654 if test "$cross_compiling" = yes; then :
3c127520
FXC
25655
25656case "${target}" in
6d26724a
RW
25657 *mingw*) libgfor_cv_have_crlf=yes ;;
25658 *) libgfor_cv_have_crlf=no;;
3c127520
FXC
25659esac
25660else
5213506e 25661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3c127520
FXC
25662/* end confdefs.h. */
25663
25664/* This test program should exit with status 0 if system uses a CRLF as
25665 line terminator, and status 1 otherwise.
25666 Since it is used to check for mingw systems, and should return 0 in any
25667 other case, in case of a failure we will not use CRLF. */
25668#include <sys/stat.h>
25669#include <stdlib.h>
25670#include <fcntl.h>
25671#include <stdio.h>
25672
25673int main ()
25674{
25675#ifndef O_BINARY
25676 exit(1);
25677#else
25678 int fd, bytes;
25679 char buff[5];
25680
25681 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
25682 if (fd < 0)
25683 exit(1);
25684 if (write (fd, "\n", 1) < 0)
25685 perror ("write");
25686
25687 close (fd);
25688
25689 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
25690 exit(1);
25691 bytes = read (fd, buff, 5);
25692 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
25693 exit(0);
25694 else
25695 exit(1);
25696#endif
25697}
25698_ACEOF
5213506e 25699if ac_fn_c_try_run "$LINENO"; then :
6d26724a 25700 libgfor_cv_have_crlf=yes
3c127520 25701else
5213506e 25702 libgfor_cv_have_crlf=no
3c127520 25703fi
5213506e
RW
25704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25705 conftest.$ac_objext conftest.beam conftest.$ac_ext
3c127520 25706fi
5213506e 25707
3c127520 25708fi
5213506e
RW
25709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
25710$as_echo "$libgfor_cv_have_crlf" >&6; }
6d26724a 25711if test x"$libgfor_cv_have_crlf" = xyes; then
3c127520 25712
5213506e 25713$as_echo "#define HAVE_CRLF 1" >>confdefs.h
3c127520
FXC
25714
25715fi
25716
6de9cd9a
DN
25717cat >confcache <<\_ACEOF
25718# This file is a shell script that caches the results of configure
25719# tests run on this system so they can be shared between configure
25720# scripts and configure runs, see configure's option --config-cache.
25721# It is not useful on other systems. If it contains results you don't
25722# want to keep, you may remove or edit it.
25723#
25724# config.status only pays attention to the cache file if you give it
25725# the --recheck option to rerun configure.
25726#
25727# `ac_cv_env_foo' variables (set or unset) will be overridden when
25728# loading this file, other *unset* `ac_cv_foo' will be assigned the
25729# following values.
25730
25731_ACEOF
25732
25733# The following way of writing the cache mishandles newlines in values,
25734# but we know of no workaround that is simple, portable, and efficient.
5213506e 25735# So, we kill variables containing newlines.
6de9cd9a
DN
25736# Ultrix sh set writes to stderr and can't be redirected directly,
25737# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
25738(
25739 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25740 eval ac_val=\$$ac_var
25741 case $ac_val in #(
25742 *${as_nl}*)
25743 case $ac_var in #(
25744 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25745$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25746 esac
25747 case $ac_var in #(
25748 _ | IFS | as_nl) ;; #(
25749 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25750 *) { eval $ac_var=; unset $ac_var;} ;;
25751 esac ;;
25752 esac
25753 done
25754
6de9cd9a 25755 (set) 2>&1 |
5213506e
RW
25756 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25757 *${as_nl}ac_space=\ *)
25758 # `set' does not quote correctly, so add quotes: double-quote
25759 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
25760 sed -n \
25761 "s/'/'\\\\''/g;
25762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 25763 ;; #(
6de9cd9a
DN
25764 *)
25765 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 25766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 25767 ;;
5213506e
RW
25768 esac |
25769 sort
25770) |
6de9cd9a 25771 sed '
5213506e 25772 /^ac_cv_env_/b end
6de9cd9a 25773 t clear
5213506e 25774 :clear
6de9cd9a
DN
25775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25776 t end
5213506e
RW
25777 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25778 :end' >>confcache
25779if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25780 if test -w "$cache_file"; then
25781 test "x$cache_file" != "x/dev/null" &&
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25783$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
25784 cat confcache >$cache_file
25785 else
5213506e
RW
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25787$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
25788 fi
25789fi
25790rm -f confcache
25791
96b8a615
AJ
25792if test ${multilib} = yes; then
25793 multilib_arg="--enable-multilib"
6de9cd9a 25794else
96b8a615 25795 multilib_arg=
6de9cd9a 25796fi
6de9cd9a 25797
1ec601bf
FXC
25798# Write our Makefile and spec file.
25799ac_config_files="$ac_config_files Makefile libgfortran.spec"
96b8a615 25800
6de9cd9a
DN
25801cat >confcache <<\_ACEOF
25802# This file is a shell script that caches the results of configure
25803# tests run on this system so they can be shared between configure
25804# scripts and configure runs, see configure's option --config-cache.
25805# It is not useful on other systems. If it contains results you don't
25806# want to keep, you may remove or edit it.
25807#
25808# config.status only pays attention to the cache file if you give it
25809# the --recheck option to rerun configure.
25810#
25811# `ac_cv_env_foo' variables (set or unset) will be overridden when
25812# loading this file, other *unset* `ac_cv_foo' will be assigned the
25813# following values.
25814
25815_ACEOF
25816
25817# The following way of writing the cache mishandles newlines in values,
25818# but we know of no workaround that is simple, portable, and efficient.
5213506e 25819# So, we kill variables containing newlines.
6de9cd9a
DN
25820# Ultrix sh set writes to stderr and can't be redirected directly,
25821# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
25822(
25823 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25824 eval ac_val=\$$ac_var
25825 case $ac_val in #(
25826 *${as_nl}*)
25827 case $ac_var in #(
25828 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25829$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25830 esac
25831 case $ac_var in #(
25832 _ | IFS | as_nl) ;; #(
25833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25834 *) { eval $ac_var=; unset $ac_var;} ;;
25835 esac ;;
25836 esac
25837 done
25838
6de9cd9a 25839 (set) 2>&1 |
5213506e
RW
25840 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25841 *${as_nl}ac_space=\ *)
25842 # `set' does not quote correctly, so add quotes: double-quote
25843 # substitution turns \\\\ into \\, and sed turns \\ into \.
6de9cd9a
DN
25844 sed -n \
25845 "s/'/'\\\\''/g;
25846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 25847 ;; #(
6de9cd9a
DN
25848 *)
25849 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 25850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6de9cd9a 25851 ;;
5213506e
RW
25852 esac |
25853 sort
25854) |
6de9cd9a 25855 sed '
5213506e 25856 /^ac_cv_env_/b end
6de9cd9a 25857 t clear
5213506e 25858 :clear
6de9cd9a
DN
25859 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25860 t end
5213506e
RW
25861 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25862 :end' >>confcache
25863if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25864 if test -w "$cache_file"; then
25865 test "x$cache_file" != "x/dev/null" &&
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25867$as_echo "$as_me: updating cache $cache_file" >&6;}
6de9cd9a
DN
25868 cat confcache >$cache_file
25869 else
5213506e
RW
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25871$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6de9cd9a
DN
25872 fi
25873fi
25874rm -f confcache
25875
25876test "x$prefix" = xNONE && prefix=$ac_default_prefix
25877# Let make expand exec_prefix.
25878test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25879
6de9cd9a
DN
25880DEFS=-DHAVE_CONFIG_H
25881
25882ac_libobjs=
25883ac_ltlibobjs=
25884for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25885 # 1. Remove the extension, and $U if already installed.
5213506e
RW
25886 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25887 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25888 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25889 # will be set to the directory where LIBOBJS objects are built.
25890 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25891 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6de9cd9a
DN
25892done
25893LIBOBJS=$ac_libobjs
25894
25895LTLIBOBJS=$ac_ltlibobjs
25896
25897
b808ac33 25898if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
5213506e
RW
25899 as_fn_error "conditional \"onestep\" was never defined.
25900Usually this means the macro was only invoked conditionally." "$LINENO" 5
25901fi
25902 if test -n "$EXEEXT"; then
25903 am__EXEEXT_TRUE=
25904 am__EXEEXT_FALSE='#'
25905else
25906 am__EXEEXT_TRUE='#'
25907 am__EXEEXT_FALSE=
b808ac33 25908fi
5213506e 25909
6de9cd9a 25910if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
25911 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25912Usually this means the macro was only invoked conditionally." "$LINENO" 5
6de9cd9a 25913fi
679c0f9a 25914if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
25915 as_fn_error "conditional \"AMDEP\" was never defined.
25916Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a
TT
25917fi
25918if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
25919 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25920Usually this means the macro was only invoked conditionally." "$LINENO" 5
679c0f9a 25921fi
21be0a5a
JB
25922if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25923 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25924Usually this means the macro was only invoked conditionally." "$LINENO" 5
25925fi
c0e7e2bf 25926if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
5213506e
RW
25927 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
25928Usually this means the macro was only invoked conditionally." "$LINENO" 5
c0e7e2bf 25929fi
49ea7a0e
RO
25930if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
25931 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
25932Usually this means the macro was only invoked conditionally." "$LINENO" 5
25933fi
25934if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
25935 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
25936Usually this means the macro was only invoked conditionally." "$LINENO" 5
25937fi
1ec601bf
FXC
25938if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
25939 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
25940Usually this means the macro was only invoked conditionally." "$LINENO" 5
25941fi
6de9cd9a
DN
25942
25943: ${CONFIG_STATUS=./config.status}
5213506e 25944ac_write_fail=0
6de9cd9a
DN
25945ac_clean_files_save=$ac_clean_files
25946ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
25947{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25948$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25949as_write_fail=0
25950cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6de9cd9a
DN
25951#! $SHELL
25952# Generated by $as_me.
25953# Run this file to recreate the current configuration.
25954# Compiler output produced by configure, useful for debugging
25955# configure, is in config.log if it exists.
25956
25957debug=false
25958ac_cs_recheck=false
25959ac_cs_silent=false
6de9cd9a 25960
5213506e
RW
25961SHELL=\${CONFIG_SHELL-$SHELL}
25962export SHELL
25963_ASEOF
25964cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25965## -------------------- ##
25966## M4sh Initialization. ##
25967## -------------------- ##
25968
25969# Be more Bourne compatible
25970DUALCASE=1; export DUALCASE # for MKS sh
25971if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6de9cd9a
DN
25972 emulate sh
25973 NULLCMD=:
5213506e 25974 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6de9cd9a
DN
25975 # is contrary to our usage. Disable this feature.
25976 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
25977 setopt NO_GLOB_SUBST
25978else
25979 case `(set -o) 2>/dev/null` in #(
25980 *posix*) :
25981 set -o posix ;; #(
25982 *) :
25983 ;;
25984esac
6de9cd9a 25985fi
6de9cd9a 25986
5213506e
RW
25987
25988as_nl='
25989'
25990export as_nl
25991# Printing a long string crashes Solaris 7 /usr/bin/printf.
25992as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25993as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25994as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25995# Prefer a ksh shell builtin over an external printf program on Solaris,
25996# but without wasting forks for bash or zsh.
25997if test -z "$BASH_VERSION$ZSH_VERSION" \
25998 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25999 as_echo='print -r --'
26000 as_echo_n='print -rn --'
26001elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26002 as_echo='printf %s\n'
26003 as_echo_n='printf %s'
26004else
26005 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26006 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26007 as_echo_n='/usr/ucb/echo -n'
26008 else
26009 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26010 as_echo_n_body='eval
26011 arg=$1;
26012 case $arg in #(
26013 *"$as_nl"*)
26014 expr "X$arg" : "X\\(.*\\)$as_nl";
26015 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26016 esac;
26017 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26018 '
26019 export as_echo_n_body
26020 as_echo_n='sh -c $as_echo_n_body as_echo'
26021 fi
26022 export as_echo_body
26023 as_echo='sh -c $as_echo_body as_echo'
26024fi
26025
26026# The user is always right.
26027if test "${PATH_SEPARATOR+set}" != set; then
26028 PATH_SEPARATOR=:
26029 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26030 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26031 PATH_SEPARATOR=';'
26032 }
6de9cd9a
DN
26033fi
26034
26035
5213506e
RW
26036# IFS
26037# We need space, tab and new line, in precisely that order. Quoting is
26038# there to prevent editors from complaining about space-tab.
26039# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26040# splitting by setting IFS to empty value.)
26041IFS=" "" $as_nl"
26042
26043# Find who we are. Look in the path if we contain no directory separator.
26044case $0 in #((
26045 *[\\/]* ) as_myself=$0 ;;
26046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26047for as_dir in $PATH
26048do
26049 IFS=$as_save_IFS
26050 test -z "$as_dir" && as_dir=.
26051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26052 done
26053IFS=$as_save_IFS
26054
26055 ;;
26056esac
26057# We did not find ourselves, most probably we were run as `sh COMMAND'
26058# in which case we are not to be found in the path.
26059if test "x$as_myself" = x; then
26060 as_myself=$0
26061fi
26062if test ! -f "$as_myself"; then
26063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26064 exit 1
26065fi
26066
26067# Unset variables that we do not need and which cause bugs (e.g. in
26068# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26069# suppresses any "Segmentation fault" message there. '((' could
26070# trigger a bug in pdksh 5.2.14.
26071for as_var in BASH_ENV ENV MAIL MAILPATH
26072do eval test x\${$as_var+set} = xset \
26073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26074done
6de9cd9a
DN
26075PS1='$ '
26076PS2='> '
26077PS4='+ '
26078
26079# NLS nuisances.
5213506e
RW
26080LC_ALL=C
26081export LC_ALL
26082LANGUAGE=C
26083export LANGUAGE
26084
26085# CDPATH.
26086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26087
26088
26089# as_fn_error ERROR [LINENO LOG_FD]
26090# ---------------------------------
26091# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26092# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26093# script with status $?, using 1 if that was 0.
26094as_fn_error ()
26095{
26096 as_status=$?; test $as_status -eq 0 && as_status=1
26097 if test "$3"; then
26098 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6de9cd9a 26100 fi
5213506e
RW
26101 $as_echo "$as_me: error: $1" >&2
26102 as_fn_exit $as_status
26103} # as_fn_error
26104
26105
26106# as_fn_set_status STATUS
26107# -----------------------
26108# Set $? to STATUS, without forking.
26109as_fn_set_status ()
26110{
26111 return $1
26112} # as_fn_set_status
26113
26114# as_fn_exit STATUS
26115# -----------------
26116# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26117as_fn_exit ()
26118{
26119 set +e
26120 as_fn_set_status $1
26121 exit $1
26122} # as_fn_exit
26123
26124# as_fn_unset VAR
26125# ---------------
26126# Portably unset VAR.
26127as_fn_unset ()
26128{
26129 { eval $1=; unset $1;}
26130}
26131as_unset=as_fn_unset
26132# as_fn_append VAR VALUE
26133# ----------------------
26134# Append the text in VALUE to the end of the definition contained in VAR. Take
26135# advantage of any shell optimizations that allow amortized linear growth over
26136# repeated appends, instead of the typical quadratic growth present in naive
26137# implementations.
26138if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26139 eval 'as_fn_append ()
26140 {
26141 eval $1+=\$2
26142 }'
26143else
26144 as_fn_append ()
26145 {
26146 eval $1=\$$1\$2
26147 }
26148fi # as_fn_append
26149
26150# as_fn_arith ARG...
26151# ------------------
26152# Perform arithmetic evaluation on the ARGs, and store the result in the
26153# global $as_val. Take advantage of shells that can avoid forks. The arguments
26154# must be portable across $(()) and expr.
26155if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26156 eval 'as_fn_arith ()
26157 {
26158 as_val=$(( $* ))
26159 }'
26160else
26161 as_fn_arith ()
26162 {
26163 as_val=`expr "$@" || test $? -eq 1`
26164 }
26165fi # as_fn_arith
6de9cd9a 26166
5213506e
RW
26167
26168if expr a : '\(a\)' >/dev/null 2>&1 &&
26169 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6de9cd9a
DN
26170 as_expr=expr
26171else
26172 as_expr=false
26173fi
26174
5213506e 26175if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6de9cd9a
DN
26176 as_basename=basename
26177else
26178 as_basename=false
26179fi
26180
5213506e
RW
26181if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26182 as_dirname=dirname
26183else
26184 as_dirname=false
26185fi
6de9cd9a 26186
5213506e 26187as_me=`$as_basename -- "$0" ||
6de9cd9a
DN
26188$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26189 X"$0" : 'X\(//\)$' \| \
5213506e
RW
26190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26191$as_echo X/"$0" |
26192 sed '/^.*\/\([^/][^/]*\)\/*$/{
26193 s//\1/
26194 q
26195 }
26196 /^X\/\(\/\/\)$/{
26197 s//\1/
26198 q
26199 }
26200 /^X\/\(\/\).*/{
26201 s//\1/
26202 q
26203 }
26204 s/.*/./; q'`
38d24731 26205
38d24731
RW
26206# Avoid depending upon Character Ranges.
26207as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26208as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26209as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26210as_cr_digits='0123456789'
26211as_cr_alnum=$as_cr_Letters$as_cr_digits
26212
5213506e
RW
26213ECHO_C= ECHO_N= ECHO_T=
26214case `echo -n x` in #(((((
26215-n*)
26216 case `echo 'xy\c'` in
26217 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26218 xy) ECHO_C='\c';;
26219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26220 ECHO_T=' ';;
26221 esac;;
26222*)
26223 ECHO_N='-n';;
6de9cd9a
DN
26224esac
26225
5213506e
RW
26226rm -f conf$$ conf$$.exe conf$$.file
26227if test -d conf$$.dir; then
26228 rm -f conf$$.dir/conf$$.file
6de9cd9a 26229else
5213506e
RW
26230 rm -f conf$$.dir
26231 mkdir conf$$.dir 2>/dev/null
6de9cd9a 26232fi
5213506e
RW
26233if (echo >conf$$.file) 2>/dev/null; then
26234 if ln -s conf$$.file conf$$ 2>/dev/null; then
38d24731 26235 as_ln_s='ln -s'
5213506e
RW
26236 # ... but there are two gotchas:
26237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26239 # In both cases, we have to default to `cp -p'.
26240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26241 as_ln_s='cp -p'
26242 elif ln conf$$.file conf$$ 2>/dev/null; then
26243 as_ln_s=ln
26244 else
26245 as_ln_s='cp -p'
38d24731 26246 fi
6de9cd9a
DN
26247else
26248 as_ln_s='cp -p'
26249fi
5213506e
RW
26250rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26251rmdir conf$$.dir 2>/dev/null
26252
26253
26254# as_fn_mkdir_p
26255# -------------
26256# Create "$as_dir" as a directory, including parents if necessary.
26257as_fn_mkdir_p ()
26258{
26259
26260 case $as_dir in #(
26261 -*) as_dir=./$as_dir;;
26262 esac
26263 test -d "$as_dir" || eval $as_mkdir_p || {
26264 as_dirs=
26265 while :; do
26266 case $as_dir in #(
26267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26268 *) as_qdir=$as_dir;;
26269 esac
26270 as_dirs="'$as_qdir' $as_dirs"
26271 as_dir=`$as_dirname -- "$as_dir" ||
26272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26273 X"$as_dir" : 'X\(//\)[^/]' \| \
26274 X"$as_dir" : 'X\(//\)$' \| \
26275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26276$as_echo X"$as_dir" |
26277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26278 s//\1/
26279 q
26280 }
26281 /^X\(\/\/\)[^/].*/{
26282 s//\1/
26283 q
26284 }
26285 /^X\(\/\/\)$/{
26286 s//\1/
26287 q
26288 }
26289 /^X\(\/\).*/{
26290 s//\1/
26291 q
26292 }
26293 s/.*/./; q'`
26294 test -d "$as_dir" && break
26295 done
26296 test -z "$as_dirs" || eval "mkdir $as_dirs"
26297 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26298
6de9cd9a 26299
5213506e 26300} # as_fn_mkdir_p
6de9cd9a 26301if mkdir -p . 2>/dev/null; then
5213506e 26302 as_mkdir_p='mkdir -p "$as_dir"'
6de9cd9a
DN
26303else
26304 test -d ./-p && rmdir ./-p
26305 as_mkdir_p=false
26306fi
26307
5213506e
RW
26308if test -x / >/dev/null 2>&1; then
26309 as_test_x='test -x'
26310else
26311 if ls -dL / >/dev/null 2>&1; then
26312 as_ls_L_option=L
26313 else
26314 as_ls_L_option=
26315 fi
26316 as_test_x='
26317 eval sh -c '\''
26318 if test -d "$1"; then
26319 test -d "$1/.";
26320 else
26321 case $1 in #(
26322 -*)set "./$1";;
26323 esac;
26324 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26325 ???[sx]*):;;*)false;;esac;fi
26326 '\'' sh
26327 '
26328fi
26329as_executable_p=$as_test_x
6de9cd9a
DN
26330
26331# Sed expression to map a string onto a valid CPP name.
26332as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26333
26334# Sed expression to map a string onto a valid variable name.
26335as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26336
26337
6de9cd9a 26338exec 6>&1
5213506e
RW
26339## ----------------------------------- ##
26340## Main body of $CONFIG_STATUS script. ##
26341## ----------------------------------- ##
26342_ASEOF
26343test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26344
26345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26346# Save the log message, to keep $0 and so on meaningful, and to
6de9cd9a 26347# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
26348# values after options handling.
26349ac_log="
0dce3ca1 26350This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
5213506e 26351generated by GNU Autoconf 2.64. Invocation command line was
6de9cd9a
DN
26352
26353 CONFIG_FILES = $CONFIG_FILES
26354 CONFIG_HEADERS = $CONFIG_HEADERS
26355 CONFIG_LINKS = $CONFIG_LINKS
26356 CONFIG_COMMANDS = $CONFIG_COMMANDS
26357 $ $0 $@
26358
5213506e
RW
26359on `(hostname || uname -n) 2>/dev/null | sed 1q`
26360"
26361
6de9cd9a
DN
26362_ACEOF
26363
5213506e
RW
26364case $ac_config_files in *"
26365"*) set x $ac_config_files; shift; ac_config_files=$*;;
26366esac
78511f8b 26367
5213506e
RW
26368case $ac_config_headers in *"
26369"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26370esac
38d24731 26371
38d24731 26372
5213506e
RW
26373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26374# Files that config.status was made for.
26375config_files="$ac_config_files"
26376config_headers="$ac_config_headers"
26377config_commands="$ac_config_commands"
6de9cd9a 26378
5213506e 26379_ACEOF
38d24731 26380
5213506e 26381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a 26382ac_cs_usage="\
5213506e
RW
26383\`$as_me' instantiates files and other configuration actions
26384from templates according to the current configuration. Unless the files
26385and actions are specified as TAGs, all are instantiated by default.
6de9cd9a 26386
5213506e 26387Usage: $0 [OPTION]... [TAG]...
6de9cd9a
DN
26388
26389 -h, --help print this help, then exit
5213506e
RW
26390 -V, --version print version number and configuration settings, then exit
26391 -q, --quiet, --silent
26392 do not print progress messages
6de9cd9a
DN
26393 -d, --debug don't remove temporary files
26394 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
26395 --file=FILE[:TEMPLATE]
26396 instantiate the configuration file FILE
26397 --header=FILE[:TEMPLATE]
26398 instantiate the configuration header FILE
6de9cd9a
DN
26399
26400Configuration files:
26401$config_files
26402
26403Configuration headers:
26404$config_headers
26405
26406Configuration commands:
26407$config_commands
26408
5213506e
RW
26409Report bugs to the package provider.
26410GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
26411General help using GNU software: <http://www.gnu.org/gethelp/>."
38d24731 26412
5213506e
RW
26413_ACEOF
26414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 26415ac_cs_version="\\
0dce3ca1 26416GNU Fortran Runtime Library config.status 0.3
5213506e
RW
26417configured by $0, generated by GNU Autoconf 2.64,
26418 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6de9cd9a 26419
5213506e 26420Copyright (C) 2009 Free Software Foundation, Inc.
6de9cd9a
DN
26421This config.status script is free software; the Free Software Foundation
26422gives unlimited permission to copy, distribute and modify it."
5213506e
RW
26423
26424ac_pwd='$ac_pwd'
26425srcdir='$srcdir'
26426INSTALL='$INSTALL'
26427MKDIR_P='$MKDIR_P'
26428AWK='$AWK'
26429test -n "\$AWK" || AWK=awk
6de9cd9a
DN
26430_ACEOF
26431
5213506e
RW
26432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26433# The default lists apply if the user does not specify any file.
6de9cd9a
DN
26434ac_need_defaults=:
26435while test $# != 0
26436do
26437 case $1 in
26438 --*=*)
5213506e
RW
26439 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26440 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6de9cd9a
DN
26441 ac_shift=:
26442 ;;
5213506e 26443 *)
6de9cd9a
DN
26444 ac_option=$1
26445 ac_optarg=$2
26446 ac_shift=shift
26447 ;;
6de9cd9a
DN
26448 esac
26449
26450 case $ac_option in
26451 # Handling of the options.
6de9cd9a
DN
26452 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26453 ac_cs_recheck=: ;;
5213506e
RW
26454 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26455 $as_echo "$ac_cs_version"; exit ;;
26456 --debug | --debu | --deb | --de | --d | -d )
6de9cd9a
DN
26457 debug=: ;;
26458 --file | --fil | --fi | --f )
26459 $ac_shift
5213506e
RW
26460 case $ac_optarg in
26461 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26462 esac
26463 as_fn_append CONFIG_FILES " '$ac_optarg'"
6de9cd9a
DN
26464 ac_need_defaults=false;;
26465 --header | --heade | --head | --hea )
26466 $ac_shift
5213506e
RW
26467 case $ac_optarg in
26468 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26469 esac
26470 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6de9cd9a 26471 ac_need_defaults=false;;
5213506e
RW
26472 --he | --h)
26473 # Conflict between --help and --header
26474 as_fn_error "ambiguous option: \`$1'
26475Try \`$0 --help' for more information.";;
26476 --help | --hel | -h )
26477 $as_echo "$ac_cs_usage"; exit ;;
6de9cd9a
DN
26478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26479 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26480 ac_cs_silent=: ;;
26481
26482 # This is an error.
5213506e
RW
26483 -*) as_fn_error "unrecognized option: \`$1'
26484Try \`$0 --help' for more information." ;;
6de9cd9a 26485
5213506e
RW
26486 *) as_fn_append ac_config_targets " $1"
26487 ac_need_defaults=false ;;
6de9cd9a
DN
26488
26489 esac
26490 shift
26491done
26492
26493ac_configure_extra_args=
26494
26495if $ac_cs_silent; then
26496 exec 6>/dev/null
26497 ac_configure_extra_args="$ac_configure_extra_args --silent"
26498fi
26499
26500_ACEOF
5213506e 26501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6de9cd9a 26502if \$ac_cs_recheck; then
5213506e
RW
26503 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26504 shift
26505 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26506 CONFIG_SHELL='$SHELL'
26507 export CONFIG_SHELL
26508 exec "\$@"
6de9cd9a
DN
26509fi
26510
1cf3d07d 26511_ACEOF
5213506e
RW
26512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26513exec 5>>config.log
26514{
26515 echo
26516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26517## Running $as_me. ##
26518_ASBOX
26519 $as_echo "$ac_log"
26520} >&5
1cf3d07d 26521
5213506e
RW
26522_ACEOF
26523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1cf3d07d 26524#
5213506e 26525# INIT-COMMANDS
1cf3d07d
SE
26526#
26527
1cf3d07d
SE
26528srcdir="$srcdir"
26529host="$host"
26530target="$target"
26531with_multisubdir="$with_multisubdir"
26532with_multisrctop="$with_multisrctop"
26533with_target_subdir="$with_target_subdir"
26534ac_configure_args="${multilib_arg} ${ac_configure_args}"
26535multi_basedir="$multi_basedir"
26536CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
26537CC="$CC"
2017c370
JB
26538CXX="$CXX"
26539GFORTRAN="$GFORTRAN"
26540GCJ="$GCJ"
1cf3d07d
SE
26541AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26542
26543
26544# The HP-UX ksh and POSIX shell print the target directory to stdout
26545# if CDPATH is set.
26546(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26547
26548sed_quote_subst='$sed_quote_subst'
26549double_quote_subst='$double_quote_subst'
26550delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
26551macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26552macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26553enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26554enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26555pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26556enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26557SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26558ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26559host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26560host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26561host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26562build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26563build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26564build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26565SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26566Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26567GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26568EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26569FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26570LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26571NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26572LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26573max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26574ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26575exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26576lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26577lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26578lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26579reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26580reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26581OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26582deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26583file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26584AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26585AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26586STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26587RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26588old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26589old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26590old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26591lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26592CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26593CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26594compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26595GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26596lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26597lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26598lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26599lt_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"`'
26600objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26601MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26602lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26603lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26604lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26605lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26606lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26607need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26608DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26609NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26610LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26611OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26612OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26613libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26614shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26615extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26616archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26617enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26618export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26619whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26620compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26621old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26622old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26623archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26624archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26625module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26626module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26627with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26628allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26629no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26630hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26631hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26632hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26633hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26634hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26635hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26636hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26637hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26638inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26639link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26640fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26641always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26642export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26643exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26644include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26645prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26646file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26647variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26648need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26649need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26650version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26651runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26652shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26653shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26654libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26655library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26656soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26657install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26658postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26659postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26660finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26661finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26662hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26663sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26664sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26665hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26666enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26667enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26668enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26669old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26670striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26671compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26672predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26673postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26674predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26675postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26676compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26677LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
26678reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
26679reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
26680old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26681compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
26682GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
26683lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
26684lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
26685lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
26686lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
26687lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
26688archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
26689enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
26690export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26691whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26692compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
26693old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
26694old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
26695archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26696archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26697module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
26698module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26699with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
26700allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26701no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26702hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26703hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
26704hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
26705hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
26706hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
26707hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
26708hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
26709hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
26710inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
26711link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
26712fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
26713always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
26714export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
26715exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
26716include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
26717prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
26718file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
26719hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
26720compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
26721predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
26722postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
26723predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
26724postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
26725compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
26726
26727LTCC='$LTCC'
26728LTCFLAGS='$LTCFLAGS'
26729compiler='$compiler_DEFAULT'
26730
43e02a8a
RW
26731# A function that is used when there is no print builtin or printf.
26732func_fallback_echo ()
26733{
26734 eval 'cat <<_LTECHO_EOF
26735\$1
26736_LTECHO_EOF'
26737}
26738
1cf3d07d 26739# Quote evaled strings.
43e02a8a
RW
26740for var in SHELL \
26741ECHO \
26742SED \
1cf3d07d
SE
26743GREP \
26744EGREP \
26745FGREP \
26746LD \
26747NM \
26748LN_S \
26749lt_SP2NL \
26750lt_NL2SP \
26751reload_flag \
d58dead8 26752OBJDUMP \
1cf3d07d
SE
26753deplibs_check_method \
26754file_magic_cmd \
26755AR \
26756AR_FLAGS \
26757STRIP \
26758RANLIB \
26759CC \
26760CFLAGS \
26761compiler \
26762lt_cv_sys_global_symbol_pipe \
26763lt_cv_sys_global_symbol_to_cdecl \
26764lt_cv_sys_global_symbol_to_c_name_address \
d58dead8 26765lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
26766lt_prog_compiler_no_builtin_flag \
26767lt_prog_compiler_wl \
26768lt_prog_compiler_pic \
26769lt_prog_compiler_static \
26770lt_cv_prog_compiler_c_o \
26771need_locks \
d58dead8
PG
26772DSYMUTIL \
26773NMEDIT \
26774LIPO \
26775OTOOL \
26776OTOOL64 \
1cf3d07d
SE
26777shrext_cmds \
26778export_dynamic_flag_spec \
26779whole_archive_flag_spec \
26780compiler_needs_object \
26781with_gnu_ld \
26782allow_undefined_flag \
26783no_undefined_flag \
26784hardcode_libdir_flag_spec \
26785hardcode_libdir_flag_spec_ld \
26786hardcode_libdir_separator \
26787fix_srcfile_path \
26788exclude_expsyms \
26789include_expsyms \
26790file_list_spec \
26791variables_saved_for_relink \
26792libname_spec \
26793library_names_spec \
26794soname_spec \
43e02a8a 26795install_override_mode \
1cf3d07d
SE
26796finish_eval \
26797old_striplib \
26798striplib \
d58dead8 26799compiler_lib_search_dirs \
1cf3d07d
SE
26800predep_objects \
26801postdep_objects \
26802predeps \
26803postdeps \
26804compiler_lib_search_path \
26805LD_FC \
43e02a8a 26806reload_flag_FC \
1cf3d07d
SE
26807compiler_FC \
26808lt_prog_compiler_no_builtin_flag_FC \
26809lt_prog_compiler_wl_FC \
26810lt_prog_compiler_pic_FC \
26811lt_prog_compiler_static_FC \
26812lt_cv_prog_compiler_c_o_FC \
26813export_dynamic_flag_spec_FC \
26814whole_archive_flag_spec_FC \
26815compiler_needs_object_FC \
26816with_gnu_ld_FC \
26817allow_undefined_flag_FC \
26818no_undefined_flag_FC \
26819hardcode_libdir_flag_spec_FC \
26820hardcode_libdir_flag_spec_ld_FC \
26821hardcode_libdir_separator_FC \
26822fix_srcfile_path_FC \
26823exclude_expsyms_FC \
26824include_expsyms_FC \
26825file_list_spec_FC \
d58dead8 26826compiler_lib_search_dirs_FC \
1cf3d07d
SE
26827predep_objects_FC \
26828postdep_objects_FC \
26829predeps_FC \
26830postdeps_FC \
26831compiler_lib_search_path_FC; do
43e02a8a 26832 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 26833 *[\\\\\\\`\\"\\\$]*)
43e02a8a 26834 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
26835 ;;
26836 *)
26837 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26838 ;;
26839 esac
26840done
26841
26842# Double-quote double-evaled strings.
26843for var in reload_cmds \
26844old_postinstall_cmds \
26845old_postuninstall_cmds \
26846old_archive_cmds \
26847extract_expsyms_cmds \
26848old_archive_from_new_cmds \
26849old_archive_from_expsyms_cmds \
26850archive_cmds \
26851archive_expsym_cmds \
26852module_cmds \
26853module_expsym_cmds \
26854export_symbols_cmds \
26855prelink_cmds \
26856postinstall_cmds \
26857postuninstall_cmds \
26858finish_cmds \
26859sys_lib_search_path_spec \
26860sys_lib_dlsearch_path_spec \
43e02a8a 26861reload_cmds_FC \
1cf3d07d
SE
26862old_archive_cmds_FC \
26863old_archive_from_new_cmds_FC \
26864old_archive_from_expsyms_cmds_FC \
26865archive_cmds_FC \
26866archive_expsym_cmds_FC \
26867module_cmds_FC \
26868module_expsym_cmds_FC \
26869export_symbols_cmds_FC \
26870prelink_cmds_FC; do
43e02a8a 26871 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 26872 *[\\\\\\\`\\"\\\$]*)
43e02a8a 26873 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
26874 ;;
26875 *)
26876 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26877 ;;
26878 esac
26879done
26880
1cf3d07d
SE
26881ac_aux_dir='$ac_aux_dir'
26882xsi_shell='$xsi_shell'
26883lt_shell_append='$lt_shell_append'
26884
26885# See if we are running on zsh, and set the options which allow our
26886# commands through without removal of \ escapes INIT.
26887if test -n "\${ZSH_VERSION+set}" ; then
26888 setopt NO_GLOB_SUBST
26889fi
26890
26891
26892 PACKAGE='$PACKAGE'
26893 VERSION='$VERSION'
26894 TIMESTAMP='$TIMESTAMP'
26895 RM='$RM'
26896 ofile='$ofile'
26897
26898
6de9cd9a 26899
6de9cd9a 26900
78511f8b 26901
6de9cd9a 26902
c13e029b
PB
26903GCC="$GCC"
26904CC="$CC"
26905acx_cv_header_stdint="$acx_cv_header_stdint"
26906acx_cv_type_int8_t="$acx_cv_type_int8_t"
26907acx_cv_type_int16_t="$acx_cv_type_int16_t"
26908acx_cv_type_int32_t="$acx_cv_type_int32_t"
26909acx_cv_type_int64_t="$acx_cv_type_int64_t"
26910acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
26911ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
26912ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
26913ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
26914ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
26915ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
4c4b3eb0
PB
26916ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
26917ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
c13e029b 26918ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
4c4b3eb0
PB
26919
26920
6de9cd9a
DN
26921_ACEOF
26922
5213506e 26923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f489fba1 26924
5213506e 26925# Handling of arguments.
6de9cd9a
DN
26926for ac_config_target in $ac_config_targets
26927do
5213506e
RW
26928 case $ac_config_target in
26929 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26930 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26931 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26932 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26933 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
26934 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1ec601bf 26935 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
5213506e
RW
26936
26937 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6de9cd9a
DN
26938 esac
26939done
26940
5213506e 26941
6de9cd9a
DN
26942# If the user did not use the arguments to specify the items to instantiate,
26943# then the envvar interface is used. Set only those that are not.
26944# We use the long form for the default assignment because of an extremely
26945# bizarre bug on SunOS 4.1.3.
26946if $ac_need_defaults; then
26947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26950fi
26951
26952# Have a temporary directory for convenience. Make it in the build tree
5213506e 26953# simply because there is no reason against having it here, and in addition,
6de9cd9a 26954# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
26955# Hook for its removal unless debugging.
26956# Note that there is a small window in which the directory will not be cleaned:
26957# after its creation but before its name has been assigned to `$tmp'.
6de9cd9a
DN
26958$debug ||
26959{
5213506e
RW
26960 tmp=
26961 trap 'exit_status=$?
26962 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26963' 0
26964 trap 'as_fn_exit 1' 1 2 13 15
6de9cd9a 26965}
6de9cd9a
DN
26966# Create a (secure) tmp directory for tmp files.
26967
26968{
5213506e 26969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6de9cd9a
DN
26970 test -n "$tmp" && test -d "$tmp"
26971} ||
26972{
5213506e
RW
26973 tmp=./conf$$-$RANDOM
26974 (umask 077 && mkdir "$tmp")
26975} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26976
26977# Set up the scripts for CONFIG_FILES section.
26978# No need to generate them if there are no CONFIG_FILES.
26979# This happens for instance with `./config.status config.h'.
26980if test -n "$CONFIG_FILES"; then
26981
26982
26983ac_cr=`echo X | tr X '\015'`
26984# On cygwin, bash can eat \r inside `` if the user requested igncr.
26985# But we know of no other shell where ac_cr would be empty at this
26986# point, so we can use a bashism as a fallback.
26987if test "x$ac_cr" = x; then
26988 eval ac_cr=\$\'\\r\'
26989fi
26990ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26991if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26992 ac_cs_awk_cr='\r'
26993else
26994 ac_cs_awk_cr=$ac_cr
26995fi
26996
26997echo 'BEGIN {' >"$tmp/subs1.awk" &&
26998_ACEOF
26999
27000
6de9cd9a 27001{
5213506e
RW
27002 echo "cat >conf$$subs.awk <<_ACEOF" &&
27003 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27004 echo "_ACEOF"
27005} >conf$$subs.sh ||
27006 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27007ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27008ac_delim='%!_!# '
27009for ac_last_try in false false false false false :; do
27010 . ./conf$$subs.sh ||
27011 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27012
27013 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27014 if test $ac_delim_n = $ac_delim_num; then
27015 break
27016 elif $ac_last_try; then
27017 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27018 else
27019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27020 fi
27021done
27022rm -f conf$$subs.sh
27023
27024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27025cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27026_ACEOF
27027sed -n '
27028h
27029s/^/S["/; s/!.*/"]=/
27030p
27031g
27032s/^[^!]*!//
27033:repl
27034t repl
27035s/'"$ac_delim"'$//
27036t delim
27037:nl
27038h
27039s/\(.\{148\}\).*/\1/
27040t more1
27041s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27042p
27043n
27044b repl
27045:more1
27046s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27047p
27048g
27049s/.\{148\}//
27050t nl
27051:delim
27052h
27053s/\(.\{148\}\).*/\1/
27054t more2
27055s/["\\]/\\&/g; s/^/"/; s/$/"/
27056p
27057b
27058:more2
27059s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27060p
27061g
27062s/.\{148\}//
27063t delim
27064' <conf$$subs.awk | sed '
27065/^[^""]/{
27066 N
27067 s/\n//
27068}
27069' >>$CONFIG_STATUS || ac_write_fail=1
27070rm -f conf$$subs.awk
27071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27072_ACAWK
27073cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27074 for (key in S) S_is_set[key] = 1
27075 FS = "\a"
27076
27077}
27078{
27079 line = $ 0
27080 nfields = split(line, field, "@")
27081 substed = 0
27082 len = length(field[1])
27083 for (i = 2; i < nfields; i++) {
27084 key = field[i]
27085 keylen = length(key)
27086 if (S_is_set[key]) {
27087 value = S[key]
27088 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27089 len += length(value) + length(field[++i])
27090 substed = 1
27091 } else
27092 len += 1 + keylen
27093 }
27094
27095 print line
6de9cd9a
DN
27096}
27097
5213506e
RW
27098_ACAWK
27099_ACEOF
27100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27101if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27102 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27103else
27104 cat
27105fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27106 || as_fn_error "could not setup config files machinery" "$LINENO" 5
38d24731
RW
27107_ACEOF
27108
5213506e
RW
27109# VPATH may cause trouble with some makes, so we remove $(srcdir),
27110# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27111# trailing colons and then remove the whole line if VPATH becomes empty
27112# (actually we leave an empty line to preserve line numbers).
27113if test "x$srcdir" = x.; then
27114 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27115s/:*\$(srcdir):*/:/
27116s/:*\${srcdir}:*/:/
27117s/:*@srcdir@:*/:/
27118s/^\([^=]*=[ ]*\):*/\1/
27119s/:*$//
27120s/^[^=]*=[ ]*$//
27121}'
27122fi
38d24731 27123
5213506e
RW
27124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27125fi # test -n "$CONFIG_FILES"
6de9cd9a 27126
5213506e
RW
27127# Set up the scripts for CONFIG_HEADERS section.
27128# No need to generate them if there are no CONFIG_HEADERS.
27129# This happens for instance with `./config.status Makefile'.
27130if test -n "$CONFIG_HEADERS"; then
27131cat >"$tmp/defines.awk" <<\_ACAWK ||
27132BEGIN {
27133_ACEOF
27134
27135# Transform confdefs.h into an awk script `defines.awk', embedded as
27136# here-document in config.status, that substitutes the proper values into
27137# config.h.in to produce config.h.
27138
27139# Create a delimiter string that does not exist in confdefs.h, to ease
27140# handling of long lines.
27141ac_delim='%!_!# '
27142for ac_last_try in false false :; do
27143 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27144 if test -z "$ac_t"; then
27145 break
27146 elif $ac_last_try; then
27147 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27148 else
27149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
f489fba1 27150 fi
5213506e 27151done
c0e7e2bf 27152
5213506e
RW
27153# For the awk script, D is an array of macro values keyed by name,
27154# likewise P contains macro parameters if any. Preserve backslash
27155# newline sequences.
27156
27157ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27158sed -n '
27159s/.\{148\}/&'"$ac_delim"'/g
27160t rset
27161:rset
27162s/^[ ]*#[ ]*define[ ][ ]*/ /
27163t def
27164d
27165:def
27166s/\\$//
27167t bsnl
27168s/["\\]/\\&/g
27169s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27170D["\1"]=" \3"/p
27171s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27172d
27173:bsnl
27174s/["\\]/\\&/g
27175s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27176D["\1"]=" \3\\\\\\n"\\/p
27177t cont
27178s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27179t cont
27180d
27181:cont
27182n
27183s/.\{148\}/&'"$ac_delim"'/g
27184t clear
27185:clear
27186s/\\$//
27187t bsnlc
27188s/["\\]/\\&/g; s/^/"/; s/$/"/p
27189d
27190:bsnlc
27191s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27192b cont
27193' <confdefs.h | sed '
27194s/'"$ac_delim"'/"\\\
27195"/g' >>$CONFIG_STATUS || ac_write_fail=1
27196
27197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27198 for (key in D) D_is_set[key] = 1
27199 FS = "\a"
27200}
27201/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27202 line = \$ 0
27203 split(line, arg, " ")
27204 if (arg[1] == "#") {
27205 defundef = arg[2]
27206 mac1 = arg[3]
27207 } else {
27208 defundef = substr(arg[1], 2)
27209 mac1 = arg[2]
27210 }
27211 split(mac1, mac2, "(") #)
27212 macro = mac2[1]
27213 prefix = substr(line, 1, index(line, defundef) - 1)
27214 if (D_is_set[macro]) {
27215 # Preserve the white space surrounding the "#".
27216 print prefix "define", macro P[macro] D[macro]
27217 next
27218 } else {
27219 # Replace #undef with comments. This is necessary, for example,
27220 # in the case of _POSIX_SOURCE, which is predefined and required
27221 # on some systems where configure will not decide to define it.
27222 if (defundef == "undef") {
27223 print "/*", prefix defundef, macro, "*/"
27224 next
27225 }
27226 }
27227}
27228{ print }
27229_ACAWK
6de9cd9a 27230_ACEOF
5213506e
RW
27231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27232 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27233fi # test -n "$CONFIG_HEADERS"
27234
27235
27236eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27237shift
27238for ac_tag
27239do
27240 case $ac_tag in
27241 :[FHLC]) ac_mode=$ac_tag; continue;;
27242 esac
27243 case $ac_mode$ac_tag in
27244 :[FHL]*:*);;
27245 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27246 :[FH]-) ac_tag=-:-;;
27247 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27248 esac
27249 ac_save_IFS=$IFS
27250 IFS=:
27251 set x $ac_tag
27252 IFS=$ac_save_IFS
27253 shift
27254 ac_file=$1
27255 shift
27256
27257 case $ac_mode in
27258 :L) ac_source=$1;;
27259 :[FH])
27260 ac_file_inputs=
27261 for ac_f
27262 do
27263 case $ac_f in
27264 -) ac_f="$tmp/stdin";;
27265 *) # Look for the file first in the build tree, then in the source tree
27266 # (if the path is not absolute). The absolute path cannot be DOS-style,
27267 # because $ac_f cannot contain `:'.
27268 test -f "$ac_f" ||
27269 case $ac_f in
27270 [\\/$]*) false;;
27271 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27272 esac ||
27273 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27274 esac
27275 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27276 as_fn_append ac_file_inputs " '$ac_f'"
27277 done
27278
27279 # Let's still pretend it is `configure' which instantiates (i.e., don't
27280 # use $as_me), people would be surprised to read:
27281 # /* config.h. Generated by config.status. */
27282 configure_input='Generated from '`
27283 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27284 `' by configure.'
27285 if test x"$ac_file" != x-; then
27286 configure_input="$ac_file. $configure_input"
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27288$as_echo "$as_me: creating $ac_file" >&6;}
27289 fi
27290 # Neutralize special characters interpreted by sed in replacement strings.
27291 case $configure_input in #(
27292 *\&* | *\|* | *\\* )
27293 ac_sed_conf_input=`$as_echo "$configure_input" |
27294 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27295 *) ac_sed_conf_input=$configure_input;;
27296 esac
27297
27298 case $ac_tag in
27299 *:-:* | *:-) cat >"$tmp/stdin" \
27300 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27301 esac
27302 ;;
6de9cd9a
DN
27303 esac
27304
5213506e 27305 ac_dir=`$as_dirname -- "$ac_file" ||
6de9cd9a
DN
27306$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27307 X"$ac_file" : 'X\(//\)[^/]' \| \
27308 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
27309 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27310$as_echo X"$ac_file" |
27311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27312 s//\1/
27313 q
27314 }
27315 /^X\(\/\/\)[^/].*/{
27316 s//\1/
27317 q
27318 }
27319 /^X\(\/\/\)$/{
27320 s//\1/
27321 q
27322 }
27323 /^X\(\/\).*/{
27324 s//\1/
27325 q
27326 }
27327 s/.*/./; q'`
27328 as_dir="$ac_dir"; as_fn_mkdir_p
6de9cd9a
DN
27329 ac_builddir=.
27330
5213506e
RW
27331case "$ac_dir" in
27332.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27333*)
27334 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27335 # A ".." for each directory in $ac_dir_suffix.
27336 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27337 case $ac_top_builddir_sub in
27338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27340 esac ;;
27341esac
27342ac_abs_top_builddir=$ac_pwd
27343ac_abs_builddir=$ac_pwd$ac_dir_suffix
27344# for backward compatibility:
27345ac_top_builddir=$ac_top_build_prefix
6de9cd9a
DN
27346
27347case $srcdir in
5213506e 27348 .) # We are building in place.
6de9cd9a 27349 ac_srcdir=.
5213506e
RW
27350 ac_top_srcdir=$ac_top_builddir_sub
27351 ac_abs_top_srcdir=$ac_pwd ;;
27352 [\\/]* | ?:[\\/]* ) # Absolute name.
6de9cd9a 27353 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
27354 ac_top_srcdir=$srcdir
27355 ac_abs_top_srcdir=$srcdir ;;
27356 *) # Relative name.
27357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27358 ac_top_srcdir=$ac_top_build_prefix$srcdir
27359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6de9cd9a 27360esac
5213506e 27361ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6de9cd9a 27362
6de9cd9a 27363
5213506e
RW
27364 case $ac_mode in
27365 :F)
27366 #
27367 # CONFIG_FILE
27368 #
6de9cd9a
DN
27369
27370 case $INSTALL in
27371 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
27372 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27373 esac
27374 ac_MKDIR_P=$MKDIR_P
27375 case $MKDIR_P in
27376 [\\/$]* | ?:[\\/]* ) ;;
27377 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6de9cd9a 27378 esac
5213506e 27379_ACEOF
6de9cd9a 27380
5213506e
RW
27381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27382# If the template does not know about datarootdir, expand it.
27383# FIXME: This hack should be removed a few years after 2.60.
27384ac_datarootdir_hack=; ac_datarootdir_seen=
27385ac_sed_dataroot='
27386/datarootdir/ {
27387 p
27388 q
27389}
27390/@datadir@/p
27391/@docdir@/p
27392/@infodir@/p
27393/@localedir@/p
27394/@mandir@/p'
27395case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27396*datarootdir*) ac_datarootdir_seen=yes;;
27397*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27399$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27400_ACEOF
27401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27402 ac_datarootdir_hack='
27403 s&@datadir@&$datadir&g
27404 s&@docdir@&$docdir&g
27405 s&@infodir@&$infodir&g
27406 s&@localedir@&$localedir&g
27407 s&@mandir@&$mandir&g
27408 s&\\\${datarootdir}&$datarootdir&g' ;;
27409esac
78511f8b 27410_ACEOF
5213506e
RW
27411
27412# Neutralize VPATH when `$srcdir' = `.'.
27413# Shell code in configure.ac might set extrasub.
27414# FIXME: do we really want to maintain this feature?
27415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27416ac_sed_extra="$ac_vpsub
6de9cd9a
DN
27417$extrasub
27418_ACEOF
5213506e 27419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6de9cd9a
DN
27420:t
27421/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
27422s|@configure_input@|$ac_sed_conf_input|;t t
27423s&@top_builddir@&$ac_top_builddir_sub&;t t
27424s&@top_build_prefix@&$ac_top_build_prefix&;t t
27425s&@srcdir@&$ac_srcdir&;t t
27426s&@abs_srcdir@&$ac_abs_srcdir&;t t
27427s&@top_srcdir@&$ac_top_srcdir&;t t
27428s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27429s&@builddir@&$ac_builddir&;t t
27430s&@abs_builddir@&$ac_abs_builddir&;t t
27431s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27432s&@INSTALL@&$ac_INSTALL&;t t
27433s&@MKDIR_P@&$ac_MKDIR_P&;t t
27434$ac_datarootdir_hack
27435"
27436eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27437 || as_fn_error "could not create $ac_file" "$LINENO" 5
27438
27439test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27440 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27441 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27443which seems to be undefined. Please make sure it is defined." >&5
27444$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27445which seems to be undefined. Please make sure it is defined." >&2;}
27446
27447 rm -f "$tmp/stdin"
6de9cd9a 27448 case $ac_file in
5213506e
RW
27449 -) cat "$tmp/out" && rm -f "$tmp/out";;
27450 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27451 esac \
27452 || as_fn_error "could not create $ac_file" "$LINENO" 5
27453 ;;
27454 :H)
27455 #
27456 # CONFIG_HEADER
27457 #
6de9cd9a 27458 if test x"$ac_file" != x-; then
5213506e
RW
27459 {
27460 $as_echo "/* $configure_input */" \
27461 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27462 } >"$tmp/config.h" \
27463 || as_fn_error "could not create $ac_file" "$LINENO" 5
27464 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27466$as_echo "$as_me: $ac_file is unchanged" >&6;}
6de9cd9a 27467 else
5213506e
RW
27468 rm -f "$ac_file"
27469 mv "$tmp/config.h" "$ac_file" \
27470 || as_fn_error "could not create $ac_file" "$LINENO" 5
6de9cd9a
DN
27471 fi
27472 else
5213506e
RW
27473 $as_echo "/* $configure_input */" \
27474 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27475 || as_fn_error "could not create -" "$LINENO" 5
6de9cd9a 27476 fi
5213506e
RW
27477# Compute "$ac_file"'s index in $config_headers.
27478_am_arg="$ac_file"
6de9cd9a
DN
27479_am_stamp_count=1
27480for _am_header in $config_headers :; do
27481 case $_am_header in
5213506e 27482 $_am_arg | $_am_arg:* )
6de9cd9a
DN
27483 break ;;
27484 * )
27485 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27486 esac
27487done
5213506e
RW
27488echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27489$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27490 X"$_am_arg" : 'X\(//\)[^/]' \| \
27491 X"$_am_arg" : 'X\(//\)$' \| \
27492 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27493$as_echo X"$_am_arg" |
27494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27495 s//\1/
27496 q
27497 }
27498 /^X\(\/\/\)[^/].*/{
27499 s//\1/
27500 q
27501 }
27502 /^X\(\/\/\)$/{
27503 s//\1/
27504 q
27505 }
27506 /^X\(\/\).*/{
27507 s//\1/
27508 q
27509 }
27510 s/.*/./; q'`/stamp-h$_am_stamp_count
27511 ;;
38d24731 27512
5213506e
RW
27513 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27514$as_echo "$as_me: executing $ac_file commands" >&6;}
27515 ;;
27516 esac
6de9cd9a
DN
27517
27518
5213506e
RW
27519 case $ac_file$ac_mode in
27520 "default-1":C)
96b8a615
AJ
27521# Only add multilib support code if we just rebuilt the top-level
27522# Makefile.
27523case " $CONFIG_FILES " in
27524 *" Makefile "*)
27525 ac_file=Makefile . ${multi_basedir}/config-ml.in
27526 ;;
27527esac ;;
5213506e
RW
27528 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27529 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27530 # are listed without --file. Let's play safe and only enable the eval
27531 # if we detect the quoting.
27532 case $CONFIG_FILES in
27533 *\'*) eval set x "$CONFIG_FILES" ;;
27534 *) set x $CONFIG_FILES ;;
27535 esac
27536 shift
27537 for mf
27538 do
27539 # Strip MF so we end up with the name of the file.
27540 mf=`echo "$mf" | sed -e 's/:.*$//'`
27541 # Check whether this is an Automake generated Makefile or not.
27542 # We used to match only the files named `Makefile.in', but
27543 # some people rename them; so instead we look at the file content.
27544 # Grep'ing the first line is not enough: some people post-process
27545 # each Makefile.in and add a new line on top of each file to say so.
27546 # Grep'ing the whole file is not good either: AIX grep has a line
27547 # limit of 2048, but all sed's we know have understand at least 4000.
27548 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27549 dirpart=`$as_dirname -- "$mf" ||
679c0f9a
TT
27550$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27551 X"$mf" : 'X\(//\)[^/]' \| \
27552 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
27553 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27554$as_echo X"$mf" |
27555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27556 s//\1/
27557 q
27558 }
27559 /^X\(\/\/\)[^/].*/{
27560 s//\1/
27561 q
27562 }
27563 /^X\(\/\/\)$/{
27564 s//\1/
27565 q
27566 }
27567 /^X\(\/\).*/{
27568 s//\1/
27569 q
27570 }
27571 s/.*/./; q'`
27572 else
27573 continue
27574 fi
27575 # Extract the definition of DEPDIR, am__include, and am__quote
27576 # from the Makefile without running `make'.
27577 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27578 test -z "$DEPDIR" && continue
27579 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27580 test -z "am__include" && continue
27581 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27582 # When using ansi2knr, U may be empty or an underscore; expand it
27583 U=`sed -n 's/^U = //p' < "$mf"`
27584 # Find all dependency output files, they are included files with
27585 # $(DEPDIR) in their names. We invoke sed twice because it is the
27586 # simplest approach to changing $(DEPDIR) to its actual value in the
27587 # expansion.
27588 for file in `sed -n "
27589 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27590 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27591 # Make sure the directory exists.
27592 test -f "$dirpart/$file" && continue
27593 fdir=`$as_dirname -- "$file" ||
679c0f9a
TT
27594$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27595 X"$file" : 'X\(//\)[^/]' \| \
27596 X"$file" : 'X\(//\)$' \| \
5213506e
RW
27597 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27598$as_echo X"$file" |
27599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27600 s//\1/
27601 q
27602 }
27603 /^X\(\/\/\)[^/].*/{
27604 s//\1/
27605 q
27606 }
27607 /^X\(\/\/\)$/{
27608 s//\1/
27609 q
27610 }
27611 /^X\(\/\).*/{
27612 s//\1/
27613 q
27614 }
27615 s/.*/./; q'`
27616 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27617 # echo "creating $dirpart/$file"
27618 echo '# dummy' > "$dirpart/$file"
679c0f9a 27619 done
679c0f9a 27620 done
5213506e 27621}
1cf3d07d 27622 ;;
5213506e 27623 "libtool":C)
1cf3d07d
SE
27624
27625 # See if we are running on zsh, and set the options which allow our
27626 # commands through without removal of \ escapes.
27627 if test -n "${ZSH_VERSION+set}" ; then
27628 setopt NO_GLOB_SUBST
27629 fi
27630
27631 cfgfile="${ofile}T"
27632 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27633 $RM "$cfgfile"
27634
27635 cat <<_LT_EOF >> "$cfgfile"
27636#! $SHELL
27637
27638# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
d58dead8 27639# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
27640# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27641# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27642#
d58dead8 27643# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 27644# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d58dead8 27645# Written by Gordon Matzigkeit, 1996
1cf3d07d 27646#
d58dead8 27647# This file is part of GNU Libtool.
1cf3d07d 27648#
d58dead8
PG
27649# GNU Libtool is free software; you can redistribute it and/or
27650# modify it under the terms of the GNU General Public License as
27651# published by the Free Software Foundation; either version 2 of
27652# the License, or (at your option) any later version.
1cf3d07d 27653#
d58dead8
PG
27654# As a special exception to the GNU General Public License,
27655# if you distribute this file as part of a program or library that
27656# is built using GNU Libtool, you may include this file under the
27657# same distribution terms that you use for the rest of that program.
1cf3d07d 27658#
d58dead8
PG
27659# GNU Libtool is distributed in the hope that it will be useful,
27660# but WITHOUT ANY WARRANTY; without even the implied warranty of
27661# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27662# GNU General Public License for more details.
1cf3d07d 27663#
d58dead8
PG
27664# You should have received a copy of the GNU General Public License
27665# along with GNU Libtool; see the file COPYING. If not, a copy
27666# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27667# obtained by writing to the Free Software Foundation, Inc.,
27668# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
27669
27670
27671# The names of the tagged configurations supported by this script.
27672available_tags="FC "
27673
27674# ### BEGIN LIBTOOL CONFIG
27675
27676# Which release of libtool.m4 was used?
27677macro_version=$macro_version
27678macro_revision=$macro_revision
27679
27680# Whether or not to build shared libraries.
27681build_libtool_libs=$enable_shared
27682
27683# Whether or not to build static libraries.
27684build_old_libs=$enable_static
27685
27686# What type of objects to build.
27687pic_mode=$pic_mode
27688
27689# Whether or not to optimize for fast installation.
27690fast_install=$enable_fast_install
27691
43e02a8a
RW
27692# Shell to use when invoking shell scripts.
27693SHELL=$lt_SHELL
27694
27695# An echo program that protects backslashes.
27696ECHO=$lt_ECHO
27697
1cf3d07d
SE
27698# The host system.
27699host_alias=$host_alias
27700host=$host
27701host_os=$host_os
27702
27703# The build system.
27704build_alias=$build_alias
27705build=$build
27706build_os=$build_os
27707
27708# A sed program that does not truncate output.
27709SED=$lt_SED
27710
27711# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27712Xsed="\$SED -e 1s/^X//"
27713
27714# A grep program that handles long lines.
27715GREP=$lt_GREP
27716
27717# An ERE matcher.
27718EGREP=$lt_EGREP
27719
27720# A literal string matcher.
27721FGREP=$lt_FGREP
27722
27723# A BSD- or MS-compatible name lister.
27724NM=$lt_NM
27725
27726# Whether we need soft or hard links.
27727LN_S=$lt_LN_S
27728
27729# What is the maximum length of a command?
27730max_cmd_len=$max_cmd_len
27731
27732# Object file suffix (normally "o").
27733objext=$ac_objext
27734
27735# Executable file suffix (normally "").
27736exeext=$exeext
27737
27738# whether the shell understands "unset".
27739lt_unset=$lt_unset
27740
27741# turn spaces into newlines.
27742SP2NL=$lt_lt_SP2NL
27743
27744# turn newlines into spaces.
27745NL2SP=$lt_lt_NL2SP
27746
d58dead8
PG
27747# An object symbol dumper.
27748OBJDUMP=$lt_OBJDUMP
27749
1cf3d07d
SE
27750# Method to check whether dependent libraries are shared objects.
27751deplibs_check_method=$lt_deplibs_check_method
27752
27753# Command to use when deplibs_check_method == "file_magic".
27754file_magic_cmd=$lt_file_magic_cmd
27755
27756# The archiver.
27757AR=$lt_AR
27758AR_FLAGS=$lt_AR_FLAGS
27759
27760# A symbol stripping program.
27761STRIP=$lt_STRIP
27762
27763# Commands used to install an old-style archive.
27764RANLIB=$lt_RANLIB
27765old_postinstall_cmds=$lt_old_postinstall_cmds
27766old_postuninstall_cmds=$lt_old_postuninstall_cmds
27767
43e02a8a
RW
27768# Whether to use a lock for old archive extraction.
27769lock_old_archive_extraction=$lock_old_archive_extraction
27770
1cf3d07d
SE
27771# A C compiler.
27772LTCC=$lt_CC
27773
27774# LTCC compiler flags.
27775LTCFLAGS=$lt_CFLAGS
27776
27777# Take the output of nm and produce a listing of raw symbols and C names.
27778global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27779
27780# Transform the output of nm in a proper C declaration.
27781global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27782
27783# Transform the output of nm in a C name address pair.
27784global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27785
d58dead8
PG
27786# Transform the output of nm in a C name address pair when lib prefix is needed.
27787global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27788
1cf3d07d
SE
27789# The name of the directory that contains temporary libtool files.
27790objdir=$objdir
27791
1cf3d07d
SE
27792# Used to examine libraries when file_magic_cmd begins with "file".
27793MAGIC_CMD=$MAGIC_CMD
27794
27795# Must we lock files when doing compilation?
27796need_locks=$lt_need_locks
27797
d58dead8
PG
27798# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27799DSYMUTIL=$lt_DSYMUTIL
27800
27801# Tool to change global to local symbols on Mac OS X.
27802NMEDIT=$lt_NMEDIT
27803
27804# Tool to manipulate fat objects and archives on Mac OS X.
27805LIPO=$lt_LIPO
27806
27807# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27808OTOOL=$lt_OTOOL
27809
27810# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27811OTOOL64=$lt_OTOOL64
27812
1cf3d07d
SE
27813# Old archive suffix (normally "a").
27814libext=$libext
27815
27816# Shared library suffix (normally ".so").
27817shrext_cmds=$lt_shrext_cmds
27818
27819# The commands to extract the exported symbol list from a shared archive.
27820extract_expsyms_cmds=$lt_extract_expsyms_cmds
27821
27822# Variables whose values should be saved in libtool wrapper scripts and
27823# restored at link time.
27824variables_saved_for_relink=$lt_variables_saved_for_relink
27825
27826# Do we need the "lib" prefix for modules?
27827need_lib_prefix=$need_lib_prefix
27828
27829# Do we need a version for libraries?
27830need_version=$need_version
27831
27832# Library versioning type.
27833version_type=$version_type
27834
27835# Shared library runtime path variable.
27836runpath_var=$runpath_var
27837
27838# Shared library path variable.
27839shlibpath_var=$shlibpath_var
27840
27841# Is shlibpath searched before the hard-coded library search path?
27842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27843
27844# Format of library name prefix.
27845libname_spec=$lt_libname_spec
27846
27847# List of archive names. First name is the real one, the rest are links.
27848# The last name is the one that the linker finds with -lNAME
27849library_names_spec=$lt_library_names_spec
27850
27851# The coded name of the library, if different from the real name.
27852soname_spec=$lt_soname_spec
27853
43e02a8a
RW
27854# Permission mode override for installation of shared libraries.
27855install_override_mode=$lt_install_override_mode
27856
1cf3d07d
SE
27857# Command to use after installation of a shared archive.
27858postinstall_cmds=$lt_postinstall_cmds
27859
27860# Command to use after uninstallation of a shared archive.
27861postuninstall_cmds=$lt_postuninstall_cmds
27862
27863# Commands used to finish a libtool library installation in a directory.
27864finish_cmds=$lt_finish_cmds
27865
27866# As "finish_cmds", except a single script fragment to be evaled but
27867# not shown.
27868finish_eval=$lt_finish_eval
27869
27870# Whether we should hardcode library paths into libraries.
27871hardcode_into_libs=$hardcode_into_libs
27872
27873# Compile-time system search path for libraries.
27874sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27875
27876# Run-time system search path for libraries.
27877sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27878
27879# Whether dlopen is supported.
27880dlopen_support=$enable_dlopen
27881
27882# Whether dlopen of programs is supported.
27883dlopen_self=$enable_dlopen_self
27884
27885# Whether dlopen of statically linked programs is supported.
27886dlopen_self_static=$enable_dlopen_self_static
27887
27888# Commands to strip libraries.
27889old_striplib=$lt_old_striplib
27890striplib=$lt_striplib
27891
27892
27893# The linker used to build libraries.
27894LD=$lt_LD
27895
43e02a8a
RW
27896# How to create reloadable object files.
27897reload_flag=$lt_reload_flag
27898reload_cmds=$lt_reload_cmds
27899
1cf3d07d
SE
27900# Commands used to build an old-style archive.
27901old_archive_cmds=$lt_old_archive_cmds
27902
27903# A language specific compiler.
27904CC=$lt_compiler
27905
27906# Is the compiler the GNU compiler?
27907with_gcc=$GCC
27908
27909# Compiler flag to turn off builtin functions.
27910no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27911
27912# How to pass a linker flag through the compiler.
27913wl=$lt_lt_prog_compiler_wl
27914
27915# Additional compiler flags for building library objects.
27916pic_flag=$lt_lt_prog_compiler_pic
27917
27918# Compiler flag to prevent dynamic linking.
27919link_static_flag=$lt_lt_prog_compiler_static
27920
27921# Does compiler simultaneously support -c and -o options?
27922compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27923
27924# Whether or not to add -lc for building shared libraries.
27925build_libtool_need_lc=$archive_cmds_need_lc
27926
27927# Whether or not to disallow shared libs when runtime libs are static.
27928allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27929
27930# Compiler flag to allow reflexive dlopens.
27931export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27932
27933# Compiler flag to generate shared objects directly from archives.
27934whole_archive_flag_spec=$lt_whole_archive_flag_spec
27935
27936# Whether the compiler copes with passing no objects directly.
27937compiler_needs_object=$lt_compiler_needs_object
27938
27939# Create an old-style archive from a shared archive.
27940old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27941
27942# Create a temporary old-style archive to link instead of a shared archive.
27943old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27944
27945# Commands used to build a shared archive.
27946archive_cmds=$lt_archive_cmds
27947archive_expsym_cmds=$lt_archive_expsym_cmds
27948
27949# Commands used to build a loadable module if different from building
27950# a shared archive.
27951module_cmds=$lt_module_cmds
27952module_expsym_cmds=$lt_module_expsym_cmds
27953
27954# Whether we are building with GNU ld or not.
27955with_gnu_ld=$lt_with_gnu_ld
27956
27957# Flag that allows shared libraries with undefined symbols to be built.
27958allow_undefined_flag=$lt_allow_undefined_flag
27959
27960# Flag that enforces no undefined symbols.
27961no_undefined_flag=$lt_no_undefined_flag
27962
27963# Flag to hardcode \$libdir into a binary during linking.
27964# This must work even if \$libdir does not exist
27965hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27966
27967# If ld is used when linking, flag to hardcode \$libdir into a binary
27968# during linking. This must work even if \$libdir does not exist.
27969hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27970
27971# Whether we need a single "-rpath" flag with a separated argument.
27972hardcode_libdir_separator=$lt_hardcode_libdir_separator
27973
27974# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27975# DIR into the resulting binary.
27976hardcode_direct=$hardcode_direct
27977
27978# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27979# DIR into the resulting binary and the resulting library dependency is
27980# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27981# library is relocated.
27982hardcode_direct_absolute=$hardcode_direct_absolute
27983
27984# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27985# into the resulting binary.
27986hardcode_minus_L=$hardcode_minus_L
27987
27988# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27989# into the resulting binary.
27990hardcode_shlibpath_var=$hardcode_shlibpath_var
27991
27992# Set to "yes" if building a shared library automatically hardcodes DIR
27993# into the library and all subsequent libraries and executables linked
27994# against it.
27995hardcode_automatic=$hardcode_automatic
27996
27997# Set to yes if linker adds runtime paths of dependent libraries
27998# to runtime path list.
27999inherit_rpath=$inherit_rpath
28000
28001# Whether libtool must link a program against all its dependency libraries.
28002link_all_deplibs=$link_all_deplibs
28003
28004# Fix the shell variable \$srcfile for the compiler.
28005fix_srcfile_path=$lt_fix_srcfile_path
28006
28007# Set to "yes" if exported symbols are required.
28008always_export_symbols=$always_export_symbols
28009
28010# The commands to list exported symbols.
28011export_symbols_cmds=$lt_export_symbols_cmds
28012
28013# Symbols that should not be listed in the preloaded symbols.
28014exclude_expsyms=$lt_exclude_expsyms
28015
28016# Symbols that must always be exported.
28017include_expsyms=$lt_include_expsyms
28018
28019# Commands necessary for linking programs (against libraries) with templates.
28020prelink_cmds=$lt_prelink_cmds
28021
28022# Specify filename containing input files.
28023file_list_spec=$lt_file_list_spec
28024
28025# How to hardcode a shared library path into an executable.
28026hardcode_action=$hardcode_action
28027
d58dead8
PG
28028# The directories searched by this compiler when creating a shared library.
28029compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28030
1cf3d07d
SE
28031# Dependencies to place before and after the objects being linked to
28032# create a shared library.
28033predep_objects=$lt_predep_objects
28034postdep_objects=$lt_postdep_objects
28035predeps=$lt_predeps
28036postdeps=$lt_postdeps
28037
28038# The library search path used internally by the compiler when linking
28039# a shared library.
28040compiler_lib_search_path=$lt_compiler_lib_search_path
28041
28042# ### END LIBTOOL CONFIG
28043
28044_LT_EOF
28045
28046 case $host_os in
28047 aix3*)
28048 cat <<\_LT_EOF >> "$cfgfile"
28049# AIX sometimes has problems with the GCC collect2 program. For some
28050# reason, if we set the COLLECT_NAMES environment variable, the problems
28051# vanish in a puff of smoke.
28052if test "X${COLLECT_NAMES+set}" != Xset; then
28053 COLLECT_NAMES=
28054 export COLLECT_NAMES
28055fi
28056_LT_EOF
28057 ;;
28058 esac
28059
28060
28061ltmain="$ac_aux_dir/ltmain.sh"
28062
28063
28064 # We use sed instead of cat because bash on DJGPP gets confused if
28065 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28066 # text mode, it properly converts lines to CR/LF. This bash problem
28067 # is reportedly fixed, but why not run on old versions too?
28068 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28069 || (rm -f "$cfgfile"; exit 1)
28070
28071 case $xsi_shell in
28072 yes)
28073 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28074
1cf3d07d
SE
28075# func_dirname file append nondir_replacement
28076# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28077# otherwise set result to NONDIR_REPLACEMENT.
28078func_dirname ()
28079{
28080 case ${1} in
28081 */*) func_dirname_result="${1%/*}${2}" ;;
28082 * ) func_dirname_result="${3}" ;;
28083 esac
28084}
28085
28086# func_basename file
28087func_basename ()
28088{
28089 func_basename_result="${1##*/}"
28090}
28091
d58dead8
PG
28092# func_dirname_and_basename file append nondir_replacement
28093# perform func_basename and func_dirname in a single function
28094# call:
28095# dirname: Compute the dirname of FILE. If nonempty,
28096# add APPEND to the result, otherwise set result
28097# to NONDIR_REPLACEMENT.
28098# value returned in "$func_dirname_result"
28099# basename: Compute filename of FILE.
28100# value retuned in "$func_basename_result"
28101# Implementation must be kept synchronized with func_dirname
28102# and func_basename. For efficiency, we do not delegate to
28103# those functions but instead duplicate the functionality here.
28104func_dirname_and_basename ()
28105{
28106 case ${1} in
28107 */*) func_dirname_result="${1%/*}${2}" ;;
28108 * ) func_dirname_result="${3}" ;;
28109 esac
28110 func_basename_result="${1##*/}"
28111}
28112
1cf3d07d
SE
28113# func_stripname prefix suffix name
28114# strip PREFIX and SUFFIX off of NAME.
28115# PREFIX and SUFFIX must not contain globbing or regex special
28116# characters, hashes, percent signs, but SUFFIX may contain a leading
28117# dot (in which case that matches only a dot).
28118func_stripname ()
28119{
28120 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28121 # positional parameters, so assign one to ordinary parameter first.
28122 func_stripname_result=${3}
28123 func_stripname_result=${func_stripname_result#"${1}"}
28124 func_stripname_result=${func_stripname_result%"${2}"}
28125}
28126
28127# func_opt_split
28128func_opt_split ()
28129{
28130 func_opt_split_opt=${1%%=*}
28131 func_opt_split_arg=${1#*=}
28132}
28133
28134# func_lo2o object
28135func_lo2o ()
28136{
28137 case ${1} in
28138 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28139 *) func_lo2o_result=${1} ;;
28140 esac
28141}
d58dead8
PG
28142
28143# func_xform libobj-or-source
28144func_xform ()
28145{
28146 func_xform_result=${1%.*}.lo
28147}
28148
28149# func_arith arithmetic-term...
28150func_arith ()
28151{
28152 func_arith_result=$(( $* ))
28153}
28154
28155# func_len string
28156# STRING may not start with a hyphen.
28157func_len ()
28158{
28159 func_len_result=${#1}
28160}
28161
1cf3d07d
SE
28162_LT_EOF
28163 ;;
28164 *) # Bourne compatible functions.
28165 cat << \_LT_EOF >> "$cfgfile"
d58dead8 28166
1cf3d07d
SE
28167# func_dirname file append nondir_replacement
28168# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28169# otherwise set result to NONDIR_REPLACEMENT.
28170func_dirname ()
28171{
28172 # Extract subdirectory from the argument.
43e02a8a 28173 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
28174 if test "X$func_dirname_result" = "X${1}"; then
28175 func_dirname_result="${3}"
28176 else
28177 func_dirname_result="$func_dirname_result${2}"
28178 fi
28179}
28180
28181# func_basename file
28182func_basename ()
28183{
43e02a8a 28184 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
28185}
28186
d58dead8 28187
1cf3d07d
SE
28188# func_stripname prefix suffix name
28189# strip PREFIX and SUFFIX off of NAME.
28190# PREFIX and SUFFIX must not contain globbing or regex special
28191# characters, hashes, percent signs, but SUFFIX may contain a leading
28192# dot (in which case that matches only a dot).
28193# func_strip_suffix prefix name
28194func_stripname ()
28195{
28196 case ${2} in
43e02a8a
RW
28197 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28198 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
28199 esac
28200}
28201
28202# sed scripts:
28203my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28204my_sed_long_arg='1s/^-[^=]*=//'
28205
28206# func_opt_split
28207func_opt_split ()
28208{
43e02a8a
RW
28209 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28210 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
28211}
28212
28213# func_lo2o object
28214func_lo2o ()
28215{
43e02a8a 28216 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 28217}
d58dead8
PG
28218
28219# func_xform libobj-or-source
28220func_xform ()
28221{
43e02a8a 28222 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d58dead8
PG
28223}
28224
28225# func_arith arithmetic-term...
28226func_arith ()
28227{
28228 func_arith_result=`expr "$@"`
28229}
28230
28231# func_len string
28232# STRING may not start with a hyphen.
28233func_len ()
28234{
28235 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28236}
28237
1cf3d07d
SE
28238_LT_EOF
28239esac
28240
28241case $lt_shell_append in
28242 yes)
28243 cat << \_LT_EOF >> "$cfgfile"
28244
28245# func_append var value
28246# Append VALUE to the end of shell variable VAR.
28247func_append ()
28248{
28249 eval "$1+=\$2"
28250}
28251_LT_EOF
28252 ;;
28253 *)
28254 cat << \_LT_EOF >> "$cfgfile"
28255
28256# func_append var value
28257# Append VALUE to the end of shell variable VAR.
28258func_append ()
28259{
28260 eval "$1=\$$1\$2"
28261}
d58dead8 28262
1cf3d07d
SE
28263_LT_EOF
28264 ;;
28265 esac
28266
28267
28268 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28269 || (rm -f "$cfgfile"; exit 1)
28270
28271 mv -f "$cfgfile" "$ofile" ||
28272 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28273 chmod +x "$ofile"
28274
28275
28276 cat <<_LT_EOF >> "$ofile"
28277
28278# ### BEGIN LIBTOOL TAG CONFIG: FC
28279
28280# The linker used to build libraries.
28281LD=$lt_LD_FC
28282
43e02a8a
RW
28283# How to create reloadable object files.
28284reload_flag=$lt_reload_flag_FC
28285reload_cmds=$lt_reload_cmds_FC
28286
1cf3d07d
SE
28287# Commands used to build an old-style archive.
28288old_archive_cmds=$lt_old_archive_cmds_FC
28289
28290# A language specific compiler.
28291CC=$lt_compiler_FC
28292
28293# Is the compiler the GNU compiler?
28294with_gcc=$GCC_FC
28295
28296# Compiler flag to turn off builtin functions.
28297no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28298
28299# How to pass a linker flag through the compiler.
28300wl=$lt_lt_prog_compiler_wl_FC
28301
28302# Additional compiler flags for building library objects.
28303pic_flag=$lt_lt_prog_compiler_pic_FC
28304
28305# Compiler flag to prevent dynamic linking.
28306link_static_flag=$lt_lt_prog_compiler_static_FC
28307
28308# Does compiler simultaneously support -c and -o options?
28309compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28310
28311# Whether or not to add -lc for building shared libraries.
28312build_libtool_need_lc=$archive_cmds_need_lc_FC
28313
28314# Whether or not to disallow shared libs when runtime libs are static.
28315allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28316
28317# Compiler flag to allow reflexive dlopens.
28318export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28319
28320# Compiler flag to generate shared objects directly from archives.
28321whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28322
28323# Whether the compiler copes with passing no objects directly.
28324compiler_needs_object=$lt_compiler_needs_object_FC
28325
28326# Create an old-style archive from a shared archive.
28327old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
28328
28329# Create a temporary old-style archive to link instead of a shared archive.
28330old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
28331
28332# Commands used to build a shared archive.
28333archive_cmds=$lt_archive_cmds_FC
28334archive_expsym_cmds=$lt_archive_expsym_cmds_FC
28335
28336# Commands used to build a loadable module if different from building
28337# a shared archive.
28338module_cmds=$lt_module_cmds_FC
28339module_expsym_cmds=$lt_module_expsym_cmds_FC
28340
28341# Whether we are building with GNU ld or not.
28342with_gnu_ld=$lt_with_gnu_ld_FC
28343
28344# Flag that allows shared libraries with undefined symbols to be built.
28345allow_undefined_flag=$lt_allow_undefined_flag_FC
28346
28347# Flag that enforces no undefined symbols.
28348no_undefined_flag=$lt_no_undefined_flag_FC
28349
28350# Flag to hardcode \$libdir into a binary during linking.
28351# This must work even if \$libdir does not exist
28352hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
28353
28354# If ld is used when linking, flag to hardcode \$libdir into a binary
28355# during linking. This must work even if \$libdir does not exist.
28356hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
28357
28358# Whether we need a single "-rpath" flag with a separated argument.
28359hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
28360
28361# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28362# DIR into the resulting binary.
28363hardcode_direct=$hardcode_direct_FC
28364
28365# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28366# DIR into the resulting binary and the resulting library dependency is
28367# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28368# library is relocated.
28369hardcode_direct_absolute=$hardcode_direct_absolute_FC
28370
28371# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28372# into the resulting binary.
28373hardcode_minus_L=$hardcode_minus_L_FC
28374
28375# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28376# into the resulting binary.
28377hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
28378
28379# Set to "yes" if building a shared library automatically hardcodes DIR
28380# into the library and all subsequent libraries and executables linked
28381# against it.
28382hardcode_automatic=$hardcode_automatic_FC
28383
28384# Set to yes if linker adds runtime paths of dependent libraries
28385# to runtime path list.
28386inherit_rpath=$inherit_rpath_FC
28387
28388# Whether libtool must link a program against all its dependency libraries.
28389link_all_deplibs=$link_all_deplibs_FC
28390
28391# Fix the shell variable \$srcfile for the compiler.
28392fix_srcfile_path=$lt_fix_srcfile_path_FC
28393
28394# Set to "yes" if exported symbols are required.
28395always_export_symbols=$always_export_symbols_FC
28396
28397# The commands to list exported symbols.
28398export_symbols_cmds=$lt_export_symbols_cmds_FC
28399
28400# Symbols that should not be listed in the preloaded symbols.
28401exclude_expsyms=$lt_exclude_expsyms_FC
28402
28403# Symbols that must always be exported.
28404include_expsyms=$lt_include_expsyms_FC
28405
28406# Commands necessary for linking programs (against libraries) with templates.
28407prelink_cmds=$lt_prelink_cmds_FC
28408
28409# Specify filename containing input files.
28410file_list_spec=$lt_file_list_spec_FC
28411
28412# How to hardcode a shared library path into an executable.
28413hardcode_action=$hardcode_action_FC
28414
d58dead8
PG
28415# The directories searched by this compiler when creating a shared library.
28416compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
28417
1cf3d07d
SE
28418# Dependencies to place before and after the objects being linked to
28419# create a shared library.
28420predep_objects=$lt_predep_objects_FC
28421postdep_objects=$lt_postdep_objects_FC
28422predeps=$lt_predeps_FC
28423postdeps=$lt_postdeps_FC
28424
28425# The library search path used internally by the compiler when linking
28426# a shared library.
28427compiler_lib_search_path=$lt_compiler_lib_search_path_FC
28428
28429# ### END LIBTOOL TAG CONFIG: FC
28430_LT_EOF
28431
679c0f9a 28432 ;;
5213506e 28433 "gstdint.h":C)
c13e029b
PB
28434if test "$GCC" = yes; then
28435 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
28436else
28437 echo "/* generated for $CC */" > tmp-stdint.h
28438fi
4c4b3eb0 28439
c13e029b
PB
28440sed 's/^ *//' >> tmp-stdint.h <<EOF
28441
28442 #ifndef GCC_GENERATED_STDINT_H
28443 #define GCC_GENERATED_STDINT_H 1
28444
28445 #include <sys/types.h>
4c4b3eb0 28446EOF
4c4b3eb0 28447
c13e029b
PB
28448if test "$acx_cv_header_stdint" != stdint.h; then
28449 echo "#include <stddef.h>" >> tmp-stdint.h
28450fi
28451if test "$acx_cv_header_stdint" != stddef.h; then
28452 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
28453fi
28454
28455sed 's/^ *//' >> tmp-stdint.h <<EOF
28456 /* glibc uses these symbols as guards to prevent redefinitions. */
28457 #ifdef __int8_t_defined
28458 #define _INT8_T
28459 #define _INT16_T
28460 #define _INT32_T
28461 #endif
28462 #ifdef __uint32_t_defined
28463 #define _UINT32_T
28464 #endif
28465
28466EOF
28467
28468# ----------------- done header, emit basic int types -------------
28469if test "$acx_cv_header_stdint" = stddef.h; then
28470 sed 's/^ *//' >> tmp-stdint.h <<EOF
28471
28472 #ifndef _UINT8_T
28473 #define _UINT8_T
28474 #ifndef __uint8_t_defined
28475 #define __uint8_t_defined
b9497ab5 28476 #ifndef uint8_t
c13e029b
PB
28477 typedef unsigned $acx_cv_type_int8_t uint8_t;
28478 #endif
28479 #endif
b9497ab5 28480 #endif
c13e029b
PB
28481
28482 #ifndef _UINT16_T
28483 #define _UINT16_T
28484 #ifndef __uint16_t_defined
28485 #define __uint16_t_defined
b9497ab5 28486 #ifndef uint16_t
c13e029b
PB
28487 typedef unsigned $acx_cv_type_int16_t uint16_t;
28488 #endif
28489 #endif
b9497ab5 28490 #endif
c13e029b
PB
28491
28492 #ifndef _UINT32_T
28493 #define _UINT32_T
28494 #ifndef __uint32_t_defined
28495 #define __uint32_t_defined
b9497ab5 28496 #ifndef uint32_t
c13e029b
PB
28497 typedef unsigned $acx_cv_type_int32_t uint32_t;
28498 #endif
28499 #endif
b9497ab5 28500 #endif
c13e029b
PB
28501
28502 #ifndef _INT8_T
28503 #define _INT8_T
28504 #ifndef __int8_t_defined
28505 #define __int8_t_defined
b9497ab5 28506 #ifndef int8_t
c13e029b
PB
28507 typedef $acx_cv_type_int8_t int8_t;
28508 #endif
28509 #endif
b9497ab5 28510 #endif
c13e029b
PB
28511
28512 #ifndef _INT16_T
28513 #define _INT16_T
28514 #ifndef __int16_t_defined
28515 #define __int16_t_defined
b9497ab5 28516 #ifndef int16_t
c13e029b
PB
28517 typedef $acx_cv_type_int16_t int16_t;
28518 #endif
28519 #endif
b9497ab5 28520 #endif
c13e029b
PB
28521
28522 #ifndef _INT32_T
28523 #define _INT32_T
28524 #ifndef __int32_t_defined
28525 #define __int32_t_defined
b9497ab5 28526 #ifndef int32_t
c13e029b
PB
28527 typedef $acx_cv_type_int32_t int32_t;
28528 #endif
28529 #endif
b9497ab5 28530 #endif
c13e029b
PB
28531EOF
28532elif test "$ac_cv_type_u_int32_t" = yes; then
28533 sed 's/^ *//' >> tmp-stdint.h <<EOF
28534
28535 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
28536 #ifndef _INT8_T
28537 #define _INT8_T
28538 #endif
28539 #ifndef _INT16_T
28540 #define _INT16_T
28541 #endif
28542 #ifndef _INT32_T
28543 #define _INT32_T
28544 #endif
28545
28546 #ifndef _UINT8_T
28547 #define _UINT8_T
28548 #ifndef __uint8_t_defined
28549 #define __uint8_t_defined
b9497ab5 28550 #ifndef uint8_t
c13e029b
PB
28551 typedef u_int8_t uint8_t;
28552 #endif
28553 #endif
b9497ab5 28554 #endif
c13e029b
PB
28555
28556 #ifndef _UINT16_T
28557 #define _UINT16_T
28558 #ifndef __uint16_t_defined
28559 #define __uint16_t_defined
b9497ab5 28560 #ifndef uint16_t
c13e029b
PB
28561 typedef u_int16_t uint16_t;
28562 #endif
28563 #endif
b9497ab5 28564 #endif
c13e029b
PB
28565
28566 #ifndef _UINT32_T
28567 #define _UINT32_T
28568 #ifndef __uint32_t_defined
28569 #define __uint32_t_defined
b9497ab5 28570 #ifndef uint32_t
c13e029b
PB
28571 typedef u_int32_t uint32_t;
28572 #endif
28573 #endif
b9497ab5 28574 #endif
c13e029b
PB
28575EOF
28576else
28577 sed 's/^ *//' >> tmp-stdint.h <<EOF
28578
28579 /* Some systems have guard macros to prevent redefinitions, define them. */
28580 #ifndef _INT8_T
28581 #define _INT8_T
28582 #endif
28583 #ifndef _INT16_T
28584 #define _INT16_T
28585 #endif
28586 #ifndef _INT32_T
28587 #define _INT32_T
28588 #endif
28589 #ifndef _UINT8_T
28590 #define _UINT8_T
28591 #endif
28592 #ifndef _UINT16_T
28593 #define _UINT16_T
28594 #endif
28595 #ifndef _UINT32_T
28596 #define _UINT32_T
28597 #endif
28598EOF
28599fi
28600
28601# ------------- done basic int types, emit int64_t types ------------
28602if test "$ac_cv_type_uint64_t" = yes; then
28603 sed 's/^ *//' >> tmp-stdint.h <<EOF
28604
28605 /* system headers have good uint64_t and int64_t */
28606 #ifndef _INT64_T
28607 #define _INT64_T
28608 #endif
28609 #ifndef _UINT64_T
28610 #define _UINT64_T
28611 #endif
28612EOF
28613elif test "$ac_cv_type_u_int64_t" = yes; then
28614 sed 's/^ *//' >> tmp-stdint.h <<EOF
28615
28616 /* system headers have an u_int64_t (and int64_t) */
28617 #ifndef _INT64_T
28618 #define _INT64_T
28619 #endif
28620 #ifndef _UINT64_T
28621 #define _UINT64_T
28622 #ifndef __uint64_t_defined
28623 #define __uint64_t_defined
b9497ab5 28624 #ifndef uint64_t
c13e029b
PB
28625 typedef u_int64_t uint64_t;
28626 #endif
28627 #endif
b9497ab5 28628 #endif
c13e029b
PB
28629EOF
28630elif test -n "$acx_cv_type_int64_t"; then
28631 sed 's/^ *//' >> tmp-stdint.h <<EOF
28632
28633 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
28634 #ifndef _INT64_T
28635 #define _INT64_T
b9497ab5 28636 #ifndef int64_t
c13e029b
PB
28637 typedef $acx_cv_type_int64_t int64_t;
28638 #endif
b9497ab5 28639 #endif
c13e029b
PB
28640 #ifndef _UINT64_T
28641 #define _UINT64_T
28642 #ifndef __uint64_t_defined
28643 #define __uint64_t_defined
b9497ab5 28644 #ifndef uint64_t
c13e029b
PB
28645 typedef unsigned $acx_cv_type_int64_t uint64_t;
28646 #endif
28647 #endif
b9497ab5 28648 #endif
c13e029b
PB
28649EOF
28650else
28651 sed 's/^ *//' >> tmp-stdint.h <<EOF
28652
28653 /* some common heuristics for int64_t, using compiler-specific tests */
28654 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
28655 #ifndef _INT64_T
28656 #define _INT64_T
28657 #ifndef __int64_t_defined
b9497ab5 28658 #ifndef int64_t
c13e029b
PB
28659 typedef long long int64_t;
28660 #endif
28661 #endif
b9497ab5 28662 #endif
c13e029b
PB
28663 #ifndef _UINT64_T
28664 #define _UINT64_T
b9497ab5 28665 #ifndef uint64_t
c13e029b
PB
28666 typedef unsigned long long uint64_t;
28667 #endif
b9497ab5 28668 #endif
c13e029b
PB
28669
28670 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
28671 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
28672 does not implement __extension__. But that compiler doesn't define
28673 __GNUC_MINOR__. */
28674 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
28675 # define __extension__
28676 # endif
28677
28678 # ifndef _INT64_T
28679 # define _INT64_T
b9497ab5 28680 # ifndef int64_t
c13e029b
PB
28681 __extension__ typedef long long int64_t;
28682 # endif
b9497ab5 28683 # endif
c13e029b
PB
28684 # ifndef _UINT64_T
28685 # define _UINT64_T
b9497ab5 28686 # ifndef uint64_t
c13e029b
PB
28687 __extension__ typedef unsigned long long uint64_t;
28688 # endif
b9497ab5 28689 # endif
c13e029b
PB
28690
28691 #elif !defined __STRICT_ANSI__
28692 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
28693
28694 # ifndef _INT64_T
28695 # define _INT64_T
b9497ab5 28696 # ifndef int64_t
c13e029b
PB
28697 typedef __int64 int64_t;
28698 # endif
b9497ab5 28699 # endif
c13e029b
PB
28700 # ifndef _UINT64_T
28701 # define _UINT64_T
b9497ab5 28702 # ifndef uint64_t
c13e029b
PB
28703 typedef unsigned __int64 uint64_t;
28704 # endif
b9497ab5 28705 # endif
c13e029b
PB
28706 # endif /* compiler */
28707
28708 #endif /* ANSI version */
28709EOF
28710fi
28711
28712# ------------- done int64_t types, emit intptr types ------------
28713if test "$ac_cv_type_uintptr_t" != yes; then
28714 sed 's/^ *//' >> tmp-stdint.h <<EOF
28715
28716 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
28717 #ifndef __uintptr_t_defined
b9497ab5 28718 #ifndef uintptr_t
c13e029b
PB
28719 typedef u$acx_cv_type_intptr_t uintptr_t;
28720 #endif
b9497ab5 28721 #endif
c13e029b 28722 #ifndef __intptr_t_defined
b9497ab5 28723 #ifndef intptr_t
c13e029b
PB
28724 typedef $acx_cv_type_intptr_t intptr_t;
28725 #endif
b9497ab5 28726 #endif
c13e029b
PB
28727EOF
28728fi
28729
28730# ------------- done intptr types, emit int_least types ------------
4c4b3eb0 28731if test "$ac_cv_type_int_least32_t" != yes; then
c13e029b 28732 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
28733
28734 /* Define int_least types */
28735 typedef int8_t int_least8_t;
28736 typedef int16_t int_least16_t;
28737 typedef int32_t int_least32_t;
c13e029b 28738 #ifdef _INT64_T
4c4b3eb0 28739 typedef int64_t int_least64_t;
c13e029b 28740 #endif
4c4b3eb0
PB
28741
28742 typedef uint8_t uint_least8_t;
28743 typedef uint16_t uint_least16_t;
28744 typedef uint32_t uint_least32_t;
c13e029b 28745 #ifdef _UINT64_T
4c4b3eb0 28746 typedef uint64_t uint_least64_t;
c13e029b 28747 #endif
4c4b3eb0
PB
28748EOF
28749fi
28750
c13e029b 28751# ------------- done intptr types, emit int_fast types ------------
4c4b3eb0 28752if test "$ac_cv_type_int_fast32_t" != yes; then
c13e029b 28753 sed 's/^ *//' >> tmp-stdint.h <<EOF
4c4b3eb0
PB
28754
28755 /* Define int_fast types. short is often slow */
28756 typedef int8_t int_fast8_t;
28757 typedef int int_fast16_t;
28758 typedef int32_t int_fast32_t;
c13e029b 28759 #ifdef _INT64_T
4c4b3eb0 28760 typedef int64_t int_fast64_t;
c13e029b 28761 #endif
4c4b3eb0
PB
28762
28763 typedef uint8_t uint_fast8_t;
28764 typedef unsigned int uint_fast16_t;
28765 typedef uint32_t uint_fast32_t;
c13e029b 28766 #ifdef _UINT64_T
4c4b3eb0 28767 typedef uint64_t uint_fast64_t;
c13e029b
PB
28768 #endif
28769EOF
28770fi
28771
28772if test "$ac_cv_type_uintmax_t" != yes; then
28773 sed 's/^ *//' >> tmp-stdint.h <<EOF
28774
28775 /* Define intmax based on what we found */
b9497ab5 28776 #ifndef intmax_t
c13e029b
PB
28777 #ifdef _INT64_T
28778 typedef int64_t intmax_t;
28779 #else
28780 typedef long intmax_t;
28781 #endif
b9497ab5
RO
28782 #endif
28783 #ifndef uintmax_t
c13e029b
PB
28784 #ifdef _UINT64_T
28785 typedef uint64_t uintmax_t;
28786 #else
28787 typedef unsigned long uintmax_t;
28788 #endif
b9497ab5 28789 #endif
4c4b3eb0
PB
28790EOF
28791fi
28792
c13e029b
PB
28793sed 's/^ *//' >> tmp-stdint.h <<EOF
28794
28795 #endif /* GCC_GENERATED_STDINT_H */
28796EOF
4c4b3eb0 28797
c13e029b
PB
28798if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
28799 rm -f tmp-stdint.h
4c4b3eb0 28800else
c13e029b 28801 mv -f tmp-stdint.h gstdint.h
4c4b3eb0
PB
28802fi
28803
28804 ;;
5213506e 28805
6de9cd9a 28806 esac
5213506e 28807done # for ac_tag
6de9cd9a 28808
6de9cd9a 28809
5213506e 28810as_fn_exit 0
6de9cd9a 28811_ACEOF
6de9cd9a
DN
28812ac_clean_files=$ac_clean_files_save
28813
5213506e
RW
28814test $ac_write_fail = 0 ||
28815 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28816
6de9cd9a
DN
28817
28818# configure is writing to config.log, and then calls config.status.
28819# config.status does its own redirection, appending to config.log.
28820# Unfortunately, on DOS this fails, as config.log is still kept open
28821# by configure, so config.status won't be able to write to it; its
28822# output is simply discarded. So we exec the FD to /dev/null,
28823# effectively closing config.log, so it can be properly (re)opened and
28824# appended to by config.status. When coming back to configure, we
28825# need to make the FD available again.
28826if test "$no_create" != yes; then
28827 ac_cs_success=:
28828 ac_config_status_args=
28829 test "$silent" = yes &&
28830 ac_config_status_args="$ac_config_status_args --quiet"
28831 exec 5>/dev/null
28832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28833 exec 5>>config.log
28834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28835 # would make configure fail if this is the last instruction.
5213506e
RW
28836 $ac_cs_success || as_fn_exit $?
28837fi
28838if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28840$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6de9cd9a
DN
28841fi
28842